@univerjs-pro/collaboration-client-ui 0.8.2-nightly.202506211606 → 0.8.2-nightly.202506231607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4016d8=_0x4980;(function(_0x426f9f,_0x1d90be){const _0xec07cc=_0x4980,_0x93ad86=_0x426f9f();while(!![]){try{const _0x528232=-parseInt(_0xec07cc(0x176))/0x1+-parseInt(_0xec07cc(0x173))/0x2+-parseInt(_0xec07cc(0x175))/0x3*(-parseInt(_0xec07cc(0x16f))/0x4)+parseInt(_0xec07cc(0x16d))/0x5+parseInt(_0xec07cc(0x17a))/0x6+parseInt(_0xec07cc(0x172))/0x7+-parseInt(_0xec07cc(0x170))/0x8*(parseInt(_0xec07cc(0x17b))/0x9);if(_0x528232===_0x1d90be)break;else _0x93ad86['push'](_0x93ad86['shift']());}catch(_0x1586e7){_0x93ad86['push'](_0x93ad86['shift']());}}}(_0x2c40,0x4acce));function _0x2c40(){const _0xf3d05e=['1527528BnhEwH','72pDRCeo','2883785pdywmH','get','752zlepqj','74544MbeGCz','extend','2317539KSfneX','1181512DzkeFP','_injector','1491nmKqwy','284176rvBUwm','runOnServer','RemoteUniscriptService','@univerjs-pro/collaboration-client-ui'];_0x2c40=function(){return _0xf3d05e;};return _0x2c40();}function _0x4980(_0xfcc3d,_0x581e8d){const _0x2c40a1=_0x2c40();return _0x4980=function(_0x498006,_0x30b313){_0x498006=_0x498006-0x16d;let _0x425f80=_0x2c40a1[_0x498006];return _0x425f80;},_0x4980(_0xfcc3d,_0x581e8d);}const t=require(_0x4016d8(0x179)),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x4016d8(0x177)](_0x58b5cc,_0x29c83b,..._0x3f0a0c){const _0x4aacf6=_0x4016d8;return this[_0x4aacf6(0x174)][_0x4aacf6(0x16e)](t[_0x4aacf6(0x178)])[_0x4aacf6(0x177)](_0x58b5cc,_0x29c83b,{},..._0x3f0a0c);}}e['FUniver'][_0x4016d8(0x171)](c);
1
+ 'use strict';const _0x5bafa6=_0x5270;(function(_0x34354b,_0x55d56e){const _0x17a5d6=_0x5270,_0x29daf7=_0x34354b();while(!![]){try{const _0x504d3f=parseInt(_0x17a5d6(0xca))/0x1*(-parseInt(_0x17a5d6(0xc9))/0x2)+parseInt(_0x17a5d6(0xc7))/0x3*(parseInt(_0x17a5d6(0xd2))/0x4)+parseInt(_0x17a5d6(0xce))/0x5*(-parseInt(_0x17a5d6(0xcd))/0x6)+-parseInt(_0x17a5d6(0xd4))/0x7+parseInt(_0x17a5d6(0xd0))/0x8*(-parseInt(_0x17a5d6(0xcc))/0x9)+-parseInt(_0x17a5d6(0xcf))/0xa+parseInt(_0x17a5d6(0xd1))/0xb;if(_0x504d3f===_0x55d56e)break;else _0x29daf7['push'](_0x29daf7['shift']());}catch(_0x598e44){_0x29daf7['push'](_0x29daf7['shift']());}}}(_0x4f95,0xb654c));function _0x4f95(){const _0x253c3c=['40hjpAzj','50273729KvXtoj','969620ADegHT','RemoteUniscriptService','4539521KUEmUV','runOnServer','@univerjs-pro/collaboration-client-ui','_injector','6VBHhts','FUniver','3532yGueYt','827lRBOmU','get','2297421GcwZFh','12eINxyR','1531460pQUjgw','3104070uVPnYC'];_0x4f95=function(){return _0x253c3c;};return _0x4f95();}const t=require(_0x5bafa6(0xc5)),e=require('@univerjs/core/facade');function _0x5270(_0x3d6582,_0x11e101){const _0x4f9561=_0x4f95();return _0x5270=function(_0x5270c0,_0x3d7349){_0x5270c0=_0x5270c0-0xc5;let _0x48ef7f=_0x4f9561[_0x5270c0];return _0x48ef7f;},_0x5270(_0x3d6582,_0x11e101);}class c extends e[_0x5bafa6(0xc8)]{['runOnServer'](_0x227e0c,_0x3fe219,..._0xf55e2d){const _0x2454ab=_0x5bafa6;return this[_0x2454ab(0xc6)][_0x2454ab(0xcb)](t[_0x2454ab(0xd3)])[_0x2454ab(0xd5)](_0x227e0c,_0x3fe219,{},..._0xf55e2d);}}e['FUniver']['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x30c27a=_0x2320;(function(_0xfb7e1d,_0x46eb39){const _0x28fe9b=_0x2320,_0x5cb23d=_0xfb7e1d();while(!![]){try{const _0x25a3a1=-parseInt(_0x28fe9b(0x244))/0x1+parseInt(_0x28fe9b(0x23d))/0x2*(-parseInt(_0x28fe9b(0x19b))/0x3)+parseInt(_0x28fe9b(0x1bd))/0x4*(-parseInt(_0x28fe9b(0x219))/0x5)+-parseInt(_0x28fe9b(0x3c7))/0x6*(parseInt(_0x28fe9b(0x223))/0x7)+parseInt(_0x28fe9b(0x1f6))/0x8+parseInt(_0x28fe9b(0x34d))/0x9*(-parseInt(_0x28fe9b(0x3df))/0xa)+parseInt(_0x28fe9b(0x16c))/0xb;if(_0x25a3a1===_0x46eb39)break;else _0x5cb23d['push'](_0x5cb23d['shift']());}catch(_0x1d2bfc){_0x5cb23d['push'](_0x5cb23d['shift']());}}}(_0x3f13,0x18cc0));var Ve=Object[_0x30c27a(0x1b4)],Xe=(_0x37bf52,_0x274a74,_0x13a6c9)=>_0x274a74 in _0x37bf52?Ve(_0x37bf52,_0x274a74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13a6c9}):_0x37bf52[_0x274a74]=_0x13a6c9,h=(_0x111273,_0x252c8e,_0xb15281)=>Xe(_0x111273,typeof _0x252c8e!=_0x30c27a(0x1e5)?_0x252c8e+'':_0x252c8e,_0xb15281);Object[_0x30c27a(0x1b4)](exports,Symbol[_0x30c27a(0x38a)],{'value':_0x30c27a(0x2c8)});const u=require(_0x30c27a(0x1b6)),a=require('@univerjs/core'),p=require(_0x30c27a(0x1f8)),G=require(_0x30c27a(0x2b1)),E=require(_0x30c27a(0x2a6)),Ge=require(_0x30c27a(0x2a8)),d=require(_0x30c27a(0x184)),m=require(_0x30c27a(0x286)),Y=require('@univerjs/docs'),be=require(_0x30c27a(0x2a4)),g=require(_0x30c27a(0x379)),$=require(_0x30c27a(0x279)),X=require(_0x30c27a(0x277)),P=require(_0x30c27a(0x367)),O=require(_0x30c27a(0x22a)),D=require(_0x30c27a(0x1ad)),M=require('react'),Ke=require(_0x30c27a(0x39e));var qe=Object[_0x30c27a(0x329)],ze=(_0x19cd65,_0x5f1f0b,_0x36941b,_0x21694e)=>{const _0x254f4b=_0x30c27a;for(var _0x369f89=_0x21694e>0x1?void 0x0:_0x21694e?qe(_0x5f1f0b,_0x36941b):_0x5f1f0b,_0x3726a2=_0x19cd65[_0x254f4b(0x2ff)]-0x1,_0x76770d;_0x3726a2>=0x0;_0x3726a2--)(_0x76770d=_0x19cd65[_0x3726a2])&&(_0x369f89=_0x76770d(_0x369f89)||_0x369f89);return _0x369f89;},Oe=(_0x3ee9d0,_0x498a1a)=>(_0x4bb43b,_0x4c5fff)=>_0x498a1a(_0x4bb43b,_0x4c5fff,_0x3ee9d0);let de=class extends a[_0x30c27a(0x2fa)]{constructor(_0x217b4c,_0x4a6a75){const _0x2b7a7e=_0x30c27a;super(),this[_0x2b7a7e(0x3b8)]=_0x217b4c,this[_0x2b7a7e(0x234)]=_0x4a6a75,this[_0x2b7a7e(0x271)]();}[_0x30c27a(0x271)](){const _0x5164ec=_0x30c27a,_0x40a3fa=this;this[_0x5164ec(0x20b)](this[_0x5164ec(0x3b8)][_0x5164ec(0x293)]({'onBeforePasteImage':async _0x4f5f38=>{const _0x593392=_0x5164ec,_0xf7e26a=await _0x40a3fa[_0x593392(0x234)][_0x593392(0x1ab)](_0x4f5f38);return _0xf7e26a?{'source':_0xf7e26a[_0x593392(0x1c1)],'imageSourceType':_0xf7e26a[_0x593392(0x1eb)]}:null;}}));}};de=ze([Oe(0x0,E[_0x30c27a(0x278)]),Oe(0x1,Ge[_0x30c27a(0x3fa)])],de);const Te=[_0x30c27a(0x1cd),_0x30c27a(0x333),_0x30c27a(0x29a),'red.300',_0x30c27a(0x2dc),'yellow.400'];class me extends a[_0x30c27a(0x27d)]{constructor(){const _0x27009b=_0x30c27a;super(...arguments),h(this,_0x27009b(0x3dd),new Map()),h(this,_0x27009b(0x21e),0x0);}[_0x30c27a(0x387)](_0x3ba0ec){const _0x2dbbae=_0x30c27a;if(this[_0x2dbbae(0x3dd)][_0x2dbbae(0x29e)](_0x3ba0ec))return this['_assignedColors']['get'](_0x3ba0ec);const _0x25d3ad=Te[this[_0x2dbbae(0x21e)]];return this[_0x2dbbae(0x21e)]=(this[_0x2dbbae(0x21e)]+0x1)%Te[_0x2dbbae(0x2ff)],this['_assignedColors'][_0x2dbbae(0x2f3)](_0x3ba0ec,_0x25d3ad),_0x25d3ad;}}function Pe(_0xe32420){const _0x2e3c1e=_0x30c27a;let _0x390fa2='';for(const _0x282ad6 of _0xe32420){const {startOffset:_0x5002de,endOffset:_0x3daa3e,isActive:_0x46ec9c,rangeType:_0x39f493,segmentId:_0xc4c0c3,segmentPage:_0x4bac9f}=_0x282ad6;_0x390fa2[_0x2e3c1e(0x2ff)]&&(_0x390fa2+=','),_0x390fa2+=_0x5002de+':'+_0x3daa3e+':'+(_0x46ec9c?'1':'0')+':'+_0x39f493+':'+_0xc4c0c3+':'+_0x4bac9f;}return _0x390fa2;}function Je(_0x39aa78){const _0x29618b=_0x30c27a,_0xceaa23=_0x39aa78[_0x29618b(0x3c1)](','),_0x5aecb8=[];for(const _0x203fd4 of _0xceaa23){const [_0xeffcd3,_0x3913e3,_0x20b873,_0x414a44,_0x152fab,_0x5559e8]=_0x203fd4[_0x29618b(0x3c1)](':');_0x5aecb8[_0x29618b(0x1b8)]({'startOffset':Number(_0xeffcd3),'endOffset':Number(_0x3913e3),'collapsed':_0xeffcd3===_0x3913e3,'isActive':_0x20b873==='1','rangeType':_0x414a44===a[_0x29618b(0x289)][_0x29618b(0x342)]?a[_0x29618b(0x289)]['TEXT']:a[_0x29618b(0x289)][_0x29618b(0x321)],'segmentId':typeof _0x152fab==_0x29618b(0x3d7)?String(_0x152fab):'','segmentPage':Number(_0x5559e8!=null?_0x5559e8:-0x1)});}return _0x5aecb8[_0x29618b(0x21f)](_0x26cd7f=>_0x26cd7f['isActive'])||(_0x5aecb8[0x0][_0x29618b(0x1f3)]=!0x0),_0x5aecb8;}class Ce extends a['RxDisposable']{constructor(){const _0x1342df=_0x30c27a;super(...arguments),h(this,'_collabCursorState$',new d[(_0x1342df(0x299))](null)),h(this,_0x1342df(0x312),this[_0x1342df(0x2a0)][_0x1342df(0x2d7)]());}[_0x30c27a(0x204)](_0x5496f3){const _0x1f3cfe=_0x30c27a,{unitID:_0x44258a,memberID:_0x3ad282,textRanges:_0x347ab1}=_0x5496f3,_0x1799d7=Pe(_0x347ab1);if(_0x1799d7==='')return;const _0x550000={'unitID':_0x44258a,'memberID':_0x3ad282,'selection':_0x1799d7};this[_0x1f3cfe(0x2a0)][_0x1f3cfe(0x2d2)](_0x550000);}}var Ze=Object[_0x30c27a(0x329)],Qe=(_0x8ca01,_0x2ce8c6,_0x104146,_0x1f4dae)=>{for(var _0x19ef15=_0x1f4dae>0x1?void 0x0:_0x1f4dae?Ze(_0x2ce8c6,_0x104146):_0x2ce8c6,_0x35bed1=_0x8ca01['length']-0x1,_0x4acd49;_0x35bed1>=0x0;_0x35bed1--)(_0x4acd49=_0x8ca01[_0x35bed1])&&(_0x19ef15=_0x4acd49(_0x19ef15)||_0x19ef15);return _0x19ef15;},L=(_0x22ab4c,_0x30b6e9)=>(_0x2289c3,_0x21445b)=>_0x30b6e9(_0x2289c3,_0x21445b,_0x22ab4c);const et=0x12c,tt=0x64;let Ie=class extends a[_0x30c27a(0x2fa)]{constructor(_0x3f6290,_0xbf536b,_0x581ed4,_0x422da7,_0x25947c,_0x250a44,_0x596692,_0x25992f,_0x56153b){const _0x4956d1=_0x30c27a;super(),h(this,_0x4956d1(0x323),!0x1),h(this,_0x4956d1(0x271),!0x1),h(this,_0x4956d1(0x3f6),new d[(_0x4956d1(0x299))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x4956d1(0x2d7)]()),h(this,_0x4956d1(0x242),new d[(_0x4956d1(0x299))]([])),h(this,_0x4956d1(0x215),this[_0x4956d1(0x242)][_0x4956d1(0x180)](d[_0x4956d1(0x1ce)](et))),h(this,_0x4956d1(0x3b0),a[_0x4956d1(0x265)](_0x574f9b=>{const _0x42d94a=_0x4956d1,_0x5e97b3={'eventID':m[_0x42d94a(0x39c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x42d94a(0x1c4)][_0x42d94a(0x347)](),'selection':Pe(_0x574f9b)}};this[_0x42d94a(0x1c4)]['send'](_0x5e97b3,this[_0x42d94a(0x2a5)]);},tt)),(this[_0x4956d1(0x2a5)]=_0x3f6290,this[_0x4956d1(0x1c4)]=_0xbf536b,this[_0x4956d1(0x236)]=_0x581ed4,this[_0x4956d1(0x302)]=_0x422da7,this[_0x4956d1(0x1df)]=_0x25947c,this[_0x4956d1(0x2b3)]=_0x250a44,this[_0x4956d1(0x3fe)]=_0x596692,this[_0x4956d1(0x3e3)]=_0x25992f,this['_commandService']=_0x56153b);}get['cursorInfo'](){const _0x38a10a=_0x30c27a;return this[_0x38a10a(0x3f6)][_0x38a10a(0x322)]();}get['roomMembers'](){const _0x3366f3=_0x30c27a;return this['_roomMembers$'][_0x3366f3(0x322)]();}['dispose'](){const _0x36429a=_0x30c27a;super[_0x36429a(0x196)](),this[_0x36429a(0x3f6)]['next'](new Map()),this[_0x36429a(0x3f6)][_0x36429a(0x39d)](),this[_0x36429a(0x242)][_0x36429a(0x2d2)]([]),this['_roomMembers$'][_0x36429a(0x39d)]();}[_0x30c27a(0x1e7)](){const _0x909aed=_0x30c27a;this[_0x909aed(0x271)]||(this['_init']=!0x0,this[_0x909aed(0x1c4)][_0x909aed(0x1e8)]['pipe'](d[_0x909aed(0x23f)](this[_0x909aed(0x320)]))['subscribe'](_0x3f6ac4=>{const _0x4c5267=_0x909aed;_0x3f6ac4===u[_0x4c5267(0x335)][_0x4c5267(0x31e)]?this[_0x4c5267(0x3a7)]():this[_0x4c5267(0x372)]();}),this[_0x909aed(0x1c4)][_0x909aed(0x386)]['pipe'](d['takeUntil'](this[_0x909aed(0x320)]))[_0x909aed(0x258)](_0x3e7f6d=>{const _0x20a0b6=_0x909aed,_0x2b76d3=_0x3e7f6d[_0x20a0b6(0x1d6)];_0x2b76d3===m[_0x20a0b6(0x39c)][_0x20a0b6(0x1fe)]&&this[_0x20a0b6(0x24d)](_0x3e7f6d),_0x2b76d3===m[_0x20a0b6(0x39c)][_0x20a0b6(0x2ea)]&&this['_onCursorDelete'](_0x3e7f6d);}),this[_0x909aed(0x20b)](this[_0x909aed(0x3a6)][_0x909aed(0x263)](_0xa1c098=>{const _0x127717=_0x909aed,_0x343ad6=_0xa1c098[_0x127717(0x222)];_0x343ad6!=null&&this[_0x127717(0x323)]&&_0xa1c098['id']===Y[_0x127717(0x336)]['id']&&_0x343ad6['unitId']===this[_0x127717(0x2a5)]&&_0x343ad6[_0x127717(0x200)]===!0x1&&_0x343ad6[_0x127717(0x303)][_0x127717(0x2ff)]>0x0&&this['_updateLocalCursor'](_0x343ad6[_0x127717(0x303)]);})),this['_syncEditingCollabCursorService'][_0x909aed(0x312)][_0x909aed(0x180)](d[_0x909aed(0x23f)](this[_0x909aed(0x320)]))[_0x909aed(0x258)](_0x3e4238=>{const _0x498446=_0x909aed;if((_0x3e4238==null?void 0x0:_0x3e4238[_0x498446(0x2a5)])!==this[_0x498446(0x2a5)])return;const _0x5ad799={'eventID':m[_0x498446(0x39c)][_0x498446(0x1fe)],'data':_0x3e4238};this[_0x498446(0x24d)](_0x5ad799);}),this[_0x909aed(0x20b)](this['_commandService'][_0x909aed(0x263)](_0x1720a3=>{const _0x3aaf57=_0x909aed;if(_0x1720a3[_0x3aaf57(0x222)]==null)return;const _0x34c7ff=_0x1720a3[_0x3aaf57(0x222)];if(_0x1720a3['id']!==Y[_0x3aaf57(0x18c)]['id']||_0x34c7ff['unitId']!==this[_0x3aaf57(0x2a5)])return;const _0x393b46={'id':'doc.mutation.rich-text-editing','params':_0x34c7ff},_0x26f8f7=this[_0x3aaf57(0x3ee)];for(const [_0x503882,_0x3b16d8]of _0x26f8f7){const _0x514d78={'id':_0x3aaf57(0x212),'params':{'unitId':this[_0x3aaf57(0x2a5)],'actions':null,'textRanges':_0x3b16d8['ranges']}},_0x3a6f5e=this[_0x3aaf57(0x3fe)][_0x3aaf57(0x399)](_0x393b46,_0x514d78,!0x1);if(m[_0x3aaf57(0x1c3)](_0x3a6f5e))throw _0x3a6f5e[_0x3aaf57(0x243)];_0x26f8f7['set'](_0x503882,{..._0x3b16d8,'ranges':_0x3a6f5e[_0x3aaf57(0x3f4)][_0x3aaf57(0x222)][_0x3aaf57(0x382)]});}queueMicrotask(()=>{const _0x5537d1=_0x3aaf57;this[_0x5537d1(0x3f6)][_0x5537d1(0x2d2)](_0x26f8f7);});})));}['_onCursorUpdate'](_0xd5248c){const _0x36d7d1=_0x30c27a;var _0x3c4674,_0x48898c;const {memberID:_0x144f51,selection:_0x41f107}=_0xd5248c[_0x36d7d1(0x190)],_0x2b1de8=Je(_0x41f107),_0x517dd5=(_0x48898c=(_0x3c4674=this[_0x36d7d1(0x1df)]['getMember'](this[_0x36d7d1(0x2a5)],_0x144f51))==null?void 0x0:_0x3c4674[_0x36d7d1(0x257)])!=null?_0x48898c:'Unknown\x20user',_0x4eec72={'color':this[_0x36d7d1(0x302)][_0x36d7d1(0x387)](_0x144f51),'name':_0x517dd5,'ranges':_0x2b1de8},_0x537c9a=this[_0x36d7d1(0x3ee)];_0x537c9a[_0x36d7d1(0x2f3)](_0x144f51,_0x4eec72),this[_0x36d7d1(0x3f6)][_0x36d7d1(0x2d2)](_0x537c9a);}[_0x30c27a(0x390)](_0x143316){const _0x553fd7=_0x30c27a,{memberID:_0x34d2ea}=_0x143316[_0x553fd7(0x190)],_0x1b2883=this[_0x553fd7(0x3ee)];_0x1b2883[_0x553fd7(0x33a)](_0x34d2ea),this['_cursorInfo$'][_0x553fd7(0x2d2)](_0x1b2883);}[_0x30c27a(0x3a7)](){const _0x2972c4=_0x30c27a;var _0x4ee1d1;if(this[_0x2972c4(0x323)]=!0x0,((_0x4ee1d1=this[_0x2972c4(0x3e3)][_0x2972c4(0x24e)]())==null?void 0x0:_0x4ee1d1[_0x2972c4(0x16f)]())!==this[_0x2972c4(0x2a5)])return;const _0x3e2540=this['_injector'][_0x2972c4(0x235)](Y[_0x2972c4(0x2e8)])['getDocRanges']();Array[_0x2972c4(0x2d5)](_0x3e2540)&&_0x3e2540[_0x2972c4(0x2ff)]>0x0&&this[_0x2972c4(0x3b0)](_0x3e2540);}[_0x30c27a(0x372)](){const _0xd6b4fd=_0x30c27a;this[_0xd6b4fd(0x323)]=!0x1;}};Ie=Qe([L(0x2,a[_0x30c27a(0x34b)](a['Injector'])),L(0x3,a[_0x30c27a(0x34b)](me)),L(0x4,a[_0x30c27a(0x34b)](u[_0x30c27a(0x37f)])),L(0x5,a[_0x30c27a(0x34b)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x30c27a(0x3e0)]),L(0x8,a[_0x30c27a(0x39f)])],Ie);var st=Object[_0x30c27a(0x329)],it=(_0x13ce7a,_0x1f34f7,_0xaa6ea1,_0x551563)=>{const _0x1b22d5=_0x30c27a;for(var _0x50d9a5=_0x551563>0x1?void 0x0:_0x551563?st(_0x1f34f7,_0xaa6ea1):_0x1f34f7,_0x2ee5df=_0x13ce7a[_0x1b22d5(0x2ff)]-0x1,_0x2dd1fc;_0x2ee5df>=0x0;_0x2ee5df--)(_0x2dd1fc=_0x13ce7a[_0x2ee5df])&&(_0x50d9a5=_0x2dd1fc(_0x50d9a5)||_0x50d9a5);return _0x50d9a5;},A=(_0x367d93,_0xc155ed)=>(_0x151bc9,_0x8df936)=>_0xc155ed(_0x151bc9,_0x8df936,_0x367d93);const nt=0x12c,rt=0x64,ot=()=>{let _0x1c8e74=[],_0x4af2df=!0x1;return _0x2c6212=>{_0x1c8e74['push'](_0x2c6212),_0x4af2df||(_0x4af2df=!0x0,setTimeout(()=>{_0x1c8e74['forEach'](_0x17edee=>_0x17edee()),_0x1c8e74=[],_0x4af2df=!0x1;}));};};let Se=class extends a[_0x30c27a(0x2fa)]{constructor(_0x540333,_0x278f35,_0x5058dc,_0x2940f9,_0x8189f7,_0x27816e,_0x30fce9,_0xf1a48e){const _0xeef00c=_0x30c27a;super(),h(this,_0xeef00c(0x323),!0x1),h(this,_0xeef00c(0x271),!0x1),h(this,_0xeef00c(0x3f6),new d[(_0xeef00c(0x299))](new Map())),h(this,_0xeef00c(0x3b3),this[_0xeef00c(0x3f6)]['asObservable']()),h(this,'_roomMembers$',new d[(_0xeef00c(0x299))]([])),h(this,_0xeef00c(0x215),this[_0xeef00c(0x242)][_0xeef00c(0x180)](d[_0xeef00c(0x1ce)](nt))),h(this,'_updateLocalCursor',a[_0xeef00c(0x265)]((_0x24c608,_0x553683)=>{const _0x27b02b=_0xeef00c,_0x39730c={'eventID':m['CollaborationEvent'][_0x27b02b(0x1fe)],'data':{'unitID':this[_0x27b02b(0x2a5)],'memberID':this[_0x27b02b(0x1c4)][_0x27b02b(0x347)](),'selection':be[_0x27b02b(0x314)](_0x24c608,_0x553683[_0x27b02b(0x3d6)])}};this[_0x27b02b(0x1c4)][_0x27b02b(0x37e)](_0x39730c,this['unitID']);},rt)),(this['unitID']=_0x540333,this[_0xeef00c(0x1c4)]=_0x278f35,this[_0xeef00c(0x236)]=_0x5058dc,this['_colorAssignService']=_0x2940f9,this['_memberService']=_0x8189f7,this[_0xeef00c(0x3e3)]=_0x27816e,this['_commandService']=_0x30fce9,this[_0xeef00c(0x186)]=_0xf1a48e);}get[_0x30c27a(0x3ee)](){const _0x3b50a4=_0x30c27a;return this[_0x3b50a4(0x3f6)][_0x3b50a4(0x322)]();}get[_0x30c27a(0x238)](){return this['_roomMembers$']['getValue']();}[_0x30c27a(0x196)](){const _0x39cea6=_0x30c27a;super[_0x39cea6(0x196)](),this[_0x39cea6(0x3f6)][_0x39cea6(0x2d2)](new Map()),this[_0x39cea6(0x3f6)][_0x39cea6(0x39d)](),this[_0x39cea6(0x242)][_0x39cea6(0x2d2)]([]),this['_roomMembers$'][_0x39cea6(0x39d)]();}[_0x30c27a(0x1e7)](){const _0xb4df21=_0x30c27a;this[_0xb4df21(0x271)]||(this['_init']=!0x0,this[_0xb4df21(0x1c4)]['sessionStatus$']['pipe'](d[_0xb4df21(0x23f)](this[_0xb4df21(0x320)]))['subscribe'](_0x31d9c8=>{const _0x44df14=_0xb4df21;_0x31d9c8===u[_0x44df14(0x335)][_0x44df14(0x31e)]?this[_0x44df14(0x3a7)]():this['_toggleOffline']();}),this[_0xb4df21(0x1c4)][_0xb4df21(0x386)][_0xb4df21(0x180)](d['takeUntil'](this[_0xb4df21(0x320)]))[_0xb4df21(0x258)](_0x4961f4=>{const _0x5057c4=_0xb4df21,_0x9a7e7a=_0x4961f4[_0x5057c4(0x1d6)];_0x9a7e7a===m['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x4961f4),_0x9a7e7a===m[_0x5057c4(0x39c)][_0x5057c4(0x2ea)]&&this[_0x5057c4(0x390)](_0x4961f4);}),this[_0xb4df21(0x331)](),this[_0xb4df21(0x20b)](this['_commandService'][_0xb4df21(0x263)](_0x380c0a=>{const _0x147aa8=_0xb4df21;if(this[_0x147aa8(0x323)]&&_0x380c0a['id']===g[_0x147aa8(0x250)]['id']&&_0x380c0a[_0x147aa8(0x222)][_0x147aa8(0x2ed)]===this[_0x147aa8(0x2a5)]){const _0x39975a=_0x380c0a[_0x147aa8(0x222)];this[_0x147aa8(0x3b0)](_0x39975a[_0x147aa8(0x1dd)],_0x39975a['selections'][0x0]);}})));}[_0x30c27a(0x24d)](_0x134e1c){const _0x36b22c=_0x30c27a;var _0xe0b155,_0x27e5f1;const {memberID:_0x3f0220,selection:_0xfb748}=_0x134e1c[_0x36b22c(0x190)],{sheetName:_0x51d1a9,range:_0x515e80}=be[_0x36b22c(0x3b2)](_0xfb748),_0x4233be={'name':(_0x27e5f1=(_0xe0b155=this[_0x36b22c(0x1df)][_0x36b22c(0x370)](this[_0x36b22c(0x2a5)],_0x3f0220))==null?void 0x0:_0xe0b155[_0x36b22c(0x257)])!=null?_0x27e5f1:_0x36b22c(0x211),'range':this['_getMergeRange'](_0x51d1a9,_0x515e80),'sheetID':_0x51d1a9,'color':this[_0x36b22c(0x302)][_0x36b22c(0x387)](_0x3f0220),'selection':_0xfb748},_0x36ade7=this[_0x36b22c(0x3ee)];_0x36ade7['set'](_0x3f0220,_0x4233be),this['_cursorInfo$']['next'](_0x36ade7);}[_0x30c27a(0x390)](_0x4d6bf9){const _0x3a5189=_0x30c27a,{memberID:_0x55a9cb}=_0x4d6bf9['data'],_0x382ae2=this[_0x3a5189(0x3ee)];_0x382ae2[_0x3a5189(0x33a)](_0x55a9cb),this[_0x3a5189(0x3f6)]['next'](_0x382ae2);}[_0x30c27a(0x173)](_0x25eb9e,_0x47e4d1){const _0x59044f=_0x30c27a;var _0x245439,_0x3ac421;const _0x6729be=(_0x3ac421=(_0x245439=this[_0x59044f(0x3e3)][_0x59044f(0x194)](this[_0x59044f(0x2a5)]))==null?void 0x0:_0x245439[_0x59044f(0x2ee)](_0x25eb9e))==null?void 0x0:_0x3ac421[_0x59044f(0x350)]();return(_0x6729be==null?void 0x0:_0x6729be[_0x59044f(0x2cd)](_0x519a50=>a[_0x59044f(0x2c1)]['contains'](_0x519a50,_0x47e4d1)))||_0x47e4d1;}[_0x30c27a(0x331)](){const _0x20647a=_0x30c27a,_0x1e17b2=new a['DisposableCollection'](),_0x1961e9=ot(),_0x31cadc=()=>{const _0xdd8bf9=_0x2320;_0x1e17b2[_0xdd8bf9(0x196)]();const _0x599f8d=(_0x1f90fc,_0x3c4087,_0x47898a,_0x5ed6f8)=>{const _0x3ed547=_0xdd8bf9;let _0x27bee5=[];switch(_0x1f90fc['id']){case g['EffectRefRangId'][_0x3ed547(0x225)]:{_0x27bee5=g[_0x3ed547(0x295)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x1c5)]:{_0x27bee5=g[_0x3ed547(0x349)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x3af)]:{_0x27bee5=g[_0x3ed547(0x3ce)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x2d9)]:{_0x27bee5=g[_0x3ed547(0x357)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x2db)]:{_0x27bee5=g[_0x3ed547(0x311)](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)]['InsertRowCommandId']:{_0x27bee5=g['handleInsertRow'](_0x1f90fc,_0x5ed6f8);break;}case g['EffectRefRangId'][_0x3ed547(0x1d1)]:{_0x27bee5=g['handleMoveRange'](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)][_0x3ed547(0x291)]:{_0x27bee5=g['handleIRemoveCol'](_0x1f90fc,_0x5ed6f8);break;}case g[_0x3ed547(0x3b9)]['RemoveRowCommandId']:{_0x27bee5=g[_0x3ed547(0x1e2)](_0x1f90fc,_0x5ed6f8);break;}}const _0x396a00=g['runRefRangeMutations'](_0x27bee5,_0x5ed6f8),_0x35de8a=this[_0x3ed547(0x3ee)]['get'](_0x3c4087);if(_0x35de8a&&_0x396a00){const _0x494e9f={..._0x35de8a,'range':_0x396a00};this[_0x3ed547(0x3ee)]['set'](_0x3c4087,_0x494e9f),_0x1961e9(()=>{const _0x403bfa=_0x3ed547,_0x55bd45=this[_0x403bfa(0x186)][_0x403bfa(0x31c)](_0x396a00,_0xa1e278=>(_0x55bd45[_0x403bfa(0x196)](),_0x599f8d(_0xa1e278,_0x3c4087,_0x47898a,_0x396a00)));_0x1e17b2['add'](_0x55bd45);});}return{'redos':[],'undos':[]};};this[_0xdd8bf9(0x3ee)][_0xdd8bf9(0x232)]((_0x239052,_0x2f422a)=>{const _0x44db86=_0xdd8bf9,{range:_0x2136e3,sheetID:_0xfa09c8}=_0x239052,_0x1907bb=this[_0x44db86(0x186)]['registerRefRange'](_0x2136e3,_0xbef6c3=>(_0x1907bb[_0x44db86(0x196)](),_0x599f8d(_0xbef6c3,_0x2f422a,_0xfa09c8,_0x2136e3)));_0x1e17b2[_0x44db86(0x20f)](_0x1907bb);});};this[_0x20647a(0x20b)](a[_0x20647a(0x19d)](this[_0x20647a(0x3f6)]['subscribe'](()=>{_0x31cadc();})));}[_0x30c27a(0x3a7)](){const _0xbb0c7d=_0x30c27a;var _0x118712,_0x24cd76;if(this['_online']=!0x0,((_0x118712=this[_0xbb0c7d(0x3e3)][_0xbb0c7d(0x24e)]())==null?void 0x0:_0x118712['getUnitId']())!==this[_0xbb0c7d(0x2a5)])return;const _0x29f289=(_0x24cd76=this['_injector']['get'](g[_0xbb0c7d(0x328)])[_0xbb0c7d(0x17e)]())==null?void 0x0:_0x24cd76[0x0],_0xb6dd83=this['_univerInstanceService'][_0xbb0c7d(0x337)](a[_0xbb0c7d(0x38f)][_0xbb0c7d(0x3d2)])[_0xbb0c7d(0x208)]();_0x29f289&&_0xb6dd83&&this[_0xbb0c7d(0x3b0)](_0xb6dd83[_0xbb0c7d(0x18b)](),_0x29f289);}['_toggleOffline'](){const _0x4f3d56=_0x30c27a;this[_0x4f3d56(0x323)]=!0x1;}};Se=it([A(0x2,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x30c27a(0x34b)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x30c27a(0x39f)]),A(0x7,a[_0x30c27a(0x34b)](g[_0x30c27a(0x1cb)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x44db5d,_0x4dc377,_0x599020,_0x344dc0)=>{for(var _0x4e8a93=_0x344dc0>0x1?void 0x0:_0x344dc0?at(_0x4dc377,_0x599020):_0x4dc377,_0x23e199=_0x44db5d['length']-0x1,_0x480d19;_0x23e199>=0x0;_0x23e199--)(_0x480d19=_0x44db5d[_0x23e199])&&(_0x4e8a93=_0x480d19(_0x4e8a93)||_0x4e8a93);return _0x4e8a93;},ie=(_0x365f17,_0x20a4d8)=>(_0x14d6d3,_0x45b59a)=>_0x20a4d8(_0x14d6d3,_0x45b59a,_0x365f17);let x=class extends a[_0x30c27a(0x2fa)]{constructor(_0x1705a8,_0x223fd2,_0x3c303a){const _0x5dec74=_0x30c27a;super(),h(this,_0x5dec74(0x380),new Map()),h(this,'_entityInit$',new d[(_0x5dec74(0x316))]()),(this['_univerInstanceService']=_0x1705a8,this['_injector']=_0x223fd2,this[_0x5dec74(0x1b1)]=_0x3c303a,this[_0x5dec74(0x271)]());}[_0x30c27a(0x196)](){const _0x4dd0c1=_0x30c27a;super[_0x4dd0c1(0x196)](),this[_0x4dd0c1(0x28c)][_0x4dd0c1(0x39d)](),this[_0x4dd0c1(0x380)][_0x4dd0c1(0x232)](_0x4d9df9=>_0x4d9df9['dispose']());}[_0x30c27a(0x3bb)](_0x527c46){const _0x348817=_0x30c27a;return this['_entities'][_0x348817(0x29e)](_0x527c46)?this[_0x348817(0x380)][_0x348817(0x235)](_0x527c46)[_0x348817(0x3b3)]:this[_0x348817(0x28c)][_0x348817(0x180)](d['filter'](_0x43d8cc=>_0x43d8cc[_0x348817(0x2a5)]===_0x527c46),d[_0x348817(0x361)](_0x2cb001=>_0x2cb001[_0x348817(0x3b3)]));}[_0x30c27a(0x271)](){const _0x10d40f=_0x30c27a;this[_0x10d40f(0x3e3)][_0x10d40f(0x30f)](a[_0x10d40f(0x38f)][_0x10d40f(0x3d2)])[_0x10d40f(0x180)](d[_0x10d40f(0x23f)](this['dispose$']))['subscribe'](async _0x155d2c=>{const _0x1766e2=_0x10d40f,_0x402520=_0x155d2c['getUnitId'](),_0x19c1b7=await this[_0x1766e2(0x2cc)](_0x402520);this[_0x1766e2(0x28c)][_0x1766e2(0x2d2)](_0x19c1b7),this[_0x1766e2(0x380)][_0x1766e2(0x2f3)](_0x402520,_0x19c1b7);}),this[_0x10d40f(0x3e3)][_0x10d40f(0x30f)](a[_0x10d40f(0x38f)][_0x10d40f(0x394)])[_0x10d40f(0x180)](d[_0x10d40f(0x23f)](this[_0x10d40f(0x320)]))['pipe'](d[_0x10d40f(0x3f5)](_0x134cbc=>!_0x134cbc[_0x10d40f(0x16f)]()[_0x10d40f(0x1c0)]('__')))[_0x10d40f(0x258)](async _0x2ef52b=>{const _0x36d65d=_0x10d40f,_0x4dcf53=_0x2ef52b[_0x36d65d(0x16f)](),_0x56efde=await this[_0x36d65d(0x25d)](_0x4dcf53);this[_0x36d65d(0x28c)][_0x36d65d(0x2d2)](_0x56efde),this['_entities'][_0x36d65d(0x2f3)](_0x4dcf53,_0x56efde);}),d[_0x10d40f(0x2bb)](this['_univerInstanceService'][_0x10d40f(0x267)](a[_0x10d40f(0x38f)]['UNIVER_DOC']),this[_0x10d40f(0x3e3)][_0x10d40f(0x267)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x10d40f(0x180)](d['takeUntil'](this[_0x10d40f(0x320)]))[_0x10d40f(0x258)](_0x46028b=>{const _0x11e812=_0x10d40f,_0x203419=_0x46028b[_0x11e812(0x16f)](),_0x2d911b=this[_0x11e812(0x380)][_0x11e812(0x235)](_0x203419);_0x2d911b&&(_0x2d911b[_0x11e812(0x196)](),this[_0x11e812(0x380)][_0x11e812(0x33a)](_0x203419));});}async['_startSheetCollabCursor'](_0x22ad37){const _0x15f19a=_0x30c27a,_0x4258b5=await this['_collabSessionService'][_0x15f19a(0x2b8)](_0x22ad37),_0x579746=this['_injector'][_0x15f19a(0x3ad)](Se,_0x22ad37,_0x4258b5);return _0x579746[_0x15f19a(0x1e7)](),_0x579746;}async['_startDocCollabCursor'](_0x47f5ef){const _0x15fa5e=_0x30c27a,_0x387169=await this[_0x15fa5e(0x1b1)][_0x15fa5e(0x2b8)](_0x47f5ef),_0x2760bc=this['_injector'][_0x15fa5e(0x3ad)](Ie,_0x47f5ef,_0x387169);return _0x2760bc[_0x15fa5e(0x1e7)](),_0x2760bc;}};x=ct([ie(0x0,a[_0x30c27a(0x3e0)]),ie(0x1,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),ie(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x1be)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _0x3f13(){const _0x4fb1e8=['MemberService','_entities','code','textRanges','_cachedData','none','unit','event$','assignAColorForMemberID','_drawTextRange','focused$','toStringTag','mapTo','defIds','_removeClearOtherTimer','IMessageService','UniverInstanceType','_onCursorDelete','_docTransformStateCacheService','with','beginPath','UNIVER_DOC','setActiveRange','evenodd','white','TOO_MANY_REQUESTS','transformMutation','_docSyncEditingCollabCursorService','svg','CollaborationEvent','complete','@univerjs/rpc','ICommandService','UniverIcon','SetWorksheetActivateCommand','setParam','updateOfflineData','_registerDependencies','toRgbString','_commandService','_toggleOnline','addObjects','FromArray','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','DocStateChangeManagerService','isTransformMutationsWithChangesetSuccess','createInstance','history','InsertColCommandId','_updateLocalCursor','_cursorShapes','deserializeRangeWithSheet','cursorInfo$','LICENSE_MAX_UNITS_EXCEEDED','translate(.97)','transformRemoteChangeset','unload','_docClipboardService','EffectRefRangId','propertyIsEnumerable','getCollabCursors$','endColumn','INVALID_ARGUMENT','fromEventSubject','getUnitStatus$','_backgroundColor','split','replace','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','defs','_removeCollabCursors','text','93516PBNLok','onLocalMutation','_initDependencies','INVITE_CODE_REQUIRED','INTERNAL_ERROR','Vector2','MUTATION','handleInsertCol','useDependency','_transformUndoRedoStack','_send','UNIVER_SHEET','clearInterval','sheetID','displayName','range','string','_ensureSubject','clearTimeout','AWAITING','then','collabStatus.syncing','_assignedColors','YUUMI_ASYNCIO_CANCELLED','27420IIFeLL','IUniverInstanceService','CHANGESET_REVISION_CONFILICT','addHandlerCallback','_univerInstanceService','YUUMI_UNABLE_LOAD_URL','_hovered','useObservable','mask','_handleHeartbeatEvent','setStateCache','DesktopCollaborationStatusDisplayController','_docTransformSelectionsService','registerDependencies','getRelativeToViewportCoord','cursorInfo','getConfig','OnLineIcon','getDocRanges','trim','_initEvent','m2Prime','filter','_cursorInfo$','executeCommand','_hover','getVpScrollXYInfoByPosToVp','IImageIoService','YUUMI_SUBSCRIPTION_NOT_FOUND','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','className','_transformService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','arc','6109290WGzDRC','DependentOn','_transformPreviousActiveRange','getUnitId','attrs','_createSocketURL','path','_getMergeRange','saveTaskMap','_color','_cursors','_localStorageService','_configService','_name','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformHistoryAndStateStack','forwardRef','CollaborationStatusDisplay','getCurrentSelections','top','pipe','_docTransformIMECacheService','_hideTimer','uni.network.url-service','rxjs','NodePositionConvertToRectRange','_refRangeService','APPLY_PERMISSION_DENIED','registerRenderModule','substring','EMAIL_HAS_BEEN_BOUND','getSheetId','RichTextEditingMutation','[RemoteUniscriptService]:\x20no\x20focused\x20unit','COLORS','_textBubble','data','memberID','mergeOverrideWithDependencies','Warning','getUniverSheetInstance','editingUnit','dispose','_unitStatus','bottom','colorChannel1','save','455199sjbdpS','whenReady','toDisposable','_sheetSkeletonManagerService','_id','newValue','ticket','_handleHover','IURLService','sessionTicket','NOT_COLLAB','collabStatus.offline','ISocketService','APPLY_DUPLICATED','setTimeout','ENSURE_SNAPSHOT_EXECUTION','saveImage','undoState','@univerjs/design','jsx','ACTIVE_UNIT_EVENT_CHANNEL','IRemoteInstanceService','_collabSessionService','pushState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','defineProperty','DataLoaderService','@univerjs-pro/collaboration-client','combineLatest','push','_collaborationController','_instanceService','LOCAL_CACHE_INTERVAL_KEY','_scene','4196YaCWaF','CollaborationSessionService','stringify','startsWith','source','disableLocalCache','isTransformMutationFailure','_session','DeleteRangeMoveUpCommandId','INVALID_INVITE_CODE','permission.title','DocCollaborationEntity','createIdentifier','getCurrent','RefRangeService','_updateURLWithCurrentState','purple.300','debounceTime','registerComponent','startColumn','MoveRangeCommandId','0\x200\x2017\x2016','getUnhiddenWorksheets','unsubscribe','_uiPartsService','eventID','createSocket','CollaborationUIEventId','ILocalStorageService','round','_getScale','LOGIN_FAILED','subUnitId','univer-mr-2\x20univer-flex\x20univer-text-xl','_memberService','_saveTaskMap','on-line-icon_clip0_910_349','handleIRemoveRow','UniverCollaborationClientUIPlugin','use','symbol','searchParams','init','sessionStatus$','CollaborationStatus','_initCommandExecutedListener','imageSourceType','fromEvent','collab-text-anchor-','Rect','rgba(255,\x20255,\x20255,\x200.01)','_refreshCollabCursors','session.will-retry','concat','isActive','_selfUnitIDs','executionId','1070056xOUxMw','url(#$1','@univerjs/engine-render','function','onPointerLeave$','from','loadUnit','_beforeCloseService','UPDATE_CURSOR','shareReplay','isEditing','invokeId','closePath','PERMISSION_DENIED','syncEditingCollabCursor','_revisionService','_handleLeaveEvent','_config','getActiveSheet','_anchorDot','idSuffix','disposeWithMe','origin','...','_themeService','add','MOBILE_VERIFY_CODE_MISMATCH','Unknown\x20user','doc.mutation.rich-text-editing','LocaleService','skeleton','roomMembers$','collab-text-range-','setAlpha','connectInjector','50SOTNVN','YUUMI_ALL_TABLES_IS_INVALID','moveTo','M0\x200H16V16H0z','urlChange$','_colorIndex','some','DocIMEInputManagerService','NodePositionConvertToCursor','params','14JpQNdO','http://www.w3.org/2000/svg','DeleteRangeMoveLeftCommandId','getStateCache','CONFLICT','collaboration-client-ui.config','INVITE_CODE_ALREADY_BOUND','@univerjs/ui','UNDEFINED','COMPLETION_FINISHED','wsSessionTicketUrl','IConfigService','OffLineIcon','apply','UNAUTHENTICATED','forEach','location','_imageIoService','get','_injector','_scheduleHeartbeat','roomMembers','WECHAT_HAS_BEEN_BOUND','SYNCED','saveOfflineData','MOBILE_HAS_BEEN_BOUND','2DBxwxU','_drawAnchor','takeUntil','ColorKit','_scheduleSaving','_roomMembers$','error','191276PADzWw','1em','setShapeProps','WebURLService','Injector','distinctUntilChanged','CONNECTOR_DATA_TOO_LARGE','_shapes','APPLY_NON_SEQUENTIAL_REVISION','_onCursorUpdate','getFocusedUnit','_docStateChangeManagerService','SetSelectionsOperation','SheetCollabCursorShape','_httpService','onPointerEnter$','ILocalCacheService','getUndoRedoMutationParamsCache','collaboration.closeRoom','name','subscribe','fillStyle','enableLocalCache','YUUMI_TABLE_NOT_FOUND_IN_UNIT','font','_startDocCollabCursor','_notificationService','Optional','unshift','currentColor','findNodePositionByCharIndex','onCommandExecuted','generateRandomId','debounce','CollaborationDataLoaderController','getTypeOfUnitDisposed$','YUUMI_RATE_OVER_LIMIT','mutations','color','_context','_getSessionTicket','IBeforeCloseService','CommandType','all','_localeService','_init','_initResize','off-line-icon_clip0_910_343','deepClone','onMouseMove','_getSaveTimeout','@univerjs/sheets-ui','IDocClipboardService','rxjs/operators','hovered','row','_setupSubUnitSync','Disposable','triggerDblclick','FETCH_MISS','removeParam','getOwnPropertySymbols','SNAPSHOT_INVALID_SNAPSHOT','INotificationService','_initEntityListener','NO_OTHER_CLIENTS_EDITING','@univerjs-pro/collaboration','getRenderById','height','DOC_RANGE_TYPE','JOIN_ROOM_FAILED','_doCreateSocket','_entityInit$','_range','IUIPartsService','restore','toString','RemoveColCommandId','subunit','addClipboardHook','replaceState','handleDeleteRangeMoveLeft','ALREADY_EXISTS','xlink:href','OTHER_CLIENTS_EDITING','BehaviorSubject','green.600','_anchor','fill','m1Prime','has','HEADER_MENU','_collabCursorState$','_logService','Plugin','status$','@univerjs/engine-formula','unitID','@univerjs/docs-ui','lineTo','@univerjs/drawing','size','call','_status$','column','UnitStatus','HTTPService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','random','@univerjs/network','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_syncEditingCollabCursorService','onStarting','fillText','transformStateCache','labelPosition','requireSession','_saveCache','_updateCollabCursors','merge','getCurrentRevOfUnit','selection','_dataLoaderService','getSkeleton','ISnapshotServerService','Rectangle','PY_RUNTIME_SCRIPT_ERROR','assign','_scheduleClearOtherTimer','_messageService','result','entries','Module','SetDocZoomRatioOperation','Tools','CollaborationUIEventService','_startSheetCollabCursor','find','reconnect','icon','extend','values','next','getColor','_render','isArray','currentSkeleton$','asObservable','YUUMI_AI_RUN_FAILED','InsertRangeMoveDownCommandId','getAncestorScale','InsertRangeMoveRightCommandId','blue.400','tag','MessageType','YUUMI_NO_CUBOID_FOR_QUESTION','_setupBeforeClosingHandler','Failed','runOnServer','[CollaborationDataLoaderController]','/run/','jsxs','Error','RegularPolygon','DocSelectionManagerService','resize','USERS_LEAVE','_heartbeatTimer','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','unitId','getSheetBySheetId','LICENSE_DISTRO_REJECTED','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','sheetId','set','LICENSE_EXPORT_SIZE_EXCEEDED','prototype','includes','width','addObject','off-line-icon','RxDisposable','EMAIL_VERIFY_CODE_MISMATCH','min','univer-flex\x20univer-items-center','hide','length','_getSheetObject','NOT_FOUND','_colorAssignService','ranges','debug','div','disposeUnit','IRenderManagerService','body','application/json','getSheetObject','_eventUnsubscribe','_updateSubUnitFromURLParams','pluginName','endRow','getTypeOfUnitAdded$','startRow','handleInsertRangeMoveRight','collabCursorState$','_initStatusComponent','serializeRangeWithSheet','redoState','Subject','black','entityInit$','session.connection-failed','getParam','type','registerRefRange','hasOwnProperty','ONLINE','_disabled','dispose$','RECT','getValue','_online','_handleEvent','setUndoRedoMutationParamsCache','_unitOnClients','APPLY_REVISION_CONFILICT','SheetsSelectionsService','getOwnPropertyDescriptor','backgroundColor','setConfig','show','_labelPosition','APPLY_REJECT','UniverCollaborationClientPlugin','CollaborationSocketService','_onRefRangeChange','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','jiqing.500','getCellPositionByOffset','SessionStatus','SetTextSelectionsOperation','getCurrentUnitForType','on-line-icon','_localCacheService','delete','_urlService','createElement','_lastPointer','indexOf','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ITransformService','TEXT','_docSkeletonManagerService','USER_NOT_INVITED_CODE','TEXT_RANGE_LAYER_INDEX','UNRECOGNIZED','getMemberID','_collaborationUIEventService','handleDeleteRangeMoveUp','DocSkeletonManagerService','Inject','getLocalCacheKey','666iCyVsY','0\x200\x2016\x2016','makeDirty','getMergeData','drawWith','getColorFromTheme','getViewport','_registerRenderDependencies','ILogService','SHEET_VIEWPORT_KEY','handleInsertRangeMoveDown','_clearOtherTimers','INVITE_CODE_HAS_BEEN_UES','getRangePointData','onRendered','popstate','setItem','currentTheme$','CollaborationController','key','switchMap','search','_collabCursorController','subscribeEvent','transformMutationsWithChangeset','actions','react/jsx-runtime','map','touchDependencies','ThemeService','OFFLINE','YUUMI_URL_COL_OUT_OF_RANGE','AWAITING_WITH_PENDING','LOCAL_CACHE_INTERVAL','_cursor','getMember','_drawRectRange','_toggleOffline','href','measureText','_docSkeleton','runId','RemoteUniscriptService','BuiltInUIPart','@univerjs/sheets','children','_renderManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collab-rect-range-','send'];_0x3f13=function(){return _0x4fb1e8;};return _0x3f13();}function _t(_0x31b99e,_0x3c9bc0){const _0x590836=_0x30c27a;let {radius:_0x981ae,width:_0x5374dd,height:_0x10855b}=_0x3c9bc0;_0x981ae=_0x981ae!=null?_0x981ae:0x0,_0x5374dd=_0x5374dd!=null?_0x5374dd:0x1e,_0x10855b=_0x10855b!=null?_0x10855b:0x1e;let _0x5f0e9d=0x0,_0x2baf20=0x0,_0x59863a=0x0;_0x5f0e9d=_0x2baf20=_0x59863a=Math['min'](_0x981ae,_0x5374dd/0x2,_0x10855b/0x2),_0x31b99e[_0x590836(0x393)](),_0x31b99e[_0x590836(0x21b)](_0x5f0e9d,0x0),_0x31b99e[_0x590836(0x2a7)](_0x5374dd-_0x2baf20,0x0),_0x31b99e[_0x590836(0x400)](_0x5374dd-_0x2baf20,_0x2baf20,_0x2baf20,Math['PI']*0x3/0x2,0x0,!0x1),_0x31b99e[_0x590836(0x2a7)](_0x5374dd,_0x10855b-_0x59863a),_0x31b99e[_0x590836(0x400)](_0x5374dd-_0x59863a,_0x10855b-_0x59863a,_0x59863a,0x0,Math['PI']/0x2,!0x1),_0x31b99e[_0x590836(0x2a7)](0x0,_0x10855b),_0x31b99e[_0x590836(0x2a7)](0x0,_0x5f0e9d),_0x31b99e['arc'](_0x5f0e9d,_0x5f0e9d,_0x5f0e9d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x31b99e[_0x590836(0x202)](),_0x3c9bc0[_0x590836(0x29c)]&&(_0x31b99e['save'](),_0x31b99e[_0x590836(0x259)]=_0x3c9bc0['fill'],_0x3c9bc0['fillRule']===_0x590836(0x396)?_0x31b99e[_0x590836(0x29c)](_0x590836(0x396)):_0x31b99e[_0x590836(0x29c)](),_0x31b99e[_0x590836(0x28f)]());}class ee extends p['Shape']{constructor(_0x334201,_0x16cd12){const _0x2564cc=_0x30c27a;super(_0x334201,_0x16cd12),h(this,_0x2564cc(0x26a)),h(this,_0x2564cc(0x3c6)),(this['color']=_0x16cd12==null?void 0x0:_0x16cd12[_0x2564cc(0x26a)],this[_0x2564cc(0x3c6)]=_0x16cd12==null?void 0x0:_0x16cd12[_0x2564cc(0x3c6)]);}static['drawWith'](_0x5b73dd,_0x3b79ac){const _0x12ada3=_0x30c27a,{text:_0x33e0c5,color:_0xb77c04}=_0x3b79ac;_0x5b73dd[_0x12ada3(0x19a)](),_0x5b73dd[_0x12ada3(0x25c)]=_0x12ada3(0x3aa);const _0x3b1eb8=_0x5b73dd[_0x12ada3(0x374)](_0x33e0c5)['width'],_0x276188=Math[_0x12ada3(0x2fc)](_0x3b1eb8+0x2*ne,Re);_t(_0x5b73dd,{'height':K,'radius':0x4,'width':_0x276188,'fill':_0xb77c04}),_0x5b73dd['fillStyle']='#FFF';const _0xf246e3=ne,_0x2087b5=K-lt,_0xd18aee=Re-0x2*ne;if(_0x3b1eb8>_0xd18aee){let _0x185696='',_0x579091=0x0;for(const _0x127a2a of _0x33e0c5){const _0x4827ea=_0x5b73dd[_0x12ada3(0x374)](_0x127a2a)[_0x12ada3(0x2f7)];if(_0x579091+_0x4827ea<=_0xd18aee-_0x5b73dd[_0x12ada3(0x374)](_0x12ada3(0x20d))[_0x12ada3(0x2f7)])_0x185696+=_0x127a2a,_0x579091+=_0x4827ea;else{_0x185696+=_0x12ada3(0x20d);break;}}_0x5b73dd[_0x12ada3(0x2b5)](_0x185696,_0xf246e3,_0x2087b5);}else _0x5b73dd['fillText'](_0x33e0c5,_0xf246e3,_0x2087b5);_0x5b73dd['restore']();}['_draw'](_0x295400){ee['drawWith'](_0x295400,this);}}const re=_0x30c27a(0x1ed),ht=_0x30c27a(0x216),ut=_0x30c27a(0x37d),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x30c27a(0x1ef);class De{constructor(_0x3c028f,_0x21231f,_0x11172a,_0x13fbe0){const _0x306159=_0x30c27a;h(this,'_shapes',[]),h(this,_0x306159(0x29b),null),h(this,_0x306159(0x18f),null),h(this,_0x306159(0x209),null),h(this,_0x306159(0x182),null),h(this,_0x306159(0x30b),null),(this['_cursor']=_0x3c028f,this[_0x306159(0x1bc)]=_0x21231f,this[_0x306159(0x375)]=_0x11172a,this['_document']=_0x13fbe0,this[_0x306159(0x2d4)]());}set[_0x30c27a(0x3f8)](_0x499085){const _0x5774ce=_0x30c27a;_0x499085?(this['_anchorDot']&&this[_0x5774ce(0x209)][_0x5774ce(0x2fe)](),this[_0x5774ce(0x18f)]&&this[_0x5774ce(0x18f)][_0x5774ce(0x32c)]()):(this['_anchorDot']&&this[_0x5774ce(0x209)]['show'](),this[_0x5774ce(0x18f)]&&this[_0x5774ce(0x18f)][_0x5774ce(0x2fe)]());}[_0x30c27a(0x196)](){const _0x2ca18c=_0x30c27a;for(const _0x1f9cd2 of this[_0x2ca18c(0x24b)])_0x1f9cd2['dispose']();this['_textBubble']&&this[_0x2ca18c(0x18f)]['dispose'](),this[_0x2ca18c(0x209)]&&this[_0x2ca18c(0x209)][_0x2ca18c(0x196)](),this[_0x2ca18c(0x29b)]&&this['_anchor'][_0x2ca18c(0x196)](),this[_0x2ca18c(0x30b)]&&this['_eventUnsubscribe']();}['_render'](){const _0x228f5c=_0x30c27a;var _0x55b6b;const {_docSkeleton:_0x3fd6da,_document:_0x5a6678}=this,{color:_0x3351fd,name:_0x35bc33,ranges:_0x5bea79}=this[_0x228f5c(0x36f)],_0xe58d4f=_0x5a6678['getOffsetConfig'](),{docsLeft:_0x848521,docsTop:_0x591122}=_0xe58d4f,_0x4ca715=new E[(_0x228f5c(0x221))](_0xe58d4f,_0x3fd6da);for(const {startOffset:_0x59b4ef,endOffset:_0x1aebc2,rangeType:_0x21403d,segmentId:_0x981303,segmentPage:_0x17d52f,collapsed:_0x1b4cac,isActive:_0x149108}of _0x5bea79){const _0x492fe9=_0x3fd6da['findNodePositionByCharIndex'](_0x59b4ef,!0x0,_0x981303,_0x17d52f);let _0x2db12a=_0x3fd6da[_0x228f5c(0x262)](_0x1aebc2,!0x0,_0x981303,_0x17d52f);if(_0x2db12a==null&&(_0x2db12a=_0x3fd6da[_0x228f5c(0x262)](_0x1aebc2-0x1,!0x1,_0x981303,_0x17d52f)),_0x149108){const {contentBoxPointGroup:_0x38d207}=_0x4ca715[_0x228f5c(0x35a)](_0x2db12a,_0x2db12a);if(_0x38d207[_0x228f5c(0x2ff)]===0x0)continue;this[_0x228f5c(0x23e)](_0x3351fd,_0x38d207,_0x848521,_0x591122,_0x35bc33),this[_0x228f5c(0x30b)]=this[_0x228f5c(0x1a2)]();}if(_0x492fe9&&_0x2db12a){if(_0x21403d===a['DOC_RANGE_TYPE']['RECT']){const _0x8f856d=new E[(_0x228f5c(0x185))](_0xe58d4f,_0x3fd6da),{pointGroup:_0x4995b9}=(_0x55b6b=_0x8f856d[_0x228f5c(0x35a)](_0x492fe9,_0x2db12a))!=null?_0x55b6b:{};if(_0x4995b9==null||_0x4995b9[_0x228f5c(0x2ff)]===0x0)continue;this[_0x228f5c(0x371)](_0x3351fd,_0x4995b9,_0x848521,_0x591122);}else{if(!_0x1b4cac){const {borderBoxPointGroup:_0x5366c9}=_0x4ca715[_0x228f5c(0x35a)](_0x492fe9,_0x2db12a);if(_0x5366c9['length']===0x0)continue;this['_drawTextRange'](_0x3351fd,_0x5366c9,_0x848521,_0x591122);}}}}}[_0x30c27a(0x23e)](_0x5c198a,_0x29d63c,_0x2646ec,_0x65d03e,_0x173830){const _0x42e82d=_0x30c27a,_0x2689c3=this[_0x42e82d(0x2f0)](_0x29d63c),{left:_0x2acb33,top:_0x8f8ed0,height:_0x263a7d}=_0x2689c3,_0x29738b=this['_getScale'](),_0x5ef50a=It/_0x29738b,_0x14e437=new p[(_0x42e82d(0x1ee))](re+a[_0x42e82d(0x2ca)][_0x42e82d(0x264)](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e,'height':_0x263a7d,'width':dt,'fill':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'strokeWidth':_0x5ef50a,'stroke':St,'evented':!0x0});this[_0x42e82d(0x29b)]=_0x14e437,this[_0x42e82d(0x1bc)][_0x42e82d(0x2f8)](_0x14e437,E[_0x42e82d(0x345)]);const _0x3135fc=new p['Rect'](re+a[_0x42e82d(0x2ca)]['generateRandomId'](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e-oe/0x2,'height':oe,'width':oe,'fill':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'strokeWidth':0x0,'stroke':_0x5c198a||p[_0x42e82d(0x2d3)](a[_0x42e82d(0x18e)][_0x42e82d(0x317)],0x0),'evented':!0x1});this[_0x42e82d(0x209)]=_0x3135fc,this[_0x42e82d(0x1bc)][_0x42e82d(0x2f8)](_0x3135fc,E[_0x42e82d(0x345)]);const _0x3dcb5a=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x2acb33+_0x2646ec-_0x5ef50a,'top':_0x8f8ed0+_0x65d03e-K,'text':_0x173830,'color':_0x5c198a});this[_0x42e82d(0x18f)]=_0x3dcb5a,this['_scene'][_0x42e82d(0x2f8)](_0x3dcb5a,E[_0x42e82d(0x345)]),this[_0x42e82d(0x3f8)]=!0x1;}['_handleHover'](){const _0x26cf91=_0x30c27a,_0xbc340e=this['_anchor'][_0x26cf91(0x253)][_0x26cf91(0x364)](()=>{this['_hover']=!0x0;}),_0x4646d1=this[_0x26cf91(0x29b)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x5c7fb0=_0x26cf91;this[_0x5c7fb0(0x182)]&&clearTimeout(this['_hideTimer']),this[_0x5c7fb0(0x182)]=setTimeout(()=>{const _0x364bc5=_0x5c7fb0;this[_0x364bc5(0x3f8)]=!0x1;},0x7d0);});return()=>{const _0x509139=_0x26cf91;_0xbc340e[_0x509139(0x1d4)](),_0x4646d1[_0x509139(0x1d4)]();};}[_0x30c27a(0x388)](_0x4a0524,_0x6be708,_0x3013e0,_0x5651ee){const _0x54e8d5=_0x30c27a,_0x287ddb=new a[(_0x54e8d5(0x240))](_0x4a0524)[_0x54e8d5(0x217)](0.2)[_0x54e8d5(0x3a5)](),_0x39410d=new p[(_0x54e8d5(0x2e7))](ht+a[_0x54e8d5(0x2ca)]['generateRandomId'](k),{'pointsGroup':_0x6be708,'fill':_0x287ddb||p[_0x54e8d5(0x2d3)](a[_0x54e8d5(0x18e)][_0x54e8d5(0x317)],0.2),'left':_0x3013e0,'top':_0x5651ee,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x54e8d5(0x1b8)](_0x39410d),this[_0x54e8d5(0x1bc)]['addObject'](_0x39410d,E[_0x54e8d5(0x345)]);}[_0x30c27a(0x371)](_0x3725f3,_0x9fb14f,_0x34d6c5,_0x4fcec2){const _0x51e55b=_0x30c27a,_0x5e4725=new a[(_0x51e55b(0x240))](_0x3725f3)[_0x51e55b(0x217)](0.2)[_0x51e55b(0x3a5)](),_0x4a689a=new p[(_0x51e55b(0x2e7))](ut+a['Tools'][_0x51e55b(0x264)](k),{'pointsGroup':_0x9fb14f,'fill':_0x5e4725||p[_0x51e55b(0x2d3)](a['COLORS']['black'],0.2),'left':_0x34d6c5,'top':_0x4fcec2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x51e55b(0x1b8)](_0x4a689a),this[_0x51e55b(0x1bc)]['addObject'](_0x4a689a,E['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x43dda6){const _0x1136bb=_0x43dda6[0x0],_0x5ade84=_0x1136bb[0x0],_0x270f2a=_0x1136bb[0x2],{x:_0x67ae77,y:_0x35a9df}=_0x5ade84,{x:_0x11b61a,y:_0x2af72f}=_0x270f2a;return{'left':_0x67ae77,'top':_0x35a9df,'width':_0x11b61a-_0x67ae77,'height':_0x2af72f-_0x35a9df};}[_0x30c27a(0x1db)](){const _0x551eb6=_0x30c27a,{scaleX:_0x52dc73,scaleY:_0x470027}=this[_0x551eb6(0x1bc)][_0x551eb6(0x2da)]();return Math['max'](_0x52dc73,_0x470027);}}var ft=Object[_0x30c27a(0x329)],vt=(_0x27e837,_0xaddbf0,_0xd52471,_0x3c3a67)=>{const _0x4e7433=_0x30c27a;for(var _0x4f794d=_0x3c3a67>0x1?void 0x0:_0x3c3a67?ft(_0xaddbf0,_0xd52471):_0xaddbf0,_0x1d2d4a=_0x27e837[_0x4e7433(0x2ff)]-0x1,_0x243a6a;_0x1d2d4a>=0x0;_0x1d2d4a--)(_0x243a6a=_0x27e837[_0x1d2d4a])&&(_0x4f794d=_0x243a6a(_0x4f794d)||_0x4f794d);return _0x4f794d;},W=(_0x11fb01,_0x155af4)=>(_0xa5648f,_0x232726)=>_0x155af4(_0xa5648f,_0x232726,_0x11fb01);let fe=class extends a[_0x30c27a(0x2fa)]{constructor(_0x19730f,_0x271d10,_0x55b7d5,_0x4de3eb,_0x226cdd){const _0x46a832=_0x30c27a;super(),h(this,_0x46a832(0x3b1),[]),h(this,_0x46a832(0x176),[]),(this[_0x46a832(0x26b)]=_0x19730f,this[_0x46a832(0x343)]=_0x271d10,this['_collabCursorController']=_0x55b7d5,this[_0x46a832(0x3a6)]=_0x4de3eb,this[_0x46a832(0x20e)]=_0x226cdd,this['_init']());}['_init'](){const _0x2c7ac2=_0x30c27a,_0x301402=this[_0x2c7ac2(0x26b)]['unitId'],_0x2c78fa=this['_docSkeletonManagerService'];this[_0x2c7ac2(0x20b)](d[_0x2c7ac2(0x1b7)]([this[_0x2c7ac2(0x363)][_0x2c7ac2(0x3bb)](_0x301402),this[_0x2c7ac2(0x20e)][_0x2c7ac2(0x35e)]])[_0x2c7ac2(0x180)]($[_0x2c7ac2(0x368)](([_0x1589a8,_0x111024])=>({'skeleton':_0x2c78fa['getSkeleton'](),'cursors':[..._0x1589a8[_0x2c7ac2(0x2d1)]()]['flatMap'](_0x35c806=>({..._0x35c806,'color':this[_0x2c7ac2(0x20e)][_0x2c7ac2(0x352)](_0x35c806['color'])}))})))[_0x2c7ac2(0x258)](_0x285613=>{const _0x35d048=_0x2c7ac2;if(this[_0x35d048(0x3c5)](),_0x285613){const {skeleton:_0x4a2f7c,cursors:_0x1e78e6}=_0x285613;this[_0x35d048(0x2ba)](_0x4a2f7c,_0x1e78e6);}})),this[_0x2c7ac2(0x272)](),this[_0x2c7ac2(0x1ea)]();}[_0x30c27a(0x2ba)](_0x5d0a70,_0x3237c7){const _0x193178=_0x30c27a,{scene:_0x2b9c3f,mainComponent:_0x3df2ed}=this[_0x193178(0x26b)],_0x112bc5=_0x3237c7[_0x193178(0x368)](_0xdf95ac=>new De(_0xdf95ac,_0x2b9c3f,_0x5d0a70,_0x3df2ed));this['_cursorShapes']=_0x112bc5,this['_cursors']=_0x3237c7;}[_0x30c27a(0x1f0)](){const _0x5ce21f=_0x30c27a;this[_0x5ce21f(0x3c5)]();const {scene:_0xb4dfe5,mainComponent:_0x4f8c68}=this['_context'],_0x2faa30=this[_0x5ce21f(0x343)][_0x5ce21f(0x2bf)](),_0x54ccae=this[_0x5ce21f(0x176)][_0x5ce21f(0x368)](_0x6d53e7=>new De(_0x6d53e7,_0xb4dfe5,_0x2faa30,_0x4f8c68));this[_0x5ce21f(0x3b1)]=_0x54ccae;}['_removeCollabCursors'](){const _0x3f6179=_0x30c27a;this[_0x3f6179(0x3b1)]['forEach'](_0x46f99d=>_0x46f99d[_0x3f6179(0x196)]()),this[_0x3f6179(0x3b1)]=[];}['_initCommandExecutedListener'](){const _0x1c42f5=_0x30c27a,_0x5b460b=[E[_0x1c42f5(0x2c9)]['id']];this[_0x1c42f5(0x20b)](this[_0x1c42f5(0x3a6)][_0x1c42f5(0x263)](_0x43490b=>{const _0x49c1a3=_0x1c42f5;_0x5b460b[_0x49c1a3(0x2f6)](_0x43490b['id'])&&_0x43490b[_0x49c1a3(0x222)][_0x49c1a3(0x2ed)]===this['_context'][_0x49c1a3(0x2ed)]&&this['_refreshCollabCursors']();}));}[_0x30c27a(0x272)](){const _0x1c553b=_0x30c27a;this[_0x1c553b(0x20b)](a[_0x1c553b(0x3be)](this[_0x1c553b(0x26b)]['engine']['onTransformChange$'])[_0x1c553b(0x180)]($[_0x1c553b(0x3f5)](_0x458026=>_0x458026[_0x1c553b(0x31b)]===p[_0x1c553b(0x3ff)][_0x1c553b(0x2e9)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x30c27a(0x34a)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x30c27a(0x39f)]),W(0x4,a[_0x30c27a(0x34b)](a[_0x30c27a(0x36a)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x25efda,_0x4ace93){const _0x45f375=_0x30c27a;super(_0x25efda,_0x4ace93),h(this,_0x45f375(0x175)),h(this,_0x45f375(0x3e5),!0x1),h(this,_0x45f375(0x28d)),h(this,'_name',''),h(this,'_labelPosition',_0x45f375(0x17f)),h(this,_0x45f375(0x3c0)),(_0x4ace93&&this[_0x45f375(0x246)](_0x4ace93),this[_0x45f375(0x253)][_0x45f375(0x364)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x45f375(0x1fa)]['subscribeEvent'](()=>this[_0x45f375(0x246)]({'hovered':!0x1})));}['setShapeProps'](_0x5dcba4){const _0x5e9f4c=_0x30c27a;var _0x3af954,_0x4e4952,_0x1b3de3,_0x14663c,_0x1fcce3,_0x38f8e9;this[_0x5e9f4c(0x175)]=(_0x3af954=_0x5dcba4[_0x5e9f4c(0x26a)])!=null?_0x3af954:this[_0x5e9f4c(0x175)],this['_hovered']=(_0x4e4952=_0x5dcba4[_0x5e9f4c(0x27a)])!=null?_0x4e4952:this[_0x5e9f4c(0x3e5)],this[_0x5e9f4c(0x28d)]=(_0x1b3de3=_0x5dcba4[_0x5e9f4c(0x3d6)])!=null?_0x1b3de3:this['_range'],this[_0x5e9f4c(0x179)]=(_0x14663c=_0x5dcba4[_0x5e9f4c(0x257)])!=null?_0x14663c:this[_0x5e9f4c(0x179)],this[_0x5e9f4c(0x32d)]=(_0x1fcce3=_0x5dcba4[_0x5e9f4c(0x2b7)])!=null?_0x1fcce3:this[_0x5e9f4c(0x32d)],this[_0x5e9f4c(0x3c0)]=(_0x38f8e9=_0x5dcba4[_0x5e9f4c(0x32a)])!=null?_0x38f8e9:this[_0x5e9f4c(0x3c0)],this['transformByState']({'width':_0x5dcba4['width'],'height':_0x5dcba4[_0x5e9f4c(0x288)]});}['onMouseMove'](_0x35f619){const _0xe19ac6=_0x30c27a,{row:_0x49cbfb,column:_0x165c0c}=_0x35f619;if(_0x49cbfb>=this[_0xe19ac6(0x28d)][_0xe19ac6(0x310)]&&_0x49cbfb<=this[_0xe19ac6(0x28d)][_0xe19ac6(0x30e)]&&_0x165c0c>=this[_0xe19ac6(0x28d)][_0xe19ac6(0x1d0)]&&_0x165c0c<=this[_0xe19ac6(0x28d)][_0xe19ac6(0x3bc)]){this[_0xe19ac6(0x246)]({'hovered':!0x0});return;}this[_0xe19ac6(0x246)]({'hovered':!0x1});}[_0x30c27a(0x27e)](_0x5c7c72){return!0x1;}['_draw'](_0x2abc28){const _0x2adc52=_0x30c27a;p[_0x2adc52(0x1ee)][_0x2adc52(0x351)](_0x2abc28,{'width':this[_0x2adc52(0x2f7)],'height':this[_0x2adc52(0x288)],'strokeWidth':mt,'stroke':this[_0x2adc52(0x175)],'evented':!0x1,'fill':this[_0x2adc52(0x3c0)]}),this[_0x2adc52(0x3e5)]&&(_0x2abc28[_0x2adc52(0x19a)](),_0x2abc28['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x2adc52(0x32d)]===_0x2adc52(0x198)?0x0:-0x14),ee[_0x2adc52(0x351)](_0x2abc28,{'text':this[_0x2adc52(0x179)],'color':this['_color']}),_0x2abc28[_0x2adc52(0x28f)]());}}var Ct=Object[_0x30c27a(0x329)],pt=(_0x31974e,_0x4a5ab9,_0x47b386,_0x1939cc)=>{for(var _0x508ad7=_0x1939cc>0x1?void 0x0:_0x1939cc?Ct(_0x4a5ab9,_0x47b386):_0x4a5ab9,_0x331c23=_0x31974e['length']-0x1,_0x287e4b;_0x331c23>=0x0;_0x331c23--)(_0x287e4b=_0x31974e[_0x331c23])&&(_0x508ad7=_0x287e4b(_0x508ad7)||_0x508ad7);return _0x508ad7;},ae=(_0xafb282,_0x4e0598)=>(_0x2743ec,_0x2d6c4a)=>_0x4e0598(_0x2743ec,_0x2d6c4a,_0xafb282);const Et=0x1389;let ve=class extends a[_0x30c27a(0x2fa)]{constructor(_0x428b5e,_0x43e341,_0x25f411,_0x1ba92b){const _0x4098b=_0x30c27a;super(),h(this,_0x4098b(0x176),new Set()),h(this,_0x4098b(0x33d),null),(this[_0x4098b(0x26b)]=_0x428b5e,this['_sheetSkeletonManagerService']=_0x43e341,this[_0x4098b(0x363)]=_0x25f411,this[_0x4098b(0x20e)]=_0x1ba92b,this['_init']());}[_0x30c27a(0x271)](){const _0x456505=_0x30c27a;this[_0x456505(0x19e)][_0x456505(0x2d6)][_0x456505(0x180)]($[_0x456505(0x23f)](this['dispose$']),$[_0x456505(0x361)](_0x40a45f=>{const _0x5dd519=_0x456505;if(_0x40a45f){const _0x3e6671=_0x40a45f[_0x5dd519(0x2f2)];return d[_0x5dd519(0x1b7)](this['_collabCursorController'][_0x5dd519(0x3bb)](this[_0x5dd519(0x26b)][_0x5dd519(0x2ed)]),this[_0x5dd519(0x20e)]['currentTheme$'])[_0x5dd519(0x180)]($['map'](([_0x6789e2,_0x563d2f])=>{const _0x390bbe=_0x5dd519,_0x4b65fb=new Map();return _0x6789e2[_0x390bbe(0x232)]((_0x596073,_0x4cd742)=>{const _0x266c18=_0x390bbe;if(_0x596073[_0x266c18(0x3d4)]===_0x3e6671){const _0x108866={..._0x596073};_0x108866[_0x266c18(0x26a)]=this[_0x266c18(0x20e)]['getColorFromTheme'](_0x596073[_0x266c18(0x26a)]),_0x4b65fb[_0x266c18(0x2f3)](_0x4cd742,_0x108866);}}),{'skeleton':_0x40a45f,'cursors':_0x4b65fb};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x456505(0x258)](({skeleton:_0x38f80f,cursors:_0xef25ba})=>{const _0x3f31e5=_0x456505;this[_0x3f31e5(0x3c5)](),_0x38f80f&&this[_0x3f31e5(0x2ba)](_0x38f80f,_0xef25ba);}),this[_0x456505(0x19e)][_0x456505(0x2d6)]['subscribe'](_0x180398=>{const _0xc5381=_0x456505;if(_0x180398==null)return;const {skeleton:_0x145f73}=_0x180398,{scene:_0x3ad98f}=this['_context'];_0x3ad98f['onPointerMove$'][_0xc5381(0x364)](a[_0xc5381(0x265)](_0x576080=>{const _0x335417=_0xc5381;var _0xcc9d7c,_0x4ea698;const {offsetX:_0x386cb9,offsetY:_0x115ca0}=_0x576080,{x:_0x8fcb13,y:_0x2031b1}=_0x3ad98f[_0x335417(0x3ed)](p[_0x335417(0x3cc)][_0x335417(0x3a9)]([_0x386cb9,_0x115ca0])),{scaleX:_0x3f7bea,scaleY:_0x100558}=_0x3ad98f[_0x335417(0x2da)](),_0x2c7584=_0x3ad98f[_0x335417(0x353)](p[_0x335417(0x356)]['VIEW_MAIN']),_0x46bebf=_0x3ad98f[_0x335417(0x3f9)](p[_0x335417(0x3cc)]['FromArray']([_0x8fcb13,_0x2031b1]),_0x2c7584),_0xf5f14f=_0x145f73[_0x335417(0x334)](_0x386cb9,_0x115ca0,_0x3f7bea,_0x100558,_0x46bebf);((_0xcc9d7c=this[_0x335417(0x33d)])==null?void 0x0:_0xcc9d7c[_0x335417(0x2ac)])===_0xf5f14f[_0x335417(0x2ac)]&&((_0x4ea698=this[_0x335417(0x33d)])==null?void 0x0:_0x4ea698[_0x335417(0x27b)])===_0xf5f14f['row']||this[_0x335417(0x176)][_0x335417(0x232)](_0x158827=>{const _0x1d83cc=_0x335417;_0x158827[_0x1d83cc(0x275)](_0xf5f14f);});},0x64));});}['_updateCollabCursors'](_0x10ed26,_0x2fafd3){const _0x51d7de=_0x30c27a;var _0x3d7dbc;const _0xafa54=(_0x3d7dbc=this[_0x51d7de(0x19e)][_0x51d7de(0x1ca)]())==null?void 0x0:_0x3d7dbc[_0x51d7de(0x214)];if(!_0xafa54)return;const _0x45f2d1=this['_getSheetObject']();if(!_0x45f2d1)return;this[_0x51d7de(0x176)][_0x51d7de(0x232)](_0x111cd3=>{const _0x455aa2=_0x51d7de;_0x111cd3[_0x455aa2(0x34f)]();});const {scene:_0x21256a}=_0x45f2d1,_0x364ffe=bt(Array['from'](_0x2fafd3[_0x51d7de(0x2d1)]()))[_0x51d7de(0x368)](_0x22177b=>{const _0xab797=_0x51d7de,{color:_0x3881c0,range:_0x4d67e6,name:_0x52a012,selection:_0x916774,sheetID:_0x3f0c93}=_0x22177b,{startColumn:_0x5f4ecf,startRow:_0x5a4704,endColumn:_0x56fd38,endRow:_0x159216}=_0x4d67e6,_0x506bdf=X['getCoordByCell'](_0x5a4704,_0x5f4ecf,_0x21256a,_0xafa54),_0x3e8884=X['getCoordByCell'](_0x159216,_0x56fd38,_0x21256a,_0xafa54),{columnHeaderHeightAndMarginTop:_0x3bf61b}=_0xafa54,{startX:_0x212144,startY:_0x4b25d4}=_0x506bdf,{endX:_0x5bfa6a,endY:_0x1fb670}=_0x3e8884,_0x515a6c=_0x5bfa6a-_0x212144,_0x301ade=_0x1fb670-_0x4b25d4,_0x3f611e={'labelPosition':_0x4b25d4-_0x3bf61b>=K?_0xab797(0x17f):_0xab797(0x198),'sheetID':_0x3f0c93,'range':_0x4d67e6,'color':_0x3881c0,'name':_0x52a012,'selection':_0x916774,'left':_0x212144,'top':_0x4b25d4,'width':_0x515a6c,'height':_0x301ade,'evented':!0x1,'zIndex':Et};return new we(_0x52a012,_0x3f611e);});_0x21256a[_0x51d7de(0x3a8)](_0x364ffe,gt),this[_0x51d7de(0x176)]=new Set(_0x364ffe);}['_removeCollabCursors'](){const _0x3ddc45=_0x30c27a;var _0x160a35;(_0x160a35=this['_cursors'])==null||_0x160a35[_0x3ddc45(0x232)](_0x36f89f=>_0x36f89f['dispose']());}[_0x30c27a(0x300)](){const _0x1b0a07=_0x30c27a;return X[_0x1b0a07(0x30a)](this[_0x1b0a07(0x26b)][_0x1b0a07(0x385)],this[_0x1b0a07(0x26b)]);}};ve=pt([ae(0x1,a[_0x30c27a(0x34b)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x30c27a(0x34b)](a['ThemeService']))],ve);function bt(_0x55c63d){const _0x2f6808=_0x30c27a,_0x1cc4f4=new Map();return _0x55c63d[_0x2f6808(0x232)](_0x5ad960=>{const _0x571aa9=_0x2f6808;if(_0x1cc4f4[_0x571aa9(0x29e)](_0x5ad960[_0x571aa9(0x2bd)])){const _0xaece80=_0x1cc4f4[_0x571aa9(0x235)](_0x5ad960['selection']);_0xaece80['name']+=',\x20'+_0x5ad960[_0x571aa9(0x257)];}else _0x1cc4f4[_0x571aa9(0x2f3)](_0x5ad960['selection'],_0x5ad960);}),Array[_0x2f6808(0x1fb)](_0x1cc4f4['values']());}var b=function(){const _0xf1658b=_0x30c27a;return b=Object[_0xf1658b(0x2c3)]||function(_0xaf9258){const _0x509f1c=_0xf1658b;for(var _0x3a4a53,_0x370c7b=0x1,_0x1dfb1e=arguments[_0x509f1c(0x2ff)];_0x370c7b<_0x1dfb1e;_0x370c7b++){_0x3a4a53=arguments[_0x370c7b];for(var _0xb7691e in _0x3a4a53)Object[_0x509f1c(0x2f5)]['hasOwnProperty']['call'](_0x3a4a53,_0xb7691e)&&(_0xaf9258[_0xb7691e]=_0x3a4a53[_0xb7691e]);}return _0xaf9258;},b[_0xf1658b(0x230)](this,arguments);},Ot=function(_0x2604cc,_0x96ef37){const _0x10e354=_0x30c27a;var _0x35ec96={};for(var _0x189049 in _0x2604cc)Object[_0x10e354(0x2f5)][_0x10e354(0x31d)][_0x10e354(0x2aa)](_0x2604cc,_0x189049)&&_0x96ef37[_0x10e354(0x33e)](_0x189049)<0x0&&(_0x35ec96[_0x189049]=_0x2604cc[_0x189049]);if(_0x2604cc!=null&&typeof Object[_0x10e354(0x281)]==_0x10e354(0x1f9)){for(var _0x1c22c0=0x0,_0x189049=Object[_0x10e354(0x281)](_0x2604cc);_0x1c22c0<_0x189049[_0x10e354(0x2ff)];_0x1c22c0++)_0x96ef37[_0x10e354(0x33e)](_0x189049[_0x1c22c0])<0x0&&Object[_0x10e354(0x2f5)][_0x10e354(0x3ba)]['call'](_0x2604cc,_0x189049[_0x1c22c0])&&(_0x35ec96[_0x189049[_0x1c22c0]]=_0x2604cc[_0x189049[_0x1c22c0]]);}return _0x35ec96;},pe=M[_0x30c27a(0x17c)](function(_0x26a188,_0x3e221e){const _0x493e57=_0x30c27a;var _0x4f0f1a=_0x26a188['icon'],_0x2ae170=_0x26a188['id'],_0x2c62cb=_0x26a188[_0x493e57(0x3fd)],_0xda1145=_0x26a188[_0x493e57(0x2d0)],_0x517b5f=Ot(_0x26a188,[_0x493e57(0x2cf),'id','className',_0x493e57(0x2d0)]),_0x1d688c='univerjs-icon\x20univerjs-icon-'[_0x493e57(0x1f2)](_0x2ae170,'\x20')['concat'](_0x2c62cb||'')[_0x493e57(0x3f2)](),_0xdef6ce=M['useRef']('_'[_0x493e57(0x1f2)](Dt()));return Ae(_0x4f0f1a,''[_0x493e57(0x1f2)](_0x2ae170),{'defIds':_0x4f0f1a[_0x493e57(0x38c)],'idSuffix':_0xdef6ce['current']},b({'ref':_0x3e221e,'className':_0x1d688c},_0x517b5f),_0xda1145);});function Ae(_0x3d997b,_0x2ca1d3,_0x5b5ef8,_0x14cd6f,_0x45a063){const _0x304657=_0x30c27a;return M[_0x304657(0x33c)](_0x3d997b[_0x304657(0x2dd)],b(b({'key':_0x2ca1d3},Tt(_0x3d997b,_0x5b5ef8,_0x45a063)),_0x14cd6f),(Rt(_0x3d997b,_0x5b5ef8)[_0x304657(0x37a)]||[])[_0x304657(0x368)](function(_0x5e9f0d,_0x244b4e){const _0x36a986=_0x304657;return Ae(_0x5e9f0d,''[_0x36a986(0x1f2)](_0x2ca1d3,'-')['concat'](_0x3d997b[_0x36a986(0x2dd)],'-')['concat'](_0x244b4e),_0x5b5ef8,void 0x0,_0x45a063);}));}function Tt(_0x2cab5f,_0x1d478f,_0x53d659){const _0x2d9ee3=_0x30c27a;var _0x106daf=b({},_0x2cab5f[_0x2d9ee3(0x170)]);_0x53d659!=null&&_0x53d659[_0x2d9ee3(0x199)]&&_0x106daf[_0x2d9ee3(0x29c)]===_0x2d9ee3(0x199)&&(_0x106daf[_0x2d9ee3(0x29c)]=_0x53d659[_0x2d9ee3(0x199)]),_0x2cab5f[_0x2d9ee3(0x2dd)]===_0x2d9ee3(0x3e7)&&_0x106daf['id']&&(_0x106daf['id']=_0x106daf['id']+_0x1d478f['idSuffix']),Object[_0x2d9ee3(0x2c7)](_0x106daf)[_0x2d9ee3(0x232)](function(_0x57b3df){const _0x48a075=_0x2d9ee3;var _0x5170d6=_0x57b3df[0x0],_0x21fd75=_0x57b3df[0x1];_0x5170d6===_0x48a075(0x3e7)&&typeof _0x21fd75==_0x48a075(0x3d7)&&(_0x106daf[_0x5170d6]=_0x21fd75[_0x48a075(0x3c2)](/url\(#(.*)\)/,'url(#$1'[_0x48a075(0x1f2)](_0x1d478f[_0x48a075(0x20a)],')')));});var _0x567cb8=_0x1d478f['defIds'];return!_0x567cb8||_0x567cb8['length']===0x0||(_0x2cab5f['tag']===_0x2d9ee3(0x1e4)&&_0x106daf['xlink:href']&&(_0x106daf[_0x2d9ee3(0x297)]=_0x106daf['xlink:href']+_0x1d478f[_0x2d9ee3(0x20a)]),Object[_0x2d9ee3(0x2c7)](_0x106daf)[_0x2d9ee3(0x232)](function(_0x4b5e19){const _0x5530fd=_0x2d9ee3;var _0x43a4d4=_0x4b5e19[0x0],_0x256f24=_0x4b5e19[0x1];typeof _0x256f24==_0x5530fd(0x3d7)&&(_0x106daf[_0x43a4d4]=_0x256f24[_0x5530fd(0x3c2)](/url\(#(.*)\)/,_0x5530fd(0x1f7)[_0x5530fd(0x1f2)](_0x1d478f['idSuffix'],')')));})),_0x106daf;}function Rt(_0x31c126,_0x4cbd06){const _0xbb893d=_0x30c27a;var _0x33c19c,_0x142038=_0x4cbd06[_0xbb893d(0x38c)];return!_0x142038||_0x142038[_0xbb893d(0x2ff)]===0x0?_0x31c126:_0x31c126[_0xbb893d(0x2dd)]===_0xbb893d(0x3c4)&&(!((_0x33c19c=_0x31c126['children'])===null||_0x33c19c===void 0x0)&&_0x33c19c[_0xbb893d(0x2ff)])?b(b({},_0x31c126),{'children':_0x31c126['children']['map'](function(_0x59d184){const _0x3819e2=_0xbb893d;return typeof _0x59d184[_0x3819e2(0x170)]['id']=='string'&&_0x142038&&_0x142038[_0x3819e2(0x2f6)](_0x59d184['attrs']['id'])?b(b({},_0x59d184),{'attrs':b(b({},_0x59d184[_0x3819e2(0x170)]),{'id':_0x59d184[_0x3819e2(0x170)]['id']+_0x4cbd06[_0x3819e2(0x20a)]})}):_0x59d184;})}):_0x31c126;}function Dt(){const _0x7efda=_0x30c27a;return Math[_0x7efda(0x2b0)]()['toString'](0x24)[_0x7efda(0x189)](0x2,0x8);}pe[_0x30c27a(0x3d5)]=_0x30c27a(0x3a0);var Ut={'tag':_0x30c27a(0x39b),'attrs':{'xmlns':_0x30c27a(0x224),'fill':_0x30c27a(0x384),'viewBox':_0x30c27a(0x34e),'width':_0x30c27a(0x245),'height':_0x30c27a(0x245)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x30c27a(0x172),'attrs':{'stroke':_0x30c27a(0x261),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x30c27a(0x1da),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x30c27a(0x273)},'children':[{'tag':_0x30c27a(0x172),'attrs':{'fill':'white','d':_0x30c27a(0x21c)}}]}]}],'defIds':[_0x30c27a(0x273)]},ye=M[_0x30c27a(0x17c)](function(_0x1235b3,_0x366066){const _0x2368ab=_0x30c27a;return M['createElement'](pe,Object['assign']({},_0x1235b3,{'id':_0x2368ab(0x2f9),'ref':_0x366066,'icon':Ut}));});ye['displayName']=_0x30c27a(0x22f);var Nt={'tag':_0x30c27a(0x39b),'attrs':{'xmlns':_0x30c27a(0x224),'fill':'none','viewBox':_0x30c27a(0x1d2),'width':'1em','height':_0x30c27a(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x30c27a(0x2f1)},'children':[{'tag':'path','attrs':{'stroke':_0x30c27a(0x261),'d':_0x30c27a(0x2ec),'strokeLinecap':_0x30c27a(0x1da),'strokeLinejoin':_0x30c27a(0x1da),'strokeWidth':1.2}}]},{'tag':_0x30c27a(0x3c4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x30c27a(0x1e1)},'children':[{'tag':_0x30c27a(0x172),'attrs':{'fill':_0x30c27a(0x397),'d':_0x30c27a(0x21c),'transform':_0x30c27a(0x3b5)}}]}]}],'defIds':[_0x30c27a(0x1e1)]},$e=M['forwardRef'](function(_0x38e4d5,_0x3fbff1){const _0x178895=_0x30c27a;return M[_0x178895(0x33c)](pe,Object[_0x178895(0x2c3)]({},_0x38e4d5,{'id':_0x178895(0x338),'ref':_0x3fbff1,'icon':Nt}));});$e[_0x30c27a(0x3d5)]=_0x30c27a(0x3f0);function Mt(_0x51a7f5){const _0x2925a4=_0x30c27a;switch(_0x51a7f5){case u[_0x2925a4(0x1e9)][_0x2925a4(0x36b)]:return _0x2925a4(0x1a6);case u[_0x2925a4(0x1e9)][_0x2925a4(0x227)]:return'collabStatus.conflict';case u[_0x2925a4(0x1e9)][_0x2925a4(0x27f)]:return'collabStatus.fetchMiss';case u[_0x2925a4(0x1e9)][_0x2925a4(0x1a5)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x2925a4(0x3da)]:case u[_0x2925a4(0x1e9)][_0x2925a4(0x36d)]:return _0x2925a4(0x3dc);case u[_0x2925a4(0x1e9)][_0x2925a4(0x23a)]:case u[_0x2925a4(0x1e9)]['PENDING']:return'collabStatus.synced';}}function xe(_0xaf8d74){const _0x1bf03a=_0x30c27a,{status$:_0x53ee5c}=_0xaf8d74,_0x3c9c73=O[_0x1bf03a(0x3e6)](_0x53ee5c,u['CollaborationStatus']['NOT_COLLAB']),_0x5371ef=O[_0x1bf03a(0x3cf)](a[_0x1bf03a(0x213)]),_0x4f2771=O[_0x1bf03a(0x3cf)](u[_0x1bf03a(0x1be)]),_0x350f04=_0x3c9c73!==u['CollaborationStatus'][_0x1bf03a(0x36b)],_0x1e4adc=_0x5371ef['t'](Mt(_0x3c9c73)),_0x24e9db=_0x350f04?P['jsx']($e,{}):P[_0x1bf03a(0x1ae)](ye,{}),_0x71a609=M['useCallback'](()=>{const _0x103807=_0x1bf03a;_0x350f04||_0x4f2771[_0x103807(0x2ce)]();},[_0x350f04,_0x4f2771]);function _0x1afb8b(){const _0x44d09e=_0x1bf03a;return P[_0x44d09e(0x2e5)]('div',{'className':_0x44d09e(0x2fd),'onClick':_0x71a609,'children':[P[_0x44d09e(0x1ae)]('div',{'className':D['clsx'](_0x44d09e(0x1de),{'univer-text-green-500':_0x350f04,'univer-text-red-500':!_0x350f04}),'children':_0x24e9db}),P[_0x44d09e(0x1ae)](_0x44d09e(0x305),{'className':_0x44d09e(0x332),'children':_0x1e4adc})]});}return _0x350f04?_0x1afb8b():P[_0x1bf03a(0x1ae)](D['Tooltip'],{'title':_0x5371ef['t']('collab-client.tooltip.reconnect'),'children':_0x1afb8b()});}var Lt=Object[_0x30c27a(0x329)],Pt=(_0x386092,_0x181521,_0x3b8396,_0x2ac141)=>{const _0x4944be=_0x30c27a;for(var _0x3c122a=_0x2ac141>0x1?void 0x0:_0x2ac141?Lt(_0x181521,_0x3b8396):_0x181521,_0x2ad3b9=_0x386092[_0x4944be(0x2ff)]-0x1,_0x56a907;_0x2ad3b9>=0x0;_0x2ad3b9--)(_0x56a907=_0x386092[_0x2ad3b9])&&(_0x3c122a=_0x56a907(_0x3c122a)||_0x3c122a);return _0x3c122a;},V=(_0x57df6f,_0x6b6519)=>(_0x10cf0a,_0x20e8eb)=>_0x6b6519(_0x10cf0a,_0x20e8eb,_0x57df6f);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x30c27a(0x27d)]{constructor(_0x4814cb,_0x2adf30,_0x3d1ccf,_0x2dff4a){const _0x17796a=_0x30c27a;super(),h(this,_0x17796a(0x2ab),new d['BehaviorSubject'](u[_0x17796a(0x1e9)][_0x17796a(0x1a5)])),(this[_0x17796a(0x3e3)]=_0x4814cb,this[_0x17796a(0x236)]=_0x2adf30,this[_0x17796a(0x1b9)]=_0x3d1ccf,this[_0x17796a(0x1d5)]=_0x2dff4a,this[_0x17796a(0x313)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x349127=_0x30c27a;this['disposeWithMe'](this['_univerInstanceService'][_0x349127(0x389)][_0x349127(0x180)](d[_0x349127(0x361)](()=>{const _0x5e521b=_0x349127,_0x2197fa=this['_univerInstanceService'][_0x5e521b(0x24e)]();return _0x2197fa?this[_0x5e521b(0x1b9)]['getCollabEntity$'](_0x2197fa[_0x5e521b(0x16f)]()):d['of'](null);}),d[_0x349127(0x361)](_0x499984=>_0x499984?_0x499984[_0x349127(0x2a3)]:d['of'](u[_0x349127(0x1e9)][_0x349127(0x1a5)])))[_0x349127(0x258)](_0xdbdf0c=>{const _0x20176d=_0x349127;this['_status$'][_0x20176d(0x2d2)](_0xdbdf0c);}));}[_0x30c27a(0x313)](){const _0x578af6=_0x30c27a;this[_0x578af6(0x20b)](this[_0x578af6(0x1d5)][_0x578af6(0x1cf)](O[_0x578af6(0x378)][_0x578af6(0x29f)],()=>O[_0x578af6(0x218)](wt({'status$':this[_0x578af6(0x2ab)]['asObservable']()}),this[_0x578af6(0x236)])));}},exports[_0x30c27a(0x3ea)]=Pt([V(0x0,a[_0x30c27a(0x3e0)]),V(0x1,a['Inject'](a[_0x30c27a(0x248)])),V(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x35f)])),V(0x3,O[_0x30c27a(0x28e)])],exports[_0x30c27a(0x3ea)]);function wt(_0x354863){const {status$:_0x149ae6}=_0x354863;return function(){const _0x29cdb1=_0x2320;return P[_0x29cdb1(0x1ae)](xe,{'status$':_0x149ae6});};}var At=Object[_0x30c27a(0x329)],yt=(_0x2e72ae,_0x49e248,_0x542e95,_0x5a3095)=>{const _0x29b91d=_0x30c27a;for(var _0x116317=_0x5a3095>0x1?void 0x0:_0x5a3095?At(_0x49e248,_0x542e95):_0x49e248,_0x339335=_0x2e72ae[_0x29b91d(0x2ff)]-0x1,_0xa103f4;_0x339335>=0x0;_0x339335--)(_0xa103f4=_0x2e72ae[_0x339335])&&(_0x116317=_0xa103f4(_0x116317)||_0x116317);return _0x116317;},y=(_0x5e4831,_0x433b9d)=>(_0xe0ee80,_0x54425b)=>_0x433b9d(_0xe0ee80,_0x54425b,_0x5e4831);let q=class extends a[_0x30c27a(0x27d)]{constructor(_0x38aeda,_0x422ee2,_0x2ad95b,_0xb584c9,_0x5507de,_0x17c9aa){const _0xfe0b11=_0x30c27a;super(),this['_beforeCloseService']=_0x38aeda,this[_0xfe0b11(0x339)]=_0x422ee2,this[_0xfe0b11(0x348)]=_0x2ad95b,this[_0xfe0b11(0x2c5)]=_0xb584c9,this['_notificationService']=_0x5507de,this[_0xfe0b11(0x270)]=_0x17c9aa,this[_0xfe0b11(0x2e0)](),this['_initEvent']();}[_0x30c27a(0x2e0)](){const _0x49b86e=_0x30c27a;this[_0x49b86e(0x20b)](this[_0x49b86e(0x1fd)]['registerBeforeClose'](()=>{const _0x12becc=_0x49b86e;if(this[_0x12becc(0x339)]['saveTaskMap'][_0x12becc(0x2a9)])return this[_0x12becc(0x270)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x30c27a(0x3f3)](){const _0x14d966=_0x30c27a;this[_0x14d966(0x20b)](this[_0x14d966(0x348)][_0x14d966(0x386)]['subscribe'](_0x3d9522=>{const _0x308d93=_0x14d966;_0x3d9522['id']===u[_0x308d93(0x1d8)]['OTHER_CLIENT_EDITING']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x193)],'content':this[_0x308d93(0x270)]['t']('collaboration.single-unit.warning')}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['CLOSE_ROOM']&&this['_messageService'][_0x308d93(0x32c)]({'type':D['MessageType'][_0x308d93(0x193)],'content':this[_0x308d93(0x270)]['t']('collaboration.closeRoom')}),_0x3d9522['id']===u['CollaborationUIEventId'][_0x308d93(0x203)]&&this[_0x308d93(0x25e)][_0x308d93(0x32c)]({'title':this[_0x308d93(0x270)]['t'](_0x308d93(0x1c7)),'content':this['_localeService']['t']('permission.content'),'type':_0x308d93(0x243),'duration':0x0}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['CONFLICT']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t'](_0x308d93(0x256))+'('+_0x3d9522[_0x308d93(0x190)]+')'}),_0x3d9522['id']===u[_0x308d93(0x1d8)][_0x308d93(0x28a)]&&this['_messageService']['show']({'type':D[_0x308d93(0x2de)]['Warning'],'content':this['_localeService']['t'](_0x3d9522[_0x308d93(0x190)]||'')}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SOCKET_FAILED_RETRY']&&this[_0x308d93(0x2c5)]['show']({'type':D[_0x308d93(0x2de)][_0x308d93(0x193)],'content':this['_localeService']['t'](_0x308d93(0x1f1))}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SOCKET_FAILED']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t'](_0x308d93(0x319))}),_0x3d9522['id']===u[_0x308d93(0x1d8)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x308d93(0x2c5)][_0x308d93(0x32c)]({'type':D[_0x308d93(0x2de)][_0x308d93(0x2e6)],'content':this[_0x308d93(0x270)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O[_0x30c27a(0x26d)]),y(0x1,u[_0x30c27a(0x254)]),y(0x2,a[_0x30c27a(0x34b)](u[_0x30c27a(0x2cb)])),y(0x3,O[_0x30c27a(0x38e)]),y(0x4,O[_0x30c27a(0x283)]),y(0x5,a[_0x30c27a(0x34b)](a['LocaleService']))],q);const $t=_0x30c27a(0x228),Ue={},Ee=a[_0x30c27a(0x1c9)](_0x30c27a(0x183));var xt=Object[_0x30c27a(0x329)],Bt=(_0x2f3f26,_0x2a6cfc,_0x49ef50,_0x188ac3)=>{const _0x46dd15=_0x30c27a;for(var _0x7a4030=_0x188ac3>0x1?void 0x0:_0x188ac3?xt(_0x2a6cfc,_0x49ef50):_0x2a6cfc,_0x249086=_0x2f3f26[_0x46dd15(0x2ff)]-0x1,_0x2ebd04;_0x249086>=0x0;_0x249086--)(_0x2ebd04=_0x2f3f26[_0x249086])&&(_0x7a4030=_0x2ebd04(_0x7a4030)||_0x7a4030);return _0x7a4030;},F=(_0x30764c,_0x249584)=>(_0x3c0e76,_0x2ed23d)=>_0x249584(_0x3c0e76,_0x2ed23d,_0x30764c);exports[_0x30c27a(0x266)]=class extends a[_0x30c27a(0x2fa)]{constructor(_0x45fc4e,_0x5f365e,_0xa6d653,_0x4ddccb,_0x572141){const _0x11dc56=_0x30c27a;super(),this[_0x11dc56(0x33b)]=_0x45fc4e,this[_0x11dc56(0x2a1)]=_0x5f365e,this[_0x11dc56(0x3a6)]=_0xa6d653,this[_0x11dc56(0x2be)]=_0x4ddccb,_0x572141?_0x572141==null||_0x572141[_0x11dc56(0x19c)]()[_0x11dc56(0x3db)](()=>this[_0x11dc56(0x271)]()):(this[_0x11dc56(0x2a1)][_0x11dc56(0x304)]('[CollaborationDataLoaderController]',_0x11dc56(0x37c)),this[_0x11dc56(0x271)]());}async[_0x30c27a(0x271)](){const _0x1501cf=_0x30c27a,_0x4f8702=this['_urlService'][_0x1501cf(0x31a)]('unit'),_0x40049b=this[_0x1501cf(0x33b)]['getParam'](_0x1501cf(0x31b)),_0x42f27c=this[_0x1501cf(0x33b)]['getParam'](_0x1501cf(0x292));if(!_0x4f8702||!_0x40049b){this[_0x1501cf(0x2a1)][_0x1501cf(0x304)](_0x1501cf(0x2e3),_0x1501cf(0x1b3));return;}const _0xef38fd=await this[_0x1501cf(0x2be)][_0x1501cf(0x1fc)](_0x4f8702,Number(_0x40049b),_0x42f27c);_0xef38fd&&_0xef38fd instanceof a['Workbook']&&this[_0x1501cf(0x27c)](_0xef38fd);}async['_setupSubUnitSync'](_0x4d0596){const _0x11bd78=_0x30c27a;await this[_0x11bd78(0x30c)](_0x4d0596),_0x4d0596['activeSheet$'][_0x11bd78(0x180)](d[_0x11bd78(0x23f)](this['dispose$']))[_0x11bd78(0x258)](_0x217741=>{const _0x43c040=_0x11bd78;_0x217741&&this[_0x43c040(0x1cc)](_0x217741);}),this[_0x11bd78(0x33b)]['urlChange$'][_0x11bd78(0x180)](d['takeUntil'](this[_0x11bd78(0x320)]))[_0x11bd78(0x258)](()=>this[_0x11bd78(0x30c)](_0x4d0596));}[_0x30c27a(0x1cc)](_0x5d9f67,_0xa629b8=!0x1){const _0x18694b=_0x30c27a,_0x2120fe=this['_urlService'][_0x18694b(0x31a)]('subunit');_0x5d9f67[_0x18694b(0x18b)]()!==_0x2120fe&&this[_0x18694b(0x33b)]['setParam']('subunit',_0x5d9f67[_0x18694b(0x18b)](),_0xa629b8);}async[_0x30c27a(0x30c)](_0x1ca243){const _0x536034=_0x30c27a;var _0x347346;const _0x26c788=this[_0x536034(0x33b)][_0x536034(0x31a)]('subunit');if(!_0x26c788||!_0x1ca243['getSheetBySheetId'](_0x26c788)){const _0x299a19=_0x1ca243[_0x536034(0x1d3)]()[0x0],_0x6c1135=_0x1ca243[_0x536034(0x2ee)](_0x299a19);if(!_0x6c1135)return;this[_0x536034(0x1cc)](_0x6c1135,!0x0),await this[_0x536034(0x3a6)][_0x536034(0x3f7)](g[_0x536034(0x3a1)]['id'],{'unitId':_0x1ca243[_0x536034(0x16f)](),'subUnitId':_0x299a19});return;}((_0x347346=_0x1ca243[_0x536034(0x208)]())==null?void 0x0:_0x347346[_0x536034(0x18b)]())!==_0x26c788&&await this[_0x536034(0x3a6)][_0x536034(0x3f7)](g[_0x536034(0x3a1)]['id'],{'unitId':_0x1ca243[_0x536034(0x16f)](),'subUnitId':_0x26c788});}},exports['CollaborationDataLoaderController']=Bt([F(0x0,Ee),F(0x1,a[_0x30c27a(0x355)]),F(0x2,a[_0x30c27a(0x39f)]),F(0x3,a[_0x30c27a(0x34b)](u[_0x30c27a(0x1b5)])),F(0x4,a[_0x30c27a(0x25f)](Ke[_0x30c27a(0x1b0)]))],exports[_0x30c27a(0x266)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x223097,_0x2a27ac,_0x475b41,_0x3f6813)=>{for(var _0x19414f=_0x3f6813>0x1?void 0x0:_0x3f6813?jt(_0x2a27ac,_0x475b41):_0x2a27ac,_0x32e4ac=_0x223097['length']-0x1,_0x123c45;_0x32e4ac>=0x0;_0x32e4ac--)(_0x123c45=_0x223097[_0x32e4ac])&&(_0x19414f=_0x123c45(_0x19414f)||_0x19414f);return _0x19414f;},ce=(_0x2c43c4,_0xb1529b)=>(_0x4bf248,_0x34912e)=>_0xb1529b(_0x4bf248,_0x34912e,_0x2c43c4);let z=class{constructor(_0x4cd140,_0x5457ba,_0x486599){const _0x2f56a6=_0x30c27a;this[_0x2f56a6(0x236)]=_0x4cd140,this[_0x2f56a6(0x3fe)]=_0x5457ba,this[_0x2f56a6(0x37b)]=_0x486599;}['transformIMECache'](_0xb5e2bf){const _0x240313=_0x30c27a;this[_0x240313(0x3d0)](_0xb5e2bf),this[_0x240313(0x16e)](_0xb5e2bf);}['transformRemoteChangeset'](_0x177a97){const _0x16e415=_0x30c27a,{unitID:_0x274400}=_0x177a97,_0x1800c6=this[_0x16e415(0x37b)][_0x16e415(0x287)](_0x274400)['with'](E[_0x16e415(0x220)]),{redoCache:_0x4571c8}=_0x1800c6[_0x16e415(0x255)]();if(_0x4571c8[_0x16e415(0x2ff)]===0x0)return _0x177a97;let _0xc5ee9b=a[_0x16e415(0x2ca)]['deepClone'](_0x177a97[_0x16e415(0x269)][0x0]);for(let _0x523fc8=0x0;_0x523fc8<_0x4571c8['length'];_0x523fc8++){const _0x2582e7={'id':_0x16e415(0x212),'params':{..._0x4571c8[_0x523fc8]}},_0x3e62a=this[_0x16e415(0x3fe)][_0x16e415(0x399)](_0xc5ee9b,_0x2582e7,!0x1);if(m[_0x16e415(0x1c3)](_0x3e62a))throw _0x3e62a[_0x16e415(0x243)];_0xc5ee9b=_0x3e62a[_0x16e415(0x29d)];}return{...a[_0x16e415(0x2ca)][_0x16e415(0x274)](_0x177a97),'mutations':[_0xc5ee9b]};}['_transformUndoRedoStack'](_0x420854){const _0x583203=_0x30c27a,{unitID:_0x497cce}=_0x420854,_0x38276b=this[_0x583203(0x37b)][_0x583203(0x287)](_0x497cce)[_0x583203(0x392)](E[_0x583203(0x220)]),{undoCache:_0x213b42,redoCache:_0x1cfb3e}=_0x38276b[_0x583203(0x255)]();if(_0x213b42[_0x583203(0x2ff)]===0x0||_0x1cfb3e[_0x583203(0x2ff)]===0x0)return;const _0x59382d=[],_0x22188e=[];let _0x142c5a=a[_0x583203(0x2ca)][_0x583203(0x274)](_0x420854[_0x583203(0x269)][0x0]),_0x9420a6=a[_0x583203(0x2ca)][_0x583203(0x274)](_0x420854[_0x583203(0x269)][0x0]);for(let _0x86509d=_0x213b42[_0x583203(0x2ff)]-0x1;_0x86509d>=0x0;_0x86509d--){const _0x3ac5b3={'id':_0x583203(0x212),'params':{..._0x213b42[_0x86509d]}},_0xfbec2a={'id':_0x583203(0x212),'params':{..._0x1cfb3e[_0x86509d]}},_0x1a4c04=this[_0x583203(0x3fe)][_0x583203(0x399)](_0x142c5a,_0x3ac5b3,!0x1),_0x1d2f1a=this['_transformService'][_0x583203(0x399)](_0x9420a6,_0xfbec2a,!0x1);if(m['isTransformMutationFailure'](_0x1a4c04))throw _0x1a4c04[_0x583203(0x243)];if(m[_0x583203(0x1c3)](_0x1d2f1a))throw _0x1d2f1a[_0x583203(0x243)];_0x59382d['unshift'](_0x1a4c04['m2Prime'][_0x583203(0x222)]),_0x22188e[_0x583203(0x260)](_0x1d2f1a[_0x583203(0x3f4)][_0x583203(0x222)]),_0x142c5a=_0x1a4c04[_0x583203(0x29d)],_0x9420a6=_0x1d2f1a[_0x583203(0x29d)];}_0x38276b[_0x583203(0x325)]({'undoCache':_0x59382d,'redoCache':_0x22188e});}[_0x30c27a(0x16e)](_0x453307){const _0x3702ab=_0x30c27a,{unitID:_0x2dfb4e}=_0x453307,_0x52c099=this[_0x3702ab(0x37b)][_0x3702ab(0x287)](_0x2dfb4e)[_0x3702ab(0x392)](E[_0x3702ab(0x220)]),_0x32116d=_0x52c099['getActiveRange']();if(_0x32116d==null)return;const _0x3038b1=[{'id':_0x3702ab(0x212),'params':{'unitId':_0x453307[_0x3702ab(0x2a5)],'actions':null,'textRanges':[_0x32116d]}}],_0x2ed315=this[_0x3702ab(0x3fe)][_0x3702ab(0x365)](_0x453307,_0x3038b1);if(!m[_0x3702ab(0x3ac)](_0x2ed315))throw _0x2ed315[_0x3702ab(0x243)];const _0x48b00b=_0x2ed315[_0x3702ab(0x3f4)][0x0]['params'][_0x3702ab(0x382)];Array['isArray'](_0x48b00b)&&_0x48b00b[_0x3702ab(0x2ff)]&&_0x52c099[_0x3702ab(0x395)](_0x48b00b[0x0]);}};z=kt([ce(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),ce(0x1,m[_0x30c27a(0x341)]),ce(0x2,p[_0x30c27a(0x307)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x4a8143,_0x41c7ae,_0x51c066,_0x488326)=>{const _0x3d83c5=_0x30c27a;for(var _0x1424b0=_0x488326>0x1?void 0x0:_0x488326?Ft(_0x41c7ae,_0x51c066):_0x41c7ae,_0x302491=_0x4a8143[_0x3d83c5(0x2ff)]-0x1,_0x2560b4;_0x302491>=0x0;_0x302491--)(_0x2560b4=_0x4a8143[_0x302491])&&(_0x1424b0=_0x2560b4(_0x1424b0)||_0x1424b0);return _0x1424b0;},le=(_0x4a1978,_0x1ea768)=>(_0x348fba,_0x121066)=>_0x1ea768(_0x348fba,_0x121066,_0x4a1978);let J=class{constructor(_0x393d17,_0x2ee9fa,_0x1b9369){const _0x5dd8f7=_0x30c27a;this[_0x5dd8f7(0x236)]=_0x393d17,this[_0x5dd8f7(0x3fe)]=_0x2ee9fa,this[_0x5dd8f7(0x24f)]=_0x1b9369;}[_0x30c27a(0x2b6)](_0x32eeed){const _0x4b009f=_0x30c27a;this[_0x4b009f(0x17b)](_0x32eeed);}[_0x30c27a(0x3b6)](_0x4cfc4e){const _0x2e9fbf=_0x30c27a,{unitID:_0x5cab30}=_0x4cfc4e,{collaboration:_0x41ae1e}=this[_0x2e9fbf(0x24f)][_0x2e9fbf(0x226)](_0x5cab30);if(_0x41ae1e['length']===0x0)return _0x4cfc4e;let _0x438785=a['Tools'][_0x2e9fbf(0x274)](_0x4cfc4e['mutations'][0x0]);for(let _0x4233a1=0x0;_0x4233a1<_0x41ae1e[_0x2e9fbf(0x2ff)];_0x4233a1++){const _0x5cecb7={'id':_0x2e9fbf(0x212),'params':{'unitId':_0x41ae1e[_0x4233a1][_0x2e9fbf(0x2ed)],..._0x41ae1e[_0x4233a1]['redoState']}},_0x2db438=this[_0x2e9fbf(0x3fe)][_0x2e9fbf(0x399)](_0x438785,_0x5cecb7,!0x1);if(m['isTransformMutationFailure'](_0x2db438))throw _0x2db438[_0x2e9fbf(0x243)];_0x438785=_0x2db438[_0x2e9fbf(0x29d)];}return{...a[_0x2e9fbf(0x2ca)]['deepClone'](_0x4cfc4e),'mutations':[_0x438785]};}[_0x30c27a(0x17b)](_0xed7001){const _0x5a261d=_0x30c27a,{unitID:_0x149c45}=_0xed7001,{history:_0x386624,collaboration:_0x18825b}=this['_docStateChangeManagerService']['getStateCache'](_0x149c45);if(_0x386624[_0x5a261d(0x2ff)]===0x0&&_0x18825b[_0x5a261d(0x2ff)]===0x0)return;const _0x35d2f0=[],_0x1af1a6=[];let _0x50653b=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]),_0x2e3e84=a[_0x5a261d(0x2ca)]['deepClone'](_0xed7001[_0x5a261d(0x269)][0x0]);for(let _0x4cca0d=_0x386624[_0x5a261d(0x2ff)]-0x1;_0x4cca0d>=0x0;_0x4cca0d--){const _0x350602={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x386624[_0x4cca0d]['unitId'],..._0x386624[_0x4cca0d][_0x5a261d(0x1ac)]}},_0x328c2a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x386624[_0x4cca0d][_0x5a261d(0x2ed)],..._0x386624[_0x4cca0d][_0x5a261d(0x315)]}},_0x18b1ed=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x50653b,_0x350602,!0x1),_0x2514d8=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x2e3e84,_0x328c2a,!0x1);if(m[_0x5a261d(0x1c3)](_0x18b1ed))throw _0x18b1ed[_0x5a261d(0x243)];if(m['isTransformMutationFailure'](_0x2514d8))throw _0x2514d8[_0x5a261d(0x243)];_0x35d2f0[_0x5a261d(0x260)]({..._0x386624[_0x4cca0d],'undoState':_0x18b1ed[_0x5a261d(0x3f4)]['params'],'redoState':_0x2514d8['m2Prime'][_0x5a261d(0x222)]}),_0x50653b=_0x18b1ed[_0x5a261d(0x29d)],_0x2e3e84=_0x2514d8[_0x5a261d(0x29d)];}_0x50653b=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]),_0x2e3e84=a[_0x5a261d(0x2ca)][_0x5a261d(0x274)](_0xed7001[_0x5a261d(0x269)][0x0]);for(let _0x598ce3=_0x18825b[_0x5a261d(0x2ff)]-0x1;_0x598ce3>=0x0;_0x598ce3--){const _0x51f876={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18825b[_0x598ce3][_0x5a261d(0x2ed)],..._0x18825b[_0x598ce3][_0x5a261d(0x1ac)]}},_0x4ee016={'id':_0x5a261d(0x212),'params':{'unitId':_0x18825b[_0x598ce3][_0x5a261d(0x2ed)],..._0x18825b[_0x598ce3]['redoState']}},_0x9d230=this[_0x5a261d(0x3fe)]['transformMutation'](_0x50653b,_0x51f876,!0x1),_0x3066f3=this[_0x5a261d(0x3fe)][_0x5a261d(0x399)](_0x2e3e84,_0x4ee016,!0x1);if(m['isTransformMutationFailure'](_0x9d230))throw _0x9d230[_0x5a261d(0x243)];if(m[_0x5a261d(0x1c3)](_0x3066f3))throw _0x3066f3['error'];_0x1af1a6['unshift']({..._0x18825b[_0x598ce3],'undoState':_0x9d230[_0x5a261d(0x3f4)][_0x5a261d(0x222)],'redoState':_0x3066f3[_0x5a261d(0x3f4)][_0x5a261d(0x222)]}),_0x50653b=_0x9d230[_0x5a261d(0x29d)],_0x2e3e84=_0x3066f3[_0x5a261d(0x29d)];}this[_0x5a261d(0x24f)][_0x5a261d(0x3e9)](_0x149c45,{'history':_0x35d2f0,'collaboration':_0x1af1a6});}};J=Ht([le(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),le(0x1,m[_0x30c27a(0x341)]),le(0x2,a['Inject'](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x30c27a(0x329)],Wt=(_0x168d70,_0x574458,_0x355db2,_0x4cd4ab)=>{for(var _0x1906f4=_0x4cd4ab>0x1?void 0x0:_0x4cd4ab?Yt(_0x574458,_0x355db2):_0x574458,_0x159532=_0x168d70['length']-0x1,_0x1609c3;_0x159532>=0x0;_0x159532--)(_0x1609c3=_0x168d70[_0x159532])&&(_0x1906f4=_0x1609c3(_0x1906f4)||_0x1906f4);return _0x1906f4;},Ne=(_0x1054eb,_0x5e6c3b)=>(_0x343eea,_0x11634c)=>_0x5e6c3b(_0x343eea,_0x11634c,_0x1054eb);let Z=class{constructor(_0x505015,_0x4ba11e){const _0x4d6eaf=_0x30c27a;this[_0x4d6eaf(0x236)]=_0x505015,this[_0x4d6eaf(0x3fe)]=_0x4ba11e;}['transformSelections'](_0x107f91){const _0x212cab=_0x30c27a;var _0x21fb94;const _0x4408e5=this[_0x212cab(0x236)][_0x212cab(0x235)](Y[_0x212cab(0x2e8)]),_0x59ea37=(_0x21fb94=_0x4408e5[_0x212cab(0x3f1)]())!=null?_0x21fb94:[];if(_0x59ea37[_0x212cab(0x2ff)]===0x0)return;const _0x172f65=_0x107f91[_0x212cab(0x2a5)],_0x2074a7=[{'id':_0x212cab(0x212),'params':{'unitId':_0x172f65,'actions':null,'textRanges':_0x59ea37}}],_0x339fd3=this[_0x212cab(0x3fe)][_0x212cab(0x365)](_0x107f91,_0x2074a7);if(!m['isTransformMutationsWithChangesetSuccess'](_0x339fd3))throw _0x339fd3['error'];const _0x99a394=_0x339fd3['m2Prime'][0x0][_0x212cab(0x222)][_0x212cab(0x382)];Array[_0x212cab(0x2d5)](_0x99a394)&&_0x99a394[_0x212cab(0x2ff)]&&_0x4408e5['replaceDocRanges'](_0x99a394,{'unitId':_0x172f65,'subUnitId':_0x172f65},!0x1);}};Z=Wt([Ne(0x0,a[_0x30c27a(0x34b)](a[_0x30c27a(0x248)])),Ne(0x1,m[_0x30c27a(0x341)])],Z);var Vt=Object[_0x30c27a(0x329)],Xt=(_0x296c91,_0x329236,_0x3c65cf,_0xfa8985)=>{const _0x4ac1ad=_0x30c27a;for(var _0x32ab90=_0xfa8985>0x1?void 0x0:_0xfa8985?Vt(_0x329236,_0x3c65cf):_0x329236,_0x48b359=_0x296c91[_0x4ac1ad(0x2ff)]-0x1,_0x4ef5cf;_0x48b359>=0x0;_0x48b359--)(_0x4ef5cf=_0x296c91[_0x48b359])&&(_0x32ab90=_0x4ef5cf(_0x32ab90)||_0x32ab90);return _0x32ab90;},N=(_0x228ab0,_0x5e9c9c)=>(_0x2fea0,_0x2e2e9a)=>_0x5e9c9c(_0x2fea0,_0x2e2e9a,_0x228ab0);let Q=class extends a[_0x30c27a(0x27d)]{constructor(_0x4e8c94,_0x4ea2ef,_0x4d16f8,_0x4e5fb9,_0x3f41d0,_0x179046,_0x40a82c,_0x2d2d9b){const _0x370518=_0x30c27a;super(),h(this,_0x370518(0x2ab),new d[(_0x370518(0x299))](u[_0x370518(0x1e9)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x4e8c94,this['_collaborationController']=_0x4ea2ef,this[_0x370518(0x181)]=_0x4d16f8,this[_0x370518(0x391)]=_0x4e5fb9,this['_docTransformSelectionsService']=_0x3f41d0,this[_0x370518(0x39a)]=_0x179046,this['_messageService']=_0x40a82c,this[_0x370518(0x270)]=_0x2d2d9b,this['_initEntityListener']());}[_0x30c27a(0x284)](){const _0xddc989=_0x30c27a;this[_0xddc989(0x20b)](this[_0xddc989(0x1b9)][_0xddc989(0x318)][_0xddc989(0x258)](_0x223f9d=>{const _0x3591b7=_0xddc989,_0x5996ec=this['_docStateChangeManagerService']['docStateChange$'][_0x3591b7(0x258)](_0x4ebdab=>{const _0x2f3ee3=_0x3591b7;if(_0x4ebdab==null)return;const {unitId:_0x558f45,redoState:_0x3e5ffa,commandId:_0xe5be61}=_0x4ebdab;if(_0x558f45!==_0x223f9d['unitID'])return;const _0x5c9559={'id':_0xe5be61,'type':a[_0x2f3ee3(0x26e)][_0x2f3ee3(0x3cd)],'params':{'unitId':_0x558f45,'actions':_0x3e5ffa[_0x2f3ee3(0x366)],'textRanges':null}};_0x223f9d[_0x2f3ee3(0x3c8)](_0x5c9559);});if(_0x223f9d[_0x3591b7(0x20b)](_0x5996ec),_0x223f9d instanceof u[_0x3591b7(0x1c8)]){const _0xffafa9={'onTransformIME':_0xa7d108=>this[_0x3591b7(0x181)]['transformIMECache'](_0xa7d108),'onTransformState':_0xdb24ed=>this[_0x3591b7(0x391)][_0x3591b7(0x2b6)](_0xdb24ed),'onTransformSelections':_0x1249b6=>this[_0x3591b7(0x3eb)]['transformSelections'](_0x1249b6),'onSyncEditingCollabCursor':_0x2b5e75=>this['_docSyncEditingCollabCursorService'][_0x3591b7(0x204)](_0x2b5e75),'onTransformRemoteChangesetByIMECache':_0x4d9ec1=>this[_0x3591b7(0x181)]['transformRemoteChangeset'](_0x4d9ec1),'onTransformRemoteChangesetByStateCache':_0x9645cb=>this[_0x3591b7(0x391)][_0x3591b7(0x3b6)](_0x9645cb)};_0x223f9d[_0x3591b7(0x3e2)](_0xffafa9);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x30c27a(0x3ab)])),N(0x1,a[_0x30c27a(0x34b)](u['CollaborationController'])),N(0x2,a[_0x30c27a(0x34b)](z)),N(0x3,a[_0x30c27a(0x34b)](J)),N(0x4,a[_0x30c27a(0x34b)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x30c27a(0x213)]))],Q);function _0x2320(_0x117683,_0x40b712){const _0x3f1352=_0x3f13();return _0x2320=function(_0x23200e,_0x4f1a04){_0x23200e=_0x23200e-0x16c;let _0x344daa=_0x3f1352[_0x23200e];return _0x344daa;},_0x2320(_0x117683,_0x40b712);}var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x19e10b,_0x34ad0d,_0x460f05,_0x3c3bb8)=>{const _0x46ed96=_0x30c27a;for(var _0x51b5b0=_0x3c3bb8>0x1?void 0x0:_0x3c3bb8?Gt(_0x34ad0d,_0x460f05):_0x34ad0d,_0x4bd166=_0x19e10b[_0x46ed96(0x2ff)]-0x1,_0x259ba7;_0x4bd166>=0x0;_0x4bd166--)(_0x259ba7=_0x19e10b[_0x4bd166])&&(_0x51b5b0=_0x259ba7(_0x51b5b0)||_0x51b5b0);return _0x51b5b0;},_e=(_0x58b0f3,_0x575842)=>(_0x1491a8,_0x3535a4)=>_0x575842(_0x1491a8,_0x3535a4,_0x58b0f3);let ge=class extends a[_0x30c27a(0x27d)]{constructor(_0x5b3505,_0x17153f,_0x4911a9){const _0x36a1d1=_0x30c27a;super(),h(this,'_cachedData',new Map()),h(this,_0x36a1d1(0x1e0),new Map()),h(this,_0x36a1d1(0x31f),!0x1),(this[_0x36a1d1(0x178)]=_0x5b3505,this['_localStorageService']=_0x17153f,this[_0x36a1d1(0x205)]=_0x4911a9);}[_0x30c27a(0x1c2)](){const _0x5af95e=_0x30c27a;this[_0x5af95e(0x31f)]=!0x0;}[_0x30c27a(0x25a)](){const _0x27220a=_0x30c27a;this[_0x27220a(0x31f)]=!0x1;}get[_0x30c27a(0x174)](){const _0x498e00=_0x30c27a;return this[_0x498e00(0x1e0)];}['dispose'](){const _0x343e5a=_0x30c27a;this['exhaustSavingTask']()[_0x343e5a(0x3db)](()=>super['dispose']());}async['loadOfflineData'](_0x2e64c9){const _0x261208=_0x30c27a;return this[_0x261208(0x31f)]?null:this['_localStorageService']['getItem'](u[_0x261208(0x34c)](_0x2e64c9));}async[_0x30c27a(0x23b)](_0x57a181,_0x5d4671){const _0x435ff2=_0x30c27a;return!!this[_0x435ff2(0x177)][_0x435ff2(0x35d)](_0x57a181,_0x5d4671);}[_0x30c27a(0x3a3)](_0x1b8462,_0x5d4bb8,_0x47cbe0,_0x3f7fc3){const _0x4638ec=_0x30c27a,_0xad3556=this['_revisionService'][_0x4638ec(0x2bc)](_0x1b8462);this[_0x4638ec(0x383)][_0x4638ec(0x2f3)](_0x1b8462,{'unitID':_0x1b8462,'type':_0x5d4bb8,'awaitingChangeset':_0x47cbe0,'mutations':_0x3f7fc3,'rev':_0xad3556}),this[_0x4638ec(0x1e0)][_0x4638ec(0x29e)](_0x1b8462)||this[_0x4638ec(0x241)](_0x1b8462);}[_0x30c27a(0x241)](_0x20c2cd){const _0x130731=_0x30c27a,_0x313318=this['_getSaveTimeout']();_0x313318===0x0?this[_0x130731(0x2b9)](_0x20c2cd):this[_0x130731(0x1e0)]['set'](_0x20c2cd,setTimeout(()=>this['_saveCache'](_0x20c2cd),_0x313318));}[_0x30c27a(0x276)](){const _0x91d210=_0x30c27a;var _0x4ac611;return(_0x4ac611=this['_configService'][_0x91d210(0x3ef)](u[_0x91d210(0x1bb)]))!=null?_0x4ac611:u[_0x91d210(0x36e)];}[_0x30c27a(0x2b9)](_0x27404e){const _0x55e3b6=_0x30c27a,_0x5b9ed3=this['_saveTaskMap'][_0x55e3b6(0x235)](_0x27404e);return _0x5b9ed3!==void 0x0&&window[_0x55e3b6(0x3d9)](_0x5b9ed3),this['_localStorageService']['setItem'](u[_0x55e3b6(0x34c)](_0x27404e),this['_cachedData'][_0x55e3b6(0x235)](_0x27404e))['then'](()=>this[_0x55e3b6(0x1e0)]['delete'](_0x27404e));}async['exhaustSavingTask'](){const _0x8d667b=_0x30c27a,_0x38046b=[];this[_0x8d667b(0x1e0)][_0x8d667b(0x232)]((_0x93b406,_0x42934a)=>{const _0x1cf5cb=_0x8d667b;window[_0x1cf5cb(0x3d9)](_0x93b406),_0x38046b[_0x1cf5cb(0x1b8)](this[_0x1cf5cb(0x2b9)](_0x42934a)[_0x1cf5cb(0x3db)](()=>{const _0x4e6258=_0x1cf5cb;this[_0x4e6258(0x1e0)][_0x4e6258(0x33a)](_0x42934a);}));}),await Promise[_0x8d667b(0x26f)](_0x38046b);}};ge=Kt([_e(0x0,a[_0x30c27a(0x22e)]),_e(0x1,a[_0x30c27a(0x1d9)]),_e(0x2,a[_0x30c27a(0x34b)](m['RevisionService']))],ge);class Be extends a[_0x30c27a(0x2fa)]{constructor(){const _0x44d6fb=_0x30c27a;super(),h(this,_0x44d6fb(0x21d)),this['urlChange$']=d[_0x44d6fb(0x1ec)](window,_0x44d6fb(0x35c))[_0x44d6fb(0x180)](d[_0x44d6fb(0x23f)](this[_0x44d6fb(0x320)]),d[_0x44d6fb(0x1ff)](0x1),d[_0x44d6fb(0x38b)](void 0x0));}[_0x30c27a(0x3a2)](_0x4aa6d5,_0x4df8e7,_0x3767f0=!0x1){const _0x4681df=_0x30c27a,_0x459246=new URL(window[_0x4681df(0x233)][_0x4681df(0x373)]);_0x459246[_0x4681df(0x1e6)]['set'](_0x4aa6d5,_0x4df8e7),_0x3767f0?window[_0x4681df(0x3ae)][_0x4681df(0x294)]('','',_0x459246['toString']()):window[_0x4681df(0x3ae)][_0x4681df(0x1b2)]('','',_0x459246[_0x4681df(0x290)]());}[_0x30c27a(0x280)](_0x5a00b7,_0x6d061b=!0x1){const _0x40470e=_0x30c27a,_0x396a2e=new URL(window[_0x40470e(0x233)][_0x40470e(0x373)]);_0x396a2e[_0x40470e(0x1e6)][_0x40470e(0x33a)](_0x5a00b7),_0x6d061b?window['history'][_0x40470e(0x294)]('','',_0x396a2e[_0x40470e(0x290)]()):window[_0x40470e(0x3ae)][_0x40470e(0x1b2)]('','',_0x396a2e[_0x40470e(0x290)]());}[_0x30c27a(0x31a)](_0x42cbec){const _0x2280ae=_0x30c27a;var _0x25d258;return(_0x25d258=new URL(window['location']['href'])['searchParams'][_0x2280ae(0x235)](_0x42cbec))!=null?_0x25d258:void 0x0;}}var qt=Object[_0x30c27a(0x1b4)],zt=Object[_0x30c27a(0x329)],Jt=(_0xb4c9bf,_0x1bac7e,_0x26bab7)=>_0x1bac7e in _0xb4c9bf?qt(_0xb4c9bf,_0x1bac7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26bab7}):_0xb4c9bf[_0x1bac7e]=_0x26bab7,Zt=(_0x47ac5e,_0x16cf86,_0x268c07,_0x1df82e)=>{const _0x31b26c=_0x30c27a;for(var _0x5d43e9=_0x1df82e>0x1?void 0x0:_0x1df82e?zt(_0x16cf86,_0x268c07):_0x16cf86,_0x99d5dc=_0x47ac5e[_0x31b26c(0x2ff)]-0x1,_0x236425;_0x99d5dc>=0x0;_0x99d5dc--)(_0x236425=_0x47ac5e[_0x99d5dc])&&(_0x5d43e9=_0x236425(_0x5d43e9)||_0x5d43e9);return _0x5d43e9;},he=(_0x1ffa1f,_0x5f5567)=>(_0x4ba7c1,_0x2c2093)=>_0x5f5567(_0x4ba7c1,_0x2c2093,_0x1ffa1f),Qt=(_0x218af2,_0x133bbf,_0x4ca6ad)=>Jt(_0x218af2,_0x133bbf+'',_0x4ca6ad);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x30c27a(0x1e3)]=class extends a[_0x30c27a(0x2a2)]{constructor(_0x18f200=Ue,_0x1be29e,_0x1aaa6f,_0x1dcff6){const _0x12e84d=_0x30c27a;super(),this['_config']=_0x18f200,this[_0x12e84d(0x37b)]=_0x1be29e,this[_0x12e84d(0x236)]=_0x1aaa6f,this[_0x12e84d(0x178)]=_0x1dcff6;const {..._0x4134f3}=a[_0x12e84d(0x2bb)]({},Ue,this[_0x12e84d(0x207)]);this[_0x12e84d(0x178)][_0x12e84d(0x32b)]($t,_0x4134f3);}[_0x30c27a(0x2b4)](){const _0x2d5659=_0x30c27a;this[_0x2d5659(0x3a4)](),this['_initDependencies']();}[_0x30c27a(0x35b)](){const _0x224470=_0x30c27a;this[_0x224470(0x354)]();}['_registerDependencies'](){const _0x341d7b=_0x30c27a;var _0x596b3f;const _0x4de388=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x341d7b(0x1a7)],{'useClass':G['WebSocketService']}],[u[_0x341d7b(0x254)],{'useClass':ge}],[exports[_0x341d7b(0x3ea)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x341d7b(0x3ec)](this[_0x341d7b(0x236)],a[_0x341d7b(0x192)](_0x4de388,(_0x596b3f=this[_0x341d7b(0x207)])==null?void 0x0:_0x596b3f['override']));}['_registerRenderDependencies'](){const _0xad452a=_0x30c27a;this[_0xad452a(0x20b)](this[_0xad452a(0x37b)][_0xad452a(0x188)](a[_0xad452a(0x38f)][_0xad452a(0x394)],[fe])),this[_0xad452a(0x20b)](this[_0xad452a(0x37b)]['registerRenderModule'](a[_0xad452a(0x38f)][_0xad452a(0x3d2)],[ve]));}[_0x30c27a(0x3c9)](){const _0x215466=_0x30c27a;a[_0x215466(0x369)](this[_0x215466(0x236)],[[x],[exports[_0x215466(0x3ea)]],[Q],[q],[exports[_0x215466(0x266)]]]);}},Qt(exports[_0x30c27a(0x1e3)],_0x30c27a(0x30d),es),exports[_0x30c27a(0x1e3)]=Zt([a[_0x30c27a(0x16d)](u[_0x30c27a(0x32f)]),he(0x1,p[_0x30c27a(0x307)]),he(0x2,a[_0x30c27a(0x34b)](a['Injector'])),he(0x3,a[_0x30c27a(0x22e)])],exports[_0x30c27a(0x1e3)]);var ts=Object[_0x30c27a(0x329)],ss=(_0x4e2033,_0x1757ef,_0x216bac,_0x289f7d)=>{for(var _0x2f5cdd=_0x289f7d>0x1?void 0x0:_0x289f7d?ts(_0x1757ef,_0x216bac):_0x1757ef,_0x4843d2=_0x4e2033['length']-0x1,_0x595ffb;_0x4843d2>=0x0;_0x4843d2--)(_0x595ffb=_0x4e2033[_0x4843d2])&&(_0x2f5cdd=_0x595ffb(_0x2f5cdd)||_0x2f5cdd);return _0x2f5cdd;},H=(_0x12944e,_0x1048cc)=>(_0x5d33b7,_0x4a9d4d)=>_0x1048cc(_0x5d33b7,_0x4a9d4d,_0x12944e);exports['BrowserCollaborationSocketService']=class extends u[_0x30c27a(0x330)]{constructor(_0x5a203c,_0x47e5d9,_0x9ac870,_0x16d5e1,_0x7f511){super(_0x5a203c,_0x47e5d9,_0x9ac870,_0x16d5e1,_0x7f511);}async[_0x30c27a(0x1d7)](_0x2c0aca){const _0x18364e=_0x30c27a,_0xf09d6e=await this[_0x18364e(0x26c)](),_0x3474d5=this[_0x18364e(0x171)](_0x2c0aca,_0xf09d6e);return this[_0x18364e(0x28b)](_0x3474d5);}[_0x30c27a(0x171)](_0x35375f,_0x498e6e){const _0x38743d=_0x30c27a,_0x428e3e=typeof window>'u'?new URL(_0x35375f):new URL(_0x35375f,window[_0x38743d(0x233)][_0x38743d(0x20c)]);_0x428e3e['searchParams'][_0x38743d(0x2f3)](_0x38743d(0x1a4),_0x498e6e);const _0x28d84d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x38743d(0x233)][_0x38743d(0x362)]);return _0x28d84d[_0x38743d(0x235)](_0x38743d(0x376))&&_0x428e3e[_0x38743d(0x1e6)][_0x38743d(0x2f3)](_0x38743d(0x376),_0x28d84d[_0x38743d(0x235)](_0x38743d(0x376))),_0x428e3e[_0x38743d(0x290)]();}async[_0x30c27a(0x26c)](){const _0x3f1b77=_0x30c27a;var _0x12a00c,_0x2f49c6,_0x329cf5;const _0x59f62c=this[_0x3f1b77(0x178)]['getConfig'](u[_0x3f1b77(0x3fc)]),_0x41c66e=(_0x12a00c=_0x59f62c==null?void 0x0:_0x59f62c[_0x3f1b77(0x22d)])!=null?_0x12a00c:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x329cf5=(_0x2f49c6=(await this[_0x3f1b77(0x252)][_0x3f1b77(0x235)](_0x41c66e,{'headers':{'Content-Type':_0x3f1b77(0x309)}}))[_0x3f1b77(0x308)])==null?void 0x0:_0x2f49c6[_0x3f1b77(0x1a1)])!=null?_0x329cf5:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a['Inject'](a[_0x30c27a(0x248)])),H(0x1,a[_0x30c27a(0x34b)](G[_0x30c27a(0x2ae)])),H(0x2,a[_0x30c27a(0x22e)]),H(0x3,a['ILogService']),H(0x4,m[_0x30c27a(0x2c0)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x30c27a(0x1af);class is extends a[_0x30c27a(0x27d)]{constructor(){const _0x80fa2f=_0x30c27a;super(),h(this,_0x80fa2f(0x19f),a[_0x80fa2f(0x264)]()),h(this,_0x80fa2f(0x1f4),new Set()),h(this,_0x80fa2f(0x326),new Map()),h(this,_0x80fa2f(0x2eb),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x80fa2f(0x197),new Map()),this[_0x80fa2f(0x271)]();}[_0x30c27a(0x196)](){const _0x5d71e2=_0x30c27a;super[_0x5d71e2(0x196)](),this[_0x5d71e2(0x358)][_0x5d71e2(0x232)]((_0xeada82,_0x1ce5bf)=>this[_0x5d71e2(0x38d)](_0x1ce5bf)),this[_0x5d71e2(0x2eb)]&&window[_0x5d71e2(0x3d3)](this['_heartbeatTimer']);}[_0x30c27a(0x3bf)](_0x49df1c){const _0x176341=_0x30c27a;return this['_ensureSubject'](_0x49df1c)[_0x176341(0x180)](d[_0x176341(0x249)]());}[_0x30c27a(0x195)](_0x2fa11b){const _0x540095=_0x30c27a;this[_0x540095(0x1f4)][_0x540095(0x2a9)]===0x0&&this[_0x540095(0x237)](),this[_0x540095(0x1f4)][_0x540095(0x20f)](_0x2fa11b),this[_0x540095(0x3d1)]({'type':0x0,'memberID':this[_0x540095(0x19f)],'unitIDs':[_0x2fa11b],'isForwarded':!0x1});}[_0x30c27a(0x306)](_0x1f90ae){const _0x143e32=_0x30c27a;this[_0x143e32(0x1f4)][_0x143e32(0x33a)](_0x1f90ae),this[_0x143e32(0x1f4)][_0x143e32(0x2a9)]===0x0&&this[_0x143e32(0x2eb)]&&window[_0x143e32(0x3d3)](this['_heartbeatTimer']);}[_0x30c27a(0x271)](){const _0x57d713=_0x30c27a;this[_0x57d713(0x20b)](a[_0x57d713(0x19d)](d[_0x57d713(0x1ec)](window,'storage')[_0x57d713(0x258)](_0x47d37a=>{const _0x2f1577=_0x57d713;if(_0x47d37a[_0x2f1577(0x360)]!==Le||!_0x47d37a[_0x2f1577(0x1a0)])return;const _0x15b7ae=JSON['parse'](_0x47d37a[_0x2f1577(0x1a0)]);this['_handleEvent'](_0x15b7ae);}))),window['addEventListener'](_0x57d713(0x3b7),()=>this[_0x57d713(0x3d1)]({'type':0x1,'memberID':this[_0x57d713(0x19f)],'unitIDs':Array[_0x57d713(0x1fb)](this[_0x57d713(0x1f4)])}));}[_0x30c27a(0x324)](_0x57d468){const _0x350a05=_0x30c27a;switch(_0x57d468[_0x350a05(0x31b)]){case 0x0:this['_handleJoinEvent'](_0x57d468);break;case 0x1:this[_0x350a05(0x206)](_0x57d468);break;case 0x2:this[_0x350a05(0x3e8)](_0x57d468);break;}}['_handleJoinEvent'](_0x1ca726){const _0x1a116d=_0x30c27a,{unitIDs:_0x13d13f,memberID:_0x26aeed,isForwarded:_0x36ef6c}=_0x1ca726;_0x13d13f[_0x1a116d(0x232)](_0x2cffb2=>{const _0x2e8222=_0x1a116d;if(!_0x36ef6c&&this[_0x2e8222(0x326)][_0x2e8222(0x29e)](_0x2cffb2)&&this[_0x2e8222(0x3d8)](_0x2cffb2)['next'](u[_0x2e8222(0x2ad)]['OTHER_CLIENTS_EDITING']),!this[_0x2e8222(0x326)][_0x2e8222(0x29e)](_0x2cffb2)||!this['_unitOnClients']['get'](_0x2cffb2)[_0x2e8222(0x29e)](_0x26aeed)){const _0x1ae4b7=this[_0x2e8222(0x326)][_0x2e8222(0x235)](_0x2cffb2)||new Set();_0x1ae4b7[_0x2e8222(0x20f)](_0x26aeed),this[_0x2e8222(0x326)][_0x2e8222(0x2f3)](_0x2cffb2,_0x1ae4b7),this[_0x2e8222(0x2c4)](_0x26aeed);}}),_0x36ef6c||this[_0x1a116d(0x3d1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x30c27a(0x2c4)](_0x5a3ce6){const _0x134856=_0x30c27a;this[_0x134856(0x38d)](_0x5a3ce6);const _0x4cf2dc=window[_0x134856(0x1a9)](()=>{const _0x54499d=_0x134856;this['_unitOnClients'][_0x54499d(0x232)](_0x5d746f=>{_0x5d746f['delete'](_0x5a3ce6);});},Me*0x2);this['_clearOtherTimers'][_0x134856(0x2f3)](_0x5a3ce6,_0x4cf2dc);}[_0x30c27a(0x38d)](_0x4c442d){const _0x121cde=_0x30c27a;if(this[_0x121cde(0x358)][_0x121cde(0x29e)](_0x4c442d)){const _0x46b2ac=this[_0x121cde(0x358)][_0x121cde(0x235)](_0x4c442d);_0x46b2ac&&window[_0x121cde(0x3d9)](_0x46b2ac),this[_0x121cde(0x358)]['set'](_0x4c442d,null);}}[_0x30c27a(0x206)](_0x211153){const _0x23627d=_0x30c27a,{memberID:_0xf468ad,unitIDs:_0x5d569c}=_0x211153;_0x5d569c['forEach'](_0x103793=>{const _0x574464=_0x2320;var _0x277784;const _0xf2edb9=this[_0x574464(0x326)]['get'](_0x103793);_0xf2edb9&&(_0xf2edb9[_0x574464(0x33a)](_0xf468ad),(_0x277784=this[_0x574464(0x3d8)](_0x103793))==null||_0x277784[_0x574464(0x2d2)](_0xf2edb9[_0x574464(0x2a9)]===0x0?u[_0x574464(0x2ad)][_0x574464(0x285)]:u[_0x574464(0x2ad)][_0x574464(0x298)]));}),this[_0x23627d(0x38d)](_0xf468ad);}[_0x30c27a(0x3e8)](_0x27ec46){const _0x4f08c7=_0x30c27a;this[_0x4f08c7(0x2c4)](_0x27ec46[_0x4f08c7(0x191)]);}[_0x30c27a(0x3d1)](_0x25fc2f){const _0x208a92=_0x30c27a;localStorage[_0x208a92(0x35d)](Le,JSON[_0x208a92(0x1bf)](_0x25fc2f));}[_0x30c27a(0x237)](){const _0x1090fb=_0x30c27a;this[_0x1090fb(0x2eb)]=window['setInterval'](()=>{const _0x28299f=_0x1090fb;this['_send']({'type':0x2,'memberID':this[_0x28299f(0x19f)]});},Me);}['_ensureSubject'](_0x468e73){const _0x5ba413=_0x30c27a;return this[_0x5ba413(0x197)][_0x5ba413(0x29e)](_0x468e73)||this[_0x5ba413(0x197)][_0x5ba413(0x2f3)](_0x468e73,new d[(_0x5ba413(0x299))](u[_0x5ba413(0x2ad)][_0x5ba413(0x285)])),this[_0x5ba413(0x197)]['get'](_0x468e73);}}var je=(_0x2316fd=>(_0x2316fd[_0x2316fd['UNDEFINED']=0x0]=_0x30c27a(0x22b),_0x2316fd[_0x2316fd['OK']=0x1]='OK',_0x2316fd[_0x2316fd[_0x30c27a(0x3cb)]=0x2]=_0x30c27a(0x3cb),_0x2316fd[_0x2316fd[_0x30c27a(0x203)]=0x3]=_0x30c27a(0x203),_0x2316fd[_0x2316fd[_0x30c27a(0x301)]=0x4]=_0x30c27a(0x301),_0x2316fd[_0x2316fd[_0x30c27a(0x231)]=0x5]=_0x30c27a(0x231),_0x2316fd[_0x2316fd[_0x30c27a(0x296)]=0x6]='ALREADY_EXISTS',_0x2316fd[_0x2316fd[_0x30c27a(0x3bd)]=0x7]=_0x30c27a(0x3bd),_0x2316fd[_0x2316fd[_0x30c27a(0x398)]=0x8]='TOO_MANY_REQUESTS',_0x2316fd[_0x2316fd[_0x30c27a(0x22c)]=0x9]=_0x30c27a(0x22c),_0x2316fd[_0x2316fd[_0x30c27a(0x1dc)]=0xa]=_0x30c27a(0x1dc),_0x2316fd[_0x2316fd[_0x30c27a(0x210)]=0xb]=_0x30c27a(0x210),_0x2316fd[_0x2316fd[_0x30c27a(0x33f)]=0xc]=_0x30c27a(0x33f),_0x2316fd[_0x2316fd[_0x30c27a(0x2fb)]=0xd]=_0x30c27a(0x2fb),_0x2316fd[_0x2316fd[_0x30c27a(0x2af)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2316fd[_0x2316fd[_0x30c27a(0x3e1)]=0x1389]=_0x30c27a(0x3e1),_0x2316fd[_0x2316fd[_0x30c27a(0x282)]=0x1771]=_0x30c27a(0x282),_0x2316fd[_0x2316fd['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2316fd[_0x2316fd[_0x30c27a(0x1aa)]=0x1773]=_0x30c27a(0x1aa),_0x2316fd[_0x2316fd['APPLY_REJECT']=0x1b59]=_0x30c27a(0x32e),_0x2316fd[_0x2316fd[_0x30c27a(0x24c)]=0x1b5a]=_0x30c27a(0x24c),_0x2316fd[_0x2316fd['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30c27a(0x327),_0x2316fd[_0x2316fd[_0x30c27a(0x187)]=0x1b5c]=_0x30c27a(0x187),_0x2316fd[_0x2316fd[_0x30c27a(0x1a8)]=0x1b5d]=_0x30c27a(0x1a8),_0x2316fd[_0x2316fd[_0x30c27a(0x24a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2316fd[_0x2316fd[_0x30c27a(0x3b4)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2316fd[_0x2316fd[_0x30c27a(0x340)]=0x232a]=_0x30c27a(0x340),_0x2316fd[_0x2316fd['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2316fd[_0x2316fd[_0x30c27a(0x2f4)]=0x232c]=_0x30c27a(0x2f4),_0x2316fd[_0x2316fd[_0x30c27a(0x2ef)]=0x232d]=_0x30c27a(0x2ef),_0x2316fd[_0x2316fd[_0x30c27a(0x3e4)]=0x2711]=_0x30c27a(0x3e4),_0x2316fd[_0x2316fd[_0x30c27a(0x36c)]=0x2712]=_0x30c27a(0x36c),_0x2316fd[_0x2316fd[_0x30c27a(0x268)]=0x2713]=_0x30c27a(0x268),_0x2316fd[_0x2316fd[_0x30c27a(0x3fb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2316fd[_0x2316fd[_0x30c27a(0x2df)]=0x271a]=_0x30c27a(0x2df),_0x2316fd[_0x2316fd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x30c27a(0x3de),_0x2316fd[_0x2316fd[_0x30c27a(0x25b)]=0x271c]=_0x30c27a(0x25b),_0x2316fd[_0x2316fd[_0x30c27a(0x21a)]=0x271d]=_0x30c27a(0x21a),_0x2316fd[_0x2316fd[_0x30c27a(0x3c3)]=0x271e]=_0x30c27a(0x3c3),_0x2316fd[_0x2316fd[_0x30c27a(0x2d8)]=0x271f]=_0x30c27a(0x2d8),_0x2316fd[_0x2316fd[_0x30c27a(0x17a)]=0x2720]=_0x30c27a(0x17a),_0x2316fd[_0x2316fd[_0x30c27a(0x2c2)]=0x2af9]=_0x30c27a(0x2c2),_0x2316fd[_0x2316fd[_0x30c27a(0x359)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2316fd[_0x2316fd[_0x30c27a(0x1c6)]=0x2ee2]='INVALID_INVITE_CODE',_0x2316fd[_0x2316fd[_0x30c27a(0x3ca)]=0x2ee3]=_0x30c27a(0x3ca),_0x2316fd[_0x2316fd[_0x30c27a(0x344)]=0x2ee4]=_0x30c27a(0x344),_0x2316fd[_0x2316fd[_0x30c27a(0x229)]=0x2ee5]=_0x30c27a(0x229),_0x2316fd[_0x2316fd[_0x30c27a(0x239)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2316fd[_0x2316fd[_0x30c27a(0x23c)]=0x32ca]=_0x30c27a(0x23c),_0x2316fd[_0x2316fd[_0x30c27a(0x18a)]=0x32cb]=_0x30c27a(0x18a),_0x2316fd[_0x2316fd[_0x30c27a(0x346)]=-0x1]='UNRECOGNIZED',_0x2316fd))(je||{}),ns=Object[_0x30c27a(0x329)],rs=(_0x17e2a4,_0x4d5f10,_0x322355,_0x2765f5)=>{const _0x43a802=_0x30c27a;for(var _0x5327b0=_0x2765f5>0x1?void 0x0:_0x2765f5?ns(_0x4d5f10,_0x322355):_0x4d5f10,_0x2b0d16=_0x17e2a4[_0x43a802(0x2ff)]-0x1,_0x3f75a3;_0x2b0d16>=0x0;_0x2b0d16--)(_0x3f75a3=_0x17e2a4[_0x2b0d16])&&(_0x5327b0=_0x3f75a3(_0x5327b0)||_0x5327b0);return _0x5327b0;},ue=(_0x48061b,_0x5200bc)=>(_0x23732a,_0x11c3af)=>_0x5200bc(_0x23732a,_0x11c3af,_0x48061b);exports[_0x30c27a(0x377)]=class extends a[_0x30c27a(0x27d)]{constructor(_0x547763,_0x40e530,_0x23a603){const _0x3d1bc8=_0x30c27a;super(),this[_0x3d1bc8(0x1ba)]=_0x547763,this['_httpService']=_0x40e530,this[_0x3d1bc8(0x178)]=_0x23a603;}async[_0x30c27a(0x2e2)](_0x38b8d8,_0x1abb7f,_0x3711a2,..._0xcc287b){const _0x4f53ed=_0x30c27a;var _0x57db3b,_0x2f2dfd,_0x23424d,_0x57ac7f;const _0x175691=this[_0x4f53ed(0x1ba)][_0x4f53ed(0x24e)]();if(!_0x175691)throw new Error(_0x4f53ed(0x18d));const _0x21aaf3=((_0x57db3b=this[_0x4f53ed(0x178)]['getConfig'](u[_0x4f53ed(0x2b2)]))!=null?_0x57db3b:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x38b8d8+_0x4f53ed(0x2e4)+_0x1abb7f,_0x3b58be=new URL(window[_0x4f53ed(0x233)][_0x4f53ed(0x373)]),_0x4dcc6d={'scriptId':_0x38b8d8,'runId':(_0x2f2dfd=_0x3b58be[_0x4f53ed(0x1e6)][_0x4f53ed(0x235)](_0x4f53ed(0x376)))!=null?_0x2f2dfd:'','function':_0x1abb7f,'unitId':_0x175691[_0x4f53ed(0x16f)](),'argsOfFunction':JSON[_0x4f53ed(0x1bf)](_0xcc287b),'invokeId':(_0x23424d=_0x3711a2[_0x4f53ed(0x201)])!=null?_0x23424d:'','executionId':(_0x57ac7f=_0x3711a2[_0x4f53ed(0x1f5)])!=null?_0x57ac7f:''};try{const _0x1fd334=await this[_0x4f53ed(0x252)]['post'](_0x21aaf3,{'body':_0x4dcc6d});return _0x1fd334[_0x4f53ed(0x308)]['error']&&_0x1fd334[_0x4f53ed(0x308)][_0x4f53ed(0x243)][_0x4f53ed(0x381)]!==je['OK']?_0x4f53ed(0x2e1):_0x1fd334['body'][_0x4f53ed(0x2c6)];}catch{return _0x4f53ed(0x2e1);}}},exports[_0x30c27a(0x377)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G['HTTPService'])),ue(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports[_0x30c27a(0x17d)]=xe,exports[_0x30c27a(0x1a3)]=Ee,exports[_0x30c27a(0x251)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x30c27a(0x247)]=Be;
1
+ 'use strict';const _0x3b20ce=_0x3f21;(function(_0x38bd4a,_0x282d31){const _0x13cdf9=_0x3f21,_0x31a648=_0x38bd4a();while(!![]){try{const _0x3f0dec=-parseInt(_0x13cdf9(0x3fc))/0x1*(parseInt(_0x13cdf9(0x241))/0x2)+parseInt(_0x13cdf9(0x43f))/0x3*(parseInt(_0x13cdf9(0x276))/0x4)+-parseInt(_0x13cdf9(0x2c5))/0x5*(parseInt(_0x13cdf9(0x38e))/0x6)+parseInt(_0x13cdf9(0x373))/0x7+-parseInt(_0x13cdf9(0x3f4))/0x8*(-parseInt(_0x13cdf9(0x2d0))/0x9)+-parseInt(_0x13cdf9(0x1db))/0xa+parseInt(_0x13cdf9(0x254))/0xb*(parseInt(_0x13cdf9(0x42f))/0xc);if(_0x3f0dec===_0x282d31)break;else _0x31a648['push'](_0x31a648['shift']());}catch(_0x520970){_0x31a648['push'](_0x31a648['shift']());}}}(_0x2c3e,0x69042));var Ve=Object[_0x3b20ce(0x353)],Xe=(_0x6892e9,_0x271485,_0x184743)=>_0x271485 in _0x6892e9?Ve(_0x6892e9,_0x271485,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x184743}):_0x6892e9[_0x271485]=_0x184743,h=(_0x63375f,_0x3aeec7,_0x32dbfa)=>Xe(_0x63375f,typeof _0x3aeec7!=_0x3b20ce(0x224)?_0x3aeec7+'':_0x3aeec7,_0x32dbfa);Object['defineProperty'](exports,Symbol[_0x3b20ce(0x39d)],{'value':'Module'});const u=require(_0x3b20ce(0x2e7)),a=require(_0x3b20ce(0x30c)),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require(_0x3b20ce(0x233)),Y=require(_0x3b20ce(0x438)),be=require(_0x3b20ce(0x2ca)),g=require('@univerjs/sheets'),$=require(_0x3b20ce(0x28d)),X=require(_0x3b20ce(0x393)),P=require(_0x3b20ce(0x3a0)),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require(_0x3b20ce(0x2dc)),Ke=require(_0x3b20ce(0x42a));var qe=Object[_0x3b20ce(0x36b)],ze=(_0x55d352,_0x16139d,_0x537ad5,_0x5e10fb)=>{for(var _0x4bc21a=_0x5e10fb>0x1?void 0x0:_0x5e10fb?qe(_0x16139d,_0x537ad5):_0x16139d,_0x435138=_0x55d352['length']-0x1,_0x517e53;_0x435138>=0x0;_0x435138--)(_0x517e53=_0x55d352[_0x435138])&&(_0x4bc21a=_0x517e53(_0x4bc21a)||_0x4bc21a);return _0x4bc21a;},Oe=(_0x4a4e24,_0x2a5a17)=>(_0x15bd69,_0x1f81ff)=>_0x2a5a17(_0x15bd69,_0x1f81ff,_0x4a4e24);let de=class extends a['RxDisposable']{constructor(_0x3be805,_0x1b0148){const _0x512136=_0x3b20ce;super(),this[_0x512136(0x397)]=_0x3be805,this[_0x512136(0x3da)]=_0x1b0148,this['_init']();}[_0x3b20ce(0x3e1)](){const _0x509355=_0x3b20ce,_0x6efdcf=this;this[_0x509355(0x1c3)](this[_0x509355(0x397)][_0x509355(0x2bf)]({'onBeforePasteImage':async _0x4bc1a2=>{const _0x12c9bd=_0x509355,_0x4b5460=await _0x6efdcf[_0x12c9bd(0x3da)][_0x12c9bd(0x3eb)](_0x4bc1a2);return _0x4b5460?{'source':_0x4b5460[_0x12c9bd(0x2b0)],'imageSourceType':_0x4b5460['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0x3b20ce(0x1d6)]),Oe(0x1,Ge['IImageIoService'])],de);const Te=[_0x3b20ce(0x390),_0x3b20ce(0x3b4),_0x3b20ce(0x251),_0x3b20ce(0x41e),_0x3b20ce(0x24c),_0x3b20ce(0x436)];class me extends a[_0x3b20ce(0x214)]{constructor(){const _0x26b09f=_0x3b20ce;super(...arguments),h(this,_0x26b09f(0x34c),new Map()),h(this,_0x26b09f(0x326),0x0);}[_0x3b20ce(0x3ac)](_0x113232){const _0x491f73=_0x3b20ce;if(this[_0x491f73(0x34c)][_0x491f73(0x2a0)](_0x113232))return this[_0x491f73(0x34c)][_0x491f73(0x3ff)](_0x113232);const _0x397234=Te[this[_0x491f73(0x326)]];return this['_colorIndex']=(this[_0x491f73(0x326)]+0x1)%Te['length'],this[_0x491f73(0x34c)][_0x491f73(0x26a)](_0x113232,_0x397234),_0x397234;}}function Pe(_0x55e9f7){const _0x4c0add=_0x3b20ce;let _0x57bd3d='';for(const _0x118d3f of _0x55e9f7){const {startOffset:_0x3f2a80,endOffset:_0x101552,isActive:_0x211a3b,rangeType:_0x28c4aa,segmentId:_0x141eb7,segmentPage:_0x4578e3}=_0x118d3f;_0x57bd3d[_0x4c0add(0x34f)]&&(_0x57bd3d+=','),_0x57bd3d+=_0x3f2a80+':'+_0x101552+':'+(_0x211a3b?'1':'0')+':'+_0x28c4aa+':'+_0x141eb7+':'+_0x4578e3;}return _0x57bd3d;}function Je(_0x237f9c){const _0x1e9ba1=_0x3b20ce,_0x501707=_0x237f9c[_0x1e9ba1(0x234)](','),_0xec2834=[];for(const _0x4dcde3 of _0x501707){const [_0x35aa57,_0x4a5c42,_0x1ed04e,_0x10b861,_0x43da11,_0x13b62a]=_0x4dcde3[_0x1e9ba1(0x234)](':');_0xec2834[_0x1e9ba1(0x2a5)]({'startOffset':Number(_0x35aa57),'endOffset':Number(_0x4a5c42),'collapsed':_0x35aa57===_0x4a5c42,'isActive':_0x1ed04e==='1','rangeType':_0x10b861===a[_0x1e9ba1(0x204)][_0x1e9ba1(0x3d6)]?a['DOC_RANGE_TYPE'][_0x1e9ba1(0x3d6)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x43da11==_0x1e9ba1(0x1df)?String(_0x43da11):'','segmentPage':Number(_0x13b62a!=null?_0x13b62a:-0x1)});}return _0xec2834[_0x1e9ba1(0x2f2)](_0x3f6d3a=>_0x3f6d3a[_0x1e9ba1(0x336)])||(_0xec2834[0x0][_0x1e9ba1(0x336)]=!0x0),_0xec2834;}class Ce extends a[_0x3b20ce(0x1bb)]{constructor(){const _0x231d91=_0x3b20ce;super(...arguments),h(this,_0x231d91(0x300),new d[(_0x231d91(0x287))](null)),h(this,_0x231d91(0x41a),this[_0x231d91(0x300)]['asObservable']());}[_0x3b20ce(0x2a9)](_0x985a12){const _0xd4c0b7=_0x3b20ce,{unitID:_0x10206,memberID:_0x2409f3,textRanges:_0x433f7a}=_0x985a12,_0x1ffa94=Pe(_0x433f7a);if(_0x1ffa94==='')return;const _0xb73b40={'unitID':_0x10206,'memberID':_0x2409f3,'selection':_0x1ffa94};this[_0xd4c0b7(0x300)][_0xd4c0b7(0x3c7)](_0xb73b40);}}var Ze=Object[_0x3b20ce(0x36b)],Qe=(_0xbd41c,_0x1b66fb,_0x17a645,_0x55acf7)=>{const _0x308fd9=_0x3b20ce;for(var _0x4a5644=_0x55acf7>0x1?void 0x0:_0x55acf7?Ze(_0x1b66fb,_0x17a645):_0x1b66fb,_0x38fcbf=_0xbd41c[_0x308fd9(0x34f)]-0x1,_0x53754b;_0x38fcbf>=0x0;_0x38fcbf--)(_0x53754b=_0xbd41c[_0x38fcbf])&&(_0x4a5644=_0x53754b(_0x4a5644)||_0x4a5644);return _0x4a5644;},L=(_0x1b48a1,_0x4556ed)=>(_0x34c44a,_0x7dfb3)=>_0x4556ed(_0x34c44a,_0x7dfb3,_0x1b48a1);function _0x3f21(_0x1ace08,_0x2a150c){const _0x2c3e14=_0x2c3e();return _0x3f21=function(_0x3f2156,_0x143016){_0x3f2156=_0x3f2156-0x1b6;let _0x1271b6=_0x2c3e14[_0x3f2156];return _0x1271b6;},_0x3f21(_0x1ace08,_0x2a150c);}const et=0x12c,tt=0x64;let Ie=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x5bf606,_0x2fcc82,_0x41d946,_0x4e4568,_0x55b7c5,_0x6c1b15,_0x91ab6c,_0x2cbd31,_0x4cf2fa){const _0x5ce8c8=_0x3b20ce;super(),h(this,_0x5ce8c8(0x21e),!0x1),h(this,_0x5ce8c8(0x3e1),!0x1),h(this,_0x5ce8c8(0x3b7),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x5ce8c8(0x3b7)]['asObservable']()),h(this,'_roomMembers$',new d[(_0x5ce8c8(0x287))]([])),h(this,_0x5ce8c8(0x286),this[_0x5ce8c8(0x266)][_0x5ce8c8(0x32f)](d[_0x5ce8c8(0x1d4)](et))),h(this,_0x5ce8c8(0x402),a['debounce'](_0x20435b=>{const _0x140b89=_0x5ce8c8,_0x53894c={'eventID':m[_0x140b89(0x2b3)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x140b89(0x225)],'memberID':this[_0x140b89(0x3b6)][_0x140b89(0x23b)](),'selection':Pe(_0x20435b)}};this['_session'][_0x140b89(0x1e1)](_0x53894c,this['unitID']);},tt)),(this[_0x5ce8c8(0x225)]=_0x5bf606,this[_0x5ce8c8(0x3b6)]=_0x2fcc82,this['_injector']=_0x41d946,this[_0x5ce8c8(0x242)]=_0x4e4568,this[_0x5ce8c8(0x277)]=_0x55b7c5,this['_syncEditingCollabCursorService']=_0x6c1b15,this['_transformService']=_0x91ab6c,this[_0x5ce8c8(0x27e)]=_0x2cbd31,this[_0x5ce8c8(0x372)]=_0x4cf2fa);}get[_0x3b20ce(0x3b3)](){return this['_cursorInfo$']['getValue']();}get[_0x3b20ce(0x421)](){const _0x540121=_0x3b20ce;return this[_0x540121(0x266)][_0x540121(0x328)]();}['dispose'](){const _0x187789=_0x3b20ce;super[_0x187789(0x392)](),this[_0x187789(0x3b7)]['next'](new Map()),this[_0x187789(0x3b7)][_0x187789(0x408)](),this[_0x187789(0x266)][_0x187789(0x3c7)]([]),this[_0x187789(0x266)][_0x187789(0x408)]();}[_0x3b20ce(0x2cd)](){const _0x1e3cdc=_0x3b20ce;this[_0x1e3cdc(0x3e1)]||(this[_0x1e3cdc(0x3e1)]=!0x0,this['_session'][_0x1e3cdc(0x310)][_0x1e3cdc(0x32f)](d[_0x1e3cdc(0x2ec)](this[_0x1e3cdc(0x28c)]))['subscribe'](_0xa129c8=>{const _0x57e752=_0x1e3cdc;_0xa129c8===u[_0x57e752(0x1c5)][_0x57e752(0x27b)]?this[_0x57e752(0x1c6)]():this[_0x57e752(0x304)]();}),this[_0x1e3cdc(0x3b6)][_0x1e3cdc(0x3a3)]['pipe'](d['takeUntil'](this[_0x1e3cdc(0x28c)]))['subscribe'](_0x51fdab=>{const _0x1978e0=_0x1e3cdc,_0x558995=_0x51fdab[_0x1978e0(0x3c3)];_0x558995===m[_0x1978e0(0x2b3)][_0x1978e0(0x29c)]&&this[_0x1978e0(0x2ae)](_0x51fdab),_0x558995===m[_0x1978e0(0x2b3)][_0x1978e0(0x3c1)]&&this[_0x1978e0(0x2c6)](_0x51fdab);}),this[_0x1e3cdc(0x1c3)](this[_0x1e3cdc(0x372)]['onCommandExecuted'](_0x2e9fa6=>{const _0x2f3a13=_0x1e3cdc,_0x3d0686=_0x2e9fa6[_0x2f3a13(0x346)];_0x3d0686!=null&&this[_0x2f3a13(0x21e)]&&_0x2e9fa6['id']===Y[_0x2f3a13(0x215)]['id']&&_0x3d0686[_0x2f3a13(0x22a)]===this['unitID']&&_0x3d0686[_0x2f3a13(0x324)]===!0x1&&_0x3d0686[_0x2f3a13(0x387)][_0x2f3a13(0x34f)]>0x0&&this[_0x2f3a13(0x402)](_0x3d0686['ranges']);})),this['_syncEditingCollabCursorService'][_0x1e3cdc(0x41a)][_0x1e3cdc(0x32f)](d[_0x1e3cdc(0x2ec)](this['dispose$']))[_0x1e3cdc(0x3d4)](_0x1d756b=>{const _0x3b7879=_0x1e3cdc;if((_0x1d756b==null?void 0x0:_0x1d756b[_0x3b7879(0x225)])!==this['unitID'])return;const _0x48cae5={'eventID':m[_0x3b7879(0x2b3)]['UPDATE_CURSOR'],'data':_0x1d756b};this['_onCursorUpdate'](_0x48cae5);}),this['disposeWithMe'](this[_0x1e3cdc(0x372)]['onCommandExecuted'](_0x1499f8=>{const _0x285e76=_0x1e3cdc;if(_0x1499f8[_0x285e76(0x346)]==null)return;const _0xa8a7c5=_0x1499f8[_0x285e76(0x346)];if(_0x1499f8['id']!==Y[_0x285e76(0x3de)]['id']||_0xa8a7c5[_0x285e76(0x22a)]!==this[_0x285e76(0x225)])return;const _0x5299fb={'id':_0x285e76(0x431),'params':_0xa8a7c5},_0x2ceaaa=this[_0x285e76(0x3b3)];for(const [_0x35be55,_0x16e6dc]of _0x2ceaaa){const _0x3c24a6={'id':_0x285e76(0x431),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x16e6dc[_0x285e76(0x387)]}},_0x1241fe=this[_0x285e76(0x30f)][_0x285e76(0x440)](_0x5299fb,_0x3c24a6,!0x1);if(m[_0x285e76(0x207)](_0x1241fe))throw _0x1241fe['error'];_0x2ceaaa['set'](_0x35be55,{..._0x16e6dc,'ranges':_0x1241fe['m2Prime'][_0x285e76(0x346)][_0x285e76(0x38f)]});}queueMicrotask(()=>{const _0x20e945=_0x285e76;this[_0x20e945(0x3b7)][_0x20e945(0x3c7)](_0x2ceaaa);});})));}[_0x3b20ce(0x2ae)](_0x13c11c){const _0x1ebe75=_0x3b20ce;var _0x5ba296,_0x42d581;const {memberID:_0x36c35a,selection:_0x319224}=_0x13c11c[_0x1ebe75(0x1d8)],_0x5703e3=Je(_0x319224),_0x1b763b=(_0x42d581=(_0x5ba296=this[_0x1ebe75(0x277)][_0x1ebe75(0x271)](this[_0x1ebe75(0x225)],_0x36c35a))==null?void 0x0:_0x5ba296['name'])!=null?_0x42d581:_0x1ebe75(0x1d3),_0x55725e={'color':this[_0x1ebe75(0x242)][_0x1ebe75(0x3ac)](_0x36c35a),'name':_0x1b763b,'ranges':_0x5703e3},_0x144859=this[_0x1ebe75(0x3b3)];_0x144859[_0x1ebe75(0x26a)](_0x36c35a,_0x55725e),this['_cursorInfo$'][_0x1ebe75(0x3c7)](_0x144859);}[_0x3b20ce(0x2c6)](_0x316d70){const _0x38e83c=_0x3b20ce,{memberID:_0x43953d}=_0x316d70['data'],_0x23ceac=this[_0x38e83c(0x3b3)];_0x23ceac['delete'](_0x43953d),this[_0x38e83c(0x3b7)]['next'](_0x23ceac);}[_0x3b20ce(0x1c6)](){const _0x4cd4f1=_0x3b20ce;var _0x4d49b6;if(this[_0x4cd4f1(0x21e)]=!0x0,((_0x4d49b6=this[_0x4cd4f1(0x27e)][_0x4cd4f1(0x3b8)]())==null?void 0x0:_0x4d49b6[_0x4cd4f1(0x35f)]())!==this[_0x4cd4f1(0x225)])return;const _0x2a5d17=this[_0x4cd4f1(0x411)][_0x4cd4f1(0x3ff)](Y['DocSelectionManagerService'])[_0x4cd4f1(0x418)]();Array['isArray'](_0x2a5d17)&&_0x2a5d17[_0x4cd4f1(0x34f)]>0x0&&this[_0x4cd4f1(0x402)](_0x2a5d17);}[_0x3b20ce(0x304)](){const _0x90058c=_0x3b20ce;this[_0x90058c(0x21e)]=!0x1;}};Ie=Qe([L(0x2,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x366)])),L(0x3,a[_0x3b20ce(0x282)](me)),L(0x4,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x235)])),L(0x5,a[_0x3b20ce(0x282)](Ce)),L(0x6,m[_0x3b20ce(0x1f8)]),L(0x7,a[_0x3b20ce(0x317)]),L(0x8,a['ICommandService'])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x3b8c22,_0x29d42f,_0x47aaa5,_0x253903)=>{const _0x6d971f=_0x3b20ce;for(var _0x2807e3=_0x253903>0x1?void 0x0:_0x253903?st(_0x29d42f,_0x47aaa5):_0x29d42f,_0x371ca1=_0x3b8c22[_0x6d971f(0x34f)]-0x1,_0x2ad50b;_0x371ca1>=0x0;_0x371ca1--)(_0x2ad50b=_0x3b8c22[_0x371ca1])&&(_0x2807e3=_0x2ad50b(_0x2807e3)||_0x2807e3);return _0x2807e3;},A=(_0x186df2,_0x530526)=>(_0x54cd28,_0xcaa9a3)=>_0x530526(_0x54cd28,_0xcaa9a3,_0x186df2);const nt=0x12c,rt=0x64,ot=()=>{let _0x21117e=[],_0x32acbe=!0x1;return _0x4a4b3e=>{const _0xcef11f=_0x3f21;_0x21117e[_0xcef11f(0x2a5)](_0x4a4b3e),_0x32acbe||(_0x32acbe=!0x0,setTimeout(()=>{const _0x1c3df8=_0xcef11f;_0x21117e[_0x1c3df8(0x42b)](_0x106138=>_0x106138()),_0x21117e=[],_0x32acbe=!0x1;}));};};let Se=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x1eb3ee,_0x14a632,_0x2f08bf,_0x2fcc1c,_0x3e34fa,_0x278a69,_0x434b09,_0x4c0f50){const _0xecd6e5=_0x3b20ce;super(),h(this,'_online',!0x1),h(this,_0xecd6e5(0x3e1),!0x1),h(this,_0xecd6e5(0x3b7),new d['BehaviorSubject'](new Map())),h(this,_0xecd6e5(0x3c2),this[_0xecd6e5(0x3b7)][_0xecd6e5(0x22e)]()),h(this,_0xecd6e5(0x266),new d[(_0xecd6e5(0x287))]([])),h(this,_0xecd6e5(0x286),this['_roomMembers$']['pipe'](d['debounceTime'](nt))),h(this,_0xecd6e5(0x402),a[_0xecd6e5(0x246)]((_0xfb2bd7,_0x42a24c)=>{const _0x429778=_0xecd6e5,_0xab2866={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x429778(0x225)],'memberID':this['_session'][_0x429778(0x23b)](),'selection':be[_0x429778(0x2d2)](_0xfb2bd7,_0x42a24c['range'])}};this[_0x429778(0x3b6)]['send'](_0xab2866,this['unitID']);},rt)),(this[_0xecd6e5(0x225)]=_0x1eb3ee,this['_session']=_0x14a632,this['_injector']=_0x2f08bf,this[_0xecd6e5(0x242)]=_0x2fcc1c,this[_0xecd6e5(0x277)]=_0x3e34fa,this[_0xecd6e5(0x27e)]=_0x278a69,this['_commandService']=_0x434b09,this[_0xecd6e5(0x2a6)]=_0x4c0f50);}get[_0x3b20ce(0x3b3)](){const _0xa6fd41=_0x3b20ce;return this[_0xa6fd41(0x3b7)][_0xa6fd41(0x328)]();}get[_0x3b20ce(0x421)](){const _0x3c3ca2=_0x3b20ce;return this[_0x3c3ca2(0x266)][_0x3c3ca2(0x328)]();}['dispose'](){const _0x2f35d5=_0x3b20ce;super[_0x2f35d5(0x392)](),this[_0x2f35d5(0x3b7)][_0x2f35d5(0x3c7)](new Map()),this[_0x2f35d5(0x3b7)][_0x2f35d5(0x408)](),this[_0x2f35d5(0x266)]['next']([]),this[_0x2f35d5(0x266)][_0x2f35d5(0x408)]();}[_0x3b20ce(0x2cd)](){const _0xfc5da6=_0x3b20ce;this[_0xfc5da6(0x3e1)]||(this[_0xfc5da6(0x3e1)]=!0x0,this[_0xfc5da6(0x3b6)][_0xfc5da6(0x310)]['pipe'](d[_0xfc5da6(0x2ec)](this['dispose$']))[_0xfc5da6(0x3d4)](_0x5a67c8=>{const _0x1e95d2=_0xfc5da6;_0x5a67c8===u[_0x1e95d2(0x1c5)]['ONLINE']?this[_0x1e95d2(0x1c6)]():this[_0x1e95d2(0x304)]();}),this[_0xfc5da6(0x3b6)][_0xfc5da6(0x3a3)]['pipe'](d['takeUntil'](this[_0xfc5da6(0x28c)]))[_0xfc5da6(0x3d4)](_0x34a7fa=>{const _0x2f37ef=_0xfc5da6,_0x395db5=_0x34a7fa[_0x2f37ef(0x3c3)];_0x395db5===m['CollaborationEvent'][_0x2f37ef(0x29c)]&&this[_0x2f37ef(0x2ae)](_0x34a7fa),_0x395db5===m[_0x2f37ef(0x2b3)][_0x2f37ef(0x3c1)]&&this[_0x2f37ef(0x2c6)](_0x34a7fa);}),this[_0xfc5da6(0x1eb)](),this[_0xfc5da6(0x1c3)](this['_commandService'][_0xfc5da6(0x29a)](_0x1d1b09=>{const _0x27f22e=_0xfc5da6;if(this[_0x27f22e(0x21e)]&&_0x1d1b09['id']===g[_0x27f22e(0x359)]['id']&&_0x1d1b09[_0x27f22e(0x346)][_0x27f22e(0x22a)]===this[_0x27f22e(0x225)]){const _0x42e293=_0x1d1b09[_0x27f22e(0x346)];this[_0x27f22e(0x402)](_0x42e293['subUnitId'],_0x42e293[_0x27f22e(0x365)][0x0]);}})));}[_0x3b20ce(0x2ae)](_0x25815f){const _0x21aab8=_0x3b20ce;var _0x446f96,_0x324689;const {memberID:_0x5472d3,selection:_0x303e30}=_0x25815f[_0x21aab8(0x1d8)],{sheetName:_0x3b272b,range:_0x5cf15c}=be[_0x21aab8(0x1dd)](_0x303e30),_0x3a8e62={'name':(_0x324689=(_0x446f96=this[_0x21aab8(0x277)]['getMember'](this[_0x21aab8(0x225)],_0x5472d3))==null?void 0x0:_0x446f96['name'])!=null?_0x324689:_0x21aab8(0x1d3),'range':this[_0x21aab8(0x380)](_0x3b272b,_0x5cf15c),'sheetID':_0x3b272b,'color':this['_colorAssignService'][_0x21aab8(0x3ac)](_0x5472d3),'selection':_0x303e30},_0x2ca721=this['cursorInfo'];_0x2ca721[_0x21aab8(0x26a)](_0x5472d3,_0x3a8e62),this[_0x21aab8(0x3b7)][_0x21aab8(0x3c7)](_0x2ca721);}[_0x3b20ce(0x2c6)](_0x53a637){const _0x1b1194=_0x3b20ce,{memberID:_0x25a424}=_0x53a637[_0x1b1194(0x1d8)],_0x4d9412=this[_0x1b1194(0x3b3)];_0x4d9412[_0x1b1194(0x30b)](_0x25a424),this['_cursorInfo$'][_0x1b1194(0x3c7)](_0x4d9412);}[_0x3b20ce(0x380)](_0x83c3cb,_0x5a9122){const _0x3b2ef8=_0x3b20ce;var _0x187bc1,_0x58a391;const _0xe26615=(_0x58a391=(_0x187bc1=this[_0x3b2ef8(0x27e)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x187bc1[_0x3b2ef8(0x32d)](_0x83c3cb))==null?void 0x0:_0x58a391[_0x3b2ef8(0x3ee)]();return(_0xe26615==null?void 0x0:_0xe26615[_0x3b2ef8(0x2e8)](_0x55f741=>a[_0x3b2ef8(0x23a)]['contains'](_0x55f741,_0x5a9122)))||_0x5a9122;}[_0x3b20ce(0x1eb)](){const _0x1d1269=_0x3b20ce,_0x518b23=new a['DisposableCollection'](),_0x3d078c=ot(),_0x1c8132=()=>{const _0x387390=_0x3f21;_0x518b23[_0x387390(0x392)]();const _0x6f56e0=(_0x278345,_0x1d087e,_0x410cd1,_0x5d795d)=>{const _0x32a4df=_0x387390;let _0x44e406=[];switch(_0x278345['id']){case g[_0x32a4df(0x1cb)]['DeleteRangeMoveLeftCommandId']:{_0x44e406=g[_0x32a4df(0x348)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId'][_0x32a4df(0x319)]:{_0x44e406=g[_0x32a4df(0x3b1)](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)]['InsertColCommandId']:{_0x44e406=g[_0x32a4df(0x40c)](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)][_0x32a4df(0x2f4)]:{_0x44e406=g[_0x32a4df(0x274)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId'][_0x32a4df(0x2fe)]:{_0x44e406=g['handleInsertRangeMoveRight'](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)]['InsertRowCommandId']:{_0x44e406=g[_0x32a4df(0x22d)](_0x278345,_0x5d795d);break;}case g[_0x32a4df(0x1cb)]['MoveRangeCommandId']:{_0x44e406=g[_0x32a4df(0x37e)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId']['RemoveColCommandId']:{_0x44e406=g[_0x32a4df(0x2da)](_0x278345,_0x5d795d);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x44e406=g[_0x32a4df(0x1ff)](_0x278345,_0x5d795d);break;}}const _0x39efdf=g['runRefRangeMutations'](_0x44e406,_0x5d795d),_0x190f45=this['cursorInfo'][_0x32a4df(0x3ff)](_0x1d087e);if(_0x190f45&&_0x39efdf){const _0x271c3b={..._0x190f45,'range':_0x39efdf};this[_0x32a4df(0x3b3)]['set'](_0x1d087e,_0x271c3b),_0x3d078c(()=>{const _0xcf8641=_0x32a4df,_0x52dd71=this[_0xcf8641(0x2a6)][_0xcf8641(0x355)](_0x39efdf,_0x56b526=>(_0x52dd71[_0xcf8641(0x392)](),_0x6f56e0(_0x56b526,_0x1d087e,_0x410cd1,_0x39efdf)));_0x518b23[_0xcf8641(0x43e)](_0x52dd71);});}return{'redos':[],'undos':[]};};this[_0x387390(0x3b3)][_0x387390(0x42b)]((_0x22d705,_0x12fad6)=>{const _0x25215b=_0x387390,{range:_0xb7d3f1,sheetID:_0x49b19b}=_0x22d705,_0x1ca0f6=this['_refRangeService'][_0x25215b(0x355)](_0xb7d3f1,_0x18283d=>(_0x1ca0f6[_0x25215b(0x392)](),_0x6f56e0(_0x18283d,_0x12fad6,_0x49b19b,_0xb7d3f1)));_0x518b23[_0x25215b(0x43e)](_0x1ca0f6);});};this[_0x1d1269(0x1c3)](a['toDisposable'](this[_0x1d1269(0x3b7)]['subscribe'](()=>{_0x1c8132();})));}['_toggleOnline'](){const _0x32bf1e=_0x3b20ce;var _0x2defdf,_0x467858;if(this[_0x32bf1e(0x21e)]=!0x0,((_0x2defdf=this[_0x32bf1e(0x27e)][_0x32bf1e(0x3b8)]())==null?void 0x0:_0x2defdf['getUnitId']())!==this['unitID'])return;const _0x17c147=(_0x467858=this[_0x32bf1e(0x411)][_0x32bf1e(0x3ff)](g[_0x32bf1e(0x203)])[_0x32bf1e(0x407)]())==null?void 0x0:_0x467858[0x0],_0x2c62e1=this['_univerInstanceService'][_0x32bf1e(0x3a2)](a['UniverInstanceType'][_0x32bf1e(0x21a)])[_0x32bf1e(0x3f2)]();_0x17c147&&_0x2c62e1&&this[_0x32bf1e(0x402)](_0x2c62e1['getSheetId'](),_0x17c147);}['_toggleOffline'](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x366)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x235)])),A(0x5,a[_0x3b20ce(0x317)]),A(0x6,a[_0x3b20ce(0x340)]),A(0x7,a[_0x3b20ce(0x282)](g[_0x3b20ce(0x217)]))],Se);var at=Object[_0x3b20ce(0x36b)],ct=(_0x4cc633,_0x303756,_0x19f1c1,_0x1e94e0)=>{const _0x3b664a=_0x3b20ce;for(var _0x2e33f9=_0x1e94e0>0x1?void 0x0:_0x1e94e0?at(_0x303756,_0x19f1c1):_0x303756,_0x5ec69c=_0x4cc633[_0x3b664a(0x34f)]-0x1,_0x21ba21;_0x5ec69c>=0x0;_0x5ec69c--)(_0x21ba21=_0x4cc633[_0x5ec69c])&&(_0x2e33f9=_0x21ba21(_0x2e33f9)||_0x2e33f9);return _0x2e33f9;},ie=(_0x4630ed,_0x37a440)=>(_0x2624b4,_0x1cbc28)=>_0x37a440(_0x2624b4,_0x1cbc28,_0x4630ed);let x=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x45539c,_0x5a5bf6,_0x2b5435){const _0x4ad764=_0x3b20ce;super(),h(this,'_entities',new Map()),h(this,_0x4ad764(0x2d4),new d[(_0x4ad764(0x362))]()),(this['_univerInstanceService']=_0x45539c,this[_0x4ad764(0x411)]=_0x5a5bf6,this[_0x4ad764(0x20c)]=_0x2b5435,this[_0x4ad764(0x3e1)]());}['dispose'](){const _0xb902ef=_0x3b20ce;super[_0xb902ef(0x392)](),this[_0xb902ef(0x2d4)][_0xb902ef(0x408)](),this['_entities'][_0xb902ef(0x42b)](_0x1f563d=>_0x1f563d[_0xb902ef(0x392)]());}[_0x3b20ce(0x25a)](_0x141ff0){const _0x152d6f=_0x3b20ce;return this[_0x152d6f(0x40d)][_0x152d6f(0x2a0)](_0x141ff0)?this[_0x152d6f(0x40d)]['get'](_0x141ff0)[_0x152d6f(0x3c2)]:this['_entityInit$']['pipe'](d[_0x152d6f(0x375)](_0x1535df=>_0x1535df[_0x152d6f(0x225)]===_0x141ff0),d[_0x152d6f(0x232)](_0x2e252a=>_0x2e252a[_0x152d6f(0x3c2)]));}['_init'](){const _0xaa2ed1=_0x3b20ce;this['_univerInstanceService'][_0xaa2ed1(0x219)](a['UniverInstanceType']['UNIVER_SHEET'])[_0xaa2ed1(0x32f)](d[_0xaa2ed1(0x2ec)](this[_0xaa2ed1(0x28c)]))[_0xaa2ed1(0x3d4)](async _0x2f59f6=>{const _0x7a39f0=_0xaa2ed1,_0x3a14e7=_0x2f59f6['getUnitId'](),_0x482262=await this[_0x7a39f0(0x405)](_0x3a14e7);this['_entityInit$']['next'](_0x482262),this[_0x7a39f0(0x40d)]['set'](_0x3a14e7,_0x482262);}),this['_univerInstanceService'][_0xaa2ed1(0x219)](a[_0xaa2ed1(0x356)]['UNIVER_DOC'])[_0xaa2ed1(0x32f)](d[_0xaa2ed1(0x2ec)](this[_0xaa2ed1(0x28c)]))[_0xaa2ed1(0x32f)](d['filter'](_0x44b063=>!_0x44b063[_0xaa2ed1(0x35f)]()[_0xaa2ed1(0x335)]('__')))['subscribe'](async _0x2659f8=>{const _0x2ceb60=_0xaa2ed1,_0x2baf23=_0x2659f8[_0x2ceb60(0x35f)](),_0x39d70b=await this[_0x2ceb60(0x2a7)](_0x2baf23);this[_0x2ceb60(0x2d4)][_0x2ceb60(0x3c7)](_0x39d70b),this['_entities'][_0x2ceb60(0x26a)](_0x2baf23,_0x39d70b);}),d['merge'](this[_0xaa2ed1(0x27e)][_0xaa2ed1(0x305)](a['UniverInstanceType'][_0xaa2ed1(0x29b)]),this['_univerInstanceService'][_0xaa2ed1(0x305)](a['UniverInstanceType']['UNIVER_SHEET']))[_0xaa2ed1(0x32f)](d[_0xaa2ed1(0x2ec)](this['dispose$']))['subscribe'](_0x4b4362=>{const _0x311603=_0xaa2ed1,_0xae88a3=_0x4b4362['getUnitId'](),_0x301b33=this['_entities']['get'](_0xae88a3);_0x301b33&&(_0x301b33[_0x311603(0x392)](),this['_entities'][_0x311603(0x30b)](_0xae88a3));});}async[_0x3b20ce(0x405)](_0x52a3c1){const _0x34547d=_0x3b20ce,_0x131eb8=await this[_0x34547d(0x20c)]['requireSession'](_0x52a3c1),_0x36c844=this['_injector'][_0x34547d(0x322)](Se,_0x52a3c1,_0x131eb8);return _0x36c844['init'](),_0x36c844;}async[_0x3b20ce(0x2a7)](_0xd0cd50){const _0x557ade=_0x3b20ce,_0x37b415=await this[_0x557ade(0x20c)][_0x557ade(0x414)](_0xd0cd50),_0x840cf4=this[_0x557ade(0x411)][_0x557ade(0x322)](Ie,_0xd0cd50,_0x37b415);return _0x840cf4[_0x557ade(0x2cd)](),_0x840cf4;}};x=ct([ie(0x0,a[_0x3b20ce(0x317)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x2ad)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x49f19c,_0x4851d6){const _0x32127b=_0x3b20ce;let {radius:_0x14f305,width:_0x3fe62c,height:_0x55aa25}=_0x4851d6;_0x14f305=_0x14f305!=null?_0x14f305:0x0,_0x3fe62c=_0x3fe62c!=null?_0x3fe62c:0x1e,_0x55aa25=_0x55aa25!=null?_0x55aa25:0x1e;let _0x56327c=0x0,_0x11e19c=0x0,_0x550f7c=0x0;_0x56327c=_0x11e19c=_0x550f7c=Math[_0x32127b(0x290)](_0x14f305,_0x3fe62c/0x2,_0x55aa25/0x2),_0x49f19c['beginPath'](),_0x49f19c[_0x32127b(0x2d5)](_0x56327c,0x0),_0x49f19c[_0x32127b(0x1e9)](_0x3fe62c-_0x11e19c,0x0),_0x49f19c[_0x32127b(0x2f7)](_0x3fe62c-_0x11e19c,_0x11e19c,_0x11e19c,Math['PI']*0x3/0x2,0x0,!0x1),_0x49f19c['lineTo'](_0x3fe62c,_0x55aa25-_0x550f7c),_0x49f19c[_0x32127b(0x2f7)](_0x3fe62c-_0x550f7c,_0x55aa25-_0x550f7c,_0x550f7c,0x0,Math['PI']/0x2,!0x1),_0x49f19c[_0x32127b(0x1e9)](0x0,_0x55aa25),_0x49f19c[_0x32127b(0x1e9)](0x0,_0x56327c),_0x49f19c[_0x32127b(0x2f7)](_0x56327c,_0x56327c,_0x56327c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49f19c[_0x32127b(0x1ec)](),_0x4851d6['fill']&&(_0x49f19c[_0x32127b(0x1fc)](),_0x49f19c[_0x32127b(0x1cf)]=_0x4851d6[_0x32127b(0x325)],_0x4851d6['fillRule']===_0x32127b(0x2bb)?_0x49f19c['fill'](_0x32127b(0x2bb)):_0x49f19c[_0x32127b(0x325)](),_0x49f19c[_0x32127b(0x43d)]());}class ee extends p[_0x3b20ce(0x1e4)]{constructor(_0x22cb37,_0x25371d){const _0xb1facc=_0x3b20ce;super(_0x22cb37,_0x25371d),h(this,'color'),h(this,_0xb1facc(0x24a)),(this['color']=_0x25371d==null?void 0x0:_0x25371d[_0xb1facc(0x338)],this['text']=_0x25371d==null?void 0x0:_0x25371d[_0xb1facc(0x24a)]);}static[_0x3b20ce(0x2bc)](_0xb29ceb,_0x539578){const _0x54090a=_0x3b20ce,{text:_0x49337a,color:_0x177dbd}=_0x539578;_0xb29ceb[_0x54090a(0x1fc)](),_0xb29ceb[_0x54090a(0x1cc)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x20f5e5=_0xb29ceb['measureText'](_0x49337a)['width'],_0x47957d=Math['min'](_0x20f5e5+0x2*ne,Re);_t(_0xb29ceb,{'height':K,'radius':0x4,'width':_0x47957d,'fill':_0x177dbd}),_0xb29ceb[_0x54090a(0x1cf)]='#FFF';const _0x556a37=ne,_0x5bf865=K-lt,_0x30b2c9=Re-0x2*ne;if(_0x20f5e5>_0x30b2c9){let _0x22ed21='',_0x2372d4=0x0;for(const _0x391d9a of _0x49337a){const _0x115195=_0xb29ceb[_0x54090a(0x31e)](_0x391d9a)[_0x54090a(0x2b2)];if(_0x2372d4+_0x115195<=_0x30b2c9-_0xb29ceb[_0x54090a(0x31e)](_0x54090a(0x2c7))[_0x54090a(0x2b2)])_0x22ed21+=_0x391d9a,_0x2372d4+=_0x115195;else{_0x22ed21+=_0x54090a(0x2c7);break;}}_0xb29ceb['fillText'](_0x22ed21,_0x556a37,_0x5bf865);}else _0xb29ceb[_0x54090a(0x1ef)](_0x49337a,_0x556a37,_0x5bf865);_0xb29ceb[_0x54090a(0x43d)]();}['_draw'](_0x310291){const _0x59e53f=_0x3b20ce;ee[_0x59e53f(0x2bc)](_0x310291,this);}}const re=_0x3b20ce(0x3b2),ht='collab-text-range-',ut=_0x3b20ce(0x437),k=0x6,dt=1.5,oe=0x4,It=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x4cee54,_0x5076b9,_0x207e28,_0x37c6d6){const _0x4eda87=_0x3b20ce;h(this,_0x4eda87(0x404),[]),h(this,_0x4eda87(0x333),null),h(this,_0x4eda87(0x222),null),h(this,_0x4eda87(0x316),null),h(this,'_hideTimer',null),h(this,_0x4eda87(0x23c),null),(this[_0x4eda87(0x262)]=_0x4cee54,this[_0x4eda87(0x422)]=_0x5076b9,this[_0x4eda87(0x3ba)]=_0x207e28,this[_0x4eda87(0x388)]=_0x37c6d6,this[_0x4eda87(0x3c0)]());}set[_0x3b20ce(0x349)](_0x2cefd7){const _0x4440fc=_0x3b20ce;_0x2cefd7?(this[_0x4440fc(0x316)]&&this[_0x4440fc(0x316)][_0x4440fc(0x25c)](),this['_textBubble']&&this[_0x4440fc(0x222)]['show']()):(this[_0x4440fc(0x316)]&&this['_anchorDot'][_0x4440fc(0x3b9)](),this[_0x4440fc(0x222)]&&this[_0x4440fc(0x222)]['hide']());}['dispose'](){const _0x1eed6a=_0x3b20ce;for(const _0x52c0b5 of this[_0x1eed6a(0x404)])_0x52c0b5[_0x1eed6a(0x392)]();this[_0x1eed6a(0x222)]&&this[_0x1eed6a(0x222)][_0x1eed6a(0x392)](),this[_0x1eed6a(0x316)]&&this[_0x1eed6a(0x316)][_0x1eed6a(0x392)](),this[_0x1eed6a(0x333)]&&this[_0x1eed6a(0x333)][_0x1eed6a(0x392)](),this[_0x1eed6a(0x23c)]&&this[_0x1eed6a(0x23c)]();}[_0x3b20ce(0x3c0)](){const _0x8c7d31=_0x3b20ce;var _0xf8ba5;const {_docSkeleton:_0x316833,_document:_0x3e84b2}=this,{color:_0x4dfacc,name:_0x1e39fc,ranges:_0xc9e992}=this[_0x8c7d31(0x262)],_0x73f606=_0x3e84b2[_0x8c7d31(0x347)](),{docsLeft:_0x5b7590,docsTop:_0x3c4b3e}=_0x73f606,_0x1128bd=new E[(_0x8c7d31(0x2de))](_0x73f606,_0x316833);for(const {startOffset:_0x2f70c6,endOffset:_0x177a93,rangeType:_0x9eb310,segmentId:_0x169243,segmentPage:_0x2b3e02,collapsed:_0x2e813e,isActive:_0xc58aed}of _0xc9e992){const _0x324728=_0x316833[_0x8c7d31(0x26b)](_0x2f70c6,!0x0,_0x169243,_0x2b3e02);let _0x3aa67b=_0x316833['findNodePositionByCharIndex'](_0x177a93,!0x0,_0x169243,_0x2b3e02);if(_0x3aa67b==null&&(_0x3aa67b=_0x316833[_0x8c7d31(0x26b)](_0x177a93-0x1,!0x1,_0x169243,_0x2b3e02)),_0xc58aed){const {contentBoxPointGroup:_0x171d18}=_0x1128bd[_0x8c7d31(0x1d1)](_0x3aa67b,_0x3aa67b);if(_0x171d18[_0x8c7d31(0x34f)]===0x0)continue;this['_drawAnchor'](_0x4dfacc,_0x171d18,_0x5b7590,_0x3c4b3e,_0x1e39fc),this[_0x8c7d31(0x23c)]=this[_0x8c7d31(0x435)]();}if(_0x324728&&_0x3aa67b){if(_0x9eb310===a[_0x8c7d31(0x204)][_0x8c7d31(0x3dc)]){const _0x2d12a9=new E[(_0x8c7d31(0x26d))](_0x73f606,_0x316833),{pointGroup:_0x43e7b3}=(_0xf8ba5=_0x2d12a9[_0x8c7d31(0x1d1)](_0x324728,_0x3aa67b))!=null?_0xf8ba5:{};if(_0x43e7b3==null||_0x43e7b3[_0x8c7d31(0x34f)]===0x0)continue;this[_0x8c7d31(0x21f)](_0x4dfacc,_0x43e7b3,_0x5b7590,_0x3c4b3e);}else{if(!_0x2e813e){const {borderBoxPointGroup:_0x344323}=_0x1128bd[_0x8c7d31(0x1d1)](_0x324728,_0x3aa67b);if(_0x344323[_0x8c7d31(0x34f)]===0x0)continue;this[_0x8c7d31(0x2b9)](_0x4dfacc,_0x344323,_0x5b7590,_0x3c4b3e);}}}}}['_drawAnchor'](_0x2862c7,_0x10a4c6,_0x21af66,_0x5778a1,_0x7745b0){const _0x16c45b=_0x3b20ce,_0x5756dd=this['_getAnchorBounding'](_0x10a4c6),{left:_0x298581,top:_0x5eee91,height:_0x1212f1}=_0x5756dd,_0xd3bb7c=this['_getScale'](),_0x1e44c4=It/_0xd3bb7c,_0x3196b4=new p['Rect'](re+a[_0x16c45b(0x42c)][_0x16c45b(0x2cb)](k),{'left':_0x298581+_0x21af66-_0x1e44c4,'top':_0x5eee91+_0x5778a1,'height':_0x1212f1,'width':dt,'fill':_0x2862c7||p[_0x16c45b(0x330)](a[_0x16c45b(0x368)][_0x16c45b(0x1f4)],0x0),'strokeWidth':_0x1e44c4,'stroke':St,'evented':!0x0});this[_0x16c45b(0x333)]=_0x3196b4,this[_0x16c45b(0x422)][_0x16c45b(0x37c)](_0x3196b4,E[_0x16c45b(0x2d9)]);const _0x4eac61=new p['Rect'](re+a[_0x16c45b(0x42c)][_0x16c45b(0x2cb)](k),{'left':_0x298581+_0x21af66-_0x1e44c4,'top':_0x5eee91+_0x5778a1-oe/0x2,'height':oe,'width':oe,'fill':_0x2862c7||p['getColor'](a[_0x16c45b(0x368)][_0x16c45b(0x1f4)],0x0),'strokeWidth':0x0,'stroke':_0x2862c7||p[_0x16c45b(0x330)](a['COLORS'][_0x16c45b(0x1f4)],0x0),'evented':!0x1});this[_0x16c45b(0x316)]=_0x4eac61,this[_0x16c45b(0x422)][_0x16c45b(0x37c)](_0x4eac61,E['TEXT_RANGE_LAYER_INDEX']);const _0x505ea6=new ee(re+a[_0x16c45b(0x42c)][_0x16c45b(0x2cb)](k),{'left':_0x298581+_0x21af66-_0x1e44c4,'top':_0x5eee91+_0x5778a1-K,'text':_0x7745b0,'color':_0x2862c7});this[_0x16c45b(0x222)]=_0x505ea6,this[_0x16c45b(0x422)][_0x16c45b(0x37c)](_0x505ea6,E[_0x16c45b(0x2d9)]),this[_0x16c45b(0x349)]=!0x1;}[_0x3b20ce(0x435)](){const _0x8cabf9=_0x3b20ce,_0x477103=this['_anchor'][_0x8cabf9(0x29d)][_0x8cabf9(0x2e2)](()=>{const _0x15ce37=_0x8cabf9;this[_0x15ce37(0x349)]=!0x0;}),_0x37e36=this[_0x8cabf9(0x333)][_0x8cabf9(0x398)][_0x8cabf9(0x2e2)](()=>{const _0x55d1c2=_0x8cabf9;this[_0x55d1c2(0x24b)]&&clearTimeout(this[_0x55d1c2(0x24b)]),this[_0x55d1c2(0x24b)]=setTimeout(()=>{const _0x2fcb5f=_0x55d1c2;this[_0x2fcb5f(0x349)]=!0x1;},0x7d0);});return()=>{const _0x3fcb6f=_0x8cabf9;_0x477103[_0x3fcb6f(0x3e3)](),_0x37e36['unsubscribe']();};}[_0x3b20ce(0x2b9)](_0x4f78be,_0x57dc03,_0x55712f,_0x480699){const _0x1e0760=_0x3b20ce,_0x46e5b9=new a[(_0x1e0760(0x3d1))](_0x4f78be)[_0x1e0760(0x264)](0.2)[_0x1e0760(0x361)](),_0x23bd4f=new p['RegularPolygon'](ht+a[_0x1e0760(0x42c)][_0x1e0760(0x2cb)](k),{'pointsGroup':_0x57dc03,'fill':_0x46e5b9||p[_0x1e0760(0x330)](a[_0x1e0760(0x368)][_0x1e0760(0x1f4)],0.2),'left':_0x55712f,'top':_0x480699,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1e0760(0x2a5)](_0x23bd4f),this[_0x1e0760(0x422)][_0x1e0760(0x37c)](_0x23bd4f,E[_0x1e0760(0x2d9)]);}[_0x3b20ce(0x21f)](_0x53c090,_0x39f53d,_0x350054,_0x2b446b){const _0x310668=_0x3b20ce,_0x1b2172=new a[(_0x310668(0x3d1))](_0x53c090)[_0x310668(0x264)](0.2)['toRgbString'](),_0x10078b=new p['RegularPolygon'](ut+a[_0x310668(0x42c)][_0x310668(0x2cb)](k),{'pointsGroup':_0x39f53d,'fill':_0x1b2172||p[_0x310668(0x330)](a[_0x310668(0x368)]['black'],0.2),'left':_0x350054,'top':_0x2b446b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x10078b),this[_0x310668(0x422)][_0x310668(0x37c)](_0x10078b,E[_0x310668(0x2d9)]);}[_0x3b20ce(0x327)](_0x1f132b){const _0x159258=_0x1f132b[0x0],_0x33d320=_0x159258[0x0],_0x34f071=_0x159258[0x2],{x:_0x4e6906,y:_0x375557}=_0x33d320,{x:_0x5e9607,y:_0x6e01de}=_0x34f071;return{'left':_0x4e6906,'top':_0x375557,'width':_0x5e9607-_0x4e6906,'height':_0x6e01de-_0x375557};}['_getScale'](){const _0x1c9c2a=_0x3b20ce,{scaleX:_0x49fbdc,scaleY:_0x33e9d0}=this[_0x1c9c2a(0x422)][_0x1c9c2a(0x28b)]();return Math[_0x1c9c2a(0x301)](_0x49fbdc,_0x33e9d0);}}var ft=Object[_0x3b20ce(0x36b)],vt=(_0x3b2b24,_0x5819ea,_0x55e534,_0x490461)=>{for(var _0xdc35ac=_0x490461>0x1?void 0x0:_0x490461?ft(_0x5819ea,_0x55e534):_0x5819ea,_0x462b2a=_0x3b2b24['length']-0x1,_0x509b07;_0x462b2a>=0x0;_0x462b2a--)(_0x509b07=_0x3b2b24[_0x462b2a])&&(_0xdc35ac=_0x509b07(_0xdc35ac)||_0xdc35ac);return _0xdc35ac;},W=(_0x3ac209,_0x619468)=>(_0x5bb533,_0x24f9c9)=>_0x619468(_0x5bb533,_0x24f9c9,_0x3ac209);let fe=class extends a['RxDisposable']{constructor(_0x42a133,_0x26827d,_0x137e9f,_0x547986,_0x237cd5){const _0x1136aa=_0x3b20ce;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this[_0x1136aa(0x2c0)]=_0x42a133,this['_docSkeletonManagerService']=_0x26827d,this[_0x1136aa(0x314)]=_0x137e9f,this[_0x1136aa(0x372)]=_0x547986,this[_0x1136aa(0x1f1)]=_0x237cd5,this[_0x1136aa(0x3e1)]());}['_init'](){const _0x263344=_0x3b20ce,_0x3d2b35=this[_0x263344(0x2c0)]['unitId'],_0x36d939=this[_0x263344(0x296)];this['disposeWithMe'](d[_0x263344(0x1c9)]([this[_0x263344(0x314)][_0x263344(0x25a)](_0x3d2b35),this['_themeService'][_0x263344(0x3df)]])[_0x263344(0x32f)]($[_0x263344(0x22c)](([_0x2e424c,_0xa2c660])=>({'skeleton':_0x36d939['getSkeleton'](),'cursors':[..._0x2e424c[_0x263344(0x249)]()][_0x263344(0x308)](_0x249443=>({..._0x249443,'color':this[_0x263344(0x1f1)]['getColorFromTheme'](_0x249443[_0x263344(0x338)])}))})))[_0x263344(0x3d4)](_0x38d7f9=>{const _0x4482b9=_0x263344;if(this[_0x4482b9(0x2b1)](),_0x38d7f9){const {skeleton:_0x31baac,cursors:_0x8075d6}=_0x38d7f9;this[_0x4482b9(0x3cd)](_0x31baac,_0x8075d6);}})),this[_0x263344(0x331)](),this[_0x263344(0x41c)]();}[_0x3b20ce(0x3cd)](_0x276b14,_0x500917){const _0x83a7c6=_0x3b20ce,{scene:_0x98341a,mainComponent:_0x3541ad}=this['_context'],_0x404ede=_0x500917[_0x83a7c6(0x22c)](_0x465b50=>new De(_0x465b50,_0x98341a,_0x276b14,_0x3541ad));this[_0x83a7c6(0x1fb)]=_0x404ede,this[_0x83a7c6(0x258)]=_0x500917;}['_refreshCollabCursors'](){const _0x39386e=_0x3b20ce;this[_0x39386e(0x2b1)]();const {scene:_0xcabc2b,mainComponent:_0x399236}=this[_0x39386e(0x2c0)],_0x543e77=this[_0x39386e(0x296)][_0x39386e(0x3f1)](),_0x584ba2=this['_cursors'][_0x39386e(0x22c)](_0x2f8c23=>new De(_0x2f8c23,_0xcabc2b,_0x543e77,_0x399236));this[_0x39386e(0x1fb)]=_0x584ba2;}['_removeCollabCursors'](){const _0x1bf5db=_0x3b20ce;this[_0x1bf5db(0x1fb)][_0x1bf5db(0x42b)](_0xbe39f=>_0xbe39f[_0x1bf5db(0x392)]()),this[_0x1bf5db(0x1fb)]=[];}[_0x3b20ce(0x41c)](){const _0x151a99=_0x3b20ce,_0x1b36e0=[E[_0x151a99(0x28a)]['id']];this['disposeWithMe'](this[_0x151a99(0x372)]['onCommandExecuted'](_0x47b350=>{const _0x2c27c2=_0x151a99;_0x1b36e0[_0x2c27c2(0x2b8)](_0x47b350['id'])&&_0x47b350['params'][_0x2c27c2(0x22a)]===this[_0x2c27c2(0x2c0)][_0x2c27c2(0x22a)]&&this[_0x2c27c2(0x1d7)]();}));}[_0x3b20ce(0x331)](){const _0x345f3f=_0x3b20ce;this[_0x345f3f(0x1c3)](a[_0x345f3f(0x247)](this['_context'][_0x345f3f(0x38d)][_0x345f3f(0x376)])[_0x345f3f(0x32f)]($[_0x345f3f(0x375)](_0x1cf3b3=>_0x1cf3b3['type']===p[_0x345f3f(0x200)][_0x345f3f(0x439)]),$[_0x345f3f(0x1d9)](0x10))[_0x345f3f(0x3d4)](()=>{const _0x53fee6=_0x345f3f;this[_0x53fee6(0x1d7)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x3b20ce(0x3a4)])),W(0x2,a[_0x3b20ce(0x282)](x)),W(0x3,a[_0x3b20ce(0x340)]),W(0x4,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x227)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x3b20ce(0x1e4)]{constructor(_0x173df5,_0x470eb7){const _0xf07981=_0x3b20ce;super(_0x173df5,_0x470eb7),h(this,'_color'),h(this,_0xf07981(0x38b),!0x1),h(this,_0xf07981(0x20d)),h(this,_0xf07981(0x272),''),h(this,_0xf07981(0x1ed),_0xf07981(0x3d2)),h(this,_0xf07981(0x351)),(_0x470eb7&&this['setShapeProps'](_0x470eb7),this[_0xf07981(0x29d)][_0xf07981(0x2e2)](()=>this[_0xf07981(0x289)]({'hovered':!0x0})),this[_0xf07981(0x398)][_0xf07981(0x2e2)](()=>this[_0xf07981(0x289)]({'hovered':!0x1})));}['setShapeProps'](_0x20b1f6){const _0x2fbf45=_0x3b20ce;var _0x185380,_0x5f4b70,_0x33a425,_0x182fd3,_0x4f0222,_0x464523;this[_0x2fbf45(0x400)]=(_0x185380=_0x20b1f6[_0x2fbf45(0x338)])!=null?_0x185380:this['_color'],this[_0x2fbf45(0x38b)]=(_0x5f4b70=_0x20b1f6[_0x2fbf45(0x267)])!=null?_0x5f4b70:this[_0x2fbf45(0x38b)],this[_0x2fbf45(0x20d)]=(_0x33a425=_0x20b1f6[_0x2fbf45(0x236)])!=null?_0x33a425:this['_range'],this[_0x2fbf45(0x272)]=(_0x182fd3=_0x20b1f6['name'])!=null?_0x182fd3:this[_0x2fbf45(0x272)],this[_0x2fbf45(0x1ed)]=(_0x4f0222=_0x20b1f6[_0x2fbf45(0x33d)])!=null?_0x4f0222:this['_labelPosition'],this[_0x2fbf45(0x351)]=(_0x464523=_0x20b1f6[_0x2fbf45(0x1f2)])!=null?_0x464523:this['_backgroundColor'],this[_0x2fbf45(0x2b6)]({'width':_0x20b1f6[_0x2fbf45(0x2b2)],'height':_0x20b1f6[_0x2fbf45(0x1f3)]});}[_0x3b20ce(0x2aa)](_0x28c51e){const _0x3ae175=_0x3b20ce,{row:_0x46cd04,column:_0x5aab52}=_0x28c51e;if(_0x46cd04>=this[_0x3ae175(0x20d)]['startRow']&&_0x46cd04<=this[_0x3ae175(0x20d)]['endRow']&&_0x5aab52>=this['_range']['startColumn']&&_0x5aab52<=this[_0x3ae175(0x20d)][_0x3ae175(0x263)]){this[_0x3ae175(0x289)]({'hovered':!0x0});return;}this[_0x3ae175(0x289)]({'hovered':!0x1});}['triggerDblclick'](_0x14534a){return!0x1;}[_0x3b20ce(0x40f)](_0x3168b9){const _0x56cb7b=_0x3b20ce;p['Rect']['drawWith'](_0x3168b9,{'width':this[_0x56cb7b(0x2b2)],'height':this[_0x56cb7b(0x1f3)],'strokeWidth':mt,'stroke':this[_0x56cb7b(0x400)],'evented':!0x1,'fill':this[_0x56cb7b(0x351)]}),this[_0x56cb7b(0x38b)]&&(_0x3168b9['save'](),_0x3168b9['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x56cb7b(0x1ed)]===_0x56cb7b(0x34e)?0x0:-0x14),ee[_0x56cb7b(0x2bc)](_0x3168b9,{'text':this[_0x56cb7b(0x272)],'color':this['_color']}),_0x3168b9[_0x56cb7b(0x43d)]());}}var Ct=Object[_0x3b20ce(0x36b)],pt=(_0x3d429d,_0x56a359,_0x4dd9a6,_0x47cde8)=>{for(var _0x154059=_0x47cde8>0x1?void 0x0:_0x47cde8?Ct(_0x56a359,_0x4dd9a6):_0x56a359,_0x5f4820=_0x3d429d['length']-0x1,_0x5486b5;_0x5f4820>=0x0;_0x5f4820--)(_0x5486b5=_0x3d429d[_0x5f4820])&&(_0x154059=_0x5486b5(_0x154059)||_0x154059);return _0x154059;},ae=(_0x3b628c,_0x61a3)=>(_0x4c7367,_0x370b7a)=>_0x61a3(_0x4c7367,_0x370b7a,_0x3b628c);const Et=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x514744,_0x4483f2,_0x9a21f3,_0x28eba2){const _0xa7bc20=_0x3b20ce;super(),h(this,_0xa7bc20(0x258),new Set()),h(this,_0xa7bc20(0x35d),null),(this[_0xa7bc20(0x2c0)]=_0x514744,this[_0xa7bc20(0x298)]=_0x4483f2,this[_0xa7bc20(0x314)]=_0x9a21f3,this['_themeService']=_0x28eba2,this[_0xa7bc20(0x3e1)]());}[_0x3b20ce(0x3e1)](){const _0x2a2433=_0x3b20ce;this[_0x2a2433(0x298)][_0x2a2433(0x37a)]['pipe']($[_0x2a2433(0x2ec)](this[_0x2a2433(0x28c)]),$[_0x2a2433(0x232)](_0x2a5c86=>{const _0x1c6dc5=_0x2a2433;if(_0x2a5c86){const _0x214add=_0x2a5c86[_0x1c6dc5(0x2df)];return d['combineLatest'](this[_0x1c6dc5(0x314)]['getCollabCursors$'](this[_0x1c6dc5(0x2c0)]['unitId']),this['_themeService'][_0x1c6dc5(0x3df)])[_0x1c6dc5(0x32f)]($[_0x1c6dc5(0x22c)](([_0x4f045e,_0x80133b])=>{const _0x40ca59=_0x1c6dc5,_0x12dbdc=new Map();return _0x4f045e[_0x40ca59(0x42b)]((_0x3d5eff,_0x5eec93)=>{const _0x34646f=_0x40ca59;if(_0x3d5eff[_0x34646f(0x256)]===_0x214add){const _0x5d8d7d={..._0x3d5eff};_0x5d8d7d['color']=this[_0x34646f(0x1f1)][_0x34646f(0x1e7)](_0x3d5eff[_0x34646f(0x338)]),_0x12dbdc[_0x34646f(0x26a)](_0x5eec93,_0x5d8d7d);}}),{'skeleton':_0x2a5c86,'cursors':_0x12dbdc};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2a2433(0x3d4)](({skeleton:_0x3a736e,cursors:_0x3ca0bf})=>{const _0xce2c77=_0x2a2433;this[_0xce2c77(0x2b1)](),_0x3a736e&&this['_updateCollabCursors'](_0x3a736e,_0x3ca0bf);}),this[_0x2a2433(0x298)][_0x2a2433(0x37a)]['subscribe'](_0x195e4c=>{const _0x2a6576=_0x2a2433;if(_0x195e4c==null)return;const {skeleton:_0x1ee162}=_0x195e4c,{scene:_0x983a89}=this['_context'];_0x983a89[_0x2a6576(0x1fd)]['subscribeEvent'](a[_0x2a6576(0x246)](_0x35d9e5=>{const _0x152e31=_0x2a6576;var _0x50a70a,_0x14619a;const {offsetX:_0xa0fb9a,offsetY:_0x42f139}=_0x35d9e5,{x:_0x23619c,y:_0x50b789}=_0x983a89[_0x152e31(0x382)](p[_0x152e31(0x433)][_0x152e31(0x1e5)]([_0xa0fb9a,_0x42f139])),{scaleX:_0x483d2e,scaleY:_0x4e13f3}=_0x983a89[_0x152e31(0x28b)](),_0x4033e6=_0x983a89[_0x152e31(0x394)](p[_0x152e31(0x3f8)]['VIEW_MAIN']),_0x24eafd=_0x983a89[_0x152e31(0x39c)](p[_0x152e31(0x433)][_0x152e31(0x1e5)]([_0x23619c,_0x50b789]),_0x4033e6),_0x2c2dc2=_0x1ee162[_0x152e31(0x1be)](_0xa0fb9a,_0x42f139,_0x483d2e,_0x4e13f3,_0x24eafd);((_0x50a70a=this[_0x152e31(0x35d)])==null?void 0x0:_0x50a70a['column'])===_0x2c2dc2[_0x152e31(0x2a3)]&&((_0x14619a=this[_0x152e31(0x35d)])==null?void 0x0:_0x14619a['row'])===_0x2c2dc2[_0x152e31(0x26c)]||this[_0x152e31(0x258)][_0x152e31(0x42b)](_0x27f9b0=>{const _0x4b21e1=_0x152e31;_0x27f9b0[_0x4b21e1(0x2aa)](_0x2c2dc2);});},0x64));});}[_0x3b20ce(0x3cd)](_0x2c06cb,_0x4a6aea){const _0x3c3932=_0x3b20ce;var _0x1edaf4;const _0x3b1d36=(_0x1edaf4=this[_0x3c3932(0x298)][_0x3c3932(0x1f0)]())==null?void 0x0:_0x1edaf4[_0x3c3932(0x33c)];if(!_0x3b1d36)return;const _0x9fcb=this['_getSheetObject']();if(!_0x9fcb)return;this[_0x3c3932(0x258)][_0x3c3932(0x42b)](_0x3f8468=>{const _0x1e0a0f=_0x3c3932;_0x3f8468[_0x1e0a0f(0x443)]();});const {scene:_0x2ff040}=_0x9fcb,_0x50f803=bt(Array[_0x3c3932(0x213)](_0x4a6aea[_0x3c3932(0x249)]()))['map'](_0x5aa568=>{const _0x236974=_0x3c3932,{color:_0x34dfd6,range:_0x478cde,name:_0x5a48ed,selection:_0x4f2092,sheetID:_0x1cc543}=_0x5aa568,{startColumn:_0x1770ed,startRow:_0x56d2de,endColumn:_0x4bac19,endRow:_0x4fa6c8}=_0x478cde,_0x396327=X[_0x236974(0x1b6)](_0x56d2de,_0x1770ed,_0x2ff040,_0x3b1d36),_0x276ab2=X[_0x236974(0x1b6)](_0x4fa6c8,_0x4bac19,_0x2ff040,_0x3b1d36),{columnHeaderHeightAndMarginTop:_0x2f3200}=_0x3b1d36,{startX:_0x1a0ca3,startY:_0x429347}=_0x396327,{endX:_0x26a214,endY:_0x24f6fc}=_0x276ab2,_0x193110=_0x26a214-_0x1a0ca3,_0x5a2b78=_0x24f6fc-_0x429347,_0x4ff500={'labelPosition':_0x429347-_0x2f3200>=K?_0x236974(0x3d2):_0x236974(0x34e),'sheetID':_0x1cc543,'range':_0x478cde,'color':_0x34dfd6,'name':_0x5a48ed,'selection':_0x4f2092,'left':_0x1a0ca3,'top':_0x429347,'width':_0x193110,'height':_0x5a2b78,'evented':!0x1,'zIndex':Et};return new we(_0x5a48ed,_0x4ff500);});_0x2ff040[_0x3c3932(0x2a1)](_0x50f803,gt),this[_0x3c3932(0x258)]=new Set(_0x50f803);}[_0x3b20ce(0x2b1)](){const _0x5d0e41=_0x3b20ce;var _0x1e75c9;(_0x1e75c9=this[_0x5d0e41(0x258)])==null||_0x1e75c9[_0x5d0e41(0x42b)](_0x4ff7f9=>_0x4ff7f9[_0x5d0e41(0x392)]());}[_0x3b20ce(0x216)](){const _0x2258ee=_0x3b20ce;return X[_0x2258ee(0x24e)](this[_0x2258ee(0x2c0)][_0x2258ee(0x1f5)],this[_0x2258ee(0x2c0)]);}};ve=pt([ae(0x1,a[_0x3b20ce(0x282)](X[_0x3b20ce(0x2dd)])),ae(0x2,a[_0x3b20ce(0x282)](x)),ae(0x3,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x227)]))],ve);function bt(_0x135762){const _0x2a0c23=_0x3b20ce,_0x2cf027=new Map();return _0x135762['forEach'](_0x127ca3=>{const _0x19d455=_0x3f21;if(_0x2cf027[_0x19d455(0x2a0)](_0x127ca3[_0x19d455(0x250)])){const _0x198f77=_0x2cf027[_0x19d455(0x3ff)](_0x127ca3['selection']);_0x198f77[_0x19d455(0x427)]+=',\x20'+_0x127ca3[_0x19d455(0x427)];}else _0x2cf027[_0x19d455(0x26a)](_0x127ca3[_0x19d455(0x250)],_0x127ca3);}),Array[_0x2a0c23(0x213)](_0x2cf027[_0x2a0c23(0x249)]());}var b=function(){const _0x437d00=_0x3b20ce;return b=Object[_0x437d00(0x2c3)]||function(_0x2a6ef8){const _0x5439ad=_0x437d00;for(var _0x4c5962,_0x259073=0x1,_0x1367a9=arguments['length'];_0x259073<_0x1367a9;_0x259073++){_0x4c5962=arguments[_0x259073];for(var _0xe51bce in _0x4c5962)Object[_0x5439ad(0x20a)][_0x5439ad(0x3c9)]['call'](_0x4c5962,_0xe51bce)&&(_0x2a6ef8[_0xe51bce]=_0x4c5962[_0xe51bce]);}return _0x2a6ef8;},b[_0x437d00(0x210)](this,arguments);},Ot=function(_0x9744e6,_0x2bd23){const _0x149490=_0x3b20ce;var _0x104078={};for(var _0x3b6037 in _0x9744e6)Object[_0x149490(0x20a)][_0x149490(0x3c9)]['call'](_0x9744e6,_0x3b6037)&&_0x2bd23['indexOf'](_0x3b6037)<0x0&&(_0x104078[_0x3b6037]=_0x9744e6[_0x3b6037]);if(_0x9744e6!=null&&typeof Object[_0x149490(0x389)]==_0x149490(0x2f9)){for(var _0x1c6a59=0x0,_0x3b6037=Object[_0x149490(0x389)](_0x9744e6);_0x1c6a59<_0x3b6037['length'];_0x1c6a59++)_0x2bd23[_0x149490(0x3f3)](_0x3b6037[_0x1c6a59])<0x0&&Object[_0x149490(0x20a)]['propertyIsEnumerable'][_0x149490(0x2a4)](_0x9744e6,_0x3b6037[_0x1c6a59])&&(_0x104078[_0x3b6037[_0x1c6a59]]=_0x9744e6[_0x3b6037[_0x1c6a59]]);}return _0x104078;},pe=M[_0x3b20ce(0x2c1)](function(_0x4d1849,_0x135b53){const _0x4b5c96=_0x3b20ce;var _0x25174c=_0x4d1849[_0x4b5c96(0x1d2)],_0x426c11=_0x4d1849['id'],_0x5dbcc8=_0x4d1849[_0x4b5c96(0x283)],_0xa479f5=_0x4d1849[_0x4b5c96(0x1c0)],_0x2ea703=Ot(_0x4d1849,[_0x4b5c96(0x1d2),'id','className',_0x4b5c96(0x1c0)]),_0x146f45=_0x4b5c96(0x245)['concat'](_0x426c11,'\x20')[_0x4b5c96(0x3a7)](_0x5dbcc8||'')[_0x4b5c96(0x2ac)](),_0x2c8008=M[_0x4b5c96(0x363)]('_'[_0x4b5c96(0x3a7)](Dt()));return Ae(_0x25174c,''[_0x4b5c96(0x3a7)](_0x426c11),{'defIds':_0x25174c[_0x4b5c96(0x2cc)],'idSuffix':_0x2c8008[_0x4b5c96(0x339)]},b({'ref':_0x135b53,'className':_0x146f45},_0x2ea703),_0xa479f5);});function Ae(_0x17ade9,_0x2f47ea,_0x22cb70,_0x57ee37,_0x5543c3){const _0x3fa5cf=_0x3b20ce;return M[_0x3fa5cf(0x1ee)](_0x17ade9[_0x3fa5cf(0x229)],b(b({'key':_0x2f47ea},Tt(_0x17ade9,_0x22cb70,_0x5543c3)),_0x57ee37),(Rt(_0x17ade9,_0x22cb70)['children']||[])[_0x3fa5cf(0x22c)](function(_0x5460dc,_0x30abe0){const _0x4b007a=_0x3fa5cf;return Ae(_0x5460dc,''['concat'](_0x2f47ea,'-')[_0x4b007a(0x3a7)](_0x17ade9[_0x4b007a(0x229)],'-')[_0x4b007a(0x3a7)](_0x30abe0),_0x22cb70,void 0x0,_0x5543c3);}));}function Tt(_0x3df48,_0x18fe34,_0x4216c8){const _0x11de8f=_0x3b20ce;var _0x1086bb=b({},_0x3df48['attrs']);_0x4216c8!=null&&_0x4216c8[_0x11de8f(0x201)]&&_0x1086bb[_0x11de8f(0x325)]==='colorChannel1'&&(_0x1086bb[_0x11de8f(0x325)]=_0x4216c8[_0x11de8f(0x201)]),_0x3df48[_0x11de8f(0x229)]===_0x11de8f(0x2fb)&&_0x1086bb['id']&&(_0x1086bb['id']=_0x1086bb['id']+_0x18fe34[_0x11de8f(0x3f6)]),Object['entries'](_0x1086bb)[_0x11de8f(0x42b)](function(_0x42c784){const _0x4d6241=_0x11de8f;var _0x28e198=_0x42c784[0x0],_0x1b3950=_0x42c784[0x1];_0x28e198===_0x4d6241(0x2fb)&&typeof _0x1b3950==_0x4d6241(0x1df)&&(_0x1086bb[_0x28e198]=_0x1b3950['replace'](/url\(#(.*)\)/,_0x4d6241(0x35a)['concat'](_0x18fe34[_0x4d6241(0x3f6)],')')));});var _0xd1cb41=_0x18fe34[_0x11de8f(0x2cc)];return!_0xd1cb41||_0xd1cb41[_0x11de8f(0x34f)]===0x0||(_0x3df48[_0x11de8f(0x229)]===_0x11de8f(0x369)&&_0x1086bb['xlink:href']&&(_0x1086bb['xlink:href']=_0x1086bb[_0x11de8f(0x43a)]+_0x18fe34[_0x11de8f(0x3f6)]),Object[_0x11de8f(0x211)](_0x1086bb)['forEach'](function(_0x3dc62a){const _0x49dfc5=_0x11de8f;var _0x42a0b0=_0x3dc62a[0x0],_0x4d9f0c=_0x3dc62a[0x1];typeof _0x4d9f0c==_0x49dfc5(0x1df)&&(_0x1086bb[_0x42a0b0]=_0x4d9f0c['replace'](/url\(#(.*)\)/,_0x49dfc5(0x35a)[_0x49dfc5(0x3a7)](_0x18fe34[_0x49dfc5(0x3f6)],')')));})),_0x1086bb;}function Rt(_0x4a3e39,_0x25f220){const _0x17c592=_0x3b20ce;var _0x2c5369,_0x1f904f=_0x25f220[_0x17c592(0x2cc)];return!_0x1f904f||_0x1f904f[_0x17c592(0x34f)]===0x0?_0x4a3e39:_0x4a3e39[_0x17c592(0x229)]===_0x17c592(0x385)&&(!((_0x2c5369=_0x4a3e39[_0x17c592(0x255)])===null||_0x2c5369===void 0x0)&&_0x2c5369[_0x17c592(0x34f)])?b(b({},_0x4a3e39),{'children':_0x4a3e39['children']['map'](function(_0xae9e3d){const _0xb7f78e=_0x17c592;return typeof _0xae9e3d[_0xb7f78e(0x3fa)]['id']==_0xb7f78e(0x1df)&&_0x1f904f&&_0x1f904f[_0xb7f78e(0x2b8)](_0xae9e3d[_0xb7f78e(0x3fa)]['id'])?b(b({},_0xae9e3d),{'attrs':b(b({},_0xae9e3d[_0xb7f78e(0x3fa)]),{'id':_0xae9e3d[_0xb7f78e(0x3fa)]['id']+_0x25f220[_0xb7f78e(0x3f6)]})}):_0xae9e3d;})}):_0x4a3e39;}function Dt(){const _0xf56019=_0x3b20ce;return Math[_0xf56019(0x38a)]()[_0xf56019(0x3e9)](0x24)[_0xf56019(0x1d0)](0x2,0x8);}pe[_0x3b20ce(0x221)]=_0x3b20ce(0x3bc);var Ut={'tag':_0x3b20ce(0x240),'attrs':{'xmlns':_0x3b20ce(0x252),'fill':_0x3b20ce(0x403),'viewBox':_0x3b20ce(0x2d3),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b20ce(0x2ea)},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'stroke':_0x3b20ce(0x1ca),'d':_0x3b20ce(0x3d0),'strokeLinecap':_0x3b20ce(0x409),'strokeLinejoin':_0x3b20ce(0x409),'strokeWidth':1.2}}]},{'tag':_0x3b20ce(0x385),'attrs':{},'children':[{'tag':_0x3b20ce(0x1ce),'attrs':{'id':_0x3b20ce(0x1bd)},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'fill':_0x3b20ce(0x2e1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x3b20ce(0x2c1)](function(_0x20b934,_0x197ea7){const _0x3f7e02=_0x3b20ce;return M[_0x3f7e02(0x1ee)](pe,Object[_0x3f7e02(0x2c3)]({},_0x20b934,{'id':_0x3f7e02(0x42e),'ref':_0x197ea7,'icon':Ut}));});ye[_0x3b20ce(0x221)]=_0x3b20ce(0x2ce);function _0x2c3e(){const _0xe1c57f=['SNAPSHOT_INVALID_SNAPSHOT','getSheetBySheetId','disposeUnit','pipe','getColor','_initResize','reconnect','_anchor','_registerDependencies','startsWith','isActive','APPLY_NON_SEQUENTIAL_REVISION','color','current','INVITE_CODE_ALREADY_BOUND','YUUMI_SUBSCRIPTION_NOT_FOUND','skeleton','labelPosition','LOGIN_FAILED','IRenderManagerService','ICommandService','IConfigService','CollaborationController','TOO_MANY_REQUESTS','with','ACTIVE_UNIT_EVENT_CHANNEL','params','getOffsetConfig','handleDeleteRangeMoveLeft','_hover','clsx','_renderManagerService','_assignedColors','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','bottom','length','Failed','_backgroundColor','getUndoRedoMutationParamsCache','defineProperty','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','registerRefRange','UniverInstanceType','actions','permission.content','SetSelectionsOperation','url(#$1','clearInterval','_instanceService','_lastPointer','_beforeCloseService','getUnitId','YUUMI_NO_CUBOID_FOR_QUESTION','toRgbString','Subject','useRef','_scheduleClearOtherTimer','selections','Injector','override','COLORS','use','code','getOwnPropertyDescriptor','1em','entityInit$','CollaborationUIEventId','mutations','Error','DesktopCollaborationStatusDisplayController','_commandService','2797186EnrcRQ','CollaborationUIEventService','filter','onTransformChange$','setParam','UniverCollaborationClientUIPlugin','m2Prime','currentSkeleton$','_disabled','addObject','PY_RUNTIME_SCRIPT_ERROR','handleMoveRange','UNAUTHENTICATED','_getMergeRange','executeCommand','getRelativeToViewportCoord','createSocket','useCallback','defs','_setupBeforeClosingHandler','ranges','_document','getOwnPropertySymbols','random','_hovered','_logService','engine','4223334EHyGyh','textRanges','purple.300','invokeId','dispose','@univerjs/sheets-ui','getViewport','DEFAULT_WS_SESSION_TICKET_URL','_configService','_docClipboardService','onPointerLeave$','loadUnit','_initStatusComponent','distinctUntilChanged','getVpScrollXYInfoByPosToVp','toStringTag','LocaleService','Warning','react/jsx-runtime','YUUMI_CONNECTOR_URL_NOT_FOUND','getCurrentUnitForType','event$','DocSkeletonManagerService','_ensureSubject','_heartbeatTimer','concat','collabStatus.conflict','_getSaveTimeout','SNAPSHOT_HAS_BEEN_REMOVED','getItem','assignAColorForMemberID','getCollabEntity$','APPLY_PERMISSION_DENIED','_scheduleSaving','loadOfflineData','handleDeleteRangeMoveUp','collab-text-anchor-','cursorInfo','jiqing.500','Tooltip','_session','_cursorInfo$','getFocusedUnit','show','_docSkeleton','merge','UniverIcon','_unitOnClients','status$','DataLoaderService','_render','USERS_LEAVE','cursorInfo$','eventID','_config','YUUMI_ALL_TABLES_IS_INVALID','_saveCache','next','JOIN_ROOM_FAILED','hasOwnProperty','isArray','_cachedData','key','_updateCollabCursors','_removeClearOtherTimer','SUBMIT_CHANGESET_TIMEOUT','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','ColorKit','top','collaboration.closeRoom','subscribe','[RemoteUniscriptService]:\x20no\x20focused\x20unit','TEXT','div','debug','onRendered','_imageIoService','_uiPartsService','RECT','LICENSE_DISTRO_REJECTED','RichTextEditingMutation','currentTheme$','createIdentifier','_init','collabStatus.synced','unsubscribe','isTransformMutationsWithChangesetSuccess','_initStatusListener','docStateChange$','INotificationService','getRenderById','toString','LICENSE_IMPORT_SIZE_EXCEEDED','saveImage','_status$','WECHAT_HAS_BEEN_BOUND','getMergeData','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','APPLY_REJECT','getSkeleton','getActiveSheet','indexOf','1216hHbFdw','_docTransformSelectionsService','idSuffix','ENSURE_SNAPSHOT_EXECUTION','SHEET_VIEWPORT_KEY','CollaborationDataLoaderController','attrs','all','91924blchve','transformSelections','parse','get','_color','getConfig','_updateLocalCursor','none','_shapes','_startSheetCollabCursor','onStarting','getCurrentSelections','complete','round','undoState','setItem','handleInsertCol','_entities','body','_draw','CollaborationStatus','_injector','_collaborationController','then','requireSession','getParam','ILogService','YUUMI_URL_COL_OUT_OF_RANGE','getDocRanges','INVALID_INVITE_CODE','collabCursorState$','stringify','_initCommandExecutedListener','_dataLoaderService','red.300','M0\x200H16V16H0z','on-line-icon','roomMembers','_scene','SetWorksheetActivateCommand','SYNCED','INVITE_CODE_REQUIRED','RemoteUniscriptService','name','LOCAL_CACHE_INTERVAL_KEY','addEventListener','@univerjs/rpc','forEach','Tools','AWAITING','off-line-icon','12JRFMxI','HTTPService','doc.mutation.rich-text-editing','_docStateChangeManagerService','Vector2','search','_handleHover','yellow.400','collab-rect-range-','@univerjs/docs','resize','xlink:href','DocIMEInputManagerService','ILocalStorageService','restore','add','13047dNWgvU','transformMutation','redoState','_httpService','makeDirty','MessageType','EMAIL_HAS_BEEN_BOUND','replaceDocRanges','_registerRenderDependencies','getCoordByCell','_updateSubUnitFromURLParams','LOCAL_CACHE_INTERVAL','YUUMI_ASYNCIO_CANCELLED','_saveTaskMap','RxDisposable','YUUMI_AI_RUN_FAILED','off-line-icon_clip0_910_343','getCellPositionByOffset','useDependency','extend','_messageService','on-line-icon_clip0_910_349','disposeWithMe','subunit','SessionStatus','_toggleOnline','MOBILE_VERIFY_CODE_MISMATCH','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','combineLatest','currentColor','EffectRefRangId','font','UniverCollaborationClientPlugin','clipPath','fillStyle','substring','getRangePointData','icon','Unknown\x20user','debounceTime','_createSocketURL','IDocClipboardService','_refreshCollabCursors','data','throttleTime','runId','2035950qApVSa','_getSessionTicket','deserializeRangeWithSheet','OTHER_CLIENT_EDITING','string','CollaborationStatusDisplay','send','CollaborationSocketService','saveOfflineData','Shape','FromArray','univer-mr-2\x20univer-flex\x20univer-text-xl','getColorFromTheme','editingUnit','lineTo','getLocalCacheKey','_onRefRangeChange','closePath','_labelPosition','createElement','fillText','getCurrent','_themeService','backgroundColor','height','black','unit','disableLocalCache','touchDependencies','ITransformService','ISnapshotServerService','fromEvent','_cursorShapes','save','onPointerMove$','searchParams','handleIRemoveRow','TRANSFORM_CHANGE_OBSERVABLE_TYPE','colorChannel1','registerDependencies','SheetsSelectionsService','DOC_RANGE_TYPE','NO_OTHER_CLIENTS_EDITING','collabStatus.fetchMiss','isTransformMutationFailure','urlChange$','uni.network.url-service','prototype','_id','_collabSessionService','_range','BuiltInUIPart','Workbook','apply','entries','YUUMI_RATE_OVER_LIMIT','from','Disposable','SetTextSelectionsOperation','_getSheetObject','RefRangeService','_setupSubUnitSync','getTypeOfUnitAdded$','UNIVER_SHEET','NOT_FOUND','_notificationService','collabStatus.offline','_online','_drawRectRange','CHANGESET_REVISION_CONFILICT','displayName','_textBubble','ALREADY_EXISTS','symbol','unitID','_urlService','ThemeService','removeParam','tag','unitId','location','map','handleInsertRow','asObservable','path','OnLineIcon','_handleEvent','switchMap','@univerjs-pro/collaboration','split','MemberService','range','_docSyncEditingCollabCursorService','BrowserCollaborationSocketService','getActiveRange','Rectangle','getMemberID','_eventUnsubscribe','newValue','_send','RevisionService','svg','10xljzsE','_colorAssignService','session.collaboration-timeout','CLOSE_ROOM','univerjs-icon\x20univerjs-icon-','debounce','fromEventSubject','NOT_COLLAB','values','text','_hideTimer','blue.400','HEADER_MENU','getSheetObject','_revisionService','selection','green.600','http://www.w3.org/2000/svg','history','560945AMgjnk','children','sheetID','INVITE_CODE_HAS_BEEN_UES','_cursors','mapTo','getCollabCursors$','_transformHistoryAndStateStack','hide','_docTransformIMECacheService','_handleJoinEvent','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','LICENSE_EXPORT_SIZE_EXCEEDED','clearTimeout','_cursor','endColumn','setAlpha','storage','_roomMembers$','hovered','ticket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','set','findNodePositionByCharIndex','row','NodePositionConvertToRectRange','IMessageService','APPLY_DUPLICATED','jsx','getMember','_name','_selfUnitIDs','handleInsertRangeMoveDown','0\x200\x2017\x2016','468CrStWQ','_memberService','YUUMI_UNABLE_LOAD_URL','/run/','transformRemoteChangeset','ONLINE','transformIMECache','ILocalCacheService','_univerInstanceService','UnitStatus','DocSelectionManagerService','getStateCache','Inject','className','collabStatus.notCollab','_transformPreviousActiveRange','roomMembers$','BehaviorSubject','_updateURLWithCurrentState','setShapeProps','SetDocZoomRatioOperation','getAncestorScale','dispose$','rxjs/operators','CONNECTOR_DATA_TOO_LARGE','WebBrowserSingleActiveUnitService','min','setActiveRange','PERMISSION_DENIED','saveTaskMap','MOBILE_HAS_BEEN_BOUND','collab-client.tooltip.reconnect','_docSkeletonManagerService','pushState','_sheetSkeletonManagerService','translate(.97)','onCommandExecuted','UNIVER_DOC','UPDATE_CURSOR','onPointerEnter$','_localCacheService','updateOfflineData','has','addObjects','univer-flex\x20univer-items-center','column','call','push','_refRangeService','_startDocCollabCursor','DocStateChangeManagerService','syncEditingCollabCursor','onMouseMove','setTimeout','trim','CollaborationSessionService','_onCursorUpdate','_localStorageService','source','_removeCollabCursors','width','CollaborationEvent','_handleLeaveEvent','transformMutationsWithChangeset','transformByState','_initEntityListener','includes','_drawTextRange','_initDependencies','evenodd','drawWith','_scheduleHeartbeat','_docTransformStateCacheService','addClipboardHook','_context','forwardRef','getSheetId','assign','FETCH_MISS','5HfWzWl','_onCursorDelete','...','_unitStatus','setStateCache','@univerjs/engine-formula','generateRandomId','defIds','init','OffLineIcon','registerRenderModule','49608REtKKF','registerBeforeClose','serializeRangeWithSheet','0\x200\x2016\x2016','_entityInit$','moveTo','deepClone','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','replaceState','TEXT_RANGE_LAYER_INDEX','handleIRemoveCol','_handleHeartbeatEvent','react','SheetSkeletonManagerService','NodePositionConvertToCursor','sheetId','result','white','subscribeEvent','application/json','size','type','OFFLINE','@univerjs-pro/collaboration-client','find','_clearOtherTimers','url(#off-line-icon_clip0_910_343)','ISocketService','takeUntil','UNRECOGNIZED','_doCreateSocket','error','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','m1Prime','some','CommandType','InsertRangeMoveDownCommandId','_localeService','LICENSE_MAX_UNITS_EXCEEDED','arc','getCurrentRevOfUnit','function','MUTATION','mask','INTERNAL_ERROR','OTHER_CLIENTS_EDITING','InsertRangeMoveRightCommandId','DependentOn','_collabCursorState$','max','transformStateCache','_transformUndoRedoStack','_toggleOffline','getTypeOfUnitDisposed$','COMPLETION_FINISHED','APPLY_REVISION_CONFILICT','flatMap','SOCKET_FAILED','focused$','delete','@univerjs/core','exhaustSavingTask','IRemoteInstanceService','_transformService','sessionStatus$','setUndoRedoMutationParamsCache','IUIPartsService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collabCursorController','CONFLICT','_anchorDot','IUniverInstanceService','connectInjector','DeleteRangeMoveUpCommandId','toDisposable','UNDEFINED','href','collaboration-client-ui.config','measureText','INVALID_ARGUMENT','[CollaborationDataLoaderController]','enableLocalCache','createInstance','WebSocketService','isEditing','fill','_colorIndex','_getAnchorBounding','getValue','getUnhiddenWorksheets','_collaborationUIEventService','Optional'];_0x2c3e=function(){return _0xe1c57f;};return _0x2c3e();}var Nt={'tag':'svg','attrs':{'xmlns':_0x3b20ce(0x252),'fill':_0x3b20ce(0x403),'viewBox':_0x3b20ce(0x275),'width':_0x3b20ce(0x36c),'height':_0x3b20ce(0x36c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'stroke':_0x3b20ce(0x1ca),'d':_0x3b20ce(0x34d),'strokeLinecap':_0x3b20ce(0x409),'strokeLinejoin':_0x3b20ce(0x409),'strokeWidth':1.2}}]},{'tag':_0x3b20ce(0x385),'attrs':{},'children':[{'tag':_0x3b20ce(0x1ce),'attrs':{'id':_0x3b20ce(0x1c2)},'children':[{'tag':_0x3b20ce(0x22f),'attrs':{'fill':'white','d':_0x3b20ce(0x41f),'transform':_0x3b20ce(0x299)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x3b20ce(0x2c1)](function(_0x1e0f95,_0x3eff7){const _0x3ec43a=_0x3b20ce;return M[_0x3ec43a(0x1ee)](pe,Object[_0x3ec43a(0x2c3)]({},_0x1e0f95,{'id':_0x3ec43a(0x420),'ref':_0x3eff7,'icon':Nt}));});$e[_0x3b20ce(0x221)]=_0x3b20ce(0x230);function Mt(_0x35a091){const _0x5e8cfd=_0x3b20ce;switch(_0x35a091){case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x2e6)]:return _0x5e8cfd(0x21d);case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x315)]:return _0x5e8cfd(0x3a8);case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x2c4)]:return _0x5e8cfd(0x206);case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x248)]:return _0x5e8cfd(0x284);case u['CollaborationStatus'][_0x5e8cfd(0x42d)]:case u[_0x5e8cfd(0x410)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x5e8cfd(0x410)][_0x5e8cfd(0x424)]:case u[_0x5e8cfd(0x410)]['PENDING']:return _0x5e8cfd(0x3e2);}}function xe(_0xd67be6){const _0x330266=_0x3b20ce,{status$:_0x3e738e}=_0xd67be6,_0x4d40b3=O['useObservable'](_0x3e738e,u[_0x330266(0x410)][_0x330266(0x248)]),_0x176444=O['useDependency'](a[_0x330266(0x39e)]),_0x4b4f58=O[_0x330266(0x1bf)](u[_0x330266(0x2ad)]),_0x503af8=_0x4d40b3!==u[_0x330266(0x410)][_0x330266(0x2e6)],_0x463f14=_0x176444['t'](Mt(_0x4d40b3)),_0x272c9b=_0x503af8?P[_0x330266(0x270)]($e,{}):P[_0x330266(0x270)](ye,{}),_0x48495f=M[_0x330266(0x384)](()=>{const _0x27e148=_0x330266;_0x503af8||_0x4b4f58[_0x27e148(0x332)]();},[_0x503af8,_0x4b4f58]);function _0x41b1ea(){const _0x5bc39b=_0x330266;return P['jsxs'](_0x5bc39b(0x3d7),{'className':_0x5bc39b(0x2a2),'onClick':_0x48495f,'children':[P[_0x5bc39b(0x270)]('div',{'className':D[_0x5bc39b(0x34a)](_0x5bc39b(0x1e6),{'univer-text-green-500':_0x503af8,'univer-text-red-500':!_0x503af8}),'children':_0x272c9b}),P[_0x5bc39b(0x270)](_0x5bc39b(0x3d7),{'className':_0x5bc39b(0x25f),'children':_0x463f14})]});}return _0x503af8?_0x41b1ea():P['jsx'](D[_0x330266(0x3b5)],{'title':_0x176444['t'](_0x330266(0x295)),'children':_0x41b1ea()});}var Lt=Object[_0x3b20ce(0x36b)],Pt=(_0x2768ef,_0x20dc3f,_0x5e75fb,_0x21d594)=>{const _0x457e76=_0x3b20ce;for(var _0x131cd5=_0x21d594>0x1?void 0x0:_0x21d594?Lt(_0x20dc3f,_0x5e75fb):_0x20dc3f,_0x544912=_0x2768ef[_0x457e76(0x34f)]-0x1,_0x179821;_0x544912>=0x0;_0x544912--)(_0x179821=_0x2768ef[_0x544912])&&(_0x131cd5=_0x179821(_0x131cd5)||_0x131cd5);return _0x131cd5;},V=(_0x3d0092,_0x1400c9)=>(_0x342fa4,_0x199301)=>_0x1400c9(_0x342fa4,_0x199301,_0x3d0092);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3b20ce(0x214)]{constructor(_0x3c032d,_0x49a414,_0x4236ab,_0x30e11b){const _0x4f84cb=_0x3b20ce;super(),h(this,_0x4f84cb(0x3ec),new d['BehaviorSubject'](u[_0x4f84cb(0x410)][_0x4f84cb(0x248)])),(this[_0x4f84cb(0x27e)]=_0x3c032d,this[_0x4f84cb(0x411)]=_0x49a414,this[_0x4f84cb(0x412)]=_0x4236ab,this[_0x4f84cb(0x3db)]=_0x30e11b,this[_0x4f84cb(0x39a)](),this['_initStatusListener']());}[_0x3b20ce(0x3e5)](){const _0x4b3d52=_0x3b20ce;this['disposeWithMe'](this[_0x4b3d52(0x27e)][_0x4b3d52(0x30a)]['pipe'](d[_0x4b3d52(0x232)](()=>{const _0x42cbda=_0x4b3d52,_0x5cf32a=this[_0x42cbda(0x27e)][_0x42cbda(0x3b8)]();return _0x5cf32a?this[_0x42cbda(0x412)][_0x42cbda(0x3ad)](_0x5cf32a['getUnitId']()):d['of'](null);}),d[_0x4b3d52(0x232)](_0x385c65=>_0x385c65?_0x385c65[_0x4b3d52(0x3be)]:d['of'](u[_0x4b3d52(0x410)][_0x4b3d52(0x248)])))[_0x4b3d52(0x3d4)](_0x1b5c9a=>{const _0x68d7a4=_0x4b3d52;this[_0x68d7a4(0x3ec)]['next'](_0x1b5c9a);}));}[_0x3b20ce(0x39a)](){const _0x18ea06=_0x3b20ce;this['disposeWithMe'](this[_0x18ea06(0x3db)]['registerComponent'](O[_0x18ea06(0x20e)][_0x18ea06(0x24d)],()=>O[_0x18ea06(0x318)](wt({'status$':this['_status$']['asObservable']()}),this[_0x18ea06(0x411)])));}},exports[_0x3b20ce(0x371)]=Pt([V(0x0,a[_0x3b20ce(0x317)]),V(0x1,a[_0x3b20ce(0x282)](a[_0x3b20ce(0x366)])),V(0x2,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x342)])),V(0x3,O[_0x3b20ce(0x312)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x5a41f5){const {status$:_0x469dbd}=_0x5a41f5;return function(){const _0xa028ff=_0x3f21;return P[_0xa028ff(0x270)](xe,{'status$':_0x469dbd});};}var At=Object[_0x3b20ce(0x36b)],yt=(_0x2d7ec8,_0x445288,_0x520758,_0x513647)=>{for(var _0x514a32=_0x513647>0x1?void 0x0:_0x513647?At(_0x445288,_0x520758):_0x445288,_0x255b98=_0x2d7ec8['length']-0x1,_0x43a547;_0x255b98>=0x0;_0x255b98--)(_0x43a547=_0x2d7ec8[_0x255b98])&&(_0x514a32=_0x43a547(_0x514a32)||_0x514a32);return _0x514a32;},y=(_0x5b1e4b,_0x16d2e8)=>(_0x23b80c,_0x2f0971)=>_0x16d2e8(_0x23b80c,_0x2f0971,_0x5b1e4b);let q=class extends a['Disposable']{constructor(_0x1bfb81,_0x5b6990,_0x37fbb1,_0x5c493f,_0x56fafa,_0x1e7b75){const _0x2ffbd7=_0x3b20ce;super(),this[_0x2ffbd7(0x35e)]=_0x1bfb81,this['_localCacheService']=_0x5b6990,this[_0x2ffbd7(0x32a)]=_0x37fbb1,this[_0x2ffbd7(0x1c1)]=_0x5c493f,this[_0x2ffbd7(0x21c)]=_0x56fafa,this[_0x2ffbd7(0x2f5)]=_0x1e7b75,this[_0x2ffbd7(0x386)](),this['_initEvent']();}[_0x3b20ce(0x386)](){const _0x4c2139=_0x3b20ce;this['disposeWithMe'](this[_0x4c2139(0x35e)][_0x4c2139(0x2d1)](()=>{const _0x239f86=_0x4c2139;if(this[_0x239f86(0x29e)][_0x239f86(0x293)][_0x239f86(0x2e4)])return this[_0x239f86(0x2f5)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x1df044=_0x3b20ce;this[_0x1df044(0x1c3)](this[_0x1df044(0x32a)][_0x1df044(0x3a3)][_0x1df044(0x3d4)](_0x55f6a0=>{const _0x3421d5=_0x1df044;_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x1de)]&&this[_0x3421d5(0x1c1)][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t']('collaboration.single-unit.warning')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x244)]&&this[_0x3421d5(0x1c1)]['show']({'type':D[_0x3421d5(0x444)][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x3d3))}),_0x55f6a0['id']===u['CollaborationUIEventId'][_0x3421d5(0x292)]&&this['_notificationService'][_0x3421d5(0x3b9)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x358)),'type':_0x3421d5(0x2ef),'duration':0x0}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x315)]&&this[_0x3421d5(0x1c1)][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x370)],'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x3d3))+'('+_0x55f6a0[_0x3421d5(0x1d8)]+')'}),_0x55f6a0['id']===u['CollaborationUIEventId'][_0x3421d5(0x3c8)]&&this[_0x3421d5(0x1c1)]['show']({'type':D['MessageType'][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t'](_0x55f6a0[_0x3421d5(0x1d8)]||'')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)]['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':D[_0x3421d5(0x444)][_0x3421d5(0x39f)],'content':this[_0x3421d5(0x2f5)]['t']('session.will-retry')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x309)]&&this['_messageService'][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x370)],'content':this['_localeService']['t']('session.connection-failed')}),_0x55f6a0['id']===u[_0x3421d5(0x36e)][_0x3421d5(0x3cf)]&&this[_0x3421d5(0x1c1)][_0x3421d5(0x3b9)]({'type':D[_0x3421d5(0x444)][_0x3421d5(0x370)],'content':this[_0x3421d5(0x2f5)]['t'](_0x3421d5(0x243))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x3b20ce(0x27d)]),y(0x2,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x374)])),y(0x3,O[_0x3b20ce(0x26e)]),y(0x4,O[_0x3b20ce(0x3e7)]),y(0x5,a['Inject'](a[_0x3b20ce(0x39e)]))],q);const $t=_0x3b20ce(0x31d),Ue={},Ee=a[_0x3b20ce(0x3e0)](_0x3b20ce(0x209));var xt=Object[_0x3b20ce(0x36b)],Bt=(_0x1883ba,_0x457906,_0x30560c,_0x39b5ad)=>{const _0x381569=_0x3b20ce;for(var _0xba04c8=_0x39b5ad>0x1?void 0x0:_0x39b5ad?xt(_0x457906,_0x30560c):_0x457906,_0x557eea=_0x1883ba[_0x381569(0x34f)]-0x1,_0x3340d2;_0x557eea>=0x0;_0x557eea--)(_0x3340d2=_0x1883ba[_0x557eea])&&(_0xba04c8=_0x3340d2(_0xba04c8)||_0xba04c8);return _0xba04c8;},F=(_0x58c2e8,_0xe78269)=>(_0x163013,_0x3e9245)=>_0xe78269(_0x163013,_0x3e9245,_0x58c2e8);exports[_0x3b20ce(0x3f9)]=class extends a[_0x3b20ce(0x1bb)]{constructor(_0x19545f,_0x4a890c,_0x3eba67,_0x228898,_0x495774){const _0xb53140=_0x3b20ce;super(),this[_0xb53140(0x226)]=_0x19545f,this[_0xb53140(0x38c)]=_0x4a890c,this[_0xb53140(0x372)]=_0x3eba67,this[_0xb53140(0x41d)]=_0x228898,_0x495774?_0x495774==null||_0x495774['whenReady']()[_0xb53140(0x413)](()=>this[_0xb53140(0x3e1)]()):(this[_0xb53140(0x38c)][_0xb53140(0x3d8)](_0xb53140(0x320),_0xb53140(0x2d7)),this[_0xb53140(0x3e1)]());}async['_init'](){const _0x26543e=_0x3b20ce,_0x57f20d=this['_urlService'][_0x26543e(0x415)](_0x26543e(0x1f5)),_0x9c83bb=this['_urlService'][_0x26543e(0x415)](_0x26543e(0x2e5)),_0x1bd7f7=this['_urlService']['getParam']('subunit');if(!_0x57f20d||!_0x9c83bb){this[_0x26543e(0x38c)][_0x26543e(0x3d8)](_0x26543e(0x320),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x9d2d48=await this[_0x26543e(0x41d)][_0x26543e(0x399)](_0x57f20d,Number(_0x9c83bb),_0x1bd7f7);_0x9d2d48&&_0x9d2d48 instanceof a[_0x26543e(0x20f)]&&this[_0x26543e(0x218)](_0x9d2d48);}async[_0x3b20ce(0x218)](_0x4e6fe2){const _0x1b459f=_0x3b20ce;await this[_0x1b459f(0x1b7)](_0x4e6fe2),_0x4e6fe2['activeSheet$'][_0x1b459f(0x32f)](d['takeUntil'](this[_0x1b459f(0x28c)]))[_0x1b459f(0x3d4)](_0x31ae3e=>{const _0x3374bf=_0x1b459f;_0x31ae3e&&this[_0x3374bf(0x288)](_0x31ae3e);}),this[_0x1b459f(0x226)]['urlChange$'][_0x1b459f(0x32f)](d[_0x1b459f(0x2ec)](this['dispose$']))[_0x1b459f(0x3d4)](()=>this[_0x1b459f(0x1b7)](_0x4e6fe2));}[_0x3b20ce(0x288)](_0x7245f4,_0x285dd6=!0x1){const _0x73591=_0x3b20ce,_0x21b4f5=this[_0x73591(0x226)][_0x73591(0x415)]('subunit');_0x7245f4[_0x73591(0x2c2)]()!==_0x21b4f5&&this['_urlService'][_0x73591(0x377)](_0x73591(0x1c4),_0x7245f4[_0x73591(0x2c2)](),_0x285dd6);}async['_updateSubUnitFromURLParams'](_0xa75907){const _0x5d9ce4=_0x3b20ce;var _0x30e7fd;const _0x1d1f08=this[_0x5d9ce4(0x226)][_0x5d9ce4(0x415)]('subunit');if(!_0x1d1f08||!_0xa75907[_0x5d9ce4(0x32d)](_0x1d1f08)){const _0x5b575d=_0xa75907[_0x5d9ce4(0x329)]()[0x0],_0x371855=_0xa75907[_0x5d9ce4(0x32d)](_0x5b575d);if(!_0x371855)return;this['_updateURLWithCurrentState'](_0x371855,!0x0),await this['_commandService'][_0x5d9ce4(0x381)](g[_0x5d9ce4(0x423)]['id'],{'unitId':_0xa75907['getUnitId'](),'subUnitId':_0x5b575d});return;}((_0x30e7fd=_0xa75907[_0x5d9ce4(0x3f2)]())==null?void 0x0:_0x30e7fd[_0x5d9ce4(0x2c2)]())!==_0x1d1f08&&await this[_0x5d9ce4(0x372)]['executeCommand'](g[_0x5d9ce4(0x423)]['id'],{'unitId':_0xa75907[_0x5d9ce4(0x35f)](),'subUnitId':_0x1d1f08});}},exports[_0x3b20ce(0x3f9)]=Bt([F(0x0,Ee),F(0x1,a[_0x3b20ce(0x416)]),F(0x2,a[_0x3b20ce(0x340)]),F(0x3,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x3bf)])),F(0x4,a[_0x3b20ce(0x32b)](Ke[_0x3b20ce(0x30e)]))],exports[_0x3b20ce(0x3f9)]);var jt=Object[_0x3b20ce(0x36b)],kt=(_0xb90c8f,_0x5f4fac,_0x5a2319,_0x5bce52)=>{const _0x20dfaf=_0x3b20ce;for(var _0x406d40=_0x5bce52>0x1?void 0x0:_0x5bce52?jt(_0x5f4fac,_0x5a2319):_0x5f4fac,_0xc482a6=_0xb90c8f[_0x20dfaf(0x34f)]-0x1,_0x210482;_0xc482a6>=0x0;_0xc482a6--)(_0x210482=_0xb90c8f[_0xc482a6])&&(_0x406d40=_0x210482(_0x406d40)||_0x406d40);return _0x406d40;},ce=(_0x5b3241,_0xa265a5)=>(_0x3605e2,_0x5ea329)=>_0xa265a5(_0x3605e2,_0x5ea329,_0x5b3241);let z=class{constructor(_0x2188fb,_0x566461,_0x39ccfc){const _0x39a908=_0x3b20ce;this[_0x39a908(0x411)]=_0x2188fb,this[_0x39a908(0x30f)]=_0x566461,this[_0x39a908(0x34b)]=_0x39ccfc;}['transformIMECache'](_0x4d087){const _0x5092ba=_0x3b20ce;this[_0x5092ba(0x303)](_0x4d087),this['_transformPreviousActiveRange'](_0x4d087);}[_0x3b20ce(0x27a)](_0x4ac43a){const _0x325309=_0x3b20ce,{unitID:_0x2808c7}=_0x4ac43a,_0x3a8afc=this[_0x325309(0x34b)][_0x325309(0x3e8)](_0x2808c7)[_0x325309(0x344)](E[_0x325309(0x43b)]),{redoCache:_0xcb71f}=_0x3a8afc[_0x325309(0x352)]();if(_0xcb71f[_0x325309(0x34f)]===0x0)return _0x4ac43a;let _0x15a6e6=a[_0x325309(0x42c)][_0x325309(0x2d6)](_0x4ac43a[_0x325309(0x36f)][0x0]);for(let _0x202a94=0x0;_0x202a94<_0xcb71f[_0x325309(0x34f)];_0x202a94++){const _0x56de04={'id':_0x325309(0x431),'params':{..._0xcb71f[_0x202a94]}},_0x15dec1=this['_transformService']['transformMutation'](_0x15a6e6,_0x56de04,!0x1);if(m['isTransformMutationFailure'](_0x15dec1))throw _0x15dec1[_0x325309(0x2ef)];_0x15a6e6=_0x15dec1[_0x325309(0x2f1)];}return{...a['Tools'][_0x325309(0x2d6)](_0x4ac43a),'mutations':[_0x15a6e6]};}['_transformUndoRedoStack'](_0xd2a580){const _0x1c244c=_0x3b20ce,{unitID:_0x40fd37}=_0xd2a580,_0x863436=this[_0x1c244c(0x34b)]['getRenderById'](_0x40fd37)[_0x1c244c(0x344)](E[_0x1c244c(0x43b)]),{undoCache:_0x3ba013,redoCache:_0x101941}=_0x863436['getUndoRedoMutationParamsCache']();if(_0x3ba013[_0x1c244c(0x34f)]===0x0||_0x101941['length']===0x0)return;const _0x17f70b=[],_0x4c3408=[];let _0x1456a0=a[_0x1c244c(0x42c)][_0x1c244c(0x2d6)](_0xd2a580['mutations'][0x0]),_0x2d3a22=a[_0x1c244c(0x42c)][_0x1c244c(0x2d6)](_0xd2a580[_0x1c244c(0x36f)][0x0]);for(let _0x2450c2=_0x3ba013[_0x1c244c(0x34f)]-0x1;_0x2450c2>=0x0;_0x2450c2--){const _0xa59284={'id':_0x1c244c(0x431),'params':{..._0x3ba013[_0x2450c2]}},_0x54fba2={'id':'doc.mutation.rich-text-editing','params':{..._0x101941[_0x2450c2]}},_0x1037c0=this[_0x1c244c(0x30f)][_0x1c244c(0x440)](_0x1456a0,_0xa59284,!0x1),_0xd8f365=this['_transformService'][_0x1c244c(0x440)](_0x2d3a22,_0x54fba2,!0x1);if(m['isTransformMutationFailure'](_0x1037c0))throw _0x1037c0[_0x1c244c(0x2ef)];if(m['isTransformMutationFailure'](_0xd8f365))throw _0xd8f365[_0x1c244c(0x2ef)];_0x17f70b['unshift'](_0x1037c0[_0x1c244c(0x379)][_0x1c244c(0x346)]),_0x4c3408['unshift'](_0xd8f365['m2Prime'][_0x1c244c(0x346)]),_0x1456a0=_0x1037c0['m1Prime'],_0x2d3a22=_0xd8f365[_0x1c244c(0x2f1)];}_0x863436[_0x1c244c(0x311)]({'undoCache':_0x17f70b,'redoCache':_0x4c3408});}[_0x3b20ce(0x285)](_0x3aebb9){const _0x4c6a1d=_0x3b20ce,{unitID:_0x436ad3}=_0x3aebb9,_0x30047f=this[_0x4c6a1d(0x34b)][_0x4c6a1d(0x3e8)](_0x436ad3)[_0x4c6a1d(0x344)](E[_0x4c6a1d(0x43b)]),_0xce0513=_0x30047f[_0x4c6a1d(0x239)]();if(_0xce0513==null)return;const _0xd661b7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3aebb9[_0x4c6a1d(0x225)],'actions':null,'textRanges':[_0xce0513]}}],_0x60c538=this[_0x4c6a1d(0x30f)][_0x4c6a1d(0x2b5)](_0x3aebb9,_0xd661b7);if(!m[_0x4c6a1d(0x3e4)](_0x60c538))throw _0x60c538[_0x4c6a1d(0x2ef)];const _0x4acdb9=_0x60c538[_0x4c6a1d(0x379)][0x0][_0x4c6a1d(0x346)]['textRanges'];Array[_0x4c6a1d(0x3ca)](_0x4acdb9)&&_0x4acdb9[_0x4c6a1d(0x34f)]&&_0x30047f[_0x4c6a1d(0x291)](_0x4acdb9[0x0]);}};z=kt([ce(0x0,a[_0x3b20ce(0x282)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x3b20ce(0x33f)])],z);var Ft=Object[_0x3b20ce(0x36b)],Ht=(_0x56e654,_0x496148,_0x134e37,_0x4fe19d)=>{const _0x118092=_0x3b20ce;for(var _0x57ec70=_0x4fe19d>0x1?void 0x0:_0x4fe19d?Ft(_0x496148,_0x134e37):_0x496148,_0x453cd1=_0x56e654[_0x118092(0x34f)]-0x1,_0x582c86;_0x453cd1>=0x0;_0x453cd1--)(_0x582c86=_0x56e654[_0x453cd1])&&(_0x57ec70=_0x582c86(_0x57ec70)||_0x57ec70);return _0x57ec70;},le=(_0xaab786,_0xfde233)=>(_0x326a67,_0x4066d8)=>_0xfde233(_0x326a67,_0x4066d8,_0xaab786);let J=class{constructor(_0x430ccc,_0x37d7e7,_0x2f04d0){const _0x526470=_0x3b20ce;this[_0x526470(0x411)]=_0x430ccc,this['_transformService']=_0x37d7e7,this[_0x526470(0x432)]=_0x2f04d0;}[_0x3b20ce(0x302)](_0x509378){const _0xaa3e91=_0x3b20ce;this[_0xaa3e91(0x25b)](_0x509378);}[_0x3b20ce(0x27a)](_0x3485da){const _0x573d8d=_0x3b20ce,{unitID:_0x14740c}=_0x3485da,{collaboration:_0x1bd0f6}=this[_0x573d8d(0x432)]['getStateCache'](_0x14740c);if(_0x1bd0f6['length']===0x0)return _0x3485da;let _0x824a1f=a['Tools'][_0x573d8d(0x2d6)](_0x3485da[_0x573d8d(0x36f)][0x0]);for(let _0x26e73a=0x0;_0x26e73a<_0x1bd0f6['length'];_0x26e73a++){const _0x1a27c4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1bd0f6[_0x26e73a]['unitId'],..._0x1bd0f6[_0x26e73a][_0x573d8d(0x441)]}},_0x18b0a1=this[_0x573d8d(0x30f)][_0x573d8d(0x440)](_0x824a1f,_0x1a27c4,!0x1);if(m[_0x573d8d(0x207)](_0x18b0a1))throw _0x18b0a1[_0x573d8d(0x2ef)];_0x824a1f=_0x18b0a1['m1Prime'];}return{...a[_0x573d8d(0x42c)]['deepClone'](_0x3485da),'mutations':[_0x824a1f]};}[_0x3b20ce(0x25b)](_0x31b78f){const _0x418259=_0x3b20ce,{unitID:_0x1c7dc6}=_0x31b78f,{history:_0x42a145,collaboration:_0x4e10f8}=this[_0x418259(0x432)][_0x418259(0x281)](_0x1c7dc6);if(_0x42a145[_0x418259(0x34f)]===0x0&&_0x4e10f8['length']===0x0)return;const _0x464190=[],_0x610abd=[];let _0x473480=a[_0x418259(0x42c)][_0x418259(0x2d6)](_0x31b78f[_0x418259(0x36f)][0x0]),_0x28f667=a[_0x418259(0x42c)][_0x418259(0x2d6)](_0x31b78f['mutations'][0x0]);for(let _0xe4310f=_0x42a145['length']-0x1;_0xe4310f>=0x0;_0xe4310f--){const _0x4e16de={'id':_0x418259(0x431),'params':{'unitId':_0x42a145[_0xe4310f][_0x418259(0x22a)],..._0x42a145[_0xe4310f][_0x418259(0x40a)]}},_0x13176e={'id':_0x418259(0x431),'params':{'unitId':_0x42a145[_0xe4310f]['unitId'],..._0x42a145[_0xe4310f][_0x418259(0x441)]}},_0xbef631=this[_0x418259(0x30f)]['transformMutation'](_0x473480,_0x4e16de,!0x1),_0x72b80e=this['_transformService'][_0x418259(0x440)](_0x28f667,_0x13176e,!0x1);if(m['isTransformMutationFailure'](_0xbef631))throw _0xbef631[_0x418259(0x2ef)];if(m['isTransformMutationFailure'](_0x72b80e))throw _0x72b80e[_0x418259(0x2ef)];_0x464190['unshift']({..._0x42a145[_0xe4310f],'undoState':_0xbef631['m2Prime'][_0x418259(0x346)],'redoState':_0x72b80e[_0x418259(0x379)][_0x418259(0x346)]}),_0x473480=_0xbef631[_0x418259(0x2f1)],_0x28f667=_0x72b80e['m1Prime'];}_0x473480=a['Tools']['deepClone'](_0x31b78f[_0x418259(0x36f)][0x0]),_0x28f667=a['Tools'][_0x418259(0x2d6)](_0x31b78f[_0x418259(0x36f)][0x0]);for(let _0x35185f=_0x4e10f8[_0x418259(0x34f)]-0x1;_0x35185f>=0x0;_0x35185f--){const _0x2ad7c7={'id':_0x418259(0x431),'params':{'unitId':_0x4e10f8[_0x35185f][_0x418259(0x22a)],..._0x4e10f8[_0x35185f][_0x418259(0x40a)]}},_0x3cd54f={'id':_0x418259(0x431),'params':{'unitId':_0x4e10f8[_0x35185f][_0x418259(0x22a)],..._0x4e10f8[_0x35185f][_0x418259(0x441)]}},_0x49d28e=this['_transformService']['transformMutation'](_0x473480,_0x2ad7c7,!0x1),_0x18d3f7=this[_0x418259(0x30f)]['transformMutation'](_0x28f667,_0x3cd54f,!0x1);if(m[_0x418259(0x207)](_0x49d28e))throw _0x49d28e[_0x418259(0x2ef)];if(m[_0x418259(0x207)](_0x18d3f7))throw _0x18d3f7[_0x418259(0x2ef)];_0x610abd['unshift']({..._0x4e10f8[_0x35185f],'undoState':_0x49d28e[_0x418259(0x379)][_0x418259(0x346)],'redoState':_0x18d3f7[_0x418259(0x379)]['params']}),_0x473480=_0x49d28e[_0x418259(0x2f1)],_0x28f667=_0x18d3f7[_0x418259(0x2f1)];}this[_0x418259(0x432)][_0x418259(0x2c9)](_0x1c7dc6,{'history':_0x464190,'collaboration':_0x610abd});}};J=Ht([le(0x0,a['Inject'](a[_0x3b20ce(0x366)])),le(0x1,m[_0x3b20ce(0x1f8)]),le(0x2,a[_0x3b20ce(0x282)](E[_0x3b20ce(0x2a8)]))],J);var Yt=Object[_0x3b20ce(0x36b)],Wt=(_0x250f28,_0xdb6cfc,_0x1d0cf3,_0x318021)=>{const _0x2f55ba=_0x3b20ce;for(var _0x1ebd4b=_0x318021>0x1?void 0x0:_0x318021?Yt(_0xdb6cfc,_0x1d0cf3):_0xdb6cfc,_0x7eff2=_0x250f28[_0x2f55ba(0x34f)]-0x1,_0x43b0ae;_0x7eff2>=0x0;_0x7eff2--)(_0x43b0ae=_0x250f28[_0x7eff2])&&(_0x1ebd4b=_0x43b0ae(_0x1ebd4b)||_0x1ebd4b);return _0x1ebd4b;},Ne=(_0x172e2e,_0x560696)=>(_0x527df7,_0x5dbb55)=>_0x560696(_0x527df7,_0x5dbb55,_0x172e2e);let Z=class{constructor(_0x520eec,_0xb3d8a0){const _0x538ae0=_0x3b20ce;this['_injector']=_0x520eec,this[_0x538ae0(0x30f)]=_0xb3d8a0;}[_0x3b20ce(0x3fd)](_0x57fb8c){const _0x20769f=_0x3b20ce;var _0x2cafd5;const _0x17ee55=this[_0x20769f(0x411)]['get'](Y[_0x20769f(0x280)]),_0x4961c6=(_0x2cafd5=_0x17ee55[_0x20769f(0x418)]())!=null?_0x2cafd5:[];if(_0x4961c6[_0x20769f(0x34f)]===0x0)return;const _0x70a271=_0x57fb8c[_0x20769f(0x225)],_0x2af479=[{'id':_0x20769f(0x431),'params':{'unitId':_0x70a271,'actions':null,'textRanges':_0x4961c6}}],_0x1e0592=this['_transformService']['transformMutationsWithChangeset'](_0x57fb8c,_0x2af479);if(!m['isTransformMutationsWithChangesetSuccess'](_0x1e0592))throw _0x1e0592[_0x20769f(0x2ef)];const _0x2e4519=_0x1e0592[_0x20769f(0x379)][0x0]['params']['textRanges'];Array[_0x20769f(0x3ca)](_0x2e4519)&&_0x2e4519[_0x20769f(0x34f)]&&_0x17ee55[_0x20769f(0x446)](_0x2e4519,{'unitId':_0x70a271,'subUnitId':_0x70a271},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a['Injector'])),Ne(0x1,m[_0x3b20ce(0x1f8)])],Z);var Vt=Object[_0x3b20ce(0x36b)],Xt=(_0x2aa6a2,_0x390ea3,_0x2723bd,_0x3ad7c3)=>{const _0x1d8909=_0x3b20ce;for(var _0x1f839e=_0x3ad7c3>0x1?void 0x0:_0x3ad7c3?Vt(_0x390ea3,_0x2723bd):_0x390ea3,_0xe493=_0x2aa6a2[_0x1d8909(0x34f)]-0x1,_0x41bea0;_0xe493>=0x0;_0xe493--)(_0x41bea0=_0x2aa6a2[_0xe493])&&(_0x1f839e=_0x41bea0(_0x1f839e)||_0x1f839e);return _0x1f839e;},N=(_0x16a50b,_0x50707f)=>(_0x25ee37,_0x5a48d7)=>_0x50707f(_0x25ee37,_0x5a48d7,_0x16a50b);let Q=class extends a[_0x3b20ce(0x214)]{constructor(_0x5504ee,_0x31f63c,_0x53e19f,_0x3597c4,_0x46581a,_0x299918,_0x1a80e3,_0x10731a){const _0x57d0b1=_0x3b20ce;super(),h(this,_0x57d0b1(0x3ec),new d[(_0x57d0b1(0x287))](u[_0x57d0b1(0x410)][_0x57d0b1(0x248)])),(this[_0x57d0b1(0x432)]=_0x5504ee,this['_collaborationController']=_0x31f63c,this[_0x57d0b1(0x25d)]=_0x53e19f,this[_0x57d0b1(0x2be)]=_0x3597c4,this[_0x57d0b1(0x3f5)]=_0x46581a,this[_0x57d0b1(0x237)]=_0x299918,this[_0x57d0b1(0x1c1)]=_0x1a80e3,this[_0x57d0b1(0x2f5)]=_0x10731a,this[_0x57d0b1(0x2b7)]());}[_0x3b20ce(0x2b7)](){const _0x46b2a5=_0x3b20ce;this[_0x46b2a5(0x1c3)](this[_0x46b2a5(0x412)][_0x46b2a5(0x36d)][_0x46b2a5(0x3d4)](_0x4d9b98=>{const _0x381729=_0x46b2a5,_0x4487cf=this['_docStateChangeManagerService'][_0x381729(0x3e6)][_0x381729(0x3d4)](_0x1803df=>{const _0x2bcdfd=_0x381729;if(_0x1803df==null)return;const {unitId:_0x46f5f9,redoState:_0x2b3442,commandId:_0xf413e5}=_0x1803df;if(_0x46f5f9!==_0x4d9b98[_0x2bcdfd(0x225)])return;const _0xb521d7={'id':_0xf413e5,'type':a[_0x2bcdfd(0x2f3)][_0x2bcdfd(0x2fa)],'params':{'unitId':_0x46f5f9,'actions':_0x2b3442[_0x2bcdfd(0x357)],'textRanges':null}};_0x4d9b98['onLocalMutation'](_0xb521d7);});if(_0x4d9b98[_0x381729(0x1c3)](_0x4487cf),_0x4d9b98 instanceof u['DocCollaborationEntity']){const _0x4272a6={'onTransformIME':_0x792b03=>this[_0x381729(0x25d)][_0x381729(0x27c)](_0x792b03),'onTransformState':_0x10cd60=>this[_0x381729(0x2be)]['transformStateCache'](_0x10cd60),'onTransformSelections':_0x1463ec=>this['_docTransformSelectionsService']['transformSelections'](_0x1463ec),'onSyncEditingCollabCursor':_0x12da58=>this[_0x381729(0x237)]['syncEditingCollabCursor'](_0x12da58),'onTransformRemoteChangesetByIMECache':_0x3b6ee6=>this[_0x381729(0x25d)][_0x381729(0x27a)](_0x3b6ee6),'onTransformRemoteChangesetByStateCache':_0x133848=>this[_0x381729(0x2be)][_0x381729(0x27a)](_0x133848)};_0x4d9b98['addHandlerCallback'](_0x4272a6);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x3b20ce(0x2a8)])),N(0x1,a[_0x3b20ce(0x282)](u[_0x3b20ce(0x342)])),N(0x2,a[_0x3b20ce(0x282)](z)),N(0x3,a[_0x3b20ce(0x282)](J)),N(0x4,a[_0x3b20ce(0x282)](Z)),N(0x5,a[_0x3b20ce(0x282)](Ce)),N(0x6,O['IMessageService']),N(0x7,a[_0x3b20ce(0x282)](a['LocaleService']))],Q);var Gt=Object[_0x3b20ce(0x36b)],Kt=(_0x56359f,_0x5f5469,_0x7545b7,_0xb2e151)=>{for(var _0x78cec2=_0xb2e151>0x1?void 0x0:_0xb2e151?Gt(_0x5f5469,_0x7545b7):_0x5f5469,_0x18b89d=_0x56359f['length']-0x1,_0x404b68;_0x18b89d>=0x0;_0x18b89d--)(_0x404b68=_0x56359f[_0x18b89d])&&(_0x78cec2=_0x404b68(_0x78cec2)||_0x78cec2);return _0x78cec2;},_e=(_0x588229,_0x5f0a42)=>(_0x2300c0,_0x5c4080)=>_0x5f0a42(_0x2300c0,_0x5c4080,_0x588229);let ge=class extends a[_0x3b20ce(0x214)]{constructor(_0x157979,_0x1164cd,_0x16694b){const _0x33d2d5=_0x3b20ce;super(),h(this,_0x33d2d5(0x3cb),new Map()),h(this,_0x33d2d5(0x1ba),new Map()),h(this,_0x33d2d5(0x37b),!0x1),(this['_configService']=_0x157979,this[_0x33d2d5(0x2af)]=_0x1164cd,this[_0x33d2d5(0x24f)]=_0x16694b);}[_0x3b20ce(0x1f6)](){this['_disabled']=!0x0;}[_0x3b20ce(0x321)](){this['_disabled']=!0x1;}get[_0x3b20ce(0x293)](){const _0x6b42c1=_0x3b20ce;return this[_0x6b42c1(0x1ba)];}[_0x3b20ce(0x392)](){const _0x3dda2f=_0x3b20ce;this[_0x3dda2f(0x30d)]()[_0x3dda2f(0x413)](()=>super[_0x3dda2f(0x392)]());}async[_0x3b20ce(0x3b0)](_0x222aec){const _0x5f206b=_0x3b20ce;return this[_0x5f206b(0x37b)]?null:this[_0x5f206b(0x2af)][_0x5f206b(0x3ab)](u[_0x5f206b(0x1ea)](_0x222aec));}async[_0x3b20ce(0x1e3)](_0x109e54,_0x20a43c){const _0x4ffe6e=_0x3b20ce;return!!this['_localStorageService'][_0x4ffe6e(0x40b)](_0x109e54,_0x20a43c);}[_0x3b20ce(0x29f)](_0x2a8d8e,_0x281784,_0x4e0712,_0x5f2360){const _0x3d7e4a=_0x3b20ce,_0x26a321=this[_0x3d7e4a(0x24f)][_0x3d7e4a(0x2f8)](_0x2a8d8e);this[_0x3d7e4a(0x3cb)]['set'](_0x2a8d8e,{'unitID':_0x2a8d8e,'type':_0x281784,'awaitingChangeset':_0x4e0712,'mutations':_0x5f2360,'rev':_0x26a321}),this[_0x3d7e4a(0x1ba)][_0x3d7e4a(0x2a0)](_0x2a8d8e)||this[_0x3d7e4a(0x3af)](_0x2a8d8e);}['_scheduleSaving'](_0x12c825){const _0x156e71=_0x3b20ce,_0x4df92e=this['_getSaveTimeout']();_0x4df92e===0x0?this[_0x156e71(0x3c6)](_0x12c825):this[_0x156e71(0x1ba)][_0x156e71(0x26a)](_0x12c825,setTimeout(()=>this[_0x156e71(0x3c6)](_0x12c825),_0x4df92e));}[_0x3b20ce(0x3a9)](){const _0xa0f038=_0x3b20ce;var _0x573115;return(_0x573115=this[_0xa0f038(0x396)][_0xa0f038(0x401)](u[_0xa0f038(0x428)]))!=null?_0x573115:u[_0xa0f038(0x1b8)];}[_0x3b20ce(0x3c6)](_0x6cab62){const _0x38c045=_0x3b20ce,_0x584876=this[_0x38c045(0x1ba)][_0x38c045(0x3ff)](_0x6cab62);return _0x584876!==void 0x0&&window['clearTimeout'](_0x584876),this['_localStorageService'][_0x38c045(0x40b)](u[_0x38c045(0x1ea)](_0x6cab62),this[_0x38c045(0x3cb)]['get'](_0x6cab62))[_0x38c045(0x413)](()=>this['_saveTaskMap'][_0x38c045(0x30b)](_0x6cab62));}async['exhaustSavingTask'](){const _0x8f424=_0x3b20ce,_0x4fb204=[];this[_0x8f424(0x1ba)]['forEach']((_0x3b9b04,_0x2e674b)=>{const _0x3c9848=_0x8f424;window[_0x3c9848(0x261)](_0x3b9b04),_0x4fb204[_0x3c9848(0x2a5)](this[_0x3c9848(0x3c6)](_0x2e674b)['then'](()=>{this['_saveTaskMap']['delete'](_0x2e674b);}));}),await Promise[_0x8f424(0x3fb)](_0x4fb204);}};ge=Kt([_e(0x0,a[_0x3b20ce(0x341)]),_e(0x1,a[_0x3b20ce(0x43c)]),_e(0x2,a[_0x3b20ce(0x282)](m[_0x3b20ce(0x23f)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x10893f=_0x3b20ce;super(),h(this,'urlChange$'),this[_0x10893f(0x208)]=d[_0x10893f(0x1fa)](window,'popstate')[_0x10893f(0x32f)](d['takeUntil'](this[_0x10893f(0x28c)]),d['shareReplay'](0x1),d[_0x10893f(0x259)](void 0x0));}['setParam'](_0x138f1d,_0x1e8843,_0x444b95=!0x1){const _0x52c0bc=_0x3b20ce,_0x3cc7f3=new URL(window[_0x52c0bc(0x22b)][_0x52c0bc(0x31c)]);_0x3cc7f3['searchParams']['set'](_0x138f1d,_0x1e8843),_0x444b95?window[_0x52c0bc(0x253)][_0x52c0bc(0x2d8)]('','',_0x3cc7f3[_0x52c0bc(0x3e9)]()):window[_0x52c0bc(0x253)]['pushState']('','',_0x3cc7f3[_0x52c0bc(0x3e9)]());}[_0x3b20ce(0x228)](_0x2c56dc,_0x449bf5=!0x1){const _0x4b8882=_0x3b20ce,_0x2892d6=new URL(window[_0x4b8882(0x22b)]['href']);_0x2892d6['searchParams'][_0x4b8882(0x30b)](_0x2c56dc),_0x449bf5?window[_0x4b8882(0x253)]['replaceState']('','',_0x2892d6[_0x4b8882(0x3e9)]()):window[_0x4b8882(0x253)][_0x4b8882(0x297)]('','',_0x2892d6[_0x4b8882(0x3e9)]());}['getParam'](_0x930f09){const _0x3231d6=_0x3b20ce;var _0x24b606;return(_0x24b606=new URL(window[_0x3231d6(0x22b)]['href'])[_0x3231d6(0x1fe)]['get'](_0x930f09))!=null?_0x24b606:void 0x0;}}var qt=Object[_0x3b20ce(0x353)],zt=Object[_0x3b20ce(0x36b)],Jt=(_0x47ec26,_0x175c0d,_0x132167)=>_0x175c0d in _0x47ec26?qt(_0x47ec26,_0x175c0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132167}):_0x47ec26[_0x175c0d]=_0x132167,Zt=(_0x230ce5,_0x21613a,_0x21e66d,_0x4ca3bd)=>{const _0x3a2223=_0x3b20ce;for(var _0x2af739=_0x4ca3bd>0x1?void 0x0:_0x4ca3bd?zt(_0x21613a,_0x21e66d):_0x21613a,_0x2dc8c4=_0x230ce5[_0x3a2223(0x34f)]-0x1,_0x1ec4d7;_0x2dc8c4>=0x0;_0x2dc8c4--)(_0x1ec4d7=_0x230ce5[_0x2dc8c4])&&(_0x2af739=_0x1ec4d7(_0x2af739)||_0x2af739);return _0x2af739;},he=(_0x56d2af,_0x50c8a9)=>(_0x187bd2,_0x5cdf04)=>_0x50c8a9(_0x187bd2,_0x5cdf04,_0x56d2af),Qt=(_0x49a972,_0xff1a2c,_0x2c941a)=>Jt(_0x49a972,_0xff1a2c+'',_0x2c941a);const es=_0x3b20ce(0x3ef);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x14d3f7=Ue,_0xee8f60,_0x39e1b4,_0x43aca0){const _0x25f116=_0x3b20ce;super(),this[_0x25f116(0x3c4)]=_0x14d3f7,this['_renderManagerService']=_0xee8f60,this['_injector']=_0x39e1b4,this[_0x25f116(0x396)]=_0x43aca0;const {..._0x3cc972}=a[_0x25f116(0x3bb)]({},Ue,this[_0x25f116(0x3c4)]);this['_configService']['setConfig']($t,_0x3cc972);}[_0x3b20ce(0x406)](){const _0xbfdf3a=_0x3b20ce;this[_0xbfdf3a(0x334)](),this[_0xbfdf3a(0x2ba)]();}[_0x3b20ce(0x3d9)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x3d7183=_0x3b20ce;var _0x127a49;const _0x3c0d83=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x3d7183(0x2eb)],{'useClass':G[_0x3d7183(0x323)]}],[u[_0x3d7183(0x27d)],{'useClass':ge}],[exports[_0x3d7183(0x371)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x3d7183(0x202)](this['_injector'],a['mergeOverrideWithDependencies'](_0x3c0d83,(_0x127a49=this[_0x3d7183(0x3c4)])==null?void 0x0:_0x127a49[_0x3d7183(0x367)]));}[_0x3b20ce(0x447)](){const _0x15a6be=_0x3b20ce;this[_0x15a6be(0x1c3)](this[_0x15a6be(0x34b)]['registerRenderModule'](a[_0x15a6be(0x356)][_0x15a6be(0x29b)],[fe])),this[_0x15a6be(0x1c3)](this[_0x15a6be(0x34b)][_0x15a6be(0x2cf)](a[_0x15a6be(0x356)]['UNIVER_SHEET'],[ve]));}['_initDependencies'](){const _0x2f0a23=_0x3b20ce;a[_0x2f0a23(0x1f7)](this[_0x2f0a23(0x411)],[[x],[exports[_0x2f0a23(0x371)]],[Q],[q],[exports[_0x2f0a23(0x3f9)]]]);}},Qt(exports[_0x3b20ce(0x378)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x3b20ce(0x2ff)](u[_0x3b20ce(0x1cd)]),he(0x1,p[_0x3b20ce(0x33f)]),he(0x2,a[_0x3b20ce(0x282)](a['Injector'])),he(0x3,a[_0x3b20ce(0x341)])],exports[_0x3b20ce(0x378)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x38c299,_0x5d2b7d,_0x3d8179,_0x588407)=>{const _0x10e900=_0x3b20ce;for(var _0x4b5454=_0x588407>0x1?void 0x0:_0x588407?ts(_0x5d2b7d,_0x3d8179):_0x5d2b7d,_0x28b980=_0x38c299[_0x10e900(0x34f)]-0x1,_0x4d4e59;_0x28b980>=0x0;_0x28b980--)(_0x4d4e59=_0x38c299[_0x28b980])&&(_0x4b5454=_0x4d4e59(_0x4b5454)||_0x4b5454);return _0x4b5454;},H=(_0x513a91,_0x11ad13)=>(_0x12b6d2,_0x36b239)=>_0x11ad13(_0x12b6d2,_0x36b239,_0x513a91);exports[_0x3b20ce(0x238)]=class extends u[_0x3b20ce(0x1e2)]{constructor(_0xcf044a,_0xb24aa0,_0x1915c8,_0x4fdfbe,_0x252fd8){super(_0xcf044a,_0xb24aa0,_0x1915c8,_0x4fdfbe,_0x252fd8);}async[_0x3b20ce(0x383)](_0x3d8b38){const _0x1022a7=_0x3b20ce,_0x3d98d1=await this[_0x1022a7(0x1dc)](),_0x32d2f4=this[_0x1022a7(0x1d5)](_0x3d8b38,_0x3d98d1);return this[_0x1022a7(0x2ee)](_0x32d2f4);}[_0x3b20ce(0x1d5)](_0xc28578,_0x5f2625){const _0x5893de=_0x3b20ce,_0x197e64=typeof window>'u'?new URL(_0xc28578):new URL(_0xc28578,window[_0x5893de(0x22b)]['origin']);_0x197e64[_0x5893de(0x1fe)][_0x5893de(0x26a)]('sessionTicket',_0x5f2625);const _0x4da11a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5893de(0x22b)][_0x5893de(0x434)]);return _0x4da11a['get']('runId')&&_0x197e64['searchParams'][_0x5893de(0x26a)]('runId',_0x4da11a['get'](_0x5893de(0x1da))),_0x197e64[_0x5893de(0x3e9)]();}async[_0x3b20ce(0x1dc)](){const _0x4f2476=_0x3b20ce;var _0x4a2a29,_0x3d0720,_0x4629a6;const _0x456b0d=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3e1cae=(_0x4a2a29=_0x456b0d==null?void 0x0:_0x456b0d['wsSessionTicketUrl'])!=null?_0x4a2a29:u[_0x4f2476(0x395)];return(_0x4629a6=(_0x3d0720=(await this[_0x4f2476(0x442)][_0x4f2476(0x3ff)](_0x3e1cae,{'headers':{'Content-Type':_0x4f2476(0x2e3)}}))[_0x4f2476(0x40e)])==null?void 0x0:_0x3d0720[_0x4f2476(0x268)])!=null?_0x4629a6:'';}},exports[_0x3b20ce(0x238)]=ss([H(0x0,a[_0x3b20ce(0x282)](a['Injector'])),H(0x1,a[_0x3b20ce(0x282)](G['HTTPService'])),H(0x2,a[_0x3b20ce(0x341)]),H(0x3,a[_0x3b20ce(0x416)]),H(0x4,m[_0x3b20ce(0x1f9)])],exports[_0x3b20ce(0x238)]);const Me=0x7530,Le=_0x3b20ce(0x345);class is extends a[_0x3b20ce(0x214)]{constructor(){const _0x25862a=_0x3b20ce;super(),h(this,'_id',a[_0x25862a(0x2cb)]()),h(this,_0x25862a(0x273),new Set()),h(this,_0x25862a(0x3bd),new Map()),h(this,_0x25862a(0x3a6),null),h(this,_0x25862a(0x2e9),new Map()),h(this,'_unitStatus',new Map()),this[_0x25862a(0x3e1)]();}['dispose'](){const _0x574ed7=_0x3b20ce;super['dispose'](),this['_clearOtherTimers'][_0x574ed7(0x42b)]((_0x1d723b,_0x467075)=>this[_0x574ed7(0x3ce)](_0x467075)),this['_heartbeatTimer']&&window[_0x574ed7(0x35b)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1b6c40){const _0x3296fc=_0x3b20ce;return this[_0x3296fc(0x3a5)](_0x1b6c40)[_0x3296fc(0x32f)](d[_0x3296fc(0x39b)]());}[_0x3b20ce(0x1e8)](_0x9850e8){const _0x130130=_0x3b20ce;this[_0x130130(0x273)][_0x130130(0x2e4)]===0x0&&this[_0x130130(0x2bd)](),this[_0x130130(0x273)][_0x130130(0x43e)](_0x9850e8),this['_send']({'type':0x0,'memberID':this[_0x130130(0x20b)],'unitIDs':[_0x9850e8],'isForwarded':!0x1});}[_0x3b20ce(0x32e)](_0x8b7aae){const _0x5a335c=_0x3b20ce;this[_0x5a335c(0x273)][_0x5a335c(0x30b)](_0x8b7aae),this[_0x5a335c(0x273)][_0x5a335c(0x2e4)]===0x0&&this['_heartbeatTimer']&&window[_0x5a335c(0x35b)](this[_0x5a335c(0x3a6)]);}[_0x3b20ce(0x3e1)](){const _0x1868ca=_0x3b20ce;this[_0x1868ca(0x1c3)](a[_0x1868ca(0x31a)](d[_0x1868ca(0x1fa)](window,_0x1868ca(0x265))['subscribe'](_0x566313=>{const _0x25a767=_0x1868ca;if(_0x566313[_0x25a767(0x3cc)]!==Le||!_0x566313[_0x25a767(0x23d)])return;const _0x20de7a=JSON[_0x25a767(0x3fe)](_0x566313[_0x25a767(0x23d)]);this[_0x25a767(0x231)](_0x20de7a);}))),window[_0x1868ca(0x429)]('unload',()=>this[_0x1868ca(0x23e)]({'type':0x1,'memberID':this[_0x1868ca(0x20b)],'unitIDs':Array[_0x1868ca(0x213)](this['_selfUnitIDs'])}));}[_0x3b20ce(0x231)](_0x18f267){const _0x2e91e5=_0x3b20ce;switch(_0x18f267[_0x2e91e5(0x2e5)]){case 0x0:this[_0x2e91e5(0x25e)](_0x18f267);break;case 0x1:this[_0x2e91e5(0x2b4)](_0x18f267);break;case 0x2:this[_0x2e91e5(0x2db)](_0x18f267);break;}}[_0x3b20ce(0x25e)](_0x1a5b8d){const _0x1f1a49=_0x3b20ce,{unitIDs:_0x255625,memberID:_0x25ec51,isForwarded:_0x2fde2}=_0x1a5b8d;_0x255625[_0x1f1a49(0x42b)](_0x4811ea=>{const _0x47392b=_0x1f1a49;if(!_0x2fde2&&this[_0x47392b(0x3bd)][_0x47392b(0x2a0)](_0x4811ea)&&this[_0x47392b(0x3a5)](_0x4811ea)[_0x47392b(0x3c7)](u[_0x47392b(0x27f)][_0x47392b(0x2fd)]),!this[_0x47392b(0x3bd)][_0x47392b(0x2a0)](_0x4811ea)||!this['_unitOnClients'][_0x47392b(0x3ff)](_0x4811ea)[_0x47392b(0x2a0)](_0x25ec51)){const _0x3de0fb=this[_0x47392b(0x3bd)][_0x47392b(0x3ff)](_0x4811ea)||new Set();_0x3de0fb['add'](_0x25ec51),this[_0x47392b(0x3bd)][_0x47392b(0x26a)](_0x4811ea,_0x3de0fb),this[_0x47392b(0x364)](_0x25ec51);}}),_0x2fde2||this[_0x1f1a49(0x23e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1f1a49(0x273)]],'isForwarded':!0x0});}[_0x3b20ce(0x364)](_0x5e35c6){const _0x465fc1=_0x3b20ce;this[_0x465fc1(0x3ce)](_0x5e35c6);const _0x20532b=window[_0x465fc1(0x2ab)](()=>{const _0x112d06=_0x465fc1;this['_unitOnClients'][_0x112d06(0x42b)](_0x6755d0=>{const _0x5c3b87=_0x112d06;_0x6755d0[_0x5c3b87(0x30b)](_0x5e35c6);});},Me*0x2);this[_0x465fc1(0x2e9)][_0x465fc1(0x26a)](_0x5e35c6,_0x20532b);}[_0x3b20ce(0x3ce)](_0x48a3ff){const _0x10df65=_0x3b20ce;if(this['_clearOtherTimers'][_0x10df65(0x2a0)](_0x48a3ff)){const _0x2f41a1=this['_clearOtherTimers'][_0x10df65(0x3ff)](_0x48a3ff);_0x2f41a1&&window[_0x10df65(0x261)](_0x2f41a1),this[_0x10df65(0x2e9)]['set'](_0x48a3ff,null);}}[_0x3b20ce(0x2b4)](_0x2dfbdd){const _0x3377a0=_0x3b20ce,{memberID:_0x9bca76,unitIDs:_0xe425fc}=_0x2dfbdd;_0xe425fc[_0x3377a0(0x42b)](_0x2ff8d4=>{const _0x2edf50=_0x3377a0;var _0x257974;const _0x430c7b=this['_unitOnClients'][_0x2edf50(0x3ff)](_0x2ff8d4);_0x430c7b&&(_0x430c7b[_0x2edf50(0x30b)](_0x9bca76),(_0x257974=this[_0x2edf50(0x3a5)](_0x2ff8d4))==null||_0x257974[_0x2edf50(0x3c7)](_0x430c7b[_0x2edf50(0x2e4)]===0x0?u[_0x2edf50(0x27f)][_0x2edf50(0x205)]:u['UnitStatus'][_0x2edf50(0x2fd)]));}),this[_0x3377a0(0x3ce)](_0x9bca76);}[_0x3b20ce(0x2db)](_0x57b9e2){this['_scheduleClearOtherTimer'](_0x57b9e2['memberID']);}[_0x3b20ce(0x23e)](_0x48148d){const _0x85782f=_0x3b20ce;localStorage[_0x85782f(0x40b)](Le,JSON[_0x85782f(0x41b)](_0x48148d));}[_0x3b20ce(0x2bd)](){this['_heartbeatTimer']=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}[_0x3b20ce(0x3a5)](_0xf7586f){const _0x37f69a=_0x3b20ce;return this['_unitStatus'][_0x37f69a(0x2a0)](_0xf7586f)||this[_0x37f69a(0x2c8)][_0x37f69a(0x26a)](_0xf7586f,new d[(_0x37f69a(0x287))](u[_0x37f69a(0x27f)][_0x37f69a(0x205)])),this[_0x37f69a(0x2c8)][_0x37f69a(0x3ff)](_0xf7586f);}}var je=(_0x543f99=>(_0x543f99[_0x543f99[_0x3b20ce(0x31b)]=0x0]=_0x3b20ce(0x31b),_0x543f99[_0x543f99['OK']=0x1]='OK',_0x543f99[_0x543f99['INTERNAL_ERROR']=0x2]=_0x3b20ce(0x2fc),_0x543f99[_0x543f99[_0x3b20ce(0x292)]=0x3]=_0x3b20ce(0x292),_0x543f99[_0x543f99[_0x3b20ce(0x21b)]=0x4]=_0x3b20ce(0x21b),_0x543f99[_0x543f99[_0x3b20ce(0x37f)]=0x5]='UNAUTHENTICATED',_0x543f99[_0x543f99['ALREADY_EXISTS']=0x6]=_0x3b20ce(0x223),_0x543f99[_0x543f99[_0x3b20ce(0x31f)]=0x7]='INVALID_ARGUMENT',_0x543f99[_0x543f99[_0x3b20ce(0x343)]=0x8]='TOO_MANY_REQUESTS',_0x543f99[_0x543f99[_0x3b20ce(0x306)]=0x9]=_0x3b20ce(0x306),_0x543f99[_0x543f99['LOGIN_FAILED']=0xa]=_0x3b20ce(0x33e),_0x543f99[_0x543f99[_0x3b20ce(0x1c7)]=0xb]=_0x3b20ce(0x1c7),_0x543f99[_0x543f99[_0x3b20ce(0x1c8)]=0xc]=_0x3b20ce(0x1c8),_0x543f99[_0x543f99['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x543f99[_0x543f99[_0x3b20ce(0x2f0)]=0xe]=_0x3b20ce(0x2f0),_0x543f99[_0x543f99[_0x3b20ce(0x220)]=0x1389]=_0x3b20ce(0x220),_0x543f99[_0x543f99[_0x3b20ce(0x32c)]=0x1771]=_0x3b20ce(0x32c),_0x543f99[_0x543f99[_0x3b20ce(0x3aa)]=0x1772]=_0x3b20ce(0x3aa),_0x543f99[_0x543f99[_0x3b20ce(0x3f7)]=0x1773]=_0x3b20ce(0x3f7),_0x543f99[_0x543f99[_0x3b20ce(0x3f0)]=0x1b59]=_0x3b20ce(0x3f0),_0x543f99[_0x543f99[_0x3b20ce(0x337)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x543f99[_0x543f99[_0x3b20ce(0x307)]=0x1b5b]=_0x3b20ce(0x307),_0x543f99[_0x543f99['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3b20ce(0x3ae),_0x543f99[_0x543f99[_0x3b20ce(0x26f)]=0x1b5d]=_0x3b20ce(0x26f),_0x543f99[_0x543f99[_0x3b20ce(0x28e)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x543f99[_0x543f99[_0x3b20ce(0x2f6)]=0x2329]=_0x3b20ce(0x2f6),_0x543f99[_0x543f99[_0x3b20ce(0x313)]=0x232a]=_0x3b20ce(0x313),_0x543f99[_0x543f99[_0x3b20ce(0x3ea)]=0x232b]=_0x3b20ce(0x3ea),_0x543f99[_0x543f99[_0x3b20ce(0x260)]=0x232c]=_0x3b20ce(0x260),_0x543f99[_0x543f99[_0x3b20ce(0x3dd)]=0x232d]=_0x3b20ce(0x3dd),_0x543f99[_0x543f99[_0x3b20ce(0x278)]=0x2711]=_0x3b20ce(0x278),_0x543f99[_0x543f99['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3b20ce(0x417),_0x543f99[_0x543f99[_0x3b20ce(0x212)]=0x2713]=_0x3b20ce(0x212),_0x543f99[_0x543f99[_0x3b20ce(0x33b)]=0x2714]=_0x3b20ce(0x33b),_0x543f99[_0x543f99[_0x3b20ce(0x360)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x543f99[_0x543f99[_0x3b20ce(0x1b9)]=0x271b]=_0x3b20ce(0x1b9),_0x543f99[_0x543f99[_0x3b20ce(0x269)]=0x271c]=_0x3b20ce(0x269),_0x543f99[_0x543f99[_0x3b20ce(0x3c5)]=0x271d]=_0x3b20ce(0x3c5),_0x543f99[_0x543f99[_0x3b20ce(0x354)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x543f99[_0x543f99[_0x3b20ce(0x1bc)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x543f99[_0x543f99[_0x3b20ce(0x3a1)]=0x2720]=_0x3b20ce(0x3a1),_0x543f99[_0x543f99[_0x3b20ce(0x37d)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x543f99[_0x543f99[_0x3b20ce(0x257)]=0x2ee1]=_0x3b20ce(0x257),_0x543f99[_0x543f99[_0x3b20ce(0x419)]=0x2ee2]=_0x3b20ce(0x419),_0x543f99[_0x543f99[_0x3b20ce(0x425)]=0x2ee3]=_0x3b20ce(0x425),_0x543f99[_0x543f99['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x543f99[_0x543f99[_0x3b20ce(0x33a)]=0x2ee5]=_0x3b20ce(0x33a),_0x543f99[_0x543f99[_0x3b20ce(0x3ed)]=0x32c9]=_0x3b20ce(0x3ed),_0x543f99[_0x543f99[_0x3b20ce(0x294)]=0x32ca]=_0x3b20ce(0x294),_0x543f99[_0x543f99[_0x3b20ce(0x445)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x543f99[_0x543f99[_0x3b20ce(0x2ed)]=-0x1]=_0x3b20ce(0x2ed),_0x543f99))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x54972f,_0xef347c,_0x2fb3f3,_0x3886c9)=>{const _0x22e731=_0x3b20ce;for(var _0x36864=_0x3886c9>0x1?void 0x0:_0x3886c9?ns(_0xef347c,_0x2fb3f3):_0xef347c,_0x588f30=_0x54972f[_0x22e731(0x34f)]-0x1,_0x475adf;_0x588f30>=0x0;_0x588f30--)(_0x475adf=_0x54972f[_0x588f30])&&(_0x36864=_0x475adf(_0x36864)||_0x36864);return _0x36864;},ue=(_0x4de26a,_0x240e3d)=>(_0x13e0da,_0x570113)=>_0x240e3d(_0x13e0da,_0x570113,_0x4de26a);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x42cbae,_0x3ebef1,_0x3fa797){const _0x3a9293=_0x3b20ce;super(),this[_0x3a9293(0x35c)]=_0x42cbae,this[_0x3a9293(0x442)]=_0x3ebef1,this[_0x3a9293(0x396)]=_0x3fa797;}async['runOnServer'](_0x4db019,_0x2ae50e,_0x451489,..._0xa12990){const _0x2620ec=_0x3b20ce;var _0xcac8de,_0x1f13aa,_0x4834a3,_0x379407;const _0x4500ae=this[_0x2620ec(0x35c)][_0x2620ec(0x3b8)]();if(!_0x4500ae)throw new Error(_0x2620ec(0x3d5));const _0x2d7ca1=((_0xcac8de=this[_0x2620ec(0x396)][_0x2620ec(0x401)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0xcac8de:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x4db019+_0x2620ec(0x279)+_0x2ae50e,_0x2fe461=new URL(window[_0x2620ec(0x22b)]['href']),_0x1111ab={'scriptId':_0x4db019,'runId':(_0x1f13aa=_0x2fe461[_0x2620ec(0x1fe)]['get'](_0x2620ec(0x1da)))!=null?_0x1f13aa:'','function':_0x2ae50e,'unitId':_0x4500ae['getUnitId'](),'argsOfFunction':JSON[_0x2620ec(0x41b)](_0xa12990),'invokeId':(_0x4834a3=_0x451489[_0x2620ec(0x391)])!=null?_0x4834a3:'','executionId':(_0x379407=_0x451489['executionId'])!=null?_0x379407:''};try{const _0x56f4f8=await this[_0x2620ec(0x442)]['post'](_0x2d7ca1,{'body':_0x1111ab});return _0x56f4f8['body'][_0x2620ec(0x2ef)]&&_0x56f4f8[_0x2620ec(0x40e)][_0x2620ec(0x2ef)][_0x2620ec(0x36a)]!==je['OK']?_0x2620ec(0x350):_0x56f4f8[_0x2620ec(0x40e)][_0x2620ec(0x2e0)];}catch{return'Failed';}}},exports[_0x3b20ce(0x426)]=rs([ue(0x0,a[_0x3b20ce(0x317)]),ue(0x1,a[_0x3b20ce(0x282)](G[_0x3b20ce(0x430)])),ue(0x2,a['IConfigService'])],exports[_0x3b20ce(0x426)]),exports[_0x3b20ce(0x1e0)]=xe,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=we,exports[_0x3b20ce(0x28f)]=is,exports['WebURLService']=Be;