@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250410-f79ffef → 0.6.10-experimental.20250410-b7c4a5b
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/en-US.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/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.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/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5481de=_0x7b0e;(function(_0x585924,_0x449055){const _0x4f60b0=_0x7b0e,_0x56ad08=_0x585924();while(!![]){try{const _0x50d874=-parseInt(_0x4f60b0(0x1b1))/0x1+-parseInt(_0x4f60b0(0x1b0))/0x2*(parseInt(_0x4f60b0(0x1b7))/0x3)+parseInt(_0x4f60b0(0x1b6))/0x4+-parseInt(_0x4f60b0(0x1ad))/0x5+parseInt(_0x4f60b0(0x1ac))/0x6*(-parseInt(_0x4f60b0(0x1ae))/0x7)+-parseInt(_0x4f60b0(0x1b8))/0x8+parseInt(_0x4f60b0(0x1a8))/0x9*(parseInt(_0x4f60b0(0x1a9))/0xa);if(_0x50d874===_0x449055)break;else _0x56ad08['push'](_0x56ad08['shift']());}catch(_0x40118a){_0x56ad08['push'](_0x56ad08['shift']());}}}(_0xb7a5,0x7f771));function _0x7b0e(_0x3807b4,_0x4d6482){const _0xb7a584=_0xb7a5();return _0x7b0e=function(_0x7b0e21,_0x8a9db4){_0x7b0e21=_0x7b0e21-0x1a8;let _0x4f2562=_0xb7a584[_0x7b0e21];return _0x4f2562;},_0x7b0e(_0x3807b4,_0x4d6482);}const t=require(_0x5481de(0x1b3)),e=require(_0x5481de(0x1b9));class c extends e['FUniver']{[_0x5481de(0x1ab)](_0x1e4703,_0x5afdf4,..._0x335746){const _0x577c33=_0x5481de;return this[_0x577c33(0x1b4)][_0x577c33(0x1b2)](t[_0x577c33(0x1aa)])[_0x577c33(0x1ab)](_0x1e4703,_0x5afdf4,{},..._0x335746);}}function _0xb7a5(){const _0x2d8f51=['82140pXDgwQ','RemoteUniscriptService','runOnServer','9762ZckSFP','5047880aneVDL','2429AKVHuV','FUniver','9974axVHHu','15027fCSlPf','get','@univerjs-pro/collaboration-client-ui','_injector','extend','2027240jAjjnB','573OceJaR','6946096cIgWlN','@univerjs/core/facade','3753yGRPuQ'];_0xb7a5=function(){return _0x2d8f51;};return _0xb7a5();}e[_0x5481de(0x1af)][_0x5481de(0x1b5)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x320bb0=_0x55af;(function(_0x421cb1,_0x30338b){const _0x303cb9=_0x55af,_0x38b589=_0x421cb1();while(!![]){try{const _0x4a0922=-parseInt(_0x303cb9(0x266))/0x1+-parseInt(_0x303cb9(0xed))/0x2+-parseInt(_0x303cb9(0x254))/0x3*(parseInt(_0x303cb9(0x1a8))/0x4)+parseInt(_0x303cb9(0x230))/0x5+-parseInt(_0x303cb9(0x14e))/0x6*(-parseInt(_0x303cb9(0x119))/0x7)+-parseInt(_0x303cb9(0x1d6))/0x8*(-parseInt(_0x303cb9(0x18a))/0x9)+parseInt(_0x303cb9(0x104))/0xa;if(_0x4a0922===_0x30338b)break;else _0x38b589['push'](_0x38b589['shift']());}catch(_0x565280){_0x38b589['push'](_0x38b589['shift']());}}}(_0x116d,0x803bb));var Xe=Object['defineProperty'],Ge=(_0x47de09,_0x1e677e,_0x1145ad)=>_0x1e677e in _0x47de09?Xe(_0x47de09,_0x1e677e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1145ad}):_0x47de09[_0x1e677e]=_0x1145ad,_=(_0x39e1bf,_0x1bdf6e,_0x3f7310)=>Ge(_0x39e1bf,typeof _0x1bdf6e!=_0x320bb0(0x16a)?_0x1bdf6e+'':_0x1bdf6e,_0x3f7310);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x320bb0(0x222)});const u=require(_0x320bb0(0xa5)),a=require(_0x320bb0(0x236)),p=require(_0x320bb0(0x14f)),q=require(_0x320bb0(0x1de)),b=require('@univerjs/docs-ui'),qe=require(_0x320bb0(0xe5)),d=require(_0x320bb0(0x2a0)),Y=require(_0x320bb0(0x9c)),m=require('@univerjs-pro/collaboration'),Te=require(_0x320bb0(0xba)),g=require(_0x320bb0(0xd8)),$=require(_0x320bb0(0xf5)),G=require(_0x320bb0(0x267)),L=require('react/jsx-runtime'),R=require(_0x320bb0(0x26e)),T=require(_0x320bb0(0x18d)),M=require(_0x320bb0(0xa2)),Ke=require(_0x320bb0(0x161));var ze=Object[_0x320bb0(0x1a2)],Je=(_0x3bf9e7,_0x2c9232,_0x246e69,_0x5e27af)=>{for(var _0x567bcd=_0x5e27af>0x1?void 0x0:_0x5e27af?ze(_0x2c9232,_0x246e69):_0x2c9232,_0x2a7f27=_0x3bf9e7['length']-0x1,_0x553c79;_0x2a7f27>=0x0;_0x2a7f27--)(_0x553c79=_0x3bf9e7[_0x2a7f27])&&(_0x567bcd=_0x553c79(_0x567bcd)||_0x567bcd);return _0x567bcd;},Re=(_0x44e00b,_0xe6cf6e)=>(_0x7165cd,_0x227626)=>_0xe6cf6e(_0x7165cd,_0x227626,_0x44e00b);let fe=class extends a['RxDisposable']{constructor(_0x2d7298,_0x5797b1){const _0x2d633b=_0x320bb0;super(),this['_docClipboardService']=_0x2d7298,this[_0x2d633b(0x1a1)]=_0x5797b1,this[_0x2d633b(0x113)]();}['_init'](){const _0x5101fa=_0x320bb0,_0x94d2c6=this;this['disposeWithMe'](this[_0x5101fa(0x23f)][_0x5101fa(0x23a)]({'onBeforePasteImage':async _0x304cb9=>{const _0x6b6bc6=_0x5101fa,_0x12dbe6=await _0x94d2c6[_0x6b6bc6(0x1a1)][_0x6b6bc6(0x139)](_0x304cb9);return _0x12dbe6?{'source':_0x12dbe6['source'],'imageSourceType':_0x12dbe6[_0x6b6bc6(0xde)]}:null;}}));}};fe=Je([Re(0x0,b[_0x320bb0(0x2a8)]),Re(0x1,qe[_0x320bb0(0x229)])],fe);const Oe=[_0x320bb0(0x1b5),_0x320bb0(0x8f),_0x320bb0(0x1ae),_0x320bb0(0x272),_0x320bb0(0x177),_0x320bb0(0x167)];class Ce extends a['Disposable']{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x320bb0(0x2cc)](_0x3e4f16){const _0x24d0b9=_0x320bb0;if(this[_0x24d0b9(0x162)][_0x24d0b9(0x148)](_0x3e4f16))return this[_0x24d0b9(0x162)][_0x24d0b9(0x20c)](_0x3e4f16);const _0x2e5b60=Oe[this['_colorIndex']];return this[_0x24d0b9(0x1bf)]=(this[_0x24d0b9(0x1bf)]+0x1)%Oe['length'],this[_0x24d0b9(0x162)][_0x24d0b9(0xfe)](_0x3e4f16,_0x2e5b60),_0x2e5b60;}}function we(_0x3d1042){let _0x2f4384='';for(const _0x49d77e of _0x3d1042){const {startOffset:_0x351778,endOffset:_0x58df13,isActive:_0x5a285b,rangeType:_0x31001d,segmentId:_0x78b97a,segmentPage:_0x99fcd6}=_0x49d77e;_0x2f4384['length']&&(_0x2f4384+=','),_0x2f4384+=_0x351778+':'+_0x58df13+':'+(_0x5a285b?'1':'0')+':'+_0x31001d+':'+_0x78b97a+':'+_0x99fcd6;}return _0x2f4384;}function Ze(_0x337a30){const _0x3b6dbb=_0x320bb0,_0x15f8bc=_0x337a30[_0x3b6dbb(0x15d)](','),_0x3c7cdc=[];for(const _0x4b0aa6 of _0x15f8bc){const [_0x45a34b,_0x4faa0a,_0x16d82a,_0xe554bb,_0x3c7443,_0x24370e]=_0x4b0aa6[_0x3b6dbb(0x15d)](':');_0x3c7cdc[_0x3b6dbb(0x2f5)]({'startOffset':Number(_0x45a34b),'endOffset':Number(_0x4faa0a),'collapsed':_0x45a34b===_0x4faa0a,'isActive':_0x16d82a==='1','rangeType':_0xe554bb===a['DOC_RANGE_TYPE'][_0x3b6dbb(0x305)]?a[_0x3b6dbb(0x1b1)]['TEXT']:a[_0x3b6dbb(0x1b1)]['RECT'],'segmentId':typeof _0x3c7443=='string'?String(_0x3c7443):'','segmentPage':Number(_0x24370e!=null?_0x24370e:-0x1)});}return _0x3c7cdc[_0x3b6dbb(0x293)](_0x17abc6=>_0x17abc6[_0x3b6dbb(0x233)])||(_0x3c7cdc[0x0]['isActive']=!0x0),_0x3c7cdc;}class pe extends a[_0x320bb0(0x133)]{constructor(){const _0x5bbd3d=_0x320bb0;super(...arguments),_(this,_0x5bbd3d(0x1d0),new d['BehaviorSubject'](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x5bbd3d(0x1ad)]());}['syncEditingCollabCursor'](_0x56fd01){const _0x13bdd9=_0x320bb0,{unitID:_0x763aa5,memberID:_0x49f897,textRanges:_0x234162}=_0x56fd01,_0x1a8d1c=we(_0x234162);if(_0x1a8d1c==='')return;const _0x9d6ccb={'unitID':_0x763aa5,'memberID':_0x49f897,'selection':_0x1a8d1c};this[_0x13bdd9(0x1d0)][_0x13bdd9(0x213)](_0x9d6ccb);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x5145d6,_0x582c3b,_0x243c8a,_0x244205)=>{const _0x4bb326=_0x320bb0;for(var _0xc675b2=_0x244205>0x1?void 0x0:_0x244205?Qe(_0x582c3b,_0x243c8a):_0x582c3b,_0x483424=_0x5145d6[_0x4bb326(0x1f8)]-0x1,_0x57c55f;_0x483424>=0x0;_0x483424--)(_0x57c55f=_0x5145d6[_0x483424])&&(_0xc675b2=_0x57c55f(_0xc675b2)||_0xc675b2);return _0xc675b2;},P=(_0x52c345,_0x51d8ae)=>(_0x1b0144,_0x3de543)=>_0x51d8ae(_0x1b0144,_0x3de543,_0x52c345);const tt=0x12c,st=0x64;let Se=class extends a[_0x320bb0(0x133)]{constructor(_0x447a51,_0x25b266,_0x5c7d18,_0x134ad1,_0x10c96d,_0x38ee54,_0x1e938d,_0x556365,_0xca57d2){const _0x51e30f=_0x320bb0;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x51e30f(0x26a),new d[(_0x51e30f(0xf0))](new Map())),_(this,_0x51e30f(0x2b4),this['_cursorInfo$'][_0x51e30f(0x1ad)]()),_(this,'_roomMembers$',new d[(_0x51e30f(0xf0))]([])),_(this,_0x51e30f(0x14d),this[_0x51e30f(0x175)][_0x51e30f(0x1db)](d['debounceTime'](tt))),_(this,_0x51e30f(0xf4),a[_0x51e30f(0x2aa)](_0xcd36c5=>{const _0x4bd33f=_0x51e30f,_0x4e707c={'eventID':m[_0x4bd33f(0x158)][_0x4bd33f(0x23d)],'data':{'unitID':this[_0x4bd33f(0x2d8)],'memberID':this[_0x4bd33f(0x1f9)][_0x4bd33f(0x97)](),'selection':we(_0xcd36c5)}};this[_0x4bd33f(0x1f9)][_0x4bd33f(0x180)](_0x4e707c,this[_0x4bd33f(0x2d8)]);},st)),(this['unitID']=_0x447a51,this[_0x51e30f(0x1f9)]=_0x25b266,this[_0x51e30f(0x303)]=_0x5c7d18,this[_0x51e30f(0x298)]=_0x134ad1,this[_0x51e30f(0x1a9)]=_0x10c96d,this[_0x51e30f(0xb0)]=_0x38ee54,this[_0x51e30f(0x216)]=_0x1e938d,this['_univerInstanceService']=_0x556365,this['_commandService']=_0xca57d2);}get[_0x320bb0(0x30a)](){const _0x3664b6=_0x320bb0;return this[_0x3664b6(0x26a)][_0x3664b6(0x8b)]();}get[_0x320bb0(0xe0)](){const _0x1bb1f5=_0x320bb0;return this[_0x1bb1f5(0x175)][_0x1bb1f5(0x8b)]();}[_0x320bb0(0x2df)](){const _0x594e52=_0x320bb0;super[_0x594e52(0x2df)](),this[_0x594e52(0x26a)][_0x594e52(0x213)](new Map()),this['_cursorInfo$'][_0x594e52(0x159)](),this['_roomMembers$']['next']([]),this['_roomMembers$']['complete']();}[_0x320bb0(0x182)](){const _0x5faf6=_0x320bb0;this[_0x5faf6(0x113)]||(this['_init']=!0x0,this['_session'][_0x5faf6(0x248)][_0x5faf6(0x1db)](d['takeUntil'](this[_0x5faf6(0x16e)]))[_0x5faf6(0x283)](_0xbeb194=>{const _0xb8a4f5=_0x5faf6;_0xbeb194===u[_0xb8a4f5(0x224)][_0xb8a4f5(0x2d4)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x5faf6(0x2e7)]['pipe'](d[_0x5faf6(0x10f)](this[_0x5faf6(0x16e)]))['subscribe'](_0x1da938=>{const _0x4ed86d=_0x5faf6,_0xe5ff3e=_0x1da938[_0x4ed86d(0x2ae)];_0xe5ff3e===m[_0x4ed86d(0x158)][_0x4ed86d(0x23d)]&&this[_0x4ed86d(0xe2)](_0x1da938),_0xe5ff3e===m[_0x4ed86d(0x158)][_0x4ed86d(0x129)]&&this[_0x4ed86d(0x84)](_0x1da938);}),this[_0x5faf6(0x10a)](this['_commandService'][_0x5faf6(0x2c0)](_0x191f63=>{const _0xfc32f8=_0x5faf6,_0x1f3d23=_0x191f63['params'];_0x1f3d23!=null&&this[_0xfc32f8(0x1b6)]&&_0x191f63['id']===Y[_0xfc32f8(0x245)]['id']&&_0x1f3d23['unitId']===this[_0xfc32f8(0x2d8)]&&_0x1f3d23['isEditing']===!0x1&&_0x1f3d23[_0xfc32f8(0x215)]['length']>0x0&&this[_0xfc32f8(0xf4)](_0x1f3d23[_0xfc32f8(0x215)]);})),this[_0x5faf6(0xb0)][_0x5faf6(0x170)]['pipe'](d['takeUntil'](this[_0x5faf6(0x16e)]))['subscribe'](_0x35c849=>{const _0x5a68e8=_0x5faf6;if((_0x35c849==null?void 0x0:_0x35c849[_0x5a68e8(0x2d8)])!==this[_0x5a68e8(0x2d8)])return;const _0x3e382f={'eventID':m[_0x5a68e8(0x158)]['UPDATE_CURSOR'],'data':_0x35c849};this[_0x5a68e8(0xe2)](_0x3e382f);}),this[_0x5faf6(0x10a)](this[_0x5faf6(0xa7)][_0x5faf6(0x2c0)](_0x12da6c=>{const _0x3dae65=_0x5faf6;if(_0x12da6c[_0x3dae65(0x2cf)]==null)return;const _0x131eed=_0x12da6c[_0x3dae65(0x2cf)];if(_0x12da6c['id']!==Y['RichTextEditingMutation']['id']||_0x131eed[_0x3dae65(0x237)]!==this[_0x3dae65(0x2d8)])return;const _0x3b8178={'id':_0x3dae65(0x145),'params':_0x131eed},_0x54f60d=this[_0x3dae65(0x30a)];for(const [_0xb5dc89,_0x5a3e11]of _0x54f60d){const _0x2815b3={'id':_0x3dae65(0x145),'params':{'unitId':this[_0x3dae65(0x2d8)],'actions':null,'textRanges':_0x5a3e11[_0x3dae65(0x215)]}},_0x18f06a=this['_transformService'][_0x3dae65(0x2f6)](_0x3b8178,_0x2815b3,!0x1);if(m[_0x3dae65(0xe3)](_0x18f06a))throw _0x18f06a[_0x3dae65(0x2f4)];_0x54f60d['set'](_0xb5dc89,{..._0x5a3e11,'ranges':_0x18f06a[_0x3dae65(0x28b)]['params'][_0x3dae65(0x19a)]});}queueMicrotask(()=>{const _0x1bdcad=_0x3dae65;this[_0x1bdcad(0x26a)][_0x1bdcad(0x213)](_0x54f60d);});})));}[_0x320bb0(0xe2)](_0x340c1c){const _0x236904=_0x320bb0;var _0x9c32c,_0x266f70;const {memberID:_0x1bd6c6,selection:_0x4f381e}=_0x340c1c[_0x236904(0x179)],_0x141fe3=Ze(_0x4f381e),_0x560be1=(_0x266f70=(_0x9c32c=this[_0x236904(0x1a9)][_0x236904(0x2c9)](this[_0x236904(0x2d8)],_0x1bd6c6))==null?void 0x0:_0x9c32c['name'])!=null?_0x266f70:_0x236904(0x111),_0x54ea7a={'color':this[_0x236904(0x298)]['assignAColorForMemberID'](_0x1bd6c6),'name':_0x560be1,'ranges':_0x141fe3},_0x1bc54e=this[_0x236904(0x30a)];_0x1bc54e['set'](_0x1bd6c6,_0x54ea7a),this[_0x236904(0x26a)][_0x236904(0x213)](_0x1bc54e);}[_0x320bb0(0x84)](_0x2ecae4){const _0x17e96c=_0x320bb0,{memberID:_0x33d898}=_0x2ecae4[_0x17e96c(0x179)],_0x3cee34=this['cursorInfo'];_0x3cee34[_0x17e96c(0x1c5)](_0x33d898),this[_0x17e96c(0x26a)]['next'](_0x3cee34);}['_toggleOnline'](){const _0x4c63e2=_0x320bb0;var _0x534c9e;if(this[_0x4c63e2(0x1b6)]=!0x0,((_0x534c9e=this[_0x4c63e2(0x116)][_0x4c63e2(0x219)]())==null?void 0x0:_0x534c9e[_0x4c63e2(0x2b2)]())!==this[_0x4c63e2(0x2d8)])return;const _0xc20f3a=this[_0x4c63e2(0x303)][_0x4c63e2(0x20c)](Y[_0x4c63e2(0xc4)])['getDocRanges']();Array['isArray'](_0xc20f3a)&&_0xc20f3a[_0x4c63e2(0x1f8)]>0x0&&this[_0x4c63e2(0xf4)](_0xc20f3a);}[_0x320bb0(0x1a3)](){const _0x38566e=_0x320bb0;this[_0x38566e(0x1b6)]=!0x1;}};Se=et([P(0x2,a[_0x320bb0(0x122)](a['Injector'])),P(0x3,a[_0x320bb0(0x122)](Ce)),P(0x4,a[_0x320bb0(0x122)](u[_0x320bb0(0x289)])),P(0x5,a['Inject'](pe)),P(0x6,m[_0x320bb0(0x1ef)]),P(0x7,a[_0x320bb0(0x1e1)]),P(0x8,a[_0x320bb0(0x187)])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x3d95ce,_0x19f6ae,_0x38e332,_0x143d01)=>{const _0x4714c7=_0x320bb0;for(var _0x1feb28=_0x143d01>0x1?void 0x0:_0x143d01?nt(_0x19f6ae,_0x38e332):_0x19f6ae,_0xcc11c6=_0x3d95ce[_0x4714c7(0x1f8)]-0x1,_0x5061f4;_0xcc11c6>=0x0;_0xcc11c6--)(_0x5061f4=_0x3d95ce[_0xcc11c6])&&(_0x1feb28=_0x5061f4(_0x1feb28)||_0x1feb28);return _0x1feb28;},A=(_0x217d94,_0xc293f0)=>(_0x501180,_0x4ccc57)=>_0xc293f0(_0x501180,_0x4ccc57,_0x217d94);const rt=0x12c,ot=0x64,at=()=>{let _0x42d4d7=[],_0x31a81b=!0x1;return _0x57e157=>{const _0x410cd4=_0x55af;_0x42d4d7[_0x410cd4(0x2f5)](_0x57e157),_0x31a81b||(_0x31a81b=!0x0,setTimeout(()=>{const _0x47980d=_0x410cd4;_0x42d4d7[_0x47980d(0xad)](_0x85b82c=>_0x85b82c()),_0x42d4d7=[],_0x31a81b=!0x1;}));};};let Ie=class extends a[_0x320bb0(0x133)]{constructor(_0x1e71d2,_0x148b81,_0x24ab73,_0x47dce4,_0x562e9b,_0x772759,_0x564b94,_0x563ae3){const _0x1f7dc1=_0x320bb0;super(),_(this,_0x1f7dc1(0x1b6),!0x1),_(this,_0x1f7dc1(0x113),!0x1),_(this,_0x1f7dc1(0x26a),new d[(_0x1f7dc1(0xf0))](new Map())),_(this,_0x1f7dc1(0x2b4),this[_0x1f7dc1(0x26a)][_0x1f7dc1(0x1ad)]()),_(this,_0x1f7dc1(0x175),new d[(_0x1f7dc1(0xf0))]([])),_(this,_0x1f7dc1(0x14d),this[_0x1f7dc1(0x175)][_0x1f7dc1(0x1db)](d[_0x1f7dc1(0x2c7)](rt))),_(this,_0x1f7dc1(0xf4),a['debounce']((_0x30aa03,_0x131cac)=>{const _0x5c340e=_0x1f7dc1,_0x473965={'eventID':m[_0x5c340e(0x158)][_0x5c340e(0x23d)],'data':{'unitID':this[_0x5c340e(0x2d8)],'memberID':this['_session']['getMemberID'](),'selection':Te[_0x5c340e(0x155)](_0x30aa03,_0x131cac[_0x5c340e(0x10d)])}};this[_0x5c340e(0x1f9)][_0x5c340e(0x180)](_0x473965,this[_0x5c340e(0x2d8)]);},ot)),(this['unitID']=_0x1e71d2,this[_0x1f7dc1(0x1f9)]=_0x148b81,this['_injector']=_0x24ab73,this['_colorAssignService']=_0x47dce4,this[_0x1f7dc1(0x1a9)]=_0x562e9b,this[_0x1f7dc1(0x116)]=_0x772759,this['_commandService']=_0x564b94,this[_0x1f7dc1(0x189)]=_0x563ae3);}get[_0x320bb0(0x30a)](){const _0x293794=_0x320bb0;return this[_0x293794(0x26a)]['getValue']();}get['roomMembers'](){const _0x37709a=_0x320bb0;return this[_0x37709a(0x175)][_0x37709a(0x8b)]();}['dispose'](){const _0x333863=_0x320bb0;super['dispose'](),this[_0x333863(0x26a)][_0x333863(0x213)](new Map()),this[_0x333863(0x26a)][_0x333863(0x159)](),this[_0x333863(0x175)][_0x333863(0x213)]([]),this[_0x333863(0x175)][_0x333863(0x159)]();}[_0x320bb0(0x182)](){const _0x57feef=_0x320bb0;this['_init']||(this[_0x57feef(0x113)]=!0x0,this[_0x57feef(0x1f9)][_0x57feef(0x248)][_0x57feef(0x1db)](d[_0x57feef(0x10f)](this['dispose$']))[_0x57feef(0x283)](_0x5eb3d9=>{const _0x494b93=_0x57feef;_0x5eb3d9===u[_0x494b93(0x224)][_0x494b93(0x2d4)]?this['_toggleOnline']():this[_0x494b93(0x1a3)]();}),this[_0x57feef(0x1f9)][_0x57feef(0x2e7)]['pipe'](d['takeUntil'](this[_0x57feef(0x16e)]))['subscribe'](_0x326d9d=>{const _0x532827=_0x57feef,_0x55ad9d=_0x326d9d[_0x532827(0x2ae)];_0x55ad9d===m[_0x532827(0x158)][_0x532827(0x23d)]&&this[_0x532827(0xe2)](_0x326d9d),_0x55ad9d===m['CollaborationEvent'][_0x532827(0x129)]&&this['_onCursorDelete'](_0x326d9d);}),this[_0x57feef(0x2d3)](),this[_0x57feef(0x10a)](this[_0x57feef(0xa7)]['onCommandExecuted'](_0xcb1b81=>{const _0x547838=_0x57feef;if(this[_0x547838(0x1b6)]&&_0xcb1b81['id']===g['SetSelectionsOperation']['id']&&_0xcb1b81[_0x547838(0x2cf)]['unitId']===this['unitID']){const _0x43705f=_0xcb1b81[_0x547838(0x2cf)];this[_0x547838(0xf4)](_0x43705f['subUnitId'],_0x43705f[_0x547838(0x214)][0x0]);}})));}[_0x320bb0(0xe2)](_0x5d96bb){const _0x1c0239=_0x320bb0;var _0x54abb3,_0x328296;const {memberID:_0x3bdfa9,selection:_0x174ddc}=_0x5d96bb['data'],{sheetName:_0x137b34,range:_0x576e5e}=Te['deserializeRangeWithSheet'](_0x174ddc),_0x5d7133={'name':(_0x328296=(_0x54abb3=this[_0x1c0239(0x1a9)][_0x1c0239(0x2c9)](this[_0x1c0239(0x2d8)],_0x3bdfa9))==null?void 0x0:_0x54abb3[_0x1c0239(0x19d)])!=null?_0x328296:_0x1c0239(0x111),'range':this[_0x1c0239(0x105)](_0x137b34,_0x576e5e),'sheetID':_0x137b34,'color':this[_0x1c0239(0x298)][_0x1c0239(0x2cc)](_0x3bdfa9),'selection':_0x174ddc},_0x2dbc55=this['cursorInfo'];_0x2dbc55[_0x1c0239(0xfe)](_0x3bdfa9,_0x5d7133),this['_cursorInfo$'][_0x1c0239(0x213)](_0x2dbc55);}[_0x320bb0(0x84)](_0x488870){const _0x35d495=_0x320bb0,{memberID:_0x2be5e4}=_0x488870['data'],_0x2d4955=this['cursorInfo'];_0x2d4955[_0x35d495(0x1c5)](_0x2be5e4),this[_0x35d495(0x26a)][_0x35d495(0x213)](_0x2d4955);}[_0x320bb0(0x105)](_0x42da13,_0x3d41b0){const _0x56e3fd=_0x320bb0;var _0x4b32b5,_0x35764b;const _0x32f73a=(_0x35764b=(_0x4b32b5=this[_0x56e3fd(0x116)][_0x56e3fd(0x26c)](this[_0x56e3fd(0x2d8)]))==null?void 0x0:_0x4b32b5[_0x56e3fd(0x121)](_0x42da13))==null?void 0x0:_0x35764b[_0x56e3fd(0x2c4)]();return(_0x32f73a==null?void 0x0:_0x32f73a['find'](_0x3613f9=>a[_0x56e3fd(0x209)][_0x56e3fd(0x2ec)](_0x3613f9,_0x3d41b0)))||_0x3d41b0;}[_0x320bb0(0x2d3)](){const _0x542268=_0x320bb0,_0x4f7b7c=new a[(_0x542268(0x1d3))](),_0x56bbcf=at(),_0x1b9271=()=>{const _0x28a276=_0x542268;_0x4f7b7c['dispose']();const _0xe96193=(_0x3e6814,_0x24748c,_0x5f3d68,_0x5aa90f)=>{const _0x13ab5c=_0x55af;let _0x1aea96=[];switch(_0x3e6814['id']){case g[_0x13ab5c(0xaa)][_0x13ab5c(0x16d)]:{_0x1aea96=g[_0x13ab5c(0x13b)](_0x3e6814,_0x5aa90f);break;}case g[_0x13ab5c(0xaa)][_0x13ab5c(0x286)]:{_0x1aea96=g[_0x13ab5c(0x256)](_0x3e6814,_0x5aa90f);break;}case g[_0x13ab5c(0xaa)]['InsertColCommandId']:{_0x1aea96=g[_0x13ab5c(0x257)](_0x3e6814,_0x5aa90f);break;}case g[_0x13ab5c(0xaa)][_0x13ab5c(0x226)]:{_0x1aea96=g[_0x13ab5c(0x18f)](_0x3e6814,_0x5aa90f);break;}case g[_0x13ab5c(0xaa)][_0x13ab5c(0x2e4)]:{_0x1aea96=g[_0x13ab5c(0x19e)](_0x3e6814,_0x5aa90f);break;}case g['EffectRefRangId'][_0x13ab5c(0x1b9)]:{_0x1aea96=g[_0x13ab5c(0x1cd)](_0x3e6814,_0x5aa90f);break;}case g[_0x13ab5c(0xaa)][_0x13ab5c(0x137)]:{_0x1aea96=g[_0x13ab5c(0xfc)](_0x3e6814,_0x5aa90f);break;}case g['EffectRefRangId'][_0x13ab5c(0x2bd)]:{_0x1aea96=g[_0x13ab5c(0x1e0)](_0x3e6814,_0x5aa90f);break;}case g[_0x13ab5c(0xaa)][_0x13ab5c(0x2b5)]:{_0x1aea96=g[_0x13ab5c(0x1f7)](_0x3e6814,_0x5aa90f);break;}}const _0x4db87a=g[_0x13ab5c(0x9d)](_0x1aea96,_0x5aa90f),_0x38eba4=this[_0x13ab5c(0x30a)][_0x13ab5c(0x20c)](_0x24748c);if(_0x38eba4&&_0x4db87a){const _0x3a2157={..._0x38eba4,'range':_0x4db87a};this['cursorInfo']['set'](_0x24748c,_0x3a2157),_0x56bbcf(()=>{const _0x297bfb=_0x13ab5c,_0x1209e6=this[_0x297bfb(0x189)][_0x297bfb(0x270)](_0x4db87a,_0x286f4f=>(_0x1209e6[_0x297bfb(0x2df)](),_0xe96193(_0x286f4f,_0x24748c,_0x5f3d68,_0x4db87a)));_0x4f7b7c[_0x297bfb(0x2a4)](_0x1209e6);});}return{'redos':[],'undos':[]};};this[_0x28a276(0x30a)][_0x28a276(0xad)]((_0x289590,_0x463d10)=>{const _0x3fc0c6=_0x28a276,{range:_0x1a9ac6,sheetID:_0x3559d7}=_0x289590,_0xd789cf=this[_0x3fc0c6(0x189)]['registerRefRange'](_0x1a9ac6,_0x4b8ac8=>(_0xd789cf['dispose'](),_0xe96193(_0x4b8ac8,_0x463d10,_0x3559d7,_0x1a9ac6)));_0x4f7b7c['add'](_0xd789cf);});};this[_0x542268(0x10a)](a[_0x542268(0x1dd)](this[_0x542268(0x26a)]['subscribe'](()=>{_0x1b9271();})));}[_0x320bb0(0x165)](){const _0x11b321=_0x320bb0;var _0x4a7114,_0x34a9cc;if(this['_online']=!0x0,((_0x4a7114=this['_univerInstanceService'][_0x11b321(0x219)]())==null?void 0x0:_0x4a7114[_0x11b321(0x2b2)]())!==this[_0x11b321(0x2d8)])return;const _0xd6bdc=(_0x34a9cc=this[_0x11b321(0x303)][_0x11b321(0x20c)](g['SheetsSelectionsService'])[_0x11b321(0x13c)]())==null?void 0x0:_0x34a9cc[0x0],_0x3f6e31=this[_0x11b321(0x116)]['getCurrentUnitForType'](a[_0x11b321(0x282)][_0x11b321(0x1da)])[_0x11b321(0x1e6)]();_0xd6bdc&&_0x3f6e31&&this[_0x11b321(0xf4)](_0x3f6e31[_0x11b321(0x147)](),_0xd6bdc);}[_0x320bb0(0x1a3)](){const _0x173155=_0x320bb0;this[_0x173155(0x1b6)]=!0x1;}};Ie=it([A(0x2,a[_0x320bb0(0x122)](a['Injector'])),A(0x3,a['Inject'](Ce)),A(0x4,a['Inject'](u['MemberService'])),A(0x5,a[_0x320bb0(0x1e1)]),A(0x6,a['ICommandService']),A(0x7,a[_0x320bb0(0x122)](g['RefRangeService']))],Ie);var ct=Object[_0x320bb0(0x1a2)],lt=(_0x14bc73,_0x162422,_0x11fbff,_0xc8cf51)=>{const _0x48b206=_0x320bb0;for(var _0x7d5147=_0xc8cf51>0x1?void 0x0:_0xc8cf51?ct(_0x162422,_0x11fbff):_0x162422,_0x18d64d=_0x14bc73[_0x48b206(0x1f8)]-0x1,_0xac9ac6;_0x18d64d>=0x0;_0x18d64d--)(_0xac9ac6=_0x14bc73[_0x18d64d])&&(_0x7d5147=_0xac9ac6(_0x7d5147)||_0x7d5147);return _0x7d5147;},ie=(_0x132792,_0x27a11e)=>(_0x23ee04,_0x151567)=>_0x27a11e(_0x23ee04,_0x151567,_0x132792);let x=class extends a[_0x320bb0(0x133)]{constructor(_0x4030c2,_0x1b923c,_0x3c0859){const _0x3acae8=_0x320bb0;super(),_(this,_0x3acae8(0x2ea),new Map()),_(this,'_entityInit$',new d[(_0x3acae8(0xbe))]()),(this[_0x3acae8(0x116)]=_0x4030c2,this['_injector']=_0x1b923c,this[_0x3acae8(0x125)]=_0x3c0859,this[_0x3acae8(0x113)]());}['dispose'](){const _0x435e78=_0x320bb0;super[_0x435e78(0x2df)](),this['_entityInit$'][_0x435e78(0x159)](),this[_0x435e78(0x2ea)][_0x435e78(0xad)](_0x3b4f7f=>_0x3b4f7f['dispose']());}[_0x320bb0(0xb1)](_0x33a34e){const _0xd63fcd=_0x320bb0;return this['_entities'][_0xd63fcd(0x148)](_0x33a34e)?this[_0xd63fcd(0x2ea)][_0xd63fcd(0x20c)](_0x33a34e)['cursorInfo$']:this['_entityInit$'][_0xd63fcd(0x1db)](d['filter'](_0x225602=>_0x225602[_0xd63fcd(0x2d8)]===_0x33a34e),d[_0xd63fcd(0x2ab)](_0x144ccd=>_0x144ccd[_0xd63fcd(0x2b4)]));}[_0x320bb0(0x113)](){const _0x4eef9b=_0x320bb0;this[_0x4eef9b(0x116)][_0x4eef9b(0x1b0)](a[_0x4eef9b(0x282)][_0x4eef9b(0x1da)])[_0x4eef9b(0x1db)](d[_0x4eef9b(0x10f)](this['dispose$']))[_0x4eef9b(0x283)](async _0x213959=>{const _0x3bacfe=_0x4eef9b,_0x276641=_0x213959[_0x3bacfe(0x2b2)](),_0x1d757b=await this[_0x3bacfe(0x15c)](_0x276641);this[_0x3bacfe(0xbc)][_0x3bacfe(0x213)](_0x1d757b),this[_0x3bacfe(0x2ea)]['set'](_0x276641,_0x1d757b);}),this[_0x4eef9b(0x116)]['getTypeOfUnitAdded$'](a[_0x4eef9b(0x282)][_0x4eef9b(0x163)])[_0x4eef9b(0x1db)](d['takeUntil'](this['dispose$']))[_0x4eef9b(0x1db)](d[_0x4eef9b(0x2de)](_0x349de2=>!_0x349de2[_0x4eef9b(0x2b2)]()[_0x4eef9b(0x27c)]('__')))[_0x4eef9b(0x283)](async _0x591c40=>{const _0x3ec0d6=_0x4eef9b,_0x5c5dd6=_0x591c40[_0x3ec0d6(0x2b2)](),_0x4718a3=await this[_0x3ec0d6(0x2ce)](_0x5c5dd6);this[_0x3ec0d6(0xbc)][_0x3ec0d6(0x213)](_0x4718a3),this[_0x3ec0d6(0x2ea)][_0x3ec0d6(0xfe)](_0x5c5dd6,_0x4718a3);}),d['merge'](this['_univerInstanceService'][_0x4eef9b(0x2a6)](a[_0x4eef9b(0x282)][_0x4eef9b(0x163)]),this[_0x4eef9b(0x116)][_0x4eef9b(0x2a6)](a['UniverInstanceType'][_0x4eef9b(0x1da)]))[_0x4eef9b(0x1db)](d['takeUntil'](this[_0x4eef9b(0x16e)]))['subscribe'](_0x4602b7=>{const _0x2d86ce=_0x4eef9b,_0x1608a1=_0x4602b7[_0x2d86ce(0x2b2)](),_0x559e41=this[_0x2d86ce(0x2ea)]['get'](_0x1608a1);_0x559e41&&(_0x559e41['dispose'](),this[_0x2d86ce(0x2ea)][_0x2d86ce(0x1c5)](_0x1608a1));});}async[_0x320bb0(0x15c)](_0xd697b6){const _0x1ced19=_0x320bb0,_0xeb1e2d=await this['_collabSessionService']['requireSession'](_0xd697b6),_0x4dd9d6=this[_0x1ced19(0x303)][_0x1ced19(0x285)](Ie,_0xd697b6,_0xeb1e2d);return _0x4dd9d6['init'](),_0x4dd9d6;}async[_0x320bb0(0x2ce)](_0x389976){const _0x49a6c6=_0x320bb0,_0x4fa819=await this['_collabSessionService'][_0x49a6c6(0x24d)](_0x389976),_0x26a0f2=this['_injector'][_0x49a6c6(0x285)](Se,_0x389976,_0x4fa819);return _0x26a0f2[_0x49a6c6(0x182)](),_0x26a0f2;}};x=lt([ie(0x0,a[_0x320bb0(0x1e1)]),ie(0x1,a[_0x320bb0(0x122)](a['Injector'])),ie(0x2,a[_0x320bb0(0x122)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x14b0a9,_0x522797){const _0x2281b9=_0x320bb0;let {radius:_0x5ad50a,width:_0x25feee,height:_0x5ea971}=_0x522797;_0x5ad50a=_0x5ad50a!=null?_0x5ad50a:0x0,_0x25feee=_0x25feee!=null?_0x25feee:0x1e,_0x5ea971=_0x5ea971!=null?_0x5ea971:0x1e;let _0x233a2c=0x0,_0x17a039=0x0,_0xa2f064=0x0;_0x233a2c=_0x17a039=_0xa2f064=Math[_0x2281b9(0xd2)](_0x5ad50a,_0x25feee/0x2,_0x5ea971/0x2),_0x14b0a9[_0x2281b9(0x86)](),_0x14b0a9[_0x2281b9(0xcb)](_0x233a2c,0x0),_0x14b0a9[_0x2281b9(0x2f1)](_0x25feee-_0x17a039,0x0),_0x14b0a9[_0x2281b9(0x2ee)](_0x25feee-_0x17a039,_0x17a039,_0x17a039,Math['PI']*0x3/0x2,0x0,!0x1),_0x14b0a9[_0x2281b9(0x2f1)](_0x25feee,_0x5ea971-_0xa2f064),_0x14b0a9[_0x2281b9(0x2ee)](_0x25feee-_0xa2f064,_0x5ea971-_0xa2f064,_0xa2f064,0x0,Math['PI']/0x2,!0x1),_0x14b0a9[_0x2281b9(0x2f1)](0x0,_0x5ea971),_0x14b0a9[_0x2281b9(0x2f1)](0x0,_0x233a2c),_0x14b0a9[_0x2281b9(0x2ee)](_0x233a2c,_0x233a2c,_0x233a2c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14b0a9[_0x2281b9(0x25e)](),_0x522797[_0x2281b9(0x2c3)]&&(_0x14b0a9[_0x2281b9(0x1a4)](),_0x14b0a9['fillStyle']=_0x522797[_0x2281b9(0x2c3)],_0x522797['fillRule']===_0x2281b9(0x7e)?_0x14b0a9[_0x2281b9(0x2c3)](_0x2281b9(0x7e)):_0x14b0a9[_0x2281b9(0x2c3)](),_0x14b0a9[_0x2281b9(0x2ed)]());}class te extends p[_0x320bb0(0x2f7)]{constructor(_0x46f8e3,_0x13d52c){const _0x26152b=_0x320bb0;super(_0x46f8e3,_0x13d52c),_(this,_0x26152b(0x1cb)),_(this,_0x26152b(0x269)),(this[_0x26152b(0x1cb)]=_0x13d52c==null?void 0x0:_0x13d52c['color'],this[_0x26152b(0x269)]=_0x13d52c==null?void 0x0:_0x13d52c[_0x26152b(0x269)]);}static[_0x320bb0(0x150)](_0x12a634,_0x5597c5){const _0x16d5e2=_0x320bb0,{text:_0x1335a7,color:_0xaae4cc}=_0x5597c5;_0x12a634[_0x16d5e2(0x1a4)](),_0x12a634[_0x16d5e2(0x29f)]=_0x16d5e2(0x2fc);const _0x2281b0=_0x12a634[_0x16d5e2(0x25c)](_0x1335a7)[_0x16d5e2(0x223)],_0x270e05=Math['min'](_0x2281b0+0x2*re,De);ht(_0x12a634,{'height':K,'radius':0x4,'width':_0x270e05,'fill':_0xaae4cc}),_0x12a634['fillStyle']='#FFF';const _0x1a3f0=re,_0x916c28=K-_t,_0x5c64cc=De-0x2*re;if(_0x2281b0>_0x5c64cc){let _0x17d971='',_0x5a0498=0x0;for(const _0xa5eb6d of _0x1335a7){const _0x2862cc=_0x12a634[_0x16d5e2(0x25c)](_0xa5eb6d)[_0x16d5e2(0x223)];if(_0x5a0498+_0x2862cc<=_0x5c64cc-_0x12a634[_0x16d5e2(0x25c)]('...')['width'])_0x17d971+=_0xa5eb6d,_0x5a0498+=_0x2862cc;else{_0x17d971+='...';break;}}_0x12a634[_0x16d5e2(0x279)](_0x17d971,_0x1a3f0,_0x916c28);}else _0x12a634[_0x16d5e2(0x279)](_0x1335a7,_0x1a3f0,_0x916c28);_0x12a634[_0x16d5e2(0x2ed)]();}['_draw'](_0x5416e1){const _0xda1944=_0x320bb0;te[_0xda1944(0x150)](_0x5416e1,this);}}const oe='collab-text-anchor-',ut=_0x320bb0(0x27b),dt=_0x320bb0(0x2bb),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x320bb0(0x2ac);class Ue{constructor(_0x2e9374,_0xb72626,_0x1ec9c0,_0x26116c){const _0x1405db=_0x320bb0;_(this,'_shapes',[]),_(this,_0x1405db(0x27f),null),_(this,_0x1405db(0xcf),null),_(this,_0x1405db(0x2dd),null),_(this,'_hideTimer',null),_(this,_0x1405db(0x1a7),null),(this['_cursor']=_0x2e9374,this[_0x1405db(0xe4)]=_0xb72626,this['_docSkeleton']=_0x1ec9c0,this[_0x1405db(0x12b)]=_0x26116c,this[_0x1405db(0x2d7)]());}set[_0x320bb0(0x1cc)](_0x19f9c0){const _0xf39bfc=_0x320bb0;_0x19f9c0?(this[_0xf39bfc(0x2dd)]&&this['_anchorDot'][_0xf39bfc(0x21e)](),this[_0xf39bfc(0xcf)]&&this['_textBubble']['show']()):(this[_0xf39bfc(0x2dd)]&&this[_0xf39bfc(0x2dd)][_0xf39bfc(0x13f)](),this[_0xf39bfc(0xcf)]&&this[_0xf39bfc(0xcf)][_0xf39bfc(0x21e)]());}[_0x320bb0(0x2df)](){const _0x2189a9=_0x320bb0;for(const _0x3c7ea1 of this[_0x2189a9(0x144)])_0x3c7ea1[_0x2189a9(0x2df)]();this[_0x2189a9(0xcf)]&&this[_0x2189a9(0xcf)][_0x2189a9(0x2df)](),this[_0x2189a9(0x2dd)]&&this['_anchorDot']['dispose'](),this[_0x2189a9(0x27f)]&&this[_0x2189a9(0x27f)][_0x2189a9(0x2df)](),this[_0x2189a9(0x1a7)]&&this[_0x2189a9(0x1a7)]();}[_0x320bb0(0x2d7)](){const _0x3a2fa2=_0x320bb0;var _0x5d763b;const {_docSkeleton:_0x57fe64,_document:_0x19c94b}=this,{color:_0x3946f3,name:_0x5a5866,ranges:_0x439e0e}=this[_0x3a2fa2(0x2a5)],_0xa1a120=_0x19c94b['getOffsetConfig'](),{docsLeft:_0x344ba5,docsTop:_0x28ccb1}=_0xa1a120,_0x416aaa=new b['NodePositionConvertToCursor'](_0xa1a120,_0x57fe64);for(const {startOffset:_0x1f58ff,endOffset:_0x39dc36,rangeType:_0x3445c6,segmentId:_0x205670,segmentPage:_0x457294,collapsed:_0xd907c6,isActive:_0x4fdd20}of _0x439e0e){const _0xf51d76=_0x57fe64[_0x3a2fa2(0x1c7)](_0x1f58ff,!0x0,_0x205670,_0x457294);let _0x336e01=_0x57fe64[_0x3a2fa2(0x1c7)](_0x39dc36,!0x0,_0x205670,_0x457294);if(_0x336e01==null&&(_0x336e01=_0x57fe64[_0x3a2fa2(0x1c7)](_0x39dc36-0x1,!0x1,_0x205670,_0x457294)),_0x4fdd20){const {contentBoxPointGroup:_0x4e211e}=_0x416aaa['getRangePointData'](_0x336e01,_0x336e01);if(_0x4e211e[_0x3a2fa2(0x1f8)]===0x0)continue;this[_0x3a2fa2(0x1f1)](_0x3946f3,_0x4e211e,_0x344ba5,_0x28ccb1,_0x5a5866),this['_eventUnsubscribe']=this[_0x3a2fa2(0x2c6)]();}if(_0xf51d76&&_0x336e01){if(_0x3445c6===a[_0x3a2fa2(0x1b1)]['RECT']){const _0x510045=new b['NodePositionConvertToRectRange'](_0xa1a120,_0x57fe64),{pointGroup:_0x5a017b}=(_0x5d763b=_0x510045[_0x3a2fa2(0x281)](_0xf51d76,_0x336e01))!=null?_0x5d763b:{};if(_0x5a017b==null||_0x5a017b[_0x3a2fa2(0x1f8)]===0x0)continue;this['_drawRectRange'](_0x3946f3,_0x5a017b,_0x344ba5,_0x28ccb1);}else{if(!_0xd907c6){const {borderBoxPointGroup:_0x17ad69}=_0x416aaa[_0x3a2fa2(0x281)](_0xf51d76,_0x336e01);if(_0x17ad69[_0x3a2fa2(0x1f8)]===0x0)continue;this[_0x3a2fa2(0x114)](_0x3946f3,_0x17ad69,_0x344ba5,_0x28ccb1);}}}}}[_0x320bb0(0x1f1)](_0x440a02,_0x5e1ddc,_0x18078b,_0x44b9cf,_0x4fc610){const _0x18a83d=_0x320bb0,_0x5bfefb=this[_0x18a83d(0x21c)](_0x5e1ddc),{left:_0x40f549,top:_0x14fa11,height:_0x53e426}=_0x5bfefb,_0x40e90b=this[_0x18a83d(0x1d7)](),_0x1fbfa5=St/_0x40e90b,_0x16aaa5=new p[(_0x18a83d(0x21a))](oe+a[_0x18a83d(0x1d5)][_0x18a83d(0x16b)](k),{'left':_0x40f549+_0x18078b-_0x1fbfa5,'top':_0x14fa11+_0x44b9cf,'height':_0x53e426,'width':ft,'fill':_0x440a02||p[_0x18a83d(0x297)](a[_0x18a83d(0xb8)][_0x18a83d(0x98)],0x0),'strokeWidth':_0x1fbfa5,'stroke':It,'evented':!0x0});this[_0x18a83d(0x27f)]=_0x16aaa5,this['_scene'][_0x18a83d(0x287)](_0x16aaa5,b[_0x18a83d(0x7f)]);const _0xff0886=new p[(_0x18a83d(0x21a))](oe+a[_0x18a83d(0x1d5)]['generateRandomId'](k),{'left':_0x40f549+_0x18078b-_0x1fbfa5,'top':_0x14fa11+_0x44b9cf-ae/0x2,'height':ae,'width':ae,'fill':_0x440a02||p[_0x18a83d(0x297)](a['COLORS'][_0x18a83d(0x98)],0x0),'strokeWidth':0x0,'stroke':_0x440a02||p[_0x18a83d(0x297)](a[_0x18a83d(0xb8)][_0x18a83d(0x98)],0x0),'evented':!0x1});this[_0x18a83d(0x2dd)]=_0xff0886,this[_0x18a83d(0xe4)]['addObject'](_0xff0886,b[_0x18a83d(0x7f)]);const _0x2ac130=new te(oe+a['Tools'][_0x18a83d(0x16b)](k),{'left':_0x40f549+_0x18078b-_0x1fbfa5,'top':_0x14fa11+_0x44b9cf-K,'text':_0x4fc610,'color':_0x440a02});this[_0x18a83d(0xcf)]=_0x2ac130,this[_0x18a83d(0xe4)]['addObject'](_0x2ac130,b['TEXT_RANGE_LAYER_INDEX']),this[_0x18a83d(0x1cc)]=!0x1;}[_0x320bb0(0x2c6)](){const _0x8ef33=_0x320bb0,_0x3da0a5=this[_0x8ef33(0x27f)]['onPointerEnter$'][_0x8ef33(0x205)](()=>{const _0x40c37a=_0x8ef33;this[_0x40c37a(0x1cc)]=!0x0;}),_0x25739c=this[_0x8ef33(0x27f)]['onPointerLeave$'][_0x8ef33(0x205)](()=>{const _0x6915cb=_0x8ef33;this[_0x6915cb(0x2bc)]&&clearTimeout(this['_hideTimer']),this[_0x6915cb(0x2bc)]=setTimeout(()=>{const _0x39e3da=_0x6915cb;this[_0x39e3da(0x1cc)]=!0x1;},0x7d0);});return()=>{const _0x1a0e71=_0x8ef33;_0x3da0a5[_0x1a0e71(0x164)](),_0x25739c[_0x1a0e71(0x164)]();};}[_0x320bb0(0x114)](_0x1b0e5d,_0x3f840c,_0x5c0d7c,_0x2cbb76){const _0x1192fe=_0x320bb0,_0x11ad15=new a[(_0x1192fe(0x204))](_0x1b0e5d)[_0x1192fe(0x1b8)](0.2)[_0x1192fe(0x306)](),_0x5a275e=new p[(_0x1192fe(0x27a))](ut+a[_0x1192fe(0x1d5)][_0x1192fe(0x16b)](k),{'pointsGroup':_0x3f840c,'fill':_0x11ad15||p[_0x1192fe(0x297)](a[_0x1192fe(0xb8)][_0x1192fe(0x98)],0.2),'left':_0x5c0d7c,'top':_0x2cbb76,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1192fe(0x144)]['push'](_0x5a275e),this[_0x1192fe(0xe4)]['addObject'](_0x5a275e,b[_0x1192fe(0x7f)]);}['_drawRectRange'](_0xcac26b,_0x1e3d91,_0x3914df,_0x20fdd0){const _0xfc7431=_0x320bb0,_0x2f2a4c=new a[(_0xfc7431(0x204))](_0xcac26b)['setAlpha'](0.2)[_0xfc7431(0x306)](),_0x1ba9d9=new p[(_0xfc7431(0x27a))](dt+a[_0xfc7431(0x1d5)][_0xfc7431(0x16b)](k),{'pointsGroup':_0x1e3d91,'fill':_0x2f2a4c||p[_0xfc7431(0x297)](a[_0xfc7431(0xb8)][_0xfc7431(0x98)],0.2),'left':_0x3914df,'top':_0x20fdd0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xfc7431(0x144)][_0xfc7431(0x2f5)](_0x1ba9d9),this[_0xfc7431(0xe4)][_0xfc7431(0x287)](_0x1ba9d9,b[_0xfc7431(0x7f)]);}[_0x320bb0(0x21c)](_0x168b6b){const _0x4b0d79=_0x168b6b[0x0],_0x32b5c2=_0x4b0d79[0x0],_0x491f86=_0x4b0d79[0x2],{x:_0xb1f939,y:_0x77c516}=_0x32b5c2,{x:_0x553c88,y:_0x4d391b}=_0x491f86;return{'left':_0xb1f939,'top':_0x77c516,'width':_0x553c88-_0xb1f939,'height':_0x4d391b-_0x77c516};}['_getScale'](){const _0x4158d6=_0x320bb0,{scaleX:_0x47b346,scaleY:_0x1fa53f}=this[_0x4158d6(0xe4)][_0x4158d6(0xd4)]();return Math[_0x4158d6(0x203)](_0x47b346,_0x1fa53f);}}var vt=Object[_0x320bb0(0x1a2)],gt=(_0x574f06,_0x14915c,_0x34509a,_0x12a8cc)=>{const _0x53c4c9=_0x320bb0;for(var _0x1762d4=_0x12a8cc>0x1?void 0x0:_0x12a8cc?vt(_0x14915c,_0x34509a):_0x14915c,_0x4fc745=_0x574f06[_0x53c4c9(0x1f8)]-0x1,_0x57212f;_0x4fc745>=0x0;_0x4fc745--)(_0x57212f=_0x574f06[_0x4fc745])&&(_0x1762d4=_0x57212f(_0x1762d4)||_0x1762d4);return _0x1762d4;},V=(_0x498aa3,_0x559d1f)=>(_0x276b25,_0x140b85)=>_0x559d1f(_0x276b25,_0x140b85,_0x498aa3);let ve=class extends a[_0x320bb0(0x133)]{constructor(_0x5a20fc,_0x2e7364,_0x5c3728,_0x359213,_0x2d2efe){const _0x7dccd3=_0x320bb0;super(),_(this,_0x7dccd3(0xd6),[]),_(this,'_cursors',[]),(this['_context']=_0x5a20fc,this[_0x7dccd3(0x17b)]=_0x2e7364,this[_0x7dccd3(0xbd)]=_0x5c3728,this[_0x7dccd3(0xa7)]=_0x359213,this[_0x7dccd3(0xcc)]=_0x2d2efe,this[_0x7dccd3(0x113)]());}[_0x320bb0(0x113)](){const _0xa1b63a=_0x320bb0,_0xae120f=this[_0xa1b63a(0xd0)][_0xa1b63a(0x237)],_0x320927=this[_0xa1b63a(0x17b)];this[_0xa1b63a(0x10a)](d[_0xa1b63a(0x299)]([this[_0xa1b63a(0xbd)]['getCollabCursors$'](_0xae120f),this['_themeService']['currentTheme$']])[_0xa1b63a(0x1db)]($[_0xa1b63a(0x117)](([_0x5a16dc,_0x19c7a2])=>({'skeleton':_0x320927[_0xa1b63a(0xeb)](),'cursors':[..._0x5a16dc['values']()][_0xa1b63a(0x2ef)](_0x314188=>({..._0x314188,'color':_0x19c7a2[_0x314188[_0xa1b63a(0x1cb)]]}))})))['subscribe'](_0x38642a=>{const _0x4ac5f6=_0xa1b63a;if(this[_0x4ac5f6(0x2dc)](),_0x38642a){const {skeleton:_0x1f2381,cursors:_0x32471a}=_0x38642a;this[_0x4ac5f6(0x24b)](_0x1f2381,_0x32471a);}})),this[_0xa1b63a(0x21b)](),this[_0xa1b63a(0x260)]();}[_0x320bb0(0x24b)](_0x3fd308,_0x5e8105){const _0x2e71bd=_0x320bb0,{scene:_0x225e33,mainComponent:_0x4b1e0b}=this['_context'],_0x36d21b=_0x5e8105[_0x2e71bd(0x117)](_0x5e703a=>new Ue(_0x5e703a,_0x225e33,_0x3fd308,_0x4b1e0b));this[_0x2e71bd(0xd6)]=_0x36d21b,this[_0x2e71bd(0x251)]=_0x5e8105;}['_refreshCollabCursors'](){const _0x5d32d2=_0x320bb0;this['_removeCollabCursors']();const {scene:_0x12dbd7,mainComponent:_0x1bca61}=this[_0x5d32d2(0xd0)],_0x1b3c7c=this[_0x5d32d2(0x17b)]['getSkeleton'](),_0x338363=this[_0x5d32d2(0x251)][_0x5d32d2(0x117)](_0x1237bc=>new Ue(_0x1237bc,_0x12dbd7,_0x1b3c7c,_0x1bca61));this[_0x5d32d2(0xd6)]=_0x338363;}['_removeCollabCursors'](){const _0x2891e8=_0x320bb0;this[_0x2891e8(0xd6)][_0x2891e8(0xad)](_0x4a5b68=>_0x4a5b68['dispose']()),this[_0x2891e8(0xd6)]=[];}[_0x320bb0(0x260)](){const _0x1d6d91=_0x320bb0,_0x531010=[b[_0x1d6d91(0x239)]['id']];this['disposeWithMe'](this[_0x1d6d91(0xa7)]['onCommandExecuted'](_0x44727e=>{const _0x1d8692=_0x1d6d91;_0x531010[_0x1d8692(0x308)](_0x44727e['id'])&&_0x44727e['params'][_0x1d8692(0x237)]===this[_0x1d8692(0xd0)][_0x1d8692(0x237)]&&this[_0x1d8692(0xd3)]();}));}[_0x320bb0(0x21b)](){const _0x290e35=_0x320bb0;this['disposeWithMe'](a[_0x290e35(0x1f3)](this[_0x290e35(0xd0)][_0x290e35(0x1fc)][_0x290e35(0x17f)])[_0x290e35(0x1db)]($[_0x290e35(0x2de)](_0xb6cb7e=>_0xb6cb7e['type']===p[_0x290e35(0x1d1)][_0x290e35(0x197)]),$['throttleTime'](0x10))[_0x290e35(0x283)](()=>{const _0x545a7e=_0x290e35;this[_0x545a7e(0xd3)]();}));}};function _0x116d(){const _0x229990=['combineLatest','clsx','apply','transformMutationsWithChangeset','APPLY_REJECT','concat','font','rxjs','_initDependencies','code','APPLY_REVISION_CONFILICT','add','_cursor','getTypeOfUnitDisposed$','CommandType','IDocClipboardService','loadOfflineData','debounce','switchMap','rgba(255,\x20255,\x20255,\x200.01)','_notificationService','eventID','row','body','current','getUnitId','on-line-single','cursorInfo$','RemoveRowCommandId','_docTransformSelectionsService','USER_NOT_INVITED_CODE','CHANGESET_REVISION_CONFILICT','post','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collab-rect-range-','_hideTimer','RemoveColCommandId','UnitStatus','getConfig','onCommandExecuted','_heartbeatTimer','defIds','fill','getMergeData','setStateCache','_handleHover','debounceTime','OTHER_CLIENT_EDITING','getMember','result','Failed','assignAColorForMemberID','runOnServer','_startDocCollabCursor','params','VIEW_MAIN','whenReady','getUndoRedoMutationParamsCache','_onRefRangeChange','ONLINE','bottom','key','_render','unitID','off-line-single','DocSkeletonManagerService','executeCommand','_removeCollabCursors','_anchorDot','filter','dispose','getCurrentRevOfUnit','getOwnPropertySymbols','_getSheetObject','isArray','InsertRangeMoveRightCommandId','RemoteUniscriptService','_initStatusListener','event$','SNAPSHOT_HAS_BEEN_REMOVED','unload','_entities','registerDependencies','contains','restore','arc','flatMap','univer-offline','lineTo','_send','url(#$1','error','push','transformMutation','Shape','replaceState','collabStatus.offline','debug','#fff','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','UNDEFINED','_color','INVITE_CODE_REQUIRED','getVpScrollXYInfoByPosToVp','undoState','LICENSE_DISTRO_REJECTED','_injector','_saveCache','TEXT','toRgbString','executionId','includes','TOO_MANY_REQUESTS','cursorInfo','stringify','Error','activeSheet$','evenodd','TEXT_RANGE_LAYER_INDEX','NO_OTHER_CLIENTS_EDITING','session.collaboration-timeout','MUTATION','collabStatus.notCollab','_onCursorDelete','CONFLICT','beginPath','PERMISSION_DENIED','IBeforeCloseService','_docTransformIMECacheService','children','getValue','getRelativeToViewportCoord','runId','_docTransformStateCacheService','jiqing500','_transformPreviousActiveRange','triggerDblclick','transformByState','invokeId','colorChannel1','getUnitStatus$','isTransformMutationsWithChangesetSuccess','getMemberID','black','saveTaskMap','icon','YUUMI_SUBSCRIPTION_NOT_FOUND','@univerjs/docs','runRefRangeMutations','syncEditingCollabCursor','addHandlerCallback','DocIMEInputManagerService','_localeService','react','currentTheme$','FromArray','@univerjs-pro/collaboration-client','_instanceService','_commandService','MOBILE_HAS_BEEN_BOUND','SheetSkeletonManagerService','EffectRefRangId','editingUnit','_scheduleHeartbeat','forEach','onPointerMove$','setInterval','_syncEditingCollabCursorService','getCollabCursors$','_initEvent','uni.network.url-service','ILocalStorageService','_removeClearOtherTimer','memberID','onPointerLeave$','COLORS','wsSessionTicketUrl','@univerjs/engine-formula','_localCacheService','_entityInit$','_collabCursorController','Subject','_transformHistoryAndStateStack','LOCAL_CACHE_INTERVAL_KEY','search','currentColor','onlineStatusIcon','DocSelectionManagerService','extend','then','getDocRanges','clearTimeout','xlink:href','EMAIL_HAS_BEEN_BOUND','moveTo','_themeService','selection','APPLY_NON_SEQUENTIAL_REVISION','_textBubble','_context','_ensureSubject','min','_refreshCollabCursors','getAncestorScale','_id','_cursorShapes','replace','@univerjs/sheets','_sheetSkeletonManagerService','registerComponent','round','transformSelections','OffLineSingle','imageSourceType','PENDING','roomMembers','setTimeout','_onCursorUpdate','isTransformMutationFailure','_scene','@univerjs/drawing','univer-online-status','SUBMIT_CHANGESET_TIMEOUT','getCoordByCell','BuiltInUIPart','_scheduleSaving','getSkeleton','disableLocalCache','1726040ZTSbFX','WebSocketService','storage','BehaviorSubject','Workbook','OFFLINE','_handleHeartbeatEvent','_updateLocalCursor','rxjs/operators','_uiPartsService','height','_registerRenderDependencies','ENSURE_SNAPSHOT_EXECUTION','endColumn','getCellPositionByOffset','handleMoveRange','FETCH_MISS','set','propertyIsEnumerable','addEventListener','session.will-retry','ticket','_config','6136750HAPMbt','_getMergeRange','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','touchDependencies','url(#off-line-single_clip0_910_343)','backgroundColor','disposeWithMe','distinctUntilChanged','univer-flex\x20univer-items-center','range','ILogService','takeUntil','LocaleService','Unknown\x20user','prototype','_init','_drawTextRange','APPLY_DUPLICATED','_univerInstanceService','map','_transformUndoRedoStack','7gvJTeb','clearInterval','enableLocalCache','IUIPartsService','mutations','makeDirty','pluginName','RevisionService','getSheetBySheetId','Inject','_handleJoinEvent','LOGIN_FAILED','_collabSessionService','UNRECOGNIZED','origin','[CollaborationDataLoaderController]','USERS_LEAVE','function','_document','merge','createSocket','collaboration.closeRoom','DependentOn','SetWorksheetActivateCommand','loadUnit','collabStatus.conflict','RxDisposable','className','IMessageService','_getSaveTimeout','MoveRangeCommandId','hasOwnProperty','saveImage','ThemeService','handleDeleteRangeMoveLeft','getCurrentSelections','CollaborationDataLoaderController','NOT_COLLAB','show','sessionTicket','_backgroundColor','popstate','transform','_shapes','doc.mutation.rich-text-editing','registerRenderModule','getSheetId','has','location','INVALID_INVITE_CODE','_name','removeParam','roomMembers$','6256686ZBUuZx','@univerjs/engine-render','drawWith','APPLY_PERMISSION_DENIED','urlChange$','UniverCollaborationClientPlugin','currentSkeleton$','serializeRangeWithSheet','_configService','OnLineSingle','CollaborationEvent','complete','transformIMECache','href','_startSheetCollabCursor','split','LICENSE_MAX_UNITS_EXCEEDED','idSuffix','_initStatusComponent','@univerjs/rpc','_assignedColors','UNIVER_DOC','unsubscribe','_toggleOnline','0\x200\x2016\x2016','gold400','_range','YUUMI_URL_COL_OUT_OF_RANGE','symbol','generateRandomId','all','DeleteRangeMoveLeftCommandId','dispose$','createIdentifier','collabCursorState$','INVALID_ARGUMENT','_disabled','trim','ALREADY_EXISTS','_roomMembers$','setParam','blue400','1em','data','Vector2','_docSkeletonManagerService','_labelPosition','OTHER_CLIENTS_EDITING','getUnhiddenWorksheets','onTransformChange$','send','collab-client.tooltip.reconnect','init','entries','M0\x200H16V16H0z','SYNCED','UNAUTHENTICATED','ICommandService','transformRemoteChangeset','_refRangeService','99kTACzf','_messageService','Warning','@univerjs/design','YUUMI_RATE_OVER_LIMIT','handleInsertRangeMoveDown','startRow','LICENSE_EXPORT_SIZE_EXCEEDED','useCallback','exhaustSavingTask','_collaborationUIEventService','SheetCollabCursorShape','onRendered','resize','BrowserCollaborationSocketService','unit','textRanges','substring','path','name','handleInsertRangeMoveRight','getCurrent','top','_imageIoService','getOwnPropertyDescriptor','_toggleOffline','save','searchParams','HTTPService','_eventUnsubscribe','4uBHXys','_memberService','YUUMI_UNABLE_LOAD_URL','CollaborationSocketService','indexOf','asObservable','verdancy600','PY_RUNTIME_SCRIPT_ERROR','getTypeOfUnitAdded$','DOC_RANGE_TYPE','updateOfflineData','DataLoaderService','IRemoteInstanceService','purple300','_online','newValue','setAlpha','InsertRowCommandId','_dataLoaderService','INVITE_CODE_ALREADY_BOUND','on-line-single_clip0_910_349','size','getItem','_colorIndex','values','getParam','setConfig','_clearOtherTimers','getStateCache','delete','univerjs-icon\x20univerjs-icon-','findNodePositionByCharIndex','DocStateChangeManagerService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','color','_hover','handleInsertRow','mapTo','shareReplay','_collabCursorState$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CollaborationController','DisposableCollection','redoState','Tools','582072eWrmXP','_getScale','_initEntityListener','COMPLETION_FINISHED','UNIVER_SHEET','pipe','CLOSE_ROOM','toDisposable','@univerjs/network','url(#on-line-single_clip0_910_349)','handleIRemoveCol','IUniverInstanceService','_status$','SOCKET_FAILED_RETRY','call','WECHAT_HAS_BEEN_BOUND','getActiveSheet','_revisionService','getRenderById','_setupBeforeClosingHandler','IConfigService','with','/run/','hovered','SNAPSHOT_INVALID_SNAPSHOT','ITransformService','assign','_drawAnchor','_beforeCloseService','fromEventSubject','permission.content','_urlService','Optional','handleIRemoveRow','length','_session','setItem','AWAITING','engine','_lastPointer','_httpService','INotificationService','onPointerEnter$','_setupSubUnitSync','_doCreateSocket','max','ColorKit','subscribeEvent','history','Injector','CollaborationStatus','Rectangle','DesktopCollaborationStatusDisplayController','column','get','m1Prime','sheetID','_collaborationController','_saveTaskMap','_updateSubUnitFromURLParams','collabStatus.fetchMiss','next','selections','ranges','_transformService','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_updateURLWithCurrentState','getFocusedUnit','Rect','_initResize','_getAnchorBounding','svg','hide','deepClone','createElement','from','Module','width','SessionStatus','_scheduleClearOtherTimer','InsertRangeMoveDownCommandId','_handleLeaveEvent','docStateChange$','IImageIoService','random','setUndoRedoMutationParamsCache','_logService','SHEET_VIEWPORT_KEY','mask','ILocalCacheService','1086290iAwiQJ','parse','onMouseMove','isActive','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','JOIN_ROOM_FAILED','@univerjs/core','unitId','string','SetDocZoomRatioOperation','addClipboardHook','HEADER_MENU','_renderManagerService','UPDATE_CURSOR','mergeOverrideWithDependencies','_docClipboardService','type','collaboration-client.offline-data-not-saved','AWAITING_WITH_PENDING','pushState','[RemoteUniscriptService]:\x20no\x20focused\x20unit','SetTextSelectionsOperation','div','focused$','sessionStatus$','translate(.97)','tag','_updateCollabCursors','_unitStatus','requireSession','jsx','MessageType','reconnect','_cursors','status$','_docStateChangeManagerService','1312761hkROQN','endRow','handleDeleteRangeMoveUp','handleInsertCol','_docSyncEditingCollabCursorService','unshift','transformStateCache','attrs','measureText','_localStorageService','closePath','Disposable','_initCommandExecutedListener','CONNECTOR_DATA_TOO_LARGE','univer-online-status-icon','collabStatus.syncing','skeleton','use','848213oflRwT','@univerjs/sheets-ui','LICENSE_IMPORT_SIZE_EXCEEDED','text','_cursorInfo$','_unitOnClients','getUniverSheetInstance','fromEvent','@univerjs/ui','DEFAULT_WS_SESSION_TICKET_URL','registerRefRange','displayName','red300','clipPath','_selfUnitIDs','setShapeProps','actions','toString','_cachedData','fillText','RegularPolygon','collab-text-range-','startsWith','useDependency','_createSocketURL','_anchor','saveOfflineData','getRangePointData','UniverInstanceType','subscribe','CollaborationUIEventId','createInstance','DeleteRangeMoveUpCommandId','addObject','useObservable','MemberService','IRenderManagerService','m2Prime','DocCollaborationEntity','subunit','defs','INTERNAL_ERROR','collabStatus.synced','forwardRef','UniverCollaborationClientUIPlugin','some','LOCAL_CACHE_INTERVAL','setActiveRange','Plugin','getColor','_colorAssignService'];_0x116d=function(){return _0x229990;};return _0x116d();}ve=gt([V(0x1,a['Inject'](Y[_0x320bb0(0x2da)])),V(0x2,a['Inject'](x)),V(0x3,a[_0x320bb0(0x187)]),V(0x4,a['Inject'](a[_0x320bb0(0x13a)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x320bb0(0x2f7)]{constructor(_0x305cce,_0x2853f1){const _0x5247af=_0x320bb0;super(_0x305cce,_0x2853f1),_(this,_0x5247af(0x2fe)),_(this,'_hovered',!0x1),_(this,_0x5247af(0x168)),_(this,_0x5247af(0x14b),''),_(this,_0x5247af(0x17c),_0x5247af(0x1a0)),_(this,_0x5247af(0x141)),(_0x2853f1&&this[_0x5247af(0x275)](_0x2853f1),this[_0x5247af(0x200)][_0x5247af(0x205)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5247af(0xb7)]['subscribeEvent'](()=>this[_0x5247af(0x275)]({'hovered':!0x1})));}[_0x320bb0(0x275)](_0x46e44d){const _0xac17e1=_0x320bb0;var _0x525b55,_0x7ad7a,_0x58679f,_0x3e97ce,_0x244dbc,_0x5e9537;this[_0xac17e1(0x2fe)]=(_0x525b55=_0x46e44d['color'])!=null?_0x525b55:this[_0xac17e1(0x2fe)],this['_hovered']=(_0x7ad7a=_0x46e44d[_0xac17e1(0x1ed)])!=null?_0x7ad7a:this['_hovered'],this[_0xac17e1(0x168)]=(_0x58679f=_0x46e44d[_0xac17e1(0x10d)])!=null?_0x58679f:this[_0xac17e1(0x168)],this['_name']=(_0x3e97ce=_0x46e44d[_0xac17e1(0x19d)])!=null?_0x3e97ce:this[_0xac17e1(0x14b)],this[_0xac17e1(0x17c)]=(_0x244dbc=_0x46e44d['labelPosition'])!=null?_0x244dbc:this[_0xac17e1(0x17c)],this[_0xac17e1(0x141)]=(_0x5e9537=_0x46e44d[_0xac17e1(0x109)])!=null?_0x5e9537:this[_0xac17e1(0x141)],this[_0xac17e1(0x92)]({'width':_0x46e44d[_0xac17e1(0x223)],'height':_0x46e44d[_0xac17e1(0xf7)]});}[_0x320bb0(0x232)](_0x5169a8){const _0x2668a8=_0x320bb0,{row:_0x45e81a,column:_0x189156}=_0x5169a8;if(_0x45e81a>=this['_range'][_0x2668a8(0x190)]&&_0x45e81a<=this[_0x2668a8(0x168)][_0x2668a8(0x255)]&&_0x189156>=this[_0x2668a8(0x168)]['startColumn']&&_0x189156<=this[_0x2668a8(0x168)][_0x2668a8(0xfa)]){this[_0x2668a8(0x275)]({'hovered':!0x0});return;}this[_0x2668a8(0x275)]({'hovered':!0x1});}[_0x320bb0(0x91)](_0x11ce6b){return!0x1;}['_draw'](_0x36b8db){const _0xc5eb77=_0x320bb0;p[_0xc5eb77(0x21a)]['drawWith'](_0x36b8db,{'width':this['width'],'height':this[_0xc5eb77(0xf7)],'strokeWidth':Ct,'stroke':this[_0xc5eb77(0x2fe)],'evented':!0x1,'fill':this[_0xc5eb77(0x141)]}),this['_hovered']&&(_0x36b8db[_0xc5eb77(0x1a4)](),_0x36b8db[_0xc5eb77(0x143)](0x1,0x0,0x0,0x1,this[_0xc5eb77(0x223)],this['_labelPosition']===_0xc5eb77(0x2d5)?0x0:-0x14),te[_0xc5eb77(0x150)](_0x36b8db,{'text':this['_name'],'color':this[_0xc5eb77(0x2fe)]}),_0x36b8db['restore']());}}var pt=Object[_0x320bb0(0x1a2)],bt=(_0x467230,_0x29fa0b,_0x2f8969,_0xa25bf9)=>{const _0x4281dd=_0x320bb0;for(var _0x52e413=_0xa25bf9>0x1?void 0x0:_0xa25bf9?pt(_0x29fa0b,_0x2f8969):_0x29fa0b,_0x52fb2c=_0x467230[_0x4281dd(0x1f8)]-0x1,_0x2e1805;_0x52fb2c>=0x0;_0x52fb2c--)(_0x2e1805=_0x467230[_0x52fb2c])&&(_0x52e413=_0x2e1805(_0x52e413)||_0x52e413);return _0x52e413;},ce=(_0x396d2e,_0x24b60c)=>(_0x5afbf4,_0x413452)=>_0x24b60c(_0x5afbf4,_0x413452,_0x396d2e);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x5106c8,_0x131c8c,_0x2fc6cd,_0x2bdce2){const _0x221ae4=_0x320bb0;super(),_(this,_0x221ae4(0x251),new Set()),_(this,_0x221ae4(0x1fd),null),(this[_0x221ae4(0xd0)]=_0x5106c8,this[_0x221ae4(0xd9)]=_0x131c8c,this['_collabCursorController']=_0x2fc6cd,this['_themeService']=_0x2bdce2,this[_0x221ae4(0x113)]());}[_0x320bb0(0x113)](){const _0x57d4e3=_0x320bb0;this[_0x57d4e3(0xd9)][_0x57d4e3(0x154)][_0x57d4e3(0x1db)]($['takeUntil'](this['dispose$']),$['switchMap'](_0x246a7b=>{const _0x2fcb3a=_0x57d4e3;if(_0x246a7b){const _0x27138d=_0x246a7b['sheetId'];return d[_0x2fcb3a(0x299)](this[_0x2fcb3a(0xbd)][_0x2fcb3a(0xb1)](this[_0x2fcb3a(0xd0)][_0x2fcb3a(0x237)]),this[_0x2fcb3a(0xcc)][_0x2fcb3a(0xa3)])[_0x2fcb3a(0x1db)]($[_0x2fcb3a(0x117)](([_0x3f7241,_0x496f4c])=>{const _0x4d74b3=new Map();return _0x3f7241['forEach']((_0x823836,_0x70f201)=>{const _0x13fcae=_0x55af;if(_0x823836[_0x13fcae(0x20e)]===_0x27138d){const _0x22ffb6={..._0x823836};_0x22ffb6[_0x13fcae(0x1cb)]=_0x496f4c[_0x823836[_0x13fcae(0x1cb)]],_0x4d74b3[_0x13fcae(0xfe)](_0x70f201,_0x22ffb6);}}),{'skeleton':_0x246a7b,'cursors':_0x4d74b3};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x17db9f,cursors:_0x2a1150})=>{const _0x59f30f=_0x57d4e3;this['_removeCollabCursors'](),_0x17db9f&&this[_0x59f30f(0x24b)](_0x17db9f,_0x2a1150);}),this['_sheetSkeletonManagerService'][_0x57d4e3(0x154)]['subscribe'](_0x5d7388=>{const _0x37aced=_0x57d4e3;if(_0x5d7388==null)return;const {skeleton:_0x35640d}=_0x5d7388,{scene:_0x14a4e6}=this['_context'];_0x14a4e6[_0x37aced(0xae)][_0x37aced(0x205)](a[_0x37aced(0x2aa)](_0x4e1589=>{const _0x1f82a9=_0x37aced;var _0x5baae2,_0x8a52bd;const {offsetX:_0x2789ef,offsetY:_0x37135b}=_0x4e1589,{x:_0x48a2c1,y:_0x57daf8}=_0x14a4e6[_0x1f82a9(0x8c)](p[_0x1f82a9(0x17a)]['FromArray']([_0x2789ef,_0x37135b])),{scaleX:_0x31faa0,scaleY:_0x1dab78}=_0x14a4e6[_0x1f82a9(0xd4)](),_0x1c546a=_0x14a4e6['getViewport'](p[_0x1f82a9(0x22d)][_0x1f82a9(0x2d0)]),_0x47788b=_0x14a4e6[_0x1f82a9(0x300)](p['Vector2'][_0x1f82a9(0xa4)]([_0x48a2c1,_0x57daf8]),_0x1c546a),_0x12001d=_0x35640d[_0x1f82a9(0xfb)](_0x2789ef,_0x37135b,_0x31faa0,_0x1dab78,_0x47788b);((_0x5baae2=this[_0x1f82a9(0x1fd)])==null?void 0x0:_0x5baae2['column'])===_0x12001d[_0x1f82a9(0x20b)]&&((_0x8a52bd=this[_0x1f82a9(0x1fd)])==null?void 0x0:_0x8a52bd[_0x1f82a9(0x2af)])===_0x12001d[_0x1f82a9(0x2af)]||this['_cursors']['forEach'](_0x1579f7=>{_0x1579f7['onMouseMove'](_0x12001d);});},0x64));});}[_0x320bb0(0x24b)](_0x4318e4,_0x581590){const _0x3fcac0=_0x320bb0;var _0x365ab2;const _0x1443a2=(_0x365ab2=this[_0x3fcac0(0xd9)][_0x3fcac0(0x19f)]())==null?void 0x0:_0x365ab2[_0x3fcac0(0x264)];if(!_0x1443a2)return;const _0x5bb2a5=this['_getSheetObject']();if(!_0x5bb2a5)return;this[_0x3fcac0(0x251)][_0x3fcac0(0xad)](_0x72632a=>{const _0x1bbebb=_0x3fcac0;_0x72632a[_0x1bbebb(0x11e)]();});const {scene:_0x5b9d2d}=_0x5bb2a5,_0x185c99=Tt(Array[_0x3fcac0(0x221)](_0x581590[_0x3fcac0(0x1c0)]()))[_0x3fcac0(0x117)](_0x1f575b=>{const _0x141822=_0x3fcac0,{color:_0x454043,range:_0x32c9ac,name:_0x20c190,selection:_0x9c895c,sheetID:_0x21f749}=_0x1f575b,{startColumn:_0x397f02,startRow:_0xa579ae,endColumn:_0x562c42,endRow:_0x4b9969}=_0x32c9ac,_0x15924e=G[_0x141822(0xe8)](_0xa579ae,_0x397f02,_0x5b9d2d,_0x1443a2),_0x43d5b2=G[_0x141822(0xe8)](_0x4b9969,_0x562c42,_0x5b9d2d,_0x1443a2),{columnHeaderHeightAndMarginTop:_0x419efc}=_0x1443a2,{startX:_0x5c42c4,startY:_0x4eb8e5}=_0x15924e,{endX:_0x4dc13f,endY:_0x1e43f7}=_0x43d5b2,_0x3b2301=_0x4dc13f-_0x5c42c4,_0x2b9705=_0x1e43f7-_0x4eb8e5,_0x61454a={'labelPosition':_0x4eb8e5-_0x419efc>=K?_0x141822(0x1a0):_0x141822(0x2d5),'sheetID':_0x21f749,'range':_0x32c9ac,'color':_0x454043,'name':_0x20c190,'selection':_0x9c895c,'left':_0x5c42c4,'top':_0x4eb8e5,'width':_0x3b2301,'height':_0x2b9705,'evented':!0x1,'zIndex':Et};return new Ae(_0x20c190,_0x61454a);});_0x5b9d2d['addObjects'](_0x185c99,mt),this[_0x3fcac0(0x251)]=new Set(_0x185c99);}['_removeCollabCursors'](){const _0x5acf7c=_0x320bb0;var _0x51b154;(_0x51b154=this['_cursors'])==null||_0x51b154['forEach'](_0x52cba3=>_0x52cba3[_0x5acf7c(0x2df)]());}[_0x320bb0(0x2e2)](){const _0xda2653=_0x320bb0;return G['getSheetObject'](this['_context'][_0xda2653(0x199)],this[_0xda2653(0xd0)]);}};ge=bt([ce(0x1,a['Inject'](G[_0x320bb0(0xa9)])),ce(0x2,a['Inject'](x)),ce(0x3,a[_0x320bb0(0x122)](a[_0x320bb0(0x13a)]))],ge);function Tt(_0x2be209){const _0x4079f3=_0x320bb0,_0xcad536=new Map();return _0x2be209[_0x4079f3(0xad)](_0xd14fc1=>{const _0x3d7616=_0x4079f3;if(_0xcad536[_0x3d7616(0x148)](_0xd14fc1[_0x3d7616(0xcd)])){const _0x229dc3=_0xcad536['get'](_0xd14fc1[_0x3d7616(0xcd)]);_0x229dc3[_0x3d7616(0x19d)]+=',\x20'+_0xd14fc1[_0x3d7616(0x19d)];}else _0xcad536[_0x3d7616(0xfe)](_0xd14fc1[_0x3d7616(0xcd)],_0xd14fc1);}),Array[_0x4079f3(0x221)](_0xcad536[_0x4079f3(0x1c0)]());}var E=function(){const _0x3f4fb5=_0x320bb0;return E=Object[_0x3f4fb5(0x1f0)]||function(_0x663bce){const _0xf5d1aa=_0x3f4fb5;for(var _0xc59c06,_0x500540=0x1,_0x4b32bb=arguments[_0xf5d1aa(0x1f8)];_0x500540<_0x4b32bb;_0x500540++){_0xc59c06=arguments[_0x500540];for(var _0x14b67c in _0xc59c06)Object[_0xf5d1aa(0x112)][_0xf5d1aa(0x138)]['call'](_0xc59c06,_0x14b67c)&&(_0x663bce[_0x14b67c]=_0xc59c06[_0x14b67c]);}return _0x663bce;},E[_0x3f4fb5(0x29b)](this,arguments);},Rt=function(_0x50904c,_0xad832){const _0x4ef461=_0x320bb0;var _0x54b27d={};for(var _0x4f7328 in _0x50904c)Object[_0x4ef461(0x112)][_0x4ef461(0x138)][_0x4ef461(0x1e4)](_0x50904c,_0x4f7328)&&_0xad832['indexOf'](_0x4f7328)<0x0&&(_0x54b27d[_0x4f7328]=_0x50904c[_0x4f7328]);if(_0x50904c!=null&&typeof Object[_0x4ef461(0x2e1)]==_0x4ef461(0x12a)){for(var _0x5ba4f1=0x0,_0x4f7328=Object['getOwnPropertySymbols'](_0x50904c);_0x5ba4f1<_0x4f7328[_0x4ef461(0x1f8)];_0x5ba4f1++)_0xad832[_0x4ef461(0x1ac)](_0x4f7328[_0x5ba4f1])<0x0&&Object[_0x4ef461(0x112)][_0x4ef461(0xff)]['call'](_0x50904c,_0x4f7328[_0x5ba4f1])&&(_0x54b27d[_0x4f7328[_0x5ba4f1]]=_0x50904c[_0x4f7328[_0x5ba4f1]]);}return _0x54b27d;},be=M['forwardRef'](function(_0x45e42c,_0x55b94a){const _0x460fa9=_0x320bb0;var _0x4ca112=_0x45e42c[_0x460fa9(0x9a)],_0x14558a=_0x45e42c['id'],_0x3e44e7=_0x45e42c['className'],_0x47ba72=_0x45e42c[_0x460fa9(0xc5)],_0x2db3d5=Rt(_0x45e42c,[_0x460fa9(0x9a),'id',_0x460fa9(0x134),_0x460fa9(0xc5)]),_0x59d2a3=_0x460fa9(0x1c6)['concat'](_0x14558a,'\x20')['concat'](_0x3e44e7||'')[_0x460fa9(0x173)](),_0x20999e=M['useRef']('_'['concat'](Ut()));return ye(_0x4ca112,''[_0x460fa9(0x29e)](_0x14558a),{'defIds':_0x4ca112[_0x460fa9(0x2c2)],'idSuffix':_0x20999e[_0x460fa9(0x2b1)]},E({'ref':_0x55b94a,'className':_0x59d2a3},_0x2db3d5),_0x47ba72);});function ye(_0x3887d3,_0x31c377,_0x106fc0,_0x3ac64f,_0x8a54a4){const _0x415679=_0x320bb0;return M[_0x415679(0x220)](_0x3887d3[_0x415679(0x24a)],E(E({'key':_0x31c377},Ot(_0x3887d3,_0x106fc0,_0x8a54a4)),_0x3ac64f),(Dt(_0x3887d3,_0x106fc0)[_0x415679(0x8a)]||[])[_0x415679(0x117)](function(_0x48e26e,_0x443895){const _0x706abf=_0x415679;return ye(_0x48e26e,''[_0x706abf(0x29e)](_0x31c377,'-')[_0x706abf(0x29e)](_0x3887d3[_0x706abf(0x24a)],'-')['concat'](_0x443895),_0x106fc0,void 0x0,_0x8a54a4);}));}function Ot(_0x549f3c,_0x49cc8f,_0x3aaa26){const _0x40d753=_0x320bb0;var _0x4244eb=E({},_0x549f3c[_0x40d753(0x25b)]);_0x3aaa26!=null&&_0x3aaa26['colorChannel1']&&_0x4244eb[_0x40d753(0x2c3)]===_0x40d753(0x94)&&(_0x4244eb[_0x40d753(0x2c3)]=_0x3aaa26[_0x40d753(0x94)]),_0x549f3c[_0x40d753(0x24a)]==='mask'&&_0x4244eb['id']&&(_0x4244eb['id']=_0x4244eb['id']+_0x49cc8f[_0x40d753(0x15f)]),Object[_0x40d753(0x183)](_0x4244eb)[_0x40d753(0xad)](function(_0x1493ed){const _0x390f9b=_0x40d753;var _0x3823c3=_0x1493ed[0x0],_0x42e8a7=_0x1493ed[0x1];_0x3823c3===_0x390f9b(0x22e)&&typeof _0x42e8a7==_0x390f9b(0x238)&&(_0x4244eb[_0x3823c3]=_0x42e8a7['replace'](/url\(#(.*)\)/,_0x390f9b(0x2f3)['concat'](_0x49cc8f[_0x390f9b(0x15f)],')')));});var _0x514772=_0x49cc8f[_0x40d753(0x2c2)];return!_0x514772||_0x514772[_0x40d753(0x1f8)]===0x0||(_0x549f3c[_0x40d753(0x24a)]===_0x40d753(0x265)&&_0x4244eb['xlink:href']&&(_0x4244eb[_0x40d753(0xc9)]=_0x4244eb[_0x40d753(0xc9)]+_0x49cc8f['idSuffix']),Object['entries'](_0x4244eb)['forEach'](function(_0x54c5f4){const _0x38f89b=_0x40d753;var _0x27a41d=_0x54c5f4[0x0],_0x464617=_0x54c5f4[0x1];typeof _0x464617==_0x38f89b(0x238)&&(_0x4244eb[_0x27a41d]=_0x464617[_0x38f89b(0xd7)](/url\(#(.*)\)/,_0x38f89b(0x2f3)['concat'](_0x49cc8f['idSuffix'],')')));})),_0x4244eb;}function Dt(_0x2437a7,_0x4addc3){const _0x48862e=_0x320bb0;var _0x13aec1,_0x4fc896=_0x4addc3[_0x48862e(0x2c2)];return!_0x4fc896||_0x4fc896[_0x48862e(0x1f8)]===0x0?_0x2437a7:_0x2437a7[_0x48862e(0x24a)]===_0x48862e(0x28e)&&(!((_0x13aec1=_0x2437a7[_0x48862e(0x8a)])===null||_0x13aec1===void 0x0)&&_0x13aec1[_0x48862e(0x1f8)])?E(E({},_0x2437a7),{'children':_0x2437a7['children'][_0x48862e(0x117)](function(_0x2fc46a){const _0x13f1e6=_0x48862e;return typeof _0x2fc46a[_0x13f1e6(0x25b)]['id']==_0x13f1e6(0x238)&&_0x4fc896&&_0x4fc896[_0x13f1e6(0x1ac)](_0x2fc46a['attrs']['id'])>-0x1?E(E({},_0x2fc46a),{'attrs':E(E({},_0x2fc46a[_0x13f1e6(0x25b)]),{'id':_0x2fc46a[_0x13f1e6(0x25b)]['id']+_0x4addc3['idSuffix']})}):_0x2fc46a;})}):_0x2437a7;}function Ut(){const _0x5055a6=_0x320bb0;return Math[_0x5055a6(0x22a)]()[_0x5055a6(0x277)](0x24)[_0x5055a6(0x19b)](0x2,0x8);}be['displayName']='UniverIcon';function _0x55af(_0xaeff62,_0x2a249f){const _0x116d82=_0x116d();return _0x55af=function(_0x55af69,_0x2ce089){_0x55af69=_0x55af69-0x7d;let _0x3c1c2f=_0x116d82[_0x55af69];return _0x3c1c2f;},_0x55af(_0xaeff62,_0x2a249f);}var Nt={'tag':_0x320bb0(0x21d),'attrs':{'fill':'none','viewBox':_0x320bb0(0x166),'width':_0x320bb0(0x178),'height':_0x320bb0(0x178)},'children':[{'tag':'g','attrs':{'clipPath':_0x320bb0(0x108)},'children':[{'tag':_0x320bb0(0x19c),'attrs':{'stroke':_0x320bb0(0xc2),'d':_0x320bb0(0x217),'strokeLinecap':_0x320bb0(0xdb),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x320bb0(0x28e),'attrs':{},'children':[{'tag':_0x320bb0(0x273),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x320bb0(0x2fb),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x320bb0(0x291)](function(_0x4f2553,_0xc70c84){const _0x1568bd=_0x320bb0;return M['createElement'](be,Object[_0x1568bd(0x1f0)]({},_0x4f2553,{'id':_0x1568bd(0x2d9),'ref':_0xc70c84,'icon':Nt}));});$e[_0x320bb0(0x271)]=_0x320bb0(0xdd);var Mt={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x320bb0(0x178),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x320bb0(0x1df)},'children':[{'tag':_0x320bb0(0x19c),'attrs':{'stroke':_0x320bb0(0xc2),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x320bb0(0xdb),'strokeWidth':1.2}}]},{'tag':_0x320bb0(0x28e),'attrs':{},'children':[{'tag':_0x320bb0(0x273),'attrs':{'id':_0x320bb0(0x1bc)},'children':[{'tag':_0x320bb0(0x19c),'attrs':{'fill':'#fff','d':_0x320bb0(0x184),'transform':_0x320bb0(0x249)}}]}]}],'defIds':[_0x320bb0(0x1bc)]},xe=M[_0x320bb0(0x291)](function(_0x3fe678,_0x5925f5){const _0x59ddbf=_0x320bb0;return M[_0x59ddbf(0x220)](be,Object[_0x59ddbf(0x1f0)]({},_0x3fe678,{'id':_0x59ddbf(0x2b3),'ref':_0x5925f5,'icon':Mt}));});xe[_0x320bb0(0x271)]=_0x320bb0(0x157);const Pt=_0x320bb0(0x262),Lt='univer-online-status-title',wt=_0x320bb0(0xe6),At='univer-online',yt=_0x320bb0(0x2f0),H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x30301a){const _0x532799=_0x320bb0;switch(_0x30301a){case u[_0x532799(0x208)][_0x532799(0xf2)]:return _0x532799(0x2f9);case u[_0x532799(0x208)][_0x532799(0x85)]:return _0x532799(0x132);case u[_0x532799(0x208)][_0x532799(0xfd)]:return _0x532799(0x212);case u[_0x532799(0x208)][_0x532799(0x13e)]:return _0x532799(0x83);case u[_0x532799(0x208)][_0x532799(0x1fb)]:case u[_0x532799(0x208)][_0x532799(0x242)]:return _0x532799(0x263);case u[_0x532799(0x208)][_0x532799(0x185)]:case u[_0x532799(0x208)][_0x532799(0xdf)]:return _0x532799(0x290);}}function je(_0x446629){const _0x3831a9=_0x320bb0,{status$:_0x213fb8}=_0x446629,_0x1a967c=R[_0x3831a9(0x288)](_0x213fb8,u[_0x3831a9(0x208)][_0x3831a9(0x13e)]),_0x4c3030=R['useDependency'](a[_0x3831a9(0x110)]),_0x50537e=R[_0x3831a9(0x27d)](u['CollaborationSessionService']),_0x5d8d93=_0x1a967c!==u['CollaborationStatus']['OFFLINE'],_0x1180eb=_0x4c3030['t']($t(_0x1a967c)),_0x136261=T[_0x3831a9(0x29a)](H['onlineStatus'],{[H['online']]:_0x5d8d93,[H['offline']]:!_0x5d8d93}),_0x2378c6=_0x5d8d93?L['jsx'](xe,{}):L[_0x3831a9(0x24e)]($e,{}),_0x4f2b6e=M[_0x3831a9(0x192)](()=>{const _0xbb877=_0x3831a9;_0x5d8d93||_0x50537e[_0xbb877(0x250)]();},[_0x5d8d93,_0x50537e]);function _0x594e48(){const _0x2c5894=_0x3831a9;return L['jsxs']('div',{'className':T[_0x2c5894(0x29a)](_0x136261,_0x2c5894(0x10c)),'onClick':_0x4f2b6e,'children':[L['jsx'](_0x2c5894(0x246),{'className':H[_0x2c5894(0xc3)],'children':_0x2378c6}),L['jsx'](_0x2c5894(0x246),{'className':H['onlineStatusTitle'],'children':_0x1180eb})]});}return _0x5d8d93?_0x594e48():L[_0x3831a9(0x24e)](T['Tooltip'],{'title':_0x4c3030['t'](_0x3831a9(0x181)),'children':_0x594e48()});}var xt=Object[_0x320bb0(0x1a2)],jt=(_0xe63ad9,_0xd28682,_0x5edabf,_0x167046)=>{const _0x34279a=_0x320bb0;for(var _0x18f9fd=_0x167046>0x1?void 0x0:_0x167046?xt(_0xd28682,_0x5edabf):_0xd28682,_0x239629=_0xe63ad9[_0x34279a(0x1f8)]-0x1,_0x404173;_0x239629>=0x0;_0x239629--)(_0x404173=_0xe63ad9[_0x239629])&&(_0x18f9fd=_0x404173(_0x18f9fd)||_0x18f9fd);return _0x18f9fd;},X=(_0x5d722b,_0x274724)=>(_0x5486d6,_0x2c1ac8)=>_0x274724(_0x5486d6,_0x2c1ac8,_0x5d722b);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x320bb0(0x25f)]{constructor(_0x3a3179,_0x24a8cc,_0xdf24cc,_0x3a16fc){const _0x3cc7b6=_0x320bb0;super(),_(this,_0x3cc7b6(0x1e2),new d[(_0x3cc7b6(0xf0))](u[_0x3cc7b6(0x208)][_0x3cc7b6(0x13e)])),(this['_univerInstanceService']=_0x3a3179,this[_0x3cc7b6(0x303)]=_0x24a8cc,this[_0x3cc7b6(0x20f)]=_0xdf24cc,this[_0x3cc7b6(0xf6)]=_0x3a16fc,this[_0x3cc7b6(0x160)](),this[_0x3cc7b6(0x2e6)]());}[_0x320bb0(0x2e6)](){const _0x493386=_0x320bb0;this[_0x493386(0x10a)](this['_univerInstanceService'][_0x493386(0x247)]['pipe'](d[_0x493386(0x2ab)](()=>{const _0x19d752=_0x493386,_0x42b789=this[_0x19d752(0x116)][_0x19d752(0x219)]();return _0x42b789?this['_collaborationController']['getCollabEntity$'](_0x42b789[_0x19d752(0x2b2)]()):d['of'](null);}),d[_0x493386(0x2ab)](_0x2ea9e6=>_0x2ea9e6?_0x2ea9e6[_0x493386(0x252)]:d['of'](u[_0x493386(0x208)][_0x493386(0x13e)])))[_0x493386(0x283)](_0x5b2591=>{const _0x153df6=_0x493386;this[_0x153df6(0x1e2)]['next'](_0x5b2591);}));}[_0x320bb0(0x160)](){const _0x1cbc1b=_0x320bb0;this[_0x1cbc1b(0x10a)](this[_0x1cbc1b(0xf6)][_0x1cbc1b(0xda)](R[_0x1cbc1b(0xe9)][_0x1cbc1b(0x23b)],()=>R['connectInjector'](Bt({'status$':this['_status$']['asObservable']()}),this[_0x1cbc1b(0x303)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x320bb0(0x1e1)]),X(0x1,a['Inject'](a[_0x320bb0(0x207)])),X(0x2,a[_0x320bb0(0x122)](u[_0x320bb0(0x1d2)])),X(0x3,R[_0x320bb0(0x11c)])],exports[_0x320bb0(0x20a)]);function Bt(_0x5ed2e0){const {status$:_0x4faefe}=_0x5ed2e0;return function(){const _0x55bf15=_0x55af;return L[_0x55bf15(0x24e)](je,{'status$':_0x4faefe});};}var kt=Object[_0x320bb0(0x1a2)],Ht=(_0x53c1b0,_0x2a5086,_0x24d69d,_0x12e13e)=>{const _0x6bffa5=_0x320bb0;for(var _0x3025cd=_0x12e13e>0x1?void 0x0:_0x12e13e?kt(_0x2a5086,_0x24d69d):_0x2a5086,_0x3c8f80=_0x53c1b0[_0x6bffa5(0x1f8)]-0x1,_0x32caf9;_0x3c8f80>=0x0;_0x3c8f80--)(_0x32caf9=_0x53c1b0[_0x3c8f80])&&(_0x3025cd=_0x32caf9(_0x3025cd)||_0x3025cd);return _0x3025cd;},y=(_0x7a09d2,_0x17fc40)=>(_0x5804b,_0x2f5e28)=>_0x17fc40(_0x5804b,_0x2f5e28,_0x7a09d2);let z=class extends a[_0x320bb0(0x25f)]{constructor(_0xd01066,_0xa78e0c,_0x537054,_0x4abb27,_0x5163c7,_0x3ca068){const _0x7121fe=_0x320bb0;super(),this[_0x7121fe(0x1f2)]=_0xd01066,this[_0x7121fe(0xbb)]=_0xa78e0c,this[_0x7121fe(0x194)]=_0x537054,this['_messageService']=_0x4abb27,this['_notificationService']=_0x5163c7,this[_0x7121fe(0xa1)]=_0x3ca068,this[_0x7121fe(0x1e9)](),this[_0x7121fe(0xb2)]();}[_0x320bb0(0x1e9)](){const _0x5b7fe7=_0x320bb0;this[_0x5b7fe7(0x10a)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x211b15=_0x5b7fe7;if(this[_0x211b15(0xbb)][_0x211b15(0x99)][_0x211b15(0x1bd)])return this[_0x211b15(0xa1)]['t'](_0x211b15(0x241));}));}[_0x320bb0(0xb2)](){const _0x4ec6f8=_0x320bb0;this['disposeWithMe'](this[_0x4ec6f8(0x194)][_0x4ec6f8(0x2e7)][_0x4ec6f8(0x283)](_0x2271d3=>{const _0x2d0c81=_0x4ec6f8;_0x2271d3['id']===u['CollaborationUIEventId'][_0x2d0c81(0x2c8)]&&this[_0x2d0c81(0x18b)][_0x2d0c81(0x13f)]({'type':T[_0x2d0c81(0x24f)][_0x2d0c81(0x18c)],'content':this[_0x2d0c81(0xa1)]['t']('collaboration.single-unit.warning')}),_0x2271d3['id']===u[_0x2d0c81(0x284)][_0x2d0c81(0x1dc)]&&this[_0x2d0c81(0x18b)]['show']({'type':T[_0x2d0c81(0x24f)]['Warning'],'content':this[_0x2d0c81(0xa1)]['t'](_0x2d0c81(0x12e))}),_0x2271d3['id']===u[_0x2d0c81(0x284)]['PERMISSION_DENIED']&&this[_0x2d0c81(0x2ad)][_0x2d0c81(0x13f)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x2d0c81(0xa1)]['t'](_0x2d0c81(0x1f4)),'type':_0x2d0c81(0x2f4),'duration':0x0}),_0x2271d3['id']===u[_0x2d0c81(0x284)][_0x2d0c81(0x85)]&&this[_0x2d0c81(0x18b)][_0x2d0c81(0x13f)]({'type':T[_0x2d0c81(0x24f)][_0x2d0c81(0x30c)],'content':this[_0x2d0c81(0xa1)]['t']('collaboration.closeRoom')+'('+_0x2271d3[_0x2d0c81(0x179)]+')'}),_0x2271d3['id']===u[_0x2d0c81(0x284)][_0x2d0c81(0x235)]&&this[_0x2d0c81(0x18b)][_0x2d0c81(0x13f)]({'type':T['MessageType'][_0x2d0c81(0x18c)],'content':this[_0x2d0c81(0xa1)]['t'](_0x2271d3[_0x2d0c81(0x179)]||'')}),_0x2271d3['id']===u[_0x2d0c81(0x284)][_0x2d0c81(0x1e3)]&&this[_0x2d0c81(0x18b)][_0x2d0c81(0x13f)]({'type':T[_0x2d0c81(0x24f)][_0x2d0c81(0x18c)],'content':this[_0x2d0c81(0xa1)]['t'](_0x2d0c81(0x101))}),_0x2271d3['id']===u[_0x2d0c81(0x284)]['SOCKET_FAILED']&&this['_messageService']['show']({'type':T[_0x2d0c81(0x24f)][_0x2d0c81(0x30c)],'content':this[_0x2d0c81(0xa1)]['t']('session.connection-failed')}),_0x2271d3['id']===u[_0x2d0c81(0x284)][_0x2d0c81(0xe7)]&&this[_0x2d0c81(0x18b)]['show']({'type':T['MessageType'][_0x2d0c81(0x30c)],'content':this[_0x2d0c81(0xa1)]['t'](_0x2d0c81(0x81))});}));}};z=Ht([y(0x0,R[_0x320bb0(0x88)]),y(0x1,u[_0x320bb0(0x22f)]),y(0x2,a[_0x320bb0(0x122)](u['CollaborationUIEventService'])),y(0x3,R[_0x320bb0(0x135)]),y(0x4,R[_0x320bb0(0x1ff)]),y(0x5,a[_0x320bb0(0x122)](a[_0x320bb0(0x110)]))],z);const Wt='collaboration-client-ui.config',Ne={},Ee=a[_0x320bb0(0x16f)](_0x320bb0(0xb3));var Ft=Object[_0x320bb0(0x1a2)],Yt=(_0x425728,_0x23dcc1,_0x39edb3,_0xbce00c)=>{const _0x48e797=_0x320bb0;for(var _0x1e4022=_0xbce00c>0x1?void 0x0:_0xbce00c?Ft(_0x23dcc1,_0x39edb3):_0x23dcc1,_0x37ed0b=_0x425728[_0x48e797(0x1f8)]-0x1,_0x5deb92;_0x37ed0b>=0x0;_0x37ed0b--)(_0x5deb92=_0x425728[_0x37ed0b])&&(_0x1e4022=_0x5deb92(_0x1e4022)||_0x1e4022);return _0x1e4022;},W=(_0x21e7bf,_0x2cf245)=>(_0x3f70b4,_0x46d169)=>_0x2cf245(_0x3f70b4,_0x46d169,_0x21e7bf);exports['CollaborationDataLoaderController']=class extends a['RxDisposable']{constructor(_0x38823f,_0x139356,_0x2cb76f,_0x5879e1,_0x41a98c){const _0x9dfb62=_0x320bb0;super(),this[_0x9dfb62(0x1f5)]=_0x38823f,this[_0x9dfb62(0x22c)]=_0x139356,this[_0x9dfb62(0xa7)]=_0x2cb76f,this[_0x9dfb62(0x1ba)]=_0x5879e1,_0x41a98c?_0x41a98c==null||_0x41a98c[_0x9dfb62(0x2d1)]()[_0x9dfb62(0xc6)](()=>this[_0x9dfb62(0x113)]()):(this['_logService'][_0x9dfb62(0x2fa)](_0x9dfb62(0x128),_0x9dfb62(0x2ba)),this[_0x9dfb62(0x113)]());}async['_init'](){const _0x509be4=_0x320bb0,_0x2b94a5=this[_0x509be4(0x1f5)]['getParam'](_0x509be4(0x199)),_0x57436b=this[_0x509be4(0x1f5)][_0x509be4(0x1c1)]('type'),_0x43a9e4=this[_0x509be4(0x1f5)][_0x509be4(0x1c1)]('subunit');if(!_0x2b94a5||!_0x57436b){this['_logService'][_0x509be4(0x2fa)](_0x509be4(0x128),_0x509be4(0x1ca));return;}const _0x4e21c5=await this[_0x509be4(0x1ba)][_0x509be4(0x131)](_0x2b94a5,Number(_0x57436b),_0x43a9e4);_0x4e21c5&&_0x4e21c5 instanceof a[_0x509be4(0xf1)]&&this[_0x509be4(0x201)](_0x4e21c5);}async[_0x320bb0(0x201)](_0x1a9166){const _0x1072b9=_0x320bb0;await this[_0x1072b9(0x211)](_0x1a9166),_0x1a9166[_0x1072b9(0x7d)][_0x1072b9(0x1db)](d[_0x1072b9(0x10f)](this[_0x1072b9(0x16e)]))[_0x1072b9(0x283)](_0x47d595=>{const _0x5801f6=_0x1072b9;_0x47d595&&this[_0x5801f6(0x218)](_0x47d595);}),this[_0x1072b9(0x1f5)][_0x1072b9(0x152)][_0x1072b9(0x1db)](d[_0x1072b9(0x10f)](this[_0x1072b9(0x16e)]))[_0x1072b9(0x283)](()=>this[_0x1072b9(0x211)](_0x1a9166));}[_0x320bb0(0x218)](_0x1342ea,_0xb87992=!0x1){const _0x144185=_0x320bb0,_0x143f10=this[_0x144185(0x1f5)]['getParam'](_0x144185(0x28d));_0x1342ea[_0x144185(0x147)]()!==_0x143f10&&this['_urlService'][_0x144185(0x176)](_0x144185(0x28d),_0x1342ea[_0x144185(0x147)](),_0xb87992);}async['_updateSubUnitFromURLParams'](_0x40490d){const _0x180187=_0x320bb0;var _0x2be2ae;const _0x565587=this[_0x180187(0x1f5)][_0x180187(0x1c1)](_0x180187(0x28d));if(!_0x565587||!_0x40490d[_0x180187(0x121)](_0x565587)){const _0x1d4a78=_0x40490d[_0x180187(0x17e)]()[0x0],_0xb7ac39=_0x40490d[_0x180187(0x121)](_0x1d4a78);if(!_0xb7ac39)return;this[_0x180187(0x218)](_0xb7ac39,!0x0),await this[_0x180187(0xa7)][_0x180187(0x2db)](g[_0x180187(0x130)]['id'],{'unitId':_0x40490d[_0x180187(0x2b2)](),'subUnitId':_0x1d4a78});return;}((_0x2be2ae=_0x40490d['getActiveSheet']())==null?void 0x0:_0x2be2ae['getSheetId']())!==_0x565587&&await this[_0x180187(0xa7)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x40490d[_0x180187(0x2b2)](),'subUnitId':_0x565587});}},exports[_0x320bb0(0x13d)]=Yt([W(0x0,Ee),W(0x1,a[_0x320bb0(0x10e)]),W(0x2,a[_0x320bb0(0x187)]),W(0x3,a[_0x320bb0(0x122)](u[_0x320bb0(0x1b3)])),W(0x4,a[_0x320bb0(0x1f6)](Ke[_0x320bb0(0x1b4)]))],exports[_0x320bb0(0x13d)]);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x2ca9de,_0x2d2ad2,_0x442267,_0x4860fe)=>{const _0x36ea7f=_0x320bb0;for(var _0x39659e=_0x4860fe>0x1?void 0x0:_0x4860fe?Vt(_0x2d2ad2,_0x442267):_0x2d2ad2,_0x27b3e9=_0x2ca9de[_0x36ea7f(0x1f8)]-0x1,_0x304bf0;_0x27b3e9>=0x0;_0x27b3e9--)(_0x304bf0=_0x2ca9de[_0x27b3e9])&&(_0x39659e=_0x304bf0(_0x39659e)||_0x39659e);return _0x39659e;},le=(_0x3d42d2,_0x2c84fd)=>(_0x4cbc61,_0x149fbb)=>_0x2c84fd(_0x4cbc61,_0x149fbb,_0x3d42d2);let J=class{constructor(_0x493282,_0x25b28a,_0xce785d){const _0x4f8cff=_0x320bb0;this['_injector']=_0x493282,this['_transformService']=_0x25b28a,this[_0x4f8cff(0x23c)]=_0xce785d;}['transformIMECache'](_0x15aa59){const _0xdb941d=_0x320bb0;this[_0xdb941d(0x118)](_0x15aa59),this['_transformPreviousActiveRange'](_0x15aa59);}['transformRemoteChangeset'](_0x46db9a){const _0x311cb0=_0x320bb0,{unitID:_0x548968}=_0x46db9a,_0xa04aeb=this[_0x311cb0(0x23c)]['getRenderById'](_0x548968)[_0x311cb0(0x1eb)](b[_0x311cb0(0xa0)]),{redoCache:_0x8146bc}=_0xa04aeb[_0x311cb0(0x2d2)]();if(_0x8146bc['length']===0x0)return _0x46db9a;let _0x437451=a[_0x311cb0(0x1d5)][_0x311cb0(0x21f)](_0x46db9a[_0x311cb0(0x11d)][0x0]);for(let _0xe7af64=0x0;_0xe7af64<_0x8146bc[_0x311cb0(0x1f8)];_0xe7af64++){const _0x5ee721={'id':_0x311cb0(0x145),'params':{..._0x8146bc[_0xe7af64]}},_0x3ed010=this[_0x311cb0(0x216)][_0x311cb0(0x2f6)](_0x437451,_0x5ee721,!0x1);if(m[_0x311cb0(0xe3)](_0x3ed010))throw _0x3ed010['error'];_0x437451=_0x3ed010['m1Prime'];}return{...a['Tools'][_0x311cb0(0x21f)](_0x46db9a),'mutations':[_0x437451]};}[_0x320bb0(0x118)](_0x150758){const _0x374ad4=_0x320bb0,{unitID:_0x2be3db}=_0x150758,_0x145313=this['_renderManagerService']['getRenderById'](_0x2be3db)[_0x374ad4(0x1eb)](b['DocIMEInputManagerService']),{undoCache:_0x55b972,redoCache:_0x4c7b73}=_0x145313[_0x374ad4(0x2d2)]();if(_0x55b972[_0x374ad4(0x1f8)]===0x0||_0x4c7b73[_0x374ad4(0x1f8)]===0x0)return;const _0x34ea40=[],_0x4fffef=[];let _0x54a363=a[_0x374ad4(0x1d5)][_0x374ad4(0x21f)](_0x150758['mutations'][0x0]),_0x38e081=a['Tools'][_0x374ad4(0x21f)](_0x150758['mutations'][0x0]);for(let _0x3f61cd=_0x55b972[_0x374ad4(0x1f8)]-0x1;_0x3f61cd>=0x0;_0x3f61cd--){const _0x1eb00f={'id':_0x374ad4(0x145),'params':{..._0x55b972[_0x3f61cd]}},_0x120f28={'id':_0x374ad4(0x145),'params':{..._0x4c7b73[_0x3f61cd]}},_0x4cad94=this[_0x374ad4(0x216)]['transformMutation'](_0x54a363,_0x1eb00f,!0x1),_0x25f516=this['_transformService']['transformMutation'](_0x38e081,_0x120f28,!0x1);if(m[_0x374ad4(0xe3)](_0x4cad94))throw _0x4cad94[_0x374ad4(0x2f4)];if(m['isTransformMutationFailure'](_0x25f516))throw _0x25f516[_0x374ad4(0x2f4)];_0x34ea40[_0x374ad4(0x259)](_0x4cad94[_0x374ad4(0x28b)][_0x374ad4(0x2cf)]),_0x4fffef[_0x374ad4(0x259)](_0x25f516[_0x374ad4(0x28b)][_0x374ad4(0x2cf)]),_0x54a363=_0x4cad94[_0x374ad4(0x20d)],_0x38e081=_0x25f516[_0x374ad4(0x20d)];}_0x145313[_0x374ad4(0x22b)]({'undoCache':_0x34ea40,'redoCache':_0x4fffef});}[_0x320bb0(0x90)](_0x1eb38d){const _0x4ed17b=_0x320bb0,{unitID:_0x58faf2}=_0x1eb38d,_0x1483a8=this[_0x4ed17b(0x23c)][_0x4ed17b(0x1e8)](_0x58faf2)[_0x4ed17b(0x1eb)](b[_0x4ed17b(0xa0)]),_0x2b978b=_0x1483a8['getActiveRange']();if(_0x2b978b==null)return;const _0x1141c6=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1eb38d[_0x4ed17b(0x2d8)],'actions':null,'textRanges':[_0x2b978b]}}],_0x5dabce=this[_0x4ed17b(0x216)][_0x4ed17b(0x29c)](_0x1eb38d,_0x1141c6);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5dabce))throw _0x5dabce['error'];const _0x2d675e=_0x5dabce[_0x4ed17b(0x28b)][0x0][_0x4ed17b(0x2cf)][_0x4ed17b(0x19a)];Array['isArray'](_0x2d675e)&&_0x2d675e['length']&&_0x1483a8[_0x4ed17b(0x295)](_0x2d675e[0x0]);}};J=Xt([le(0x0,a[_0x320bb0(0x122)](a[_0x320bb0(0x207)])),le(0x1,m[_0x320bb0(0x1ef)]),le(0x2,p[_0x320bb0(0x28a)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x12cdad,_0x34d11b,_0x5e772d,_0x1cfdd4)=>{const _0x3e0d9f=_0x320bb0;for(var _0x3fc5a6=_0x1cfdd4>0x1?void 0x0:_0x1cfdd4?Gt(_0x34d11b,_0x5e772d):_0x34d11b,_0x534d24=_0x12cdad[_0x3e0d9f(0x1f8)]-0x1,_0x3cb277;_0x534d24>=0x0;_0x534d24--)(_0x3cb277=_0x12cdad[_0x534d24])&&(_0x3fc5a6=_0x3cb277(_0x3fc5a6)||_0x3fc5a6);return _0x3fc5a6;},_e=(_0x4523e2,_0x5eb1a6)=>(_0x2f3e27,_0x3decfa)=>_0x5eb1a6(_0x2f3e27,_0x3decfa,_0x4523e2);let Z=class{constructor(_0x3f03b1,_0x2cff34,_0x4920de){const _0x5e7f6a=_0x320bb0;this[_0x5e7f6a(0x303)]=_0x3f03b1,this['_transformService']=_0x2cff34,this[_0x5e7f6a(0x253)]=_0x4920de;}[_0x320bb0(0x25a)](_0x4d0fb3){const _0x59bcbe=_0x320bb0;this[_0x59bcbe(0xbf)](_0x4d0fb3);}[_0x320bb0(0x188)](_0xe03c53){const _0x28a6b5=_0x320bb0,{unitID:_0x238f15}=_0xe03c53,{collaboration:_0x502f70}=this[_0x28a6b5(0x253)][_0x28a6b5(0x1c4)](_0x238f15);if(_0x502f70[_0x28a6b5(0x1f8)]===0x0)return _0xe03c53;let _0x385064=a[_0x28a6b5(0x1d5)][_0x28a6b5(0x21f)](_0xe03c53[_0x28a6b5(0x11d)][0x0]);for(let _0x304717=0x0;_0x304717<_0x502f70[_0x28a6b5(0x1f8)];_0x304717++){const _0xb5d082={'id':_0x28a6b5(0x145),'params':{'unitId':_0x502f70[_0x304717][_0x28a6b5(0x237)],..._0x502f70[_0x304717][_0x28a6b5(0x1d4)]}},_0x5f4f96=this[_0x28a6b5(0x216)][_0x28a6b5(0x2f6)](_0x385064,_0xb5d082,!0x1);if(m[_0x28a6b5(0xe3)](_0x5f4f96))throw _0x5f4f96[_0x28a6b5(0x2f4)];_0x385064=_0x5f4f96[_0x28a6b5(0x20d)];}return{...a['Tools'][_0x28a6b5(0x21f)](_0xe03c53),'mutations':[_0x385064]};}[_0x320bb0(0xbf)](_0x29690f){const _0x216df9=_0x320bb0,{unitID:_0x197fe1}=_0x29690f,{history:_0x2ed174,collaboration:_0x2672ae}=this[_0x216df9(0x253)][_0x216df9(0x1c4)](_0x197fe1);if(_0x2ed174[_0x216df9(0x1f8)]===0x0&&_0x2672ae[_0x216df9(0x1f8)]===0x0)return;const _0x549922=[],_0x70fc93=[];let _0x19c671=a[_0x216df9(0x1d5)][_0x216df9(0x21f)](_0x29690f[_0x216df9(0x11d)][0x0]),_0x41afc5=a['Tools'][_0x216df9(0x21f)](_0x29690f['mutations'][0x0]);for(let _0x25ec0e=_0x2ed174[_0x216df9(0x1f8)]-0x1;_0x25ec0e>=0x0;_0x25ec0e--){const _0x26c98f={'id':_0x216df9(0x145),'params':{'unitId':_0x2ed174[_0x25ec0e][_0x216df9(0x237)],..._0x2ed174[_0x25ec0e][_0x216df9(0x301)]}},_0x421e66={'id':_0x216df9(0x145),'params':{'unitId':_0x2ed174[_0x25ec0e][_0x216df9(0x237)],..._0x2ed174[_0x25ec0e][_0x216df9(0x1d4)]}},_0x254422=this[_0x216df9(0x216)][_0x216df9(0x2f6)](_0x19c671,_0x26c98f,!0x1),_0x3cd010=this[_0x216df9(0x216)][_0x216df9(0x2f6)](_0x41afc5,_0x421e66,!0x1);if(m['isTransformMutationFailure'](_0x254422))throw _0x254422[_0x216df9(0x2f4)];if(m[_0x216df9(0xe3)](_0x3cd010))throw _0x3cd010[_0x216df9(0x2f4)];_0x549922[_0x216df9(0x259)]({..._0x2ed174[_0x25ec0e],'undoState':_0x254422[_0x216df9(0x28b)][_0x216df9(0x2cf)],'redoState':_0x3cd010[_0x216df9(0x28b)][_0x216df9(0x2cf)]}),_0x19c671=_0x254422[_0x216df9(0x20d)],_0x41afc5=_0x3cd010[_0x216df9(0x20d)];}_0x19c671=a[_0x216df9(0x1d5)][_0x216df9(0x21f)](_0x29690f[_0x216df9(0x11d)][0x0]),_0x41afc5=a[_0x216df9(0x1d5)][_0x216df9(0x21f)](_0x29690f[_0x216df9(0x11d)][0x0]);for(let _0x5c89ca=_0x2672ae['length']-0x1;_0x5c89ca>=0x0;_0x5c89ca--){const _0x5751ad={'id':_0x216df9(0x145),'params':{'unitId':_0x2672ae[_0x5c89ca]['unitId'],..._0x2672ae[_0x5c89ca][_0x216df9(0x301)]}},_0x319981={'id':_0x216df9(0x145),'params':{'unitId':_0x2672ae[_0x5c89ca]['unitId'],..._0x2672ae[_0x5c89ca]['redoState']}},_0x1c4dc4=this['_transformService'][_0x216df9(0x2f6)](_0x19c671,_0x5751ad,!0x1),_0x2ad487=this[_0x216df9(0x216)][_0x216df9(0x2f6)](_0x41afc5,_0x319981,!0x1);if(m[_0x216df9(0xe3)](_0x1c4dc4))throw _0x1c4dc4[_0x216df9(0x2f4)];if(m['isTransformMutationFailure'](_0x2ad487))throw _0x2ad487['error'];_0x70fc93[_0x216df9(0x259)]({..._0x2672ae[_0x5c89ca],'undoState':_0x1c4dc4[_0x216df9(0x28b)]['params'],'redoState':_0x2ad487[_0x216df9(0x28b)]['params']}),_0x19c671=_0x1c4dc4[_0x216df9(0x20d)],_0x41afc5=_0x2ad487[_0x216df9(0x20d)];}this['_docStateChangeManagerService'][_0x216df9(0x2c5)](_0x197fe1,{'history':_0x549922,'collaboration':_0x70fc93});}};Z=qt([_e(0x0,a[_0x320bb0(0x122)](a[_0x320bb0(0x207)])),_e(0x1,m[_0x320bb0(0x1ef)]),_e(0x2,a['Inject'](b[_0x320bb0(0x1c8)]))],Z);var Kt=Object[_0x320bb0(0x1a2)],zt=(_0x8b28f8,_0x1e3862,_0xe85496,_0x30f101)=>{for(var _0xe28580=_0x30f101>0x1?void 0x0:_0x30f101?Kt(_0x1e3862,_0xe85496):_0x1e3862,_0x55c336=_0x8b28f8['length']-0x1,_0x4e2967;_0x55c336>=0x0;_0x55c336--)(_0x4e2967=_0x8b28f8[_0x55c336])&&(_0xe28580=_0x4e2967(_0xe28580)||_0xe28580);return _0xe28580;},Me=(_0x341865,_0x4b062a)=>(_0x225b18,_0x523634)=>_0x4b062a(_0x225b18,_0x523634,_0x341865);let Q=class{constructor(_0x1dac70,_0x2308dc){const _0x5b9304=_0x320bb0;this['_injector']=_0x1dac70,this[_0x5b9304(0x216)]=_0x2308dc;}[_0x320bb0(0xdc)](_0x362073){const _0x200293=_0x320bb0;var _0x13bf04;const _0xab018c=this['_injector']['get'](Y[_0x200293(0xc4)]),_0x36e48c=(_0x13bf04=_0xab018c[_0x200293(0xc7)]())!=null?_0x13bf04:[];if(_0x36e48c[_0x200293(0x1f8)]===0x0)return;const _0x3c7e72=_0x362073[_0x200293(0x2d8)],_0x718800=[{'id':_0x200293(0x145),'params':{'unitId':_0x3c7e72,'actions':null,'textRanges':_0x36e48c}}],_0x1eac72=this['_transformService'][_0x200293(0x29c)](_0x362073,_0x718800);if(!m[_0x200293(0x96)](_0x1eac72))throw _0x1eac72[_0x200293(0x2f4)];const _0x1d86d6=_0x1eac72[_0x200293(0x28b)][0x0][_0x200293(0x2cf)][_0x200293(0x19a)];Array[_0x200293(0x2e3)](_0x1d86d6)&&_0x1d86d6[_0x200293(0x1f8)]&&_0xab018c['replaceDocRanges'](_0x1d86d6,{'unitId':_0x3c7e72,'subUnitId':_0x3c7e72},!0x1);}};Q=zt([Me(0x0,a[_0x320bb0(0x122)](a[_0x320bb0(0x207)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x320bb0(0x1a2)],Zt=(_0x17ace0,_0x2e0ff6,_0x5bb9a0,_0x39508b)=>{const _0x4e86e9=_0x320bb0;for(var _0x4f0a5e=_0x39508b>0x1?void 0x0:_0x39508b?Jt(_0x2e0ff6,_0x5bb9a0):_0x2e0ff6,_0x22d9ab=_0x17ace0[_0x4e86e9(0x1f8)]-0x1,_0x394d3f;_0x22d9ab>=0x0;_0x22d9ab--)(_0x394d3f=_0x17ace0[_0x22d9ab])&&(_0x4f0a5e=_0x394d3f(_0x4f0a5e)||_0x4f0a5e);return _0x4f0a5e;},N=(_0x2d46f8,_0x148a6c)=>(_0x1dd672,_0x210e76)=>_0x148a6c(_0x1dd672,_0x210e76,_0x2d46f8);let ee=class extends a['Disposable']{constructor(_0x4983bb,_0x255dbc,_0x150cbd,_0x3a93c9,_0xddea,_0x2d5fa8,_0x302099,_0x1b3a61){const _0x533a8e=_0x320bb0;super(),_(this,_0x533a8e(0x1e2),new d[(_0x533a8e(0xf0))](u['CollaborationStatus'][_0x533a8e(0x13e)])),(this[_0x533a8e(0x253)]=_0x4983bb,this[_0x533a8e(0x20f)]=_0x255dbc,this[_0x533a8e(0x89)]=_0x150cbd,this[_0x533a8e(0x8e)]=_0x3a93c9,this['_docTransformSelectionsService']=_0xddea,this['_docSyncEditingCollabCursorService']=_0x2d5fa8,this[_0x533a8e(0x18b)]=_0x302099,this[_0x533a8e(0xa1)]=_0x1b3a61,this['_initEntityListener']());}[_0x320bb0(0x1d8)](){const _0x427df5=_0x320bb0;this[_0x427df5(0x10a)](this[_0x427df5(0x20f)]['entityInit$'][_0x427df5(0x283)](_0x4f0012=>{const _0x3647b9=_0x427df5,_0x5e11c8=this['_docStateChangeManagerService'][_0x3647b9(0x228)][_0x3647b9(0x283)](_0x5a355c=>{const _0x23f778=_0x3647b9;if(_0x5a355c==null)return;const {unitId:_0x355f74,redoState:_0x4ad52f,commandId:_0x5bd451}=_0x5a355c;if(_0x355f74!==_0x4f0012['unitID'])return;const _0x39aa4a={'id':_0x5bd451,'type':a[_0x23f778(0x2a7)][_0x23f778(0x82)],'params':{'unitId':_0x355f74,'actions':_0x4ad52f[_0x23f778(0x276)],'textRanges':null}};_0x4f0012['onLocalMutation'](_0x39aa4a);});if(_0x4f0012[_0x3647b9(0x10a)](_0x5e11c8),_0x4f0012 instanceof u[_0x3647b9(0x28c)]){const _0x37d32c={'onTransformIME':_0x3c553a=>this[_0x3647b9(0x89)][_0x3647b9(0x15a)](_0x3c553a),'onTransformState':_0x46d3be=>this[_0x3647b9(0x8e)][_0x3647b9(0x25a)](_0x46d3be),'onTransformSelections':_0x2a757b=>this[_0x3647b9(0x2b6)]['transformSelections'](_0x2a757b),'onSyncEditingCollabCursor':_0x485ce2=>this[_0x3647b9(0x258)][_0x3647b9(0x9e)](_0x485ce2),'onTransformRemoteChangesetByIMECache':_0x50d73f=>this[_0x3647b9(0x89)][_0x3647b9(0x188)](_0x50d73f),'onTransformRemoteChangesetByStateCache':_0x39b33e=>this[_0x3647b9(0x8e)][_0x3647b9(0x188)](_0x39b33e)};_0x4f0012[_0x3647b9(0x9f)](_0x37d32c);}}));}};ee=Zt([N(0x0,a[_0x320bb0(0x122)](b[_0x320bb0(0x1c8)])),N(0x1,a[_0x320bb0(0x122)](u[_0x320bb0(0x1d2)])),N(0x2,a[_0x320bb0(0x122)](J)),N(0x3,a[_0x320bb0(0x122)](Z)),N(0x4,a[_0x320bb0(0x122)](Q)),N(0x5,a['Inject'](pe)),N(0x6,R[_0x320bb0(0x135)]),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object[_0x320bb0(0x1a2)],es=(_0x469171,_0x50af12,_0x2c0eef,_0x1a11df)=>{const _0x5a44a4=_0x320bb0;for(var _0x232655=_0x1a11df>0x1?void 0x0:_0x1a11df?Qt(_0x50af12,_0x2c0eef):_0x50af12,_0x13426c=_0x469171[_0x5a44a4(0x1f8)]-0x1,_0x3b14db;_0x13426c>=0x0;_0x13426c--)(_0x3b14db=_0x469171[_0x13426c])&&(_0x232655=_0x3b14db(_0x232655)||_0x232655);return _0x232655;},he=(_0x4a78dd,_0x54b015)=>(_0x51a9fe,_0xb5cb13)=>_0x54b015(_0x51a9fe,_0xb5cb13,_0x4a78dd);let me=class extends a['Disposable']{constructor(_0x39c4d1,_0x5bf766,_0x1c8c53){const _0x3b418c=_0x320bb0;super(),_(this,'_cachedData',new Map()),_(this,_0x3b418c(0x210),new Map()),_(this,_0x3b418c(0x172),!0x1),(this[_0x3b418c(0x156)]=_0x39c4d1,this[_0x3b418c(0x25d)]=_0x5bf766,this[_0x3b418c(0x1e7)]=_0x1c8c53);}[_0x320bb0(0xec)](){this['_disabled']=!0x0;}[_0x320bb0(0x11b)](){const _0x4b7daa=_0x320bb0;this[_0x4b7daa(0x172)]=!0x1;}get['saveTaskMap'](){const _0x6affa6=_0x320bb0;return this[_0x6affa6(0x210)];}['dispose'](){const _0x2c6cfc=_0x320bb0;this[_0x2c6cfc(0x193)]()[_0x2c6cfc(0xc6)](()=>super[_0x2c6cfc(0x2df)]());}async[_0x320bb0(0x2a9)](_0x4633c6){const _0x2c1273=_0x320bb0;return this[_0x2c1273(0x172)]?null:this[_0x2c1273(0x25d)][_0x2c1273(0x1be)](u['getLocalCacheKey'](_0x4633c6));}async[_0x320bb0(0x280)](_0x116799,_0x5e255b){const _0x1d6692=_0x320bb0;return!!this[_0x1d6692(0x25d)][_0x1d6692(0x1fa)](_0x116799,_0x5e255b);}[_0x320bb0(0x1b2)](_0x55cb65,_0x352108,_0x191e10,_0x5d7b38){const _0x3cbdd4=_0x320bb0,_0x22f57d=this[_0x3cbdd4(0x1e7)][_0x3cbdd4(0x2e0)](_0x55cb65);this[_0x3cbdd4(0x278)]['set'](_0x55cb65,{'unitID':_0x55cb65,'type':_0x352108,'awaitingChangeset':_0x191e10,'mutations':_0x5d7b38,'rev':_0x22f57d}),this['_saveTaskMap'][_0x3cbdd4(0x148)](_0x55cb65)||this['_scheduleSaving'](_0x55cb65);}[_0x320bb0(0xea)](_0x347749){const _0x588193=_0x320bb0,_0x172170=this[_0x588193(0x136)]();_0x172170===0x0?this[_0x588193(0x304)](_0x347749):this[_0x588193(0x210)][_0x588193(0xfe)](_0x347749,setTimeout(()=>this[_0x588193(0x304)](_0x347749),_0x172170));}[_0x320bb0(0x136)](){const _0x34f257=_0x320bb0;var _0x4fd012;return(_0x4fd012=this['_configService'][_0x34f257(0x2bf)](u[_0x34f257(0xc0)]))!=null?_0x4fd012:u[_0x34f257(0x294)];}[_0x320bb0(0x304)](_0x59a2bd){const _0x2d7b15=_0x320bb0,_0x369fbe=this[_0x2d7b15(0x210)]['get'](_0x59a2bd);return _0x369fbe!==void 0x0&&window['clearTimeout'](_0x369fbe),this[_0x2d7b15(0x25d)]['setItem'](u['getLocalCacheKey'](_0x59a2bd),this['_cachedData'][_0x2d7b15(0x20c)](_0x59a2bd))['then'](()=>this[_0x2d7b15(0x210)][_0x2d7b15(0x1c5)](_0x59a2bd));}async[_0x320bb0(0x193)](){const _0x233ff5=_0x320bb0,_0xe97b85=[];this[_0x233ff5(0x210)]['forEach']((_0x5ab313,_0x384021)=>{const _0x4bc3cf=_0x233ff5;window[_0x4bc3cf(0xc8)](_0x5ab313),_0xe97b85[_0x4bc3cf(0x2f5)](this['_saveCache'](_0x384021)[_0x4bc3cf(0xc6)](()=>{const _0x4776c1=_0x4bc3cf;this['_saveTaskMap'][_0x4776c1(0x1c5)](_0x384021);}));}),await Promise[_0x233ff5(0x16c)](_0xe97b85);}};me=es([he(0x0,a[_0x320bb0(0x1ea)]),he(0x1,a[_0x320bb0(0xb4)]),he(0x2,a['Inject'](m[_0x320bb0(0x120)]))],me);class Be extends a[_0x320bb0(0x133)]{constructor(){const _0x5dcb76=_0x320bb0;super(),_(this,'urlChange$'),this['urlChange$']=d[_0x5dcb76(0x26d)](window,_0x5dcb76(0x142))[_0x5dcb76(0x1db)](d['takeUntil'](this[_0x5dcb76(0x16e)]),d[_0x5dcb76(0x1cf)](0x1),d[_0x5dcb76(0x1ce)](void 0x0));}[_0x320bb0(0x176)](_0x4e1cc1,_0x2c63ad,_0x4b6671=!0x1){const _0xc7aa8=_0x320bb0,_0x4af234=new URL(window[_0xc7aa8(0x149)][_0xc7aa8(0x15b)]);_0x4af234[_0xc7aa8(0x1a5)][_0xc7aa8(0xfe)](_0x4e1cc1,_0x2c63ad),_0x4b6671?window[_0xc7aa8(0x206)][_0xc7aa8(0x2f8)]('','',_0x4af234['toString']()):window[_0xc7aa8(0x206)]['pushState']('','',_0x4af234[_0xc7aa8(0x277)]());}[_0x320bb0(0x14c)](_0x569d69,_0x138f43=!0x1){const _0x1a2cfa=_0x320bb0,_0xd594=new URL(window[_0x1a2cfa(0x149)][_0x1a2cfa(0x15b)]);_0xd594[_0x1a2cfa(0x1a5)]['delete'](_0x569d69),_0x138f43?window[_0x1a2cfa(0x206)]['replaceState']('','',_0xd594[_0x1a2cfa(0x277)]()):window[_0x1a2cfa(0x206)][_0x1a2cfa(0x243)]('','',_0xd594['toString']());}[_0x320bb0(0x1c1)](_0x2515f5){const _0x468c80=_0x320bb0;var _0x196dd5;return(_0x196dd5=new URL(window[_0x468c80(0x149)]['href'])[_0x468c80(0x1a5)][_0x468c80(0x20c)](_0x2515f5))!=null?_0x196dd5:void 0x0;}}var ts=Object['defineProperty'],ss=Object['getOwnPropertyDescriptor'],ns=(_0x76858f,_0xbb583,_0x358958)=>_0xbb583 in _0x76858f?ts(_0x76858f,_0xbb583,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x358958}):_0x76858f[_0xbb583]=_0x358958,is=(_0x190d5d,_0x38ee94,_0x5dd656,_0x36cb4d)=>{for(var _0x104f69=_0x36cb4d>0x1?void 0x0:_0x36cb4d?ss(_0x38ee94,_0x5dd656):_0x38ee94,_0x40b42a=_0x190d5d['length']-0x1,_0x225fe0;_0x40b42a>=0x0;_0x40b42a--)(_0x225fe0=_0x190d5d[_0x40b42a])&&(_0x104f69=_0x225fe0(_0x104f69)||_0x104f69);return _0x104f69;},ue=(_0x1bf4bd,_0x3d5f6e)=>(_0x53ae06,_0x56a63a)=>_0x3d5f6e(_0x53ae06,_0x56a63a,_0x1bf4bd),rs=(_0xee6c0f,_0x374432,_0x5a039b)=>ns(_0xee6c0f,_0x374432+'',_0x5a039b);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x320bb0(0x292)]=class extends a[_0x320bb0(0x296)]{constructor(_0x106310=Ne,_0x34b29a,_0x55f869,_0x2bd5f8){const _0x7bd043=_0x320bb0;super(),this[_0x7bd043(0x103)]=_0x106310,this[_0x7bd043(0x23c)]=_0x34b29a,this[_0x7bd043(0x303)]=_0x55f869,this[_0x7bd043(0x156)]=_0x2bd5f8;const {..._0x3b651a}=a[_0x7bd043(0x12c)]({},Ne,this[_0x7bd043(0x103)]);this['_configService'][_0x7bd043(0x1c2)](Wt,_0x3b651a);}['onStarting'](){const _0x4e4cd0=_0x320bb0;this['_registerDependencies'](),this[_0x4e4cd0(0x2a1)]();}[_0x320bb0(0x196)](){const _0x45264e=_0x320bb0;this[_0x45264e(0xf8)]();}['_registerDependencies'](){const _0x3c95ea=_0x320bb0;var _0x2c27d2;const _0x158367=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q[_0x3c95ea(0xee)]}],[u[_0x3c95ea(0x22f)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x3c95ea(0x13d)]]];a[_0x3c95ea(0x2eb)](this[_0x3c95ea(0x303)],a[_0x3c95ea(0x23e)](_0x158367,(_0x2c27d2=this[_0x3c95ea(0x103)])==null?void 0x0:_0x2c27d2['override']));}[_0x320bb0(0xf8)](){const _0x13e566=_0x320bb0;this[_0x13e566(0x10a)](this[_0x13e566(0x23c)][_0x13e566(0x146)](a['UniverInstanceType'][_0x13e566(0x163)],[ve])),this[_0x13e566(0x10a)](this[_0x13e566(0x23c)][_0x13e566(0x146)](a[_0x13e566(0x282)][_0x13e566(0x1da)],[ge]));}['_initDependencies'](){const _0x21cea7=_0x320bb0;a[_0x21cea7(0x107)](this['_injector'],[[x],[exports[_0x21cea7(0x20a)]],[ee],[z],[exports[_0x21cea7(0x13d)]]]);}},rs(exports[_0x320bb0(0x292)],_0x320bb0(0x11f),os),exports['UniverCollaborationClientUIPlugin']=is([a[_0x320bb0(0x12f)](u[_0x320bb0(0x153)]),ue(0x1,p[_0x320bb0(0x28a)]),ue(0x2,a['Inject'](a['Injector'])),ue(0x3,a[_0x320bb0(0x1ea)])],exports[_0x320bb0(0x292)]);var as=Object[_0x320bb0(0x1a2)],cs=(_0x5a3331,_0x166a19,_0x3f3a32,_0x13e2bc)=>{for(var _0x63163c=_0x13e2bc>0x1?void 0x0:_0x13e2bc?as(_0x166a19,_0x3f3a32):_0x166a19,_0x52047b=_0x5a3331['length']-0x1,_0x59376a;_0x52047b>=0x0;_0x52047b--)(_0x59376a=_0x5a3331[_0x52047b])&&(_0x63163c=_0x59376a(_0x63163c)||_0x63163c);return _0x63163c;},F=(_0x1a365,_0x1da161)=>(_0x1c1101,_0x40a5ee)=>_0x1da161(_0x1c1101,_0x40a5ee,_0x1a365);exports[_0x320bb0(0x198)]=class extends u[_0x320bb0(0x1ab)]{constructor(_0x5d9479,_0x452dc5,_0x5ca398,_0x123972,_0xc0d463){super(_0x5d9479,_0x452dc5,_0x5ca398,_0x123972,_0xc0d463);}async[_0x320bb0(0x12d)](_0x5eb030){const _0xfb20e2=_0x320bb0,_0x43e0c0=await this['_getSessionTicket'](),_0x56ec7e=this[_0xfb20e2(0x27e)](_0x5eb030,_0x43e0c0);return this[_0xfb20e2(0x202)](_0x56ec7e);}[_0x320bb0(0x27e)](_0x45076c,_0x386c23){const _0x2f48aa=_0x320bb0,_0x4ac27c=typeof window>'u'?new URL(_0x45076c):new URL(_0x45076c,window[_0x2f48aa(0x149)][_0x2f48aa(0x127)]);_0x4ac27c['searchParams'][_0x2f48aa(0xfe)](_0x2f48aa(0x140),_0x386c23);const _0x4eb42f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2f48aa(0x149)][_0x2f48aa(0xc1)]);return _0x4eb42f['get'](_0x2f48aa(0x8d))&&_0x4ac27c[_0x2f48aa(0x1a5)][_0x2f48aa(0xfe)](_0x2f48aa(0x8d),_0x4eb42f[_0x2f48aa(0x20c)](_0x2f48aa(0x8d))),_0x4ac27c[_0x2f48aa(0x277)]();}async['_getSessionTicket'](){const _0x46e7b0=_0x320bb0;var _0x4666e1,_0x40fbb4,_0x571cb3;const _0x4ffa3a=this[_0x46e7b0(0x156)][_0x46e7b0(0x2bf)](u[_0x46e7b0(0x1c9)]),_0x16cc12=(_0x4666e1=_0x4ffa3a==null?void 0x0:_0x4ffa3a[_0x46e7b0(0xb9)])!=null?_0x4666e1:u[_0x46e7b0(0x26f)];return(_0x571cb3=(_0x40fbb4=(await this[_0x46e7b0(0x1fe)][_0x46e7b0(0x20c)](_0x16cc12,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x40fbb4[_0x46e7b0(0x102)])!=null?_0x571cb3:'';}},exports['BrowserCollaborationSocketService']=cs([F(0x0,a[_0x320bb0(0x122)](a[_0x320bb0(0x207)])),F(0x1,a[_0x320bb0(0x122)](q[_0x320bb0(0x1a6)])),F(0x2,a['IConfigService']),F(0x3,a[_0x320bb0(0x10e)]),F(0x4,m['ISnapshotServerService'])],exports[_0x320bb0(0x198)]);const Pe=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x320bb0(0x25f)]{constructor(){const _0x8737d0=_0x320bb0;super(),_(this,_0x8737d0(0xd5),a[_0x8737d0(0x16b)]()),_(this,_0x8737d0(0x274),new Set()),_(this,_0x8737d0(0x26b),new Map()),_(this,_0x8737d0(0x2c1),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this['_init']();}[_0x320bb0(0x2df)](){const _0x4881a5=_0x320bb0;super[_0x4881a5(0x2df)](),this['_clearOtherTimers'][_0x4881a5(0xad)]((_0x3123eb,_0x21123c)=>this['_removeClearOtherTimer'](_0x21123c)),this[_0x4881a5(0x2c1)]&&window[_0x4881a5(0x11a)](this[_0x4881a5(0x2c1)]);}[_0x320bb0(0x95)](_0x41cf14){const _0x355f05=_0x320bb0;return this['_ensureSubject'](_0x41cf14)[_0x355f05(0x1db)](d[_0x355f05(0x10b)]());}[_0x320bb0(0xab)](_0x337b9a){const _0x4707ae=_0x320bb0;this[_0x4707ae(0x274)][_0x4707ae(0x1bd)]===0x0&&this[_0x4707ae(0xac)](),this[_0x4707ae(0x274)]['add'](_0x337b9a),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x337b9a],'isForwarded':!0x1});}['disposeUnit'](_0x1d2b7c){const _0x15e1d9=_0x320bb0;this[_0x15e1d9(0x274)][_0x15e1d9(0x1c5)](_0x1d2b7c),this[_0x15e1d9(0x274)][_0x15e1d9(0x1bd)]===0x0&&this[_0x15e1d9(0x2c1)]&&window[_0x15e1d9(0x11a)](this[_0x15e1d9(0x2c1)]);}[_0x320bb0(0x113)](){const _0x1021f3=_0x320bb0;this[_0x1021f3(0x10a)](a['toDisposable'](d[_0x1021f3(0x26d)](window,_0x1021f3(0xef))[_0x1021f3(0x283)](_0x3c32d8=>{const _0x185cec=_0x1021f3;if(_0x3c32d8[_0x185cec(0x2d6)]!==Le||!_0x3c32d8[_0x185cec(0x1b7)])return;const _0x39b9b8=JSON[_0x185cec(0x231)](_0x3c32d8[_0x185cec(0x1b7)]);this['_handleEvent'](_0x39b9b8);}))),window[_0x1021f3(0x100)](_0x1021f3(0x2e9),()=>this[_0x1021f3(0x2f2)]({'type':0x1,'memberID':this[_0x1021f3(0xd5)],'unitIDs':Array[_0x1021f3(0x221)](this[_0x1021f3(0x274)])}));}['_handleEvent'](_0x49daf9){const _0x72b5ff=_0x320bb0;switch(_0x49daf9[_0x72b5ff(0x240)]){case 0x0:this[_0x72b5ff(0x123)](_0x49daf9);break;case 0x1:this['_handleLeaveEvent'](_0x49daf9);break;case 0x2:this[_0x72b5ff(0xf3)](_0x49daf9);break;}}['_handleJoinEvent'](_0x608d14){const _0x2e0aa1=_0x320bb0,{unitIDs:_0x5dccd5,memberID:_0xd7688e,isForwarded:_0x166b12}=_0x608d14;_0x5dccd5[_0x2e0aa1(0xad)](_0x53f322=>{const _0x1de9ea=_0x2e0aa1;if(!_0x166b12&&this[_0x1de9ea(0x26b)]['has'](_0x53f322)&&this[_0x1de9ea(0xd1)](_0x53f322)['next'](u[_0x1de9ea(0x2be)][_0x1de9ea(0x17d)]),!this['_unitOnClients'][_0x1de9ea(0x148)](_0x53f322)||!this[_0x1de9ea(0x26b)]['get'](_0x53f322)[_0x1de9ea(0x148)](_0xd7688e)){const _0x43f9bb=this['_unitOnClients'][_0x1de9ea(0x20c)](_0x53f322)||new Set();_0x43f9bb[_0x1de9ea(0x2a4)](_0xd7688e),this[_0x1de9ea(0x26b)][_0x1de9ea(0xfe)](_0x53f322,_0x43f9bb),this[_0x1de9ea(0x225)](_0xd7688e);}}),_0x166b12||this[_0x2e0aa1(0x2f2)]({'type':0x0,'memberID':this[_0x2e0aa1(0xd5)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x12c977){const _0x2b70b2=_0x320bb0;this[_0x2b70b2(0xb5)](_0x12c977);const _0x378ea5=window[_0x2b70b2(0xe1)](()=>{const _0x2b7064=_0x2b70b2;this[_0x2b7064(0x26b)][_0x2b7064(0xad)](_0x49f67f=>{const _0x1ea30d=_0x2b7064;_0x49f67f[_0x1ea30d(0x1c5)](_0x12c977);});},Pe*0x2);this[_0x2b70b2(0x1c3)][_0x2b70b2(0xfe)](_0x12c977,_0x378ea5);}[_0x320bb0(0xb5)](_0x131d71){const _0x277e35=_0x320bb0;if(this['_clearOtherTimers'][_0x277e35(0x148)](_0x131d71)){const _0x3fb480=this[_0x277e35(0x1c3)][_0x277e35(0x20c)](_0x131d71);_0x3fb480&&window[_0x277e35(0xc8)](_0x3fb480),this[_0x277e35(0x1c3)]['set'](_0x131d71,null);}}[_0x320bb0(0x227)](_0x308e8e){const _0x53c20=_0x320bb0,{memberID:_0x3c7273,unitIDs:_0x3003d5}=_0x308e8e;_0x3003d5['forEach'](_0x46145b=>{const _0x29428f=_0x55af;var _0x5c1a1e;const _0x36c9bf=this['_unitOnClients']['get'](_0x46145b);_0x36c9bf&&(_0x36c9bf['delete'](_0x3c7273),(_0x5c1a1e=this['_ensureSubject'](_0x46145b))==null||_0x5c1a1e[_0x29428f(0x213)](_0x36c9bf[_0x29428f(0x1bd)]===0x0?u['UnitStatus'][_0x29428f(0x80)]:u[_0x29428f(0x2be)]['OTHER_CLIENTS_EDITING']));}),this[_0x53c20(0xb5)](_0x3c7273);}['_handleHeartbeatEvent'](_0xe9a0b9){const _0x59bdc3=_0x320bb0;this[_0x59bdc3(0x225)](_0xe9a0b9[_0x59bdc3(0xb6)]);}['_send'](_0x1b07a4){const _0x5dce28=_0x320bb0;localStorage[_0x5dce28(0x1fa)](Le,JSON[_0x5dce28(0x30b)](_0x1b07a4));}[_0x320bb0(0xac)](){const _0xd4474d=_0x320bb0;this[_0xd4474d(0x2c1)]=window[_0xd4474d(0xaf)](()=>{const _0x5620a7=_0xd4474d;this[_0x5620a7(0x2f2)]({'type':0x2,'memberID':this[_0x5620a7(0xd5)]});},Pe);}['_ensureSubject'](_0x18058e){const _0x446aad=_0x320bb0;return this[_0x446aad(0x24c)][_0x446aad(0x148)](_0x18058e)||this[_0x446aad(0x24c)]['set'](_0x18058e,new d[(_0x446aad(0xf0))](u[_0x446aad(0x2be)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x446aad(0x24c)][_0x446aad(0x20c)](_0x18058e);}}var ke=(_0x4ff980=>(_0x4ff980[_0x4ff980[_0x320bb0(0x2fd)]=0x0]=_0x320bb0(0x2fd),_0x4ff980[_0x4ff980['OK']=0x1]='OK',_0x4ff980[_0x4ff980[_0x320bb0(0x28f)]=0x2]='INTERNAL_ERROR',_0x4ff980[_0x4ff980[_0x320bb0(0x87)]=0x3]=_0x320bb0(0x87),_0x4ff980[_0x4ff980['NOT_FOUND']=0x4]='NOT_FOUND',_0x4ff980[_0x4ff980[_0x320bb0(0x186)]=0x5]=_0x320bb0(0x186),_0x4ff980[_0x4ff980['ALREADY_EXISTS']=0x6]=_0x320bb0(0x174),_0x4ff980[_0x4ff980[_0x320bb0(0x171)]=0x7]='INVALID_ARGUMENT',_0x4ff980[_0x4ff980['TOO_MANY_REQUESTS']=0x8]=_0x320bb0(0x309),_0x4ff980[_0x4ff980['COMPLETION_FINISHED']=0x9]=_0x320bb0(0x1d9),_0x4ff980[_0x4ff980[_0x320bb0(0x124)]=0xa]=_0x320bb0(0x124),_0x4ff980[_0x4ff980[_0x320bb0(0x2b8)]=0x1389]=_0x320bb0(0x2b8),_0x4ff980[_0x4ff980[_0x320bb0(0x1ee)]=0x1771]=_0x320bb0(0x1ee),_0x4ff980[_0x4ff980[_0x320bb0(0x2e8)]=0x1772]=_0x320bb0(0x2e8),_0x4ff980[_0x4ff980[_0x320bb0(0xf9)]=0x1773]=_0x320bb0(0xf9),_0x4ff980[_0x4ff980[_0x320bb0(0x29d)]=0x1b59]=_0x320bb0(0x29d),_0x4ff980[_0x4ff980[_0x320bb0(0xce)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4ff980[_0x4ff980[_0x320bb0(0x2a3)]=0x1b5b]=_0x320bb0(0x2a3),_0x4ff980[_0x4ff980['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x320bb0(0x151),_0x4ff980[_0x4ff980[_0x320bb0(0x115)]=0x1b5d]=_0x320bb0(0x115),_0x4ff980[_0x4ff980[_0x320bb0(0x261)]=0x1f41]=_0x320bb0(0x261),_0x4ff980[_0x4ff980[_0x320bb0(0x15e)]=0x2329]=_0x320bb0(0x15e),_0x4ff980[_0x4ff980[_0x320bb0(0x234)]=0x232a]=_0x320bb0(0x234),_0x4ff980[_0x4ff980[_0x320bb0(0x268)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4ff980[_0x4ff980[_0x320bb0(0x191)]=0x232c]=_0x320bb0(0x191),_0x4ff980[_0x4ff980[_0x320bb0(0x302)]=0x232d]=_0x320bb0(0x302),_0x4ff980[_0x4ff980[_0x320bb0(0x1aa)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4ff980[_0x4ff980['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x320bb0(0x169),_0x4ff980[_0x4ff980[_0x320bb0(0x18e)]=0x2713]=_0x320bb0(0x18e),_0x4ff980[_0x4ff980[_0x320bb0(0x9b)]=0x2714]=_0x320bb0(0x9b),_0x4ff980[_0x4ff980['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x320bb0(0x1af),_0x4ff980[_0x4ff980['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4ff980[_0x4ff980['INVALID_INVITE_CODE']=0x2ee2]=_0x320bb0(0x14a),_0x4ff980[_0x4ff980[_0x320bb0(0x2ff)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4ff980[_0x4ff980[_0x320bb0(0x2b7)]=0x2ee4]=_0x320bb0(0x2b7),_0x4ff980[_0x4ff980[_0x320bb0(0x1bb)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4ff980[_0x4ff980[_0x320bb0(0x1e5)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x4ff980[_0x4ff980[_0x320bb0(0xa8)]=0x32ca]=_0x320bb0(0xa8),_0x4ff980[_0x4ff980[_0x320bb0(0xca)]=0x32cb]=_0x320bb0(0xca),_0x4ff980[_0x4ff980[_0x320bb0(0x126)]=-0x1]=_0x320bb0(0x126),_0x4ff980))(ke||{}),_s=Object[_0x320bb0(0x1a2)],hs=(_0x4fcef5,_0x39fd11,_0x28c57b,_0x18127e)=>{for(var _0x12637d=_0x18127e>0x1?void 0x0:_0x18127e?_s(_0x39fd11,_0x28c57b):_0x39fd11,_0x4a11bc=_0x4fcef5['length']-0x1,_0x1c1b29;_0x4a11bc>=0x0;_0x4a11bc--)(_0x1c1b29=_0x4fcef5[_0x4a11bc])&&(_0x12637d=_0x1c1b29(_0x12637d)||_0x12637d);return _0x12637d;},de=(_0x380cec,_0x297046)=>(_0x506061,_0xf19394)=>_0x297046(_0x506061,_0xf19394,_0x380cec);exports['RemoteUniscriptService']=class extends a[_0x320bb0(0x25f)]{constructor(_0x4096b3,_0x2d1187,_0x97d0d1){const _0x145bf6=_0x320bb0;super(),this[_0x145bf6(0xa6)]=_0x4096b3,this[_0x145bf6(0x1fe)]=_0x2d1187,this['_configService']=_0x97d0d1;}async[_0x320bb0(0x2cd)](_0x1c2e49,_0x102f32,_0xeab02d,..._0x120763){const _0x25dc3f=_0x320bb0;var _0x499e93,_0x17bba7,_0xe7fc28,_0x1bf54b;const _0x5213ef=this['_instanceService'][_0x25dc3f(0x219)]();if(!_0x5213ef)throw new Error(_0x25dc3f(0x244));const _0x5df9d9=((_0x499e93=this[_0x25dc3f(0x156)][_0x25dc3f(0x2bf)](u[_0x25dc3f(0x106)]))!=null?_0x499e93:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1c2e49+_0x25dc3f(0x1ec)+_0x102f32,_0x32ddef=new URL(window[_0x25dc3f(0x149)][_0x25dc3f(0x15b)]),_0x20c8f7={'scriptId':_0x1c2e49,'runId':(_0x17bba7=_0x32ddef[_0x25dc3f(0x1a5)][_0x25dc3f(0x20c)](_0x25dc3f(0x8d)))!=null?_0x17bba7:'','function':_0x102f32,'unitId':_0x5213ef['getUnitId'](),'argsOfFunction':JSON[_0x25dc3f(0x30b)](_0x120763),'invokeId':(_0xe7fc28=_0xeab02d[_0x25dc3f(0x93)])!=null?_0xe7fc28:'','executionId':(_0x1bf54b=_0xeab02d[_0x25dc3f(0x307)])!=null?_0x1bf54b:''};try{const _0x547482=await this[_0x25dc3f(0x1fe)][_0x25dc3f(0x2b9)](_0x5df9d9,{'body':_0x20c8f7});return _0x547482['body'][_0x25dc3f(0x2f4)]&&_0x547482[_0x25dc3f(0x2b0)][_0x25dc3f(0x2f4)][_0x25dc3f(0x2a2)]!==ke['OK']?_0x25dc3f(0x2cb):_0x547482[_0x25dc3f(0x2b0)][_0x25dc3f(0x2ca)];}catch{return _0x25dc3f(0x2cb);}}},exports[_0x320bb0(0x2e5)]=hs([de(0x0,a[_0x320bb0(0x1e1)]),de(0x1,a[_0x320bb0(0x122)](q['HTTPService'])),de(0x2,a[_0x320bb0(0x1ea)])],exports[_0x320bb0(0x2e5)]),exports['CollaborationStatusDisplay']=je,exports['IURLService']=Ee,exports[_0x320bb0(0x195)]=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports['WebURLService']=Be;
|
|
1
|
+
'use strict';const _0x441672=_0x4375;(function(_0x2ef7b3,_0x5ce768){const _0x1267f3=_0x4375,_0x27bef4=_0x2ef7b3();while(!![]){try{const _0xcc88fa=-parseInt(_0x1267f3(0x2df))/0x1+parseInt(_0x1267f3(0x22f))/0x2+-parseInt(_0x1267f3(0x39d))/0x3*(parseInt(_0x1267f3(0x223))/0x4)+-parseInt(_0x1267f3(0x3f1))/0x5*(parseInt(_0x1267f3(0x31f))/0x6)+parseInt(_0x1267f3(0x29e))/0x7*(-parseInt(_0x1267f3(0x3ab))/0x8)+parseInt(_0x1267f3(0x347))/0x9*(-parseInt(_0x1267f3(0x24d))/0xa)+parseInt(_0x1267f3(0x1db))/0xb*(parseInt(_0x1267f3(0x273))/0xc);if(_0xcc88fa===_0x5ce768)break;else _0x27bef4['push'](_0x27bef4['shift']());}catch(_0xb7f811){_0x27bef4['push'](_0x27bef4['shift']());}}}(_0x38c0,0x376ba));var Xe=Object[_0x441672(0x3d1)],Ge=(_0x45d5f5,_0x22c934,_0x2df08a)=>_0x22c934 in _0x45d5f5?Xe(_0x45d5f5,_0x22c934,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2df08a}):_0x45d5f5[_0x22c934]=_0x2df08a,_=(_0x17a4af,_0x3ecbca,_0x8b26c7)=>Ge(_0x17a4af,typeof _0x3ecbca!=_0x441672(0x2e3)?_0x3ecbca+'':_0x3ecbca,_0x8b26c7);Object[_0x441672(0x3d1)](exports,Symbol['toStringTag'],{'value':_0x441672(0x210)});const u=require(_0x441672(0x321)),a=require('@univerjs/core'),p=require(_0x441672(0x415)),q=require('@univerjs/network'),b=require(_0x441672(0x302)),qe=require(_0x441672(0x1bd)),d=require(_0x441672(0x398)),Y=require('@univerjs/docs'),m=require(_0x441672(0x280)),Te=require(_0x441672(0x367)),g=require(_0x441672(0x33e)),$=require(_0x441672(0x3c8)),G=require(_0x441672(0x411)),L=require(_0x441672(0x409)),R=require(_0x441672(0x296)),T=require('@univerjs/design'),M=require('react'),Ke=require(_0x441672(0x31c));var ze=Object['getOwnPropertyDescriptor'],Je=(_0x39eb5f,_0x33e462,_0x2e4873,_0x1f4166)=>{for(var _0x1a6fad=_0x1f4166>0x1?void 0x0:_0x1f4166?ze(_0x33e462,_0x2e4873):_0x33e462,_0x4a0811=_0x39eb5f['length']-0x1,_0x496ca6;_0x4a0811>=0x0;_0x4a0811--)(_0x496ca6=_0x39eb5f[_0x4a0811])&&(_0x1a6fad=_0x496ca6(_0x1a6fad)||_0x1a6fad);return _0x1a6fad;},Re=(_0x37f3e8,_0x743740)=>(_0x5e7172,_0x477e45)=>_0x743740(_0x5e7172,_0x477e45,_0x37f3e8);let fe=class extends a[_0x441672(0x1bc)]{constructor(_0xc0af6b,_0x3b672e){const _0x570cea=_0x441672;super(),this[_0x570cea(0x1c0)]=_0xc0af6b,this['_imageIoService']=_0x3b672e,this['_init']();}[_0x441672(0x39e)](){const _0x467c98=_0x441672,_0x2bd15d=this;this['disposeWithMe'](this[_0x467c98(0x1c0)][_0x467c98(0x2ac)]({'onBeforePasteImage':async _0x3284bb=>{const _0x22f451=_0x467c98,_0x5e9674=await _0x2bd15d[_0x22f451(0x379)][_0x22f451(0x2bd)](_0x3284bb);return _0x5e9674?{'source':_0x5e9674['source'],'imageSourceType':_0x5e9674['imageSourceType']}:null;}}));}};fe=Je([Re(0x0,b[_0x441672(0x392)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=[_0x441672(0x226),_0x441672(0x3c9),_0x441672(0x322),_0x441672(0x42b),_0x441672(0x2a7),_0x441672(0x2c3)];class Ce extends a[_0x441672(0x1f7)]{constructor(){const _0x1437aa=_0x441672;super(...arguments),_(this,_0x1437aa(0x3b5),new Map()),_(this,_0x1437aa(0x343),0x0);}['assignAColorForMemberID'](_0x18be77){const _0x4605bc=_0x441672;if(this[_0x4605bc(0x3b5)][_0x4605bc(0x25e)](_0x18be77))return this[_0x4605bc(0x3b5)][_0x4605bc(0x236)](_0x18be77);const _0x498b86=Oe[this['_colorIndex']];return this[_0x4605bc(0x343)]=(this[_0x4605bc(0x343)]+0x1)%Oe['length'],this[_0x4605bc(0x3b5)][_0x4605bc(0x23a)](_0x18be77,_0x498b86),_0x498b86;}}function we(_0x2ea987){const _0x34a9a9=_0x441672;let _0x338266='';for(const _0x4353f9 of _0x2ea987){const {startOffset:_0x2d326b,endOffset:_0x5ca484,isActive:_0x32673d,rangeType:_0x1ba891,segmentId:_0xaf5dfd,segmentPage:_0x2b39c0}=_0x4353f9;_0x338266[_0x34a9a9(0x263)]&&(_0x338266+=','),_0x338266+=_0x2d326b+':'+_0x5ca484+':'+(_0x32673d?'1':'0')+':'+_0x1ba891+':'+_0xaf5dfd+':'+_0x2b39c0;}return _0x338266;}function Ze(_0x3eb3da){const _0x5702e4=_0x441672,_0x4f9a79=_0x3eb3da[_0x5702e4(0x37a)](','),_0x252bcc=[];for(const _0x59c428 of _0x4f9a79){const [_0x7f3739,_0x462783,_0x2d31ea,_0x19c6c3,_0x2b2de2,_0xe0d662]=_0x59c428[_0x5702e4(0x37a)](':');_0x252bcc[_0x5702e4(0x3c2)]({'startOffset':Number(_0x7f3739),'endOffset':Number(_0x462783),'collapsed':_0x7f3739===_0x462783,'isActive':_0x2d31ea==='1','rangeType':_0x19c6c3===a[_0x5702e4(0x2a8)][_0x5702e4(0x35c)]?a['DOC_RANGE_TYPE'][_0x5702e4(0x35c)]:a[_0x5702e4(0x2a8)][_0x5702e4(0x2be)],'segmentId':typeof _0x2b2de2==_0x5702e4(0x1e7)?String(_0x2b2de2):'','segmentPage':Number(_0xe0d662!=null?_0xe0d662:-0x1)});}return _0x252bcc[_0x5702e4(0x377)](_0x10705c=>_0x10705c[_0x5702e4(0x215)])||(_0x252bcc[0x0][_0x5702e4(0x215)]=!0x0),_0x252bcc;}class pe extends a['RxDisposable']{constructor(){const _0x389f16=_0x441672;super(...arguments),_(this,_0x389f16(0x3f0),new d[(_0x389f16(0x2ca))](null)),_(this,_0x389f16(0x36c),this[_0x389f16(0x3f0)]['asObservable']());}[_0x441672(0x292)](_0x3c4f5b){const _0x2a41cc=_0x441672,{unitID:_0x45ace5,memberID:_0x598394,textRanges:_0x383f1c}=_0x3c4f5b,_0x53d74c=we(_0x383f1c);if(_0x53d74c==='')return;const _0x1587cb={'unitID':_0x45ace5,'memberID':_0x598394,'selection':_0x53d74c};this[_0x2a41cc(0x3f0)][_0x2a41cc(0x3ca)](_0x1587cb);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x681ca5,_0x4eac57,_0x4b0916,_0x14a826)=>{for(var _0x1eec6b=_0x14a826>0x1?void 0x0:_0x14a826?Qe(_0x4eac57,_0x4b0916):_0x4eac57,_0x280c46=_0x681ca5['length']-0x1,_0x465a38;_0x280c46>=0x0;_0x280c46--)(_0x465a38=_0x681ca5[_0x280c46])&&(_0x1eec6b=_0x465a38(_0x1eec6b)||_0x1eec6b);return _0x1eec6b;},P=(_0x51b39e,_0x402339)=>(_0x15921f,_0xdb7370)=>_0x402339(_0x15921f,_0xdb7370,_0x51b39e);const tt=0x12c,st=0x64;let Se=class extends a[_0x441672(0x1bc)]{constructor(_0x272b47,_0x3a0034,_0x582c51,_0x564bad,_0x5660bf,_0x37839c,_0x5da422,_0x41d103,_0x52fd22){const _0x540938=_0x441672;super(),_(this,_0x540938(0x419),!0x1),_(this,'_init',!0x1),_(this,_0x540938(0x1f1),new d[(_0x540938(0x2ca))](new Map())),_(this,_0x540938(0x346),this[_0x540938(0x1f1)]['asObservable']()),_(this,'_roomMembers$',new d[(_0x540938(0x2ca))]([])),_(this,'roomMembers$',this[_0x540938(0x418)][_0x540938(0x25b)](d[_0x540938(0x3ff)](tt))),_(this,_0x540938(0x1dd),a[_0x540938(0x371)](_0x35dd43=>{const _0x2a3e78=_0x540938,_0x1fe1a1={'eventID':m[_0x2a3e78(0x3cf)][_0x2a3e78(0x34d)],'data':{'unitID':this[_0x2a3e78(0x40f)],'memberID':this['_session'][_0x2a3e78(0x35d)](),'selection':we(_0x35dd43)}};this[_0x2a3e78(0x2c1)][_0x2a3e78(0x437)](_0x1fe1a1,this['unitID']);},st)),(this['unitID']=_0x272b47,this['_session']=_0x3a0034,this[_0x540938(0x1a9)]=_0x582c51,this[_0x540938(0x1e8)]=_0x564bad,this['_memberService']=_0x5660bf,this[_0x540938(0x42e)]=_0x37839c,this[_0x540938(0x40e)]=_0x5da422,this[_0x540938(0x1e2)]=_0x41d103,this[_0x540938(0x1f3)]=_0x52fd22);}get['cursorInfo'](){const _0x33b737=_0x441672;return this[_0x33b737(0x1f1)][_0x33b737(0x3d4)]();}get['roomMembers'](){const _0x4d0e57=_0x441672;return this[_0x4d0e57(0x418)]['getValue']();}[_0x441672(0x27d)](){const _0x350544=_0x441672;super[_0x350544(0x27d)](),this[_0x350544(0x1f1)][_0x350544(0x3ca)](new Map()),this[_0x350544(0x1f1)][_0x350544(0x2bc)](),this[_0x350544(0x418)][_0x350544(0x3ca)]([]),this['_roomMembers$'][_0x350544(0x2bc)]();}[_0x441672(0x304)](){const _0x30896b=_0x441672;this[_0x30896b(0x39e)]||(this[_0x30896b(0x39e)]=!0x0,this[_0x30896b(0x2c1)][_0x30896b(0x1b7)][_0x30896b(0x25b)](d[_0x30896b(0x244)](this[_0x30896b(0x313)]))[_0x30896b(0x2d4)](_0x6512a0=>{const _0x15e132=_0x30896b;_0x6512a0===u['SessionStatus'][_0x15e132(0x1fa)]?this[_0x15e132(0x3a1)]():this[_0x15e132(0x3d2)]();}),this[_0x30896b(0x2c1)][_0x30896b(0x256)][_0x30896b(0x25b)](d['takeUntil'](this[_0x30896b(0x313)]))[_0x30896b(0x2d4)](_0x296215=>{const _0x4d0fae=_0x30896b,_0x11e2e5=_0x296215[_0x4d0fae(0x231)];_0x11e2e5===m[_0x4d0fae(0x3cf)][_0x4d0fae(0x34d)]&&this[_0x4d0fae(0x2f1)](_0x296215),_0x11e2e5===m['CollaborationEvent'][_0x4d0fae(0x3ce)]&&this[_0x4d0fae(0x38d)](_0x296215);}),this[_0x30896b(0x3aa)](this[_0x30896b(0x1f3)][_0x30896b(0x1d2)](_0x131d43=>{const _0x547620=_0x30896b,_0x3ccc02=_0x131d43['params'];_0x3ccc02!=null&&this[_0x547620(0x419)]&&_0x131d43['id']===Y[_0x547620(0x3a4)]['id']&&_0x3ccc02[_0x547620(0x29d)]===this[_0x547620(0x40f)]&&_0x3ccc02[_0x547620(0x276)]===!0x1&&_0x3ccc02['ranges'][_0x547620(0x263)]>0x0&&this[_0x547620(0x1dd)](_0x3ccc02[_0x547620(0x250)]);})),this[_0x30896b(0x42e)][_0x30896b(0x36c)][_0x30896b(0x25b)](d[_0x30896b(0x244)](this['dispose$']))[_0x30896b(0x2d4)](_0x3e25b3=>{const _0x570c6e=_0x30896b;if((_0x3e25b3==null?void 0x0:_0x3e25b3['unitID'])!==this['unitID'])return;const _0x57464d={'eventID':m[_0x570c6e(0x3cf)]['UPDATE_CURSOR'],'data':_0x3e25b3};this[_0x570c6e(0x2f1)](_0x57464d);}),this['disposeWithMe'](this[_0x30896b(0x1f3)]['onCommandExecuted'](_0x1f8de0=>{const _0x121cd4=_0x30896b;if(_0x1f8de0['params']==null)return;const _0x187e5d=_0x1f8de0[_0x121cd4(0x421)];if(_0x1f8de0['id']!==Y[_0x121cd4(0x2e6)]['id']||_0x187e5d[_0x121cd4(0x29d)]!==this[_0x121cd4(0x40f)])return;const _0x496bd2={'id':'doc.mutation.rich-text-editing','params':_0x187e5d},_0x4c864f=this['cursorInfo'];for(const [_0x1471b5,_0x26b8ec]of _0x4c864f){const _0x593134={'id':_0x121cd4(0x1da),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x26b8ec[_0x121cd4(0x250)]}},_0x449f01=this[_0x121cd4(0x40e)][_0x121cd4(0x336)](_0x496bd2,_0x593134,!0x1);if(m[_0x121cd4(0x1ff)](_0x449f01))throw _0x449f01[_0x121cd4(0x22a)];_0x4c864f[_0x121cd4(0x23a)](_0x1471b5,{..._0x26b8ec,'ranges':_0x449f01[_0x121cd4(0x41b)][_0x121cd4(0x421)][_0x121cd4(0x1f8)]});}queueMicrotask(()=>{const _0x526864=_0x121cd4;this[_0x526864(0x1f1)]['next'](_0x4c864f);});})));}[_0x441672(0x2f1)](_0x1fd74c){const _0x34b731=_0x441672;var _0x1a4d0e,_0x2b4d7c;const {memberID:_0x395b4a,selection:_0x18a584}=_0x1fd74c[_0x34b731(0x2c0)],_0x1812fe=Ze(_0x18a584),_0x1e38e9=(_0x2b4d7c=(_0x1a4d0e=this[_0x34b731(0x3c4)]['getMember'](this[_0x34b731(0x40f)],_0x395b4a))==null?void 0x0:_0x1a4d0e[_0x34b731(0x36d)])!=null?_0x2b4d7c:'Unknown\x20user',_0x210efe={'color':this[_0x34b731(0x1e8)]['assignAColorForMemberID'](_0x395b4a),'name':_0x1e38e9,'ranges':_0x1812fe},_0x25c6bc=this[_0x34b731(0x1f6)];_0x25c6bc['set'](_0x395b4a,_0x210efe),this['_cursorInfo$'][_0x34b731(0x3ca)](_0x25c6bc);}[_0x441672(0x38d)](_0x1a2bdd){const _0x2561f3=_0x441672,{memberID:_0x33192f}=_0x1a2bdd['data'],_0x2f4c4f=this[_0x2561f3(0x1f6)];_0x2f4c4f['delete'](_0x33192f),this[_0x2561f3(0x1f1)][_0x2561f3(0x3ca)](_0x2f4c4f);}[_0x441672(0x3a1)](){const _0x5480fc=_0x441672;var _0x130775;if(this[_0x5480fc(0x419)]=!0x0,((_0x130775=this[_0x5480fc(0x1e2)]['getFocusedUnit']())==null?void 0x0:_0x130775[_0x5480fc(0x247)]())!==this[_0x5480fc(0x40f)])return;const _0x3bbea8=this[_0x5480fc(0x1a9)]['get'](Y[_0x5480fc(0x27a)])['getDocRanges']();Array[_0x5480fc(0x1b6)](_0x3bbea8)&&_0x3bbea8[_0x5480fc(0x263)]>0x0&&this[_0x5480fc(0x1dd)](_0x3bbea8);}[_0x441672(0x3d2)](){const _0x64d6f2=_0x441672;this[_0x64d6f2(0x419)]=!0x1;}};Se=et([P(0x2,a['Inject'](a['Injector'])),P(0x3,a['Inject'](Ce)),P(0x4,a['Inject'](u['MemberService'])),P(0x5,a[_0x441672(0x222)](pe)),P(0x6,m[_0x441672(0x2e5)]),P(0x7,a[_0x441672(0x41c)]),P(0x8,a[_0x441672(0x1cb)])],Se);var nt=Object[_0x441672(0x1b3)],it=(_0x48283f,_0x534e2b,_0x1152ac,_0x270e33)=>{const _0x535c86=_0x441672;for(var _0x8b8020=_0x270e33>0x1?void 0x0:_0x270e33?nt(_0x534e2b,_0x1152ac):_0x534e2b,_0x25c296=_0x48283f[_0x535c86(0x263)]-0x1,_0x6d6055;_0x25c296>=0x0;_0x25c296--)(_0x6d6055=_0x48283f[_0x25c296])&&(_0x8b8020=_0x6d6055(_0x8b8020)||_0x8b8020);return _0x8b8020;},A=(_0x45088a,_0x6e6440)=>(_0x4b9bd3,_0x3295ca)=>_0x6e6440(_0x4b9bd3,_0x3295ca,_0x45088a);const rt=0x12c,ot=0x64,at=()=>{let _0x338843=[],_0x542976=!0x1;return _0x2d1e54=>{const _0x10e738=_0x4375;_0x338843[_0x10e738(0x3c2)](_0x2d1e54),_0x542976||(_0x542976=!0x0,setTimeout(()=>{const _0x303abb=_0x10e738;_0x338843[_0x303abb(0x2c8)](_0x4bb0af=>_0x4bb0af()),_0x338843=[],_0x542976=!0x1;}));};};let Ie=class extends a[_0x441672(0x1bc)]{constructor(_0x2ec908,_0x3b1b6b,_0x9ba61b,_0x3abbaa,_0x596a26,_0x29dab0,_0x23b069,_0x100695){const _0x48ac92=_0x441672;super(),_(this,'_online',!0x1),_(this,_0x48ac92(0x39e),!0x1),_(this,_0x48ac92(0x1f1),new d['BehaviorSubject'](new Map())),_(this,_0x48ac92(0x346),this[_0x48ac92(0x1f1)][_0x48ac92(0x218)]()),_(this,_0x48ac92(0x418),new d[(_0x48ac92(0x2ca))]([])),_(this,_0x48ac92(0x41e),this[_0x48ac92(0x418)][_0x48ac92(0x25b)](d[_0x48ac92(0x3ff)](rt))),_(this,_0x48ac92(0x1dd),a[_0x48ac92(0x371)]((_0x141e6f,_0x172c0c)=>{const _0x4670f5=_0x48ac92,_0x51fef5={'eventID':m[_0x4670f5(0x3cf)][_0x4670f5(0x34d)],'data':{'unitID':this[_0x4670f5(0x40f)],'memberID':this['_session'][_0x4670f5(0x35d)](),'selection':Te[_0x4670f5(0x269)](_0x141e6f,_0x172c0c[_0x4670f5(0x3da)])}};this[_0x4670f5(0x2c1)][_0x4670f5(0x437)](_0x51fef5,this['unitID']);},ot)),(this[_0x48ac92(0x40f)]=_0x2ec908,this[_0x48ac92(0x2c1)]=_0x3b1b6b,this['_injector']=_0x9ba61b,this[_0x48ac92(0x1e8)]=_0x3abbaa,this[_0x48ac92(0x3c4)]=_0x596a26,this[_0x48ac92(0x1e2)]=_0x29dab0,this[_0x48ac92(0x1f3)]=_0x23b069,this[_0x48ac92(0x29a)]=_0x100695);}get[_0x441672(0x1f6)](){const _0x228457=_0x441672;return this[_0x228457(0x1f1)][_0x228457(0x3d4)]();}get['roomMembers'](){const _0x467300=_0x441672;return this[_0x467300(0x418)][_0x467300(0x3d4)]();}[_0x441672(0x27d)](){const _0x3c1efc=_0x441672;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x3c1efc(0x1f1)][_0x3c1efc(0x2bc)](),this['_roomMembers$'][_0x3c1efc(0x3ca)]([]),this[_0x3c1efc(0x418)][_0x3c1efc(0x2bc)]();}['init'](){const _0xbb5650=_0x441672;this[_0xbb5650(0x39e)]||(this[_0xbb5650(0x39e)]=!0x0,this[_0xbb5650(0x2c1)]['sessionStatus$'][_0xbb5650(0x25b)](d['takeUntil'](this['dispose$']))[_0xbb5650(0x2d4)](_0x3d8b09=>{const _0x2ed076=_0xbb5650;_0x3d8b09===u[_0x2ed076(0x311)]['ONLINE']?this[_0x2ed076(0x3a1)]():this[_0x2ed076(0x3d2)]();}),this['_session']['event$'][_0xbb5650(0x25b)](d[_0xbb5650(0x244)](this['dispose$']))[_0xbb5650(0x2d4)](_0x40c8cd=>{const _0x5a8e74=_0xbb5650,_0x2f7ca7=_0x40c8cd[_0x5a8e74(0x231)];_0x2f7ca7===m[_0x5a8e74(0x3cf)][_0x5a8e74(0x34d)]&&this[_0x5a8e74(0x2f1)](_0x40c8cd),_0x2f7ca7===m[_0x5a8e74(0x3cf)][_0x5a8e74(0x3ce)]&&this[_0x5a8e74(0x38d)](_0x40c8cd);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0xbb5650(0x1f3)][_0xbb5650(0x1d2)](_0xd4fd3f=>{const _0x30580a=_0xbb5650;if(this[_0x30580a(0x419)]&&_0xd4fd3f['id']===g[_0x30580a(0x1ca)]['id']&&_0xd4fd3f[_0x30580a(0x421)]['unitId']===this[_0x30580a(0x40f)]){const _0x2fefba=_0xd4fd3f[_0x30580a(0x421)];this[_0x30580a(0x1dd)](_0x2fefba['subUnitId'],_0x2fefba[_0x30580a(0x363)][0x0]);}})));}[_0x441672(0x2f1)](_0x9d6190){const _0x331f3c=_0x441672;var _0x2232f7,_0x178bdb;const {memberID:_0x289fbf,selection:_0x3e1f47}=_0x9d6190['data'],{sheetName:_0x453452,range:_0x2a789c}=Te[_0x331f3c(0x364)](_0x3e1f47),_0xaaae04={'name':(_0x178bdb=(_0x2232f7=this['_memberService'][_0x331f3c(0x42c)](this[_0x331f3c(0x40f)],_0x289fbf))==null?void 0x0:_0x2232f7[_0x331f3c(0x36d)])!=null?_0x178bdb:_0x331f3c(0x3d7),'range':this[_0x331f3c(0x28b)](_0x453452,_0x2a789c),'sheetID':_0x453452,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x289fbf),'selection':_0x3e1f47},_0x3c3b2b=this['cursorInfo'];_0x3c3b2b[_0x331f3c(0x23a)](_0x289fbf,_0xaaae04),this[_0x331f3c(0x1f1)][_0x331f3c(0x3ca)](_0x3c3b2b);}[_0x441672(0x38d)](_0x234f93){const _0xe0d1aa=_0x441672,{memberID:_0x49cebf}=_0x234f93[_0xe0d1aa(0x2c0)],_0x16b4b4=this[_0xe0d1aa(0x1f6)];_0x16b4b4[_0xe0d1aa(0x20f)](_0x49cebf),this['_cursorInfo$'][_0xe0d1aa(0x3ca)](_0x16b4b4);}[_0x441672(0x28b)](_0x278ff9,_0x503b2b){const _0x17e4de=_0x441672;var _0x1718f8,_0x3f2579;const _0x43a76d=(_0x3f2579=(_0x1718f8=this[_0x17e4de(0x1e2)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x1718f8[_0x17e4de(0x2a0)](_0x278ff9))==null?void 0x0:_0x3f2579[_0x17e4de(0x3db)]();return(_0x43a76d==null?void 0x0:_0x43a76d[_0x17e4de(0x3a9)](_0xa71472=>a[_0x17e4de(0x353)][_0x17e4de(0x2b2)](_0xa71472,_0x503b2b)))||_0x503b2b;}[_0x441672(0x3ac)](){const _0x5f2787=_0x441672,_0x1c0346=new a[(_0x5f2787(0x216))](),_0x6a115=at(),_0x455648=()=>{const _0x44159e=_0x5f2787;_0x1c0346['dispose']();const _0x36bab6=(_0x6346ef,_0x2012b0,_0xac5d79,_0x5d7385)=>{const _0x517302=_0x4375;let _0x3db4eb=[];switch(_0x6346ef['id']){case g[_0x517302(0x30e)][_0x517302(0x25c)]:{_0x3db4eb=g[_0x517302(0x28e)](_0x6346ef,_0x5d7385);break;}case g[_0x517302(0x30e)][_0x517302(0x25a)]:{_0x3db4eb=g[_0x517302(0x334)](_0x6346ef,_0x5d7385);break;}case g['EffectRefRangId'][_0x517302(0x308)]:{_0x3db4eb=g[_0x517302(0x388)](_0x6346ef,_0x5d7385);break;}case g[_0x517302(0x30e)][_0x517302(0x404)]:{_0x3db4eb=g[_0x517302(0x291)](_0x6346ef,_0x5d7385);break;}case g[_0x517302(0x30e)][_0x517302(0x238)]:{_0x3db4eb=g[_0x517302(0x355)](_0x6346ef,_0x5d7385);break;}case g[_0x517302(0x30e)][_0x517302(0x34e)]:{_0x3db4eb=g[_0x517302(0x1eb)](_0x6346ef,_0x5d7385);break;}case g[_0x517302(0x30e)][_0x517302(0x1c2)]:{_0x3db4eb=g[_0x517302(0x300)](_0x6346ef,_0x5d7385);break;}case g[_0x517302(0x30e)][_0x517302(0x413)]:{_0x3db4eb=g['handleIRemoveCol'](_0x6346ef,_0x5d7385);break;}case g['EffectRefRangId'][_0x517302(0x401)]:{_0x3db4eb=g[_0x517302(0x2fa)](_0x6346ef,_0x5d7385);break;}}const _0x1afb3d=g[_0x517302(0x3e5)](_0x3db4eb,_0x5d7385),_0xc6b63e=this['cursorInfo'][_0x517302(0x236)](_0x2012b0);if(_0xc6b63e&&_0x1afb3d){const _0x439c17={..._0xc6b63e,'range':_0x1afb3d};this[_0x517302(0x1f6)][_0x517302(0x23a)](_0x2012b0,_0x439c17),_0x6a115(()=>{const _0x3cbecd=_0x517302,_0x3b6f8a=this['_refRangeService'][_0x3cbecd(0x1bf)](_0x1afb3d,_0xfa8aad=>(_0x3b6f8a['dispose'](),_0x36bab6(_0xfa8aad,_0x2012b0,_0xac5d79,_0x1afb3d)));_0x1c0346[_0x3cbecd(0x1bb)](_0x3b6f8a);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x44159e(0x2c8)]((_0x1e335e,_0x303156)=>{const _0x5cfee2=_0x44159e,{range:_0x3d119e,sheetID:_0x28c970}=_0x1e335e,_0x817d7c=this[_0x5cfee2(0x29a)][_0x5cfee2(0x1bf)](_0x3d119e,_0x2f1796=>(_0x817d7c['dispose'](),_0x36bab6(_0x2f1796,_0x303156,_0x28c970,_0x3d119e)));_0x1c0346[_0x5cfee2(0x1bb)](_0x817d7c);});};this[_0x5f2787(0x3aa)](a['toDisposable'](this[_0x5f2787(0x1f1)]['subscribe'](()=>{_0x455648();})));}['_toggleOnline'](){const _0x310873=_0x441672;var _0x2e21bd,_0x39966e;if(this[_0x310873(0x419)]=!0x0,((_0x2e21bd=this[_0x310873(0x1e2)][_0x310873(0x1ed)]())==null?void 0x0:_0x2e21bd[_0x310873(0x247)]())!==this['unitID'])return;const _0x5b8451=(_0x39966e=this[_0x310873(0x1a9)][_0x310873(0x236)](g['SheetsSelectionsService'])[_0x310873(0x3b4)]())==null?void 0x0:_0x39966e[0x0],_0x5d6183=this['_univerInstanceService'][_0x310873(0x323)](a['UniverInstanceType'][_0x310873(0x281)])[_0x310873(0x42a)]();_0x5b8451&&_0x5d6183&&this['_updateLocalCursor'](_0x5d6183[_0x310873(0x2dc)](),_0x5b8451);}['_toggleOffline'](){const _0x486da5=_0x441672;this[_0x486da5(0x419)]=!0x1;}};Ie=it([A(0x2,a[_0x441672(0x222)](a[_0x441672(0x3e4)])),A(0x3,a[_0x441672(0x222)](Ce)),A(0x4,a['Inject'](u[_0x441672(0x408)])),A(0x5,a[_0x441672(0x41c)]),A(0x6,a['ICommandService']),A(0x7,a[_0x441672(0x222)](g[_0x441672(0x1ba)]))],Ie);var ct=Object[_0x441672(0x1b3)],lt=(_0x332bb9,_0x4ce507,_0x21caa9,_0x4ff822)=>{const _0x120eae=_0x441672;for(var _0x1429c5=_0x4ff822>0x1?void 0x0:_0x4ff822?ct(_0x4ce507,_0x21caa9):_0x4ce507,_0x373007=_0x332bb9[_0x120eae(0x263)]-0x1,_0x4b040b;_0x373007>=0x0;_0x373007--)(_0x4b040b=_0x332bb9[_0x373007])&&(_0x1429c5=_0x4b040b(_0x1429c5)||_0x1429c5);return _0x1429c5;},ie=(_0x21f0a8,_0x137c2c)=>(_0x27799d,_0x317d5f)=>_0x137c2c(_0x27799d,_0x317d5f,_0x21f0a8);let x=class extends a['RxDisposable']{constructor(_0x8d08b,_0x29106e,_0x3d5e56){const _0x460b21=_0x441672;super(),_(this,_0x460b21(0x1e4),new Map()),_(this,_0x460b21(0x1b8),new d[(_0x460b21(0x362))]()),(this[_0x460b21(0x1e2)]=_0x8d08b,this[_0x460b21(0x1a9)]=_0x29106e,this[_0x460b21(0x2ec)]=_0x3d5e56,this[_0x460b21(0x39e)]());}[_0x441672(0x27d)](){const _0x432a53=_0x441672;super[_0x432a53(0x27d)](),this[_0x432a53(0x1b8)][_0x432a53(0x2bc)](),this['_entities'][_0x432a53(0x2c8)](_0x3a7585=>_0x3a7585['dispose']());}[_0x441672(0x24b)](_0x5f3fd0){const _0xba09e2=_0x441672;return this['_entities'][_0xba09e2(0x25e)](_0x5f3fd0)?this[_0xba09e2(0x1e4)][_0xba09e2(0x236)](_0x5f3fd0)[_0xba09e2(0x346)]:this[_0xba09e2(0x1b8)][_0xba09e2(0x25b)](d['filter'](_0x3e29f0=>_0x3e29f0['unitID']===_0x5f3fd0),d[_0xba09e2(0x391)](_0x50a881=>_0x50a881[_0xba09e2(0x346)]));}[_0x441672(0x39e)](){const _0x1197a6=_0x441672;this['_univerInstanceService'][_0x1197a6(0x38f)](a[_0x1197a6(0x279)]['UNIVER_SHEET'])['pipe'](d[_0x1197a6(0x244)](this[_0x1197a6(0x313)]))[_0x1197a6(0x2d4)](async _0x46a890=>{const _0x549851=_0x1197a6,_0x30eb81=_0x46a890[_0x549851(0x247)](),_0x444842=await this[_0x549851(0x3f5)](_0x30eb81);this['_entityInit$'][_0x549851(0x3ca)](_0x444842),this[_0x549851(0x1e4)][_0x549851(0x23a)](_0x30eb81,_0x444842);}),this[_0x1197a6(0x1e2)]['getTypeOfUnitAdded$'](a[_0x1197a6(0x279)][_0x1197a6(0x285)])['pipe'](d[_0x1197a6(0x244)](this['dispose$']))[_0x1197a6(0x25b)](d[_0x1197a6(0x42d)](_0x594089=>!_0x594089[_0x1197a6(0x247)]()[_0x1197a6(0x3ed)]('__')))[_0x1197a6(0x2d4)](async _0x1d920e=>{const _0xd6149=_0x1197a6,_0x51d993=_0x1d920e[_0xd6149(0x247)](),_0x49f5a0=await this[_0xd6149(0x27e)](_0x51d993);this['_entityInit$'][_0xd6149(0x3ca)](_0x49f5a0),this[_0xd6149(0x1e4)]['set'](_0x51d993,_0x49f5a0);}),d[_0x1197a6(0x369)](this[_0x1197a6(0x1e2)]['getTypeOfUnitDisposed$'](a[_0x1197a6(0x279)][_0x1197a6(0x285)]),this[_0x1197a6(0x1e2)]['getTypeOfUnitDisposed$'](a[_0x1197a6(0x279)][_0x1197a6(0x281)]))[_0x1197a6(0x25b)](d[_0x1197a6(0x244)](this[_0x1197a6(0x313)]))['subscribe'](_0x1d00e5=>{const _0x8e4478=_0x1197a6,_0x125011=_0x1d00e5[_0x8e4478(0x247)](),_0x4ba330=this[_0x8e4478(0x1e4)]['get'](_0x125011);_0x4ba330&&(_0x4ba330[_0x8e4478(0x27d)](),this['_entities']['delete'](_0x125011));});}async['_startSheetCollabCursor'](_0x2d68b3){const _0x1e8f59=_0x441672,_0x2496c3=await this['_collabSessionService'][_0x1e8f59(0x395)](_0x2d68b3),_0x261fc8=this[_0x1e8f59(0x1a9)][_0x1e8f59(0x1ab)](Ie,_0x2d68b3,_0x2496c3);return _0x261fc8[_0x1e8f59(0x304)](),_0x261fc8;}async[_0x441672(0x27e)](_0x23577f){const _0x1c9b64=_0x441672,_0x21ee5b=await this[_0x1c9b64(0x2ec)]['requireSession'](_0x23577f),_0x723c96=this[_0x1c9b64(0x1a9)]['createInstance'](Se,_0x23577f,_0x21ee5b);return _0x723c96[_0x1c9b64(0x304)](),_0x723c96;}};function _0x38c0(){const _0x3b95bc=['CONFLICT','concat','getActiveRange','collab-text-range-','setActiveRange','EffectRefRangId','redoState','rgba(255,\x20255,\x20255,\x200.01)','SessionStatus','includes','dispose$','YUUMI_SUBSCRIPTION_NOT_FOUND','Shape','prototype','getSheetObject','_transformPreviousActiveRange','_cachedData','random','_textBubble','@univerjs/rpc','_collabCursorController','_selfUnitIDs','161268rMtjee','_drawRectRange','@univerjs-pro/collaboration-client','verdancy600','getCurrentUnitForType','assign','PY_RUNTIME_SCRIPT_ERROR','getStateCache','INVITE_CODE_ALREADY_BOUND','setInterval','activeSheet$','min','displayName','pushState','off-line-single','onTransformChange$','CHANGESET_REVISION_CONFILICT','_collaborationController','_initStatusComponent','collab-client.tooltip.reconnect','fillText','handleDeleteRangeMoveUp','YUUMI_UNABLE_LOAD_URL','transformMutation','_updateURLWithCurrentState','OFFLINE','_httpService','toString','CollaborationStatusDisplay','ColorKit','_updateCollabCursors','@univerjs/sheets','addEventListener','result','bottom','clearInterval','_colorIndex','_saveTaskMap','font','cursorInfo$','2771379LvghWO','_initCommandExecutedListener','fillStyle','beginPath','IBeforeCloseService','shareReplay','UPDATE_CURSOR','InsertRowCommandId','collaboration-client-ui.config','univer-online','evenodd','MessageType','Rectangle','getConfig','handleInsertRangeMoveRight','deepClone','labelPosition','_notificationService','COMPLETION_FINISHED','_messageService','svg','TEXT','getMemberID','show','newValue','Error','createSocket','Subject','selections','deserializeRangeWithSheet','NOT_COLLAB','jsxs','@univerjs/engine-formula','idSuffix','merge','whenReady','collabStatus.notCollab','collabCursorState$','name','docStateChange$','offline','IUIPartsService','debounce','OTHER_CLIENT_EDITING','DocCollaborationEntity','clipPath','setConfig','_unitOnClients','some','FETCH_MISS','_imageIoService','split','href','collabStatus.syncing','UNRECOGNIZED','LOCAL_CACHE_INTERVAL_KEY','isTransformMutationsWithChangesetSuccess','_setupSubUnitSync','INVALID_INVITE_CODE','createElement','_drawTextRange','CONNECTOR_DATA_TOO_LARGE','url(#on-line-single_clip0_910_349)','off-line-single_clip0_910_343','urlChange$','handleInsertCol','_instanceService','_initResize','getRelativeToViewportCoord','getUnhiddenWorksheets','_onCursorDelete','useRef','getTypeOfUnitAdded$','ENSURE_SNAPSHOT_EXECUTION','switchMap','IDocClipboardService','_handleHeartbeatEvent','_initDependencies','requireSession','_render','DependentOn','rxjs','stringify','_docTransformStateCacheService','SUBMIT_CHANGESET_TIMEOUT','_getSaveTimeout','804jYHzAZ','_init','WECHAT_HAS_BEEN_BOUND','_docSkeletonManagerService','_toggleOnline','top','RegularPolygon','SetTextSelectionsOperation','Failed','function','Workbook','onLocalMutation','find','disposeWithMe','3968LHIbZH','_onRefRangeChange','status$','on-line-single_clip0_910_349','_localStorageService','setItem','CollaborationController','_logService','EMAIL_HAS_BEEN_BOUND','getCurrentSelections','_assignedColors','_send','tag','APPLY_DUPLICATED','_scheduleClearOtherTimer','WebBrowserSingleActiveUnitService','executionId','_name','_config','url(#off-line-single_clip0_910_343)','_handleLeaveEvent','INTERNAL_ERROR','throttleTime','push','collabStatus.conflict','_memberService','text','#FFF','_hovered','rxjs/operators','jiqing500','next','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','BuiltInUIPart','HTTPService','USERS_LEAVE','CollaborationEvent','substring','defineProperty','_toggleOffline','resize','getValue','saveTaskMap','_handleEvent','Unknown\x20user','M0\x200H16V16H0z','ILocalCacheService','range','getMergeData','LICENSE_EXPORT_SIZE_EXCEEDED','runId','setTimeout','_ensureSubject','black','flatMap','JOIN_ROOM_FAILED','debug','Injector','runRefRangeMutations','_localCacheService','_doCreateSocket','connectInjector','_transformHistoryAndStateStack','_backgroundColor','currentColor','fill','startsWith','subscribeEvent','ALREADY_EXISTS','_collabCursorState$','80JhXhZc','getCurrentRevOfUnit','ISocketService','values','_startSheetCollabCursor','max','transformRemoteChangeset','attrs','RevisionService','_shapes','transformByState','UNAUTHENTICATED','/run/','0\x200\x2016\x2016','debounceTime','selection','RemoveRowCommandId','jsx','univer-flex\x20univer-items-center','InsertRangeMoveDownCommandId','_docSyncEditingCollabCursorService','_hover','subunit','MemberService','react/jsx-runtime','onStarting','removeParam','backgroundColor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_transformService','unitID','sheetId','@univerjs/sheets-ui','searchParams','RemoveColCommandId','_eventUnsubscribe','@univerjs/engine-render','RemoteUniscriptService','transformStateCache','_roomMembers$','_online','MUTATION','m2Prime','IUniverInstanceService','mutations','roomMembers$','invokeId','executeCommand','params','arc','runOnServer','width','_labelPosition','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UnitStatus','translate(.97)','_handleHover','getActiveSheet','red300','getMember','filter','_syncEditingCollabCursorService','distinctUntilChanged','all','none','uni.network.url-service','hide','fillRule','DocIMEInputManagerService','_heartbeatTimer','send','_saveCache','unshift','_scene','_hideTimer','enableLocalCache','_injector','search','createInstance','indexOf','_beforeCloseService','apply','LICENSE_DISTRO_REJECTED','TEXT_RANGE_LAYER_INDEX','setParam','current','getOwnPropertyDescriptor','IRemoteInstanceService','onPointerLeave$','isArray','sessionStatus$','_entityInit$','_drawAnchor','RefRangeService','add','RxDisposable','@univerjs/drawing','APPLY_REJECT','registerRefRange','_docClipboardService','SNAPSHOT_INVALID_SNAPSHOT','MoveRangeCommandId','OTHER_CLIENTS_EDITING','replaceState','_themeService','collaboration-client.offline-data-not-saved','loadUnit','_docStateChangeManagerService','replace','SetSelectionsOperation','ICommandService','location','use','_revisionService','application/json','actions','call','onCommandExecuted','fromEvent','CollaborationStatus','url(#$1','parse','createIdentifier','_context','collab-text-anchor-','doc.mutation.rich-text-editing','198kthlMU','clearTimeout','_updateLocalCursor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_dataLoaderService','color','_initEntityListener','_univerInstanceService','session.connection-failed','_entities','getColor','univer-online-status','string','_colorAssignService','useDependency','#fff','handleInsertRow','CollaborationUIEventId','getFocusedUnit','hasOwnProperty','_removeCollabCursors','OnLineSingle','_cursorInfo$','findNodePositionByCharIndex','_commandService','startColumn','SheetSkeletonManagerService','cursorInfo','Disposable','textRanges','[RemoteUniscriptService]:\x20no\x20focused\x20unit','ONLINE','APPLY_REVISION_CONFILICT','addHandlerCallback','m1Prime','_status$','isTransformMutationFailure','SheetCollabCursorShape','online','_refreshCollabCursors','unsubscribe','type','with','colorChannel1','column','SetWorksheetActivateCommand','registerDependencies','_docSkeleton','toRgbString','LocaleService','_cursors','closePath','delete','Module','pluginName','UniverCollaborationClientPlugin','_docTransformIMECacheService','replaceDocRanges','isActive','DisposableCollection','startRow','asObservable','AWAITING','getVpScrollXYInfoByPosToVp','drawWith','FromArray','measureText','onRendered','getAncestorScale','useCallback','COLORS','Inject','2508FHWesq','on-line-single','DesktopCollaborationStatusDisplayController','purple300','0\x200\x2017\x2016','_clearOtherTimers','origin','error','DocStateChangeManagerService','className','history','_scheduleSaving','501714PHiJuB','Tooltip','eventID','USER_NOT_INVITED_CODE','collabStatus.fetchMiss','_registerRenderDependencies','ILogService','get','addObjects','InsertRangeMoveRightCommandId','_urlService','set','_anchorDot','CollaborationUIEventService','fromEventSubject','_renderManagerService','PERMISSION_DENIED','_collaborationUIEventService','permission.content','IConfigService','YUUMI_URL_COL_OUT_OF_RANGE','takeUntil','onPointerMove$','makeDirty','getUnitId','Plugin','children','getCoordByCell','getCollabCursors$','LOGIN_FAILED','10wwTowH','YUUMI_RATE_OVER_LIMIT','getDocRanges','ranges','from','ISnapshotServerService','_sheetSkeletonManagerService','session.collaboration-timeout','TRANSFORM_CHANGE_OBSERVABLE_TYPE','event$','xlink:href','univer-online-status-title','CollaborationDataLoaderController','DeleteRangeMoveUpCommandId','pipe','DeleteRangeMoveLeftCommandId','_scheduleHeartbeat','has','getCellPositionByOffset','IRenderManagerService','post','_docTransformSelectionsService','length','unit','session.will-retry','exhaustSavingTask','...','UniverCollaborationClientUIPlugin','serializeRangeWithSheet','univerjs-icon\x20univerjs-icon-','clsx','getCollabEntity$','_uiPartsService','registerRenderModule','restore','NO_OTHER_CLIENTS_EDITING','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_document','719772iKgOYa','transformMutationsWithChangeset','UniverIcon','isEditing','IMessageService','[CollaborationDataLoaderController]','UniverInstanceType','DocSelectionManagerService','_registerDependencies','APPLY_PERMISSION_DENIED','dispose','_startDocCollabCursor','DataLoaderService','@univerjs-pro/collaboration','UNIVER_SHEET','_setupBeforeClosingHandler','_configService','VIEW_MAIN','UNIVER_DOC','onlineStatusTitle','save','size','collaboration.closeRoom','_createSocketURL','_getMergeRange','UNDEFINED','then','handleDeleteRangeMoveLeft','registerComponent','wsSessionTicketUrl','handleInsertRangeMoveDown','syncEditingCollabCursor','body','sessionTicket','_initEvent','@univerjs/ui','key','_draw','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_refRangeService','transformSelections','defs','unitId','28VUgHki','disableLocalCache','getSheetBySheetId','_removeClearOtherTimer','TOO_MANY_REQUESTS','_localeService','_cursor','MOBILE_HAS_BEEN_BOUND','Optional','blue400','DOC_RANGE_TYPE','override','_id','useObservable','addClipboardHook','map','INVALID_ARGUMENT','univer-online-status-icon','editingUnit','path','contains','getOwnPropertySymbols','row','_lastPointer','SetDocZoomRatioOperation','INVITE_CODE_REQUIRED','Warning','triggerDblclick','OffLineSingle','_getSheetObject','complete','saveImage','RECT','CommandType','data','_session','defIds','gold400','1em','transform','getCurrent','hovered','forEach','IURLService','BehaviorSubject','INVITE_CODE_HAS_BEEN_UES','focused$','extend','saveOfflineData','getUndoRedoMutationParamsCache','_getSessionTicket','_range','CollaborationSocketService','Vector2','subscribe','lineTo','div','currentTheme$','round','CollaborationSessionService','getRangePointData','toDisposable','getSheetId','_cursorShapes','height','195514MmUIWW','ThemeService','trim','_getAnchorBounding','symbol','addObject','ITransformService','RichTextEditingMutation','SNAPSHOT_HAS_BEEN_REMOVED','onlineStatusIcon','_anchor','_color','_unitStatus','_collabSessionService','APPLY_NON_SEQUENTIAL_REVISION','SOCKET_FAILED','getSkeleton','generateRandomId','_onCursorUpdate','getRenderById','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Tools','DocSkeletonManagerService','setShapeProps','currentSkeleton$','disposeUnit','Rect','handleIRemoveRow','mergeOverrideWithDependencies','_disabled','combineLatest','NOT_FOUND','getLocalCacheKey','handleMoveRange','INotificationService','@univerjs/docs-ui','WebSocketService','init','getParam','_updateSubUnitFromURLParams','_handleJoinEvent','InsertColCommandId'];_0x38c0=function(){return _0x3b95bc;};return _0x38c0();}x=lt([ie(0x0,a[_0x441672(0x41c)]),ie(0x1,a[_0x441672(0x222)](a[_0x441672(0x3e4)])),ie(0x2,a[_0x441672(0x222)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x1f6221,_0x8dd80b){const _0x960a18=_0x441672;let {radius:_0x78b740,width:_0x3ee890,height:_0x2ba8dc}=_0x8dd80b;_0x78b740=_0x78b740!=null?_0x78b740:0x0,_0x3ee890=_0x3ee890!=null?_0x3ee890:0x1e,_0x2ba8dc=_0x2ba8dc!=null?_0x2ba8dc:0x1e;let _0x5c6fd3=0x0,_0x33393c=0x0,_0x5404e5=0x0;_0x5c6fd3=_0x33393c=_0x5404e5=Math[_0x960a18(0x32a)](_0x78b740,_0x3ee890/0x2,_0x2ba8dc/0x2),_0x1f6221[_0x960a18(0x34a)](),_0x1f6221['moveTo'](_0x5c6fd3,0x0),_0x1f6221[_0x960a18(0x2d5)](_0x3ee890-_0x33393c,0x0),_0x1f6221[_0x960a18(0x422)](_0x3ee890-_0x33393c,_0x33393c,_0x33393c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1f6221[_0x960a18(0x2d5)](_0x3ee890,_0x2ba8dc-_0x5404e5),_0x1f6221['arc'](_0x3ee890-_0x5404e5,_0x2ba8dc-_0x5404e5,_0x5404e5,0x0,Math['PI']/0x2,!0x1),_0x1f6221['lineTo'](0x0,_0x2ba8dc),_0x1f6221['lineTo'](0x0,_0x5c6fd3),_0x1f6221[_0x960a18(0x422)](_0x5c6fd3,_0x5c6fd3,_0x5c6fd3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1f6221[_0x960a18(0x20e)](),_0x8dd80b[_0x960a18(0x3ec)]&&(_0x1f6221[_0x960a18(0x287)](),_0x1f6221['fillStyle']=_0x8dd80b[_0x960a18(0x3ec)],_0x8dd80b[_0x960a18(0x434)]===_0x960a18(0x351)?_0x1f6221[_0x960a18(0x3ec)](_0x960a18(0x351)):_0x1f6221['fill'](),_0x1f6221['restore']());}class te extends p[_0x441672(0x315)]{constructor(_0x5a9a2c,_0x442fde){const _0x2ce8d6=_0x441672;super(_0x5a9a2c,_0x442fde),_(this,_0x2ce8d6(0x1e0)),_(this,_0x2ce8d6(0x3c5)),(this[_0x2ce8d6(0x1e0)]=_0x442fde==null?void 0x0:_0x442fde[_0x2ce8d6(0x1e0)],this['text']=_0x442fde==null?void 0x0:_0x442fde[_0x2ce8d6(0x3c5)]);}static[_0x441672(0x21b)](_0x5cced3,_0x4267a6){const _0x142c50=_0x441672,{text:_0x2a61d3,color:_0x2d98ec}=_0x4267a6;_0x5cced3[_0x142c50(0x287)](),_0x5cced3[_0x142c50(0x345)]=_0x142c50(0x271);const _0x22248d=_0x5cced3[_0x142c50(0x21d)](_0x2a61d3)['width'],_0x4b0787=Math['min'](_0x22248d+0x2*re,De);ht(_0x5cced3,{'height':K,'radius':0x4,'width':_0x4b0787,'fill':_0x2d98ec}),_0x5cced3[_0x142c50(0x349)]=_0x142c50(0x3c6);const _0xfa7da7=re,_0x243c45=K-_t,_0x4d2ad6=De-0x2*re;if(_0x22248d>_0x4d2ad6){let _0x10a148='',_0x21c9d4=0x0;for(const _0x1695bd of _0x2a61d3){const _0x35a449=_0x5cced3[_0x142c50(0x21d)](_0x1695bd)[_0x142c50(0x424)];if(_0x21c9d4+_0x35a449<=_0x4d2ad6-_0x5cced3['measureText'](_0x142c50(0x267))[_0x142c50(0x424)])_0x10a148+=_0x1695bd,_0x21c9d4+=_0x35a449;else{_0x10a148+=_0x142c50(0x267);break;}}_0x5cced3[_0x142c50(0x333)](_0x10a148,_0xfa7da7,_0x243c45);}else _0x5cced3['fillText'](_0x2a61d3,_0xfa7da7,_0x243c45);_0x5cced3[_0x142c50(0x26f)]();}[_0x441672(0x298)](_0x58f60f){const _0x519b4a=_0x441672;te[_0x519b4a(0x21b)](_0x58f60f,this);}}const oe=_0x441672(0x1d9),ut=_0x441672(0x30c),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x441672(0x310);class Ue{constructor(_0x389875,_0x18f5fc,_0x82880c,_0x98e77a){const _0x54154e=_0x441672;_(this,'_shapes',[]),_(this,_0x54154e(0x2e9),null),_(this,'_textBubble',null),_(this,_0x54154e(0x23b),null),_(this,_0x54154e(0x1a7),null),_(this,_0x54154e(0x414),null),(this[_0x54154e(0x2a4)]=_0x389875,this['_scene']=_0x18f5fc,this[_0x54154e(0x20a)]=_0x82880c,this[_0x54154e(0x272)]=_0x98e77a,this['_render']());}set[_0x441672(0x406)](_0x64c9b3){const _0x547a98=_0x441672;_0x64c9b3?(this['_anchorDot']&&this[_0x547a98(0x23b)][_0x547a98(0x433)](),this[_0x547a98(0x31b)]&&this[_0x547a98(0x31b)][_0x547a98(0x35e)]()):(this[_0x547a98(0x23b)]&&this[_0x547a98(0x23b)][_0x547a98(0x35e)](),this['_textBubble']&&this[_0x547a98(0x31b)]['hide']());}[_0x441672(0x27d)](){const _0xe88e4b=_0x441672;for(const _0x35d8bc of this[_0xe88e4b(0x3fa)])_0x35d8bc[_0xe88e4b(0x27d)]();this[_0xe88e4b(0x31b)]&&this[_0xe88e4b(0x31b)]['dispose'](),this[_0xe88e4b(0x23b)]&&this[_0xe88e4b(0x23b)][_0xe88e4b(0x27d)](),this[_0xe88e4b(0x2e9)]&&this[_0xe88e4b(0x2e9)]['dispose'](),this[_0xe88e4b(0x414)]&&this[_0xe88e4b(0x414)]();}[_0x441672(0x396)](){const _0x2a42fd=_0x441672;var _0x202520;const {_docSkeleton:_0xf17451,_document:_0x580c91}=this,{color:_0xdfc7d0,name:_0x20dc33,ranges:_0x1493aa}=this['_cursor'],_0x418f57=_0x580c91['getOffsetConfig'](),{docsLeft:_0x493a5d,docsTop:_0x15160e}=_0x418f57,_0x3480e1=new b['NodePositionConvertToCursor'](_0x418f57,_0xf17451);for(const {startOffset:_0x2d701b,endOffset:_0x592882,rangeType:_0x3e8444,segmentId:_0x46413f,segmentPage:_0x39cb42,collapsed:_0x582bda,isActive:_0x2521f6}of _0x1493aa){const _0x357ed3=_0xf17451[_0x2a42fd(0x1f2)](_0x2d701b,!0x0,_0x46413f,_0x39cb42);let _0x9ff3fc=_0xf17451['findNodePositionByCharIndex'](_0x592882,!0x0,_0x46413f,_0x39cb42);if(_0x9ff3fc==null&&(_0x9ff3fc=_0xf17451['findNodePositionByCharIndex'](_0x592882-0x1,!0x1,_0x46413f,_0x39cb42)),_0x2521f6){const {contentBoxPointGroup:_0x4bd845}=_0x3480e1[_0x2a42fd(0x2da)](_0x9ff3fc,_0x9ff3fc);if(_0x4bd845['length']===0x0)continue;this[_0x2a42fd(0x1b9)](_0xdfc7d0,_0x4bd845,_0x493a5d,_0x15160e,_0x20dc33),this[_0x2a42fd(0x414)]=this[_0x2a42fd(0x429)]();}if(_0x357ed3&&_0x9ff3fc){if(_0x3e8444===a[_0x2a42fd(0x2a8)]['RECT']){const _0x5004cb=new b['NodePositionConvertToRectRange'](_0x418f57,_0xf17451),{pointGroup:_0x2e521d}=(_0x202520=_0x5004cb[_0x2a42fd(0x2da)](_0x357ed3,_0x9ff3fc))!=null?_0x202520:{};if(_0x2e521d==null||_0x2e521d[_0x2a42fd(0x263)]===0x0)continue;this[_0x2a42fd(0x320)](_0xdfc7d0,_0x2e521d,_0x493a5d,_0x15160e);}else{if(!_0x582bda){const {borderBoxPointGroup:_0x3eb443}=_0x3480e1[_0x2a42fd(0x2da)](_0x357ed3,_0x9ff3fc);if(_0x3eb443[_0x2a42fd(0x263)]===0x0)continue;this[_0x2a42fd(0x383)](_0xdfc7d0,_0x3eb443,_0x493a5d,_0x15160e);}}}}}[_0x441672(0x1b9)](_0x5148db,_0x5aaddb,_0x5489de,_0x3a99a1,_0x3de65c){const _0x167207=_0x441672,_0xe4ab=this[_0x167207(0x2e2)](_0x5aaddb),{left:_0x43c138,top:_0x37e9bf,height:_0x52b63b}=_0xe4ab,_0x1a37cf=this['_getScale'](),_0x2e69e9=St/_0x1a37cf,_0x27bdd6=new p[(_0x167207(0x2f9))](oe+a[_0x167207(0x2f4)]['generateRandomId'](k),{'left':_0x43c138+_0x5489de-_0x2e69e9,'top':_0x37e9bf+_0x3a99a1,'height':_0x52b63b,'width':ft,'fill':_0x5148db||p[_0x167207(0x1e5)](a[_0x167207(0x221)][_0x167207(0x3e0)],0x0),'strokeWidth':_0x2e69e9,'stroke':It,'evented':!0x0});this[_0x167207(0x2e9)]=_0x27bdd6,this[_0x167207(0x1a6)][_0x167207(0x2e4)](_0x27bdd6,b[_0x167207(0x1b0)]);const _0x570606=new p['Rect'](oe+a[_0x167207(0x2f4)][_0x167207(0x2f0)](k),{'left':_0x43c138+_0x5489de-_0x2e69e9,'top':_0x37e9bf+_0x3a99a1-ae/0x2,'height':ae,'width':ae,'fill':_0x5148db||p[_0x167207(0x1e5)](a[_0x167207(0x221)][_0x167207(0x3e0)],0x0),'strokeWidth':0x0,'stroke':_0x5148db||p['getColor'](a[_0x167207(0x221)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x570606,this['_scene']['addObject'](_0x570606,b[_0x167207(0x1b0)]);const _0x258f02=new te(oe+a[_0x167207(0x2f4)][_0x167207(0x2f0)](k),{'left':_0x43c138+_0x5489de-_0x2e69e9,'top':_0x37e9bf+_0x3a99a1-K,'text':_0x3de65c,'color':_0x5148db});this[_0x167207(0x31b)]=_0x258f02,this['_scene'][_0x167207(0x2e4)](_0x258f02,b[_0x167207(0x1b0)]),this[_0x167207(0x406)]=!0x1;}['_handleHover'](){const _0x5f1ac4=_0x441672,_0x967698=this['_anchor']['onPointerEnter$'][_0x5f1ac4(0x3ee)](()=>{const _0x46f0fc=_0x5f1ac4;this[_0x46f0fc(0x406)]=!0x0;}),_0x59026e=this[_0x5f1ac4(0x2e9)][_0x5f1ac4(0x1b5)]['subscribeEvent'](()=>{const _0x592841=_0x5f1ac4;this[_0x592841(0x1a7)]&&clearTimeout(this[_0x592841(0x1a7)]),this[_0x592841(0x1a7)]=setTimeout(()=>{const _0x3f5cb1=_0x592841;this[_0x3f5cb1(0x406)]=!0x1;},0x7d0);});return()=>{const _0x20f16d=_0x5f1ac4;_0x967698[_0x20f16d(0x203)](),_0x59026e[_0x20f16d(0x203)]();};}['_drawTextRange'](_0x31fb80,_0x3ec6e8,_0x2236f3,_0x179ad8){const _0x57925a=_0x441672,_0x55f2eb=new a[(_0x57925a(0x33c))](_0x31fb80)['setAlpha'](0.2)[_0x57925a(0x20b)](),_0x311da9=new p['RegularPolygon'](ut+a['Tools'][_0x57925a(0x2f0)](k),{'pointsGroup':_0x3ec6e8,'fill':_0x55f2eb||p[_0x57925a(0x1e5)](a[_0x57925a(0x221)][_0x57925a(0x3e0)],0.2),'left':_0x2236f3,'top':_0x179ad8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x57925a(0x3fa)][_0x57925a(0x3c2)](_0x311da9),this['_scene']['addObject'](_0x311da9,b[_0x57925a(0x1b0)]);}['_drawRectRange'](_0x4ae0bd,_0x2c93ac,_0x4a5d84,_0x53cdd8){const _0x58f353=_0x441672,_0x14c1c3=new a[(_0x58f353(0x33c))](_0x4ae0bd)['setAlpha'](0.2)['toRgbString'](),_0x5a91c2=new p[(_0x58f353(0x3a3))](dt+a[_0x58f353(0x2f4)][_0x58f353(0x2f0)](k),{'pointsGroup':_0x2c93ac,'fill':_0x14c1c3||p[_0x58f353(0x1e5)](a[_0x58f353(0x221)][_0x58f353(0x3e0)],0.2),'left':_0x4a5d84,'top':_0x53cdd8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x5a91c2),this[_0x58f353(0x1a6)]['addObject'](_0x5a91c2,b[_0x58f353(0x1b0)]);}['_getAnchorBounding'](_0x567a02){const _0x4ec04e=_0x567a02[0x0],_0x4e1718=_0x4ec04e[0x0],_0x440afe=_0x4ec04e[0x2],{x:_0x165aa4,y:_0x40c9eb}=_0x4e1718,{x:_0x482373,y:_0x5bf8cb}=_0x440afe;return{'left':_0x165aa4,'top':_0x40c9eb,'width':_0x482373-_0x165aa4,'height':_0x5bf8cb-_0x40c9eb};}['_getScale'](){const _0x2ed76c=_0x441672,{scaleX:_0x4036ee,scaleY:_0x1666f7}=this[_0x2ed76c(0x1a6)]['getAncestorScale']();return Math[_0x2ed76c(0x3f6)](_0x4036ee,_0x1666f7);}}var vt=Object[_0x441672(0x1b3)],gt=(_0x261384,_0x547ea5,_0x4317b7,_0x4a3ded)=>{for(var _0x352a32=_0x4a3ded>0x1?void 0x0:_0x4a3ded?vt(_0x547ea5,_0x4317b7):_0x547ea5,_0x4831b2=_0x261384['length']-0x1,_0x4dfc0d;_0x4831b2>=0x0;_0x4831b2--)(_0x4dfc0d=_0x261384[_0x4831b2])&&(_0x352a32=_0x4dfc0d(_0x352a32)||_0x352a32);return _0x352a32;},V=(_0x52013e,_0x10db05)=>(_0x4c3987,_0x4f77f8)=>_0x10db05(_0x4c3987,_0x4f77f8,_0x52013e);let ve=class extends a['RxDisposable']{constructor(_0x38bed5,_0x3c8963,_0x95f032,_0x4128dd,_0x1d7df0){const _0x56c704=_0x441672;super(),_(this,_0x56c704(0x2dd),[]),_(this,_0x56c704(0x20d),[]),(this['_context']=_0x38bed5,this[_0x56c704(0x3a0)]=_0x3c8963,this[_0x56c704(0x31d)]=_0x95f032,this[_0x56c704(0x1f3)]=_0x4128dd,this[_0x56c704(0x1c5)]=_0x1d7df0,this[_0x56c704(0x39e)]());}[_0x441672(0x39e)](){const _0x955c10=_0x441672,_0x17721d=this[_0x955c10(0x1d8)][_0x955c10(0x29d)],_0x27b106=this[_0x955c10(0x3a0)];this['disposeWithMe'](d[_0x955c10(0x2fd)]([this['_collabCursorController'][_0x955c10(0x24b)](_0x17721d),this[_0x955c10(0x1c5)][_0x955c10(0x2d7)]])['pipe']($['map'](([_0x286fa5,_0x496c93])=>({'skeleton':_0x27b106['getSkeleton'](),'cursors':[..._0x286fa5['values']()][_0x955c10(0x3e1)](_0x1f11f2=>({..._0x1f11f2,'color':_0x496c93[_0x1f11f2['color']]}))})))[_0x955c10(0x2d4)](_0xa71e8b=>{const _0x446e46=_0x955c10;if(this[_0x446e46(0x1ef)](),_0xa71e8b){const {skeleton:_0x273f69,cursors:_0x3288a1}=_0xa71e8b;this[_0x446e46(0x33d)](_0x273f69,_0x3288a1);}})),this['_initResize'](),this[_0x955c10(0x348)]();}[_0x441672(0x33d)](_0x5aaf97,_0x4e1e20){const _0x308550=_0x441672,{scene:_0x433c95,mainComponent:_0x261ef0}=this['_context'],_0x947f99=_0x4e1e20[_0x308550(0x2ad)](_0x52e824=>new Ue(_0x52e824,_0x433c95,_0x5aaf97,_0x261ef0));this['_cursorShapes']=_0x947f99,this['_cursors']=_0x4e1e20;}['_refreshCollabCursors'](){const _0x46c510=_0x441672;this[_0x46c510(0x1ef)]();const {scene:_0x3e93cf,mainComponent:_0x35bddd}=this[_0x46c510(0x1d8)],_0x47eac0=this[_0x46c510(0x3a0)][_0x46c510(0x2ef)](),_0x14c9a6=this[_0x46c510(0x20d)][_0x46c510(0x2ad)](_0x21c40e=>new Ue(_0x21c40e,_0x3e93cf,_0x47eac0,_0x35bddd));this[_0x46c510(0x2dd)]=_0x14c9a6;}['_removeCollabCursors'](){const _0x20a60f=_0x441672;this[_0x20a60f(0x2dd)][_0x20a60f(0x2c8)](_0x449cf2=>_0x449cf2[_0x20a60f(0x27d)]()),this[_0x20a60f(0x2dd)]=[];}[_0x441672(0x348)](){const _0x33d31c=_0x441672,_0x4da5e=[b[_0x33d31c(0x2b6)]['id']];this[_0x33d31c(0x3aa)](this[_0x33d31c(0x1f3)][_0x33d31c(0x1d2)](_0x1eeb71=>{const _0x2c4a3d=_0x33d31c;_0x4da5e[_0x2c4a3d(0x312)](_0x1eeb71['id'])&&_0x1eeb71[_0x2c4a3d(0x421)][_0x2c4a3d(0x29d)]===this['_context'][_0x2c4a3d(0x29d)]&&this[_0x2c4a3d(0x202)]();}));}[_0x441672(0x38a)](){const _0xf878d3=_0x441672;this['disposeWithMe'](a[_0xf878d3(0x23d)](this[_0xf878d3(0x1d8)]['engine'][_0xf878d3(0x32e)])[_0xf878d3(0x25b)]($['filter'](_0x561f65=>_0x561f65['type']===p[_0xf878d3(0x255)][_0xf878d3(0x3d3)]),$[_0xf878d3(0x3c1)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x441672(0x222)](Y[_0x441672(0x2f5)])),V(0x2,a[_0x441672(0x222)](x)),V(0x3,a[_0x441672(0x1cb)]),V(0x4,a[_0x441672(0x222)](a[_0x441672(0x2e0)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p['Shape']{constructor(_0x27291f,_0x5b399a){const _0x33c15d=_0x441672;super(_0x27291f,_0x5b399a),_(this,_0x33c15d(0x2ea)),_(this,_0x33c15d(0x3c7),!0x1),_(this,'_range'),_(this,_0x33c15d(0x3bc),''),_(this,_0x33c15d(0x425),_0x33c15d(0x3a2)),_(this,_0x33c15d(0x3ea)),(_0x5b399a&&this['setShapeProps'](_0x5b399a),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x33c15d(0x2f6)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x33c15d(0x2f6)]({'hovered':!0x1})));}[_0x441672(0x2f6)](_0x3b0163){const _0x4536d0=_0x441672;var _0x4f9f1c,_0x451965,_0x391a44,_0xae9f03,_0x2b22bb,_0x4deef5;this[_0x4536d0(0x2ea)]=(_0x4f9f1c=_0x3b0163[_0x4536d0(0x1e0)])!=null?_0x4f9f1c:this[_0x4536d0(0x2ea)],this['_hovered']=(_0x451965=_0x3b0163[_0x4536d0(0x2c7)])!=null?_0x451965:this[_0x4536d0(0x3c7)],this['_range']=(_0x391a44=_0x3b0163[_0x4536d0(0x3da)])!=null?_0x391a44:this[_0x4536d0(0x2d1)],this[_0x4536d0(0x3bc)]=(_0xae9f03=_0x3b0163[_0x4536d0(0x36d)])!=null?_0xae9f03:this['_name'],this[_0x4536d0(0x425)]=(_0x2b22bb=_0x3b0163[_0x4536d0(0x357)])!=null?_0x2b22bb:this[_0x4536d0(0x425)],this[_0x4536d0(0x3ea)]=(_0x4deef5=_0x3b0163[_0x4536d0(0x40c)])!=null?_0x4deef5:this[_0x4536d0(0x3ea)],this[_0x4536d0(0x3fb)]({'width':_0x3b0163[_0x4536d0(0x424)],'height':_0x3b0163[_0x4536d0(0x2de)]});}['onMouseMove'](_0x198924){const _0x260a38=_0x441672,{row:_0x112424,column:_0x3bc25f}=_0x198924;if(_0x112424>=this[_0x260a38(0x2d1)][_0x260a38(0x217)]&&_0x112424<=this[_0x260a38(0x2d1)]['endRow']&&_0x3bc25f>=this[_0x260a38(0x2d1)][_0x260a38(0x1f4)]&&_0x3bc25f<=this[_0x260a38(0x2d1)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x441672(0x2b9)](_0x1e1ca4){return!0x1;}[_0x441672(0x298)](_0x49f45e){const _0x46d023=_0x441672;p[_0x46d023(0x2f9)][_0x46d023(0x21b)](_0x49f45e,{'width':this[_0x46d023(0x424)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x46d023(0x3ea)]}),this[_0x46d023(0x3c7)]&&(_0x49f45e[_0x46d023(0x287)](),_0x49f45e[_0x46d023(0x2c5)](0x1,0x0,0x0,0x1,this[_0x46d023(0x424)],this['_labelPosition']==='bottom'?0x0:-0x14),te[_0x46d023(0x21b)](_0x49f45e,{'text':this[_0x46d023(0x3bc)],'color':this['_color']}),_0x49f45e[_0x46d023(0x26f)]());}}var pt=Object[_0x441672(0x1b3)],bt=(_0x3937eb,_0x1dea17,_0x3e237c,_0xdbc47e)=>{for(var _0x216d5f=_0xdbc47e>0x1?void 0x0:_0xdbc47e?pt(_0x1dea17,_0x3e237c):_0x1dea17,_0x341f1f=_0x3937eb['length']-0x1,_0x31b1e8;_0x341f1f>=0x0;_0x341f1f--)(_0x31b1e8=_0x3937eb[_0x341f1f])&&(_0x216d5f=_0x31b1e8(_0x216d5f)||_0x216d5f);return _0x216d5f;},ce=(_0x3bc2a6,_0x3ef6df)=>(_0x37b130,_0x2ff176)=>_0x3ef6df(_0x37b130,_0x2ff176,_0x3bc2a6);const Et=0x1389;let ge=class extends a[_0x441672(0x1bc)]{constructor(_0x30513a,_0x14dd4c,_0x3f149e,_0x406486){const _0x154095=_0x441672;super(),_(this,'_cursors',new Set()),_(this,_0x154095(0x2b5),null),(this[_0x154095(0x1d8)]=_0x30513a,this[_0x154095(0x253)]=_0x14dd4c,this[_0x154095(0x31d)]=_0x3f149e,this[_0x154095(0x1c5)]=_0x406486,this[_0x154095(0x39e)]());}[_0x441672(0x39e)](){const _0x1a784f=_0x441672;this[_0x1a784f(0x253)][_0x1a784f(0x2f7)][_0x1a784f(0x25b)]($[_0x1a784f(0x244)](this['dispose$']),$['switchMap'](_0x32772e=>{const _0x511315=_0x1a784f;if(_0x32772e){const _0xee8b73=_0x32772e[_0x511315(0x410)];return d[_0x511315(0x2fd)](this[_0x511315(0x31d)][_0x511315(0x24b)](this['_context']['unitId']),this[_0x511315(0x1c5)][_0x511315(0x2d7)])[_0x511315(0x25b)]($[_0x511315(0x2ad)](([_0x298aae,_0x47c88e])=>{const _0x2081a0=_0x511315,_0xe3f4da=new Map();return _0x298aae[_0x2081a0(0x2c8)]((_0x51e6f0,_0x6b5c39)=>{const _0x399104=_0x2081a0;if(_0x51e6f0['sheetID']===_0xee8b73){const _0x5d1f8f={..._0x51e6f0};_0x5d1f8f[_0x399104(0x1e0)]=_0x47c88e[_0x51e6f0[_0x399104(0x1e0)]],_0xe3f4da[_0x399104(0x23a)](_0x6b5c39,_0x5d1f8f);}}),{'skeleton':_0x32772e,'cursors':_0xe3f4da};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1a784f(0x2d4)](({skeleton:_0x25116c,cursors:_0x2e54a4})=>{const _0x39e807=_0x1a784f;this[_0x39e807(0x1ef)](),_0x25116c&&this[_0x39e807(0x33d)](_0x25116c,_0x2e54a4);}),this[_0x1a784f(0x253)]['currentSkeleton$']['subscribe'](_0x2026c4=>{const _0x5ed434=_0x1a784f;if(_0x2026c4==null)return;const {skeleton:_0x3a1117}=_0x2026c4,{scene:_0x586f30}=this[_0x5ed434(0x1d8)];_0x586f30[_0x5ed434(0x245)]['subscribeEvent'](a[_0x5ed434(0x371)](_0x2e550c=>{const _0x18e419=_0x5ed434;var _0x328c9e,_0x1e6078;const {offsetX:_0x1f82a2,offsetY:_0x319740}=_0x2e550c,{x:_0x47ae8f,y:_0x320a6e}=_0x586f30[_0x18e419(0x38b)](p[_0x18e419(0x2d3)][_0x18e419(0x21c)]([_0x1f82a2,_0x319740])),{scaleX:_0x5d0c45,scaleY:_0x978640}=_0x586f30[_0x18e419(0x21f)](),_0x57d108=_0x586f30['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x18e419(0x284)]),_0xc4076f=_0x586f30[_0x18e419(0x21a)](p[_0x18e419(0x2d3)][_0x18e419(0x21c)]([_0x47ae8f,_0x320a6e]),_0x57d108),_0x43614f=_0x3a1117[_0x18e419(0x25f)](_0x1f82a2,_0x319740,_0x5d0c45,_0x978640,_0xc4076f);((_0x328c9e=this['_lastPointer'])==null?void 0x0:_0x328c9e[_0x18e419(0x207)])===_0x43614f['column']&&((_0x1e6078=this['_lastPointer'])==null?void 0x0:_0x1e6078[_0x18e419(0x2b4)])===_0x43614f['row']||this[_0x18e419(0x20d)][_0x18e419(0x2c8)](_0x20e13c=>{_0x20e13c['onMouseMove'](_0x43614f);});},0x64));});}[_0x441672(0x33d)](_0x3bdaf3,_0x49de87){const _0x238fb9=_0x441672;var _0x455da9;const _0x4d5f99=(_0x455da9=this['_sheetSkeletonManagerService'][_0x238fb9(0x2c6)]())==null?void 0x0:_0x455da9['skeleton'];if(!_0x4d5f99)return;const _0x10619f=this[_0x238fb9(0x2bb)]();if(!_0x10619f)return;this[_0x238fb9(0x20d)][_0x238fb9(0x2c8)](_0x559d6f=>{const _0x376851=_0x238fb9;_0x559d6f[_0x376851(0x246)]();});const {scene:_0x3d584c}=_0x10619f,_0x513182=Tt(Array[_0x238fb9(0x251)](_0x49de87[_0x238fb9(0x3f4)]()))[_0x238fb9(0x2ad)](_0x27f959=>{const _0x1990ba=_0x238fb9,{color:_0x1cc261,range:_0x5a50a2,name:_0x29308c,selection:_0x37e735,sheetID:_0xffddbf}=_0x27f959,{startColumn:_0xa29359,startRow:_0x14a11f,endColumn:_0x4871af,endRow:_0x534488}=_0x5a50a2,_0x2ec54f=G[_0x1990ba(0x24a)](_0x14a11f,_0xa29359,_0x3d584c,_0x4d5f99),_0x303c91=G[_0x1990ba(0x24a)](_0x534488,_0x4871af,_0x3d584c,_0x4d5f99),{columnHeaderHeightAndMarginTop:_0x5edc5e}=_0x4d5f99,{startX:_0x3efc29,startY:_0x3ca53c}=_0x2ec54f,{endX:_0x536cbc,endY:_0x2c2cfa}=_0x303c91,_0x49b1b7=_0x536cbc-_0x3efc29,_0x855e04=_0x2c2cfa-_0x3ca53c,_0x2c1c38={'labelPosition':_0x3ca53c-_0x5edc5e>=K?_0x1990ba(0x3a2):_0x1990ba(0x341),'sheetID':_0xffddbf,'range':_0x5a50a2,'color':_0x1cc261,'name':_0x29308c,'selection':_0x37e735,'left':_0x3efc29,'top':_0x3ca53c,'width':_0x49b1b7,'height':_0x855e04,'evented':!0x1,'zIndex':Et};return new Ae(_0x29308c,_0x2c1c38);});_0x3d584c[_0x238fb9(0x237)](_0x513182,mt),this[_0x238fb9(0x20d)]=new Set(_0x513182);}[_0x441672(0x1ef)](){const _0xc05cf6=_0x441672;var _0x51aa2f;(_0x51aa2f=this[_0xc05cf6(0x20d)])==null||_0x51aa2f[_0xc05cf6(0x2c8)](_0x2e2bd5=>_0x2e2bd5[_0xc05cf6(0x27d)]());}[_0x441672(0x2bb)](){const _0x2cee8f=_0x441672;return G[_0x2cee8f(0x317)](this['_context']['unit'],this[_0x2cee8f(0x1d8)]);}};ge=bt([ce(0x1,a[_0x441672(0x222)](G[_0x441672(0x1f5)])),ce(0x2,a['Inject'](x)),ce(0x3,a['Inject'](a[_0x441672(0x2e0)]))],ge);function Tt(_0x661bb6){const _0x4362cf=_0x441672,_0x5ef753=new Map();return _0x661bb6[_0x4362cf(0x2c8)](_0x2981a4=>{const _0x4d6d9e=_0x4362cf;if(_0x5ef753['has'](_0x2981a4[_0x4d6d9e(0x400)])){const _0x4e4c3a=_0x5ef753[_0x4d6d9e(0x236)](_0x2981a4[_0x4d6d9e(0x400)]);_0x4e4c3a[_0x4d6d9e(0x36d)]+=',\x20'+_0x2981a4[_0x4d6d9e(0x36d)];}else _0x5ef753['set'](_0x2981a4[_0x4d6d9e(0x400)],_0x2981a4);}),Array['from'](_0x5ef753[_0x4362cf(0x3f4)]());}var E=function(){const _0x491f9c=_0x441672;return E=Object[_0x491f9c(0x324)]||function(_0xf90d54){const _0x2d87ec=_0x491f9c;for(var _0x29ab8e,_0x5f56a4=0x1,_0x59598f=arguments[_0x2d87ec(0x263)];_0x5f56a4<_0x59598f;_0x5f56a4++){_0x29ab8e=arguments[_0x5f56a4];for(var _0x351bee in _0x29ab8e)Object['prototype'][_0x2d87ec(0x1ee)][_0x2d87ec(0x1d1)](_0x29ab8e,_0x351bee)&&(_0xf90d54[_0x351bee]=_0x29ab8e[_0x351bee]);}return _0xf90d54;},E[_0x491f9c(0x1ae)](this,arguments);},Rt=function(_0x2ee013,_0xe32480){const _0x5d8ed8=_0x441672;var _0x58713e={};for(var _0x3d9ed4 in _0x2ee013)Object[_0x5d8ed8(0x316)][_0x5d8ed8(0x1ee)]['call'](_0x2ee013,_0x3d9ed4)&&_0xe32480[_0x5d8ed8(0x1ac)](_0x3d9ed4)<0x0&&(_0x58713e[_0x3d9ed4]=_0x2ee013[_0x3d9ed4]);if(_0x2ee013!=null&&typeof Object[_0x5d8ed8(0x2b3)]==_0x5d8ed8(0x3a6)){for(var _0x2c1ade=0x0,_0x3d9ed4=Object[_0x5d8ed8(0x2b3)](_0x2ee013);_0x2c1ade<_0x3d9ed4['length'];_0x2c1ade++)_0xe32480['indexOf'](_0x3d9ed4[_0x2c1ade])<0x0&&Object[_0x5d8ed8(0x316)]['propertyIsEnumerable']['call'](_0x2ee013,_0x3d9ed4[_0x2c1ade])&&(_0x58713e[_0x3d9ed4[_0x2c1ade]]=_0x2ee013[_0x3d9ed4[_0x2c1ade]]);}return _0x58713e;},be=M['forwardRef'](function(_0x470a36,_0x197ff8){const _0x33c92e=_0x441672;var _0x4157f3=_0x470a36['icon'],_0x427b25=_0x470a36['id'],_0x583d22=_0x470a36['className'],_0x167358=_0x470a36[_0x33c92e(0x2cd)],_0x4ede3b=Rt(_0x470a36,['icon','id',_0x33c92e(0x22c),_0x33c92e(0x2cd)]),_0x190e1a=_0x33c92e(0x26a)[_0x33c92e(0x30a)](_0x427b25,'\x20')[_0x33c92e(0x30a)](_0x583d22||'')[_0x33c92e(0x2e1)](),_0x3fe543=M[_0x33c92e(0x38e)]('_'[_0x33c92e(0x30a)](Ut()));return ye(_0x4157f3,''['concat'](_0x427b25),{'defIds':_0x4157f3['defIds'],'idSuffix':_0x3fe543[_0x33c92e(0x1b2)]},E({'ref':_0x197ff8,'className':_0x190e1a},_0x4ede3b),_0x167358);});function ye(_0x4a310e,_0x3ecb5f,_0x423fd9,_0x8fb342,_0x32fee3){const _0x5a9a87=_0x441672;return M['createElement'](_0x4a310e[_0x5a9a87(0x3b7)],E(E({'key':_0x3ecb5f},Ot(_0x4a310e,_0x423fd9,_0x32fee3)),_0x8fb342),(Dt(_0x4a310e,_0x423fd9)[_0x5a9a87(0x249)]||[])[_0x5a9a87(0x2ad)](function(_0x2619a2,_0x2dc0ce){const _0x3a4743=_0x5a9a87;return ye(_0x2619a2,''['concat'](_0x3ecb5f,'-')[_0x3a4743(0x30a)](_0x4a310e[_0x3a4743(0x3b7)],'-')[_0x3a4743(0x30a)](_0x2dc0ce),_0x423fd9,void 0x0,_0x32fee3);}));}function Ot(_0x3b3ad5,_0x57df74,_0x121294){const _0x2c6387=_0x441672;var _0x420f6c=E({},_0x3b3ad5['attrs']);_0x121294!=null&&_0x121294['colorChannel1']&&_0x420f6c['fill']===_0x2c6387(0x206)&&(_0x420f6c[_0x2c6387(0x3ec)]=_0x121294[_0x2c6387(0x206)]),_0x3b3ad5[_0x2c6387(0x3b7)]==='mask'&&_0x420f6c['id']&&(_0x420f6c['id']=_0x420f6c['id']+_0x57df74[_0x2c6387(0x368)]),Object['entries'](_0x420f6c)['forEach'](function(_0xc25060){const _0x5dd94e=_0x2c6387;var _0x39dff5=_0xc25060[0x0],_0x2dc9d4=_0xc25060[0x1];_0x39dff5==='mask'&&typeof _0x2dc9d4==_0x5dd94e(0x1e7)&&(_0x420f6c[_0x39dff5]=_0x2dc9d4[_0x5dd94e(0x1c9)](/url\(#(.*)\)/,_0x5dd94e(0x1d5)[_0x5dd94e(0x30a)](_0x57df74[_0x5dd94e(0x368)],')')));});var _0x5cf7c0=_0x57df74['defIds'];return!_0x5cf7c0||_0x5cf7c0[_0x2c6387(0x263)]===0x0||(_0x3b3ad5['tag']===_0x2c6387(0x1cd)&&_0x420f6c['xlink:href']&&(_0x420f6c[_0x2c6387(0x257)]=_0x420f6c[_0x2c6387(0x257)]+_0x57df74[_0x2c6387(0x368)]),Object['entries'](_0x420f6c)[_0x2c6387(0x2c8)](function(_0x16c399){const _0x1692fa=_0x2c6387;var _0x2b4611=_0x16c399[0x0],_0x6067fe=_0x16c399[0x1];typeof _0x6067fe==_0x1692fa(0x1e7)&&(_0x420f6c[_0x2b4611]=_0x6067fe[_0x1692fa(0x1c9)](/url\(#(.*)\)/,_0x1692fa(0x1d5)[_0x1692fa(0x30a)](_0x57df74[_0x1692fa(0x368)],')')));})),_0x420f6c;}function Dt(_0x400b68,_0x22ebfa){const _0x385648=_0x441672;var _0x3965b8,_0x4c5637=_0x22ebfa[_0x385648(0x2c2)];return!_0x4c5637||_0x4c5637['length']===0x0?_0x400b68:_0x400b68[_0x385648(0x3b7)]===_0x385648(0x29c)&&(!((_0x3965b8=_0x400b68[_0x385648(0x249)])===null||_0x3965b8===void 0x0)&&_0x3965b8[_0x385648(0x263)])?E(E({},_0x400b68),{'children':_0x400b68[_0x385648(0x249)][_0x385648(0x2ad)](function(_0xc58bec){const _0x120a08=_0x385648;return typeof _0xc58bec[_0x120a08(0x3f8)]['id']==_0x120a08(0x1e7)&&_0x4c5637&&_0x4c5637[_0x120a08(0x1ac)](_0xc58bec[_0x120a08(0x3f8)]['id'])>-0x1?E(E({},_0xc58bec),{'attrs':E(E({},_0xc58bec[_0x120a08(0x3f8)]),{'id':_0xc58bec['attrs']['id']+_0x22ebfa[_0x120a08(0x368)]})}):_0xc58bec;})}):_0x400b68;}function Ut(){const _0x234b57=_0x441672;return Math[_0x234b57(0x31a)]()[_0x234b57(0x33a)](0x24)[_0x234b57(0x3d0)](0x2,0x8);}be[_0x441672(0x32b)]=_0x441672(0x275);var Nt={'tag':_0x441672(0x35b),'attrs':{'fill':_0x441672(0x431),'viewBox':_0x441672(0x3fe),'width':_0x441672(0x2c4),'height':_0x441672(0x2c4)},'children':[{'tag':'g','attrs':{'clipPath':_0x441672(0x3be)},'children':[{'tag':_0x441672(0x2b1),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x441672(0x2d8),'strokeLinejoin':_0x441672(0x2d8),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x441672(0x374),'attrs':{'id':_0x441672(0x386)},'children':[{'tag':_0x441672(0x2b1),'attrs':{'fill':_0x441672(0x1ea),'d':_0x441672(0x3d8)}}]}]}],'defIds':[_0x441672(0x386)]},$e=M['forwardRef'](function(_0x445faa,_0xb4e94a){const _0x21f61a=_0x441672;return M[_0x21f61a(0x382)](be,Object['assign']({},_0x445faa,{'id':_0x21f61a(0x32d),'ref':_0xb4e94a,'icon':Nt}));});$e[_0x441672(0x32b)]=_0x441672(0x2ba);var Mt={'tag':_0x441672(0x35b),'attrs':{'fill':_0x441672(0x431),'viewBox':_0x441672(0x227),'width':'1em','height':_0x441672(0x2c4)},'children':[{'tag':'g','attrs':{'clipPath':_0x441672(0x385)},'children':[{'tag':_0x441672(0x2b1),'attrs':{'stroke':_0x441672(0x3eb),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x441672(0x2d8),'strokeLinejoin':_0x441672(0x2d8),'strokeWidth':1.2}}]},{'tag':_0x441672(0x29c),'attrs':{},'children':[{'tag':_0x441672(0x374),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x441672(0x2b1),'attrs':{'fill':_0x441672(0x1ea),'d':_0x441672(0x3d8),'transform':_0x441672(0x428)}}]}]}],'defIds':[_0x441672(0x3ae)]},xe=M['forwardRef'](function(_0x57aa95,_0x4ba651){const _0x47cedb=_0x441672;return M[_0x47cedb(0x382)](be,Object[_0x47cedb(0x324)]({},_0x57aa95,{'id':_0x47cedb(0x224),'ref':_0x4ba651,'icon':Mt}));});xe['displayName']=_0x441672(0x1f0);const Pt=_0x441672(0x2af),Lt=_0x441672(0x258),wt=_0x441672(0x1e6),At=_0x441672(0x350),yt='univer-offline',H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x5935b8){const _0x4aa716=_0x441672;switch(_0x5935b8){case u['CollaborationStatus']['OFFLINE']:return'collabStatus.offline';case u[_0x4aa716(0x1d4)][_0x4aa716(0x309)]:return _0x4aa716(0x3c3);case u[_0x4aa716(0x1d4)][_0x4aa716(0x378)]:return _0x4aa716(0x233);case u[_0x4aa716(0x1d4)][_0x4aa716(0x365)]:return _0x4aa716(0x36b);case u['CollaborationStatus'][_0x4aa716(0x219)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x4aa716(0x37c);case u[_0x4aa716(0x1d4)]['SYNCED']:case u[_0x4aa716(0x1d4)]['PENDING']:return'collabStatus.synced';}}function je(_0x48c188){const _0x419f2c=_0x441672,{status$:_0x3b0238}=_0x48c188,_0x53fbf5=R[_0x419f2c(0x2ab)](_0x3b0238,u[_0x419f2c(0x1d4)][_0x419f2c(0x365)]),_0x1b2c40=R[_0x419f2c(0x1e9)](a[_0x419f2c(0x20c)]),_0x48eb9a=R[_0x419f2c(0x1e9)](u[_0x419f2c(0x2d9)]),_0x1cf929=_0x53fbf5!==u['CollaborationStatus'][_0x419f2c(0x338)],_0x17f238=_0x1b2c40['t']($t(_0x53fbf5)),_0x2f37fc=T[_0x419f2c(0x26b)](H['onlineStatus'],{[H[_0x419f2c(0x201)]]:_0x1cf929,[H[_0x419f2c(0x36f)]]:!_0x1cf929}),_0x4db7cf=_0x1cf929?L[_0x419f2c(0x402)](xe,{}):L['jsx']($e,{}),_0x1eb93c=M[_0x419f2c(0x220)](()=>{_0x1cf929||_0x48eb9a['reconnect']();},[_0x1cf929,_0x48eb9a]);function _0x11cddd(){const _0x245a4e=_0x419f2c;return L[_0x245a4e(0x366)](_0x245a4e(0x2d6),{'className':T[_0x245a4e(0x26b)](_0x2f37fc,_0x245a4e(0x403)),'onClick':_0x1eb93c,'children':[L[_0x245a4e(0x402)](_0x245a4e(0x2d6),{'className':H[_0x245a4e(0x2e8)],'children':_0x4db7cf}),L[_0x245a4e(0x402)](_0x245a4e(0x2d6),{'className':H[_0x245a4e(0x286)],'children':_0x17f238})]});}return _0x1cf929?_0x11cddd():L['jsx'](T[_0x419f2c(0x230)],{'title':_0x1b2c40['t'](_0x419f2c(0x332)),'children':_0x11cddd()});}var xt=Object[_0x441672(0x1b3)],jt=(_0x2916b0,_0x38b90b,_0x4ab7b7,_0x4c56d4)=>{for(var _0x27a6fb=_0x4c56d4>0x1?void 0x0:_0x4c56d4?xt(_0x38b90b,_0x4ab7b7):_0x38b90b,_0x431de5=_0x2916b0['length']-0x1,_0x12377b;_0x431de5>=0x0;_0x431de5--)(_0x12377b=_0x2916b0[_0x431de5])&&(_0x27a6fb=_0x12377b(_0x27a6fb)||_0x27a6fb);return _0x27a6fb;},X=(_0x71ee37,_0x2d76cf)=>(_0x1d4f42,_0x298c23)=>_0x2d76cf(_0x1d4f42,_0x298c23,_0x71ee37);exports[_0x441672(0x225)]=class extends a[_0x441672(0x1f7)]{constructor(_0x2fb1c6,_0x477680,_0x2e023e,_0x332e7c){const _0x558e80=_0x441672;super(),_(this,_0x558e80(0x1fe),new d['BehaviorSubject'](u['CollaborationStatus'][_0x558e80(0x365)])),(this['_univerInstanceService']=_0x2fb1c6,this[_0x558e80(0x1a9)]=_0x477680,this[_0x558e80(0x330)]=_0x2e023e,this['_uiPartsService']=_0x332e7c,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x40324b=_0x441672;this[_0x40324b(0x3aa)](this['_univerInstanceService'][_0x40324b(0x2cc)][_0x40324b(0x25b)](d[_0x40324b(0x391)](()=>{const _0x5d606e=_0x40324b,_0x24f1a2=this[_0x5d606e(0x1e2)][_0x5d606e(0x1ed)]();return _0x24f1a2?this[_0x5d606e(0x330)][_0x5d606e(0x26c)](_0x24f1a2[_0x5d606e(0x247)]()):d['of'](null);}),d[_0x40324b(0x391)](_0xce64d7=>_0xce64d7?_0xce64d7[_0x40324b(0x3ad)]:d['of'](u[_0x40324b(0x1d4)]['NOT_COLLAB'])))[_0x40324b(0x2d4)](_0x29b38b=>{const _0x360e5f=_0x40324b;this[_0x360e5f(0x1fe)]['next'](_0x29b38b);}));}[_0x441672(0x331)](){const _0x3fcade=_0x441672;this[_0x3fcade(0x3aa)](this[_0x3fcade(0x26d)][_0x3fcade(0x28f)](R[_0x3fcade(0x3cc)]['HEADER_MENU'],()=>R[_0x3fcade(0x3e8)](Bt({'status$':this['_status$'][_0x3fcade(0x218)]()}),this[_0x3fcade(0x1a9)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x441672(0x41c)]),X(0x1,a[_0x441672(0x222)](a[_0x441672(0x3e4)])),X(0x2,a[_0x441672(0x222)](u['CollaborationController'])),X(0x3,R[_0x441672(0x370)])],exports[_0x441672(0x225)]);function Bt(_0xbfd389){const {status$:_0x1077d4}=_0xbfd389;return function(){const _0xf8ff88=_0x4375;return L[_0xf8ff88(0x402)](je,{'status$':_0x1077d4});};}var kt=Object[_0x441672(0x1b3)],Ht=(_0x56441a,_0x24329b,_0x316414,_0x58c682)=>{for(var _0x2963e4=_0x58c682>0x1?void 0x0:_0x58c682?kt(_0x24329b,_0x316414):_0x24329b,_0x1e3743=_0x56441a['length']-0x1,_0x195040;_0x1e3743>=0x0;_0x1e3743--)(_0x195040=_0x56441a[_0x1e3743])&&(_0x2963e4=_0x195040(_0x2963e4)||_0x2963e4);return _0x2963e4;},y=(_0x5ab875,_0x1fd174)=>(_0x3f45c7,_0x3abef8)=>_0x1fd174(_0x3f45c7,_0x3abef8,_0x5ab875);let z=class extends a[_0x441672(0x1f7)]{constructor(_0x419761,_0x422978,_0x2a21fc,_0x135422,_0x499ba5,_0x38b920){const _0xccea45=_0x441672;super(),this[_0xccea45(0x1ad)]=_0x419761,this[_0xccea45(0x3e6)]=_0x422978,this[_0xccea45(0x240)]=_0x2a21fc,this['_messageService']=_0x135422,this[_0xccea45(0x358)]=_0x499ba5,this[_0xccea45(0x2a3)]=_0x38b920,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x441672(0x282)](){const _0x12473c=_0x441672;this[_0x12473c(0x3aa)](this[_0x12473c(0x1ad)]['registerBeforeClose'](()=>{const _0x585c93=_0x12473c;if(this['_localCacheService'][_0x585c93(0x3d5)][_0x585c93(0x288)])return this['_localeService']['t'](_0x585c93(0x1c6));}));}[_0x441672(0x295)](){const _0x52be87=_0x441672;this['disposeWithMe'](this[_0x52be87(0x240)][_0x52be87(0x256)]['subscribe'](_0x463dd=>{const _0x11d42c=_0x52be87;_0x463dd['id']===u[_0x11d42c(0x1ec)][_0x11d42c(0x372)]&&this[_0x11d42c(0x35a)][_0x11d42c(0x35e)]({'type':T['MessageType'][_0x11d42c(0x2b8)],'content':this[_0x11d42c(0x2a3)]['t']('collaboration.single-unit.warning')}),_0x463dd['id']===u[_0x11d42c(0x1ec)]['CLOSE_ROOM']&&this['_messageService']['show']({'type':T['MessageType'][_0x11d42c(0x2b8)],'content':this[_0x11d42c(0x2a3)]['t'](_0x11d42c(0x289))}),_0x463dd['id']===u['CollaborationUIEventId'][_0x11d42c(0x23f)]&&this['_notificationService'][_0x11d42c(0x35e)]({'title':this[_0x11d42c(0x2a3)]['t']('permission.title'),'content':this[_0x11d42c(0x2a3)]['t'](_0x11d42c(0x241)),'type':'error','duration':0x0}),_0x463dd['id']===u[_0x11d42c(0x1ec)][_0x11d42c(0x309)]&&this[_0x11d42c(0x35a)][_0x11d42c(0x35e)]({'type':T[_0x11d42c(0x352)]['Error'],'content':this[_0x11d42c(0x2a3)]['t'](_0x11d42c(0x289))+'('+_0x463dd['data']+')'}),_0x463dd['id']===u[_0x11d42c(0x1ec)][_0x11d42c(0x3e2)]&&this[_0x11d42c(0x35a)][_0x11d42c(0x35e)]({'type':T[_0x11d42c(0x352)][_0x11d42c(0x2b8)],'content':this[_0x11d42c(0x2a3)]['t'](_0x463dd[_0x11d42c(0x2c0)]||'')}),_0x463dd['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x11d42c(0x35a)][_0x11d42c(0x35e)]({'type':T['MessageType']['Warning'],'content':this[_0x11d42c(0x2a3)]['t'](_0x11d42c(0x265))}),_0x463dd['id']===u['CollaborationUIEventId'][_0x11d42c(0x2ee)]&&this[_0x11d42c(0x35a)][_0x11d42c(0x35e)]({'type':T[_0x11d42c(0x352)][_0x11d42c(0x360)],'content':this['_localeService']['t'](_0x11d42c(0x1e3))}),_0x463dd['id']===u[_0x11d42c(0x1ec)][_0x11d42c(0x39b)]&&this[_0x11d42c(0x35a)][_0x11d42c(0x35e)]({'type':T[_0x11d42c(0x352)]['Error'],'content':this[_0x11d42c(0x2a3)]['t'](_0x11d42c(0x254))});}));}};z=Ht([y(0x0,R[_0x441672(0x34b)]),y(0x1,u[_0x441672(0x3d9)]),y(0x2,a[_0x441672(0x222)](u[_0x441672(0x23c)])),y(0x3,R['IMessageService']),y(0x4,R[_0x441672(0x301)]),y(0x5,a['Inject'](a[_0x441672(0x20c)]))],z);const Wt=_0x441672(0x34f),Ne={},Ee=a[_0x441672(0x1d7)](_0x441672(0x432));var Ft=Object[_0x441672(0x1b3)],Yt=(_0x339806,_0x1137fc,_0x5ce637,_0x258544)=>{const _0x52fba4=_0x441672;for(var _0x4fa1d0=_0x258544>0x1?void 0x0:_0x258544?Ft(_0x1137fc,_0x5ce637):_0x1137fc,_0x5b05ed=_0x339806[_0x52fba4(0x263)]-0x1,_0x5e6c57;_0x5b05ed>=0x0;_0x5b05ed--)(_0x5e6c57=_0x339806[_0x5b05ed])&&(_0x4fa1d0=_0x5e6c57(_0x4fa1d0)||_0x4fa1d0);return _0x4fa1d0;},W=(_0x48dcf0,_0x43a716)=>(_0x304e65,_0x407eb1)=>_0x43a716(_0x304e65,_0x407eb1,_0x48dcf0);exports['CollaborationDataLoaderController']=class extends a['RxDisposable']{constructor(_0x4faa83,_0x419b07,_0x2044f1,_0x1d67fc,_0x1fd6dc){const _0x50a0de=_0x441672;super(),this['_urlService']=_0x4faa83,this[_0x50a0de(0x3b2)]=_0x419b07,this[_0x50a0de(0x1f3)]=_0x2044f1,this[_0x50a0de(0x1df)]=_0x1d67fc,_0x1fd6dc?_0x1fd6dc==null||_0x1fd6dc[_0x50a0de(0x36a)]()[_0x50a0de(0x28d)](()=>this[_0x50a0de(0x39e)]()):(this[_0x50a0de(0x3b2)][_0x50a0de(0x3e3)](_0x50a0de(0x278),_0x50a0de(0x40d)),this[_0x50a0de(0x39e)]());}async[_0x441672(0x39e)](){const _0x22b205=_0x441672,_0x21671a=this[_0x22b205(0x239)]['getParam'](_0x22b205(0x264)),_0x478b2e=this[_0x22b205(0x239)][_0x22b205(0x305)](_0x22b205(0x204)),_0x3e6ba2=this['_urlService']['getParam']('subunit');if(!_0x21671a||!_0x478b2e){this[_0x22b205(0x3b2)][_0x22b205(0x3e3)](_0x22b205(0x278),_0x22b205(0x299));return;}const _0x30376d=await this[_0x22b205(0x1df)][_0x22b205(0x1c7)](_0x21671a,Number(_0x478b2e),_0x3e6ba2);_0x30376d&&_0x30376d instanceof a[_0x22b205(0x3a7)]&&this[_0x22b205(0x380)](_0x30376d);}async['_setupSubUnitSync'](_0x1b641c){const _0x5cb14c=_0x441672;await this[_0x5cb14c(0x306)](_0x1b641c),_0x1b641c[_0x5cb14c(0x329)][_0x5cb14c(0x25b)](d[_0x5cb14c(0x244)](this['dispose$']))[_0x5cb14c(0x2d4)](_0x28f5ea=>{const _0x5c44b2=_0x5cb14c;_0x28f5ea&&this[_0x5c44b2(0x337)](_0x28f5ea);}),this[_0x5cb14c(0x239)][_0x5cb14c(0x387)][_0x5cb14c(0x25b)](d[_0x5cb14c(0x244)](this['dispose$']))[_0x5cb14c(0x2d4)](()=>this['_updateSubUnitFromURLParams'](_0x1b641c));}[_0x441672(0x337)](_0x38bf12,_0x59d49f=!0x1){const _0x3fa003=_0x441672,_0x1ba308=this[_0x3fa003(0x239)][_0x3fa003(0x305)](_0x3fa003(0x407));_0x38bf12[_0x3fa003(0x2dc)]()!==_0x1ba308&&this[_0x3fa003(0x239)][_0x3fa003(0x1b1)]('subunit',_0x38bf12[_0x3fa003(0x2dc)](),_0x59d49f);}async[_0x441672(0x306)](_0x39339){const _0x26937d=_0x441672;var _0x597f8f;const _0x1af60a=this[_0x26937d(0x239)][_0x26937d(0x305)](_0x26937d(0x407));if(!_0x1af60a||!_0x39339[_0x26937d(0x2a0)](_0x1af60a)){const _0x38e276=_0x39339[_0x26937d(0x38c)]()[0x0],_0x2f43df=_0x39339['getSheetBySheetId'](_0x38e276);if(!_0x2f43df)return;this[_0x26937d(0x337)](_0x2f43df,!0x0),await this[_0x26937d(0x1f3)][_0x26937d(0x420)](g[_0x26937d(0x208)]['id'],{'unitId':_0x39339[_0x26937d(0x247)](),'subUnitId':_0x38e276});return;}((_0x597f8f=_0x39339[_0x26937d(0x42a)]())==null?void 0x0:_0x597f8f['getSheetId']())!==_0x1af60a&&await this[_0x26937d(0x1f3)][_0x26937d(0x420)](g[_0x26937d(0x208)]['id'],{'unitId':_0x39339[_0x26937d(0x247)](),'subUnitId':_0x1af60a});}},exports[_0x441672(0x259)]=Yt([W(0x0,Ee),W(0x1,a[_0x441672(0x235)]),W(0x2,a[_0x441672(0x1cb)]),W(0x3,a['Inject'](u[_0x441672(0x27f)])),W(0x4,a[_0x441672(0x2a6)](Ke[_0x441672(0x1b4)]))],exports[_0x441672(0x259)]);var Vt=Object[_0x441672(0x1b3)],Xt=(_0x2d9372,_0x4147cd,_0x40df04,_0x276593)=>{const _0x46643b=_0x441672;for(var _0x3422b1=_0x276593>0x1?void 0x0:_0x276593?Vt(_0x4147cd,_0x40df04):_0x4147cd,_0x7d8895=_0x2d9372[_0x46643b(0x263)]-0x1,_0x4c7ad5;_0x7d8895>=0x0;_0x7d8895--)(_0x4c7ad5=_0x2d9372[_0x7d8895])&&(_0x3422b1=_0x4c7ad5(_0x3422b1)||_0x3422b1);return _0x3422b1;},le=(_0x43ae0a,_0x24fbff)=>(_0x38352f,_0x155823)=>_0x24fbff(_0x38352f,_0x155823,_0x43ae0a);let J=class{constructor(_0x5253ac,_0x2eb13e,_0x42c494){const _0x276fac=_0x441672;this[_0x276fac(0x1a9)]=_0x5253ac,this[_0x276fac(0x40e)]=_0x2eb13e,this[_0x276fac(0x23e)]=_0x42c494;}['transformIMECache'](_0x21deda){this['_transformUndoRedoStack'](_0x21deda),this['_transformPreviousActiveRange'](_0x21deda);}[_0x441672(0x3f7)](_0x220876){const _0x35b8a5=_0x441672,{unitID:_0x284eed}=_0x220876,_0x5124c3=this[_0x35b8a5(0x23e)][_0x35b8a5(0x2f2)](_0x284eed)[_0x35b8a5(0x205)](b['DocIMEInputManagerService']),{redoCache:_0x53ddf5}=_0x5124c3['getUndoRedoMutationParamsCache']();if(_0x53ddf5[_0x35b8a5(0x263)]===0x0)return _0x220876;let _0x4c3b2f=a[_0x35b8a5(0x2f4)]['deepClone'](_0x220876[_0x35b8a5(0x41d)][0x0]);for(let _0x2619b1=0x0;_0x2619b1<_0x53ddf5[_0x35b8a5(0x263)];_0x2619b1++){const _0x51ae2e={'id':_0x35b8a5(0x1da),'params':{..._0x53ddf5[_0x2619b1]}},_0x10d782=this[_0x35b8a5(0x40e)]['transformMutation'](_0x4c3b2f,_0x51ae2e,!0x1);if(m[_0x35b8a5(0x1ff)](_0x10d782))throw _0x10d782['error'];_0x4c3b2f=_0x10d782[_0x35b8a5(0x1fd)];}return{...a[_0x35b8a5(0x2f4)][_0x35b8a5(0x356)](_0x220876),'mutations':[_0x4c3b2f]};}['_transformUndoRedoStack'](_0x542c39){const _0x565df9=_0x441672,{unitID:_0x1bc566}=_0x542c39,_0x1a462f=this[_0x565df9(0x23e)][_0x565df9(0x2f2)](_0x1bc566)[_0x565df9(0x205)](b[_0x565df9(0x435)]),{undoCache:_0x3b461c,redoCache:_0x2f7e2b}=_0x1a462f[_0x565df9(0x2cf)]();if(_0x3b461c[_0x565df9(0x263)]===0x0||_0x2f7e2b[_0x565df9(0x263)]===0x0)return;const _0x129260=[],_0x501108=[];let _0x28b003=a[_0x565df9(0x2f4)][_0x565df9(0x356)](_0x542c39[_0x565df9(0x41d)][0x0]),_0x355954=a[_0x565df9(0x2f4)]['deepClone'](_0x542c39['mutations'][0x0]);for(let _0x5674ae=_0x3b461c[_0x565df9(0x263)]-0x1;_0x5674ae>=0x0;_0x5674ae--){const _0x350297={'id':'doc.mutation.rich-text-editing','params':{..._0x3b461c[_0x5674ae]}},_0x1c5dee={'id':_0x565df9(0x1da),'params':{..._0x2f7e2b[_0x5674ae]}},_0x53fd1f=this[_0x565df9(0x40e)]['transformMutation'](_0x28b003,_0x350297,!0x1),_0x1a4f21=this['_transformService'][_0x565df9(0x336)](_0x355954,_0x1c5dee,!0x1);if(m['isTransformMutationFailure'](_0x53fd1f))throw _0x53fd1f['error'];if(m['isTransformMutationFailure'](_0x1a4f21))throw _0x1a4f21[_0x565df9(0x22a)];_0x129260[_0x565df9(0x1a5)](_0x53fd1f[_0x565df9(0x41b)][_0x565df9(0x421)]),_0x501108['unshift'](_0x1a4f21[_0x565df9(0x41b)]['params']),_0x28b003=_0x53fd1f[_0x565df9(0x1fd)],_0x355954=_0x1a4f21['m1Prime'];}_0x1a462f['setUndoRedoMutationParamsCache']({'undoCache':_0x129260,'redoCache':_0x501108});}[_0x441672(0x318)](_0x2b44db){const _0x273d2b=_0x441672,{unitID:_0x5e9d2c}=_0x2b44db,_0x2a1ca1=this[_0x273d2b(0x23e)]['getRenderById'](_0x5e9d2c)['with'](b[_0x273d2b(0x435)]),_0x11f915=_0x2a1ca1[_0x273d2b(0x30b)]();if(_0x11f915==null)return;const _0x8abfc=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b44db[_0x273d2b(0x40f)],'actions':null,'textRanges':[_0x11f915]}}],_0x42597f=this[_0x273d2b(0x40e)][_0x273d2b(0x274)](_0x2b44db,_0x8abfc);if(!m[_0x273d2b(0x37f)](_0x42597f))throw _0x42597f['error'];const _0xe55cc5=_0x42597f[_0x273d2b(0x41b)][0x0]['params'][_0x273d2b(0x1f8)];Array['isArray'](_0xe55cc5)&&_0xe55cc5[_0x273d2b(0x263)]&&_0x2a1ca1[_0x273d2b(0x30d)](_0xe55cc5[0x0]);}};J=Xt([le(0x0,a['Inject'](a[_0x441672(0x3e4)])),le(0x1,m[_0x441672(0x2e5)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x441672(0x1b3)],qt=(_0x54dda5,_0x264917,_0x427366,_0x6a5f51)=>{for(var _0x38634f=_0x6a5f51>0x1?void 0x0:_0x6a5f51?Gt(_0x264917,_0x427366):_0x264917,_0x1a75ac=_0x54dda5['length']-0x1,_0x5e57c8;_0x1a75ac>=0x0;_0x1a75ac--)(_0x5e57c8=_0x54dda5[_0x1a75ac])&&(_0x38634f=_0x5e57c8(_0x38634f)||_0x38634f);return _0x38634f;},_e=(_0x2c8cf1,_0x3d045e)=>(_0x524512,_0x453d00)=>_0x3d045e(_0x524512,_0x453d00,_0x2c8cf1);function _0x4375(_0x44bd48,_0x575c58){const _0x38c0e0=_0x38c0();return _0x4375=function(_0x4375b0,_0x24ae6f){_0x4375b0=_0x4375b0-0x1a5;let _0x52a8e8=_0x38c0e0[_0x4375b0];return _0x52a8e8;},_0x4375(_0x44bd48,_0x575c58);}let Z=class{constructor(_0x56031f,_0x3213ca,_0x4e726b){const _0x3d7647=_0x441672;this['_injector']=_0x56031f,this[_0x3d7647(0x40e)]=_0x3213ca,this[_0x3d7647(0x1c8)]=_0x4e726b;}[_0x441672(0x417)](_0x46d5b1){const _0x37638a=_0x441672;this[_0x37638a(0x3e9)](_0x46d5b1);}[_0x441672(0x3f7)](_0x3814b2){const _0x2ac0d5=_0x441672,{unitID:_0x48170d}=_0x3814b2,{collaboration:_0x8a168a}=this['_docStateChangeManagerService'][_0x2ac0d5(0x326)](_0x48170d);if(_0x8a168a[_0x2ac0d5(0x263)]===0x0)return _0x3814b2;let _0x4af73c=a[_0x2ac0d5(0x2f4)][_0x2ac0d5(0x356)](_0x3814b2[_0x2ac0d5(0x41d)][0x0]);for(let _0x48a328=0x0;_0x48a328<_0x8a168a['length'];_0x48a328++){const _0x3c87a7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x8a168a[_0x48a328][_0x2ac0d5(0x29d)],..._0x8a168a[_0x48a328]['redoState']}},_0xd22467=this[_0x2ac0d5(0x40e)][_0x2ac0d5(0x336)](_0x4af73c,_0x3c87a7,!0x1);if(m[_0x2ac0d5(0x1ff)](_0xd22467))throw _0xd22467[_0x2ac0d5(0x22a)];_0x4af73c=_0xd22467[_0x2ac0d5(0x1fd)];}return{...a[_0x2ac0d5(0x2f4)][_0x2ac0d5(0x356)](_0x3814b2),'mutations':[_0x4af73c]};}[_0x441672(0x3e9)](_0x952878){const _0x47d953=_0x441672,{unitID:_0x8ae010}=_0x952878,{history:_0x326b2f,collaboration:_0x49b45a}=this[_0x47d953(0x1c8)][_0x47d953(0x326)](_0x8ae010);if(_0x326b2f[_0x47d953(0x263)]===0x0&&_0x49b45a[_0x47d953(0x263)]===0x0)return;const _0x54d007=[],_0x514498=[];let _0xc1f684=a[_0x47d953(0x2f4)]['deepClone'](_0x952878[_0x47d953(0x41d)][0x0]),_0x4ccc6e=a['Tools'][_0x47d953(0x356)](_0x952878[_0x47d953(0x41d)][0x0]);for(let _0x2fda7e=_0x326b2f['length']-0x1;_0x2fda7e>=0x0;_0x2fda7e--){const _0x1c9a81={'id':_0x47d953(0x1da),'params':{'unitId':_0x326b2f[_0x2fda7e][_0x47d953(0x29d)],..._0x326b2f[_0x2fda7e]['undoState']}},_0x35236f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x326b2f[_0x2fda7e][_0x47d953(0x29d)],..._0x326b2f[_0x2fda7e][_0x47d953(0x30f)]}},_0x2452ea=this['_transformService'][_0x47d953(0x336)](_0xc1f684,_0x1c9a81,!0x1),_0x6cfb80=this[_0x47d953(0x40e)][_0x47d953(0x336)](_0x4ccc6e,_0x35236f,!0x1);if(m[_0x47d953(0x1ff)](_0x2452ea))throw _0x2452ea[_0x47d953(0x22a)];if(m[_0x47d953(0x1ff)](_0x6cfb80))throw _0x6cfb80[_0x47d953(0x22a)];_0x54d007[_0x47d953(0x1a5)]({..._0x326b2f[_0x2fda7e],'undoState':_0x2452ea[_0x47d953(0x41b)][_0x47d953(0x421)],'redoState':_0x6cfb80[_0x47d953(0x41b)][_0x47d953(0x421)]}),_0xc1f684=_0x2452ea[_0x47d953(0x1fd)],_0x4ccc6e=_0x6cfb80['m1Prime'];}_0xc1f684=a['Tools']['deepClone'](_0x952878[_0x47d953(0x41d)][0x0]),_0x4ccc6e=a[_0x47d953(0x2f4)]['deepClone'](_0x952878[_0x47d953(0x41d)][0x0]);for(let _0x190db0=_0x49b45a[_0x47d953(0x263)]-0x1;_0x190db0>=0x0;_0x190db0--){const _0x1da7ba={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x49b45a[_0x190db0]['unitId'],..._0x49b45a[_0x190db0]['undoState']}},_0xe0b458={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x49b45a[_0x190db0][_0x47d953(0x29d)],..._0x49b45a[_0x190db0]['redoState']}},_0x59936e=this[_0x47d953(0x40e)][_0x47d953(0x336)](_0xc1f684,_0x1da7ba,!0x1),_0x536cd4=this['_transformService'][_0x47d953(0x336)](_0x4ccc6e,_0xe0b458,!0x1);if(m[_0x47d953(0x1ff)](_0x59936e))throw _0x59936e[_0x47d953(0x22a)];if(m[_0x47d953(0x1ff)](_0x536cd4))throw _0x536cd4[_0x47d953(0x22a)];_0x514498[_0x47d953(0x1a5)]({..._0x49b45a[_0x190db0],'undoState':_0x59936e[_0x47d953(0x41b)][_0x47d953(0x421)],'redoState':_0x536cd4[_0x47d953(0x41b)][_0x47d953(0x421)]}),_0xc1f684=_0x59936e[_0x47d953(0x1fd)],_0x4ccc6e=_0x536cd4[_0x47d953(0x1fd)];}this[_0x47d953(0x1c8)]['setStateCache'](_0x8ae010,{'history':_0x54d007,'collaboration':_0x514498});}};Z=qt([_e(0x0,a['Inject'](a[_0x441672(0x3e4)])),_e(0x1,m['ITransformService']),_e(0x2,a[_0x441672(0x222)](b['DocStateChangeManagerService']))],Z);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x1472dc,_0x3f4be0,_0x4767dd,_0x97fec4)=>{for(var _0x38f03b=_0x97fec4>0x1?void 0x0:_0x97fec4?Kt(_0x3f4be0,_0x4767dd):_0x3f4be0,_0x2f2745=_0x1472dc['length']-0x1,_0x4d38d6;_0x2f2745>=0x0;_0x2f2745--)(_0x4d38d6=_0x1472dc[_0x2f2745])&&(_0x38f03b=_0x4d38d6(_0x38f03b)||_0x38f03b);return _0x38f03b;},Me=(_0x318317,_0x635c5)=>(_0x23f735,_0x49c505)=>_0x635c5(_0x23f735,_0x49c505,_0x318317);let Q=class{constructor(_0x4f481b,_0x12e5b6){const _0x4289a9=_0x441672;this['_injector']=_0x4f481b,this[_0x4289a9(0x40e)]=_0x12e5b6;}[_0x441672(0x29b)](_0x10eafc){const _0xfbb501=_0x441672;var _0x2ba750;const _0x163209=this[_0xfbb501(0x1a9)][_0xfbb501(0x236)](Y[_0xfbb501(0x27a)]),_0x171aa2=(_0x2ba750=_0x163209[_0xfbb501(0x24f)]())!=null?_0x2ba750:[];if(_0x171aa2['length']===0x0)return;const _0x135beb=_0x10eafc['unitID'],_0x141067=[{'id':_0xfbb501(0x1da),'params':{'unitId':_0x135beb,'actions':null,'textRanges':_0x171aa2}}],_0xccb485=this[_0xfbb501(0x40e)][_0xfbb501(0x274)](_0x10eafc,_0x141067);if(!m[_0xfbb501(0x37f)](_0xccb485))throw _0xccb485[_0xfbb501(0x22a)];const _0x24a5ba=_0xccb485[_0xfbb501(0x41b)][0x0][_0xfbb501(0x421)]['textRanges'];Array['isArray'](_0x24a5ba)&&_0x24a5ba['length']&&_0x163209[_0xfbb501(0x214)](_0x24a5ba,{'unitId':_0x135beb,'subUnitId':_0x135beb},!0x1);}};Q=zt([Me(0x0,a[_0x441672(0x222)](a[_0x441672(0x3e4)])),Me(0x1,m[_0x441672(0x2e5)])],Q);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0x3487d2,_0x415648,_0x1d2002,_0x4a5501)=>{const _0x95d996=_0x441672;for(var _0x456615=_0x4a5501>0x1?void 0x0:_0x4a5501?Jt(_0x415648,_0x1d2002):_0x415648,_0x381ba0=_0x3487d2[_0x95d996(0x263)]-0x1,_0x47fc12;_0x381ba0>=0x0;_0x381ba0--)(_0x47fc12=_0x3487d2[_0x381ba0])&&(_0x456615=_0x47fc12(_0x456615)||_0x456615);return _0x456615;},N=(_0xe110bf,_0x47dedd)=>(_0x4febe8,_0x33cc48)=>_0x47dedd(_0x4febe8,_0x33cc48,_0xe110bf);let ee=class extends a[_0x441672(0x1f7)]{constructor(_0x1a0982,_0x2ecd75,_0x54c372,_0x4293e4,_0x7723f9,_0x509e86,_0x14f6a4,_0x197af4){const _0x2d8bc0=_0x441672;super(),_(this,_0x2d8bc0(0x1fe),new d[(_0x2d8bc0(0x2ca))](u[_0x2d8bc0(0x1d4)]['NOT_COLLAB'])),(this[_0x2d8bc0(0x1c8)]=_0x1a0982,this[_0x2d8bc0(0x330)]=_0x2ecd75,this['_docTransformIMECacheService']=_0x54c372,this[_0x2d8bc0(0x39a)]=_0x4293e4,this[_0x2d8bc0(0x262)]=_0x7723f9,this[_0x2d8bc0(0x405)]=_0x509e86,this[_0x2d8bc0(0x35a)]=_0x14f6a4,this[_0x2d8bc0(0x2a3)]=_0x197af4,this['_initEntityListener']());}[_0x441672(0x1e1)](){this['disposeWithMe'](this['_collaborationController']['entityInit$']['subscribe'](_0x531166=>{const _0x15b0ee=_0x4375,_0x368bb4=this[_0x15b0ee(0x1c8)][_0x15b0ee(0x36e)][_0x15b0ee(0x2d4)](_0x1fca78=>{const _0x14c17d=_0x15b0ee;if(_0x1fca78==null)return;const {unitId:_0x3b0b0c,redoState:_0x360661,commandId:_0x4eb16f}=_0x1fca78;if(_0x3b0b0c!==_0x531166['unitID'])return;const _0x219679={'id':_0x4eb16f,'type':a[_0x14c17d(0x2bf)][_0x14c17d(0x41a)],'params':{'unitId':_0x3b0b0c,'actions':_0x360661[_0x14c17d(0x1d0)],'textRanges':null}};_0x531166[_0x14c17d(0x3a8)](_0x219679);});if(_0x531166['disposeWithMe'](_0x368bb4),_0x531166 instanceof u[_0x15b0ee(0x373)]){const _0x4e4d02={'onTransformIME':_0x1516f7=>this[_0x15b0ee(0x213)]['transformIMECache'](_0x1516f7),'onTransformState':_0x5c35f0=>this[_0x15b0ee(0x39a)][_0x15b0ee(0x417)](_0x5c35f0),'onTransformSelections':_0x3180ec=>this[_0x15b0ee(0x262)][_0x15b0ee(0x29b)](_0x3180ec),'onSyncEditingCollabCursor':_0x7ce808=>this['_docSyncEditingCollabCursorService'][_0x15b0ee(0x292)](_0x7ce808),'onTransformRemoteChangesetByIMECache':_0x3c34e5=>this['_docTransformIMECacheService'][_0x15b0ee(0x3f7)](_0x3c34e5),'onTransformRemoteChangesetByStateCache':_0xe5127b=>this['_docTransformStateCacheService'][_0x15b0ee(0x3f7)](_0xe5127b)};_0x531166[_0x15b0ee(0x1fc)](_0x4e4d02);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x441672(0x22b)])),N(0x1,a[_0x441672(0x222)](u[_0x441672(0x3b1)])),N(0x2,a['Inject'](J)),N(0x3,a[_0x441672(0x222)](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0x441672(0x222)](pe)),N(0x6,R[_0x441672(0x277)]),N(0x7,a[_0x441672(0x222)](a[_0x441672(0x20c)]))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x40bccb,_0x107ff0,_0x53dd15,_0x48540d)=>{const _0xeda22b=_0x441672;for(var _0x97051a=_0x48540d>0x1?void 0x0:_0x48540d?Qt(_0x107ff0,_0x53dd15):_0x107ff0,_0x744bf1=_0x40bccb[_0xeda22b(0x263)]-0x1,_0x314e39;_0x744bf1>=0x0;_0x744bf1--)(_0x314e39=_0x40bccb[_0x744bf1])&&(_0x97051a=_0x314e39(_0x97051a)||_0x97051a);return _0x97051a;},he=(_0xbade53,_0x58f6c3)=>(_0x5733c4,_0x2c3185)=>_0x58f6c3(_0x5733c4,_0x2c3185,_0xbade53);let me=class extends a[_0x441672(0x1f7)]{constructor(_0x47f004,_0x4cce9a,_0x91ef5){const _0x2e8ad0=_0x441672;super(),_(this,_0x2e8ad0(0x319),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x2e8ad0(0x2fc),!0x1),(this['_configService']=_0x47f004,this[_0x2e8ad0(0x3af)]=_0x4cce9a,this[_0x2e8ad0(0x1ce)]=_0x91ef5);}[_0x441672(0x29f)](){const _0x5c4f30=_0x441672;this[_0x5c4f30(0x2fc)]=!0x0;}[_0x441672(0x1a8)](){const _0x44d309=_0x441672;this[_0x44d309(0x2fc)]=!0x1;}get[_0x441672(0x3d5)](){const _0x4c615f=_0x441672;return this[_0x4c615f(0x344)];}[_0x441672(0x27d)](){const _0x2e6332=_0x441672;this[_0x2e6332(0x266)]()[_0x2e6332(0x28d)](()=>super[_0x2e6332(0x27d)]());}async['loadOfflineData'](_0x2aa07f){const _0x31b49b=_0x441672;return this['_disabled']?null:this['_localStorageService']['getItem'](u[_0x31b49b(0x2ff)](_0x2aa07f));}async[_0x441672(0x2ce)](_0x524b32,_0x3ff5d4){const _0x26d478=_0x441672;return!!this[_0x26d478(0x3af)][_0x26d478(0x3b0)](_0x524b32,_0x3ff5d4);}['updateOfflineData'](_0x27ae78,_0x361571,_0x43f418,_0x2792c7){const _0x4e4ef1=_0x441672,_0x2a92c7=this[_0x4e4ef1(0x1ce)][_0x4e4ef1(0x3f2)](_0x27ae78);this['_cachedData']['set'](_0x27ae78,{'unitID':_0x27ae78,'type':_0x361571,'awaitingChangeset':_0x43f418,'mutations':_0x2792c7,'rev':_0x2a92c7}),this[_0x4e4ef1(0x344)][_0x4e4ef1(0x25e)](_0x27ae78)||this['_scheduleSaving'](_0x27ae78);}[_0x441672(0x22e)](_0x74820){const _0x2b9a2c=_0x441672,_0x42ef45=this[_0x2b9a2c(0x39c)]();_0x42ef45===0x0?this[_0x2b9a2c(0x438)](_0x74820):this[_0x2b9a2c(0x344)][_0x2b9a2c(0x23a)](_0x74820,setTimeout(()=>this[_0x2b9a2c(0x438)](_0x74820),_0x42ef45));}[_0x441672(0x39c)](){const _0xa138f0=_0x441672;var _0x499e13;return(_0x499e13=this[_0xa138f0(0x283)][_0xa138f0(0x354)](u[_0xa138f0(0x37e)]))!=null?_0x499e13:u['LOCAL_CACHE_INTERVAL'];}[_0x441672(0x438)](_0x4675aa){const _0x101a2a=_0x441672,_0x46f5de=this[_0x101a2a(0x344)][_0x101a2a(0x236)](_0x4675aa);return _0x46f5de!==void 0x0&&window[_0x101a2a(0x1dc)](_0x46f5de),this[_0x101a2a(0x3af)][_0x101a2a(0x3b0)](u[_0x101a2a(0x2ff)](_0x4675aa),this[_0x101a2a(0x319)][_0x101a2a(0x236)](_0x4675aa))['then'](()=>this[_0x101a2a(0x344)][_0x101a2a(0x20f)](_0x4675aa));}async[_0x441672(0x266)](){const _0x30dde8=_0x441672,_0x4bc929=[];this[_0x30dde8(0x344)][_0x30dde8(0x2c8)]((_0x4bb2e4,_0x22f8b9)=>{const _0x4f98a9=_0x30dde8;window[_0x4f98a9(0x1dc)](_0x4bb2e4),_0x4bc929[_0x4f98a9(0x3c2)](this[_0x4f98a9(0x438)](_0x22f8b9)['then'](()=>{const _0x2d9641=_0x4f98a9;this['_saveTaskMap'][_0x2d9641(0x20f)](_0x22f8b9);}));}),await Promise[_0x30dde8(0x430)](_0x4bc929);}};me=es([he(0x0,a[_0x441672(0x242)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x441672(0x222)](m[_0x441672(0x3f9)]))],me);class Be extends a[_0x441672(0x1bc)]{constructor(){const _0x2b22f0=_0x441672;super(),_(this,_0x2b22f0(0x387)),this[_0x2b22f0(0x387)]=d[_0x2b22f0(0x1d3)](window,'popstate')[_0x2b22f0(0x25b)](d[_0x2b22f0(0x244)](this[_0x2b22f0(0x313)]),d[_0x2b22f0(0x34c)](0x1),d['mapTo'](void 0x0));}[_0x441672(0x1b1)](_0x3f4fe0,_0x30fd45,_0x2ac010=!0x1){const _0x5cfdf1=_0x441672,_0x376243=new URL(window[_0x5cfdf1(0x1cc)]['href']);_0x376243[_0x5cfdf1(0x412)]['set'](_0x3f4fe0,_0x30fd45),_0x2ac010?window[_0x5cfdf1(0x22d)][_0x5cfdf1(0x1c4)]('','',_0x376243[_0x5cfdf1(0x33a)]()):window['history']['pushState']('','',_0x376243[_0x5cfdf1(0x33a)]());}[_0x441672(0x40b)](_0x380792,_0x303d2b=!0x1){const _0x8626e5=_0x441672,_0x52d5e9=new URL(window[_0x8626e5(0x1cc)][_0x8626e5(0x37b)]);_0x52d5e9[_0x8626e5(0x412)][_0x8626e5(0x20f)](_0x380792),_0x303d2b?window[_0x8626e5(0x22d)][_0x8626e5(0x1c4)]('','',_0x52d5e9['toString']()):window[_0x8626e5(0x22d)][_0x8626e5(0x32c)]('','',_0x52d5e9[_0x8626e5(0x33a)]());}[_0x441672(0x305)](_0x41f2b1){const _0x583ad7=_0x441672;var _0x53b152;return(_0x53b152=new URL(window[_0x583ad7(0x1cc)][_0x583ad7(0x37b)])['searchParams']['get'](_0x41f2b1))!=null?_0x53b152:void 0x0;}}var ts=Object['defineProperty'],ss=Object[_0x441672(0x1b3)],ns=(_0xa6ab11,_0x2ff39b,_0xb2077c)=>_0x2ff39b in _0xa6ab11?ts(_0xa6ab11,_0x2ff39b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb2077c}):_0xa6ab11[_0x2ff39b]=_0xb2077c,is=(_0x3c5495,_0x3163ca,_0x44eb37,_0x5b4cbe)=>{const _0x154fb0=_0x441672;for(var _0x22d0ad=_0x5b4cbe>0x1?void 0x0:_0x5b4cbe?ss(_0x3163ca,_0x44eb37):_0x3163ca,_0x1154d9=_0x3c5495[_0x154fb0(0x263)]-0x1,_0x1b942a;_0x1154d9>=0x0;_0x1154d9--)(_0x1b942a=_0x3c5495[_0x1154d9])&&(_0x22d0ad=_0x1b942a(_0x22d0ad)||_0x22d0ad);return _0x22d0ad;},ue=(_0x4ee46c,_0x5edc4e)=>(_0x7a9701,_0x3e3285)=>_0x5edc4e(_0x7a9701,_0x3e3285,_0x4ee46c),rs=(_0x1e151f,_0x3bf4ec,_0x5825f1)=>ns(_0x1e151f,_0x3bf4ec+'',_0x5825f1);const os=_0x441672(0x1de);exports[_0x441672(0x268)]=class extends a[_0x441672(0x248)]{constructor(_0x27ded3=Ne,_0x25120a,_0x4e00d8,_0x4b6b51){const _0x2a077a=_0x441672;super(),this['_config']=_0x27ded3,this['_renderManagerService']=_0x25120a,this[_0x2a077a(0x1a9)]=_0x4e00d8,this['_configService']=_0x4b6b51;const {..._0x1f3eab}=a[_0x2a077a(0x369)]({},Ne,this[_0x2a077a(0x3bd)]);this[_0x2a077a(0x283)][_0x2a077a(0x375)](Wt,_0x1f3eab);}[_0x441672(0x40a)](){const _0x3fa1b6=_0x441672;this[_0x3fa1b6(0x27b)](),this[_0x3fa1b6(0x394)]();}[_0x441672(0x21e)](){const _0x883852=_0x441672;this[_0x883852(0x234)]();}[_0x441672(0x27b)](){const _0x5c5830=_0x441672;var _0x2b6abe;const _0x25b1bb=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x5c5830(0x3f3)],{'useClass':q[_0x5c5830(0x303)]}],[u[_0x5c5830(0x3d9)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x5c5830(0x259)]]];a[_0x5c5830(0x209)](this[_0x5c5830(0x1a9)],a[_0x5c5830(0x2fb)](_0x25b1bb,(_0x2b6abe=this[_0x5c5830(0x3bd)])==null?void 0x0:_0x2b6abe[_0x5c5830(0x2a9)]));}[_0x441672(0x234)](){const _0x1cdba0=_0x441672;this[_0x1cdba0(0x3aa)](this['_renderManagerService'][_0x1cdba0(0x26e)](a[_0x1cdba0(0x279)][_0x1cdba0(0x285)],[ve])),this[_0x1cdba0(0x3aa)](this[_0x1cdba0(0x23e)][_0x1cdba0(0x26e)](a[_0x1cdba0(0x279)][_0x1cdba0(0x281)],[ge]));}['_initDependencies'](){const _0x2b4822=_0x441672;a['touchDependencies'](this[_0x2b4822(0x1a9)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x2b4822(0x259)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x441672(0x211),os),exports[_0x441672(0x268)]=is([a[_0x441672(0x397)](u[_0x441672(0x212)]),ue(0x1,p[_0x441672(0x260)]),ue(0x2,a[_0x441672(0x222)](a[_0x441672(0x3e4)])),ue(0x3,a['IConfigService'])],exports[_0x441672(0x268)]);var as=Object[_0x441672(0x1b3)],cs=(_0x1b3bfb,_0x3c6341,_0x2248a9,_0x40cf6f)=>{for(var _0x1b38be=_0x40cf6f>0x1?void 0x0:_0x40cf6f?as(_0x3c6341,_0x2248a9):_0x3c6341,_0x13ff27=_0x1b3bfb['length']-0x1,_0xda6b55;_0x13ff27>=0x0;_0x13ff27--)(_0xda6b55=_0x1b3bfb[_0x13ff27])&&(_0x1b38be=_0xda6b55(_0x1b38be)||_0x1b38be);return _0x1b38be;},F=(_0x5f0922,_0x153bb4)=>(_0x806f9a,_0x4f6024)=>_0x153bb4(_0x806f9a,_0x4f6024,_0x5f0922);exports['BrowserCollaborationSocketService']=class extends u[_0x441672(0x2d2)]{constructor(_0x1b5035,_0x46dfb9,_0x504125,_0x1423f9,_0x29d342){super(_0x1b5035,_0x46dfb9,_0x504125,_0x1423f9,_0x29d342);}async[_0x441672(0x361)](_0x4ea0ef){const _0x2447ed=_0x441672,_0x4b6a5a=await this[_0x2447ed(0x2d0)](),_0x1d7a07=this[_0x2447ed(0x28a)](_0x4ea0ef,_0x4b6a5a);return this[_0x2447ed(0x3e7)](_0x1d7a07);}[_0x441672(0x28a)](_0x20dafa,_0x397be0){const _0x3e266f=_0x441672,_0x3996e0=typeof window>'u'?new URL(_0x20dafa):new URL(_0x20dafa,window[_0x3e266f(0x1cc)][_0x3e266f(0x229)]);_0x3996e0[_0x3e266f(0x412)][_0x3e266f(0x23a)](_0x3e266f(0x294),_0x397be0);const _0x48b7c4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3e266f(0x1aa)]);return _0x48b7c4[_0x3e266f(0x236)]('runId')&&_0x3996e0[_0x3e266f(0x412)][_0x3e266f(0x23a)](_0x3e266f(0x3dd),_0x48b7c4[_0x3e266f(0x236)](_0x3e266f(0x3dd))),_0x3996e0[_0x3e266f(0x33a)]();}async[_0x441672(0x2d0)](){const _0x17378a=_0x441672;var _0x5e12d5,_0x5055f7,_0x49f1a;const _0x1ab7c3=this['_configService']['getConfig'](u[_0x17378a(0x3cb)]),_0x9e3843=(_0x5e12d5=_0x1ab7c3==null?void 0x0:_0x1ab7c3[_0x17378a(0x290)])!=null?_0x5e12d5:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x49f1a=(_0x5055f7=(await this['_httpService'][_0x17378a(0x236)](_0x9e3843,{'headers':{'Content-Type':_0x17378a(0x1cf)}}))['body'])==null?void 0x0:_0x5055f7['ticket'])!=null?_0x49f1a:'';}},exports['BrowserCollaborationSocketService']=cs([F(0x0,a[_0x441672(0x222)](a[_0x441672(0x3e4)])),F(0x1,a[_0x441672(0x222)](q['HTTPService'])),F(0x2,a['IConfigService']),F(0x3,a[_0x441672(0x235)]),F(0x4,m[_0x441672(0x252)])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x441672(0x1f7)]{constructor(){const _0x243c89=_0x441672;super(),_(this,_0x243c89(0x2aa),a[_0x243c89(0x2f0)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x243c89(0x376),new Map()),_(this,_0x243c89(0x436),null),_(this,_0x243c89(0x228),new Map()),_(this,'_unitStatus',new Map()),this[_0x243c89(0x39e)]();}[_0x441672(0x27d)](){const _0x43fb9f=_0x441672;super['dispose'](),this[_0x43fb9f(0x228)][_0x43fb9f(0x2c8)]((_0x5dbd75,_0x25029a)=>this[_0x43fb9f(0x2a1)](_0x25029a)),this['_heartbeatTimer']&&window[_0x43fb9f(0x342)](this[_0x43fb9f(0x436)]);}['getUnitStatus$'](_0x5631f6){const _0x377975=_0x441672;return this[_0x377975(0x3df)](_0x5631f6)[_0x377975(0x25b)](d[_0x377975(0x42f)]());}[_0x441672(0x2b0)](_0x16bba2){const _0x318364=_0x441672;this[_0x318364(0x31e)][_0x318364(0x288)]===0x0&&this[_0x318364(0x25d)](),this['_selfUnitIDs']['add'](_0x16bba2),this[_0x318364(0x3b6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x16bba2],'isForwarded':!0x1});}[_0x441672(0x2f8)](_0x522fe0){const _0x3a1d14=_0x441672;this[_0x3a1d14(0x31e)]['delete'](_0x522fe0),this[_0x3a1d14(0x31e)][_0x3a1d14(0x288)]===0x0&&this[_0x3a1d14(0x436)]&&window['clearInterval'](this[_0x3a1d14(0x436)]);}['_init'](){const _0x388827=_0x441672;this['disposeWithMe'](a[_0x388827(0x2db)](d[_0x388827(0x1d3)](window,'storage')[_0x388827(0x2d4)](_0x93a58e=>{const _0x45cd40=_0x388827;if(_0x93a58e[_0x45cd40(0x297)]!==Le||!_0x93a58e['newValue'])return;const _0x3b95ba=JSON[_0x45cd40(0x1d6)](_0x93a58e[_0x45cd40(0x35f)]);this[_0x45cd40(0x3d6)](_0x3b95ba);}))),window[_0x388827(0x33f)]('unload',()=>this[_0x388827(0x3b6)]({'type':0x1,'memberID':this[_0x388827(0x2aa)],'unitIDs':Array['from'](this[_0x388827(0x31e)])}));}[_0x441672(0x3d6)](_0x9bfaf){const _0x2e9fb6=_0x441672;switch(_0x9bfaf[_0x2e9fb6(0x204)]){case 0x0:this[_0x2e9fb6(0x307)](_0x9bfaf);break;case 0x1:this[_0x2e9fb6(0x3bf)](_0x9bfaf);break;case 0x2:this['_handleHeartbeatEvent'](_0x9bfaf);break;}}[_0x441672(0x307)](_0x48b50d){const _0x5d91f2=_0x441672,{unitIDs:_0x191530,memberID:_0x1803f0,isForwarded:_0x5a90c7}=_0x48b50d;_0x191530[_0x5d91f2(0x2c8)](_0xc8651f=>{const _0x16e432=_0x5d91f2;if(!_0x5a90c7&&this['_unitOnClients'][_0x16e432(0x25e)](_0xc8651f)&&this[_0x16e432(0x3df)](_0xc8651f)[_0x16e432(0x3ca)](u[_0x16e432(0x427)][_0x16e432(0x1c3)]),!this['_unitOnClients'][_0x16e432(0x25e)](_0xc8651f)||!this['_unitOnClients'][_0x16e432(0x236)](_0xc8651f)['has'](_0x1803f0)){const _0x441b6d=this[_0x16e432(0x376)][_0x16e432(0x236)](_0xc8651f)||new Set();_0x441b6d[_0x16e432(0x1bb)](_0x1803f0),this[_0x16e432(0x376)][_0x16e432(0x23a)](_0xc8651f,_0x441b6d),this['_scheduleClearOtherTimer'](_0x1803f0);}}),_0x5a90c7||this[_0x5d91f2(0x3b6)]({'type':0x0,'memberID':this[_0x5d91f2(0x2aa)],'unitIDs':[...this[_0x5d91f2(0x31e)]],'isForwarded':!0x0});}[_0x441672(0x3b9)](_0x289915){const _0x3e0f14=_0x441672;this[_0x3e0f14(0x2a1)](_0x289915);const _0x4c6583=window[_0x3e0f14(0x3de)](()=>{const _0x33e0b5=_0x3e0f14;this[_0x33e0b5(0x376)][_0x33e0b5(0x2c8)](_0x54d6a5=>{const _0x129acc=_0x33e0b5;_0x54d6a5[_0x129acc(0x20f)](_0x289915);});},Pe*0x2);this['_clearOtherTimers'][_0x3e0f14(0x23a)](_0x289915,_0x4c6583);}[_0x441672(0x2a1)](_0xbbc010){const _0x360335=_0x441672;if(this['_clearOtherTimers']['has'](_0xbbc010)){const _0x4f41a4=this['_clearOtherTimers'][_0x360335(0x236)](_0xbbc010);_0x4f41a4&&window[_0x360335(0x1dc)](_0x4f41a4),this['_clearOtherTimers'][_0x360335(0x23a)](_0xbbc010,null);}}[_0x441672(0x3bf)](_0x3bedc6){const _0x310118=_0x441672,{memberID:_0x40292f,unitIDs:_0x269555}=_0x3bedc6;_0x269555[_0x310118(0x2c8)](_0x111189=>{const _0x598679=_0x310118;var _0x28b74e;const _0x4a9f07=this[_0x598679(0x376)][_0x598679(0x236)](_0x111189);_0x4a9f07&&(_0x4a9f07[_0x598679(0x20f)](_0x40292f),(_0x28b74e=this[_0x598679(0x3df)](_0x111189))==null||_0x28b74e[_0x598679(0x3ca)](_0x4a9f07[_0x598679(0x288)]===0x0?u[_0x598679(0x427)]['NO_OTHER_CLIENTS_EDITING']:u[_0x598679(0x427)]['OTHER_CLIENTS_EDITING']));}),this[_0x310118(0x2a1)](_0x40292f);}[_0x441672(0x393)](_0x463274){const _0x458081=_0x441672;this[_0x458081(0x3b9)](_0x463274['memberID']);}[_0x441672(0x3b6)](_0x238771){const _0x32b5cc=_0x441672;localStorage[_0x32b5cc(0x3b0)](Le,JSON[_0x32b5cc(0x399)](_0x238771));}[_0x441672(0x25d)](){const _0x163b35=_0x441672;this[_0x163b35(0x436)]=window[_0x163b35(0x328)](()=>{const _0x3a3eec=_0x163b35;this[_0x3a3eec(0x3b6)]({'type':0x2,'memberID':this[_0x3a3eec(0x2aa)]});},Pe);}['_ensureSubject'](_0x2e9f16){const _0x2145cf=_0x441672;return this['_unitStatus'][_0x2145cf(0x25e)](_0x2e9f16)||this[_0x2145cf(0x2eb)][_0x2145cf(0x23a)](_0x2e9f16,new d[(_0x2145cf(0x2ca))](u['UnitStatus'][_0x2145cf(0x270)])),this[_0x2145cf(0x2eb)]['get'](_0x2e9f16);}}var ke=(_0x3067b5=>(_0x3067b5[_0x3067b5[_0x441672(0x28c)]=0x0]=_0x441672(0x28c),_0x3067b5[_0x3067b5['OK']=0x1]='OK',_0x3067b5[_0x3067b5['INTERNAL_ERROR']=0x2]=_0x441672(0x3c0),_0x3067b5[_0x3067b5['PERMISSION_DENIED']=0x3]=_0x441672(0x23f),_0x3067b5[_0x3067b5['NOT_FOUND']=0x4]=_0x441672(0x2fe),_0x3067b5[_0x3067b5['UNAUTHENTICATED']=0x5]=_0x441672(0x3fc),_0x3067b5[_0x3067b5[_0x441672(0x3ef)]=0x6]=_0x441672(0x3ef),_0x3067b5[_0x3067b5[_0x441672(0x2ae)]=0x7]=_0x441672(0x2ae),_0x3067b5[_0x3067b5[_0x441672(0x2a2)]=0x8]=_0x441672(0x2a2),_0x3067b5[_0x3067b5[_0x441672(0x359)]=0x9]=_0x441672(0x359),_0x3067b5[_0x3067b5[_0x441672(0x24c)]=0xa]=_0x441672(0x24c),_0x3067b5[_0x3067b5[_0x441672(0x32f)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3067b5[_0x3067b5[_0x441672(0x1c1)]=0x1771]=_0x441672(0x1c1),_0x3067b5[_0x3067b5[_0x441672(0x2e7)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3067b5[_0x3067b5[_0x441672(0x390)]=0x1773]=_0x441672(0x390),_0x3067b5[_0x3067b5[_0x441672(0x1be)]=0x1b59]=_0x441672(0x1be),_0x3067b5[_0x3067b5[_0x441672(0x2ed)]=0x1b5a]=_0x441672(0x2ed),_0x3067b5[_0x3067b5[_0x441672(0x1fb)]=0x1b5b]=_0x441672(0x1fb),_0x3067b5[_0x3067b5[_0x441672(0x27c)]=0x1b5c]=_0x441672(0x27c),_0x3067b5[_0x3067b5[_0x441672(0x3b8)]=0x1b5d]='APPLY_DUPLICATED',_0x3067b5[_0x3067b5[_0x441672(0x384)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x3067b5[_0x3067b5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3067b5[_0x3067b5[_0x441672(0x426)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3067b5[_0x3067b5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3067b5[_0x3067b5[_0x441672(0x3dc)]=0x232c]=_0x441672(0x3dc),_0x3067b5[_0x3067b5['LICENSE_DISTRO_REJECTED']=0x232d]=_0x441672(0x1af),_0x3067b5[_0x3067b5[_0x441672(0x335)]=0x2711]=_0x441672(0x335),_0x3067b5[_0x3067b5[_0x441672(0x243)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3067b5[_0x3067b5[_0x441672(0x24e)]=0x2713]=_0x441672(0x24e),_0x3067b5[_0x3067b5[_0x441672(0x314)]=0x2714]=_0x441672(0x314),_0x3067b5[_0x3067b5['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x441672(0x325),_0x3067b5[_0x3067b5[_0x441672(0x2cb)]=0x2ee1]=_0x441672(0x2cb),_0x3067b5[_0x3067b5[_0x441672(0x381)]=0x2ee2]=_0x441672(0x381),_0x3067b5[_0x3067b5[_0x441672(0x2b7)]=0x2ee3]=_0x441672(0x2b7),_0x3067b5[_0x3067b5[_0x441672(0x232)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x3067b5[_0x3067b5[_0x441672(0x327)]=0x2ee5]=_0x441672(0x327),_0x3067b5[_0x3067b5[_0x441672(0x39f)]=0x32c9]=_0x441672(0x39f),_0x3067b5[_0x3067b5[_0x441672(0x2a5)]=0x32ca]=_0x441672(0x2a5),_0x3067b5[_0x3067b5[_0x441672(0x3b3)]=0x32cb]=_0x441672(0x3b3),_0x3067b5[_0x3067b5[_0x441672(0x37d)]=-0x1]=_0x441672(0x37d),_0x3067b5))(ke||{}),_s=Object[_0x441672(0x1b3)],hs=(_0x1ad53a,_0x317c7c,_0x555283,_0x33d35e)=>{const _0x3819fa=_0x441672;for(var _0x4e50d4=_0x33d35e>0x1?void 0x0:_0x33d35e?_s(_0x317c7c,_0x555283):_0x317c7c,_0x23301a=_0x1ad53a[_0x3819fa(0x263)]-0x1,_0x792341;_0x23301a>=0x0;_0x23301a--)(_0x792341=_0x1ad53a[_0x23301a])&&(_0x4e50d4=_0x792341(_0x4e50d4)||_0x4e50d4);return _0x4e50d4;},de=(_0x2c73cf,_0x8ab229)=>(_0x21ab33,_0x918de0)=>_0x8ab229(_0x21ab33,_0x918de0,_0x2c73cf);exports[_0x441672(0x416)]=class extends a[_0x441672(0x1f7)]{constructor(_0x5e70bc,_0x44bb95,_0x2faeeb){const _0x385219=_0x441672;super(),this[_0x385219(0x389)]=_0x5e70bc,this['_httpService']=_0x44bb95,this[_0x385219(0x283)]=_0x2faeeb;}async[_0x441672(0x423)](_0xc88381,_0x640ea8,_0x4096ba,..._0x567ae4){const _0x15ff8c=_0x441672;var _0x2d5667,_0x23c6cb,_0x6b6d9d,_0x56251c;const _0x60b974=this['_instanceService'][_0x15ff8c(0x1ed)]();if(!_0x60b974)throw new Error(_0x15ff8c(0x1f9));const _0x5c79f3=((_0x2d5667=this[_0x15ff8c(0x283)][_0x15ff8c(0x354)](u[_0x15ff8c(0x2f3)]))!=null?_0x2d5667:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xc88381+_0x15ff8c(0x3fd)+_0x640ea8,_0x4f047a=new URL(window[_0x15ff8c(0x1cc)][_0x15ff8c(0x37b)]),_0x2296a6={'scriptId':_0xc88381,'runId':(_0x23c6cb=_0x4f047a[_0x15ff8c(0x412)][_0x15ff8c(0x236)]('runId'))!=null?_0x23c6cb:'','function':_0x640ea8,'unitId':_0x60b974['getUnitId'](),'argsOfFunction':JSON[_0x15ff8c(0x399)](_0x567ae4),'invokeId':(_0x6b6d9d=_0x4096ba[_0x15ff8c(0x41f)])!=null?_0x6b6d9d:'','executionId':(_0x56251c=_0x4096ba[_0x15ff8c(0x3bb)])!=null?_0x56251c:''};try{const _0x1370ed=await this[_0x15ff8c(0x339)][_0x15ff8c(0x261)](_0x5c79f3,{'body':_0x2296a6});return _0x1370ed[_0x15ff8c(0x293)]['error']&&_0x1370ed[_0x15ff8c(0x293)]['error']['code']!==ke['OK']?_0x15ff8c(0x3a5):_0x1370ed[_0x15ff8c(0x293)][_0x15ff8c(0x340)];}catch{return'Failed';}}},exports[_0x441672(0x416)]=hs([de(0x0,a[_0x441672(0x41c)]),de(0x1,a['Inject'](q[_0x441672(0x3cd)])),de(0x2,a[_0x441672(0x242)])],exports['RemoteUniscriptService']),exports[_0x441672(0x33b)]=je,exports[_0x441672(0x2c9)]=Ee,exports[_0x441672(0x200)]=Ae,exports[_0x441672(0x3ba)]=ls,exports['WebURLService']=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x335142=_0x4117;(function(_0x283f66,_0x57dec7){const _0x147d32=_0x4117,_0x43f136=_0x283f66();while(!![]){try{const _0x1a4efb=parseInt(_0x147d32(0x196))/0x1*(-parseInt(_0x147d32(0x18a))/0x2)+-parseInt(_0x147d32(0x198))/0x3*(-parseInt(_0x147d32(0x18d))/0x4)+parseInt(_0x147d32(0x195))/0x5*(-parseInt(_0x147d32(0x182))/0x6)+-parseInt(_0x147d32(0x186))/0x7+parseInt(_0x147d32(0x193))/0x8+parseInt(_0x147d32(0x191))/0x9*(-parseInt(_0x147d32(0x185))/0xa)+parseInt(_0x147d32(0x180))/0xb;if(_0x1a4efb===_0x57dec7)break;else _0x43f136['push'](_0x43f136['shift']());}catch(_0x86228c){_0x43f136['push'](_0x43f136['shift']());}}}(_0x28c7,0xc7a82));function _0x28c7(){const _0x2958d5=['Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Collaboration\x20Conflict','1952530yHNdDb','424102NLxeFs','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Click\x20to\x20Reconnect','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','1572716FYsGnx','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Syncing\x20server\x20data...','529148RQLrqg','Synced','Syncing...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','18QkDpQd','Edit\x20conflicts','4987736PlrWbb','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','15815hPBJXc','1DsfIGB','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','27BVqoKc','5401781NJyGWx','Authentication\x20Error','474YVeQoD'];_0x28c7=function(){return _0x2958d5;};return _0x28c7();}function _0x4117(_0x63f194,_0x1005fd){const _0x28c772=_0x28c7();return _0x4117=function(_0x411761,_0x8066f8){_0x411761=_0x411761-0x180;let _0x1febda=_0x28c772[_0x411761];return _0x1febda;},_0x4117(_0x63f194,_0x1005fd);}const e={'collab-client':{'tooltip':{'reconnect':_0x335142(0x188)}},'collabStatus':{'fetchMiss':_0x335142(0x18c),'conflict':_0x335142(0x192),'notCollab':'Local\x20file','synced':_0x335142(0x18e),'syncing':_0x335142(0x18f),'offline':_0x335142(0x190)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x335142(0x183),'room-full':_0x335142(0x18b),'collaboration-timeout':_0x335142(0x187)},'conflict':{'title':_0x335142(0x184),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x335142(0x181),'content':_0x335142(0x189)},'collaboration':{'single-unit':{'warning':_0x335142(0x197)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x335142(0x194)}};module['exports']=e;
|