@univerjs-pro/collaboration-client-ui 0.6.4 → 0.6.5-nightly.202503121607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x10a1(){const _0x4e550c=['runOnServer','378168DuFfoN','@univerjs/core/facade','130wavYFs','478950WoKEFt','7yOJvdl','136301glpvFO','1348392idTLNN','2202183tCLWGx','3PPTuFg','732hpVgUE','RemoteUniscriptService','FUniver','get','2325336ninxCJ','extend','1051RgSvyf'];_0x10a1=function(){return _0x4e550c;};return _0x10a1();}const _0x25a4e7=_0xaf10;function _0xaf10(_0x5b32b3,_0x480b40){const _0x10a165=_0x10a1();return _0xaf10=function(_0xaf10a3,_0x31358d){_0xaf10a3=_0xaf10a3-0x7a;let _0x7070a7=_0x10a165[_0xaf10a3];return _0x7070a7;},_0xaf10(_0x5b32b3,_0x480b40);}(function(_0x4a5cc1,_0xf8f337){const _0x45007a=_0xaf10,_0x460634=_0x4a5cc1();while(!![]){try{const _0x10bd99=parseInt(_0x45007a(0x83))/0x1*(parseInt(_0x45007a(0x7d))/0x2)+-parseInt(_0x45007a(0x7c))/0x3*(-parseInt(_0x45007a(0x7a))/0x4)+-parseInt(_0x45007a(0x88))/0x5+parseInt(_0x45007a(0x81))/0x6*(-parseInt(_0x45007a(0x89))/0x7)+parseInt(_0x45007a(0x85))/0x8+-parseInt(_0x45007a(0x7b))/0x9+parseInt(_0x45007a(0x87))/0xa*(parseInt(_0x45007a(0x8a))/0xb);if(_0x10bd99===_0xf8f337)break;else _0x460634['push'](_0x460634['shift']());}catch(_0x1ea0ef){_0x460634['push'](_0x460634['shift']());}}}(_0x10a1,0x31565));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x25a4e7(0x86));class c extends e[_0x25a4e7(0x7f)]{['runOnServer'](_0x531153,_0x5642a9,..._0x12cef4){const _0x283abc=_0x25a4e7;return this['_injector'][_0x283abc(0x80)](t[_0x283abc(0x7e)])[_0x283abc(0x84)](_0x531153,_0x5642a9,{},..._0x12cef4);}}e[_0x25a4e7(0x7f)][_0x25a4e7(0x82)](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 _0x5b92c2=_0x853b;(function(_0x4f68fc,_0xd98920){const _0x1ee51f=_0x853b,_0x1f3d1f=_0x4f68fc();while(!![]){try{const _0x209d0a=parseInt(_0x1ee51f(0x181))/0x1*(parseInt(_0x1ee51f(0x2f1))/0x2)+parseInt(_0x1ee51f(0x311))/0x3*(-parseInt(_0x1ee51f(0x147))/0x4)+parseInt(_0x1ee51f(0x362))/0x5*(parseInt(_0x1ee51f(0x33c))/0x6)+parseInt(_0x1ee51f(0x358))/0x7+parseInt(_0x1ee51f(0x3bc))/0x8+-parseInt(_0x1ee51f(0x154))/0x9+parseInt(_0x1ee51f(0x227))/0xa*(-parseInt(_0x1ee51f(0x2ef))/0xb);if(_0x209d0a===_0xd98920)break;else _0x1f3d1f['push'](_0x1f3d1f['shift']());}catch(_0x5d552a){_0x1f3d1f['push'](_0x1f3d1f['shift']());}}}(_0x3883,0xc15de));var Ve=Object[_0x5b92c2(0x3ae)],Ge=(_0x4596ce,_0xcb3fb3,_0x56aa9e)=>_0xcb3fb3 in _0x4596ce?Ve(_0x4596ce,_0xcb3fb3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56aa9e}):_0x4596ce[_0xcb3fb3]=_0x56aa9e,h=(_0x47e095,_0x3b7986,_0x3ef538)=>Ge(_0x47e095,typeof _0x3b7986!='symbol'?_0x3b7986+'':_0x3b7986,_0x3ef538);Object[_0x5b92c2(0x3ae)](exports,Symbol[_0x5b92c2(0x1e3)],{'value':_0x5b92c2(0x31a)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x5b92c2(0x18c)),p=require(_0x5b92c2(0x38a)),q=require(_0x5b92c2(0x27c)),b=require(_0x5b92c2(0x381)),qe=require(_0x5b92c2(0x26b)),d=require(_0x5b92c2(0x1e5)),Y=require(_0x5b92c2(0x1b9)),m=require(_0x5b92c2(0x237)),Te=require(_0x5b92c2(0x208)),I=require(_0x5b92c2(0x1a3)),$=require(_0x5b92c2(0x217)),G=require(_0x5b92c2(0x2df)),w=require(_0x5b92c2(0x166)),R=require(_0x5b92c2(0x298)),T=require(_0x5b92c2(0x267)),P=require(_0x5b92c2(0x16a)),Ke=require('@univerjs/rpc');var ze=Object['getOwnPropertyDescriptor'],Je=(_0x13bbb9,_0x426647,_0x55ccf8,_0x491200)=>{const _0x55c66e=_0x5b92c2;for(var _0x821543=_0x491200>0x1?void 0x0:_0x491200?ze(_0x426647,_0x55ccf8):_0x426647,_0x2be671=_0x13bbb9[_0x55c66e(0x19f)]-0x1,_0x5b21ac;_0x2be671>=0x0;_0x2be671--)(_0x5b21ac=_0x13bbb9[_0x2be671])&&(_0x821543=_0x5b21ac(_0x821543)||_0x821543);return _0x821543;},Re=(_0x503e6e,_0x4a475a)=>(_0x1de85d,_0xe27cb5)=>_0x4a475a(_0x1de85d,_0xe27cb5,_0x503e6e);let fe=class extends a['RxDisposable']{constructor(_0x55c49d,_0x4838e0){const _0x1029d3=_0x5b92c2;super(),this[_0x1029d3(0x294)]=_0x55c49d,this[_0x1029d3(0x1bc)]=_0x4838e0,this['_init']();}[_0x5b92c2(0x182)](){const _0x442b44=_0x5b92c2,_0xd324cc=this;this[_0x442b44(0x165)](this[_0x442b44(0x294)][_0x442b44(0x18d)]({'onBeforePasteImage':async _0x4b2a31=>{const _0x5bcc75=_0x442b44,_0x3005d8=await _0xd324cc[_0x5bcc75(0x1bc)][_0x5bcc75(0x389)](_0x4b2a31);return _0x3005d8?{'source':_0x3005d8[_0x5bcc75(0x262)],'imageSourceType':_0x3005d8['imageSourceType']}:null;}}));}};fe=Je([Re(0x0,b[_0x5b92c2(0x2c6)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=[_0x5b92c2(0x188),'jiqing500',_0x5b92c2(0x350),_0x5b92c2(0x15e),_0x5b92c2(0x177),_0x5b92c2(0x2cb)];class Ce extends a['Disposable']{constructor(){const _0x56b585=_0x5b92c2;super(...arguments),h(this,_0x56b585(0x370),new Map()),h(this,_0x56b585(0x1b4),0x0);}[_0x5b92c2(0x27f)](_0x28b0ba){const _0x24f40f=_0x5b92c2;if(this[_0x24f40f(0x370)][_0x24f40f(0x2f4)](_0x28b0ba))return this[_0x24f40f(0x370)][_0x24f40f(0x261)](_0x28b0ba);const _0x30a3dd=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0x24f40f(0x1b4)]+0x1)%Oe[_0x24f40f(0x19f)],this[_0x24f40f(0x370)][_0x24f40f(0x2b1)](_0x28b0ba,_0x30a3dd),_0x30a3dd;}}function Le(_0x484c6a){const _0x17357a=_0x5b92c2;let _0x4e563c='';for(const _0x4ab650 of _0x484c6a){const {startOffset:_0xd1333d,endOffset:_0x15aa7c,isActive:_0xca49a5,rangeType:_0x473700,segmentId:_0xc3ec5e,segmentPage:_0x371b87}=_0x4ab650;_0x4e563c[_0x17357a(0x19f)]&&(_0x4e563c+=','),_0x4e563c+=_0xd1333d+':'+_0x15aa7c+':'+(_0xca49a5?'1':'0')+':'+_0x473700+':'+_0xc3ec5e+':'+_0x371b87;}return _0x4e563c;}function Ze(_0x446ced){const _0x52fd48=_0x5b92c2,_0x3c53ea=_0x446ced[_0x52fd48(0x168)](','),_0x161b5b=[];for(const _0x17edd5 of _0x3c53ea){const [_0x33fb0d,_0x116279,_0x37cd5d,_0xf5ccf7,_0x3a42c7,_0x3482bb]=_0x17edd5['split'](':');_0x161b5b[_0x52fd48(0x314)]({'startOffset':Number(_0x33fb0d),'endOffset':Number(_0x116279),'collapsed':_0x33fb0d===_0x116279,'isActive':_0x37cd5d==='1','rangeType':_0xf5ccf7===a[_0x52fd48(0x19a)][_0x52fd48(0x266)]?a[_0x52fd48(0x19a)][_0x52fd48(0x266)]:a[_0x52fd48(0x19a)][_0x52fd48(0x277)],'segmentId':typeof _0x3a42c7==_0x52fd48(0x2d3)?String(_0x3a42c7):'','segmentPage':Number(_0x3482bb!=null?_0x3482bb:-0x1)});}return _0x161b5b[_0x52fd48(0x293)](_0x82962e=>_0x82962e[_0x52fd48(0x16c)])||(_0x161b5b[0x0][_0x52fd48(0x16c)]=!0x0),_0x161b5b;}class pe extends a[_0x5b92c2(0x210)]{constructor(){const _0x2a1a79=_0x5b92c2;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x2a1a79(0x14a)]['asObservable']());}[_0x5b92c2(0x3c6)](_0x4f7769){const _0x29604e=_0x5b92c2,{unitID:_0x4028ff,memberID:_0x333655,textRanges:_0x10dec0}=_0x4f7769,_0x1e7354=Le(_0x10dec0);if(_0x1e7354==='')return;const _0x3fb664={'unitID':_0x4028ff,'memberID':_0x333655,'selection':_0x1e7354};this['_collabCursorState$'][_0x29604e(0x2ee)](_0x3fb664);}}var Qe=Object[_0x5b92c2(0x255)],et=(_0x523d7c,_0x451eb6,_0x53a89c,_0x3ef9ac)=>{const _0x1bac9f=_0x5b92c2;for(var _0x81494f=_0x3ef9ac>0x1?void 0x0:_0x3ef9ac?Qe(_0x451eb6,_0x53a89c):_0x451eb6,_0x527937=_0x523d7c[_0x1bac9f(0x19f)]-0x1,_0x4b43ab;_0x527937>=0x0;_0x527937--)(_0x4b43ab=_0x523d7c[_0x527937])&&(_0x81494f=_0x4b43ab(_0x81494f)||_0x81494f);return _0x81494f;},N=(_0x371a40,_0x1dd456)=>(_0x5d9f5f,_0x20d6b5)=>_0x1dd456(_0x5d9f5f,_0x20d6b5,_0x371a40);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0xe51b0d,_0x1581ea,_0x3377d5,_0x324a48,_0x393551,_0x555774,_0x104e3e,_0x2fcd07,_0x6306ca){const _0x19b6af=_0x5b92c2;super(),h(this,_0x19b6af(0x226),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x19b6af(0x3a2))](new Map())),h(this,_0x19b6af(0x306),this[_0x19b6af(0x34f)][_0x19b6af(0x365)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x19b6af(0x23c)][_0x19b6af(0x349)](d[_0x19b6af(0x2c0)](tt))),h(this,_0x19b6af(0x18f),a[_0x19b6af(0x31d)](_0x5e7e7f=>{const _0x188a1c=_0x19b6af,_0x176438={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x188a1c(0x3b3)][_0x188a1c(0x1e6)](),'selection':Le(_0x5e7e7f)}};this[_0x188a1c(0x3b3)]['send'](_0x176438,this[_0x188a1c(0x367)]);},st)),(this['unitID']=_0xe51b0d,this[_0x19b6af(0x3b3)]=_0x1581ea,this[_0x19b6af(0x1ce)]=_0x3377d5,this[_0x19b6af(0x372)]=_0x324a48,this[_0x19b6af(0x385)]=_0x393551,this[_0x19b6af(0x1af)]=_0x555774,this['_transformService']=_0x104e3e,this['_univerInstanceService']=_0x2fcd07,this[_0x19b6af(0x1cc)]=_0x6306ca);}get[_0x5b92c2(0x2fb)](){const _0x44cfcb=_0x5b92c2;return this[_0x44cfcb(0x34f)][_0x44cfcb(0x275)]();}get[_0x5b92c2(0x1ca)](){const _0x43c51f=_0x5b92c2;return this[_0x43c51f(0x23c)][_0x43c51f(0x275)]();}[_0x5b92c2(0x241)](){const _0x1afe5e=_0x5b92c2;super[_0x1afe5e(0x241)](),this[_0x1afe5e(0x34f)][_0x1afe5e(0x2ee)](new Map()),this[_0x1afe5e(0x34f)][_0x1afe5e(0x145)](),this[_0x1afe5e(0x23c)][_0x1afe5e(0x2ee)]([]),this[_0x1afe5e(0x23c)][_0x1afe5e(0x145)]();}['init'](){const _0x2b8b99=_0x5b92c2;this[_0x2b8b99(0x182)]||(this[_0x2b8b99(0x182)]=!0x0,this[_0x2b8b99(0x3b3)][_0x2b8b99(0x14e)]['pipe'](d[_0x2b8b99(0x35b)](this[_0x2b8b99(0x15a)]))[_0x2b8b99(0x337)](_0x2aead2=>{const _0x17b0b2=_0x2b8b99;_0x2aead2===u[_0x17b0b2(0x3c1)][_0x17b0b2(0x34a)]?this[_0x17b0b2(0x23b)]():this[_0x17b0b2(0x394)]();}),this[_0x2b8b99(0x3b3)][_0x2b8b99(0x2a0)][_0x2b8b99(0x349)](d[_0x2b8b99(0x35b)](this['dispose$']))[_0x2b8b99(0x337)](_0xd07493=>{const _0x18c72e=_0x2b8b99,_0x510f82=_0xd07493[_0x18c72e(0x274)];_0x510f82===m['CollaborationEvent'][_0x18c72e(0x1b8)]&&this[_0x18c72e(0x1dc)](_0xd07493),_0x510f82===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x18c72e(0x191)](_0xd07493);}),this[_0x2b8b99(0x165)](this[_0x2b8b99(0x1cc)][_0x2b8b99(0x329)](_0xab7a8c=>{const _0x2c43f2=_0x2b8b99,_0xfc0905=_0xab7a8c[_0x2c43f2(0x15d)];_0xfc0905!=null&&this[_0x2c43f2(0x226)]&&_0xab7a8c['id']===Y['SetTextSelectionsOperation']['id']&&_0xfc0905['unitId']===this['unitID']&&_0xfc0905[_0x2c43f2(0x1a7)]===!0x1&&_0xfc0905['ranges']['length']>0x0&&this['_updateLocalCursor'](_0xfc0905['ranges']);})),this['_syncEditingCollabCursorService'][_0x2b8b99(0x1ad)][_0x2b8b99(0x349)](d['takeUntil'](this[_0x2b8b99(0x15a)]))[_0x2b8b99(0x337)](_0x581ed8=>{const _0x3e0ee7=_0x2b8b99;if((_0x581ed8==null?void 0x0:_0x581ed8['unitID'])!==this[_0x3e0ee7(0x367)])return;const _0x559797={'eventID':m[_0x3e0ee7(0x281)]['UPDATE_CURSOR'],'data':_0x581ed8};this[_0x3e0ee7(0x1dc)](_0x559797);}),this[_0x2b8b99(0x165)](this[_0x2b8b99(0x1cc)][_0x2b8b99(0x329)](_0x3a3da0=>{const _0x36b31b=_0x2b8b99;if(_0x3a3da0[_0x36b31b(0x15d)]==null)return;const _0x5c9b8d=_0x3a3da0['params'];if(_0x3a3da0['id']!==Y[_0x36b31b(0x3a0)]['id']||_0x5c9b8d[_0x36b31b(0x299)]!==this[_0x36b31b(0x367)])return;const _0x138ee5={'id':_0x36b31b(0x17c),'params':_0x5c9b8d},_0x2dfda6=this[_0x36b31b(0x2fb)];for(const [_0x5e4033,_0x1b88aa]of _0x2dfda6){const _0x2fbc38={'id':_0x36b31b(0x17c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1b88aa['ranges']}},_0x598d00=this[_0x36b31b(0x216)][_0x36b31b(0x1f0)](_0x138ee5,_0x2fbc38,!0x1);if(m[_0x36b31b(0x25e)](_0x598d00))throw _0x598d00[_0x36b31b(0x249)];_0x2dfda6[_0x36b31b(0x2b1)](_0x5e4033,{..._0x1b88aa,'ranges':_0x598d00['m2Prime']['params'][_0x36b31b(0x15f)]});}queueMicrotask(()=>{const _0xb94e75=_0x36b31b;this[_0xb94e75(0x34f)][_0xb94e75(0x2ee)](_0x2dfda6);});})));}['_onCursorUpdate'](_0x40e84b){const _0x1f0d3a=_0x5b92c2;var _0x59b9c4,_0x2fc251;const {memberID:_0x4d9f70,selection:_0x3b55c2}=_0x40e84b[_0x1f0d3a(0x2a6)],_0x3da77a=Ze(_0x3b55c2),_0x3bd822=(_0x2fc251=(_0x59b9c4=this[_0x1f0d3a(0x385)][_0x1f0d3a(0x1ae)](this[_0x1f0d3a(0x367)],_0x4d9f70))==null?void 0x0:_0x59b9c4[_0x1f0d3a(0x29e)])!=null?_0x2fc251:_0x1f0d3a(0x225),_0x11a568={'color':this[_0x1f0d3a(0x372)]['assignAColorForMemberID'](_0x4d9f70),'name':_0x3bd822,'ranges':_0x3da77a},_0x41eb4b=this[_0x1f0d3a(0x2fb)];_0x41eb4b[_0x1f0d3a(0x2b1)](_0x4d9f70,_0x11a568),this['_cursorInfo$'][_0x1f0d3a(0x2ee)](_0x41eb4b);}[_0x5b92c2(0x191)](_0xd6c334){const _0x505aac=_0x5b92c2,{memberID:_0x4782cf}=_0xd6c334[_0x505aac(0x2a6)],_0x537467=this['cursorInfo'];_0x537467[_0x505aac(0x343)](_0x4782cf),this[_0x505aac(0x34f)][_0x505aac(0x2ee)](_0x537467);}[_0x5b92c2(0x23b)](){const _0x484eea=_0x5b92c2;var _0x39bae4;if(this[_0x484eea(0x226)]=!0x0,((_0x39bae4=this['_univerInstanceService'][_0x484eea(0x1a4)]())==null?void 0x0:_0x39bae4[_0x484eea(0x1bb)]())!==this['unitID'])return;const _0x508a15=this['_injector'][_0x484eea(0x261)](Y[_0x484eea(0x1b7)])[_0x484eea(0x1d0)]();Array[_0x484eea(0x219)](_0x508a15)&&_0x508a15[_0x484eea(0x19f)]>0x0&&this['_updateLocalCursor'](_0x508a15);}[_0x5b92c2(0x394)](){const _0xf109ef=_0x5b92c2;this[_0xf109ef(0x226)]=!0x1;}};Se=et([N(0x2,a[_0x5b92c2(0x23e)](a[_0x5b92c2(0x2d5)])),N(0x3,a['Inject'](Ce)),N(0x4,a[_0x5b92c2(0x23e)](u[_0x5b92c2(0x2be)])),N(0x5,a[_0x5b92c2(0x23e)](pe)),N(0x6,m[_0x5b92c2(0x21c)]),N(0x7,a['IUniverInstanceService']),N(0x8,a[_0x5b92c2(0x1f4)])],Se);function _0x853b(_0x376247,_0x2a749a){const _0x38837a=_0x3883();return _0x853b=function(_0x853be4,_0xf6fe43){_0x853be4=_0x853be4-0x145;let _0x1fc456=_0x38837a[_0x853be4];return _0x1fc456;},_0x853b(_0x376247,_0x2a749a);}var nt=Object['getOwnPropertyDescriptor'],it=(_0x2e23a4,_0x3c25fc,_0x192978,_0x5c1a92)=>{const _0x5495a4=_0x5b92c2;for(var _0x21890d=_0x5c1a92>0x1?void 0x0:_0x5c1a92?nt(_0x3c25fc,_0x192978):_0x3c25fc,_0x511d1a=_0x2e23a4[_0x5495a4(0x19f)]-0x1,_0xb48020;_0x511d1a>=0x0;_0x511d1a--)(_0xb48020=_0x2e23a4[_0x511d1a])&&(_0x21890d=_0xb48020(_0x21890d)||_0x21890d);return _0x21890d;},y=(_0x148d22,_0x456784)=>(_0x468da7,_0x426d82)=>_0x456784(_0x468da7,_0x426d82,_0x148d22);const rt=0x12c,ot=0x64,at=()=>{let _0x296fee=[],_0x4bb63f=!0x1;return _0x1724c5=>{_0x296fee['push'](_0x1724c5),_0x4bb63f||(_0x4bb63f=!0x0,setTimeout(()=>{_0x296fee['forEach'](_0xf53564=>_0xf53564()),_0x296fee=[],_0x4bb63f=!0x1;}));};};let ve=class extends a[_0x5b92c2(0x210)]{constructor(_0x2a62eb,_0x5d3d8a,_0x5f277e,_0x2caba6,_0x5a380c,_0x1d3742,_0x1b27fa,_0x5e05e0){const _0x5370b4=_0x5b92c2;super(),h(this,_0x5370b4(0x226),!0x1),h(this,_0x5370b4(0x182),!0x1),h(this,'_cursorInfo$',new d[(_0x5370b4(0x3a2))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x5370b4(0x365)]()),h(this,_0x5370b4(0x23c),new d[(_0x5370b4(0x3a2))]([])),h(this,'roomMembers$',this[_0x5370b4(0x23c)][_0x5370b4(0x349)](d[_0x5370b4(0x2c0)](rt))),h(this,'_updateLocalCursor',a[_0x5370b4(0x31d)]((_0xfdc3e,_0x38748e)=>{const _0x4fa3d0=_0x5370b4,_0x1ddc12={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x4fa3d0(0x367)],'memberID':this['_session'][_0x4fa3d0(0x1e6)](),'selection':Te[_0x4fa3d0(0x16f)](_0xfdc3e,_0x38748e[_0x4fa3d0(0x254)])}};this[_0x4fa3d0(0x3b3)][_0x4fa3d0(0x2e4)](_0x1ddc12,this['unitID']);},ot)),(this[_0x5370b4(0x367)]=_0x2a62eb,this['_session']=_0x5d3d8a,this[_0x5370b4(0x1ce)]=_0x5f277e,this[_0x5370b4(0x372)]=_0x2caba6,this[_0x5370b4(0x385)]=_0x5a380c,this['_univerInstanceService']=_0x1d3742,this[_0x5370b4(0x1cc)]=_0x1b27fa,this[_0x5370b4(0x301)]=_0x5e05e0);}get['cursorInfo'](){const _0x3c81fb=_0x5b92c2;return this[_0x3c81fb(0x34f)][_0x3c81fb(0x275)]();}get[_0x5b92c2(0x1ca)](){const _0xaebb4d=_0x5b92c2;return this[_0xaebb4d(0x23c)][_0xaebb4d(0x275)]();}[_0x5b92c2(0x241)](){const _0x537957=_0x5b92c2;super[_0x537957(0x241)](),this[_0x537957(0x34f)][_0x537957(0x2ee)](new Map()),this['_cursorInfo$'][_0x537957(0x145)](),this[_0x537957(0x23c)]['next']([]),this[_0x537957(0x23c)]['complete']();}[_0x5b92c2(0x25b)](){const _0xb010a6=_0x5b92c2;this[_0xb010a6(0x182)]||(this[_0xb010a6(0x182)]=!0x0,this[_0xb010a6(0x3b3)]['sessionStatus$'][_0xb010a6(0x349)](d[_0xb010a6(0x35b)](this[_0xb010a6(0x15a)]))[_0xb010a6(0x337)](_0x204968=>{const _0x2c5e59=_0xb010a6;_0x204968===u[_0x2c5e59(0x3c1)][_0x2c5e59(0x34a)]?this[_0x2c5e59(0x23b)]():this[_0x2c5e59(0x394)]();}),this[_0xb010a6(0x3b3)][_0xb010a6(0x2a0)][_0xb010a6(0x349)](d[_0xb010a6(0x35b)](this[_0xb010a6(0x15a)]))[_0xb010a6(0x337)](_0x20f5b1=>{const _0x869be6=_0xb010a6,_0x18089e=_0x20f5b1[_0x869be6(0x274)];_0x18089e===m[_0x869be6(0x281)][_0x869be6(0x1b8)]&&this['_onCursorUpdate'](_0x20f5b1),_0x18089e===m[_0x869be6(0x281)][_0x869be6(0x354)]&&this['_onCursorDelete'](_0x20f5b1);}),this[_0xb010a6(0x2d2)](),this[_0xb010a6(0x165)](this['_commandService'][_0xb010a6(0x329)](_0x17d5c5=>{const _0x57f3ca=_0xb010a6;if(this[_0x57f3ca(0x226)]&&_0x17d5c5['id']===I[_0x57f3ca(0x1f3)]['id']&&_0x17d5c5[_0x57f3ca(0x15d)][_0x57f3ca(0x299)]===this[_0x57f3ca(0x367)]){const _0x2f84fd=_0x17d5c5[_0x57f3ca(0x15d)];this[_0x57f3ca(0x18f)](_0x2f84fd[_0x57f3ca(0x170)],_0x2f84fd[_0x57f3ca(0x1a6)][0x0]);}})));}[_0x5b92c2(0x1dc)](_0xfd7905){const _0x1651d3=_0x5b92c2;var _0x50b1ac,_0x4fd4c1;const {memberID:_0x5acb2c,selection:_0x540acc}=_0xfd7905[_0x1651d3(0x2a6)],{sheetName:_0x21d00c,range:_0x53b50a}=Te['deserializeRangeWithSheet'](_0x540acc),_0x4f7d6d={'name':(_0x4fd4c1=(_0x50b1ac=this[_0x1651d3(0x385)][_0x1651d3(0x1ae)](this[_0x1651d3(0x367)],_0x5acb2c))==null?void 0x0:_0x50b1ac[_0x1651d3(0x29e)])!=null?_0x4fd4c1:_0x1651d3(0x225),'range':this[_0x1651d3(0x2d9)](_0x21d00c,_0x53b50a),'sheetID':_0x21d00c,'color':this['_colorAssignService'][_0x1651d3(0x27f)](_0x5acb2c),'selection':_0x540acc},_0x2debfe=this[_0x1651d3(0x2fb)];_0x2debfe['set'](_0x5acb2c,_0x4f7d6d),this[_0x1651d3(0x34f)][_0x1651d3(0x2ee)](_0x2debfe);}[_0x5b92c2(0x191)](_0x2e793f){const _0x1c3b7f=_0x5b92c2,{memberID:_0x29f2bc}=_0x2e793f['data'],_0x3ad0c5=this[_0x1c3b7f(0x2fb)];_0x3ad0c5[_0x1c3b7f(0x343)](_0x29f2bc),this['_cursorInfo$'][_0x1c3b7f(0x2ee)](_0x3ad0c5);}[_0x5b92c2(0x2d9)](_0x32dbbe,_0x42895f){const _0x126d5a=_0x5b92c2;var _0x136982,_0x50f737;const _0x377933=(_0x50f737=(_0x136982=this[_0x126d5a(0x230)][_0x126d5a(0x2de)](this[_0x126d5a(0x367)]))==null?void 0x0:_0x136982[_0x126d5a(0x193)](_0x32dbbe))==null?void 0x0:_0x50f737[_0x126d5a(0x1d2)]();return(_0x377933==null?void 0x0:_0x377933[_0x126d5a(0x1e7)](_0x2883c5=>a[_0x126d5a(0x236)]['contains'](_0x2883c5,_0x42895f)))||_0x42895f;}['_onRefRangeChange'](){const _0xe34acf=_0x5b92c2,_0x409ba3=new a['DisposableCollection'](),_0x348766=at(),_0x3adfda=()=>{const _0x2eeab2=_0x853b;_0x409ba3[_0x2eeab2(0x241)]();const _0x432b47=(_0x587804,_0x4f89b7,_0x2f2b97,_0x52cbe6)=>{const _0x1c81c2=_0x2eeab2;let _0x1e060d=[];switch(_0x587804['id']){case I[_0x1c81c2(0x1ab)]['DeleteRangeMoveLeftCommandId']:{_0x1e060d=I[_0x1c81c2(0x1e1)](_0x587804,_0x52cbe6);break;}case I['EffectRefRangId'][_0x1c81c2(0x3a7)]:{_0x1e060d=I[_0x1c81c2(0x3c0)](_0x587804,_0x52cbe6);break;}case I[_0x1c81c2(0x1ab)][_0x1c81c2(0x38b)]:{_0x1e060d=I[_0x1c81c2(0x1eb)](_0x587804,_0x52cbe6);break;}case I[_0x1c81c2(0x1ab)][_0x1c81c2(0x3af)]:{_0x1e060d=I[_0x1c81c2(0x21e)](_0x587804,_0x52cbe6);break;}case I['EffectRefRangId'][_0x1c81c2(0x348)]:{_0x1e060d=I[_0x1c81c2(0x155)](_0x587804,_0x52cbe6);break;}case I[_0x1c81c2(0x1ab)][_0x1c81c2(0x1fc)]:{_0x1e060d=I[_0x1c81c2(0x378)](_0x587804,_0x52cbe6);break;}case I[_0x1c81c2(0x1ab)]['MoveRangeCommandId']:{_0x1e060d=I['handleMoveRange'](_0x587804,_0x52cbe6);break;}case I[_0x1c81c2(0x1ab)][_0x1c81c2(0x312)]:{_0x1e060d=I['handleIRemoveCol'](_0x587804,_0x52cbe6);break;}case I[_0x1c81c2(0x1ab)][_0x1c81c2(0x1d4)]:{_0x1e060d=I[_0x1c81c2(0x2d8)](_0x587804,_0x52cbe6);break;}}const _0x212f71=I['runRefRangeMutations'](_0x1e060d,_0x52cbe6),_0xbb9de4=this[_0x1c81c2(0x2fb)][_0x1c81c2(0x261)](_0x4f89b7);if(_0xbb9de4&&_0x212f71){const _0x41d46a={..._0xbb9de4,'range':_0x212f71};this[_0x1c81c2(0x2fb)]['set'](_0x4f89b7,_0x41d46a),_0x348766(()=>{const _0x3dec4e=_0x1c81c2,_0x47b45f=this[_0x3dec4e(0x301)][_0x3dec4e(0x383)](_0x212f71,_0x46ebb0=>(_0x47b45f['dispose'](),_0x432b47(_0x46ebb0,_0x4f89b7,_0x2f2b97,_0x212f71)));_0x409ba3[_0x3dec4e(0x2cc)](_0x47b45f);});}return{'redos':[],'undos':[]};};this[_0x2eeab2(0x2fb)][_0x2eeab2(0x392)]((_0x4fd9ba,_0x27ef8b)=>{const _0x5b465e=_0x2eeab2,{range:_0x50af4d,sheetID:_0x33ada0}=_0x4fd9ba,_0x2ea02d=this['_refRangeService']['registerRefRange'](_0x50af4d,_0x5d6b1d=>(_0x2ea02d['dispose'](),_0x432b47(_0x5d6b1d,_0x27ef8b,_0x33ada0,_0x50af4d)));_0x409ba3[_0x5b465e(0x2cc)](_0x2ea02d);});};this[_0xe34acf(0x165)](a[_0xe34acf(0x352)](this[_0xe34acf(0x34f)]['subscribe'](()=>{_0x3adfda();})));}['_toggleOnline'](){const _0x4f5b81=_0x5b92c2;var _0x1a4411,_0x4ddffd;if(this[_0x4f5b81(0x226)]=!0x0,((_0x1a4411=this[_0x4f5b81(0x230)][_0x4f5b81(0x1a4)]())==null?void 0x0:_0x1a4411['getUnitId']())!==this[_0x4f5b81(0x367)])return;const _0x74625=(_0x4ddffd=this[_0x4f5b81(0x1ce)][_0x4f5b81(0x261)](I[_0x4f5b81(0x16b)])[_0x4f5b81(0x271)]())==null?void 0x0:_0x4ddffd[0x0],_0x59e52e=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x4f5b81(0x327)][_0x4f5b81(0x247)])[_0x4f5b81(0x391)]();_0x74625&&_0x59e52e&&this[_0x4f5b81(0x18f)](_0x59e52e[_0x4f5b81(0x2f0)](),_0x74625);}[_0x5b92c2(0x394)](){const _0x333309=_0x5b92c2;this[_0x333309(0x226)]=!0x1;}};ve=it([y(0x2,a['Inject'](a['Injector'])),y(0x3,a[_0x5b92c2(0x23e)](Ce)),y(0x4,a['Inject'](u[_0x5b92c2(0x2be)])),y(0x5,a[_0x5b92c2(0x305)]),y(0x6,a['ICommandService']),y(0x7,a[_0x5b92c2(0x23e)](I[_0x5b92c2(0x2e1)]))],ve);var ct=Object[_0x5b92c2(0x255)],lt=(_0x26380b,_0x2d3553,_0xafc5c6,_0x3fcbb2)=>{const _0x3e2296=_0x5b92c2;for(var _0x5c33ca=_0x3fcbb2>0x1?void 0x0:_0x3fcbb2?ct(_0x2d3553,_0xafc5c6):_0x2d3553,_0x4a7b3e=_0x26380b[_0x3e2296(0x19f)]-0x1,_0x49f4fe;_0x4a7b3e>=0x0;_0x4a7b3e--)(_0x49f4fe=_0x26380b[_0x4a7b3e])&&(_0x5c33ca=_0x49f4fe(_0x5c33ca)||_0x5c33ca);return _0x5c33ca;},ie=(_0x2bf4c4,_0x5dc0f7)=>(_0x24c0d4,_0x2111f4)=>_0x5dc0f7(_0x24c0d4,_0x2111f4,_0x2bf4c4);let x=class extends a[_0x5b92c2(0x210)]{constructor(_0x618b62,_0x471ed5,_0x214697){const _0x28fd42=_0x5b92c2;super(),h(this,'_entities',new Map()),h(this,_0x28fd42(0x3b0),new d[(_0x28fd42(0x228))]()),(this[_0x28fd42(0x230)]=_0x618b62,this[_0x28fd42(0x1ce)]=_0x471ed5,this['_collabSessionService']=_0x214697,this[_0x28fd42(0x182)]());}[_0x5b92c2(0x241)](){const _0x4a3168=_0x5b92c2;super[_0x4a3168(0x241)](),this['_entityInit$'][_0x4a3168(0x145)](),this[_0x4a3168(0x3a3)][_0x4a3168(0x392)](_0x10f671=>_0x10f671[_0x4a3168(0x241)]());}[_0x5b92c2(0x32c)](_0x315961){const _0x529f56=_0x5b92c2;return this['_entities'][_0x529f56(0x2f4)](_0x315961)?this['_entities'][_0x529f56(0x261)](_0x315961)[_0x529f56(0x306)]:this[_0x529f56(0x3b0)]['pipe'](d[_0x529f56(0x32b)](_0x3e434f=>_0x3e434f[_0x529f56(0x367)]===_0x315961),d[_0x529f56(0x3b2)](_0x216175=>_0x216175[_0x529f56(0x306)]));}[_0x5b92c2(0x182)](){const _0x32dbbb=_0x5b92c2;this[_0x32dbbb(0x230)][_0x32dbbb(0x2d7)](a['UniverInstanceType'][_0x32dbbb(0x247)])[_0x32dbbb(0x349)](d[_0x32dbbb(0x35b)](this['dispose$']))[_0x32dbbb(0x337)](async _0x3f13cc=>{const _0x27523f=_0x32dbbb,_0x23d3f9=_0x3f13cc[_0x27523f(0x1bb)](),_0x187b39=await this[_0x27523f(0x332)](_0x23d3f9);this[_0x27523f(0x3b0)][_0x27523f(0x2ee)](_0x187b39),this[_0x27523f(0x3a3)][_0x27523f(0x2b1)](_0x23d3f9,_0x187b39);}),this[_0x32dbbb(0x230)]['getTypeOfUnitAdded$'](a[_0x32dbbb(0x327)][_0x32dbbb(0x1b3)])[_0x32dbbb(0x349)](d['takeUntil'](this['dispose$']))['pipe'](d[_0x32dbbb(0x32b)](_0x589a2a=>!_0x589a2a[_0x32dbbb(0x1bb)]()[_0x32dbbb(0x2f8)]('__')))[_0x32dbbb(0x337)](async _0xd1c1b9=>{const _0x35ec32=_0x32dbbb,_0x5dfc0d=_0xd1c1b9[_0x35ec32(0x1bb)](),_0x57a3aa=await this[_0x35ec32(0x235)](_0x5dfc0d);this[_0x35ec32(0x3b0)][_0x35ec32(0x2ee)](_0x57a3aa),this['_entities'][_0x35ec32(0x2b1)](_0x5dfc0d,_0x57a3aa);}),d[_0x32dbbb(0x205)](this[_0x32dbbb(0x230)]['getTypeOfUnitDisposed$'](a[_0x32dbbb(0x327)][_0x32dbbb(0x1b3)]),this[_0x32dbbb(0x230)][_0x32dbbb(0x2b6)](a[_0x32dbbb(0x327)][_0x32dbbb(0x247)]))[_0x32dbbb(0x349)](d['takeUntil'](this[_0x32dbbb(0x15a)]))[_0x32dbbb(0x337)](_0x27c5b4=>{const _0x10faa6=_0x32dbbb,_0x4d760a=_0x27c5b4[_0x10faa6(0x1bb)](),_0x3bdcb8=this[_0x10faa6(0x3a3)][_0x10faa6(0x261)](_0x4d760a);_0x3bdcb8&&(_0x3bdcb8[_0x10faa6(0x241)](),this[_0x10faa6(0x3a3)][_0x10faa6(0x343)](_0x4d760a));});}async[_0x5b92c2(0x332)](_0x4e8518){const _0x2ab9d8=_0x5b92c2,_0x29a275=await this['_collabSessionService'][_0x2ab9d8(0x325)](_0x4e8518),_0x58e24c=this[_0x2ab9d8(0x1ce)][_0x2ab9d8(0x339)](ve,_0x4e8518,_0x29a275);return _0x58e24c[_0x2ab9d8(0x25b)](),_0x58e24c;}async[_0x5b92c2(0x235)](_0x4dba31){const _0x2145c7=_0x5b92c2,_0x46dc0e=await this[_0x2145c7(0x2d1)]['requireSession'](_0x4dba31),_0x5b5201=this[_0x2145c7(0x1ce)][_0x2145c7(0x339)](Se,_0x4dba31,_0x46dc0e);return _0x5b5201[_0x2145c7(0x25b)](),_0x5b5201;}};x=lt([ie(0x0,a[_0x5b92c2(0x305)]),ie(0x1,a['Inject'](a[_0x5b92c2(0x2d5)])),ie(0x2,a[_0x5b92c2(0x23e)](u[_0x5b92c2(0x1bf)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x2adb5e,_0x9b9cd1){const _0x59158d=_0x5b92c2;let {radius:_0x19942e,width:_0x3911c6,height:_0x25cc08}=_0x9b9cd1;_0x19942e=_0x19942e!=null?_0x19942e:0x0,_0x3911c6=_0x3911c6!=null?_0x3911c6:0x1e,_0x25cc08=_0x25cc08!=null?_0x25cc08:0x1e;let _0x43edfb=0x0,_0x36d9c1=0x0,_0x8e0a76=0x0;_0x43edfb=_0x36d9c1=_0x8e0a76=Math[_0x59158d(0x1fa)](_0x19942e,_0x3911c6/0x2,_0x25cc08/0x2),_0x2adb5e[_0x59158d(0x17f)](),_0x2adb5e[_0x59158d(0x1f8)](_0x43edfb,0x0),_0x2adb5e[_0x59158d(0x333)](_0x3911c6-_0x36d9c1,0x0),_0x2adb5e['arc'](_0x3911c6-_0x36d9c1,_0x36d9c1,_0x36d9c1,Math['PI']*0x3/0x2,0x0,!0x1),_0x2adb5e[_0x59158d(0x333)](_0x3911c6,_0x25cc08-_0x8e0a76),_0x2adb5e[_0x59158d(0x2dd)](_0x3911c6-_0x8e0a76,_0x25cc08-_0x8e0a76,_0x8e0a76,0x0,Math['PI']/0x2,!0x1),_0x2adb5e[_0x59158d(0x333)](0x0,_0x25cc08),_0x2adb5e[_0x59158d(0x333)](0x0,_0x43edfb),_0x2adb5e[_0x59158d(0x2dd)](_0x43edfb,_0x43edfb,_0x43edfb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2adb5e[_0x59158d(0x366)](),_0x9b9cd1['fill']&&(_0x2adb5e[_0x59158d(0x309)](),_0x2adb5e[_0x59158d(0x1dd)]=_0x9b9cd1[_0x59158d(0x176)],_0x9b9cd1[_0x59158d(0x25f)]===_0x59158d(0x178)?_0x2adb5e[_0x59158d(0x176)](_0x59158d(0x178)):_0x2adb5e[_0x59158d(0x176)](),_0x2adb5e[_0x59158d(0x1c7)]());}class te extends p[_0x5b92c2(0x395)]{constructor(_0x5c161e,_0x40a305){const _0x4e7063=_0x5b92c2;super(_0x5c161e,_0x40a305),h(this,'color'),h(this,_0x4e7063(0x1c1)),(this[_0x4e7063(0x398)]=_0x40a305==null?void 0x0:_0x40a305[_0x4e7063(0x398)],this[_0x4e7063(0x1c1)]=_0x40a305==null?void 0x0:_0x40a305[_0x4e7063(0x1c1)]);}static[_0x5b92c2(0x19e)](_0x4ca4ed,_0x552a3c){const _0x243aca=_0x5b92c2,{text:_0x50772f,color:_0x1bce6b}=_0x552a3c;_0x4ca4ed[_0x243aca(0x309)](),_0x4ca4ed['font']=_0x243aca(0x2e7);const _0x365f60=_0x4ca4ed[_0x243aca(0x224)](_0x50772f)[_0x243aca(0x1c8)],_0x574e13=Math['min'](_0x365f60+0x2*re,De);_t(_0x4ca4ed,{'height':K,'radius':0x4,'width':_0x574e13,'fill':_0x1bce6b}),_0x4ca4ed[_0x243aca(0x1dd)]=_0x243aca(0x26f);const _0x601365=re,_0x244f3a=K-ht,_0x505a8a=De-0x2*re;if(_0x365f60>_0x505a8a){let _0x1402ac='',_0x5c2f6e=0x0;for(const _0x372e51 of _0x50772f){const _0x1f7d9a=_0x4ca4ed[_0x243aca(0x224)](_0x372e51)[_0x243aca(0x1c8)];if(_0x5c2f6e+_0x1f7d9a<=_0x505a8a-_0x4ca4ed[_0x243aca(0x224)](_0x243aca(0x213))[_0x243aca(0x1c8)])_0x1402ac+=_0x372e51,_0x5c2f6e+=_0x1f7d9a;else{_0x1402ac+=_0x243aca(0x213);break;}}_0x4ca4ed[_0x243aca(0x196)](_0x1402ac,_0x601365,_0x244f3a);}else _0x4ca4ed[_0x243aca(0x196)](_0x50772f,_0x601365,_0x244f3a);_0x4ca4ed[_0x243aca(0x1c7)]();}[_0x5b92c2(0x2b7)](_0x2a223d){const _0x407c0e=_0x5b92c2;te[_0x407c0e(0x19e)](_0x2a223d,this);}}const oe=_0x5b92c2(0x30d),ut='collab-text-range-',dt=_0x5b92c2(0x30f),B=0x6,ft=1.5,ae=0x4,St=1.5,vt=_0x5b92c2(0x27a);class Ue{constructor(_0x3c4cfe,_0x480dd2,_0x304587,_0x18790e){const _0x2134b6=_0x5b92c2;h(this,_0x2134b6(0x315),[]),h(this,_0x2134b6(0x2d0),null),h(this,_0x2134b6(0x233),null),h(this,_0x2134b6(0x2e2),null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this[_0x2134b6(0x32f)]=_0x3c4cfe,this['_scene']=_0x480dd2,this[_0x2134b6(0x2da)]=_0x304587,this['_document']=_0x18790e,this[_0x2134b6(0x17b)]());}set['_hover'](_0x3e3888){const _0x41809d=_0x5b92c2;_0x3e3888?(this[_0x41809d(0x2e2)]&&this[_0x41809d(0x2e2)][_0x41809d(0x26a)](),this[_0x41809d(0x233)]&&this['_textBubble'][_0x41809d(0x282)]()):(this[_0x41809d(0x2e2)]&&this[_0x41809d(0x2e2)]['show'](),this[_0x41809d(0x233)]&&this[_0x41809d(0x233)][_0x41809d(0x26a)]());}['dispose'](){const _0x3d11cf=_0x5b92c2;for(const _0x8f26be of this['_shapes'])_0x8f26be[_0x3d11cf(0x241)]();this[_0x3d11cf(0x233)]&&this[_0x3d11cf(0x233)][_0x3d11cf(0x241)](),this[_0x3d11cf(0x2e2)]&&this['_anchorDot'][_0x3d11cf(0x241)](),this[_0x3d11cf(0x2d0)]&&this[_0x3d11cf(0x2d0)][_0x3d11cf(0x241)](),this[_0x3d11cf(0x37a)]&&this[_0x3d11cf(0x37a)]();}[_0x5b92c2(0x17b)](){const _0x418c44=_0x5b92c2;var _0x42d69f;const {_docSkeleton:_0x153b4a,_document:_0x4e002f}=this,{color:_0x3406d1,name:_0x2c3cbd,ranges:_0xd3f4be}=this[_0x418c44(0x32f)],_0x2550ac=_0x4e002f[_0x418c44(0x2dc)](),{docsLeft:_0x5aafa5,docsTop:_0x5e3fc9}=_0x2550ac,_0x459031=new b[(_0x418c44(0x200))](_0x2550ac,_0x153b4a);for(const {startOffset:_0x15adef,endOffset:_0x882986,rangeType:_0x2eacce,segmentId:_0x553674,segmentPage:_0x135c35,collapsed:_0x18df18,isActive:_0x4770d2}of _0xd3f4be){const _0x27fd7a=_0x153b4a[_0x418c44(0x37c)](_0x15adef,!0x0,_0x553674,_0x135c35);let _0x2f1110=_0x153b4a[_0x418c44(0x37c)](_0x882986,!0x0,_0x553674,_0x135c35);if(_0x2f1110==null&&(_0x2f1110=_0x153b4a[_0x418c44(0x37c)](_0x882986-0x1,!0x1,_0x553674,_0x135c35)),_0x4770d2){const {contentBoxPointGroup:_0x3dc7a7}=_0x459031['getRangePointData'](_0x2f1110,_0x2f1110);if(_0x3dc7a7[_0x418c44(0x19f)]===0x0)continue;this['_drawAnchor'](_0x3406d1,_0x3dc7a7,_0x5aafa5,_0x5e3fc9,_0x2c3cbd),this[_0x418c44(0x37a)]=this['_handleHover']();}if(_0x27fd7a&&_0x2f1110){if(_0x2eacce===a[_0x418c44(0x19a)][_0x418c44(0x277)]){const _0x340ebf=new b[(_0x418c44(0x347))](_0x2550ac,_0x153b4a),{pointGroup:_0x428776}=(_0x42d69f=_0x340ebf[_0x418c44(0x159)](_0x27fd7a,_0x2f1110))!=null?_0x42d69f:{};if(_0x428776==null||_0x428776[_0x418c44(0x19f)]===0x0)continue;this[_0x418c44(0x283)](_0x3406d1,_0x428776,_0x5aafa5,_0x5e3fc9);}else{if(!_0x18df18){const {borderBoxPointGroup:_0x22efd2}=_0x459031[_0x418c44(0x159)](_0x27fd7a,_0x2f1110);if(_0x22efd2[_0x418c44(0x19f)]===0x0)continue;this[_0x418c44(0x253)](_0x3406d1,_0x22efd2,_0x5aafa5,_0x5e3fc9);}}}}}[_0x5b92c2(0x20f)](_0x3a3d3e,_0x5b81b4,_0x3776f6,_0x517e42,_0x584604){const _0x2a0b11=_0x5b92c2,_0x207a73=this[_0x2a0b11(0x3c9)](_0x5b81b4),{left:_0x8b7c06,top:_0x2df78f,height:_0x19b73f}=_0x207a73,_0x469fb9=this[_0x2a0b11(0x341)](),_0x6b50a8=St/_0x469fb9,_0x1ad6c2=new p[(_0x2a0b11(0x24f))](oe+a['Tools']['generateRandomId'](B),{'left':_0x8b7c06+_0x3776f6-_0x6b50a8,'top':_0x2df78f+_0x517e42,'height':_0x19b73f,'width':ft,'fill':_0x3a3d3e||p[_0x2a0b11(0x21b)](a['COLORS'][_0x2a0b11(0x331)],0x0),'strokeWidth':_0x6b50a8,'stroke':vt,'evented':!0x0});this[_0x2a0b11(0x2d0)]=_0x1ad6c2,this[_0x2a0b11(0x273)]['addObject'](_0x1ad6c2,b[_0x2a0b11(0x323)]);const _0x494979=new p['Rect'](oe+a[_0x2a0b11(0x202)][_0x2a0b11(0x27b)](B),{'left':_0x8b7c06+_0x3776f6-_0x6b50a8,'top':_0x2df78f+_0x517e42-ae/0x2,'height':ae,'width':ae,'fill':_0x3a3d3e||p[_0x2a0b11(0x21b)](a[_0x2a0b11(0x396)][_0x2a0b11(0x331)],0x0),'strokeWidth':0x0,'stroke':_0x3a3d3e||p[_0x2a0b11(0x21b)](a[_0x2a0b11(0x396)]['black'],0x0),'evented':!0x1});this[_0x2a0b11(0x2e2)]=_0x494979,this['_scene'][_0x2a0b11(0x17a)](_0x494979,b['TEXT_RANGE_LAYER_INDEX']);const _0x59865c=new te(oe+a['Tools'][_0x2a0b11(0x27b)](B),{'left':_0x8b7c06+_0x3776f6-_0x6b50a8,'top':_0x2df78f+_0x517e42-K,'text':_0x584604,'color':_0x3a3d3e});this[_0x2a0b11(0x233)]=_0x59865c,this['_scene'][_0x2a0b11(0x17a)](_0x59865c,b[_0x2a0b11(0x323)]),this[_0x2a0b11(0x3bb)]=!0x1;}['_handleHover'](){const _0x5a9d7a=_0x5b92c2,_0x2bcb33=this[_0x5a9d7a(0x2d0)]['onPointerEnter$'][_0x5a9d7a(0x187)](()=>{const _0x2484d5=_0x5a9d7a;this[_0x2484d5(0x3bb)]=!0x0;}),_0x21c87f=this[_0x5a9d7a(0x2d0)][_0x5a9d7a(0x1ee)][_0x5a9d7a(0x187)](()=>{const _0xf2b36a=_0x5a9d7a;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0xf2b36a(0x276)]=setTimeout(()=>{const _0x11f0de=_0xf2b36a;this[_0x11f0de(0x3bb)]=!0x1;},0x7d0);});return()=>{const _0x34ca3d=_0x5a9d7a;_0x2bcb33[_0x34ca3d(0x27d)](),_0x21c87f[_0x34ca3d(0x27d)]();};}[_0x5b92c2(0x253)](_0x54a53b,_0x5c9bfc,_0x4c63ad,_0x4d6223){const _0x161553=_0x5b92c2,_0x138de0=new a['ColorKit'](_0x54a53b)[_0x161553(0x33d)](0.2)[_0x161553(0x3ba)](),_0x48155f=new p[(_0x161553(0x368))](ut+a[_0x161553(0x202)]['generateRandomId'](B),{'pointsGroup':_0x5c9bfc,'fill':_0x138de0||p['getColor'](a[_0x161553(0x396)][_0x161553(0x331)],0.2),'left':_0x4c63ad,'top':_0x4d6223,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x161553(0x315)][_0x161553(0x314)](_0x48155f),this[_0x161553(0x273)]['addObject'](_0x48155f,b[_0x161553(0x323)]);}[_0x5b92c2(0x283)](_0x5397fa,_0x10784e,_0xb57ed7,_0x3107c2){const _0xeb7bb2=_0x5b92c2,_0x44770f=new a[(_0xeb7bb2(0x326))](_0x5397fa)[_0xeb7bb2(0x33d)](0.2)['toRgbString'](),_0xb11d61=new p['RegularPolygon'](dt+a[_0xeb7bb2(0x202)][_0xeb7bb2(0x27b)](B),{'pointsGroup':_0x10784e,'fill':_0x44770f||p['getColor'](a[_0xeb7bb2(0x396)]['black'],0.2),'left':_0xb57ed7,'top':_0x3107c2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xeb7bb2(0x315)][_0xeb7bb2(0x314)](_0xb11d61),this[_0xeb7bb2(0x273)][_0xeb7bb2(0x17a)](_0xb11d61,b[_0xeb7bb2(0x323)]);}[_0x5b92c2(0x3c9)](_0x4977f8){const _0x27c128=_0x4977f8[0x0],_0x5878c9=_0x27c128[0x0],_0x537f28=_0x27c128[0x2],{x:_0xf26553,y:_0x23cc9d}=_0x5878c9,{x:_0x27fdab,y:_0x466870}=_0x537f28;return{'left':_0xf26553,'top':_0x23cc9d,'width':_0x27fdab-_0xf26553,'height':_0x466870-_0x23cc9d};}[_0x5b92c2(0x341)](){const _0x5e2e0d=_0x5b92c2,{scaleX:_0x5c1673,scaleY:_0x51aebd}=this[_0x5e2e0d(0x273)]['getAncestorScale']();return Math['max'](_0x5c1673,_0x51aebd);}}var gt=Object[_0x5b92c2(0x255)],It=(_0x2d2cc9,_0x378ba3,_0x1704b5,_0x2d066b)=>{const _0x4f2e21=_0x5b92c2;for(var _0x755275=_0x2d066b>0x1?void 0x0:_0x2d066b?gt(_0x378ba3,_0x1704b5):_0x378ba3,_0x1e6b61=_0x2d2cc9[_0x4f2e21(0x19f)]-0x1,_0x5b9083;_0x1e6b61>=0x0;_0x1e6b61--)(_0x5b9083=_0x2d2cc9[_0x1e6b61])&&(_0x755275=_0x5b9083(_0x755275)||_0x755275);return _0x755275;},X=(_0x23e58f,_0x340bc8)=>(_0x5b55f3,_0x4c6e60)=>_0x340bc8(_0x5b55f3,_0x4c6e60,_0x23e58f);let ge=class extends a['RxDisposable']{constructor(_0x4cb17a,_0x11aadf,_0x23f902,_0x1e6254,_0x5ed926){const _0x30ce08=_0x5b92c2;super(),h(this,_0x30ce08(0x3b5),[]),h(this,_0x30ce08(0x353),[]),(this['_context']=_0x4cb17a,this[_0x30ce08(0x1a8)]=_0x11aadf,this[_0x30ce08(0x38d)]=_0x23f902,this[_0x30ce08(0x1cc)]=_0x1e6254,this[_0x30ce08(0x2b5)]=_0x5ed926,this[_0x30ce08(0x182)]());}[_0x5b92c2(0x182)](){const _0x5ef2de=_0x5b92c2,_0x392b81=this['_context'][_0x5ef2de(0x299)],_0x378307=this[_0x5ef2de(0x1a8)];this['disposeWithMe'](d['combineLatest']([this[_0x5ef2de(0x38d)][_0x5ef2de(0x32c)](_0x392b81),this[_0x5ef2de(0x2b5)][_0x5ef2de(0x38f)]])[_0x5ef2de(0x349)]($[_0x5ef2de(0x22d)](([_0x520292,_0xe9b217])=>({'skeleton':_0x378307[_0x5ef2de(0x1a5)](),'cursors':[..._0x520292[_0x5ef2de(0x2b0)]()][_0x5ef2de(0x307)](_0x54f0d6=>({..._0x54f0d6,'color':_0xe9b217[_0x54f0d6[_0x5ef2de(0x398)]]}))})))[_0x5ef2de(0x337)](_0x2d0cf4=>{const _0x13e435=_0x5ef2de;if(this[_0x13e435(0x1b1)](),_0x2d0cf4){const {skeleton:_0x4e3be2,cursors:_0xedddf0}=_0x2d0cf4;this[_0x13e435(0x2aa)](_0x4e3be2,_0xedddf0);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x5b92c2(0x2aa)](_0x33bf7c,_0x4db53c){const _0x11f6a6=_0x5b92c2,{scene:_0x5aa0ed,mainComponent:_0x57477a}=this[_0x11f6a6(0x37b)],_0x343f03=_0x4db53c['map'](_0x27a82e=>new Ue(_0x27a82e,_0x5aa0ed,_0x33bf7c,_0x57477a));this[_0x11f6a6(0x3b5)]=_0x343f03,this[_0x11f6a6(0x353)]=_0x4db53c;}['_refreshCollabCursors'](){const _0x30e896=_0x5b92c2;this[_0x30e896(0x1b1)]();const {scene:_0x1d061e,mainComponent:_0x371d7e}=this[_0x30e896(0x37b)],_0x14a7b4=this['_docSkeletonManagerService'][_0x30e896(0x1a5)](),_0x301f0e=this[_0x30e896(0x353)][_0x30e896(0x22d)](_0x44b507=>new Ue(_0x44b507,_0x1d061e,_0x14a7b4,_0x371d7e));this[_0x30e896(0x3b5)]=_0x301f0e;}[_0x5b92c2(0x1b1)](){const _0x2c78d2=_0x5b92c2;this[_0x2c78d2(0x3b5)][_0x2c78d2(0x392)](_0xf5e71f=>_0xf5e71f[_0x2c78d2(0x241)]()),this[_0x2c78d2(0x3b5)]=[];}['_initCommandExecutedListener'](){const _0x486884=_0x5b92c2,_0x237480=[b[_0x486884(0x14c)]['id']];this[_0x486884(0x165)](this['_commandService'][_0x486884(0x329)](_0x1b4688=>{const _0x2022a6=_0x486884;_0x237480[_0x2022a6(0x31b)](_0x1b4688['id'])&&_0x1b4688['params'][_0x2022a6(0x299)]===this[_0x2022a6(0x37b)]['unitId']&&this[_0x2022a6(0x290)]();}));}[_0x5b92c2(0x3a6)](){const _0x532725=_0x5b92c2;this[_0x532725(0x165)](a['fromEventSubject'](this['_context']['engine'][_0x532725(0x1e8)])[_0x532725(0x349)]($[_0x532725(0x32b)](_0x2a4f8f=>_0x2a4f8f[_0x532725(0x2ca)]===p[_0x532725(0x2b8)]['resize']),$['throttleTime'](0x10))[_0x532725(0x337)](()=>{this['_refreshCollabCursors']();}));}};ge=It([X(0x1,a[_0x5b92c2(0x23e)](Y[_0x5b92c2(0x201)])),X(0x2,a[_0x5b92c2(0x23e)](x)),X(0x3,a[_0x5b92c2(0x1f4)]),X(0x4,a['Inject'](a[_0x5b92c2(0x320)]))],ge);const mt=0x1,Ct=1.5;class ye extends p['Shape']{constructor(_0x54e234,_0x54b4cc){const _0x4601da=_0x5b92c2;super(_0x54e234,_0x54b4cc),h(this,'_color'),h(this,_0x4601da(0x189),!0x1),h(this,'_range'),h(this,_0x4601da(0x3b9),''),h(this,'_labelPosition',_0x4601da(0x167)),h(this,_0x4601da(0x1ac)),(_0x54b4cc&&this[_0x4601da(0x2ae)](_0x54b4cc),this['onPointerEnter$'][_0x4601da(0x187)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4601da(0x1ee)][_0x4601da(0x187)](()=>this[_0x4601da(0x2ae)]({'hovered':!0x1})));}[_0x5b92c2(0x2ae)](_0x5e7c2a){const _0x37d7c3=_0x5b92c2;var _0x479f5e,_0x2a3870,_0x3b3090,_0x6d3a86,_0x33eea8,_0x460120;this[_0x37d7c3(0x36f)]=(_0x479f5e=_0x5e7c2a[_0x37d7c3(0x398)])!=null?_0x479f5e:this[_0x37d7c3(0x36f)],this[_0x37d7c3(0x189)]=(_0x2a3870=_0x5e7c2a['hovered'])!=null?_0x2a3870:this['_hovered'],this[_0x37d7c3(0x1c9)]=(_0x3b3090=_0x5e7c2a[_0x37d7c3(0x254)])!=null?_0x3b3090:this[_0x37d7c3(0x1c9)],this[_0x37d7c3(0x3b9)]=(_0x6d3a86=_0x5e7c2a[_0x37d7c3(0x29e)])!=null?_0x6d3a86:this['_name'],this[_0x37d7c3(0x229)]=(_0x33eea8=_0x5e7c2a[_0x37d7c3(0x256)])!=null?_0x33eea8:this[_0x37d7c3(0x229)],this['_backgroundColor']=(_0x460120=_0x5e7c2a[_0x37d7c3(0x3ab)])!=null?_0x460120:this['_backgroundColor'],this[_0x37d7c3(0x2e6)]({'width':_0x5e7c2a[_0x37d7c3(0x1c8)],'height':_0x5e7c2a['height']});}[_0x5b92c2(0x3a9)](_0x505a67){const _0x37463f=_0x5b92c2,{row:_0x1c71c1,column:_0x503d98}=_0x505a67;if(_0x1c71c1>=this['_range'][_0x37463f(0x375)]&&_0x1c71c1<=this[_0x37463f(0x1c9)]['endRow']&&_0x503d98>=this[_0x37463f(0x1c9)]['startColumn']&&_0x503d98<=this['_range']['endColumn']){this[_0x37463f(0x2ae)]({'hovered':!0x0});return;}this[_0x37463f(0x2ae)]({'hovered':!0x1});}[_0x5b92c2(0x3bd)](_0x3ce112){return!0x1;}['_draw'](_0x227113){const _0x3eb652=_0x5b92c2;p[_0x3eb652(0x24f)][_0x3eb652(0x19e)](_0x227113,{'width':this['width'],'height':this[_0x3eb652(0x21a)],'strokeWidth':Ct,'stroke':this[_0x3eb652(0x36f)],'evented':!0x1,'fill':this[_0x3eb652(0x1ac)]}),this[_0x3eb652(0x189)]&&(_0x227113['save'](),_0x227113[_0x3eb652(0x36a)](0x1,0x0,0x0,0x1,this[_0x3eb652(0x1c8)],this['_labelPosition']==='bottom'?0x0:-0x14),te[_0x3eb652(0x19e)](_0x227113,{'text':this[_0x3eb652(0x3b9)],'color':this['_color']}),_0x227113['restore']());}}var pt=Object[_0x5b92c2(0x255)],bt=(_0x4cae34,_0x35722f,_0xb1dc71,_0x55f70c)=>{for(var _0x5be8a7=_0x55f70c>0x1?void 0x0:_0x55f70c?pt(_0x35722f,_0xb1dc71):_0x35722f,_0x4aa3eb=_0x4cae34['length']-0x1,_0xcc4f8;_0x4aa3eb>=0x0;_0x4aa3eb--)(_0xcc4f8=_0x4cae34[_0x4aa3eb])&&(_0x5be8a7=_0xcc4f8(_0x5be8a7)||_0x5be8a7);return _0x5be8a7;},ce=(_0x296949,_0x422610)=>(_0x4ce967,_0x1c57cf)=>_0x422610(_0x4ce967,_0x1c57cf,_0x296949);const Et=0x1389;let Ie=class extends a[_0x5b92c2(0x210)]{constructor(_0x4cd1ae,_0x1828a8,_0x12c0e5,_0x21a8c4){const _0x1ab505=_0x5b92c2;super(),h(this,_0x1ab505(0x353),new Set()),h(this,_0x1ab505(0x265),null),(this['_context']=_0x4cd1ae,this[_0x1ab505(0x313)]=_0x1828a8,this['_collabCursorController']=_0x12c0e5,this[_0x1ab505(0x2b5)]=_0x21a8c4,this['_init']());}['_init'](){const _0x2a83be=_0x5b92c2;this['_sheetSkeletonManagerService'][_0x2a83be(0x34b)][_0x2a83be(0x349)]($[_0x2a83be(0x35b)](this[_0x2a83be(0x15a)]),$[_0x2a83be(0x3b2)](_0x556896=>{const _0x360c42=_0x2a83be;if(_0x556896){const _0x1e7292=_0x556896[_0x360c42(0x194)];return d['combineLatest'](this[_0x360c42(0x38d)][_0x360c42(0x32c)](this[_0x360c42(0x37b)][_0x360c42(0x299)]),this[_0x360c42(0x2b5)][_0x360c42(0x38f)])[_0x360c42(0x349)]($['map'](([_0x1f239a,_0x2319b2])=>{const _0x4013d9=_0x360c42,_0x3169ea=new Map();return _0x1f239a[_0x4013d9(0x392)]((_0x40f017,_0x36bd9f)=>{const _0x2245c8=_0x4013d9;if(_0x40f017['sheetID']===_0x1e7292){const _0x2da201={..._0x40f017};_0x2da201[_0x2245c8(0x398)]=_0x2319b2[_0x40f017['color']],_0x3169ea['set'](_0x36bd9f,_0x2da201);}}),{'skeleton':_0x556896,'cursors':_0x3169ea};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4be5d5,cursors:_0x8fabbc})=>{const _0x24dd73=_0x2a83be;this[_0x24dd73(0x1b1)](),_0x4be5d5&&this[_0x24dd73(0x2aa)](_0x4be5d5,_0x8fabbc);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x5e65b2=>{const _0x32b51d=_0x2a83be;if(_0x5e65b2==null)return;const {skeleton:_0x2bdbac}=_0x5e65b2,{scene:_0x20cca0}=this['_context'];_0x20cca0[_0x32b51d(0x374)][_0x32b51d(0x187)](a[_0x32b51d(0x31d)](_0x2e3c9e=>{const _0x4dedde=_0x32b51d;var _0x397b8c,_0x23be4f;const {offsetX:_0x2767b1,offsetY:_0x260904}=_0x2e3c9e,{x:_0x3ba8ee,y:_0x2619c9}=_0x20cca0[_0x4dedde(0x14d)](p[_0x4dedde(0x2e8)][_0x4dedde(0x1ba)]([_0x2767b1,_0x260904])),{scaleX:_0xfbe329,scaleY:_0x434a75}=_0x20cca0[_0x4dedde(0x21d)](),_0x2eb954=_0x20cca0['getViewport'](p[_0x4dedde(0x17e)]['VIEW_MAIN']),_0x1bde10=_0x20cca0[_0x4dedde(0x27e)](p['Vector2'][_0x4dedde(0x1ba)]([_0x3ba8ee,_0x2619c9]),_0x2eb954),_0x580902=_0x2bdbac[_0x4dedde(0x393)](_0x2767b1,_0x260904,_0xfbe329,_0x434a75,_0x1bde10);((_0x397b8c=this['_lastPointer'])==null?void 0x0:_0x397b8c['column'])===_0x580902[_0x4dedde(0x222)]&&((_0x23be4f=this[_0x4dedde(0x265)])==null?void 0x0:_0x23be4f[_0x4dedde(0x1d7)])===_0x580902[_0x4dedde(0x1d7)]||this['_cursors']['forEach'](_0x2a682e=>{_0x2a682e['onMouseMove'](_0x580902);});},0x64));});}[_0x5b92c2(0x2aa)](_0x4378c7,_0x4a491b){const _0x1f0968=_0x5b92c2;var _0x796120;const _0x13cc53=(_0x796120=this[_0x1f0968(0x313)][_0x1f0968(0x149)]())==null?void 0x0:_0x796120[_0x1f0968(0x3b8)];if(!_0x13cc53)return;const _0x5f5779=this[_0x1f0968(0x35f)]();if(!_0x5f5779)return;this[_0x1f0968(0x353)][_0x1f0968(0x392)](_0x50410b=>{_0x50410b['makeDirty']();});const {scene:_0x395c1c}=_0x5f5779,_0x44877b=Tt(Array[_0x1f0968(0x33a)](_0x4a491b['values']()))[_0x1f0968(0x22d)](_0x421bb9=>{const _0x479f4f=_0x1f0968,{color:_0x10fd1e,range:_0x30665a,name:_0x4a0b06,selection:_0x253ff3,sheetID:_0x1e921c}=_0x421bb9,{startColumn:_0x19fbad,startRow:_0x13a35b,endColumn:_0x46ddd1,endRow:_0x142020}=_0x30665a,_0xf25d20=G['getCoordByCell'](_0x13a35b,_0x19fbad,_0x395c1c,_0x13cc53),_0x40160c=G[_0x479f4f(0x1c3)](_0x142020,_0x46ddd1,_0x395c1c,_0x13cc53),{columnHeaderHeightAndMarginTop:_0xf9a4c5}=_0x13cc53,{startX:_0x531017,startY:_0x1d9616}=_0xf25d20,{endX:_0x886db7,endY:_0x46fd18}=_0x40160c,_0x40b328=_0x886db7-_0x531017,_0x202650=_0x46fd18-_0x1d9616,_0x40b6ee={'labelPosition':_0x1d9616-_0xf9a4c5>=K?_0x479f4f(0x167):'bottom','sheetID':_0x1e921c,'range':_0x30665a,'color':_0x10fd1e,'name':_0x4a0b06,'selection':_0x253ff3,'left':_0x531017,'top':_0x1d9616,'width':_0x40b328,'height':_0x202650,'evented':!0x1,'zIndex':Et};return new ye(_0x4a0b06,_0x40b6ee);});_0x395c1c[_0x1f0968(0x3a5)](_0x44877b,mt),this[_0x1f0968(0x353)]=new Set(_0x44877b);}[_0x5b92c2(0x1b1)](){const _0x25c8f1=_0x5b92c2;var _0x25f944;(_0x25f944=this[_0x25c8f1(0x353)])==null||_0x25f944['forEach'](_0x3102fb=>_0x3102fb[_0x25c8f1(0x241)]());}[_0x5b92c2(0x35f)](){const _0x106a16=_0x5b92c2;return G['getSheetObject'](this[_0x106a16(0x37b)][_0x106a16(0x291)],this['_context']);}};Ie=bt([ce(0x1,a['Inject'](G[_0x5b92c2(0x2f3)])),ce(0x2,a[_0x5b92c2(0x23e)](x)),ce(0x3,a[_0x5b92c2(0x23e)](a[_0x5b92c2(0x320)]))],Ie);function Tt(_0x59bc3d){const _0x53137c=_0x5b92c2,_0x552eb4=new Map();return _0x59bc3d[_0x53137c(0x392)](_0x5cc33d=>{const _0x7c3cb6=_0x53137c;if(_0x552eb4[_0x7c3cb6(0x2f4)](_0x5cc33d[_0x7c3cb6(0x20d)])){const _0x51d857=_0x552eb4['get'](_0x5cc33d['selection']);_0x51d857[_0x7c3cb6(0x29e)]+=',\x20'+_0x5cc33d['name'];}else _0x552eb4[_0x7c3cb6(0x2b1)](_0x5cc33d[_0x7c3cb6(0x20d)],_0x5cc33d);}),Array[_0x53137c(0x33a)](_0x552eb4[_0x53137c(0x2b0)]());}var E=function(){const _0x16ae92=_0x5b92c2;return E=Object[_0x16ae92(0x360)]||function(_0x51e775){const _0x5e2706=_0x16ae92;for(var _0xb3e9cb,_0x4d5db8=0x1,_0x3b5e62=arguments[_0x5e2706(0x19f)];_0x4d5db8<_0x3b5e62;_0x4d5db8++){_0xb3e9cb=arguments[_0x4d5db8];for(var _0x3654b9 in _0xb3e9cb)Object[_0x5e2706(0x14f)][_0x5e2706(0x20a)][_0x5e2706(0x28a)](_0xb3e9cb,_0x3654b9)&&(_0x51e775[_0x3654b9]=_0xb3e9cb[_0x3654b9]);}return _0x51e775;},E['apply'](this,arguments);},Rt=function(_0x5729bc,_0x34737b){const _0x4a2e6a=_0x5b92c2;var _0x437e2e={};for(var _0x556202 in _0x5729bc)Object[_0x4a2e6a(0x14f)][_0x4a2e6a(0x20a)][_0x4a2e6a(0x28a)](_0x5729bc,_0x556202)&&_0x34737b['indexOf'](_0x556202)<0x0&&(_0x437e2e[_0x556202]=_0x5729bc[_0x556202]);if(_0x5729bc!=null&&typeof Object['getOwnPropertySymbols']==_0x4a2e6a(0x1db)){for(var _0x1563fa=0x0,_0x556202=Object['getOwnPropertySymbols'](_0x5729bc);_0x1563fa<_0x556202[_0x4a2e6a(0x19f)];_0x1563fa++)_0x34737b[_0x4a2e6a(0x198)](_0x556202[_0x1563fa])<0x0&&Object[_0x4a2e6a(0x14f)][_0x4a2e6a(0x1fd)][_0x4a2e6a(0x28a)](_0x5729bc,_0x556202[_0x1563fa])&&(_0x437e2e[_0x556202[_0x1563fa]]=_0x5729bc[_0x556202[_0x1563fa]]);}return _0x437e2e;},be=P[_0x5b92c2(0x31e)](function(_0x4594a2,_0x2b0c9b){const _0x584bfd=_0x5b92c2;var _0x3fd1c1=_0x4594a2[_0x584bfd(0x376)],_0x257bdb=_0x4594a2['id'],_0x545758=_0x4594a2['className'],_0x4bc942=_0x4594a2['extend'],_0x1a5497=Rt(_0x4594a2,['icon','id','className',_0x584bfd(0x160)]),_0x30396c='univerjs-icon\x20univerjs-icon-'[_0x584bfd(0x1a9)](_0x257bdb,'\x20')[_0x584bfd(0x1a9)](_0x545758||'')[_0x584bfd(0x2a3)](),_0x1d4f4c=P[_0x584bfd(0x179)]('_'[_0x584bfd(0x1a9)](Ut()));return Ae(_0x3fd1c1,''[_0x584bfd(0x1a9)](_0x257bdb),{'defIds':_0x3fd1c1[_0x584bfd(0x2c5)],'idSuffix':_0x1d4f4c[_0x584bfd(0x278)]},E({'ref':_0x2b0c9b,'className':_0x30396c},_0x1a5497),_0x4bc942);});function Ae(_0x5e7bde,_0x12563e,_0x4b83c5,_0x39cb62,_0x49cf14){const _0x5bf90d=_0x5b92c2;return P[_0x5bf90d(0x330)](_0x5e7bde[_0x5bf90d(0x2bf)],E(E({'key':_0x12563e},Ot(_0x5e7bde,_0x4b83c5,_0x49cf14)),_0x39cb62),(Dt(_0x5e7bde,_0x4b83c5)[_0x5bf90d(0x1cf)]||[])[_0x5bf90d(0x22d)](function(_0x34b269,_0x49eafe){const _0x5a127a=_0x5bf90d;return Ae(_0x34b269,''['concat'](_0x12563e,'-')[_0x5a127a(0x1a9)](_0x5e7bde[_0x5a127a(0x2bf)],'-')[_0x5a127a(0x1a9)](_0x49eafe),_0x4b83c5,void 0x0,_0x49cf14);}));}function Ot(_0x18a898,_0x51f090,_0xf48ecc){const _0x5e611c=_0x5b92c2;var _0x395d71=E({},_0x18a898[_0x5e611c(0x342)]);_0xf48ecc!=null&&_0xf48ecc[_0x5e611c(0x340)]&&_0x395d71[_0x5e611c(0x176)]===_0x5e611c(0x340)&&(_0x395d71['fill']=_0xf48ecc[_0x5e611c(0x340)]),_0x18a898[_0x5e611c(0x2bf)]===_0x5e611c(0x212)&&_0x395d71['id']&&(_0x395d71['id']=_0x395d71['id']+_0x51f090['idSuffix']),Object[_0x5e611c(0x2fe)](_0x395d71)[_0x5e611c(0x392)](function(_0x16e0d9){const _0xea41e2=_0x5e611c;var _0x5f0863=_0x16e0d9[0x0],_0x2ad422=_0x16e0d9[0x1];_0x5f0863==='mask'&&typeof _0x2ad422=='string'&&(_0x395d71[_0x5f0863]=_0x2ad422['replace'](/url\(#(.*)\)/,'url(#$1'[_0xea41e2(0x1a9)](_0x51f090['idSuffix'],')')));});var _0x2c0fde=_0x51f090['defIds'];return!_0x2c0fde||_0x2c0fde['length']===0x0||(_0x18a898[_0x5e611c(0x2bf)]===_0x5e611c(0x1e9)&&_0x395d71[_0x5e611c(0x1b0)]&&(_0x395d71[_0x5e611c(0x1b0)]=_0x395d71[_0x5e611c(0x1b0)]+_0x51f090[_0x5e611c(0x192)]),Object[_0x5e611c(0x2fe)](_0x395d71)[_0x5e611c(0x392)](function(_0x3dbaf8){const _0x84c6e1=_0x5e611c;var _0x7ae169=_0x3dbaf8[0x0],_0x583e29=_0x3dbaf8[0x1];typeof _0x583e29=='string'&&(_0x395d71[_0x7ae169]=_0x583e29[_0x84c6e1(0x382)](/url\(#(.*)\)/,_0x84c6e1(0x25c)[_0x84c6e1(0x1a9)](_0x51f090['idSuffix'],')')));})),_0x395d71;}function Dt(_0x1e99e5,_0x30eef3){const _0x5e8fbb=_0x5b92c2;var _0x15a6fc,_0xd70dc4=_0x30eef3[_0x5e8fbb(0x2c5)];return!_0xd70dc4||_0xd70dc4[_0x5e8fbb(0x19f)]===0x0?_0x1e99e5:_0x1e99e5[_0x5e8fbb(0x2bf)]==='defs'&&(!((_0x15a6fc=_0x1e99e5['children'])===null||_0x15a6fc===void 0x0)&&_0x15a6fc[_0x5e8fbb(0x19f)])?E(E({},_0x1e99e5),{'children':_0x1e99e5[_0x5e8fbb(0x1cf)][_0x5e8fbb(0x22d)](function(_0x76b88){const _0x4059b7=_0x5e8fbb;return typeof _0x76b88[_0x4059b7(0x342)]['id']=='string'&&_0xd70dc4&&_0xd70dc4['indexOf'](_0x76b88[_0x4059b7(0x342)]['id'])>-0x1?E(E({},_0x76b88),{'attrs':E(E({},_0x76b88[_0x4059b7(0x342)]),{'id':_0x76b88[_0x4059b7(0x342)]['id']+_0x30eef3[_0x4059b7(0x192)]})}):_0x76b88;})}):_0x1e99e5;}function Ut(){const _0x2b2211=_0x5b92c2;return Math[_0x2b2211(0x220)]()[_0x2b2211(0x302)](0x24)[_0x2b2211(0x2bb)](0x2,0x8);}be['displayName']=_0x5b92c2(0x338);var Mt={'tag':_0x5b92c2(0x190),'attrs':{'fill':_0x5b92c2(0x386),'viewBox':_0x5b92c2(0x163),'width':_0x5b92c2(0x18b),'height':_0x5b92c2(0x18b)},'children':[{'tag':'g','attrs':{'clipPath':_0x5b92c2(0x3a4)},'children':[{'tag':_0x5b92c2(0x36b),'attrs':{'stroke':_0x5b92c2(0x1bd),'d':_0x5b92c2(0x297),'strokeLinecap':_0x5b92c2(0x26d),'strokeLinejoin':_0x5b92c2(0x26d),'strokeWidth':1.2}}]},{'tag':_0x5b92c2(0x3c8),'attrs':{},'children':[{'tag':_0x5b92c2(0x33b),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5b92c2(0x36b),'attrs':{'fill':_0x5b92c2(0x39b),'d':_0x5b92c2(0x3c4)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=P['forwardRef'](function(_0xa27cf6,_0x49c124){const _0x34c483=_0x5b92c2;return P[_0x34c483(0x330)](be,Object[_0x34c483(0x360)]({},_0xa27cf6,{'id':_0x34c483(0x2ab),'ref':_0x49c124,'icon':Mt}));});$e[_0x5b92c2(0x38e)]='OffLineSingle';var Pt={'tag':'svg','attrs':{'fill':_0x5b92c2(0x386),'viewBox':_0x5b92c2(0x19c),'width':'1em','height':_0x5b92c2(0x18b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5b92c2(0x36b),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5b92c2(0x26d),'strokeLinejoin':_0x5b92c2(0x26d),'strokeWidth':1.2}}]},{'tag':_0x5b92c2(0x3c8),'attrs':{},'children':[{'tag':_0x5b92c2(0x33b),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x5b92c2(0x36b),'attrs':{'fill':'#fff','d':_0x5b92c2(0x3c4),'transform':_0x5b92c2(0x2c4)}}]}]}],'defIds':[_0x5b92c2(0x2bc)]},xe=P['forwardRef'](function(_0x508fbc,_0x5345f9){const _0x227c2a=_0x5b92c2;return P[_0x227c2a(0x330)](be,Object[_0x227c2a(0x360)]({},_0x508fbc,{'id':_0x227c2a(0x2f7),'ref':_0x5345f9,'icon':Pt}));});xe[_0x5b92c2(0x38e)]=_0x5b92c2(0x197);const Nt='univer-online-status-icon',wt=_0x5b92c2(0x2a1),Lt=_0x5b92c2(0x184),yt=_0x5b92c2(0x2e5),At='univer-offline',H={'onlineStatusIcon':Nt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':yt,'offline':At};function $t(_0x127f6e){const _0x215929=_0x5b92c2;switch(_0x127f6e){case u[_0x215929(0x3ac)]['OFFLINE']:return _0x215929(0x280);case u[_0x215929(0x3ac)][_0x215929(0x3bf)]:return'collabStatus.conflict';case u['CollaborationStatus'][_0x215929(0x1e2)]:return _0x215929(0x32d);case u[_0x215929(0x3ac)][_0x215929(0x2ad)]:return _0x215929(0x2c2);case u['CollaborationStatus'][_0x215929(0x162)]:case u[_0x215929(0x3ac)][_0x215929(0x390)]:return _0x215929(0x246);case u[_0x215929(0x3ac)][_0x215929(0x206)]:case u[_0x215929(0x3ac)][_0x215929(0x180)]:return _0x215929(0x2ff);}}function je(_0x514595){const _0x19d85a=_0x5b92c2,{status$:_0x317191}=_0x514595,_0x53c963=R[_0x19d85a(0x1f6)](_0x317191,u['CollaborationStatus'][_0x19d85a(0x2ad)]),_0x1e2a4c=R['useDependency'](a[_0x19d85a(0x252)]),_0xddacf0=R[_0x19d85a(0x17d)](u[_0x19d85a(0x1bf)]),_0x16974d=_0x53c963!==u[_0x19d85a(0x3ac)][_0x19d85a(0x2a4)],_0x11b6b4=_0x1e2a4c['t']($t(_0x53c963)),_0x4d61e2=T['clsx'](H[_0x19d85a(0x2c3)],{[H[_0x19d85a(0x153)]]:_0x16974d,[H[_0x19d85a(0x2b9)]]:!_0x16974d}),_0x1388e7=_0x16974d?w[_0x19d85a(0x175)](xe,{}):w['jsx']($e,{}),_0x31a34a=P[_0x19d85a(0x1c2)](()=>{const _0x258be8=_0x19d85a;_0x16974d||_0xddacf0[_0x258be8(0x174)]();},[_0x16974d,_0xddacf0]);function _0x5aea73(){const _0x2ad320=_0x19d85a;return w[_0x2ad320(0x3b4)]('div',{'className':T[_0x2ad320(0x36d)](_0x4d61e2,_0x2ad320(0x1f2)),'onClick':_0x31a34a,'children':[w[_0x2ad320(0x175)](_0x2ad320(0x1c5),{'className':H['onlineStatusIcon'],'children':_0x1388e7}),w['jsx'](_0x2ad320(0x1c5),{'className':H['onlineStatusTitle'],'children':_0x11b6b4})]});}return _0x16974d?_0x5aea73():w[_0x19d85a(0x175)](T['Tooltip'],{'title':_0x1e2a4c['t'](_0x19d85a(0x16e)),'children':_0x5aea73()});}var xt=Object[_0x5b92c2(0x255)],jt=(_0x483fef,_0x354646,_0x79db7d,_0x3dc8c6)=>{const _0x5718b2=_0x5b92c2;for(var _0x3e08ca=_0x3dc8c6>0x1?void 0x0:_0x3dc8c6?xt(_0x354646,_0x79db7d):_0x354646,_0x55473d=_0x483fef[_0x5718b2(0x19f)]-0x1,_0x536662;_0x55473d>=0x0;_0x55473d--)(_0x536662=_0x483fef[_0x55473d])&&(_0x3e08ca=_0x536662(_0x3e08ca)||_0x3e08ca);return _0x3e08ca;},V=(_0x38dfb2,_0x2461de)=>(_0x17801b,_0x259d75)=>_0x2461de(_0x17801b,_0x259d75,_0x38dfb2);exports[_0x5b92c2(0x34c)]=class extends a[_0x5b92c2(0x2a8)]{constructor(_0x50a3d8,_0x4db5aa,_0x5884da,_0xc2967f){const _0x359c77=_0x5b92c2;super(),h(this,'_status$',new d[(_0x359c77(0x3a2))](u[_0x359c77(0x3ac)][_0x359c77(0x2ad)])),(this['_univerInstanceService']=_0x50a3d8,this[_0x359c77(0x1ce)]=_0x4db5aa,this[_0x359c77(0x1d3)]=_0x5884da,this[_0x359c77(0x15b)]=_0xc2967f,this[_0x359c77(0x384)](),this[_0x359c77(0x186)]());}['_initStatusListener'](){const _0x3b0edb=_0x5b92c2;this[_0x3b0edb(0x165)](this[_0x3b0edb(0x230)][_0x3b0edb(0x204)][_0x3b0edb(0x349)](d['switchMap'](()=>{const _0x4b45db=_0x3b0edb,_0x3db350=this[_0x4b45db(0x230)][_0x4b45db(0x1a4)]();return _0x3db350?this[_0x4b45db(0x1d3)][_0x4b45db(0x3aa)](_0x3db350['getUnitId']()):d['of'](null);}),d[_0x3b0edb(0x3b2)](_0x50397a=>_0x50397a?_0x50397a[_0x3b0edb(0x24d)]:d['of'](u[_0x3b0edb(0x3ac)][_0x3b0edb(0x2ad)])))[_0x3b0edb(0x337)](_0x3ddb96=>{const _0xf1d2df=_0x3b0edb;this[_0xf1d2df(0x3b7)][_0xf1d2df(0x2ee)](_0x3ddb96);}));}[_0x5b92c2(0x384)](){const _0x5768da=_0x5b92c2;this['disposeWithMe'](this[_0x5768da(0x15b)][_0x5768da(0x380)](R[_0x5768da(0x22e)][_0x5768da(0x37e)],()=>R[_0x5768da(0x185)](kt({'status$':this[_0x5768da(0x3b7)][_0x5768da(0x365)]()}),this[_0x5768da(0x1ce)])));}},exports[_0x5b92c2(0x34c)]=jt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x5b92c2(0x2d5)])),V(0x2,a[_0x5b92c2(0x23e)](u[_0x5b92c2(0x2cd)])),V(0x3,R[_0x5b92c2(0x1da)])],exports[_0x5b92c2(0x34c)]);function kt(_0x1c0e21){const {status$:_0x3a850a}=_0x1c0e21;return function(){const _0x4dbc26=_0x853b;return w[_0x4dbc26(0x175)](je,{'status$':_0x3a850a});};}var Bt=Object[_0x5b92c2(0x255)],Ht=(_0x55cf37,_0x2d3e04,_0x57a8f7,_0x229338)=>{for(var _0x14af78=_0x229338>0x1?void 0x0:_0x229338?Bt(_0x2d3e04,_0x57a8f7):_0x2d3e04,_0x13474d=_0x55cf37['length']-0x1,_0xd36674;_0x13474d>=0x0;_0x13474d--)(_0xd36674=_0x55cf37[_0x13474d])&&(_0x14af78=_0xd36674(_0x14af78)||_0x14af78);return _0x14af78;},A=(_0x1a21ad,_0x5743ff)=>(_0x56469a,_0x568cbd)=>_0x5743ff(_0x56469a,_0x568cbd,_0x1a21ad);let z=class extends a[_0x5b92c2(0x2a8)]{constructor(_0x1e7d14,_0x36d293,_0xa0f744,_0x2e96f4,_0x539d06,_0x52edce){const _0x2572d3=_0x5b92c2;super(),this['_beforeCloseService']=_0x1e7d14,this[_0x2572d3(0x30b)]=_0x36d293,this[_0x2572d3(0x33e)]=_0xa0f744,this[_0x2572d3(0x231)]=_0x2e96f4,this[_0x2572d3(0x28f)]=_0x539d06,this['_localeService']=_0x52edce,this[_0x2572d3(0x397)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x4414fc=_0x5b92c2;this[_0x4414fc(0x165)](this['_beforeCloseService'][_0x4414fc(0x29d)](()=>{const _0x55c4db=_0x4414fc;if(this[_0x55c4db(0x30b)][_0x55c4db(0x28d)][_0x55c4db(0x14b)])return this[_0x55c4db(0x19d)]['t'](_0x55c4db(0x207));}));}['_initEvent'](){const _0x4e7323=_0x5b92c2;this[_0x4e7323(0x165)](this[_0x4e7323(0x33e)][_0x4e7323(0x2a0)][_0x4e7323(0x337)](_0x5438ba=>{const _0xb9f3a6=_0x4e7323;_0x5438ba['id']===u[_0xb9f3a6(0x2c8)]['OTHER_CLIENT_EDITING']&&this[_0xb9f3a6(0x231)]['show']({'type':T[_0xb9f3a6(0x2f9)][_0xb9f3a6(0x336)],'content':this[_0xb9f3a6(0x19d)]['t']('collaboration.single-unit.warning')}),_0x5438ba['id']===u[_0xb9f3a6(0x2c8)]['CLOSE_ROOM']&&this[_0xb9f3a6(0x231)][_0xb9f3a6(0x282)]({'type':T[_0xb9f3a6(0x2f9)][_0xb9f3a6(0x336)],'content':this[_0xb9f3a6(0x19d)]['t'](_0xb9f3a6(0x171))}),_0x5438ba['id']===u['CollaborationUIEventId'][_0xb9f3a6(0x34e)]&&this[_0xb9f3a6(0x28f)]['show']({'title':this[_0xb9f3a6(0x19d)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':_0xb9f3a6(0x249),'duration':0x0}),_0x5438ba['id']===u[_0xb9f3a6(0x2c8)][_0xb9f3a6(0x3bf)]&&this[_0xb9f3a6(0x231)][_0xb9f3a6(0x282)]({'type':T[_0xb9f3a6(0x2f9)]['Error'],'content':this[_0xb9f3a6(0x19d)]['t'](_0xb9f3a6(0x171))+'('+_0x5438ba[_0xb9f3a6(0x2a6)]+')'}),_0x5438ba['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0xb9f3a6(0x231)][_0xb9f3a6(0x282)]({'type':T['MessageType'][_0xb9f3a6(0x336)],'content':this['_localeService']['t'](_0x5438ba['data']||'')}),_0x5438ba['id']===u[_0xb9f3a6(0x2c8)][_0xb9f3a6(0x35a)]&&this[_0xb9f3a6(0x231)]['show']({'type':T[_0xb9f3a6(0x2f9)][_0xb9f3a6(0x336)],'content':this[_0xb9f3a6(0x19d)]['t'](_0xb9f3a6(0x39f))}),_0x5438ba['id']===u[_0xb9f3a6(0x2c8)][_0xb9f3a6(0x264)]&&this[_0xb9f3a6(0x231)][_0xb9f3a6(0x282)]({'type':T[_0xb9f3a6(0x2f9)]['Error'],'content':this[_0xb9f3a6(0x19d)]['t'](_0xb9f3a6(0x310))}),_0x5438ba['id']===u[_0xb9f3a6(0x2c8)][_0xb9f3a6(0x344)]&&this[_0xb9f3a6(0x231)][_0xb9f3a6(0x282)]({'type':T[_0xb9f3a6(0x2f9)][_0xb9f3a6(0x39d)],'content':this[_0xb9f3a6(0x19d)]['t']('session.collaboration-timeout')});}));}};z=Ht([A(0x0,R[_0x5b92c2(0x335)]),A(0x1,u['ILocalCacheService']),A(0x2,a[_0x5b92c2(0x23e)](u[_0x5b92c2(0x20c)])),A(0x3,R['IMessageService']),A(0x4,R['INotificationService']),A(0x5,a[_0x5b92c2(0x23e)](a['LocaleService']))],z);const Wt=_0x5b92c2(0x148),Me={},Ee=a[_0x5b92c2(0x1a2)](_0x5b92c2(0x357));var Ft=Object[_0x5b92c2(0x255)],Yt=(_0x2d3ebd,_0x9dfbd1,_0x4862d0,_0x2155c3)=>{const _0x3497db=_0x5b92c2;for(var _0x35980f=_0x2155c3>0x1?void 0x0:_0x2155c3?Ft(_0x9dfbd1,_0x4862d0):_0x9dfbd1,_0x1a0b72=_0x2d3ebd[_0x3497db(0x19f)]-0x1,_0x181dd6;_0x1a0b72>=0x0;_0x1a0b72--)(_0x181dd6=_0x2d3ebd[_0x1a0b72])&&(_0x35980f=_0x181dd6(_0x35980f)||_0x35980f);return _0x35980f;},W=(_0x22e2c2,_0x37e3a0)=>(_0x449ca0,_0x3dc394)=>_0x37e3a0(_0x449ca0,_0x3dc394,_0x22e2c2);exports[_0x5b92c2(0x364)]=class extends a[_0x5b92c2(0x210)]{constructor(_0x5cfdb0,_0x446fbe,_0x51ed0d,_0x50aa03,_0x1a0afd){const _0x249e9f=_0x5b92c2;super(),this[_0x249e9f(0x316)]=_0x5cfdb0,this[_0x249e9f(0x16d)]=_0x446fbe,this[_0x249e9f(0x1cc)]=_0x51ed0d,this[_0x249e9f(0x317)]=_0x50aa03,_0x1a0afd?_0x1a0afd==null||_0x1a0afd[_0x249e9f(0x355)]()[_0x249e9f(0x1b5)](()=>this[_0x249e9f(0x182)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]',_0x249e9f(0x2a2)),this[_0x249e9f(0x182)]());}async[_0x5b92c2(0x182)](){const _0x78248b=_0x5b92c2,_0x29e36b=this['_urlService'][_0x78248b(0x263)](_0x78248b(0x291)),_0x264242=this[_0x78248b(0x316)]['getParam'](_0x78248b(0x2ca)),_0x2a0a67=this[_0x78248b(0x316)][_0x78248b(0x263)](_0x78248b(0x3c2));if(!_0x29e36b||!_0x264242){this[_0x78248b(0x16d)][_0x78248b(0x19b)](_0x78248b(0x1ef),_0x78248b(0x2af));return;}const _0x3ebed6=await this[_0x78248b(0x317)]['loadUnit'](_0x29e36b,Number(_0x264242),_0x2a0a67);_0x3ebed6&&_0x3ebed6 instanceof a['Workbook']&&this[_0x78248b(0x334)](_0x3ebed6);}async[_0x5b92c2(0x334)](_0x1c0f3){const _0x22870d=_0x5b92c2;await this[_0x22870d(0x258)](_0x1c0f3),_0x1c0f3[_0x22870d(0x2bd)][_0x22870d(0x349)](d[_0x22870d(0x35b)](this['dispose$']))[_0x22870d(0x337)](_0x4d5df2=>{const _0xe37cc9=_0x22870d;_0x4d5df2&&this[_0xe37cc9(0x23f)](_0x4d5df2);}),this[_0x22870d(0x316)][_0x22870d(0x319)][_0x22870d(0x349)](d[_0x22870d(0x35b)](this[_0x22870d(0x15a)]))[_0x22870d(0x337)](()=>this[_0x22870d(0x258)](_0x1c0f3));}[_0x5b92c2(0x23f)](_0x1f85f6,_0x59b2a1=!0x1){const _0x4e3a78=_0x5b92c2,_0x5e83d5=this[_0x4e3a78(0x316)]['getParam']('subunit');_0x1f85f6['getSheetId']()!==_0x5e83d5&&this[_0x4e3a78(0x316)][_0x4e3a78(0x3ad)](_0x4e3a78(0x3c2),_0x1f85f6['getSheetId'](),_0x59b2a1);}async[_0x5b92c2(0x258)](_0x5f09a3){const _0x101c04=_0x5b92c2;var _0x3a20a0;const _0x1273c7=this[_0x101c04(0x316)][_0x101c04(0x263)]('subunit');if(!_0x1273c7||!_0x5f09a3[_0x101c04(0x193)](_0x1273c7)){const _0x14e189=_0x5f09a3[_0x101c04(0x1b2)]()[0x0],_0x363ab2=_0x5f09a3['getSheetBySheetId'](_0x14e189);if(!_0x363ab2)return;this[_0x101c04(0x23f)](_0x363ab2,!0x0),await this[_0x101c04(0x1cc)]['executeCommand'](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x5f09a3[_0x101c04(0x1bb)](),'subUnitId':_0x14e189});return;}((_0x3a20a0=_0x5f09a3['getActiveSheet']())==null?void 0x0:_0x3a20a0[_0x101c04(0x2f0)]())!==_0x1273c7&&await this[_0x101c04(0x1cc)]['executeCommand'](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x5f09a3['getUnitId'](),'subUnitId':_0x1273c7});}},exports[_0x5b92c2(0x364)]=Yt([W(0x0,Ee),W(0x1,a['ILogService']),W(0x2,a[_0x5b92c2(0x1f4)]),W(0x3,a[_0x5b92c2(0x23e)](u[_0x5b92c2(0x22c)])),W(0x4,a[_0x5b92c2(0x25d)](Ke[_0x5b92c2(0x292)]))],exports['CollaborationDataLoaderController']);var Xt=Object[_0x5b92c2(0x255)],Vt=(_0x558075,_0x24f9fa,_0x243ad4,_0x2d1174)=>{const _0x2c288f=_0x5b92c2;for(var _0x3c9c13=_0x2d1174>0x1?void 0x0:_0x2d1174?Xt(_0x24f9fa,_0x243ad4):_0x24f9fa,_0x4f8086=_0x558075[_0x2c288f(0x19f)]-0x1,_0x56ade3;_0x4f8086>=0x0;_0x4f8086--)(_0x56ade3=_0x558075[_0x4f8086])&&(_0x3c9c13=_0x56ade3(_0x3c9c13)||_0x3c9c13);return _0x3c9c13;},le=(_0x134f1b,_0x148a48)=>(_0x3190c9,_0x316e57)=>_0x148a48(_0x3190c9,_0x316e57,_0x134f1b);let J=class{constructor(_0x3d82ec,_0x677f0e,_0xa86174){const _0x296cb5=_0x5b92c2;this[_0x296cb5(0x1ce)]=_0x3d82ec,this[_0x296cb5(0x216)]=_0x677f0e,this[_0x296cb5(0x1df)]=_0xa86174;}[_0x5b92c2(0x272)](_0x2319ed){const _0x35c823=_0x5b92c2;this[_0x35c823(0x34d)](_0x2319ed),this[_0x35c823(0x22f)](_0x2319ed);}[_0x5b92c2(0x215)](_0x55ca12){const _0x1534eb=_0x5b92c2,{unitID:_0x1e12e5}=_0x55ca12,_0x591e6a=this['_renderManagerService'][_0x1534eb(0x15c)](_0x1e12e5)[_0x1534eb(0x3a1)](b[_0x1534eb(0x244)]),{redoCache:_0x53ab03}=_0x591e6a[_0x1534eb(0x2ec)]();if(_0x53ab03[_0x1534eb(0x19f)]===0x0)return _0x55ca12;let _0x1e7dc2=a[_0x1534eb(0x202)]['deepClone'](_0x55ca12['mutations'][0x0]);for(let _0x2849e1=0x0;_0x2849e1<_0x53ab03[_0x1534eb(0x19f)];_0x2849e1++){const _0x1a5100={'id':_0x1534eb(0x17c),'params':{..._0x53ab03[_0x2849e1]}},_0x12a3db=this[_0x1534eb(0x216)][_0x1534eb(0x1f0)](_0x1e7dc2,_0x1a5100,!0x1);if(m[_0x1534eb(0x25e)](_0x12a3db))throw _0x12a3db[_0x1534eb(0x249)];_0x1e7dc2=_0x12a3db['m1Prime'];}return{...a['Tools'][_0x1534eb(0x3c3)](_0x55ca12),'mutations':[_0x1e7dc2]};}['_transformUndoRedoStack'](_0x489786){const _0x370720=_0x5b92c2,{unitID:_0x1e80d0}=_0x489786,_0x4f746b=this[_0x370720(0x1df)]['getRenderById'](_0x1e80d0)['with'](b[_0x370720(0x244)]),{undoCache:_0x3bfa6a,redoCache:_0x3b293b}=_0x4f746b[_0x370720(0x2ec)]();if(_0x3bfa6a[_0x370720(0x19f)]===0x0||_0x3b293b[_0x370720(0x19f)]===0x0)return;const _0x33d2c7=[],_0x29bb08=[];let _0x5869b7=a['Tools']['deepClone'](_0x489786[_0x370720(0x39c)][0x0]),_0x45238=a[_0x370720(0x202)][_0x370720(0x3c3)](_0x489786[_0x370720(0x39c)][0x0]);for(let _0x4ef3da=_0x3bfa6a['length']-0x1;_0x4ef3da>=0x0;_0x4ef3da--){const _0x41cdee={'id':_0x370720(0x17c),'params':{..._0x3bfa6a[_0x4ef3da]}},_0x22ddf3={'id':'doc.mutation.rich-text-editing','params':{..._0x3b293b[_0x4ef3da]}},_0x12d8fd=this['_transformService']['transformMutation'](_0x5869b7,_0x41cdee,!0x1),_0x2e3969=this['_transformService']['transformMutation'](_0x45238,_0x22ddf3,!0x1);if(m[_0x370720(0x25e)](_0x12d8fd))throw _0x12d8fd[_0x370720(0x249)];if(m[_0x370720(0x25e)](_0x2e3969))throw _0x2e3969[_0x370720(0x249)];_0x33d2c7[_0x370720(0x346)](_0x12d8fd[_0x370720(0x1ff)][_0x370720(0x15d)]),_0x29bb08[_0x370720(0x346)](_0x2e3969[_0x370720(0x1ff)][_0x370720(0x15d)]),_0x5869b7=_0x12d8fd[_0x370720(0x363)],_0x45238=_0x2e3969['m1Prime'];}_0x4f746b[_0x370720(0x1ea)]({'undoCache':_0x33d2c7,'redoCache':_0x29bb08});}['_transformPreviousActiveRange'](_0x2bd5df){const _0x4d901a=_0x5b92c2,{unitID:_0x1e71b2}=_0x2bd5df,_0x42c3c2=this[_0x4d901a(0x1df)][_0x4d901a(0x15c)](_0x1e71b2)[_0x4d901a(0x3a1)](b['DocIMEInputManagerService']),_0x181f0e=_0x42c3c2[_0x4d901a(0x2d6)]();if(_0x181f0e==null)return;const _0x49656d=[{'id':_0x4d901a(0x17c),'params':{'unitId':_0x2bd5df['unitID'],'actions':null,'textRanges':[_0x181f0e]}}],_0x457167=this['_transformService'][_0x4d901a(0x1cb)](_0x2bd5df,_0x49656d);if(!m[_0x4d901a(0x157)](_0x457167))throw _0x457167[_0x4d901a(0x249)];const _0x47bab2=_0x457167[_0x4d901a(0x1ff)][0x0]['params'][_0x4d901a(0x15f)];Array[_0x4d901a(0x219)](_0x47bab2)&&_0x47bab2[_0x4d901a(0x19f)]&&_0x42c3c2['setActiveRange'](_0x47bab2[0x0]);}};J=Vt([le(0x0,a[_0x5b92c2(0x23e)](a[_0x5b92c2(0x2d5)])),le(0x1,m[_0x5b92c2(0x21c)]),le(0x2,p[_0x5b92c2(0x18e)])],J);var Gt=Object[_0x5b92c2(0x255)],qt=(_0x319b26,_0x5daed7,_0x1d5116,_0x210aaf)=>{const _0x429b5b=_0x5b92c2;for(var _0x41c0c6=_0x210aaf>0x1?void 0x0:_0x210aaf?Gt(_0x5daed7,_0x1d5116):_0x5daed7,_0x54e0e1=_0x319b26[_0x429b5b(0x19f)]-0x1,_0x1fc6b8;_0x54e0e1>=0x0;_0x54e0e1--)(_0x1fc6b8=_0x319b26[_0x54e0e1])&&(_0x41c0c6=_0x1fc6b8(_0x41c0c6)||_0x41c0c6);return _0x41c0c6;},he=(_0x46357c,_0x94ec8a)=>(_0x2d2644,_0x12faa9)=>_0x94ec8a(_0x2d2644,_0x12faa9,_0x46357c);let Z=class{constructor(_0x1b77fe,_0x551d15,_0x15e454){const _0x4a9c84=_0x5b92c2;this[_0x4a9c84(0x1ce)]=_0x1b77fe,this[_0x4a9c84(0x216)]=_0x551d15,this[_0x4a9c84(0x2eb)]=_0x15e454;}[_0x5b92c2(0x1d8)](_0x6ca2d2){const _0x27508a=_0x5b92c2;this[_0x27508a(0x250)](_0x6ca2d2);}[_0x5b92c2(0x215)](_0x44d2f6){const _0x2c7bf9=_0x5b92c2,{unitID:_0x14eb6e}=_0x44d2f6,{collaboration:_0x27a8b8}=this[_0x2c7bf9(0x2eb)]['getStateCache'](_0x14eb6e);if(_0x27a8b8[_0x2c7bf9(0x19f)]===0x0)return _0x44d2f6;let _0x20eb24=a[_0x2c7bf9(0x202)]['deepClone'](_0x44d2f6[_0x2c7bf9(0x39c)][0x0]);for(let _0x1139d9=0x0;_0x1139d9<_0x27a8b8[_0x2c7bf9(0x19f)];_0x1139d9++){const _0x4c4152={'id':_0x2c7bf9(0x17c),'params':{'unitId':_0x27a8b8[_0x1139d9][_0x2c7bf9(0x299)],..._0x27a8b8[_0x1139d9]['redoState']}},_0x313020=this[_0x2c7bf9(0x216)][_0x2c7bf9(0x1f0)](_0x20eb24,_0x4c4152,!0x1);if(m[_0x2c7bf9(0x25e)](_0x313020))throw _0x313020['error'];_0x20eb24=_0x313020[_0x2c7bf9(0x363)];}return{...a[_0x2c7bf9(0x202)][_0x2c7bf9(0x3c3)](_0x44d2f6),'mutations':[_0x20eb24]};}[_0x5b92c2(0x250)](_0x180ba5){const _0x5b738a=_0x5b92c2,{unitID:_0x3cbe6a}=_0x180ba5,{history:_0x46e690,collaboration:_0x4214d3}=this['_docStateChangeManagerService'][_0x5b738a(0x151)](_0x3cbe6a);if(_0x46e690[_0x5b738a(0x19f)]===0x0&&_0x4214d3[_0x5b738a(0x19f)]===0x0)return;const _0xbde561=[],_0x10f03e=[];let _0x12dd7f=a[_0x5b738a(0x202)][_0x5b738a(0x3c3)](_0x180ba5[_0x5b738a(0x39c)][0x0]),_0x3d8b10=a[_0x5b738a(0x202)][_0x5b738a(0x3c3)](_0x180ba5[_0x5b738a(0x39c)][0x0]);for(let _0x1476b7=_0x46e690['length']-0x1;_0x1476b7>=0x0;_0x1476b7--){const _0x5d592f={'id':_0x5b738a(0x17c),'params':{'unitId':_0x46e690[_0x1476b7][_0x5b738a(0x299)],..._0x46e690[_0x1476b7]['undoState']}},_0x107e4c={'id':_0x5b738a(0x17c),'params':{'unitId':_0x46e690[_0x1476b7][_0x5b738a(0x299)],..._0x46e690[_0x1476b7][_0x5b738a(0x30a)]}},_0x3d9f48=this[_0x5b738a(0x216)][_0x5b738a(0x1f0)](_0x12dd7f,_0x5d592f,!0x1),_0x5678e1=this[_0x5b738a(0x216)][_0x5b738a(0x1f0)](_0x3d8b10,_0x107e4c,!0x1);if(m['isTransformMutationFailure'](_0x3d9f48))throw _0x3d9f48['error'];if(m[_0x5b738a(0x25e)](_0x5678e1))throw _0x5678e1[_0x5b738a(0x249)];_0xbde561['unshift']({..._0x46e690[_0x1476b7],'undoState':_0x3d9f48[_0x5b738a(0x1ff)][_0x5b738a(0x15d)],'redoState':_0x5678e1[_0x5b738a(0x1ff)][_0x5b738a(0x15d)]}),_0x12dd7f=_0x3d9f48[_0x5b738a(0x363)],_0x3d8b10=_0x5678e1[_0x5b738a(0x363)];}_0x12dd7f=a['Tools'][_0x5b738a(0x3c3)](_0x180ba5[_0x5b738a(0x39c)][0x0]),_0x3d8b10=a[_0x5b738a(0x202)][_0x5b738a(0x3c3)](_0x180ba5['mutations'][0x0]);for(let _0x3acaa5=_0x4214d3[_0x5b738a(0x19f)]-0x1;_0x3acaa5>=0x0;_0x3acaa5--){const _0x599322={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4214d3[_0x3acaa5][_0x5b738a(0x299)],..._0x4214d3[_0x3acaa5][_0x5b738a(0x1aa)]}},_0x30fbb4={'id':_0x5b738a(0x17c),'params':{'unitId':_0x4214d3[_0x3acaa5]['unitId'],..._0x4214d3[_0x3acaa5]['redoState']}},_0x4dae34=this[_0x5b738a(0x216)][_0x5b738a(0x1f0)](_0x12dd7f,_0x599322,!0x1),_0x172ed2=this[_0x5b738a(0x216)][_0x5b738a(0x1f0)](_0x3d8b10,_0x30fbb4,!0x1);if(m[_0x5b738a(0x25e)](_0x4dae34))throw _0x4dae34[_0x5b738a(0x249)];if(m[_0x5b738a(0x25e)](_0x172ed2))throw _0x172ed2[_0x5b738a(0x249)];_0x10f03e[_0x5b738a(0x346)]({..._0x4214d3[_0x3acaa5],'undoState':_0x4dae34[_0x5b738a(0x1ff)][_0x5b738a(0x15d)],'redoState':_0x172ed2['m2Prime'][_0x5b738a(0x15d)]}),_0x12dd7f=_0x4dae34[_0x5b738a(0x363)],_0x3d8b10=_0x172ed2[_0x5b738a(0x363)];}this['_docStateChangeManagerService'][_0x5b738a(0x239)](_0x3cbe6a,{'history':_0xbde561,'collaboration':_0x10f03e});}};Z=qt([he(0x0,a['Inject'](a[_0x5b92c2(0x2d5)])),he(0x1,m[_0x5b92c2(0x21c)]),he(0x2,a[_0x5b92c2(0x23e)](b[_0x5b92c2(0x373)]))],Z);var Kt=Object[_0x5b92c2(0x255)],zt=(_0xb270cc,_0x419248,_0x380913,_0x32ec73)=>{const _0x17fafa=_0x5b92c2;for(var _0x3631c6=_0x32ec73>0x1?void 0x0:_0x32ec73?Kt(_0x419248,_0x380913):_0x419248,_0x16f1ed=_0xb270cc[_0x17fafa(0x19f)]-0x1,_0xd5924e;_0x16f1ed>=0x0;_0x16f1ed--)(_0xd5924e=_0xb270cc[_0x16f1ed])&&(_0x3631c6=_0xd5924e(_0x3631c6)||_0x3631c6);return _0x3631c6;},Pe=(_0x50895e,_0x3814f4)=>(_0x277860,_0x15848a)=>_0x3814f4(_0x277860,_0x15848a,_0x50895e);let Q=class{constructor(_0x14ba09,_0x229026){const _0x349e5b=_0x5b92c2;this[_0x349e5b(0x1ce)]=_0x14ba09,this[_0x349e5b(0x216)]=_0x229026;}[_0x5b92c2(0x209)](_0x4ebe81){const _0x526f24=_0x5b92c2;var _0x2bb8c4;const _0x1058c9=this['_injector'][_0x526f24(0x261)](Y[_0x526f24(0x1b7)]),_0x14f872=(_0x2bb8c4=_0x1058c9['getDocRanges']())!=null?_0x2bb8c4:[];if(_0x14f872['length']===0x0)return;const _0x1241c6=_0x4ebe81[_0x526f24(0x367)],_0xc0d533=[{'id':_0x526f24(0x17c),'params':{'unitId':_0x1241c6,'actions':null,'textRanges':_0x14f872}}],_0x5d3a9a=this[_0x526f24(0x216)][_0x526f24(0x1cb)](_0x4ebe81,_0xc0d533);if(!m[_0x526f24(0x157)](_0x5d3a9a))throw _0x5d3a9a['error'];const _0x3d2d04=_0x5d3a9a['m2Prime'][0x0][_0x526f24(0x15d)][_0x526f24(0x15f)];Array[_0x526f24(0x219)](_0x3d2d04)&&_0x3d2d04[_0x526f24(0x19f)]&&_0x1058c9[_0x526f24(0x232)](_0x3d2d04,{'unitId':_0x1241c6,'subUnitId':_0x1241c6},!0x1);}};Q=zt([Pe(0x0,a[_0x5b92c2(0x23e)](a[_0x5b92c2(0x2d5)])),Pe(0x1,m[_0x5b92c2(0x21c)])],Q);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0xf8d67c,_0x4d529c,_0x3e2d81,_0x5eebba)=>{const _0x9f3e07=_0x5b92c2;for(var _0x30a540=_0x5eebba>0x1?void 0x0:_0x5eebba?Jt(_0x4d529c,_0x3e2d81):_0x4d529c,_0x18fe17=_0xf8d67c[_0x9f3e07(0x19f)]-0x1,_0x19636e;_0x18fe17>=0x0;_0x18fe17--)(_0x19636e=_0xf8d67c[_0x18fe17])&&(_0x30a540=_0x19636e(_0x30a540)||_0x30a540);return _0x30a540;},M=(_0x463e33,_0x2b9d66)=>(_0x2eeea5,_0x50394c)=>_0x2b9d66(_0x2eeea5,_0x50394c,_0x463e33);let ee=class extends a['Disposable']{constructor(_0x3ab65f,_0x2963e9,_0x3cfce8,_0x5d448d,_0xd4c734,_0x421a54,_0x341be4,_0x1a46a8){const _0x3e6660=_0x5b92c2;super(),h(this,_0x3e6660(0x3b7),new d[(_0x3e6660(0x3a2))](u[_0x3e6660(0x3ac)][_0x3e6660(0x2ad)])),(this[_0x3e6660(0x2eb)]=_0x3ab65f,this[_0x3e6660(0x1d3)]=_0x2963e9,this[_0x3e6660(0x2db)]=_0x3cfce8,this['_docTransformStateCacheService']=_0x5d448d,this['_docTransformSelectionsService']=_0xd4c734,this[_0x3e6660(0x30c)]=_0x421a54,this[_0x3e6660(0x231)]=_0x341be4,this[_0x3e6660(0x19d)]=_0x1a46a8,this[_0x3e6660(0x37d)]());}[_0x5b92c2(0x37d)](){const _0xc4140b=_0x5b92c2;this[_0xc4140b(0x165)](this[_0xc4140b(0x1d3)][_0xc4140b(0x245)][_0xc4140b(0x337)](_0x3eb077=>{const _0x1ddd63=_0xc4140b,_0x4a81f0=this[_0x1ddd63(0x2eb)][_0x1ddd63(0x1cd)][_0x1ddd63(0x337)](_0x38d05b=>{const _0x22d56e=_0x1ddd63;if(_0x38d05b==null)return;const {unitId:_0x57a701,redoState:_0x2db257,commandId:_0x59ed77}=_0x38d05b;if(_0x57a701!==_0x3eb077[_0x22d56e(0x367)])return;const _0x5a04c2={'id':_0x59ed77,'type':a['CommandType'][_0x22d56e(0x20b)],'params':{'unitId':_0x57a701,'actions':_0x2db257[_0x22d56e(0x3b1)],'textRanges':null}};_0x3eb077['onLocalMutation'](_0x5a04c2);});if(_0x3eb077[_0x1ddd63(0x165)](_0x4a81f0),_0x3eb077 instanceof u[_0x1ddd63(0x304)]){const _0x4e4bb7={'onTransformIME':_0x40c61f=>this[_0x1ddd63(0x2db)]['transformIMECache'](_0x40c61f),'onTransformState':_0x15d89f=>this['_docTransformStateCacheService'][_0x1ddd63(0x1d8)](_0x15d89f),'onTransformSelections':_0x404136=>this[_0x1ddd63(0x289)][_0x1ddd63(0x209)](_0x404136),'onSyncEditingCollabCursor':_0x53987f=>this[_0x1ddd63(0x30c)][_0x1ddd63(0x3c6)](_0x53987f),'onTransformRemoteChangesetByIMECache':_0x224087=>this[_0x1ddd63(0x2db)][_0x1ddd63(0x215)](_0x224087),'onTransformRemoteChangesetByStateCache':_0x59a58a=>this[_0x1ddd63(0x1b6)]['transformRemoteChangeset'](_0x59a58a)};_0x3eb077[_0x1ddd63(0x26c)](_0x4e4bb7);}}));}};ee=Zt([M(0x0,a[_0x5b92c2(0x23e)](b['DocStateChangeManagerService'])),M(0x1,a['Inject'](u['CollaborationController'])),M(0x2,a[_0x5b92c2(0x23e)](J)),M(0x3,a[_0x5b92c2(0x23e)](Z)),M(0x4,a[_0x5b92c2(0x23e)](Q)),M(0x5,a['Inject'](pe)),M(0x6,R[_0x5b92c2(0x3c5)]),M(0x7,a[_0x5b92c2(0x23e)](a[_0x5b92c2(0x252)]))],ee);var Qt=Object[_0x5b92c2(0x255)],es=(_0x24b472,_0x4f7bd6,_0x3691f5,_0x3edd99)=>{const _0x36ab59=_0x5b92c2;for(var _0x6fbd43=_0x3edd99>0x1?void 0x0:_0x3edd99?Qt(_0x4f7bd6,_0x3691f5):_0x4f7bd6,_0x22283a=_0x24b472[_0x36ab59(0x19f)]-0x1,_0x153c2d;_0x22283a>=0x0;_0x22283a--)(_0x153c2d=_0x24b472[_0x22283a])&&(_0x6fbd43=_0x153c2d(_0x6fbd43)||_0x6fbd43);return _0x6fbd43;},_e=(_0xc6e1b6,_0x547b35)=>(_0x36744c,_0x3545f1)=>_0x547b35(_0x36744c,_0x3545f1,_0xc6e1b6);let me=class extends a[_0x5b92c2(0x2a8)]{constructor(_0x4a1f64,_0x193053,_0x153f08){const _0x543adc=_0x5b92c2;super(),h(this,'_cachedData',new Map()),h(this,_0x543adc(0x3be),new Map()),h(this,_0x543adc(0x24b),!0x1),(this[_0x543adc(0x22a)]=_0x4a1f64,this['_localStorageService']=_0x193053,this['_revisionService']=_0x153f08);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x5b92c2(0x303)](){const _0xd6a64e=_0x5b92c2;this[_0xd6a64e(0x24b)]=!0x1;}get[_0x5b92c2(0x28d)](){return this['_saveTaskMap'];}[_0x5b92c2(0x241)](){const _0x1176fb=_0x5b92c2;this['exhaustSavingTask']()[_0x1176fb(0x1b5)](()=>super['dispose']());}async['loadOfflineData'](_0x34c3cb){const _0x4aa658=_0x5b92c2;return this[_0x4aa658(0x24b)]?null:this[_0x4aa658(0x221)][_0x4aa658(0x33f)](u[_0x4aa658(0x286)](_0x34c3cb));}async['saveOfflineData'](_0xc2024d,_0x3f42cd){const _0x31f3c5=_0x5b92c2;return!!this[_0x31f3c5(0x221)][_0x31f3c5(0x3c7)](_0xc2024d,_0x3f42cd);}[_0x5b92c2(0x379)](_0x4a7a6c,_0x3b5ab1,_0x51a8f3,_0x53ce1a){const _0xeabf8e=_0x5b92c2,_0x4fb9aa=this[_0xeabf8e(0x269)][_0xeabf8e(0x161)](_0x4a7a6c);this[_0xeabf8e(0x279)][_0xeabf8e(0x2b1)](_0x4a7a6c,{'unitID':_0x4a7a6c,'type':_0x3b5ab1,'awaitingChangeset':_0x51a8f3,'mutations':_0x53ce1a,'rev':_0x4fb9aa}),this[_0xeabf8e(0x3be)][_0xeabf8e(0x2f4)](_0x4a7a6c)||this['_scheduleSaving'](_0x4a7a6c);}[_0x5b92c2(0x146)](_0x26dee6){const _0x4b458c=_0x5b92c2,_0x361d3c=this[_0x4b458c(0x369)]();_0x361d3c===0x0?this['_saveCache'](_0x26dee6):this[_0x4b458c(0x3be)][_0x4b458c(0x2b1)](_0x26dee6,setTimeout(()=>this[_0x4b458c(0x173)](_0x26dee6),_0x361d3c));}[_0x5b92c2(0x369)](){const _0xe110f9=_0x5b92c2;var _0x44433d;return(_0x44433d=this['_configService'][_0xe110f9(0x284)](u[_0xe110f9(0x351)]))!=null?_0x44433d:u[_0xe110f9(0x35c)];}['_saveCache'](_0x41b8ca){const _0x158fcd=_0x5b92c2,_0x25a94c=this['_saveTaskMap'][_0x158fcd(0x261)](_0x41b8ca);return _0x25a94c!==void 0x0&&window['clearTimeout'](_0x25a94c),this[_0x158fcd(0x221)]['setItem'](u[_0x158fcd(0x286)](_0x41b8ca),this[_0x158fcd(0x279)][_0x158fcd(0x261)](_0x41b8ca))['then'](()=>this['_saveTaskMap'][_0x158fcd(0x343)](_0x41b8ca));}async[_0x5b92c2(0x203)](){const _0x15dc9e=_0x5b92c2,_0x25db48=[];this[_0x15dc9e(0x3be)][_0x15dc9e(0x392)]((_0x541472,_0x3d2729)=>{const _0x1e54f4=_0x15dc9e;window[_0x1e54f4(0x285)](_0x541472),_0x25db48['push'](this[_0x1e54f4(0x173)](_0x3d2729)[_0x1e54f4(0x1b5)](()=>{const _0x9ccf51=_0x1e54f4;this[_0x9ccf51(0x3be)][_0x9ccf51(0x343)](_0x3d2729);}));}),await Promise[_0x15dc9e(0x399)](_0x25db48);}};me=es([_e(0x0,a[_0x5b92c2(0x2b4)]),_e(0x1,a[_0x5b92c2(0x29c)]),_e(0x2,a[_0x5b92c2(0x23e)](m['RevisionService']))],me);class ke extends a[_0x5b92c2(0x210)]{constructor(){const _0x4173b4=_0x5b92c2;super(),h(this,'urlChange$'),this[_0x4173b4(0x319)]=d[_0x4173b4(0x24c)](window,_0x4173b4(0x28e))[_0x4173b4(0x349)](d['takeUntil'](this['dispose$']),d[_0x4173b4(0x183)](0x1),d[_0x4173b4(0x2e9)](void 0x0));}['setParam'](_0x55b6ad,_0x363da3,_0x80e5c0=!0x1){const _0x483fae=_0x5b92c2,_0x3d40a9=new URL(window[_0x483fae(0x2ba)][_0x483fae(0x1f1)]);_0x3d40a9[_0x483fae(0x1d9)][_0x483fae(0x2b1)](_0x55b6ad,_0x363da3),_0x80e5c0?window[_0x483fae(0x234)][_0x483fae(0x300)]('','',_0x3d40a9['toString']()):window[_0x483fae(0x234)][_0x483fae(0x35d)]('','',_0x3d40a9['toString']());}[_0x5b92c2(0x156)](_0x3654ea,_0x42e91a=!0x1){const _0x1d66d7=_0x5b92c2,_0x1afff8=new URL(window[_0x1d66d7(0x2ba)][_0x1d66d7(0x1f1)]);_0x1afff8[_0x1d66d7(0x1d9)]['delete'](_0x3654ea),_0x42e91a?window[_0x1d66d7(0x234)][_0x1d66d7(0x300)]('','',_0x1afff8[_0x1d66d7(0x302)]()):window[_0x1d66d7(0x234)][_0x1d66d7(0x35d)]('','',_0x1afff8[_0x1d66d7(0x302)]());}['getParam'](_0x2af867){const _0x4fe375=_0x5b92c2;var _0x422a3c;return(_0x422a3c=new URL(window['location']['href'])[_0x4fe375(0x1d9)]['get'](_0x2af867))!=null?_0x422a3c:void 0x0;}}var ts=Object[_0x5b92c2(0x3ae)],ss=Object[_0x5b92c2(0x255)],ns=(_0x527af1,_0x5a96bf,_0x5af6ab)=>_0x5a96bf in _0x527af1?ts(_0x527af1,_0x5a96bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5af6ab}):_0x527af1[_0x5a96bf]=_0x5af6ab,is=(_0x1afd76,_0x4d029e,_0x52080c,_0x346276)=>{const _0x352cac=_0x5b92c2;for(var _0x10316c=_0x346276>0x1?void 0x0:_0x346276?ss(_0x4d029e,_0x52080c):_0x4d029e,_0x156247=_0x1afd76[_0x352cac(0x19f)]-0x1,_0x4e2ffa;_0x156247>=0x0;_0x156247--)(_0x4e2ffa=_0x1afd76[_0x156247])&&(_0x10316c=_0x4e2ffa(_0x10316c)||_0x10316c);return _0x10316c;},ue=(_0x5a63f4,_0x162dfe)=>(_0x584d28,_0x4aa44f)=>_0x162dfe(_0x584d28,_0x4aa44f,_0x5a63f4),rs=(_0x2bfbdc,_0x2b19b9,_0x1f6ccb)=>ns(_0x2bfbdc,_0x2b19b9+'',_0x1f6ccb);const os=_0x5b92c2(0x31c);exports[_0x5b92c2(0x28c)]=class extends a['Plugin']{constructor(_0x358ed6=Me,_0x576181,_0x1ba7dc,_0x485c5c){const _0x1a0e5e=_0x5b92c2;super(),this[_0x1a0e5e(0x199)]=_0x358ed6,this[_0x1a0e5e(0x1df)]=_0x576181,this[_0x1a0e5e(0x1ce)]=_0x1ba7dc,this[_0x1a0e5e(0x22a)]=_0x485c5c;const {..._0x350cb2}=a['merge']({},Me,this[_0x1a0e5e(0x199)]);this[_0x1a0e5e(0x22a)][_0x1a0e5e(0x30e)](Wt,_0x350cb2);}['onStarting'](){const _0x48dbc9=_0x5b92c2;this[_0x48dbc9(0x308)](),this[_0x48dbc9(0x371)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x5b92c2(0x308)](){const _0x392913=_0x5b92c2;var _0x402137;const _0xc0f76e=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x392913(0x32a)],{'useClass':q[_0x392913(0x35e)]}],[u[_0x392913(0x288)],{'useClass':me}],[exports[_0x392913(0x34c)]],[ee],[z],[x],[fe],[exports[_0x392913(0x364)]]];a[_0x392913(0x1ec)](this[_0x392913(0x1ce)],a[_0x392913(0x152)](_0xc0f76e,(_0x402137=this[_0x392913(0x199)])==null?void 0x0:_0x402137[_0x392913(0x2a5)]));}['_registerRenderDependencies'](){const _0x289fe6=_0x5b92c2;this['disposeWithMe'](this[_0x289fe6(0x1df)][_0x289fe6(0x268)](a[_0x289fe6(0x327)]['UNIVER_DOC'],[ge])),this[_0x289fe6(0x165)](this[_0x289fe6(0x1df)][_0x289fe6(0x268)](a['UniverInstanceType'][_0x289fe6(0x247)],[Ie]));}[_0x5b92c2(0x371)](){const _0x270f2b=_0x5b92c2;a[_0x270f2b(0x257)](this[_0x270f2b(0x1ce)],[[x],[exports[_0x270f2b(0x34c)]],[ee],[z],[exports[_0x270f2b(0x364)]]]);}},rs(exports[_0x5b92c2(0x28c)],_0x5b92c2(0x25a),os),exports[_0x5b92c2(0x28c)]=is([a[_0x5b92c2(0x2ac)](u[_0x5b92c2(0x164)]),ue(0x1,p[_0x5b92c2(0x18e)]),ue(0x2,a[_0x5b92c2(0x23e)](a[_0x5b92c2(0x2d5)])),ue(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x5b92c2(0x255)],cs=(_0x431cfa,_0x252daa,_0xef276a,_0x2ca04e)=>{for(var _0x314fd7=_0x2ca04e>0x1?void 0x0:_0x2ca04e?as(_0x252daa,_0xef276a):_0x252daa,_0xc3d253=_0x431cfa['length']-0x1,_0x3715fe;_0xc3d253>=0x0;_0xc3d253--)(_0x3715fe=_0x431cfa[_0xc3d253])&&(_0x314fd7=_0x3715fe(_0x314fd7)||_0x314fd7);return _0x314fd7;},F=(_0x49d64b,_0x42a68a)=>(_0x437427,_0x47f60c)=>_0x42a68a(_0x437427,_0x47f60c,_0x49d64b);exports[_0x5b92c2(0x2cf)]=class extends u[_0x5b92c2(0x1ed)]{constructor(_0x1f5cd8,_0x31115c,_0x5964d8,_0x425d36,_0x543851){super(_0x1f5cd8,_0x31115c,_0x5964d8,_0x425d36,_0x543851);}async[_0x5b92c2(0x1d1)](_0x231bf3){const _0x4ff70d=_0x5b92c2,_0x401fd1=await this[_0x4ff70d(0x38c)](),_0x48a610=this[_0x4ff70d(0x29a)](_0x231bf3,_0x401fd1);return this[_0x4ff70d(0x1d6)](_0x48a610);}[_0x5b92c2(0x29a)](_0x126f0a,_0x1cea91){const _0x4f694c=_0x5b92c2,_0x13d2d7=typeof window>'u'?new URL(_0x126f0a):new URL(_0x126f0a,window[_0x4f694c(0x2ba)]['origin']);_0x13d2d7[_0x4f694c(0x1d9)][_0x4f694c(0x2b1)](_0x4f694c(0x195),_0x1cea91);const _0x36348e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4f694c(0x2ba)][_0x4f694c(0x3b6)]);return _0x36348e[_0x4f694c(0x261)](_0x4f694c(0x1e0))&&_0x13d2d7['searchParams'][_0x4f694c(0x2b1)]('runId',_0x36348e['get']('runId')),_0x13d2d7[_0x4f694c(0x302)]();}async[_0x5b92c2(0x38c)](){const _0x438b0c=_0x5b92c2;var _0x465f0f,_0xd4bbcb,_0x45e184;const _0x1621f7=this['_configService'][_0x438b0c(0x284)](u[_0x438b0c(0x18a)]),_0x28c5ce=(_0x465f0f=_0x1621f7==null?void 0x0:_0x1621f7[_0x438b0c(0x238)])!=null?_0x465f0f:u[_0x438b0c(0x2ce)];return(_0x45e184=(_0xd4bbcb=(await this['_httpService']['get'](_0x28c5ce,{'headers':{'Content-Type':_0x438b0c(0x321)}}))['body'])==null?void 0x0:_0xd4bbcb[_0x438b0c(0x295)])!=null?_0x45e184:'';}},exports[_0x5b92c2(0x2cf)]=cs([F(0x0,a[_0x5b92c2(0x23e)](a[_0x5b92c2(0x2d5)])),F(0x1,a[_0x5b92c2(0x23e)](q[_0x5b92c2(0x1a1)])),F(0x2,a[_0x5b92c2(0x2b4)]),F(0x3,a[_0x5b92c2(0x296)]),F(0x4,m[_0x5b92c2(0x214)])],exports[_0x5b92c2(0x2cf)]);const Ne=0x7530,we=_0x5b92c2(0x1f9);class ls extends a[_0x5b92c2(0x2a8)]{constructor(){const _0x74bd2a=_0x5b92c2;super(),h(this,'_id',a[_0x74bd2a(0x27b)]()),h(this,_0x74bd2a(0x251),new Set()),h(this,_0x74bd2a(0x23d),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x74bd2a(0x240),new Map()),h(this,_0x74bd2a(0x1f7),new Map()),this[_0x74bd2a(0x182)]();}['dispose'](){const _0x464970=_0x5b92c2;super[_0x464970(0x241)](),this['_clearOtherTimers'][_0x464970(0x392)]((_0x1e51dd,_0x3e801b)=>this[_0x464970(0x28b)](_0x3e801b)),this[_0x464970(0x377)]&&window[_0x464970(0x169)](this[_0x464970(0x377)]);}[_0x5b92c2(0x260)](_0x548530){const _0x474245=_0x5b92c2;return this['_ensureSubject'](_0x548530)[_0x474245(0x349)](d[_0x474245(0x356)]());}[_0x5b92c2(0x29b)](_0x4c7264){const _0x2ad3f2=_0x5b92c2;this[_0x2ad3f2(0x251)][_0x2ad3f2(0x14b)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2ad3f2(0x251)][_0x2ad3f2(0x2cc)](_0x4c7264),this[_0x2ad3f2(0x1f5)]({'type':0x0,'memberID':this[_0x2ad3f2(0x32e)],'unitIDs':[_0x4c7264],'isForwarded':!0x1});}['disposeUnit'](_0x505eef){const _0x53a6d7=_0x5b92c2;this[_0x53a6d7(0x251)][_0x53a6d7(0x343)](_0x505eef),this[_0x53a6d7(0x251)]['size']===0x0&&this[_0x53a6d7(0x377)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x5b92c2(0x182)](){const _0x333cf4=_0x5b92c2;this[_0x333cf4(0x165)](a['toDisposable'](d[_0x333cf4(0x24c)](window,_0x333cf4(0x37f))[_0x333cf4(0x337)](_0xc0259=>{const _0x14ccc2=_0x333cf4;if(_0xc0259[_0x14ccc2(0x2e0)]!==we||!_0xc0259['newValue'])return;const _0x1f1af8=JSON[_0x14ccc2(0x2fc)](_0xc0259[_0x14ccc2(0x2c9)]);this[_0x14ccc2(0x1be)](_0x1f1af8);}))),window[_0x333cf4(0x2e3)](_0x333cf4(0x24a),()=>this[_0x333cf4(0x1f5)]({'type':0x1,'memberID':this[_0x333cf4(0x32e)],'unitIDs':Array[_0x333cf4(0x33a)](this[_0x333cf4(0x251)])}));}['_handleEvent'](_0x32e79d){const _0x2c4642=_0x5b92c2;switch(_0x32e79d[_0x2c4642(0x2ca)]){case 0x0:this[_0x2c4642(0x359)](_0x32e79d);break;case 0x1:this['_handleLeaveEvent'](_0x32e79d);break;case 0x2:this[_0x2c4642(0x39e)](_0x32e79d);break;}}[_0x5b92c2(0x359)](_0x3743a7){const _0x20350a=_0x5b92c2,{unitIDs:_0x58d41f,memberID:_0x4101cb,isForwarded:_0x10a537}=_0x3743a7;_0x58d41f[_0x20350a(0x392)](_0x1826f8=>{const _0x460bdf=_0x20350a;if(!_0x10a537&&this['_unitOnClients'][_0x460bdf(0x2f4)](_0x1826f8)&&this['_ensureSubject'](_0x1826f8)[_0x460bdf(0x2ee)](u[_0x460bdf(0x24e)]['OTHER_CLIENTS_EDITING']),!this[_0x460bdf(0x23d)][_0x460bdf(0x2f4)](_0x1826f8)||!this[_0x460bdf(0x23d)][_0x460bdf(0x261)](_0x1826f8)[_0x460bdf(0x2f4)](_0x4101cb)){const _0xad4156=this[_0x460bdf(0x23d)][_0x460bdf(0x261)](_0x1826f8)||new Set();_0xad4156['add'](_0x4101cb),this[_0x460bdf(0x23d)][_0x460bdf(0x2b1)](_0x1826f8,_0xad4156),this[_0x460bdf(0x328)](_0x4101cb);}}),_0x10a537||this[_0x20350a(0x1f5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2e7c7a){const _0x22d777=_0x5b92c2;this[_0x22d777(0x28b)](_0x2e7c7a);const _0x4950c0=window[_0x22d777(0x150)](()=>{const _0x11d690=_0x22d777;this[_0x11d690(0x23d)]['forEach'](_0x9ce321=>{const _0xc33346=_0x11d690;_0x9ce321[_0xc33346(0x343)](_0x2e7c7a);});},Ne*0x2);this[_0x22d777(0x240)]['set'](_0x2e7c7a,_0x4950c0);}[_0x5b92c2(0x28b)](_0x21604a){const _0x318a16=_0x5b92c2;if(this[_0x318a16(0x240)]['has'](_0x21604a)){const _0x5b4500=this['_clearOtherTimers'][_0x318a16(0x261)](_0x21604a);_0x5b4500&&window[_0x318a16(0x285)](_0x5b4500),this[_0x318a16(0x240)][_0x318a16(0x2b1)](_0x21604a,null);}}['_handleLeaveEvent'](_0xeab80f){const _0x3b1acb=_0x5b92c2,{memberID:_0x12150d,unitIDs:_0x2bbbdc}=_0xeab80f;_0x2bbbdc['forEach'](_0x305e45=>{const _0x4157e2=_0x853b;var _0x219a70;const _0x61e5e8=this[_0x4157e2(0x23d)][_0x4157e2(0x261)](_0x305e45);_0x61e5e8&&(_0x61e5e8[_0x4157e2(0x343)](_0x12150d),(_0x219a70=this[_0x4157e2(0x1d5)](_0x305e45))==null||_0x219a70['next'](_0x61e5e8[_0x4157e2(0x14b)]===0x0?u['UnitStatus'][_0x4157e2(0x2fa)]:u[_0x4157e2(0x24e)][_0x4157e2(0x20e)]));}),this[_0x3b1acb(0x28b)](_0x12150d);}[_0x5b92c2(0x39e)](_0x27586e){const _0x586ae1=_0x5b92c2;this['_scheduleClearOtherTimer'](_0x27586e[_0x586ae1(0x36c)]);}[_0x5b92c2(0x1f5)](_0x49ff4a){const _0xd49199=_0x5b92c2;localStorage[_0xd49199(0x3c7)](we,JSON['stringify'](_0x49ff4a));}[_0x5b92c2(0x36e)](){const _0x2c2ea0=_0x5b92c2;this[_0x2c2ea0(0x377)]=window[_0x2c2ea0(0x3a8)](()=>{const _0x12ea22=_0x2c2ea0;this[_0x12ea22(0x1f5)]({'type':0x2,'memberID':this[_0x12ea22(0x32e)]});},Ne);}[_0x5b92c2(0x1d5)](_0x46081e){const _0xe5b616=_0x5b92c2;return this[_0xe5b616(0x1f7)][_0xe5b616(0x2f4)](_0x46081e)||this[_0xe5b616(0x1f7)][_0xe5b616(0x2b1)](_0x46081e,new d[(_0xe5b616(0x3a2))](u[_0xe5b616(0x24e)][_0xe5b616(0x2fa)])),this[_0xe5b616(0x1f7)][_0xe5b616(0x261)](_0x46081e);}}var Be=(_0x3a3b5d=>(_0x3a3b5d[_0x3a3b5d['UNDEFINED']=0x0]=_0x5b92c2(0x39a),_0x3a3b5d[_0x3a3b5d['OK']=0x1]='OK',_0x3a3b5d[_0x3a3b5d['INTERNAL_ERROR']=0x2]=_0x5b92c2(0x29f),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x34e)]=0x3]=_0x5b92c2(0x34e),_0x3a3b5d[_0x3a3b5d['NOT_FOUND']=0x4]=_0x5b92c2(0x242),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x2d4)]=0x5]=_0x5b92c2(0x2d4),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x361)]=0x6]=_0x5b92c2(0x361),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x1c0)]=0x7]=_0x5b92c2(0x1c0),_0x3a3b5d[_0x3a3b5d['TOO_MANY_REQUESTS']=0x8]=_0x5b92c2(0x22b),_0x3a3b5d[_0x3a3b5d['COMPLETION_FINISHED']=0x9]=_0x5b92c2(0x322),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x21f)]=0x1389]=_0x5b92c2(0x21f),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x324)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3a3b5d[_0x3a3b5d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x5b92c2(0x2a7),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x318)]=0x1773]=_0x5b92c2(0x318),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x172)]=0x1b59]='APPLY_REJECT',_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x218)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3a3b5d[_0x3a3b5d['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5b92c2(0x2b2),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x2fd)]=0x1b5c]=_0x5b92c2(0x2fd),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x2a9)]=0x1b5d]=_0x5b92c2(0x2a9),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x1fb)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x1c6)]=0x2329]=_0x5b92c2(0x1c6),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x387)]=0x232a]=_0x5b92c2(0x387),_0x3a3b5d[_0x3a3b5d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5b92c2(0x1de),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x259)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x345)]=0x232d]=_0x5b92c2(0x345),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x243)]=0x2711]=_0x5b92c2(0x243),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x23a)]=0x2712]=_0x5b92c2(0x23a),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x1e4)]=0x2713]=_0x5b92c2(0x1e4),_0x3a3b5d[_0x3a3b5d['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5b92c2(0x31f),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x2c1)]=0x2af9]=_0x5b92c2(0x2c1),_0x3a3b5d[_0x3a3b5d[_0x5b92c2(0x1a0)]=-0x1]=_0x5b92c2(0x1a0),_0x3a3b5d))(Be||{}),hs=Object['getOwnPropertyDescriptor'],_s=(_0x4c22dc,_0x590a2e,_0x22cd26,_0x152f50)=>{const _0x433d82=_0x5b92c2;for(var _0x5b4c7c=_0x152f50>0x1?void 0x0:_0x152f50?hs(_0x590a2e,_0x22cd26):_0x590a2e,_0x72feea=_0x4c22dc[_0x433d82(0x19f)]-0x1,_0x43839d;_0x72feea>=0x0;_0x72feea--)(_0x43839d=_0x4c22dc[_0x72feea])&&(_0x5b4c7c=_0x43839d(_0x5b4c7c)||_0x5b4c7c);return _0x5b4c7c;},de=(_0x5f4572,_0x3c1636)=>(_0xb7c823,_0x329f1f)=>_0x3c1636(_0xb7c823,_0x329f1f,_0x5f4572);function _0x3883(){const _0x4530a9=['_docTransformSelectionsService','call','_removeClearOtherTimer','UniverCollaborationClientUIPlugin','saveTaskMap','popstate','_notificationService','_refreshCollabCursors','unit','IRemoteInstanceService','some','_docClipboardService','ticket','ILogService','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','@univerjs/ui','unitId','_createSocketURL','editingUnit','ILocalStorageService','registerBeforeClose','name','INTERNAL_ERROR','event$','univer-online-status-title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','trim','OFFLINE','override','data','SNAPSHOT_HAS_BEEN_REMOVED','Disposable','APPLY_DUPLICATED','_updateCollabCursors','off-line-single','DependentOn','NOT_COLLAB','setShapeProps','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','values','set','APPLY_REVISION_CONFILICT','stringify','IConfigService','_themeService','getTypeOfUnitDisposed$','_draw','TRANSFORM_CHANGE_OBSERVABLE_TYPE','offline','location','substring','on-line-single_clip0_910_349','activeSheet$','MemberService','tag','debounceTime','PY_RUNTIME_SCRIPT_ERROR','collabStatus.notCollab','onlineStatus','translate(.97)','defIds','IDocClipboardService','/run/','CollaborationUIEventId','newValue','type','gold400','add','CollaborationController','DEFAULT_WS_SESSION_TICKET_URL','BrowserCollaborationSocketService','_anchor','_collabSessionService','_onRefRangeChange','string','UNAUTHENTICATED','Injector','getActiveRange','getTypeOfUnitAdded$','handleIRemoveRow','_getMergeRange','_docSkeleton','_docTransformIMECacheService','getOffsetConfig','arc','getUniverSheetInstance','@univerjs/sheets-ui','key','RefRangeService','_anchorDot','addEventListener','send','univer-online','transformByState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Vector2','mapTo','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_docStateChangeManagerService','getUndoRedoMutationParamsCache','body','next','11oCYEYN','getSheetId','8WQlEnH','code','SheetSkeletonManagerService','has','WebURLService','executionId','on-line-single','startsWith','MessageType','NO_OTHER_CLIENTS_EDITING','cursorInfo','parse','APPLY_PERMISSION_DENIED','entries','collabStatus.synced','replaceState','_refRangeService','toString','enableLocalCache','DocCollaborationEntity','IUniverInstanceService','cursorInfo$','flatMap','_registerDependencies','save','redoState','_localCacheService','_docSyncEditingCollabCursorService','collab-text-anchor-','setConfig','collab-rect-range-','session.connection-failed','7545BnKGQu','RemoveColCommandId','_sheetSkeletonManagerService','push','_shapes','_urlService','_dataLoaderService','ENSURE_SNAPSHOT_EXECUTION','urlChange$','Module','includes','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','debounce','forwardRef','YUUMI_SUBSCRIPTION_NOT_FOUND','ThemeService','application/json','COMPLETION_FINISHED','TEXT_RANGE_LAYER_INDEX','SNAPSHOT_INVALID_SNAPSHOT','requireSession','ColorKit','UniverInstanceType','_scheduleClearOtherTimer','onCommandExecuted','ISocketService','filter','getCollabCursors$','collabStatus.fetchMiss','_id','_cursor','createElement','black','_startSheetCollabCursor','lineTo','_setupSubUnitSync','IBeforeCloseService','Warning','subscribe','UniverIcon','createInstance','from','clipPath','174LsfTAs','setAlpha','_collaborationUIEventService','getItem','colorChannel1','_getScale','attrs','delete','SUBMIT_CHANGESET_TIMEOUT','LICENSE_DISTRO_REJECTED','unshift','NodePositionConvertToRectRange','InsertRangeMoveRightCommandId','pipe','ONLINE','currentSkeleton$','DesktopCollaborationStatusDisplayController','_transformUndoRedoStack','PERMISSION_DENIED','_cursorInfo$','verdancy600','LOCAL_CACHE_INTERVAL_KEY','toDisposable','_cursors','USERS_LEAVE','whenReady','distinctUntilChanged','uni.network.url-service','516005VCdIkx','_handleJoinEvent','SOCKET_FAILED_RETRY','takeUntil','LOCAL_CACHE_INTERVAL','pushState','WebSocketService','_getSheetObject','assign','ALREADY_EXISTS','237035YBNnVG','m1Prime','CollaborationDataLoaderController','asObservable','closePath','unitID','RegularPolygon','_getSaveTimeout','transform','path','memberID','clsx','_scheduleHeartbeat','_color','_assignedColors','_initDependencies','_colorAssignService','DocStateChangeManagerService','onPointerMove$','startRow','icon','_heartbeatTimer','handleInsertRow','updateOfflineData','_eventUnsubscribe','_context','findNodePositionByCharIndex','_initEntityListener','HEADER_MENU','storage','registerComponent','@univerjs/docs-ui','replace','registerRefRange','_initStatusComponent','_memberService','none','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','CollaborationStatusDisplay','saveImage','@univerjs/engine-render','InsertColCommandId','_getSessionTicket','_collabCursorController','displayName','currentTheme$','AWAITING_WITH_PENDING','getActiveSheet','forEach','getCellPositionByOffset','_toggleOffline','Shape','COLORS','_setupBeforeClosingHandler','color','all','UNDEFINED','#fff','mutations','Error','_handleHeartbeatEvent','session.will-retry','RichTextEditingMutation','with','BehaviorSubject','_entities','url(#off-line-single_clip0_910_343)','addObjects','_initResize','DeleteRangeMoveUpCommandId','setInterval','onMouseMove','getCollabEntity$','backgroundColor','CollaborationStatus','setParam','defineProperty','InsertRangeMoveDownCommandId','_entityInit$','actions','switchMap','_session','jsxs','_cursorShapes','search','_status$','skeleton','_name','toRgbString','_hover','5665040cFZztr','triggerDblclick','_saveTaskMap','CONFLICT','handleDeleteRangeMoveUp','SessionStatus','subunit','deepClone','M0\x200H16V16H0z','IMessageService','syncEditingCollabCursor','setItem','defs','_getAnchorBounding','complete','_scheduleSaving','652TzUkmV','collaboration-client-ui.config','getCurrent','_collabCursorState$','size','SetDocZoomRatioOperation','getRelativeToViewportCoord','sessionStatus$','prototype','setTimeout','getStateCache','mergeOverrideWithDependencies','online','3087270NQOUzd','handleInsertRangeMoveRight','removeParam','isTransformMutationsWithChangesetSuccess','Failed','getRangePointData','dispose$','_uiPartsService','getRenderById','params','red300','textRanges','extend','getCurrentRevOfUnit','AWAITING','0\x200\x2016\x2016','UniverCollaborationClientPlugin','disposeWithMe','react/jsx-runtime','top','split','clearInterval','react','SheetsSelectionsService','isActive','_logService','collab-client.tooltip.reconnect','serializeRangeWithSheet','subUnitId','collaboration.closeRoom','APPLY_REJECT','_saveCache','reconnect','jsx','fill','blue400','evenodd','useRef','addObject','_render','doc.mutation.rich-text-editing','useDependency','SHEET_VIEWPORT_KEY','beginPath','PENDING','91918qDJlTZ','_init','shareReplay','univer-online-status','connectInjector','_initStatusListener','subscribeEvent','purple300','_hovered','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','1em','@univerjs/core','addClipboardHook','IRenderManagerService','_updateLocalCursor','svg','_onCursorDelete','idSuffix','getSheetBySheetId','sheetId','sessionTicket','fillText','OnLineSingle','indexOf','_config','DOC_RANGE_TYPE','debug','0\x200\x2017\x2016','_localeService','drawWith','length','UNRECOGNIZED','HTTPService','createIdentifier','@univerjs/sheets','getFocusedUnit','getSkeleton','selections','isEditing','_docSkeletonManagerService','concat','undoState','EffectRefRangId','_backgroundColor','collabCursorState$','getMember','_syncEditingCollabCursorService','xlink:href','_removeCollabCursors','getUnhiddenWorksheets','UNIVER_DOC','_colorIndex','then','_docTransformStateCacheService','DocSelectionManagerService','UPDATE_CURSOR','@univerjs/docs','FromArray','getUnitId','_imageIoService','currentColor','_handleEvent','CollaborationSessionService','INVALID_ARGUMENT','text','useCallback','getCoordByCell','post','div','LICENSE_MAX_UNITS_EXCEEDED','restore','width','_range','roomMembers','transformMutationsWithChangeset','_commandService','docStateChange$','_injector','children','getDocRanges','createSocket','getMergeData','_collaborationController','RemoveRowCommandId','_ensureSubject','_doCreateSocket','row','transformStateCache','searchParams','IUIPartsService','function','_onCursorUpdate','fillStyle','LICENSE_IMPORT_SIZE_EXCEEDED','_renderManagerService','runId','handleDeleteRangeMoveLeft','FETCH_MISS','toStringTag','YUUMI_RATE_OVER_LIMIT','rxjs','getMemberID','find','onTransformChange$','use','setUndoRedoMutationParamsCache','handleInsertCol','registerDependencies','CollaborationSocketService','onPointerLeave$','[CollaborationDataLoaderController]','transformMutation','href','univer-flex\x20univer-items-center','SetSelectionsOperation','ICommandService','_send','useObservable','_unitStatus','moveTo','ACTIVE_UNIT_EVENT_CHANNEL','min','CONNECTOR_DATA_TOO_LARGE','InsertRowCommandId','propertyIsEnumerable','result','m2Prime','NodePositionConvertToCursor','DocSkeletonManagerService','Tools','exhaustSavingTask','focused$','merge','SYNCED','collaboration-client.offline-data-not-saved','@univerjs/engine-formula','transformSelections','hasOwnProperty','MUTATION','CollaborationUIEventService','selection','OTHER_CLIENTS_EDITING','_drawAnchor','RxDisposable','_httpService','mask','...','ISnapshotServerService','transformRemoteChangeset','_transformService','rxjs/operators','APPLY_NON_SEQUENTIAL_REVISION','isArray','height','getColor','ITransformService','getAncestorScale','handleInsertRangeMoveDown','CHANGESET_REVISION_CONFILICT','random','_localStorageService','column','WebBrowserSingleActiveUnitService','measureText','Unknown\x20user','_online','9793150RlXLTs','Subject','_labelPosition','_configService','TOO_MANY_REQUESTS','DataLoaderService','map','BuiltInUIPart','_transformPreviousActiveRange','_univerInstanceService','_messageService','replaceDocRanges','_textBubble','history','_startDocCollabCursor','Rectangle','@univerjs-pro/collaboration','wsSessionTicketUrl','setStateCache','YUUMI_URL_COL_OUT_OF_RANGE','_toggleOnline','_roomMembers$','_unitOnClients','Inject','_updateURLWithCurrentState','_clearOtherTimers','dispose','NOT_FOUND','YUUMI_UNABLE_LOAD_URL','DocIMEInputManagerService','entityInit$','collabStatus.syncing','UNIVER_SHEET','RemoteUniscriptService','error','unload','_disabled','fromEvent','status$','UnitStatus','Rect','_transformHistoryAndStateStack','_selfUnitIDs','LocaleService','_drawTextRange','range','getOwnPropertyDescriptor','labelPosition','touchDependencies','_updateSubUnitFromURLParams','LICENSE_EXPORT_SIZE_EXCEEDED','pluginName','init','url(#$1','Optional','isTransformMutationFailure','fillRule','getUnitStatus$','get','source','getParam','SOCKET_FAILED','_lastPointer','TEXT','@univerjs/design','registerRenderModule','_revisionService','hide','@univerjs/drawing','addHandlerCallback','round','IURLService','#FFF','_instanceService','getCurrentSelections','transformIMECache','_scene','eventID','getValue','_hideTimer','RECT','current','_cachedData','rgba(255,\x20255,\x20255,\x200.01)','generateRandomId','@univerjs/network','unsubscribe','getVpScrollXYInfoByPosToVp','assignAColorForMemberID','collabStatus.offline','CollaborationEvent','show','_drawRectRange','getConfig','clearTimeout','getLocalCacheKey','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ILocalCacheService'];_0x3883=function(){return _0x4530a9;};return _0x3883();}exports[_0x5b92c2(0x248)]=class extends a['Disposable']{constructor(_0x441770,_0xd1b0dc,_0x176aa6){const _0x8e429d=_0x5b92c2;super(),this[_0x8e429d(0x270)]=_0x441770,this[_0x8e429d(0x211)]=_0xd1b0dc,this[_0x8e429d(0x22a)]=_0x176aa6;}async['runOnServer'](_0x3d4935,_0x314fc7,_0x162e07,..._0x212ee5){const _0x3025ab=_0x5b92c2;var _0x1b1d5d,_0x3fdb1e,_0x5cfdd2,_0x4c76be;const _0x47a75e=this['_instanceService'][_0x3025ab(0x1a4)]();if(!_0x47a75e)throw new Error(_0x3025ab(0x2ea));const _0x3bec07=((_0x1b1d5d=this[_0x3025ab(0x22a)][_0x3025ab(0x284)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x1b1d5d:u[_0x3025ab(0x287)])+'/'+_0x3d4935+_0x3025ab(0x2c7)+_0x314fc7,_0xfaf693=new URL(window['location'][_0x3025ab(0x1f1)]),_0x38abc5={'scriptId':_0x3d4935,'runId':(_0x3fdb1e=_0xfaf693['searchParams']['get'](_0x3025ab(0x1e0)))!=null?_0x3fdb1e:'','function':_0x314fc7,'unitId':_0x47a75e[_0x3025ab(0x1bb)](),'argsOfFunction':JSON[_0x3025ab(0x2b3)](_0x212ee5),'invokeId':(_0x5cfdd2=_0x162e07['invokeId'])!=null?_0x5cfdd2:'','executionId':(_0x4c76be=_0x162e07[_0x3025ab(0x2f6)])!=null?_0x4c76be:''};try{const _0x8a6015=await this[_0x3025ab(0x211)][_0x3025ab(0x1c4)](_0x3bec07,{'body':_0x38abc5});return _0x8a6015[_0x3025ab(0x2ed)][_0x3025ab(0x249)]&&_0x8a6015[_0x3025ab(0x2ed)][_0x3025ab(0x249)][_0x3025ab(0x2f2)]!==Be['OK']?'Failed':_0x8a6015['body'][_0x3025ab(0x1fe)];}catch{return _0x3025ab(0x158);}}},exports[_0x5b92c2(0x248)]=_s([de(0x0,a[_0x5b92c2(0x305)]),de(0x1,a['Inject'](q[_0x5b92c2(0x1a1)])),de(0x2,a[_0x5b92c2(0x2b4)])],exports[_0x5b92c2(0x248)]),exports[_0x5b92c2(0x388)]=je,exports[_0x5b92c2(0x26e)]=Ee,exports['SheetCollabCursorShape']=ye,exports[_0x5b92c2(0x223)]=ls,exports[_0x5b92c2(0x2f5)]=ke;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x883446=_0x150c;(function(_0x3c1535,_0x2e2865){const _0x5265bb=_0x150c,_0x15f43a=_0x3c1535();while(!![]){try{const _0x1d8fae=parseInt(_0x5265bb(0x8e))/0x1+-parseInt(_0x5265bb(0x7c))/0x2*(-parseInt(_0x5265bb(0x8a))/0x3)+-parseInt(_0x5265bb(0x90))/0x4*(-parseInt(_0x5265bb(0x8b))/0x5)+parseInt(_0x5265bb(0x84))/0x6*(parseInt(_0x5265bb(0x8c))/0x7)+parseInt(_0x5265bb(0x7b))/0x8+-parseInt(_0x5265bb(0x8f))/0x9*(parseInt(_0x5265bb(0x83))/0xa)+-parseInt(_0x5265bb(0x79))/0xb;if(_0x1d8fae===_0x2e2865)break;else _0x15f43a['push'](_0x15f43a['shift']());}catch(_0x68c9b9){_0x15f43a['push'](_0x15f43a['shift']());}}}(_0x3a3c,0xd282e));function _0x3a3c(){const _0x115df0=['exports','1304478bsPREb','248958QVBrmq','72GMOaMZ','Connection\x20failed,\x20please\x20check\x20your\x20network.','25337125jxQGVQ','Collaboration\x20Conflict','3264608nUtAcv','4666ebDAyV','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Click\x20to\x20Reconnect','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','240bYSPNa','1176IHVnxP','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Authentication\x20Error','Syncing...','471GONeFW','399135aqnVsD','11207uqGxkz'];_0x3a3c=function(){return _0x115df0;};return _0x3a3c();}const e={'collab-client':{'tooltip':{'reconnect':_0x883446(0x80)}},'collabStatus':{'fetchMiss':_0x883446(0x82),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':_0x883446(0x89),'offline':_0x883446(0x85)},'session':{'connection-failed':_0x883446(0x91),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x883446(0x86),'collaboration-timeout':_0x883446(0x87)},'conflict':{'title':_0x883446(0x7a),'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':_0x883446(0x88),'content':_0x883446(0x81)},'collaboration':{'single-unit':{'warning':_0x883446(0x7d)},'closeRoom':_0x883446(0x7f)},'auth':{'needGotoLoginAlert':_0x883446(0x7e)}};function _0x150c(_0x260a27,_0x3a7b7e){const _0x3a3c61=_0x3a3c();return _0x150c=function(_0x150c2a,_0x23a007){_0x150c2a=_0x150c2a-0x79;let _0x4fcfc3=_0x3a3c61[_0x150c2a];return _0x4fcfc3;},_0x150c(_0x260a27,_0x3a7b7e);}module[_0x883446(0x8d)]=e;
|