@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504261606 → 0.6.10-nightly.202504271606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
- package/lib/index.css +0 -1
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x399bcb=_0x566e;function _0x566e(_0x24b4f0,_0x2168ff){const _0x37bd16=_0x37bd();return _0x566e=function(_0x566edd,_0x296b5e){_0x566edd=_0x566edd-0x19d;let _0x26e80f=_0x37bd16[_0x566edd];return _0x26e80f;},_0x566e(_0x24b4f0,_0x2168ff);}function _0x37bd(){const _0x50f738=['10366670yfzOOl','6jfEKTa','@univerjs-pro/collaboration-client-ui','523578FvUFvX','11otgXCo','FUniver','4595ainSNT','891897pImuKK','get','extend','123650Ofmhcz','217260OsdtGS','440760imDPau','7Gxyjhd','@univerjs/core/facade','runOnServer','548togvyG'];_0x37bd=function(){return _0x50f738;};return _0x37bd();}(function(_0x411e9d,_0x2f3f7e){const _0x7bbe22=_0x566e,_0x5da478=_0x411e9d();while(!![]){try{const _0x35d76e=parseInt(_0x7bbe22(0x1a0))/0x1*(-parseInt(_0x7bbe22(0x1a8))/0x2)+-parseInt(_0x7bbe22(0x19d))/0x3+-parseInt(_0x7bbe22(0x1a6))/0x4*(parseInt(_0x7bbe22(0x1ad))/0x5)+-parseInt(_0x7bbe22(0x1aa))/0x6*(parseInt(_0x7bbe22(0x1a3))/0x7)+parseInt(_0x7bbe22(0x1a2))/0x8+-parseInt(_0x7bbe22(0x1a1))/0x9+parseInt(_0x7bbe22(0x1a7))/0xa*(parseInt(_0x7bbe22(0x1ab))/0xb);if(_0x35d76e===_0x2f3f7e)break;else _0x5da478['push'](_0x5da478['shift']());}catch(_0x335fae){_0x5da478['push'](_0x5da478['shift']());}}}(_0x37bd,0x2d75f));const t=require(_0x399bcb(0x1a9)),e=require(_0x399bcb(0x1a4));class c extends e[_0x399bcb(0x1ac)]{['runOnServer'](_0x4c604b,_0x1f3c16,..._0xff349a){const _0x2f3b20=_0x399bcb;return this['_injector'][_0x2f3b20(0x19e)](t['RemoteUniscriptService'])[_0x2f3b20(0x1a5)](_0x4c604b,_0x1f3c16,{},..._0xff349a);}}e['FUniver'][_0x399bcb(0x19f)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x532fcf=_0x4bf1;(function(_0x5da2ea,_0x5c371b){const _0x2deb91=_0x4bf1,_0x59c556=_0x5da2ea();while(!![]){try{const _0x1978a2=parseInt(_0x2deb91(0x19b))/0x1+-parseInt(_0x2deb91(0x1af))/0x2+-parseInt(_0x2deb91(0x1d7))/0x3*(-parseInt(_0x2deb91(0x210))/0x4)+parseInt(_0x2deb91(0x152))/0x5*(-parseInt(_0x2deb91(0x2de))/0x6)+-parseInt(_0x2deb91(0x358))/0x7*(-parseInt(_0x2deb91(0x258))/0x8)+-parseInt(_0x2deb91(0x360))/0x9*(parseInt(_0x2deb91(0x117))/0xa)+parseInt(_0x2deb91(0x278))/0xb*(parseInt(_0x2deb91(0x130))/0xc);if(_0x1978a2===_0x5c371b)break;else _0x59c556['push'](_0x59c556['shift']());}catch(_0x1dac0c){_0x59c556['push'](_0x59c556['shift']());}}}(_0x36f2,0xb8558));var Xe=Object['defineProperty'],Ge=(_0x7a56d2,_0x358d63,_0x180100)=>_0x358d63 in _0x7a56d2?Xe(_0x7a56d2,_0x358d63,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x180100}):_0x7a56d2[_0x358d63]=_0x180100,_=(_0x21a560,_0x4f90be,_0x4e084b)=>Ge(_0x21a560,typeof _0x4f90be!=_0x532fcf(0x331)?_0x4f90be+'':_0x4f90be,_0x4e084b);Object['defineProperty'](exports,Symbol[_0x532fcf(0x274)],{'value':_0x532fcf(0x272)});const u=require(_0x532fcf(0x2b4)),a=require(_0x532fcf(0x12c)),p=require(_0x532fcf(0x2a1)),q=require(_0x532fcf(0x1da)),b=require(_0x532fcf(0x2fd)),qe=require(_0x532fcf(0x151)),d=require(_0x532fcf(0x1ca)),Y=require(_0x532fcf(0x2a7)),m=require(_0x532fcf(0x174)),Te=require(_0x532fcf(0x25f)),g=require(_0x532fcf(0x27a)),$=require('rxjs/operators'),G=require(_0x532fcf(0x102)),P=require('react/jsx-runtime'),O=require(_0x532fcf(0x275)),T=require(_0x532fcf(0x1f3)),M=require('react'),Ke=require(_0x532fcf(0x165));var ze=Object[_0x532fcf(0x1c9)],Je=(_0x1e4944,_0x75e590,_0x4323a5,_0x2fdf03)=>{for(var _0x168af9=_0x2fdf03>0x1?void 0x0:_0x2fdf03?ze(_0x75e590,_0x4323a5):_0x75e590,_0x3e1870=_0x1e4944['length']-0x1,_0x478280;_0x3e1870>=0x0;_0x3e1870--)(_0x478280=_0x1e4944[_0x3e1870])&&(_0x168af9=_0x478280(_0x168af9)||_0x168af9);return _0x168af9;},Oe=(_0x4874d5,_0x3df28d)=>(_0x35ac24,_0x5eca4d)=>_0x3df28d(_0x35ac24,_0x5eca4d,_0x4874d5);let fe=class extends a[_0x532fcf(0x13f)]{constructor(_0x13a73d,_0xfbdca3){const _0x26e3f7=_0x532fcf;super(),this[_0x26e3f7(0x27c)]=_0x13a73d,this[_0x26e3f7(0x315)]=_0xfbdca3,this['_init']();}['_init'](){const _0xea83ce=_0x532fcf,_0x5c6b9d=this;this[_0xea83ce(0x35c)](this['_docClipboardService'][_0xea83ce(0x22b)]({'onBeforePasteImage':async _0xa530d=>{const _0x5da4fa=_0xea83ce,_0xd822e5=await _0x5c6b9d[_0x5da4fa(0x315)][_0x5da4fa(0x2f0)](_0xa530d);return _0xd822e5?{'source':_0xd822e5[_0x5da4fa(0x321)],'imageSourceType':_0xd822e5[_0x5da4fa(0x1c2)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x532fcf(0x148)]),Oe(0x1,qe[_0x532fcf(0x323)])],fe);const Re=[_0x532fcf(0x2fc),_0x532fcf(0x1ac),_0x532fcf(0x113),'red300','blue400',_0x532fcf(0x1f5)];class Ce extends a[_0x532fcf(0x160)]{constructor(){const _0x73e484=_0x532fcf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x73e484(0x2ee),0x0);}[_0x532fcf(0x2ff)](_0x337064){const _0xbba34a=_0x532fcf;if(this[_0xbba34a(0x246)][_0xbba34a(0x125)](_0x337064))return this[_0xbba34a(0x246)]['get'](_0x337064);const _0x2324cb=Re[this[_0xbba34a(0x2ee)]];return this[_0xbba34a(0x2ee)]=(this['_colorIndex']+0x1)%Re['length'],this[_0xbba34a(0x246)][_0xbba34a(0x208)](_0x337064,_0x2324cb),_0x2324cb;}}function we(_0x4dc1f1){const _0x5db828=_0x532fcf;let _0x5f4c5e='';for(const _0x52a9c8 of _0x4dc1f1){const {startOffset:_0x711e5b,endOffset:_0x3f129c,isActive:_0x2d7451,rangeType:_0x2345a0,segmentId:_0x1da6d5,segmentPage:_0x8aba4c}=_0x52a9c8;_0x5f4c5e[_0x5db828(0x212)]&&(_0x5f4c5e+=','),_0x5f4c5e+=_0x711e5b+':'+_0x3f129c+':'+(_0x2d7451?'1':'0')+':'+_0x2345a0+':'+_0x1da6d5+':'+_0x8aba4c;}return _0x5f4c5e;}function Ze(_0x1f5084){const _0x2be12d=_0x532fcf,_0x5940b5=_0x1f5084['split'](','),_0x4c580b=[];for(const _0x39e3b4 of _0x5940b5){const [_0x2aa1a4,_0x58a1a2,_0x1bdc84,_0x5cc19d,_0x22053e,_0x5d0992]=_0x39e3b4[_0x2be12d(0x34e)](':');_0x4c580b['push']({'startOffset':Number(_0x2aa1a4),'endOffset':Number(_0x58a1a2),'collapsed':_0x2aa1a4===_0x58a1a2,'isActive':_0x1bdc84==='1','rangeType':_0x5cc19d===a[_0x2be12d(0xf1)][_0x2be12d(0x2cf)]?a[_0x2be12d(0xf1)][_0x2be12d(0x2cf)]:a[_0x2be12d(0xf1)][_0x2be12d(0x250)],'segmentId':typeof _0x22053e=='string'?String(_0x22053e):'','segmentPage':Number(_0x5d0992!=null?_0x5d0992:-0x1)});}return _0x4c580b[_0x2be12d(0x177)](_0x1b9050=>_0x1b9050[_0x2be12d(0x353)])||(_0x4c580b[0x0][_0x2be12d(0x353)]=!0x0),_0x4c580b;}class pe extends a[_0x532fcf(0x13f)]{constructor(){const _0x4565e7=_0x532fcf;super(...arguments),_(this,_0x4565e7(0x2e0),new d[(_0x4565e7(0x325))](null)),_(this,_0x4565e7(0x2ec),this[_0x4565e7(0x2e0)][_0x4565e7(0x244)]());}[_0x532fcf(0x352)](_0x241ae0){const _0x171431=_0x532fcf,{unitID:_0x26a21f,memberID:_0x904bd0,textRanges:_0x103117}=_0x241ae0,_0x5caef4=we(_0x103117);if(_0x5caef4==='')return;const _0x558674={'unitID':_0x26a21f,'memberID':_0x904bd0,'selection':_0x5caef4};this[_0x171431(0x2e0)][_0x171431(0x28a)](_0x558674);}}var Qe=Object[_0x532fcf(0x1c9)],et=(_0xa87a4f,_0x323a97,_0x29e886,_0x2efbd7)=>{const _0x240824=_0x532fcf;for(var _0x3626b1=_0x2efbd7>0x1?void 0x0:_0x2efbd7?Qe(_0x323a97,_0x29e886):_0x323a97,_0x2412cb=_0xa87a4f[_0x240824(0x212)]-0x1,_0x2c9d2c;_0x2412cb>=0x0;_0x2412cb--)(_0x2c9d2c=_0xa87a4f[_0x2412cb])&&(_0x3626b1=_0x2c9d2c(_0x3626b1)||_0x3626b1);return _0x3626b1;},L=(_0x18352c,_0x164199)=>(_0x3d11e1,_0x331eb6)=>_0x164199(_0x3d11e1,_0x331eb6,_0x18352c);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0x2557d7,_0x3f49ff,_0x1baad6,_0x42b039,_0x2d40b6,_0x4e082f,_0x295a34,_0x2d3bf3,_0x2fa0c4){const _0x5d0556=_0x532fcf;super(),_(this,'_online',!0x1),_(this,_0x5d0556(0x281),!0x1),_(this,_0x5d0556(0xfc),new d[(_0x5d0556(0x325))](new Map())),_(this,_0x5d0556(0x312),this[_0x5d0556(0xfc)]['asObservable']()),_(this,_0x5d0556(0x133),new d[(_0x5d0556(0x325))]([])),_(this,_0x5d0556(0xfd),this[_0x5d0556(0x133)][_0x5d0556(0x172)](d[_0x5d0556(0x18b)](tt))),_(this,_0x5d0556(0x167),a[_0x5d0556(0x297)](_0x1d4eac=>{const _0x2c103c=_0x5d0556,_0x21c08a={'eventID':m[_0x2c103c(0x273)][_0x2c103c(0x356)],'data':{'unitID':this[_0x2c103c(0x21b)],'memberID':this[_0x2c103c(0x1f9)][_0x2c103c(0x2f5)](),'selection':we(_0x1d4eac)}};this['_session']['send'](_0x21c08a,this[_0x2c103c(0x21b)]);},st)),(this['unitID']=_0x2557d7,this[_0x5d0556(0x1f9)]=_0x3f49ff,this[_0x5d0556(0x20b)]=_0x1baad6,this[_0x5d0556(0x2d5)]=_0x42b039,this[_0x5d0556(0x12d)]=_0x2d40b6,this['_syncEditingCollabCursorService']=_0x4e082f,this[_0x5d0556(0x14a)]=_0x295a34,this[_0x5d0556(0x183)]=_0x2d3bf3,this[_0x5d0556(0x2b7)]=_0x2fa0c4);}get[_0x532fcf(0x1a3)](){const _0x33e3d3=_0x532fcf;return this[_0x33e3d3(0xfc)][_0x33e3d3(0x361)]();}get[_0x532fcf(0x284)](){const _0x4689bc=_0x532fcf;return this[_0x4689bc(0x133)][_0x4689bc(0x361)]();}[_0x532fcf(0x137)](){const _0x5a4de3=_0x532fcf;super['dispose'](),this[_0x5a4de3(0xfc)]['next'](new Map()),this['_cursorInfo$'][_0x5a4de3(0x347)](),this[_0x5a4de3(0x133)][_0x5a4de3(0x28a)]([]),this[_0x5a4de3(0x133)]['complete']();}[_0x532fcf(0x205)](){const _0x489479=_0x532fcf;this[_0x489479(0x281)]||(this['_init']=!0x0,this['_session'][_0x489479(0x1aa)]['pipe'](d[_0x489479(0x2a5)](this['dispose$']))[_0x489479(0x1ce)](_0xec2892=>{const _0x3fd9e7=_0x489479;_0xec2892===u[_0x3fd9e7(0x36f)][_0x3fd9e7(0x227)]?this[_0x3fd9e7(0x18e)]():this[_0x3fd9e7(0x17b)]();}),this[_0x489479(0x1f9)][_0x489479(0xf9)][_0x489479(0x172)](d[_0x489479(0x2a5)](this[_0x489479(0x147)]))['subscribe'](_0x3aa622=>{const _0x2d34bc=_0x489479,_0x3b1db8=_0x3aa622[_0x2d34bc(0x294)];_0x3b1db8===m[_0x2d34bc(0x273)][_0x2d34bc(0x356)]&&this['_onCursorUpdate'](_0x3aa622),_0x3b1db8===m['CollaborationEvent'][_0x2d34bc(0x157)]&&this[_0x2d34bc(0x23d)](_0x3aa622);}),this['disposeWithMe'](this[_0x489479(0x2b7)][_0x489479(0x1e3)](_0x4d2fa8=>{const _0x4ca485=_0x489479,_0x2540e1=_0x4d2fa8[_0x4ca485(0x222)];_0x2540e1!=null&&this['_online']&&_0x4d2fa8['id']===Y[_0x4ca485(0x18a)]['id']&&_0x2540e1[_0x4ca485(0x26e)]===this[_0x4ca485(0x21b)]&&_0x2540e1['isEditing']===!0x1&&_0x2540e1[_0x4ca485(0x1b2)]['length']>0x0&&this['_updateLocalCursor'](_0x2540e1[_0x4ca485(0x1b2)]);})),this[_0x489479(0x369)][_0x489479(0x2ec)]['pipe'](d[_0x489479(0x2a5)](this['dispose$']))[_0x489479(0x1ce)](_0x5e640b=>{const _0x3e796e=_0x489479;if((_0x5e640b==null?void 0x0:_0x5e640b[_0x3e796e(0x21b)])!==this['unitID'])return;const _0x469e7e={'eventID':m[_0x3e796e(0x273)][_0x3e796e(0x356)],'data':_0x5e640b};this[_0x3e796e(0x2df)](_0x469e7e);}),this[_0x489479(0x35c)](this[_0x489479(0x2b7)][_0x489479(0x1e3)](_0x3e6908=>{const _0x51d8cd=_0x489479;if(_0x3e6908[_0x51d8cd(0x222)]==null)return;const _0x34b4c8=_0x3e6908['params'];if(_0x3e6908['id']!==Y[_0x51d8cd(0x1ab)]['id']||_0x34b4c8[_0x51d8cd(0x26e)]!==this[_0x51d8cd(0x21b)])return;const _0x499b41={'id':'doc.mutation.rich-text-editing','params':_0x34b4c8},_0x4e8780=this[_0x51d8cd(0x1a3)];for(const [_0x509ceb,_0x589b8a]of _0x4e8780){const _0x56abed={'id':_0x51d8cd(0x270),'params':{'unitId':this[_0x51d8cd(0x21b)],'actions':null,'textRanges':_0x589b8a['ranges']}},_0x4f3a07=this[_0x51d8cd(0x14a)][_0x51d8cd(0x129)](_0x499b41,_0x56abed,!0x1);if(m[_0x51d8cd(0x14b)](_0x4f3a07))throw _0x4f3a07[_0x51d8cd(0x1f6)];_0x4e8780[_0x51d8cd(0x208)](_0x509ceb,{..._0x589b8a,'ranges':_0x4f3a07[_0x51d8cd(0x362)][_0x51d8cd(0x222)][_0x51d8cd(0x2c7)]});}queueMicrotask(()=>{const _0x3ddffb=_0x51d8cd;this[_0x3ddffb(0xfc)][_0x3ddffb(0x28a)](_0x4e8780);});})));}[_0x532fcf(0x2df)](_0x12e69b){const _0x234e57=_0x532fcf;var _0x5e829d,_0x5b5b6c;const {memberID:_0x3eddaa,selection:_0x1f3181}=_0x12e69b['data'],_0x4afd5c=Ze(_0x1f3181),_0x4d085a=(_0x5b5b6c=(_0x5e829d=this[_0x234e57(0x12d)][_0x234e57(0x22f)](this[_0x234e57(0x21b)],_0x3eddaa))==null?void 0x0:_0x5e829d['name'])!=null?_0x5b5b6c:_0x234e57(0x291),_0x1bd340={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3eddaa),'name':_0x4d085a,'ranges':_0x4afd5c},_0x545fc3=this[_0x234e57(0x1a3)];_0x545fc3[_0x234e57(0x208)](_0x3eddaa,_0x1bd340),this['_cursorInfo$']['next'](_0x545fc3);}['_onCursorDelete'](_0x2c1e52){const _0x280ec9=_0x532fcf,{memberID:_0x16a0f0}=_0x2c1e52[_0x280ec9(0x364)],_0xaafad0=this[_0x280ec9(0x1a3)];_0xaafad0[_0x280ec9(0x2a3)](_0x16a0f0),this['_cursorInfo$'][_0x280ec9(0x28a)](_0xaafad0);}[_0x532fcf(0x18e)](){const _0x44886a=_0x532fcf;var _0x2664d3;if(this[_0x44886a(0x267)]=!0x0,((_0x2664d3=this[_0x44886a(0x183)][_0x44886a(0x20e)]())==null?void 0x0:_0x2664d3['getUnitId']())!==this[_0x44886a(0x21b)])return;const _0x15d255=this[_0x44886a(0x20b)][_0x44886a(0x2b0)](Y[_0x44886a(0x136)])[_0x44886a(0x263)]();Array[_0x44886a(0x10b)](_0x15d255)&&_0x15d255[_0x44886a(0x212)]>0x0&&this[_0x44886a(0x167)](_0x15d255);}[_0x532fcf(0x17b)](){const _0x16a75c=_0x532fcf;this[_0x16a75c(0x267)]=!0x1;}};Se=et([L(0x2,a['Inject'](a[_0x532fcf(0x282)])),L(0x3,a[_0x532fcf(0x2ce)](Ce)),L(0x4,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x145)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x532fcf(0x17d)]),L(0x7,a[_0x532fcf(0x149)]),L(0x8,a[_0x532fcf(0x355)])],Se);var nt=Object[_0x532fcf(0x1c9)],it=(_0x55eed,_0x1c61e8,_0x1bed0e,_0x403862)=>{for(var _0x18e107=_0x403862>0x1?void 0x0:_0x403862?nt(_0x1c61e8,_0x1bed0e):_0x1c61e8,_0x3cdba8=_0x55eed['length']-0x1,_0x2bbd7c;_0x3cdba8>=0x0;_0x3cdba8--)(_0x2bbd7c=_0x55eed[_0x3cdba8])&&(_0x18e107=_0x2bbd7c(_0x18e107)||_0x18e107);return _0x18e107;},A=(_0x25028a,_0x3fa58f)=>(_0x9d6402,_0x50cb84)=>_0x3fa58f(_0x9d6402,_0x50cb84,_0x25028a);const rt=0x12c,ot=0x64,at=()=>{let _0x5437fd=[],_0x4d2d3a=!0x1;return _0x5a1d6f=>{const _0x38a004=_0x4bf1;_0x5437fd[_0x38a004(0x2e2)](_0x5a1d6f),_0x4d2d3a||(_0x4d2d3a=!0x0,setTimeout(()=>{_0x5437fd['forEach'](_0x317ea5=>_0x317ea5()),_0x5437fd=[],_0x4d2d3a=!0x1;}));};};let Ie=class extends a[_0x532fcf(0x13f)]{constructor(_0x6eaeec,_0xa99cdf,_0x42b368,_0x41c74e,_0x250adf,_0x160dec,_0x10870c,_0xae96d0){const _0xcbe8de=_0x532fcf;super(),_(this,_0xcbe8de(0x267),!0x1),_(this,_0xcbe8de(0x281),!0x1),_(this,_0xcbe8de(0xfc),new d[(_0xcbe8de(0x325))](new Map())),_(this,'cursorInfo$',this[_0xcbe8de(0xfc)][_0xcbe8de(0x244)]()),_(this,_0xcbe8de(0x133),new d[(_0xcbe8de(0x325))]([])),_(this,_0xcbe8de(0xfd),this['_roomMembers$'][_0xcbe8de(0x172)](d[_0xcbe8de(0x18b)](rt))),_(this,_0xcbe8de(0x167),a[_0xcbe8de(0x297)]((_0x223ef6,_0x315985)=>{const _0x384af9=_0xcbe8de,_0x3b1bb1={'eventID':m[_0x384af9(0x273)][_0x384af9(0x356)],'data':{'unitID':this[_0x384af9(0x21b)],'memberID':this[_0x384af9(0x1f9)][_0x384af9(0x2f5)](),'selection':Te['serializeRangeWithSheet'](_0x223ef6,_0x315985[_0x384af9(0x2b2)])}};this[_0x384af9(0x1f9)][_0x384af9(0x2bb)](_0x3b1bb1,this[_0x384af9(0x21b)]);},ot)),(this[_0xcbe8de(0x21b)]=_0x6eaeec,this['_session']=_0xa99cdf,this[_0xcbe8de(0x20b)]=_0x42b368,this['_colorAssignService']=_0x41c74e,this[_0xcbe8de(0x12d)]=_0x250adf,this[_0xcbe8de(0x183)]=_0x160dec,this[_0xcbe8de(0x2b7)]=_0x10870c,this[_0xcbe8de(0x241)]=_0xae96d0);}get[_0x532fcf(0x1a3)](){const _0xa8d783=_0x532fcf;return this[_0xa8d783(0xfc)][_0xa8d783(0x361)]();}get[_0x532fcf(0x284)](){const _0x58f739=_0x532fcf;return this['_roomMembers$'][_0x58f739(0x361)]();}[_0x532fcf(0x137)](){const _0x3c4d60=_0x532fcf;super[_0x3c4d60(0x137)](),this[_0x3c4d60(0xfc)][_0x3c4d60(0x28a)](new Map()),this[_0x3c4d60(0xfc)][_0x3c4d60(0x347)](),this[_0x3c4d60(0x133)][_0x3c4d60(0x28a)]([]),this[_0x3c4d60(0x133)][_0x3c4d60(0x347)]();}[_0x532fcf(0x205)](){const _0x3c2dfb=_0x532fcf;this[_0x3c2dfb(0x281)]||(this['_init']=!0x0,this[_0x3c2dfb(0x1f9)]['sessionStatus$'][_0x3c2dfb(0x172)](d['takeUntil'](this[_0x3c2dfb(0x147)]))[_0x3c2dfb(0x1ce)](_0x3884ed=>{const _0x17174d=_0x3c2dfb;_0x3884ed===u[_0x17174d(0x36f)][_0x17174d(0x227)]?this[_0x17174d(0x18e)]():this[_0x17174d(0x17b)]();}),this[_0x3c2dfb(0x1f9)][_0x3c2dfb(0xf9)][_0x3c2dfb(0x172)](d[_0x3c2dfb(0x2a5)](this['dispose$']))['subscribe'](_0xca1c9c=>{const _0xbd4b40=_0x3c2dfb,_0x811010=_0xca1c9c[_0xbd4b40(0x294)];_0x811010===m[_0xbd4b40(0x273)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xca1c9c),_0x811010===m[_0xbd4b40(0x273)]['USERS_LEAVE']&&this[_0xbd4b40(0x23d)](_0xca1c9c);}),this[_0x3c2dfb(0x214)](),this[_0x3c2dfb(0x35c)](this['_commandService']['onCommandExecuted'](_0x139743=>{const _0x1e7d84=_0x3c2dfb;if(this[_0x1e7d84(0x267)]&&_0x139743['id']===g[_0x1e7d84(0x28d)]['id']&&_0x139743[_0x1e7d84(0x222)]['unitId']===this[_0x1e7d84(0x21b)]){const _0x2db897=_0x139743[_0x1e7d84(0x222)];this['_updateLocalCursor'](_0x2db897[_0x1e7d84(0x24e)],_0x2db897['selections'][0x0]);}})));}['_onCursorUpdate'](_0x21d266){const _0x4748a5=_0x532fcf;var _0x35d77e,_0x2a05d3;const {memberID:_0x3ec2bc,selection:_0xbf296}=_0x21d266[_0x4748a5(0x364)],{sheetName:_0x2b00af,range:_0x11ae06}=Te[_0x4748a5(0x313)](_0xbf296),_0x58d928={'name':(_0x2a05d3=(_0x35d77e=this[_0x4748a5(0x12d)][_0x4748a5(0x22f)](this[_0x4748a5(0x21b)],_0x3ec2bc))==null?void 0x0:_0x35d77e[_0x4748a5(0x240)])!=null?_0x2a05d3:_0x4748a5(0x291),'range':this[_0x4748a5(0x23b)](_0x2b00af,_0x11ae06),'sheetID':_0x2b00af,'color':this['_colorAssignService'][_0x4748a5(0x2ff)](_0x3ec2bc),'selection':_0xbf296},_0x13d0b8=this[_0x4748a5(0x1a3)];_0x13d0b8[_0x4748a5(0x208)](_0x3ec2bc,_0x58d928),this[_0x4748a5(0xfc)][_0x4748a5(0x28a)](_0x13d0b8);}[_0x532fcf(0x23d)](_0xa71692){const _0x1d96f6=_0x532fcf,{memberID:_0x570042}=_0xa71692[_0x1d96f6(0x364)],_0x36393a=this[_0x1d96f6(0x1a3)];_0x36393a[_0x1d96f6(0x2a3)](_0x570042),this[_0x1d96f6(0xfc)][_0x1d96f6(0x28a)](_0x36393a);}[_0x532fcf(0x23b)](_0x574f11,_0x2ce968){const _0x3013a8=_0x532fcf;var _0x24274b,_0x30dbdb;const _0x8570ba=(_0x30dbdb=(_0x24274b=this[_0x3013a8(0x183)][_0x3013a8(0x36d)](this[_0x3013a8(0x21b)]))==null?void 0x0:_0x24274b[_0x3013a8(0xf3)](_0x574f11))==null?void 0x0:_0x30dbdb[_0x3013a8(0x206)]();return(_0x8570ba==null?void 0x0:_0x8570ba[_0x3013a8(0x14c)](_0x684ca6=>a['Rectangle'][_0x3013a8(0x1a4)](_0x684ca6,_0x2ce968)))||_0x2ce968;}[_0x532fcf(0x214)](){const _0x459bc9=_0x532fcf,_0x4739c3=new a[(_0x459bc9(0x1a7))](),_0x7250a7=at(),_0x5a786e=()=>{const _0x259ee4=_0x459bc9;_0x4739c3[_0x259ee4(0x137)]();const _0x920b=(_0x2b595d,_0x4a0005,_0x23abd1,_0x1b5924)=>{const _0x912d73=_0x259ee4;let _0x3d4310=[];switch(_0x2b595d['id']){case g['EffectRefRangId'][_0x912d73(0x1c6)]:{_0x3d4310=g[_0x912d73(0x311)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x36b)]:{_0x3d4310=g[_0x912d73(0x163)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x343)]:{_0x3d4310=g['handleInsertCol'](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x111)]:{_0x3d4310=g[_0x912d73(0x16b)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x29e)]:{_0x3d4310=g[_0x912d73(0x25e)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x24c)]:{_0x3d4310=g['handleInsertRow'](_0x2b595d,_0x1b5924);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0x3d4310=g[_0x912d73(0x170)](_0x2b595d,_0x1b5924);break;}case g['EffectRefRangId'][_0x912d73(0x288)]:{_0x3d4310=g['handleIRemoveCol'](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x2d1)]:{_0x3d4310=g[_0x912d73(0x2a0)](_0x2b595d,_0x1b5924);break;}}const _0x48f812=g['runRefRangeMutations'](_0x3d4310,_0x1b5924),_0x2ce49f=this[_0x912d73(0x1a3)][_0x912d73(0x2b0)](_0x4a0005);if(_0x2ce49f&&_0x48f812){const _0x8f4a83={..._0x2ce49f,'range':_0x48f812};this['cursorInfo'][_0x912d73(0x208)](_0x4a0005,_0x8f4a83),_0x7250a7(()=>{const _0x42beb9=_0x912d73,_0x3b398d=this[_0x42beb9(0x241)][_0x42beb9(0x20a)](_0x48f812,_0x54e031=>(_0x3b398d[_0x42beb9(0x137)](),_0x920b(_0x54e031,_0x4a0005,_0x23abd1,_0x48f812)));_0x4739c3[_0x42beb9(0x10a)](_0x3b398d);});}return{'redos':[],'undos':[]};};this[_0x259ee4(0x1a3)][_0x259ee4(0x344)]((_0x4eb8cd,_0x4dbe68)=>{const _0x380cf1=_0x259ee4,{range:_0x14c40e,sheetID:_0x4e6477}=_0x4eb8cd,_0x2928d4=this[_0x380cf1(0x241)][_0x380cf1(0x20a)](_0x14c40e,_0x10087d=>(_0x2928d4['dispose'](),_0x920b(_0x10087d,_0x4dbe68,_0x4e6477,_0x14c40e)));_0x4739c3[_0x380cf1(0x10a)](_0x2928d4);});};this[_0x459bc9(0x35c)](a['toDisposable'](this[_0x459bc9(0xfc)][_0x459bc9(0x1ce)](()=>{_0x5a786e();})));}[_0x532fcf(0x18e)](){const _0x249337=_0x532fcf;var _0x2e3f61,_0x17a0df;if(this[_0x249337(0x267)]=!0x0,((_0x2e3f61=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2e3f61['getUnitId']())!==this['unitID'])return;const _0x3264d7=(_0x17a0df=this[_0x249337(0x20b)]['get'](g['SheetsSelectionsService'])[_0x249337(0x2c8)]())==null?void 0x0:_0x17a0df[0x0],_0x411297=this[_0x249337(0x183)][_0x249337(0x1eb)](a[_0x249337(0x296)]['UNIVER_SHEET'])[_0x249337(0x2d8)]();_0x3264d7&&_0x411297&&this[_0x249337(0x167)](_0x411297['getSheetId'](),_0x3264d7);}['_toggleOffline'](){const _0xd116a4=_0x532fcf;this[_0xd116a4(0x267)]=!0x1;}};Ie=it([A(0x2,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),A(0x3,a[_0x532fcf(0x2ce)](Ce)),A(0x4,a[_0x532fcf(0x2ce)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x532fcf(0x355)]),A(0x7,a['Inject'](g[_0x532fcf(0x1f8)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x500b18,_0x31ba8f,_0x5cf290,_0x3159c5)=>{const _0x1ddfea=_0x532fcf;for(var _0x5dd0dc=_0x3159c5>0x1?void 0x0:_0x3159c5?ct(_0x31ba8f,_0x5cf290):_0x31ba8f,_0x15fb05=_0x500b18[_0x1ddfea(0x212)]-0x1,_0x122cfe;_0x15fb05>=0x0;_0x15fb05--)(_0x122cfe=_0x500b18[_0x15fb05])&&(_0x5dd0dc=_0x122cfe(_0x5dd0dc)||_0x5dd0dc);return _0x5dd0dc;},ie=(_0x22c2dc,_0x1254be)=>(_0xe3e10d,_0x249ffd)=>_0x1254be(_0xe3e10d,_0x249ffd,_0x22c2dc);let x=class extends a[_0x532fcf(0x13f)]{constructor(_0x155c5b,_0x3456cb,_0x3f8baa){const _0x56d46b=_0x532fcf;super(),_(this,_0x56d46b(0x128),new Map()),_(this,_0x56d46b(0x301),new d[(_0x56d46b(0x176))]()),(this[_0x56d46b(0x183)]=_0x155c5b,this['_injector']=_0x3456cb,this[_0x56d46b(0x1a6)]=_0x3f8baa,this[_0x56d46b(0x281)]());}['dispose'](){const _0x4a6b09=_0x532fcf;super[_0x4a6b09(0x137)](),this[_0x4a6b09(0x301)][_0x4a6b09(0x347)](),this[_0x4a6b09(0x128)][_0x4a6b09(0x344)](_0x58c127=>_0x58c127['dispose']());}[_0x532fcf(0xf5)](_0x37f010){const _0x554815=_0x532fcf;return this[_0x554815(0x128)][_0x554815(0x125)](_0x37f010)?this[_0x554815(0x128)][_0x554815(0x2b0)](_0x37f010)[_0x554815(0x312)]:this[_0x554815(0x301)][_0x554815(0x172)](d['filter'](_0x4ce09b=>_0x4ce09b[_0x554815(0x21b)]===_0x37f010),d[_0x554815(0x217)](_0x3cb2b4=>_0x3cb2b4[_0x554815(0x312)]));}[_0x532fcf(0x281)](){const _0x49bb0d=_0x532fcf;this['_univerInstanceService'][_0x49bb0d(0x155)](a[_0x49bb0d(0x296)]['UNIVER_SHEET'])['pipe'](d[_0x49bb0d(0x2a5)](this[_0x49bb0d(0x147)]))[_0x49bb0d(0x1ce)](async _0x12af0f=>{const _0x249b51=_0x49bb0d,_0xaa6cb0=_0x12af0f[_0x249b51(0x1d6)](),_0x46384e=await this[_0x249b51(0x30b)](_0xaa6cb0);this[_0x249b51(0x301)][_0x249b51(0x28a)](_0x46384e),this['_entities'][_0x249b51(0x208)](_0xaa6cb0,_0x46384e);}),this[_0x49bb0d(0x183)]['getTypeOfUnitAdded$'](a[_0x49bb0d(0x296)][_0x49bb0d(0x2a4)])[_0x49bb0d(0x172)](d['takeUntil'](this[_0x49bb0d(0x147)]))['pipe'](d[_0x49bb0d(0x181)](_0x32cb3=>!_0x32cb3['getUnitId']()[_0x49bb0d(0x1db)]('__')))[_0x49bb0d(0x1ce)](async _0x5acf89=>{const _0x169ebe=_0x49bb0d,_0x24c4df=_0x5acf89[_0x169ebe(0x1d6)](),_0x8fdb32=await this[_0x169ebe(0x2f4)](_0x24c4df);this[_0x169ebe(0x301)][_0x169ebe(0x28a)](_0x8fdb32),this[_0x169ebe(0x128)][_0x169ebe(0x208)](_0x24c4df,_0x8fdb32);}),d[_0x49bb0d(0x2fe)](this['_univerInstanceService'][_0x49bb0d(0x2c2)](a[_0x49bb0d(0x296)][_0x49bb0d(0x2a4)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x49bb0d(0x296)][_0x49bb0d(0x196)]))[_0x49bb0d(0x172)](d[_0x49bb0d(0x2a5)](this['dispose$']))['subscribe'](_0x476c3c=>{const _0xbf7e29=_0x49bb0d,_0x1bc5ee=_0x476c3c['getUnitId'](),_0x2bbda4=this[_0xbf7e29(0x128)][_0xbf7e29(0x2b0)](_0x1bc5ee);_0x2bbda4&&(_0x2bbda4[_0xbf7e29(0x137)](),this[_0xbf7e29(0x128)][_0xbf7e29(0x2a3)](_0x1bc5ee));});}async['_startSheetCollabCursor'](_0x39d9c3){const _0x3c0149=_0x532fcf,_0x41cc3e=await this[_0x3c0149(0x1a6)][_0x3c0149(0x22a)](_0x39d9c3),_0x18608a=this[_0x3c0149(0x20b)][_0x3c0149(0x322)](Ie,_0x39d9c3,_0x41cc3e);return _0x18608a[_0x3c0149(0x205)](),_0x18608a;}async[_0x532fcf(0x2f4)](_0x241337){const _0x2114a3=_0x532fcf,_0x3f63ea=await this[_0x2114a3(0x1a6)][_0x2114a3(0x22a)](_0x241337),_0x1def79=this[_0x2114a3(0x20b)][_0x2114a3(0x322)](Se,_0x241337,_0x3f63ea);return _0x1def79[_0x2114a3(0x205)](),_0x1def79;}};x=lt([ie(0x0,a[_0x532fcf(0x149)]),ie(0x1,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),ie(0x2,a['Inject'](u[_0x532fcf(0x236)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x3e7d8a,_0x1afade){const _0x19148d=_0x532fcf;let {radius:_0x38932a,width:_0xfe5590,height:_0x4da2d3}=_0x1afade;_0x38932a=_0x38932a!=null?_0x38932a:0x0,_0xfe5590=_0xfe5590!=null?_0xfe5590:0x1e,_0x4da2d3=_0x4da2d3!=null?_0x4da2d3:0x1e;let _0x297eb7=0x0,_0x18c1fd=0x0,_0x5a9f80=0x0;_0x297eb7=_0x18c1fd=_0x5a9f80=Math[_0x19148d(0x35a)](_0x38932a,_0xfe5590/0x2,_0x4da2d3/0x2),_0x3e7d8a[_0x19148d(0x29c)](),_0x3e7d8a[_0x19148d(0x10d)](_0x297eb7,0x0),_0x3e7d8a[_0x19148d(0x12b)](_0xfe5590-_0x18c1fd,0x0),_0x3e7d8a['arc'](_0xfe5590-_0x18c1fd,_0x18c1fd,_0x18c1fd,Math['PI']*0x3/0x2,0x0,!0x1),_0x3e7d8a[_0x19148d(0x12b)](_0xfe5590,_0x4da2d3-_0x5a9f80),_0x3e7d8a[_0x19148d(0x100)](_0xfe5590-_0x5a9f80,_0x4da2d3-_0x5a9f80,_0x5a9f80,0x0,Math['PI']/0x2,!0x1),_0x3e7d8a[_0x19148d(0x12b)](0x0,_0x4da2d3),_0x3e7d8a[_0x19148d(0x12b)](0x0,_0x297eb7),_0x3e7d8a[_0x19148d(0x100)](_0x297eb7,_0x297eb7,_0x297eb7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3e7d8a[_0x19148d(0x16f)](),_0x1afade[_0x19148d(0x150)]&&(_0x3e7d8a[_0x19148d(0x1e1)](),_0x3e7d8a[_0x19148d(0x26f)]=_0x1afade[_0x19148d(0x150)],_0x1afade['fillRule']==='evenodd'?_0x3e7d8a[_0x19148d(0x150)](_0x19148d(0x326)):_0x3e7d8a[_0x19148d(0x150)](),_0x3e7d8a[_0x19148d(0x1d2)]());}class te extends p[_0x532fcf(0x1c1)]{constructor(_0x276e7c,_0x3a0f94){const _0x4ee3dc=_0x532fcf;super(_0x276e7c,_0x3a0f94),_(this,_0x4ee3dc(0x132)),_(this,'text'),(this[_0x4ee3dc(0x132)]=_0x3a0f94==null?void 0x0:_0x3a0f94[_0x4ee3dc(0x132)],this[_0x4ee3dc(0x27b)]=_0x3a0f94==null?void 0x0:_0x3a0f94['text']);}static[_0x532fcf(0x194)](_0x2be765,_0xff433b){const _0xd6ab82=_0x532fcf,{text:_0x28a5e1,color:_0x2d8b60}=_0xff433b;_0x2be765[_0xd6ab82(0x1e1)](),_0x2be765['font']=_0xd6ab82(0x122);const _0x4efa26=_0x2be765[_0xd6ab82(0x1d9)](_0x28a5e1)[_0xd6ab82(0x309)],_0x4bc021=Math[_0xd6ab82(0x35a)](_0x4efa26+0x2*re,De);ht(_0x2be765,{'height':K,'radius':0x4,'width':_0x4bc021,'fill':_0x2d8b60}),_0x2be765[_0xd6ab82(0x26f)]=_0xd6ab82(0x182);const _0x3332de=re,_0x2fba90=K-_t,_0x25f520=De-0x2*re;if(_0x4efa26>_0x25f520){let _0x134fea='',_0x20faac=0x0;for(const _0x447cf3 of _0x28a5e1){const _0x345e2b=_0x2be765[_0xd6ab82(0x1d9)](_0x447cf3)['width'];if(_0x20faac+_0x345e2b<=_0x25f520-_0x2be765[_0xd6ab82(0x1d9)](_0xd6ab82(0x279))[_0xd6ab82(0x309)])_0x134fea+=_0x447cf3,_0x20faac+=_0x345e2b;else{_0x134fea+=_0xd6ab82(0x279);break;}}_0x2be765[_0xd6ab82(0x26a)](_0x134fea,_0x3332de,_0x2fba90);}else _0x2be765['fillText'](_0x28a5e1,_0x3332de,_0x2fba90);_0x2be765[_0xd6ab82(0x1d2)]();}['_draw'](_0x762973){te['drawWith'](_0x762973,this);}}const oe=_0x532fcf(0x33a),ut=_0x532fcf(0x228),dt=_0x532fcf(0x34f),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x532fcf(0x17a);class Ue{constructor(_0x4454b9,_0x1c57a2,_0x622f0,_0x2decf4){const _0x1b3858=_0x532fcf;_(this,'_shapes',[]),_(this,_0x1b3858(0x28c),null),_(this,_0x1b3858(0x293),null),_(this,_0x1b3858(0x1ed),null),_(this,_0x1b3858(0x1c4),null),_(this,_0x1b3858(0x249),null),(this[_0x1b3858(0xe7)]=_0x4454b9,this[_0x1b3858(0x123)]=_0x1c57a2,this['_docSkeleton']=_0x622f0,this[_0x1b3858(0x18f)]=_0x2decf4,this[_0x1b3858(0x1be)]());}set[_0x532fcf(0x124)](_0x1bd964){const _0x56395b=_0x532fcf;_0x1bd964?(this[_0x56395b(0x1ed)]&&this['_anchorDot'][_0x56395b(0x1c5)](),this[_0x56395b(0x293)]&&this[_0x56395b(0x293)]['show']()):(this[_0x56395b(0x1ed)]&&this['_anchorDot'][_0x56395b(0x1c7)](),this[_0x56395b(0x293)]&&this[_0x56395b(0x293)][_0x56395b(0x1c5)]());}['dispose'](){const _0x34750f=_0x532fcf;for(const _0x259e05 of this[_0x34750f(0x184)])_0x259e05['dispose']();this[_0x34750f(0x293)]&&this['_textBubble'][_0x34750f(0x137)](),this[_0x34750f(0x1ed)]&&this[_0x34750f(0x1ed)]['dispose'](),this[_0x34750f(0x28c)]&&this[_0x34750f(0x28c)][_0x34750f(0x137)](),this[_0x34750f(0x249)]&&this[_0x34750f(0x249)]();}[_0x532fcf(0x1be)](){const _0x37b3ce=_0x532fcf;var _0x52f1ac;const {_docSkeleton:_0x4ed2e4,_document:_0x51b957}=this,{color:_0x14cccb,name:_0x4f10a2,ranges:_0x3e7b98}=this['_cursor'],_0x5bdb64=_0x51b957[_0x37b3ce(0x197)](),{docsLeft:_0x40ecbf,docsTop:_0x3f9bdf}=_0x5bdb64,_0x7ab8ab=new b['NodePositionConvertToCursor'](_0x5bdb64,_0x4ed2e4);for(const {startOffset:_0x4f05d4,endOffset:_0x25a798,rangeType:_0x31bc13,segmentId:_0x29586e,segmentPage:_0x2908b1,collapsed:_0x186a17,isActive:_0x107ac0}of _0x3e7b98){const _0x1da397=_0x4ed2e4['findNodePositionByCharIndex'](_0x4f05d4,!0x0,_0x29586e,_0x2908b1);let _0x555506=_0x4ed2e4[_0x37b3ce(0x191)](_0x25a798,!0x0,_0x29586e,_0x2908b1);if(_0x555506==null&&(_0x555506=_0x4ed2e4['findNodePositionByCharIndex'](_0x25a798-0x1,!0x1,_0x29586e,_0x2908b1)),_0x107ac0){const {contentBoxPointGroup:_0x4870b1}=_0x7ab8ab[_0x37b3ce(0x23f)](_0x555506,_0x555506);if(_0x4870b1[_0x37b3ce(0x212)]===0x0)continue;this['_drawAnchor'](_0x14cccb,_0x4870b1,_0x40ecbf,_0x3f9bdf,_0x4f10a2),this[_0x37b3ce(0x249)]=this[_0x37b3ce(0x2b3)]();}if(_0x1da397&&_0x555506){if(_0x31bc13===a[_0x37b3ce(0xf1)]['RECT']){const _0x29ae85=new b[(_0x37b3ce(0x36a))](_0x5bdb64,_0x4ed2e4),{pointGroup:_0x24004e}=(_0x52f1ac=_0x29ae85['getRangePointData'](_0x1da397,_0x555506))!=null?_0x52f1ac:{};if(_0x24004e==null||_0x24004e[_0x37b3ce(0x212)]===0x0)continue;this[_0x37b3ce(0x168)](_0x14cccb,_0x24004e,_0x40ecbf,_0x3f9bdf);}else{if(!_0x186a17){const {borderBoxPointGroup:_0x456fb7}=_0x7ab8ab[_0x37b3ce(0x23f)](_0x1da397,_0x555506);if(_0x456fb7[_0x37b3ce(0x212)]===0x0)continue;this['_drawTextRange'](_0x14cccb,_0x456fb7,_0x40ecbf,_0x3f9bdf);}}}}}['_drawAnchor'](_0x38d5a7,_0x15a9b3,_0x2d1a4c,_0x5ceec8,_0x99c048){const _0x4c15be=_0x532fcf,_0x4d0c9d=this[_0x4c15be(0x106)](_0x15a9b3),{left:_0x406626,top:_0xabd8a4,height:_0x585f59}=_0x4d0c9d,_0x46ebba=this[_0x4c15be(0x285)](),_0x43de13=St/_0x46ebba,_0x324b0c=new p[(_0x4c15be(0x332))](oe+a[_0x4c15be(0xfa)][_0x4c15be(0x24d)](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8,'height':_0x585f59,'width':ft,'fill':_0x38d5a7||p['getColor'](a['COLORS'][_0x4c15be(0x341)],0x0),'strokeWidth':_0x43de13,'stroke':It,'evented':!0x0});this[_0x4c15be(0x28c)]=_0x324b0c,this[_0x4c15be(0x123)][_0x4c15be(0x1ba)](_0x324b0c,b[_0x4c15be(0x23a)]);const _0x63ef6e=new p[(_0x4c15be(0x332))](oe+a['Tools']['generateRandomId'](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8-ae/0x2,'height':ae,'width':ae,'fill':_0x38d5a7||p[_0x4c15be(0x30c)](a[_0x4c15be(0x1f2)][_0x4c15be(0x341)],0x0),'strokeWidth':0x0,'stroke':_0x38d5a7||p[_0x4c15be(0x30c)](a[_0x4c15be(0x1f2)][_0x4c15be(0x341)],0x0),'evented':!0x1});this[_0x4c15be(0x1ed)]=_0x63ef6e,this['_scene'][_0x4c15be(0x1ba)](_0x63ef6e,b[_0x4c15be(0x23a)]);const _0x499a1d=new te(oe+a[_0x4c15be(0xfa)][_0x4c15be(0x24d)](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8-K,'text':_0x99c048,'color':_0x38d5a7});this[_0x4c15be(0x293)]=_0x499a1d,this[_0x4c15be(0x123)][_0x4c15be(0x1ba)](_0x499a1d,b['TEXT_RANGE_LAYER_INDEX']),this[_0x4c15be(0x124)]=!0x1;}[_0x532fcf(0x2b3)](){const _0x46e3bf=_0x532fcf,_0x19c127=this[_0x46e3bf(0x28c)][_0x46e3bf(0x350)][_0x46e3bf(0x2c5)](()=>{const _0x160071=_0x46e3bf;this[_0x160071(0x124)]=!0x0;}),_0x8dc582=this[_0x46e3bf(0x28c)][_0x46e3bf(0x2c9)][_0x46e3bf(0x2c5)](()=>{const _0x47c184=_0x46e3bf;this[_0x47c184(0x1c4)]&&clearTimeout(this[_0x47c184(0x1c4)]),this['_hideTimer']=setTimeout(()=>{const _0x55d677=_0x47c184;this[_0x55d677(0x124)]=!0x1;},0x7d0);});return()=>{const _0x1ebf8b=_0x46e3bf;_0x19c127[_0x1ebf8b(0x17c)](),_0x8dc582['unsubscribe']();};}[_0x532fcf(0x32c)](_0x58dbd0,_0x43401d,_0x24ab4c,_0x3529a1){const _0x38de60=_0x532fcf,_0x4dc89c=new a[(_0x38de60(0x30d))](_0x58dbd0)[_0x38de60(0x2f8)](0.2)['toRgbString'](),_0xb10cca=new p[(_0x38de60(0x10e))](ut+a[_0x38de60(0xfa)][_0x38de60(0x24d)](k),{'pointsGroup':_0x43401d,'fill':_0x4dc89c||p['getColor'](a[_0x38de60(0x1f2)]['black'],0.2),'left':_0x24ab4c,'top':_0x3529a1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38de60(0x2e2)](_0xb10cca),this[_0x38de60(0x123)]['addObject'](_0xb10cca,b['TEXT_RANGE_LAYER_INDEX']);}[_0x532fcf(0x168)](_0x581418,_0x17d685,_0x423da5,_0x595924){const _0x52844e=_0x532fcf,_0x6157f5=new a[(_0x52844e(0x30d))](_0x581418)[_0x52844e(0x2f8)](0.2)[_0x52844e(0x2fa)](),_0x1f008f=new p[(_0x52844e(0x10e))](dt+a[_0x52844e(0xfa)][_0x52844e(0x24d)](k),{'pointsGroup':_0x17d685,'fill':_0x6157f5||p['getColor'](a[_0x52844e(0x1f2)][_0x52844e(0x341)],0.2),'left':_0x423da5,'top':_0x595924,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52844e(0x184)][_0x52844e(0x2e2)](_0x1f008f),this[_0x52844e(0x123)][_0x52844e(0x1ba)](_0x1f008f,b[_0x52844e(0x23a)]);}[_0x532fcf(0x106)](_0x68e63){const _0x5d4ffb=_0x68e63[0x0],_0x5b8c7c=_0x5d4ffb[0x0],_0x5928e6=_0x5d4ffb[0x2],{x:_0x2d5e98,y:_0x505e7a}=_0x5b8c7c,{x:_0x4c8289,y:_0x12f588}=_0x5928e6;return{'left':_0x2d5e98,'top':_0x505e7a,'width':_0x4c8289-_0x2d5e98,'height':_0x12f588-_0x505e7a};}[_0x532fcf(0x285)](){const _0x76554c=_0x532fcf,{scaleX:_0x4f8922,scaleY:_0x43f9ff}=this[_0x76554c(0x123)][_0x76554c(0x1a9)]();return Math['max'](_0x4f8922,_0x43f9ff);}}var vt=Object[_0x532fcf(0x1c9)],gt=(_0x314b1a,_0x4226a4,_0x320957,_0x48005a)=>{const _0x50e0b2=_0x532fcf;for(var _0x358ac1=_0x48005a>0x1?void 0x0:_0x48005a?vt(_0x4226a4,_0x320957):_0x4226a4,_0x25ada4=_0x314b1a[_0x50e0b2(0x212)]-0x1,_0x382adb;_0x25ada4>=0x0;_0x25ada4--)(_0x382adb=_0x314b1a[_0x25ada4])&&(_0x358ac1=_0x382adb(_0x358ac1)||_0x358ac1);return _0x358ac1;},V=(_0xc3e4bd,_0x53b370)=>(_0x159e60,_0x2309e6)=>_0x53b370(_0x159e60,_0x2309e6,_0xc3e4bd);let ve=class extends a['RxDisposable']{constructor(_0x339749,_0x594b68,_0x41b405,_0x10689b,_0x3b1715){const _0x4a6ee6=_0x532fcf;super(),_(this,'_cursorShapes',[]),_(this,_0x4a6ee6(0xed),[]),(this[_0x4a6ee6(0x268)]=_0x339749,this['_docSkeletonManagerService']=_0x594b68,this[_0x4a6ee6(0x159)]=_0x41b405,this[_0x4a6ee6(0x2b7)]=_0x10689b,this[_0x4a6ee6(0x32d)]=_0x3b1715,this['_init']());}[_0x532fcf(0x281)](){const _0x40667d=_0x532fcf,_0x4bcb12=this['_context'][_0x40667d(0x26e)],_0x1f11c6=this[_0x40667d(0x277)];this['disposeWithMe'](d[_0x40667d(0xf0)]([this['_collabCursorController'][_0x40667d(0xf5)](_0x4bcb12),this['_themeService']['currentTheme$']])['pipe']($['map'](([_0x21e6f5,_0x204a74])=>({'skeleton':_0x1f11c6[_0x40667d(0x2a8)](),'cursors':[..._0x21e6f5[_0x40667d(0x25a)]()][_0x40667d(0x1d1)](_0x68221=>({..._0x68221,'color':_0x204a74[_0x68221['color']]}))})))['subscribe'](_0x5a718b=>{const _0x2b7357=_0x40667d;if(this[_0x2b7357(0x186)](),_0x5a718b){const {skeleton:_0x1662a3,cursors:_0x2d46ac}=_0x5a718b;this[_0x2b7357(0x2e3)](_0x1662a3,_0x2d46ac);}})),this['_initResize'](),this[_0x40667d(0x2da)]();}[_0x532fcf(0x2e3)](_0x3803dc,_0x4985bc){const _0x230f38=_0x532fcf,{scene:_0x2eb3b2,mainComponent:_0x1a5853}=this[_0x230f38(0x268)],_0x258e83=_0x4985bc[_0x230f38(0x2af)](_0x29da54=>new Ue(_0x29da54,_0x2eb3b2,_0x3803dc,_0x1a5853));this[_0x230f38(0x367)]=_0x258e83,this['_cursors']=_0x4985bc;}[_0x532fcf(0x141)](){const _0x412817=_0x532fcf;this[_0x412817(0x186)]();const {scene:_0x448ebb,mainComponent:_0xdcb6c8}=this[_0x412817(0x268)],_0xba2e9b=this['_docSkeletonManagerService'][_0x412817(0x2a8)](),_0x291803=this[_0x412817(0xed)][_0x412817(0x2af)](_0x4849f0=>new Ue(_0x4849f0,_0x448ebb,_0xba2e9b,_0xdcb6c8));this['_cursorShapes']=_0x291803;}[_0x532fcf(0x186)](){const _0x363648=_0x532fcf;this[_0x363648(0x367)][_0x363648(0x344)](_0x1c8da4=>_0x1c8da4[_0x363648(0x137)]()),this['_cursorShapes']=[];}[_0x532fcf(0x2da)](){const _0x55bef6=_0x532fcf,_0x5e4839=[b[_0x55bef6(0x213)]['id']];this[_0x55bef6(0x35c)](this[_0x55bef6(0x2b7)]['onCommandExecuted'](_0x57c5c5=>{const _0x12e83f=_0x55bef6;_0x5e4839['includes'](_0x57c5c5['id'])&&_0x57c5c5[_0x12e83f(0x222)][_0x12e83f(0x26e)]===this['_context']['unitId']&&this[_0x12e83f(0x141)]();}));}[_0x532fcf(0x2e5)](){const _0x18f808=_0x532fcf;this[_0x18f808(0x35c)](a[_0x18f808(0x156)](this[_0x18f808(0x268)]['engine']['onTransformChange$'])[_0x18f808(0x172)]($[_0x18f808(0x181)](_0x3462a9=>_0x3462a9['type']===p[_0x18f808(0x299)]['resize']),$[_0x18f808(0x2e7)](0x10))[_0x18f808(0x1ce)](()=>{const _0x1ea71b=_0x18f808;this[_0x1ea71b(0x141)]();}));}};ve=gt([V(0x1,a[_0x532fcf(0x2ce)](Y['DocSkeletonManagerService'])),V(0x2,a[_0x532fcf(0x2ce)](x)),V(0x3,a[_0x532fcf(0x355)]),V(0x4,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1b0)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x532fcf(0x1c1)]{constructor(_0x4e2dc4,_0x244d2d){const _0x2e7784=_0x532fcf;super(_0x4e2dc4,_0x244d2d),_(this,_0x2e7784(0x202)),_(this,_0x2e7784(0x14f),!0x1),_(this,_0x2e7784(0x216)),_(this,'_name',''),_(this,_0x2e7784(0x14e),_0x2e7784(0x31c)),_(this,'_backgroundColor'),(_0x244d2d&&this[_0x2e7784(0x345)](_0x244d2d),this[_0x2e7784(0x350)][_0x2e7784(0x2c5)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2e7784(0x2c9)][_0x2e7784(0x2c5)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x532fcf(0x345)](_0xa75368){const _0x5a795a=_0x532fcf;var _0x5bd21d,_0x1cfeeb,_0x6f9af1,_0x16d721,_0x43d82c,_0x201341;this[_0x5a795a(0x202)]=(_0x5bd21d=_0xa75368['color'])!=null?_0x5bd21d:this[_0x5a795a(0x202)],this['_hovered']=(_0x1cfeeb=_0xa75368[_0x5a795a(0x215)])!=null?_0x1cfeeb:this[_0x5a795a(0x14f)],this[_0x5a795a(0x216)]=(_0x6f9af1=_0xa75368[_0x5a795a(0x2b2)])!=null?_0x6f9af1:this[_0x5a795a(0x216)],this[_0x5a795a(0x21c)]=(_0x16d721=_0xa75368[_0x5a795a(0x240)])!=null?_0x16d721:this['_name'],this[_0x5a795a(0x14e)]=(_0x43d82c=_0xa75368['labelPosition'])!=null?_0x43d82c:this[_0x5a795a(0x14e)],this[_0x5a795a(0x131)]=(_0x201341=_0xa75368[_0x5a795a(0x1d5)])!=null?_0x201341:this[_0x5a795a(0x131)],this['transformByState']({'width':_0xa75368[_0x5a795a(0x309)],'height':_0xa75368['height']});}[_0x532fcf(0x262)](_0x32313a){const _0x412b3c=_0x532fcf,{row:_0x1f9c9a,column:_0x4f7fab}=_0x32313a;if(_0x1f9c9a>=this[_0x412b3c(0x216)][_0x412b3c(0x2be)]&&_0x1f9c9a<=this[_0x412b3c(0x216)][_0x412b3c(0x166)]&&_0x4f7fab>=this[_0x412b3c(0x216)][_0x412b3c(0xef)]&&_0x4f7fab<=this[_0x412b3c(0x216)][_0x412b3c(0x21a)]){this[_0x412b3c(0x345)]({'hovered':!0x0});return;}this[_0x412b3c(0x345)]({'hovered':!0x1});}['triggerDblclick'](_0x3b4f96){return!0x1;}['_draw'](_0x32719d){const _0x48743c=_0x532fcf;p[_0x48743c(0x332)][_0x48743c(0x194)](_0x32719d,{'width':this[_0x48743c(0x309)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x48743c(0x202)],'evented':!0x1,'fill':this[_0x48743c(0x131)]}),this['_hovered']&&(_0x32719d['save'](),_0x32719d['transform'](0x1,0x0,0x0,0x1,this[_0x48743c(0x309)],this['_labelPosition']===_0x48743c(0x27f)?0x0:-0x14),te[_0x48743c(0x194)](_0x32719d,{'text':this['_name'],'color':this[_0x48743c(0x202)]}),_0x32719d[_0x48743c(0x1d2)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x1c5e3c,_0x534d24,_0x91581b,_0xe43e01)=>{const _0x3a17d4=_0x532fcf;for(var _0x37cd34=_0xe43e01>0x1?void 0x0:_0xe43e01?pt(_0x534d24,_0x91581b):_0x534d24,_0x141829=_0x1c5e3c[_0x3a17d4(0x212)]-0x1,_0x2b1ff5;_0x141829>=0x0;_0x141829--)(_0x2b1ff5=_0x1c5e3c[_0x141829])&&(_0x37cd34=_0x2b1ff5(_0x37cd34)||_0x37cd34);return _0x37cd34;},ce=(_0x1a6bd8,_0x9c2452)=>(_0x62f8b6,_0x362f60)=>_0x9c2452(_0x62f8b6,_0x362f60,_0x1a6bd8);const Et=0x1389;let ge=class extends a[_0x532fcf(0x13f)]{constructor(_0x23ada5,_0x6000bf,_0x1532f8,_0x12e3e7){const _0x4c637f=_0x532fcf;super(),_(this,_0x4c637f(0xed),new Set()),_(this,_0x4c637f(0x2cd),null),(this[_0x4c637f(0x268)]=_0x23ada5,this[_0x4c637f(0x1ff)]=_0x6000bf,this[_0x4c637f(0x159)]=_0x1532f8,this[_0x4c637f(0x32d)]=_0x12e3e7,this[_0x4c637f(0x281)]());}[_0x532fcf(0x281)](){const _0x48fcf8=_0x532fcf;this['_sheetSkeletonManagerService'][_0x48fcf8(0x19f)][_0x48fcf8(0x172)]($['takeUntil'](this[_0x48fcf8(0x147)]),$[_0x48fcf8(0x217)](_0x4c6c4c=>{const _0xbdf48b=_0x48fcf8;if(_0x4c6c4c){const _0x5442c6=_0x4c6c4c[_0xbdf48b(0x200)];return d[_0xbdf48b(0xf0)](this[_0xbdf48b(0x159)][_0xbdf48b(0xf5)](this[_0xbdf48b(0x268)][_0xbdf48b(0x26e)]),this[_0xbdf48b(0x32d)][_0xbdf48b(0x29b)])[_0xbdf48b(0x172)]($[_0xbdf48b(0x2af)](([_0x51e763,_0x80acc8])=>{const _0x591cc1=_0xbdf48b,_0x132328=new Map();return _0x51e763[_0x591cc1(0x344)]((_0x4ac484,_0x22078f)=>{const _0x41d97f=_0x591cc1;if(_0x4ac484[_0x41d97f(0x1cf)]===_0x5442c6){const _0x414868={..._0x4ac484};_0x414868[_0x41d97f(0x132)]=_0x80acc8[_0x4ac484[_0x41d97f(0x132)]],_0x132328[_0x41d97f(0x208)](_0x22078f,_0x414868);}}),{'skeleton':_0x4c6c4c,'cursors':_0x132328};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x48fcf8(0x1ce)](({skeleton:_0x194133,cursors:_0x176735})=>{const _0x3bcd45=_0x48fcf8;this[_0x3bcd45(0x186)](),_0x194133&&this['_updateCollabCursors'](_0x194133,_0x176735);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x48fcf8(0x1ce)](_0x1fb8b2=>{const _0x5274c4=_0x48fcf8;if(_0x1fb8b2==null)return;const {skeleton:_0x2edc40}=_0x1fb8b2,{scene:_0x23d638}=this[_0x5274c4(0x268)];_0x23d638[_0x5274c4(0x201)][_0x5274c4(0x2c5)](a[_0x5274c4(0x297)](_0x45299b=>{const _0x2b7bc1=_0x5274c4;var _0x104391,_0x2cfd98;const {offsetX:_0x50f51f,offsetY:_0x485d65}=_0x45299b,{x:_0x14c5ed,y:_0x54e8aa}=_0x23d638[_0x2b7bc1(0x271)](p[_0x2b7bc1(0x1de)][_0x2b7bc1(0x1d4)]([_0x50f51f,_0x485d65])),{scaleX:_0x379cc5,scaleY:_0x4d8f66}=_0x23d638[_0x2b7bc1(0x1a9)](),_0x37bc21=_0x23d638[_0x2b7bc1(0x31f)](p[_0x2b7bc1(0x34d)][_0x2b7bc1(0x232)]),_0x4a68ab=_0x23d638[_0x2b7bc1(0xf8)](p['Vector2'][_0x2b7bc1(0x1d4)]([_0x14c5ed,_0x54e8aa]),_0x37bc21),_0xa1ca3f=_0x2edc40[_0x2b7bc1(0x324)](_0x50f51f,_0x485d65,_0x379cc5,_0x4d8f66,_0x4a68ab);((_0x104391=this[_0x2b7bc1(0x2cd)])==null?void 0x0:_0x104391['column'])===_0xa1ca3f[_0x2b7bc1(0x21f)]&&((_0x2cfd98=this[_0x2b7bc1(0x2cd)])==null?void 0x0:_0x2cfd98[_0x2b7bc1(0x2d4)])===_0xa1ca3f['row']||this[_0x2b7bc1(0xed)][_0x2b7bc1(0x344)](_0x34733a=>{const _0xd57d54=_0x2b7bc1;_0x34733a[_0xd57d54(0x262)](_0xa1ca3f);});},0x64));});}[_0x532fcf(0x2e3)](_0x1329fd,_0x48770c){const _0x48c4c6=_0x532fcf;var _0x485586;const _0x2943e2=(_0x485586=this[_0x48c4c6(0x1ff)][_0x48c4c6(0x327)]())==null?void 0x0:_0x485586[_0x48c4c6(0x2f9)];if(!_0x2943e2)return;const _0x48736d=this[_0x48c4c6(0x24b)]();if(!_0x48736d)return;this['_cursors']['forEach'](_0x61fa59=>{const _0x191880=_0x48c4c6;_0x61fa59[_0x191880(0x2db)]();});const {scene:_0x3b28f3}=_0x48736d,_0x20ccbb=Tt(Array[_0x48c4c6(0x252)](_0x48770c[_0x48c4c6(0x25a)]()))[_0x48c4c6(0x2af)](_0x30c322=>{const _0x2730a0=_0x48c4c6,{color:_0x2308bc,range:_0xbc6969,name:_0x3974b4,selection:_0x152ac2,sheetID:_0x2a704a}=_0x30c322,{startColumn:_0x13755c,startRow:_0x3b6dc7,endColumn:_0x320086,endRow:_0x1915e7}=_0xbc6969,_0x3e70fd=G[_0x2730a0(0x1a8)](_0x3b6dc7,_0x13755c,_0x3b28f3,_0x2943e2),_0x555572=G['getCoordByCell'](_0x1915e7,_0x320086,_0x3b28f3,_0x2943e2),{columnHeaderHeightAndMarginTop:_0x5ad727}=_0x2943e2,{startX:_0x329b2b,startY:_0x4612d5}=_0x3e70fd,{endX:_0x3acffd,endY:_0xfad02a}=_0x555572,_0x5e2246=_0x3acffd-_0x329b2b,_0x1bd7a0=_0xfad02a-_0x4612d5,_0x3cf59f={'labelPosition':_0x4612d5-_0x5ad727>=K?_0x2730a0(0x31c):_0x2730a0(0x27f),'sheetID':_0x2a704a,'range':_0xbc6969,'color':_0x2308bc,'name':_0x3974b4,'selection':_0x152ac2,'left':_0x329b2b,'top':_0x4612d5,'width':_0x5e2246,'height':_0x1bd7a0,'evented':!0x1,'zIndex':Et};return new Ae(_0x3974b4,_0x3cf59f);});_0x3b28f3['addObjects'](_0x20ccbb,mt),this['_cursors']=new Set(_0x20ccbb);}[_0x532fcf(0x186)](){const _0x3b3462=_0x532fcf;var _0x51e41e;(_0x51e41e=this[_0x3b3462(0xed)])==null||_0x51e41e['forEach'](_0x56cc66=>_0x56cc66['dispose']());}['_getSheetObject'](){const _0x557edb=_0x532fcf;return G[_0x557edb(0x337)](this[_0x557edb(0x268)]['unit'],this['_context']);}};ge=bt([ce(0x1,a['Inject'](G['SheetSkeletonManagerService'])),ce(0x2,a[_0x532fcf(0x2ce)](x)),ce(0x3,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1b0)]))],ge);function Tt(_0x370681){const _0x46e357=_0x532fcf,_0x1a09fa=new Map();return _0x370681[_0x46e357(0x344)](_0x3e7294=>{const _0x117aaf=_0x46e357;if(_0x1a09fa[_0x117aaf(0x125)](_0x3e7294[_0x117aaf(0x1b1)])){const _0x2c67fa=_0x1a09fa[_0x117aaf(0x2b0)](_0x3e7294[_0x117aaf(0x1b1)]);_0x2c67fa[_0x117aaf(0x240)]+=',\x20'+_0x3e7294[_0x117aaf(0x240)];}else _0x1a09fa[_0x117aaf(0x208)](_0x3e7294[_0x117aaf(0x1b1)],_0x3e7294);}),Array['from'](_0x1a09fa[_0x46e357(0x25a)]());}var E=function(){const _0x5799c6=_0x532fcf;return E=Object[_0x5799c6(0x28f)]||function(_0x5ba5a9){const _0x50d926=_0x5799c6;for(var _0x25e004,_0x3d0905=0x1,_0x4446a3=arguments[_0x50d926(0x212)];_0x3d0905<_0x4446a3;_0x3d0905++){_0x25e004=arguments[_0x3d0905];for(var _0x2c84f9 in _0x25e004)Object['prototype'][_0x50d926(0x13d)]['call'](_0x25e004,_0x2c84f9)&&(_0x5ba5a9[_0x2c84f9]=_0x25e004[_0x2c84f9]);}return _0x5ba5a9;},E[_0x5799c6(0x1b9)](this,arguments);},Ot=function(_0x58ea7f,_0x3e0e35){const _0x5d554f=_0x532fcf;var _0x158b49={};for(var _0x4e85aa in _0x58ea7f)Object[_0x5d554f(0x1dd)][_0x5d554f(0x13d)][_0x5d554f(0x2fb)](_0x58ea7f,_0x4e85aa)&&_0x3e0e35[_0x5d554f(0x23c)](_0x4e85aa)<0x0&&(_0x158b49[_0x4e85aa]=_0x58ea7f[_0x4e85aa]);if(_0x58ea7f!=null&&typeof Object[_0x5d554f(0x346)]==_0x5d554f(0x1f1)){for(var _0x2f04ff=0x0,_0x4e85aa=Object[_0x5d554f(0x346)](_0x58ea7f);_0x2f04ff<_0x4e85aa[_0x5d554f(0x212)];_0x2f04ff++)_0x3e0e35[_0x5d554f(0x23c)](_0x4e85aa[_0x2f04ff])<0x0&&Object[_0x5d554f(0x1dd)][_0x5d554f(0x11c)][_0x5d554f(0x2fb)](_0x58ea7f,_0x4e85aa[_0x2f04ff])&&(_0x158b49[_0x4e85aa[_0x2f04ff]]=_0x58ea7f[_0x4e85aa[_0x2f04ff]]);}return _0x158b49;},be=M[_0x532fcf(0x185)](function(_0x5663ee,_0x2db28a){const _0x1f365c=_0x532fcf;var _0x2dad69=_0x5663ee['icon'],_0x500eec=_0x5663ee['id'],_0x808b2d=_0x5663ee[_0x1f365c(0x171)],_0x4571a8=_0x5663ee[_0x1f365c(0x31e)],_0xb0a585=Ot(_0x5663ee,['icon','id',_0x1f365c(0x171),'extend']),_0x455584=_0x1f365c(0x318)[_0x1f365c(0x2c3)](_0x500eec,'\x20')[_0x1f365c(0x2c3)](_0x808b2d||'')[_0x1f365c(0x30f)](),_0xbb14d5=M[_0x1f365c(0x2a2)]('_'['concat'](Ut()));return ye(_0x2dad69,''[_0x1f365c(0x2c3)](_0x500eec),{'defIds':_0x2dad69['defIds'],'idSuffix':_0xbb14d5[_0x1f365c(0x260)]},E({'ref':_0x2db28a,'className':_0x455584},_0xb0a585),_0x4571a8);});function _0x4bf1(_0x3c5bfa,_0x516556){const _0x36f27a=_0x36f2();return _0x4bf1=function(_0x4bf14a,_0x34b840){_0x4bf14a=_0x4bf14a-0xe7;let _0x1d1973=_0x36f27a[_0x4bf14a];return _0x1d1973;},_0x4bf1(_0x3c5bfa,_0x516556);}function ye(_0x484ff4,_0x3aeb2e,_0x26c3d2,_0x51b9e6,_0x2676d5){const _0x4c6a4f=_0x532fcf;return M[_0x4c6a4f(0x253)](_0x484ff4['tag'],E(E({'key':_0x3aeb2e},Rt(_0x484ff4,_0x26c3d2,_0x2676d5)),_0x51b9e6),(Dt(_0x484ff4,_0x26c3d2)[_0x4c6a4f(0x1cd)]||[])[_0x4c6a4f(0x2af)](function(_0x1b6c60,_0x431e67){const _0x57ecec=_0x4c6a4f;return ye(_0x1b6c60,''[_0x57ecec(0x2c3)](_0x3aeb2e,'-')['concat'](_0x484ff4[_0x57ecec(0x220)],'-')[_0x57ecec(0x2c3)](_0x431e67),_0x26c3d2,void 0x0,_0x2676d5);}));}function Rt(_0x14280f,_0x1d4504,_0x4ffe5e){const _0x586f5e=_0x532fcf;var _0x16db63=E({},_0x14280f[_0x586f5e(0x17e)]);_0x4ffe5e!=null&&_0x4ffe5e[_0x586f5e(0x27e)]&&_0x16db63['fill']===_0x586f5e(0x27e)&&(_0x16db63[_0x586f5e(0x150)]=_0x4ffe5e['colorChannel1']),_0x14280f['tag']==='mask'&&_0x16db63['id']&&(_0x16db63['id']=_0x16db63['id']+_0x1d4504[_0x586f5e(0x11a)]),Object['entries'](_0x16db63)['forEach'](function(_0x49d61b){const _0x4f85a1=_0x586f5e;var _0x423cf9=_0x49d61b[0x0],_0xd77862=_0x49d61b[0x1];_0x423cf9==='mask'&&typeof _0xd77862==_0x4f85a1(0x2ca)&&(_0x16db63[_0x423cf9]=_0xd77862['replace'](/url\(#(.*)\)/,_0x4f85a1(0x2b9)[_0x4f85a1(0x2c3)](_0x1d4504['idSuffix'],')')));});var _0x5dcdbf=_0x1d4504[_0x586f5e(0x2dc)];return!_0x5dcdbf||_0x5dcdbf[_0x586f5e(0x212)]===0x0||(_0x14280f['tag']===_0x586f5e(0xff)&&_0x16db63['xlink:href']&&(_0x16db63[_0x586f5e(0x14d)]=_0x16db63[_0x586f5e(0x14d)]+_0x1d4504[_0x586f5e(0x11a)]),Object['entries'](_0x16db63)['forEach'](function(_0x41ff6b){const _0x5b73af=_0x586f5e;var _0x17741a=_0x41ff6b[0x0],_0x4fc711=_0x41ff6b[0x1];typeof _0x4fc711==_0x5b73af(0x2ca)&&(_0x16db63[_0x17741a]=_0x4fc711['replace'](/url\(#(.*)\)/,_0x5b73af(0x2b9)['concat'](_0x1d4504[_0x5b73af(0x11a)],')')));})),_0x16db63;}function Dt(_0x65a2e0,_0x1f3e5d){const _0x36ac46=_0x532fcf;var _0x4eb8c0,_0x118a07=_0x1f3e5d[_0x36ac46(0x2dc)];return!_0x118a07||_0x118a07['length']===0x0?_0x65a2e0:_0x65a2e0[_0x36ac46(0x220)]===_0x36ac46(0x109)&&(!((_0x4eb8c0=_0x65a2e0['children'])===null||_0x4eb8c0===void 0x0)&&_0x4eb8c0[_0x36ac46(0x212)])?E(E({},_0x65a2e0),{'children':_0x65a2e0[_0x36ac46(0x1cd)]['map'](function(_0x102687){const _0x463c5b=_0x36ac46;return typeof _0x102687['attrs']['id']==_0x463c5b(0x2ca)&&_0x118a07&&_0x118a07['indexOf'](_0x102687[_0x463c5b(0x17e)]['id'])>-0x1?E(E({},_0x102687),{'attrs':E(E({},_0x102687[_0x463c5b(0x17e)]),{'id':_0x102687['attrs']['id']+_0x1f3e5d[_0x463c5b(0x11a)]})}):_0x102687;})}):_0x65a2e0;}function Ut(){const _0x4cbf5e=_0x532fcf;return Math['random']()[_0x4cbf5e(0x255)](0x24)[_0x4cbf5e(0xfe)](0x2,0x8);}be[_0x532fcf(0x142)]=_0x532fcf(0x251);var Nt={'tag':_0x532fcf(0x224),'attrs':{'fill':'none','viewBox':_0x532fcf(0x2c0),'width':_0x532fcf(0x276),'height':_0x532fcf(0x276)},'children':[{'tag':'g','attrs':{'clipPath':_0x532fcf(0x26c)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x532fcf(0x22e),'strokeLinejoin':_0x532fcf(0x22e),'strokeWidth':1.2}}]},{'tag':_0x532fcf(0x109),'attrs':{},'children':[{'tag':_0x532fcf(0x307),'attrs':{'id':_0x532fcf(0x342)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'fill':_0x532fcf(0x15f),'d':_0x532fcf(0x357)}}]}]}],'defIds':[_0x532fcf(0x342)]},$e=M['forwardRef'](function(_0x5a86c5,_0x5ad328){const _0x5686ef=_0x532fcf;return M[_0x5686ef(0x253)](be,Object[_0x5686ef(0x28f)]({},_0x5a86c5,{'id':_0x5686ef(0x238),'ref':_0x5ad328,'icon':Nt}));});$e[_0x532fcf(0x142)]=_0x532fcf(0x1cb);var Mt={'tag':_0x532fcf(0x224),'attrs':{'fill':_0x532fcf(0x233),'viewBox':_0x532fcf(0x1b4),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x532fcf(0x2bc)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'stroke':'currentColor','d':_0x532fcf(0x12f),'strokeLinecap':_0x532fcf(0x22e),'strokeLinejoin':_0x532fcf(0x22e),'strokeWidth':1.2}}]},{'tag':_0x532fcf(0x109),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x532fcf(0x16d)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'fill':'#fff','d':_0x532fcf(0x357),'transform':_0x532fcf(0x1fc)}}]}]}],'defIds':[_0x532fcf(0x16d)]},xe=M['forwardRef'](function(_0x5a4c5a,_0x35e154){const _0x4fbe44=_0x532fcf;return M[_0x4fbe44(0x253)](be,Object[_0x4fbe44(0x28f)]({},_0x5a4c5a,{'id':_0x4fbe44(0x199),'ref':_0x35e154,'icon':Mt}));});xe['displayName']=_0x532fcf(0x302);const Lt='univer-online-status-icon',Pt=_0x532fcf(0x29d),wt=_0x532fcf(0x231),At='univer-online',yt=_0x532fcf(0x261),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x49b356){const _0x1eaeff=_0x532fcf;switch(_0x49b356){case u[_0x1eaeff(0x2ba)]['OFFLINE']:return _0x1eaeff(0x25b);case u['CollaborationStatus'][_0x1eaeff(0x10c)]:return _0x1eaeff(0x1e7);case u[_0x1eaeff(0x2ba)]['FETCH_MISS']:return _0x1eaeff(0x2f2);case u['CollaborationStatus'][_0x1eaeff(0x310)]:return _0x1eaeff(0x1b8);case u[_0x1eaeff(0x2ba)][_0x1eaeff(0x120)]:case u[_0x1eaeff(0x2ba)]['AWAITING_WITH_PENDING']:return _0x1eaeff(0x35d);case u['CollaborationStatus']['SYNCED']:case u[_0x1eaeff(0x2ba)][_0x1eaeff(0x365)]:return'collabStatus.synced';}}function je(_0xf7acce){const _0xf7ce18=_0x532fcf,{status$:_0x4d1000}=_0xf7acce,_0x27f1fd=O[_0xf7ce18(0x13a)](_0x4d1000,u[_0xf7ce18(0x2ba)][_0xf7ce18(0x310)]),_0x3a270e=O[_0xf7ce18(0x20c)](a[_0xf7ce18(0x1ea)]),_0x24db04=O[_0xf7ce18(0x20c)](u[_0xf7ce18(0x236)]),_0x4bc364=_0x27f1fd!==u[_0xf7ce18(0x2ba)][_0xf7ce18(0x295)],_0x18635d=_0x3a270e['t']($t(_0x27f1fd)),_0x398d95=T[_0xf7ce18(0x2bd)](H[_0xf7ce18(0x234)],{[H['online']]:_0x4bc364,[H[_0xf7ce18(0x333)]]:!_0x4bc364}),_0x4c6bdf=_0x4bc364?P[_0xf7ce18(0x33b)](xe,{}):P[_0xf7ce18(0x33b)]($e,{}),_0x3db65a=M['useCallback'](()=>{_0x4bc364||_0x24db04['reconnect']();},[_0x4bc364,_0x24db04]);function _0x4ff40f(){const _0x51ce9a=_0xf7ce18;return P[_0x51ce9a(0x12e)](_0x51ce9a(0x1e2),{'className':T['clsx'](_0x398d95,_0x51ce9a(0x366)),'onClick':_0x3db65a,'children':[P[_0x51ce9a(0x33b)](_0x51ce9a(0x1e2),{'className':H['onlineStatusIcon'],'children':_0x4c6bdf}),P['jsx'](_0x51ce9a(0x1e2),{'className':H[_0x51ce9a(0x29f)],'children':_0x18635d})]});}return _0x4bc364?_0x4ff40f():P[_0xf7ce18(0x33b)](T[_0xf7ce18(0x349)],{'title':_0x3a270e['t'](_0xf7ce18(0x134)),'children':_0x4ff40f()});}var xt=Object[_0x532fcf(0x1c9)],jt=(_0x1b1116,_0x3f1445,_0x26ed8b,_0x472499)=>{const _0x21e7ee=_0x532fcf;for(var _0x479426=_0x472499>0x1?void 0x0:_0x472499?xt(_0x3f1445,_0x26ed8b):_0x3f1445,_0x55b478=_0x1b1116[_0x21e7ee(0x212)]-0x1,_0x387544;_0x55b478>=0x0;_0x55b478--)(_0x387544=_0x1b1116[_0x55b478])&&(_0x479426=_0x387544(_0x479426)||_0x479426);return _0x479426;},X=(_0x5795cb,_0x310361)=>(_0x87b2ea,_0x642fa)=>_0x310361(_0x87b2ea,_0x642fa,_0x5795cb);exports[_0x532fcf(0x2cc)]=class extends a[_0x532fcf(0x160)]{constructor(_0x3c7864,_0x5b69c7,_0x246eec,_0x57b926){const _0x5a1b96=_0x532fcf;super(),_(this,_0x5a1b96(0x239),new d['BehaviorSubject'](u[_0x5a1b96(0x2ba)][_0x5a1b96(0x310)])),(this[_0x5a1b96(0x183)]=_0x3c7864,this[_0x5a1b96(0x20b)]=_0x5b69c7,this['_collaborationController']=_0x246eec,this[_0x5a1b96(0x143)]=_0x57b926,this[_0x5a1b96(0x266)](),this[_0x5a1b96(0x32a)]());}[_0x532fcf(0x32a)](){const _0x2d088e=_0x532fcf;this[_0x2d088e(0x35c)](this[_0x2d088e(0x183)][_0x2d088e(0x286)]['pipe'](d[_0x2d088e(0x217)](()=>{const _0x4f0d4d=_0x2d088e,_0x2d0b88=this[_0x4f0d4d(0x183)][_0x4f0d4d(0x20e)]();return _0x2d0b88?this['_collaborationController'][_0x4f0d4d(0x173)](_0x2d0b88[_0x4f0d4d(0x1d6)]()):d['of'](null);}),d['switchMap'](_0x50f8da=>_0x50f8da?_0x50f8da[_0x2d088e(0x179)]:d['of'](u[_0x2d088e(0x2ba)][_0x2d088e(0x310)])))[_0x2d088e(0x1ce)](_0xff10ed=>{const _0x37ef27=_0x2d088e;this[_0x37ef27(0x239)][_0x37ef27(0x28a)](_0xff10ed);}));}['_initStatusComponent'](){const _0xcedeb6=_0x532fcf;this['disposeWithMe'](this[_0xcedeb6(0x143)]['registerComponent'](O['BuiltInUIPart'][_0xcedeb6(0x28b)],()=>O[_0xcedeb6(0x1fa)](Bt({'status$':this[_0xcedeb6(0x239)][_0xcedeb6(0x244)]()}),this[_0xcedeb6(0x20b)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x532fcf(0x149)]),X(0x1,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),X(0x2,a['Inject'](u[_0x532fcf(0x138)])),X(0x3,O[_0x532fcf(0x33d)])],exports[_0x532fcf(0x2cc)]);function Bt(_0x11e025){const {status$:_0x2c8487}=_0x11e025;return function(){const _0x358126=_0x4bf1;return P[_0x358126(0x33b)](je,{'status$':_0x2c8487});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0x1983ad,_0xc8e4e8,_0x3bc75d,_0x17b07b)=>{const _0x2347fa=_0x532fcf;for(var _0x54e08a=_0x17b07b>0x1?void 0x0:_0x17b07b?kt(_0xc8e4e8,_0x3bc75d):_0xc8e4e8,_0x19810d=_0x1983ad[_0x2347fa(0x212)]-0x1,_0x4f75ff;_0x19810d>=0x0;_0x19810d--)(_0x4f75ff=_0x1983ad[_0x19810d])&&(_0x54e08a=_0x4f75ff(_0x54e08a)||_0x54e08a);return _0x54e08a;},y=(_0x13dbda,_0x536355)=>(_0x46b250,_0x1d3964)=>_0x536355(_0x46b250,_0x1d3964,_0x13dbda);let z=class extends a[_0x532fcf(0x160)]{constructor(_0x45551d,_0x72fd66,_0x5578a2,_0x231c00,_0x58f03c,_0x50b979){const _0x5d9c3a=_0x532fcf;super(),this[_0x5d9c3a(0x2d0)]=_0x45551d,this['_localCacheService']=_0x72fd66,this['_collaborationUIEventService']=_0x5578a2,this[_0x5d9c3a(0x178)]=_0x231c00,this['_notificationService']=_0x58f03c,this['_localeService']=_0x50b979,this['_setupBeforeClosingHandler'](),this[_0x5d9c3a(0xee)]();}[_0x532fcf(0x34a)](){const _0x5e3d0a=_0x532fcf;this[_0x5e3d0a(0x35c)](this[_0x5e3d0a(0x2d0)][_0x5e3d0a(0x254)](()=>{const _0x16da62=_0x5e3d0a;if(this[_0x16da62(0x110)][_0x16da62(0x287)][_0x16da62(0x2bf)])return this[_0x16da62(0x198)]['t'](_0x16da62(0x190));}));}[_0x532fcf(0xee)](){const _0x448284=_0x532fcf;this['disposeWithMe'](this[_0x448284(0x107)][_0x448284(0xf9)][_0x448284(0x1ce)](_0x539b60=>{const _0x369f12=_0x448284;_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x153)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x259))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x2d7)]&&this[_0x369f12(0x178)]['show']({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t']('collaboration.closeRoom')}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x1c3)]&&this['_notificationService'][_0x369f12(0x1c7)]({'title':this[_0x369f12(0x198)]['t'](_0x369f12(0x2ac)),'content':this['_localeService']['t']('permission.content'),'type':_0x369f12(0x1f6),'duration':0x0}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x10c)]&&this[_0x369f12(0x178)]['show']({'type':T['MessageType'][_0x369f12(0xfb)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x203))+'('+_0x539b60['data']+')'}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x139)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t'](_0x539b60[_0x369f12(0x364)]||'')}),_0x539b60['id']===u['CollaborationUIEventId'][_0x369f12(0x11d)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)]['Warning'],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x21d))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x1ef)]&&this['_messageService'][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)]['Error'],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x304))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x193)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0xfb)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x225))});}));}};z=Ht([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x532fcf(0x289)])),y(0x3,O[_0x532fcf(0x10f)]),y(0x4,O['INotificationService']),y(0x5,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1ea)]))],z);const Ft=_0x532fcf(0x2e1),Ne={},Ee=a[_0x532fcf(0x127)](_0x532fcf(0x1cc));var Wt=Object[_0x532fcf(0x1c9)],Yt=(_0x66e683,_0x193911,_0x5eec9f,_0x54899a)=>{for(var _0x55bbf1=_0x54899a>0x1?void 0x0:_0x54899a?Wt(_0x193911,_0x5eec9f):_0x193911,_0x43a95e=_0x66e683['length']-0x1,_0x4d7c79;_0x43a95e>=0x0;_0x43a95e--)(_0x4d7c79=_0x66e683[_0x43a95e])&&(_0x55bbf1=_0x4d7c79(_0x55bbf1)||_0x55bbf1);return _0x55bbf1;},F=(_0x2e2068,_0x5527c5)=>(_0x513eea,_0x104e15)=>_0x5527c5(_0x513eea,_0x104e15,_0x2e2068);exports[_0x532fcf(0x30e)]=class extends a[_0x532fcf(0x13f)]{constructor(_0x149e08,_0x73676,_0x58d2a5,_0x120122,_0x361b5e){const _0x8f60b8=_0x532fcf;super(),this[_0x8f60b8(0x319)]=_0x149e08,this['_logService']=_0x73676,this['_commandService']=_0x58d2a5,this[_0x8f60b8(0x1e8)]=_0x120122,_0x361b5e?_0x361b5e==null||_0x361b5e[_0x8f60b8(0x305)]()['then'](()=>this['_init']()):(this[_0x8f60b8(0x119)][_0x8f60b8(0x101)](_0x8f60b8(0x140),_0x8f60b8(0x35f)),this[_0x8f60b8(0x281)]());}async[_0x532fcf(0x281)](){const _0x580e90=_0x532fcf,_0x4ba3af=this['_urlService'][_0x580e90(0x339)](_0x580e90(0x2f3)),_0x593622=this['_urlService']['getParam']('type'),_0x4325fa=this[_0x580e90(0x319)]['getParam']('subunit');if(!_0x4ba3af||!_0x593622){this[_0x580e90(0x119)][_0x580e90(0x101)](_0x580e90(0x140),_0x580e90(0x280));return;}const _0x100939=await this[_0x580e90(0x1e8)][_0x580e90(0x35e)](_0x4ba3af,Number(_0x593622),_0x4325fa);_0x100939&&_0x100939 instanceof a['Workbook']&&this[_0x580e90(0x235)](_0x100939);}async[_0x532fcf(0x235)](_0x35e1ee){const _0x2425e2=_0x532fcf;await this[_0x2425e2(0x264)](_0x35e1ee),_0x35e1ee[_0x2425e2(0x2c1)][_0x2425e2(0x172)](d['takeUntil'](this['dispose$']))[_0x2425e2(0x1ce)](_0x3c04ca=>{const _0x1f7946=_0x2425e2;_0x3c04ca&&this[_0x1f7946(0x1fb)](_0x3c04ca);}),this['_urlService'][_0x2425e2(0xf2)]['pipe'](d[_0x2425e2(0x2a5)](this[_0x2425e2(0x147)]))[_0x2425e2(0x1ce)](()=>this[_0x2425e2(0x264)](_0x35e1ee));}[_0x532fcf(0x1fb)](_0x17bb80,_0x4cd1c2=!0x1){const _0x58fc3c=_0x532fcf,_0x7f680b=this[_0x58fc3c(0x319)]['getParam'](_0x58fc3c(0x1bc));_0x17bb80['getSheetId']()!==_0x7f680b&&this[_0x58fc3c(0x319)][_0x58fc3c(0x121)](_0x58fc3c(0x1bc),_0x17bb80[_0x58fc3c(0x16a)](),_0x4cd1c2);}async[_0x532fcf(0x264)](_0x2fccca){const _0x38e54f=_0x532fcf;var _0x4e9bc3;const _0x4faa33=this[_0x38e54f(0x319)][_0x38e54f(0x339)](_0x38e54f(0x1bc));if(!_0x4faa33||!_0x2fccca[_0x38e54f(0xf3)](_0x4faa33)){const _0x4d8986=_0x2fccca['getUnhiddenWorksheets']()[0x0],_0x452eb5=_0x2fccca[_0x38e54f(0xf3)](_0x4d8986);if(!_0x452eb5)return;this['_updateURLWithCurrentState'](_0x452eb5,!0x0),await this[_0x38e54f(0x2b7)]['executeCommand'](g[_0x38e54f(0x23e)]['id'],{'unitId':_0x2fccca[_0x38e54f(0x1d6)](),'subUnitId':_0x4d8986});return;}((_0x4e9bc3=_0x2fccca[_0x38e54f(0x2d8)]())==null?void 0x0:_0x4e9bc3[_0x38e54f(0x16a)]())!==_0x4faa33&&await this[_0x38e54f(0x2b7)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2fccca[_0x38e54f(0x1d6)](),'subUnitId':_0x4faa33});}},exports['CollaborationDataLoaderController']=Yt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x532fcf(0x355)]),F(0x3,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x112)])),F(0x4,a[_0x532fcf(0x328)](Ke[_0x532fcf(0x15d)]))],exports[_0x532fcf(0x30e)]);var Vt=Object[_0x532fcf(0x1c9)],Xt=(_0x1ddcc8,_0x59ff19,_0x303eb2,_0x4e0a94)=>{const _0x59269c=_0x532fcf;for(var _0x3ab783=_0x4e0a94>0x1?void 0x0:_0x4e0a94?Vt(_0x59ff19,_0x303eb2):_0x59ff19,_0x1a9408=_0x1ddcc8[_0x59269c(0x212)]-0x1,_0x4343fe;_0x1a9408>=0x0;_0x1a9408--)(_0x4343fe=_0x1ddcc8[_0x1a9408])&&(_0x3ab783=_0x4343fe(_0x3ab783)||_0x3ab783);return _0x3ab783;},le=(_0x257612,_0x412088)=>(_0x56a369,_0x2472f1)=>_0x412088(_0x56a369,_0x2472f1,_0x257612);let J=class{constructor(_0x146a28,_0x104a50,_0x176f8d){const _0x5cac29=_0x532fcf;this[_0x5cac29(0x20b)]=_0x146a28,this['_transformService']=_0x104a50,this[_0x5cac29(0x1a1)]=_0x176f8d;}[_0x532fcf(0x32f)](_0x33ba9c){const _0x5d3964=_0x532fcf;this[_0x5d3964(0x368)](_0x33ba9c),this[_0x5d3964(0x1ec)](_0x33ba9c);}[_0x532fcf(0x15c)](_0x3b69d9){const _0x5c2878=_0x532fcf,{unitID:_0x556c47}=_0x3b69d9,_0x5dc15d=this[_0x5c2878(0x1a1)][_0x5c2878(0x162)](_0x556c47)[_0x5c2878(0x15b)](b[_0x5c2878(0x2ad)]),{redoCache:_0x460432}=_0x5dc15d['getUndoRedoMutationParamsCache']();if(_0x460432[_0x5c2878(0x212)]===0x0)return _0x3b69d9;let _0x3ffea7=a['Tools'][_0x5c2878(0x335)](_0x3b69d9[_0x5c2878(0x2a9)][0x0]);for(let _0x5272bc=0x0;_0x5272bc<_0x460432[_0x5c2878(0x212)];_0x5272bc++){const _0xa3fcc5={'id':_0x5c2878(0x270),'params':{..._0x460432[_0x5272bc]}},_0x3b5bd8=this[_0x5c2878(0x14a)][_0x5c2878(0x129)](_0x3ffea7,_0xa3fcc5,!0x1);if(m[_0x5c2878(0x14b)](_0x3b5bd8))throw _0x3b5bd8[_0x5c2878(0x1f6)];_0x3ffea7=_0x3b5bd8[_0x5c2878(0x1d3)];}return{...a[_0x5c2878(0xfa)][_0x5c2878(0x335)](_0x3b69d9),'mutations':[_0x3ffea7]};}[_0x532fcf(0x368)](_0xde666){const _0x4d0002=_0x532fcf,{unitID:_0x1eb791}=_0xde666,_0x43397f=this[_0x4d0002(0x1a1)][_0x4d0002(0x162)](_0x1eb791)[_0x4d0002(0x15b)](b[_0x4d0002(0x2ad)]),{undoCache:_0x11e1f0,redoCache:_0x34e483}=_0x43397f[_0x4d0002(0xeb)]();if(_0x11e1f0[_0x4d0002(0x212)]===0x0||_0x34e483[_0x4d0002(0x212)]===0x0)return;const _0x454c83=[],_0x38c515=[];let _0x20ec7c=a[_0x4d0002(0xfa)][_0x4d0002(0x335)](_0xde666[_0x4d0002(0x2a9)][0x0]),_0xf8d7bb=a[_0x4d0002(0xfa)][_0x4d0002(0x335)](_0xde666[_0x4d0002(0x2a9)][0x0]);for(let _0x200d44=_0x11e1f0[_0x4d0002(0x212)]-0x1;_0x200d44>=0x0;_0x200d44--){const _0x4544b8={'id':'doc.mutation.rich-text-editing','params':{..._0x11e1f0[_0x200d44]}},_0x1001ea={'id':'doc.mutation.rich-text-editing','params':{..._0x34e483[_0x200d44]}},_0x196ce8=this[_0x4d0002(0x14a)]['transformMutation'](_0x20ec7c,_0x4544b8,!0x1),_0x3e115c=this['_transformService'][_0x4d0002(0x129)](_0xf8d7bb,_0x1001ea,!0x1);if(m[_0x4d0002(0x14b)](_0x196ce8))throw _0x196ce8['error'];if(m[_0x4d0002(0x14b)](_0x3e115c))throw _0x3e115c[_0x4d0002(0x1f6)];_0x454c83['unshift'](_0x196ce8[_0x4d0002(0x362)][_0x4d0002(0x222)]),_0x38c515[_0x4d0002(0xf6)](_0x3e115c[_0x4d0002(0x362)][_0x4d0002(0x222)]),_0x20ec7c=_0x196ce8[_0x4d0002(0x1d3)],_0xf8d7bb=_0x3e115c[_0x4d0002(0x1d3)];}_0x43397f[_0x4d0002(0x1e4)]({'undoCache':_0x454c83,'redoCache':_0x38c515});}[_0x532fcf(0x1ec)](_0x4aac36){const _0x3927be=_0x532fcf,{unitID:_0x1479fa}=_0x4aac36,_0x3c7a61=this[_0x3927be(0x1a1)]['getRenderById'](_0x1479fa)['with'](b[_0x3927be(0x2ad)]),_0x478b2d=_0x3c7a61['getActiveRange']();if(_0x478b2d==null)return;const _0x57e27f=[{'id':_0x3927be(0x270),'params':{'unitId':_0x4aac36['unitID'],'actions':null,'textRanges':[_0x478b2d]}}],_0x1c4ebe=this['_transformService'][_0x3927be(0x329)](_0x4aac36,_0x57e27f);if(!m[_0x3927be(0xf7)](_0x1c4ebe))throw _0x1c4ebe[_0x3927be(0x1f6)];const _0x3df67d=_0x1c4ebe['m2Prime'][0x0][_0x3927be(0x222)][_0x3927be(0x2c7)];Array['isArray'](_0x3df67d)&&_0x3df67d[_0x3927be(0x212)]&&_0x3c7a61[_0x3927be(0x1d8)](_0x3df67d[0x0]);}};J=Xt([le(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),le(0x1,m[_0x532fcf(0x17d)]),le(0x2,p[_0x532fcf(0x28e)])],J);var Gt=Object[_0x532fcf(0x1c9)],qt=(_0x2fd0e5,_0x5544c8,_0x25c8ba,_0x1b1796)=>{const _0x183658=_0x532fcf;for(var _0x148388=_0x1b1796>0x1?void 0x0:_0x1b1796?Gt(_0x5544c8,_0x25c8ba):_0x5544c8,_0x48e44f=_0x2fd0e5[_0x183658(0x212)]-0x1,_0x3dc639;_0x48e44f>=0x0;_0x48e44f--)(_0x3dc639=_0x2fd0e5[_0x48e44f])&&(_0x148388=_0x3dc639(_0x148388)||_0x148388);return _0x148388;},_e=(_0xfb7ad4,_0x43e2d2)=>(_0x52c714,_0x1d3255)=>_0x43e2d2(_0x52c714,_0x1d3255,_0xfb7ad4);let Z=class{constructor(_0x48b4c4,_0x4c4056,_0x142982){const _0x1456c2=_0x532fcf;this[_0x1456c2(0x20b)]=_0x48b4c4,this['_transformService']=_0x4c4056,this[_0x1456c2(0xe8)]=_0x142982;}['transformStateCache'](_0x20c68c){this['_transformHistoryAndStateStack'](_0x20c68c);}[_0x532fcf(0x15c)](_0x3ee2aa){const _0x52e549=_0x532fcf,{unitID:_0x37d71b}=_0x3ee2aa,{collaboration:_0xe5270}=this[_0x52e549(0xe8)][_0x52e549(0x226)](_0x37d71b);if(_0xe5270[_0x52e549(0x212)]===0x0)return _0x3ee2aa;let _0x5556e6=a[_0x52e549(0xfa)]['deepClone'](_0x3ee2aa['mutations'][0x0]);for(let _0x4ddcde=0x0;_0x4ddcde<_0xe5270['length'];_0x4ddcde++){const _0x23ab57={'id':_0x52e549(0x270),'params':{'unitId':_0xe5270[_0x4ddcde][_0x52e549(0x26e)],..._0xe5270[_0x4ddcde][_0x52e549(0x248)]}},_0x4ce0a1=this[_0x52e549(0x14a)][_0x52e549(0x129)](_0x5556e6,_0x23ab57,!0x1);if(m[_0x52e549(0x14b)](_0x4ce0a1))throw _0x4ce0a1[_0x52e549(0x1f6)];_0x5556e6=_0x4ce0a1[_0x52e549(0x1d3)];}return{...a[_0x52e549(0xfa)][_0x52e549(0x335)](_0x3ee2aa),'mutations':[_0x5556e6]};}[_0x532fcf(0x13c)](_0x2c2382){const _0x115d53=_0x532fcf,{unitID:_0x2c6874}=_0x2c2382,{history:_0x519a2f,collaboration:_0x27e9f6}=this[_0x115d53(0xe8)][_0x115d53(0x226)](_0x2c6874);if(_0x519a2f['length']===0x0&&_0x27e9f6[_0x115d53(0x212)]===0x0)return;const _0x3cb6f3=[],_0x580b74=[];let _0x52a20a=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382[_0x115d53(0x2a9)][0x0]),_0x49f69e=a['Tools']['deepClone'](_0x2c2382[_0x115d53(0x2a9)][0x0]);for(let _0x181f5a=_0x519a2f[_0x115d53(0x212)]-0x1;_0x181f5a>=0x0;_0x181f5a--){const _0x4ddbc3={'id':_0x115d53(0x270),'params':{'unitId':_0x519a2f[_0x181f5a][_0x115d53(0x26e)],..._0x519a2f[_0x181f5a][_0x115d53(0x19c)]}},_0x79ac9a={'id':_0x115d53(0x270),'params':{'unitId':_0x519a2f[_0x181f5a][_0x115d53(0x26e)],..._0x519a2f[_0x181f5a][_0x115d53(0x248)]}},_0x22579d=this['_transformService'][_0x115d53(0x129)](_0x52a20a,_0x4ddbc3,!0x1),_0x4fcf97=this['_transformService'][_0x115d53(0x129)](_0x49f69e,_0x79ac9a,!0x1);if(m['isTransformMutationFailure'](_0x22579d))throw _0x22579d['error'];if(m[_0x115d53(0x14b)](_0x4fcf97))throw _0x4fcf97[_0x115d53(0x1f6)];_0x3cb6f3[_0x115d53(0xf6)]({..._0x519a2f[_0x181f5a],'undoState':_0x22579d['m2Prime'][_0x115d53(0x222)],'redoState':_0x4fcf97[_0x115d53(0x362)][_0x115d53(0x222)]}),_0x52a20a=_0x22579d[_0x115d53(0x1d3)],_0x49f69e=_0x4fcf97['m1Prime'];}_0x52a20a=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382[_0x115d53(0x2a9)][0x0]),_0x49f69e=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382['mutations'][0x0]);for(let _0x5ea0ad=_0x27e9f6[_0x115d53(0x212)]-0x1;_0x5ea0ad>=0x0;_0x5ea0ad--){const _0x3c157e={'id':_0x115d53(0x270),'params':{'unitId':_0x27e9f6[_0x5ea0ad]['unitId'],..._0x27e9f6[_0x5ea0ad]['undoState']}},_0x5867bf={'id':_0x115d53(0x270),'params':{'unitId':_0x27e9f6[_0x5ea0ad][_0x115d53(0x26e)],..._0x27e9f6[_0x5ea0ad][_0x115d53(0x248)]}},_0x363cea=this[_0x115d53(0x14a)][_0x115d53(0x129)](_0x52a20a,_0x3c157e,!0x1),_0x43a8c2=this[_0x115d53(0x14a)][_0x115d53(0x129)](_0x49f69e,_0x5867bf,!0x1);if(m['isTransformMutationFailure'](_0x363cea))throw _0x363cea[_0x115d53(0x1f6)];if(m['isTransformMutationFailure'](_0x43a8c2))throw _0x43a8c2[_0x115d53(0x1f6)];_0x580b74[_0x115d53(0xf6)]({..._0x27e9f6[_0x5ea0ad],'undoState':_0x363cea[_0x115d53(0x362)][_0x115d53(0x222)],'redoState':_0x43a8c2[_0x115d53(0x362)][_0x115d53(0x222)]}),_0x52a20a=_0x363cea['m1Prime'],_0x49f69e=_0x43a8c2['m1Prime'];}this[_0x115d53(0xe8)][_0x115d53(0x2ef)](_0x2c6874,{'history':_0x3cb6f3,'collaboration':_0x580b74});}};Z=qt([_e(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),_e(0x1,m[_0x532fcf(0x17d)]),_e(0x2,a['Inject'](b[_0x532fcf(0x154)]))],Z);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x4a38f7,_0x2bbdac,_0x505c62,_0x15d8bc)=>{const _0x58b783=_0x532fcf;for(var _0x1e8a8b=_0x15d8bc>0x1?void 0x0:_0x15d8bc?Kt(_0x2bbdac,_0x505c62):_0x2bbdac,_0x222ff8=_0x4a38f7[_0x58b783(0x212)]-0x1,_0x180e8e;_0x222ff8>=0x0;_0x222ff8--)(_0x180e8e=_0x4a38f7[_0x222ff8])&&(_0x1e8a8b=_0x180e8e(_0x1e8a8b)||_0x1e8a8b);return _0x1e8a8b;},Me=(_0x2203c4,_0x3384b5)=>(_0x4a40d8,_0x321f16)=>_0x3384b5(_0x4a40d8,_0x321f16,_0x2203c4);let Q=class{constructor(_0x3da65f,_0x1f481a){const _0x4743ea=_0x532fcf;this['_injector']=_0x3da65f,this[_0x4743ea(0x14a)]=_0x1f481a;}[_0x532fcf(0x330)](_0x50c14a){const _0x3d8536=_0x532fcf;var _0x2b6be9;const _0x2c1462=this['_injector'][_0x3d8536(0x2b0)](Y['DocSelectionManagerService']),_0x467a7b=(_0x2b6be9=_0x2c1462['getDocRanges']())!=null?_0x2b6be9:[];if(_0x467a7b[_0x3d8536(0x212)]===0x0)return;const _0x2141d1=_0x50c14a[_0x3d8536(0x21b)],_0x294004=[{'id':_0x3d8536(0x270),'params':{'unitId':_0x2141d1,'actions':null,'textRanges':_0x467a7b}}],_0x4a2772=this['_transformService'][_0x3d8536(0x329)](_0x50c14a,_0x294004);if(!m[_0x3d8536(0xf7)](_0x4a2772))throw _0x4a2772['error'];const _0x275d17=_0x4a2772[_0x3d8536(0x362)][0x0][_0x3d8536(0x222)]['textRanges'];Array['isArray'](_0x275d17)&&_0x275d17[_0x3d8536(0x212)]&&_0x2c1462['replaceDocRanges'](_0x275d17,{'unitId':_0x2141d1,'subUnitId':_0x2141d1},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x532fcf(0x282)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x532fcf(0x1c9)],Zt=(_0x40d476,_0x4cba89,_0x28e4b8,_0x57e370)=>{const _0x2f3d0c=_0x532fcf;for(var _0x1a87d9=_0x57e370>0x1?void 0x0:_0x57e370?Jt(_0x4cba89,_0x28e4b8):_0x4cba89,_0x28331c=_0x40d476[_0x2f3d0c(0x212)]-0x1,_0x479967;_0x28331c>=0x0;_0x28331c--)(_0x479967=_0x40d476[_0x28331c])&&(_0x1a87d9=_0x479967(_0x1a87d9)||_0x1a87d9);return _0x1a87d9;},N=(_0x21087d,_0x366bfb)=>(_0x3e6507,_0xd9dad0)=>_0x366bfb(_0x3e6507,_0xd9dad0,_0x21087d);let ee=class extends a[_0x532fcf(0x160)]{constructor(_0x194c18,_0x30454b,_0xd059d5,_0x30220c,_0x507e4c,_0x363c30,_0x2f378b,_0x2cf5e4){const _0x3fe64d=_0x532fcf;super(),_(this,_0x3fe64d(0x239),new d['BehaviorSubject'](u[_0x3fe64d(0x2ba)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x194c18,this[_0x3fe64d(0x1e6)]=_0x30454b,this[_0x3fe64d(0x2ae)]=_0xd059d5,this[_0x3fe64d(0x1ae)]=_0x30220c,this[_0x3fe64d(0x2e8)]=_0x507e4c,this[_0x3fe64d(0x320)]=_0x363c30,this[_0x3fe64d(0x178)]=_0x2f378b,this[_0x3fe64d(0x198)]=_0x2cf5e4,this[_0x3fe64d(0x180)]());}[_0x532fcf(0x180)](){const _0xa49182=_0x532fcf;this[_0xa49182(0x35c)](this['_collaborationController'][_0xa49182(0x257)][_0xa49182(0x1ce)](_0x400668=>{const _0x334a39=_0xa49182,_0x993633=this[_0x334a39(0xe8)][_0x334a39(0x1fe)][_0x334a39(0x1ce)](_0x1499ce=>{const _0x41c67a=_0x334a39;if(_0x1499ce==null)return;const {unitId:_0x46897c,redoState:_0x3fd129,commandId:_0x3cb20b}=_0x1499ce;if(_0x46897c!==_0x400668[_0x41c67a(0x21b)])return;const _0x2aa65a={'id':_0x3cb20b,'type':a[_0x41c67a(0x256)][_0x41c67a(0x114)],'params':{'unitId':_0x46897c,'actions':_0x3fd129['actions'],'textRanges':null}};_0x400668[_0x41c67a(0x245)](_0x2aa65a);});if(_0x400668['disposeWithMe'](_0x993633),_0x400668 instanceof u[_0x334a39(0x2f7)]){const _0x55cbe2={'onTransformIME':_0x2be280=>this[_0x334a39(0x2ae)][_0x334a39(0x32f)](_0x2be280),'onTransformState':_0x50ed15=>this[_0x334a39(0x1ae)]['transformStateCache'](_0x50ed15),'onTransformSelections':_0x59d32e=>this['_docTransformSelectionsService'][_0x334a39(0x330)](_0x59d32e),'onSyncEditingCollabCursor':_0xd39800=>this[_0x334a39(0x320)][_0x334a39(0x352)](_0xd39800),'onTransformRemoteChangesetByIMECache':_0x80d61b=>this[_0x334a39(0x2ae)][_0x334a39(0x15c)](_0x80d61b),'onTransformRemoteChangesetByStateCache':_0x3589f4=>this[_0x334a39(0x1ae)][_0x334a39(0x15c)](_0x3589f4)};_0x400668['addHandlerCallback'](_0x55cbe2);}}));}};function _0x36f2(){const _0x20db4c=['column','tag','NO_OTHER_CLIENTS_EDITING','params','pushState','svg','session.collaboration-timeout','getStateCache','ONLINE','collab-text-range-','USER_NOT_INVITED_CODE','requireSession','addClipboardHook','UnitStatus','toDisposable','round','getMember','RemoteUniscriptService','univer-online-status','VIEW_MAIN','none','onlineStatus','_setupSubUnitSync','CollaborationSessionService','_scheduleHeartbeat','off-line-single','_status$','TEXT_RANGE_LAYER_INDEX','_getMergeRange','indexOf','_onCursorDelete','SetWorksheetActivateCommand','getRangePointData','name','_refRangeService','_registerRenderDependencies','getUnitStatus$','asObservable','onLocalMutation','_assignedColors','WECHAT_HAS_BEEN_BOUND','redoState','_eventUnsubscribe','CollaborationUIEventId','_getSheetObject','InsertRowCommandId','generateRandomId','subUnitId','LOGIN_FAILED','RECT','UniverIcon','from','createElement','registerBeforeClose','toString','CommandType','entityInit$','88TdnbHM','collaboration.single-unit.warning','values','collabStatus.offline','_handleJoinEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','handleInsertRangeMoveRight','@univerjs/engine-formula','current','univer-offline','onMouseMove','getDocRanges','_updateSubUnitFromURLParams','_clearOtherTimers','_initStatusComponent','_online','_context','LOCAL_CACHE_INTERVAL_KEY','fillText','exhaustSavingTask','url(#off-line-single_clip0_910_343)','CollaborationStatusDisplay','unitId','fillStyle','doc.mutation.rich-text-editing','getRelativeToViewportCoord','Module','CollaborationEvent','toStringTag','@univerjs/ui','1em','_docSkeletonManagerService','15836194mQAKdQ','...','@univerjs/sheets','text','_docClipboardService','parse','colorChannel1','bottom','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_init','Injector','touchDependencies','roomMembers','_getScale','focused$','saveTaskMap','RemoveColCommandId','CollaborationUIEventService','next','HEADER_MENU','_anchor','SetSelectionsOperation','IRenderManagerService','assign','storage','Unknown\x20user','SNAPSHOT_INVALID_SNAPSHOT','_textBubble','eventID','OFFLINE','UniverInstanceType','debounce','body','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ILocalCacheService','currentTheme$','beginPath','univer-online-status-title','InsertRangeMoveRightCommandId','onlineStatusTitle','handleIRemoveRow','@univerjs/engine-render','useRef','delete','UNIVER_DOC','takeUntil','CollaborationSocketService','@univerjs/docs','getSkeleton','mutations','LICENSE_EXPORT_SIZE_EXCEEDED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','permission.title','DocIMEInputManagerService','_docTransformIMECacheService','map','get','editingUnit','range','_handleHover','@univerjs-pro/collaboration-client','APPLY_NON_SEQUENTIAL_REVISION','_localStorageService','_commandService','INVITE_CODE_REQUIRED','url(#$1','CollaborationStatus','send','url(#on-line-single_clip0_910_349)','clsx','startRow','size','0\x200\x2016\x2016','activeSheet$','getTypeOfUnitDisposed$','concat','origin','subscribeEvent','UNAUTHENTICATED','textRanges','getCurrentSelections','onPointerLeave$','string','ISocketService','DesktopCollaborationStatusDisplayController','_lastPointer','Inject','TEXT','_beforeCloseService','RemoveRowCommandId','popstate','onStarting','row','_colorAssignService','override','CLOSE_ROOM','getActiveSheet','APPLY_REVISION_CONFILICT','_initCommandExecutedListener','makeDirty','defIds','key','432414iaSzcP','_onCursorUpdate','_collabCursorState$','collaboration-client-ui.config','push','_updateCollabCursors','Plugin','_initResize','mergeOverrideWithDependencies','throttleTime','_docTransformSelectionsService','removeParam','_removeClearOtherTimer','ILogService','collabCursorState$','INVALID_ARGUMENT','_colorIndex','setStateCache','saveImage','registerDependencies','collabStatus.fetchMiss','unit','_startDocCollabCursor','getMemberID','BrowserCollaborationSocketService','DocCollaborationEntity','setAlpha','skeleton','toRgbString','call','purple300','@univerjs/docs-ui','merge','assignAColorForMemberID','MOBILE_HAS_BEEN_BOUND','_entityInit$','OnLineSingle','clearInterval','session.connection-failed','whenReady','_getSessionTicket','clipPath','getConfig','width','_saveCache','_startSheetCollabCursor','getColor','ColorKit','CollaborationDataLoaderController','trim','NOT_COLLAB','handleDeleteRangeMoveLeft','cursorInfo$','deserializeRangeWithSheet','searchParams','_imageIoService','LICENSE_DISTRO_REJECTED','UNRECOGNIZED','univerjs-icon\x20univerjs-icon-','_urlService','_disabled','HTTPService','top','_saveTaskMap','extend','getViewport','_docSyncEditingCollabCursorService','source','createInstance','IImageIoService','getCellPositionByOffset','BehaviorSubject','evenodd','getCurrent','Optional','transformMutationsWithChangeset','_initStatusListener','_configService','_drawTextRange','_themeService','createSocket','transformIMECache','transformSelections','symbol','Rect','offline','_httpService','deepClone','_unitStatus','getSheetObject','invokeId','getParam','collab-text-anchor-','jsx','_instanceService','IUIPartsService','_handleLeaveEvent','PY_RUNTIME_SCRIPT_ERROR','enableLocalCache','black','off-line-single_clip0_910_343','InsertColCommandId','forEach','setShapeProps','getOwnPropertySymbols','complete','_heartbeatTimer','Tooltip','_setupBeforeClosingHandler','IURLService','mapTo','SHEET_VIEWPORT_KEY','split','collab-rect-range-','onPointerEnter$','EMAIL_HAS_BEEN_BOUND','syncEditingCollabCursor','isActive','unload','ICommandService','UPDATE_CURSOR','M0\x200H16V16H0z','366457OlPpPF','disposeUnit','min','COMPLETION_FINISHED','disposeWithMe','collabStatus.syncing','loadUnit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','9IuWbBo','getValue','m2Prime','INVITE_CODE_ALREADY_BOUND','data','PENDING','univer-flex\x20univer-items-center','_cursorShapes','_transformUndoRedoStack','_syncEditingCollabCursorService','NodePositionConvertToRectRange','DeleteRangeMoveUpCommandId','UniverCollaborationClientPlugin','getUniverSheetInstance','_cachedData','SessionStatus','_cursor','_docStateChangeManagerService','path','APPLY_DUPLICATED','getUndoRedoMutationParamsCache','_selfUnitIDs','_cursors','_initEvent','startColumn','combineLatest','DOC_RANGE_TYPE','urlChange$','getSheetBySheetId','runId','getCollabCursors$','unshift','isTransformMutationsWithChangesetSuccess','getVpScrollXYInfoByPosToVp','event$','Tools','Error','_cursorInfo$','roomMembers$','substring','use','arc','debug','@univerjs/sheets-ui','_scheduleSaving','WebSocketService','LOCAL_CACHE_INTERVAL','_getAnchorBounding','_collaborationUIEventService','_getSaveTimeout','defs','add','isArray','CONFLICT','moveTo','RegularPolygon','IMessageService','_localCacheService','InsertRangeMoveDownCommandId','DataLoaderService','verdancy600','MUTATION','TOO_MANY_REQUESTS','IConfigService','1786580EkJJCj','OTHER_CLIENTS_EDITING','_logService','idSuffix','INVALID_INVITE_CODE','propertyIsEnumerable','SOCKET_FAILED_RETRY','setItem','executionId','AWAITING','setParam','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_scene','_hover','has','sessionTicket','createIdentifier','_entities','transformMutation','onRendered','lineTo','@univerjs/core','_memberService','jsxs','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','12BAoJro','_backgroundColor','color','_roomMembers$','collab-client.tooltip.reconnect','LICENSE_IMPORT_SIZE_EXCEEDED','DocSelectionManagerService','dispose','CollaborationController','JOIN_ROOM_FAILED','useObservable','stringify','_transformHistoryAndStateStack','hasOwnProperty','getLocalCacheKey','RxDisposable','[CollaborationDataLoaderController]','_refreshCollabCursors','displayName','_uiPartsService','newValue','MemberService','DependentOn','dispose$','IDocClipboardService','IUniverInstanceService','_transformService','isTransformMutationFailure','find','xlink:href','_labelPosition','_hovered','fill','@univerjs/drawing','60UEskpn','OTHER_CLIENT_EDITING','DocStateChangeManagerService','getTypeOfUnitAdded$','fromEventSubject','USERS_LEAVE','_createSocketURL','_collabCursorController','_unitOnClients','with','transformRemoteChangeset','IRemoteInstanceService','href','#fff','Disposable','NOT_FOUND','getRenderById','handleDeleteRangeMoveUp','registerRenderModule','@univerjs/rpc','endRow','_updateLocalCursor','_drawRectRange','/run/','getSheetId','handleInsertRangeMoveDown','ticket','on-line-single_clip0_910_349','getItem','closePath','handleMoveRange','className','pipe','getCollabEntity$','@univerjs-pro/collaboration','UniverCollaborationClientUIPlugin','Subject','some','_messageService','status$','rgba(255,\x20255,\x20255,\x200.01)','_toggleOffline','unsubscribe','ITransformService','attrs','setConfig','_initEntityListener','filter','#FFF','_univerInstanceService','_shapes','forwardRef','_removeCollabCursors','defineProperty','Failed','ENSURE_SNAPSHOT_EXECUTION','SetTextSelectionsOperation','debounceTime','CHANGESET_REVISION_CONFILICT','EffectRefRangId','_toggleOnline','_document','collaboration-client.offline-data-not-saved','findNodePositionByCharIndex','UNDEFINED','SUBMIT_CHANGESET_TIMEOUT','drawWith','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UNIVER_SHEET','getOffsetConfig','_localeService','on-line-single','_initDependencies','44211QOYwzY','undoState','_revisionService','type','currentSkeleton$','_config','_renderManagerService','distinctUntilChanged','cursorInfo','contains','YUUMI_ASYNCIO_CANCELLED','_collabSessionService','DisposableCollection','getCoordByCell','getAncestorScale','sessionStatus$','RichTextEditingMutation','jiqing500','YUUMI_URL_COL_OUT_OF_RANGE','_docTransformStateCacheService','2313886BkbavK','ThemeService','selection','ranges','_doCreateSocket','0\x200\x2017\x2016','loadOfflineData','then','YUUMI_RATE_OVER_LIMIT','collabStatus.notCollab','apply','addObject','disableLocalCache','subunit','RevisionService','_render','history','clearTimeout','Shape','imageSourceType','PERMISSION_DENIED','_hideTimer','hide','DeleteRangeMoveLeftCommandId','show','_ensureSubject','getOwnPropertyDescriptor','rxjs','OffLineSingle','uni.network.url-service','children','subscribe','sheetID','APPLY_PERMISSION_DENIED','flatMap','restore','m1Prime','FromArray','backgroundColor','getUnitId','537441xVxWgx','setActiveRange','measureText','@univerjs/network','startsWith','location','prototype','Vector2','Warning','replaceState','save','div','onCommandExecuted','setUndoRedoMutationParamsCache','_id','_collaborationController','collabStatus.conflict','_dataLoaderService','MessageType','LocaleService','getCurrentUnitForType','_transformPreviousActiveRange','_anchorDot','YUUMI_UNABLE_LOAD_URL','SOCKET_FAILED','fromEvent','function','COLORS','@univerjs/design','memberID','gold400','error','saveOfflineData','RefRangeService','_session','connectInjector','_updateURLWithCurrentState','translate(.97)','YUUMI_SUBSCRIPTION_NOT_FOUND','docStateChange$','_sheetSkeletonManagerService','sheetId','onPointerMove$','_color','collaboration.closeRoom','_registerDependencies','init','getMergeData','INVITE_CODE_HAS_BEEN_UES','set','ILocalStorageService','registerRefRange','_injector','useDependency','setTimeout','getFocusedUnit','_handleHeartbeatEvent','20nGpEIk','_send','length','SetDocZoomRatioOperation','_onRefRangeChange','hovered','_range','switchMap','_scheduleClearOtherTimer','CONNECTOR_DATA_TOO_LARGE','endColumn','unitID','_name','session.will-retry','WebURLService'];_0x36f2=function(){return _0x20db4c;};return _0x36f2();}ee=Zt([N(0x0,a['Inject'](b[_0x532fcf(0x154)])),N(0x1,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x138)])),N(0x2,a[_0x532fcf(0x2ce)](J)),N(0x3,a[_0x532fcf(0x2ce)](Z)),N(0x4,a[_0x532fcf(0x2ce)](Q)),N(0x5,a[_0x532fcf(0x2ce)](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object[_0x532fcf(0x1c9)],es=(_0x1df3bd,_0x381ae3,_0x583ac4,_0x386391)=>{for(var _0x21473e=_0x386391>0x1?void 0x0:_0x386391?Qt(_0x381ae3,_0x583ac4):_0x381ae3,_0x5b504e=_0x1df3bd['length']-0x1,_0x55ce37;_0x5b504e>=0x0;_0x5b504e--)(_0x55ce37=_0x1df3bd[_0x5b504e])&&(_0x21473e=_0x55ce37(_0x21473e)||_0x21473e);return _0x21473e;},he=(_0x2ceabc,_0x2fbe10)=>(_0xd3cba3,_0x35e4ea)=>_0x2fbe10(_0xd3cba3,_0x35e4ea,_0x2ceabc);let me=class extends a[_0x532fcf(0x160)]{constructor(_0x31669c,_0x1b2dae,_0xca02db){const _0x16d399=_0x532fcf;super(),_(this,_0x16d399(0x36e),new Map()),_(this,_0x16d399(0x31d),new Map()),_(this,'_disabled',!0x1),(this[_0x16d399(0x32b)]=_0x31669c,this[_0x16d399(0x2b6)]=_0x1b2dae,this[_0x16d399(0x19d)]=_0xca02db);}[_0x532fcf(0x1bb)](){const _0x5032f5=_0x532fcf;this[_0x5032f5(0x31a)]=!0x0;}[_0x532fcf(0x340)](){this['_disabled']=!0x1;}get[_0x532fcf(0x287)](){const _0x2f3940=_0x532fcf;return this[_0x2f3940(0x31d)];}[_0x532fcf(0x137)](){const _0x5ec448=_0x532fcf;this[_0x5ec448(0x26b)]()[_0x5ec448(0x1b6)](()=>super[_0x5ec448(0x137)]());}async[_0x532fcf(0x1b5)](_0x839f7e){const _0x3ae3d8=_0x532fcf;return this[_0x3ae3d8(0x31a)]?null:this[_0x3ae3d8(0x2b6)][_0x3ae3d8(0x16e)](u[_0x3ae3d8(0x13e)](_0x839f7e));}async[_0x532fcf(0x1f7)](_0x34404f,_0x3c9fbe){const _0x43c6c4=_0x532fcf;return!!this[_0x43c6c4(0x2b6)]['setItem'](_0x34404f,_0x3c9fbe);}['updateOfflineData'](_0x5ac57e,_0x4341c3,_0x28c53d,_0x56bbbc){const _0x4c153f=_0x532fcf,_0x315311=this['_revisionService']['getCurrentRevOfUnit'](_0x5ac57e);this['_cachedData']['set'](_0x5ac57e,{'unitID':_0x5ac57e,'type':_0x4341c3,'awaitingChangeset':_0x28c53d,'mutations':_0x56bbbc,'rev':_0x315311}),this[_0x4c153f(0x31d)][_0x4c153f(0x125)](_0x5ac57e)||this['_scheduleSaving'](_0x5ac57e);}[_0x532fcf(0x103)](_0x27da6f){const _0x5ff686=_0x532fcf,_0x1647cd=this[_0x5ff686(0x108)]();_0x1647cd===0x0?this[_0x5ff686(0x30a)](_0x27da6f):this[_0x5ff686(0x31d)]['set'](_0x27da6f,setTimeout(()=>this[_0x5ff686(0x30a)](_0x27da6f),_0x1647cd));}[_0x532fcf(0x108)](){const _0x4178b0=_0x532fcf;var _0xf5fa38;return(_0xf5fa38=this[_0x4178b0(0x32b)][_0x4178b0(0x308)](u[_0x4178b0(0x269)]))!=null?_0xf5fa38:u[_0x4178b0(0x105)];}['_saveCache'](_0x2b472f){const _0x5e94ff=_0x532fcf,_0x4e204c=this[_0x5e94ff(0x31d)][_0x5e94ff(0x2b0)](_0x2b472f);return _0x4e204c!==void 0x0&&window[_0x5e94ff(0x1c0)](_0x4e204c),this[_0x5e94ff(0x2b6)][_0x5e94ff(0x11e)](u[_0x5e94ff(0x13e)](_0x2b472f),this[_0x5e94ff(0x36e)][_0x5e94ff(0x2b0)](_0x2b472f))['then'](()=>this[_0x5e94ff(0x31d)]['delete'](_0x2b472f));}async[_0x532fcf(0x26b)](){const _0x545bf9=_0x532fcf,_0x27162e=[];this['_saveTaskMap'][_0x545bf9(0x344)]((_0x546aa9,_0x3dc276)=>{const _0xc11358=_0x545bf9;window[_0xc11358(0x1c0)](_0x546aa9),_0x27162e['push'](this[_0xc11358(0x30a)](_0x3dc276)['then'](()=>{const _0x1f1928=_0xc11358;this[_0x1f1928(0x31d)][_0x1f1928(0x2a3)](_0x3dc276);}));}),await Promise['all'](_0x27162e);}};me=es([he(0x0,a['IConfigService']),he(0x1,a[_0x532fcf(0x209)]),he(0x2,a[_0x532fcf(0x2ce)](m[_0x532fcf(0x1bd)]))],me);class Be extends a[_0x532fcf(0x13f)]{constructor(){const _0x859719=_0x532fcf;super(),_(this,'urlChange$'),this[_0x859719(0xf2)]=d['fromEvent'](window,_0x859719(0x2d2))[_0x859719(0x172)](d[_0x859719(0x2a5)](this[_0x859719(0x147)]),d['shareReplay'](0x1),d[_0x859719(0x34c)](void 0x0));}[_0x532fcf(0x121)](_0x157309,_0x59288c,_0x229f6f=!0x1){const _0x4c5772=_0x532fcf,_0x18d855=new URL(window[_0x4c5772(0x1dc)]['href']);_0x18d855[_0x4c5772(0x314)][_0x4c5772(0x208)](_0x157309,_0x59288c),_0x229f6f?window[_0x4c5772(0x1bf)]['replaceState']('','',_0x18d855['toString']()):window[_0x4c5772(0x1bf)][_0x4c5772(0x223)]('','',_0x18d855[_0x4c5772(0x255)]());}[_0x532fcf(0x2e9)](_0x16b575,_0x14a0f4=!0x1){const _0x49c57d=_0x532fcf,_0x5bd4fb=new URL(window[_0x49c57d(0x1dc)][_0x49c57d(0x15e)]);_0x5bd4fb[_0x49c57d(0x314)][_0x49c57d(0x2a3)](_0x16b575),_0x14a0f4?window[_0x49c57d(0x1bf)][_0x49c57d(0x1e0)]('','',_0x5bd4fb[_0x49c57d(0x255)]()):window[_0x49c57d(0x1bf)][_0x49c57d(0x223)]('','',_0x5bd4fb[_0x49c57d(0x255)]());}[_0x532fcf(0x339)](_0x4bd1be){const _0x5ed3bd=_0x532fcf;var _0x27e3d0;return(_0x27e3d0=new URL(window['location'][_0x5ed3bd(0x15e)])[_0x5ed3bd(0x314)]['get'](_0x4bd1be))!=null?_0x27e3d0:void 0x0;}}var ts=Object[_0x532fcf(0x187)],ss=Object[_0x532fcf(0x1c9)],ns=(_0x234e62,_0x125757,_0x29a01f)=>_0x125757 in _0x234e62?ts(_0x234e62,_0x125757,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29a01f}):_0x234e62[_0x125757]=_0x29a01f,is=(_0x2a2742,_0x4a916f,_0x505a8f,_0x3e28b7)=>{const _0x17328b=_0x532fcf;for(var _0x19d80d=_0x3e28b7>0x1?void 0x0:_0x3e28b7?ss(_0x4a916f,_0x505a8f):_0x4a916f,_0x1bfe10=_0x2a2742[_0x17328b(0x212)]-0x1,_0x56e201;_0x1bfe10>=0x0;_0x1bfe10--)(_0x56e201=_0x2a2742[_0x1bfe10])&&(_0x19d80d=_0x56e201(_0x19d80d)||_0x19d80d);return _0x19d80d;},ue=(_0x544443,_0x51844e)=>(_0xa76e7d,_0x2dbb65)=>_0x51844e(_0xa76e7d,_0x2dbb65,_0x544443),rs=(_0x542103,_0x4a4183,_0x549a20)=>ns(_0x542103,_0x4a4183+'',_0x549a20);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x532fcf(0x175)]=class extends a[_0x532fcf(0x2e4)]{constructor(_0xaa6fcd=Ne,_0x97c801,_0x2605ef,_0x58a314){const _0x417ee2=_0x532fcf;super(),this[_0x417ee2(0x1a0)]=_0xaa6fcd,this[_0x417ee2(0x1a1)]=_0x97c801,this['_injector']=_0x2605ef,this['_configService']=_0x58a314;const {..._0x3109b3}=a['merge']({},Ne,this['_config']);this[_0x417ee2(0x32b)][_0x417ee2(0x17f)](Ft,_0x3109b3);}[_0x532fcf(0x2d3)](){const _0x3cb53b=_0x532fcf;this[_0x3cb53b(0x204)](),this[_0x3cb53b(0x19a)]();}[_0x532fcf(0x12a)](){const _0x15f399=_0x532fcf;this[_0x15f399(0x242)]();}['_registerDependencies'](){const _0x284020=_0x532fcf;var _0xf8263e;const _0x4eda70=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x284020(0x2cb)],{'useClass':q[_0x284020(0x104)]}],[u[_0x284020(0x29a)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x284020(0x30e)]]];a[_0x284020(0x2f1)](this[_0x284020(0x20b)],a[_0x284020(0x2e6)](_0x4eda70,(_0xf8263e=this[_0x284020(0x1a0)])==null?void 0x0:_0xf8263e[_0x284020(0x2d6)]));}['_registerRenderDependencies'](){const _0x402199=_0x532fcf;this['disposeWithMe'](this[_0x402199(0x1a1)][_0x402199(0x164)](a[_0x402199(0x296)][_0x402199(0x2a4)],[ve])),this[_0x402199(0x35c)](this[_0x402199(0x1a1)]['registerRenderModule'](a[_0x402199(0x296)][_0x402199(0x196)],[ge]));}[_0x532fcf(0x19a)](){const _0x247854=_0x532fcf;a[_0x247854(0x283)](this[_0x247854(0x20b)],[[x],[exports[_0x247854(0x2cc)]],[ee],[z],[exports[_0x247854(0x30e)]]]);}},rs(exports[_0x532fcf(0x175)],'pluginName',os),exports[_0x532fcf(0x175)]=is([a[_0x532fcf(0x146)](u[_0x532fcf(0x36c)]),ue(0x1,p[_0x532fcf(0x28e)]),ue(0x2,a['Inject'](a[_0x532fcf(0x282)])),ue(0x3,a[_0x532fcf(0x116)])],exports[_0x532fcf(0x175)]);var as=Object[_0x532fcf(0x1c9)],cs=(_0x1366bd,_0x16a920,_0x5b8e5a,_0xf2544f)=>{const _0x384bd1=_0x532fcf;for(var _0x1ddb42=_0xf2544f>0x1?void 0x0:_0xf2544f?as(_0x16a920,_0x5b8e5a):_0x16a920,_0xc90540=_0x1366bd[_0x384bd1(0x212)]-0x1,_0x4399f2;_0xc90540>=0x0;_0xc90540--)(_0x4399f2=_0x1366bd[_0xc90540])&&(_0x1ddb42=_0x4399f2(_0x1ddb42)||_0x1ddb42);return _0x1ddb42;},W=(_0x181466,_0x29771c)=>(_0xf9ba90,_0xce3da4)=>_0x29771c(_0xf9ba90,_0xce3da4,_0x181466);exports[_0x532fcf(0x2f6)]=class extends u[_0x532fcf(0x2a6)]{constructor(_0x1b5a73,_0x4327fc,_0x11ae8e,_0x42b049,_0x33b9b0){super(_0x1b5a73,_0x4327fc,_0x11ae8e,_0x42b049,_0x33b9b0);}async[_0x532fcf(0x32e)](_0x1220bc){const _0x432937=_0x532fcf,_0xc934bc=await this[_0x432937(0x306)](),_0x428d6e=this[_0x432937(0x158)](_0x1220bc,_0xc934bc);return this[_0x432937(0x1b3)](_0x428d6e);}[_0x532fcf(0x158)](_0x5e8059,_0x7ab5df){const _0x16a6c1=_0x532fcf,_0x758d7c=typeof window>'u'?new URL(_0x5e8059):new URL(_0x5e8059,window[_0x16a6c1(0x1dc)][_0x16a6c1(0x2c4)]);_0x758d7c['searchParams'][_0x16a6c1(0x208)](_0x16a6c1(0x126),_0x7ab5df);const _0x2184b1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x16a6c1(0x1dc)]['search']);return _0x2184b1[_0x16a6c1(0x2b0)]('runId')&&_0x758d7c['searchParams'][_0x16a6c1(0x208)](_0x16a6c1(0xf4),_0x2184b1[_0x16a6c1(0x2b0)](_0x16a6c1(0xf4))),_0x758d7c[_0x16a6c1(0x255)]();}async[_0x532fcf(0x306)](){const _0xca9229=_0x532fcf;var _0x248c9d,_0x2ea742,_0xb7ab9b;const _0x508f85=this[_0xca9229(0x32b)][_0xca9229(0x308)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2259fe=(_0x248c9d=_0x508f85==null?void 0x0:_0x508f85['wsSessionTicketUrl'])!=null?_0x248c9d:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0xb7ab9b=(_0x2ea742=(await this[_0xca9229(0x334)]['get'](_0x2259fe,{'headers':{'Content-Type':'application/json'}}))[_0xca9229(0x298)])==null?void 0x0:_0x2ea742[_0xca9229(0x16c)])!=null?_0xb7ab9b:'';}},exports[_0x532fcf(0x2f6)]=cs([W(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),W(0x1,a['Inject'](q[_0x532fcf(0x31b)])),W(0x2,a['IConfigService']),W(0x3,a[_0x532fcf(0x2eb)]),W(0x4,m['ISnapshotServerService'])],exports[_0x532fcf(0x2f6)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x532fcf(0x160)]{constructor(){const _0x2e5e76=_0x532fcf;super(),_(this,_0x2e5e76(0x1e5),a[_0x2e5e76(0x24d)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x2e5e76(0x15a),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x2e5e76(0x336),new Map()),this[_0x2e5e76(0x281)]();}[_0x532fcf(0x137)](){const _0x21b244=_0x532fcf;super[_0x21b244(0x137)](),this[_0x21b244(0x265)]['forEach']((_0x4ced5c,_0x4a9a26)=>this[_0x21b244(0x2ea)](_0x4a9a26)),this[_0x21b244(0x348)]&&window[_0x21b244(0x303)](this[_0x21b244(0x348)]);}[_0x532fcf(0x243)](_0x2a14b5){const _0xc1f9e8=_0x532fcf;return this[_0xc1f9e8(0x1c8)](_0x2a14b5)[_0xc1f9e8(0x172)](d[_0xc1f9e8(0x1a2)]());}[_0x532fcf(0x2b1)](_0x5eaaca){const _0x2a5374=_0x532fcf;this[_0x2a5374(0xec)][_0x2a5374(0x2bf)]===0x0&&this[_0x2a5374(0x237)](),this[_0x2a5374(0xec)]['add'](_0x5eaaca),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5eaaca],'isForwarded':!0x1});}[_0x532fcf(0x359)](_0x5b05ac){const _0x2ac283=_0x532fcf;this[_0x2ac283(0xec)][_0x2ac283(0x2a3)](_0x5b05ac),this['_selfUnitIDs'][_0x2ac283(0x2bf)]===0x0&&this[_0x2ac283(0x348)]&&window[_0x2ac283(0x303)](this[_0x2ac283(0x348)]);}[_0x532fcf(0x281)](){const _0x43c34b=_0x532fcf;this[_0x43c34b(0x35c)](a[_0x43c34b(0x22d)](d[_0x43c34b(0x1f0)](window,_0x43c34b(0x290))['subscribe'](_0xe07545=>{const _0x33e8fe=_0x43c34b;if(_0xe07545[_0x33e8fe(0x2dd)]!==Pe||!_0xe07545[_0x33e8fe(0x144)])return;const _0xf4b364=JSON[_0x33e8fe(0x27d)](_0xe07545['newValue']);this['_handleEvent'](_0xf4b364);}))),window['addEventListener'](_0x43c34b(0x354),()=>this[_0x43c34b(0x211)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x43c34b(0x252)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x18e084){const _0x596dac=_0x532fcf;switch(_0x18e084[_0x596dac(0x19e)]){case 0x0:this[_0x596dac(0x25c)](_0x18e084);break;case 0x1:this['_handleLeaveEvent'](_0x18e084);break;case 0x2:this[_0x596dac(0x20f)](_0x18e084);break;}}['_handleJoinEvent'](_0x168697){const _0x33607e=_0x532fcf,{unitIDs:_0xf14594,memberID:_0x29fd09,isForwarded:_0x51fec2}=_0x168697;_0xf14594[_0x33607e(0x344)](_0x62dfc4=>{const _0xca12ab=_0x33607e;if(!_0x51fec2&&this[_0xca12ab(0x15a)]['has'](_0x62dfc4)&&this[_0xca12ab(0x1c8)](_0x62dfc4)[_0xca12ab(0x28a)](u[_0xca12ab(0x22c)][_0xca12ab(0x118)]),!this['_unitOnClients'][_0xca12ab(0x125)](_0x62dfc4)||!this[_0xca12ab(0x15a)]['get'](_0x62dfc4)[_0xca12ab(0x125)](_0x29fd09)){const _0x12c30d=this['_unitOnClients'][_0xca12ab(0x2b0)](_0x62dfc4)||new Set();_0x12c30d[_0xca12ab(0x10a)](_0x29fd09),this['_unitOnClients']['set'](_0x62dfc4,_0x12c30d),this['_scheduleClearOtherTimer'](_0x29fd09);}}),_0x51fec2||this[_0x33607e(0x211)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x33607e(0xec)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4eb927){const _0x34df00=_0x532fcf;this[_0x34df00(0x2ea)](_0x4eb927);const _0xd14ee=window[_0x34df00(0x20d)](()=>{const _0x312984=_0x34df00;this['_unitOnClients'][_0x312984(0x344)](_0x573b55=>{_0x573b55['delete'](_0x4eb927);});},Le*0x2);this['_clearOtherTimers'][_0x34df00(0x208)](_0x4eb927,_0xd14ee);}['_removeClearOtherTimer'](_0x4d6942){const _0xead117=_0x532fcf;if(this[_0xead117(0x265)]['has'](_0x4d6942)){const _0x2c022f=this[_0xead117(0x265)]['get'](_0x4d6942);_0x2c022f&&window[_0xead117(0x1c0)](_0x2c022f),this[_0xead117(0x265)][_0xead117(0x208)](_0x4d6942,null);}}[_0x532fcf(0x33e)](_0x16789b){const _0x439f53=_0x532fcf,{memberID:_0x2c5f95,unitIDs:_0x5c5807}=_0x16789b;_0x5c5807[_0x439f53(0x344)](_0x4330ab=>{const _0x9018d3=_0x439f53;var _0x50ca35;const _0x3bce30=this[_0x9018d3(0x15a)][_0x9018d3(0x2b0)](_0x4330ab);_0x3bce30&&(_0x3bce30[_0x9018d3(0x2a3)](_0x2c5f95),(_0x50ca35=this[_0x9018d3(0x1c8)](_0x4330ab))==null||_0x50ca35['next'](_0x3bce30[_0x9018d3(0x2bf)]===0x0?u[_0x9018d3(0x22c)][_0x9018d3(0x221)]:u[_0x9018d3(0x22c)][_0x9018d3(0x118)]));}),this[_0x439f53(0x2ea)](_0x2c5f95);}['_handleHeartbeatEvent'](_0x199726){const _0x16222e=_0x532fcf;this[_0x16222e(0x218)](_0x199726[_0x16222e(0x1f4)]);}[_0x532fcf(0x211)](_0x25d201){localStorage['setItem'](Pe,JSON['stringify'](_0x25d201));}[_0x532fcf(0x237)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x42455d=_0x4bf1;this[_0x42455d(0x211)]({'type':0x2,'memberID':this[_0x42455d(0x1e5)]});},Le);}['_ensureSubject'](_0x467fd1){const _0x277981=_0x532fcf;return this[_0x277981(0x336)][_0x277981(0x125)](_0x467fd1)||this[_0x277981(0x336)][_0x277981(0x208)](_0x467fd1,new d['BehaviorSubject'](u['UnitStatus'][_0x277981(0x221)])),this['_unitStatus'][_0x277981(0x2b0)](_0x467fd1);}}var ke=(_0x2b5e5c=>(_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x192)]=0x0]=_0x532fcf(0x192),_0x2b5e5c[_0x2b5e5c['OK']=0x1]='OK',_0x2b5e5c[_0x2b5e5c['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1c3)]=0x3]=_0x532fcf(0x1c3),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x161)]=0x4]=_0x532fcf(0x161),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2c6)]=0x5]=_0x532fcf(0x2c6),_0x2b5e5c[_0x2b5e5c['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2ed)]=0x7]=_0x532fcf(0x2ed),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x115)]=0x8]=_0x532fcf(0x115),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x35b)]=0x9]='COMPLETION_FINISHED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x24f)]=0xa]=_0x532fcf(0x24f),_0x2b5e5c[_0x2b5e5c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x532fcf(0x18c),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x292)]=0x1771]=_0x532fcf(0x292),_0x2b5e5c[_0x2b5e5c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x189)]=0x1773]=_0x532fcf(0x189),_0x2b5e5c[_0x2b5e5c['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2b5)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2b5e5c[_0x2b5e5c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x532fcf(0x2d9),_0x2b5e5c[_0x2b5e5c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x532fcf(0x1d0),_0x2b5e5c[_0x2b5e5c['APPLY_DUPLICATED']=0x1b5d]=_0x532fcf(0xea),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x219)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2b5e5c[_0x2b5e5c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x25d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x135)]=0x232b]=_0x532fcf(0x135),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2aa)]=0x232c]=_0x532fcf(0x2aa),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x316)]=0x232d]=_0x532fcf(0x316),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1ee)]=0x2711]=_0x532fcf(0x1ee),_0x2b5e5c[_0x2b5e5c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x532fcf(0x1ad),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1b7)]=0x2713]=_0x532fcf(0x1b7),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1fd)]=0x2714]=_0x532fcf(0x1fd),_0x2b5e5c[_0x2b5e5c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1a5)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2b5e5c[_0x2b5e5c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x532fcf(0x33f),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x207)]=0x2ee1]=_0x532fcf(0x207),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x11b)]=0x2ee2]=_0x532fcf(0x11b),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2b8)]=0x2ee3]=_0x532fcf(0x2b8),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x229)]=0x2ee4]=_0x532fcf(0x229),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x363)]=0x2ee5]=_0x532fcf(0x363),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x247)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x300)]=0x32ca]=_0x532fcf(0x300),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x351)]=0x32cb]=_0x532fcf(0x351),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x317)]=-0x1]=_0x532fcf(0x317),_0x2b5e5c))(ke||{}),_s=Object[_0x532fcf(0x1c9)],hs=(_0x261aa1,_0x179077,_0x56364c,_0x1a0044)=>{for(var _0x16fc8b=_0x1a0044>0x1?void 0x0:_0x1a0044?_s(_0x179077,_0x56364c):_0x179077,_0x2c3b6b=_0x261aa1['length']-0x1,_0x300ba3;_0x2c3b6b>=0x0;_0x2c3b6b--)(_0x300ba3=_0x261aa1[_0x2c3b6b])&&(_0x16fc8b=_0x300ba3(_0x16fc8b)||_0x16fc8b);return _0x16fc8b;},de=(_0x17d41f,_0x20037e)=>(_0x28cb56,_0x5256b4)=>_0x20037e(_0x28cb56,_0x5256b4,_0x17d41f);exports[_0x532fcf(0x230)]=class extends a['Disposable']{constructor(_0x14cc17,_0x395329,_0x18ac69){const _0x57a33=_0x532fcf;super(),this[_0x57a33(0x33c)]=_0x14cc17,this[_0x57a33(0x334)]=_0x395329,this[_0x57a33(0x32b)]=_0x18ac69;}async['runOnServer'](_0x81b819,_0x6dadc1,_0xd708ee,..._0x221818){const _0x219322=_0x532fcf;var _0x3fe7b7,_0x1d06cf,_0x360539,_0x56475f;const _0x43e8ef=this[_0x219322(0x33c)][_0x219322(0x20e)]();if(!_0x43e8ef)throw new Error(_0x219322(0x195));const _0x5b6cef=((_0x3fe7b7=this[_0x219322(0x32b)][_0x219322(0x308)](u[_0x219322(0x2ab)]))!=null?_0x3fe7b7:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x81b819+_0x219322(0x169)+_0x6dadc1,_0x169423=new URL(window[_0x219322(0x1dc)][_0x219322(0x15e)]),_0xc0bbd4={'scriptId':_0x81b819,'runId':(_0x1d06cf=_0x169423[_0x219322(0x314)]['get'](_0x219322(0xf4)))!=null?_0x1d06cf:'','function':_0x6dadc1,'unitId':_0x43e8ef['getUnitId'](),'argsOfFunction':JSON[_0x219322(0x13b)](_0x221818),'invokeId':(_0x360539=_0xd708ee[_0x219322(0x338)])!=null?_0x360539:'','executionId':(_0x56475f=_0xd708ee[_0x219322(0x11f)])!=null?_0x56475f:''};try{const _0x5d1338=await this[_0x219322(0x334)]['post'](_0x5b6cef,{'body':_0xc0bbd4});return _0x5d1338[_0x219322(0x298)][_0x219322(0x1f6)]&&_0x5d1338[_0x219322(0x298)]['error']['code']!==ke['OK']?_0x219322(0x188):_0x5d1338[_0x219322(0x298)]['result'];}catch{return _0x219322(0x188);}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x532fcf(0x149)]),de(0x1,a[_0x532fcf(0x2ce)](q[_0x532fcf(0x31b)])),de(0x2,a[_0x532fcf(0x116)])],exports[_0x532fcf(0x230)]),exports[_0x532fcf(0x26d)]=je,exports[_0x532fcf(0x34b)]=Ee,exports['SheetCollabCursorShape']=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0x532fcf(0x21e)]=Be;
|
|
1
|
+
'use strict';const _0x53abfe=_0x5848;(function(_0x462b33,_0x472695){const _0x1761ef=_0x5848,_0x555275=_0x462b33();while(!![]){try{const _0x48af6e=parseInt(_0x1761ef(0x14f))/0x1*(-parseInt(_0x1761ef(0x265))/0x2)+-parseInt(_0x1761ef(0x234))/0x3*(-parseInt(_0x1761ef(0x2b7))/0x4)+-parseInt(_0x1761ef(0x2ff))/0x5*(-parseInt(_0x1761ef(0x1d0))/0x6)+-parseInt(_0x1761ef(0x231))/0x7*(parseInt(_0x1761ef(0xea))/0x8)+parseInt(_0x1761ef(0x1a3))/0x9*(parseInt(_0x1761ef(0x1ec))/0xa)+-parseInt(_0x1761ef(0x220))/0xb*(parseInt(_0x1761ef(0x330))/0xc)+-parseInt(_0x1761ef(0x2f8))/0xd*(-parseInt(_0x1761ef(0x1f8))/0xe);if(_0x48af6e===_0x472695)break;else _0x555275['push'](_0x555275['shift']());}catch(_0x56951a){_0x555275['push'](_0x555275['shift']());}}}(_0x1d25,0x1910a));var Ve=Object['defineProperty'],Xe=(_0xc03beb,_0x6dfa33,_0x26a4a5)=>_0x6dfa33 in _0xc03beb?Ve(_0xc03beb,_0x6dfa33,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a4a5}):_0xc03beb[_0x6dfa33]=_0x26a4a5,h=(_0x16f2b8,_0x42d352,_0x2c0db7)=>Xe(_0x16f2b8,typeof _0x42d352!=_0x53abfe(0x148)?_0x42d352+'':_0x42d352,_0x2c0db7);Object[_0x53abfe(0x2f9)](exports,Symbol[_0x53abfe(0x19c)],{'value':'Module'});const u=require(_0x53abfe(0x246)),a=require(_0x53abfe(0x280)),p=require(_0x53abfe(0x31a)),G=require(_0x53abfe(0x1ed)),b=require('@univerjs/docs-ui'),Ge=require(_0x53abfe(0x288)),d=require(_0x53abfe(0x25f)),W=require(_0x53abfe(0x28a)),m=require(_0x53abfe(0x1f5)),Ee=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require(_0x53abfe(0x222)),X=require(_0x53abfe(0x217)),P=require(_0x53abfe(0x27c)),T=require(_0x53abfe(0x12b)),D=require(_0x53abfe(0x28c)),M=require(_0x53abfe(0x362)),qe=require(_0x53abfe(0x121));var Ke=Object['getOwnPropertyDescriptor'],ze=(_0x14c880,_0x450df8,_0x5bc8fc,_0x3d6ee1)=>{const _0x59ff87=_0x53abfe;for(var _0x387309=_0x3d6ee1>0x1?void 0x0:_0x3d6ee1?Ke(_0x450df8,_0x5bc8fc):_0x450df8,_0x44bc66=_0x14c880[_0x59ff87(0x158)]-0x1,_0x104d57;_0x44bc66>=0x0;_0x44bc66--)(_0x104d57=_0x14c880[_0x44bc66])&&(_0x387309=_0x104d57(_0x387309)||_0x387309);return _0x387309;},Te=(_0x29379a,_0x39b809)=>(_0x5818fc,_0x1afbf1)=>_0x39b809(_0x5818fc,_0x1afbf1,_0x29379a);let de=class extends a[_0x53abfe(0x353)]{constructor(_0x2b1dc8,_0x42786e){const _0x520b72=_0x53abfe;super(),this[_0x520b72(0x1c8)]=_0x2b1dc8,this['_imageIoService']=_0x42786e,this[_0x520b72(0xdf)]();}[_0x53abfe(0xdf)](){const _0x39a722=_0x53abfe,_0xa67cf=this;this[_0x39a722(0x223)](this[_0x39a722(0x1c8)][_0x39a722(0x335)]({'onBeforePasteImage':async _0x5272ee=>{const _0x2f1e56=_0x39a722,_0x261452=await _0xa67cf[_0x2f1e56(0x100)][_0x2f1e56(0x317)](_0x5272ee);return _0x261452?{'source':_0x261452[_0x2f1e56(0x308)],'imageSourceType':_0x261452[_0x2f1e56(0x176)]}:null;}}));}};de=ze([Te(0x0,b[_0x53abfe(0x232)]),Te(0x1,Ge[_0x53abfe(0x322)])],de);function _0x5848(_0x5d7528,_0x398e70){const _0x1d25cd=_0x1d25();return _0x5848=function(_0x584844,_0x2566b6){_0x584844=_0x584844-0xdb;let _0x23539c=_0x1d25cd[_0x584844];return _0x23539c;},_0x5848(_0x5d7528,_0x398e70);}const Oe=['purple300',_0x53abfe(0x138),_0x53abfe(0x299),_0x53abfe(0x14c),_0x53abfe(0x140),_0x53abfe(0x13b)];class me extends a[_0x53abfe(0x1d4)]{constructor(){const _0x388dd3=_0x53abfe;super(...arguments),h(this,_0x388dd3(0x2c7),new Map()),h(this,_0x388dd3(0x32b),0x0);}[_0x53abfe(0x120)](_0x4b5557){const _0x5c3bc4=_0x53abfe;if(this[_0x5c3bc4(0x2c7)][_0x5c3bc4(0x352)](_0x4b5557))return this[_0x5c3bc4(0x2c7)][_0x5c3bc4(0x2c3)](_0x4b5557);const _0x4b4f83=Oe[this['_colorIndex']];return this[_0x5c3bc4(0x32b)]=(this[_0x5c3bc4(0x32b)]+0x1)%Oe[_0x5c3bc4(0x158)],this[_0x5c3bc4(0x2c7)][_0x5c3bc4(0x147)](_0x4b5557,_0x4b4f83),_0x4b4f83;}}function Pe(_0x274781){const _0xfb8bbf=_0x53abfe;let _0x86e01b='';for(const _0x373385 of _0x274781){const {startOffset:_0x16efba,endOffset:_0x493860,isActive:_0x54eba4,rangeType:_0x1e7e10,segmentId:_0x3cef24,segmentPage:_0x5cec34}=_0x373385;_0x86e01b[_0xfb8bbf(0x158)]&&(_0x86e01b+=','),_0x86e01b+=_0x16efba+':'+_0x493860+':'+(_0x54eba4?'1':'0')+':'+_0x1e7e10+':'+_0x3cef24+':'+_0x5cec34;}return _0x86e01b;}function Je(_0x3a28c9){const _0x181b73=_0x53abfe,_0x4ed06f=_0x3a28c9['split'](','),_0x2f9ccd=[];for(const _0x25a9c4 of _0x4ed06f){const [_0x4cc1c5,_0x2ea7f6,_0xa3b1fd,_0x246022,_0x56e829,_0x544cdd]=_0x25a9c4[_0x181b73(0xf1)](':');_0x2f9ccd[_0x181b73(0x190)]({'startOffset':Number(_0x4cc1c5),'endOffset':Number(_0x2ea7f6),'collapsed':_0x4cc1c5===_0x2ea7f6,'isActive':_0xa3b1fd==='1','rangeType':_0x246022===a[_0x181b73(0x2bb)][_0x181b73(0x36d)]?a[_0x181b73(0x2bb)][_0x181b73(0x36d)]:a[_0x181b73(0x2bb)][_0x181b73(0x13a)],'segmentId':typeof _0x56e829==_0x181b73(0x233)?String(_0x56e829):'','segmentPage':Number(_0x544cdd!=null?_0x544cdd:-0x1)});}return _0x2f9ccd[_0x181b73(0x2ee)](_0x550162=>_0x550162['isActive'])||(_0x2f9ccd[0x0][_0x181b73(0x2bf)]=!0x0),_0x2f9ccd;}class Ce extends a[_0x53abfe(0x353)]{constructor(){const _0x21d931=_0x53abfe;super(...arguments),h(this,'_collabCursorState$',new d[(_0x21d931(0x10e))](null)),h(this,'collabCursorState$',this[_0x21d931(0x2be)][_0x21d931(0x2f0)]());}[_0x53abfe(0x1ce)](_0x382d0b){const _0x426e5d=_0x53abfe,{unitID:_0x451ae8,memberID:_0x1365ff,textRanges:_0x1e8e1a}=_0x382d0b,_0x196c6c=Pe(_0x1e8e1a);if(_0x196c6c==='')return;const _0x16ae96={'unitID':_0x451ae8,'memberID':_0x1365ff,'selection':_0x196c6c};this[_0x426e5d(0x2be)][_0x426e5d(0x202)](_0x16ae96);}}var Ze=Object[_0x53abfe(0x20b)],Qe=(_0x265c05,_0x85c2b9,_0x19e3d2,_0x5710cb)=>{for(var _0x9d540e=_0x5710cb>0x1?void 0x0:_0x5710cb?Ze(_0x85c2b9,_0x19e3d2):_0x85c2b9,_0x111423=_0x265c05['length']-0x1,_0x519a77;_0x111423>=0x0;_0x111423--)(_0x519a77=_0x265c05[_0x111423])&&(_0x9d540e=_0x519a77(_0x9d540e)||_0x9d540e);return _0x9d540e;},L=(_0x3a87d9,_0x214e9c)=>(_0x43dabb,_0x1615e0)=>_0x214e9c(_0x43dabb,_0x1615e0,_0x3a87d9);const et=0x12c,tt=0x64;let fe=class extends a[_0x53abfe(0x353)]{constructor(_0x20e0c3,_0x2a5d09,_0x34b703,_0x24b008,_0xde3060,_0x54432f,_0x448008,_0xd115ad,_0x404193){const _0x9f3c5b=_0x53abfe;super(),h(this,_0x9f3c5b(0x2f6),!0x1),h(this,'_init',!0x1),h(this,_0x9f3c5b(0x1b4),new d[(_0x9f3c5b(0x10e))](new Map())),h(this,_0x9f3c5b(0x2f4),this['_cursorInfo$'][_0x9f3c5b(0x2f0)]()),h(this,'_roomMembers$',new d[(_0x9f3c5b(0x10e))]([])),h(this,_0x9f3c5b(0x263),this[_0x9f3c5b(0x344)][_0x9f3c5b(0x24a)](d[_0x9f3c5b(0x285)](et))),h(this,_0x9f3c5b(0xe2),a[_0x9f3c5b(0x35c)](_0x2a7e3c=>{const _0x51ed0f=_0x9f3c5b,_0x5a69c8={'eventID':m[_0x51ed0f(0xe1)][_0x51ed0f(0x1ea)],'data':{'unitID':this[_0x51ed0f(0x187)],'memberID':this['_session'][_0x51ed0f(0x227)](),'selection':Pe(_0x2a7e3c)}};this[_0x51ed0f(0x1e1)][_0x51ed0f(0x1bd)](_0x5a69c8,this[_0x51ed0f(0x187)]);},tt)),(this[_0x9f3c5b(0x187)]=_0x20e0c3,this[_0x9f3c5b(0x1e1)]=_0x2a5d09,this['_injector']=_0x34b703,this[_0x9f3c5b(0x254)]=_0x24b008,this['_memberService']=_0xde3060,this[_0x9f3c5b(0x181)]=_0x54432f,this[_0x9f3c5b(0x19d)]=_0x448008,this[_0x9f3c5b(0x153)]=_0xd115ad,this[_0x9f3c5b(0x29b)]=_0x404193);}get[_0x53abfe(0x32a)](){const _0xb942ea=_0x53abfe;return this[_0xb942ea(0x1b4)][_0xb942ea(0x1cf)]();}get['roomMembers'](){const _0x46ad34=_0x53abfe;return this['_roomMembers$'][_0x46ad34(0x1cf)]();}[_0x53abfe(0x318)](){const _0x531866=_0x53abfe;super[_0x531866(0x318)](),this[_0x531866(0x1b4)]['next'](new Map()),this[_0x531866(0x1b4)]['complete'](),this[_0x531866(0x344)]['next']([]),this['_roomMembers$']['complete']();}[_0x53abfe(0x283)](){const _0x39b79e=_0x53abfe;this[_0x39b79e(0xdf)]||(this[_0x39b79e(0xdf)]=!0x0,this['_session']['sessionStatus$'][_0x39b79e(0x24a)](d['takeUntil'](this[_0x39b79e(0x301)]))['subscribe'](_0x5efc18=>{const _0x388878=_0x39b79e;_0x5efc18===u[_0x388878(0x324)][_0x388878(0x334)]?this[_0x388878(0x1fb)]():this[_0x388878(0x230)]();}),this[_0x39b79e(0x1e1)]['event$'][_0x39b79e(0x24a)](d[_0x39b79e(0x35f)](this[_0x39b79e(0x301)]))[_0x39b79e(0x2cf)](_0x43f2c6=>{const _0x48e4f7=_0x39b79e,_0x52b17b=_0x43f2c6['eventID'];_0x52b17b===m[_0x48e4f7(0xe1)][_0x48e4f7(0x1ea)]&&this[_0x48e4f7(0x115)](_0x43f2c6),_0x52b17b===m[_0x48e4f7(0xe1)]['USERS_LEAVE']&&this[_0x48e4f7(0x36f)](_0x43f2c6);}),this[_0x39b79e(0x223)](this[_0x39b79e(0x29b)][_0x39b79e(0x29d)](_0x299d2f=>{const _0x19c448=_0x39b79e,_0x4699c7=_0x299d2f[_0x19c448(0xe7)];_0x4699c7!=null&&this['_online']&&_0x299d2f['id']===W[_0x19c448(0x10a)]['id']&&_0x4699c7[_0x19c448(0xdb)]===this['unitID']&&_0x4699c7[_0x19c448(0x26f)]===!0x1&&_0x4699c7['ranges'][_0x19c448(0x158)]>0x0&&this[_0x19c448(0xe2)](_0x4699c7['ranges']);})),this[_0x39b79e(0x181)][_0x39b79e(0x2d1)][_0x39b79e(0x24a)](d['takeUntil'](this[_0x39b79e(0x301)]))[_0x39b79e(0x2cf)](_0x4932d8=>{const _0x29cfac=_0x39b79e;if((_0x4932d8==null?void 0x0:_0x4932d8[_0x29cfac(0x187)])!==this[_0x29cfac(0x187)])return;const _0x4927a6={'eventID':m[_0x29cfac(0xe1)]['UPDATE_CURSOR'],'data':_0x4932d8};this['_onCursorUpdate'](_0x4927a6);}),this['disposeWithMe'](this['_commandService'][_0x39b79e(0x29d)](_0x3db1a6=>{const _0x48bc19=_0x39b79e;if(_0x3db1a6[_0x48bc19(0xe7)]==null)return;const _0x4892ca=_0x3db1a6[_0x48bc19(0xe7)];if(_0x3db1a6['id']!==W[_0x48bc19(0x2c2)]['id']||_0x4892ca[_0x48bc19(0xdb)]!==this['unitID'])return;const _0x1576f6={'id':_0x48bc19(0x1e6),'params':_0x4892ca},_0x3cd5c7=this[_0x48bc19(0x32a)];for(const [_0x210058,_0x26ddce]of _0x3cd5c7){const _0x2a4691={'id':_0x48bc19(0x1e6),'params':{'unitId':this[_0x48bc19(0x187)],'actions':null,'textRanges':_0x26ddce[_0x48bc19(0x1b9)]}},_0x3e3603=this[_0x48bc19(0x19d)][_0x48bc19(0x11e)](_0x1576f6,_0x2a4691,!0x1);if(m[_0x48bc19(0x292)](_0x3e3603))throw _0x3e3603[_0x48bc19(0x243)];_0x3cd5c7['set'](_0x210058,{..._0x26ddce,'ranges':_0x3e3603['m2Prime'][_0x48bc19(0xe7)][_0x48bc19(0x235)]});}queueMicrotask(()=>{const _0x38267f=_0x48bc19;this['_cursorInfo$'][_0x38267f(0x202)](_0x3cd5c7);});})));}[_0x53abfe(0x115)](_0x1be1ed){const _0x38e1ed=_0x53abfe;var _0x1dc12a,_0x41be60;const {memberID:_0x126082,selection:_0x3d65fb}=_0x1be1ed['data'],_0x47eb83=Je(_0x3d65fb),_0x43cc1d=(_0x41be60=(_0x1dc12a=this['_memberService'][_0x38e1ed(0x25b)](this[_0x38e1ed(0x187)],_0x126082))==null?void 0x0:_0x1dc12a[_0x38e1ed(0x35e)])!=null?_0x41be60:_0x38e1ed(0x1f7),_0x519c3c={'color':this['_colorAssignService'][_0x38e1ed(0x120)](_0x126082),'name':_0x43cc1d,'ranges':_0x47eb83},_0x96cd16=this[_0x38e1ed(0x32a)];_0x96cd16['set'](_0x126082,_0x519c3c),this[_0x38e1ed(0x1b4)][_0x38e1ed(0x202)](_0x96cd16);}[_0x53abfe(0x36f)](_0x1617e2){const _0x1a2bc7=_0x53abfe,{memberID:_0x469bd3}=_0x1617e2[_0x1a2bc7(0x143)],_0x1f18de=this[_0x1a2bc7(0x32a)];_0x1f18de[_0x1a2bc7(0xf7)](_0x469bd3),this[_0x1a2bc7(0x1b4)][_0x1a2bc7(0x202)](_0x1f18de);}[_0x53abfe(0x1fb)](){const _0x163d53=_0x53abfe;var _0x113f05;if(this[_0x163d53(0x2f6)]=!0x0,((_0x113f05=this[_0x163d53(0x153)][_0x163d53(0x2d9)]())==null?void 0x0:_0x113f05[_0x163d53(0x2cc)]())!==this['unitID'])return;const _0x3c6e06=this['_injector']['get'](W[_0x163d53(0x2c9)])[_0x163d53(0xe9)]();Array[_0x163d53(0x258)](_0x3c6e06)&&_0x3c6e06[_0x163d53(0x158)]>0x0&&this['_updateLocalCursor'](_0x3c6e06);}[_0x53abfe(0x230)](){const _0xa402e=_0x53abfe;this[_0xa402e(0x2f6)]=!0x1;}};fe=Qe([L(0x2,a[_0x53abfe(0x170)](a[_0x53abfe(0x167)])),L(0x3,a[_0x53abfe(0x170)](me)),L(0x4,a[_0x53abfe(0x170)](u[_0x53abfe(0x239)])),L(0x5,a[_0x53abfe(0x170)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x53abfe(0x13c)]),L(0x8,a[_0x53abfe(0x289)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x1f73e3,_0xaf3aef,_0x2791ee,_0x4fd0e7)=>{const _0x378894=_0x53abfe;for(var _0x1b83ae=_0x4fd0e7>0x1?void 0x0:_0x4fd0e7?st(_0xaf3aef,_0x2791ee):_0xaf3aef,_0x5004ca=_0x1f73e3[_0x378894(0x158)]-0x1,_0x23794f;_0x5004ca>=0x0;_0x5004ca--)(_0x23794f=_0x1f73e3[_0x5004ca])&&(_0x1b83ae=_0x23794f(_0x1b83ae)||_0x1b83ae);return _0x1b83ae;},A=(_0x2af5d2,_0x179d9c)=>(_0x1570ec,_0x2e37af)=>_0x179d9c(_0x1570ec,_0x2e37af,_0x2af5d2);const nt=0x12c,rt=0x64,ot=()=>{let _0x392b3a=[],_0x539a53=!0x1;return _0x1e1adb=>{const _0x3d8f76=_0x5848;_0x392b3a[_0x3d8f76(0x190)](_0x1e1adb),_0x539a53||(_0x539a53=!0x0,setTimeout(()=>{_0x392b3a['forEach'](_0x536989=>_0x536989()),_0x392b3a=[],_0x539a53=!0x1;}));};};let Se=class extends a[_0x53abfe(0x353)]{constructor(_0x135cf2,_0xc90fa3,_0x27fff0,_0xa1a872,_0x2965a0,_0x5daede,_0x353984,_0x13fe6e){const _0x1f7e0b=_0x53abfe;super(),h(this,_0x1f7e0b(0x2f6),!0x1),h(this,_0x1f7e0b(0xdf),!0x1),h(this,_0x1f7e0b(0x1b4),new d[(_0x1f7e0b(0x10e))](new Map())),h(this,_0x1f7e0b(0x2f4),this['_cursorInfo$'][_0x1f7e0b(0x2f0)]()),h(this,_0x1f7e0b(0x344),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x1f7e0b(0x344)][_0x1f7e0b(0x24a)](d[_0x1f7e0b(0x285)](nt))),h(this,_0x1f7e0b(0xe2),a[_0x1f7e0b(0x35c)]((_0x44bf0d,_0x895657)=>{const _0x3210b5=_0x1f7e0b,_0x2ab3bc={'eventID':m[_0x3210b5(0xe1)][_0x3210b5(0x1ea)],'data':{'unitID':this[_0x3210b5(0x187)],'memberID':this[_0x3210b5(0x1e1)][_0x3210b5(0x227)](),'selection':Ee[_0x3210b5(0x1c0)](_0x44bf0d,_0x895657[_0x3210b5(0x1ac)])}};this['_session']['send'](_0x2ab3bc,this[_0x3210b5(0x187)]);},rt)),(this[_0x1f7e0b(0x187)]=_0x135cf2,this['_session']=_0xc90fa3,this[_0x1f7e0b(0x36e)]=_0x27fff0,this[_0x1f7e0b(0x254)]=_0xa1a872,this['_memberService']=_0x2965a0,this[_0x1f7e0b(0x153)]=_0x5daede,this[_0x1f7e0b(0x29b)]=_0x353984,this['_refRangeService']=_0x13fe6e);}get[_0x53abfe(0x32a)](){const _0x53fd26=_0x53abfe;return this[_0x53fd26(0x1b4)][_0x53fd26(0x1cf)]();}get[_0x53abfe(0x2d8)](){const _0xed53c9=_0x53abfe;return this['_roomMembers$'][_0xed53c9(0x1cf)]();}['dispose'](){const _0x15a83f=_0x53abfe;super[_0x15a83f(0x318)](),this['_cursorInfo$'][_0x15a83f(0x202)](new Map()),this['_cursorInfo$'][_0x15a83f(0x304)](),this['_roomMembers$'][_0x15a83f(0x202)]([]),this[_0x15a83f(0x344)][_0x15a83f(0x304)]();}[_0x53abfe(0x283)](){const _0xe09296=_0x53abfe;this[_0xe09296(0xdf)]||(this[_0xe09296(0xdf)]=!0x0,this['_session'][_0xe09296(0x18a)][_0xe09296(0x24a)](d[_0xe09296(0x35f)](this['dispose$']))['subscribe'](_0x4f7584=>{const _0x28f2fe=_0xe09296;_0x4f7584===u['SessionStatus']['ONLINE']?this[_0x28f2fe(0x1fb)]():this[_0x28f2fe(0x230)]();}),this[_0xe09296(0x1e1)][_0xe09296(0x336)][_0xe09296(0x24a)](d[_0xe09296(0x35f)](this[_0xe09296(0x301)]))[_0xe09296(0x2cf)](_0x5b113d=>{const _0x2a76ea=_0xe09296,_0x112da2=_0x5b113d['eventID'];_0x112da2===m[_0x2a76ea(0xe1)][_0x2a76ea(0x1ea)]&&this[_0x2a76ea(0x115)](_0x5b113d),_0x112da2===m[_0x2a76ea(0xe1)][_0x2a76ea(0x194)]&&this[_0x2a76ea(0x36f)](_0x5b113d);}),this[_0xe09296(0x282)](),this[_0xe09296(0x223)](this['_commandService'][_0xe09296(0x29d)](_0x3fef80=>{const _0x32ab11=_0xe09296;if(this['_online']&&_0x3fef80['id']===g['SetSelectionsOperation']['id']&&_0x3fef80['params']['unitId']===this[_0x32ab11(0x187)]){const _0x378cbc=_0x3fef80[_0x32ab11(0xe7)];this['_updateLocalCursor'](_0x378cbc[_0x32ab11(0x103)],_0x378cbc[_0x32ab11(0x32f)][0x0]);}})));}[_0x53abfe(0x115)](_0x358601){const _0x194ff7=_0x53abfe;var _0x3bf1e0,_0x22a061;const {memberID:_0x5edc6b,selection:_0x11a12e}=_0x358601[_0x194ff7(0x143)],{sheetName:_0x579bc4,range:_0x9d460a}=Ee[_0x194ff7(0x250)](_0x11a12e),_0x1218ee={'name':(_0x22a061=(_0x3bf1e0=this[_0x194ff7(0x1a1)][_0x194ff7(0x25b)](this['unitID'],_0x5edc6b))==null?void 0x0:_0x3bf1e0['name'])!=null?_0x22a061:_0x194ff7(0x1f7),'range':this[_0x194ff7(0x1f6)](_0x579bc4,_0x9d460a),'sheetID':_0x579bc4,'color':this[_0x194ff7(0x254)][_0x194ff7(0x120)](_0x5edc6b),'selection':_0x11a12e},_0x3b17ca=this[_0x194ff7(0x32a)];_0x3b17ca['set'](_0x5edc6b,_0x1218ee),this[_0x194ff7(0x1b4)][_0x194ff7(0x202)](_0x3b17ca);}[_0x53abfe(0x36f)](_0x5e924c){const _0x4dbf1=_0x53abfe,{memberID:_0xe82642}=_0x5e924c[_0x4dbf1(0x143)],_0x5a65cf=this[_0x4dbf1(0x32a)];_0x5a65cf[_0x4dbf1(0xf7)](_0xe82642),this[_0x4dbf1(0x1b4)]['next'](_0x5a65cf);}[_0x53abfe(0x1f6)](_0x14c1dc,_0x3a116c){const _0x130066=_0x53abfe;var _0x56b307,_0x12d31d;const _0x578260=(_0x12d31d=(_0x56b307=this[_0x130066(0x153)][_0x130066(0x2db)](this[_0x130066(0x187)]))==null?void 0x0:_0x56b307[_0x130066(0x2d4)](_0x14c1dc))==null?void 0x0:_0x12d31d[_0x130066(0x132)]();return(_0x578260==null?void 0x0:_0x578260['find'](_0x39c026=>a['Rectangle'][_0x130066(0x2b6)](_0x39c026,_0x3a116c)))||_0x3a116c;}['_onRefRangeChange'](){const _0x29bb84=_0x53abfe,_0x5421a8=new a['DisposableCollection'](),_0x5dbbe0=ot(),_0x54cd63=()=>{const _0x198e0a=_0x5848;_0x5421a8['dispose']();const _0x5aa57d=(_0x15234a,_0x572f20,_0x33a04c,_0x3f0f96)=>{const _0x3e280d=_0x5848;let _0x1b94ac=[];switch(_0x15234a['id']){case g[_0x3e280d(0x356)][_0x3e280d(0x2ed)]:{_0x1b94ac=g[_0x3e280d(0x152)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0x331)]:{_0x1b94ac=g[_0x3e280d(0x2e5)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0x309)]:{_0x1b94ac=g[_0x3e280d(0x23f)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0x2eb)]:{_0x1b94ac=g[_0x3e280d(0x1c3)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0xdc)]:{_0x1b94ac=g[_0x3e280d(0x1e4)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0x26b)]:{_0x1b94ac=g[_0x3e280d(0x2c1)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0x16e)]:{_0x1b94ac=g[_0x3e280d(0x349)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0x2c5)]:{_0x1b94ac=g[_0x3e280d(0x15b)](_0x15234a,_0x3f0f96);break;}case g[_0x3e280d(0x356)][_0x3e280d(0x179)]:{_0x1b94ac=g['handleIRemoveRow'](_0x15234a,_0x3f0f96);break;}}const _0x53b455=g[_0x3e280d(0x15e)](_0x1b94ac,_0x3f0f96),_0x57c2aa=this[_0x3e280d(0x32a)][_0x3e280d(0x2c3)](_0x572f20);if(_0x57c2aa&&_0x53b455){const _0x11220b={..._0x57c2aa,'range':_0x53b455};this['cursorInfo'][_0x3e280d(0x147)](_0x572f20,_0x11220b),_0x5dbbe0(()=>{const _0x1f18cd=_0x3e280d,_0x5d78e2=this['_refRangeService']['registerRefRange'](_0x53b455,_0x2e0fc7=>(_0x5d78e2['dispose'](),_0x5aa57d(_0x2e0fc7,_0x572f20,_0x33a04c,_0x53b455)));_0x5421a8[_0x1f18cd(0x32e)](_0x5d78e2);});}return{'redos':[],'undos':[]};};this[_0x198e0a(0x32a)][_0x198e0a(0x196)]((_0x3dabde,_0x3711f9)=>{const _0x364b98=_0x198e0a,{range:_0x26db24,sheetID:_0x24ef48}=_0x3dabde,_0x52b93e=this[_0x364b98(0x357)][_0x364b98(0x268)](_0x26db24,_0x18cab7=>(_0x52b93e[_0x364b98(0x318)](),_0x5aa57d(_0x18cab7,_0x3711f9,_0x24ef48,_0x26db24)));_0x5421a8[_0x364b98(0x32e)](_0x52b93e);});};this[_0x29bb84(0x223)](a[_0x29bb84(0x2a0)](this['_cursorInfo$'][_0x29bb84(0x2cf)](()=>{_0x54cd63();})));}[_0x53abfe(0x1fb)](){const _0x208ae1=_0x53abfe;var _0xcf0577,_0x36db07;if(this[_0x208ae1(0x2f6)]=!0x0,((_0xcf0577=this[_0x208ae1(0x153)][_0x208ae1(0x2d9)]())==null?void 0x0:_0xcf0577[_0x208ae1(0x2cc)]())!==this[_0x208ae1(0x187)])return;const _0x49fd8b=(_0x36db07=this[_0x208ae1(0x36e)][_0x208ae1(0x2c3)](g[_0x208ae1(0x2ef)])[_0x208ae1(0x17b)]())==null?void 0x0:_0x36db07[0x0],_0x194e2e=this[_0x208ae1(0x153)]['getCurrentUnitForType'](a[_0x208ae1(0x166)][_0x208ae1(0x1a4)])['getActiveSheet']();_0x49fd8b&&_0x194e2e&&this[_0x208ae1(0xe2)](_0x194e2e[_0x208ae1(0x355)](),_0x49fd8b);}['_toggleOffline'](){const _0x302471=_0x53abfe;this[_0x302471(0x2f6)]=!0x1;}};Se=it([A(0x2,a[_0x53abfe(0x170)](a[_0x53abfe(0x167)])),A(0x3,a[_0x53abfe(0x170)](me)),A(0x4,a[_0x53abfe(0x170)](u[_0x53abfe(0x239)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x53abfe(0x289)]),A(0x7,a[_0x53abfe(0x170)](g[_0x53abfe(0x291)]))],Se);var at=Object[_0x53abfe(0x20b)],ct=(_0x12a876,_0x215410,_0x147f2f,_0xfab4d9)=>{const _0x21faa4=_0x53abfe;for(var _0x4a6b93=_0xfab4d9>0x1?void 0x0:_0xfab4d9?at(_0x215410,_0x147f2f):_0x215410,_0x13c4d3=_0x12a876[_0x21faa4(0x158)]-0x1,_0x4d7b88;_0x13c4d3>=0x0;_0x13c4d3--)(_0x4d7b88=_0x12a876[_0x13c4d3])&&(_0x4a6b93=_0x4d7b88(_0x4a6b93)||_0x4a6b93);return _0x4a6b93;},ie=(_0xd8f825,_0x4e4f57)=>(_0x2e9d8b,_0x493645)=>_0x4e4f57(_0x2e9d8b,_0x493645,_0xd8f825);let x=class extends a[_0x53abfe(0x353)]{constructor(_0x2eb279,_0x2b2393,_0xa9493){const _0xb040a=_0x53abfe;super(),h(this,_0xb040a(0x307),new Map()),h(this,_0xb040a(0x2e3),new d['Subject']()),(this['_univerInstanceService']=_0x2eb279,this[_0xb040a(0x36e)]=_0x2b2393,this[_0xb040a(0x21c)]=_0xa9493,this[_0xb040a(0xdf)]());}['dispose'](){const _0xb14f07=_0x53abfe;super['dispose'](),this[_0xb14f07(0x2e3)][_0xb14f07(0x304)](),this['_entities'][_0xb14f07(0x196)](_0x9487b1=>_0x9487b1['dispose']());}['getCollabCursors$'](_0x47bddb){const _0x107694=_0x53abfe;return this[_0x107694(0x307)][_0x107694(0x352)](_0x47bddb)?this['_entities'][_0x107694(0x2c3)](_0x47bddb)['cursorInfo$']:this[_0x107694(0x2e3)]['pipe'](d['filter'](_0x29e66a=>_0x29e66a[_0x107694(0x187)]===_0x47bddb),d[_0x107694(0x20d)](_0x2aa81=>_0x2aa81[_0x107694(0x2f4)]));}[_0x53abfe(0xdf)](){const _0x21133f=_0x53abfe;this[_0x21133f(0x153)][_0x21133f(0x1c5)](a[_0x21133f(0x166)][_0x21133f(0x1a4)])['pipe'](d[_0x21133f(0x35f)](this['dispose$']))[_0x21133f(0x2cf)](async _0x3ad9a2=>{const _0x564a9b=_0x21133f,_0x13bb75=_0x3ad9a2[_0x564a9b(0x2cc)](),_0x46532d=await this[_0x564a9b(0x2b8)](_0x13bb75);this[_0x564a9b(0x2e3)][_0x564a9b(0x202)](_0x46532d),this[_0x564a9b(0x307)]['set'](_0x13bb75,_0x46532d);}),this[_0x21133f(0x153)][_0x21133f(0x1c5)](a[_0x21133f(0x166)][_0x21133f(0x325)])[_0x21133f(0x24a)](d[_0x21133f(0x35f)](this[_0x21133f(0x301)]))[_0x21133f(0x24a)](d[_0x21133f(0x2a3)](_0x249192=>!_0x249192[_0x21133f(0x2cc)]()['startsWith']('__')))[_0x21133f(0x2cf)](async _0x2bcf99=>{const _0x268766=_0x21133f,_0x25f86b=_0x2bcf99[_0x268766(0x2cc)](),_0x3276f7=await this[_0x268766(0x117)](_0x25f86b);this[_0x268766(0x2e3)][_0x268766(0x202)](_0x3276f7),this[_0x268766(0x307)][_0x268766(0x147)](_0x25f86b,_0x3276f7);}),d[_0x21133f(0x1b6)](this[_0x21133f(0x153)]['getTypeOfUnitDisposed$'](a[_0x21133f(0x166)][_0x21133f(0x325)]),this[_0x21133f(0x153)][_0x21133f(0x272)](a[_0x21133f(0x166)]['UNIVER_SHEET']))[_0x21133f(0x24a)](d[_0x21133f(0x35f)](this[_0x21133f(0x301)]))[_0x21133f(0x2cf)](_0x162076=>{const _0x5727d2=_0x21133f,_0x21b9a9=_0x162076['getUnitId'](),_0x1818b7=this[_0x5727d2(0x307)][_0x5727d2(0x2c3)](_0x21b9a9);_0x1818b7&&(_0x1818b7[_0x5727d2(0x318)](),this['_entities'][_0x5727d2(0xf7)](_0x21b9a9));});}async[_0x53abfe(0x2b8)](_0x1c007f){const _0xf44355=_0x53abfe,_0x11ff95=await this[_0xf44355(0x21c)][_0xf44355(0x162)](_0x1c007f),_0x1f45a2=this[_0xf44355(0x36e)][_0xf44355(0x1ff)](Se,_0x1c007f,_0x11ff95);return _0x1f45a2[_0xf44355(0x283)](),_0x1f45a2;}async[_0x53abfe(0x117)](_0x5bd15d){const _0x3fb79d=_0x53abfe,_0x43709a=await this[_0x3fb79d(0x21c)]['requireSession'](_0x5bd15d),_0x3d02b9=this[_0x3fb79d(0x36e)][_0x3fb79d(0x1ff)](fe,_0x5bd15d,_0x43709a);return _0x3d02b9[_0x3fb79d(0x283)](),_0x3d02b9;}};x=ct([ie(0x0,a[_0x53abfe(0x13c)]),ie(0x1,a[_0x53abfe(0x170)](a[_0x53abfe(0x167)])),ie(0x2,a['Inject'](u[_0x53abfe(0x14e)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1918f4,_0x411825){const _0x57cfc3=_0x53abfe;let {radius:_0x23994a,width:_0x424a41,height:_0x303def}=_0x411825;_0x23994a=_0x23994a!=null?_0x23994a:0x0,_0x424a41=_0x424a41!=null?_0x424a41:0x1e,_0x303def=_0x303def!=null?_0x303def:0x1e;let _0x5ea185=0x0,_0xabd2cb=0x0,_0x43c5aa=0x0;_0x5ea185=_0xabd2cb=_0x43c5aa=Math[_0x57cfc3(0xfe)](_0x23994a,_0x424a41/0x2,_0x303def/0x2),_0x1918f4[_0x57cfc3(0x340)](),_0x1918f4[_0x57cfc3(0x27b)](_0x5ea185,0x0),_0x1918f4[_0x57cfc3(0x34b)](_0x424a41-_0xabd2cb,0x0),_0x1918f4[_0x57cfc3(0x33e)](_0x424a41-_0xabd2cb,_0xabd2cb,_0xabd2cb,Math['PI']*0x3/0x2,0x0,!0x1),_0x1918f4[_0x57cfc3(0x34b)](_0x424a41,_0x303def-_0x43c5aa),_0x1918f4['arc'](_0x424a41-_0x43c5aa,_0x303def-_0x43c5aa,_0x43c5aa,0x0,Math['PI']/0x2,!0x1),_0x1918f4['lineTo'](0x0,_0x303def),_0x1918f4['lineTo'](0x0,_0x5ea185),_0x1918f4[_0x57cfc3(0x33e)](_0x5ea185,_0x5ea185,_0x5ea185,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1918f4[_0x57cfc3(0x11f)](),_0x411825[_0x57cfc3(0x2a7)]&&(_0x1918f4['save'](),_0x1918f4[_0x57cfc3(0xfc)]=_0x411825[_0x57cfc3(0x2a7)],_0x411825[_0x57cfc3(0xeb)]==='evenodd'?_0x1918f4[_0x57cfc3(0x2a7)](_0x57cfc3(0x1bb)):_0x1918f4[_0x57cfc3(0x2a7)](),_0x1918f4[_0x57cfc3(0x22f)]());}class ee extends p['Shape']{constructor(_0x59b74c,_0x263785){const _0x28d308=_0x53abfe;super(_0x59b74c,_0x263785),h(this,_0x28d308(0x2b1)),h(this,_0x28d308(0x261)),(this['color']=_0x263785==null?void 0x0:_0x263785[_0x28d308(0x2b1)],this[_0x28d308(0x261)]=_0x263785==null?void 0x0:_0x263785[_0x28d308(0x261)]);}static['drawWith'](_0x1be490,_0x4753dd){const _0xe68a04=_0x53abfe,{text:_0x35b177,color:_0x345f54}=_0x4753dd;_0x1be490[_0xe68a04(0xe8)](),_0x1be490['font']=_0xe68a04(0x19a);const _0x5a6edb=_0x1be490[_0xe68a04(0x294)](_0x35b177)[_0xe68a04(0x278)],_0x105410=Math[_0xe68a04(0xfe)](_0x5a6edb+0x2*ne,Re);_t(_0x1be490,{'height':q,'radius':0x4,'width':_0x105410,'fill':_0x345f54}),_0x1be490[_0xe68a04(0xfc)]=_0xe68a04(0x310);const _0x5e0b24=ne,_0x5d730b=q-lt,_0x27abc1=Re-0x2*ne;if(_0x5a6edb>_0x27abc1){let _0x591e17='',_0x33c6d0=0x0;for(const _0x2f9e6d of _0x35b177){const _0xf74dc3=_0x1be490[_0xe68a04(0x294)](_0x2f9e6d)[_0xe68a04(0x278)];if(_0x33c6d0+_0xf74dc3<=_0x27abc1-_0x1be490[_0xe68a04(0x294)](_0xe68a04(0x195))[_0xe68a04(0x278)])_0x591e17+=_0x2f9e6d,_0x33c6d0+=_0xf74dc3;else{_0x591e17+='...';break;}}_0x1be490[_0xe68a04(0x1a0)](_0x591e17,_0x5e0b24,_0x5d730b);}else _0x1be490[_0xe68a04(0x1a0)](_0x35b177,_0x5e0b24,_0x5d730b);_0x1be490[_0xe68a04(0x22f)]();}['_draw'](_0x48bff5){const _0x42e623=_0x53abfe;ee[_0x42e623(0x1d9)](_0x48bff5,this);}}const re=_0x53abfe(0x15d),ht=_0x53abfe(0x345),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x53abfe(0xf4);class De{constructor(_0x4072a0,_0x4119b9,_0x198bcb,_0x42ce8a){const _0x1fdb2b=_0x53abfe;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,_0x1fdb2b(0x2f1),null),h(this,_0x1fdb2b(0x17c),null),h(this,_0x1fdb2b(0x1a2),null),h(this,_0x1fdb2b(0x286),null),(this['_cursor']=_0x4072a0,this['_scene']=_0x4119b9,this['_docSkeleton']=_0x198bcb,this['_document']=_0x42ce8a,this[_0x1fdb2b(0x2c4)]());}set[_0x53abfe(0x182)](_0x1d5d01){const _0x38293b=_0x53abfe;_0x1d5d01?(this[_0x38293b(0x17c)]&&this['_anchorDot'][_0x38293b(0xf8)](),this[_0x38293b(0x2f1)]&&this[_0x38293b(0x2f1)][_0x38293b(0x119)]()):(this['_anchorDot']&&this[_0x38293b(0x17c)][_0x38293b(0x119)](),this['_textBubble']&&this[_0x38293b(0x2f1)][_0x38293b(0xf8)]());}[_0x53abfe(0x318)](){const _0x1b0aa3=_0x53abfe;for(const _0x59d45d of this[_0x1b0aa3(0x238)])_0x59d45d['dispose']();this['_textBubble']&&this[_0x1b0aa3(0x2f1)][_0x1b0aa3(0x318)](),this[_0x1b0aa3(0x17c)]&&this[_0x1b0aa3(0x17c)][_0x1b0aa3(0x318)](),this['_anchor']&&this[_0x1b0aa3(0x2bd)][_0x1b0aa3(0x318)](),this['_eventUnsubscribe']&&this[_0x1b0aa3(0x286)]();}[_0x53abfe(0x2c4)](){const _0xcd2a0f=_0x53abfe;var _0x2a4d60;const {_docSkeleton:_0x6e6dce,_document:_0x48aa04}=this,{color:_0x478cb6,name:_0xbde3a2,ranges:_0x2aef92}=this[_0xcd2a0f(0x1c7)],_0x34b63a=_0x48aa04['getOffsetConfig'](),{docsLeft:_0x46e7e9,docsTop:_0x23a984}=_0x34b63a,_0x592ad6=new b['NodePositionConvertToCursor'](_0x34b63a,_0x6e6dce);for(const {startOffset:_0x55e18d,endOffset:_0x47af5f,rangeType:_0x468fbe,segmentId:_0xb8ceb7,segmentPage:_0x50b2be,collapsed:_0x4c9405,isActive:_0x485d75}of _0x2aef92){const _0x5550c3=_0x6e6dce[_0xcd2a0f(0x2d5)](_0x55e18d,!0x0,_0xb8ceb7,_0x50b2be);let _0x183273=_0x6e6dce[_0xcd2a0f(0x2d5)](_0x47af5f,!0x0,_0xb8ceb7,_0x50b2be);if(_0x183273==null&&(_0x183273=_0x6e6dce[_0xcd2a0f(0x2d5)](_0x47af5f-0x1,!0x1,_0xb8ceb7,_0x50b2be)),_0x485d75){const {contentBoxPointGroup:_0x149444}=_0x592ad6[_0xcd2a0f(0x27f)](_0x183273,_0x183273);if(_0x149444[_0xcd2a0f(0x158)]===0x0)continue;this[_0xcd2a0f(0x216)](_0x478cb6,_0x149444,_0x46e7e9,_0x23a984,_0xbde3a2),this[_0xcd2a0f(0x286)]=this[_0xcd2a0f(0x2ac)]();}if(_0x5550c3&&_0x183273){if(_0x468fbe===a[_0xcd2a0f(0x2bb)][_0xcd2a0f(0x13a)]){const _0x5a4c7c=new b[(_0xcd2a0f(0x2a8))](_0x34b63a,_0x6e6dce),{pointGroup:_0x239eb0}=(_0x2a4d60=_0x5a4c7c['getRangePointData'](_0x5550c3,_0x183273))!=null?_0x2a4d60:{};if(_0x239eb0==null||_0x239eb0[_0xcd2a0f(0x158)]===0x0)continue;this['_drawRectRange'](_0x478cb6,_0x239eb0,_0x46e7e9,_0x23a984);}else{if(!_0x4c9405){const {borderBoxPointGroup:_0x22cbab}=_0x592ad6[_0xcd2a0f(0x27f)](_0x5550c3,_0x183273);if(_0x22cbab[_0xcd2a0f(0x158)]===0x0)continue;this[_0xcd2a0f(0x15c)](_0x478cb6,_0x22cbab,_0x46e7e9,_0x23a984);}}}}}[_0x53abfe(0x216)](_0x159c50,_0x11043b,_0x53a2eb,_0x34328a,_0x56c5bb){const _0x158a20=_0x53abfe,_0x589e6b=this[_0x158a20(0x180)](_0x11043b),{left:_0x4f9e35,top:_0x1d7aaf,height:_0x5ed944}=_0x589e6b,_0x25e067=this[_0x158a20(0x114)](),_0x43f98e=ft/_0x25e067,_0x113833=new p[(_0x158a20(0x35b))](re+a[_0x158a20(0x366)][_0x158a20(0x2ab)](k),{'left':_0x4f9e35+_0x53a2eb-_0x43f98e,'top':_0x1d7aaf+_0x34328a,'height':_0x5ed944,'width':dt,'fill':_0x159c50||p[_0x158a20(0x1df)](a[_0x158a20(0x134)][_0x158a20(0x17d)],0x0),'strokeWidth':_0x43f98e,'stroke':St,'evented':!0x0});this[_0x158a20(0x2bd)]=_0x113833,this[_0x158a20(0x131)][_0x158a20(0x29c)](_0x113833,b[_0x158a20(0x284)]);const _0x3015f3=new p['Rect'](re+a['Tools'][_0x158a20(0x2ab)](k),{'left':_0x4f9e35+_0x53a2eb-_0x43f98e,'top':_0x1d7aaf+_0x34328a-oe/0x2,'height':oe,'width':oe,'fill':_0x159c50||p[_0x158a20(0x1df)](a[_0x158a20(0x134)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x159c50||p[_0x158a20(0x1df)](a[_0x158a20(0x134)][_0x158a20(0x17d)],0x0),'evented':!0x1});this[_0x158a20(0x17c)]=_0x3015f3,this[_0x158a20(0x131)][_0x158a20(0x29c)](_0x3015f3,b['TEXT_RANGE_LAYER_INDEX']);const _0x36f2b2=new ee(re+a[_0x158a20(0x366)][_0x158a20(0x2ab)](k),{'left':_0x4f9e35+_0x53a2eb-_0x43f98e,'top':_0x1d7aaf+_0x34328a-q,'text':_0x56c5bb,'color':_0x159c50});this[_0x158a20(0x2f1)]=_0x36f2b2,this[_0x158a20(0x131)][_0x158a20(0x29c)](_0x36f2b2,b[_0x158a20(0x284)]),this[_0x158a20(0x182)]=!0x1;}[_0x53abfe(0x2ac)](){const _0x23ac75=_0x53abfe,_0x22e75f=this[_0x23ac75(0x2bd)][_0x23ac75(0x2ca)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x2a5611=this[_0x23ac75(0x2bd)]['onPointerLeave$'][_0x23ac75(0x346)](()=>{const _0x339ba7=_0x23ac75;this[_0x339ba7(0x1a2)]&&clearTimeout(this[_0x339ba7(0x1a2)]),this[_0x339ba7(0x1a2)]=setTimeout(()=>{const _0x37bf87=_0x339ba7;this[_0x37bf87(0x182)]=!0x1;},0x7d0);});return()=>{const _0x504aaf=_0x23ac75;_0x22e75f['unsubscribe'](),_0x2a5611[_0x504aaf(0x249)]();};}[_0x53abfe(0x15c)](_0x38940c,_0x3a4078,_0x830ee5,_0x3d724e){const _0x217ee8=_0x53abfe,_0x1b0a86=new a[(_0x217ee8(0x1d8))](_0x38940c)[_0x217ee8(0x11d)](0.2)[_0x217ee8(0x1a6)](),_0x19edf4=new p[(_0x217ee8(0x178))](ht+a[_0x217ee8(0x366)][_0x217ee8(0x2ab)](k),{'pointsGroup':_0x3a4078,'fill':_0x1b0a86||p[_0x217ee8(0x1df)](a['COLORS'][_0x217ee8(0x17d)],0.2),'left':_0x830ee5,'top':_0x3d724e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x19edf4),this[_0x217ee8(0x131)][_0x217ee8(0x29c)](_0x19edf4,b[_0x217ee8(0x284)]);}['_drawRectRange'](_0x3dbf02,_0x1666f4,_0x9680d3,_0x45ba73){const _0x502e7e=_0x53abfe,_0x3d8e72=new a[(_0x502e7e(0x1d8))](_0x3dbf02)[_0x502e7e(0x11d)](0.2)[_0x502e7e(0x1a6)](),_0x129127=new p[(_0x502e7e(0x178))](ut+a[_0x502e7e(0x366)][_0x502e7e(0x2ab)](k),{'pointsGroup':_0x1666f4,'fill':_0x3d8e72||p['getColor'](a['COLORS'][_0x502e7e(0x17d)],0.2),'left':_0x9680d3,'top':_0x45ba73,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x502e7e(0x238)]['push'](_0x129127),this[_0x502e7e(0x131)][_0x502e7e(0x29c)](_0x129127,b['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x4a3f33){const _0xa00b58=_0x4a3f33[0x0],_0x29b2aa=_0xa00b58[0x0],_0x5649ea=_0xa00b58[0x2],{x:_0x420b1e,y:_0x4b5500}=_0x29b2aa,{x:_0x28f4f3,y:_0x5328b9}=_0x5649ea;return{'left':_0x420b1e,'top':_0x4b5500,'width':_0x28f4f3-_0x420b1e,'height':_0x5328b9-_0x4b5500};}[_0x53abfe(0x114)](){const _0x188c64=_0x53abfe,{scaleX:_0x364b74,scaleY:_0x28ffe4}=this['_scene'][_0x188c64(0x28f)]();return Math[_0x188c64(0x22c)](_0x364b74,_0x28ffe4);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x30a572,_0x360e97,_0x5321fa,_0x33141e)=>{const _0x1ded5c=_0x53abfe;for(var _0x4eb9cf=_0x33141e>0x1?void 0x0:_0x33141e?It(_0x360e97,_0x5321fa):_0x360e97,_0x172d9c=_0x30a572[_0x1ded5c(0x158)]-0x1,_0x4fe414;_0x172d9c>=0x0;_0x172d9c--)(_0x4fe414=_0x30a572[_0x172d9c])&&(_0x4eb9cf=_0x4fe414(_0x4eb9cf)||_0x4eb9cf);return _0x4eb9cf;},Y=(_0x4effc1,_0x25e0b2)=>(_0x2156f2,_0x53b9fa)=>_0x25e0b2(_0x2156f2,_0x53b9fa,_0x4effc1);let Ie=class extends a[_0x53abfe(0x353)]{constructor(_0x19f271,_0x21ad47,_0x1da175,_0xbfaca6,_0x162c0f){const _0x14a0d7=_0x53abfe;super(),h(this,_0x14a0d7(0x26c),[]),h(this,_0x14a0d7(0x1fa),[]),(this[_0x14a0d7(0x22d)]=_0x19f271,this[_0x14a0d7(0x174)]=_0x21ad47,this[_0x14a0d7(0x26a)]=_0x1da175,this[_0x14a0d7(0x29b)]=_0xbfaca6,this[_0x14a0d7(0x321)]=_0x162c0f,this[_0x14a0d7(0xdf)]());}[_0x53abfe(0xdf)](){const _0x538400=_0x53abfe,_0x1f791e=this[_0x538400(0x22d)]['unitId'],_0x16a77=this[_0x538400(0x174)];this[_0x538400(0x223)](d[_0x538400(0x1d6)]([this['_collabCursorController'][_0x538400(0x363)](_0x1f791e),this[_0x538400(0x321)][_0x538400(0x10b)]])[_0x538400(0x24a)]($[_0x538400(0x1cc)](([_0x16ea04,_0xea47c3])=>({'skeleton':_0x16a77[_0x538400(0x197)](),'cursors':[..._0x16ea04[_0x538400(0x155)]()]['flatMap'](_0x50c79d=>({..._0x50c79d,'color':_0xea47c3[_0x50c79d[_0x538400(0x2b1)]]}))})))['subscribe'](_0x13626c=>{const _0x3946ec=_0x538400;if(this[_0x3946ec(0x177)](),_0x13626c){const {skeleton:_0x1c4c91,cursors:_0x19f09d}=_0x13626c;this[_0x3946ec(0x118)](_0x1c4c91,_0x19f09d);}})),this[_0x538400(0x354)](),this[_0x538400(0x224)]();}[_0x53abfe(0x118)](_0xda9dfa,_0x197ef3){const _0x6778b7=_0x53abfe,{scene:_0x57a781,mainComponent:_0x207b96}=this[_0x6778b7(0x22d)],_0x181ed7=_0x197ef3[_0x6778b7(0x1cc)](_0x2cad3e=>new De(_0x2cad3e,_0x57a781,_0xda9dfa,_0x207b96));this[_0x6778b7(0x26c)]=_0x181ed7,this[_0x6778b7(0x1fa)]=_0x197ef3;}[_0x53abfe(0x1e0)](){const _0x18d612=_0x53abfe;this[_0x18d612(0x177)]();const {scene:_0x4125ef,mainComponent:_0x87e930}=this[_0x18d612(0x22d)],_0x9491ee=this[_0x18d612(0x174)][_0x18d612(0x197)](),_0x350738=this['_cursors'][_0x18d612(0x1cc)](_0x50e6ca=>new De(_0x50e6ca,_0x4125ef,_0x9491ee,_0x87e930));this[_0x18d612(0x26c)]=_0x350738;}[_0x53abfe(0x177)](){const _0x4c15e8=_0x53abfe;this[_0x4c15e8(0x26c)][_0x4c15e8(0x196)](_0x2d9e13=>_0x2d9e13[_0x4c15e8(0x318)]()),this[_0x4c15e8(0x26c)]=[];}[_0x53abfe(0x224)](){const _0x463b11=_0x53abfe,_0x2e5ff3=[b[_0x463b11(0x184)]['id']];this['disposeWithMe'](this[_0x463b11(0x29b)]['onCommandExecuted'](_0xa54cc9=>{const _0x16c691=_0x463b11;_0x2e5ff3[_0x16c691(0x13e)](_0xa54cc9['id'])&&_0xa54cc9['params'][_0x16c691(0xdb)]===this[_0x16c691(0x22d)][_0x16c691(0xdb)]&&this['_refreshCollabCursors']();}));}[_0x53abfe(0x354)](){const _0x398c42=_0x53abfe;this[_0x398c42(0x223)](a[_0x398c42(0x32c)](this[_0x398c42(0x22d)][_0x398c42(0xef)][_0x398c42(0x2b0)])[_0x398c42(0x24a)]($[_0x398c42(0x2a3)](_0x478887=>_0x478887[_0x398c42(0x1b3)]===p[_0x398c42(0x256)][_0x398c42(0x2da)]),$[_0x398c42(0x2aa)](0x10))[_0x398c42(0x2cf)](()=>{const _0x6babb6=_0x398c42;this[_0x6babb6(0x1e0)]();}));}};Ie=vt([Y(0x1,a['Inject'](W[_0x53abfe(0x2e6)])),Y(0x2,a['Inject'](x)),Y(0x3,a[_0x53abfe(0x289)]),Y(0x4,a[_0x53abfe(0x170)](a[_0x53abfe(0x18e)]))],Ie);const gt=0x1,mt=1.5;class we extends p[_0x53abfe(0x34e)]{constructor(_0x52224b,_0x318ecc){const _0x2f42a1=_0x53abfe;super(_0x52224b,_0x318ecc),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x2f42a1(0xe4)),h(this,_0x2f42a1(0x15a),''),h(this,_0x2f42a1(0x17f),_0x2f42a1(0x130)),h(this,'_backgroundColor'),(_0x318ecc&&this[_0x2f42a1(0x104)](_0x318ecc),this[_0x2f42a1(0x2ca)]['subscribeEvent'](()=>this[_0x2f42a1(0x104)]({'hovered':!0x0})),this[_0x2f42a1(0x1de)][_0x2f42a1(0x346)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x53abfe(0x104)](_0x526879){const _0x42c431=_0x53abfe;var _0x29fd73,_0x32f41b,_0x1374ed,_0x3f5a33,_0x3181e9,_0x203ea7;this[_0x42c431(0x136)]=(_0x29fd73=_0x526879[_0x42c431(0x2b1)])!=null?_0x29fd73:this[_0x42c431(0x136)],this['_hovered']=(_0x32f41b=_0x526879['hovered'])!=null?_0x32f41b:this['_hovered'],this[_0x42c431(0xe4)]=(_0x1374ed=_0x526879[_0x42c431(0x1ac)])!=null?_0x1374ed:this[_0x42c431(0xe4)],this['_name']=(_0x3f5a33=_0x526879[_0x42c431(0x35e)])!=null?_0x3f5a33:this[_0x42c431(0x15a)],this[_0x42c431(0x17f)]=(_0x3181e9=_0x526879['labelPosition'])!=null?_0x3181e9:this[_0x42c431(0x17f)],this[_0x42c431(0x27e)]=(_0x203ea7=_0x526879[_0x42c431(0x287)])!=null?_0x203ea7:this[_0x42c431(0x27e)],this[_0x42c431(0x359)]({'width':_0x526879[_0x42c431(0x278)],'height':_0x526879[_0x42c431(0x23e)]});}[_0x53abfe(0x17e)](_0x20afb7){const _0x5775e4=_0x53abfe,{row:_0x578fa6,column:_0x130136}=_0x20afb7;if(_0x578fa6>=this[_0x5775e4(0xe4)]['startRow']&&_0x578fa6<=this[_0x5775e4(0xe4)][_0x5775e4(0x185)]&&_0x130136>=this[_0x5775e4(0xe4)][_0x5775e4(0x33b)]&&_0x130136<=this[_0x5775e4(0xe4)][_0x5775e4(0x228)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x5775e4(0x104)]({'hovered':!0x1});}[_0x53abfe(0x164)](_0x4b4950){return!0x1;}[_0x53abfe(0x10d)](_0x58dada){const _0x579d9f=_0x53abfe;p[_0x579d9f(0x35b)]['drawWith'](_0x58dada,{'width':this[_0x579d9f(0x278)],'height':this[_0x579d9f(0x23e)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x579d9f(0x27e)]}),this[_0x579d9f(0x150)]&&(_0x58dada[_0x579d9f(0xe8)](),_0x58dada[_0x579d9f(0x13d)](0x1,0x0,0x0,0x1,this[_0x579d9f(0x278)],this[_0x579d9f(0x17f)]==='bottom'?0x0:-0x14),ee[_0x579d9f(0x1d9)](_0x58dada,{'text':this[_0x579d9f(0x15a)],'color':this[_0x579d9f(0x136)]}),_0x58dada[_0x579d9f(0x22f)]());}}var Ct=Object[_0x53abfe(0x20b)],pt=(_0xd7c29,_0x4a1349,_0x246085,_0x2922df)=>{for(var _0x186421=_0x2922df>0x1?void 0x0:_0x2922df?Ct(_0x4a1349,_0x246085):_0x4a1349,_0x562dd7=_0xd7c29['length']-0x1,_0x329786;_0x562dd7>=0x0;_0x562dd7--)(_0x329786=_0xd7c29[_0x562dd7])&&(_0x186421=_0x329786(_0x186421)||_0x186421);return _0x186421;},ae=(_0x4036cb,_0x54a8c7)=>(_0x179a1c,_0x155e87)=>_0x54a8c7(_0x179a1c,_0x155e87,_0x4036cb);const bt=0x1389;let ve=class extends a[_0x53abfe(0x353)]{constructor(_0x245084,_0x1b4092,_0x5bf03c,_0x19b7de){const _0x29ee1a=_0x53abfe;super(),h(this,_0x29ee1a(0x1fa),new Set()),h(this,_0x29ee1a(0x1e9),null),(this[_0x29ee1a(0x22d)]=_0x245084,this[_0x29ee1a(0x2b5)]=_0x1b4092,this[_0x29ee1a(0x26a)]=_0x5bf03c,this[_0x29ee1a(0x321)]=_0x19b7de,this[_0x29ee1a(0xdf)]());}[_0x53abfe(0xdf)](){const _0x176bc7=_0x53abfe;this[_0x176bc7(0x2b5)][_0x176bc7(0x274)]['pipe']($[_0x176bc7(0x35f)](this[_0x176bc7(0x301)]),$[_0x176bc7(0x20d)](_0x135e48=>{const _0x3c9576=_0x176bc7;if(_0x135e48){const _0x4d9bfc=_0x135e48[_0x3c9576(0x262)];return d['combineLatest'](this[_0x3c9576(0x26a)][_0x3c9576(0x363)](this[_0x3c9576(0x22d)][_0x3c9576(0xdb)]),this[_0x3c9576(0x321)]['currentTheme$'])['pipe']($[_0x3c9576(0x1cc)](([_0x2c2672,_0x2f0150])=>{const _0x577057=new Map();return _0x2c2672['forEach']((_0x4ef2b1,_0x32b4a8)=>{const _0x2fcf70=_0x5848;if(_0x4ef2b1[_0x2fcf70(0x108)]===_0x4d9bfc){const _0x551343={..._0x4ef2b1};_0x551343[_0x2fcf70(0x2b1)]=_0x2f0150[_0x4ef2b1['color']],_0x577057['set'](_0x32b4a8,_0x551343);}}),{'skeleton':_0x135e48,'cursors':_0x577057};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x176bc7(0x2cf)](({skeleton:_0x4c7fc8,cursors:_0x3148c1})=>{const _0x3525f0=_0x176bc7;this[_0x3525f0(0x177)](),_0x4c7fc8&&this[_0x3525f0(0x118)](_0x4c7fc8,_0x3148c1);}),this[_0x176bc7(0x2b5)][_0x176bc7(0x274)][_0x176bc7(0x2cf)](_0x4c72d9=>{const _0x2447e6=_0x176bc7;if(_0x4c72d9==null)return;const {skeleton:_0x2ee511}=_0x4c72d9,{scene:_0x38ca1e}=this['_context'];_0x38ca1e[_0x2447e6(0x369)]['subscribeEvent'](a[_0x2447e6(0x35c)](_0x1a9755=>{const _0x361543=_0x2447e6;var _0x14e602,_0x548ce9;const {offsetX:_0x1b6862,offsetY:_0x247e64}=_0x1a9755,{x:_0x537d1a,y:_0x1f63e4}=_0x38ca1e[_0x361543(0x189)](p[_0x361543(0x144)][_0x361543(0x1af)]([_0x1b6862,_0x247e64])),{scaleX:_0x2830df,scaleY:_0x50b3c3}=_0x38ca1e[_0x361543(0x28f)](),_0x2b31ca=_0x38ca1e[_0x361543(0x2d3)](p[_0x361543(0x277)][_0x361543(0x149)]),_0x3ba619=_0x38ca1e[_0x361543(0x193)](p[_0x361543(0x144)][_0x361543(0x1af)]([_0x537d1a,_0x1f63e4]),_0x2b31ca),_0xdc2e97=_0x2ee511['getCellPositionByOffset'](_0x1b6862,_0x247e64,_0x2830df,_0x50b3c3,_0x3ba619);((_0x14e602=this[_0x361543(0x1e9)])==null?void 0x0:_0x14e602[_0x361543(0x12f)])===_0xdc2e97[_0x361543(0x12f)]&&((_0x548ce9=this[_0x361543(0x1e9)])==null?void 0x0:_0x548ce9[_0x361543(0x24d)])===_0xdc2e97[_0x361543(0x24d)]||this[_0x361543(0x1fa)]['forEach'](_0x5ae0f6=>{const _0xc1e033=_0x361543;_0x5ae0f6[_0xc1e033(0x17e)](_0xdc2e97);});},0x64));});}[_0x53abfe(0x118)](_0x1b6d27,_0xf1a690){const _0x43fd15=_0x53abfe;var _0x5bcbba;const _0x39e722=(_0x5bcbba=this[_0x43fd15(0x2b5)][_0x43fd15(0x348)]())==null?void 0x0:_0x5bcbba['skeleton'];if(!_0x39e722)return;const _0x587781=this[_0x43fd15(0x28d)]();if(!_0x587781)return;this[_0x43fd15(0x1fa)]['forEach'](_0x120e9e=>{const _0x5b9042=_0x43fd15;_0x120e9e[_0x5b9042(0x2bc)]();});const {scene:_0x4c3100}=_0x587781,_0x5969bc=Et(Array[_0x43fd15(0x293)](_0xf1a690['values']()))[_0x43fd15(0x1cc)](_0x11d44c=>{const _0x556d33=_0x43fd15,{color:_0x49a9af,range:_0x483eb2,name:_0x3ede67,selection:_0x45c47b,sheetID:_0x7640b9}=_0x11d44c,{startColumn:_0x38b518,startRow:_0x36ed59,endColumn:_0x3c1ab7,endRow:_0x42c23c}=_0x483eb2,_0xb2990=X[_0x556d33(0x276)](_0x36ed59,_0x38b518,_0x4c3100,_0x39e722),_0x2b652e=X[_0x556d33(0x276)](_0x42c23c,_0x3c1ab7,_0x4c3100,_0x39e722),{columnHeaderHeightAndMarginTop:_0x11d225}=_0x39e722,{startX:_0x1074f5,startY:_0x4ce964}=_0xb2990,{endX:_0x2a4673,endY:_0x3f45c6}=_0x2b652e,_0x8fbfba=_0x2a4673-_0x1074f5,_0x4fb906=_0x3f45c6-_0x4ce964,_0x4bce77={'labelPosition':_0x4ce964-_0x11d225>=q?'top':_0x556d33(0x163),'sheetID':_0x7640b9,'range':_0x483eb2,'color':_0x49a9af,'name':_0x3ede67,'selection':_0x45c47b,'left':_0x1074f5,'top':_0x4ce964,'width':_0x8fbfba,'height':_0x4fb906,'evented':!0x1,'zIndex':bt};return new we(_0x3ede67,_0x4bce77);});_0x4c3100['addObjects'](_0x5969bc,gt),this['_cursors']=new Set(_0x5969bc);}[_0x53abfe(0x177)](){const _0xdab902=_0x53abfe;var _0x58e324;(_0x58e324=this[_0xdab902(0x1fa)])==null||_0x58e324[_0xdab902(0x196)](_0x1e87da=>_0x1e87da[_0xdab902(0x318)]());}['_getSheetObject'](){const _0x2b5bed=_0x53abfe;return X[_0x2b5bed(0x156)](this[_0x2b5bed(0x22d)][_0x2b5bed(0x31e)],this[_0x2b5bed(0x22d)]);}};ve=pt([ae(0x1,a[_0x53abfe(0x170)](X[_0x53abfe(0x1e5)])),ae(0x2,a[_0x53abfe(0x170)](x)),ae(0x3,a[_0x53abfe(0x170)](a['ThemeService']))],ve);function Et(_0x1a432a){const _0x2d2ed5=_0x53abfe,_0x1083fe=new Map();return _0x1a432a[_0x2d2ed5(0x196)](_0x2ff903=>{const _0x56ebad=_0x2d2ed5;if(_0x1083fe['has'](_0x2ff903[_0x56ebad(0x212)])){const _0x2f1784=_0x1083fe[_0x56ebad(0x2c3)](_0x2ff903[_0x56ebad(0x212)]);_0x2f1784['name']+=',\x20'+_0x2ff903['name'];}else _0x1083fe[_0x56ebad(0x147)](_0x2ff903['selection'],_0x2ff903);}),Array[_0x2d2ed5(0x293)](_0x1083fe[_0x2d2ed5(0x155)]());}var E=function(){return E=Object['assign']||function(_0x31d135){const _0x19994b=_0x5848;for(var _0x5ca251,_0x22bf68=0x1,_0x279473=arguments[_0x19994b(0x158)];_0x22bf68<_0x279473;_0x22bf68++){_0x5ca251=arguments[_0x22bf68];for(var _0x3ddebc in _0x5ca251)Object[_0x19994b(0x173)][_0x19994b(0x1bf)][_0x19994b(0x20e)](_0x5ca251,_0x3ddebc)&&(_0x31d135[_0x3ddebc]=_0x5ca251[_0x3ddebc]);}return _0x31d135;},E['apply'](this,arguments);},Tt=function(_0xc1ab9,_0x2b44bc){const _0x5b2126=_0x53abfe;var _0x42f304={};for(var _0x331752 in _0xc1ab9)Object[_0x5b2126(0x173)][_0x5b2126(0x1bf)][_0x5b2126(0x20e)](_0xc1ab9,_0x331752)&&_0x2b44bc['indexOf'](_0x331752)<0x0&&(_0x42f304[_0x331752]=_0xc1ab9[_0x331752]);if(_0xc1ab9!=null&&typeof Object['getOwnPropertySymbols']==_0x5b2126(0x1ee)){for(var _0x5983e8=0x0,_0x331752=Object[_0x5b2126(0x23a)](_0xc1ab9);_0x5983e8<_0x331752[_0x5b2126(0x158)];_0x5983e8++)_0x2b44bc[_0x5b2126(0x214)](_0x331752[_0x5983e8])<0x0&&Object[_0x5b2126(0x173)][_0x5b2126(0xe0)][_0x5b2126(0x20e)](_0xc1ab9,_0x331752[_0x5983e8])&&(_0x42f304[_0x331752[_0x5983e8]]=_0xc1ab9[_0x331752[_0x5983e8]]);}return _0x42f304;},pe=M[_0x53abfe(0x172)](function(_0x15a556,_0x454480){const _0x6ea984=_0x53abfe;var _0x174ae2=_0x15a556[_0x6ea984(0x218)],_0x5bafb0=_0x15a556['id'],_0x40bdaa=_0x15a556['className'],_0x4c6153=_0x15a556[_0x6ea984(0x124)],_0xba3e0=Tt(_0x15a556,[_0x6ea984(0x218),'id',_0x6ea984(0x1a8),_0x6ea984(0x124)]),_0xc41bf3=_0x6ea984(0x371)['concat'](_0x5bafb0,'\x20')['concat'](_0x40bdaa||'')[_0x6ea984(0x28b)](),_0x27da5c=M['useRef']('_'['concat'](Dt()));return Ae(_0x174ae2,''[_0x6ea984(0x105)](_0x5bafb0),{'defIds':_0x174ae2[_0x6ea984(0x24b)],'idSuffix':_0x27da5c[_0x6ea984(0x1a9)]},E({'ref':_0x454480,'className':_0xc41bf3},_0xba3e0),_0x4c6153);});function Ae(_0x5246a6,_0x592ddc,_0x4961cf,_0x3530b4,_0x253608){const _0x3d075d=_0x53abfe;return M[_0x3d075d(0x25e)](_0x5246a6['tag'],E(E({'key':_0x592ddc},Ot(_0x5246a6,_0x4961cf,_0x253608)),_0x3530b4),(Rt(_0x5246a6,_0x4961cf)[_0x3d075d(0x2e4)]||[])[_0x3d075d(0x1cc)](function(_0x11cff6,_0x3a857f){return Ae(_0x11cff6,''['concat'](_0x592ddc,'-')['concat'](_0x5246a6['tag'],'-')['concat'](_0x3a857f),_0x4961cf,void 0x0,_0x253608);}));}function Ot(_0x29f005,_0x577b42,_0x3e3f1e){const _0x25f76f=_0x53abfe;var _0xd3e083=E({},_0x29f005[_0x25f76f(0x1d2)]);_0x3e3f1e!=null&&_0x3e3f1e['colorChannel1']&&_0xd3e083[_0x25f76f(0x2a7)]===_0x25f76f(0x367)&&(_0xd3e083[_0x25f76f(0x2a7)]=_0x3e3f1e[_0x25f76f(0x367)]),_0x29f005['tag']==='mask'&&_0xd3e083['id']&&(_0xd3e083['id']=_0xd3e083['id']+_0x577b42['idSuffix']),Object[_0x25f76f(0x1e7)](_0xd3e083)[_0x25f76f(0x196)](function(_0x38b1f5){const _0x3c6d93=_0x25f76f;var _0x12802e=_0x38b1f5[0x0],_0x4e02ca=_0x38b1f5[0x1];_0x12802e===_0x3c6d93(0x129)&&typeof _0x4e02ca==_0x3c6d93(0x233)&&(_0xd3e083[_0x12802e]=_0x4e02ca[_0x3c6d93(0xf6)](/url\(#(.*)\)/,'url(#$1'[_0x3c6d93(0x105)](_0x577b42[_0x3c6d93(0x2dd)],')')));});var _0x2ed9b6=_0x577b42[_0x25f76f(0x24b)];return!_0x2ed9b6||_0x2ed9b6[_0x25f76f(0x158)]===0x0||(_0x29f005[_0x25f76f(0x23b)]===_0x25f76f(0x2d0)&&_0xd3e083[_0x25f76f(0x1ef)]&&(_0xd3e083[_0x25f76f(0x1ef)]=_0xd3e083[_0x25f76f(0x1ef)]+_0x577b42[_0x25f76f(0x2dd)]),Object['entries'](_0xd3e083)[_0x25f76f(0x196)](function(_0x538557){const _0x1b973d=_0x25f76f;var _0x206795=_0x538557[0x0],_0x5e2625=_0x538557[0x1];typeof _0x5e2625==_0x1b973d(0x233)&&(_0xd3e083[_0x206795]=_0x5e2625[_0x1b973d(0xf6)](/url\(#(.*)\)/,_0x1b973d(0x2ad)[_0x1b973d(0x105)](_0x577b42[_0x1b973d(0x2dd)],')')));})),_0xd3e083;}function Rt(_0x2c3862,_0x413931){const _0x4bab97=_0x53abfe;var _0x357be4,_0x201790=_0x413931[_0x4bab97(0x24b)];return!_0x201790||_0x201790[_0x4bab97(0x158)]===0x0?_0x2c3862:_0x2c3862[_0x4bab97(0x23b)]===_0x4bab97(0x33d)&&(!((_0x357be4=_0x2c3862[_0x4bab97(0x2e4)])===null||_0x357be4===void 0x0)&&_0x357be4['length'])?E(E({},_0x2c3862),{'children':_0x2c3862[_0x4bab97(0x2e4)][_0x4bab97(0x1cc)](function(_0x55ff6b){const _0x17af6b=_0x4bab97;return typeof _0x55ff6b[_0x17af6b(0x1d2)]['id']=='string'&&_0x201790&&_0x201790['indexOf'](_0x55ff6b[_0x17af6b(0x1d2)]['id'])>-0x1?E(E({},_0x55ff6b),{'attrs':E(E({},_0x55ff6b['attrs']),{'id':_0x55ff6b['attrs']['id']+_0x413931[_0x17af6b(0x2dd)]})}):_0x55ff6b;})}):_0x2c3862;}function Dt(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}pe[_0x53abfe(0x1c1)]='UniverIcon';var Ut={'tag':_0x53abfe(0x157),'attrs':{'fill':_0x53abfe(0x2b3),'viewBox':_0x53abfe(0x122),'width':_0x53abfe(0x1d5),'height':_0x53abfe(0x1d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x53abfe(0x270)},'children':[{'tag':_0x53abfe(0x18b),'attrs':{'stroke':_0x53abfe(0xfd),'d':_0x53abfe(0x23d),'strokeLinecap':_0x53abfe(0x2a5),'strokeLinejoin':_0x53abfe(0x2a5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x53abfe(0x281),'attrs':{'id':_0x53abfe(0x221)},'children':[{'tag':_0x53abfe(0x18b),'attrs':{'fill':_0x53abfe(0x24c),'d':_0x53abfe(0x11c)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M[_0x53abfe(0x172)](function(_0x53714e,_0x1cc9b8){const _0x4eafe1=_0x53abfe;return M[_0x4eafe1(0x25e)](pe,Object[_0x4eafe1(0x2de)]({},_0x53714e,{'id':_0x4eafe1(0x127),'ref':_0x1cc9b8,'icon':Ut}));});ye[_0x53abfe(0x1c1)]=_0x53abfe(0x1da);var Nt={'tag':_0x53abfe(0x157),'attrs':{'fill':'none','viewBox':_0x53abfe(0x191),'width':'1em','height':_0x53abfe(0x1d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x53abfe(0x198)},'children':[{'tag':'path','attrs':{'stroke':_0x53abfe(0xfd),'d':_0x53abfe(0x257),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x53abfe(0x33d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x53abfe(0x18b),'attrs':{'fill':_0x53abfe(0x24c),'d':_0x53abfe(0x11c),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x53abfe(0x172)](function(_0x226285,_0x366c41){const _0x258465=_0x53abfe;return M[_0x258465(0x25e)](pe,Object[_0x258465(0x2de)]({},_0x226285,{'id':_0x258465(0x2fc),'ref':_0x366c41,'icon':Nt}));});$e['displayName']=_0x53abfe(0x204);function Mt(_0xdb80d7){const _0x5ba012=_0x53abfe;switch(_0xdb80d7){case u[_0x5ba012(0x302)][_0x5ba012(0x1e8)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x5ba012(0x14d)]:return _0x5ba012(0x199);case u[_0x5ba012(0x302)]['FETCH_MISS']:return _0x5ba012(0x2d2);case u[_0x5ba012(0x302)][_0x5ba012(0x2a4)]:return _0x5ba012(0x215);case u[_0x5ba012(0x302)][_0x5ba012(0x1fe)]:case u['CollaborationStatus'][_0x5ba012(0x242)]:return _0x5ba012(0x16b);case u[_0x5ba012(0x302)]['SYNCED']:case u['CollaborationStatus'][_0x5ba012(0x1f4)]:return'collabStatus.synced';}}function xe(_0x5e0fdd){const _0x276d3d=_0x53abfe,{status$:_0x360104}=_0x5e0fdd,_0x101e36=T['useObservable'](_0x360104,u['CollaborationStatus'][_0x276d3d(0x2a4)]),_0x4f1f80=T[_0x276d3d(0x208)](a['LocaleService']),_0x443bd1=T['useDependency'](u[_0x276d3d(0x14e)]),_0x363100=_0x101e36!==u[_0x276d3d(0x302)]['OFFLINE'],_0x5c7de2=_0x4f1f80['t'](Mt(_0x101e36)),_0x4781a2=_0x363100?P[_0x276d3d(0x1bc)]($e,{}):P[_0x276d3d(0x1bc)](ye,{}),_0x229073=M[_0x276d3d(0x102)](()=>{const _0x541b0c=_0x276d3d;_0x363100||_0x443bd1[_0x541b0c(0x123)]();},[_0x363100,_0x443bd1]);function _0x423502(){const _0x37fbe8=_0x276d3d;return P[_0x37fbe8(0x2a6)](_0x37fbe8(0x1dd),{'className':_0x37fbe8(0x2b9),'onClick':_0x229073,'children':[P[_0x37fbe8(0x1bc)]('div',{'className':D[_0x37fbe8(0x2fd)]('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x363100?_0x37fbe8(0x16a):'univer-text-red-500'),'children':_0x4781a2}),P[_0x37fbe8(0x1bc)](_0x37fbe8(0x1dd),{'className':_0x37fbe8(0x1e2),'children':_0x5c7de2})]});}return _0x363100?_0x423502():P[_0x276d3d(0x1bc)](D[_0x276d3d(0x1b8)],{'title':_0x4f1f80['t'](_0x276d3d(0x1eb)),'children':_0x423502()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x429b9c,_0x119a9d,_0x8ae002,_0x23ebd8)=>{const _0x2ea2f5=_0x53abfe;for(var _0x2a86b8=_0x23ebd8>0x1?void 0x0:_0x23ebd8?Lt(_0x119a9d,_0x8ae002):_0x119a9d,_0x3e8fa4=_0x429b9c[_0x2ea2f5(0x158)]-0x1,_0x279641;_0x3e8fa4>=0x0;_0x3e8fa4--)(_0x279641=_0x429b9c[_0x3e8fa4])&&(_0x2a86b8=_0x279641(_0x2a86b8)||_0x2a86b8);return _0x2a86b8;},V=(_0x25f0ae,_0xf3d23e)=>(_0x378c87,_0x24112d)=>_0xf3d23e(_0x378c87,_0x24112d,_0x25f0ae);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x53abfe(0x1d4)]{constructor(_0x4acd33,_0x259920,_0x58dd0d,_0x15987b){const _0x315a8a=_0x53abfe;super(),h(this,_0x315a8a(0xde),new d[(_0x315a8a(0x10e))](u[_0x315a8a(0x302)][_0x315a8a(0x2a4)])),(this[_0x315a8a(0x153)]=_0x4acd33,this[_0x315a8a(0x36e)]=_0x259920,this['_collaborationController']=_0x58dd0d,this[_0x315a8a(0x326)]=_0x15987b,this[_0x315a8a(0x2f5)](),this[_0x315a8a(0x350)]());}[_0x53abfe(0x350)](){const _0x50f6fc=_0x53abfe;this['disposeWithMe'](this[_0x50f6fc(0x153)][_0x50f6fc(0x30e)][_0x50f6fc(0x24a)](d[_0x50f6fc(0x20d)](()=>{const _0x33c3e5=_0x50f6fc,_0x4a9ceb=this['_univerInstanceService'][_0x33c3e5(0x2d9)]();return _0x4a9ceb?this[_0x33c3e5(0x1cb)][_0x33c3e5(0x1fd)](_0x4a9ceb[_0x33c3e5(0x2cc)]()):d['of'](null);}),d[_0x50f6fc(0x20d)](_0x435970=>_0x435970?_0x435970['status$']:d['of'](u[_0x50f6fc(0x302)][_0x50f6fc(0x2a4)])))[_0x50f6fc(0x2cf)](_0x42b1c1=>{const _0x27c06e=_0x50f6fc;this[_0x27c06e(0xde)][_0x27c06e(0x202)](_0x42b1c1);}));}[_0x53abfe(0x2f5)](){const _0x4323f0=_0x53abfe;this[_0x4323f0(0x223)](this[_0x4323f0(0x326)][_0x4323f0(0xe5)](T[_0x4323f0(0x110)][_0x4323f0(0x28e)],()=>T[_0x4323f0(0x12e)](wt({'status$':this[_0x4323f0(0xde)]['asObservable']()}),this[_0x4323f0(0x36e)])));}},exports[_0x53abfe(0x20a)]=Pt([V(0x0,a[_0x53abfe(0x13c)]),V(0x1,a[_0x53abfe(0x170)](a['Injector'])),V(0x2,a[_0x53abfe(0x170)](u[_0x53abfe(0x328)])),V(0x3,T[_0x53abfe(0x30c)])],exports[_0x53abfe(0x20a)]);function wt(_0x2cf4b7){const {status$:_0xf2041d}=_0x2cf4b7;return function(){return P['jsx'](xe,{'status$':_0xf2041d});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x4dc17d,_0x17831b,_0x2dcf4d,_0x5156ea)=>{const _0x3e5569=_0x53abfe;for(var _0x3b5945=_0x5156ea>0x1?void 0x0:_0x5156ea?At(_0x17831b,_0x2dcf4d):_0x17831b,_0x3ce834=_0x4dc17d[_0x3e5569(0x158)]-0x1,_0x2833f5;_0x3ce834>=0x0;_0x3ce834--)(_0x2833f5=_0x4dc17d[_0x3ce834])&&(_0x3b5945=_0x2833f5(_0x3b5945)||_0x3b5945);return _0x3b5945;},y=(_0x8d1b29,_0x2d40e5)=>(_0x250913,_0x141605)=>_0x2d40e5(_0x250913,_0x141605,_0x8d1b29);let K=class extends a[_0x53abfe(0x1d4)]{constructor(_0xfe3271,_0x584500,_0x4bdf2e,_0x206af1,_0x5a26c1,_0x3a8fc7){const _0x4ff7bc=_0x53abfe;super(),this[_0x4ff7bc(0x24e)]=_0xfe3271,this[_0x4ff7bc(0x31b)]=_0x584500,this[_0x4ff7bc(0x303)]=_0x4bdf2e,this['_messageService']=_0x206af1,this[_0x4ff7bc(0x298)]=_0x5a26c1,this[_0x4ff7bc(0x14a)]=_0x3a8fc7,this[_0x4ff7bc(0x368)](),this[_0x4ff7bc(0x116)]();}[_0x53abfe(0x368)](){const _0x35e997=_0x53abfe;this['disposeWithMe'](this[_0x35e997(0x24e)][_0x35e997(0x113)](()=>{const _0x4cd69a=_0x35e997;if(this['_localCacheService'][_0x4cd69a(0x1b7)][_0x4cd69a(0x36b)])return this[_0x4cd69a(0x14a)]['t'](_0x4cd69a(0x347));}));}[_0x53abfe(0x116)](){const _0x1f6c11=_0x53abfe;this[_0x1f6c11(0x223)](this[_0x1f6c11(0x303)]['event$'][_0x1f6c11(0x2cf)](_0x5f10fe=>{const _0x437109=_0x1f6c11;_0x5f10fe['id']===u[_0x437109(0x2c0)]['OTHER_CLIENT_EDITING']&&this[_0x437109(0x341)][_0x437109(0x119)]({'type':D[_0x437109(0x360)][_0x437109(0x306)],'content':this[_0x437109(0x14a)]['t']('collaboration.single-unit.warning')}),_0x5f10fe['id']===u[_0x437109(0x2c0)][_0x437109(0x2d7)]&&this[_0x437109(0x341)]['show']({'type':D[_0x437109(0x360)][_0x437109(0x306)],'content':this[_0x437109(0x14a)]['t'](_0x437109(0x2b4))}),_0x5f10fe['id']===u[_0x437109(0x2c0)][_0x437109(0x21e)]&&this[_0x437109(0x298)][_0x437109(0x119)]({'title':this[_0x437109(0x14a)]['t'](_0x437109(0x30f)),'content':this[_0x437109(0x14a)]['t'](_0x437109(0x33c)),'type':_0x437109(0x243),'duration':0x0}),_0x5f10fe['id']===u[_0x437109(0x2c0)][_0x437109(0x14d)]&&this[_0x437109(0x341)][_0x437109(0x119)]({'type':D['MessageType'][_0x437109(0x109)],'content':this[_0x437109(0x14a)]['t'](_0x437109(0x2b4))+'('+_0x5f10fe[_0x437109(0x143)]+')'}),_0x5f10fe['id']===u[_0x437109(0x2c0)][_0x437109(0x207)]&&this['_messageService'][_0x437109(0x119)]({'type':D[_0x437109(0x360)]['Warning'],'content':this[_0x437109(0x14a)]['t'](_0x5f10fe[_0x437109(0x143)]||'')}),_0x5f10fe['id']===u['CollaborationUIEventId'][_0x437109(0x14b)]&&this[_0x437109(0x341)][_0x437109(0x119)]({'type':D['MessageType'][_0x437109(0x306)],'content':this[_0x437109(0x14a)]['t'](_0x437109(0x338))}),_0x5f10fe['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x437109(0x341)][_0x437109(0x119)]({'type':D['MessageType']['Error'],'content':this[_0x437109(0x14a)]['t'](_0x437109(0x1ca))}),_0x5f10fe['id']===u['CollaborationUIEventId'][_0x437109(0x22b)]&&this['_messageService'][_0x437109(0x119)]({'type':D[_0x437109(0x360)][_0x437109(0x109)],'content':this[_0x437109(0x14a)]['t'](_0x437109(0x25a))});}));}};K=yt([y(0x0,T[_0x53abfe(0x2a1)]),y(0x1,u[_0x53abfe(0x168)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T[_0x53abfe(0xff)]),y(0x4,T[_0x53abfe(0x1ba)]),y(0x5,a[_0x53abfe(0x170)](a[_0x53abfe(0x13f)]))],K);const $t=_0x53abfe(0x1be),Ue={},be=a[_0x53abfe(0x271)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x72f905,_0x3a5df7,_0x1566b9,_0x36c4b4)=>{for(var _0x4ae370=_0x36c4b4>0x1?void 0x0:_0x36c4b4?xt(_0x3a5df7,_0x1566b9):_0x3a5df7,_0x1a3792=_0x72f905['length']-0x1,_0x3d7b81;_0x1a3792>=0x0;_0x1a3792--)(_0x3d7b81=_0x72f905[_0x1a3792])&&(_0x4ae370=_0x3d7b81(_0x4ae370)||_0x4ae370);return _0x4ae370;},H=(_0x343c,_0xa5fc37)=>(_0x204f7b,_0x475e62)=>_0xa5fc37(_0x204f7b,_0x475e62,_0x343c);exports[_0x53abfe(0x213)]=class extends a[_0x53abfe(0x353)]{constructor(_0x1df983,_0xb57d4a,_0x37362b,_0x26b9a4,_0x20c473){const _0x196aa3=_0x53abfe;super(),this[_0x196aa3(0x315)]=_0x1df983,this[_0x196aa3(0x30a)]=_0xb57d4a,this[_0x196aa3(0x29b)]=_0x37362b,this[_0x196aa3(0x165)]=_0x26b9a4,_0x20c473?_0x20c473==null||_0x20c473[_0x196aa3(0x18d)]()[_0x196aa3(0x1f0)](()=>this[_0x196aa3(0xdf)]()):(this[_0x196aa3(0x30a)][_0x196aa3(0x1d3)](_0x196aa3(0x1b2),_0x196aa3(0x226)),this[_0x196aa3(0xdf)]());}async[_0x53abfe(0xdf)](){const _0x530400=_0x53abfe,_0xafc2e4=this[_0x530400(0x315)][_0x530400(0x27a)](_0x530400(0x31e)),_0x4caca8=this[_0x530400(0x315)][_0x530400(0x27a)](_0x530400(0x1b3)),_0x4b12d4=this[_0x530400(0x315)][_0x530400(0x27a)](_0x530400(0x2ec));if(!_0xafc2e4||!_0x4caca8){this[_0x530400(0x30a)][_0x530400(0x1d3)](_0x530400(0x1b2),_0x530400(0x34c));return;}const _0x105b88=await this[_0x530400(0x165)][_0x530400(0x183)](_0xafc2e4,Number(_0x4caca8),_0x4b12d4);_0x105b88&&_0x105b88 instanceof a['Workbook']&&this[_0x530400(0x2e9)](_0x105b88);}async[_0x53abfe(0x2e9)](_0x4dbaf2){const _0x4781eb=_0x53abfe;await this['_updateSubUnitFromURLParams'](_0x4dbaf2),_0x4dbaf2[_0x4781eb(0x2e2)][_0x4781eb(0x24a)](d['takeUntil'](this[_0x4781eb(0x301)]))[_0x4781eb(0x2cf)](_0x4d35fc=>{const _0x23b017=_0x4781eb;_0x4d35fc&&this[_0x23b017(0x12c)](_0x4d35fc);}),this[_0x4781eb(0x315)][_0x4781eb(0x245)][_0x4781eb(0x24a)](d[_0x4781eb(0x35f)](this['dispose$']))[_0x4781eb(0x2cf)](()=>this['_updateSubUnitFromURLParams'](_0x4dbaf2));}['_updateURLWithCurrentState'](_0x3b424c,_0x30c01a=!0x1){const _0x5266b5=_0x53abfe,_0x27f4bc=this['_urlService'][_0x5266b5(0x27a)](_0x5266b5(0x2ec));_0x3b424c[_0x5266b5(0x355)]()!==_0x27f4bc&&this[_0x5266b5(0x315)][_0x5266b5(0x20c)](_0x5266b5(0x2ec),_0x3b424c[_0x5266b5(0x355)](),_0x30c01a);}async[_0x53abfe(0x30d)](_0x12c488){const _0x539ade=_0x53abfe;var _0x533710;const _0x5d9cc9=this[_0x539ade(0x315)][_0x539ade(0x27a)](_0x539ade(0x2ec));if(!_0x5d9cc9||!_0x12c488['getSheetBySheetId'](_0x5d9cc9)){const _0x4d4b02=_0x12c488[_0x539ade(0x21b)]()[0x0],_0x10a4c0=_0x12c488[_0x539ade(0x2d4)](_0x4d4b02);if(!_0x10a4c0)return;this[_0x539ade(0x12c)](_0x10a4c0,!0x0),await this[_0x539ade(0x29b)]['executeCommand'](g[_0x539ade(0x36c)]['id'],{'unitId':_0x12c488[_0x539ade(0x2cc)](),'subUnitId':_0x4d4b02});return;}((_0x533710=_0x12c488['getActiveSheet']())==null?void 0x0:_0x533710[_0x539ade(0x355)]())!==_0x5d9cc9&&await this['_commandService'][_0x539ade(0x101)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x12c488['getUnitId'](),'subUnitId':_0x5d9cc9});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x53abfe(0x1c4)]),H(0x2,a[_0x53abfe(0x289)]),H(0x3,a['Inject'](u[_0x53abfe(0x333)])),H(0x4,a[_0x53abfe(0x151)](qe[_0x53abfe(0x1ae)]))],exports[_0x53abfe(0x213)]);var Bt=Object[_0x53abfe(0x20b)],kt=(_0x116c03,_0x2cb517,_0x53c99e,_0x4befb6)=>{const _0x26356b=_0x53abfe;for(var _0x363b90=_0x4befb6>0x1?void 0x0:_0x4befb6?Bt(_0x2cb517,_0x53c99e):_0x2cb517,_0xe5a8b8=_0x116c03[_0x26356b(0x158)]-0x1,_0x1a7849;_0xe5a8b8>=0x0;_0xe5a8b8--)(_0x1a7849=_0x116c03[_0xe5a8b8])&&(_0x363b90=_0x1a7849(_0x363b90)||_0x363b90);return _0x363b90;},ce=(_0x1d2589,_0x28b912)=>(_0x7d7f7d,_0x5c16bf)=>_0x28b912(_0x7d7f7d,_0x5c16bf,_0x1d2589);let z=class{constructor(_0x523b3f,_0x577cd0,_0x557946){const _0x4b4f37=_0x53abfe;this[_0x4b4f37(0x36e)]=_0x523b3f,this['_transformService']=_0x577cd0,this[_0x4b4f37(0x112)]=_0x557946;}[_0x53abfe(0x1cd)](_0x4731d2){const _0x2022b6=_0x53abfe;this[_0x2022b6(0x267)](_0x4731d2),this[_0x2022b6(0x319)](_0x4731d2);}['transformRemoteChangeset'](_0x731eee){const _0x34bd02=_0x53abfe,{unitID:_0x1da44c}=_0x731eee,_0x2575fa=this['_renderManagerService'][_0x34bd02(0xe3)](_0x1da44c)[_0x34bd02(0x2e8)](b[_0x34bd02(0x1d1)]),{redoCache:_0x155b07}=_0x2575fa['getUndoRedoMutationParamsCache']();if(_0x155b07['length']===0x0)return _0x731eee;let _0xc93e47=a[_0x34bd02(0x366)][_0x34bd02(0x210)](_0x731eee[_0x34bd02(0x17a)][0x0]);for(let _0x417827=0x0;_0x417827<_0x155b07['length'];_0x417827++){const _0x15098c={'id':_0x34bd02(0x1e6),'params':{..._0x155b07[_0x417827]}},_0x5de52c=this[_0x34bd02(0x19d)][_0x34bd02(0x11e)](_0xc93e47,_0x15098c,!0x1);if(m[_0x34bd02(0x292)](_0x5de52c))throw _0x5de52c['error'];_0xc93e47=_0x5de52c['m1Prime'];}return{...a['Tools'][_0x34bd02(0x210)](_0x731eee),'mutations':[_0xc93e47]};}[_0x53abfe(0x267)](_0x1beafa){const _0xc7b58b=_0x53abfe,{unitID:_0x278c1c}=_0x1beafa,_0x13b549=this[_0xc7b58b(0x112)][_0xc7b58b(0xe3)](_0x278c1c)['with'](b[_0xc7b58b(0x1d1)]),{undoCache:_0x40c243,redoCache:_0x49efd9}=_0x13b549[_0xc7b58b(0x2af)]();if(_0x40c243['length']===0x0||_0x49efd9[_0xc7b58b(0x158)]===0x0)return;const _0xf05090=[],_0x14418d=[];let _0x2e1fe0=a[_0xc7b58b(0x366)][_0xc7b58b(0x210)](_0x1beafa[_0xc7b58b(0x17a)][0x0]),_0x58807b=a[_0xc7b58b(0x366)][_0xc7b58b(0x210)](_0x1beafa[_0xc7b58b(0x17a)][0x0]);for(let _0x51bde5=_0x40c243[_0xc7b58b(0x158)]-0x1;_0x51bde5>=0x0;_0x51bde5--){const _0x5584ba={'id':_0xc7b58b(0x1e6),'params':{..._0x40c243[_0x51bde5]}},_0x3fa90e={'id':'doc.mutation.rich-text-editing','params':{..._0x49efd9[_0x51bde5]}},_0x4d2d27=this[_0xc7b58b(0x19d)][_0xc7b58b(0x11e)](_0x2e1fe0,_0x5584ba,!0x1),_0x1b4b6f=this[_0xc7b58b(0x19d)]['transformMutation'](_0x58807b,_0x3fa90e,!0x1);if(m[_0xc7b58b(0x292)](_0x4d2d27))throw _0x4d2d27['error'];if(m['isTransformMutationFailure'](_0x1b4b6f))throw _0x1b4b6f[_0xc7b58b(0x243)];_0xf05090[_0xc7b58b(0x160)](_0x4d2d27[_0xc7b58b(0x203)]['params']),_0x14418d[_0xc7b58b(0x160)](_0x1b4b6f[_0xc7b58b(0x203)][_0xc7b58b(0xe7)]),_0x2e1fe0=_0x4d2d27[_0xc7b58b(0x1f1)],_0x58807b=_0x1b4b6f[_0xc7b58b(0x1f1)];}_0x13b549[_0xc7b58b(0x142)]({'undoCache':_0xf05090,'redoCache':_0x14418d});}[_0x53abfe(0x319)](_0x2c6cf6){const _0x569827=_0x53abfe,{unitID:_0x4e0857}=_0x2c6cf6,_0x2b4642=this[_0x569827(0x112)][_0x569827(0xe3)](_0x4e0857)['with'](b['DocIMEInputManagerService']),_0x4dd19f=_0x2b4642[_0x569827(0x300)]();if(_0x4dd19f==null)return;const _0x19c2a1=[{'id':_0x569827(0x1e6),'params':{'unitId':_0x2c6cf6[_0x569827(0x187)],'actions':null,'textRanges':[_0x4dd19f]}}],_0x2f7bfa=this[_0x569827(0x19d)][_0x569827(0x146)](_0x2c6cf6,_0x19c2a1);if(!m[_0x569827(0x205)](_0x2f7bfa))throw _0x2f7bfa['error'];const _0x2537b8=_0x2f7bfa['m2Prime'][0x0][_0x569827(0xe7)]['textRanges'];Array[_0x569827(0x258)](_0x2537b8)&&_0x2537b8[_0x569827(0x158)]&&_0x2b4642[_0x569827(0x332)](_0x2537b8[0x0]);}};function _0x1d25(){const _0x12517a=['from','measureText','UnitStatus','_unitStatus','getConfig','_notificationService','verdancy600','setTimeout','_commandService','addObject','onCommandExecuted','setInterval','_handleJoinEvent','toDisposable','IBeforeCloseService','UNRECOGNIZED','filter','NOT_COLLAB','round','jsxs','fill','NodePositionConvertToRectRange','YUUMI_RATE_OVER_LIMIT','throttleTime','generateRandomId','_handleHover','url(#$1','TOO_MANY_REQUESTS','getUndoRedoMutationParamsCache','onTransformChange$','color','LICENSE_DISTRO_REJECTED','none','collaboration.closeRoom','_sheetSkeletonManagerService','contains','271844KCGSzN','_startSheetCollabCursor','univer-flex\x20univer-items-center','origin','DOC_RANGE_TYPE','makeDirty','_anchor','_collabCursorState$','isActive','CollaborationUIEventId','handleInsertRow','RichTextEditingMutation','get','_render','RemoveColCommandId','HTTPService','_assignedColors','_unitOnClients','DocSelectionManagerService','onPointerEnter$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getUnitId','parse','_config','subscribe','use','collabCursorState$','collabStatus.fetchMiss','getViewport','getSheetBySheetId','findNodePositionByCharIndex','YUUMI_NO_CUBOID_FOR_QUESTION','CLOSE_ROOM','roomMembers','getFocusedUnit','resize','getUniverSheetInstance','getUnitStatus$','idSuffix','assign','USER_NOT_INVITED_CODE','DocStateChangeManagerService','IRenderManagerService','activeSheet$','_entityInit$','children','handleDeleteRangeMoveUp','DocSkeletonManagerService','WebURLService','with','_setupSubUnitSync','_scheduleSaving','InsertRangeMoveDownCommandId','subunit','DeleteRangeMoveLeftCommandId','some','SheetsSelectionsService','asObservable','_textBubble','WebBrowserSingleActiveUnitService','OTHER_CLIENTS_EDITING','cursorInfo$','_initStatusComponent','_online','EMAIL_HAS_BEEN_BOUND','511433jJozAx','defineProperty','_handleLeaveEvent','_docTransformSelectionsService','on-line-single','clsx','_localStorageService','49515uxYnXY','getActiveRange','dispose$','CollaborationStatus','_collaborationUIEventService','complete','Failed','Warning','_entities','source','InsertColCommandId','_logService','body','IUIPartsService','_updateSubUnitFromURLParams','focused$','permission.title','#FFF','addEventListener','ISocketService','UNAUTHENTICATED','DependentOn','_urlService','UNDEFINED','saveImage','dispose','_transformPreviousActiveRange','@univerjs/engine-render','_localCacheService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getLocalCacheKey','unit','redoState','fromEvent','_themeService','IImageIoService','LOGIN_FAILED','SessionStatus','UNIVER_DOC','_uiPartsService','unload','CollaborationController','MOBILE_HAS_BEEN_BOUND','cursorInfo','_colorIndex','fromEventSubject','YUUMI_ASYNCIO_CANCELLED','add','selections','2142876hvVkzr','DeleteRangeMoveUpCommandId','setActiveRange','DataLoaderService','ONLINE','addClipboardHook','event$','searchParams','session.will-retry','onRendered','editingUnit','startColumn','permission.content','defs','arc','sessionTicket','beginPath','_messageService','transformStateCache','ITransformService','_roomMembers$','collab-text-range-','subscribeEvent','collaboration-client.offline-data-not-saved','getCurrent','handleMoveRange','onStarting','lineTo','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','updateOfflineData','Shape','SNAPSHOT_HAS_BEEN_REMOVED','_initStatusListener','ISnapshotServerService','has','RxDisposable','_initResize','getSheetId','EffectRefRangId','_refRangeService','BrowserCollaborationSocketService','transformByState','override','Rect','debounce','ENSURE_SNAPSHOT_EXECUTION','name','takeUntil','MessageType','INVITE_CODE_ALREADY_BOUND','react','getCollabCursors$','LICENSE_MAX_UNITS_EXCEEDED','_handleEvent','Tools','colorChannel1','_setupBeforeClosingHandler','onPointerMove$','RevisionService','size','SetWorksheetActivateCommand','TEXT','_injector','_onCursorDelete','_registerDependencies','univerjs-icon\x20univerjs-icon-','unitId','InsertRangeMoveRightCommandId','clearInterval','_status$','_init','propertyIsEnumerable','CollaborationEvent','_updateLocalCursor','getRenderById','_range','registerComponent','LICENSE_EXPORT_SIZE_EXCEEDED','params','save','getDocRanges','40VdRLpV','fillRule','INVITE_CODE_HAS_BEEN_UES','_ensureSubject','APPLY_REVISION_CONFILICT','engine','removeParam','split','getCurrentRevOfUnit','pluginName','rgba(255,\x20255,\x20255,\x200.01)','_doCreateSocket','replace','delete','hide','_handleHeartbeatEvent','getStateCache','transformRemoteChangeset','fillStyle','currentColor','min','IMessageService','_imageIoService','executeCommand','useCallback','subUnitId','setShapeProps','concat','UniverCollaborationClientUIPlugin','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','sheetID','Error','SetTextSelectionsOperation','currentTheme$','undoState','_draw','BehaviorSubject','setItem','BuiltInUIPart','newValue','_renderManagerService','registerBeforeClose','_getScale','_onCursorUpdate','_initEvent','_startDocCollabCursor','_updateCollabCursors','show','_docTransformStateCacheService','DocCollaborationEntity','M0\x200H16V16H0z','setAlpha','transformMutation','closePath','assignAColorForMemberID','@univerjs/rpc','0\x200\x2016\x2016','reconnect','extend','APPLY_REJECT','entityInit$','off-line-single','distinctUntilChanged','mask','UniverCollaborationClientPlugin','@univerjs/ui','_updateURLWithCurrentState','_scheduleClearOtherTimer','connectInjector','column','top','_scene','getMergeData','_configService','COLORS','CHANGESET_REVISION_CONFILICT','_color','_saveCache','jiqing500','stringify','RECT','gold400','IUniverInstanceService','transform','includes','LocaleService','blue400','_transformHistoryAndStateStack','setUndoRedoMutationParamsCache','data','Vector2','application/json','transformMutationsWithChangeset','set','symbol','VIEW_MAIN','_localeService','SOCKET_FAILED_RETRY','red300','CONFLICT','CollaborationSessionService','2tzcByI','_hovered','Optional','handleDeleteRangeMoveLeft','_univerInstanceService','_docTransformIMECacheService','values','getSheetObject','svg','length','APPLY_DUPLICATED','_name','handleIRemoveCol','_drawTextRange','collab-text-anchor-','runRefRangeMutations','_saveTaskMap','unshift','_clearOtherTimers','requireSession','bottom','triggerDblclick','_dataLoaderService','UniverInstanceType','Injector','ILocalCacheService','_docStateChangeManagerService','univer-text-green-500','collabStatus.syncing','post','runOnServer','MoveRangeCommandId','INVALID_INVITE_CODE','Inject','clearTimeout','forwardRef','prototype','_docSkeletonManagerService','_revisionService','imageSourceType','_removeCollabCursors','RegularPolygon','RemoveRowCommandId','mutations','getCurrentSelections','_anchorDot','black','onMouseMove','_labelPosition','_getAnchorBounding','_syncEditingCollabCursorService','_hover','loadUnit','SetDocZoomRatioOperation','endRow','APPLY_NON_SEQUENTIAL_REVISION','unitID','YUUMI_SUBSCRIPTION_NOT_FOUND','getRelativeToViewportCoord','sessionStatus$','path','executionId','whenReady','ThemeService','exhaustSavingTask','push','0\x200\x2017\x2016','Plugin','getVpScrollXYInfoByPosToVp','USERS_LEAVE','...','forEach','getSkeleton','url(#on-line-single_clip0_910_349)','collabStatus.conflict','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','invokeId','toStringTag','_transformService','shareReplay','ALREADY_EXISTS','fillText','_memberService','_hideTimer','1651581tjhzMx','UNIVER_SHEET','CollaborationSocketService','toRgbString','href','className','current','_initEntityListener','_removeClearOtherTimer','range','history','IRemoteInstanceService','FromArray','/run/','replaceState','[CollaborationDataLoaderController]','type','_cursorInfo$','MUTATION','merge','saveTaskMap','Tooltip','ranges','INotificationService','evenodd','jsx','send','collaboration-client-ui.config','hasOwnProperty','serializeRangeWithSheet','displayName','INTERNAL_ERROR','handleInsertRangeMoveDown','ILogService','getTypeOfUnitAdded$','_disabled','_cursor','_docClipboardService','IURLService','session.connection-failed','_collaborationController','map','transformIMECache','syncEditingCollabCursor','getValue','36xPcHwJ','DocIMEInputManagerService','attrs','debug','Disposable','1em','combineLatest','DEFAULT_WS_SESSION_TICKET_URL','ColorKit','drawWith','OffLineSingle','location','IConfigService','div','onPointerLeave$','getColor','_refreshCollabCursors','_session','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','_send','handleInsertRangeMoveRight','SheetSkeletonManagerService','doc.mutation.rich-text-editing','entries','OFFLINE','_lastPointer','UPDATE_CURSOR','collab-client.tooltip.reconnect','10OlDdlt','@univerjs/network','function','xlink:href','then','m1Prime','key','memberID','PENDING','@univerjs-pro/collaboration','_getMergeRange','Unknown\x20user','112wnDQDu','_heartbeatTimer','_cursors','_toggleOnline','_httpService','getCollabEntity$','AWAITING','createInstance','NO_OTHER_CLIENTS_EDITING','_selfUnitIDs','next','m2Prime','OnLineSingle','isTransformMutationsWithChangesetSuccess','registerRenderModule','JOIN_ROOM_FAILED','useDependency','CONNECTOR_DATA_TOO_LARGE','DesktopCollaborationStatusDisplayController','getOwnPropertyDescriptor','setParam','switchMap','call','mergeOverrideWithDependencies','deepClone','toString','selection','CollaborationDataLoaderController','indexOf','collabStatus.notCollab','_drawAnchor','@univerjs/sheets-ui','icon','saveOfflineData','wsSessionTicketUrl','getUnhiddenWorksheets','_collabSessionService','SNAPSHOT_INVALID_SNAPSHOT','PERMISSION_DENIED','_cachedData','11IrCePs','off-line-single_clip0_910_343','rxjs/operators','disposeWithMe','_initCommandExecutedListener','transformSelections','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getMemberID','endColumn','YUUMI_URL_COL_OUT_OF_RANGE','_initDependencies','SUBMIT_CHANGESET_TIMEOUT','max','_context','actions','restore','_toggleOffline','254989DkyPAw','IDocClipboardService','string','3GAGpcg','textRanges','storage','_id','_shapes','MemberService','getOwnPropertySymbols','tag','LICENSE_IMPORT_SIZE_EXCEEDED','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','height','handleInsertCol','APPLY_PERMISSION_DENIED','popstate','AWAITING_WITH_PENDING','error','PY_RUNTIME_SCRIPT_ERROR','urlChange$','@univerjs-pro/collaboration-client','pushState','_registerRenderDependencies','unsubscribe','pipe','defIds','#fff','row','_beforeCloseService','replaceDocRanges','deserializeRangeWithSheet','ACTIVE_UNIT_EVENT_CHANNEL','INVITE_CODE_REQUIRED','_instanceService','_colorAssignService','_scheduleHeartbeat','TRANSFORM_CHANGE_OBSERVABLE_TYPE','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','isArray','setConfig','session.collaboration-timeout','getMember','_getSessionTicket','disposeUnit','createElement','rxjs','_getSaveTimeout','text','sheetId','roomMembers$','touchDependencies','162242wJJZRu','WECHAT_HAS_BEEN_BOUND','_transformUndoRedoStack','registerRefRange','NOT_FOUND','_collabCursorController','InsertRowCommandId','_cursorShapes','runId','ticket','isEditing','url(#off-line-single_clip0_910_343)','createIdentifier','getTypeOfUnitDisposed$','INVALID_ARGUMENT','currentSkeleton$','RemoteUniscriptService','getCoordByCell','SHEET_VIEWPORT_KEY','width','loadOfflineData','getParam','moveTo','react/jsx-runtime','docStateChange$','_backgroundColor','getRangePointData','@univerjs/core','clipPath','_onRefRangeChange','init','TEXT_RANGE_LAYER_INDEX','debounceTime','_eventUnsubscribe','backgroundColor','@univerjs/drawing','ICommandService','@univerjs/docs','trim','@univerjs/design','_getSheetObject','HEADER_MENU','getAncestorScale','registerDependencies','RefRangeService','isTransformMutationFailure'];_0x1d25=function(){return _0x12517a;};return _0x1d25();}z=kt([ce(0x0,a[_0x53abfe(0x170)](a[_0x53abfe(0x167)])),ce(0x1,m[_0x53abfe(0x343)]),ce(0x2,p[_0x53abfe(0x2e1)])],z);var Ht=Object[_0x53abfe(0x20b)],Ft=(_0x187306,_0x2480a6,_0x410a72,_0x2f948f)=>{const _0xc6c807=_0x53abfe;for(var _0x57fcc3=_0x2f948f>0x1?void 0x0:_0x2f948f?Ht(_0x2480a6,_0x410a72):_0x2480a6,_0x2007e0=_0x187306[_0xc6c807(0x158)]-0x1,_0x1fb739;_0x2007e0>=0x0;_0x2007e0--)(_0x1fb739=_0x187306[_0x2007e0])&&(_0x57fcc3=_0x1fb739(_0x57fcc3)||_0x57fcc3);return _0x57fcc3;},le=(_0x5c7ca9,_0x238de4)=>(_0x26a015,_0xaec853)=>_0x238de4(_0x26a015,_0xaec853,_0x5c7ca9);let J=class{constructor(_0x1df219,_0x375c5f,_0x5a1d25){const _0x396a44=_0x53abfe;this[_0x396a44(0x36e)]=_0x1df219,this[_0x396a44(0x19d)]=_0x375c5f,this['_docStateChangeManagerService']=_0x5a1d25;}[_0x53abfe(0x342)](_0x3fd937){const _0x252f1e=_0x53abfe;this[_0x252f1e(0x141)](_0x3fd937);}[_0x53abfe(0xfb)](_0x5efb36){const _0x38010c=_0x53abfe,{unitID:_0x1c15fc}=_0x5efb36,{collaboration:_0x53e54a}=this['_docStateChangeManagerService'][_0x38010c(0xfa)](_0x1c15fc);if(_0x53e54a[_0x38010c(0x158)]===0x0)return _0x5efb36;let _0x5653e1=a[_0x38010c(0x366)][_0x38010c(0x210)](_0x5efb36['mutations'][0x0]);for(let _0x11f6c4=0x0;_0x11f6c4<_0x53e54a[_0x38010c(0x158)];_0x11f6c4++){const _0x106a3b={'id':_0x38010c(0x1e6),'params':{'unitId':_0x53e54a[_0x11f6c4][_0x38010c(0xdb)],..._0x53e54a[_0x11f6c4][_0x38010c(0x31f)]}},_0x11b120=this[_0x38010c(0x19d)]['transformMutation'](_0x5653e1,_0x106a3b,!0x1);if(m[_0x38010c(0x292)](_0x11b120))throw _0x11b120[_0x38010c(0x243)];_0x5653e1=_0x11b120['m1Prime'];}return{...a[_0x38010c(0x366)][_0x38010c(0x210)](_0x5efb36),'mutations':[_0x5653e1]};}[_0x53abfe(0x141)](_0x32eef9){const _0x32e1cc=_0x53abfe,{unitID:_0x3f6f85}=_0x32eef9,{history:_0x403a55,collaboration:_0x2b65f0}=this['_docStateChangeManagerService'][_0x32e1cc(0xfa)](_0x3f6f85);if(_0x403a55[_0x32e1cc(0x158)]===0x0&&_0x2b65f0[_0x32e1cc(0x158)]===0x0)return;const _0x130063=[],_0x37a56d=[];let _0x55b6e2=a[_0x32e1cc(0x366)][_0x32e1cc(0x210)](_0x32eef9[_0x32e1cc(0x17a)][0x0]),_0x1da3c8=a['Tools'][_0x32e1cc(0x210)](_0x32eef9['mutations'][0x0]);for(let _0x3f5a24=_0x403a55[_0x32e1cc(0x158)]-0x1;_0x3f5a24>=0x0;_0x3f5a24--){const _0x282383={'id':_0x32e1cc(0x1e6),'params':{'unitId':_0x403a55[_0x3f5a24][_0x32e1cc(0xdb)],..._0x403a55[_0x3f5a24][_0x32e1cc(0x10c)]}},_0xe3452={'id':_0x32e1cc(0x1e6),'params':{'unitId':_0x403a55[_0x3f5a24][_0x32e1cc(0xdb)],..._0x403a55[_0x3f5a24][_0x32e1cc(0x31f)]}},_0x5391f3=this[_0x32e1cc(0x19d)][_0x32e1cc(0x11e)](_0x55b6e2,_0x282383,!0x1),_0x526412=this[_0x32e1cc(0x19d)]['transformMutation'](_0x1da3c8,_0xe3452,!0x1);if(m[_0x32e1cc(0x292)](_0x5391f3))throw _0x5391f3[_0x32e1cc(0x243)];if(m[_0x32e1cc(0x292)](_0x526412))throw _0x526412[_0x32e1cc(0x243)];_0x130063['unshift']({..._0x403a55[_0x3f5a24],'undoState':_0x5391f3['m2Prime']['params'],'redoState':_0x526412[_0x32e1cc(0x203)][_0x32e1cc(0xe7)]}),_0x55b6e2=_0x5391f3[_0x32e1cc(0x1f1)],_0x1da3c8=_0x526412[_0x32e1cc(0x1f1)];}_0x55b6e2=a[_0x32e1cc(0x366)][_0x32e1cc(0x210)](_0x32eef9[_0x32e1cc(0x17a)][0x0]),_0x1da3c8=a['Tools'][_0x32e1cc(0x210)](_0x32eef9[_0x32e1cc(0x17a)][0x0]);for(let _0x30cd40=_0x2b65f0[_0x32e1cc(0x158)]-0x1;_0x30cd40>=0x0;_0x30cd40--){const _0x1d9d11={'id':_0x32e1cc(0x1e6),'params':{'unitId':_0x2b65f0[_0x30cd40][_0x32e1cc(0xdb)],..._0x2b65f0[_0x30cd40][_0x32e1cc(0x10c)]}},_0x3a369e={'id':_0x32e1cc(0x1e6),'params':{'unitId':_0x2b65f0[_0x30cd40][_0x32e1cc(0xdb)],..._0x2b65f0[_0x30cd40][_0x32e1cc(0x31f)]}},_0x5e5b15=this[_0x32e1cc(0x19d)][_0x32e1cc(0x11e)](_0x55b6e2,_0x1d9d11,!0x1),_0x2cb6c5=this[_0x32e1cc(0x19d)][_0x32e1cc(0x11e)](_0x1da3c8,_0x3a369e,!0x1);if(m[_0x32e1cc(0x292)](_0x5e5b15))throw _0x5e5b15[_0x32e1cc(0x243)];if(m[_0x32e1cc(0x292)](_0x2cb6c5))throw _0x2cb6c5['error'];_0x37a56d[_0x32e1cc(0x160)]({..._0x2b65f0[_0x30cd40],'undoState':_0x5e5b15[_0x32e1cc(0x203)]['params'],'redoState':_0x2cb6c5['m2Prime'][_0x32e1cc(0xe7)]}),_0x55b6e2=_0x5e5b15[_0x32e1cc(0x1f1)],_0x1da3c8=_0x2cb6c5[_0x32e1cc(0x1f1)];}this['_docStateChangeManagerService']['setStateCache'](_0x3f6f85,{'history':_0x130063,'collaboration':_0x37a56d});}};J=Ft([le(0x0,a['Inject'](a[_0x53abfe(0x167)])),le(0x1,m[_0x53abfe(0x343)]),le(0x2,a[_0x53abfe(0x170)](b['DocStateChangeManagerService']))],J);var Wt=Object[_0x53abfe(0x20b)],Yt=(_0x4da78a,_0xb49f91,_0x2f5088,_0x5c14f3)=>{for(var _0x4c1927=_0x5c14f3>0x1?void 0x0:_0x5c14f3?Wt(_0xb49f91,_0x2f5088):_0xb49f91,_0x144ef2=_0x4da78a['length']-0x1,_0x4b6ebd;_0x144ef2>=0x0;_0x144ef2--)(_0x4b6ebd=_0x4da78a[_0x144ef2])&&(_0x4c1927=_0x4b6ebd(_0x4c1927)||_0x4c1927);return _0x4c1927;},Ne=(_0x4c09d9,_0x43fa77)=>(_0x335d72,_0x394b05)=>_0x43fa77(_0x335d72,_0x394b05,_0x4c09d9);let Z=class{constructor(_0x444271,_0x534647){const _0x3b24cf=_0x53abfe;this[_0x3b24cf(0x36e)]=_0x444271,this[_0x3b24cf(0x19d)]=_0x534647;}[_0x53abfe(0x225)](_0x5d1e6e){const _0x31679f=_0x53abfe;var _0x204e2e;const _0x48cfb5=this[_0x31679f(0x36e)][_0x31679f(0x2c3)](W[_0x31679f(0x2c9)]),_0x3f6801=(_0x204e2e=_0x48cfb5['getDocRanges']())!=null?_0x204e2e:[];if(_0x3f6801[_0x31679f(0x158)]===0x0)return;const _0x386512=_0x5d1e6e[_0x31679f(0x187)],_0x13977b=[{'id':_0x31679f(0x1e6),'params':{'unitId':_0x386512,'actions':null,'textRanges':_0x3f6801}}],_0x19bc2d=this[_0x31679f(0x19d)]['transformMutationsWithChangeset'](_0x5d1e6e,_0x13977b);if(!m[_0x31679f(0x205)](_0x19bc2d))throw _0x19bc2d[_0x31679f(0x243)];const _0x47699a=_0x19bc2d[_0x31679f(0x203)][0x0]['params']['textRanges'];Array[_0x31679f(0x258)](_0x47699a)&&_0x47699a[_0x31679f(0x158)]&&_0x48cfb5[_0x31679f(0x24f)](_0x47699a,{'unitId':_0x386512,'subUnitId':_0x386512},!0x1);}};Z=Yt([Ne(0x0,a['Inject'](a[_0x53abfe(0x167)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x53abfe(0x20b)],Xt=(_0x5676c7,_0xfe0a0e,_0x51bad9,_0x46e182)=>{const _0x4c6187=_0x53abfe;for(var _0x446efb=_0x46e182>0x1?void 0x0:_0x46e182?Vt(_0xfe0a0e,_0x51bad9):_0xfe0a0e,_0x5a4c46=_0x5676c7[_0x4c6187(0x158)]-0x1,_0x9b7671;_0x5a4c46>=0x0;_0x5a4c46--)(_0x9b7671=_0x5676c7[_0x5a4c46])&&(_0x446efb=_0x9b7671(_0x446efb)||_0x446efb);return _0x446efb;},N=(_0x32b8f8,_0x20c295)=>(_0x178261,_0x24f496)=>_0x20c295(_0x178261,_0x24f496,_0x32b8f8);let Q=class extends a[_0x53abfe(0x1d4)]{constructor(_0x5b1d55,_0x2b450e,_0x12b9b4,_0x18bf9a,_0x5a7fca,_0x977689,_0x2cda9f,_0x1c8b22){const _0x5dcccc=_0x53abfe;super(),h(this,_0x5dcccc(0xde),new d[(_0x5dcccc(0x10e))](u[_0x5dcccc(0x302)]['NOT_COLLAB'])),(this[_0x5dcccc(0x169)]=_0x5b1d55,this['_collaborationController']=_0x2b450e,this[_0x5dcccc(0x154)]=_0x12b9b4,this[_0x5dcccc(0x11a)]=_0x18bf9a,this[_0x5dcccc(0x2fb)]=_0x5a7fca,this['_docSyncEditingCollabCursorService']=_0x977689,this[_0x5dcccc(0x341)]=_0x2cda9f,this[_0x5dcccc(0x14a)]=_0x1c8b22,this[_0x5dcccc(0x1aa)]());}['_initEntityListener'](){const _0x56d858=_0x53abfe;this['disposeWithMe'](this[_0x56d858(0x1cb)][_0x56d858(0x126)][_0x56d858(0x2cf)](_0x28d5bf=>{const _0x2384e2=_0x56d858,_0x11b322=this[_0x2384e2(0x169)][_0x2384e2(0x27d)]['subscribe'](_0x22f205=>{const _0x18ce16=_0x2384e2;if(_0x22f205==null)return;const {unitId:_0x89ab28,redoState:_0x2a0fd5,commandId:_0x590519}=_0x22f205;if(_0x89ab28!==_0x28d5bf[_0x18ce16(0x187)])return;const _0x530d43={'id':_0x590519,'type':a['CommandType'][_0x18ce16(0x1b5)],'params':{'unitId':_0x89ab28,'actions':_0x2a0fd5[_0x18ce16(0x22e)],'textRanges':null}};_0x28d5bf['onLocalMutation'](_0x530d43);});if(_0x28d5bf[_0x2384e2(0x223)](_0x11b322),_0x28d5bf instanceof u[_0x2384e2(0x11b)]){const _0x144805={'onTransformIME':_0x47e5ce=>this[_0x2384e2(0x154)][_0x2384e2(0x1cd)](_0x47e5ce),'onTransformState':_0xb3f59=>this[_0x2384e2(0x11a)]['transformStateCache'](_0xb3f59),'onTransformSelections':_0x57289d=>this['_docTransformSelectionsService'][_0x2384e2(0x225)](_0x57289d),'onSyncEditingCollabCursor':_0x1d9997=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x1d9997),'onTransformRemoteChangesetByIMECache':_0x528e21=>this['_docTransformIMECacheService'][_0x2384e2(0xfb)](_0x528e21),'onTransformRemoteChangesetByStateCache':_0x3730a6=>this[_0x2384e2(0x11a)][_0x2384e2(0xfb)](_0x3730a6)};_0x28d5bf['addHandlerCallback'](_0x144805);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x53abfe(0x2e0)])),N(0x1,a[_0x53abfe(0x170)](u[_0x53abfe(0x328)])),N(0x2,a[_0x53abfe(0x170)](z)),N(0x3,a[_0x53abfe(0x170)](J)),N(0x4,a[_0x53abfe(0x170)](Z)),N(0x5,a[_0x53abfe(0x170)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x53abfe(0x170)](a[_0x53abfe(0x13f)]))],Q);var Gt=Object[_0x53abfe(0x20b)],qt=(_0x17511b,_0x1eb102,_0x1679a9,_0x2a7383)=>{const _0x2c78e5=_0x53abfe;for(var _0x5d2e38=_0x2a7383>0x1?void 0x0:_0x2a7383?Gt(_0x1eb102,_0x1679a9):_0x1eb102,_0x70037d=_0x17511b[_0x2c78e5(0x158)]-0x1,_0x52b583;_0x70037d>=0x0;_0x70037d--)(_0x52b583=_0x17511b[_0x70037d])&&(_0x5d2e38=_0x52b583(_0x5d2e38)||_0x5d2e38);return _0x5d2e38;},_e=(_0x1a0d94,_0x47b35f)=>(_0x3e26cd,_0x44f446)=>_0x47b35f(_0x3e26cd,_0x44f446,_0x1a0d94);let ge=class extends a[_0x53abfe(0x1d4)]{constructor(_0x453f5e,_0x3d9a40,_0x21677b){const _0xcd3edc=_0x53abfe;super(),h(this,'_cachedData',new Map()),h(this,_0xcd3edc(0x15f),new Map()),h(this,_0xcd3edc(0x1c6),!0x1),(this[_0xcd3edc(0x133)]=_0x453f5e,this[_0xcd3edc(0x2fe)]=_0x3d9a40,this[_0xcd3edc(0x175)]=_0x21677b);}['disableLocalCache'](){const _0x4d0107=_0x53abfe;this[_0x4d0107(0x1c6)]=!0x0;}['enableLocalCache'](){const _0x85e7b=_0x53abfe;this[_0x85e7b(0x1c6)]=!0x1;}get[_0x53abfe(0x1b7)](){return this['_saveTaskMap'];}['dispose'](){const _0xde9d43=_0x53abfe;this['exhaustSavingTask']()[_0xde9d43(0x1f0)](()=>super['dispose']());}async[_0x53abfe(0x279)](_0xace0db){const _0x54f423=_0x53abfe;return this[_0x54f423(0x1c6)]?null:this[_0x54f423(0x2fe)]['getItem'](u['getLocalCacheKey'](_0xace0db));}async[_0x53abfe(0x219)](_0x4c1694,_0x210ef2){const _0x3f285c=_0x53abfe;return!!this[_0x3f285c(0x2fe)]['setItem'](_0x4c1694,_0x210ef2);}[_0x53abfe(0x34d)](_0x2fb44e,_0x51cf19,_0x6fe32d,_0xbea916){const _0xa4689e=_0x53abfe,_0x4edbb1=this[_0xa4689e(0x175)][_0xa4689e(0xf2)](_0x2fb44e);this[_0xa4689e(0x21f)][_0xa4689e(0x147)](_0x2fb44e,{'unitID':_0x2fb44e,'type':_0x51cf19,'awaitingChangeset':_0x6fe32d,'mutations':_0xbea916,'rev':_0x4edbb1}),this[_0xa4689e(0x15f)][_0xa4689e(0x352)](_0x2fb44e)||this[_0xa4689e(0x2ea)](_0x2fb44e);}[_0x53abfe(0x2ea)](_0x29278a){const _0x1b96e3=_0x53abfe,_0x257649=this[_0x1b96e3(0x260)]();_0x257649===0x0?this[_0x1b96e3(0x137)](_0x29278a):this['_saveTaskMap']['set'](_0x29278a,setTimeout(()=>this['_saveCache'](_0x29278a),_0x257649));}['_getSaveTimeout'](){const _0x267427=_0x53abfe;var _0x425f23;return(_0x425f23=this[_0x267427(0x133)][_0x267427(0x297)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x425f23:u['LOCAL_CACHE_INTERVAL'];}[_0x53abfe(0x137)](_0x13ceab){const _0x530a68=_0x53abfe,_0x8cc32a=this[_0x530a68(0x15f)]['get'](_0x13ceab);return _0x8cc32a!==void 0x0&&window['clearTimeout'](_0x8cc32a),this[_0x530a68(0x2fe)][_0x530a68(0x10f)](u[_0x530a68(0x31d)](_0x13ceab),this[_0x530a68(0x21f)][_0x530a68(0x2c3)](_0x13ceab))['then'](()=>this[_0x530a68(0x15f)][_0x530a68(0xf7)](_0x13ceab));}async[_0x53abfe(0x18f)](){const _0x2b8e15=_0x53abfe,_0x22c605=[];this[_0x2b8e15(0x15f)][_0x2b8e15(0x196)]((_0x285299,_0x3d9e8a)=>{const _0x469dd1=_0x2b8e15;window[_0x469dd1(0x171)](_0x285299),_0x22c605[_0x469dd1(0x190)](this['_saveCache'](_0x3d9e8a)['then'](()=>{const _0x577184=_0x469dd1;this['_saveTaskMap'][_0x577184(0xf7)](_0x3d9e8a);}));}),await Promise['all'](_0x22c605);}};ge=qt([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x53abfe(0x36a)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x2ccbd5=_0x53abfe;super(),h(this,_0x2ccbd5(0x245)),this[_0x2ccbd5(0x245)]=d[_0x2ccbd5(0x320)](window,_0x2ccbd5(0x241))[_0x2ccbd5(0x24a)](d[_0x2ccbd5(0x35f)](this[_0x2ccbd5(0x301)]),d[_0x2ccbd5(0x19e)](0x1),d['mapTo'](void 0x0));}[_0x53abfe(0x20c)](_0x5a69e8,_0x2579ea,_0x3a4082=!0x1){const _0xc0e94e=_0x53abfe,_0x232f5f=new URL(window[_0xc0e94e(0x1db)][_0xc0e94e(0x1a7)]);_0x232f5f[_0xc0e94e(0x337)][_0xc0e94e(0x147)](_0x5a69e8,_0x2579ea),_0x3a4082?window[_0xc0e94e(0x1ad)][_0xc0e94e(0x1b1)]('','',_0x232f5f[_0xc0e94e(0x211)]()):window[_0xc0e94e(0x1ad)][_0xc0e94e(0x247)]('','',_0x232f5f[_0xc0e94e(0x211)]());}[_0x53abfe(0xf0)](_0x9a1b53,_0x1ce14e=!0x1){const _0x233e8c=_0x53abfe,_0xe0b56b=new URL(window[_0x233e8c(0x1db)][_0x233e8c(0x1a7)]);_0xe0b56b[_0x233e8c(0x337)][_0x233e8c(0xf7)](_0x9a1b53),_0x1ce14e?window['history'][_0x233e8c(0x1b1)]('','',_0xe0b56b['toString']()):window[_0x233e8c(0x1ad)][_0x233e8c(0x247)]('','',_0xe0b56b[_0x233e8c(0x211)]());}[_0x53abfe(0x27a)](_0x7c4a08){const _0x2c16f6=_0x53abfe;var _0x22ae60;return(_0x22ae60=new URL(window[_0x2c16f6(0x1db)][_0x2c16f6(0x1a7)])['searchParams'][_0x2c16f6(0x2c3)](_0x7c4a08))!=null?_0x22ae60:void 0x0;}}var Kt=Object['defineProperty'],zt=Object[_0x53abfe(0x20b)],Jt=(_0x1d2039,_0x4b7b28,_0x52cead)=>_0x4b7b28 in _0x1d2039?Kt(_0x1d2039,_0x4b7b28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52cead}):_0x1d2039[_0x4b7b28]=_0x52cead,Zt=(_0xf72d,_0x4dba3c,_0x2a46c5,_0x55b1c4)=>{for(var _0x1b9e34=_0x55b1c4>0x1?void 0x0:_0x55b1c4?zt(_0x4dba3c,_0x2a46c5):_0x4dba3c,_0x2d9d53=_0xf72d['length']-0x1,_0x64026a;_0x2d9d53>=0x0;_0x2d9d53--)(_0x64026a=_0xf72d[_0x2d9d53])&&(_0x1b9e34=_0x64026a(_0x1b9e34)||_0x1b9e34);return _0x1b9e34;},he=(_0x28fe38,_0x1383ae)=>(_0x146e28,_0x55b131)=>_0x1383ae(_0x146e28,_0x55b131,_0x28fe38),Qt=(_0x542937,_0x6a80a9,_0x4046d4)=>Jt(_0x542937,_0x6a80a9+'',_0x4046d4);const es=_0x53abfe(0x107);exports[_0x53abfe(0x106)]=class extends a[_0x53abfe(0x192)]{constructor(_0x4e5c9f=Ue,_0x54981b,_0x4cbad5,_0x4bde2b){const _0xdb10d3=_0x53abfe;super(),this[_0xdb10d3(0x2ce)]=_0x4e5c9f,this[_0xdb10d3(0x112)]=_0x54981b,this['_injector']=_0x4cbad5,this[_0xdb10d3(0x133)]=_0x4bde2b;const {..._0x5afe7a}=a[_0xdb10d3(0x1b6)]({},Ue,this[_0xdb10d3(0x2ce)]);this[_0xdb10d3(0x133)][_0xdb10d3(0x259)]($t,_0x5afe7a);}[_0x53abfe(0x34a)](){const _0x1e24c9=_0x53abfe;this[_0x1e24c9(0x370)](),this[_0x1e24c9(0x22a)]();}[_0x53abfe(0x339)](){const _0x111721=_0x53abfe;this[_0x111721(0x248)]();}[_0x53abfe(0x370)](){const _0xf27823=_0x53abfe;var _0x488eed;const _0x2f4144=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0xf27823(0x312)],{'useClass':G['WebSocketService']}],[u[_0xf27823(0x168)],{'useClass':ge}],[exports[_0xf27823(0x20a)]],[Q],[K],[x],[de],[exports[_0xf27823(0x213)]]];a[_0xf27823(0x290)](this[_0xf27823(0x36e)],a[_0xf27823(0x20f)](_0x2f4144,(_0x488eed=this[_0xf27823(0x2ce)])==null?void 0x0:_0x488eed[_0xf27823(0x35a)]));}[_0x53abfe(0x248)](){const _0x525a26=_0x53abfe;this[_0x525a26(0x223)](this[_0x525a26(0x112)][_0x525a26(0x206)](a[_0x525a26(0x166)][_0x525a26(0x325)],[Ie])),this[_0x525a26(0x223)](this[_0x525a26(0x112)]['registerRenderModule'](a[_0x525a26(0x166)][_0x525a26(0x1a4)],[ve]));}[_0x53abfe(0x22a)](){const _0x317bfa=_0x53abfe;a[_0x317bfa(0x264)](this['_injector'],[[x],[exports[_0x317bfa(0x20a)]],[Q],[K],[exports[_0x317bfa(0x213)]]]);}},Qt(exports[_0x53abfe(0x106)],_0x53abfe(0xf3),es),exports[_0x53abfe(0x106)]=Zt([a[_0x53abfe(0x314)](u[_0x53abfe(0x12a)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x53abfe(0x170)](a[_0x53abfe(0x167)])),he(0x3,a[_0x53abfe(0x1dc)])],exports[_0x53abfe(0x106)]);var ts=Object[_0x53abfe(0x20b)],ss=(_0x47b5fd,_0x1b72ca,_0x3b1050,_0x480bc9)=>{const _0x3c5827=_0x53abfe;for(var _0x131d0b=_0x480bc9>0x1?void 0x0:_0x480bc9?ts(_0x1b72ca,_0x3b1050):_0x1b72ca,_0x581d35=_0x47b5fd[_0x3c5827(0x158)]-0x1,_0x4666d1;_0x581d35>=0x0;_0x581d35--)(_0x4666d1=_0x47b5fd[_0x581d35])&&(_0x131d0b=_0x4666d1(_0x131d0b)||_0x131d0b);return _0x131d0b;},F=(_0x224cd1,_0x3dbf76)=>(_0x1c39f3,_0x542990)=>_0x3dbf76(_0x1c39f3,_0x542990,_0x224cd1);exports[_0x53abfe(0x358)]=class extends u[_0x53abfe(0x1a5)]{constructor(_0x167a7f,_0x3f474d,_0x49524b,_0xd4f79b,_0x705a36){super(_0x167a7f,_0x3f474d,_0x49524b,_0xd4f79b,_0x705a36);}async['createSocket'](_0x29e8b6){const _0x3e607b=_0x53abfe,_0x63d85=await this[_0x3e607b(0x25c)](),_0x3b29c4=this['_createSocketURL'](_0x29e8b6,_0x63d85);return this[_0x3e607b(0xf5)](_0x3b29c4);}['_createSocketURL'](_0x1390bd,_0x4cf255){const _0x366642=_0x53abfe,_0x3e9d16=typeof window>'u'?new URL(_0x1390bd):new URL(_0x1390bd,window['location'][_0x366642(0x2ba)]);_0x3e9d16['searchParams']['set'](_0x366642(0x33f),_0x4cf255);const _0x73823f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x366642(0x1db)]['search']);return _0x73823f[_0x366642(0x2c3)](_0x366642(0x26d))&&_0x3e9d16[_0x366642(0x337)][_0x366642(0x147)](_0x366642(0x26d),_0x73823f[_0x366642(0x2c3)](_0x366642(0x26d))),_0x3e9d16[_0x366642(0x211)]();}async[_0x53abfe(0x25c)](){const _0x2ebdbc=_0x53abfe;var _0x3a29fe,_0x385c08,_0x50e3c5;const _0x192b40=this[_0x2ebdbc(0x133)]['getConfig'](u[_0x2ebdbc(0x2cb)]),_0x177c59=(_0x3a29fe=_0x192b40==null?void 0x0:_0x192b40[_0x2ebdbc(0x21a)])!=null?_0x3a29fe:u[_0x2ebdbc(0x1d7)];return(_0x50e3c5=(_0x385c08=(await this[_0x2ebdbc(0x1fc)][_0x2ebdbc(0x2c3)](_0x177c59,{'headers':{'Content-Type':_0x2ebdbc(0x145)}}))[_0x2ebdbc(0x30b)])==null?void 0x0:_0x385c08[_0x2ebdbc(0x26e)])!=null?_0x50e3c5:'';}},exports[_0x53abfe(0x358)]=ss([F(0x0,a[_0x53abfe(0x170)](a[_0x53abfe(0x167)])),F(0x1,a[_0x53abfe(0x170)](G[_0x53abfe(0x2c6)])),F(0x2,a[_0x53abfe(0x1dc)]),F(0x3,a[_0x53abfe(0x1c4)]),F(0x4,m[_0x53abfe(0x351)])],exports[_0x53abfe(0x358)]);const Me=0x7530,Le=_0x53abfe(0x251);class is extends a[_0x53abfe(0x1d4)]{constructor(){const _0x1b00ae=_0x53abfe;super(),h(this,_0x1b00ae(0x237),a[_0x1b00ae(0x2ab)]()),h(this,'_selfUnitIDs',new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x1b00ae(0x1f9),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x1b00ae(0x296),new Map()),this[_0x1b00ae(0xdf)]();}[_0x53abfe(0x318)](){const _0x10da9b=_0x53abfe;super[_0x10da9b(0x318)](),this[_0x10da9b(0x161)][_0x10da9b(0x196)]((_0x46ccfd,_0x140173)=>this[_0x10da9b(0x1ab)](_0x140173)),this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x53abfe(0x2dc)](_0x44cc81){const _0x3d330c=_0x53abfe;return this[_0x3d330c(0xed)](_0x44cc81)[_0x3d330c(0x24a)](d[_0x3d330c(0x128)]());}[_0x53abfe(0x33a)](_0x3c3afa){const _0x3f954b=_0x53abfe;this['_selfUnitIDs'][_0x3f954b(0x36b)]===0x0&&this[_0x3f954b(0x255)](),this['_selfUnitIDs'][_0x3f954b(0x32e)](_0x3c3afa),this[_0x3f954b(0x1e3)]({'type':0x0,'memberID':this[_0x3f954b(0x237)],'unitIDs':[_0x3c3afa],'isForwarded':!0x1});}[_0x53abfe(0x25d)](_0x1019cc){const _0xba83c0=_0x53abfe;this[_0xba83c0(0x201)][_0xba83c0(0xf7)](_0x1019cc),this[_0xba83c0(0x201)]['size']===0x0&&this[_0xba83c0(0x1f9)]&&window[_0xba83c0(0xdd)](this[_0xba83c0(0x1f9)]);}[_0x53abfe(0xdf)](){const _0x3eeb06=_0x53abfe;this[_0x3eeb06(0x223)](a[_0x3eeb06(0x2a0)](d[_0x3eeb06(0x320)](window,_0x3eeb06(0x236))[_0x3eeb06(0x2cf)](_0x47fc7a=>{const _0x49a3f2=_0x3eeb06;if(_0x47fc7a[_0x49a3f2(0x1f2)]!==Le||!_0x47fc7a[_0x49a3f2(0x111)])return;const _0x3fbb9a=JSON[_0x49a3f2(0x2cd)](_0x47fc7a[_0x49a3f2(0x111)]);this[_0x49a3f2(0x365)](_0x3fbb9a);}))),window[_0x3eeb06(0x311)](_0x3eeb06(0x327),()=>this[_0x3eeb06(0x1e3)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x3eeb06(0x293)](this[_0x3eeb06(0x201)])}));}[_0x53abfe(0x365)](_0x57cf44){const _0x596fdb=_0x53abfe;switch(_0x57cf44[_0x596fdb(0x1b3)]){case 0x0:this[_0x596fdb(0x29f)](_0x57cf44);break;case 0x1:this['_handleLeaveEvent'](_0x57cf44);break;case 0x2:this[_0x596fdb(0xf9)](_0x57cf44);break;}}[_0x53abfe(0x29f)](_0x2e6f86){const _0x233e24=_0x53abfe,{unitIDs:_0x3df287,memberID:_0xfd5b1e,isForwarded:_0x34e30b}=_0x2e6f86;_0x3df287[_0x233e24(0x196)](_0x3b627c=>{const _0x288328=_0x233e24;if(!_0x34e30b&&this[_0x288328(0x2c8)][_0x288328(0x352)](_0x3b627c)&&this[_0x288328(0xed)](_0x3b627c)[_0x288328(0x202)](u['UnitStatus'][_0x288328(0x2f3)]),!this['_unitOnClients']['has'](_0x3b627c)||!this[_0x288328(0x2c8)][_0x288328(0x2c3)](_0x3b627c)[_0x288328(0x352)](_0xfd5b1e)){const _0x322720=this[_0x288328(0x2c8)]['get'](_0x3b627c)||new Set();_0x322720[_0x288328(0x32e)](_0xfd5b1e),this[_0x288328(0x2c8)][_0x288328(0x147)](_0x3b627c,_0x322720),this[_0x288328(0x12d)](_0xfd5b1e);}}),_0x34e30b||this[_0x233e24(0x1e3)]({'type':0x0,'memberID':this[_0x233e24(0x237)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x53abfe(0x12d)](_0x31aad5){const _0xd88cef=_0x53abfe;this[_0xd88cef(0x1ab)](_0x31aad5);const _0x516ddf=window[_0xd88cef(0x29a)](()=>{const _0x210cdf=_0xd88cef;this[_0x210cdf(0x2c8)][_0x210cdf(0x196)](_0x18cbb3=>{const _0x57613f=_0x210cdf;_0x18cbb3[_0x57613f(0xf7)](_0x31aad5);});},Me*0x2);this['_clearOtherTimers']['set'](_0x31aad5,_0x516ddf);}[_0x53abfe(0x1ab)](_0x429b3c){const _0x2dfd00=_0x53abfe;if(this[_0x2dfd00(0x161)]['has'](_0x429b3c)){const _0x20ecd2=this['_clearOtherTimers'][_0x2dfd00(0x2c3)](_0x429b3c);_0x20ecd2&&window[_0x2dfd00(0x171)](_0x20ecd2),this[_0x2dfd00(0x161)][_0x2dfd00(0x147)](_0x429b3c,null);}}[_0x53abfe(0x2fa)](_0xa12b7a){const _0x1124ae=_0x53abfe,{memberID:_0x43ba40,unitIDs:_0x150206}=_0xa12b7a;_0x150206['forEach'](_0x225256=>{const _0x237f76=_0x5848;var _0x3ffb45;const _0x5a8165=this[_0x237f76(0x2c8)][_0x237f76(0x2c3)](_0x225256);_0x5a8165&&(_0x5a8165[_0x237f76(0xf7)](_0x43ba40),(_0x3ffb45=this['_ensureSubject'](_0x225256))==null||_0x3ffb45[_0x237f76(0x202)](_0x5a8165['size']===0x0?u[_0x237f76(0x295)][_0x237f76(0x200)]:u[_0x237f76(0x295)][_0x237f76(0x2f3)]));}),this[_0x1124ae(0x1ab)](_0x43ba40);}[_0x53abfe(0xf9)](_0x4f9846){const _0x5c5e26=_0x53abfe;this[_0x5c5e26(0x12d)](_0x4f9846[_0x5c5e26(0x1f3)]);}[_0x53abfe(0x1e3)](_0x462795){const _0x2d000d=_0x53abfe;localStorage[_0x2d000d(0x10f)](Le,JSON[_0x2d000d(0x139)](_0x462795));}['_scheduleHeartbeat'](){const _0x5c36cf=_0x53abfe;this[_0x5c36cf(0x1f9)]=window[_0x5c36cf(0x29e)](()=>{const _0x3fe81a=_0x5c36cf;this[_0x3fe81a(0x1e3)]({'type':0x2,'memberID':this[_0x3fe81a(0x237)]});},Me);}[_0x53abfe(0xed)](_0x4b79e0){const _0x1ca2b7=_0x53abfe;return this['_unitStatus'][_0x1ca2b7(0x352)](_0x4b79e0)||this[_0x1ca2b7(0x296)][_0x1ca2b7(0x147)](_0x4b79e0,new d[(_0x1ca2b7(0x10e))](u[_0x1ca2b7(0x295)][_0x1ca2b7(0x200)])),this[_0x1ca2b7(0x296)]['get'](_0x4b79e0);}}var Be=(_0x36a6fa=>(_0x36a6fa[_0x36a6fa[_0x53abfe(0x316)]=0x0]=_0x53abfe(0x316),_0x36a6fa[_0x36a6fa['OK']=0x1]='OK',_0x36a6fa[_0x36a6fa[_0x53abfe(0x1c2)]=0x2]=_0x53abfe(0x1c2),_0x36a6fa[_0x36a6fa[_0x53abfe(0x21e)]=0x3]=_0x53abfe(0x21e),_0x36a6fa[_0x36a6fa[_0x53abfe(0x269)]=0x4]=_0x53abfe(0x269),_0x36a6fa[_0x36a6fa[_0x53abfe(0x313)]=0x5]=_0x53abfe(0x313),_0x36a6fa[_0x36a6fa[_0x53abfe(0x19f)]=0x6]=_0x53abfe(0x19f),_0x36a6fa[_0x36a6fa[_0x53abfe(0x273)]=0x7]=_0x53abfe(0x273),_0x36a6fa[_0x36a6fa[_0x53abfe(0x2ae)]=0x8]=_0x53abfe(0x2ae),_0x36a6fa[_0x36a6fa['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x36a6fa[_0x36a6fa[_0x53abfe(0x323)]=0xa]=_0x53abfe(0x323),_0x36a6fa[_0x36a6fa[_0x53abfe(0x135)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x36a6fa[_0x36a6fa[_0x53abfe(0x21d)]=0x1771]=_0x53abfe(0x21d),_0x36a6fa[_0x36a6fa[_0x53abfe(0x34f)]=0x1772]=_0x53abfe(0x34f),_0x36a6fa[_0x36a6fa[_0x53abfe(0x35d)]=0x1773]=_0x53abfe(0x35d),_0x36a6fa[_0x36a6fa[_0x53abfe(0x125)]=0x1b59]=_0x53abfe(0x125),_0x36a6fa[_0x36a6fa[_0x53abfe(0x186)]=0x1b5a]=_0x53abfe(0x186),_0x36a6fa[_0x36a6fa[_0x53abfe(0xee)]=0x1b5b]=_0x53abfe(0xee),_0x36a6fa[_0x36a6fa[_0x53abfe(0x240)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x36a6fa[_0x36a6fa[_0x53abfe(0x159)]=0x1b5d]=_0x53abfe(0x159),_0x36a6fa[_0x36a6fa[_0x53abfe(0x209)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x36a6fa[_0x36a6fa[_0x53abfe(0x364)]=0x2329]=_0x53abfe(0x364),_0x36a6fa[_0x36a6fa['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x53abfe(0x31c),_0x36a6fa[_0x36a6fa[_0x53abfe(0x23c)]=0x232b]=_0x53abfe(0x23c),_0x36a6fa[_0x36a6fa[_0x53abfe(0xe6)]=0x232c]=_0x53abfe(0xe6),_0x36a6fa[_0x36a6fa['LICENSE_DISTRO_REJECTED']=0x232d]=_0x53abfe(0x2b2),_0x36a6fa[_0x36a6fa['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x36a6fa[_0x36a6fa[_0x53abfe(0x229)]=0x2712]=_0x53abfe(0x229),_0x36a6fa[_0x36a6fa[_0x53abfe(0x2a9)]=0x2713]=_0x53abfe(0x2a9),_0x36a6fa[_0x36a6fa[_0x53abfe(0x188)]=0x2714]=_0x53abfe(0x188),_0x36a6fa[_0x36a6fa[_0x53abfe(0x2d6)]=0x271a]=_0x53abfe(0x2d6),_0x36a6fa[_0x36a6fa[_0x53abfe(0x32d)]=0x271b]=_0x53abfe(0x32d),_0x36a6fa[_0x36a6fa[_0x53abfe(0x244)]=0x2af9]=_0x53abfe(0x244),_0x36a6fa[_0x36a6fa['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x53abfe(0xec),_0x36a6fa[_0x36a6fa[_0x53abfe(0x16f)]=0x2ee2]=_0x53abfe(0x16f),_0x36a6fa[_0x36a6fa[_0x53abfe(0x252)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x36a6fa[_0x36a6fa[_0x53abfe(0x2df)]=0x2ee4]=_0x53abfe(0x2df),_0x36a6fa[_0x36a6fa[_0x53abfe(0x361)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x36a6fa[_0x36a6fa[_0x53abfe(0x266)]=0x32c9]=_0x53abfe(0x266),_0x36a6fa[_0x36a6fa[_0x53abfe(0x329)]=0x32ca]=_0x53abfe(0x329),_0x36a6fa[_0x36a6fa['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x53abfe(0x2f7),_0x36a6fa[_0x36a6fa['UNRECOGNIZED']=-0x1]=_0x53abfe(0x2a2),_0x36a6fa))(Be||{}),ns=Object[_0x53abfe(0x20b)],rs=(_0x1ba2c7,_0x4472f0,_0x2f1852,_0x4743b9)=>{const _0x26290f=_0x53abfe;for(var _0x3fdf3f=_0x4743b9>0x1?void 0x0:_0x4743b9?ns(_0x4472f0,_0x2f1852):_0x4472f0,_0x4bf811=_0x1ba2c7[_0x26290f(0x158)]-0x1,_0x321d0f;_0x4bf811>=0x0;_0x4bf811--)(_0x321d0f=_0x1ba2c7[_0x4bf811])&&(_0x3fdf3f=_0x321d0f(_0x3fdf3f)||_0x3fdf3f);return _0x3fdf3f;},ue=(_0x45cb0b,_0x53cd49)=>(_0x8a2456,_0x9929e1)=>_0x53cd49(_0x8a2456,_0x9929e1,_0x45cb0b);exports[_0x53abfe(0x275)]=class extends a['Disposable']{constructor(_0x88f7d6,_0x320ace,_0x21f27b){const _0x4a0654=_0x53abfe;super(),this[_0x4a0654(0x253)]=_0x88f7d6,this[_0x4a0654(0x1fc)]=_0x320ace,this['_configService']=_0x21f27b;}async[_0x53abfe(0x16d)](_0xf0f828,_0x7bab3b,_0x167d81,..._0x4c14d1){const _0x2659b1=_0x53abfe;var _0xb0f449,_0x1206ec,_0x3d5c39,_0x164f42;const _0x664fe9=this[_0x2659b1(0x253)][_0x2659b1(0x2d9)]();if(!_0x664fe9)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x549fda=((_0xb0f449=this[_0x2659b1(0x133)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0xb0f449:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xf0f828+_0x2659b1(0x1b0)+_0x7bab3b,_0x56f320=new URL(window[_0x2659b1(0x1db)][_0x2659b1(0x1a7)]),_0x8871dc={'scriptId':_0xf0f828,'runId':(_0x1206ec=_0x56f320[_0x2659b1(0x337)][_0x2659b1(0x2c3)]('runId'))!=null?_0x1206ec:'','function':_0x7bab3b,'unitId':_0x664fe9['getUnitId'](),'argsOfFunction':JSON[_0x2659b1(0x139)](_0x4c14d1),'invokeId':(_0x3d5c39=_0x167d81[_0x2659b1(0x19b)])!=null?_0x3d5c39:'','executionId':(_0x164f42=_0x167d81[_0x2659b1(0x18c)])!=null?_0x164f42:''};try{const _0xcaddf7=await this[_0x2659b1(0x1fc)][_0x2659b1(0x16c)](_0x549fda,{'body':_0x8871dc});return _0xcaddf7[_0x2659b1(0x30b)][_0x2659b1(0x243)]&&_0xcaddf7[_0x2659b1(0x30b)][_0x2659b1(0x243)]['code']!==Be['OK']?_0x2659b1(0x305):_0xcaddf7[_0x2659b1(0x30b)]['result'];}catch{return _0x2659b1(0x305);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x53abfe(0x170)](G[_0x53abfe(0x2c6)])),ue(0x2,a[_0x53abfe(0x1dc)])],exports[_0x53abfe(0x275)]),exports['CollaborationStatusDisplay']=xe,exports[_0x53abfe(0x1c9)]=be,exports['SheetCollabCursorShape']=we,exports[_0x53abfe(0x2f2)]=is,exports[_0x53abfe(0x2e7)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xbe97da=_0x5616;(function(_0x43ee0c,_0x102937){const _0x539636=_0x5616,_0x47b0f2=_0x43ee0c();while(!![]){try{const _0x3f4eb6=parseInt(_0x539636(0x138))/0x1*(-parseInt(_0x539636(0x145))/0x2)+parseInt(_0x539636(0x132))/0x3+-parseInt(_0x539636(0x13f))/0x4+parseInt(_0x539636(0x146))/0x5*(-parseInt(_0x539636(0x148))/0x6)+parseInt(_0x539636(0x136))/0x7*(-parseInt(_0x539636(0x14a))/0x8)+-parseInt(_0x539636(0x13a))/0x9+parseInt(_0x539636(0x143))/0xa*(parseInt(_0x539636(0x140))/0xb);if(_0x3f4eb6===_0x102937)break;else _0x47b0f2['push'](_0x47b0f2['shift']());}catch(_0x33871f){_0x47b0f2['push'](_0x47b0f2['shift']());}}}(_0x1939,0x6f5dc));function _0x5616(_0x2aa8a,_0xeb660e){const _0x193968=_0x1939();return _0x5616=function(_0x56164c,_0x36e2c8){_0x56164c=_0x56164c-0x132;let _0x548f60=_0x193968[_0x56164c];return _0x548f60;},_0x5616(_0x2aa8a,_0xeb660e);}function _0x1939(){const _0x226326=['Syncing\x20server\x20data...','122367isdjDz','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1xJsVBK','Authentication\x20Error','7876818URYoFq','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','3516564PyGQyr','11FzahHK','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Click\x20to\x20Reconnect','31410020SkBJaL','Connection\x20failed,\x20please\x20check\x20your\x20network.','762606SoNviu','885GLBsLO','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','11094errkkR','Syncing...','376GCTxpl','1799040hdhOqD','Collaboration\x20Conflict','Edit\x20conflicts'];_0x1939=function(){return _0x226326;};return _0x1939();}const e={'collab-client':{'tooltip':{'reconnect':_0xbe97da(0x142)}},'collabStatus':{'fetchMiss':_0xbe97da(0x135),'conflict':_0xbe97da(0x134),'notCollab':'Local\x20file','synced':'Synced','syncing':_0xbe97da(0x149),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0xbe97da(0x144),'will-retry':_0xbe97da(0x13e),'room-full':_0xbe97da(0x13c),'collaboration-timeout':_0xbe97da(0x141)},'conflict':{'title':_0xbe97da(0x133),'content':_0xbe97da(0x13b)},'permission':{'title':_0xbe97da(0x139),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0xbe97da(0x147)},'closeRoom':_0xbe97da(0x137)},'auth':{'needGotoLoginAlert':_0xbe97da(0x13d)}};module['exports']=e;
|