@univerjs-pro/collaboration-client-ui 0.6.4 → 0.6.5-nightly.202503131607

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x195df1=_0x24c8;(function(_0x1321df,_0xc2399e){const _0x32403e=_0x24c8,_0x5b2fcc=_0x1321df();while(!![]){try{const _0x4023df=-parseInt(_0x32403e(0x1aa))/0x1+-parseInt(_0x32403e(0x1ad))/0x2*(-parseInt(_0x32403e(0x1b0))/0x3)+-parseInt(_0x32403e(0x1b2))/0x4+parseInt(_0x32403e(0x1b6))/0x5*(-parseInt(_0x32403e(0x1ac))/0x6)+-parseInt(_0x32403e(0x1b3))/0x7*(parseInt(_0x32403e(0x1b4))/0x8)+parseInt(_0x32403e(0x1b1))/0x9*(-parseInt(_0x32403e(0x1a6))/0xa)+parseInt(_0x32403e(0x1af))/0xb;if(_0x4023df===_0xc2399e)break;else _0x5b2fcc['push'](_0x5b2fcc['shift']());}catch(_0x3348b6){_0x5b2fcc['push'](_0x5b2fcc['shift']());}}}(_0x2a51,0xe621d));const t=require(_0x195df1(0x1a9)),e=require(_0x195df1(0x1ae));function _0x2a51(){const _0x37a3b4=['8lswBrK','get','1189245iTrfjT','30GkndPg','FUniver','runOnServer','@univerjs-pro/collaboration-client-ui','1381254EdXXVB','extend','18FlzdiN','4sumTKG','@univerjs/core/facade','54240450HjsaEU','700242bxYUvz','1432926PZwaoE','4188992lJafJC','5848262qQjJAO'];_0x2a51=function(){return _0x37a3b4;};return _0x2a51();}function _0x24c8(_0x5cdc4c,_0x5bed0b){const _0x2a51a3=_0x2a51();return _0x24c8=function(_0x24c803,_0x51fab2){_0x24c803=_0x24c803-0x1a6;let _0x3f316b=_0x2a51a3[_0x24c803];return _0x3f316b;},_0x24c8(_0x5cdc4c,_0x5bed0b);}class c extends e['FUniver']{[_0x195df1(0x1a8)](_0x4d34a3,_0x4065e1,..._0x492f10){const _0x138806=_0x195df1;return this['_injector'][_0x138806(0x1b5)](t['RemoteUniscriptService'])['runOnServer'](_0x4d34a3,_0x4065e1,{},..._0x492f10);}}e[_0x195df1(0x1a7)][_0x195df1(0x1ab)](c);
1
+ 'use strict';const _0x41d5e2=_0x5df0;(function(_0x2842b8,_0x70cdd4){const _0x23d001=_0x5df0,_0x3f97cb=_0x2842b8();while(!![]){try{const _0x16c2f0=parseInt(_0x23d001(0xe1))/0x1*(-parseInt(_0x23d001(0xea))/0x2)+parseInt(_0x23d001(0xe9))/0x3+parseInt(_0x23d001(0xe3))/0x4+-parseInt(_0x23d001(0xe8))/0x5*(-parseInt(_0x23d001(0xe7))/0x6)+parseInt(_0x23d001(0xdb))/0x7+-parseInt(_0x23d001(0xdc))/0x8+-parseInt(_0x23d001(0xe4))/0x9;if(_0x16c2f0===_0x70cdd4)break;else _0x3f97cb['push'](_0x3f97cb['shift']());}catch(_0x299526){_0x3f97cb['push'](_0x3f97cb['shift']());}}}(_0x3868,0xe1725));function _0x3868(){const _0x2baeb7=['10366489yOxfZJ','3330584mTOgLG','_injector','get','extend','runOnServer','1758786GUHiqV','@univerjs/core/facade','1961084scnZvr','1597518GUqwTq','RemoteUniscriptService','FUniver','904242oUrDYQ','25KahmUc','1653921nzMkFp','2pmJOTe'];_0x3868=function(){return _0x2baeb7;};return _0x3868();}function _0x5df0(_0x23f74d,_0x2fa77b){const _0x3868b0=_0x3868();return _0x5df0=function(_0x5df02b,_0xc98a68){_0x5df02b=_0x5df02b-0xdb;let _0x3aefbe=_0x3868b0[_0x5df02b];return _0x3aefbe;},_0x5df0(_0x23f74d,_0x2fa77b);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x41d5e2(0xe2));class c extends e[_0x41d5e2(0xe6)]{[_0x41d5e2(0xe0)](_0x57a82b,_0x4d213d,..._0x54dca3){const _0x27091a=_0x41d5e2;return this[_0x27091a(0xdd)][_0x27091a(0xde)](t[_0x27091a(0xe5)])[_0x27091a(0xe0)](_0x57a82b,_0x4d213d,{},..._0x54dca3);}}e[_0x41d5e2(0xe6)][_0x41d5e2(0xdf)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x23fb60=_0x9264;(function(_0x3052c4,_0x43c889){const _0x4eae8a=_0x9264,_0xcd9ed1=_0x3052c4();while(!![]){try{const _0x293bbd=parseInt(_0x4eae8a(0x40d))/0x1*(parseInt(_0x4eae8a(0x339))/0x2)+parseInt(_0x4eae8a(0x383))/0x3+-parseInt(_0x4eae8a(0x1d0))/0x4*(parseInt(_0x4eae8a(0x3da))/0x5)+parseInt(_0x4eae8a(0x36b))/0x6+parseInt(_0x4eae8a(0x3c9))/0x7*(parseInt(_0x4eae8a(0x232))/0x8)+-parseInt(_0x4eae8a(0x3ff))/0x9*(-parseInt(_0x4eae8a(0x320))/0xa)+parseInt(_0x4eae8a(0x3ec))/0xb*(-parseInt(_0x4eae8a(0x35f))/0xc);if(_0x293bbd===_0x43c889)break;else _0xcd9ed1['push'](_0xcd9ed1['shift']());}catch(_0x398c73){_0xcd9ed1['push'](_0xcd9ed1['shift']());}}}(_0x3aac,0x9b930));var Ve=Object['defineProperty'],Ge=(_0x54c27d,_0x4084a1,_0x37f1ba)=>_0x4084a1 in _0x54c27d?Ve(_0x54c27d,_0x4084a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37f1ba}):_0x54c27d[_0x4084a1]=_0x37f1ba,h=(_0x49e76a,_0x3ff3de,_0x46d0e3)=>Ge(_0x49e76a,typeof _0x3ff3de!=_0x23fb60(0x235)?_0x3ff3de+'':_0x3ff3de,_0x46d0e3);Object[_0x23fb60(0x1dd)](exports,Symbol[_0x23fb60(0x366)],{'value':_0x23fb60(0x2d3)});const u=require(_0x23fb60(0x386)),a=require(_0x23fb60(0x391)),p=require(_0x23fb60(0x3d4)),q=require(_0x23fb60(0x34f)),b=require(_0x23fb60(0x359)),qe=require(_0x23fb60(0x1fd)),d=require(_0x23fb60(0x37e)),Y=require('@univerjs/docs'),m=require(_0x23fb60(0x2c0)),Te=require(_0x23fb60(0x229)),I=require(_0x23fb60(0x1ce)),$=require(_0x23fb60(0x304)),G=require(_0x23fb60(0x42b)),w=require(_0x23fb60(0x1bf)),R=require(_0x23fb60(0x28c)),T=require(_0x23fb60(0x278)),P=require(_0x23fb60(0x2a1)),Ke=require(_0x23fb60(0x224));var ze=Object['getOwnPropertyDescriptor'],Je=(_0x3a0e7b,_0x541da4,_0x43ea3d,_0x55d3eb)=>{for(var _0xe38c1a=_0x55d3eb>0x1?void 0x0:_0x55d3eb?ze(_0x541da4,_0x43ea3d):_0x541da4,_0x235482=_0x3a0e7b['length']-0x1,_0x1113c5;_0x235482>=0x0;_0x235482--)(_0x1113c5=_0x3a0e7b[_0x235482])&&(_0xe38c1a=_0x1113c5(_0xe38c1a)||_0xe38c1a);return _0xe38c1a;},Re=(_0x2f2ed0,_0x468368)=>(_0x15de94,_0x3c77e7)=>_0x468368(_0x15de94,_0x3c77e7,_0x2f2ed0);let fe=class extends a[_0x23fb60(0x2e3)]{constructor(_0x375d69,_0xb746fb){const _0x399cc2=_0x23fb60;super(),this[_0x399cc2(0x2aa)]=_0x375d69,this[_0x399cc2(0x42e)]=_0xb746fb,this[_0x399cc2(0x238)]();}[_0x23fb60(0x238)](){const _0x386dcb=_0x23fb60,_0x25a980=this;this[_0x386dcb(0x384)](this[_0x386dcb(0x2aa)][_0x386dcb(0x2a3)]({'onBeforePasteImage':async _0x2db659=>{const _0x387100=_0x386dcb,_0x547f71=await _0x25a980['_imageIoService']['saveImage'](_0x2db659);return _0x547f71?{'source':_0x547f71[_0x387100(0x3ed)],'imageSourceType':_0x547f71[_0x387100(0x1e3)]}:null;}}));}};fe=Je([Re(0x0,b[_0x23fb60(0x1d4)]),Re(0x1,qe[_0x23fb60(0x334)])],fe);const Oe=[_0x23fb60(0x2a6),_0x23fb60(0x2d6),_0x23fb60(0x438),_0x23fb60(0x3c8),'blue400',_0x23fb60(0x344)];class Ce extends a[_0x23fb60(0x325)]{constructor(){const _0x5cb72c=_0x23fb60;super(...arguments),h(this,_0x5cb72c(0x3eb),new Map()),h(this,_0x5cb72c(0x246),0x0);}[_0x23fb60(0x2fb)](_0x2513b8){const _0x47b878=_0x23fb60;if(this[_0x47b878(0x3eb)][_0x47b878(0x234)](_0x2513b8))return this[_0x47b878(0x3eb)][_0x47b878(0x300)](_0x2513b8);const _0x5237a7=Oe[this[_0x47b878(0x246)]];return this[_0x47b878(0x246)]=(this[_0x47b878(0x246)]+0x1)%Oe[_0x47b878(0x2c5)],this[_0x47b878(0x3eb)][_0x47b878(0x3b8)](_0x2513b8,_0x5237a7),_0x5237a7;}}function Le(_0x473912){let _0x90b4c3='';for(const _0x1ebf99 of _0x473912){const {startOffset:_0x2f7ef5,endOffset:_0x2ae815,isActive:_0x3168c2,rangeType:_0x56c2f3,segmentId:_0x484c6b,segmentPage:_0x16139b}=_0x1ebf99;_0x90b4c3['length']&&(_0x90b4c3+=','),_0x90b4c3+=_0x2f7ef5+':'+_0x2ae815+':'+(_0x3168c2?'1':'0')+':'+_0x56c2f3+':'+_0x484c6b+':'+_0x16139b;}return _0x90b4c3;}function Ze(_0x2bf56b){const _0x1d5870=_0x23fb60,_0x2568e3=_0x2bf56b[_0x1d5870(0x25d)](','),_0x468fb5=[];for(const _0x581950 of _0x2568e3){const [_0x5cf854,_0x542a21,_0x5165e5,_0x1bb8f5,_0x222274,_0x1894fe]=_0x581950[_0x1d5870(0x25d)](':');_0x468fb5[_0x1d5870(0x43b)]({'startOffset':Number(_0x5cf854),'endOffset':Number(_0x542a21),'collapsed':_0x5cf854===_0x542a21,'isActive':_0x5165e5==='1','rangeType':_0x1bb8f5===a[_0x1d5870(0x35e)][_0x1d5870(0x258)]?a['DOC_RANGE_TYPE'][_0x1d5870(0x258)]:a[_0x1d5870(0x35e)]['RECT'],'segmentId':typeof _0x222274==_0x1d5870(0x1e9)?String(_0x222274):'','segmentPage':Number(_0x1894fe!=null?_0x1894fe:-0x1)});}return _0x468fb5[_0x1d5870(0x288)](_0xbd005d=>_0xbd005d[_0x1d5870(0x370)])||(_0x468fb5[0x0][_0x1d5870(0x370)]=!0x0),_0x468fb5;}class pe extends a[_0x23fb60(0x2e3)]{constructor(){const _0x4b0034=_0x23fb60;super(...arguments),h(this,_0x4b0034(0x40c),new d[(_0x4b0034(0x273))](null)),h(this,_0x4b0034(0x34a),this[_0x4b0034(0x40c)][_0x4b0034(0x337)]());}['syncEditingCollabCursor'](_0xa878f3){const _0x4dd47e=_0x23fb60,{unitID:_0x2346d0,memberID:_0x34369b,textRanges:_0x475f42}=_0xa878f3,_0x195f26=Le(_0x475f42);if(_0x195f26==='')return;const _0x565a38={'unitID':_0x2346d0,'memberID':_0x34369b,'selection':_0x195f26};this[_0x4dd47e(0x40c)]['next'](_0x565a38);}}var Qe=Object[_0x23fb60(0x3f3)],et=(_0x56d0b9,_0x23380c,_0xfc57d,_0x4564e2)=>{const _0x593f79=_0x23fb60;for(var _0x27070a=_0x4564e2>0x1?void 0x0:_0x4564e2?Qe(_0x23380c,_0xfc57d):_0x23380c,_0x226fff=_0x56d0b9[_0x593f79(0x2c5)]-0x1,_0x2c4b3c;_0x226fff>=0x0;_0x226fff--)(_0x2c4b3c=_0x56d0b9[_0x226fff])&&(_0x27070a=_0x2c4b3c(_0x27070a)||_0x27070a);return _0x27070a;},N=(_0x4cfab5,_0x401336)=>(_0x3c3f6c,_0x4b80ba)=>_0x401336(_0x3c3f6c,_0x4b80ba,_0x4cfab5);const tt=0x12c,st=0x64;let Se=class extends a[_0x23fb60(0x2e3)]{constructor(_0x177c75,_0x3116c4,_0x2ed6e0,_0xbe19f0,_0x5cf072,_0x75e938,_0x3f3052,_0x330393,_0x1d2cea){const _0x5c646a=_0x23fb60;super(),h(this,_0x5c646a(0x2be),!0x1),h(this,_0x5c646a(0x238),!0x1),h(this,_0x5c646a(0x227),new d[(_0x5c646a(0x273))](new Map())),h(this,'cursorInfo$',this[_0x5c646a(0x227)][_0x5c646a(0x337)]()),h(this,'_roomMembers$',new d[(_0x5c646a(0x273))]([])),h(this,_0x5c646a(0x2a2),this[_0x5c646a(0x373)][_0x5c646a(0x237)](d[_0x5c646a(0x239)](tt))),h(this,_0x5c646a(0x37d),a[_0x5c646a(0x230)](_0x36e10b=>{const _0x528f22=_0x5c646a,_0xbf6785={'eventID':m[_0x528f22(0x271)][_0x528f22(0x365)],'data':{'unitID':this['unitID'],'memberID':this[_0x528f22(0x43c)]['getMemberID'](),'selection':Le(_0x36e10b)}};this[_0x528f22(0x43c)][_0x528f22(0x329)](_0xbf6785,this['unitID']);},st)),(this['unitID']=_0x177c75,this['_session']=_0x3116c4,this['_injector']=_0x2ed6e0,this[_0x5c646a(0x427)]=_0xbe19f0,this[_0x5c646a(0x2c7)]=_0x5cf072,this[_0x5c646a(0x3b2)]=_0x75e938,this[_0x5c646a(0x24c)]=_0x3f3052,this[_0x5c646a(0x208)]=_0x330393,this[_0x5c646a(0x3f0)]=_0x1d2cea);}get[_0x23fb60(0x364)](){const _0x1931c9=_0x23fb60;return this[_0x1931c9(0x227)][_0x1931c9(0x385)]();}get[_0x23fb60(0x3e5)](){const _0x27b4fa=_0x23fb60;return this[_0x27b4fa(0x373)][_0x27b4fa(0x385)]();}[_0x23fb60(0x1f7)](){const _0x120dad=_0x23fb60;super[_0x120dad(0x1f7)](),this[_0x120dad(0x227)]['next'](new Map()),this[_0x120dad(0x227)][_0x120dad(0x3e6)](),this[_0x120dad(0x373)][_0x120dad(0x1da)]([]),this[_0x120dad(0x373)][_0x120dad(0x3e6)]();}[_0x23fb60(0x3a2)](){const _0xf49cd8=_0x23fb60;this[_0xf49cd8(0x238)]||(this[_0xf49cd8(0x238)]=!0x0,this[_0xf49cd8(0x43c)][_0xf49cd8(0x2dd)][_0xf49cd8(0x237)](d['takeUntil'](this[_0xf49cd8(0x220)]))['subscribe'](_0x918c98=>{const _0x107ee8=_0xf49cd8;_0x918c98===u[_0x107ee8(0x34b)][_0x107ee8(0x380)]?this[_0x107ee8(0x433)]():this['_toggleOffline']();}),this[_0xf49cd8(0x43c)][_0xf49cd8(0x1cf)][_0xf49cd8(0x237)](d[_0xf49cd8(0x2de)](this['dispose$']))[_0xf49cd8(0x285)](_0x556359=>{const _0x19ce3d=_0xf49cd8,_0x3fcfbe=_0x556359[_0x19ce3d(0x21b)];_0x3fcfbe===m[_0x19ce3d(0x271)][_0x19ce3d(0x365)]&&this[_0x19ce3d(0x20f)](_0x556359),_0x3fcfbe===m[_0x19ce3d(0x271)][_0x19ce3d(0x3f5)]&&this[_0x19ce3d(0x205)](_0x556359);}),this['disposeWithMe'](this[_0xf49cd8(0x3f0)]['onCommandExecuted'](_0x278c08=>{const _0x55c384=_0xf49cd8,_0x3ff030=_0x278c08[_0x55c384(0x2a5)];_0x3ff030!=null&&this[_0x55c384(0x2be)]&&_0x278c08['id']===Y[_0x55c384(0x25a)]['id']&&_0x3ff030['unitId']===this[_0x55c384(0x37c)]&&_0x3ff030[_0x55c384(0x421)]===!0x1&&_0x3ff030[_0x55c384(0x25e)][_0x55c384(0x2c5)]>0x0&&this[_0x55c384(0x37d)](_0x3ff030[_0x55c384(0x25e)]);})),this[_0xf49cd8(0x3b2)]['collabCursorState$']['pipe'](d['takeUntil'](this[_0xf49cd8(0x220)]))['subscribe'](_0x5b1d6b=>{const _0x2a9d7d=_0xf49cd8;if((_0x5b1d6b==null?void 0x0:_0x5b1d6b['unitID'])!==this[_0x2a9d7d(0x37c)])return;const _0x3fe5f4={'eventID':m[_0x2a9d7d(0x271)][_0x2a9d7d(0x365)],'data':_0x5b1d6b};this[_0x2a9d7d(0x20f)](_0x3fe5f4);}),this[_0xf49cd8(0x384)](this[_0xf49cd8(0x3f0)][_0xf49cd8(0x286)](_0x8d76d2=>{const _0x12f832=_0xf49cd8;if(_0x8d76d2[_0x12f832(0x2a5)]==null)return;const _0x378497=_0x8d76d2[_0x12f832(0x2a5)];if(_0x8d76d2['id']!==Y[_0x12f832(0x3f6)]['id']||_0x378497[_0x12f832(0x206)]!==this[_0x12f832(0x37c)])return;const _0x57a42e={'id':_0x12f832(0x397),'params':_0x378497},_0x3d8cd6=this[_0x12f832(0x364)];for(const [_0x2d93c5,_0x5d78f0]of _0x3d8cd6){const _0x1868e8={'id':_0x12f832(0x397),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5d78f0[_0x12f832(0x25e)]}},_0x85e778=this[_0x12f832(0x24c)][_0x12f832(0x1cc)](_0x57a42e,_0x1868e8,!0x1);if(m['isTransformMutationFailure'](_0x85e778))throw _0x85e778['error'];_0x3d8cd6['set'](_0x2d93c5,{..._0x5d78f0,'ranges':_0x85e778[_0x12f832(0x312)][_0x12f832(0x2a5)][_0x12f832(0x38a)]});}queueMicrotask(()=>{const _0x3de990=_0x12f832;this[_0x3de990(0x227)][_0x3de990(0x1da)](_0x3d8cd6);});})));}[_0x23fb60(0x20f)](_0xd6c52c){const _0x406841=_0x23fb60;var _0x54b5b4,_0x450e82;const {memberID:_0x1cb616,selection:_0x54bab9}=_0xd6c52c[_0x406841(0x2d8)],_0x128088=Ze(_0x54bab9),_0x38b57f=(_0x450e82=(_0x54b5b4=this[_0x406841(0x2c7)]['getMember'](this[_0x406841(0x37c)],_0x1cb616))==null?void 0x0:_0x54b5b4[_0x406841(0x409)])!=null?_0x450e82:'Unknown\x20user',_0x5b7c02={'color':this[_0x406841(0x427)][_0x406841(0x2fb)](_0x1cb616),'name':_0x38b57f,'ranges':_0x128088},_0x2c8415=this['cursorInfo'];_0x2c8415[_0x406841(0x3b8)](_0x1cb616,_0x5b7c02),this[_0x406841(0x227)]['next'](_0x2c8415);}[_0x23fb60(0x205)](_0x9110c6){const _0x5e31af=_0x23fb60,{memberID:_0x4db0d8}=_0x9110c6[_0x5e31af(0x2d8)],_0x2e72f1=this[_0x5e31af(0x364)];_0x2e72f1[_0x5e31af(0x242)](_0x4db0d8),this[_0x5e31af(0x227)][_0x5e31af(0x1da)](_0x2e72f1);}[_0x23fb60(0x433)](){const _0x5cca15=_0x23fb60;var _0x32e43a;if(this['_online']=!0x0,((_0x32e43a=this['_univerInstanceService'][_0x5cca15(0x2ba)]())==null?void 0x0:_0x32e43a[_0x5cca15(0x236)]())!==this[_0x5cca15(0x37c)])return;const _0x3d212c=this[_0x5cca15(0x348)][_0x5cca15(0x300)](Y[_0x5cca15(0x415)])[_0x5cca15(0x1f6)]();Array['isArray'](_0x3d212c)&&_0x3d212c['length']>0x0&&this[_0x5cca15(0x37d)](_0x3d212c);}['_toggleOffline'](){const _0x36e37d=_0x23fb60;this[_0x36e37d(0x2be)]=!0x1;}};Se=et([N(0x2,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),N(0x3,a[_0x23fb60(0x203)](Ce)),N(0x4,a[_0x23fb60(0x203)](u[_0x23fb60(0x375)])),N(0x5,a[_0x23fb60(0x203)](pe)),N(0x6,m[_0x23fb60(0x22e)]),N(0x7,a[_0x23fb60(0x322)]),N(0x8,a['ICommandService'])],Se);var nt=Object[_0x23fb60(0x3f3)],it=(_0x299e9c,_0x255be4,_0x5c6cd0,_0x304388)=>{const _0x49717c=_0x23fb60;for(var _0x3b9a2e=_0x304388>0x1?void 0x0:_0x304388?nt(_0x255be4,_0x5c6cd0):_0x255be4,_0x1660e5=_0x299e9c[_0x49717c(0x2c5)]-0x1,_0x9a905b;_0x1660e5>=0x0;_0x1660e5--)(_0x9a905b=_0x299e9c[_0x1660e5])&&(_0x3b9a2e=_0x9a905b(_0x3b9a2e)||_0x3b9a2e);return _0x3b9a2e;},y=(_0x50c20e,_0x246a0c)=>(_0xe12aae,_0x4260d3)=>_0x246a0c(_0xe12aae,_0x4260d3,_0x50c20e);const rt=0x12c,ot=0x64,at=()=>{let _0x502db4=[],_0x110180=!0x1;return _0x57a65c=>{const _0x47a08d=_0x9264;_0x502db4[_0x47a08d(0x43b)](_0x57a65c),_0x110180||(_0x110180=!0x0,setTimeout(()=>{const _0x1af34d=_0x47a08d;_0x502db4[_0x1af34d(0x3d2)](_0x2872d6=>_0x2872d6()),_0x502db4=[],_0x110180=!0x1;}));};};let ve=class extends a[_0x23fb60(0x2e3)]{constructor(_0x439de8,_0x31e6b8,_0x41dd92,_0x14c886,_0x25f7e1,_0xdf4b39,_0x3f3ba2,_0x42177d){const _0x4ba782=_0x23fb60;super(),h(this,_0x4ba782(0x2be),!0x1),h(this,_0x4ba782(0x238),!0x1),h(this,_0x4ba782(0x227),new d[(_0x4ba782(0x273))](new Map())),h(this,'cursorInfo$',this[_0x4ba782(0x227)]['asObservable']()),h(this,_0x4ba782(0x373),new d[(_0x4ba782(0x273))]([])),h(this,_0x4ba782(0x2a2),this['_roomMembers$'][_0x4ba782(0x237)](d['debounceTime'](rt))),h(this,_0x4ba782(0x37d),a[_0x4ba782(0x230)]((_0x463fce,_0x22ab2f)=>{const _0x43e754=_0x4ba782,_0x55e759={'eventID':m[_0x43e754(0x271)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x43e754(0x37c)],'memberID':this['_session'][_0x43e754(0x269)](),'selection':Te['serializeRangeWithSheet'](_0x463fce,_0x22ab2f['range'])}};this[_0x43e754(0x43c)][_0x43e754(0x329)](_0x55e759,this[_0x43e754(0x37c)]);},ot)),(this['unitID']=_0x439de8,this[_0x4ba782(0x43c)]=_0x31e6b8,this[_0x4ba782(0x348)]=_0x41dd92,this['_colorAssignService']=_0x14c886,this[_0x4ba782(0x2c7)]=_0x25f7e1,this[_0x4ba782(0x208)]=_0xdf4b39,this[_0x4ba782(0x3f0)]=_0x3f3ba2,this[_0x4ba782(0x353)]=_0x42177d);}get[_0x23fb60(0x364)](){const _0x188ec7=_0x23fb60;return this[_0x188ec7(0x227)][_0x188ec7(0x385)]();}get[_0x23fb60(0x3e5)](){const _0x556e71=_0x23fb60;return this[_0x556e71(0x373)][_0x556e71(0x385)]();}[_0x23fb60(0x1f7)](){const _0x1c1318=_0x23fb60;super[_0x1c1318(0x1f7)](),this[_0x1c1318(0x227)]['next'](new Map()),this[_0x1c1318(0x227)][_0x1c1318(0x3e6)](),this[_0x1c1318(0x373)]['next']([]),this['_roomMembers$']['complete']();}['init'](){const _0x224efe=_0x23fb60;this['_init']||(this[_0x224efe(0x238)]=!0x0,this['_session']['sessionStatus$'][_0x224efe(0x237)](d['takeUntil'](this['dispose$']))[_0x224efe(0x285)](_0x484785=>{const _0x241b97=_0x224efe;_0x484785===u[_0x241b97(0x34b)]['ONLINE']?this['_toggleOnline']():this[_0x241b97(0x2f6)]();}),this[_0x224efe(0x43c)][_0x224efe(0x1cf)][_0x224efe(0x237)](d[_0x224efe(0x2de)](this['dispose$']))[_0x224efe(0x285)](_0x2df4ce=>{const _0x187894=_0x224efe,_0x4c6e96=_0x2df4ce[_0x187894(0x21b)];_0x4c6e96===m['CollaborationEvent'][_0x187894(0x365)]&&this[_0x187894(0x20f)](_0x2df4ce),_0x4c6e96===m[_0x187894(0x271)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x2df4ce);}),this[_0x224efe(0x1fb)](),this[_0x224efe(0x384)](this['_commandService'][_0x224efe(0x286)](_0x254e9=>{const _0x33824d=_0x224efe;if(this['_online']&&_0x254e9['id']===I['SetSelectionsOperation']['id']&&_0x254e9['params'][_0x33824d(0x206)]===this['unitID']){const _0x4e78ba=_0x254e9[_0x33824d(0x2a5)];this[_0x33824d(0x37d)](_0x4e78ba[_0x33824d(0x34e)],_0x4e78ba['selections'][0x0]);}})));}['_onCursorUpdate'](_0x23ad6c){const _0x2e8328=_0x23fb60;var _0x368190,_0x17c0d0;const {memberID:_0x1045f0,selection:_0x4b33dc}=_0x23ad6c[_0x2e8328(0x2d8)],{sheetName:_0xedca2e,range:_0x336093}=Te[_0x2e8328(0x3cf)](_0x4b33dc),_0x1a9f1f={'name':(_0x17c0d0=(_0x368190=this['_memberService'][_0x2e8328(0x2b7)](this[_0x2e8328(0x37c)],_0x1045f0))==null?void 0x0:_0x368190[_0x2e8328(0x409)])!=null?_0x17c0d0:_0x2e8328(0x22a),'range':this[_0x2e8328(0x2cc)](_0xedca2e,_0x336093),'sheetID':_0xedca2e,'color':this['_colorAssignService'][_0x2e8328(0x2fb)](_0x1045f0),'selection':_0x4b33dc},_0x5cda1a=this[_0x2e8328(0x364)];_0x5cda1a[_0x2e8328(0x3b8)](_0x1045f0,_0x1a9f1f),this['_cursorInfo$'][_0x2e8328(0x1da)](_0x5cda1a);}[_0x23fb60(0x205)](_0x516f30){const _0x4eab9b=_0x23fb60,{memberID:_0x34a635}=_0x516f30[_0x4eab9b(0x2d8)],_0x1465a3=this[_0x4eab9b(0x364)];_0x1465a3[_0x4eab9b(0x242)](_0x34a635),this[_0x4eab9b(0x227)][_0x4eab9b(0x1da)](_0x1465a3);}[_0x23fb60(0x2cc)](_0x9766a3,_0x5ac862){const _0x4149c5=_0x23fb60;var _0x4a39d1,_0x170269;const _0x72be5=(_0x170269=(_0x4a39d1=this[_0x4149c5(0x208)]['getUniverSheetInstance'](this[_0x4149c5(0x37c)]))==null?void 0x0:_0x4a39d1[_0x4149c5(0x33f)](_0x9766a3))==null?void 0x0:_0x170269[_0x4149c5(0x306)]();return(_0x72be5==null?void 0x0:_0x72be5[_0x4149c5(0x21e)](_0x180770=>a['Rectangle'][_0x4149c5(0x3bc)](_0x180770,_0x5ac862)))||_0x5ac862;}['_onRefRangeChange'](){const _0x12f389=_0x23fb60,_0x1eb2dc=new a[(_0x12f389(0x394))](),_0x50546d=at(),_0x14c975=()=>{const _0x3c998b=_0x12f389;_0x1eb2dc[_0x3c998b(0x1f7)]();const _0x26a7b3=(_0x413b9f,_0x4d342,_0x21b90b,_0x3cee93)=>{const _0x24b1ae=_0x3c998b;let _0x3214b8=[];switch(_0x413b9f['id']){case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x3e3)]:{_0x3214b8=I[_0x24b1ae(0x293)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x402)]:{_0x3214b8=I[_0x24b1ae(0x36a)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x287)]:{_0x3214b8=I[_0x24b1ae(0x2c3)](_0x413b9f,_0x3cee93);break;}case I['EffectRefRangId'][_0x24b1ae(0x3ef)]:{_0x3214b8=I['handleInsertRangeMoveDown'](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x363)]:{_0x3214b8=I['handleInsertRangeMoveRight'](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x201)]:{_0x3214b8=I[_0x24b1ae(0x28f)](_0x413b9f,_0x3cee93);break;}case I['EffectRefRangId'][_0x24b1ae(0x403)]:{_0x3214b8=I[_0x24b1ae(0x388)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)][_0x24b1ae(0x2b1)]:{_0x3214b8=I[_0x24b1ae(0x23f)](_0x413b9f,_0x3cee93);break;}case I[_0x24b1ae(0x2e5)]['RemoveRowCommandId']:{_0x3214b8=I[_0x24b1ae(0x378)](_0x413b9f,_0x3cee93);break;}}const _0x9e0319=I['runRefRangeMutations'](_0x3214b8,_0x3cee93),_0x4d237f=this[_0x24b1ae(0x364)][_0x24b1ae(0x300)](_0x4d342);if(_0x4d237f&&_0x9e0319){const _0x392b0f={..._0x4d237f,'range':_0x9e0319};this['cursorInfo'][_0x24b1ae(0x3b8)](_0x4d342,_0x392b0f),_0x50546d(()=>{const _0x15ed1c=_0x24b1ae,_0x28195f=this['_refRangeService'][_0x15ed1c(0x3ad)](_0x9e0319,_0x4e0ab0=>(_0x28195f[_0x15ed1c(0x1f7)](),_0x26a7b3(_0x4e0ab0,_0x4d342,_0x21b90b,_0x9e0319)));_0x1eb2dc[_0x15ed1c(0x316)](_0x28195f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3c998b(0x3d2)]((_0xc4a537,_0x4aeaba)=>{const _0x3bd57e=_0x3c998b,{range:_0x10c5ec,sheetID:_0x55f1ef}=_0xc4a537,_0x8cfbbd=this[_0x3bd57e(0x353)][_0x3bd57e(0x3ad)](_0x10c5ec,_0x3df2f3=>(_0x8cfbbd[_0x3bd57e(0x1f7)](),_0x26a7b3(_0x3df2f3,_0x4aeaba,_0x55f1ef,_0x10c5ec)));_0x1eb2dc['add'](_0x8cfbbd);});};this[_0x12f389(0x384)](a[_0x12f389(0x276)](this[_0x12f389(0x227)][_0x12f389(0x285)](()=>{_0x14c975();})));}[_0x23fb60(0x433)](){const _0x10fd89=_0x23fb60;var _0x590608,_0x5325cc;if(this[_0x10fd89(0x2be)]=!0x0,((_0x590608=this['_univerInstanceService'][_0x10fd89(0x2ba)]())==null?void 0x0:_0x590608[_0x10fd89(0x236)]())!==this['unitID'])return;const _0x4e7535=(_0x5325cc=this['_injector'][_0x10fd89(0x300)](I['SheetsSelectionsService'])[_0x10fd89(0x22d)]())==null?void 0x0:_0x5325cc[0x0],_0x156066=this[_0x10fd89(0x208)]['getCurrentUnitForType'](a[_0x10fd89(0x3aa)]['UNIVER_SHEET'])[_0x10fd89(0x3bb)]();_0x4e7535&&_0x156066&&this[_0x10fd89(0x37d)](_0x156066[_0x10fd89(0x2ec)](),_0x4e7535);}[_0x23fb60(0x2f6)](){this['_online']=!0x1;}};ve=it([y(0x2,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),y(0x3,a[_0x23fb60(0x203)](Ce)),y(0x4,a[_0x23fb60(0x203)](u[_0x23fb60(0x375)])),y(0x5,a[_0x23fb60(0x322)]),y(0x6,a[_0x23fb60(0x1c7)]),y(0x7,a['Inject'](I['RefRangeService']))],ve);var ct=Object[_0x23fb60(0x3f3)],lt=(_0x4fe30d,_0x5ca8f5,_0x39b756,_0x1a835f)=>{const _0x4d990e=_0x23fb60;for(var _0x46a98a=_0x1a835f>0x1?void 0x0:_0x1a835f?ct(_0x5ca8f5,_0x39b756):_0x5ca8f5,_0x5a01cb=_0x4fe30d[_0x4d990e(0x2c5)]-0x1,_0x4987b6;_0x5a01cb>=0x0;_0x5a01cb--)(_0x4987b6=_0x4fe30d[_0x5a01cb])&&(_0x46a98a=_0x4987b6(_0x46a98a)||_0x46a98a);return _0x46a98a;},ie=(_0x445c0d,_0x336151)=>(_0x553b08,_0xb5dbcf)=>_0x336151(_0x553b08,_0xb5dbcf,_0x445c0d);let x=class extends a[_0x23fb60(0x2e3)]{constructor(_0x10dd40,_0xdb6f00,_0x546a0d){const _0x262ec4=_0x23fb60;super(),h(this,_0x262ec4(0x2ad),new Map()),h(this,_0x262ec4(0x330),new d[(_0x262ec4(0x27c))]()),(this[_0x262ec4(0x208)]=_0x10dd40,this[_0x262ec4(0x348)]=_0xdb6f00,this[_0x262ec4(0x3f8)]=_0x546a0d,this[_0x262ec4(0x238)]());}[_0x23fb60(0x1f7)](){const _0x57ebb4=_0x23fb60;super['dispose'](),this[_0x57ebb4(0x330)][_0x57ebb4(0x3e6)](),this[_0x57ebb4(0x2ad)][_0x57ebb4(0x3d2)](_0x55beed=>_0x55beed['dispose']());}[_0x23fb60(0x308)](_0x911149){const _0x106952=_0x23fb60;return this[_0x106952(0x2ad)][_0x106952(0x234)](_0x911149)?this['_entities'][_0x106952(0x300)](_0x911149)[_0x106952(0x253)]:this[_0x106952(0x330)][_0x106952(0x237)](d[_0x106952(0x326)](_0x52eef5=>_0x52eef5[_0x106952(0x37c)]===_0x911149),d[_0x106952(0x3de)](_0x3b60ac=>_0x3b60ac[_0x106952(0x253)]));}[_0x23fb60(0x238)](){const _0xc57bdb=_0x23fb60;this[_0xc57bdb(0x208)][_0xc57bdb(0x284)](a['UniverInstanceType'][_0xc57bdb(0x20c)])[_0xc57bdb(0x237)](d['takeUntil'](this['dispose$']))[_0xc57bdb(0x285)](async _0x505ceb=>{const _0x3c50eb=_0xc57bdb,_0x4bda72=_0x505ceb[_0x3c50eb(0x236)](),_0x2c3490=await this[_0x3c50eb(0x1ea)](_0x4bda72);this[_0x3c50eb(0x330)]['next'](_0x2c3490),this[_0x3c50eb(0x2ad)][_0x3c50eb(0x3b8)](_0x4bda72,_0x2c3490);}),this['_univerInstanceService'][_0xc57bdb(0x284)](a[_0xc57bdb(0x3aa)][_0xc57bdb(0x1f4)])[_0xc57bdb(0x237)](d[_0xc57bdb(0x2de)](this[_0xc57bdb(0x220)]))[_0xc57bdb(0x237)](d[_0xc57bdb(0x326)](_0x3a82ce=>!_0x3a82ce[_0xc57bdb(0x236)]()[_0xc57bdb(0x1e1)]('__')))['subscribe'](async _0x32350d=>{const _0x332d08=_0xc57bdb,_0x17942a=_0x32350d[_0x332d08(0x236)](),_0x41643b=await this[_0x332d08(0x434)](_0x17942a);this[_0x332d08(0x330)]['next'](_0x41643b),this[_0x332d08(0x2ad)][_0x332d08(0x3b8)](_0x17942a,_0x41643b);}),d['merge'](this[_0xc57bdb(0x208)][_0xc57bdb(0x3a1)](a[_0xc57bdb(0x3aa)]['UNIVER_DOC']),this[_0xc57bdb(0x208)][_0xc57bdb(0x3a1)](a['UniverInstanceType'][_0xc57bdb(0x20c)]))[_0xc57bdb(0x237)](d[_0xc57bdb(0x2de)](this[_0xc57bdb(0x220)]))[_0xc57bdb(0x285)](_0x3d5987=>{const _0x5e83c5=_0xc57bdb,_0x307624=_0x3d5987[_0x5e83c5(0x236)](),_0x3716fb=this[_0x5e83c5(0x2ad)][_0x5e83c5(0x300)](_0x307624);_0x3716fb&&(_0x3716fb[_0x5e83c5(0x1f7)](),this['_entities'][_0x5e83c5(0x242)](_0x307624));});}async['_startSheetCollabCursor'](_0x17912b){const _0x55d2ab=_0x23fb60,_0x5428a2=await this[_0x55d2ab(0x3f8)][_0x55d2ab(0x1c2)](_0x17912b),_0x98126f=this[_0x55d2ab(0x348)][_0x55d2ab(0x297)](ve,_0x17912b,_0x5428a2);return _0x98126f['init'](),_0x98126f;}async[_0x23fb60(0x434)](_0x5aae05){const _0x9a7175=_0x23fb60,_0x2f2346=await this['_collabSessionService']['requireSession'](_0x5aae05),_0x4e6718=this[_0x9a7175(0x348)]['createInstance'](Se,_0x5aae05,_0x2f2346);return _0x4e6718[_0x9a7175(0x3a2)](),_0x4e6718;}};x=lt([ie(0x0,a[_0x23fb60(0x322)]),ie(0x1,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),ie(0x2,a[_0x23fb60(0x203)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x1908e3,_0x22db4a){const _0x3333bb=_0x23fb60;let {radius:_0x2aa4c1,width:_0x136b14,height:_0x577539}=_0x22db4a;_0x2aa4c1=_0x2aa4c1!=null?_0x2aa4c1:0x0,_0x136b14=_0x136b14!=null?_0x136b14:0x1e,_0x577539=_0x577539!=null?_0x577539:0x1e;let _0x3e4b27=0x0,_0x22d59c=0x0,_0x4b4c57=0x0;_0x3e4b27=_0x22d59c=_0x4b4c57=Math[_0x3333bb(0x3ab)](_0x2aa4c1,_0x136b14/0x2,_0x577539/0x2),_0x1908e3[_0x3333bb(0x347)](),_0x1908e3[_0x3333bb(0x23b)](_0x3e4b27,0x0),_0x1908e3[_0x3333bb(0x291)](_0x136b14-_0x22d59c,0x0),_0x1908e3[_0x3333bb(0x374)](_0x136b14-_0x22d59c,_0x22d59c,_0x22d59c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1908e3[_0x3333bb(0x291)](_0x136b14,_0x577539-_0x4b4c57),_0x1908e3[_0x3333bb(0x374)](_0x136b14-_0x4b4c57,_0x577539-_0x4b4c57,_0x4b4c57,0x0,Math['PI']/0x2,!0x1),_0x1908e3[_0x3333bb(0x291)](0x0,_0x577539),_0x1908e3[_0x3333bb(0x291)](0x0,_0x3e4b27),_0x1908e3[_0x3333bb(0x374)](_0x3e4b27,_0x3e4b27,_0x3e4b27,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1908e3[_0x3333bb(0x361)](),_0x22db4a['fill']&&(_0x1908e3[_0x3333bb(0x442)](),_0x1908e3['fillStyle']=_0x22db4a[_0x3333bb(0x398)],_0x22db4a[_0x3333bb(0x431)]===_0x3333bb(0x1e4)?_0x1908e3[_0x3333bb(0x398)](_0x3333bb(0x1e4)):_0x1908e3[_0x3333bb(0x398)](),_0x1908e3[_0x3333bb(0x255)]());}class te extends p[_0x23fb60(0x377)]{constructor(_0x4644d4,_0x11f578){const _0x5ecb3d=_0x23fb60;super(_0x4644d4,_0x11f578),h(this,_0x5ecb3d(0x38b)),h(this,_0x5ecb3d(0x3f2)),(this[_0x5ecb3d(0x38b)]=_0x11f578==null?void 0x0:_0x11f578[_0x5ecb3d(0x38b)],this['text']=_0x11f578==null?void 0x0:_0x11f578[_0x5ecb3d(0x3f2)]);}static['drawWith'](_0x112d95,_0x563825){const _0x3a48a5=_0x23fb60,{text:_0x165bf5,color:_0x285ba9}=_0x563825;_0x112d95[_0x3a48a5(0x442)](),_0x112d95[_0x3a48a5(0x1e5)]=_0x3a48a5(0x1eb);const _0x536ae7=_0x112d95[_0x3a48a5(0x3ee)](_0x165bf5)['width'],_0x5cd2d5=Math[_0x3a48a5(0x3ab)](_0x536ae7+0x2*re,De);_t(_0x112d95,{'height':K,'radius':0x4,'width':_0x5cd2d5,'fill':_0x285ba9}),_0x112d95[_0x3a48a5(0x406)]=_0x3a48a5(0x323);const _0x134f13=re,_0x57acfe=K-ht,_0x43efef=De-0x2*re;if(_0x536ae7>_0x43efef){let _0x60215e='',_0x3582db=0x0;for(const _0x374624 of _0x165bf5){const _0x53eff6=_0x112d95[_0x3a48a5(0x3ee)](_0x374624)['width'];if(_0x3582db+_0x53eff6<=_0x43efef-_0x112d95[_0x3a48a5(0x3ee)](_0x3a48a5(0x2e9))[_0x3a48a5(0x233)])_0x60215e+=_0x374624,_0x3582db+=_0x53eff6;else{_0x60215e+=_0x3a48a5(0x2e9);break;}}_0x112d95[_0x3a48a5(0x3a8)](_0x60215e,_0x134f13,_0x57acfe);}else _0x112d95['fillText'](_0x165bf5,_0x134f13,_0x57acfe);_0x112d95['restore']();}[_0x23fb60(0x32a)](_0x2dcf58){const _0x2fbb98=_0x23fb60;te[_0x2fbb98(0x1d7)](_0x2dcf58,this);}}const oe='collab-text-anchor-',ut=_0x23fb60(0x1db),dt=_0x23fb60(0x26f),B=0x6,ft=1.5,ae=0x4,St=1.5,vt='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x205d79,_0xc07fd9,_0x58b443,_0xe39765){const _0x128c64=_0x23fb60;h(this,'_shapes',[]),h(this,_0x128c64(0x2c1),null),h(this,_0x128c64(0x295),null),h(this,_0x128c64(0x27f),null),h(this,'_hideTimer',null),h(this,_0x128c64(0x41f),null),(this['_cursor']=_0x205d79,this[_0x128c64(0x3c2)]=_0xc07fd9,this[_0x128c64(0x31b)]=_0x58b443,this[_0x128c64(0x221)]=_0xe39765,this['_render']());}set[_0x23fb60(0x298)](_0x28899e){const _0x134020=_0x23fb60;_0x28899e?(this[_0x134020(0x27f)]&&this['_anchorDot'][_0x134020(0x411)](),this[_0x134020(0x295)]&&this['_textBubble'][_0x134020(0x24f)]()):(this[_0x134020(0x27f)]&&this[_0x134020(0x27f)][_0x134020(0x24f)](),this[_0x134020(0x295)]&&this[_0x134020(0x295)]['hide']());}[_0x23fb60(0x1f7)](){const _0x17a9e4=_0x23fb60;for(const _0x424888 of this[_0x17a9e4(0x1c4)])_0x424888['dispose']();this['_textBubble']&&this[_0x17a9e4(0x295)][_0x17a9e4(0x1f7)](),this[_0x17a9e4(0x27f)]&&this[_0x17a9e4(0x27f)][_0x17a9e4(0x1f7)](),this['_anchor']&&this[_0x17a9e4(0x2c1)][_0x17a9e4(0x1f7)](),this[_0x17a9e4(0x41f)]&&this[_0x17a9e4(0x41f)]();}[_0x23fb60(0x25f)](){const _0x566043=_0x23fb60;var _0x5f2858;const {_docSkeleton:_0x1b8bb1,_document:_0x495a29}=this,{color:_0x5b43cc,name:_0x3d1eaa,ranges:_0x294c73}=this[_0x566043(0x43a)],_0x4e14d3=_0x495a29[_0x566043(0x226)](),{docsLeft:_0x5806e9,docsTop:_0x75ceee}=_0x4e14d3,_0x1eb756=new b[(_0x566043(0x23d))](_0x4e14d3,_0x1b8bb1);for(const {startOffset:_0x4543c1,endOffset:_0x22a8b1,rangeType:_0x207afb,segmentId:_0x3806fd,segmentPage:_0x3654be,collapsed:_0x34154b,isActive:_0x186931}of _0x294c73){const _0xc5fcda=_0x1b8bb1[_0x566043(0x43f)](_0x4543c1,!0x0,_0x3806fd,_0x3654be);let _0x45b2f4=_0x1b8bb1[_0x566043(0x43f)](_0x22a8b1,!0x0,_0x3806fd,_0x3654be);if(_0x45b2f4==null&&(_0x45b2f4=_0x1b8bb1[_0x566043(0x43f)](_0x22a8b1-0x1,!0x1,_0x3806fd,_0x3654be)),_0x186931){const {contentBoxPointGroup:_0xde624e}=_0x1eb756[_0x566043(0x3f9)](_0x45b2f4,_0x45b2f4);if(_0xde624e[_0x566043(0x2c5)]===0x0)continue;this['_drawAnchor'](_0x5b43cc,_0xde624e,_0x5806e9,_0x75ceee,_0x3d1eaa),this[_0x566043(0x41f)]=this[_0x566043(0x3d0)]();}if(_0xc5fcda&&_0x45b2f4){if(_0x207afb===a[_0x566043(0x35e)][_0x566043(0x305)]){const _0x2defe7=new b[(_0x566043(0x3fe))](_0x4e14d3,_0x1b8bb1),{pointGroup:_0x24b9fc}=(_0x5f2858=_0x2defe7['getRangePointData'](_0xc5fcda,_0x45b2f4))!=null?_0x5f2858:{};if(_0x24b9fc==null||_0x24b9fc[_0x566043(0x2c5)]===0x0)continue;this[_0x566043(0x21f)](_0x5b43cc,_0x24b9fc,_0x5806e9,_0x75ceee);}else{if(!_0x34154b){const {borderBoxPointGroup:_0x1e2977}=_0x1eb756[_0x566043(0x3f9)](_0xc5fcda,_0x45b2f4);if(_0x1e2977[_0x566043(0x2c5)]===0x0)continue;this[_0x566043(0x249)](_0x5b43cc,_0x1e2977,_0x5806e9,_0x75ceee);}}}}}[_0x23fb60(0x23e)](_0x1c8cbc,_0x71ac57,_0x5ce855,_0x56321d,_0x55f0bd){const _0x1bf486=_0x23fb60,_0x424a7e=this['_getAnchorBounding'](_0x71ac57),{left:_0x3d1555,top:_0x52edda,height:_0x16eeea}=_0x424a7e,_0x48f1df=this[_0x1bf486(0x213)](),_0x5d6b1c=St/_0x48f1df,_0x28570b=new p[(_0x1bf486(0x307))](oe+a[_0x1bf486(0x1df)]['generateRandomId'](B),{'left':_0x3d1555+_0x5ce855-_0x5d6b1c,'top':_0x52edda+_0x56321d,'height':_0x16eeea,'width':ft,'fill':_0x1c8cbc||p[_0x1bf486(0x2df)](a[_0x1bf486(0x396)][_0x1bf486(0x3db)],0x0),'strokeWidth':_0x5d6b1c,'stroke':vt,'evented':!0x0});this[_0x1bf486(0x2c1)]=_0x28570b,this['_scene']['addObject'](_0x28570b,b['TEXT_RANGE_LAYER_INDEX']);const _0x33dd33=new p['Rect'](oe+a[_0x1bf486(0x1df)][_0x1bf486(0x2fa)](B),{'left':_0x3d1555+_0x5ce855-_0x5d6b1c,'top':_0x52edda+_0x56321d-ae/0x2,'height':ae,'width':ae,'fill':_0x1c8cbc||p[_0x1bf486(0x2df)](a[_0x1bf486(0x396)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1c8cbc||p[_0x1bf486(0x2df)](a[_0x1bf486(0x396)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x33dd33,this['_scene'][_0x1bf486(0x1ec)](_0x33dd33,b[_0x1bf486(0x254)]);const _0x17e062=new te(oe+a[_0x1bf486(0x1df)][_0x1bf486(0x2fa)](B),{'left':_0x3d1555+_0x5ce855-_0x5d6b1c,'top':_0x52edda+_0x56321d-K,'text':_0x55f0bd,'color':_0x1c8cbc});this[_0x1bf486(0x295)]=_0x17e062,this['_scene'][_0x1bf486(0x1ec)](_0x17e062,b['TEXT_RANGE_LAYER_INDEX']),this[_0x1bf486(0x298)]=!0x1;}['_handleHover'](){const _0x43d5c=_0x23fb60,_0x4666ab=this[_0x43d5c(0x2c1)][_0x43d5c(0x410)][_0x43d5c(0x2d0)](()=>{const _0x12824b=_0x43d5c;this[_0x12824b(0x298)]=!0x0;}),_0x42f8a0=this[_0x43d5c(0x2c1)][_0x43d5c(0x343)]['subscribeEvent'](()=>{const _0x38fd9a=_0x43d5c;this[_0x38fd9a(0x244)]&&clearTimeout(this[_0x38fd9a(0x244)]),this['_hideTimer']=setTimeout(()=>{const _0x464b62=_0x38fd9a;this[_0x464b62(0x298)]=!0x1;},0x7d0);});return()=>{const _0x12c6e5=_0x43d5c;_0x4666ab[_0x12c6e5(0x382)](),_0x42f8a0[_0x12c6e5(0x382)]();};}['_drawTextRange'](_0x2b2d5,_0x43def2,_0x2c8e1d,_0x470fd1){const _0x5c02c6=_0x23fb60,_0x6a02c0=new a['ColorKit'](_0x2b2d5)[_0x5c02c6(0x31c)](0.2)['toRgbString'](),_0x24aafc=new p['RegularPolygon'](ut+a[_0x5c02c6(0x1df)]['generateRandomId'](B),{'pointsGroup':_0x43def2,'fill':_0x6a02c0||p[_0x5c02c6(0x2df)](a[_0x5c02c6(0x396)][_0x5c02c6(0x3db)],0.2),'left':_0x2c8e1d,'top':_0x470fd1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c02c6(0x1c4)]['push'](_0x24aafc),this['_scene'][_0x5c02c6(0x1ec)](_0x24aafc,b['TEXT_RANGE_LAYER_INDEX']);}[_0x23fb60(0x21f)](_0x5a2687,_0x13c0ad,_0x58c2a2,_0x19b1ab){const _0x684880=_0x23fb60,_0x5c56fe=new a['ColorKit'](_0x5a2687)[_0x684880(0x31c)](0.2)[_0x684880(0x36e)](),_0x4e0475=new p[(_0x684880(0x3d3))](dt+a['Tools'][_0x684880(0x2fa)](B),{'pointsGroup':_0x13c0ad,'fill':_0x5c56fe||p[_0x684880(0x2df)](a[_0x684880(0x396)][_0x684880(0x3db)],0.2),'left':_0x58c2a2,'top':_0x19b1ab,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x684880(0x1c4)][_0x684880(0x43b)](_0x4e0475),this[_0x684880(0x3c2)]['addObject'](_0x4e0475,b[_0x684880(0x254)]);}[_0x23fb60(0x20a)](_0x182f14){const _0x103d59=_0x182f14[0x0],_0x2ffeb7=_0x103d59[0x0],_0x4719e5=_0x103d59[0x2],{x:_0x498a0d,y:_0xcdb7dd}=_0x2ffeb7,{x:_0xcff41f,y:_0x46618e}=_0x4719e5;return{'left':_0x498a0d,'top':_0xcdb7dd,'width':_0xcff41f-_0x498a0d,'height':_0x46618e-_0xcdb7dd};}['_getScale'](){const _0x401265=_0x23fb60,{scaleX:_0x51ec2f,scaleY:_0x42626a}=this[_0x401265(0x3c2)][_0x401265(0x2d5)]();return Math[_0x401265(0x275)](_0x51ec2f,_0x42626a);}}var gt=Object['getOwnPropertyDescriptor'],It=(_0x174a49,_0x1b4055,_0x4db7f0,_0x2ecce3)=>{const _0x5109ae=_0x23fb60;for(var _0x1d4e3a=_0x2ecce3>0x1?void 0x0:_0x2ecce3?gt(_0x1b4055,_0x4db7f0):_0x1b4055,_0x158274=_0x174a49[_0x5109ae(0x2c5)]-0x1,_0x50d3db;_0x158274>=0x0;_0x158274--)(_0x50d3db=_0x174a49[_0x158274])&&(_0x1d4e3a=_0x50d3db(_0x1d4e3a)||_0x1d4e3a);return _0x1d4e3a;},X=(_0x4779b3,_0x55ae4c)=>(_0x5cdda7,_0x16d9c8)=>_0x55ae4c(_0x5cdda7,_0x16d9c8,_0x4779b3);let ge=class extends a['RxDisposable']{constructor(_0x5e23ea,_0xe4faab,_0x13653b,_0x194e28,_0x4b119e){const _0xabf49d=_0x23fb60;super(),h(this,_0xabf49d(0x217),[]),h(this,_0xabf49d(0x1bd),[]),(this['_context']=_0x5e23ea,this[_0xabf49d(0x3e1)]=_0xe4faab,this[_0xabf49d(0x33d)]=_0x13653b,this[_0xabf49d(0x3f0)]=_0x194e28,this[_0xabf49d(0x3e7)]=_0x4b119e,this[_0xabf49d(0x238)]());}[_0x23fb60(0x238)](){const _0x4c26a3=_0x23fb60,_0x4ba2e9=this[_0x4c26a3(0x42a)][_0x4c26a3(0x206)],_0x278fcf=this[_0x4c26a3(0x3e1)];this['disposeWithMe'](d[_0x4c26a3(0x2e0)]([this[_0x4c26a3(0x33d)][_0x4c26a3(0x308)](_0x4ba2e9),this['_themeService'][_0x4c26a3(0x3bf)]])[_0x4c26a3(0x237)]($['map'](([_0x51875e,_0x2f9e40])=>({'skeleton':_0x278fcf['getSkeleton'](),'cursors':[..._0x51875e[_0x4c26a3(0x362)]()][_0x4c26a3(0x3b6)](_0xccb237=>({..._0xccb237,'color':_0x2f9e40[_0xccb237[_0x4c26a3(0x38b)]]}))})))[_0x4c26a3(0x285)](_0x3d52a6=>{const _0x27cc23=_0x4c26a3;if(this['_removeCollabCursors'](),_0x3d52a6){const {skeleton:_0x35afd5,cursors:_0x37315a}=_0x3d52a6;this[_0x27cc23(0x3b0)](_0x35afd5,_0x37315a);}})),this['_initResize'](),this[_0x4c26a3(0x41a)]();}[_0x23fb60(0x3b0)](_0x5c45e4,_0x81dd9e){const _0xd911db=_0x23fb60,{scene:_0x26017a,mainComponent:_0x16ae96}=this[_0xd911db(0x42a)],_0x4837d6=_0x81dd9e[_0xd911db(0x3d1)](_0x3193b3=>new Ue(_0x3193b3,_0x26017a,_0x5c45e4,_0x16ae96));this[_0xd911db(0x217)]=_0x4837d6,this[_0xd911db(0x1bd)]=_0x81dd9e;}[_0x23fb60(0x1bc)](){const _0x426031=_0x23fb60;this['_removeCollabCursors']();const {scene:_0x5f3ae4,mainComponent:_0x2b61e0}=this[_0x426031(0x42a)],_0x141063=this['_docSkeletonManagerService']['getSkeleton'](),_0x5d822d=this['_cursors'][_0x426031(0x3d1)](_0x101943=>new Ue(_0x101943,_0x5f3ae4,_0x141063,_0x2b61e0));this['_cursorShapes']=_0x5d822d;}[_0x23fb60(0x245)](){const _0x4d43fa=_0x23fb60;this['_cursorShapes'][_0x4d43fa(0x3d2)](_0x19c04a=>_0x19c04a['dispose']()),this[_0x4d43fa(0x217)]=[];}['_initCommandExecutedListener'](){const _0x24e239=_0x23fb60,_0x271f8c=[b['SetDocZoomRatioOperation']['id']];this[_0x24e239(0x384)](this[_0x24e239(0x3f0)][_0x24e239(0x286)](_0x63e257=>{const _0x3054a5=_0x24e239;_0x271f8c[_0x3054a5(0x1e0)](_0x63e257['id'])&&_0x63e257['params']['unitId']===this[_0x3054a5(0x42a)][_0x3054a5(0x206)]&&this[_0x3054a5(0x1bc)]();}));}['_initResize'](){const _0x298933=_0x23fb60;this[_0x298933(0x384)](a['fromEventSubject'](this[_0x298933(0x42a)][_0x298933(0x40b)][_0x298933(0x261)])[_0x298933(0x237)]($[_0x298933(0x326)](_0x2a5111=>_0x2a5111['type']===p[_0x298933(0x27d)][_0x298933(0x36d)]),$[_0x298933(0x418)](0x10))[_0x298933(0x285)](()=>{const _0x286ef7=_0x298933;this[_0x286ef7(0x1bc)]();}));}};ge=It([X(0x1,a[_0x23fb60(0x203)](Y[_0x23fb60(0x2ae)])),X(0x2,a[_0x23fb60(0x203)](x)),X(0x3,a[_0x23fb60(0x1c7)]),X(0x4,a[_0x23fb60(0x203)](a[_0x23fb60(0x33a)]))],ge);const mt=0x1,Ct=1.5;class ye extends p[_0x23fb60(0x377)]{constructor(_0xc37059,_0x368d63){const _0x4d66fa=_0x23fb60;super(_0xc37059,_0x368d63),h(this,'_color'),h(this,_0x4d66fa(0x3ba),!0x1),h(this,_0x4d66fa(0x318)),h(this,_0x4d66fa(0x324),''),h(this,_0x4d66fa(0x1f3),'top'),h(this,'_backgroundColor'),(_0x368d63&&this[_0x4d66fa(0x38d)](_0x368d63),this[_0x4d66fa(0x410)][_0x4d66fa(0x2d0)](()=>this[_0x4d66fa(0x38d)]({'hovered':!0x0})),this[_0x4d66fa(0x343)]['subscribeEvent'](()=>this[_0x4d66fa(0x38d)]({'hovered':!0x1})));}[_0x23fb60(0x38d)](_0x30fe9d){const _0x4cf210=_0x23fb60;var _0x48adcf,_0x8be38b,_0x4ef47f,_0x149211,_0x4dd613,_0x4e38fa;this['_color']=(_0x48adcf=_0x30fe9d[_0x4cf210(0x38b)])!=null?_0x48adcf:this[_0x4cf210(0x1d3)],this[_0x4cf210(0x3ba)]=(_0x8be38b=_0x30fe9d[_0x4cf210(0x2da)])!=null?_0x8be38b:this['_hovered'],this[_0x4cf210(0x318)]=(_0x4ef47f=_0x30fe9d['range'])!=null?_0x4ef47f:this[_0x4cf210(0x318)],this[_0x4cf210(0x324)]=(_0x149211=_0x30fe9d['name'])!=null?_0x149211:this[_0x4cf210(0x324)],this[_0x4cf210(0x1f3)]=(_0x4dd613=_0x30fe9d[_0x4cf210(0x2b5)])!=null?_0x4dd613:this['_labelPosition'],this[_0x4cf210(0x3a0)]=(_0x4e38fa=_0x30fe9d[_0x4cf210(0x20e)])!=null?_0x4e38fa:this[_0x4cf210(0x3a0)],this[_0x4cf210(0x301)]({'width':_0x30fe9d[_0x4cf210(0x233)],'height':_0x30fe9d[_0x4cf210(0x3e2)]});}[_0x23fb60(0x289)](_0x135602){const _0x454e8f=_0x23fb60,{row:_0x40b368,column:_0x2cf3e7}=_0x135602;if(_0x40b368>=this[_0x454e8f(0x318)][_0x454e8f(0x29e)]&&_0x40b368<=this[_0x454e8f(0x318)][_0x454e8f(0x1dc)]&&_0x2cf3e7>=this[_0x454e8f(0x318)]['startColumn']&&_0x2cf3e7<=this['_range'][_0x454e8f(0x1e6)]){this[_0x454e8f(0x38d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x23fb60(0x1c5)](_0x2833a3){return!0x1;}[_0x23fb60(0x32a)](_0xa66a64){const _0x10c5c0=_0x23fb60;p['Rect'][_0x10c5c0(0x1d7)](_0xa66a64,{'width':this['width'],'height':this[_0x10c5c0(0x3e2)],'strokeWidth':Ct,'stroke':this[_0x10c5c0(0x1d3)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0xa66a64[_0x10c5c0(0x442)](),_0xa66a64[_0x10c5c0(0x432)](0x1,0x0,0x0,0x1,this[_0x10c5c0(0x233)],this[_0x10c5c0(0x1f3)]===_0x10c5c0(0x3c5)?0x0:-0x14),te['drawWith'](_0xa66a64,{'text':this[_0x10c5c0(0x324)],'color':this[_0x10c5c0(0x1d3)]}),_0xa66a64['restore']());}}var pt=Object[_0x23fb60(0x3f3)],bt=(_0x42a53d,_0x4fe2a5,_0x51aa09,_0x44f96f)=>{const _0x186ff1=_0x23fb60;for(var _0xb906fb=_0x44f96f>0x1?void 0x0:_0x44f96f?pt(_0x4fe2a5,_0x51aa09):_0x4fe2a5,_0x4b6629=_0x42a53d[_0x186ff1(0x2c5)]-0x1,_0x48c08a;_0x4b6629>=0x0;_0x4b6629--)(_0x48c08a=_0x42a53d[_0x4b6629])&&(_0xb906fb=_0x48c08a(_0xb906fb)||_0xb906fb);return _0xb906fb;},ce=(_0x1129de,_0x4e5e88)=>(_0x1ca243,_0x2ab5a7)=>_0x4e5e88(_0x1ca243,_0x2ab5a7,_0x1129de);const Et=0x1389;let Ie=class extends a[_0x23fb60(0x2e3)]{constructor(_0xdf4782,_0x4f8e20,_0x1bdcdd,_0x3466bc){const _0x46ecf0=_0x23fb60;super(),h(this,'_cursors',new Set()),h(this,_0x46ecf0(0x222),null),(this[_0x46ecf0(0x42a)]=_0xdf4782,this[_0x46ecf0(0x2d1)]=_0x4f8e20,this[_0x46ecf0(0x33d)]=_0x1bdcdd,this['_themeService']=_0x3466bc,this[_0x46ecf0(0x238)]());}[_0x23fb60(0x238)](){const _0x3260bc=_0x23fb60;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3260bc(0x237)]($[_0x3260bc(0x2de)](this[_0x3260bc(0x220)]),$[_0x3260bc(0x3de)](_0x2996f9=>{const _0x38f579=_0x3260bc;if(_0x2996f9){const _0x26f295=_0x2996f9[_0x38f579(0x2f4)];return d[_0x38f579(0x2e0)](this[_0x38f579(0x33d)][_0x38f579(0x308)](this[_0x38f579(0x42a)][_0x38f579(0x206)]),this['_themeService'][_0x38f579(0x3bf)])[_0x38f579(0x237)]($['map'](([_0x2b249e,_0x285517])=>{const _0x1e2eac=_0x38f579,_0x3c08a3=new Map();return _0x2b249e[_0x1e2eac(0x3d2)]((_0x3f2246,_0x149491)=>{const _0x3e4c66=_0x1e2eac;if(_0x3f2246[_0x3e4c66(0x2a9)]===_0x26f295){const _0x403444={..._0x3f2246};_0x403444[_0x3e4c66(0x38b)]=_0x285517[_0x3f2246[_0x3e4c66(0x38b)]],_0x3c08a3[_0x3e4c66(0x3b8)](_0x149491,_0x403444);}}),{'skeleton':_0x2996f9,'cursors':_0x3c08a3};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3260bc(0x285)](({skeleton:_0xf54014,cursors:_0x3e5883})=>{const _0x350b1e=_0x3260bc;this[_0x350b1e(0x245)](),_0xf54014&&this[_0x350b1e(0x3b0)](_0xf54014,_0x3e5883);}),this[_0x3260bc(0x2d1)][_0x3260bc(0x303)][_0x3260bc(0x285)](_0x42e25b=>{const _0x1e6246=_0x3260bc;if(_0x42e25b==null)return;const {skeleton:_0x4b95d3}=_0x42e25b,{scene:_0xd7ba3b}=this['_context'];_0xd7ba3b['onPointerMove$'][_0x1e6246(0x2d0)](a[_0x1e6246(0x230)](_0x30a16d=>{const _0x3e23e1=_0x1e6246;var _0x3c5136,_0x2d6240;const {offsetX:_0x12a2f3,offsetY:_0x1ae6bf}=_0x30a16d,{x:_0x5c6fbc,y:_0x49c86e}=_0xd7ba3b[_0x3e23e1(0x2ed)](p[_0x3e23e1(0x42d)][_0x3e23e1(0x272)]([_0x12a2f3,_0x1ae6bf])),{scaleX:_0x1ff06e,scaleY:_0x15728b}=_0xd7ba3b[_0x3e23e1(0x2d5)](),_0x411423=_0xd7ba3b[_0x3e23e1(0x3f7)](p[_0x3e23e1(0x279)][_0x3e23e1(0x1cb)]),_0x17ce5f=_0xd7ba3b[_0x3e23e1(0x268)](p[_0x3e23e1(0x42d)][_0x3e23e1(0x272)]([_0x5c6fbc,_0x49c86e]),_0x411423),_0x26cee5=_0x4b95d3[_0x3e23e1(0x2ac)](_0x12a2f3,_0x1ae6bf,_0x1ff06e,_0x15728b,_0x17ce5f);((_0x3c5136=this['_lastPointer'])==null?void 0x0:_0x3c5136[_0x3e23e1(0x420)])===_0x26cee5[_0x3e23e1(0x420)]&&((_0x2d6240=this[_0x3e23e1(0x222)])==null?void 0x0:_0x2d6240[_0x3e23e1(0x327)])===_0x26cee5[_0x3e23e1(0x327)]||this[_0x3e23e1(0x1bd)][_0x3e23e1(0x3d2)](_0x1570d7=>{const _0x2089b8=_0x3e23e1;_0x1570d7[_0x2089b8(0x289)](_0x26cee5);});},0x64));});}[_0x23fb60(0x3b0)](_0x567177,_0x2f3c11){const _0x1e0f24=_0x23fb60;var _0x50d5a7;const _0x2b4a21=(_0x50d5a7=this[_0x1e0f24(0x2d1)][_0x1e0f24(0x26e)]())==null?void 0x0:_0x50d5a7['skeleton'];if(!_0x2b4a21)return;const _0x22f574=this[_0x1e0f24(0x367)]();if(!_0x22f574)return;this['_cursors'][_0x1e0f24(0x3d2)](_0x207dc2=>{const _0x26c193=_0x1e0f24;_0x207dc2[_0x26c193(0x214)]();});const {scene:_0x103097}=_0x22f574,_0x6b2437=Tt(Array[_0x1e0f24(0x3f1)](_0x2f3c11[_0x1e0f24(0x362)]()))['map'](_0x3def3f=>{const _0x4ceb2e=_0x1e0f24,{color:_0xf6ad93,range:_0x3949c2,name:_0x2a1d5b,selection:_0x541b9f,sheetID:_0x3e232a}=_0x3def3f,{startColumn:_0x582f57,startRow:_0x2dbeb4,endColumn:_0x172b1a,endRow:_0x167147}=_0x3949c2,_0x1f9e00=G[_0x4ceb2e(0x2f8)](_0x2dbeb4,_0x582f57,_0x103097,_0x2b4a21),_0x13cda8=G[_0x4ceb2e(0x2f8)](_0x167147,_0x172b1a,_0x103097,_0x2b4a21),{columnHeaderHeightAndMarginTop:_0x123386}=_0x2b4a21,{startX:_0x187c7b,startY:_0x877133}=_0x1f9e00,{endX:_0x2e2345,endY:_0x1edc6a}=_0x13cda8,_0x350b07=_0x2e2345-_0x187c7b,_0x2f2d7c=_0x1edc6a-_0x877133,_0x5d7222={'labelPosition':_0x877133-_0x123386>=K?_0x4ceb2e(0x29d):'bottom','sheetID':_0x3e232a,'range':_0x3949c2,'color':_0xf6ad93,'name':_0x2a1d5b,'selection':_0x541b9f,'left':_0x187c7b,'top':_0x877133,'width':_0x350b07,'height':_0x2f2d7c,'evented':!0x1,'zIndex':Et};return new ye(_0x2a1d5b,_0x5d7222);});_0x103097[_0x1e0f24(0x1ee)](_0x6b2437,mt),this['_cursors']=new Set(_0x6b2437);}['_removeCollabCursors'](){const _0x4e6340=_0x23fb60;var _0xaf83cf;(_0xaf83cf=this[_0x4e6340(0x1bd)])==null||_0xaf83cf[_0x4e6340(0x3d2)](_0x9a7d2b=>_0x9a7d2b[_0x4e6340(0x1f7)]());}['_getSheetObject'](){const _0x29a7f7=_0x23fb60;return G[_0x29a7f7(0x296)](this[_0x29a7f7(0x42a)]['unit'],this[_0x29a7f7(0x42a)]);}};Ie=bt([ce(0x1,a['Inject'](G[_0x23fb60(0x3ae)])),ce(0x2,a[_0x23fb60(0x203)](x)),ce(0x3,a[_0x23fb60(0x203)](a[_0x23fb60(0x33a)]))],Ie);function Tt(_0x57b5cb){const _0x22973b=_0x23fb60,_0x29870a=new Map();return _0x57b5cb[_0x22973b(0x3d2)](_0x35753a=>{const _0x423b7a=_0x22973b;if(_0x29870a[_0x423b7a(0x234)](_0x35753a[_0x423b7a(0x2f0)])){const _0x17b477=_0x29870a[_0x423b7a(0x300)](_0x35753a['selection']);_0x17b477[_0x423b7a(0x409)]+=',\x20'+_0x35753a['name'];}else _0x29870a[_0x423b7a(0x3b8)](_0x35753a[_0x423b7a(0x2f0)],_0x35753a);}),Array[_0x22973b(0x3f1)](_0x29870a['values']());}var E=function(){const _0x8cc496=_0x23fb60;return E=Object['assign']||function(_0x3ff653){const _0xa9f41a=_0x9264;for(var _0xc4ba32,_0x5126de=0x1,_0x59381a=arguments[_0xa9f41a(0x2c5)];_0x5126de<_0x59381a;_0x5126de++){_0xc4ba32=arguments[_0x5126de];for(var _0x480033 in _0xc4ba32)Object[_0xa9f41a(0x2a7)][_0xa9f41a(0x24a)][_0xa9f41a(0x2ef)](_0xc4ba32,_0x480033)&&(_0x3ff653[_0x480033]=_0xc4ba32[_0x480033]);}return _0x3ff653;},E[_0x8cc496(0x414)](this,arguments);},Rt=function(_0x5e07f4,_0x31917d){const _0x18015f=_0x23fb60;var _0x5d476d={};for(var _0x3ce47 in _0x5e07f4)Object[_0x18015f(0x2a7)]['hasOwnProperty'][_0x18015f(0x2ef)](_0x5e07f4,_0x3ce47)&&_0x31917d[_0x18015f(0x243)](_0x3ce47)<0x0&&(_0x5d476d[_0x3ce47]=_0x5e07f4[_0x3ce47]);if(_0x5e07f4!=null&&typeof Object[_0x18015f(0x352)]==_0x18015f(0x3fd)){for(var _0x2012d1=0x0,_0x3ce47=Object[_0x18015f(0x352)](_0x5e07f4);_0x2012d1<_0x3ce47[_0x18015f(0x2c5)];_0x2012d1++)_0x31917d[_0x18015f(0x243)](_0x3ce47[_0x2012d1])<0x0&&Object[_0x18015f(0x2a7)]['propertyIsEnumerable'][_0x18015f(0x2ef)](_0x5e07f4,_0x3ce47[_0x2012d1])&&(_0x5d476d[_0x3ce47[_0x2012d1]]=_0x5e07f4[_0x3ce47[_0x2012d1]]);}return _0x5d476d;},be=P['forwardRef'](function(_0x2a3d8b,_0x7ad2a9){const _0x2e937e=_0x23fb60;var _0x15baa1=_0x2a3d8b[_0x2e937e(0x1f0)],_0x4ea556=_0x2a3d8b['id'],_0x27bd3f=_0x2a3d8b[_0x2e937e(0x225)],_0x10f146=_0x2a3d8b[_0x2e937e(0x333)],_0x5f3e2c=Rt(_0x2a3d8b,[_0x2e937e(0x1f0),'id',_0x2e937e(0x225),_0x2e937e(0x333)]),_0x4d1e58='univerjs-icon\x20univerjs-icon-'[_0x2e937e(0x42c)](_0x4ea556,'\x20')['concat'](_0x27bd3f||'')[_0x2e937e(0x360)](),_0x16f08b=P[_0x2e937e(0x407)]('_'[_0x2e937e(0x42c)](Ut()));return Ae(_0x15baa1,''[_0x2e937e(0x42c)](_0x4ea556),{'defIds':_0x15baa1['defIds'],'idSuffix':_0x16f08b[_0x2e937e(0x247)]},E({'ref':_0x7ad2a9,'className':_0x4d1e58},_0x5f3e2c),_0x10f146);});function Ae(_0x3a7c43,_0x2a280f,_0x251060,_0x5cdd99,_0x4dcec1){const _0x2a07ba=_0x23fb60;return P[_0x2a07ba(0x32b)](_0x3a7c43['tag'],E(E({'key':_0x2a280f},Ot(_0x3a7c43,_0x251060,_0x4dcec1)),_0x5cdd99),(Dt(_0x3a7c43,_0x251060)[_0x2a07ba(0x2c6)]||[])[_0x2a07ba(0x3d1)](function(_0x31daef,_0x577fbc){const _0x1af931=_0x2a07ba;return Ae(_0x31daef,''[_0x1af931(0x42c)](_0x2a280f,'-')[_0x1af931(0x42c)](_0x3a7c43['tag'],'-')[_0x1af931(0x42c)](_0x577fbc),_0x251060,void 0x0,_0x4dcec1);}));}function Ot(_0xe3753e,_0x3820b8,_0x4b8eeb){const _0x1fb15b=_0x23fb60;var _0x153006=E({},_0xe3753e[_0x1fb15b(0x263)]);_0x4b8eeb!=null&&_0x4b8eeb[_0x1fb15b(0x2b8)]&&_0x153006[_0x1fb15b(0x398)]==='colorChannel1'&&(_0x153006['fill']=_0x4b8eeb['colorChannel1']),_0xe3753e['tag']===_0x1fb15b(0x2f5)&&_0x153006['id']&&(_0x153006['id']=_0x153006['id']+_0x3820b8[_0x1fb15b(0x24e)]),Object[_0x1fb15b(0x30c)](_0x153006)[_0x1fb15b(0x3d2)](function(_0x262bc0){const _0x4f1fb8=_0x1fb15b;var _0x22a1df=_0x262bc0[0x0],_0x195db5=_0x262bc0[0x1];_0x22a1df===_0x4f1fb8(0x2f5)&&typeof _0x195db5==_0x4f1fb8(0x1e9)&&(_0x153006[_0x22a1df]=_0x195db5[_0x4f1fb8(0x439)](/url\(#(.*)\)/,_0x4f1fb8(0x1e2)[_0x4f1fb8(0x42c)](_0x3820b8['idSuffix'],')')));});var _0x1a264f=_0x3820b8[_0x1fb15b(0x27b)];return!_0x1a264f||_0x1a264f[_0x1fb15b(0x2c5)]===0x0||(_0xe3753e[_0x1fb15b(0x34c)]==='use'&&_0x153006[_0x1fb15b(0x3a6)]&&(_0x153006['xlink:href']=_0x153006[_0x1fb15b(0x3a6)]+_0x3820b8[_0x1fb15b(0x24e)]),Object['entries'](_0x153006)[_0x1fb15b(0x3d2)](function(_0x3f30d7){const _0x33de7b=_0x1fb15b;var _0x387204=_0x3f30d7[0x0],_0x33368d=_0x3f30d7[0x1];typeof _0x33368d=='string'&&(_0x153006[_0x387204]=_0x33368d[_0x33de7b(0x439)](/url\(#(.*)\)/,_0x33de7b(0x1e2)[_0x33de7b(0x42c)](_0x3820b8['idSuffix'],')')));})),_0x153006;}function Dt(_0x42da8c,_0x59c4e0){const _0x3549a3=_0x23fb60;var _0x13491f,_0x9b9bcc=_0x59c4e0['defIds'];return!_0x9b9bcc||_0x9b9bcc[_0x3549a3(0x2c5)]===0x0?_0x42da8c:_0x42da8c['tag']===_0x3549a3(0x1c3)&&(!((_0x13491f=_0x42da8c[_0x3549a3(0x2c6)])===null||_0x13491f===void 0x0)&&_0x13491f['length'])?E(E({},_0x42da8c),{'children':_0x42da8c[_0x3549a3(0x2c6)]['map'](function(_0x4be83f){const _0x575f5f=_0x3549a3;return typeof _0x4be83f['attrs']['id']==_0x575f5f(0x1e9)&&_0x9b9bcc&&_0x9b9bcc[_0x575f5f(0x243)](_0x4be83f[_0x575f5f(0x263)]['id'])>-0x1?E(E({},_0x4be83f),{'attrs':E(E({},_0x4be83f['attrs']),{'id':_0x4be83f[_0x575f5f(0x263)]['id']+_0x59c4e0[_0x575f5f(0x24e)]})}):_0x4be83f;})}):_0x42da8c;}function Ut(){const _0x5e8091=_0x23fb60;return Math['random']()[_0x5e8091(0x2b4)](0x24)['substring'](0x2,0x8);}be[_0x23fb60(0x1ca)]=_0x23fb60(0x204);var Mt={'tag':'svg','attrs':{'fill':_0x23fb60(0x2e2),'viewBox':_0x23fb60(0x309),'width':_0x23fb60(0x30f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'stroke':_0x23fb60(0x264),'d':_0x23fb60(0x212),'strokeLinecap':_0x23fb60(0x317),'strokeLinejoin':_0x23fb60(0x317),'strokeWidth':1.2}}]},{'tag':_0x23fb60(0x1c3),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23fb60(0x1be)},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'fill':_0x23fb60(0x437),'d':_0x23fb60(0x1f2)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=P['forwardRef'](function(_0x2d810f,_0x4b99f7){const _0x4f1d33=_0x23fb60;return P[_0x4f1d33(0x32b)](be,Object[_0x4f1d33(0x3dd)]({},_0x2d810f,{'id':'off-line-single','ref':_0x4b99f7,'icon':Mt}));});$e[_0x23fb60(0x1ca)]=_0x23fb60(0x21c);var Pt={'tag':'svg','attrs':{'fill':_0x23fb60(0x2e2),'viewBox':_0x23fb60(0x435),'width':'1em','height':_0x23fb60(0x30f)},'children':[{'tag':'g','attrs':{'clipPath':_0x23fb60(0x2db)},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'stroke':_0x23fb60(0x264),'d':_0x23fb60(0x2dc),'strokeLinecap':_0x23fb60(0x317),'strokeLinejoin':_0x23fb60(0x317),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x23fb60(0x3d9),'attrs':{'id':_0x23fb60(0x207)},'children':[{'tag':_0x23fb60(0x2a4),'attrs':{'fill':_0x23fb60(0x437),'d':'M0\x200H16V16H0z','transform':_0x23fb60(0x1de)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=P[_0x23fb60(0x2f9)](function(_0x4dc57e,_0x357c73){const _0x5b8f30=_0x23fb60;return P['createElement'](be,Object[_0x5b8f30(0x3dd)]({},_0x4dc57e,{'id':'on-line-single','ref':_0x357c73,'icon':Pt}));});xe[_0x23fb60(0x1ca)]=_0x23fb60(0x354);const Nt=_0x23fb60(0x1d5),wt=_0x23fb60(0x1f1),Lt=_0x23fb60(0x3a3),yt='univer-online',At=_0x23fb60(0x3cb),H={'onlineStatusIcon':Nt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':yt,'offline':At};function $t(_0x4880ef){const _0x45c323=_0x23fb60;switch(_0x4880ef){case u[_0x45c323(0x2bb)][_0x45c323(0x35b)]:return _0x45c323(0x422);case u[_0x45c323(0x2bb)]['CONFLICT']:return'collabStatus.conflict';case u[_0x45c323(0x2bb)][_0x45c323(0x3b7)]:return _0x45c323(0x381);case u['CollaborationStatus'][_0x45c323(0x32e)]:return _0x45c323(0x340);case u['CollaborationStatus']['AWAITING']:case u[_0x45c323(0x2bb)][_0x45c323(0x216)]:return _0x45c323(0x3ca);case u[_0x45c323(0x2bb)][_0x45c323(0x27a)]:case u['CollaborationStatus'][_0x45c323(0x39e)]:return _0x45c323(0x41b);}}function je(_0xf5e352){const _0x1781bf=_0x23fb60,{status$:_0x8c018d}=_0xf5e352,_0xb18987=R['useObservable'](_0x8c018d,u['CollaborationStatus'][_0x1781bf(0x32e)]),_0x3726cd=R['useDependency'](a[_0x1781bf(0x328)]),_0x532372=R[_0x1781bf(0x369)](u[_0x1781bf(0x387)]),_0x30e538=_0xb18987!==u[_0x1781bf(0x2bb)][_0x1781bf(0x35b)],_0x43637c=_0x3726cd['t']($t(_0xb18987)),_0x5d6792=T[_0x1781bf(0x219)](H['onlineStatus'],{[H[_0x1781bf(0x2fd)]]:_0x30e538,[H[_0x1781bf(0x210)]]:!_0x30e538}),_0x1a0131=_0x30e538?w[_0x1781bf(0x2ff)](xe,{}):w[_0x1781bf(0x2ff)]($e,{}),_0x468c23=P[_0x1781bf(0x2e4)](()=>{const _0x1cd9e7=_0x1781bf;_0x30e538||_0x532372[_0x1cd9e7(0x25b)]();},[_0x30e538,_0x532372]);function _0x17a90e(){const _0x316646=_0x1781bf;return w['jsxs'](_0x316646(0x2af),{'className':T[_0x316646(0x219)](_0x5d6792,'univer-flex\x20univer-items-center'),'onClick':_0x468c23,'children':[w[_0x316646(0x2ff)](_0x316646(0x2af),{'className':H[_0x316646(0x265)],'children':_0x1a0131}),w[_0x316646(0x2ff)](_0x316646(0x2af),{'className':H['onlineStatusTitle'],'children':_0x43637c})]});}return _0x30e538?_0x17a90e():w[_0x1781bf(0x2ff)](T[_0x1781bf(0x3e0)],{'title':_0x3726cd['t'](_0x1781bf(0x39f)),'children':_0x17a90e()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2e098d,_0x5f4daa,_0x3f56be,_0x4f8678)=>{const _0x5888dc=_0x23fb60;for(var _0x3d0051=_0x4f8678>0x1?void 0x0:_0x4f8678?xt(_0x5f4daa,_0x3f56be):_0x5f4daa,_0x4d59c1=_0x2e098d[_0x5888dc(0x2c5)]-0x1,_0x443f35;_0x4d59c1>=0x0;_0x4d59c1--)(_0x443f35=_0x2e098d[_0x4d59c1])&&(_0x3d0051=_0x443f35(_0x3d0051)||_0x3d0051);return _0x3d0051;},V=(_0x3632ab,_0x59ad4b)=>(_0x39ed63,_0x420850)=>_0x59ad4b(_0x39ed63,_0x420850,_0x3632ab);exports[_0x23fb60(0x36c)]=class extends a[_0x23fb60(0x325)]{constructor(_0x141d65,_0x14db06,_0x12f7a3,_0x120d6a){const _0x400ff3=_0x23fb60;super(),h(this,_0x400ff3(0x357),new d[(_0x400ff3(0x273))](u[_0x400ff3(0x2bb)][_0x400ff3(0x32e)])),(this[_0x400ff3(0x208)]=_0x141d65,this[_0x400ff3(0x348)]=_0x14db06,this['_collaborationController']=_0x12f7a3,this['_uiPartsService']=_0x120d6a,this['_initStatusComponent'](),this[_0x400ff3(0x22b)]());}[_0x23fb60(0x22b)](){const _0x1c964b=_0x23fb60;this[_0x1c964b(0x384)](this['_univerInstanceService']['focused$'][_0x1c964b(0x237)](d[_0x1c964b(0x3de)](()=>{const _0x29e01b=_0x1c964b,_0x2208dd=this[_0x29e01b(0x208)][_0x29e01b(0x2ba)]();return _0x2208dd?this[_0x29e01b(0x3d7)]['getCollabEntity$'](_0x2208dd[_0x29e01b(0x236)]()):d['of'](null);}),d[_0x1c964b(0x3de)](_0x163186=>_0x163186?_0x163186[_0x1c964b(0x38f)]:d['of'](u[_0x1c964b(0x2bb)][_0x1c964b(0x32e)])))[_0x1c964b(0x285)](_0x214a00=>{const _0x2598bb=_0x1c964b;this[_0x2598bb(0x357)][_0x2598bb(0x1da)](_0x214a00);}));}[_0x23fb60(0x36f)](){const _0x24a31c=_0x23fb60;this[_0x24a31c(0x384)](this['_uiPartsService'][_0x24a31c(0x25c)](R['BuiltInUIPart']['HEADER_MENU'],()=>R['connectInjector'](kt({'status$':this[_0x24a31c(0x357)][_0x24a31c(0x337)]()}),this['_injector'])));}},exports[_0x23fb60(0x36c)]=jt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),V(0x2,a[_0x23fb60(0x203)](u[_0x23fb60(0x314)])),V(0x3,R[_0x23fb60(0x3ce)])],exports[_0x23fb60(0x36c)]);function kt(_0x2777bb){const {status$:_0x8a1fb5}=_0x2777bb;return function(){return w['jsx'](je,{'status$':_0x8a1fb5});};}var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0x3402e3,_0x1c38a0,_0x1e5838,_0x557ca5)=>{for(var _0x236a61=_0x557ca5>0x1?void 0x0:_0x557ca5?Bt(_0x1c38a0,_0x1e5838):_0x1c38a0,_0xeb165d=_0x3402e3['length']-0x1,_0x1595b4;_0xeb165d>=0x0;_0xeb165d--)(_0x1595b4=_0x3402e3[_0xeb165d])&&(_0x236a61=_0x1595b4(_0x236a61)||_0x236a61);return _0x236a61;},A=(_0x4621a9,_0x2f1912)=>(_0x2d2e28,_0x32a55a)=>_0x2f1912(_0x2d2e28,_0x32a55a,_0x4621a9);let z=class extends a[_0x23fb60(0x325)]{constructor(_0x178cb2,_0x34792b,_0x46ccd9,_0x97d0e4,_0x1532e5,_0x38c63d){const _0x12fb5c=_0x23fb60;super(),this[_0x12fb5c(0x2a0)]=_0x178cb2,this[_0x12fb5c(0x399)]=_0x34792b,this['_collaborationUIEventService']=_0x46ccd9,this[_0x12fb5c(0x42f)]=_0x97d0e4,this[_0x12fb5c(0x2e8)]=_0x1532e5,this[_0x12fb5c(0x413)]=_0x38c63d,this[_0x12fb5c(0x2fc)](),this[_0x12fb5c(0x3e8)]();}['_setupBeforeClosingHandler'](){const _0x582647=_0x23fb60;this[_0x582647(0x384)](this[_0x582647(0x2a0)][_0x582647(0x3fc)](()=>{const _0x112ca6=_0x582647;if(this['_localCacheService'][_0x112ca6(0x2cd)][_0x112ca6(0x376)])return this['_localeService']['t'](_0x112ca6(0x349));}));}[_0x23fb60(0x3e8)](){const _0x455165=_0x23fb60;this[_0x455165(0x384)](this[_0x455165(0x2c4)]['event$'][_0x455165(0x285)](_0x1aa39c=>{const _0xfa20ee=_0x455165;_0x1aa39c['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)][_0xfa20ee(0x3b1)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x40a)]&&this['_messageService'][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)][_0xfa20ee(0x3b1)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)]['PERMISSION_DENIED']&&this[_0xfa20ee(0x2e8)][_0xfa20ee(0x24f)]({'title':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x1c0)),'content':this['_localeService']['t']('permission.content'),'type':_0xfa20ee(0x311),'duration':0x0}),_0x1aa39c['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T['MessageType'][_0xfa20ee(0x3be)],'content':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x321))+'('+_0x1aa39c[_0xfa20ee(0x2d8)]+')'}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x1c8)]&&this[_0xfa20ee(0x42f)]['show']({'type':T[_0xfa20ee(0x29c)]['Warning'],'content':this[_0xfa20ee(0x413)]['t'](_0x1aa39c[_0xfa20ee(0x2d8)]||'')}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x252)]&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)]['Warning'],'content':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x400))}),_0x1aa39c['id']===u[_0xfa20ee(0x2f7)][_0xfa20ee(0x3c0)]&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)]['Error'],'content':this['_localeService']['t'](_0xfa20ee(0x283))}),_0x1aa39c['id']===u['CollaborationUIEventId'][_0xfa20ee(0x1fc)]&&this[_0xfa20ee(0x42f)][_0xfa20ee(0x24f)]({'type':T[_0xfa20ee(0x29c)][_0xfa20ee(0x3be)],'content':this[_0xfa20ee(0x413)]['t'](_0xfa20ee(0x350))});}));}};z=Ht([A(0x0,R[_0x23fb60(0x3a7)]),A(0x1,u[_0x23fb60(0x2ea)]),A(0x2,a[_0x23fb60(0x203)](u[_0x23fb60(0x1f8)])),A(0x3,R[_0x23fb60(0x315)]),A(0x4,R[_0x23fb60(0x33b)]),A(0x5,a[_0x23fb60(0x203)](a['LocaleService']))],z);const Wt=_0x23fb60(0x313),Me={},Ee=a[_0x23fb60(0x32c)](_0x23fb60(0x23c));var Ft=Object[_0x23fb60(0x3f3)],Yt=(_0x5ebaee,_0x1816ae,_0x5b9c98,_0x3826bc)=>{const _0x25f7f9=_0x23fb60;for(var _0xb96773=_0x3826bc>0x1?void 0x0:_0x3826bc?Ft(_0x1816ae,_0x5b9c98):_0x1816ae,_0x104282=_0x5ebaee[_0x25f7f9(0x2c5)]-0x1,_0x3e8283;_0x104282>=0x0;_0x104282--)(_0x3e8283=_0x5ebaee[_0x104282])&&(_0xb96773=_0x3e8283(_0xb96773)||_0xb96773);return _0xb96773;},W=(_0x16e1c9,_0xe9a5a1)=>(_0x3f88f2,_0x294bda)=>_0xe9a5a1(_0x3f88f2,_0x294bda,_0x16e1c9);exports['CollaborationDataLoaderController']=class extends a[_0x23fb60(0x2e3)]{constructor(_0x715e9c,_0x20dfcd,_0x5ae400,_0xf9c8fb,_0x170490){const _0x5d170b=_0x23fb60;super(),this['_urlService']=_0x715e9c,this[_0x5d170b(0x2f3)]=_0x20dfcd,this['_commandService']=_0x5ae400,this[_0x5d170b(0x3df)]=_0xf9c8fb,_0x170490?_0x170490==null||_0x170490[_0x5d170b(0x31f)]()['then'](()=>this['_init']()):(this[_0x5d170b(0x2f3)][_0x5d170b(0x267)](_0x5d170b(0x2d4),_0x5d170b(0x1fa)),this['_init']());}async[_0x23fb60(0x238)](){const _0x13db4d=_0x23fb60,_0x139200=this[_0x13db4d(0x1f5)][_0x13db4d(0x2bf)](_0x13db4d(0x408)),_0xf400c3=this[_0x13db4d(0x1f5)][_0x13db4d(0x2bf)](_0x13db4d(0x3cc)),_0x23380e=this[_0x13db4d(0x1f5)]['getParam'](_0x13db4d(0x2bc));if(!_0x139200||!_0xf400c3){this[_0x13db4d(0x2f3)][_0x13db4d(0x267)](_0x13db4d(0x2d4),_0x13db4d(0x425));return;}const _0x4eeb5f=await this['_dataLoaderService'][_0x13db4d(0x3c6)](_0x139200,Number(_0xf400c3),_0x23380e);_0x4eeb5f&&_0x4eeb5f instanceof a['Workbook']&&this[_0x13db4d(0x1fe)](_0x4eeb5f);}async['_setupSubUnitSync'](_0x47736c){const _0x2cac82=_0x23fb60;await this[_0x2cac82(0x299)](_0x47736c),_0x47736c[_0x2cac82(0x257)]['pipe'](d['takeUntil'](this[_0x2cac82(0x220)]))[_0x2cac82(0x285)](_0x1edc61=>{const _0x2cc2b5=_0x2cac82;_0x1edc61&&this[_0x2cc2b5(0x423)](_0x1edc61);}),this[_0x2cac82(0x1f5)]['urlChange$']['pipe'](d[_0x2cac82(0x2de)](this[_0x2cac82(0x220)]))[_0x2cac82(0x285)](()=>this[_0x2cac82(0x299)](_0x47736c));}['_updateURLWithCurrentState'](_0x38b62a,_0xdf62b8=!0x1){const _0x15e830=_0x23fb60,_0x50e3da=this[_0x15e830(0x1f5)]['getParam']('subunit');_0x38b62a[_0x15e830(0x2ec)]()!==_0x50e3da&&this[_0x15e830(0x1f5)][_0x15e830(0x202)](_0x15e830(0x2bc),_0x38b62a['getSheetId'](),_0xdf62b8);}async[_0x23fb60(0x299)](_0x3cf229){const _0x435b67=_0x23fb60;var _0xa44871;const _0x2041e8=this['_urlService'][_0x435b67(0x2bf)](_0x435b67(0x2bc));if(!_0x2041e8||!_0x3cf229[_0x435b67(0x33f)](_0x2041e8)){const _0x278ae2=_0x3cf229[_0x435b67(0x417)]()[0x0],_0x5cf7e9=_0x3cf229['getSheetBySheetId'](_0x278ae2);if(!_0x5cf7e9)return;this['_updateURLWithCurrentState'](_0x5cf7e9,!0x0),await this[_0x435b67(0x3f0)][_0x435b67(0x3f4)](I[_0x435b67(0x41e)]['id'],{'unitId':_0x3cf229[_0x435b67(0x236)](),'subUnitId':_0x278ae2});return;}((_0xa44871=_0x3cf229[_0x435b67(0x3bb)]())==null?void 0x0:_0xa44871[_0x435b67(0x2ec)]())!==_0x2041e8&&await this['_commandService'][_0x435b67(0x3f4)](I[_0x435b67(0x41e)]['id'],{'unitId':_0x3cf229[_0x435b67(0x236)](),'subUnitId':_0x2041e8});}},exports[_0x23fb60(0x2e1)]=Yt([W(0x0,Ee),W(0x1,a[_0x23fb60(0x426)]),W(0x2,a['ICommandService']),W(0x3,a['Inject'](u['DataLoaderService'])),W(0x4,a['Optional'](Ke[_0x23fb60(0x368)]))],exports[_0x23fb60(0x2e1)]);var Xt=Object[_0x23fb60(0x3f3)],Vt=(_0x556727,_0x3ced85,_0x3c660a,_0x257b56)=>{const _0xc06f24=_0x23fb60;for(var _0x824c3b=_0x257b56>0x1?void 0x0:_0x257b56?Xt(_0x3ced85,_0x3c660a):_0x3ced85,_0x17b349=_0x556727[_0xc06f24(0x2c5)]-0x1,_0x2ac83e;_0x17b349>=0x0;_0x17b349--)(_0x2ac83e=_0x556727[_0x17b349])&&(_0x824c3b=_0x2ac83e(_0x824c3b)||_0x824c3b);return _0x824c3b;},le=(_0xf830ba,_0x407781)=>(_0x501adf,_0x57db5e)=>_0x407781(_0x501adf,_0x57db5e,_0xf830ba);let J=class{constructor(_0x5b1d6d,_0x1b7e80,_0x402c71){const _0x2707e2=_0x23fb60;this[_0x2707e2(0x348)]=_0x5b1d6d,this[_0x2707e2(0x24c)]=_0x1b7e80,this[_0x2707e2(0x2f1)]=_0x402c71;}[_0x23fb60(0x356)](_0xa38737){const _0x9934cf=_0x23fb60;this[_0x9934cf(0x30a)](_0xa38737),this[_0x9934cf(0x43e)](_0xa38737);}['transformRemoteChangeset'](_0x1967c0){const _0x3f1cf3=_0x23fb60,{unitID:_0x5b68c1}=_0x1967c0,_0x4f6091=this[_0x3f1cf3(0x2f1)]['getRenderById'](_0x5b68c1)[_0x3f1cf3(0x335)](b['DocIMEInputManagerService']),{redoCache:_0x55e726}=_0x4f6091[_0x3f1cf3(0x35c)]();if(_0x55e726[_0x3f1cf3(0x2c5)]===0x0)return _0x1967c0;let _0x23daf3=a[_0x3f1cf3(0x1df)][_0x3f1cf3(0x20b)](_0x1967c0['mutations'][0x0]);for(let _0x31e637=0x0;_0x31e637<_0x55e726[_0x3f1cf3(0x2c5)];_0x31e637++){const _0xbf09c6={'id':'doc.mutation.rich-text-editing','params':{..._0x55e726[_0x31e637]}},_0x13f221=this['_transformService']['transformMutation'](_0x23daf3,_0xbf09c6,!0x1);if(m[_0x3f1cf3(0x346)](_0x13f221))throw _0x13f221[_0x3f1cf3(0x311)];_0x23daf3=_0x13f221['m1Prime'];}return{...a[_0x3f1cf3(0x1df)]['deepClone'](_0x1967c0),'mutations':[_0x23daf3]};}[_0x23fb60(0x30a)](_0xba926){const _0x43bdf3=_0x23fb60,{unitID:_0x3f24c5}=_0xba926,_0xd602c7=this['_renderManagerService'][_0x43bdf3(0x1e8)](_0x3f24c5)[_0x43bdf3(0x335)](b['DocIMEInputManagerService']),{undoCache:_0xc533be,redoCache:_0x14a445}=_0xd602c7['getUndoRedoMutationParamsCache']();if(_0xc533be[_0x43bdf3(0x2c5)]===0x0||_0x14a445[_0x43bdf3(0x2c5)]===0x0)return;const _0x168e1b=[],_0x231b24=[];let _0x1bee50=a['Tools'][_0x43bdf3(0x20b)](_0xba926[_0x43bdf3(0x2c8)][0x0]),_0x144548=a['Tools'][_0x43bdf3(0x20b)](_0xba926[_0x43bdf3(0x2c8)][0x0]);for(let _0x346a47=_0xc533be['length']-0x1;_0x346a47>=0x0;_0x346a47--){const _0x5f5bab={'id':_0x43bdf3(0x397),'params':{..._0xc533be[_0x346a47]}},_0x495e7b={'id':'doc.mutation.rich-text-editing','params':{..._0x14a445[_0x346a47]}},_0x373739=this['_transformService']['transformMutation'](_0x1bee50,_0x5f5bab,!0x1),_0xfa206b=this[_0x43bdf3(0x24c)][_0x43bdf3(0x1cc)](_0x144548,_0x495e7b,!0x1);if(m[_0x43bdf3(0x346)](_0x373739))throw _0x373739['error'];if(m[_0x43bdf3(0x346)](_0xfa206b))throw _0xfa206b[_0x43bdf3(0x311)];_0x168e1b[_0x43bdf3(0x294)](_0x373739[_0x43bdf3(0x312)]['params']),_0x231b24[_0x43bdf3(0x294)](_0xfa206b[_0x43bdf3(0x312)]['params']),_0x1bee50=_0x373739[_0x43bdf3(0x256)],_0x144548=_0xfa206b['m1Prime'];}_0xd602c7[_0x43bdf3(0x22c)]({'undoCache':_0x168e1b,'redoCache':_0x231b24});}[_0x23fb60(0x43e)](_0x1ad3a0){const _0x449e5e=_0x23fb60,{unitID:_0xd6111c}=_0x1ad3a0,_0x2d6f1c=this[_0x449e5e(0x2f1)][_0x449e5e(0x1e8)](_0xd6111c)[_0x449e5e(0x335)](b[_0x449e5e(0x2b6)]),_0x33d2c7=_0x2d6f1c[_0x449e5e(0x3c7)]();if(_0x33d2c7==null)return;const _0x525fde=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ad3a0[_0x449e5e(0x37c)],'actions':null,'textRanges':[_0x33d2c7]}}],_0x9a1fd9=this[_0x449e5e(0x24c)][_0x449e5e(0x302)](_0x1ad3a0,_0x525fde);if(!m[_0x449e5e(0x26c)](_0x9a1fd9))throw _0x9a1fd9[_0x449e5e(0x311)];const _0x465473=_0x9a1fd9[_0x449e5e(0x312)][0x0]['params'][_0x449e5e(0x38a)];Array['isArray'](_0x465473)&&_0x465473['length']&&_0x2d6f1c[_0x449e5e(0x259)](_0x465473[0x0]);}};J=Vt([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x23fb60(0x22e)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x57e869,_0x5d8e10,_0x16d6db,_0x26b45b)=>{const _0x4040cd=_0x23fb60;for(var _0x4bf949=_0x26b45b>0x1?void 0x0:_0x26b45b?Gt(_0x5d8e10,_0x16d6db):_0x5d8e10,_0x458f46=_0x57e869[_0x4040cd(0x2c5)]-0x1,_0x1afe67;_0x458f46>=0x0;_0x458f46--)(_0x1afe67=_0x57e869[_0x458f46])&&(_0x4bf949=_0x1afe67(_0x4bf949)||_0x4bf949);return _0x4bf949;},he=(_0x2a0f45,_0x45ed62)=>(_0x173f66,_0x4f52fc)=>_0x45ed62(_0x173f66,_0x4f52fc,_0x2a0f45);let Z=class{constructor(_0x5bbe31,_0x237f21,_0x56bdad){const _0x3f01fb=_0x23fb60;this[_0x3f01fb(0x348)]=_0x5bbe31,this[_0x3f01fb(0x24c)]=_0x237f21,this[_0x3f01fb(0x419)]=_0x56bdad;}[_0x23fb60(0x274)](_0x2d09a6){const _0x59faed=_0x23fb60;this[_0x59faed(0x2f2)](_0x2d09a6);}[_0x23fb60(0x290)](_0x3b21f6){const _0x19a9aa=_0x23fb60,{unitID:_0x400d80}=_0x3b21f6,{collaboration:_0x153bf7}=this['_docStateChangeManagerService'][_0x19a9aa(0x2c2)](_0x400d80);if(_0x153bf7['length']===0x0)return _0x3b21f6;let _0x53274e=a[_0x19a9aa(0x1df)]['deepClone'](_0x3b21f6[_0x19a9aa(0x2c8)][0x0]);for(let _0x3af50b=0x0;_0x3af50b<_0x153bf7[_0x19a9aa(0x2c5)];_0x3af50b++){const _0x2ffe24={'id':_0x19a9aa(0x397),'params':{'unitId':_0x153bf7[_0x3af50b][_0x19a9aa(0x206)],..._0x153bf7[_0x3af50b][_0x19a9aa(0x338)]}},_0x218f59=this[_0x19a9aa(0x24c)]['transformMutation'](_0x53274e,_0x2ffe24,!0x1);if(m['isTransformMutationFailure'](_0x218f59))throw _0x218f59[_0x19a9aa(0x311)];_0x53274e=_0x218f59['m1Prime'];}return{...a[_0x19a9aa(0x1df)][_0x19a9aa(0x20b)](_0x3b21f6),'mutations':[_0x53274e]};}[_0x23fb60(0x2f2)](_0xf3d8e4){const _0x1dc712=_0x23fb60,{unitID:_0x470877}=_0xf3d8e4,{history:_0x34130a,collaboration:_0x259ff2}=this['_docStateChangeManagerService'][_0x1dc712(0x2c2)](_0x470877);if(_0x34130a[_0x1dc712(0x2c5)]===0x0&&_0x259ff2[_0x1dc712(0x2c5)]===0x0)return;const _0x53bd97=[],_0x32685e=[];let _0x309be4=a[_0x1dc712(0x1df)]['deepClone'](_0xf3d8e4['mutations'][0x0]),_0xe5dc19=a['Tools'][_0x1dc712(0x20b)](_0xf3d8e4[_0x1dc712(0x2c8)][0x0]);for(let _0x399587=_0x34130a['length']-0x1;_0x399587>=0x0;_0x399587--){const _0x5df52c={'id':_0x1dc712(0x397),'params':{'unitId':_0x34130a[_0x399587][_0x1dc712(0x206)],..._0x34130a[_0x399587]['undoState']}},_0x2f278a={'id':_0x1dc712(0x397),'params':{'unitId':_0x34130a[_0x399587][_0x1dc712(0x206)],..._0x34130a[_0x399587][_0x1dc712(0x338)]}},_0x40a818=this[_0x1dc712(0x24c)][_0x1dc712(0x1cc)](_0x309be4,_0x5df52c,!0x1),_0x19b313=this[_0x1dc712(0x24c)][_0x1dc712(0x1cc)](_0xe5dc19,_0x2f278a,!0x1);if(m[_0x1dc712(0x346)](_0x40a818))throw _0x40a818[_0x1dc712(0x311)];if(m[_0x1dc712(0x346)](_0x19b313))throw _0x19b313[_0x1dc712(0x311)];_0x53bd97['unshift']({..._0x34130a[_0x399587],'undoState':_0x40a818[_0x1dc712(0x312)][_0x1dc712(0x2a5)],'redoState':_0x19b313[_0x1dc712(0x312)][_0x1dc712(0x2a5)]}),_0x309be4=_0x40a818[_0x1dc712(0x256)],_0xe5dc19=_0x19b313[_0x1dc712(0x256)];}_0x309be4=a['Tools'][_0x1dc712(0x20b)](_0xf3d8e4[_0x1dc712(0x2c8)][0x0]),_0xe5dc19=a[_0x1dc712(0x1df)][_0x1dc712(0x20b)](_0xf3d8e4[_0x1dc712(0x2c8)][0x0]);for(let _0x3e48bc=_0x259ff2[_0x1dc712(0x2c5)]-0x1;_0x3e48bc>=0x0;_0x3e48bc--){const _0x539059={'id':_0x1dc712(0x397),'params':{'unitId':_0x259ff2[_0x3e48bc][_0x1dc712(0x206)],..._0x259ff2[_0x3e48bc][_0x1dc712(0x424)]}},_0x10ad09={'id':_0x1dc712(0x397),'params':{'unitId':_0x259ff2[_0x3e48bc]['unitId'],..._0x259ff2[_0x3e48bc][_0x1dc712(0x338)]}},_0x22faeb=this[_0x1dc712(0x24c)]['transformMutation'](_0x309be4,_0x539059,!0x1),_0x5a5988=this[_0x1dc712(0x24c)][_0x1dc712(0x1cc)](_0xe5dc19,_0x10ad09,!0x1);if(m[_0x1dc712(0x346)](_0x22faeb))throw _0x22faeb[_0x1dc712(0x311)];if(m[_0x1dc712(0x346)](_0x5a5988))throw _0x5a5988[_0x1dc712(0x311)];_0x32685e[_0x1dc712(0x294)]({..._0x259ff2[_0x3e48bc],'undoState':_0x22faeb['m2Prime'][_0x1dc712(0x2a5)],'redoState':_0x5a5988[_0x1dc712(0x312)][_0x1dc712(0x2a5)]}),_0x309be4=_0x22faeb['m1Prime'],_0xe5dc19=_0x5a5988[_0x1dc712(0x256)];}this[_0x1dc712(0x419)]['setStateCache'](_0x470877,{'history':_0x53bd97,'collaboration':_0x32685e});}};Z=qt([he(0x0,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),he(0x1,m[_0x23fb60(0x22e)]),he(0x2,a[_0x23fb60(0x203)](b[_0x23fb60(0x1ff)]))],Z);var Kt=Object[_0x23fb60(0x3f3)],zt=(_0x11d9c0,_0x2187ba,_0x57dfd1,_0x4024bc)=>{const _0x15f6ca=_0x23fb60;for(var _0x4bba10=_0x4024bc>0x1?void 0x0:_0x4024bc?Kt(_0x2187ba,_0x57dfd1):_0x2187ba,_0x593646=_0x11d9c0[_0x15f6ca(0x2c5)]-0x1,_0x2cf1aa;_0x593646>=0x0;_0x593646--)(_0x2cf1aa=_0x11d9c0[_0x593646])&&(_0x4bba10=_0x2cf1aa(_0x4bba10)||_0x4bba10);return _0x4bba10;},Pe=(_0x422659,_0x1fc043)=>(_0x1ee3a5,_0x3657e7)=>_0x1fc043(_0x1ee3a5,_0x3657e7,_0x422659);function _0x9264(_0x1827cd,_0x307b59){const _0x3aac70=_0x3aac();return _0x9264=function(_0x926406,_0x27b302){_0x926406=_0x926406-0x1bc;let _0x162b10=_0x3aac70[_0x926406];return _0x162b10;},_0x9264(_0x1827cd,_0x307b59);}let Q=class{constructor(_0x1434c9,_0x500b44){const _0x1be5ad=_0x23fb60;this[_0x1be5ad(0x348)]=_0x1434c9,this[_0x1be5ad(0x24c)]=_0x500b44;}['transformSelections'](_0x4dda6f){const _0x2d63fa=_0x23fb60;var _0x40947c;const _0x4ddf2a=this[_0x2d63fa(0x348)]['get'](Y['DocSelectionManagerService']),_0x406e0=(_0x40947c=_0x4ddf2a[_0x2d63fa(0x1f6)]())!=null?_0x40947c:[];if(_0x406e0[_0x2d63fa(0x2c5)]===0x0)return;const _0x3c2a82=_0x4dda6f[_0x2d63fa(0x37c)],_0x81e2=[{'id':_0x2d63fa(0x397),'params':{'unitId':_0x3c2a82,'actions':null,'textRanges':_0x406e0}}],_0x4e34b9=this[_0x2d63fa(0x24c)]['transformMutationsWithChangeset'](_0x4dda6f,_0x81e2);if(!m[_0x2d63fa(0x26c)](_0x4e34b9))throw _0x4e34b9[_0x2d63fa(0x311)];const _0x224da8=_0x4e34b9[_0x2d63fa(0x312)][0x0][_0x2d63fa(0x2a5)][_0x2d63fa(0x38a)];Array[_0x2d63fa(0x3b3)](_0x224da8)&&_0x224da8[_0x2d63fa(0x2c5)]&&_0x4ddf2a[_0x2d63fa(0x2c9)](_0x224da8,{'unitId':_0x3c2a82,'subUnitId':_0x3c2a82},!0x1);}};Q=zt([Pe(0x0,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),Pe(0x1,m[_0x23fb60(0x22e)])],Q);function _0x3aac(){const _0x4d9971=['isTransformMutationFailure','beginPath','_injector','collaboration-client.offline-data-not-saved','collabCursorState$','SessionStatus','tag','WebBrowserSingleActiveUnitService','subUnitId','@univerjs/network','session.collaboration-timeout','YUUMI_UNABLE_LOAD_URL','getOwnPropertySymbols','_refRangeService','OnLineSingle','disableLocalCache','transformIMECache','_status$','origin','@univerjs/docs-ui','LICENSE_DISTRO_REJECTED','OFFLINE','getUndoRedoMutationParamsCache','entityInit$','DOC_RANGE_TYPE','192wXnRjJ','trim','closePath','values','InsertRangeMoveRightCommandId','cursorInfo','UPDATE_CURSOR','toStringTag','_getSheetObject','IRemoteInstanceService','useDependency','handleDeleteRangeMoveUp','2671446bYgxbx','DesktopCollaborationStatusDisplayController','resize','toRgbString','_initStatusComponent','isActive','UNDEFINED','CollaborationSocketService','_roomMembers$','arc','MemberService','size','Shape','handleIRemoveRow','disposeUnit','UniverCollaborationClientPlugin','stringify','unitID','_updateLocalCursor','rxjs','_saveCache','ONLINE','collabStatus.fetchMiss','unsubscribe','3343110qzmELx','disposeWithMe','getValue','@univerjs-pro/collaboration-client','CollaborationSessionService','handleMoveRange','ALREADY_EXISTS','textRanges','color','_handleJoinEvent','setShapeProps','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','status$','_ensureSubject','@univerjs/core','LICENSE_MAX_UNITS_EXCEEDED','APPLY_PERMISSION_DENIED','DisposableCollection','_scheduleClearOtherTimer','COLORS','doc.mutation.rich-text-editing','fill','_localCacheService','IConfigService','memberID','syncEditingCollabCursor','NO_OTHER_CLIENTS_EDITING','PENDING','collab-client.tooltip.reconnect','_backgroundColor','getTypeOfUnitDisposed$','init','univer-online-status','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','RevisionService','xlink:href','IBeforeCloseService','fillText','CommandType','UniverInstanceType','min','_configService','registerRefRange','SheetSkeletonManagerService','docStateChange$','_updateCollabCursors','Warning','_syncEditingCollabCursorService','isArray','_handleHeartbeatEvent','APPLY_REVISION_CONFILICT','flatMap','FETCH_MISS','set','BrowserCollaborationSocketService','_hovered','getActiveSheet','contains','_id','Error','currentTheme$','SOCKET_FAILED','onRendered','_scene','NOT_FOUND','_instanceService','bottom','loadUnit','getActiveRange','red300','3184377QPQpod','collabStatus.syncing','univer-offline','type','_docSyncEditingCollabCursorService','IUIPartsService','deserializeRangeWithSheet','_handleHover','map','forEach','RegularPolygon','@univerjs/engine-render','_docTransformSelectionsService','_registerRenderDependencies','_collaborationController','ticket','clipPath','291265OpACCN','black','invokeId','assign','switchMap','_dataLoaderService','Tooltip','_docSkeletonManagerService','height','DeleteRangeMoveLeftCommandId','_cachedData','roomMembers','complete','_themeService','_initEvent','application/json','CHANGESET_REVISION_CONFILICT','_assignedColors','1845580yryzvc','source','measureText','InsertRangeMoveDownCommandId','_commandService','from','text','getOwnPropertyDescriptor','executeCommand','USERS_LEAVE','RichTextEditingMutation','getViewport','_collabSessionService','getRangePointData','HTTPService','merge','registerBeforeClose','function','NodePositionConvertToRectRange','42741wkXcGj','session.will-retry','setInterval','DeleteRangeMoveUpCommandId','MoveRangeCommandId','_getSaveTimeout','APPLY_REJECT','fillStyle','useRef','unit','name','CLOSE_ROOM','engine','_collabCursorState$','123GlDvMD','getLocalCacheKey','UNAUTHENTICATED','onPointerEnter$','hide','UniverCollaborationClientUIPlugin','_localeService','apply','DocSelectionManagerService','_unitOnClients','getUnhiddenWorksheets','throttleTime','_docStateChangeManagerService','_initCommandExecutedListener','collabStatus.synced','href','getUnitStatus$','SetWorksheetActivateCommand','_eventUnsubscribe','column','isEditing','collabStatus.offline','_updateURLWithCurrentState','undoState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ILogService','_colorAssignService','saveOfflineData','_initDependencies','_context','@univerjs/sheets-ui','concat','Vector2','_imageIoService','_messageService','_scheduleHeartbeat','fillRule','transform','_toggleOnline','_startDocCollabCursor','0\x200\x2017\x2016','CONNECTOR_DATA_TOO_LARGE','#fff','verdancy600','replace','_cursor','push','_session','pluginName','_transformPreviousActiveRange','findNodePositionByCharIndex','searchParams','actions','save','_refreshCollabCursors','_cursors','off-line-single_clip0_910_343','react/jsx-runtime','permission.title','key','requireSession','defs','_shapes','triggerDblclick','_registerDependencies','ICommandService','JOIN_ROOM_FAILED','history','displayName','VIEW_MAIN','transformMutation','ISocketService','@univerjs/sheets','event$','48oWCrbo','Failed','_clearOtherTimers','_color','IDocClipboardService','univer-online-status-icon','DEFAULT_WS_SESSION_TICKET_URL','drawWith','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','all','next','collab-text-range-','endRow','defineProperty','translate(.97)','Tools','includes','startsWith','url(#$1','imageSourceType','evenodd','font','endColumn','clearInterval','getRenderById','string','_startSheetCollabCursor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','addObject','SNAPSHOT_HAS_BEEN_REMOVED','addObjects','_heartbeatTimer','icon','univer-online-status-title','M0\x200H16V16H0z','_labelPosition','UNIVER_DOC','_urlService','getDocRanges','dispose','CollaborationUIEventService','_docTransformStateCacheService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onRefRangeChange','SUBMIT_CHANGESET_TIMEOUT','@univerjs/drawing','_setupSubUnitSync','DocStateChangeManagerService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','InsertRowCommandId','setParam','Inject','UniverIcon','_onCursorDelete','unitId','on-line-single_clip0_910_349','_univerInstanceService','RemoteUniscriptService','_getAnchorBounding','deepClone','UNIVER_SHEET','_disabled','backgroundColor','_onCursorUpdate','offline','editingUnit','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','_getScale','makeDirty','/run/','AWAITING_WITH_PENDING','_cursorShapes','registerRenderModule','clsx','body','eventID','OffLineSingle','setItem','find','_drawRectRange','dispose$','_document','_lastPointer','loadOfflineData','@univerjs/rpc','className','getOffsetConfig','_cursorInfo$','parse','@univerjs/engine-formula','Unknown\x20user','_initStatusListener','setUndoRedoMutationParamsCache','getCurrentSelections','ITransformService','post','debounce','_revisionService','16miaJLP','width','has','symbol','getUnitId','pipe','_init','debounceTime','location','moveTo','uni.network.url-service','NodePositionConvertToCursor','_drawAnchor','handleIRemoveCol','override','registerDependencies','delete','indexOf','_hideTimer','_removeCollabCursors','_colorIndex','current','_selfUnitIDs','_drawTextRange','hasOwnProperty','ISnapshotServerService','_transformService','removeParam','idSuffix','show','WebSocketService','APPLY_NON_SEQUENTIAL_REVISION','SOCKET_FAILED_RETRY','cursorInfo$','TEXT_RANGE_LAYER_INDEX','restore','m1Prime','activeSheet$','TEXT','setActiveRange','SetTextSelectionsOperation','reconnect','registerComponent','split','ranges','_render','LICENSE_EXPORT_SIZE_EXCEEDED','onTransformChange$','PERMISSION_DENIED','attrs','currentColor','onlineStatusIcon','newValue','debug','getVpScrollXYInfoByPosToVp','getMemberID','exhaustSavingTask','INTERNAL_ERROR','isTransformMutationsWithChangesetSuccess','Injector','getCurrent','collab-rect-range-','unload','CollaborationEvent','FromArray','BehaviorSubject','transformStateCache','max','toDisposable','ACTIVE_UNIT_EVENT_CHANNEL','@univerjs/design','SHEET_VIEWPORT_KEY','SYNCED','defIds','Subject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','INVALID_ARGUMENT','_anchorDot','TOO_MANY_REQUESTS','LOCAL_CACHE_INTERVAL_KEY','setConfig','session.connection-failed','getTypeOfUnitAdded$','subscribe','onCommandExecuted','InsertColCommandId','some','onMouseMove','urlChange$','ENSURE_SNAPSHOT_EXECUTION','@univerjs/ui','_docTransformIMECacheService','setTimeout','handleInsertRow','transformRemoteChangeset','lineTo','LICENSE_IMPORT_SIZE_EXCEEDED','handleDeleteRangeMoveLeft','unshift','_textBubble','getSheetObject','createInstance','_hover','_updateSubUnitFromURLParams','_httpService','getCurrentRevOfUnit','MessageType','top','startRow','distinctUntilChanged','_beforeCloseService','react','roomMembers$','addClipboardHook','path','params','purple300','prototype','_localStorageService','sheetID','_docClipboardService','IURLService','getCellPositionByOffset','_entities','DocSkeletonManagerService','div','transformSelections','RemoveColCommandId','_handleLeaveEvent','mapTo','toString','labelPosition','DocIMEInputManagerService','getMember','colorChannel1','MUTATION','getFocusedUnit','CollaborationStatus','subunit','CollaborationStatusDisplay','_online','getParam','@univerjs-pro/collaboration','_anchor','getStateCache','handleInsertCol','_collaborationUIEventService','length','children','_memberService','mutations','replaceDocRanges','getConfig','touchDependencies','_getMergeRange','saveTaskMap','fromEvent','OTHER_CLIENTS_EDITING','subscribeEvent','_sheetSkeletonManagerService','UNRECOGNIZED','Module','[CollaborationDataLoaderController]','getAncestorScale','jiqing500','then','data','runId','hovered','url(#on-line-single_clip0_910_349)','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','sessionStatus$','takeUntil','getColor','combineLatest','CollaborationDataLoaderController','none','RxDisposable','useCallback','EffectRefRangId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_removeClearOtherTimer','_notificationService','...','ILocalCacheService','mergeOverrideWithDependencies','getSheetId','getRelativeToViewportCoord','sessionTicket','call','selection','_renderManagerService','_transformHistoryAndStateStack','_logService','sheetId','mask','_toggleOffline','CollaborationUIEventId','getCoordByCell','forwardRef','generateRandomId','assignAColorForMemberID','_setupBeforeClosingHandler','online','YUUMI_URL_COL_OUT_OF_RANGE','jsx','get','transformByState','transformMutationsWithChangeset','currentSkeleton$','rxjs/operators','RECT','getMergeData','Rect','getCollabCursors$','0\x200\x2016\x2016','_transformUndoRedoStack','executionId','entries','addEventListener','_send','1em','YUUMI_SUBSCRIPTION_NOT_FOUND','error','m2Prime','collaboration-client-ui.config','CollaborationController','IMessageService','add','round','_range','Plugin','_config','_docSkeleton','setAlpha','pushState','search','whenReady','940UpSokA','collaboration.closeRoom','IUniverInstanceService','#FFF','_name','Disposable','filter','row','LocaleService','send','_draw','createElement','createIdentifier','clearTimeout','NOT_COLLAB','PY_RUNTIME_SCRIPT_ERROR','_entityInit$','_unitStatus','_saveTaskMap','extend','IImageIoService','with','wsSessionTicketUrl','asObservable','redoState','17966xblQnB','ThemeService','INotificationService','UnitStatus','_collabCursorController','onStarting','getSheetBySheetId','collabStatus.notCollab','COMPLETION_FINISHED','SNAPSHOT_INVALID_SNAPSHOT','onPointerLeave$','gold400','onLocalMutation'];_0x3aac=function(){return _0x4d9971;};return _0x3aac();}var Jt=Object[_0x23fb60(0x3f3)],Zt=(_0x2de6f8,_0x10e150,_0x192e13,_0x1e2695)=>{for(var _0x14fa94=_0x1e2695>0x1?void 0x0:_0x1e2695?Jt(_0x10e150,_0x192e13):_0x10e150,_0x47e900=_0x2de6f8['length']-0x1,_0x48be4a;_0x47e900>=0x0;_0x47e900--)(_0x48be4a=_0x2de6f8[_0x47e900])&&(_0x14fa94=_0x48be4a(_0x14fa94)||_0x14fa94);return _0x14fa94;},M=(_0x5e8b86,_0x4d4b97)=>(_0x4277b7,_0x3aa321)=>_0x4d4b97(_0x4277b7,_0x3aa321,_0x5e8b86);let ee=class extends a[_0x23fb60(0x325)]{constructor(_0x207fb8,_0x2db46e,_0x3bfb4a,_0x54e1da,_0x1e8d1e,_0x116e0b,_0x26411c,_0x9d4225){const _0x40f52d=_0x23fb60;super(),h(this,_0x40f52d(0x357),new d['BehaviorSubject'](u[_0x40f52d(0x2bb)][_0x40f52d(0x32e)])),(this[_0x40f52d(0x419)]=_0x207fb8,this[_0x40f52d(0x3d7)]=_0x2db46e,this[_0x40f52d(0x28d)]=_0x3bfb4a,this[_0x40f52d(0x1f9)]=_0x54e1da,this[_0x40f52d(0x3d5)]=_0x1e8d1e,this[_0x40f52d(0x3cd)]=_0x116e0b,this[_0x40f52d(0x42f)]=_0x26411c,this[_0x40f52d(0x413)]=_0x9d4225,this['_initEntityListener']());}['_initEntityListener'](){const _0x3c3f0b=_0x23fb60;this[_0x3c3f0b(0x384)](this[_0x3c3f0b(0x3d7)][_0x3c3f0b(0x35d)][_0x3c3f0b(0x285)](_0x47d438=>{const _0x21c836=_0x3c3f0b,_0x30c25e=this[_0x21c836(0x419)][_0x21c836(0x3af)]['subscribe'](_0x354f78=>{const _0x180972=_0x21c836;if(_0x354f78==null)return;const {unitId:_0x123742,redoState:_0x35a9a9,commandId:_0x23f46d}=_0x354f78;if(_0x123742!==_0x47d438[_0x180972(0x37c)])return;const _0x47b94f={'id':_0x23f46d,'type':a[_0x180972(0x3a9)][_0x180972(0x2b9)],'params':{'unitId':_0x123742,'actions':_0x35a9a9[_0x180972(0x441)],'textRanges':null}};_0x47d438[_0x180972(0x345)](_0x47b94f);});if(_0x47d438[_0x21c836(0x384)](_0x30c25e),_0x47d438 instanceof u['DocCollaborationEntity']){const _0x4ffba3={'onTransformIME':_0x4a637d=>this[_0x21c836(0x28d)][_0x21c836(0x356)](_0x4a637d),'onTransformState':_0x40b9e3=>this[_0x21c836(0x1f9)][_0x21c836(0x274)](_0x40b9e3),'onTransformSelections':_0x43a42f=>this[_0x21c836(0x3d5)][_0x21c836(0x2b0)](_0x43a42f),'onSyncEditingCollabCursor':_0x2aac38=>this[_0x21c836(0x3cd)][_0x21c836(0x39c)](_0x2aac38),'onTransformRemoteChangesetByIMECache':_0x6b779=>this[_0x21c836(0x28d)][_0x21c836(0x290)](_0x6b779),'onTransformRemoteChangesetByStateCache':_0x349a6d=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x349a6d)};_0x47d438['addHandlerCallback'](_0x4ffba3);}}));}};ee=Zt([M(0x0,a[_0x23fb60(0x203)](b[_0x23fb60(0x1ff)])),M(0x1,a[_0x23fb60(0x203)](u[_0x23fb60(0x314)])),M(0x2,a['Inject'](J)),M(0x3,a[_0x23fb60(0x203)](Z)),M(0x4,a[_0x23fb60(0x203)](Q)),M(0x5,a[_0x23fb60(0x203)](pe)),M(0x6,R[_0x23fb60(0x315)]),M(0x7,a['Inject'](a[_0x23fb60(0x328)]))],ee);var Qt=Object[_0x23fb60(0x3f3)],es=(_0x4953dd,_0x4ba9fc,_0x5dfec4,_0x2a1ab6)=>{const _0x46b75f=_0x23fb60;for(var _0x37537b=_0x2a1ab6>0x1?void 0x0:_0x2a1ab6?Qt(_0x4ba9fc,_0x5dfec4):_0x4ba9fc,_0x534a1=_0x4953dd[_0x46b75f(0x2c5)]-0x1,_0x457500;_0x534a1>=0x0;_0x534a1--)(_0x457500=_0x4953dd[_0x534a1])&&(_0x37537b=_0x457500(_0x37537b)||_0x37537b);return _0x37537b;},_e=(_0x43a47f,_0x1f38dc)=>(_0x53a8da,_0x484c67)=>_0x1f38dc(_0x53a8da,_0x484c67,_0x43a47f);let me=class extends a['Disposable']{constructor(_0x13a476,_0xbd2e4a,_0x10beac){const _0x222da9=_0x23fb60;super(),h(this,_0x222da9(0x3e4),new Map()),h(this,_0x222da9(0x332),new Map()),h(this,'_disabled',!0x1),(this[_0x222da9(0x3ac)]=_0x13a476,this[_0x222da9(0x2a8)]=_0xbd2e4a,this[_0x222da9(0x231)]=_0x10beac);}[_0x23fb60(0x355)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x1b43e6=_0x23fb60;this[_0x1b43e6(0x20d)]=!0x1;}get[_0x23fb60(0x2cd)](){const _0x589454=_0x23fb60;return this[_0x589454(0x332)];}[_0x23fb60(0x1f7)](){const _0x38fecd=_0x23fb60;this[_0x38fecd(0x26a)]()['then'](()=>super['dispose']());}async[_0x23fb60(0x223)](_0x455d0b){const _0x302a71=_0x23fb60;return this[_0x302a71(0x20d)]?null:this['_localStorageService']['getItem'](u[_0x302a71(0x40e)](_0x455d0b));}async[_0x23fb60(0x428)](_0x260737,_0x569f99){const _0x190250=_0x23fb60;return!!this[_0x190250(0x2a8)][_0x190250(0x21d)](_0x260737,_0x569f99);}['updateOfflineData'](_0x424cf0,_0x1b8529,_0x897e,_0xe92f3f){const _0x30ab58=_0x23fb60,_0x519c5b=this['_revisionService'][_0x30ab58(0x29b)](_0x424cf0);this[_0x30ab58(0x3e4)][_0x30ab58(0x3b8)](_0x424cf0,{'unitID':_0x424cf0,'type':_0x1b8529,'awaitingChangeset':_0x897e,'mutations':_0xe92f3f,'rev':_0x519c5b}),this[_0x30ab58(0x332)][_0x30ab58(0x234)](_0x424cf0)||this['_scheduleSaving'](_0x424cf0);}['_scheduleSaving'](_0x3181c1){const _0x50ed14=_0x23fb60,_0x3b74d9=this[_0x50ed14(0x404)]();_0x3b74d9===0x0?this['_saveCache'](_0x3181c1):this['_saveTaskMap'][_0x50ed14(0x3b8)](_0x3181c1,setTimeout(()=>this['_saveCache'](_0x3181c1),_0x3b74d9));}[_0x23fb60(0x404)](){const _0x6ccd31=_0x23fb60;var _0x1b2dc2;return(_0x1b2dc2=this[_0x6ccd31(0x3ac)]['getConfig'](u[_0x6ccd31(0x281)]))!=null?_0x1b2dc2:u['LOCAL_CACHE_INTERVAL'];}[_0x23fb60(0x37f)](_0x441cb8){const _0x21e7b7=_0x23fb60,_0xf281fd=this[_0x21e7b7(0x332)][_0x21e7b7(0x300)](_0x441cb8);return _0xf281fd!==void 0x0&&window[_0x21e7b7(0x32d)](_0xf281fd),this[_0x21e7b7(0x2a8)][_0x21e7b7(0x21d)](u[_0x21e7b7(0x40e)](_0x441cb8),this['_cachedData'][_0x21e7b7(0x300)](_0x441cb8))[_0x21e7b7(0x2d7)](()=>this['_saveTaskMap'][_0x21e7b7(0x242)](_0x441cb8));}async[_0x23fb60(0x26a)](){const _0x52e0db=_0x23fb60,_0xde6849=[];this[_0x52e0db(0x332)]['forEach']((_0x11fbb6,_0x246184)=>{const _0x2367e5=_0x52e0db;window[_0x2367e5(0x32d)](_0x11fbb6),_0xde6849[_0x2367e5(0x43b)](this[_0x2367e5(0x37f)](_0x246184)[_0x2367e5(0x2d7)](()=>{const _0x210e21=_0x2367e5;this[_0x210e21(0x332)][_0x210e21(0x242)](_0x246184);}));}),await Promise[_0x52e0db(0x1d9)](_0xde6849);}};me=es([_e(0x0,a[_0x23fb60(0x39a)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x23fb60(0x203)](m[_0x23fb60(0x3a5)]))],me);class ke extends a[_0x23fb60(0x2e3)]{constructor(){const _0x3cb6c1=_0x23fb60;super(),h(this,'urlChange$'),this[_0x3cb6c1(0x28a)]=d[_0x3cb6c1(0x2ce)](window,'popstate')[_0x3cb6c1(0x237)](d[_0x3cb6c1(0x2de)](this[_0x3cb6c1(0x220)]),d['shareReplay'](0x1),d[_0x3cb6c1(0x2b3)](void 0x0));}[_0x23fb60(0x202)](_0xcb6cbf,_0x136566,_0x1d7e7b=!0x1){const _0xe7815d=_0x23fb60,_0x50d0a7=new URL(window['location'][_0xe7815d(0x41c)]);_0x50d0a7[_0xe7815d(0x440)][_0xe7815d(0x3b8)](_0xcb6cbf,_0x136566),_0x1d7e7b?window[_0xe7815d(0x1c9)]['replaceState']('','',_0x50d0a7[_0xe7815d(0x2b4)]()):window[_0xe7815d(0x1c9)]['pushState']('','',_0x50d0a7[_0xe7815d(0x2b4)]());}[_0x23fb60(0x24d)](_0x20bb95,_0x44ac8d=!0x1){const _0x2baab6=_0x23fb60,_0x3f33de=new URL(window[_0x2baab6(0x23a)][_0x2baab6(0x41c)]);_0x3f33de['searchParams'][_0x2baab6(0x242)](_0x20bb95),_0x44ac8d?window[_0x2baab6(0x1c9)]['replaceState']('','',_0x3f33de[_0x2baab6(0x2b4)]()):window[_0x2baab6(0x1c9)][_0x2baab6(0x31d)]('','',_0x3f33de[_0x2baab6(0x2b4)]());}[_0x23fb60(0x2bf)](_0x1c48ec){const _0x1ad33d=_0x23fb60;var _0x22613c;return(_0x22613c=new URL(window[_0x1ad33d(0x23a)][_0x1ad33d(0x41c)])['searchParams'][_0x1ad33d(0x300)](_0x1c48ec))!=null?_0x22613c:void 0x0;}}var ts=Object[_0x23fb60(0x1dd)],ss=Object[_0x23fb60(0x3f3)],ns=(_0x44fd50,_0x80e8af,_0x24d5e2)=>_0x80e8af in _0x44fd50?ts(_0x44fd50,_0x80e8af,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24d5e2}):_0x44fd50[_0x80e8af]=_0x24d5e2,is=(_0x1db908,_0x4fb135,_0x313431,_0x2a9c3d)=>{const _0x17357b=_0x23fb60;for(var _0x17ac67=_0x2a9c3d>0x1?void 0x0:_0x2a9c3d?ss(_0x4fb135,_0x313431):_0x4fb135,_0x536a5e=_0x1db908[_0x17357b(0x2c5)]-0x1,_0x38fc8f;_0x536a5e>=0x0;_0x536a5e--)(_0x38fc8f=_0x1db908[_0x536a5e])&&(_0x17ac67=_0x38fc8f(_0x17ac67)||_0x17ac67);return _0x17ac67;},ue=(_0x38fb65,_0x20ccb1)=>(_0x33a8f9,_0x58a644)=>_0x20ccb1(_0x33a8f9,_0x58a644,_0x38fb65),rs=(_0x38b924,_0x3d101f,_0x1bbf0a)=>ns(_0x38b924,_0x3d101f+'',_0x1bbf0a);const os=_0x23fb60(0x2e6);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x23fb60(0x319)]{constructor(_0x3c5dfe=Me,_0x4c61c1,_0x5a071e,_0x4a9a9f){const _0xa82ed3=_0x23fb60;super(),this['_config']=_0x3c5dfe,this[_0xa82ed3(0x2f1)]=_0x4c61c1,this[_0xa82ed3(0x348)]=_0x5a071e,this[_0xa82ed3(0x3ac)]=_0x4a9a9f;const {..._0x51998f}=a[_0xa82ed3(0x3fb)]({},Me,this['_config']);this['_configService'][_0xa82ed3(0x282)](Wt,_0x51998f);}[_0x23fb60(0x33e)](){const _0x247cda=_0x23fb60;this['_registerDependencies'](),this[_0x247cda(0x429)]();}[_0x23fb60(0x3c1)](){const _0x5a72b2=_0x23fb60;this[_0x5a72b2(0x3d6)]();}[_0x23fb60(0x1c6)](){const _0x3a4144=_0x23fb60;var _0x5e0b2;const _0x15d7e0=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x3a4144(0x1cd)],{'useClass':q[_0x3a4144(0x250)]}],[u[_0x3a4144(0x2ea)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x3a4144(0x2e1)]]];a[_0x3a4144(0x241)](this['_injector'],a[_0x3a4144(0x2eb)](_0x15d7e0,(_0x5e0b2=this[_0x3a4144(0x31a)])==null?void 0x0:_0x5e0b2[_0x3a4144(0x240)]));}[_0x23fb60(0x3d6)](){const _0x34cc5e=_0x23fb60;this[_0x34cc5e(0x384)](this[_0x34cc5e(0x2f1)][_0x34cc5e(0x218)](a['UniverInstanceType']['UNIVER_DOC'],[ge])),this[_0x34cc5e(0x384)](this[_0x34cc5e(0x2f1)][_0x34cc5e(0x218)](a[_0x34cc5e(0x3aa)][_0x34cc5e(0x20c)],[Ie]));}[_0x23fb60(0x429)](){const _0x9cfcb4=_0x23fb60;a[_0x9cfcb4(0x2cb)](this[_0x9cfcb4(0x348)],[[x],[exports[_0x9cfcb4(0x36c)]],[ee],[z],[exports[_0x9cfcb4(0x2e1)]]]);}},rs(exports[_0x23fb60(0x412)],_0x23fb60(0x43d),os),exports[_0x23fb60(0x412)]=is([a['DependentOn'](u[_0x23fb60(0x37a)]),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x23fb60(0x203)](a[_0x23fb60(0x26d)])),ue(0x3,a[_0x23fb60(0x39a)])],exports[_0x23fb60(0x412)]);var as=Object[_0x23fb60(0x3f3)],cs=(_0x4197dc,_0x252ade,_0x38b503,_0xf6ac48)=>{for(var _0x250025=_0xf6ac48>0x1?void 0x0:_0xf6ac48?as(_0x252ade,_0x38b503):_0x252ade,_0x4d9d54=_0x4197dc['length']-0x1,_0x169865;_0x4d9d54>=0x0;_0x4d9d54--)(_0x169865=_0x4197dc[_0x4d9d54])&&(_0x250025=_0x169865(_0x250025)||_0x250025);return _0x250025;},F=(_0x5b297c,_0x289866)=>(_0x318b83,_0x12a7ac)=>_0x289866(_0x318b83,_0x12a7ac,_0x5b297c);exports[_0x23fb60(0x3b9)]=class extends u[_0x23fb60(0x372)]{constructor(_0x22fd4f,_0x34d4bb,_0x2595dc,_0x33d4a5,_0x324843){super(_0x22fd4f,_0x34d4bb,_0x2595dc,_0x33d4a5,_0x324843);}async['createSocket'](_0x35fe50){const _0x3d3633=await this['_getSessionTicket'](),_0x49483b=this['_createSocketURL'](_0x35fe50,_0x3d3633);return this['_doCreateSocket'](_0x49483b);}['_createSocketURL'](_0x1a40af,_0x142204){const _0x1b5b87=_0x23fb60,_0x34f3c1=typeof window>'u'?new URL(_0x1a40af):new URL(_0x1a40af,window['location'][_0x1b5b87(0x358)]);_0x34f3c1[_0x1b5b87(0x440)][_0x1b5b87(0x3b8)](_0x1b5b87(0x2ee),_0x142204);const _0x45261b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1b5b87(0x31e)]);return _0x45261b['get']('runId')&&_0x34f3c1[_0x1b5b87(0x440)][_0x1b5b87(0x3b8)]('runId',_0x45261b['get']('runId')),_0x34f3c1[_0x1b5b87(0x2b4)]();}async['_getSessionTicket'](){const _0x157f7e=_0x23fb60;var _0x5cdd7b,_0xae66bc,_0x8bcccc;const _0x502d36=this[_0x157f7e(0x3ac)][_0x157f7e(0x2ca)](u[_0x157f7e(0x1d8)]),_0x5bfefb=(_0x5cdd7b=_0x502d36==null?void 0x0:_0x502d36[_0x157f7e(0x336)])!=null?_0x5cdd7b:u[_0x157f7e(0x1d6)];return(_0x8bcccc=(_0xae66bc=(await this[_0x157f7e(0x29a)][_0x157f7e(0x300)](_0x5bfefb,{'headers':{'Content-Type':_0x157f7e(0x3e9)}}))['body'])==null?void 0x0:_0xae66bc[_0x157f7e(0x3d8)])!=null?_0x8bcccc:'';}},exports[_0x23fb60(0x3b9)]=cs([F(0x0,a['Inject'](a[_0x23fb60(0x26d)])),F(0x1,a[_0x23fb60(0x203)](q['HTTPService'])),F(0x2,a[_0x23fb60(0x39a)]),F(0x3,a[_0x23fb60(0x426)]),F(0x4,m[_0x23fb60(0x24b)])],exports[_0x23fb60(0x3b9)]);const Ne=0x7530,we=_0x23fb60(0x277);class ls extends a[_0x23fb60(0x325)]{constructor(){const _0x8fec3d=_0x23fb60;super(),h(this,_0x8fec3d(0x3bd),a[_0x8fec3d(0x2fa)]()),h(this,_0x8fec3d(0x248),new Set()),h(this,_0x8fec3d(0x416),new Map()),h(this,_0x8fec3d(0x1ef),null),h(this,_0x8fec3d(0x1d2),new Map()),h(this,_0x8fec3d(0x331),new Map()),this[_0x8fec3d(0x238)]();}[_0x23fb60(0x1f7)](){const _0x588285=_0x23fb60;super[_0x588285(0x1f7)](),this['_clearOtherTimers'][_0x588285(0x3d2)]((_0x566396,_0x255f5b)=>this[_0x588285(0x2e7)](_0x255f5b)),this['_heartbeatTimer']&&window[_0x588285(0x1e7)](this[_0x588285(0x1ef)]);}[_0x23fb60(0x41d)](_0x5bf2ea){const _0x894aa4=_0x23fb60;return this[_0x894aa4(0x390)](_0x5bf2ea)[_0x894aa4(0x237)](d[_0x894aa4(0x29f)]());}[_0x23fb60(0x211)](_0x5f4a53){const _0x58c82a=_0x23fb60;this[_0x58c82a(0x248)][_0x58c82a(0x376)]===0x0&&this[_0x58c82a(0x430)](),this[_0x58c82a(0x248)]['add'](_0x5f4a53),this['_send']({'type':0x0,'memberID':this[_0x58c82a(0x3bd)],'unitIDs':[_0x5f4a53],'isForwarded':!0x1});}[_0x23fb60(0x379)](_0x3ab51a){const _0x31fdd0=_0x23fb60;this[_0x31fdd0(0x248)][_0x31fdd0(0x242)](_0x3ab51a),this[_0x31fdd0(0x248)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x31fdd0(0x1e7)](this['_heartbeatTimer']);}[_0x23fb60(0x238)](){const _0x18d8c2=_0x23fb60;this[_0x18d8c2(0x384)](a['toDisposable'](d['fromEvent'](window,'storage')['subscribe'](_0x18d730=>{const _0x5128b3=_0x18d8c2;if(_0x18d730[_0x5128b3(0x1c1)]!==we||!_0x18d730[_0x5128b3(0x266)])return;const _0x46c324=JSON[_0x5128b3(0x228)](_0x18d730[_0x5128b3(0x266)]);this['_handleEvent'](_0x46c324);}))),window[_0x18d8c2(0x30d)](_0x18d8c2(0x270),()=>this[_0x18d8c2(0x30e)]({'type':0x1,'memberID':this[_0x18d8c2(0x3bd)],'unitIDs':Array[_0x18d8c2(0x3f1)](this[_0x18d8c2(0x248)])}));}['_handleEvent'](_0x59eb09){const _0x517603=_0x23fb60;switch(_0x59eb09['type']){case 0x0:this['_handleJoinEvent'](_0x59eb09);break;case 0x1:this[_0x517603(0x2b2)](_0x59eb09);break;case 0x2:this[_0x517603(0x3b4)](_0x59eb09);break;}}[_0x23fb60(0x38c)](_0x478321){const _0x46c1da=_0x23fb60,{unitIDs:_0x32994b,memberID:_0x40d942,isForwarded:_0x3c6b24}=_0x478321;_0x32994b[_0x46c1da(0x3d2)](_0x23d75e=>{const _0x3a17e7=_0x46c1da;if(!_0x3c6b24&&this[_0x3a17e7(0x416)]['has'](_0x23d75e)&&this[_0x3a17e7(0x390)](_0x23d75e)[_0x3a17e7(0x1da)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x3a17e7(0x416)][_0x3a17e7(0x234)](_0x23d75e)||!this[_0x3a17e7(0x416)][_0x3a17e7(0x300)](_0x23d75e)[_0x3a17e7(0x234)](_0x40d942)){const _0x159f94=this[_0x3a17e7(0x416)][_0x3a17e7(0x300)](_0x23d75e)||new Set();_0x159f94[_0x3a17e7(0x316)](_0x40d942),this[_0x3a17e7(0x416)]['set'](_0x23d75e,_0x159f94),this[_0x3a17e7(0x395)](_0x40d942);}}),_0x3c6b24||this['_send']({'type':0x0,'memberID':this[_0x46c1da(0x3bd)],'unitIDs':[...this[_0x46c1da(0x248)]],'isForwarded':!0x0});}[_0x23fb60(0x395)](_0x24efbc){const _0xcc9d86=_0x23fb60;this[_0xcc9d86(0x2e7)](_0x24efbc);const _0x211f3f=window[_0xcc9d86(0x28e)](()=>{const _0x238b3b=_0xcc9d86;this[_0x238b3b(0x416)][_0x238b3b(0x3d2)](_0x4186aa=>{_0x4186aa['delete'](_0x24efbc);});},Ne*0x2);this[_0xcc9d86(0x1d2)][_0xcc9d86(0x3b8)](_0x24efbc,_0x211f3f);}[_0x23fb60(0x2e7)](_0x4b3055){const _0x1d3627=_0x23fb60;if(this[_0x1d3627(0x1d2)][_0x1d3627(0x234)](_0x4b3055)){const _0x3ca1a0=this[_0x1d3627(0x1d2)][_0x1d3627(0x300)](_0x4b3055);_0x3ca1a0&&window[_0x1d3627(0x32d)](_0x3ca1a0),this[_0x1d3627(0x1d2)][_0x1d3627(0x3b8)](_0x4b3055,null);}}['_handleLeaveEvent'](_0x58ca2a){const _0x551a95=_0x23fb60,{memberID:_0x3022a0,unitIDs:_0x24f00e}=_0x58ca2a;_0x24f00e[_0x551a95(0x3d2)](_0x185f54=>{const _0x2205b5=_0x551a95;var _0x13060a;const _0x5435bf=this[_0x2205b5(0x416)]['get'](_0x185f54);_0x5435bf&&(_0x5435bf[_0x2205b5(0x242)](_0x3022a0),(_0x13060a=this[_0x2205b5(0x390)](_0x185f54))==null||_0x13060a[_0x2205b5(0x1da)](_0x5435bf[_0x2205b5(0x376)]===0x0?u[_0x2205b5(0x33c)][_0x2205b5(0x39d)]:u[_0x2205b5(0x33c)][_0x2205b5(0x2cf)]));}),this[_0x551a95(0x2e7)](_0x3022a0);}['_handleHeartbeatEvent'](_0x3a8aed){const _0x1592d5=_0x23fb60;this[_0x1592d5(0x395)](_0x3a8aed[_0x1592d5(0x39b)]);}[_0x23fb60(0x30e)](_0x50acb4){const _0x167cd5=_0x23fb60;localStorage[_0x167cd5(0x21d)](we,JSON[_0x167cd5(0x37b)](_0x50acb4));}[_0x23fb60(0x430)](){const _0x18cd0c=_0x23fb60;this['_heartbeatTimer']=window[_0x18cd0c(0x401)](()=>{const _0xc6cb82=_0x18cd0c;this['_send']({'type':0x2,'memberID':this[_0xc6cb82(0x3bd)]});},Ne);}[_0x23fb60(0x390)](_0x34e4a3){const _0x5ed654=_0x23fb60;return this[_0x5ed654(0x331)]['has'](_0x34e4a3)||this[_0x5ed654(0x331)][_0x5ed654(0x3b8)](_0x34e4a3,new d['BehaviorSubject'](u[_0x5ed654(0x33c)][_0x5ed654(0x39d)])),this['_unitStatus']['get'](_0x34e4a3);}}var Be=(_0x2999ec=>(_0x2999ec[_0x2999ec[_0x23fb60(0x371)]=0x0]=_0x23fb60(0x371),_0x2999ec[_0x2999ec['OK']=0x1]='OK',_0x2999ec[_0x2999ec[_0x23fb60(0x26b)]=0x2]=_0x23fb60(0x26b),_0x2999ec[_0x2999ec['PERMISSION_DENIED']=0x3]=_0x23fb60(0x262),_0x2999ec[_0x2999ec[_0x23fb60(0x3c3)]=0x4]=_0x23fb60(0x3c3),_0x2999ec[_0x2999ec['UNAUTHENTICATED']=0x5]=_0x23fb60(0x40f),_0x2999ec[_0x2999ec['ALREADY_EXISTS']=0x6]=_0x23fb60(0x389),_0x2999ec[_0x2999ec[_0x23fb60(0x27e)]=0x7]=_0x23fb60(0x27e),_0x2999ec[_0x2999ec[_0x23fb60(0x280)]=0x8]=_0x23fb60(0x280),_0x2999ec[_0x2999ec[_0x23fb60(0x341)]=0x9]='COMPLETION_FINISHED',_0x2999ec[_0x2999ec[_0x23fb60(0x3ea)]=0x1389]=_0x23fb60(0x3ea),_0x2999ec[_0x2999ec[_0x23fb60(0x342)]=0x1771]=_0x23fb60(0x342),_0x2999ec[_0x2999ec[_0x23fb60(0x1ed)]=0x1772]=_0x23fb60(0x1ed),_0x2999ec[_0x2999ec[_0x23fb60(0x28b)]=0x1773]=_0x23fb60(0x28b),_0x2999ec[_0x2999ec[_0x23fb60(0x405)]=0x1b59]=_0x23fb60(0x405),_0x2999ec[_0x2999ec[_0x23fb60(0x251)]=0x1b5a]=_0x23fb60(0x251),_0x2999ec[_0x2999ec['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x23fb60(0x3b5),_0x2999ec[_0x2999ec[_0x23fb60(0x393)]=0x1b5c]=_0x23fb60(0x393),_0x2999ec[_0x2999ec['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2999ec[_0x2999ec[_0x23fb60(0x436)]=0x1f41]=_0x23fb60(0x436),_0x2999ec[_0x2999ec[_0x23fb60(0x392)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2999ec[_0x2999ec[_0x23fb60(0x38e)]=0x232a]=_0x23fb60(0x38e),_0x2999ec[_0x2999ec[_0x23fb60(0x292)]=0x232b]=_0x23fb60(0x292),_0x2999ec[_0x2999ec[_0x23fb60(0x260)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2999ec[_0x2999ec['LICENSE_DISTRO_REJECTED']=0x232d]=_0x23fb60(0x35a),_0x2999ec[_0x2999ec[_0x23fb60(0x351)]=0x2711]=_0x23fb60(0x351),_0x2999ec[_0x2999ec[_0x23fb60(0x2fe)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2999ec[_0x2999ec['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2999ec[_0x2999ec['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x23fb60(0x310),_0x2999ec[_0x2999ec['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x23fb60(0x32f),_0x2999ec[_0x2999ec[_0x23fb60(0x2d2)]=-0x1]=_0x23fb60(0x2d2),_0x2999ec))(Be||{}),hs=Object[_0x23fb60(0x3f3)],_s=(_0x4e9ee3,_0xa0dc14,_0x2013c7,_0x45f8b3)=>{const _0x5b10bf=_0x23fb60;for(var _0xbc0875=_0x45f8b3>0x1?void 0x0:_0x45f8b3?hs(_0xa0dc14,_0x2013c7):_0xa0dc14,_0x1a8e34=_0x4e9ee3[_0x5b10bf(0x2c5)]-0x1,_0x100490;_0x1a8e34>=0x0;_0x1a8e34--)(_0x100490=_0x4e9ee3[_0x1a8e34])&&(_0xbc0875=_0x100490(_0xbc0875)||_0xbc0875);return _0xbc0875;},de=(_0x16dd05,_0x51d0fd)=>(_0x28f120,_0x2fc40b)=>_0x51d0fd(_0x28f120,_0x2fc40b,_0x16dd05);exports[_0x23fb60(0x209)]=class extends a['Disposable']{constructor(_0x3e72af,_0x21b3f4,_0xc39890){const _0x16e100=_0x23fb60;super(),this[_0x16e100(0x3c4)]=_0x3e72af,this[_0x16e100(0x29a)]=_0x21b3f4,this[_0x16e100(0x3ac)]=_0xc39890;}async['runOnServer'](_0x5bc6e0,_0x59608b,_0x54b079,..._0x10c6fd){const _0x21199f=_0x23fb60;var _0x2b1eff,_0x188f71,_0x76d63a,_0x27134f;const _0x5b9a88=this[_0x21199f(0x3c4)][_0x21199f(0x2ba)]();if(!_0x5b9a88)throw new Error(_0x21199f(0x200));const _0x14af03=((_0x2b1eff=this[_0x21199f(0x3ac)][_0x21199f(0x2ca)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x2b1eff:u[_0x21199f(0x3a4)])+'/'+_0x5bc6e0+_0x21199f(0x215)+_0x59608b,_0x3a506c=new URL(window[_0x21199f(0x23a)][_0x21199f(0x41c)]),_0x5a6084={'scriptId':_0x5bc6e0,'runId':(_0x188f71=_0x3a506c[_0x21199f(0x440)]['get'](_0x21199f(0x2d9)))!=null?_0x188f71:'','function':_0x59608b,'unitId':_0x5b9a88[_0x21199f(0x236)](),'argsOfFunction':JSON[_0x21199f(0x37b)](_0x10c6fd),'invokeId':(_0x76d63a=_0x54b079[_0x21199f(0x3dc)])!=null?_0x76d63a:'','executionId':(_0x27134f=_0x54b079[_0x21199f(0x30b)])!=null?_0x27134f:''};try{const _0x3c4707=await this[_0x21199f(0x29a)][_0x21199f(0x22f)](_0x14af03,{'body':_0x5a6084});return _0x3c4707[_0x21199f(0x21a)]['error']&&_0x3c4707['body'][_0x21199f(0x311)]['code']!==Be['OK']?_0x21199f(0x1d1):_0x3c4707[_0x21199f(0x21a)]['result'];}catch{return'Failed';}}},exports[_0x23fb60(0x209)]=_s([de(0x0,a[_0x23fb60(0x322)]),de(0x1,a[_0x23fb60(0x203)](q[_0x23fb60(0x3fa)])),de(0x2,a[_0x23fb60(0x39a)])],exports[_0x23fb60(0x209)]),exports[_0x23fb60(0x2bd)]=je,exports[_0x23fb60(0x2ab)]=Ee,exports['SheetCollabCursorShape']=ye,exports[_0x23fb60(0x34d)]=ls,exports['WebURLService']=ke;
1
+ 'use strict';const _0x5d5931=_0x55fe;(function(_0x4e9a8c,_0x27d33a){const _0x5ba668=_0x55fe,_0x4f691e=_0x4e9a8c();while(!![]){try{const _0x19f0d5=-parseInt(_0x5ba668(0x2a4))/0x1+parseInt(_0x5ba668(0x197))/0x2+parseInt(_0x5ba668(0x265))/0x3*(parseInt(_0x5ba668(0x1a3))/0x4)+parseInt(_0x5ba668(0x269))/0x5+parseInt(_0x5ba668(0x1b1))/0x6+parseInt(_0x5ba668(0x174))/0x7*(parseInt(_0x5ba668(0x30d))/0x8)+-parseInt(_0x5ba668(0x1e7))/0x9;if(_0x19f0d5===_0x27d33a)break;else _0x4f691e['push'](_0x4f691e['shift']());}catch(_0x22251d){_0x4f691e['push'](_0x4f691e['shift']());}}}(_0x5c25,0x356e3));function _0x5c25(){const _0x5b0c1a=['error','isTransformMutationFailure','AWAITING_WITH_PENDING','generateRandomId','newValue','registerRefRange','_collaborationController','_getSessionTicket','length','SOCKET_FAILED_RETRY','apply','_localCacheService','@univerjs/ui','fill','Error','mapTo','1em','call','_syncEditingCollabCursorService','_docSkeletonManagerService','CommandType','PY_RUNTIME_SCRIPT_ERROR','_cursors','_online','takeUntil','transformRemoteChangeset','getRangePointData','UNDEFINED','Rect','SNAPSHOT_INVALID_SNAPSHOT','startColumn','currentColor','debug','searchParams','displayName','urlChange$','_sheetSkeletonManagerService','NodePositionConvertToRectRange','3FSNAhb','saveTaskMap','_refRangeService','@univerjs/core','983980qSZSeK','textRanges','fromEvent','collaboration-client.offline-data-not-saved','href','top','getSheetObject','SetSelectionsOperation','_collabSessionService','_notificationService','_scheduleSaving','collab-text-range-','rxjs/operators','_commandService','getLocalCacheKey','show','LICENSE_MAX_UNITS_EXCEEDED','m2Prime','_cachedData','send','combineLatest','url(#on-line-single_clip0_910_349)','subUnitId','RECT','_colorAssignService','OTHER_CLIENT_EDITING','addObjects','_backgroundColor','SessionStatus','round','setAlpha','currentTheme$','ICommandService','onPointerEnter$','defs','next','updateOfflineData','IRenderManagerService','WebSocketService','handleInsertRangeMoveDown','NOT_COLLAB','addClipboardHook','UNAUTHENTICATED','map','_textBubble','SYNCED','tag','setConfig','dispose$','hasOwnProperty','univer-online-status-icon','createSocket','measureText','defineProperty','collabStatus.syncing','UPDATE_CURSOR','SetTextSelectionsOperation','CollaborationEvent','mergeOverrideWithDependencies','123013iHLEJM','Injector','UniverInstanceType','getCurrentRevOfUnit','bottom','debounceTime','onStarting','undoState','post','getSkeleton','_docTransformSelectionsService','moveTo','unitID','syncEditingCollabCursor','activeSheet$','restore','_heartbeatTimer','_doCreateSocket','APPLY_REJECT','_initStatusListener','CollaborationSocketService','disposeWithMe','backgroundColor','getFocusedUnit','_scene','_configService','getTypeOfUnitAdded$','subunit','params','collab-rect-range-','handleInsertRangeMoveRight','translate(.97)','_saveCache','CollaborationSessionService','lineTo','IMessageService','row','SOCKET_FAILED','add','_beforeCloseService','_logService','code','hide','unitId','idSuffix','setItem','get','selection','defIds','purple300','filter','isTransformMutationsWithChangesetSuccess','UniverIcon','RemoteUniscriptService','setParam','transformMutation','shareReplay','_colorIndex','height','getTypeOfUnitDisposed$','forEach','MessageType','getCurrentUnitForType','_hovered','getItem','_hideTimer','toStringTag','asObservable','DocSkeletonManagerService','@univerjs/sheets-ui','ONLINE','CollaborationController','useDependency','IDocClipboardService','getActiveSheet','_eventUnsubscribe','_initDependencies','column','font','_handleLeaveEvent','switchMap','url(#$1','_transformHistoryAndStateStack','ENSURE_SNAPSHOT_EXECUTION','removeParam','fillText','getConfig','SheetSkeletonManagerService','name','INVALID_ARGUMENT','contains','serializeRangeWithSheet','ColorKit','ISnapshotServerService','_id','collab-text-anchor-','InsertRangeMoveRightCommandId','DeleteRangeMoveLeftCommandId','Tools','source','_getSaveTimeout','@univerjs/rpc','colorChannel1','Failed','prototype','61000itnYwR','connectInjector','onlineStatusTitle','#fff','cursorInfo','_removeClearOtherTimer','_shapes','Warning','className','pluginName','AWAITING','_startSheetCollabCursor','concat','getSheetBySheetId','children','uni.network.url-service','CHANGESET_REVISION_CONFILICT','_createSocketURL','IImageIoService','getParam','HEADER_MENU','0\x200\x2017\x2016','dispose','getVpScrollXYInfoByPosToVp','_session','_updateSubUnitFromURLParams','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DataLoaderService','LICENSE_DISTRO_REJECTED','@univerjs-pro/collaboration','session.will-retry','DocIMEInputManagerService','save','_status$','requireSession','imageSourceType','getUndoRedoMutationParamsCache','_range','on-line-single','CLOSE_ROOM','startRow','_drawTextRange','USERS_LEAVE','ranges','handleInsertCol','_getMergeRange','pipe','getCoordByCell','useRef','unsubscribe','focused$','clsx','_getSheetObject','_docTransformStateCacheService','sessionTicket','clearInterval','DEFAULT_WS_SESSION_TICKET_URL','_scheduleHeartbeat','location','RefRangeService','invokeId','merge','jsx','#FFF','replaceDocRanges','UniverCollaborationClientPlugin','getSheetId','Module','_docSyncEditingCollabCursorService','0\x200\x2016\x2016','history','selections','getOwnPropertySymbols','TOO_MANY_REQUESTS','...','_name','permission.title','color','_toggleOnline','HTTPService','M0\x200H16V16H0z','verdancy600','_send','NOT_FOUND','BehaviorSubject','beginPath','subscribe','min','gold400','addObject','collabCursorState$','trim','_collabCursorController','type','jiqing500','_render','_getAnchorBounding','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getCellPositionByOffset','_unitOnClients','symbol','CollaborationStatusDisplay','FETCH_MISS','RxDisposable','clearTimeout','_setupSubUnitSync','collabStatus.synced','UNIVER_SHEET','ILogService','ISocketService','DeleteRangeMoveUpCommandId','getRenderById','enableLocalCache','_document','toString','UNIVER_DOC','sheetID','onMouseMove','onPointerMove$','online','actions','then','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','svg','_imageIoService','registerDependencies','evenodd','path','RemoveRowCommandId','_localStorageService','mask','MoveRangeCommandId','arc','_docTransformIMECacheService','forwardRef','unload','YUUMI_URL_COL_OUT_OF_RANGE','Unknown\x20user','loadOfflineData','onPointerLeave$','@univerjs/network','ILocalCacheService','_registerDependencies','COLORS','touchDependencies','APPLY_REVISION_CONFILICT','univerjs-icon\x20univerjs-icon-','_initCommandExecutedListener','MUTATION','none','YUUMI_RATE_OVER_LIMIT','getMember','_getScale','VIEW_MAIN','has','CONFLICT','TRANSFORM_CHANGE_OBSERVABLE_TYPE','UniverCollaborationClientUIPlugin','getOwnPropertyDescriptor','set','propertyIsEnumerable','offline','collabStatus.notCollab','_entityInit$','useCallback','_anchorDot','_refreshCollabCursors','saveOfflineData','getUnitStatus$','createInstance','_setupBeforeClosingHandler','_onCursorUpdate','setStateCache','ALREADY_EXISTS','transformMutationsWithChangeset','SHEET_VIEWPORT_KEY','findNodePositionByCharIndex','m1Prime','_registerRenderDependencies','CONNECTOR_DATA_TOO_LARGE','_cursor','search','session.collaboration-timeout','onRendered','MemberService','_assignedColors','_updateURLWithCurrentState','Tooltip','_cursorShapes','isEditing','xlink:href','LOCAL_CACHE_INTERVAL','unit','transformStateCache','_toggleOffline','_cursorInfo$','TEXT_RANGE_LAYER_INDEX','handleIRemoveCol','unshift','clipPath','getUnitId','BrowserCollaborationSocketService','attrs','use','assign','_revisionService','string','_updateLocalCursor','flatMap','fillStyle','IConfigService','size','stringify','_handleJoinEvent','black','range','_entities','DOC_RANGE_TYPE','div','createElement','_uiPartsService','_scheduleClearOtherTimer','eventID','isArray','_clearOtherTimers','_urlService','memberID','371rfrgeC','ILocalStorageService','react','SNAPSHOT_HAS_BEEN_REMOVED','Shape','_localeService','_onCursorDelete','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','pushState','DocSelectionManagerService','InsertColCommandId','_handleEvent','createIdentifier','IURLService','Workbook','UnitStatus','_drawAnchor','NO_OTHER_CLIENTS_EDITING','Inject','replace','DesktopCollaborationStatusDisplayController','OTHER_CLIENTS_EDITING','disableLocalCache','_config','LICENSE_EXPORT_SIZE_EXCEEDED','CollaborationUIEventService','_drawRectRange','FromArray','RegularPolygon','collaboration.closeRoom','getMemberID','RichTextEditingMutation','SetWorksheetActivateCommand','getColor','getCollabCursors$','341188DJKLEo','currentSkeleton$','getCollabEntity$','DisposableCollection','INotificationService','application/json','Disposable','redoState','getActiveRange','body','_handleHeartbeatEvent','delete','1156192oYSYJz','OFFLINE','makeDirty','_transformUndoRedoStack','_collabCursorState$','DocCollaborationEntity','on-line-single_clip0_910_349','fillRule','ACTIVE_UNIT_EVENT_CHANNEL','doc.mutation.rich-text-editing','whenReady','APPLY_DUPLICATED','univer-online','_docStateChangeManagerService','1553088HMQdDE','_unitStatus','extend','_docClipboardService','_initResize','INTERNAL_ERROR','IUIPartsService','from','event$','YUUMI_SUBSCRIPTION_NOT_FOUND','toRgbString','roomMembers$','setActiveRange','entries','setTimeout','univer-flex\x20univer-items-center','runRefRangeMutations','getDocRanges','data','_labelPosition','_dataLoaderService','triggerDblclick','_renderManagerService','values','_docSkeleton','COMPLETION_FINISHED','ticket','univer-online-status','getValue','split','_httpService','handleInsertRow','width','_disabled','_color','_saveTaskMap','SUBMIT_CHANGESET_TIMEOUT','_selfUnitIDs','_messageService','CollaborationStatus','fromEventSubject','replaceState','setShapeProps','executeCommand','init','text','debounce','sheetId','_removeCollabCursors','_startDocCollabCursor','_updateCollabCursors','complete','_hover','override','8797923zNaXSM','DependentOn','PENDING','getStateCache','Subject','mutations','drawWith','InsertRowCommandId','SetDocZoomRatioOperation','current','DocStateChangeManagerService','find','_memberService','transformIMECache','CollaborationDataLoaderController','handleDeleteRangeMoveUp','_themeService','with','executionId','_initEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','red300','_init','cursorInfo$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','YUUMI_UNABLE_LOAD_URL','LOCAL_CACHE_INTERVAL_KEY','indexOf','_transformPreviousActiveRange','loadUnit','rxjs','TEXT','url(#off-line-single_clip0_910_343)','_onRefRangeChange','_draw','CollaborationUIEventId','blue400','WebURLService','resize','RemoveColCommandId','push','assignAColorForMemberID','UNRECOGNIZED','_handleHover','APPLY_NON_SEQUENTIAL_REVISION','engine','getRelativeToViewportCoord','getAncestorScale','onCommandExecuted','[CollaborationDataLoaderController]','ITransformService','_injector','sessionStatus$','EffectRefRangId','_context','runOnServer','_univerInstanceService','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','_ensureSubject','_instanceService','LocaleService','result','getCurrentSelections','_anchor','collabStatus.fetchMiss','session.connection-failed','subscribeEvent','/run/','_roomMembers$','startsWith','popstate','IUniverInstanceService','deepClone','off-line-single','WebBrowserSingleActiveUnitService','collaboration.single-unit.warning','onLocalMutation','_collaborationUIEventService','_transformService','toDisposable','runId','LICENSE_IMPORT_SIZE_EXCEEDED','transformSelections','wsSessionTicketUrl','ThemeService','_initEntityListener','@univerjs/docs','_lastPointer'];_0x5c25=function(){return _0x5b0c1a;};return _0x5c25();}var Ve=Object[_0x5d5931(0x29e)],Ge=(_0x2ac668,_0x5029c5,_0x1260b8)=>_0x5029c5 in _0x2ac668?Ve(_0x2ac668,_0x5029c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1260b8}):_0x2ac668[_0x5029c5]=_0x1260b8,h=(_0x1a663a,_0x35a541,_0x4fa3a3)=>Ge(_0x1a663a,typeof _0x35a541!=_0x5d5931(0x371)?_0x35a541+'':_0x35a541,_0x4fa3a3);Object[_0x5d5931(0x29e)](exports,Symbol[_0x5d5931(0x2e6)],{'value':_0x5d5931(0x350)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x5d5931(0x268)),p=require('@univerjs/engine-render'),q=require(_0x5d5931(0x11d)),b=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),d=require(_0x5d5931(0x205)),Y=require(_0x5d5931(0x23d)),m=require(_0x5d5931(0x32a)),Te=require('@univerjs/engine-formula'),I=require('@univerjs/sheets'),$=require(_0x5d5931(0x275)),G=require(_0x5d5931(0x2e9)),w=require('react/jsx-runtime'),R=require(_0x5d5931(0x24b)),T=require('@univerjs/design'),P=require(_0x5d5931(0x176)),Ke=require(_0x5d5931(0x309));var ze=Object[_0x5d5931(0x12f)],Je=(_0x150a2,_0x60a417,_0x10c492,_0x200243)=>{const _0x273ebf=_0x5d5931;for(var _0x32c112=_0x200243>0x1?void 0x0:_0x200243?ze(_0x60a417,_0x10c492):_0x60a417,_0x12c90d=_0x150a2[_0x273ebf(0x247)]-0x1,_0x2e04ca;_0x12c90d>=0x0;_0x12c90d--)(_0x2e04ca=_0x150a2[_0x12c90d])&&(_0x32c112=_0x2e04ca(_0x32c112)||_0x32c112);return _0x32c112;},Re=(_0x378f61,_0x4ec719)=>(_0x4faba6,_0x7550b9)=>_0x4ec719(_0x4faba6,_0x7550b9,_0x378f61);let fe=class extends a['RxDisposable']{constructor(_0x100ac7,_0x5857c4){const _0x2476a1=_0x5d5931;super(),this[_0x2476a1(0x1b4)]=_0x100ac7,this[_0x2476a1(0x389)]=_0x5857c4,this['_init']();}[_0x5d5931(0x1fd)](){const _0x359873=_0x5d5931,_0x31159f=this;this[_0x359873(0x2b9)](this[_0x359873(0x1b4)][_0x359873(0x292)]({'onBeforePasteImage':async _0x18dfc4=>{const _0x474ef6=_0x359873,_0x22d9cd=await _0x31159f[_0x474ef6(0x389)]['saveImage'](_0x18dfc4);return _0x22d9cd?{'source':_0x22d9cd[_0x474ef6(0x307)],'imageSourceType':_0x22d9cd[_0x474ef6(0x330)]}:null;}}));}};fe=Je([Re(0x0,b[_0x5d5931(0x2ed)]),Re(0x1,qe[_0x5d5931(0x31f)])],fe);const Oe=[_0x5d5931(0x2d5),_0x5d5931(0x36b),_0x5d5931(0x35e),_0x5d5931(0x1fc),_0x5d5931(0x20b),_0x5d5931(0x365)];class Ce extends a['Disposable']{constructor(){const _0x187809=_0x5d5931;super(...arguments),h(this,_0x187809(0x14a),new Map()),h(this,_0x187809(0x2dd),0x0);}[_0x5d5931(0x210)](_0x488d5b){const _0x15ce78=_0x5d5931;if(this[_0x15ce78(0x14a)]['has'](_0x488d5b))return this[_0x15ce78(0x14a)][_0x15ce78(0x2d2)](_0x488d5b);const _0x48f6c8=Oe[this[_0x15ce78(0x2dd)]];return this[_0x15ce78(0x2dd)]=(this['_colorIndex']+0x1)%Oe[_0x15ce78(0x247)],this[_0x15ce78(0x14a)][_0x15ce78(0x130)](_0x488d5b,_0x48f6c8),_0x48f6c8;}}function Le(_0x421a26){const _0x4cf25c=_0x5d5931;let _0x2d693b='';for(const _0x861010 of _0x421a26){const {startOffset:_0x3a038c,endOffset:_0x5ec047,isActive:_0x3d6ee6,rangeType:_0x23b244,segmentId:_0x2bfe00,segmentPage:_0x299ce3}=_0x861010;_0x2d693b[_0x4cf25c(0x247)]&&(_0x2d693b+=','),_0x2d693b+=_0x3a038c+':'+_0x5ec047+':'+(_0x3d6ee6?'1':'0')+':'+_0x23b244+':'+_0x2bfe00+':'+_0x299ce3;}return _0x2d693b;}function Ze(_0x2955e6){const _0x520a82=_0x5d5931,_0x472c5d=_0x2955e6['split'](','),_0x548ebc=[];for(const _0x1a799c of _0x472c5d){const [_0x1f7e8c,_0x3ea486,_0x2ec204,_0xe7773d,_0x5befef,_0x29021d]=_0x1a799c[_0x520a82(0x1ce)](':');_0x548ebc['push']({'startOffset':Number(_0x1f7e8c),'endOffset':Number(_0x3ea486),'collapsed':_0x1f7e8c===_0x3ea486,'isActive':_0x2ec204==='1','rangeType':_0xe7773d===a[_0x520a82(0x16a)]['TEXT']?a[_0x520a82(0x16a)][_0x520a82(0x206)]:a[_0x520a82(0x16a)][_0x520a82(0x280)],'segmentId':typeof _0x5befef==_0x520a82(0x15f)?String(_0x5befef):'','segmentPage':Number(_0x29021d!=null?_0x29021d:-0x1)});}return _0x548ebc['some'](_0x30141d=>_0x30141d['isActive'])||(_0x548ebc[0x0]['isActive']=!0x0),_0x548ebc;}class pe extends a[_0x5d5931(0x374)]{constructor(){const _0x5c4546=_0x5d5931;super(...arguments),h(this,_0x5c4546(0x1a7),new d[(_0x5c4546(0x361))](null)),h(this,_0x5c4546(0x367),this[_0x5c4546(0x1a7)][_0x5c4546(0x2e7)]());}[_0x5d5931(0x2b1)](_0x44b528){const _0x3e2ec8=_0x5d5931,{unitID:_0x26d00f,memberID:_0xfbe5e8,textRanges:_0x3c272a}=_0x44b528,_0x16db68=Le(_0x3c272a);if(_0x16db68==='')return;const _0x47f01d={'unitID':_0x26d00f,'memberID':_0xfbe5e8,'selection':_0x16db68};this[_0x3e2ec8(0x1a7)][_0x3e2ec8(0x28c)](_0x47f01d);}}var Qe=Object[_0x5d5931(0x12f)],et=(_0x3578d4,_0x115fd3,_0x7fdc55,_0x3e6ce5)=>{for(var _0xcc487a=_0x3e6ce5>0x1?void 0x0:_0x3e6ce5?Qe(_0x115fd3,_0x7fdc55):_0x115fd3,_0x1ab836=_0x3578d4['length']-0x1,_0x3a7e59;_0x1ab836>=0x0;_0x1ab836--)(_0x3a7e59=_0x3578d4[_0x1ab836])&&(_0xcc487a=_0x3a7e59(_0xcc487a)||_0xcc487a);return _0xcc487a;},N=(_0x311840,_0xe697f5)=>(_0x3a011c,_0x3d420d)=>_0xe697f5(_0x3a011c,_0x3d420d,_0x311840);const tt=0x12c,st=0x64;let Se=class extends a[_0x5d5931(0x374)]{constructor(_0x3f7c0a,_0x372f93,_0x5d7fc6,_0x41a4c6,_0x2c4ca5,_0x2897a8,_0x2230a9,_0x1bcce5,_0x1ac952){const _0xbf5ac=_0x5d5931;super(),h(this,'_online',!0x1),h(this,_0xbf5ac(0x1fd),!0x1),h(this,'_cursorInfo$',new d[(_0xbf5ac(0x361))](new Map())),h(this,_0xbf5ac(0x1fe),this[_0xbf5ac(0x154)][_0xbf5ac(0x2e7)]()),h(this,'_roomMembers$',new d[(_0xbf5ac(0x361))]([])),h(this,_0xbf5ac(0x1bc),this[_0xbf5ac(0x22b)][_0xbf5ac(0x33b)](d[_0xbf5ac(0x2a9)](tt))),h(this,'_updateLocalCursor',a[_0xbf5ac(0x1df)](_0x6d66c9=>{const _0x3cf119=_0xbf5ac,_0x21932e={'eventID':m['CollaborationEvent'][_0x3cf119(0x2a0)],'data':{'unitID':this['unitID'],'memberID':this[_0x3cf119(0x325)][_0x3cf119(0x192)](),'selection':Le(_0x6d66c9)}};this[_0x3cf119(0x325)][_0x3cf119(0x27c)](_0x21932e,this[_0x3cf119(0x2b0)]);},st)),(this[_0xbf5ac(0x2b0)]=_0x3f7c0a,this[_0xbf5ac(0x325)]=_0x372f93,this[_0xbf5ac(0x21a)]=_0x5d7fc6,this[_0xbf5ac(0x281)]=_0x41a4c6,this[_0xbf5ac(0x1f3)]=_0x2c4ca5,this[_0xbf5ac(0x251)]=_0x2897a8,this[_0xbf5ac(0x235)]=_0x2230a9,this[_0xbf5ac(0x21f)]=_0x1bcce5,this['_commandService']=_0x1ac952);}get[_0x5d5931(0x311)](){const _0x12683b=_0x5d5931;return this['_cursorInfo$'][_0x12683b(0x1cd)]();}get['roomMembers'](){const _0x4edd87=_0x5d5931;return this[_0x4edd87(0x22b)][_0x4edd87(0x1cd)]();}[_0x5d5931(0x323)](){const _0x7055dc=_0x5d5931;super[_0x7055dc(0x323)](),this[_0x7055dc(0x154)][_0x7055dc(0x28c)](new Map()),this['_cursorInfo$'][_0x7055dc(0x1e4)](),this[_0x7055dc(0x22b)]['next']([]),this[_0x7055dc(0x22b)][_0x7055dc(0x1e4)]();}[_0x5d5931(0x1dd)](){const _0x6d9d8=_0x5d5931;this['_init']||(this[_0x6d9d8(0x1fd)]=!0x0,this['_session'][_0x6d9d8(0x21b)][_0x6d9d8(0x33b)](d[_0x6d9d8(0x257)](this['dispose$']))[_0x6d9d8(0x363)](_0x57a81b=>{const _0x2e1c17=_0x6d9d8;_0x57a81b===u[_0x2e1c17(0x285)][_0x2e1c17(0x2ea)]?this[_0x2e1c17(0x35b)]():this[_0x2e1c17(0x153)]();}),this[_0x6d9d8(0x325)][_0x6d9d8(0x1b9)][_0x6d9d8(0x33b)](d[_0x6d9d8(0x257)](this[_0x6d9d8(0x299)]))['subscribe'](_0xdbd03b=>{const _0x284ab9=_0x6d9d8,_0xdf3f55=_0xdbd03b[_0x284ab9(0x16f)];_0xdf3f55===m[_0x284ab9(0x2a2)][_0x284ab9(0x2a0)]&&this['_onCursorUpdate'](_0xdbd03b),_0xdf3f55===m[_0x284ab9(0x2a2)][_0x284ab9(0x337)]&&this['_onCursorDelete'](_0xdbd03b);}),this[_0x6d9d8(0x2b9)](this[_0x6d9d8(0x276)][_0x6d9d8(0x217)](_0x58a78b=>{const _0x18536d=_0x6d9d8,_0x5a1a9d=_0x58a78b[_0x18536d(0x2c0)];_0x5a1a9d!=null&&this[_0x18536d(0x256)]&&_0x58a78b['id']===Y[_0x18536d(0x2a1)]['id']&&_0x5a1a9d[_0x18536d(0x2cf)]===this[_0x18536d(0x2b0)]&&_0x5a1a9d[_0x18536d(0x14e)]===!0x1&&_0x5a1a9d[_0x18536d(0x338)][_0x18536d(0x247)]>0x0&&this['_updateLocalCursor'](_0x5a1a9d[_0x18536d(0x338)]);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](d[_0x6d9d8(0x257)](this[_0x6d9d8(0x299)]))[_0x6d9d8(0x363)](_0x481835=>{const _0x3e1dc3=_0x6d9d8;if((_0x481835==null?void 0x0:_0x481835[_0x3e1dc3(0x2b0)])!==this[_0x3e1dc3(0x2b0)])return;const _0x926f56={'eventID':m[_0x3e1dc3(0x2a2)][_0x3e1dc3(0x2a0)],'data':_0x481835};this[_0x3e1dc3(0x13c)](_0x926f56);}),this[_0x6d9d8(0x2b9)](this[_0x6d9d8(0x276)][_0x6d9d8(0x217)](_0x52704e=>{const _0x566edc=_0x6d9d8;if(_0x52704e['params']==null)return;const _0x5dec1d=_0x52704e['params'];if(_0x52704e['id']!==Y[_0x566edc(0x193)]['id']||_0x5dec1d['unitId']!==this[_0x566edc(0x2b0)])return;const _0x51b7a0={'id':'doc.mutation.rich-text-editing','params':_0x5dec1d},_0x3f02b0=this[_0x566edc(0x311)];for(const [_0x228cc3,_0x213799]of _0x3f02b0){const _0x12ad18={'id':_0x566edc(0x1ac),'params':{'unitId':this[_0x566edc(0x2b0)],'actions':null,'textRanges':_0x213799[_0x566edc(0x338)]}},_0x36545b=this[_0x566edc(0x235)]['transformMutation'](_0x51b7a0,_0x12ad18,!0x1);if(m[_0x566edc(0x240)](_0x36545b))throw _0x36545b['error'];_0x3f02b0[_0x566edc(0x130)](_0x228cc3,{..._0x213799,'ranges':_0x36545b['m2Prime'][_0x566edc(0x2c0)]['textRanges']});}queueMicrotask(()=>{const _0x417576=_0x566edc;this[_0x417576(0x154)]['next'](_0x3f02b0);});})));}[_0x5d5931(0x13c)](_0x2a64b0){const _0x45886d=_0x5d5931;var _0x106dbc,_0x3f3306;const {memberID:_0x2cc1c2,selection:_0x4add76}=_0x2a64b0[_0x45886d(0x1c3)],_0x1306e8=Ze(_0x4add76),_0x515817=(_0x3f3306=(_0x106dbc=this[_0x45886d(0x1f3)][_0x45886d(0x128)](this[_0x45886d(0x2b0)],_0x2cc1c2))==null?void 0x0:_0x106dbc['name'])!=null?_0x3f3306:_0x45886d(0x11a),_0x456759={'color':this[_0x45886d(0x281)][_0x45886d(0x210)](_0x2cc1c2),'name':_0x515817,'ranges':_0x1306e8},_0x4a7d2c=this[_0x45886d(0x311)];_0x4a7d2c[_0x45886d(0x130)](_0x2cc1c2,_0x456759),this[_0x45886d(0x154)][_0x45886d(0x28c)](_0x4a7d2c);}[_0x5d5931(0x17a)](_0x5e311f){const _0x57b096=_0x5d5931,{memberID:_0x5c1bcd}=_0x5e311f['data'],_0x13768e=this[_0x57b096(0x311)];_0x13768e[_0x57b096(0x1a2)](_0x5c1bcd),this[_0x57b096(0x154)][_0x57b096(0x28c)](_0x13768e);}[_0x5d5931(0x35b)](){const _0x1c9dac=_0x5d5931;var _0x2afd20;if(this['_online']=!0x0,((_0x2afd20=this[_0x1c9dac(0x21f)][_0x1c9dac(0x2bb)]())==null?void 0x0:_0x2afd20[_0x1c9dac(0x159)]())!==this[_0x1c9dac(0x2b0)])return;const _0x28c49c=this['_injector'][_0x1c9dac(0x2d2)](Y[_0x1c9dac(0x17d)])[_0x1c9dac(0x1c2)]();Array[_0x1c9dac(0x170)](_0x28c49c)&&_0x28c49c[_0x1c9dac(0x247)]>0x0&&this[_0x1c9dac(0x160)](_0x28c49c);}[_0x5d5931(0x153)](){const _0x5ef259=_0x5d5931;this[_0x5ef259(0x256)]=!0x1;}};Se=et([N(0x2,a[_0x5d5931(0x186)](a['Injector'])),N(0x3,a[_0x5d5931(0x186)](Ce)),N(0x4,a[_0x5d5931(0x186)](u[_0x5d5931(0x149)])),N(0x5,a[_0x5d5931(0x186)](pe)),N(0x6,m[_0x5d5931(0x219)]),N(0x7,a[_0x5d5931(0x22e)]),N(0x8,a[_0x5d5931(0x289)])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x4ef184,_0x17efbc,_0x54be29,_0xb1666d)=>{const _0x26532a=_0x5d5931;for(var _0x239f4b=_0xb1666d>0x1?void 0x0:_0xb1666d?nt(_0x17efbc,_0x54be29):_0x17efbc,_0x47ca17=_0x4ef184[_0x26532a(0x247)]-0x1,_0xe8e57f;_0x47ca17>=0x0;_0x47ca17--)(_0xe8e57f=_0x4ef184[_0x47ca17])&&(_0x239f4b=_0xe8e57f(_0x239f4b)||_0x239f4b);return _0x239f4b;},y=(_0x142b77,_0x57dd7a)=>(_0x59622b,_0x12aed3)=>_0x57dd7a(_0x59622b,_0x12aed3,_0x142b77);const rt=0x12c,ot=0x64,at=()=>{let _0x18afe6=[],_0x2faad5=!0x1;return _0x103b97=>{_0x18afe6['push'](_0x103b97),_0x2faad5||(_0x2faad5=!0x0,setTimeout(()=>{const _0x139c87=_0x55fe;_0x18afe6[_0x139c87(0x2e0)](_0x40c2a3=>_0x40c2a3()),_0x18afe6=[],_0x2faad5=!0x1;}));};};let ve=class extends a[_0x5d5931(0x374)]{constructor(_0x343b7f,_0xe29a92,_0x2535f7,_0x27ea8e,_0x870b0f,_0x13dc71,_0x4a6a60,_0x1c6aaa){const _0x3031a7=_0x5d5931;super(),h(this,'_online',!0x1),h(this,_0x3031a7(0x1fd),!0x1),h(this,_0x3031a7(0x154),new d[(_0x3031a7(0x361))](new Map())),h(this,_0x3031a7(0x1fe),this[_0x3031a7(0x154)][_0x3031a7(0x2e7)]()),h(this,_0x3031a7(0x22b),new d[(_0x3031a7(0x361))]([])),h(this,_0x3031a7(0x1bc),this['_roomMembers$'][_0x3031a7(0x33b)](d['debounceTime'](rt))),h(this,'_updateLocalCursor',a[_0x3031a7(0x1df)]((_0x45c806,_0x1f1432)=>{const _0x45973d=_0x3031a7,_0x2ee547={'eventID':m['CollaborationEvent'][_0x45973d(0x2a0)],'data':{'unitID':this[_0x45973d(0x2b0)],'memberID':this[_0x45973d(0x325)][_0x45973d(0x192)](),'selection':Te[_0x45973d(0x2ff)](_0x45c806,_0x1f1432[_0x45973d(0x168)])}};this['_session'][_0x45973d(0x27c)](_0x2ee547,this[_0x45973d(0x2b0)]);},ot)),(this[_0x3031a7(0x2b0)]=_0x343b7f,this[_0x3031a7(0x325)]=_0xe29a92,this[_0x3031a7(0x21a)]=_0x2535f7,this['_colorAssignService']=_0x27ea8e,this['_memberService']=_0x870b0f,this[_0x3031a7(0x21f)]=_0x13dc71,this[_0x3031a7(0x276)]=_0x4a6a60,this['_refRangeService']=_0x1c6aaa);}get[_0x5d5931(0x311)](){const _0x522fdf=_0x5d5931;return this[_0x522fdf(0x154)][_0x522fdf(0x1cd)]();}get['roomMembers'](){const _0x4f5a0b=_0x5d5931;return this[_0x4f5a0b(0x22b)]['getValue']();}['dispose'](){const _0x5d0982=_0x5d5931;super[_0x5d0982(0x323)](),this[_0x5d0982(0x154)][_0x5d0982(0x28c)](new Map()),this[_0x5d0982(0x154)][_0x5d0982(0x1e4)](),this[_0x5d0982(0x22b)][_0x5d0982(0x28c)]([]),this[_0x5d0982(0x22b)][_0x5d0982(0x1e4)]();}[_0x5d5931(0x1dd)](){const _0x111e1e=_0x5d5931;this['_init']||(this[_0x111e1e(0x1fd)]=!0x0,this[_0x111e1e(0x325)][_0x111e1e(0x21b)][_0x111e1e(0x33b)](d[_0x111e1e(0x257)](this[_0x111e1e(0x299)]))['subscribe'](_0x12f5d7=>{const _0x28449a=_0x111e1e;_0x12f5d7===u[_0x28449a(0x285)][_0x28449a(0x2ea)]?this[_0x28449a(0x35b)]():this[_0x28449a(0x153)]();}),this[_0x111e1e(0x325)][_0x111e1e(0x1b9)][_0x111e1e(0x33b)](d[_0x111e1e(0x257)](this['dispose$']))['subscribe'](_0x479099=>{const _0x1feff1=_0x111e1e,_0x22451e=_0x479099[_0x1feff1(0x16f)];_0x22451e===m[_0x1feff1(0x2a2)]['UPDATE_CURSOR']&&this[_0x1feff1(0x13c)](_0x479099),_0x22451e===m['CollaborationEvent'][_0x1feff1(0x337)]&&this['_onCursorDelete'](_0x479099);}),this[_0x111e1e(0x208)](),this['disposeWithMe'](this[_0x111e1e(0x276)][_0x111e1e(0x217)](_0x5a6fef=>{const _0x55e45b=_0x111e1e;if(this[_0x55e45b(0x256)]&&_0x5a6fef['id']===I[_0x55e45b(0x270)]['id']&&_0x5a6fef[_0x55e45b(0x2c0)][_0x55e45b(0x2cf)]===this['unitID']){const _0x4104c3=_0x5a6fef[_0x55e45b(0x2c0)];this['_updateLocalCursor'](_0x4104c3[_0x55e45b(0x27f)],_0x4104c3[_0x55e45b(0x354)][0x0]);}})));}[_0x5d5931(0x13c)](_0x3839eb){const _0x1d2105=_0x5d5931;var _0x2f6788,_0x1c170d;const {memberID:_0x444ce6,selection:_0xa0ec67}=_0x3839eb[_0x1d2105(0x1c3)],{sheetName:_0x2e1a16,range:_0xc96d34}=Te['deserializeRangeWithSheet'](_0xa0ec67),_0x32ccd3={'name':(_0x1c170d=(_0x2f6788=this[_0x1d2105(0x1f3)]['getMember'](this['unitID'],_0x444ce6))==null?void 0x0:_0x2f6788[_0x1d2105(0x2fc)])!=null?_0x1c170d:_0x1d2105(0x11a),'range':this[_0x1d2105(0x33a)](_0x2e1a16,_0xc96d34),'sheetID':_0x2e1a16,'color':this[_0x1d2105(0x281)][_0x1d2105(0x210)](_0x444ce6),'selection':_0xa0ec67},_0x3adcfc=this[_0x1d2105(0x311)];_0x3adcfc[_0x1d2105(0x130)](_0x444ce6,_0x32ccd3),this[_0x1d2105(0x154)]['next'](_0x3adcfc);}['_onCursorDelete'](_0xbd7010){const _0x3973e6=_0x5d5931,{memberID:_0x36907d}=_0xbd7010[_0x3973e6(0x1c3)],_0x3d53ca=this['cursorInfo'];_0x3d53ca[_0x3973e6(0x1a2)](_0x36907d),this[_0x3973e6(0x154)]['next'](_0x3d53ca);}['_getMergeRange'](_0x528d53,_0x517d4d){const _0x3175be=_0x5d5931;var _0x5eafbc,_0xcf5b3b;const _0x5281b6=(_0xcf5b3b=(_0x5eafbc=this[_0x3175be(0x21f)]['getUniverSheetInstance'](this[_0x3175be(0x2b0)]))==null?void 0x0:_0x5eafbc[_0x3175be(0x31a)](_0x528d53))==null?void 0x0:_0xcf5b3b['getMergeData']();return(_0x5281b6==null?void 0x0:_0x5281b6[_0x3175be(0x1f2)](_0x4e629b=>a['Rectangle'][_0x3175be(0x2fe)](_0x4e629b,_0x517d4d)))||_0x517d4d;}[_0x5d5931(0x208)](){const _0x440d45=_0x5d5931,_0x112319=new a[(_0x440d45(0x19a))](),_0x537ac7=at(),_0x2db17f=()=>{const _0x3c935d=_0x440d45;_0x112319[_0x3c935d(0x323)]();const _0x51a5de=(_0x86fbc8,_0x4feb31,_0x52c39d,_0x47ef7c)=>{const _0x4c71ad=_0x3c935d;let _0x4c5240=[];switch(_0x86fbc8['id']){case I[_0x4c71ad(0x21c)][_0x4c71ad(0x305)]:{_0x4c5240=I['handleDeleteRangeMoveLeft'](_0x86fbc8,_0x47ef7c);break;}case I[_0x4c71ad(0x21c)][_0x4c71ad(0x37b)]:{_0x4c5240=I[_0x4c71ad(0x1f6)](_0x86fbc8,_0x47ef7c);break;}case I['EffectRefRangId'][_0x4c71ad(0x17e)]:{_0x4c5240=I[_0x4c71ad(0x339)](_0x86fbc8,_0x47ef7c);break;}case I[_0x4c71ad(0x21c)]['InsertRangeMoveDownCommandId']:{_0x4c5240=I[_0x4c71ad(0x290)](_0x86fbc8,_0x47ef7c);break;}case I[_0x4c71ad(0x21c)][_0x4c71ad(0x304)]:{_0x4c5240=I[_0x4c71ad(0x2c2)](_0x86fbc8,_0x47ef7c);break;}case I['EffectRefRangId'][_0x4c71ad(0x1ee)]:{_0x4c5240=I[_0x4c71ad(0x1d0)](_0x86fbc8,_0x47ef7c);break;}case I[_0x4c71ad(0x21c)][_0x4c71ad(0x114)]:{_0x4c5240=I['handleMoveRange'](_0x86fbc8,_0x47ef7c);break;}case I[_0x4c71ad(0x21c)][_0x4c71ad(0x20e)]:{_0x4c5240=I[_0x4c71ad(0x156)](_0x86fbc8,_0x47ef7c);break;}case I[_0x4c71ad(0x21c)][_0x4c71ad(0x38d)]:{_0x4c5240=I['handleIRemoveRow'](_0x86fbc8,_0x47ef7c);break;}}const _0x1dc597=I[_0x4c71ad(0x1c1)](_0x4c5240,_0x47ef7c),_0x658c53=this['cursorInfo']['get'](_0x4feb31);if(_0x658c53&&_0x1dc597){const _0x5886b9={..._0x658c53,'range':_0x1dc597};this[_0x4c71ad(0x311)][_0x4c71ad(0x130)](_0x4feb31,_0x5886b9),_0x537ac7(()=>{const _0x321b70=_0x4c71ad,_0x3b7310=this[_0x321b70(0x267)]['registerRefRange'](_0x1dc597,_0x549d67=>(_0x3b7310['dispose'](),_0x51a5de(_0x549d67,_0x4feb31,_0x52c39d,_0x1dc597)));_0x112319['add'](_0x3b7310);});}return{'redos':[],'undos':[]};};this[_0x3c935d(0x311)][_0x3c935d(0x2e0)]((_0x56b58a,_0x55e257)=>{const _0x45bf04=_0x3c935d,{range:_0x3664ea,sheetID:_0x29fb8e}=_0x56b58a,_0x295de0=this[_0x45bf04(0x267)][_0x45bf04(0x244)](_0x3664ea,_0x519a5a=>(_0x295de0[_0x45bf04(0x323)](),_0x51a5de(_0x519a5a,_0x55e257,_0x29fb8e,_0x3664ea)));_0x112319['add'](_0x295de0);});};this['disposeWithMe'](a[_0x440d45(0x236)](this['_cursorInfo$']['subscribe'](()=>{_0x2db17f();})));}[_0x5d5931(0x35b)](){const _0x41b777=_0x5d5931;var _0x52727e,_0x2ead8c;if(this['_online']=!0x0,((_0x52727e=this[_0x41b777(0x21f)][_0x41b777(0x2bb)]())==null?void 0x0:_0x52727e[_0x41b777(0x159)]())!==this['unitID'])return;const _0x4c46da=(_0x2ead8c=this[_0x41b777(0x21a)][_0x41b777(0x2d2)](I['SheetsSelectionsService'])[_0x41b777(0x225)]())==null?void 0x0:_0x2ead8c[0x0],_0x3ef005=this['_univerInstanceService'][_0x41b777(0x2e2)](a[_0x41b777(0x2a6)][_0x41b777(0x378)])[_0x41b777(0x2ee)]();_0x4c46da&&_0x3ef005&&this[_0x41b777(0x160)](_0x3ef005['getSheetId'](),_0x4c46da);}[_0x5d5931(0x153)](){this['_online']=!0x1;}};ve=it([y(0x2,a[_0x5d5931(0x186)](a[_0x5d5931(0x2a5)])),y(0x3,a[_0x5d5931(0x186)](Ce)),y(0x4,a['Inject'](u[_0x5d5931(0x149)])),y(0x5,a[_0x5d5931(0x22e)]),y(0x6,a['ICommandService']),y(0x7,a[_0x5d5931(0x186)](I[_0x5d5931(0x348)]))],ve);var ct=Object[_0x5d5931(0x12f)],lt=(_0x4f5a27,_0x578da3,_0x4cd6a5,_0x2dda6c)=>{const _0x451112=_0x5d5931;for(var _0x5b0c3a=_0x2dda6c>0x1?void 0x0:_0x2dda6c?ct(_0x578da3,_0x4cd6a5):_0x578da3,_0x5b3564=_0x4f5a27[_0x451112(0x247)]-0x1,_0x139be6;_0x5b3564>=0x0;_0x5b3564--)(_0x139be6=_0x4f5a27[_0x5b3564])&&(_0x5b0c3a=_0x139be6(_0x5b0c3a)||_0x5b0c3a);return _0x5b0c3a;},ie=(_0xf8f62a,_0xcb834b)=>(_0x31c470,_0x5cc531)=>_0xcb834b(_0x31c470,_0x5cc531,_0xf8f62a);let x=class extends a[_0x5d5931(0x374)]{constructor(_0x237df4,_0x135b85,_0x54e2fc){const _0x12187a=_0x5d5931;super(),h(this,_0x12187a(0x169),new Map()),h(this,_0x12187a(0x134),new d[(_0x12187a(0x1eb))]()),(this['_univerInstanceService']=_0x237df4,this[_0x12187a(0x21a)]=_0x135b85,this[_0x12187a(0x271)]=_0x54e2fc,this[_0x12187a(0x1fd)]());}[_0x5d5931(0x323)](){const _0x295b5a=_0x5d5931;super[_0x295b5a(0x323)](),this[_0x295b5a(0x134)]['complete'](),this[_0x295b5a(0x169)][_0x295b5a(0x2e0)](_0x282a3e=>_0x282a3e[_0x295b5a(0x323)]());}['getCollabCursors$'](_0x59d2e6){const _0x4f1eda=_0x5d5931;return this['_entities']['has'](_0x59d2e6)?this[_0x4f1eda(0x169)][_0x4f1eda(0x2d2)](_0x59d2e6)[_0x4f1eda(0x1fe)]:this['_entityInit$'][_0x4f1eda(0x33b)](d[_0x4f1eda(0x2d6)](_0x3608bf=>_0x3608bf['unitID']===_0x59d2e6),d[_0x4f1eda(0x2f4)](_0x523730=>_0x523730['cursorInfo$']));}[_0x5d5931(0x1fd)](){const _0x382f31=_0x5d5931;this[_0x382f31(0x21f)][_0x382f31(0x2be)](a[_0x382f31(0x2a6)][_0x382f31(0x378)])['pipe'](d[_0x382f31(0x257)](this[_0x382f31(0x299)]))[_0x382f31(0x363)](async _0x3c01a1=>{const _0xaaae7b=_0x382f31,_0x4cde8c=_0x3c01a1[_0xaaae7b(0x159)](),_0x559028=await this['_startSheetCollabCursor'](_0x4cde8c);this[_0xaaae7b(0x134)][_0xaaae7b(0x28c)](_0x559028),this[_0xaaae7b(0x169)][_0xaaae7b(0x130)](_0x4cde8c,_0x559028);}),this[_0x382f31(0x21f)]['getTypeOfUnitAdded$'](a[_0x382f31(0x2a6)][_0x382f31(0x380)])[_0x382f31(0x33b)](d[_0x382f31(0x257)](this['dispose$']))[_0x382f31(0x33b)](d['filter'](_0x279545=>!_0x279545[_0x382f31(0x159)]()[_0x382f31(0x22c)]('__')))['subscribe'](async _0xf883f0=>{const _0xf0e25c=_0x382f31,_0x4cd22b=_0xf883f0[_0xf0e25c(0x159)](),_0x32fd27=await this[_0xf0e25c(0x1e2)](_0x4cd22b);this[_0xf0e25c(0x134)][_0xf0e25c(0x28c)](_0x32fd27),this['_entities'][_0xf0e25c(0x130)](_0x4cd22b,_0x32fd27);}),d[_0x382f31(0x34a)](this[_0x382f31(0x21f)][_0x382f31(0x2df)](a[_0x382f31(0x2a6)][_0x382f31(0x380)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SHEET']))[_0x382f31(0x33b)](d[_0x382f31(0x257)](this['dispose$']))[_0x382f31(0x363)](_0x15ce4f=>{const _0x42be8c=_0x382f31,_0x5afd0a=_0x15ce4f[_0x42be8c(0x159)](),_0x2c1ec5=this['_entities'][_0x42be8c(0x2d2)](_0x5afd0a);_0x2c1ec5&&(_0x2c1ec5[_0x42be8c(0x323)](),this[_0x42be8c(0x169)][_0x42be8c(0x1a2)](_0x5afd0a));});}async[_0x5d5931(0x318)](_0x34bba2){const _0x1af344=_0x5d5931,_0x302cbe=await this['_collabSessionService']['requireSession'](_0x34bba2),_0x232abf=this[_0x1af344(0x21a)][_0x1af344(0x13a)](ve,_0x34bba2,_0x302cbe);return _0x232abf[_0x1af344(0x1dd)](),_0x232abf;}async[_0x5d5931(0x1e2)](_0x356675){const _0x3b26e1=_0x5d5931,_0x335854=await this[_0x3b26e1(0x271)][_0x3b26e1(0x32f)](_0x356675),_0x51bd1a=this[_0x3b26e1(0x21a)][_0x3b26e1(0x13a)](Se,_0x356675,_0x335854);return _0x51bd1a[_0x3b26e1(0x1dd)](),_0x51bd1a;}};x=lt([ie(0x0,a[_0x5d5931(0x22e)]),ie(0x1,a[_0x5d5931(0x186)](a[_0x5d5931(0x2a5)])),ie(0x2,a[_0x5d5931(0x186)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x695344,_0x132f99){const _0x1d76bb=_0x5d5931;let {radius:_0x4b38c5,width:_0x1cd42e,height:_0x22938c}=_0x132f99;_0x4b38c5=_0x4b38c5!=null?_0x4b38c5:0x0,_0x1cd42e=_0x1cd42e!=null?_0x1cd42e:0x1e,_0x22938c=_0x22938c!=null?_0x22938c:0x1e;let _0x35f9fb=0x0,_0x75e81c=0x0,_0x20b1d7=0x0;_0x35f9fb=_0x75e81c=_0x20b1d7=Math[_0x1d76bb(0x364)](_0x4b38c5,_0x1cd42e/0x2,_0x22938c/0x2),_0x695344[_0x1d76bb(0x362)](),_0x695344[_0x1d76bb(0x2af)](_0x35f9fb,0x0),_0x695344[_0x1d76bb(0x2c6)](_0x1cd42e-_0x75e81c,0x0),_0x695344[_0x1d76bb(0x115)](_0x1cd42e-_0x75e81c,_0x75e81c,_0x75e81c,Math['PI']*0x3/0x2,0x0,!0x1),_0x695344[_0x1d76bb(0x2c6)](_0x1cd42e,_0x22938c-_0x20b1d7),_0x695344[_0x1d76bb(0x115)](_0x1cd42e-_0x20b1d7,_0x22938c-_0x20b1d7,_0x20b1d7,0x0,Math['PI']/0x2,!0x1),_0x695344['lineTo'](0x0,_0x22938c),_0x695344[_0x1d76bb(0x2c6)](0x0,_0x35f9fb),_0x695344[_0x1d76bb(0x115)](_0x35f9fb,_0x35f9fb,_0x35f9fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x695344['closePath'](),_0x132f99[_0x1d76bb(0x24c)]&&(_0x695344[_0x1d76bb(0x32d)](),_0x695344[_0x1d76bb(0x162)]=_0x132f99['fill'],_0x132f99[_0x1d76bb(0x1aa)]===_0x1d76bb(0x38b)?_0x695344[_0x1d76bb(0x24c)]('evenodd'):_0x695344['fill'](),_0x695344[_0x1d76bb(0x2b3)]());}class te extends p[_0x5d5931(0x178)]{constructor(_0x54f2cd,_0x398359){const _0x3a3183=_0x5d5931;super(_0x54f2cd,_0x398359),h(this,'color'),h(this,_0x3a3183(0x1de)),(this[_0x3a3183(0x35a)]=_0x398359==null?void 0x0:_0x398359[_0x3a3183(0x35a)],this[_0x3a3183(0x1de)]=_0x398359==null?void 0x0:_0x398359[_0x3a3183(0x1de)]);}static[_0x5d5931(0x1ed)](_0x2cec8a,_0x5c567a){const _0x7eb75a=_0x5d5931,{text:_0x40253a,color:_0x4c31e2}=_0x5c567a;_0x2cec8a[_0x7eb75a(0x32d)](),_0x2cec8a[_0x7eb75a(0x2f2)]=_0x7eb75a(0x1fb);const _0x43c173=_0x2cec8a[_0x7eb75a(0x29d)](_0x40253a)[_0x7eb75a(0x1d1)],_0x29f925=Math[_0x7eb75a(0x364)](_0x43c173+0x2*re,De);_t(_0x2cec8a,{'height':K,'radius':0x4,'width':_0x29f925,'fill':_0x4c31e2}),_0x2cec8a[_0x7eb75a(0x162)]=_0x7eb75a(0x34c);const _0x32c585=re,_0x564a27=K-ht,_0xb3be76=De-0x2*re;if(_0x43c173>_0xb3be76){let _0x35e328='',_0x13c164=0x0;for(const _0x103131 of _0x40253a){const _0x278d00=_0x2cec8a[_0x7eb75a(0x29d)](_0x103131)[_0x7eb75a(0x1d1)];if(_0x13c164+_0x278d00<=_0xb3be76-_0x2cec8a['measureText']('...')[_0x7eb75a(0x1d1)])_0x35e328+=_0x103131,_0x13c164+=_0x278d00;else{_0x35e328+=_0x7eb75a(0x357);break;}}_0x2cec8a[_0x7eb75a(0x2f9)](_0x35e328,_0x32c585,_0x564a27);}else _0x2cec8a[_0x7eb75a(0x2f9)](_0x40253a,_0x32c585,_0x564a27);_0x2cec8a[_0x7eb75a(0x2b3)]();}[_0x5d5931(0x209)](_0x6d9148){te['drawWith'](_0x6d9148,this);}}const oe=_0x5d5931(0x303),ut=_0x5d5931(0x274),dt=_0x5d5931(0x2c1),B=0x6,ft=1.5,ae=0x4,St=1.5,vt='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x375d8c,_0x3ba859,_0xf7ced6,_0xf4c1e7){const _0x2425b3=_0x5d5931;h(this,_0x2425b3(0x313),[]),h(this,_0x2425b3(0x226),null),h(this,_0x2425b3(0x295),null),h(this,_0x2425b3(0x136),null),h(this,'_hideTimer',null),h(this,_0x2425b3(0x2ef),null),(this[_0x2425b3(0x145)]=_0x375d8c,this['_scene']=_0x3ba859,this[_0x2425b3(0x1c9)]=_0xf7ced6,this[_0x2425b3(0x37e)]=_0xf4c1e7,this[_0x2425b3(0x36c)]());}set[_0x5d5931(0x1e5)](_0x1f9c2d){const _0x11ac55=_0x5d5931;_0x1f9c2d?(this[_0x11ac55(0x136)]&&this[_0x11ac55(0x136)][_0x11ac55(0x2ce)](),this[_0x11ac55(0x295)]&&this['_textBubble']['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x11ac55(0x278)](),this[_0x11ac55(0x295)]&&this[_0x11ac55(0x295)][_0x11ac55(0x2ce)]());}[_0x5d5931(0x323)](){const _0x4d5972=_0x5d5931;for(const _0x16c92a of this[_0x4d5972(0x313)])_0x16c92a[_0x4d5972(0x323)]();this[_0x4d5972(0x295)]&&this[_0x4d5972(0x295)][_0x4d5972(0x323)](),this[_0x4d5972(0x136)]&&this[_0x4d5972(0x136)]['dispose'](),this['_anchor']&&this[_0x4d5972(0x226)][_0x4d5972(0x323)](),this[_0x4d5972(0x2ef)]&&this[_0x4d5972(0x2ef)]();}[_0x5d5931(0x36c)](){const _0x37915b=_0x5d5931;var _0x18d78b;const {_docSkeleton:_0x1c40df,_document:_0x3d91e7}=this,{color:_0xb1da14,name:_0x46f5b3,ranges:_0x5ba306}=this[_0x37915b(0x145)],_0x1855fd=_0x3d91e7['getOffsetConfig'](),{docsLeft:_0x484bfc,docsTop:_0x40f9e4}=_0x1855fd,_0x25a2f6=new b['NodePositionConvertToCursor'](_0x1855fd,_0x1c40df);for(const {startOffset:_0x504ba,endOffset:_0x1392e1,rangeType:_0x32c9cd,segmentId:_0x97830b,segmentPage:_0x2dcd73,collapsed:_0x39b060,isActive:_0x4ccbf3}of _0x5ba306){const _0x58483a=_0x1c40df[_0x37915b(0x141)](_0x504ba,!0x0,_0x97830b,_0x2dcd73);let _0xe97390=_0x1c40df[_0x37915b(0x141)](_0x1392e1,!0x0,_0x97830b,_0x2dcd73);if(_0xe97390==null&&(_0xe97390=_0x1c40df['findNodePositionByCharIndex'](_0x1392e1-0x1,!0x1,_0x97830b,_0x2dcd73)),_0x4ccbf3){const {contentBoxPointGroup:_0x3bcf8a}=_0x25a2f6[_0x37915b(0x259)](_0xe97390,_0xe97390);if(_0x3bcf8a[_0x37915b(0x247)]===0x0)continue;this[_0x37915b(0x184)](_0xb1da14,_0x3bcf8a,_0x484bfc,_0x40f9e4,_0x46f5b3),this[_0x37915b(0x2ef)]=this[_0x37915b(0x212)]();}if(_0x58483a&&_0xe97390){if(_0x32c9cd===a[_0x37915b(0x16a)]['RECT']){const _0x1c041e=new b[(_0x37915b(0x264))](_0x1855fd,_0x1c40df),{pointGroup:_0x4635db}=(_0x18d78b=_0x1c041e['getRangePointData'](_0x58483a,_0xe97390))!=null?_0x18d78b:{};if(_0x4635db==null||_0x4635db[_0x37915b(0x247)]===0x0)continue;this[_0x37915b(0x18e)](_0xb1da14,_0x4635db,_0x484bfc,_0x40f9e4);}else{if(!_0x39b060){const {borderBoxPointGroup:_0x4a6fe8}=_0x25a2f6['getRangePointData'](_0x58483a,_0xe97390);if(_0x4a6fe8[_0x37915b(0x247)]===0x0)continue;this[_0x37915b(0x336)](_0xb1da14,_0x4a6fe8,_0x484bfc,_0x40f9e4);}}}}}['_drawAnchor'](_0x2544c7,_0x1fea65,_0xce5d42,_0x2e7246,_0x4c60fa){const _0x5a47ef=_0x5d5931,_0x59ec7d=this[_0x5a47ef(0x36d)](_0x1fea65),{left:_0x211834,top:_0x6d887f,height:_0x2560be}=_0x59ec7d,_0x5c93b9=this['_getScale'](),_0x1b5651=St/_0x5c93b9,_0xc9bd3=new p[(_0x5a47ef(0x25b))](oe+a['Tools'][_0x5a47ef(0x242)](B),{'left':_0x211834+_0xce5d42-_0x1b5651,'top':_0x6d887f+_0x2e7246,'height':_0x2560be,'width':ft,'fill':_0x2544c7||p[_0x5a47ef(0x195)](a[_0x5a47ef(0x120)][_0x5a47ef(0x167)],0x0),'strokeWidth':_0x1b5651,'stroke':vt,'evented':!0x0});this[_0x5a47ef(0x226)]=_0xc9bd3,this[_0x5a47ef(0x2bc)][_0x5a47ef(0x366)](_0xc9bd3,b[_0x5a47ef(0x155)]);const _0x8f7a14=new p[(_0x5a47ef(0x25b))](oe+a[_0x5a47ef(0x306)][_0x5a47ef(0x242)](B),{'left':_0x211834+_0xce5d42-_0x1b5651,'top':_0x6d887f+_0x2e7246-ae/0x2,'height':ae,'width':ae,'fill':_0x2544c7||p[_0x5a47ef(0x195)](a['COLORS'][_0x5a47ef(0x167)],0x0),'strokeWidth':0x0,'stroke':_0x2544c7||p[_0x5a47ef(0x195)](a[_0x5a47ef(0x120)][_0x5a47ef(0x167)],0x0),'evented':!0x1});this['_anchorDot']=_0x8f7a14,this['_scene']['addObject'](_0x8f7a14,b['TEXT_RANGE_LAYER_INDEX']);const _0x54a393=new te(oe+a[_0x5a47ef(0x306)][_0x5a47ef(0x242)](B),{'left':_0x211834+_0xce5d42-_0x1b5651,'top':_0x6d887f+_0x2e7246-K,'text':_0x4c60fa,'color':_0x2544c7});this[_0x5a47ef(0x295)]=_0x54a393,this[_0x5a47ef(0x2bc)][_0x5a47ef(0x366)](_0x54a393,b[_0x5a47ef(0x155)]),this[_0x5a47ef(0x1e5)]=!0x1;}[_0x5d5931(0x212)](){const _0x5c3664=_0x5d5931,_0x20c8b5=this['_anchor'][_0x5c3664(0x28a)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x35349c=this[_0x5c3664(0x226)][_0x5c3664(0x11c)][_0x5c3664(0x229)](()=>{const _0x4b0178=_0x5c3664;this[_0x4b0178(0x2e5)]&&clearTimeout(this[_0x4b0178(0x2e5)]),this[_0x4b0178(0x2e5)]=setTimeout(()=>{const _0x1cd713=_0x4b0178;this[_0x1cd713(0x1e5)]=!0x1;},0x7d0);});return()=>{const _0x5054ba=_0x5c3664;_0x20c8b5[_0x5054ba(0x33e)](),_0x35349c[_0x5054ba(0x33e)]();};}[_0x5d5931(0x336)](_0x17c1cd,_0x48adb7,_0x16f16f,_0xdbb562){const _0x21d14c=_0x5d5931,_0x4cce54=new a[(_0x21d14c(0x300))](_0x17c1cd)[_0x21d14c(0x287)](0.2)[_0x21d14c(0x1bb)](),_0x194704=new p[(_0x21d14c(0x190))](ut+a[_0x21d14c(0x306)][_0x21d14c(0x242)](B),{'pointsGroup':_0x48adb7,'fill':_0x4cce54||p[_0x21d14c(0x195)](a[_0x21d14c(0x120)][_0x21d14c(0x167)],0.2),'left':_0x16f16f,'top':_0xdbb562,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x21d14c(0x20f)](_0x194704),this[_0x21d14c(0x2bc)][_0x21d14c(0x366)](_0x194704,b[_0x21d14c(0x155)]);}[_0x5d5931(0x18e)](_0x2ac02d,_0x44f5f2,_0x4f5a51,_0x3ba001){const _0x4afece=_0x5d5931,_0x557708=new a[(_0x4afece(0x300))](_0x2ac02d)[_0x4afece(0x287)](0.2)[_0x4afece(0x1bb)](),_0x44a34b=new p['RegularPolygon'](dt+a[_0x4afece(0x306)]['generateRandomId'](B),{'pointsGroup':_0x44f5f2,'fill':_0x557708||p[_0x4afece(0x195)](a[_0x4afece(0x120)]['black'],0.2),'left':_0x4f5a51,'top':_0x3ba001,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4afece(0x313)]['push'](_0x44a34b),this[_0x4afece(0x2bc)]['addObject'](_0x44a34b,b[_0x4afece(0x155)]);}[_0x5d5931(0x36d)](_0x2a081d){const _0x39de5b=_0x2a081d[0x0],_0x2615d1=_0x39de5b[0x0],_0x2be06a=_0x39de5b[0x2],{x:_0x18899e,y:_0x3da61a}=_0x2615d1,{x:_0x518ec4,y:_0xb6450c}=_0x2be06a;return{'left':_0x18899e,'top':_0x3da61a,'width':_0x518ec4-_0x18899e,'height':_0xb6450c-_0x3da61a};}[_0x5d5931(0x129)](){const _0x10c0ca=_0x5d5931,{scaleX:_0x291e92,scaleY:_0x2ab8a0}=this['_scene'][_0x10c0ca(0x216)]();return Math['max'](_0x291e92,_0x2ab8a0);}}var gt=Object[_0x5d5931(0x12f)],It=(_0xeed536,_0x3e207e,_0x21b0ae,_0x6114d7)=>{for(var _0x261d7f=_0x6114d7>0x1?void 0x0:_0x6114d7?gt(_0x3e207e,_0x21b0ae):_0x3e207e,_0x5ace87=_0xeed536['length']-0x1,_0x4cbe1b;_0x5ace87>=0x0;_0x5ace87--)(_0x4cbe1b=_0xeed536[_0x5ace87])&&(_0x261d7f=_0x4cbe1b(_0x261d7f)||_0x261d7f);return _0x261d7f;},X=(_0x1de4f2,_0x1ac436)=>(_0x4c1f1c,_0x3478d0)=>_0x1ac436(_0x4c1f1c,_0x3478d0,_0x1de4f2);let ge=class extends a['RxDisposable']{constructor(_0xa0f8f6,_0xf69a1a,_0x4ac636,_0x525b09,_0x288007){const _0x22d6cf=_0x5d5931;super(),h(this,_0x22d6cf(0x14d),[]),h(this,_0x22d6cf(0x255),[]),(this['_context']=_0xa0f8f6,this['_docSkeletonManagerService']=_0xf69a1a,this['_collabCursorController']=_0x4ac636,this[_0x22d6cf(0x276)]=_0x525b09,this[_0x22d6cf(0x1f7)]=_0x288007,this[_0x22d6cf(0x1fd)]());}[_0x5d5931(0x1fd)](){const _0x43bd33=_0x5d5931,_0x110e5c=this[_0x43bd33(0x21d)][_0x43bd33(0x2cf)],_0x283524=this[_0x43bd33(0x252)];this[_0x43bd33(0x2b9)](d[_0x43bd33(0x27d)]([this[_0x43bd33(0x369)][_0x43bd33(0x196)](_0x110e5c),this[_0x43bd33(0x1f7)][_0x43bd33(0x288)]])[_0x43bd33(0x33b)]($[_0x43bd33(0x294)](([_0x9928b8,_0x16ca3c])=>({'skeleton':_0x283524[_0x43bd33(0x2ad)](),'cursors':[..._0x9928b8[_0x43bd33(0x1c8)]()][_0x43bd33(0x161)](_0x3ece30=>({..._0x3ece30,'color':_0x16ca3c[_0x3ece30[_0x43bd33(0x35a)]]}))})))['subscribe'](_0x3aed1b=>{const _0x5a0ff4=_0x43bd33;if(this[_0x5a0ff4(0x1e1)](),_0x3aed1b){const {skeleton:_0x7d1c96,cursors:_0x56f483}=_0x3aed1b;this[_0x5a0ff4(0x1e3)](_0x7d1c96,_0x56f483);}})),this[_0x43bd33(0x1b5)](),this[_0x43bd33(0x124)]();}['_updateCollabCursors'](_0x14e59d,_0x5e6b7d){const _0x3c570a=_0x5d5931,{scene:_0x8430b5,mainComponent:_0x371be5}=this[_0x3c570a(0x21d)],_0x302f0d=_0x5e6b7d['map'](_0x1c2c1a=>new Ue(_0x1c2c1a,_0x8430b5,_0x14e59d,_0x371be5));this[_0x3c570a(0x14d)]=_0x302f0d,this[_0x3c570a(0x255)]=_0x5e6b7d;}[_0x5d5931(0x137)](){const _0x16a53a=_0x5d5931;this[_0x16a53a(0x1e1)]();const {scene:_0x4e0ab6,mainComponent:_0x43ba85}=this[_0x16a53a(0x21d)],_0x2d5787=this[_0x16a53a(0x252)][_0x16a53a(0x2ad)](),_0x3046ca=this[_0x16a53a(0x255)][_0x16a53a(0x294)](_0x5cdbbe=>new Ue(_0x5cdbbe,_0x4e0ab6,_0x2d5787,_0x43ba85));this[_0x16a53a(0x14d)]=_0x3046ca;}[_0x5d5931(0x1e1)](){const _0x1e875d=_0x5d5931;this[_0x1e875d(0x14d)][_0x1e875d(0x2e0)](_0x411572=>_0x411572[_0x1e875d(0x323)]()),this[_0x1e875d(0x14d)]=[];}['_initCommandExecutedListener'](){const _0x43068c=_0x5d5931,_0x54bb5e=[b[_0x43068c(0x1ef)]['id']];this['disposeWithMe'](this[_0x43068c(0x276)][_0x43068c(0x217)](_0x56dd0f=>{const _0x3ac628=_0x43068c;_0x54bb5e['includes'](_0x56dd0f['id'])&&_0x56dd0f[_0x3ac628(0x2c0)][_0x3ac628(0x2cf)]===this[_0x3ac628(0x21d)][_0x3ac628(0x2cf)]&&this[_0x3ac628(0x137)]();}));}[_0x5d5931(0x1b5)](){const _0x27da4d=_0x5d5931;this['disposeWithMe'](a[_0x27da4d(0x1d9)](this[_0x27da4d(0x21d)][_0x27da4d(0x214)]['onTransformChange$'])['pipe']($[_0x27da4d(0x2d6)](_0x3dab44=>_0x3dab44[_0x27da4d(0x36a)]===p[_0x27da4d(0x12d)][_0x27da4d(0x20d)]),$['throttleTime'](0x10))[_0x27da4d(0x363)](()=>{const _0x5b3d0b=_0x27da4d;this[_0x5b3d0b(0x137)]();}));}};ge=It([X(0x1,a[_0x5d5931(0x186)](Y[_0x5d5931(0x2e8)])),X(0x2,a[_0x5d5931(0x186)](x)),X(0x3,a[_0x5d5931(0x289)]),X(0x4,a['Inject'](a['ThemeService']))],ge);const mt=0x1,Ct=1.5;class ye extends p[_0x5d5931(0x178)]{constructor(_0x5a2ad9,_0x5705dc){const _0x5764c8=_0x5d5931;super(_0x5a2ad9,_0x5705dc),h(this,_0x5764c8(0x1d3)),h(this,_0x5764c8(0x2e3),!0x1),h(this,'_range'),h(this,_0x5764c8(0x358),''),h(this,'_labelPosition','top'),h(this,_0x5764c8(0x284)),(_0x5705dc&&this[_0x5764c8(0x1db)](_0x5705dc),this[_0x5764c8(0x28a)][_0x5764c8(0x229)](()=>this[_0x5764c8(0x1db)]({'hovered':!0x0})),this[_0x5764c8(0x11c)][_0x5764c8(0x229)](()=>this[_0x5764c8(0x1db)]({'hovered':!0x1})));}['setShapeProps'](_0x385b90){const _0x5a0792=_0x5d5931;var _0x2b4b4c,_0xdd9e,_0x57e75e,_0x4af5e0,_0x4ef262,_0x48e962;this['_color']=(_0x2b4b4c=_0x385b90[_0x5a0792(0x35a)])!=null?_0x2b4b4c:this['_color'],this[_0x5a0792(0x2e3)]=(_0xdd9e=_0x385b90['hovered'])!=null?_0xdd9e:this[_0x5a0792(0x2e3)],this[_0x5a0792(0x332)]=(_0x57e75e=_0x385b90[_0x5a0792(0x168)])!=null?_0x57e75e:this[_0x5a0792(0x332)],this[_0x5a0792(0x358)]=(_0x4af5e0=_0x385b90[_0x5a0792(0x2fc)])!=null?_0x4af5e0:this[_0x5a0792(0x358)],this[_0x5a0792(0x1c4)]=(_0x4ef262=_0x385b90['labelPosition'])!=null?_0x4ef262:this[_0x5a0792(0x1c4)],this[_0x5a0792(0x284)]=(_0x48e962=_0x385b90[_0x5a0792(0x2ba)])!=null?_0x48e962:this[_0x5a0792(0x284)],this['transformByState']({'width':_0x385b90[_0x5a0792(0x1d1)],'height':_0x385b90[_0x5a0792(0x2de)]});}[_0x5d5931(0x382)](_0xbc4f68){const _0x5eb35f=_0x5d5931,{row:_0x287c01,column:_0x1f30ec}=_0xbc4f68;if(_0x287c01>=this[_0x5eb35f(0x332)][_0x5eb35f(0x335)]&&_0x287c01<=this[_0x5eb35f(0x332)]['endRow']&&_0x1f30ec>=this['_range'][_0x5eb35f(0x25d)]&&_0x1f30ec<=this[_0x5eb35f(0x332)]['endColumn']){this[_0x5eb35f(0x1db)]({'hovered':!0x0});return;}this[_0x5eb35f(0x1db)]({'hovered':!0x1});}[_0x5d5931(0x1c6)](_0x3c1a57){return!0x1;}['_draw'](_0x45405a){const _0x4ff224=_0x5d5931;p[_0x4ff224(0x25b)][_0x4ff224(0x1ed)](_0x45405a,{'width':this[_0x4ff224(0x1d1)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x4ff224(0x1d3)],'evented':!0x1,'fill':this[_0x4ff224(0x284)]}),this[_0x4ff224(0x2e3)]&&(_0x45405a[_0x4ff224(0x32d)](),_0x45405a['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x4ff224(0x1c4)]==='bottom'?0x0:-0x14),te[_0x4ff224(0x1ed)](_0x45405a,{'text':this[_0x4ff224(0x358)],'color':this['_color']}),_0x45405a[_0x4ff224(0x2b3)]());}}var pt=Object[_0x5d5931(0x12f)],bt=(_0x123c0c,_0x1d71fe,_0x3cfa00,_0x4a2287)=>{for(var _0xbe39ab=_0x4a2287>0x1?void 0x0:_0x4a2287?pt(_0x1d71fe,_0x3cfa00):_0x1d71fe,_0x3324cf=_0x123c0c['length']-0x1,_0x43d83d;_0x3324cf>=0x0;_0x3324cf--)(_0x43d83d=_0x123c0c[_0x3324cf])&&(_0xbe39ab=_0x43d83d(_0xbe39ab)||_0xbe39ab);return _0xbe39ab;},ce=(_0x157077,_0x17ba03)=>(_0x44a146,_0x19bab6)=>_0x17ba03(_0x44a146,_0x19bab6,_0x157077);const Et=0x1389;let Ie=class extends a[_0x5d5931(0x374)]{constructor(_0xebe970,_0x53c9bd,_0x584e94,_0x5abc9b){const _0x2a857f=_0x5d5931;super(),h(this,_0x2a857f(0x255),new Set()),h(this,_0x2a857f(0x23e),null),(this[_0x2a857f(0x21d)]=_0xebe970,this[_0x2a857f(0x263)]=_0x53c9bd,this['_collabCursorController']=_0x584e94,this['_themeService']=_0x5abc9b,this[_0x2a857f(0x1fd)]());}[_0x5d5931(0x1fd)](){const _0x447141=_0x5d5931;this[_0x447141(0x263)][_0x447141(0x198)][_0x447141(0x33b)]($[_0x447141(0x257)](this[_0x447141(0x299)]),$['switchMap'](_0x55dd9e=>{const _0x114001=_0x447141;if(_0x55dd9e){const _0x3348ad=_0x55dd9e[_0x114001(0x1e0)];return d[_0x114001(0x27d)](this[_0x114001(0x369)][_0x114001(0x196)](this[_0x114001(0x21d)]['unitId']),this['_themeService']['currentTheme$'])[_0x114001(0x33b)]($['map'](([_0x5e402f,_0xda2dc6])=>{const _0x17826d=new Map();return _0x5e402f['forEach']((_0x59d3af,_0x193450)=>{const _0x507e2f=_0x55fe;if(_0x59d3af[_0x507e2f(0x381)]===_0x3348ad){const _0x489fdd={..._0x59d3af};_0x489fdd[_0x507e2f(0x35a)]=_0xda2dc6[_0x59d3af[_0x507e2f(0x35a)]],_0x17826d['set'](_0x193450,_0x489fdd);}}),{'skeleton':_0x55dd9e,'cursors':_0x17826d};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x447141(0x363)](({skeleton:_0x3d2304,cursors:_0x234177})=>{this['_removeCollabCursors'](),_0x3d2304&&this['_updateCollabCursors'](_0x3d2304,_0x234177);}),this[_0x447141(0x263)][_0x447141(0x198)][_0x447141(0x363)](_0xedd332=>{const _0x553d62=_0x447141;if(_0xedd332==null)return;const {skeleton:_0x57d43e}=_0xedd332,{scene:_0x1b1f4d}=this[_0x553d62(0x21d)];_0x1b1f4d[_0x553d62(0x383)][_0x553d62(0x229)](a['debounce'](_0x50cd82=>{const _0x41b9ee=_0x553d62;var _0x40cd8,_0x33a1bd;const {offsetX:_0x32e292,offsetY:_0x170ce4}=_0x50cd82,{x:_0x46e7ec,y:_0xa8c010}=_0x1b1f4d[_0x41b9ee(0x215)](p['Vector2'][_0x41b9ee(0x18f)]([_0x32e292,_0x170ce4])),{scaleX:_0x58158a,scaleY:_0x3e8c45}=_0x1b1f4d[_0x41b9ee(0x216)](),_0x76f006=_0x1b1f4d['getViewport'](p[_0x41b9ee(0x140)][_0x41b9ee(0x12a)]),_0xee1591=_0x1b1f4d[_0x41b9ee(0x324)](p['Vector2']['FromArray']([_0x46e7ec,_0xa8c010]),_0x76f006),_0x15151d=_0x57d43e[_0x41b9ee(0x36f)](_0x32e292,_0x170ce4,_0x58158a,_0x3e8c45,_0xee1591);((_0x40cd8=this[_0x41b9ee(0x23e)])==null?void 0x0:_0x40cd8['column'])===_0x15151d[_0x41b9ee(0x2f1)]&&((_0x33a1bd=this[_0x41b9ee(0x23e)])==null?void 0x0:_0x33a1bd[_0x41b9ee(0x2c8)])===_0x15151d[_0x41b9ee(0x2c8)]||this[_0x41b9ee(0x255)][_0x41b9ee(0x2e0)](_0x1b8917=>{_0x1b8917['onMouseMove'](_0x15151d);});},0x64));});}[_0x5d5931(0x1e3)](_0x26aa2d,_0x6d7f94){const _0x481f62=_0x5d5931;var _0x44b17a;const _0x349952=(_0x44b17a=this[_0x481f62(0x263)]['getCurrent']())==null?void 0x0:_0x44b17a['skeleton'];if(!_0x349952)return;const _0x38e3f2=this[_0x481f62(0x341)]();if(!_0x38e3f2)return;this['_cursors']['forEach'](_0x4f6759=>{const _0x5018c7=_0x481f62;_0x4f6759[_0x5018c7(0x1a5)]();});const {scene:_0x1ec989}=_0x38e3f2,_0x39a22c=Tt(Array[_0x481f62(0x1b8)](_0x6d7f94[_0x481f62(0x1c8)]()))['map'](_0x4f67c6=>{const _0x48c018=_0x481f62,{color:_0xb13c8f,range:_0x537d67,name:_0x4635bd,selection:_0x2e1526,sheetID:_0x5c444b}=_0x4f67c6,{startColumn:_0x1c6c66,startRow:_0x30e6b7,endColumn:_0x2218b8,endRow:_0x13599c}=_0x537d67,_0x32596a=G[_0x48c018(0x33c)](_0x30e6b7,_0x1c6c66,_0x1ec989,_0x349952),_0x592e9c=G[_0x48c018(0x33c)](_0x13599c,_0x2218b8,_0x1ec989,_0x349952),{columnHeaderHeightAndMarginTop:_0x233bae}=_0x349952,{startX:_0x6ad3a,startY:_0x3e6109}=_0x32596a,{endX:_0x21544d,endY:_0x19f7b2}=_0x592e9c,_0x32e2e1=_0x21544d-_0x6ad3a,_0x39cb4e=_0x19f7b2-_0x3e6109,_0x40c0fb={'labelPosition':_0x3e6109-_0x233bae>=K?_0x48c018(0x26e):_0x48c018(0x2a8),'sheetID':_0x5c444b,'range':_0x537d67,'color':_0xb13c8f,'name':_0x4635bd,'selection':_0x2e1526,'left':_0x6ad3a,'top':_0x3e6109,'width':_0x32e2e1,'height':_0x39cb4e,'evented':!0x1,'zIndex':Et};return new ye(_0x4635bd,_0x40c0fb);});_0x1ec989[_0x481f62(0x283)](_0x39a22c,mt),this['_cursors']=new Set(_0x39a22c);}['_removeCollabCursors'](){const _0x2e54f8=_0x5d5931;var _0x1589df;(_0x1589df=this[_0x2e54f8(0x255)])==null||_0x1589df[_0x2e54f8(0x2e0)](_0x151c7f=>_0x151c7f['dispose']());}[_0x5d5931(0x341)](){const _0x1b1d5e=_0x5d5931;return G[_0x1b1d5e(0x26f)](this[_0x1b1d5e(0x21d)][_0x1b1d5e(0x151)],this['_context']);}};Ie=bt([ce(0x1,a['Inject'](G[_0x5d5931(0x2fb)])),ce(0x2,a[_0x5d5931(0x186)](x)),ce(0x3,a[_0x5d5931(0x186)](a[_0x5d5931(0x23b)]))],Ie);function Tt(_0x33c07b){const _0x475a2a=_0x5d5931,_0x557a26=new Map();return _0x33c07b[_0x475a2a(0x2e0)](_0x345525=>{const _0x1cb012=_0x475a2a;if(_0x557a26[_0x1cb012(0x12b)](_0x345525[_0x1cb012(0x2d3)])){const _0x3e75fe=_0x557a26[_0x1cb012(0x2d2)](_0x345525[_0x1cb012(0x2d3)]);_0x3e75fe['name']+=',\x20'+_0x345525[_0x1cb012(0x2fc)];}else _0x557a26[_0x1cb012(0x130)](_0x345525[_0x1cb012(0x2d3)],_0x345525);}),Array['from'](_0x557a26[_0x475a2a(0x1c8)]());}var E=function(){const _0x18a8b2=_0x5d5931;return E=Object[_0x18a8b2(0x15d)]||function(_0x573b01){const _0x2ff09d=_0x18a8b2;for(var _0x5f2696,_0x1e55db=0x1,_0x18317f=arguments[_0x2ff09d(0x247)];_0x1e55db<_0x18317f;_0x1e55db++){_0x5f2696=arguments[_0x1e55db];for(var _0x1b9fb3 in _0x5f2696)Object[_0x2ff09d(0x30c)][_0x2ff09d(0x29a)][_0x2ff09d(0x250)](_0x5f2696,_0x1b9fb3)&&(_0x573b01[_0x1b9fb3]=_0x5f2696[_0x1b9fb3]);}return _0x573b01;},E[_0x18a8b2(0x249)](this,arguments);},Rt=function(_0x62f8e1,_0x52adc5){const _0x438215=_0x5d5931;var _0x491122={};for(var _0xdf511b in _0x62f8e1)Object['prototype'][_0x438215(0x29a)][_0x438215(0x250)](_0x62f8e1,_0xdf511b)&&_0x52adc5[_0x438215(0x202)](_0xdf511b)<0x0&&(_0x491122[_0xdf511b]=_0x62f8e1[_0xdf511b]);if(_0x62f8e1!=null&&typeof Object[_0x438215(0x355)]=='function'){for(var _0x4a0ea7=0x0,_0xdf511b=Object['getOwnPropertySymbols'](_0x62f8e1);_0x4a0ea7<_0xdf511b[_0x438215(0x247)];_0x4a0ea7++)_0x52adc5[_0x438215(0x202)](_0xdf511b[_0x4a0ea7])<0x0&&Object['prototype'][_0x438215(0x131)][_0x438215(0x250)](_0x62f8e1,_0xdf511b[_0x4a0ea7])&&(_0x491122[_0xdf511b[_0x4a0ea7]]=_0x62f8e1[_0xdf511b[_0x4a0ea7]]);}return _0x491122;},be=P[_0x5d5931(0x117)](function(_0x53846b,_0x2b2d8b){const _0x136317=_0x5d5931;var _0x13b928=_0x53846b['icon'],_0xb42d9d=_0x53846b['id'],_0x37d551=_0x53846b[_0x136317(0x315)],_0x5638b7=_0x53846b[_0x136317(0x1b3)],_0x319338=Rt(_0x53846b,['icon','id',_0x136317(0x315),_0x136317(0x1b3)]),_0x59967e=_0x136317(0x123)['concat'](_0xb42d9d,'\x20')[_0x136317(0x319)](_0x37d551||'')[_0x136317(0x368)](),_0x5cf579=P[_0x136317(0x33d)]('_'[_0x136317(0x319)](Ut()));return Ae(_0x13b928,''['concat'](_0xb42d9d),{'defIds':_0x13b928['defIds'],'idSuffix':_0x5cf579[_0x136317(0x1f0)]},E({'ref':_0x2b2d8b,'className':_0x59967e},_0x319338),_0x5638b7);});function _0x55fe(_0x5a450a,_0x24af1e){const _0x5c2595=_0x5c25();return _0x55fe=function(_0x55feee,_0x487e41){_0x55feee=_0x55feee-0x113;let _0x457cc0=_0x5c2595[_0x55feee];return _0x457cc0;},_0x55fe(_0x5a450a,_0x24af1e);}function Ae(_0x441d27,_0x5a9525,_0x38ce97,_0x5cee31,_0x4846cf){const _0x34cdfd=_0x5d5931;return P[_0x34cdfd(0x16c)](_0x441d27[_0x34cdfd(0x297)],E(E({'key':_0x5a9525},Ot(_0x441d27,_0x38ce97,_0x4846cf)),_0x5cee31),(Dt(_0x441d27,_0x38ce97)[_0x34cdfd(0x31b)]||[])[_0x34cdfd(0x294)](function(_0x203067,_0xfd4890){const _0x4350a8=_0x34cdfd;return Ae(_0x203067,''[_0x4350a8(0x319)](_0x5a9525,'-')[_0x4350a8(0x319)](_0x441d27[_0x4350a8(0x297)],'-')[_0x4350a8(0x319)](_0xfd4890),_0x38ce97,void 0x0,_0x4846cf);}));}function Ot(_0x5ecdb5,_0x2f130e,_0x4d5c10){const _0xe788b6=_0x5d5931;var _0x37245c=E({},_0x5ecdb5[_0xe788b6(0x15b)]);_0x4d5c10!=null&&_0x4d5c10[_0xe788b6(0x30a)]&&_0x37245c[_0xe788b6(0x24c)]===_0xe788b6(0x30a)&&(_0x37245c[_0xe788b6(0x24c)]=_0x4d5c10[_0xe788b6(0x30a)]),_0x5ecdb5[_0xe788b6(0x297)]===_0xe788b6(0x113)&&_0x37245c['id']&&(_0x37245c['id']=_0x37245c['id']+_0x2f130e[_0xe788b6(0x2d0)]),Object[_0xe788b6(0x1be)](_0x37245c)['forEach'](function(_0x369d23){const _0x258fc7=_0xe788b6;var _0x378869=_0x369d23[0x0],_0x4b7c2b=_0x369d23[0x1];_0x378869==='mask'&&typeof _0x4b7c2b==_0x258fc7(0x15f)&&(_0x37245c[_0x378869]=_0x4b7c2b['replace'](/url\(#(.*)\)/,_0x258fc7(0x2f5)['concat'](_0x2f130e['idSuffix'],')')));});var _0x5b88b0=_0x2f130e[_0xe788b6(0x2d4)];return!_0x5b88b0||_0x5b88b0[_0xe788b6(0x247)]===0x0||(_0x5ecdb5[_0xe788b6(0x297)]===_0xe788b6(0x15c)&&_0x37245c[_0xe788b6(0x14f)]&&(_0x37245c['xlink:href']=_0x37245c[_0xe788b6(0x14f)]+_0x2f130e[_0xe788b6(0x2d0)]),Object[_0xe788b6(0x1be)](_0x37245c)[_0xe788b6(0x2e0)](function(_0xaf2984){const _0x18fc97=_0xe788b6;var _0x594f33=_0xaf2984[0x0],_0x26b39f=_0xaf2984[0x1];typeof _0x26b39f==_0x18fc97(0x15f)&&(_0x37245c[_0x594f33]=_0x26b39f[_0x18fc97(0x187)](/url\(#(.*)\)/,_0x18fc97(0x2f5)[_0x18fc97(0x319)](_0x2f130e[_0x18fc97(0x2d0)],')')));})),_0x37245c;}function Dt(_0x37d8d7,_0x38b231){const _0x527e7b=_0x5d5931;var _0x53619a,_0x98f13f=_0x38b231[_0x527e7b(0x2d4)];return!_0x98f13f||_0x98f13f[_0x527e7b(0x247)]===0x0?_0x37d8d7:_0x37d8d7[_0x527e7b(0x297)]===_0x527e7b(0x28b)&&(!((_0x53619a=_0x37d8d7['children'])===null||_0x53619a===void 0x0)&&_0x53619a['length'])?E(E({},_0x37d8d7),{'children':_0x37d8d7[_0x527e7b(0x31b)][_0x527e7b(0x294)](function(_0x307546){const _0x47353d=_0x527e7b;return typeof _0x307546[_0x47353d(0x15b)]['id']==_0x47353d(0x15f)&&_0x98f13f&&_0x98f13f[_0x47353d(0x202)](_0x307546[_0x47353d(0x15b)]['id'])>-0x1?E(E({},_0x307546),{'attrs':E(E({},_0x307546[_0x47353d(0x15b)]),{'id':_0x307546[_0x47353d(0x15b)]['id']+_0x38b231[_0x47353d(0x2d0)]})}):_0x307546;})}):_0x37d8d7;}function Ut(){const _0x123638=_0x5d5931;return Math['random']()[_0x123638(0x37f)](0x24)['substring'](0x2,0x8);}be[_0x5d5931(0x261)]=_0x5d5931(0x2d8);var Mt={'tag':_0x5d5931(0x388),'attrs':{'fill':'none','viewBox':_0x5d5931(0x352),'width':_0x5d5931(0x24f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5d5931(0x207)},'children':[{'tag':_0x5d5931(0x38c),'attrs':{'stroke':_0x5d5931(0x25e),'d':_0x5d5931(0x17b),'strokeLinecap':_0x5d5931(0x286),'strokeLinejoin':_0x5d5931(0x286),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5d5931(0x38c),'attrs':{'fill':_0x5d5931(0x310),'d':_0x5d5931(0x35d)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=P['forwardRef'](function(_0x67258c,_0x5bde76){const _0x4e1cd2=_0x5d5931;return P[_0x4e1cd2(0x16c)](be,Object['assign']({},_0x67258c,{'id':_0x4e1cd2(0x230),'ref':_0x5bde76,'icon':Mt}));});$e[_0x5d5931(0x261)]='OffLineSingle';var Pt={'tag':_0x5d5931(0x388),'attrs':{'fill':_0x5d5931(0x126),'viewBox':_0x5d5931(0x322),'width':_0x5d5931(0x24f),'height':_0x5d5931(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5d5931(0x27e)},'children':[{'tag':_0x5d5931(0x38c),'attrs':{'stroke':_0x5d5931(0x25e),'d':_0x5d5931(0x220),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5d5931(0x158),'attrs':{'id':_0x5d5931(0x1a9)},'children':[{'tag':_0x5d5931(0x38c),'attrs':{'fill':_0x5d5931(0x310),'d':_0x5d5931(0x35d),'transform':_0x5d5931(0x2c3)}}]}]}],'defIds':[_0x5d5931(0x1a9)]},xe=P['forwardRef'](function(_0x588cc6,_0x1350ab){const _0x3575=_0x5d5931;return P['createElement'](be,Object[_0x3575(0x15d)]({},_0x588cc6,{'id':_0x3575(0x333),'ref':_0x1350ab,'icon':Pt}));});xe['displayName']='OnLineSingle';const Nt=_0x5d5931(0x29b),wt='univer-online-status-title',Lt=_0x5d5931(0x1cc),yt=_0x5d5931(0x1af),At='univer-offline',H={'onlineStatusIcon':Nt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':yt,'offline':At};function $t(_0x31addc){const _0x47c9ea=_0x5d5931;switch(_0x31addc){case u[_0x47c9ea(0x1d8)][_0x47c9ea(0x1a4)]:return'collabStatus.offline';case u[_0x47c9ea(0x1d8)][_0x47c9ea(0x12c)]:return'collabStatus.conflict';case u[_0x47c9ea(0x1d8)][_0x47c9ea(0x373)]:return _0x47c9ea(0x227);case u[_0x47c9ea(0x1d8)]['NOT_COLLAB']:return _0x47c9ea(0x133);case u[_0x47c9ea(0x1d8)][_0x47c9ea(0x317)]:case u[_0x47c9ea(0x1d8)][_0x47c9ea(0x241)]:return _0x47c9ea(0x29f);case u[_0x47c9ea(0x1d8)][_0x47c9ea(0x296)]:case u[_0x47c9ea(0x1d8)][_0x47c9ea(0x1e9)]:return _0x47c9ea(0x377);}}function je(_0x3c8731){const _0x107be6=_0x5d5931,{status$:_0x32b3ca}=_0x3c8731,_0x2d9ad7=R['useObservable'](_0x32b3ca,u[_0x107be6(0x1d8)][_0x107be6(0x291)]),_0x395fc8=R[_0x107be6(0x2ec)](a[_0x107be6(0x223)]),_0x50641c=R[_0x107be6(0x2ec)](u[_0x107be6(0x2c5)]),_0xb8cf6c=_0x2d9ad7!==u['CollaborationStatus']['OFFLINE'],_0x59006b=_0x395fc8['t']($t(_0x2d9ad7)),_0x5c4d65=T[_0x107be6(0x340)](H['onlineStatus'],{[H[_0x107be6(0x384)]]:_0xb8cf6c,[H[_0x107be6(0x132)]]:!_0xb8cf6c}),_0x1c7ece=_0xb8cf6c?w[_0x107be6(0x34b)](xe,{}):w[_0x107be6(0x34b)]($e,{}),_0x400a43=P[_0x107be6(0x135)](()=>{_0xb8cf6c||_0x50641c['reconnect']();},[_0xb8cf6c,_0x50641c]);function _0xaa962c(){const _0x654581=_0x107be6;return w['jsxs'](_0x654581(0x16b),{'className':T[_0x654581(0x340)](_0x5c4d65,_0x654581(0x1c0)),'onClick':_0x400a43,'children':[w[_0x654581(0x34b)]('div',{'className':H['onlineStatusIcon'],'children':_0x1c7ece}),w[_0x654581(0x34b)]('div',{'className':H[_0x654581(0x30f)],'children':_0x59006b})]});}return _0xb8cf6c?_0xaa962c():w[_0x107be6(0x34b)](T[_0x107be6(0x14c)],{'title':_0x395fc8['t']('collab-client.tooltip.reconnect'),'children':_0xaa962c()});}var xt=Object[_0x5d5931(0x12f)],jt=(_0x7575cc,_0x250ca4,_0x42e9b1,_0x4bfaf)=>{const _0x2a26cd=_0x5d5931;for(var _0x54272c=_0x4bfaf>0x1?void 0x0:_0x4bfaf?xt(_0x250ca4,_0x42e9b1):_0x250ca4,_0x3f2ecd=_0x7575cc[_0x2a26cd(0x247)]-0x1,_0x40ada6;_0x3f2ecd>=0x0;_0x3f2ecd--)(_0x40ada6=_0x7575cc[_0x3f2ecd])&&(_0x54272c=_0x40ada6(_0x54272c)||_0x54272c);return _0x54272c;},V=(_0x56f971,_0x459c98)=>(_0x39f14c,_0x207519)=>_0x459c98(_0x39f14c,_0x207519,_0x56f971);exports[_0x5d5931(0x188)]=class extends a[_0x5d5931(0x19d)]{constructor(_0x35504a,_0x489267,_0x3002dc,_0x5b4c72){const _0x9a81c3=_0x5d5931;super(),h(this,_0x9a81c3(0x32e),new d[(_0x9a81c3(0x361))](u['CollaborationStatus'][_0x9a81c3(0x291)])),(this[_0x9a81c3(0x21f)]=_0x35504a,this[_0x9a81c3(0x21a)]=_0x489267,this['_collaborationController']=_0x3002dc,this[_0x9a81c3(0x16d)]=_0x5b4c72,this['_initStatusComponent'](),this[_0x9a81c3(0x2b7)]());}['_initStatusListener'](){const _0x5952bc=_0x5d5931;this[_0x5952bc(0x2b9)](this['_univerInstanceService'][_0x5952bc(0x33f)]['pipe'](d[_0x5952bc(0x2f4)](()=>{const _0x12302b=_0x5952bc,_0x4879d1=this[_0x12302b(0x21f)][_0x12302b(0x2bb)]();return _0x4879d1?this[_0x12302b(0x245)][_0x12302b(0x199)](_0x4879d1[_0x12302b(0x159)]()):d['of'](null);}),d['switchMap'](_0x4cc010=>_0x4cc010?_0x4cc010['status$']:d['of'](u[_0x5952bc(0x1d8)][_0x5952bc(0x291)])))['subscribe'](_0x3519ce=>{const _0x7707a=_0x5952bc;this[_0x7707a(0x32e)]['next'](_0x3519ce);}));}['_initStatusComponent'](){const _0x1ec547=_0x5d5931;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](R['BuiltInUIPart'][_0x1ec547(0x321)],()=>R[_0x1ec547(0x30e)](kt({'status$':this[_0x1ec547(0x32e)][_0x1ec547(0x2e7)]()}),this[_0x1ec547(0x21a)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([V(0x0,a[_0x5d5931(0x22e)]),V(0x1,a['Inject'](a['Injector'])),V(0x2,a[_0x5d5931(0x186)](u['CollaborationController'])),V(0x3,R[_0x5d5931(0x1b7)])],exports[_0x5d5931(0x188)]);function kt(_0x116751){const {status$:_0x312b2b}=_0x116751;return function(){const _0x248449=_0x55fe;return w[_0x248449(0x34b)](je,{'status$':_0x312b2b});};}var Bt=Object['getOwnPropertyDescriptor'],Ht=(_0xb32f94,_0x26e399,_0x5b1e93,_0x24b886)=>{const _0x289c8f=_0x5d5931;for(var _0x4b9bf4=_0x24b886>0x1?void 0x0:_0x24b886?Bt(_0x26e399,_0x5b1e93):_0x26e399,_0x449bdb=_0xb32f94[_0x289c8f(0x247)]-0x1,_0x25ea09;_0x449bdb>=0x0;_0x449bdb--)(_0x25ea09=_0xb32f94[_0x449bdb])&&(_0x4b9bf4=_0x25ea09(_0x4b9bf4)||_0x4b9bf4);return _0x4b9bf4;},A=(_0x1c904d,_0x59e447)=>(_0x40d1a3,_0x348f67)=>_0x59e447(_0x40d1a3,_0x348f67,_0x1c904d);let z=class extends a[_0x5d5931(0x19d)]{constructor(_0x189d8e,_0x45c074,_0xc144ad,_0x1f001d,_0x406f8f,_0x1c837b){const _0x8f03b7=_0x5d5931;super(),this[_0x8f03b7(0x2cb)]=_0x189d8e,this['_localCacheService']=_0x45c074,this['_collaborationUIEventService']=_0xc144ad,this[_0x8f03b7(0x1d7)]=_0x1f001d,this[_0x8f03b7(0x272)]=_0x406f8f,this['_localeService']=_0x1c837b,this[_0x8f03b7(0x13b)](),this[_0x8f03b7(0x1fa)]();}[_0x5d5931(0x13b)](){const _0x200878=_0x5d5931;this[_0x200878(0x2b9)](this[_0x200878(0x2cb)]['registerBeforeClose'](()=>{const _0x34678d=_0x200878;if(this[_0x34678d(0x24a)][_0x34678d(0x266)][_0x34678d(0x164)])return this[_0x34678d(0x179)]['t'](_0x34678d(0x26c));}));}[_0x5d5931(0x1fa)](){const _0x41d043=_0x5d5931;this['disposeWithMe'](this[_0x41d043(0x234)]['event$'][_0x41d043(0x363)](_0x3915b7=>{const _0x25f127=_0x41d043;_0x3915b7['id']===u[_0x25f127(0x20a)][_0x25f127(0x282)]&&this[_0x25f127(0x1d7)][_0x25f127(0x278)]({'type':T[_0x25f127(0x2e1)][_0x25f127(0x314)],'content':this[_0x25f127(0x179)]['t'](_0x25f127(0x232))}),_0x3915b7['id']===u[_0x25f127(0x20a)][_0x25f127(0x334)]&&this['_messageService'][_0x25f127(0x278)]({'type':T[_0x25f127(0x2e1)][_0x25f127(0x314)],'content':this['_localeService']['t'](_0x25f127(0x191))}),_0x3915b7['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this['_notificationService'][_0x25f127(0x278)]({'title':this[_0x25f127(0x179)]['t'](_0x25f127(0x359)),'content':this['_localeService']['t']('permission.content'),'type':_0x25f127(0x23f),'duration':0x0}),_0x3915b7['id']===u[_0x25f127(0x20a)][_0x25f127(0x12c)]&&this['_messageService'][_0x25f127(0x278)]({'type':T[_0x25f127(0x2e1)][_0x25f127(0x24d)],'content':this[_0x25f127(0x179)]['t']('collaboration.closeRoom')+'('+_0x3915b7[_0x25f127(0x1c3)]+')'}),_0x3915b7['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x25f127(0x1d7)][_0x25f127(0x278)]({'type':T['MessageType'][_0x25f127(0x314)],'content':this[_0x25f127(0x179)]['t'](_0x3915b7[_0x25f127(0x1c3)]||'')}),_0x3915b7['id']===u[_0x25f127(0x20a)][_0x25f127(0x248)]&&this[_0x25f127(0x1d7)]['show']({'type':T[_0x25f127(0x2e1)][_0x25f127(0x314)],'content':this[_0x25f127(0x179)]['t'](_0x25f127(0x32b))}),_0x3915b7['id']===u[_0x25f127(0x20a)][_0x25f127(0x2c9)]&&this[_0x25f127(0x1d7)][_0x25f127(0x278)]({'type':T[_0x25f127(0x2e1)][_0x25f127(0x24d)],'content':this[_0x25f127(0x179)]['t'](_0x25f127(0x228))}),_0x3915b7['id']===u[_0x25f127(0x20a)][_0x25f127(0x1d5)]&&this[_0x25f127(0x1d7)]['show']({'type':T[_0x25f127(0x2e1)][_0x25f127(0x24d)],'content':this[_0x25f127(0x179)]['t'](_0x25f127(0x147))});}));}};z=Ht([A(0x0,R['IBeforeCloseService']),A(0x1,u[_0x5d5931(0x11e)]),A(0x2,a[_0x5d5931(0x186)](u[_0x5d5931(0x18d)])),A(0x3,R['IMessageService']),A(0x4,R[_0x5d5931(0x19b)]),A(0x5,a[_0x5d5931(0x186)](a[_0x5d5931(0x223)]))],z);const Wt='collaboration-client-ui.config',Me={},Ee=a[_0x5d5931(0x180)](_0x5d5931(0x31c));var Ft=Object[_0x5d5931(0x12f)],Yt=(_0x3bd4d1,_0x1d2608,_0x30cc97,_0x107072)=>{const _0x1be7e9=_0x5d5931;for(var _0x21c5d7=_0x107072>0x1?void 0x0:_0x107072?Ft(_0x1d2608,_0x30cc97):_0x1d2608,_0x19576e=_0x3bd4d1[_0x1be7e9(0x247)]-0x1,_0x56bf23;_0x19576e>=0x0;_0x19576e--)(_0x56bf23=_0x3bd4d1[_0x19576e])&&(_0x21c5d7=_0x56bf23(_0x21c5d7)||_0x21c5d7);return _0x21c5d7;},W=(_0x4a9d6d,_0x154e9e)=>(_0x3bf542,_0x2431ae)=>_0x154e9e(_0x3bf542,_0x2431ae,_0x4a9d6d);exports['CollaborationDataLoaderController']=class extends a['RxDisposable']{constructor(_0x5e4c82,_0x12e6fb,_0x3c01eb,_0x4a26df,_0x18924c){const _0x506b27=_0x5d5931;super(),this[_0x506b27(0x172)]=_0x5e4c82,this['_logService']=_0x12e6fb,this['_commandService']=_0x3c01eb,this[_0x506b27(0x1c5)]=_0x4a26df,_0x18924c?_0x18924c==null||_0x18924c[_0x506b27(0x1ad)]()[_0x506b27(0x386)](()=>this[_0x506b27(0x1fd)]()):(this[_0x506b27(0x2cc)]['debug'](_0x506b27(0x218),_0x506b27(0x36e)),this['_init']());}async[_0x5d5931(0x1fd)](){const _0x1f74be=_0x5d5931,_0x2920a9=this['_urlService'][_0x1f74be(0x320)]('unit'),_0x40ba85=this[_0x1f74be(0x172)][_0x1f74be(0x320)](_0x1f74be(0x36a)),_0x1f001b=this[_0x1f74be(0x172)][_0x1f74be(0x320)]('subunit');if(!_0x2920a9||!_0x40ba85){this['_logService'][_0x1f74be(0x25f)](_0x1f74be(0x218),_0x1f74be(0x387));return;}const _0x11a3df=await this[_0x1f74be(0x1c5)][_0x1f74be(0x204)](_0x2920a9,Number(_0x40ba85),_0x1f001b);_0x11a3df&&_0x11a3df instanceof a[_0x1f74be(0x182)]&&this[_0x1f74be(0x376)](_0x11a3df);}async[_0x5d5931(0x376)](_0x1d4dc3){const _0x194ccc=_0x5d5931;await this[_0x194ccc(0x326)](_0x1d4dc3),_0x1d4dc3[_0x194ccc(0x2b2)]['pipe'](d['takeUntil'](this[_0x194ccc(0x299)]))[_0x194ccc(0x363)](_0x96def5=>{const _0x2c2d8=_0x194ccc;_0x96def5&&this[_0x2c2d8(0x14b)](_0x96def5);}),this[_0x194ccc(0x172)][_0x194ccc(0x262)][_0x194ccc(0x33b)](d['takeUntil'](this[_0x194ccc(0x299)]))[_0x194ccc(0x363)](()=>this[_0x194ccc(0x326)](_0x1d4dc3));}[_0x5d5931(0x14b)](_0xa761bd,_0x291c90=!0x1){const _0x49ed62=_0x5d5931,_0x413f07=this[_0x49ed62(0x172)][_0x49ed62(0x320)](_0x49ed62(0x2bf));_0xa761bd[_0x49ed62(0x34f)]()!==_0x413f07&&this[_0x49ed62(0x172)]['setParam'](_0x49ed62(0x2bf),_0xa761bd['getSheetId'](),_0x291c90);}async[_0x5d5931(0x326)](_0x2a2d85){const _0x93e1f3=_0x5d5931;var _0x85b872;const _0x4dc5b8=this[_0x93e1f3(0x172)][_0x93e1f3(0x320)](_0x93e1f3(0x2bf));if(!_0x4dc5b8||!_0x2a2d85[_0x93e1f3(0x31a)](_0x4dc5b8)){const _0x5299dd=_0x2a2d85['getUnhiddenWorksheets']()[0x0],_0x39ec11=_0x2a2d85['getSheetBySheetId'](_0x5299dd);if(!_0x39ec11)return;this[_0x93e1f3(0x14b)](_0x39ec11,!0x0),await this[_0x93e1f3(0x276)][_0x93e1f3(0x1dc)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x2a2d85[_0x93e1f3(0x159)](),'subUnitId':_0x5299dd});return;}((_0x85b872=_0x2a2d85[_0x93e1f3(0x2ee)]())==null?void 0x0:_0x85b872[_0x93e1f3(0x34f)]())!==_0x4dc5b8&&await this[_0x93e1f3(0x276)][_0x93e1f3(0x1dc)](I[_0x93e1f3(0x194)]['id'],{'unitId':_0x2a2d85[_0x93e1f3(0x159)](),'subUnitId':_0x4dc5b8});}},exports[_0x5d5931(0x1f5)]=Yt([W(0x0,Ee),W(0x1,a[_0x5d5931(0x379)]),W(0x2,a['ICommandService']),W(0x3,a['Inject'](u[_0x5d5931(0x328)])),W(0x4,a['Optional'](Ke['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var Xt=Object[_0x5d5931(0x12f)],Vt=(_0x42b3ce,_0x188e96,_0x47a1c5,_0x16847f)=>{for(var _0x2c93bc=_0x16847f>0x1?void 0x0:_0x16847f?Xt(_0x188e96,_0x47a1c5):_0x188e96,_0x12ba52=_0x42b3ce['length']-0x1,_0x40efde;_0x12ba52>=0x0;_0x12ba52--)(_0x40efde=_0x42b3ce[_0x12ba52])&&(_0x2c93bc=_0x40efde(_0x2c93bc)||_0x2c93bc);return _0x2c93bc;},le=(_0x2807a6,_0x56c0c1)=>(_0x27385c,_0x462648)=>_0x56c0c1(_0x27385c,_0x462648,_0x2807a6);let J=class{constructor(_0x1a452,_0x195505,_0x435060){const _0x4a2659=_0x5d5931;this[_0x4a2659(0x21a)]=_0x1a452,this[_0x4a2659(0x235)]=_0x195505,this[_0x4a2659(0x1c7)]=_0x435060;}[_0x5d5931(0x1f4)](_0x7e0341){const _0x253ed8=_0x5d5931;this[_0x253ed8(0x1a6)](_0x7e0341),this[_0x253ed8(0x203)](_0x7e0341);}['transformRemoteChangeset'](_0x3e3b64){const _0x2bd9f2=_0x5d5931,{unitID:_0x1d2529}=_0x3e3b64,_0xde1740=this[_0x2bd9f2(0x1c7)][_0x2bd9f2(0x37c)](_0x1d2529)[_0x2bd9f2(0x1f8)](b['DocIMEInputManagerService']),{redoCache:_0x238b45}=_0xde1740[_0x2bd9f2(0x331)]();if(_0x238b45[_0x2bd9f2(0x247)]===0x0)return _0x3e3b64;let _0x43349f=a[_0x2bd9f2(0x306)][_0x2bd9f2(0x22f)](_0x3e3b64[_0x2bd9f2(0x1ec)][0x0]);for(let _0x3acc24=0x0;_0x3acc24<_0x238b45[_0x2bd9f2(0x247)];_0x3acc24++){const _0x3be10f={'id':_0x2bd9f2(0x1ac),'params':{..._0x238b45[_0x3acc24]}},_0x2bdcbc=this[_0x2bd9f2(0x235)][_0x2bd9f2(0x2db)](_0x43349f,_0x3be10f,!0x1);if(m[_0x2bd9f2(0x240)](_0x2bdcbc))throw _0x2bdcbc[_0x2bd9f2(0x23f)];_0x43349f=_0x2bdcbc['m1Prime'];}return{...a[_0x2bd9f2(0x306)][_0x2bd9f2(0x22f)](_0x3e3b64),'mutations':[_0x43349f]};}[_0x5d5931(0x1a6)](_0x55d596){const _0x21b9e9=_0x5d5931,{unitID:_0x302c11}=_0x55d596,_0x40dfd3=this[_0x21b9e9(0x1c7)][_0x21b9e9(0x37c)](_0x302c11)['with'](b[_0x21b9e9(0x32c)]),{undoCache:_0x4f2d97,redoCache:_0x2867d1}=_0x40dfd3[_0x21b9e9(0x331)]();if(_0x4f2d97[_0x21b9e9(0x247)]===0x0||_0x2867d1['length']===0x0)return;const _0x2fd221=[],_0x97252e=[];let _0xa9bd49=a[_0x21b9e9(0x306)][_0x21b9e9(0x22f)](_0x55d596[_0x21b9e9(0x1ec)][0x0]),_0xe4396c=a[_0x21b9e9(0x306)][_0x21b9e9(0x22f)](_0x55d596[_0x21b9e9(0x1ec)][0x0]);for(let _0x3b3abf=_0x4f2d97[_0x21b9e9(0x247)]-0x1;_0x3b3abf>=0x0;_0x3b3abf--){const _0xfd5072={'id':_0x21b9e9(0x1ac),'params':{..._0x4f2d97[_0x3b3abf]}},_0xdcac41={'id':_0x21b9e9(0x1ac),'params':{..._0x2867d1[_0x3b3abf]}},_0x2693ff=this[_0x21b9e9(0x235)][_0x21b9e9(0x2db)](_0xa9bd49,_0xfd5072,!0x1),_0x304fe9=this['_transformService'][_0x21b9e9(0x2db)](_0xe4396c,_0xdcac41,!0x1);if(m[_0x21b9e9(0x240)](_0x2693ff))throw _0x2693ff[_0x21b9e9(0x23f)];if(m[_0x21b9e9(0x240)](_0x304fe9))throw _0x304fe9['error'];_0x2fd221['unshift'](_0x2693ff[_0x21b9e9(0x27a)][_0x21b9e9(0x2c0)]),_0x97252e['unshift'](_0x304fe9[_0x21b9e9(0x27a)][_0x21b9e9(0x2c0)]),_0xa9bd49=_0x2693ff[_0x21b9e9(0x142)],_0xe4396c=_0x304fe9[_0x21b9e9(0x142)];}_0x40dfd3['setUndoRedoMutationParamsCache']({'undoCache':_0x2fd221,'redoCache':_0x97252e});}[_0x5d5931(0x203)](_0x28a67b){const _0x307864=_0x5d5931,{unitID:_0x1eba8a}=_0x28a67b,_0x5baf8f=this[_0x307864(0x1c7)][_0x307864(0x37c)](_0x1eba8a)[_0x307864(0x1f8)](b['DocIMEInputManagerService']),_0x5a383f=_0x5baf8f[_0x307864(0x19f)]();if(_0x5a383f==null)return;const _0x15fe96=[{'id':_0x307864(0x1ac),'params':{'unitId':_0x28a67b['unitID'],'actions':null,'textRanges':[_0x5a383f]}}],_0x338367=this[_0x307864(0x235)]['transformMutationsWithChangeset'](_0x28a67b,_0x15fe96);if(!m[_0x307864(0x2d7)](_0x338367))throw _0x338367['error'];const _0x255a76=_0x338367['m2Prime'][0x0][_0x307864(0x2c0)][_0x307864(0x26a)];Array['isArray'](_0x255a76)&&_0x255a76['length']&&_0x5baf8f[_0x307864(0x1bd)](_0x255a76[0x0]);}};J=Vt([le(0x0,a[_0x5d5931(0x186)](a['Injector'])),le(0x1,m[_0x5d5931(0x219)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x5d5931(0x12f)],qt=(_0x56837b,_0x44e60e,_0xc66221,_0x2d16e4)=>{const _0x3217f8=_0x5d5931;for(var _0x374076=_0x2d16e4>0x1?void 0x0:_0x2d16e4?Gt(_0x44e60e,_0xc66221):_0x44e60e,_0x25c2c9=_0x56837b[_0x3217f8(0x247)]-0x1,_0x3bdce6;_0x25c2c9>=0x0;_0x25c2c9--)(_0x3bdce6=_0x56837b[_0x25c2c9])&&(_0x374076=_0x3bdce6(_0x374076)||_0x374076);return _0x374076;},he=(_0x4f1eed,_0x3d703c)=>(_0x5a53be,_0x1c19ef)=>_0x3d703c(_0x5a53be,_0x1c19ef,_0x4f1eed);let Z=class{constructor(_0x40c425,_0x365d10,_0x401524){const _0x319795=_0x5d5931;this[_0x319795(0x21a)]=_0x40c425,this[_0x319795(0x235)]=_0x365d10,this[_0x319795(0x1b0)]=_0x401524;}['transformStateCache'](_0x5e0dfa){const _0x84b261=_0x5d5931;this[_0x84b261(0x2f6)](_0x5e0dfa);}[_0x5d5931(0x258)](_0x224d51){const _0x5c73b6=_0x5d5931,{unitID:_0x5b6f09}=_0x224d51,{collaboration:_0xd03ef0}=this[_0x5c73b6(0x1b0)][_0x5c73b6(0x1ea)](_0x5b6f09);if(_0xd03ef0['length']===0x0)return _0x224d51;let _0x173c24=a['Tools'][_0x5c73b6(0x22f)](_0x224d51['mutations'][0x0]);for(let _0x8df018=0x0;_0x8df018<_0xd03ef0[_0x5c73b6(0x247)];_0x8df018++){const _0x2dacdc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xd03ef0[_0x8df018][_0x5c73b6(0x2cf)],..._0xd03ef0[_0x8df018][_0x5c73b6(0x19e)]}},_0x3d7ca2=this['_transformService'][_0x5c73b6(0x2db)](_0x173c24,_0x2dacdc,!0x1);if(m[_0x5c73b6(0x240)](_0x3d7ca2))throw _0x3d7ca2[_0x5c73b6(0x23f)];_0x173c24=_0x3d7ca2[_0x5c73b6(0x142)];}return{...a[_0x5c73b6(0x306)][_0x5c73b6(0x22f)](_0x224d51),'mutations':[_0x173c24]};}[_0x5d5931(0x2f6)](_0x45c5be){const _0x2f794f=_0x5d5931,{unitID:_0x17e2a0}=_0x45c5be,{history:_0x2a2d2f,collaboration:_0x6fd4c1}=this[_0x2f794f(0x1b0)][_0x2f794f(0x1ea)](_0x17e2a0);if(_0x2a2d2f['length']===0x0&&_0x6fd4c1[_0x2f794f(0x247)]===0x0)return;const _0xb05e74=[],_0x1630b2=[];let _0x144022=a[_0x2f794f(0x306)][_0x2f794f(0x22f)](_0x45c5be[_0x2f794f(0x1ec)][0x0]),_0x59d9ef=a[_0x2f794f(0x306)][_0x2f794f(0x22f)](_0x45c5be[_0x2f794f(0x1ec)][0x0]);for(let _0x4fd7e7=_0x2a2d2f[_0x2f794f(0x247)]-0x1;_0x4fd7e7>=0x0;_0x4fd7e7--){const _0x175b6c={'id':_0x2f794f(0x1ac),'params':{'unitId':_0x2a2d2f[_0x4fd7e7][_0x2f794f(0x2cf)],..._0x2a2d2f[_0x4fd7e7][_0x2f794f(0x2ab)]}},_0x14055b={'id':_0x2f794f(0x1ac),'params':{'unitId':_0x2a2d2f[_0x4fd7e7][_0x2f794f(0x2cf)],..._0x2a2d2f[_0x4fd7e7][_0x2f794f(0x19e)]}},_0x12af03=this[_0x2f794f(0x235)][_0x2f794f(0x2db)](_0x144022,_0x175b6c,!0x1),_0x2e08ce=this['_transformService'][_0x2f794f(0x2db)](_0x59d9ef,_0x14055b,!0x1);if(m[_0x2f794f(0x240)](_0x12af03))throw _0x12af03[_0x2f794f(0x23f)];if(m['isTransformMutationFailure'](_0x2e08ce))throw _0x2e08ce['error'];_0xb05e74[_0x2f794f(0x157)]({..._0x2a2d2f[_0x4fd7e7],'undoState':_0x12af03['m2Prime'][_0x2f794f(0x2c0)],'redoState':_0x2e08ce[_0x2f794f(0x27a)][_0x2f794f(0x2c0)]}),_0x144022=_0x12af03[_0x2f794f(0x142)],_0x59d9ef=_0x2e08ce[_0x2f794f(0x142)];}_0x144022=a[_0x2f794f(0x306)][_0x2f794f(0x22f)](_0x45c5be[_0x2f794f(0x1ec)][0x0]),_0x59d9ef=a[_0x2f794f(0x306)][_0x2f794f(0x22f)](_0x45c5be[_0x2f794f(0x1ec)][0x0]);for(let _0x35838b=_0x6fd4c1[_0x2f794f(0x247)]-0x1;_0x35838b>=0x0;_0x35838b--){const _0x98344f={'id':_0x2f794f(0x1ac),'params':{'unitId':_0x6fd4c1[_0x35838b]['unitId'],..._0x6fd4c1[_0x35838b]['undoState']}},_0x49b52d={'id':_0x2f794f(0x1ac),'params':{'unitId':_0x6fd4c1[_0x35838b][_0x2f794f(0x2cf)],..._0x6fd4c1[_0x35838b][_0x2f794f(0x19e)]}},_0x44132a=this['_transformService'][_0x2f794f(0x2db)](_0x144022,_0x98344f,!0x1),_0x3ddb7a=this[_0x2f794f(0x235)][_0x2f794f(0x2db)](_0x59d9ef,_0x49b52d,!0x1);if(m[_0x2f794f(0x240)](_0x44132a))throw _0x44132a[_0x2f794f(0x23f)];if(m[_0x2f794f(0x240)](_0x3ddb7a))throw _0x3ddb7a[_0x2f794f(0x23f)];_0x1630b2[_0x2f794f(0x157)]({..._0x6fd4c1[_0x35838b],'undoState':_0x44132a[_0x2f794f(0x27a)][_0x2f794f(0x2c0)],'redoState':_0x3ddb7a['m2Prime'][_0x2f794f(0x2c0)]}),_0x144022=_0x44132a[_0x2f794f(0x142)],_0x59d9ef=_0x3ddb7a[_0x2f794f(0x142)];}this[_0x2f794f(0x1b0)][_0x2f794f(0x13d)](_0x17e2a0,{'history':_0xb05e74,'collaboration':_0x1630b2});}};Z=qt([he(0x0,a[_0x5d5931(0x186)](a[_0x5d5931(0x2a5)])),he(0x1,m[_0x5d5931(0x219)]),he(0x2,a[_0x5d5931(0x186)](b[_0x5d5931(0x1f1)]))],Z);var Kt=Object[_0x5d5931(0x12f)],zt=(_0xccf498,_0x54daf5,_0x19acba,_0x28cc37)=>{const _0xed14f8=_0x5d5931;for(var _0x2be133=_0x28cc37>0x1?void 0x0:_0x28cc37?Kt(_0x54daf5,_0x19acba):_0x54daf5,_0x19da46=_0xccf498[_0xed14f8(0x247)]-0x1,_0x2cb95b;_0x19da46>=0x0;_0x19da46--)(_0x2cb95b=_0xccf498[_0x19da46])&&(_0x2be133=_0x2cb95b(_0x2be133)||_0x2be133);return _0x2be133;},Pe=(_0x30c651,_0x1a115b)=>(_0x17b0be,_0x280ced)=>_0x1a115b(_0x17b0be,_0x280ced,_0x30c651);let Q=class{constructor(_0x567056,_0x56a9f7){const _0x206f60=_0x5d5931;this[_0x206f60(0x21a)]=_0x567056,this['_transformService']=_0x56a9f7;}[_0x5d5931(0x239)](_0x21cc2a){const _0x46ebbd=_0x5d5931;var _0x4c29fb;const _0x49d0c5=this[_0x46ebbd(0x21a)][_0x46ebbd(0x2d2)](Y[_0x46ebbd(0x17d)]),_0x19950d=(_0x4c29fb=_0x49d0c5[_0x46ebbd(0x1c2)]())!=null?_0x4c29fb:[];if(_0x19950d[_0x46ebbd(0x247)]===0x0)return;const _0x5274d4=_0x21cc2a[_0x46ebbd(0x2b0)],_0x4088a8=[{'id':_0x46ebbd(0x1ac),'params':{'unitId':_0x5274d4,'actions':null,'textRanges':_0x19950d}}],_0x4dd261=this[_0x46ebbd(0x235)][_0x46ebbd(0x13f)](_0x21cc2a,_0x4088a8);if(!m[_0x46ebbd(0x2d7)](_0x4dd261))throw _0x4dd261[_0x46ebbd(0x23f)];const _0x1d3824=_0x4dd261['m2Prime'][0x0][_0x46ebbd(0x2c0)][_0x46ebbd(0x26a)];Array[_0x46ebbd(0x170)](_0x1d3824)&&_0x1d3824[_0x46ebbd(0x247)]&&_0x49d0c5[_0x46ebbd(0x34d)](_0x1d3824,{'unitId':_0x5274d4,'subUnitId':_0x5274d4},!0x1);}};Q=zt([Pe(0x0,a['Inject'](a[_0x5d5931(0x2a5)])),Pe(0x1,m[_0x5d5931(0x219)])],Q);var Jt=Object[_0x5d5931(0x12f)],Zt=(_0x734afe,_0x200cb3,_0x3fffdb,_0x54ac4f)=>{const _0x1fb97c=_0x5d5931;for(var _0xb96ee8=_0x54ac4f>0x1?void 0x0:_0x54ac4f?Jt(_0x200cb3,_0x3fffdb):_0x200cb3,_0x1e40c1=_0x734afe[_0x1fb97c(0x247)]-0x1,_0x3dd24a;_0x1e40c1>=0x0;_0x1e40c1--)(_0x3dd24a=_0x734afe[_0x1e40c1])&&(_0xb96ee8=_0x3dd24a(_0xb96ee8)||_0xb96ee8);return _0xb96ee8;},M=(_0x1ddf68,_0x29e1bf)=>(_0x5e8648,_0x123908)=>_0x29e1bf(_0x5e8648,_0x123908,_0x1ddf68);let ee=class extends a[_0x5d5931(0x19d)]{constructor(_0x3c58af,_0x533fa8,_0x2676b5,_0x204115,_0x287bee,_0x3b7565,_0x2569cf,_0x420be9){const _0x3f0ebc=_0x5d5931;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x3f0ebc(0x1d8)][_0x3f0ebc(0x291)])),(this['_docStateChangeManagerService']=_0x3c58af,this[_0x3f0ebc(0x245)]=_0x533fa8,this[_0x3f0ebc(0x116)]=_0x2676b5,this[_0x3f0ebc(0x342)]=_0x204115,this[_0x3f0ebc(0x2ae)]=_0x287bee,this['_docSyncEditingCollabCursorService']=_0x3b7565,this[_0x3f0ebc(0x1d7)]=_0x2569cf,this[_0x3f0ebc(0x179)]=_0x420be9,this[_0x3f0ebc(0x23c)]());}[_0x5d5931(0x23c)](){const _0x5aa8b1=_0x5d5931;this[_0x5aa8b1(0x2b9)](this[_0x5aa8b1(0x245)]['entityInit$']['subscribe'](_0x3881d6=>{const _0x148d0b=_0x5aa8b1,_0x12da4c=this[_0x148d0b(0x1b0)]['docStateChange$'][_0x148d0b(0x363)](_0x4294fe=>{const _0x3870a0=_0x148d0b;if(_0x4294fe==null)return;const {unitId:_0x4e71dc,redoState:_0x2f978e,commandId:_0x15116b}=_0x4294fe;if(_0x4e71dc!==_0x3881d6[_0x3870a0(0x2b0)])return;const _0x9c908a={'id':_0x15116b,'type':a[_0x3870a0(0x253)][_0x3870a0(0x125)],'params':{'unitId':_0x4e71dc,'actions':_0x2f978e[_0x3870a0(0x385)],'textRanges':null}};_0x3881d6[_0x3870a0(0x233)](_0x9c908a);});if(_0x3881d6['disposeWithMe'](_0x12da4c),_0x3881d6 instanceof u[_0x148d0b(0x1a8)]){const _0x63d66c={'onTransformIME':_0x12fccc=>this['_docTransformIMECacheService'][_0x148d0b(0x1f4)](_0x12fccc),'onTransformState':_0x1e39b3=>this[_0x148d0b(0x342)][_0x148d0b(0x152)](_0x1e39b3),'onTransformSelections':_0x1759f9=>this[_0x148d0b(0x2ae)][_0x148d0b(0x239)](_0x1759f9),'onSyncEditingCollabCursor':_0x1c8f4d=>this[_0x148d0b(0x351)][_0x148d0b(0x2b1)](_0x1c8f4d),'onTransformRemoteChangesetByIMECache':_0x1384b9=>this[_0x148d0b(0x116)][_0x148d0b(0x258)](_0x1384b9),'onTransformRemoteChangesetByStateCache':_0x326e27=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x326e27)};_0x3881d6['addHandlerCallback'](_0x63d66c);}}));}};ee=Zt([M(0x0,a[_0x5d5931(0x186)](b[_0x5d5931(0x1f1)])),M(0x1,a[_0x5d5931(0x186)](u[_0x5d5931(0x2eb)])),M(0x2,a[_0x5d5931(0x186)](J)),M(0x3,a[_0x5d5931(0x186)](Z)),M(0x4,a[_0x5d5931(0x186)](Q)),M(0x5,a['Inject'](pe)),M(0x6,R[_0x5d5931(0x2c7)]),M(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object[_0x5d5931(0x12f)],es=(_0x433b1b,_0x2c75a1,_0x3cd9e8,_0x3d6610)=>{const _0x167145=_0x5d5931;for(var _0x242571=_0x3d6610>0x1?void 0x0:_0x3d6610?Qt(_0x2c75a1,_0x3cd9e8):_0x2c75a1,_0xb832d7=_0x433b1b[_0x167145(0x247)]-0x1,_0x3250ab;_0xb832d7>=0x0;_0xb832d7--)(_0x3250ab=_0x433b1b[_0xb832d7])&&(_0x242571=_0x3250ab(_0x242571)||_0x242571);return _0x242571;},_e=(_0x57eb89,_0x231a50)=>(_0x4b8b88,_0x14c1a1)=>_0x231a50(_0x4b8b88,_0x14c1a1,_0x57eb89);let me=class extends a['Disposable']{constructor(_0x4d5eea,_0x236910,_0x192c51){const _0x2d4cb3=_0x5d5931;super(),h(this,_0x2d4cb3(0x27b),new Map()),h(this,_0x2d4cb3(0x1d4),new Map()),h(this,_0x2d4cb3(0x1d2),!0x1),(this[_0x2d4cb3(0x2bd)]=_0x4d5eea,this[_0x2d4cb3(0x38e)]=_0x236910,this[_0x2d4cb3(0x15e)]=_0x192c51);}[_0x5d5931(0x18a)](){const _0x21ab82=_0x5d5931;this[_0x21ab82(0x1d2)]=!0x0;}[_0x5d5931(0x37d)](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x5d5931(0x323)](){const _0x475830=_0x5d5931;this['exhaustSavingTask']()[_0x475830(0x386)](()=>super[_0x475830(0x323)]());}async[_0x5d5931(0x11b)](_0x4aa785){const _0x555730=_0x5d5931;return this['_disabled']?null:this[_0x555730(0x38e)][_0x555730(0x2e4)](u['getLocalCacheKey'](_0x4aa785));}async[_0x5d5931(0x138)](_0x1d35dd,_0xff3777){const _0x1f56f7=_0x5d5931;return!!this[_0x1f56f7(0x38e)][_0x1f56f7(0x2d1)](_0x1d35dd,_0xff3777);}[_0x5d5931(0x28d)](_0x275d4d,_0x8a6874,_0x3b1656,_0x485cee){const _0x360273=_0x5d5931,_0x31397a=this[_0x360273(0x15e)][_0x360273(0x2a7)](_0x275d4d);this[_0x360273(0x27b)][_0x360273(0x130)](_0x275d4d,{'unitID':_0x275d4d,'type':_0x8a6874,'awaitingChangeset':_0x3b1656,'mutations':_0x485cee,'rev':_0x31397a}),this[_0x360273(0x1d4)][_0x360273(0x12b)](_0x275d4d)||this['_scheduleSaving'](_0x275d4d);}[_0x5d5931(0x273)](_0x3da500){const _0x39c7d4=_0x5d5931,_0x2ae7db=this['_getSaveTimeout']();_0x2ae7db===0x0?this['_saveCache'](_0x3da500):this[_0x39c7d4(0x1d4)][_0x39c7d4(0x130)](_0x3da500,setTimeout(()=>this[_0x39c7d4(0x2c4)](_0x3da500),_0x2ae7db));}[_0x5d5931(0x308)](){const _0x17afed=_0x5d5931;var _0x134b9f;return(_0x134b9f=this['_configService'][_0x17afed(0x2fa)](u[_0x17afed(0x201)]))!=null?_0x134b9f:u[_0x17afed(0x150)];}[_0x5d5931(0x2c4)](_0x48c25f){const _0x296c2a=_0x5d5931,_0x13827f=this[_0x296c2a(0x1d4)]['get'](_0x48c25f);return _0x13827f!==void 0x0&&window[_0x296c2a(0x375)](_0x13827f),this[_0x296c2a(0x38e)][_0x296c2a(0x2d1)](u[_0x296c2a(0x277)](_0x48c25f),this[_0x296c2a(0x27b)][_0x296c2a(0x2d2)](_0x48c25f))[_0x296c2a(0x386)](()=>this[_0x296c2a(0x1d4)]['delete'](_0x48c25f));}async['exhaustSavingTask'](){const _0x17283b=_0x5d5931,_0x42279f=[];this[_0x17283b(0x1d4)][_0x17283b(0x2e0)]((_0x14def9,_0x147d80)=>{const _0x39befb=_0x17283b;window['clearTimeout'](_0x14def9),_0x42279f[_0x39befb(0x20f)](this[_0x39befb(0x2c4)](_0x147d80)['then'](()=>{const _0x4a17e8=_0x39befb;this['_saveTaskMap'][_0x4a17e8(0x1a2)](_0x147d80);}));}),await Promise['all'](_0x42279f);}};me=es([_e(0x0,a[_0x5d5931(0x163)]),_e(0x1,a[_0x5d5931(0x175)]),_e(0x2,a[_0x5d5931(0x186)](m['RevisionService']))],me);class ke extends a[_0x5d5931(0x374)]{constructor(){const _0x3e928a=_0x5d5931;super(),h(this,_0x3e928a(0x262)),this['urlChange$']=d[_0x3e928a(0x26b)](window,_0x3e928a(0x22d))[_0x3e928a(0x33b)](d[_0x3e928a(0x257)](this['dispose$']),d[_0x3e928a(0x2dc)](0x1),d[_0x3e928a(0x24e)](void 0x0));}[_0x5d5931(0x2da)](_0x9d0845,_0x164a33,_0x43fe00=!0x1){const _0x159a95=_0x5d5931,_0x365928=new URL(window[_0x159a95(0x347)]['href']);_0x365928[_0x159a95(0x260)][_0x159a95(0x130)](_0x9d0845,_0x164a33),_0x43fe00?window[_0x159a95(0x353)][_0x159a95(0x1da)]('','',_0x365928[_0x159a95(0x37f)]()):window['history'][_0x159a95(0x17c)]('','',_0x365928[_0x159a95(0x37f)]());}[_0x5d5931(0x2f8)](_0x203be8,_0x1bbbdc=!0x1){const _0x3e75e7=_0x5d5931,_0x29b3c4=new URL(window[_0x3e75e7(0x347)][_0x3e75e7(0x26d)]);_0x29b3c4[_0x3e75e7(0x260)][_0x3e75e7(0x1a2)](_0x203be8),_0x1bbbdc?window[_0x3e75e7(0x353)][_0x3e75e7(0x1da)]('','',_0x29b3c4['toString']()):window[_0x3e75e7(0x353)][_0x3e75e7(0x17c)]('','',_0x29b3c4[_0x3e75e7(0x37f)]());}['getParam'](_0x3b7705){const _0x3db431=_0x5d5931;var _0x597a06;return(_0x597a06=new URL(window[_0x3db431(0x347)][_0x3db431(0x26d)])['searchParams'][_0x3db431(0x2d2)](_0x3b7705))!=null?_0x597a06:void 0x0;}}var ts=Object['defineProperty'],ss=Object[_0x5d5931(0x12f)],ns=(_0x27b1e1,_0x313e8c,_0x58d94e)=>_0x313e8c in _0x27b1e1?ts(_0x27b1e1,_0x313e8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58d94e}):_0x27b1e1[_0x313e8c]=_0x58d94e,is=(_0x1822e8,_0x3d3fe7,_0x48855e,_0x2ecf2f)=>{for(var _0x1b881e=_0x2ecf2f>0x1?void 0x0:_0x2ecf2f?ss(_0x3d3fe7,_0x48855e):_0x3d3fe7,_0x3a6cdd=_0x1822e8['length']-0x1,_0x2a60b7;_0x3a6cdd>=0x0;_0x3a6cdd--)(_0x2a60b7=_0x1822e8[_0x3a6cdd])&&(_0x1b881e=_0x2a60b7(_0x1b881e)||_0x1b881e);return _0x1b881e;},ue=(_0x4def5f,_0x40db38)=>(_0x5e1fbd,_0x3136b1)=>_0x40db38(_0x5e1fbd,_0x3136b1,_0x4def5f),rs=(_0x4656fa,_0x23ca2b,_0x2cebf2)=>ns(_0x4656fa,_0x23ca2b+'',_0x2cebf2);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x5d5931(0x12e)]=class extends a['Plugin']{constructor(_0x52b415=Me,_0x21bf1b,_0x222ad7,_0x2c05ad){const _0x38b566=_0x5d5931;super(),this[_0x38b566(0x18b)]=_0x52b415,this[_0x38b566(0x1c7)]=_0x21bf1b,this[_0x38b566(0x21a)]=_0x222ad7,this[_0x38b566(0x2bd)]=_0x2c05ad;const {..._0xf25d41}=a[_0x38b566(0x34a)]({},Me,this[_0x38b566(0x18b)]);this['_configService'][_0x38b566(0x298)](Wt,_0xf25d41);}[_0x5d5931(0x2aa)](){const _0x465c39=_0x5d5931;this[_0x465c39(0x11f)](),this[_0x465c39(0x2f0)]();}[_0x5d5931(0x148)](){const _0x149c65=_0x5d5931;this[_0x149c65(0x143)]();}[_0x5d5931(0x11f)](){const _0x20de0f=_0x5d5931;var _0x21815a;const _0x1aa9b8=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x20de0f(0x37a)],{'useClass':q[_0x20de0f(0x28f)]}],[u[_0x20de0f(0x11e)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a[_0x20de0f(0x38a)](this['_injector'],a[_0x20de0f(0x2a3)](_0x1aa9b8,(_0x21815a=this[_0x20de0f(0x18b)])==null?void 0x0:_0x21815a[_0x20de0f(0x1e6)]));}[_0x5d5931(0x143)](){const _0x48c036=_0x5d5931;this[_0x48c036(0x2b9)](this[_0x48c036(0x1c7)]['registerRenderModule'](a[_0x48c036(0x2a6)][_0x48c036(0x380)],[ge])),this[_0x48c036(0x2b9)](this[_0x48c036(0x1c7)]['registerRenderModule'](a['UniverInstanceType'][_0x48c036(0x378)],[Ie]));}[_0x5d5931(0x2f0)](){const _0x18bf4d=_0x5d5931;a[_0x18bf4d(0x121)](this['_injector'],[[x],[exports[_0x18bf4d(0x188)]],[ee],[z],[exports[_0x18bf4d(0x1f5)]]]);}},rs(exports[_0x5d5931(0x12e)],_0x5d5931(0x316),os),exports[_0x5d5931(0x12e)]=is([a[_0x5d5931(0x1e8)](u[_0x5d5931(0x34e)]),ue(0x1,p[_0x5d5931(0x28e)]),ue(0x2,a[_0x5d5931(0x186)](a[_0x5d5931(0x2a5)])),ue(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x5d5931(0x12f)],cs=(_0x1460a0,_0x522b88,_0x342bd0,_0x3a08cd)=>{const _0x45947a=_0x5d5931;for(var _0x25945c=_0x3a08cd>0x1?void 0x0:_0x3a08cd?as(_0x522b88,_0x342bd0):_0x522b88,_0x3cc84b=_0x1460a0[_0x45947a(0x247)]-0x1,_0x3d6cd6;_0x3cc84b>=0x0;_0x3cc84b--)(_0x3d6cd6=_0x1460a0[_0x3cc84b])&&(_0x25945c=_0x3d6cd6(_0x25945c)||_0x25945c);return _0x25945c;},F=(_0x8bfb45,_0x5d092c)=>(_0x115d07,_0x13b9da)=>_0x5d092c(_0x115d07,_0x13b9da,_0x8bfb45);exports[_0x5d5931(0x15a)]=class extends u[_0x5d5931(0x2b8)]{constructor(_0x25fb75,_0x39c858,_0x16dbd1,_0x5cba4d,_0x31fc3e){super(_0x25fb75,_0x39c858,_0x16dbd1,_0x5cba4d,_0x31fc3e);}async[_0x5d5931(0x29c)](_0x1e0737){const _0x105563=_0x5d5931,_0x6e2162=await this[_0x105563(0x246)](),_0x1386ee=this['_createSocketURL'](_0x1e0737,_0x6e2162);return this[_0x105563(0x2b5)](_0x1386ee);}[_0x5d5931(0x31e)](_0x381f0c,_0x4f90e1){const _0x599d89=_0x5d5931,_0x5b1985=typeof window>'u'?new URL(_0x381f0c):new URL(_0x381f0c,window[_0x599d89(0x347)]['origin']);_0x5b1985[_0x599d89(0x260)][_0x599d89(0x130)](_0x599d89(0x343),_0x4f90e1);const _0x576943=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x599d89(0x347)][_0x599d89(0x146)]);return _0x576943['get'](_0x599d89(0x237))&&_0x5b1985[_0x599d89(0x260)][_0x599d89(0x130)](_0x599d89(0x237),_0x576943[_0x599d89(0x2d2)]('runId')),_0x5b1985[_0x599d89(0x37f)]();}async[_0x5d5931(0x246)](){const _0x24c7e1=_0x5d5931;var _0x5f3c70,_0x59ec40,_0x270d87;const _0x1fcb3b=this[_0x24c7e1(0x2bd)][_0x24c7e1(0x2fa)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3600bc=(_0x5f3c70=_0x1fcb3b==null?void 0x0:_0x1fcb3b[_0x24c7e1(0x23a)])!=null?_0x5f3c70:u[_0x24c7e1(0x345)];return(_0x270d87=(_0x59ec40=(await this[_0x24c7e1(0x1cf)][_0x24c7e1(0x2d2)](_0x3600bc,{'headers':{'Content-Type':_0x24c7e1(0x19c)}}))[_0x24c7e1(0x1a0)])==null?void 0x0:_0x59ec40[_0x24c7e1(0x1cb)])!=null?_0x270d87:'';}},exports['BrowserCollaborationSocketService']=cs([F(0x0,a[_0x5d5931(0x186)](a['Injector'])),F(0x1,a[_0x5d5931(0x186)](q[_0x5d5931(0x35c)])),F(0x2,a[_0x5d5931(0x163)]),F(0x3,a[_0x5d5931(0x379)]),F(0x4,m[_0x5d5931(0x301)])],exports['BrowserCollaborationSocketService']);const Ne=0x7530,we=_0x5d5931(0x1ab);class ls extends a[_0x5d5931(0x19d)]{constructor(){const _0x5250dc=_0x5d5931;super(),h(this,_0x5250dc(0x302),a[_0x5250dc(0x242)]()),h(this,_0x5250dc(0x1d6),new Set()),h(this,_0x5250dc(0x370),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x5250dc(0x171),new Map()),h(this,'_unitStatus',new Map()),this[_0x5250dc(0x1fd)]();}['dispose'](){const _0x1c178d=_0x5d5931;super[_0x1c178d(0x323)](),this[_0x1c178d(0x171)][_0x1c178d(0x2e0)]((_0x2677a3,_0x566af4)=>this[_0x1c178d(0x312)](_0x566af4)),this[_0x1c178d(0x2b4)]&&window[_0x1c178d(0x344)](this[_0x1c178d(0x2b4)]);}[_0x5d5931(0x139)](_0x2cd710){const _0x2ced38=_0x5d5931;return this[_0x2ced38(0x221)](_0x2cd710)['pipe'](d['distinctUntilChanged']());}['editingUnit'](_0x578fb2){const _0x24837e=_0x5d5931;this['_selfUnitIDs'][_0x24837e(0x164)]===0x0&&this['_scheduleHeartbeat'](),this[_0x24837e(0x1d6)]['add'](_0x578fb2),this[_0x24837e(0x35f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x578fb2],'isForwarded':!0x1});}['disposeUnit'](_0x6e88e5){const _0x1fc1f3=_0x5d5931;this[_0x1fc1f3(0x1d6)]['delete'](_0x6e88e5),this['_selfUnitIDs'][_0x1fc1f3(0x164)]===0x0&&this[_0x1fc1f3(0x2b4)]&&window[_0x1fc1f3(0x344)](this[_0x1fc1f3(0x2b4)]);}[_0x5d5931(0x1fd)](){const _0x5f4f45=_0x5d5931;this[_0x5f4f45(0x2b9)](a[_0x5f4f45(0x236)](d[_0x5f4f45(0x26b)](window,'storage')[_0x5f4f45(0x363)](_0x278411=>{const _0x5a07f0=_0x5f4f45;if(_0x278411['key']!==we||!_0x278411[_0x5a07f0(0x243)])return;const _0x37484a=JSON['parse'](_0x278411[_0x5a07f0(0x243)]);this['_handleEvent'](_0x37484a);}))),window['addEventListener'](_0x5f4f45(0x118),()=>this[_0x5f4f45(0x35f)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x5f4f45(0x1d6)])}));}[_0x5d5931(0x17f)](_0x501dcf){const _0x4bf492=_0x5d5931;switch(_0x501dcf[_0x4bf492(0x36a)]){case 0x0:this[_0x4bf492(0x166)](_0x501dcf);break;case 0x1:this[_0x4bf492(0x2f3)](_0x501dcf);break;case 0x2:this[_0x4bf492(0x1a1)](_0x501dcf);break;}}[_0x5d5931(0x166)](_0x2631fb){const _0x5a07e4=_0x5d5931,{unitIDs:_0x382aa3,memberID:_0x48fa0d,isForwarded:_0x2b08e5}=_0x2631fb;_0x382aa3[_0x5a07e4(0x2e0)](_0x4f01c7=>{const _0x3942af=_0x5a07e4;if(!_0x2b08e5&&this[_0x3942af(0x370)][_0x3942af(0x12b)](_0x4f01c7)&&this['_ensureSubject'](_0x4f01c7)[_0x3942af(0x28c)](u[_0x3942af(0x183)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x4f01c7)||!this[_0x3942af(0x370)][_0x3942af(0x2d2)](_0x4f01c7)[_0x3942af(0x12b)](_0x48fa0d)){const _0x140653=this[_0x3942af(0x370)][_0x3942af(0x2d2)](_0x4f01c7)||new Set();_0x140653[_0x3942af(0x2ca)](_0x48fa0d),this[_0x3942af(0x370)][_0x3942af(0x130)](_0x4f01c7,_0x140653),this['_scheduleClearOtherTimer'](_0x48fa0d);}}),_0x2b08e5||this[_0x5a07e4(0x35f)]({'type':0x0,'memberID':this[_0x5a07e4(0x302)],'unitIDs':[...this[_0x5a07e4(0x1d6)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x153c79){const _0x1822d9=_0x5d5931;this[_0x1822d9(0x312)](_0x153c79);const _0x3d2225=window[_0x1822d9(0x1bf)](()=>{const _0xac047d=_0x1822d9;this[_0xac047d(0x370)][_0xac047d(0x2e0)](_0x22f84b=>{const _0x5aab93=_0xac047d;_0x22f84b[_0x5aab93(0x1a2)](_0x153c79);});},Ne*0x2);this[_0x1822d9(0x171)]['set'](_0x153c79,_0x3d2225);}['_removeClearOtherTimer'](_0x4c0b0e){const _0x1854e7=_0x5d5931;if(this[_0x1854e7(0x171)][_0x1854e7(0x12b)](_0x4c0b0e)){const _0x5445f9=this[_0x1854e7(0x171)][_0x1854e7(0x2d2)](_0x4c0b0e);_0x5445f9&&window[_0x1854e7(0x375)](_0x5445f9),this[_0x1854e7(0x171)]['set'](_0x4c0b0e,null);}}[_0x5d5931(0x2f3)](_0x3abaa7){const _0x4a0775=_0x5d5931,{memberID:_0x5c7d4f,unitIDs:_0x2b4978}=_0x3abaa7;_0x2b4978[_0x4a0775(0x2e0)](_0x49e55e=>{const _0x56e5d4=_0x4a0775;var _0x419c94;const _0x914e16=this[_0x56e5d4(0x370)][_0x56e5d4(0x2d2)](_0x49e55e);_0x914e16&&(_0x914e16[_0x56e5d4(0x1a2)](_0x5c7d4f),(_0x419c94=this[_0x56e5d4(0x221)](_0x49e55e))==null||_0x419c94[_0x56e5d4(0x28c)](_0x914e16['size']===0x0?u[_0x56e5d4(0x183)][_0x56e5d4(0x185)]:u[_0x56e5d4(0x183)][_0x56e5d4(0x189)]));}),this[_0x4a0775(0x312)](_0x5c7d4f);}[_0x5d5931(0x1a1)](_0x46b7b8){const _0x28afec=_0x5d5931;this[_0x28afec(0x16e)](_0x46b7b8[_0x28afec(0x173)]);}['_send'](_0x49bc68){const _0x3ab867=_0x5d5931;localStorage[_0x3ab867(0x2d1)](we,JSON[_0x3ab867(0x165)](_0x49bc68));}[_0x5d5931(0x346)](){const _0x404d1c=_0x5d5931;this[_0x404d1c(0x2b4)]=window['setInterval'](()=>{const _0x1e227e=_0x404d1c;this[_0x1e227e(0x35f)]({'type':0x2,'memberID':this[_0x1e227e(0x302)]});},Ne);}[_0x5d5931(0x221)](_0xff2a61){const _0x386d20=_0x5d5931;return this['_unitStatus'][_0x386d20(0x12b)](_0xff2a61)||this[_0x386d20(0x1b2)]['set'](_0xff2a61,new d[(_0x386d20(0x361))](u[_0x386d20(0x183)][_0x386d20(0x185)])),this[_0x386d20(0x1b2)][_0x386d20(0x2d2)](_0xff2a61);}}var Be=(_0x33a7ad=>(_0x33a7ad[_0x33a7ad[_0x5d5931(0x25a)]=0x0]='UNDEFINED',_0x33a7ad[_0x33a7ad['OK']=0x1]='OK',_0x33a7ad[_0x33a7ad[_0x5d5931(0x1b6)]=0x2]=_0x5d5931(0x1b6),_0x33a7ad[_0x33a7ad['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x33a7ad[_0x33a7ad['NOT_FOUND']=0x4]=_0x5d5931(0x360),_0x33a7ad[_0x33a7ad['UNAUTHENTICATED']=0x5]=_0x5d5931(0x293),_0x33a7ad[_0x33a7ad['ALREADY_EXISTS']=0x6]=_0x5d5931(0x13e),_0x33a7ad[_0x33a7ad['INVALID_ARGUMENT']=0x7]=_0x5d5931(0x2fd),_0x33a7ad[_0x33a7ad[_0x5d5931(0x356)]=0x8]=_0x5d5931(0x356),_0x33a7ad[_0x33a7ad['COMPLETION_FINISHED']=0x9]=_0x5d5931(0x1ca),_0x33a7ad[_0x33a7ad[_0x5d5931(0x31d)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x33a7ad[_0x33a7ad[_0x5d5931(0x25c)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x33a7ad[_0x33a7ad[_0x5d5931(0x177)]=0x1772]=_0x5d5931(0x177),_0x33a7ad[_0x33a7ad['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5d5931(0x2f7),_0x33a7ad[_0x33a7ad[_0x5d5931(0x2b6)]=0x1b59]='APPLY_REJECT',_0x33a7ad[_0x33a7ad[_0x5d5931(0x213)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x33a7ad[_0x33a7ad['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5d5931(0x122),_0x33a7ad[_0x33a7ad['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x33a7ad[_0x33a7ad[_0x5d5931(0x1ae)]=0x1b5d]=_0x5d5931(0x1ae),_0x33a7ad[_0x33a7ad['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5d5931(0x144),_0x33a7ad[_0x33a7ad[_0x5d5931(0x279)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x33a7ad[_0x33a7ad['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x33a7ad[_0x33a7ad[_0x5d5931(0x238)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x33a7ad[_0x33a7ad[_0x5d5931(0x18c)]=0x232c]=_0x5d5931(0x18c),_0x33a7ad[_0x33a7ad['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5d5931(0x329),_0x33a7ad[_0x33a7ad['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5d5931(0x200),_0x33a7ad[_0x33a7ad[_0x5d5931(0x119)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x33a7ad[_0x33a7ad[_0x5d5931(0x127)]=0x2713]=_0x5d5931(0x127),_0x33a7ad[_0x33a7ad[_0x5d5931(0x1ba)]=0x2714]=_0x5d5931(0x1ba),_0x33a7ad[_0x33a7ad[_0x5d5931(0x254)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x33a7ad[_0x33a7ad['UNRECOGNIZED']=-0x1]=_0x5d5931(0x211),_0x33a7ad))(Be||{}),hs=Object[_0x5d5931(0x12f)],_s=(_0x6d4ec8,_0x519fdb,_0x21ed82,_0x2b9d6d)=>{const _0x1e8307=_0x5d5931;for(var _0xcab412=_0x2b9d6d>0x1?void 0x0:_0x2b9d6d?hs(_0x519fdb,_0x21ed82):_0x519fdb,_0x4d1356=_0x6d4ec8[_0x1e8307(0x247)]-0x1,_0xceb623;_0x4d1356>=0x0;_0x4d1356--)(_0xceb623=_0x6d4ec8[_0x4d1356])&&(_0xcab412=_0xceb623(_0xcab412)||_0xcab412);return _0xcab412;},de=(_0x3e30fe,_0x3734b1)=>(_0x560444,_0x272c78)=>_0x3734b1(_0x560444,_0x272c78,_0x3e30fe);exports[_0x5d5931(0x2d9)]=class extends a[_0x5d5931(0x19d)]{constructor(_0x229d5f,_0x4af538,_0x3845ab){const _0xa692e7=_0x5d5931;super(),this[_0xa692e7(0x222)]=_0x229d5f,this['_httpService']=_0x4af538,this[_0xa692e7(0x2bd)]=_0x3845ab;}async[_0x5d5931(0x21e)](_0xd0128,_0x35da6e,_0x4c76e3,..._0x25ac34){const _0x1ace0c=_0x5d5931;var _0x20546b,_0x411587,_0x9481f6,_0x5be714;const _0x302235=this[_0x1ace0c(0x222)][_0x1ace0c(0x2bb)]();if(!_0x302235)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1a7061=((_0x20546b=this[_0x1ace0c(0x2bd)][_0x1ace0c(0x2fa)](u[_0x1ace0c(0x1ff)]))!=null?_0x20546b:u[_0x1ace0c(0x327)])+'/'+_0xd0128+_0x1ace0c(0x22a)+_0x35da6e,_0x80192d=new URL(window[_0x1ace0c(0x347)][_0x1ace0c(0x26d)]),_0x51b703={'scriptId':_0xd0128,'runId':(_0x411587=_0x80192d['searchParams'][_0x1ace0c(0x2d2)](_0x1ace0c(0x237)))!=null?_0x411587:'','function':_0x35da6e,'unitId':_0x302235[_0x1ace0c(0x159)](),'argsOfFunction':JSON[_0x1ace0c(0x165)](_0x25ac34),'invokeId':(_0x9481f6=_0x4c76e3[_0x1ace0c(0x349)])!=null?_0x9481f6:'','executionId':(_0x5be714=_0x4c76e3[_0x1ace0c(0x1f9)])!=null?_0x5be714:''};try{const _0xfe2112=await this[_0x1ace0c(0x1cf)][_0x1ace0c(0x2ac)](_0x1a7061,{'body':_0x51b703});return _0xfe2112[_0x1ace0c(0x1a0)]['error']&&_0xfe2112[_0x1ace0c(0x1a0)][_0x1ace0c(0x23f)][_0x1ace0c(0x2cd)]!==Be['OK']?_0x1ace0c(0x30b):_0xfe2112['body'][_0x1ace0c(0x224)];}catch{return _0x1ace0c(0x30b);}}},exports[_0x5d5931(0x2d9)]=_s([de(0x0,a[_0x5d5931(0x22e)]),de(0x1,a['Inject'](q[_0x5d5931(0x35c)])),de(0x2,a[_0x5d5931(0x163)])],exports[_0x5d5931(0x2d9)]),exports[_0x5d5931(0x372)]=je,exports[_0x5d5931(0x181)]=Ee,exports['SheetCollabCursorShape']=ye,exports[_0x5d5931(0x231)]=ls,exports[_0x5d5931(0x20c)]=ke;
@@ -1 +1 @@
1
- 'use strict';const _0x428f39=_0x21d0;function _0x1fc2(){const _0x549344=['20821332agRXFl','Local\x20file','4214781mWkvxB','719889AYJZxi','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','7640hphCRD','77vgnivL','Collaboration\x20Conflict','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','116340SxUabm','Click\x20to\x20Reconnect','Syncing...','224epLCoG','exports','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','8Gtwudn','1770uVUqMR','Edit\x20conflicts','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','19756gbyjou','18lBrEvS','2069641aFmshY'];_0x1fc2=function(){return _0x549344;};return _0x1fc2();}(function(_0xe3f7da,_0x2d6451){const _0x5dfc7b=_0x21d0,_0x585f23=_0xe3f7da();while(!![]){try{const _0x47f53c=-parseInt(_0x5dfc7b(0x135))/0x1*(-parseInt(_0x5dfc7b(0x128))/0x2)+parseInt(_0x5dfc7b(0x131))/0x3+-parseInt(_0x5dfc7b(0x13c))/0x4*(parseInt(_0x5dfc7b(0x139))/0x5)+parseInt(_0x5dfc7b(0x12c))/0x6*(-parseInt(_0x5dfc7b(0x12d))/0x7)+parseInt(_0x5dfc7b(0x127))/0x8*(-parseInt(_0x5dfc7b(0x130))/0x9)+parseInt(_0x5dfc7b(0x134))/0xa*(parseInt(_0x5dfc7b(0x12b))/0xb)+parseInt(_0x5dfc7b(0x12e))/0xc;if(_0x47f53c===_0x2d6451)break;else _0x585f23['push'](_0x585f23['shift']());}catch(_0x198baa){_0x585f23['push'](_0x585f23['shift']());}}}(_0x1fc2,0xb8d41));function _0x21d0(_0x3fd27c,_0x1aa602){const _0x1fc2a5=_0x1fc2();return _0x21d0=function(_0x21d0a2,_0x2be09c){_0x21d0a2=_0x21d0a2-0x127;let _0x5c693d=_0x1fc2a5[_0x21d0a2];return _0x5c693d;},_0x21d0(_0x3fd27c,_0x1aa602);}const e={'collab-client':{'tooltip':{'reconnect':_0x428f39(0x13a)}},'collabStatus':{'fetchMiss':_0x428f39(0x13e),'conflict':_0x428f39(0x129),'notCollab':_0x428f39(0x12f),'synced':_0x428f39(0x140),'syncing':_0x428f39(0x13b),'offline':_0x428f39(0x12a)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x428f39(0x138),'room-full':_0x428f39(0x133),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x428f39(0x136),'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':'Authentication\x20Error','content':_0x428f39(0x132)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x428f39(0x137)},'auth':{'needGotoLoginAlert':_0x428f39(0x13f)}};module[_0x428f39(0x13d)]=e;
1
+ 'use strict';const _0x1f89b3=_0x43ac;(function(_0x2fe8c8,_0x1a891c){const _0x566a45=_0x43ac,_0x188bf3=_0x2fe8c8();while(!![]){try{const _0x29fcf4=parseInt(_0x566a45(0x1ed))/0x1*(parseInt(_0x566a45(0x1ee))/0x2)+parseInt(_0x566a45(0x1f1))/0x3*(-parseInt(_0x566a45(0x1f8))/0x4)+-parseInt(_0x566a45(0x1e8))/0x5+parseInt(_0x566a45(0x1f7))/0x6*(parseInt(_0x566a45(0x1e0))/0x7)+-parseInt(_0x566a45(0x1eb))/0x8*(parseInt(_0x566a45(0x1f6))/0x9)+parseInt(_0x566a45(0x1e7))/0xa+parseInt(_0x566a45(0x1f2))/0xb;if(_0x29fcf4===_0x1a891c)break;else _0x188bf3['push'](_0x188bf3['shift']());}catch(_0x4753f4){_0x188bf3['push'](_0x188bf3['shift']());}}}(_0x41e7,0x5818c));const e={'collab-client':{'tooltip':{'reconnect':_0x1f89b3(0x1e6)}},'collabStatus':{'fetchMiss':_0x1f89b3(0x1ef),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':_0x1f89b3(0x1e9),'offline':_0x1f89b3(0x1e1)},'session':{'connection-failed':_0x1f89b3(0x1e5),'will-retry':_0x1f89b3(0x1e3),'room-full':_0x1f89b3(0x1f5),'collaboration-timeout':_0x1f89b3(0x1e2)},'conflict':{'title':_0x1f89b3(0x1ec),'content':_0x1f89b3(0x1ea)},'permission':{'title':_0x1f89b3(0x1f9),'content':_0x1f89b3(0x1fa)},'collaboration':{'single-unit':{'warning':_0x1f89b3(0x1e4)},'closeRoom':_0x1f89b3(0x1f4)},'auth':{'needGotoLoginAlert':_0x1f89b3(0x1f0)}};module[_0x1f89b3(0x1f3)]=e;function _0x43ac(_0x41969c,_0x2eaf50){const _0x41e74d=_0x41e7();return _0x43ac=function(_0x43acbe,_0x351341){_0x43acbe=_0x43acbe-0x1e0;let _0x83102a=_0x41e74d[_0x43acbe];return _0x83102a;},_0x43ac(_0x41969c,_0x2eaf50);}function _0x41e7(){const _0xac094e=['Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Connection\x20failed,\x20please\x20check\x20your\x20network.','Click\x20to\x20Reconnect','5864190iNGJOZ','1375370EZofVH','Syncing...','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.','77864QUjvct','Collaboration\x20Conflict','262329nXVMEd','4jnVHME','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','48801unemhN','1715461eMjGle','exports','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','585tkPmQz','12mxZOwl','164MPkmNB','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','2339687HIVDYQ','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0x41e7=function(){return _0xac094e;};return _0x41e7();}