@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202505261607 → 0.8.0-nightly.202505281606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x3758(){const _0x515cb1=['@univerjs/core/facade','runOnServer','10316016IBWqlm','get','4310400svcHCs','RemoteUniscriptService','1694118VpnvZW','extend','3404304uzGIsD','119bkKKCK','6654784KBnxrL','@univerjs-pro/collaboration-client-ui','1380152qYlAcn','812650GTXZkv'];_0x3758=function(){return _0x515cb1;};return _0x3758();}const _0x365d8f=_0xe3e9;function _0xe3e9(_0x199be4,_0x30e995){const _0x37583f=_0x3758();return _0xe3e9=function(_0xe3e9ae,_0x53e97e){_0xe3e9ae=_0xe3e9ae-0x16c;let _0x267621=_0x37583f[_0xe3e9ae];return _0x267621;},_0xe3e9(_0x199be4,_0x30e995);}(function(_0x4957ee,_0x54ab3c){const _0xe92688=_0xe3e9,_0x2f60f1=_0x4957ee();while(!![]){try{const _0x41766f=parseInt(_0xe92688(0x16e))/0x1+-parseInt(_0xe92688(0x175))/0x2+-parseInt(_0xe92688(0x177))/0x3+-parseInt(_0xe92688(0x179))/0x4+-parseInt(_0xe92688(0x173))/0x5+parseInt(_0xe92688(0x171))/0x6+parseInt(_0xe92688(0x178))/0x7*(parseInt(_0xe92688(0x16d))/0x8);if(_0x41766f===_0x54ab3c)break;else _0x2f60f1['push'](_0x2f60f1['shift']());}catch(_0x2a4cbb){_0x2f60f1['push'](_0x2f60f1['shift']());}}}(_0x3758,0xe9b16));const t=require(_0x365d8f(0x16c)),e=require(_0x365d8f(0x16f));class c extends e['FUniver']{[_0x365d8f(0x170)](_0x1c70c7,_0x3f3abc,..._0x209313){const _0x7668d6=_0x365d8f;return this['_injector'][_0x7668d6(0x172)](t[_0x7668d6(0x174)])[_0x7668d6(0x170)](_0x1c70c7,_0x3f3abc,{},..._0x209313);}}e['FUniver'][_0x365d8f(0x176)](c);
1
+ 'use strict';const _0x19277f=_0x1341;(function(_0x20d3cf,_0x5ce848){const _0x2ccdea=_0x1341,_0x3c65a3=_0x20d3cf();while(!![]){try{const _0x2f5e84=parseInt(_0x2ccdea(0xf4))/0x1+-parseInt(_0x2ccdea(0xff))/0x2*(-parseInt(_0x2ccdea(0xfa))/0x3)+parseInt(_0x2ccdea(0xf3))/0x4*(parseInt(_0x2ccdea(0xf0))/0x5)+parseInt(_0x2ccdea(0xf9))/0x6+-parseInt(_0x2ccdea(0xfc))/0x7*(parseInt(_0x2ccdea(0xfe))/0x8)+-parseInt(_0x2ccdea(0xf8))/0x9*(-parseInt(_0x2ccdea(0x100))/0xa)+-parseInt(_0x2ccdea(0xef))/0xb;if(_0x2f5e84===_0x5ce848)break;else _0x3c65a3['push'](_0x3c65a3['shift']());}catch(_0x1c2b35){_0x3c65a3['push'](_0x3c65a3['shift']());}}}(_0x34ad,0x33989));function _0x1341(_0x4af1a7,_0x25185b){const _0x34ad56=_0x34ad();return _0x1341=function(_0x134167,_0x9020a){_0x134167=_0x134167-0xef;let _0x1b210f=_0x34ad56[_0x134167];return _0x1b210f;},_0x1341(_0x4af1a7,_0x25185b);}const t=require(_0x19277f(0xf7)),e=require(_0x19277f(0xfd));class c extends e[_0x19277f(0xf6)]{['runOnServer'](_0x3668e0,_0x3727aa,..._0x37f711){const _0x325df2=_0x19277f;return this[_0x325df2(0xfb)][_0x325df2(0xf1)](t[_0x325df2(0xf5)])['runOnServer'](_0x3668e0,_0x3727aa,{},..._0x37f711);}}e['FUniver'][_0x19277f(0xf2)](c);function _0x34ad(){const _0x59d077=['285851RCcwfT','RemoteUniscriptService','FUniver','@univerjs-pro/collaboration-client-ui','812151TydXbd','2320110pHJEOY','874353qVGhga','_injector','399fnjURs','@univerjs/core/facade','28176MRGqVo','2vNnysY','10zqGvgd','11095326qLbXVu','166605fuyqMg','get','extend','44dcRlsS'];_0x34ad=function(){return _0x59d077;};return _0x34ad();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2f2715=_0x330b;(function(_0x4b4484,_0x4477f9){const _0x19a3d3=_0x330b,_0x1f84f3=_0x4b4484();while(!![]){try{const _0x2a3a87=parseInt(_0x19a3d3(0x248))/0x1+parseInt(_0x19a3d3(0x379))/0x2*(parseInt(_0x19a3d3(0x220))/0x3)+-parseInt(_0x19a3d3(0x13f))/0x4+parseInt(_0x19a3d3(0x307))/0x5*(parseInt(_0x19a3d3(0x31a))/0x6)+-parseInt(_0x19a3d3(0x221))/0x7+-parseInt(_0x19a3d3(0x2af))/0x8*(parseInt(_0x19a3d3(0x29b))/0x9)+-parseInt(_0x19a3d3(0x247))/0xa*(-parseInt(_0x19a3d3(0x16f))/0xb);if(_0x2a3a87===_0x4477f9)break;else _0x1f84f3['push'](_0x1f84f3['shift']());}catch(_0x5d78d2){_0x1f84f3['push'](_0x1f84f3['shift']());}}}(_0xdf25,0x50d92));var Ve=Object[_0x2f2715(0x3a2)],Xe=(_0x1caec3,_0x4c7332,_0x552e56)=>_0x4c7332 in _0x1caec3?Ve(_0x1caec3,_0x4c7332,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x552e56}):_0x1caec3[_0x4c7332]=_0x552e56,h=(_0x1bf61d,_0x6fdd8d,_0xc2729f)=>Xe(_0x1bf61d,typeof _0x6fdd8d!=_0x2f2715(0x22f)?_0x6fdd8d+'':_0x6fdd8d,_0xc2729f);Object[_0x2f2715(0x3a2)](exports,Symbol[_0x2f2715(0x238)],{'value':_0x2f2715(0x35a)});const u=require(_0x2f2715(0x2f6)),a=require(_0x2f2715(0x297)),p=require(_0x2f2715(0x1e0)),G=require(_0x2f2715(0x2dd)),b=require(_0x2f2715(0x264)),Ge=require(_0x2f2715(0x1ac)),d=require(_0x2f2715(0x1eb)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x2f2715(0x39d)),g=require(_0x2f2715(0x2f1)),$=require(_0x2f2715(0x282)),X=require(_0x2f2715(0x2b8)),P=require('react/jsx-runtime'),T=require(_0x2f2715(0x2e6)),D=require(_0x2f2715(0x29e)),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x4e8e48,_0x576cd1,_0x4736f3,_0x2695e4)=>{const _0x1b31b4=_0x2f2715;for(var _0x42435d=_0x2695e4>0x1?void 0x0:_0x2695e4?qe(_0x576cd1,_0x4736f3):_0x576cd1,_0x149568=_0x4e8e48[_0x1b31b4(0x159)]-0x1,_0x52373d;_0x149568>=0x0;_0x149568--)(_0x52373d=_0x4e8e48[_0x149568])&&(_0x42435d=_0x52373d(_0x42435d)||_0x42435d);return _0x42435d;},Te=(_0x430996,_0x1d99fc)=>(_0x99ab66,_0x557237)=>_0x1d99fc(_0x99ab66,_0x557237,_0x430996);let de=class extends a['RxDisposable']{constructor(_0x390fc9,_0x46d3c4){super(),this['_docClipboardService']=_0x390fc9,this['_imageIoService']=_0x46d3c4,this['_init']();}[_0x2f2715(0x1cb)](){const _0x2546ec=_0x2f2715,_0x378fd1=this;this['disposeWithMe'](this['_docClipboardService'][_0x2546ec(0x195)]({'onBeforePasteImage':async _0x4b24dc=>{const _0x43683e=_0x2546ec,_0x400d1e=await _0x378fd1[_0x43683e(0x355)]['saveImage'](_0x4b24dc);return _0x400d1e?{'source':_0x400d1e[_0x43683e(0x147)],'imageSourceType':_0x400d1e[_0x43683e(0x315)]}:null;}}));}};de=ze([Te(0x0,b[_0x2f2715(0x1e3)]),Te(0x1,Ge[_0x2f2715(0x365)])],de);const Oe=[_0x2f2715(0x1b9),'jiqing.500',_0x2f2715(0x2c9),_0x2f2715(0x162),_0x2f2715(0x1f5),'yellow.400'];class me extends a[_0x2f2715(0x24a)]{constructor(){const _0x19267f=_0x2f2715;super(...arguments),h(this,_0x19267f(0x2d9),new Map()),h(this,_0x19267f(0x33e),0x0);}[_0x2f2715(0x2e8)](_0x13aea7){const _0x32b242=_0x2f2715;if(this[_0x32b242(0x2d9)][_0x32b242(0x156)](_0x13aea7))return this[_0x32b242(0x2d9)]['get'](_0x13aea7);const _0x277ada=Oe[this[_0x32b242(0x33e)]];return this[_0x32b242(0x33e)]=(this['_colorIndex']+0x1)%Oe[_0x32b242(0x159)],this[_0x32b242(0x2d9)]['set'](_0x13aea7,_0x277ada),_0x277ada;}}function Pe(_0x49b4aa){const _0x4ae287=_0x2f2715;let _0x3c05c1='';for(const _0x3b96d1 of _0x49b4aa){const {startOffset:_0x247c87,endOffset:_0x23c003,isActive:_0x144435,rangeType:_0x444d8f,segmentId:_0x3ee09a,segmentPage:_0x507e1b}=_0x3b96d1;_0x3c05c1[_0x4ae287(0x159)]&&(_0x3c05c1+=','),_0x3c05c1+=_0x247c87+':'+_0x23c003+':'+(_0x144435?'1':'0')+':'+_0x444d8f+':'+_0x3ee09a+':'+_0x507e1b;}return _0x3c05c1;}function Je(_0x4f31a9){const _0x60bb29=_0x2f2715,_0x5b1739=_0x4f31a9[_0x60bb29(0x2b4)](','),_0x2ae1aa=[];for(const _0x142c66 of _0x5b1739){const [_0x31e0b2,_0x2739b8,_0x3a19ce,_0xe46be2,_0xa7ddee,_0x4b1c92]=_0x142c66[_0x60bb29(0x2b4)](':');_0x2ae1aa['push']({'startOffset':Number(_0x31e0b2),'endOffset':Number(_0x2739b8),'collapsed':_0x31e0b2===_0x2739b8,'isActive':_0x3a19ce==='1','rangeType':_0xe46be2===a[_0x60bb29(0x175)][_0x60bb29(0x345)]?a[_0x60bb29(0x175)][_0x60bb29(0x345)]:a[_0x60bb29(0x175)]['RECT'],'segmentId':typeof _0xa7ddee==_0x60bb29(0x367)?String(_0xa7ddee):'','segmentPage':Number(_0x4b1c92!=null?_0x4b1c92:-0x1)});}return _0x2ae1aa[_0x60bb29(0x3ab)](_0x290550=>_0x290550[_0x60bb29(0x35d)])||(_0x2ae1aa[0x0][_0x60bb29(0x35d)]=!0x0),_0x2ae1aa;}class Ce extends a[_0x2f2715(0x33d)]{constructor(){const _0x9f913f=_0x2f2715;super(...arguments),h(this,_0x9f913f(0x177),new d[(_0x9f913f(0x388))](null)),h(this,_0x9f913f(0x34a),this[_0x9f913f(0x177)][_0x9f913f(0x1b6)]());}['syncEditingCollabCursor'](_0xdbd447){const _0x4eafd9=_0x2f2715,{unitID:_0xf96ba2,memberID:_0x3119fe,textRanges:_0x2b8ff3}=_0xdbd447,_0x2fefb9=Pe(_0x2b8ff3);if(_0x2fefb9==='')return;const _0x28a900={'unitID':_0xf96ba2,'memberID':_0x3119fe,'selection':_0x2fefb9};this[_0x4eafd9(0x177)][_0x4eafd9(0x14b)](_0x28a900);}}var Ze=Object[_0x2f2715(0x3a5)],Qe=(_0x554f7c,_0x2b8bc8,_0x413e0e,_0x2a4d3c)=>{const _0x5ecfb9=_0x2f2715;for(var _0xd5250=_0x2a4d3c>0x1?void 0x0:_0x2a4d3c?Ze(_0x2b8bc8,_0x413e0e):_0x2b8bc8,_0x44812a=_0x554f7c[_0x5ecfb9(0x159)]-0x1,_0x525c46;_0x44812a>=0x0;_0x44812a--)(_0x525c46=_0x554f7c[_0x44812a])&&(_0xd5250=_0x525c46(_0xd5250)||_0xd5250);return _0xd5250;},L=(_0x45677a,_0x187aa2)=>(_0x349c78,_0x38c121)=>_0x187aa2(_0x349c78,_0x38c121,_0x45677a);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x4305be,_0x551c39,_0x38dd34,_0x2dbfb4,_0x33b105,_0x23e6e0,_0x4532e5,_0x1cdc79,_0x552a44){const _0x3b5797=_0x2f2715;super(),h(this,_0x3b5797(0x1b3),!0x1),h(this,_0x3b5797(0x1cb),!0x1),h(this,_0x3b5797(0x1b4),new d['BehaviorSubject'](new Map())),h(this,_0x3b5797(0x1af),this[_0x3b5797(0x1b4)][_0x3b5797(0x1b6)]()),h(this,_0x3b5797(0x209),new d[(_0x3b5797(0x388))]([])),h(this,'roomMembers$',this[_0x3b5797(0x209)][_0x3b5797(0x231)](d[_0x3b5797(0x38f)](et))),h(this,_0x3b5797(0x39c),a['debounce'](_0xf11257=>{const _0x104962=_0x3b5797,_0x49a219={'eventID':m['CollaborationEvent'][_0x104962(0x357)],'data':{'unitID':this[_0x104962(0x3bb)],'memberID':this[_0x104962(0x300)][_0x104962(0x372)](),'selection':Pe(_0xf11257)}};this[_0x104962(0x300)][_0x104962(0x392)](_0x49a219,this[_0x104962(0x3bb)]);},tt)),(this[_0x3b5797(0x3bb)]=_0x4305be,this[_0x3b5797(0x300)]=_0x551c39,this[_0x3b5797(0x2da)]=_0x38dd34,this['_colorAssignService']=_0x2dbfb4,this[_0x3b5797(0x325)]=_0x33b105,this[_0x3b5797(0x3b2)]=_0x23e6e0,this[_0x3b5797(0x20a)]=_0x4532e5,this[_0x3b5797(0x267)]=_0x1cdc79,this[_0x3b5797(0x19a)]=_0x552a44);}get[_0x2f2715(0x186)](){const _0x98878f=_0x2f2715;return this[_0x98878f(0x1b4)][_0x98878f(0x27d)]();}get[_0x2f2715(0x187)](){const _0x1b2866=_0x2f2715;return this['_roomMembers$'][_0x1b2866(0x27d)]();}[_0x2f2715(0x215)](){const _0x14fa23=_0x2f2715;super[_0x14fa23(0x215)](),this[_0x14fa23(0x1b4)][_0x14fa23(0x14b)](new Map()),this[_0x14fa23(0x1b4)][_0x14fa23(0x1c4)](),this[_0x14fa23(0x209)][_0x14fa23(0x14b)]([]),this['_roomMembers$'][_0x14fa23(0x1c4)]();}[_0x2f2715(0x347)](){const _0xb462fc=_0x2f2715;this[_0xb462fc(0x1cb)]||(this[_0xb462fc(0x1cb)]=!0x0,this[_0xb462fc(0x300)][_0xb462fc(0x2fb)][_0xb462fc(0x231)](d['takeUntil'](this[_0xb462fc(0x23a)]))[_0xb462fc(0x185)](_0x163212=>{const _0x198ce6=_0xb462fc;_0x163212===u[_0x198ce6(0x2ba)][_0x198ce6(0x141)]?this[_0x198ce6(0x193)]():this[_0x198ce6(0x343)]();}),this[_0xb462fc(0x300)]['event$'][_0xb462fc(0x231)](d['takeUntil'](this['dispose$']))[_0xb462fc(0x185)](_0x2aabce=>{const _0x371ebe=_0xb462fc,_0x23e666=_0x2aabce['eventID'];_0x23e666===m[_0x371ebe(0x23c)][_0x371ebe(0x357)]&&this[_0x371ebe(0x19c)](_0x2aabce),_0x23e666===m['CollaborationEvent'][_0x371ebe(0x2ee)]&&this[_0x371ebe(0x189)](_0x2aabce);}),this[_0xb462fc(0x1d4)](this[_0xb462fc(0x19a)]['onCommandExecuted'](_0x643b6b=>{const _0x1f6159=_0xb462fc,_0x28d5d7=_0x643b6b[_0x1f6159(0x203)];_0x28d5d7!=null&&this[_0x1f6159(0x1b3)]&&_0x643b6b['id']===Y['SetTextSelectionsOperation']['id']&&_0x28d5d7[_0x1f6159(0x17b)]===this[_0x1f6159(0x3bb)]&&_0x28d5d7[_0x1f6159(0x222)]===!0x1&&_0x28d5d7[_0x1f6159(0x269)][_0x1f6159(0x159)]>0x0&&this[_0x1f6159(0x39c)](_0x28d5d7[_0x1f6159(0x269)]);})),this[_0xb462fc(0x3b2)][_0xb462fc(0x34a)][_0xb462fc(0x231)](d[_0xb462fc(0x378)](this[_0xb462fc(0x23a)]))[_0xb462fc(0x185)](_0x3af011=>{const _0x5f4b70=_0xb462fc;if((_0x3af011==null?void 0x0:_0x3af011[_0x5f4b70(0x3bb)])!==this[_0x5f4b70(0x3bb)])return;const _0x13b9b5={'eventID':m[_0x5f4b70(0x23c)][_0x5f4b70(0x357)],'data':_0x3af011};this[_0x5f4b70(0x19c)](_0x13b9b5);}),this[_0xb462fc(0x1d4)](this[_0xb462fc(0x19a)]['onCommandExecuted'](_0x436769=>{const _0x34fd3f=_0xb462fc;if(_0x436769[_0x34fd3f(0x203)]==null)return;const _0x3affd0=_0x436769['params'];if(_0x436769['id']!==Y[_0x34fd3f(0x37c)]['id']||_0x3affd0[_0x34fd3f(0x17b)]!==this[_0x34fd3f(0x3bb)])return;const _0x44a6ec={'id':_0x34fd3f(0x184),'params':_0x3affd0},_0x35ba90=this['cursorInfo'];for(const [_0x29be6f,_0x1df0c8]of _0x35ba90){const _0x58699a={'id':_0x34fd3f(0x184),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1df0c8[_0x34fd3f(0x269)]}},_0x4efe0f=this[_0x34fd3f(0x20a)][_0x34fd3f(0x20b)](_0x44a6ec,_0x58699a,!0x1);if(m[_0x34fd3f(0x1fc)](_0x4efe0f))throw _0x4efe0f[_0x34fd3f(0x20e)];_0x35ba90['set'](_0x29be6f,{..._0x1df0c8,'ranges':_0x4efe0f[_0x34fd3f(0x13c)][_0x34fd3f(0x203)][_0x34fd3f(0x353)]});}queueMicrotask(()=>{const _0x4a48be=_0x34fd3f;this[_0x4a48be(0x1b4)][_0x4a48be(0x14b)](_0x35ba90);});})));}['_onCursorUpdate'](_0x508037){const _0x4eacc1=_0x2f2715;var _0x59db5d,_0x56ac55;const {memberID:_0xfd1adf,selection:_0x751032}=_0x508037[_0x4eacc1(0x346)],_0x225eb9=Je(_0x751032),_0x18d4bc=(_0x56ac55=(_0x59db5d=this['_memberService'][_0x4eacc1(0x143)](this['unitID'],_0xfd1adf))==null?void 0x0:_0x59db5d['name'])!=null?_0x56ac55:_0x4eacc1(0x180),_0x39a1e8={'color':this[_0x4eacc1(0x229)][_0x4eacc1(0x2e8)](_0xfd1adf),'name':_0x18d4bc,'ranges':_0x225eb9},_0x18eb2e=this[_0x4eacc1(0x186)];_0x18eb2e[_0x4eacc1(0x2bc)](_0xfd1adf,_0x39a1e8),this['_cursorInfo$'][_0x4eacc1(0x14b)](_0x18eb2e);}[_0x2f2715(0x189)](_0x3cebf1){const _0x2722a3=_0x2f2715,{memberID:_0x22a9a4}=_0x3cebf1['data'],_0x3e2ffc=this[_0x2722a3(0x186)];_0x3e2ffc[_0x2722a3(0x1e1)](_0x22a9a4),this[_0x2722a3(0x1b4)]['next'](_0x3e2ffc);}['_toggleOnline'](){const _0xa7ca88=_0x2f2715;var _0x2a1af6;if(this[_0xa7ca88(0x1b3)]=!0x0,((_0x2a1af6=this[_0xa7ca88(0x267)][_0xa7ca88(0x18b)]())==null?void 0x0:_0x2a1af6[_0xa7ca88(0x24d)]())!==this['unitID'])return;const _0x36b83b=this[_0xa7ca88(0x2da)][_0xa7ca88(0x2f7)](Y['DocSelectionManagerService'])[_0xa7ca88(0x2d3)]();Array[_0xa7ca88(0x2a2)](_0x36b83b)&&_0x36b83b['length']>0x0&&this[_0xa7ca88(0x39c)](_0x36b83b);}['_toggleOffline'](){const _0xc2ef3e=_0x2f2715;this[_0xc2ef3e(0x1b3)]=!0x1;}};fe=Qe([L(0x2,a[_0x2f2715(0x1e2)](a['Injector'])),L(0x3,a[_0x2f2715(0x1e2)](me)),L(0x4,a['Inject'](u[_0x2f2715(0x24e)])),L(0x5,a[_0x2f2715(0x1e2)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x2f2715(0x35b)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x3b73e2,_0x318cd1,_0x53e075,_0x53a021)=>{const _0x495e5b=_0x2f2715;for(var _0xdcefb3=_0x53a021>0x1?void 0x0:_0x53a021?st(_0x318cd1,_0x53e075):_0x318cd1,_0x590b06=_0x3b73e2[_0x495e5b(0x159)]-0x1,_0x138968;_0x590b06>=0x0;_0x590b06--)(_0x138968=_0x3b73e2[_0x590b06])&&(_0xdcefb3=_0x138968(_0xdcefb3)||_0xdcefb3);return _0xdcefb3;},w=(_0x31cb58,_0x104326)=>(_0x410f98,_0x320ea2)=>_0x104326(_0x410f98,_0x320ea2,_0x31cb58);const nt=0x12c,rt=0x64,ot=()=>{let _0x5837e7=[],_0x4e85be=!0x1;return _0x158778=>{const _0x1ad991=_0x330b;_0x5837e7[_0x1ad991(0x1f6)](_0x158778),_0x4e85be||(_0x4e85be=!0x0,setTimeout(()=>{const _0x2464ac=_0x1ad991;_0x5837e7[_0x2464ac(0x265)](_0xd1d715=>_0xd1d715()),_0x5837e7=[],_0x4e85be=!0x1;}));};};let Se=class extends a[_0x2f2715(0x33d)]{constructor(_0x234c01,_0x1835cd,_0x3aabfd,_0x57f61c,_0xb3ce6d,_0x3dae83,_0x284080,_0x3a8281){const _0x2e22f1=_0x2f2715;super(),h(this,_0x2e22f1(0x1b3),!0x1),h(this,'_init',!0x1),h(this,_0x2e22f1(0x1b4),new d[(_0x2e22f1(0x388))](new Map())),h(this,_0x2e22f1(0x1af),this[_0x2e22f1(0x1b4)][_0x2e22f1(0x1b6)]()),h(this,_0x2e22f1(0x209),new d[(_0x2e22f1(0x388))]([])),h(this,_0x2e22f1(0x324),this[_0x2e22f1(0x209)][_0x2e22f1(0x231)](d['debounceTime'](nt))),h(this,_0x2e22f1(0x39c),a['debounce']((_0x253143,_0x4020d9)=>{const _0x15d38b=_0x2e22f1,_0x443d83={'eventID':m[_0x15d38b(0x23c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x15d38b(0x300)]['getMemberID'](),'selection':Ee[_0x15d38b(0x2a3)](_0x253143,_0x4020d9[_0x15d38b(0x257)])}};this[_0x15d38b(0x300)]['send'](_0x443d83,this[_0x15d38b(0x3bb)]);},rt)),(this[_0x2e22f1(0x3bb)]=_0x234c01,this[_0x2e22f1(0x300)]=_0x1835cd,this[_0x2e22f1(0x2da)]=_0x3aabfd,this['_colorAssignService']=_0x57f61c,this[_0x2e22f1(0x325)]=_0xb3ce6d,this[_0x2e22f1(0x267)]=_0x3dae83,this['_commandService']=_0x284080,this[_0x2e22f1(0x1ee)]=_0x3a8281);}get[_0x2f2715(0x186)](){const _0x3f832b=_0x2f2715;return this[_0x3f832b(0x1b4)][_0x3f832b(0x27d)]();}get['roomMembers'](){const _0x50b9ff=_0x2f2715;return this[_0x50b9ff(0x209)][_0x50b9ff(0x27d)]();}[_0x2f2715(0x215)](){const _0x135ddd=_0x2f2715;super[_0x135ddd(0x215)](),this[_0x135ddd(0x1b4)][_0x135ddd(0x14b)](new Map()),this['_cursorInfo$'][_0x135ddd(0x1c4)](),this['_roomMembers$'][_0x135ddd(0x14b)]([]),this[_0x135ddd(0x209)][_0x135ddd(0x1c4)]();}[_0x2f2715(0x347)](){const _0x4805b4=_0x2f2715;this['_init']||(this['_init']=!0x0,this[_0x4805b4(0x300)][_0x4805b4(0x2fb)]['pipe'](d[_0x4805b4(0x378)](this[_0x4805b4(0x23a)]))[_0x4805b4(0x185)](_0x19dab9=>{const _0x3621ec=_0x4805b4;_0x19dab9===u[_0x3621ec(0x2ba)]['ONLINE']?this[_0x3621ec(0x193)]():this['_toggleOffline']();}),this[_0x4805b4(0x300)][_0x4805b4(0x218)][_0x4805b4(0x231)](d['takeUntil'](this['dispose$']))['subscribe'](_0xf9b295=>{const _0x11570b=_0x4805b4,_0x3fddb5=_0xf9b295['eventID'];_0x3fddb5===m[_0x11570b(0x23c)]['UPDATE_CURSOR']&&this[_0x11570b(0x19c)](_0xf9b295),_0x3fddb5===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x11570b(0x189)](_0xf9b295);}),this[_0x4805b4(0x1d9)](),this['disposeWithMe'](this[_0x4805b4(0x19a)][_0x4805b4(0x2ec)](_0x37fe11=>{const _0x3737db=_0x4805b4;if(this[_0x3737db(0x1b3)]&&_0x37fe11['id']===g[_0x3737db(0x2d7)]['id']&&_0x37fe11[_0x3737db(0x203)]['unitId']===this[_0x3737db(0x3bb)]){const _0xf1ab23=_0x37fe11[_0x3737db(0x203)];this['_updateLocalCursor'](_0xf1ab23[_0x3737db(0x1d8)],_0xf1ab23['selections'][0x0]);}})));}[_0x2f2715(0x19c)](_0xb86fc2){const _0x40a14b=_0x2f2715;var _0x15d58e,_0x75d5b8;const {memberID:_0x788a1d,selection:_0x4ad837}=_0xb86fc2['data'],{sheetName:_0x1b6acd,range:_0x4dbb20}=Ee[_0x40a14b(0x178)](_0x4ad837),_0x1264bd={'name':(_0x75d5b8=(_0x15d58e=this['_memberService'][_0x40a14b(0x143)](this['unitID'],_0x788a1d))==null?void 0x0:_0x15d58e[_0x40a14b(0x3bc)])!=null?_0x75d5b8:_0x40a14b(0x180),'range':this['_getMergeRange'](_0x1b6acd,_0x4dbb20),'sheetID':_0x1b6acd,'color':this[_0x40a14b(0x229)]['assignAColorForMemberID'](_0x788a1d),'selection':_0x4ad837},_0x39462e=this[_0x40a14b(0x186)];_0x39462e[_0x40a14b(0x2bc)](_0x788a1d,_0x1264bd),this['_cursorInfo$'][_0x40a14b(0x14b)](_0x39462e);}[_0x2f2715(0x189)](_0x39f1a0){const _0x6c8af6=_0x2f2715,{memberID:_0x3d00f2}=_0x39f1a0['data'],_0x469cd6=this[_0x6c8af6(0x186)];_0x469cd6['delete'](_0x3d00f2),this[_0x6c8af6(0x1b4)][_0x6c8af6(0x14b)](_0x469cd6);}[_0x2f2715(0x145)](_0x188a3d,_0x45e325){const _0x308130=_0x2f2715;var _0x256952,_0x2da93d;const _0x3b3384=(_0x2da93d=(_0x256952=this[_0x308130(0x267)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x256952['getSheetBySheetId'](_0x188a3d))==null?void 0x0:_0x2da93d[_0x308130(0x327)]();return(_0x3b3384==null?void 0x0:_0x3b3384['find'](_0x528f3a=>a[_0x308130(0x214)]['contains'](_0x528f3a,_0x45e325)))||_0x45e325;}['_onRefRangeChange'](){const _0x480fcb=_0x2f2715,_0xa4f4c3=new a['DisposableCollection'](),_0x30022b=ot(),_0xb8c62=()=>{const _0x3cbb04=_0x330b;_0xa4f4c3[_0x3cbb04(0x215)]();const _0x32247f=(_0xeea082,_0x14dfbc,_0x387ac5,_0x3729b8)=>{const _0x228691=_0x3cbb04;let _0x5c627a=[];switch(_0xeea082['id']){case g['EffectRefRangId'][_0x228691(0x1a7)]:{_0x5c627a=g['handleDeleteRangeMoveLeft'](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x35f)]:{_0x5c627a=g['handleDeleteRangeMoveUp'](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x5c627a=g[_0x228691(0x26c)](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId'][_0x228691(0x1ff)]:{_0x5c627a=g[_0x228691(0x299)](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x5c627a=g[_0x228691(0x34d)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x377)]:{_0x5c627a=g[_0x228691(0x302)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x366)]:{_0x5c627a=g['handleMoveRange'](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x32c)]:{_0x5c627a=g[_0x228691(0x354)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)]['RemoveRowCommandId']:{_0x5c627a=g[_0x228691(0x274)](_0xeea082,_0x3729b8);break;}}const _0x219ff0=g[_0x228691(0x2b9)](_0x5c627a,_0x3729b8),_0x2d4287=this[_0x228691(0x186)][_0x228691(0x2f7)](_0x14dfbc);if(_0x2d4287&&_0x219ff0){const _0x47641c={..._0x2d4287,'range':_0x219ff0};this[_0x228691(0x186)]['set'](_0x14dfbc,_0x47641c),_0x30022b(()=>{const _0x3fd55f=_0x228691,_0x156c25=this[_0x3fd55f(0x1ee)][_0x3fd55f(0x13b)](_0x219ff0,_0x3bded0=>(_0x156c25[_0x3fd55f(0x215)](),_0x32247f(_0x3bded0,_0x14dfbc,_0x387ac5,_0x219ff0)));_0xa4f4c3[_0x3fd55f(0x239)](_0x156c25);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3cbb04(0x265)]((_0xfd2a2,_0x7e61ba)=>{const _0x10377d=_0x3cbb04,{range:_0xe6e839,sheetID:_0x594785}=_0xfd2a2,_0x40584=this[_0x10377d(0x1ee)][_0x10377d(0x13b)](_0xe6e839,_0x7c3b49=>(_0x40584[_0x10377d(0x215)](),_0x32247f(_0x7c3b49,_0x7e61ba,_0x594785,_0xe6e839)));_0xa4f4c3['add'](_0x40584);});};this[_0x480fcb(0x1d4)](a['toDisposable'](this['_cursorInfo$']['subscribe'](()=>{_0xb8c62();})));}[_0x2f2715(0x193)](){const _0x2adbf8=_0x2f2715;var _0x1e43b3,_0x5cb73c;if(this[_0x2adbf8(0x1b3)]=!0x0,((_0x1e43b3=this[_0x2adbf8(0x267)]['getFocusedUnit']())==null?void 0x0:_0x1e43b3[_0x2adbf8(0x24d)]())!==this[_0x2adbf8(0x3bb)])return;const _0x5ab5e5=(_0x5cb73c=this[_0x2adbf8(0x2da)]['get'](g['SheetsSelectionsService'])[_0x2adbf8(0x2e9)]())==null?void 0x0:_0x5cb73c[0x0],_0x29c494=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2adbf8(0x38b)]();_0x5ab5e5&&_0x29c494&&this[_0x2adbf8(0x39c)](_0x29c494[_0x2adbf8(0x36c)](),_0x5ab5e5);}[_0x2f2715(0x343)](){const _0x36b053=_0x2f2715;this[_0x36b053(0x1b3)]=!0x1;}};Se=it([w(0x2,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x2f2715(0x1e2)](u[_0x2f2715(0x24e)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2f2715(0x35b)]),w(0x7,a[_0x2f2715(0x1e2)](g['RefRangeService']))],Se);var at=Object[_0x2f2715(0x3a5)],ct=(_0x53b0e5,_0x2f19c3,_0x3ad567,_0x29127d)=>{const _0x4975cd=_0x2f2715;for(var _0x49c774=_0x29127d>0x1?void 0x0:_0x29127d?at(_0x2f19c3,_0x3ad567):_0x2f19c3,_0x463c87=_0x53b0e5[_0x4975cd(0x159)]-0x1,_0x4e87c6;_0x463c87>=0x0;_0x463c87--)(_0x4e87c6=_0x53b0e5[_0x463c87])&&(_0x49c774=_0x4e87c6(_0x49c774)||_0x49c774);return _0x49c774;},ie=(_0x5c3786,_0x1c7815)=>(_0x1b56c2,_0x4143e3)=>_0x1c7815(_0x1b56c2,_0x4143e3,_0x5c3786);let x=class extends a[_0x2f2715(0x33d)]{constructor(_0x5945c9,_0x234f6d,_0x1ba479){const _0xe30953=_0x2f2715;super(),h(this,_0xe30953(0x19e),new Map()),h(this,'_entityInit$',new d[(_0xe30953(0x375))]()),(this[_0xe30953(0x267)]=_0x5945c9,this['_injector']=_0x234f6d,this[_0xe30953(0x397)]=_0x1ba479,this[_0xe30953(0x1cb)]());}[_0x2f2715(0x215)](){const _0x309656=_0x2f2715;super[_0x309656(0x215)](),this[_0x309656(0x320)][_0x309656(0x1c4)](),this[_0x309656(0x19e)]['forEach'](_0x3934d7=>_0x3934d7[_0x309656(0x215)]());}[_0x2f2715(0x21f)](_0x30d98f){const _0x574538=_0x2f2715;return this['_entities'][_0x574538(0x156)](_0x30d98f)?this[_0x574538(0x19e)][_0x574538(0x2f7)](_0x30d98f)[_0x574538(0x1af)]:this['_entityInit$'][_0x574538(0x231)](d[_0x574538(0x1ef)](_0x5c584b=>_0x5c584b[_0x574538(0x3bb)]===_0x30d98f),d[_0x574538(0x2fd)](_0x514bf4=>_0x514bf4[_0x574538(0x1af)]));}[_0x2f2715(0x1cb)](){const _0x528119=_0x2f2715;this[_0x528119(0x267)][_0x528119(0x278)](a[_0x528119(0x17a)][_0x528119(0x3a9)])[_0x528119(0x231)](d['takeUntil'](this['dispose$']))[_0x528119(0x185)](async _0x59e26f=>{const _0x5ec17b=_0x528119,_0x2aabfb=_0x59e26f[_0x5ec17b(0x24d)](),_0x3d28c5=await this[_0x5ec17b(0x169)](_0x2aabfb);this[_0x5ec17b(0x320)][_0x5ec17b(0x14b)](_0x3d28c5),this[_0x5ec17b(0x19e)][_0x5ec17b(0x2bc)](_0x2aabfb,_0x3d28c5);}),this[_0x528119(0x267)][_0x528119(0x278)](a['UniverInstanceType'][_0x528119(0x223)])[_0x528119(0x231)](d[_0x528119(0x378)](this[_0x528119(0x23a)]))[_0x528119(0x231)](d[_0x528119(0x1ef)](_0x124e15=>!_0x124e15[_0x528119(0x24d)]()[_0x528119(0x22e)]('__')))[_0x528119(0x185)](async _0x1b17a3=>{const _0xbafcd1=_0x528119,_0x3a06aa=_0x1b17a3[_0xbafcd1(0x24d)](),_0x46371a=await this[_0xbafcd1(0x1da)](_0x3a06aa);this['_entityInit$'][_0xbafcd1(0x14b)](_0x46371a),this[_0xbafcd1(0x19e)][_0xbafcd1(0x2bc)](_0x3a06aa,_0x46371a);}),d['merge'](this[_0x528119(0x267)][_0x528119(0x293)](a['UniverInstanceType'][_0x528119(0x223)]),this[_0x528119(0x267)][_0x528119(0x293)](a[_0x528119(0x17a)][_0x528119(0x3a9)]))[_0x528119(0x231)](d['takeUntil'](this[_0x528119(0x23a)]))[_0x528119(0x185)](_0x46eda1=>{const _0x5e09e5=_0x528119,_0x3ee4d8=_0x46eda1[_0x5e09e5(0x24d)](),_0x32f682=this[_0x5e09e5(0x19e)][_0x5e09e5(0x2f7)](_0x3ee4d8);_0x32f682&&(_0x32f682[_0x5e09e5(0x215)](),this[_0x5e09e5(0x19e)][_0x5e09e5(0x1e1)](_0x3ee4d8));});}async['_startSheetCollabCursor'](_0xf3b539){const _0x39d81e=_0x2f2715,_0x50fbb3=await this[_0x39d81e(0x397)][_0x39d81e(0x25a)](_0xf3b539),_0xd315d1=this['_injector'][_0x39d81e(0x290)](Se,_0xf3b539,_0x50fbb3);return _0xd315d1[_0x39d81e(0x347)](),_0xd315d1;}async[_0x2f2715(0x1da)](_0x27d25f){const _0x21cb40=_0x2f2715,_0x40f538=await this[_0x21cb40(0x397)][_0x21cb40(0x25a)](_0x27d25f),_0x528231=this['_injector']['createInstance'](fe,_0x27d25f,_0x40f538);return _0x528231[_0x21cb40(0x347)](),_0x528231;}};x=ct([ie(0x0,a[_0x2f2715(0x383)]),ie(0x1,a['Inject'](a[_0x2f2715(0x1f1)])),ie(0x2,a['Inject'](u[_0x2f2715(0x153)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x522751,_0x123506){const _0x5b5dac=_0x2f2715;let {radius:_0x115ada,width:_0x5a5a71,height:_0x4810c8}=_0x123506;_0x115ada=_0x115ada!=null?_0x115ada:0x0,_0x5a5a71=_0x5a5a71!=null?_0x5a5a71:0x1e,_0x4810c8=_0x4810c8!=null?_0x4810c8:0x1e;let _0x19c4af=0x0,_0x2d5fd2=0x0,_0x4fefdb=0x0;_0x19c4af=_0x2d5fd2=_0x4fefdb=Math[_0x5b5dac(0x295)](_0x115ada,_0x5a5a71/0x2,_0x4810c8/0x2),_0x522751[_0x5b5dac(0x1fd)](),_0x522751[_0x5b5dac(0x254)](_0x19c4af,0x0),_0x522751[_0x5b5dac(0x291)](_0x5a5a71-_0x2d5fd2,0x0),_0x522751[_0x5b5dac(0x2cd)](_0x5a5a71-_0x2d5fd2,_0x2d5fd2,_0x2d5fd2,Math['PI']*0x3/0x2,0x0,!0x1),_0x522751['lineTo'](_0x5a5a71,_0x4810c8-_0x4fefdb),_0x522751['arc'](_0x5a5a71-_0x4fefdb,_0x4810c8-_0x4fefdb,_0x4fefdb,0x0,Math['PI']/0x2,!0x1),_0x522751['lineTo'](0x0,_0x4810c8),_0x522751['lineTo'](0x0,_0x19c4af),_0x522751[_0x5b5dac(0x2cd)](_0x19c4af,_0x19c4af,_0x19c4af,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x522751[_0x5b5dac(0x329)](),_0x123506[_0x5b5dac(0x338)]&&(_0x522751[_0x5b5dac(0x233)](),_0x522751[_0x5b5dac(0x334)]=_0x123506[_0x5b5dac(0x338)],_0x123506[_0x5b5dac(0x359)]===_0x5b5dac(0x2c3)?_0x522751[_0x5b5dac(0x338)](_0x5b5dac(0x2c3)):_0x522751['fill'](),_0x522751[_0x5b5dac(0x312)]());}class ee extends p[_0x2f2715(0x2b5)]{constructor(_0x87a324,_0x1d5414){const _0x12b6e9=_0x2f2715;super(_0x87a324,_0x1d5414),h(this,_0x12b6e9(0x244)),h(this,_0x12b6e9(0x1a2)),(this[_0x12b6e9(0x244)]=_0x1d5414==null?void 0x0:_0x1d5414[_0x12b6e9(0x244)],this['text']=_0x1d5414==null?void 0x0:_0x1d5414[_0x12b6e9(0x1a2)]);}static[_0x2f2715(0x328)](_0x336e57,_0x34da80){const _0x136764=_0x2f2715,{text:_0x4b9b6b,color:_0x3a4fc2}=_0x34da80;_0x336e57[_0x136764(0x233)](),_0x336e57[_0x136764(0x16b)]=_0x136764(0x2c0);const _0x69d1d5=_0x336e57['measureText'](_0x4b9b6b)['width'],_0x506ba9=Math[_0x136764(0x295)](_0x69d1d5+0x2*ne,Re);_t(_0x336e57,{'height':K,'radius':0x4,'width':_0x506ba9,'fill':_0x3a4fc2}),_0x336e57[_0x136764(0x334)]=_0x136764(0x2c2);const _0x3f992d=ne,_0x220a7d=K-lt,_0x103a10=Re-0x2*ne;if(_0x69d1d5>_0x103a10){let _0x48a414='',_0x508f15=0x0;for(const _0x18fe36 of _0x4b9b6b){const _0x1da21d=_0x336e57[_0x136764(0x31b)](_0x18fe36)[_0x136764(0x2f4)];if(_0x508f15+_0x1da21d<=_0x103a10-_0x336e57[_0x136764(0x31b)](_0x136764(0x21a))['width'])_0x48a414+=_0x18fe36,_0x508f15+=_0x1da21d;else{_0x48a414+=_0x136764(0x21a);break;}}_0x336e57['fillText'](_0x48a414,_0x3f992d,_0x220a7d);}else _0x336e57[_0x136764(0x263)](_0x4b9b6b,_0x3f992d,_0x220a7d);_0x336e57[_0x136764(0x312)]();}['_draw'](_0x3a0188){const _0x448e53=_0x2f2715;ee[_0x448e53(0x328)](_0x3a0188,this);}}const re=_0x2f2715(0x13d),ht=_0x2f2715(0x2fe),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x2f2715(0x266);class De{constructor(_0x2c8226,_0x132f3b,_0x242d07,_0x1728e3){const _0xa07731=_0x2f2715;h(this,_0xa07731(0x391),[]),h(this,_0xa07731(0x217),null),h(this,'_textBubble',null),h(this,_0xa07731(0x2c6),null),h(this,_0xa07731(0x259),null),h(this,_0xa07731(0x1d5),null),(this[_0xa07731(0x2c8)]=_0x2c8226,this[_0xa07731(0x1d3)]=_0x132f3b,this[_0xa07731(0x1d2)]=_0x242d07,this[_0xa07731(0x1fb)]=_0x1728e3,this[_0xa07731(0x2f8)]());}set[_0x2f2715(0x252)](_0x27079c){const _0x144c2f=_0x2f2715;_0x27079c?(this[_0x144c2f(0x2c6)]&&this[_0x144c2f(0x2c6)][_0x144c2f(0x240)](),this[_0x144c2f(0x1cd)]&&this[_0x144c2f(0x1cd)][_0x144c2f(0x2b6)]()):(this[_0x144c2f(0x2c6)]&&this['_anchorDot'][_0x144c2f(0x2b6)](),this[_0x144c2f(0x1cd)]&&this[_0x144c2f(0x1cd)][_0x144c2f(0x240)]());}[_0x2f2715(0x215)](){const _0x2f3d9e=_0x2f2715;for(const _0x2f5c7f of this['_shapes'])_0x2f5c7f[_0x2f3d9e(0x215)]();this[_0x2f3d9e(0x1cd)]&&this[_0x2f3d9e(0x1cd)]['dispose'](),this[_0x2f3d9e(0x2c6)]&&this[_0x2f3d9e(0x2c6)][_0x2f3d9e(0x215)](),this[_0x2f3d9e(0x217)]&&this['_anchor'][_0x2f3d9e(0x215)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2f2715(0x2f8)](){const _0x1e9382=_0x2f2715;var _0xf5bbda;const {_docSkeleton:_0x5a222f,_document:_0x158c2f}=this,{color:_0x8032bc,name:_0x423699,ranges:_0x219a9d}=this[_0x1e9382(0x2c8)],_0x48c117=_0x158c2f[_0x1e9382(0x191)](),{docsLeft:_0x2b3b18,docsTop:_0x4569cf}=_0x48c117,_0x20f77c=new b[(_0x1e9382(0x149))](_0x48c117,_0x5a222f);for(const {startOffset:_0x44d275,endOffset:_0x4bf302,rangeType:_0x152576,segmentId:_0x3d42d1,segmentPage:_0x16c240,collapsed:_0x3e6025,isActive:_0x46e3bd}of _0x219a9d){const _0x3bc798=_0x5a222f[_0x1e9382(0x33b)](_0x44d275,!0x0,_0x3d42d1,_0x16c240);let _0x1a35ff=_0x5a222f['findNodePositionByCharIndex'](_0x4bf302,!0x0,_0x3d42d1,_0x16c240);if(_0x1a35ff==null&&(_0x1a35ff=_0x5a222f[_0x1e9382(0x33b)](_0x4bf302-0x1,!0x1,_0x3d42d1,_0x16c240)),_0x46e3bd){const {contentBoxPointGroup:_0x42f4a5}=_0x20f77c[_0x1e9382(0x1e9)](_0x1a35ff,_0x1a35ff);if(_0x42f4a5[_0x1e9382(0x159)]===0x0)continue;this[_0x1e9382(0x18c)](_0x8032bc,_0x42f4a5,_0x2b3b18,_0x4569cf,_0x423699),this['_eventUnsubscribe']=this[_0x1e9382(0x26e)]();}if(_0x3bc798&&_0x1a35ff){if(_0x152576===a[_0x1e9382(0x175)][_0x1e9382(0x2a0)]){const _0xfcf26a=new b[(_0x1e9382(0x14a))](_0x48c117,_0x5a222f),{pointGroup:_0x87e9a7}=(_0xf5bbda=_0xfcf26a[_0x1e9382(0x1e9)](_0x3bc798,_0x1a35ff))!=null?_0xf5bbda:{};if(_0x87e9a7==null||_0x87e9a7[_0x1e9382(0x159)]===0x0)continue;this[_0x1e9382(0x1ea)](_0x8032bc,_0x87e9a7,_0x2b3b18,_0x4569cf);}else{if(!_0x3e6025){const {borderBoxPointGroup:_0x1e537d}=_0x20f77c['getRangePointData'](_0x3bc798,_0x1a35ff);if(_0x1e537d[_0x1e9382(0x159)]===0x0)continue;this['_drawTextRange'](_0x8032bc,_0x1e537d,_0x2b3b18,_0x4569cf);}}}}}['_drawAnchor'](_0x37990b,_0x3f2bdd,_0x2e03e1,_0x24b1fc,_0x5709ae){const _0x21c7cc=_0x2f2715,_0x57c644=this[_0x21c7cc(0x2b0)](_0x3f2bdd),{left:_0x13886f,top:_0x414476,height:_0x1f4fce}=_0x57c644,_0x3d9aa8=this[_0x21c7cc(0x32e)](),_0x157974=ft/_0x3d9aa8,_0x51182c=new p['Rect'](re+a[_0x21c7cc(0x196)][_0x21c7cc(0x160)](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc,'height':_0x1f4fce,'width':dt,'fill':_0x37990b||p['getColor'](a['COLORS']['black'],0x0),'strokeWidth':_0x157974,'stroke':St,'evented':!0x0});this[_0x21c7cc(0x217)]=_0x51182c,this['_scene'][_0x21c7cc(0x207)](_0x51182c,b[_0x21c7cc(0x352)]);const _0x9526aa=new p['Rect'](re+a['Tools']['generateRandomId'](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc-oe/0x2,'height':oe,'width':oe,'fill':_0x37990b||p[_0x21c7cc(0x163)](a[_0x21c7cc(0x154)][_0x21c7cc(0x1c7)],0x0),'strokeWidth':0x0,'stroke':_0x37990b||p[_0x21c7cc(0x163)](a[_0x21c7cc(0x154)][_0x21c7cc(0x1c7)],0x0),'evented':!0x1});this[_0x21c7cc(0x2c6)]=_0x9526aa,this[_0x21c7cc(0x1d3)][_0x21c7cc(0x207)](_0x9526aa,b[_0x21c7cc(0x352)]);const _0x3a891e=new ee(re+a[_0x21c7cc(0x196)][_0x21c7cc(0x160)](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc-K,'text':_0x5709ae,'color':_0x37990b});this[_0x21c7cc(0x1cd)]=_0x3a891e,this[_0x21c7cc(0x1d3)]['addObject'](_0x3a891e,b[_0x21c7cc(0x352)]),this[_0x21c7cc(0x252)]=!0x1;}['_handleHover'](){const _0x298ee1=_0x2f2715,_0x586880=this[_0x298ee1(0x217)]['onPointerEnter$'][_0x298ee1(0x1a0)](()=>{this['_hover']=!0x0;}),_0x4d08f5=this[_0x298ee1(0x217)][_0x298ee1(0x36d)][_0x298ee1(0x1a0)](()=>{const _0x2ed8b3=_0x298ee1;this['_hideTimer']&&clearTimeout(this[_0x2ed8b3(0x259)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x56a82e=_0x298ee1;_0x586880[_0x56a82e(0x319)](),_0x4d08f5[_0x56a82e(0x319)]();};}[_0x2f2715(0x158)](_0x22285b,_0x52ada2,_0x4b403b,_0x9ac839){const _0x149a10=_0x2f2715,_0x51ab9a=new a['ColorKit'](_0x22285b)[_0x149a10(0x37f)](0.2)['toRgbString'](),_0x2060c6=new p['RegularPolygon'](ht+a['Tools'][_0x149a10(0x160)](k),{'pointsGroup':_0x52ada2,'fill':_0x51ab9a||p['getColor'](a[_0x149a10(0x154)][_0x149a10(0x1c7)],0.2),'left':_0x4b403b,'top':_0x9ac839,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x149a10(0x391)]['push'](_0x2060c6),this[_0x149a10(0x1d3)][_0x149a10(0x207)](_0x2060c6,b['TEXT_RANGE_LAYER_INDEX']);}[_0x2f2715(0x1ea)](_0x40d4a4,_0x2c5ce6,_0x3ee2e8,_0x2f79c9){const _0x253baa=_0x2f2715,_0x230b62=new a['ColorKit'](_0x40d4a4)[_0x253baa(0x37f)](0.2)[_0x253baa(0x2ae)](),_0x23983e=new p[(_0x253baa(0x170))](ut+a[_0x253baa(0x196)][_0x253baa(0x160)](k),{'pointsGroup':_0x2c5ce6,'fill':_0x230b62||p[_0x253baa(0x163)](a[_0x253baa(0x154)][_0x253baa(0x1c7)],0.2),'left':_0x3ee2e8,'top':_0x2f79c9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x253baa(0x391)][_0x253baa(0x1f6)](_0x23983e),this[_0x253baa(0x1d3)][_0x253baa(0x207)](_0x23983e,b[_0x253baa(0x352)]);}[_0x2f2715(0x2b0)](_0x4bfd10){const _0x3f9941=_0x4bfd10[0x0],_0x26c65e=_0x3f9941[0x0],_0x399787=_0x3f9941[0x2],{x:_0x3932c4,y:_0x1dddef}=_0x26c65e,{x:_0x1abaea,y:_0x5aead7}=_0x399787;return{'left':_0x3932c4,'top':_0x1dddef,'width':_0x1abaea-_0x3932c4,'height':_0x5aead7-_0x1dddef};}['_getScale'](){const {scaleX:_0x4f34b9,scaleY:_0x4333e9}=this['_scene']['getAncestorScale']();return Math['max'](_0x4f34b9,_0x4333e9);}}var It=Object[_0x2f2715(0x3a5)],vt=(_0x1c2bad,_0x4e1528,_0x1a0b6f,_0x3a4e9a)=>{const _0x29b9e1=_0x2f2715;for(var _0x58d880=_0x3a4e9a>0x1?void 0x0:_0x3a4e9a?It(_0x4e1528,_0x1a0b6f):_0x4e1528,_0x3d80e8=_0x1c2bad[_0x29b9e1(0x159)]-0x1,_0x2e596b;_0x3d80e8>=0x0;_0x3d80e8--)(_0x2e596b=_0x1c2bad[_0x3d80e8])&&(_0x58d880=_0x2e596b(_0x58d880)||_0x58d880);return _0x58d880;},W=(_0x2d3d9c,_0xc300f1)=>(_0xce2c1f,_0x4978e5)=>_0xc300f1(_0xce2c1f,_0x4978e5,_0x2d3d9c);function _0x330b(_0x207e74,_0x9a91f2){const _0xdf2577=_0xdf25();return _0x330b=function(_0x330bcb,_0x1f4f12){_0x330bcb=_0x330bcb-0x138;let _0x30b0d6=_0xdf2577[_0x330bcb];return _0x30b0d6;},_0x330b(_0x207e74,_0x9a91f2);}let Ie=class extends a[_0x2f2715(0x33d)]{constructor(_0x1a0213,_0x2cbac8,_0x2d1a34,_0x28acb4,_0x33a4e5){const _0x1f8e15=_0x2f2715;super(),h(this,_0x1f8e15(0x256),[]),h(this,_0x1f8e15(0x2ab),[]),(this[_0x1f8e15(0x25c)]=_0x1a0213,this[_0x1f8e15(0x29d)]=_0x2cbac8,this[_0x1f8e15(0x179)]=_0x2d1a34,this[_0x1f8e15(0x19a)]=_0x28acb4,this[_0x1f8e15(0x13e)]=_0x33a4e5,this[_0x1f8e15(0x1cb)]());}[_0x2f2715(0x1cb)](){const _0x48f8ed=_0x2f2715,_0x34d555=this[_0x48f8ed(0x25c)][_0x48f8ed(0x17b)],_0x4670d2=this[_0x48f8ed(0x29d)];this[_0x48f8ed(0x1d4)](d[_0x48f8ed(0x15d)]([this[_0x48f8ed(0x179)][_0x48f8ed(0x21f)](_0x34d555),this['_themeService'][_0x48f8ed(0x1dd)]])[_0x48f8ed(0x231)]($[_0x48f8ed(0x31d)](([_0x3e09f4,_0x3aa6f0])=>({'skeleton':_0x4670d2[_0x48f8ed(0x376)](),'cursors':[..._0x3e09f4[_0x48f8ed(0x25e)]()][_0x48f8ed(0x2f2)](_0x26fe7b=>({..._0x26fe7b,'color':this[_0x48f8ed(0x13e)][_0x48f8ed(0x146)](_0x26fe7b[_0x48f8ed(0x244)])}))})))[_0x48f8ed(0x185)](_0x107a78=>{const _0x4fd780=_0x48f8ed;if(this[_0x4fd780(0x225)](),_0x107a78){const {skeleton:_0x5ce53d,cursors:_0x353071}=_0x107a78;this[_0x4fd780(0x1f3)](_0x5ce53d,_0x353071);}})),this[_0x48f8ed(0x273)](),this[_0x48f8ed(0x192)]();}[_0x2f2715(0x1f3)](_0x40e1ca,_0x47990e){const _0x340934=_0x2f2715,{scene:_0x7cce5a,mainComponent:_0x499e45}=this[_0x340934(0x25c)],_0x597490=_0x47990e[_0x340934(0x31d)](_0x5a4ae7=>new De(_0x5a4ae7,_0x7cce5a,_0x40e1ca,_0x499e45));this[_0x340934(0x256)]=_0x597490,this[_0x340934(0x2ab)]=_0x47990e;}[_0x2f2715(0x317)](){const _0x525339=_0x2f2715;this[_0x525339(0x225)]();const {scene:_0x2ec263,mainComponent:_0x4693b5}=this[_0x525339(0x25c)],_0x4df5e1=this[_0x525339(0x29d)][_0x525339(0x376)](),_0x59fe77=this[_0x525339(0x2ab)][_0x525339(0x31d)](_0x270193=>new De(_0x270193,_0x2ec263,_0x4df5e1,_0x4693b5));this[_0x525339(0x256)]=_0x59fe77;}[_0x2f2715(0x225)](){const _0x48c723=_0x2f2715;this['_cursorShapes']['forEach'](_0x1d96f9=>_0x1d96f9[_0x48c723(0x215)]()),this[_0x48c723(0x256)]=[];}[_0x2f2715(0x192)](){const _0x4479ea=_0x2f2715,_0x12f302=[b['SetDocZoomRatioOperation']['id']];this[_0x4479ea(0x1d4)](this['_commandService'][_0x4479ea(0x2ec)](_0x2e16f7=>{const _0x437fbe=_0x4479ea;_0x12f302[_0x437fbe(0x14f)](_0x2e16f7['id'])&&_0x2e16f7['params'][_0x437fbe(0x17b)]===this['_context'][_0x437fbe(0x17b)]&&this[_0x437fbe(0x317)]();}));}[_0x2f2715(0x273)](){const _0x14aa03=_0x2f2715;this[_0x14aa03(0x1d4)](a[_0x14aa03(0x33a)](this[_0x14aa03(0x25c)]['engine'][_0x14aa03(0x211)])[_0x14aa03(0x231)]($[_0x14aa03(0x1ef)](_0x1eab47=>_0x1eab47[_0x14aa03(0x2e7)]===p[_0x14aa03(0x25f)][_0x14aa03(0x2f0)]),$[_0x14aa03(0x2c7)](0x10))['subscribe'](()=>{const _0x2627cc=_0x14aa03;this[_0x2627cc(0x317)]();}));}};Ie=vt([W(0x1,a[_0x2f2715(0x1e2)](Y[_0x2f2715(0x1a8)])),W(0x2,a[_0x2f2715(0x1e2)](x)),W(0x3,a[_0x2f2715(0x35b)]),W(0x4,a[_0x2f2715(0x1e2)](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x2f2715(0x2b5)]{constructor(_0x2d9fa9,_0x4d617d){const _0x5ea94a=_0x2f2715;super(_0x2d9fa9,_0x4d617d),h(this,'_color'),h(this,_0x5ea94a(0x18d),!0x1),h(this,_0x5ea94a(0x27e)),h(this,'_name',''),h(this,_0x5ea94a(0x258),_0x5ea94a(0x13a)),h(this,_0x5ea94a(0x1db)),(_0x4d617d&&this[_0x5ea94a(0x1b8)](_0x4d617d),this[_0x5ea94a(0x226)][_0x5ea94a(0x1a0)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5ea94a(0x36d)][_0x5ea94a(0x1a0)](()=>this[_0x5ea94a(0x1b8)]({'hovered':!0x1})));}[_0x2f2715(0x1b8)](_0x320572){const _0x1669f5=_0x2f2715;var _0x118bce,_0x5a7342,_0x2320b6,_0x4c8f23,_0x2d090a,_0x4f733a;this['_color']=(_0x118bce=_0x320572[_0x1669f5(0x244)])!=null?_0x118bce:this[_0x1669f5(0x16a)],this[_0x1669f5(0x18d)]=(_0x5a7342=_0x320572['hovered'])!=null?_0x5a7342:this[_0x1669f5(0x18d)],this[_0x1669f5(0x27e)]=(_0x2320b6=_0x320572[_0x1669f5(0x257)])!=null?_0x2320b6:this[_0x1669f5(0x27e)],this[_0x1669f5(0x26a)]=(_0x4c8f23=_0x320572[_0x1669f5(0x3bc)])!=null?_0x4c8f23:this[_0x1669f5(0x26a)],this[_0x1669f5(0x258)]=(_0x2d090a=_0x320572['labelPosition'])!=null?_0x2d090a:this[_0x1669f5(0x258)],this['_backgroundColor']=(_0x4f733a=_0x320572[_0x1669f5(0x2bf)])!=null?_0x4f733a:this[_0x1669f5(0x1db)],this[_0x1669f5(0x331)]({'width':_0x320572[_0x1669f5(0x2f4)],'height':_0x320572[_0x1669f5(0x389)]});}[_0x2f2715(0x255)](_0xd6c294){const _0x352269=_0x2f2715,{row:_0x47b99d,column:_0xdcf965}=_0xd6c294;if(_0x47b99d>=this[_0x352269(0x27e)][_0x352269(0x1ed)]&&_0x47b99d<=this[_0x352269(0x27e)][_0x352269(0x176)]&&_0xdcf965>=this[_0x352269(0x27e)][_0x352269(0x311)]&&_0xdcf965<=this[_0x352269(0x27e)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x352269(0x1b8)]({'hovered':!0x1});}['triggerDblclick'](_0x34fefc){return!0x1;}[_0x2f2715(0x35e)](_0x1badc4){const _0x3817ed=_0x2f2715;p[_0x3817ed(0x26b)][_0x3817ed(0x328)](_0x1badc4,{'width':this['width'],'height':this[_0x3817ed(0x389)],'strokeWidth':mt,'stroke':this[_0x3817ed(0x16a)],'evented':!0x1,'fill':this[_0x3817ed(0x1db)]}),this[_0x3817ed(0x18d)]&&(_0x1badc4['save'](),_0x1badc4[_0x3817ed(0x1f2)](0x1,0x0,0x0,0x1,this[_0x3817ed(0x2f4)],this[_0x3817ed(0x258)]==='bottom'?0x0:-0x14),ee[_0x3817ed(0x328)](_0x1badc4,{'text':this[_0x3817ed(0x26a)],'color':this[_0x3817ed(0x16a)]}),_0x1badc4[_0x3817ed(0x312)]());}}var Ct=Object[_0x2f2715(0x3a5)],pt=(_0x20eb19,_0x439056,_0x1b494e,_0x1b3038)=>{for(var _0x306add=_0x1b3038>0x1?void 0x0:_0x1b3038?Ct(_0x439056,_0x1b494e):_0x439056,_0x1516bc=_0x20eb19['length']-0x1,_0x2e6b6e;_0x1516bc>=0x0;_0x1516bc--)(_0x2e6b6e=_0x20eb19[_0x1516bc])&&(_0x306add=_0x2e6b6e(_0x306add)||_0x306add);return _0x306add;},ae=(_0x2af1dc,_0x19d899)=>(_0x13eb59,_0xb6c6a0)=>_0x19d899(_0x13eb59,_0xb6c6a0,_0x2af1dc);const bt=0x1389;let ve=class extends a[_0x2f2715(0x33d)]{constructor(_0x2d1599,_0x26cd02,_0x26695a,_0x1c8077){const _0x42e66b=_0x2f2715;super(),h(this,_0x42e66b(0x2ab),new Set()),h(this,'_lastPointer',null),(this['_context']=_0x2d1599,this[_0x42e66b(0x3b6)]=_0x26cd02,this['_collabCursorController']=_0x26695a,this[_0x42e66b(0x13e)]=_0x1c8077,this['_init']());}['_init'](){const _0x3de13a=_0x2f2715;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3de13a(0x231)]($['takeUntil'](this[_0x3de13a(0x23a)]),$[_0x3de13a(0x2fd)](_0x56863d=>{const _0x3e4684=_0x3de13a;if(_0x56863d){const _0x2835f3=_0x56863d[_0x3e4684(0x1c3)];return d[_0x3e4684(0x15d)](this['_collabCursorController']['getCollabCursors$'](this[_0x3e4684(0x25c)][_0x3e4684(0x17b)]),this[_0x3e4684(0x13e)][_0x3e4684(0x1dd)])[_0x3e4684(0x231)]($[_0x3e4684(0x31d)](([_0x106b42,_0x41c251])=>{const _0x389e98=new Map();return _0x106b42['forEach']((_0x2dff49,_0x2b3af0)=>{const _0x5a2497=_0x330b;if(_0x2dff49[_0x5a2497(0x360)]===_0x2835f3){const _0x2ba958={..._0x2dff49};_0x2ba958[_0x5a2497(0x244)]=this[_0x5a2497(0x13e)][_0x5a2497(0x146)](_0x2dff49[_0x5a2497(0x244)]),_0x389e98[_0x5a2497(0x2bc)](_0x2b3af0,_0x2ba958);}}),{'skeleton':_0x56863d,'cursors':_0x389e98};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3de13a(0x185)](({skeleton:_0x2ab6f9,cursors:_0x1e516e})=>{const _0x16e9e5=_0x3de13a;this[_0x16e9e5(0x225)](),_0x2ab6f9&&this['_updateCollabCursors'](_0x2ab6f9,_0x1e516e);}),this['_sheetSkeletonManagerService'][_0x3de13a(0x342)][_0x3de13a(0x185)](_0x56e39f=>{const _0x294707=_0x3de13a;if(_0x56e39f==null)return;const {skeleton:_0x5b7dfb}=_0x56e39f,{scene:_0x4276bf}=this[_0x294707(0x25c)];_0x4276bf['onPointerMove$'][_0x294707(0x1a0)](a[_0x294707(0x14c)](_0x44c596=>{const _0x522795=_0x294707;var _0x292e5f,_0x5c1c15;const {offsetX:_0x2699c1,offsetY:_0x3d4748}=_0x44c596,{x:_0x5c0174,y:_0x5a5762}=_0x4276bf[_0x522795(0x1f4)](p[_0x522795(0x2d8)]['FromArray']([_0x2699c1,_0x3d4748])),{scaleX:_0x55a036,scaleY:_0x116a5a}=_0x4276bf[_0x522795(0x2cb)](),_0x124efd=_0x4276bf[_0x522795(0x276)](p[_0x522795(0x34b)][_0x522795(0x36b)]),_0x5a9db4=_0x4276bf['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x522795(0x1c1)]([_0x5c0174,_0x5a5762]),_0x124efd),_0x4e3ea9=_0x5b7dfb['getCellPositionByOffset'](_0x2699c1,_0x3d4748,_0x55a036,_0x116a5a,_0x5a9db4);((_0x292e5f=this['_lastPointer'])==null?void 0x0:_0x292e5f[_0x522795(0x1a6)])===_0x4e3ea9[_0x522795(0x1a6)]&&((_0x5c1c15=this['_lastPointer'])==null?void 0x0:_0x5c1c15['row'])===_0x4e3ea9['row']||this[_0x522795(0x2ab)][_0x522795(0x265)](_0x2ca52a=>{const _0x49548d=_0x522795;_0x2ca52a[_0x49548d(0x255)](_0x4e3ea9);});},0x64));});}[_0x2f2715(0x1f3)](_0x21a189,_0xc9130a){const _0x28f12c=_0x2f2715;var _0x4b98d4;const _0x22222d=(_0x4b98d4=this[_0x28f12c(0x3b6)][_0x28f12c(0x301)]())==null?void 0x0:_0x4b98d4[_0x28f12c(0x3a4)];if(!_0x22222d)return;const _0x4ea929=this[_0x28f12c(0x1a1)]();if(!_0x4ea929)return;this[_0x28f12c(0x2ab)][_0x28f12c(0x265)](_0x4f11a8=>{const _0x4ea821=_0x28f12c;_0x4f11a8[_0x4ea821(0x28a)]();});const {scene:_0x44e340}=_0x4ea929,_0x2eaab9=Et(Array[_0x28f12c(0x2d0)](_0xc9130a[_0x28f12c(0x25e)]()))[_0x28f12c(0x31d)](_0x217dbb=>{const _0x4d9a0a=_0x28f12c,{color:_0x5948a1,range:_0x420ee7,name:_0x9fbc1f,selection:_0x1628b1,sheetID:_0x36e201}=_0x217dbb,{startColumn:_0x3e7957,startRow:_0x38e278,endColumn:_0x24060f,endRow:_0x301fca}=_0x420ee7,_0x287294=X[_0x4d9a0a(0x3b4)](_0x38e278,_0x3e7957,_0x44e340,_0x22222d),_0x1bf916=X[_0x4d9a0a(0x3b4)](_0x301fca,_0x24060f,_0x44e340,_0x22222d),{columnHeaderHeightAndMarginTop:_0x13d019}=_0x22222d,{startX:_0x2561ad,startY:_0x5d4500}=_0x287294,{endX:_0x26a30b,endY:_0x583922}=_0x1bf916,_0x59421f=_0x26a30b-_0x2561ad,_0x574beb=_0x583922-_0x5d4500,_0x5f40f9={'labelPosition':_0x5d4500-_0x13d019>=K?_0x4d9a0a(0x13a):'bottom','sheetID':_0x36e201,'range':_0x420ee7,'color':_0x5948a1,'name':_0x9fbc1f,'selection':_0x1628b1,'left':_0x2561ad,'top':_0x5d4500,'width':_0x59421f,'height':_0x574beb,'evented':!0x1,'zIndex':bt};return new Ae(_0x9fbc1f,_0x5f40f9);});_0x44e340[_0x28f12c(0x1bf)](_0x2eaab9,gt),this[_0x28f12c(0x2ab)]=new Set(_0x2eaab9);}[_0x2f2715(0x225)](){const _0x4f58a1=_0x2f2715;var _0x492976;(_0x492976=this[_0x4f58a1(0x2ab)])==null||_0x492976[_0x4f58a1(0x265)](_0x262d85=>_0x262d85['dispose']());}[_0x2f2715(0x1a1)](){const _0x3bdc58=_0x2f2715;return X[_0x3bdc58(0x399)](this[_0x3bdc58(0x25c)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x2f2715(0x1e2)](X[_0x2f2715(0x197)])),ae(0x2,a[_0x2f2715(0x1e2)](x)),ae(0x3,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1b0)]))],ve);function Et(_0x33ed55){const _0x429b4c=_0x2f2715,_0xb627e6=new Map();return _0x33ed55['forEach'](_0x8d7a32=>{const _0x402fed=_0x330b;if(_0xb627e6[_0x402fed(0x156)](_0x8d7a32[_0x402fed(0x24b)])){const _0x493671=_0xb627e6[_0x402fed(0x2f7)](_0x8d7a32[_0x402fed(0x24b)]);_0x493671[_0x402fed(0x3bc)]+=',\x20'+_0x8d7a32[_0x402fed(0x3bc)];}else _0xb627e6[_0x402fed(0x2bc)](_0x8d7a32[_0x402fed(0x24b)],_0x8d7a32);}),Array[_0x429b4c(0x2d0)](_0xb627e6[_0x429b4c(0x25e)]());}var E=function(){const _0x217426=_0x2f2715;return E=Object[_0x217426(0x358)]||function(_0x2fc60f){const _0x590e5c=_0x217426;for(var _0xc25368,_0x3779d7=0x1,_0x42c95d=arguments['length'];_0x3779d7<_0x42c95d;_0x3779d7++){_0xc25368=arguments[_0x3779d7];for(var _0x504553 in _0xc25368)Object[_0x590e5c(0x1d1)]['hasOwnProperty']['call'](_0xc25368,_0x504553)&&(_0x2fc60f[_0x504553]=_0xc25368[_0x504553]);}return _0x2fc60f;},E[_0x217426(0x2ea)](this,arguments);},Tt=function(_0x415b8a,_0x3212cf){const _0x5d75a1=_0x2f2715;var _0x489233={};for(var _0x16caca in _0x415b8a)Object[_0x5d75a1(0x1d1)][_0x5d75a1(0x30c)][_0x5d75a1(0x39f)](_0x415b8a,_0x16caca)&&_0x3212cf[_0x5d75a1(0x3a1)](_0x16caca)<0x0&&(_0x489233[_0x16caca]=_0x415b8a[_0x16caca]);if(_0x415b8a!=null&&typeof Object['getOwnPropertySymbols']==_0x5d75a1(0x1a3)){for(var _0x42aad2=0x0,_0x16caca=Object['getOwnPropertySymbols'](_0x415b8a);_0x42aad2<_0x16caca[_0x5d75a1(0x159)];_0x42aad2++)_0x3212cf[_0x5d75a1(0x3a1)](_0x16caca[_0x42aad2])<0x0&&Object[_0x5d75a1(0x1d1)][_0x5d75a1(0x32d)][_0x5d75a1(0x39f)](_0x415b8a,_0x16caca[_0x42aad2])&&(_0x489233[_0x16caca[_0x42aad2]]=_0x415b8a[_0x16caca[_0x42aad2]]);}return _0x489233;},pe=M[_0x2f2715(0x268)](function(_0xf55fb7,_0x334719){const _0x5de91c=_0x2f2715;var _0x4bfc14=_0xf55fb7[_0x5de91c(0x339)],_0x4468fa=_0xf55fb7['id'],_0x566cf0=_0xf55fb7[_0x5de91c(0x28f)],_0x231bc8=_0xf55fb7[_0x5de91c(0x2eb)],_0x20180a=Tt(_0xf55fb7,[_0x5de91c(0x339),'id',_0x5de91c(0x28f),_0x5de91c(0x2eb)]),_0x176305=_0x5de91c(0x2ef)['concat'](_0x4468fa,'\x20')['concat'](_0x566cf0||'')['trim'](),_0x373527=M[_0x5de91c(0x340)]('_'[_0x5de91c(0x395)](Dt()));return we(_0x4bfc14,''[_0x5de91c(0x395)](_0x4468fa),{'defIds':_0x4bfc14[_0x5de91c(0x369)],'idSuffix':_0x373527[_0x5de91c(0x1df)]},E({'ref':_0x334719,'className':_0x176305},_0x20180a),_0x231bc8);});function we(_0x50b6e8,_0x330f8d,_0x283e62,_0x2638df,_0xb2b452){const _0x41ea74=_0x2f2715;return M[_0x41ea74(0x29a)](_0x50b6e8[_0x41ea74(0x2a5)],E(E({'key':_0x330f8d},Ot(_0x50b6e8,_0x283e62,_0xb2b452)),_0x2638df),(Rt(_0x50b6e8,_0x283e62)[_0x41ea74(0x316)]||[])[_0x41ea74(0x31d)](function(_0x3e2e99,_0x418cd7){const _0x220293=_0x41ea74;return we(_0x3e2e99,''['concat'](_0x330f8d,'-')[_0x220293(0x395)](_0x50b6e8[_0x220293(0x2a5)],'-')['concat'](_0x418cd7),_0x283e62,void 0x0,_0xb2b452);}));}function Ot(_0x21c52f,_0x657af6,_0x428c8e){const _0xafe8f9=_0x2f2715;var _0x5c21a9=E({},_0x21c52f[_0xafe8f9(0x31f)]);_0x428c8e!=null&&_0x428c8e[_0xafe8f9(0x287)]&&_0x5c21a9['fill']===_0xafe8f9(0x287)&&(_0x5c21a9[_0xafe8f9(0x338)]=_0x428c8e[_0xafe8f9(0x287)]),_0x21c52f['tag']===_0xafe8f9(0x17e)&&_0x5c21a9['id']&&(_0x5c21a9['id']=_0x5c21a9['id']+_0x657af6[_0xafe8f9(0x19d)]),Object[_0xafe8f9(0x1cc)](_0x5c21a9)[_0xafe8f9(0x265)](function(_0x406c50){const _0x573a29=_0xafe8f9;var _0x278dff=_0x406c50[0x0],_0x1c4e07=_0x406c50[0x1];_0x278dff===_0x573a29(0x17e)&&typeof _0x1c4e07=='string'&&(_0x5c21a9[_0x278dff]=_0x1c4e07[_0x573a29(0x165)](/url\(#(.*)\)/,_0x573a29(0x1b2)[_0x573a29(0x395)](_0x657af6[_0x573a29(0x19d)],')')));});var _0x1636e6=_0x657af6[_0xafe8f9(0x369)];return!_0x1636e6||_0x1636e6[_0xafe8f9(0x159)]===0x0||(_0x21c52f[_0xafe8f9(0x2a5)]==='use'&&_0x5c21a9[_0xafe8f9(0x283)]&&(_0x5c21a9['xlink:href']=_0x5c21a9[_0xafe8f9(0x283)]+_0x657af6[_0xafe8f9(0x19d)]),Object[_0xafe8f9(0x1cc)](_0x5c21a9)['forEach'](function(_0x44056d){const _0xe62340=_0xafe8f9;var _0x350984=_0x44056d[0x0],_0x1cfd3d=_0x44056d[0x1];typeof _0x1cfd3d==_0xe62340(0x367)&&(_0x5c21a9[_0x350984]=_0x1cfd3d[_0xe62340(0x165)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x657af6['idSuffix'],')')));})),_0x5c21a9;}function Rt(_0x1909eb,_0x49fe8c){const _0x518fca=_0x2f2715;var _0x322c11,_0x36a7f8=_0x49fe8c['defIds'];return!_0x36a7f8||_0x36a7f8[_0x518fca(0x159)]===0x0?_0x1909eb:_0x1909eb[_0x518fca(0x2a5)]==='defs'&&(!((_0x322c11=_0x1909eb[_0x518fca(0x316)])===null||_0x322c11===void 0x0)&&_0x322c11[_0x518fca(0x159)])?E(E({},_0x1909eb),{'children':_0x1909eb[_0x518fca(0x316)]['map'](function(_0x37ee6f){const _0x1dfd3e=_0x518fca;return typeof _0x37ee6f['attrs']['id']==_0x1dfd3e(0x367)&&_0x36a7f8&&_0x36a7f8['indexOf'](_0x37ee6f['attrs']['id'])>-0x1?E(E({},_0x37ee6f),{'attrs':E(E({},_0x37ee6f[_0x1dfd3e(0x31f)]),{'id':_0x37ee6f[_0x1dfd3e(0x31f)]['id']+_0x49fe8c[_0x1dfd3e(0x19d)]})}):_0x37ee6f;})}):_0x1909eb;}function Dt(){const _0x13486f=_0x2f2715;return Math[_0x13486f(0x321)]()['toString'](0x24)[_0x13486f(0x1fe)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x2f2715(0x243),'attrs':{'fill':'none','viewBox':_0x2f2715(0x1a5),'width':_0x2f2715(0x1aa),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2f2715(0x172)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'stroke':'currentColor','d':_0x2f2715(0x210),'strokeLinecap':'round','strokeLinejoin':_0x2f2715(0x260),'strokeWidth':1.2}}]},{'tag':_0x2f2715(0x3a0),'attrs':{},'children':[{'tag':_0x2f2715(0x2fa),'attrs':{'id':_0x2f2715(0x34f)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'fill':_0x2f2715(0x164),'d':_0x2f2715(0x288)}}]}]}],'defIds':[_0x2f2715(0x34f)]},ye=M[_0x2f2715(0x268)](function(_0x35c63e,_0x160f1c){const _0x46c848=_0x2f2715;return M[_0x46c848(0x29a)](pe,Object['assign']({},_0x35c63e,{'id':_0x46c848(0x280),'ref':_0x160f1c,'icon':Ut}));});ye[_0x2f2715(0x17d)]='OffLineSingle';var Nt={'tag':_0x2f2715(0x243),'attrs':{'fill':_0x2f2715(0x39e),'viewBox':_0x2f2715(0x2a8),'width':_0x2f2715(0x1aa),'height':_0x2f2715(0x1aa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'stroke':_0x2f2715(0x16d),'d':_0x2f2715(0x322),'strokeLinecap':_0x2f2715(0x260),'strokeLinejoin':_0x2f2715(0x260),'strokeWidth':1.2}}]},{'tag':_0x2f2715(0x3a0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2f2715(0x37d)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'fill':_0x2f2715(0x164),'d':_0x2f2715(0x288),'transform':_0x2f2715(0x285)}}]}]}],'defIds':[_0x2f2715(0x37d)]},$e=M[_0x2f2715(0x268)](function(_0x4746af,_0x2e7bb2){const _0x4c840a=_0x2f2715;return M[_0x4c840a(0x29a)](pe,Object[_0x4c840a(0x358)]({},_0x4746af,{'id':_0x4c840a(0x2d2),'ref':_0x2e7bb2,'icon':Nt}));});$e[_0x2f2715(0x17d)]=_0x2f2715(0x351);function Mt(_0x33a9a2){const _0x2618a6=_0x2f2715;switch(_0x33a9a2){case u[_0x2618a6(0x38d)][_0x2618a6(0x1b7)]:return _0x2618a6(0x28b);case u[_0x2618a6(0x38d)]['CONFLICT']:return _0x2618a6(0x167);case u['CollaborationStatus'][_0x2618a6(0x30d)]:return _0x2618a6(0x382);case u[_0x2618a6(0x38d)][_0x2618a6(0x22c)]:return'collabStatus.notCollab';case u[_0x2618a6(0x38d)][_0x2618a6(0x1bd)]:case u[_0x2618a6(0x38d)]['AWAITING_WITH_PENDING']:return _0x2618a6(0x261);case u[_0x2618a6(0x38d)][_0x2618a6(0x2dc)]:case u['CollaborationStatus'][_0x2618a6(0x2e4)]:return'collabStatus.synced';}}function xe(_0x50cd0f){const _0x1d6f1b=_0x2f2715,{status$:_0x518bb9}=_0x50cd0f,_0x38b182=T[_0x1d6f1b(0x16c)](_0x518bb9,u[_0x1d6f1b(0x38d)][_0x1d6f1b(0x22c)]),_0x5ee947=T[_0x1d6f1b(0x15c)](a['LocaleService']),_0x331415=T[_0x1d6f1b(0x15c)](u[_0x1d6f1b(0x153)]),_0x4ba438=_0x38b182!==u[_0x1d6f1b(0x38d)][_0x1d6f1b(0x1b7)],_0x1cd66b=_0x5ee947['t'](Mt(_0x38b182)),_0x27f1ec=_0x4ba438?P[_0x1d6f1b(0x168)]($e,{}):P[_0x1d6f1b(0x168)](ye,{}),_0x249827=M[_0x1d6f1b(0x241)](()=>{_0x4ba438||_0x331415['reconnect']();},[_0x4ba438,_0x331415]);function _0x496d5f(){const _0x19fdbc=_0x1d6f1b;return P['jsxs'](_0x19fdbc(0x361),{'className':_0x19fdbc(0x20f),'onClick':_0x249827,'children':[P[_0x19fdbc(0x168)](_0x19fdbc(0x361),{'className':D['clsx'](_0x19fdbc(0x30e),{'univer-text-green-500':_0x4ba438,'univer-text-red-500':!_0x4ba438}),'children':_0x27f1ec}),P[_0x19fdbc(0x168)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1cd66b})]});}return _0x4ba438?_0x496d5f():P[_0x1d6f1b(0x168)](D[_0x1d6f1b(0x246)],{'title':_0x5ee947['t'](_0x1d6f1b(0x34c)),'children':_0x496d5f()});}var Lt=Object[_0x2f2715(0x3a5)],Pt=(_0x435acb,_0x417f90,_0x3db740,_0x27082b)=>{const _0x46e05d=_0x2f2715;for(var _0x230211=_0x27082b>0x1?void 0x0:_0x27082b?Lt(_0x417f90,_0x3db740):_0x417f90,_0x11e046=_0x435acb[_0x46e05d(0x159)]-0x1,_0x123f9e;_0x11e046>=0x0;_0x11e046--)(_0x123f9e=_0x435acb[_0x11e046])&&(_0x230211=_0x123f9e(_0x230211)||_0x230211);return _0x230211;},V=(_0x2e1c6c,_0xcfbb1)=>(_0x4066fe,_0x1c6acd)=>_0xcfbb1(_0x4066fe,_0x1c6acd,_0x2e1c6c);exports[_0x2f2715(0x30a)]=class extends a['Disposable']{constructor(_0x4c78c9,_0x4fdae2,_0x1f05fa,_0xe584f){const _0x13e415=_0x2f2715;super(),h(this,_0x13e415(0x2c4),new d[(_0x13e415(0x388))](u[_0x13e415(0x38d)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x4c78c9,this['_injector']=_0x4fdae2,this[_0x13e415(0x34e)]=_0x1f05fa,this[_0x13e415(0x23b)]=_0xe584f,this['_initStatusComponent'](),this[_0x13e415(0x23f)]());}[_0x2f2715(0x23f)](){const _0x2bdef8=_0x2f2715;this[_0x2bdef8(0x1d4)](this[_0x2bdef8(0x267)][_0x2bdef8(0x333)][_0x2bdef8(0x231)](d[_0x2bdef8(0x2fd)](()=>{const _0x5247de=_0x2bdef8,_0x1ba417=this[_0x5247de(0x267)][_0x5247de(0x18b)]();return _0x1ba417?this[_0x5247de(0x34e)][_0x5247de(0x373)](_0x1ba417[_0x5247de(0x24d)]()):d['of'](null);}),d[_0x2bdef8(0x2fd)](_0xad1d8e=>_0xad1d8e?_0xad1d8e[_0x2bdef8(0x212)]:d['of'](u[_0x2bdef8(0x38d)][_0x2bdef8(0x22c)])))[_0x2bdef8(0x185)](_0x5360f5=>{const _0x412025=_0x2bdef8;this['_status$'][_0x412025(0x14b)](_0x5360f5);}));}['_initStatusComponent'](){const _0x2369a9=_0x2f2715;this[_0x2369a9(0x1d4)](this[_0x2369a9(0x23b)][_0x2369a9(0x18e)](T[_0x2369a9(0x249)][_0x2369a9(0x2db)],()=>T[_0x2369a9(0x2c5)](At({'status$':this['_status$'][_0x2369a9(0x1b6)]()}),this[_0x2369a9(0x2da)])));}},exports[_0x2f2715(0x30a)]=Pt([V(0x0,a[_0x2f2715(0x383)]),V(0x1,a[_0x2f2715(0x1e2)](a['Injector'])),V(0x2,a['Inject'](u[_0x2f2715(0x2b1)])),V(0x3,T[_0x2f2715(0x330)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x5201c7){const {status$:_0x83a091}=_0x5201c7;return function(){const _0x2caaf4=_0x330b;return P[_0x2caaf4(0x168)](xe,{'status$':_0x83a091});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x5c10f9,_0x308a32,_0x1d62cf,_0x5e7240)=>{const _0x4fb3d4=_0x2f2715;for(var _0x33f513=_0x5e7240>0x1?void 0x0:_0x5e7240?wt(_0x308a32,_0x1d62cf):_0x308a32,_0x17e98a=_0x5c10f9[_0x4fb3d4(0x159)]-0x1,_0x3a75a7;_0x17e98a>=0x0;_0x17e98a--)(_0x3a75a7=_0x5c10f9[_0x17e98a])&&(_0x33f513=_0x3a75a7(_0x33f513)||_0x33f513);return _0x33f513;},y=(_0x5eb68b,_0x51140d)=>(_0x2985a1,_0x1cd30a)=>_0x51140d(_0x2985a1,_0x1cd30a,_0x5eb68b);let q=class extends a['Disposable']{constructor(_0x1bc947,_0x2338ea,_0x1d14b1,_0x25820a,_0x176a77,_0x94cdca){const _0x1be8a0=_0x2f2715;super(),this['_beforeCloseService']=_0x1bc947,this[_0x1be8a0(0x1ce)]=_0x2338ea,this[_0x1be8a0(0x3aa)]=_0x1d14b1,this[_0x1be8a0(0x227)]=_0x25820a,this['_notificationService']=_0x176a77,this['_localeService']=_0x94cdca,this[_0x1be8a0(0x390)](),this[_0x1be8a0(0x386)]();}[_0x2f2715(0x390)](){const _0x283fd4=_0x2f2715;this[_0x283fd4(0x1d4)](this[_0x283fd4(0x370)][_0x283fd4(0x279)](()=>{const _0x57b8e8=_0x283fd4;if(this['_localCacheService'][_0x57b8e8(0x188)][_0x57b8e8(0x1b5)])return this[_0x57b8e8(0x1b1)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2f2715(0x386)](){const _0x1fa67c=_0x2f2715;this[_0x1fa67c(0x1d4)](this[_0x1fa67c(0x3aa)][_0x1fa67c(0x218)]['subscribe'](_0x38793d=>{const _0x3cdadc=_0x1fa67c;_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x337)]&&this['_messageService']['show']({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x289))}),_0x38793d['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x3cdadc(0x227)]['show']({'type':D['MessageType'][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x1d7))}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x3ae)]&&this['_notificationService']['show']({'title':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x309)),'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x284)),'type':_0x3cdadc(0x20e),'duration':0x0}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x3ad)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D['MessageType'][_0x3cdadc(0x2e2)],'content':this[_0x3cdadc(0x1b1)]['t']('collaboration.closeRoom')+'('+_0x38793d[_0x3cdadc(0x346)]+')'}),_0x38793d['id']===u['CollaborationUIEventId'][_0x3cdadc(0x29f)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)]['Warning'],'content':this[_0x3cdadc(0x1b1)]['t'](_0x38793d[_0x3cdadc(0x346)]||'')}),_0x38793d['id']===u['CollaborationUIEventId'][_0x3cdadc(0x275)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D['MessageType'][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t']('session.will-retry')}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x230)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x2e2)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x2d5))}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x2de)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x2e2)],'content':this['_localeService']['t'](_0x3cdadc(0x26f))});}));}};q=yt([y(0x0,T[_0x2f2715(0x39a)]),y(0x1,u[_0x2f2715(0x28e)]),y(0x2,a[_0x2f2715(0x1e2)](u[_0x2f2715(0x183)])),y(0x3,T['IMessageService']),y(0x4,T[_0x2f2715(0x182)]),y(0x5,a['Inject'](a[_0x2f2715(0x27a)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x2f2715(0x14d)](_0x2f2715(0x1bc));var xt=Object[_0x2f2715(0x3a5)],jt=(_0x555a57,_0x4c98ad,_0x451001,_0x3fd76f)=>{const _0x2bd1c5=_0x2f2715;for(var _0x48354e=_0x3fd76f>0x1?void 0x0:_0x3fd76f?xt(_0x4c98ad,_0x451001):_0x4c98ad,_0x534e49=_0x555a57[_0x2bd1c5(0x159)]-0x1,_0x4c5c44;_0x534e49>=0x0;_0x534e49--)(_0x4c5c44=_0x555a57[_0x534e49])&&(_0x48354e=_0x4c5c44(_0x48354e)||_0x48354e);return _0x48354e;},H=(_0x33acac,_0x3472ca)=>(_0x231003,_0x19de5b)=>_0x3472ca(_0x231003,_0x19de5b,_0x33acac);exports[_0x2f2715(0x140)]=class extends a[_0x2f2715(0x33d)]{constructor(_0x1b5606,_0x5ce56a,_0x21d054,_0x581247,_0x1ba89b){const _0x42f70b=_0x2f2715;super(),this[_0x42f70b(0x2bd)]=_0x1b5606,this[_0x42f70b(0x228)]=_0x5ce56a,this[_0x42f70b(0x19a)]=_0x21d054,this['_dataLoaderService']=_0x581247,_0x1ba89b?_0x1ba89b==null||_0x1ba89b['whenReady']()['then'](()=>this[_0x42f70b(0x1cb)]()):(this['_logService']['debug'](_0x42f70b(0x3a3),_0x42f70b(0x15a)),this[_0x42f70b(0x1cb)]());}async[_0x2f2715(0x1cb)](){const _0x8720ac=_0x2f2715,_0x26bd42=this['_urlService']['getParam']('unit'),_0x36c954=this[_0x8720ac(0x2bd)]['getParam'](_0x8720ac(0x2e7)),_0x5b530b=this['_urlService'][_0x8720ac(0x30f)](_0x8720ac(0x245));if(!_0x26bd42||!_0x36c954){this['_logService'][_0x8720ac(0x15f)](_0x8720ac(0x3a3),_0x8720ac(0x1c5));return;}const _0x4e14b3=await this[_0x8720ac(0x3b7)][_0x8720ac(0x398)](_0x26bd42,Number(_0x36c954),_0x5b530b);_0x4e14b3&&_0x4e14b3 instanceof a['Workbook']&&this[_0x8720ac(0x3a8)](_0x4e14b3);}async[_0x2f2715(0x3a8)](_0x2285f2){const _0x5b3527=_0x2f2715;await this['_updateSubUnitFromURLParams'](_0x2285f2),_0x2285f2[_0x5b3527(0x204)][_0x5b3527(0x231)](d['takeUntil'](this[_0x5b3527(0x23a)]))[_0x5b3527(0x185)](_0xfe47b=>{const _0x5a5800=_0x5b3527;_0xfe47b&&this[_0x5a5800(0x38e)](_0xfe47b);}),this[_0x5b3527(0x2bd)][_0x5b3527(0x27c)][_0x5b3527(0x231)](d[_0x5b3527(0x378)](this['dispose$']))[_0x5b3527(0x185)](()=>this['_updateSubUnitFromURLParams'](_0x2285f2));}[_0x2f2715(0x38e)](_0x376d52,_0x4f89a1=!0x1){const _0x4c8a2b=_0x2f2715,_0xa3a1c4=this[_0x4c8a2b(0x2bd)]['getParam'](_0x4c8a2b(0x245));_0x376d52[_0x4c8a2b(0x36c)]()!==_0xa3a1c4&&this[_0x4c8a2b(0x2bd)][_0x4c8a2b(0x19f)](_0x4c8a2b(0x245),_0x376d52[_0x4c8a2b(0x36c)](),_0x4f89a1);}async[_0x2f2715(0x2ed)](_0x136687){const _0x3fa85c=_0x2f2715;var _0x571808;const _0x31c6ae=this[_0x3fa85c(0x2bd)][_0x3fa85c(0x30f)](_0x3fa85c(0x245));if(!_0x31c6ae||!_0x136687[_0x3fa85c(0x2ca)](_0x31c6ae)){const _0x41a952=_0x136687[_0x3fa85c(0x29c)]()[0x0],_0x34950b=_0x136687[_0x3fa85c(0x2ca)](_0x41a952);if(!_0x34950b)return;this[_0x3fa85c(0x38e)](_0x34950b,!0x0),await this[_0x3fa85c(0x19a)][_0x3fa85c(0x2b3)](g[_0x3fa85c(0x3a7)]['id'],{'unitId':_0x136687[_0x3fa85c(0x24d)](),'subUnitId':_0x41a952});return;}((_0x571808=_0x136687[_0x3fa85c(0x38b)]())==null?void 0x0:_0x571808[_0x3fa85c(0x36c)]())!==_0x31c6ae&&await this[_0x3fa85c(0x19a)]['executeCommand'](g[_0x3fa85c(0x3a7)]['id'],{'unitId':_0x136687['getUnitId'](),'subUnitId':_0x31c6ae});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x2f2715(0x35b)]),H(0x3,a['Inject'](u[_0x2f2715(0x1a4)])),H(0x4,a[_0x2f2715(0x363)](Ke[_0x2f2715(0x292)]))],exports[_0x2f2715(0x140)]);var Bt=Object[_0x2f2715(0x3a5)],kt=(_0x4c5520,_0x5419c4,_0x2f356f,_0xb1e3fb)=>{const _0x4017db=_0x2f2715;for(var _0x5c0d64=_0xb1e3fb>0x1?void 0x0:_0xb1e3fb?Bt(_0x5419c4,_0x2f356f):_0x5419c4,_0x34fed4=_0x4c5520[_0x4017db(0x159)]-0x1,_0x1c77c7;_0x34fed4>=0x0;_0x34fed4--)(_0x1c77c7=_0x4c5520[_0x34fed4])&&(_0x5c0d64=_0x1c77c7(_0x5c0d64)||_0x5c0d64);return _0x5c0d64;},ce=(_0x3ae0c6,_0x3fe913)=>(_0x2bc769,_0x454a08)=>_0x3fe913(_0x2bc769,_0x454a08,_0x3ae0c6);let z=class{constructor(_0x354000,_0x5f37fb,_0x1a9b22){const _0x39848b=_0x2f2715;this[_0x39848b(0x2da)]=_0x354000,this[_0x39848b(0x20a)]=_0x5f37fb,this[_0x39848b(0x27f)]=_0x1a9b22;}[_0x2f2715(0x1f0)](_0x112324){const _0x83c91e=_0x2f2715;this['_transformUndoRedoStack'](_0x112324),this[_0x83c91e(0x3b0)](_0x112324);}[_0x2f2715(0x142)](_0x32cbf8){const _0x517eba=_0x2f2715,{unitID:_0x2ef21d}=_0x32cbf8,_0x149562=this['_renderManagerService']['getRenderById'](_0x2ef21d)[_0x517eba(0x384)](b[_0x517eba(0x173)]),{redoCache:_0x188584}=_0x149562[_0x517eba(0x235)]();if(_0x188584['length']===0x0)return _0x32cbf8;let _0x451c10=a[_0x517eba(0x196)][_0x517eba(0x1e8)](_0x32cbf8[_0x517eba(0x3ba)][0x0]);for(let _0x557c60=0x0;_0x557c60<_0x188584[_0x517eba(0x159)];_0x557c60++){const _0x117efc={'id':'doc.mutation.rich-text-editing','params':{..._0x188584[_0x557c60]}},_0x57818e=this[_0x517eba(0x20a)][_0x517eba(0x20b)](_0x451c10,_0x117efc,!0x1);if(m['isTransformMutationFailure'](_0x57818e))throw _0x57818e['error'];_0x451c10=_0x57818e[_0x517eba(0x310)];}return{...a[_0x517eba(0x196)][_0x517eba(0x1e8)](_0x32cbf8),'mutations':[_0x451c10]};}[_0x2f2715(0x17f)](_0x20854b){const _0x117cf2=_0x2f2715,{unitID:_0x5a591f}=_0x20854b,_0x331691=this[_0x117cf2(0x27f)][_0x117cf2(0x332)](_0x5a591f)[_0x117cf2(0x384)](b[_0x117cf2(0x173)]),{undoCache:_0x14f4ef,redoCache:_0x569c5f}=_0x331691[_0x117cf2(0x235)]();if(_0x14f4ef[_0x117cf2(0x159)]===0x0||_0x569c5f[_0x117cf2(0x159)]===0x0)return;const _0x596a32=[],_0x5ed73e=[];let _0x4626dd=a[_0x117cf2(0x196)][_0x117cf2(0x1e8)](_0x20854b[_0x117cf2(0x3ba)][0x0]),_0x222345=a['Tools'][_0x117cf2(0x1e8)](_0x20854b[_0x117cf2(0x3ba)][0x0]);for(let _0x307b3a=_0x14f4ef[_0x117cf2(0x159)]-0x1;_0x307b3a>=0x0;_0x307b3a--){const _0xe64ea6={'id':_0x117cf2(0x184),'params':{..._0x14f4ef[_0x307b3a]}},_0x530ff3={'id':_0x117cf2(0x184),'params':{..._0x569c5f[_0x307b3a]}},_0x12d742=this[_0x117cf2(0x20a)]['transformMutation'](_0x4626dd,_0xe64ea6,!0x1),_0x2d581c=this['_transformService']['transformMutation'](_0x222345,_0x530ff3,!0x1);if(m[_0x117cf2(0x1fc)](_0x12d742))throw _0x12d742[_0x117cf2(0x20e)];if(m[_0x117cf2(0x1fc)](_0x2d581c))throw _0x2d581c[_0x117cf2(0x20e)];_0x596a32['unshift'](_0x12d742[_0x117cf2(0x13c)][_0x117cf2(0x203)]),_0x5ed73e[_0x117cf2(0x1e7)](_0x2d581c[_0x117cf2(0x13c)][_0x117cf2(0x203)]),_0x4626dd=_0x12d742[_0x117cf2(0x310)],_0x222345=_0x2d581c[_0x117cf2(0x310)];}_0x331691[_0x117cf2(0x362)]({'undoCache':_0x596a32,'redoCache':_0x5ed73e});}['_transformPreviousActiveRange'](_0x35b82c){const _0x15c515=_0x2f2715,{unitID:_0x3f121c}=_0x35b82c,_0x1913ba=this[_0x15c515(0x27f)]['getRenderById'](_0x3f121c)[_0x15c515(0x384)](b[_0x15c515(0x173)]),_0x11cdc9=_0x1913ba[_0x15c515(0x21c)]();if(_0x11cdc9==null)return;const _0x35a88f=[{'id':_0x15c515(0x184),'params':{'unitId':_0x35b82c[_0x15c515(0x3bb)],'actions':null,'textRanges':[_0x11cdc9]}}],_0x22b92c=this[_0x15c515(0x20a)][_0x15c515(0x335)](_0x35b82c,_0x35a88f);if(!m[_0x15c515(0x298)](_0x22b92c))throw _0x22b92c['error'];const _0x101982=_0x22b92c[_0x15c515(0x13c)][0x0][_0x15c515(0x203)][_0x15c515(0x353)];Array[_0x15c515(0x2a2)](_0x101982)&&_0x101982[_0x15c515(0x159)]&&_0x1913ba['setActiveRange'](_0x101982[0x0]);}};z=kt([ce(0x0,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),ce(0x1,m[_0x2f2715(0x2f3)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x2f2715(0x3a5)],Ft=(_0x27729d,_0xc765d1,_0x59af37,_0x1279c1)=>{for(var _0x364bee=_0x1279c1>0x1?void 0x0:_0x1279c1?Ht(_0xc765d1,_0x59af37):_0xc765d1,_0x4287a3=_0x27729d['length']-0x1,_0x23b607;_0x4287a3>=0x0;_0x4287a3--)(_0x23b607=_0x27729d[_0x4287a3])&&(_0x364bee=_0x23b607(_0x364bee)||_0x364bee);return _0x364bee;},le=(_0x105c27,_0x494209)=>(_0x588ea4,_0x42ea62)=>_0x494209(_0x588ea4,_0x42ea62,_0x105c27);let J=class{constructor(_0x474a64,_0x36a8c4,_0x29f6fa){const _0xeda651=_0x2f2715;this[_0xeda651(0x2da)]=_0x474a64,this[_0xeda651(0x20a)]=_0x36a8c4,this[_0xeda651(0x1e5)]=_0x29f6fa;}[_0x2f2715(0x37a)](_0x54478d){const _0x4a37ba=_0x2f2715;this[_0x4a37ba(0x144)](_0x54478d);}[_0x2f2715(0x142)](_0x200f56){const _0x40849c=_0x2f2715,{unitID:_0x1f49ad}=_0x200f56,{collaboration:_0x496edf}=this[_0x40849c(0x1e5)][_0x40849c(0x234)](_0x1f49ad);if(_0x496edf['length']===0x0)return _0x200f56;let _0x16069a=a[_0x40849c(0x196)][_0x40849c(0x1e8)](_0x200f56[_0x40849c(0x3ba)][0x0]);for(let _0x4eca1c=0x0;_0x4eca1c<_0x496edf[_0x40849c(0x159)];_0x4eca1c++){const _0x26afcc={'id':_0x40849c(0x184),'params':{'unitId':_0x496edf[_0x4eca1c][_0x40849c(0x17b)],..._0x496edf[_0x4eca1c][_0x40849c(0x2d6)]}},_0x23bda4=this[_0x40849c(0x20a)]['transformMutation'](_0x16069a,_0x26afcc,!0x1);if(m['isTransformMutationFailure'](_0x23bda4))throw _0x23bda4['error'];_0x16069a=_0x23bda4[_0x40849c(0x310)];}return{...a['Tools']['deepClone'](_0x200f56),'mutations':[_0x16069a]};}[_0x2f2715(0x144)](_0x12ba99){const _0x23eb99=_0x2f2715,{unitID:_0x35fa6a}=_0x12ba99,{history:_0x50087b,collaboration:_0x133bc1}=this[_0x23eb99(0x1e5)][_0x23eb99(0x234)](_0x35fa6a);if(_0x50087b[_0x23eb99(0x159)]===0x0&&_0x133bc1[_0x23eb99(0x159)]===0x0)return;const _0x3fb6ec=[],_0x14b928=[];let _0x224892=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]),_0x10e5e4=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]);for(let _0x514751=_0x50087b[_0x23eb99(0x159)]-0x1;_0x514751>=0x0;_0x514751--){const _0x512370={'id':_0x23eb99(0x184),'params':{'unitId':_0x50087b[_0x514751][_0x23eb99(0x17b)],..._0x50087b[_0x514751][_0x23eb99(0x1f7)]}},_0x282671={'id':_0x23eb99(0x184),'params':{'unitId':_0x50087b[_0x514751]['unitId'],..._0x50087b[_0x514751]['redoState']}},_0x4e2a78=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x224892,_0x512370,!0x1),_0x4b928b=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x10e5e4,_0x282671,!0x1);if(m[_0x23eb99(0x1fc)](_0x4e2a78))throw _0x4e2a78[_0x23eb99(0x20e)];if(m[_0x23eb99(0x1fc)](_0x4b928b))throw _0x4b928b[_0x23eb99(0x20e)];_0x3fb6ec['unshift']({..._0x50087b[_0x514751],'undoState':_0x4e2a78[_0x23eb99(0x13c)][_0x23eb99(0x203)],'redoState':_0x4b928b[_0x23eb99(0x13c)]['params']}),_0x224892=_0x4e2a78['m1Prime'],_0x10e5e4=_0x4b928b[_0x23eb99(0x310)];}_0x224892=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]),_0x10e5e4=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]);for(let _0x3944e3=_0x133bc1[_0x23eb99(0x159)]-0x1;_0x3944e3>=0x0;_0x3944e3--){const _0x3e0862={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133bc1[_0x3944e3]['unitId'],..._0x133bc1[_0x3944e3][_0x23eb99(0x1f7)]}},_0x5051a0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133bc1[_0x3944e3][_0x23eb99(0x17b)],..._0x133bc1[_0x3944e3]['redoState']}},_0x454eb3=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x224892,_0x3e0862,!0x1),_0x58eb0d=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x10e5e4,_0x5051a0,!0x1);if(m[_0x23eb99(0x1fc)](_0x454eb3))throw _0x454eb3[_0x23eb99(0x20e)];if(m['isTransformMutationFailure'](_0x58eb0d))throw _0x58eb0d[_0x23eb99(0x20e)];_0x14b928[_0x23eb99(0x1e7)]({..._0x133bc1[_0x3944e3],'undoState':_0x454eb3['m2Prime'][_0x23eb99(0x203)],'redoState':_0x58eb0d[_0x23eb99(0x13c)]['params']}),_0x224892=_0x454eb3[_0x23eb99(0x310)],_0x10e5e4=_0x58eb0d[_0x23eb99(0x310)];}this[_0x23eb99(0x1e5)][_0x23eb99(0x393)](_0x35fa6a,{'history':_0x3fb6ec,'collaboration':_0x14b928});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x2f2715(0x2f3)]),le(0x2,a[_0x2f2715(0x1e2)](b[_0x2f2715(0x37b)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x521992,_0x368053,_0xdd8e3e,_0xdfbd22)=>{const _0x54edd8=_0x2f2715;for(var _0x2d7f00=_0xdfbd22>0x1?void 0x0:_0xdfbd22?Yt(_0x368053,_0xdd8e3e):_0x368053,_0x3e4845=_0x521992[_0x54edd8(0x159)]-0x1,_0xaedf8f;_0x3e4845>=0x0;_0x3e4845--)(_0xaedf8f=_0x521992[_0x3e4845])&&(_0x2d7f00=_0xaedf8f(_0x2d7f00)||_0x2d7f00);return _0x2d7f00;},Ne=(_0x432dc2,_0x185368)=>(_0x9b1f1f,_0x37731c)=>_0x185368(_0x9b1f1f,_0x37731c,_0x432dc2);let Z=class{constructor(_0x28e949,_0x4dd7de){const _0x4d0a99=_0x2f2715;this[_0x4d0a99(0x2da)]=_0x28e949,this[_0x4d0a99(0x20a)]=_0x4dd7de;}['transformSelections'](_0x526ece){const _0x19c903=_0x2f2715;var _0x5a8ae6;const _0x5bccb0=this[_0x19c903(0x2da)][_0x19c903(0x2f7)](Y[_0x19c903(0x166)]),_0x492626=(_0x5a8ae6=_0x5bccb0['getDocRanges']())!=null?_0x5a8ae6:[];if(_0x492626[_0x19c903(0x159)]===0x0)return;const _0x41e977=_0x526ece[_0x19c903(0x3bb)],_0x179248=[{'id':_0x19c903(0x184),'params':{'unitId':_0x41e977,'actions':null,'textRanges':_0x492626}}],_0x56f1bb=this[_0x19c903(0x20a)]['transformMutationsWithChangeset'](_0x526ece,_0x179248);if(!m[_0x19c903(0x298)](_0x56f1bb))throw _0x56f1bb[_0x19c903(0x20e)];const _0x2c291f=_0x56f1bb[_0x19c903(0x13c)][0x0][_0x19c903(0x203)][_0x19c903(0x353)];Array['isArray'](_0x2c291f)&&_0x2c291f[_0x19c903(0x159)]&&_0x5bccb0[_0x19c903(0x199)](_0x2c291f,{'unitId':_0x41e977,'subUnitId':_0x41e977},!0x1);}};Z=Wt([Ne(0x0,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),Ne(0x1,m[_0x2f2715(0x2f3)])],Z);var Vt=Object[_0x2f2715(0x3a5)],Xt=(_0x51c854,_0x3767e9,_0x48f928,_0x329f7f)=>{for(var _0x4e8159=_0x329f7f>0x1?void 0x0:_0x329f7f?Vt(_0x3767e9,_0x48f928):_0x3767e9,_0x177261=_0x51c854['length']-0x1,_0x8a354f;_0x177261>=0x0;_0x177261--)(_0x8a354f=_0x51c854[_0x177261])&&(_0x4e8159=_0x8a354f(_0x4e8159)||_0x4e8159);return _0x4e8159;},N=(_0x4523ce,_0xe69fef)=>(_0x4e11cd,_0x49ac98)=>_0xe69fef(_0x4e11cd,_0x49ac98,_0x4523ce);let Q=class extends a[_0x2f2715(0x24a)]{constructor(_0x1bc551,_0x3ab078,_0x4cf04a,_0x52e6cc,_0x1a3812,_0x4c2502,_0x327415,_0x2bacd7){const _0x241bd9=_0x2f2715;super(),h(this,_0x241bd9(0x2c4),new d[(_0x241bd9(0x388))](u[_0x241bd9(0x38d)][_0x241bd9(0x22c)])),(this[_0x241bd9(0x1e5)]=_0x1bc551,this[_0x241bd9(0x34e)]=_0x3ab078,this['_docTransformIMECacheService']=_0x4cf04a,this[_0x241bd9(0x25d)]=_0x52e6cc,this[_0x241bd9(0x2df)]=_0x1a3812,this[_0x241bd9(0x14e)]=_0x4c2502,this['_messageService']=_0x327415,this['_localeService']=_0x2bacd7,this[_0x241bd9(0x2f5)]());}[_0x2f2715(0x2f5)](){const _0x3ff1ec=_0x2f2715;this[_0x3ff1ec(0x1d4)](this[_0x3ff1ec(0x34e)][_0x3ff1ec(0x181)][_0x3ff1ec(0x185)](_0x2a1284=>{const _0x3ab59e=_0x3ff1ec,_0x285bdb=this[_0x3ab59e(0x1e5)][_0x3ab59e(0x28d)][_0x3ab59e(0x185)](_0x43196d=>{const _0x526ead=_0x3ab59e;if(_0x43196d==null)return;const {unitId:_0x44eeb4,redoState:_0x20ab38,commandId:_0x578954}=_0x43196d;if(_0x44eeb4!==_0x2a1284[_0x526ead(0x3bb)])return;const _0x31b97a={'id':_0x578954,'type':a['CommandType'][_0x526ead(0x387)],'params':{'unitId':_0x44eeb4,'actions':_0x20ab38[_0x526ead(0x2e3)],'textRanges':null}};_0x2a1284[_0x526ead(0x1f9)](_0x31b97a);});if(_0x2a1284[_0x3ab59e(0x1d4)](_0x285bdb),_0x2a1284 instanceof u['DocCollaborationEntity']){const _0x230acc={'onTransformIME':_0x23e3a5=>this['_docTransformIMECacheService'][_0x3ab59e(0x1f0)](_0x23e3a5),'onTransformState':_0x3e43f0=>this['_docTransformStateCacheService'][_0x3ab59e(0x37a)](_0x3e43f0),'onTransformSelections':_0x869ce1=>this[_0x3ab59e(0x2df)][_0x3ab59e(0x216)](_0x869ce1),'onSyncEditingCollabCursor':_0x3065a4=>this[_0x3ab59e(0x14e)][_0x3ab59e(0x3b8)](_0x3065a4),'onTransformRemoteChangesetByIMECache':_0x25345f=>this[_0x3ab59e(0x15b)]['transformRemoteChangeset'](_0x25345f),'onTransformRemoteChangesetByStateCache':_0x3fc8b1=>this[_0x3ab59e(0x25d)][_0x3ab59e(0x142)](_0x3fc8b1)};_0x2a1284[_0x3ab59e(0x208)](_0x230acc);}}));}};Q=Xt([N(0x0,a[_0x2f2715(0x1e2)](b[_0x2f2715(0x37b)])),N(0x1,a['Inject'](u[_0x2f2715(0x2b1)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x2f2715(0x1e2)](J)),N(0x4,a[_0x2f2715(0x1e2)](Z)),N(0x5,a[_0x2f2715(0x1e2)](Ce)),N(0x6,T[_0x2f2715(0x2a1)]),N(0x7,a['Inject'](a[_0x2f2715(0x27a)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x12add4,_0x54ffd4,_0x1ecce6,_0xafd704)=>{const _0x5300c7=_0x2f2715;for(var _0x4b08ef=_0xafd704>0x1?void 0x0:_0xafd704?Gt(_0x54ffd4,_0x1ecce6):_0x54ffd4,_0x3db48c=_0x12add4[_0x5300c7(0x159)]-0x1,_0x3e8587;_0x3db48c>=0x0;_0x3db48c--)(_0x3e8587=_0x12add4[_0x3db48c])&&(_0x4b08ef=_0x3e8587(_0x4b08ef)||_0x4b08ef);return _0x4b08ef;},_e=(_0x4fad11,_0x43a9b2)=>(_0x2bb669,_0x573bb6)=>_0x43a9b2(_0x2bb669,_0x573bb6,_0x4fad11);let ge=class extends a['Disposable']{constructor(_0x3d45f3,_0x45a2a8,_0x3623fb){const _0x27adbf=_0x2f2715;super(),h(this,_0x27adbf(0x306),new Map()),h(this,_0x27adbf(0x253),new Map()),h(this,_0x27adbf(0x1e4),!0x1),(this[_0x27adbf(0x1f8)]=_0x3d45f3,this[_0x27adbf(0x20c)]=_0x45a2a8,this[_0x27adbf(0x277)]=_0x3623fb);}['disableLocalCache'](){const _0x2edb1c=_0x2f2715;this[_0x2edb1c(0x1e4)]=!0x0;}[_0x2f2715(0x1ca)](){const _0x3f5c94=_0x2f2715;this[_0x3f5c94(0x1e4)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x3a3b14=_0x2f2715;this[_0x3a3b14(0x155)]()[_0x3a3b14(0x206)](()=>super[_0x3a3b14(0x215)]());}async[_0x2f2715(0x308)](_0x31b584){const _0x14e6ef=_0x2f2715;return this[_0x14e6ef(0x1e4)]?null:this['_localStorageService'][_0x14e6ef(0x194)](u[_0x14e6ef(0x250)](_0x31b584));}async[_0x2f2715(0x3a6)](_0x369b97,_0x493ffa){const _0x187eb6=_0x2f2715;return!!this[_0x187eb6(0x20c)]['setItem'](_0x369b97,_0x493ffa);}[_0x2f2715(0x200)](_0x273435,_0xad658f,_0xa0dcd,_0x59084a){const _0x1c35cb=_0x2f2715,_0x3807fd=this[_0x1c35cb(0x277)][_0x1c35cb(0x152)](_0x273435);this[_0x1c35cb(0x306)][_0x1c35cb(0x2bc)](_0x273435,{'unitID':_0x273435,'type':_0xad658f,'awaitingChangeset':_0xa0dcd,'mutations':_0x59084a,'rev':_0x3807fd}),this[_0x1c35cb(0x253)]['has'](_0x273435)||this['_scheduleSaving'](_0x273435);}['_scheduleSaving'](_0x1993a5){const _0x54a7b4=_0x2f2715,_0x473c05=this[_0x54a7b4(0x19b)]();_0x473c05===0x0?this['_saveCache'](_0x1993a5):this[_0x54a7b4(0x253)][_0x54a7b4(0x2bc)](_0x1993a5,setTimeout(()=>this['_saveCache'](_0x1993a5),_0x473c05));}['_getSaveTimeout'](){const _0x224219=_0x2f2715;var _0x5ad7e9;return(_0x5ad7e9=this[_0x224219(0x1f8)]['getConfig'](u[_0x224219(0x251)]))!=null?_0x5ad7e9:u['LOCAL_CACHE_INTERVAL'];}[_0x2f2715(0x18a)](_0x38214f){const _0x5db4cb=_0x2f2715,_0x5988c1=this[_0x5db4cb(0x253)][_0x5db4cb(0x2f7)](_0x38214f);return _0x5988c1!==void 0x0&&window['clearTimeout'](_0x5988c1),this[_0x5db4cb(0x20c)]['setItem'](u[_0x5db4cb(0x250)](_0x38214f),this[_0x5db4cb(0x306)][_0x5db4cb(0x2f7)](_0x38214f))[_0x5db4cb(0x206)](()=>this[_0x5db4cb(0x253)][_0x5db4cb(0x1e1)](_0x38214f));}async['exhaustSavingTask'](){const _0x19785c=_0x2f2715,_0x425d7b=[];this[_0x19785c(0x253)]['forEach']((_0x1c0633,_0x58b5a0)=>{const _0x346eda=_0x19785c;window[_0x346eda(0x138)](_0x1c0633),_0x425d7b[_0x346eda(0x1f6)](this['_saveCache'](_0x58b5a0)[_0x346eda(0x206)](()=>{const _0x43bcd7=_0x346eda;this[_0x43bcd7(0x253)][_0x43bcd7(0x1e1)](_0x58b5a0);}));}),await Promise[_0x19785c(0x1c6)](_0x425d7b);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x2f2715(0x344)]),_e(0x2,a['Inject'](m['RevisionService']))],ge);class je extends a[_0x2f2715(0x33d)]{constructor(){const _0x2397a5=_0x2f2715;super(),h(this,'urlChange$'),this[_0x2397a5(0x27c)]=d['fromEvent'](window,_0x2397a5(0x3b5))[_0x2397a5(0x231)](d[_0x2397a5(0x378)](this[_0x2397a5(0x23a)]),d[_0x2397a5(0x27b)](0x1),d[_0x2397a5(0x1d6)](void 0x0));}[_0x2f2715(0x19f)](_0x2e4f1a,_0x3b48f4,_0x3a721c=!0x1){const _0x5976e8=_0x2f2715,_0x5d5671=new URL(window[_0x5976e8(0x341)][_0x5976e8(0x2ce)]);_0x5d5671[_0x5976e8(0x326)][_0x5976e8(0x2bc)](_0x2e4f1a,_0x3b48f4),_0x3a721c?window[_0x5976e8(0x1ba)][_0x5976e8(0x385)]('','',_0x5d5671[_0x5976e8(0x1de)]()):window[_0x5976e8(0x1ba)][_0x5976e8(0x23e)]('','',_0x5d5671[_0x5976e8(0x1de)]());}[_0x2f2715(0x16e)](_0x590472,_0x123f62=!0x1){const _0x16571c=_0x2f2715,_0x13380e=new URL(window['location'][_0x16571c(0x2ce)]);_0x13380e[_0x16571c(0x326)][_0x16571c(0x1e1)](_0x590472),_0x123f62?window['history'][_0x16571c(0x385)]('','',_0x13380e['toString']()):window[_0x16571c(0x1ba)][_0x16571c(0x23e)]('','',_0x13380e[_0x16571c(0x1de)]());}['getParam'](_0x1358fc){const _0x2a1d01=_0x2f2715;var _0x50511a;return(_0x50511a=new URL(window[_0x2a1d01(0x341)][_0x2a1d01(0x2ce)])[_0x2a1d01(0x326)]['get'](_0x1358fc))!=null?_0x50511a:void 0x0;}}var qt=Object[_0x2f2715(0x3a2)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x24b014,_0x3f89b4,_0x467784)=>_0x3f89b4 in _0x24b014?qt(_0x24b014,_0x3f89b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467784}):_0x24b014[_0x3f89b4]=_0x467784,Zt=(_0x5cec5c,_0x4a3ef1,_0x44d0b4,_0x34e318)=>{for(var _0x5689f5=_0x34e318>0x1?void 0x0:_0x34e318?zt(_0x4a3ef1,_0x44d0b4):_0x4a3ef1,_0x181ef4=_0x5cec5c['length']-0x1,_0x4d9cb5;_0x181ef4>=0x0;_0x181ef4--)(_0x4d9cb5=_0x5cec5c[_0x181ef4])&&(_0x5689f5=_0x4d9cb5(_0x5689f5)||_0x5689f5);return _0x5689f5;},he=(_0x4e33b1,_0x253128)=>(_0x36afaf,_0x5033d8)=>_0x253128(_0x36afaf,_0x5033d8,_0x4e33b1),Qt=(_0x5d3297,_0x283a36,_0x4d10cd)=>Jt(_0x5d3297,_0x283a36+'',_0x4d10cd);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x2f2715(0x394)]=class extends a['Plugin']{constructor(_0x22ace7=Ue,_0x3271b3,_0x3b8033,_0x2370ea){const _0x84bf68=_0x2f2715;super(),this[_0x84bf68(0x2b2)]=_0x22ace7,this[_0x84bf68(0x27f)]=_0x3271b3,this[_0x84bf68(0x2da)]=_0x3b8033,this[_0x84bf68(0x1f8)]=_0x2370ea;const {..._0x53a73a}=a[_0x84bf68(0x2ff)]({},Ue,this['_config']);this[_0x84bf68(0x1f8)]['setConfig']($t,_0x53a73a);}[_0x2f2715(0x303)](){const _0x34080f=_0x2f2715;this[_0x34080f(0x23d)](),this[_0x34080f(0x190)]();}[_0x2f2715(0x294)](){this['_registerRenderDependencies']();}[_0x2f2715(0x23d)](){const _0x40dbe5=_0x2f2715;var _0x5e5ffb;const _0x5ab4b1=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x40dbe5(0x2ad)]}],[u[_0x40dbe5(0x28e)],{'useClass':ge}],[exports[_0x40dbe5(0x30a)]],[Q],[q],[x],[de],[exports[_0x40dbe5(0x140)]]];a[_0x40dbe5(0x262)](this[_0x40dbe5(0x2da)],a['mergeOverrideWithDependencies'](_0x5ab4b1,(_0x5e5ffb=this[_0x40dbe5(0x2b2)])==null?void 0x0:_0x5e5ffb[_0x40dbe5(0x22d)]));}[_0x2f2715(0x171)](){const _0x5f1e81=_0x2f2715;this[_0x5f1e81(0x1d4)](this['_renderManagerService'][_0x5f1e81(0x36a)](a['UniverInstanceType'][_0x5f1e81(0x223)],[Ie])),this[_0x5f1e81(0x1d4)](this[_0x5f1e81(0x27f)][_0x5f1e81(0x36a)](a[_0x5f1e81(0x17a)][_0x5f1e81(0x3a9)],[ve]));}[_0x2f2715(0x190)](){const _0x1d5555=_0x2f2715;a[_0x1d5555(0x25b)](this[_0x1d5555(0x2da)],[[x],[exports[_0x1d5555(0x30a)]],[Q],[q],[exports[_0x1d5555(0x140)]]]);}},Qt(exports[_0x2f2715(0x394)],_0x2f2715(0x380),es),exports[_0x2f2715(0x394)]=Zt([a['DependentOn'](u[_0x2f2715(0x364)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x2f2715(0x1f1)])),he(0x3,a[_0x2f2715(0x1c0)])],exports[_0x2f2715(0x394)]);var ts=Object[_0x2f2715(0x3a5)],ss=(_0x1bcf21,_0x522539,_0x21d4d0,_0x1793ed)=>{const _0x4633e9=_0x2f2715;for(var _0x5036ca=_0x1793ed>0x1?void 0x0:_0x1793ed?ts(_0x522539,_0x21d4d0):_0x522539,_0xc47c7f=_0x1bcf21[_0x4633e9(0x159)]-0x1,_0x58be70;_0xc47c7f>=0x0;_0xc47c7f--)(_0x58be70=_0x1bcf21[_0xc47c7f])&&(_0x5036ca=_0x58be70(_0x5036ca)||_0x5036ca);return _0x5036ca;},F=(_0x2ff402,_0x5a16d4)=>(_0x544b60,_0x47fa4e)=>_0x5a16d4(_0x544b60,_0x47fa4e,_0x2ff402);exports[_0x2f2715(0x32b)]=class extends u[_0x2f2715(0x396)]{constructor(_0x2846af,_0xf70f6c,_0x56cd49,_0x2bc017,_0xd359ee){super(_0x2846af,_0xf70f6c,_0x56cd49,_0x2bc017,_0xd359ee);}async[_0x2f2715(0x2bb)](_0x2cc491){const _0x4d904d=_0x2f2715,_0x4322d4=await this[_0x4d904d(0x2c1)](),_0x191db4=this[_0x4d904d(0x2cc)](_0x2cc491,_0x4322d4);return this[_0x4d904d(0x38c)](_0x191db4);}[_0x2f2715(0x2cc)](_0x556884,_0x5a4c52){const _0x1584ad=_0x2f2715,_0x170ab6=typeof window>'u'?new URL(_0x556884):new URL(_0x556884,window['location']['origin']);_0x170ab6[_0x1584ad(0x326)]['set'](_0x1584ad(0x174),_0x5a4c52);const _0x2e3414=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1584ad(0x33f)]);return _0x2e3414[_0x1584ad(0x2f7)](_0x1584ad(0x39b))&&_0x170ab6[_0x1584ad(0x326)]['set'](_0x1584ad(0x39b),_0x2e3414[_0x1584ad(0x2f7)](_0x1584ad(0x39b))),_0x170ab6[_0x1584ad(0x1de)]();}async[_0x2f2715(0x2c1)](){const _0x251875=_0x2f2715;var _0x5775df,_0x2f544f,_0x1692e5;const _0x1cd57c=this[_0x251875(0x1f8)][_0x251875(0x3af)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x24af8f=(_0x5775df=_0x1cd57c==null?void 0x0:_0x1cd57c['wsSessionTicketUrl'])!=null?_0x5775df:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x1692e5=(_0x2f544f=(await this[_0x251875(0x3b3)][_0x251875(0x2f7)](_0x24af8f,{'headers':{'Content-Type':_0x251875(0x3ac)}}))['body'])==null?void 0x0:_0x2f544f['ticket'])!=null?_0x1692e5:'';}},exports[_0x2f2715(0x32b)]=ss([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x2f2715(0x1e2)](G[_0x2f2715(0x21e)])),F(0x2,a[_0x2f2715(0x1c0)]),F(0x3,a['ILogService']),F(0x4,m[_0x2f2715(0x323)])],exports[_0x2f2715(0x32b)]);const Me=0x7530,Le=_0x2f2715(0x242);function _0xdf25(){const _0x2cc6c9=['_name','Rect','handleInsertCol','WebURLService','_handleHover','session.collaboration-timeout','invokeId','result','YUUMI_ALL_TABLES_IS_INVALID','_initResize','handleIRemoveRow','SOCKET_FAILED_RETRY','getViewport','_revisionService','getTypeOfUnitAdded$','registerBeforeClose','LocaleService','shareReplay','urlChange$','getValue','_range','_renderManagerService','off-line-single','INVITE_CODE_ALREADY_BOUND','rxjs/operators','xlink:href','permission.content','translate(.97)','YUUMI_UNABLE_LOAD_URL','colorChannel1','M0\x200H16V16H0z','collaboration.single-unit.warning','makeDirty','collabStatus.offline','WebBrowserSingleActiveUnitService','docStateChange$','ILocalCacheService','className','createInstance','lineTo','IRemoteInstanceService','getTypeOfUnitDisposed$','onRendered','min','APPLY_REVISION_CONFILICT','@univerjs/core','isTransformMutationsWithChangesetSuccess','handleInsertRangeMoveDown','createElement','9YXxlWr','getUnhiddenWorksheets','_docSkeletonManagerService','@univerjs/design','JOIN_ROOM_FAILED','RECT','IMessageService','isArray','serializeRangeWithSheet','key','tag','NOT_FOUND','_handleHeartbeatEvent','0\x200\x2017\x2016','code','addEventListener','_cursors','_send','WebSocketService','toRgbString','1042936TQZBvH','_getAnchorBounding','CollaborationController','_config','executeCommand','split','Shape','show','path','@univerjs/sheets-ui','runRefRangeMutations','SessionStatus','createSocket','set','_urlService','ENSURE_SNAPSHOT_EXECUTION','backgroundColor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getSessionTicket','#FFF','evenodd','_status$','connectInjector','_anchorDot','throttleTime','_cursor','green.600','getSheetBySheetId','getAncestorScale','_createSocketURL','arc','href','SheetCollabCursorShape','from','CONNECTOR_DATA_TOO_LARGE','on-line-single','getDocRanges','LOGIN_FAILED','session.connection-failed','redoState','SetSelectionsOperation','Vector2','_assignedColors','_injector','HEADER_MENU','SYNCED','@univerjs/network','SUBMIT_CHANGESET_TIMEOUT','_docTransformSelectionsService','stringify','EMAIL_HAS_BEEN_BOUND','Error','actions','PENDING','CollaborationUIEventId','@univerjs/ui','type','assignAColorForMemberID','getCurrentSelections','apply','extend','onCommandExecuted','_updateSubUnitFromURLParams','USERS_LEAVE','univerjs-icon\x20univerjs-icon-','resize','@univerjs/sheets','flatMap','ITransformService','width','_initEntityListener','@univerjs-pro/collaboration-client','get','_render','_handleLeaveEvent','clipPath','sessionStatus$','OTHER_CLIENTS_EDITING','switchMap','collab-text-range-','merge','_session','getCurrent','handleInsertRow','onStarting','SNAPSHOT_HAS_BEEN_REMOVED','APPLY_PERMISSION_DENIED','_cachedData','1270calpRA','loadOfflineData','permission.title','DesktopCollaborationStatusDisplayController','YUUMI_NO_CUBOID_FOR_QUESTION','hasOwnProperty','FETCH_MISS','univer-flex\x20univer-mr-2\x20univer-text-xl','getParam','m1Prime','startColumn','restore','post','YUUMI_TABLE_NOT_FOUND_IN_UNIT','imageSourceType','children','_refreshCollabCursors','memberID','unsubscribe','12072gJCiez','measureText','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','map','_selfUnitIDs','attrs','_entityInit$','random','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','ISnapshotServerService','roomMembers$','_memberService','searchParams','getMergeData','drawWith','closePath','executionId','BrowserCollaborationSocketService','RemoveColCommandId','propertyIsEnumerable','_getScale','newValue','IUIPartsService','transformByState','getRenderById','focused$','fillStyle','transformMutationsWithChangeset','UNAUTHENTICATED','OTHER_CLIENT_EDITING','fill','icon','fromEventSubject','findNodePositionByCharIndex','EffectRefRangId','RxDisposable','_colorIndex','search','useRef','location','currentSkeleton$','_toggleOffline','ILocalStorageService','TEXT','data','init','YUUMI_URL_COL_OUT_OF_RANGE','Warning','collabCursorState$','SHEET_VIEWPORT_KEY','collab-client.tooltip.reconnect','handleInsertRangeMoveRight','_collaborationController','off-line-single_clip0_910_343','body','OnLineSingle','TEXT_RANGE_LAYER_INDEX','textRanges','handleIRemoveCol','_imageIoService','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','assign','fillRule','Module','ICommandService','_instanceService','isActive','_draw','DeleteRangeMoveUpCommandId','sheetID','div','setUndoRedoMutationParamsCache','Optional','UniverCollaborationClientPlugin','IImageIoService','MoveRangeCommandId','string','INVITE_CODE_HAS_BEEN_UES','defIds','registerRenderModule','VIEW_MAIN','getSheetId','onPointerLeave$','TOO_MANY_REQUESTS','NO_OTHER_CLIENTS_EDITING','_beforeCloseService','RemoteUniscriptService','getMemberID','getCollabEntity$','LICENSE_IMPORT_SIZE_EXCEEDED','Subject','getSkeleton','InsertRowCommandId','takeUntil','7706jvxAWW','transformStateCache','DocStateChangeManagerService','RichTextEditingMutation','on-line-single_clip0_910_349','YUUMI_ASYNCIO_CANCELLED','setAlpha','pluginName','MOBILE_HAS_BEEN_BOUND','collabStatus.fetchMiss','IUniverInstanceService','with','replaceState','_initEvent','MUTATION','BehaviorSubject','height','UnitStatus','getActiveSheet','_doCreateSocket','CollaborationStatus','_updateURLWithCurrentState','debounceTime','_setupBeforeClosingHandler','_shapes','send','setStateCache','UniverCollaborationClientUIPlugin','concat','CollaborationSocketService','_collabSessionService','loadUnit','getSheetObject','IBeforeCloseService','runId','_updateLocalCursor','@univerjs/engine-formula','none','call','defs','indexOf','defineProperty','[CollaborationDataLoaderController]','skeleton','getOwnPropertyDescriptor','saveOfflineData','SetWorksheetActivateCommand','_setupSubUnitSync','UNIVER_SHEET','_collaborationUIEventService','some','application/json','CONFLICT','PERMISSION_DENIED','getConfig','_transformPreviousActiveRange','SNAPSHOT_INVALID_SNAPSHOT','_syncEditingCollabCursorService','_httpService','getCoordByCell','popstate','_sheetSkeletonManagerService','_dataLoaderService','syncEditingCollabCursor','IURLService','mutations','unitID','name','UNRECOGNIZED','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','top','registerRefRange','m2Prime','collab-text-anchor-','_themeService','1171988xgmFDX','CollaborationDataLoaderController','ONLINE','transformRemoteChangeset','getMember','_transformHistoryAndStateStack','_getMergeRange','getColorFromTheme','source','LICENSE_MAX_UNITS_EXCEEDED','NodePositionConvertToCursor','NodePositionConvertToRectRange','next','debounce','createIdentifier','_docSyncEditingCollabCursorService','includes','_clearOtherTimers','LICENSE_DISTRO_REJECTED','getCurrentRevOfUnit','CollaborationSessionService','COLORS','exhaustSavingTask','has','toDisposable','_drawTextRange','length','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docTransformIMECacheService','useDependency','combineLatest','_unitOnClients','debug','generateRandomId','COMPLETION_FINISHED','red.300','getColor','#fff','replace','DocSelectionManagerService','collabStatus.conflict','jsx','_startSheetCollabCursor','_color','font','useObservable','currentColor','removeParam','11MrMitY','RegularPolygon','_registerRenderDependencies','url(#off-line-single_clip0_910_343)','DocIMEInputManagerService','sessionTicket','DOC_RANGE_TYPE','endRow','_collabCursorState$','deserializeRangeWithSheet','_collabCursorController','UniverInstanceType','unitId','WECHAT_HAS_BEEN_BOUND','displayName','mask','_transformUndoRedoStack','Unknown\x20user','entityInit$','INotificationService','CollaborationUIEventService','doc.mutation.rich-text-editing','subscribe','cursorInfo','roomMembers','saveTaskMap','_onCursorDelete','_saveCache','getFocusedUnit','_drawAnchor','_hovered','registerComponent','parse','_initDependencies','getOffsetConfig','_initCommandExecutedListener','_toggleOnline','getItem','addClipboardHook','Tools','SheetSkeletonManagerService','setItem','replaceDocRanges','_commandService','_getSaveTimeout','_onCursorUpdate','idSuffix','_entities','setParam','subscribeEvent','_getSheetObject','text','function','DataLoaderService','0\x200\x2016\x2016','column','DeleteRangeMoveLeftCommandId','DocSkeletonManagerService','MessageType','1em','[RemoteUniscriptService]:\x20no\x20focused\x20unit','@univerjs/drawing','getUnitStatus$','_handleEvent','cursorInfo$','ThemeService','_localeService','url(#$1','_online','_cursorInfo$','size','asObservable','OFFLINE','setShapeProps','purple.300','history','Failed','uni.network.url-service','AWAITING','runOnServer','addObjects','IConfigService','FromArray','_heartbeatTimer','sheetId','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','all','black','setInterval','APPLY_DUPLICATED','enableLocalCache','_init','entries','_textBubble','_localCacheService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LICENSE_EXPORT_SIZE_EXCEEDED','prototype','_docSkeleton','_scene','disposeWithMe','_eventUnsubscribe','mapTo','collaboration.closeRoom','subUnitId','_onRefRangeChange','_startDocCollabCursor','_backgroundColor','CHANGESET_REVISION_CONFILICT','currentTheme$','toString','current','@univerjs/engine-render','delete','Inject','IDocClipboardService','_disabled','_docStateChangeManagerService','_scheduleClearOtherTimer','unshift','deepClone','getRangePointData','_drawRectRange','rxjs','clearInterval','startRow','_refRangeService','filter','transformIMECache','Injector','transform','_updateCollabCursors','getRelativeToViewportCoord','blue.400','push','undoState','_configService','onLocalMutation','YUUMI_RATE_OVER_LIMIT','_document','isTransformMutationFailure','beginPath','substring','InsertRangeMoveDownCommandId','updateOfflineData','UNDEFINED','USER_NOT_INVITED_CODE','params','activeSheet$','YUUMI_AI_RUN_FAILED','then','addObject','addHandlerCallback','_roomMembers$','_transformService','transformMutation','_localStorageService','INVALID_ARGUMENT','error','univer-flex\x20univer-items-center','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','onTransformChange$','status$','_unitStatus','Rectangle','dispose','transformSelections','_anchor','event$','fromEvent','...','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getActiveRange','APPLY_NON_SEQUENTIAL_REVISION','HTTPService','getCollabCursors$','219LnJfJp','1260231GnWjsN','isEditing','UNIVER_DOC','INVITE_CODE_REQUIRED','_removeCollabCursors','onPointerEnter$','_messageService','_logService','_colorAssignService','_ensureSubject','/run/','NOT_COLLAB','override','startsWith','symbol','SOCKET_FAILED','pipe','storage','save','getStateCache','getUndoRedoMutationParamsCache','INVALID_INVITE_CODE','APPLY_REJECT','toStringTag','add','dispose$','_uiPartsService','CollaborationEvent','_registerDependencies','pushState','_initStatusListener','hide','useCallback','ACTIVE_UNIT_EVENT_CHANNEL','svg','color','subunit','Tooltip','119810fxYBLx','130253zOLffG','BuiltInUIPart','Disposable','selection','_id','getUnitId','MemberService','_removeClearOtherTimer','getLocalCacheKey','LOCAL_CACHE_INTERVAL_KEY','_hover','_saveTaskMap','moveTo','onMouseMove','_cursorShapes','range','_labelPosition','_hideTimer','requireSession','touchDependencies','_context','_docTransformStateCacheService','values','TRANSFORM_CHANGE_OBSERVABLE_TYPE','round','collabStatus.syncing','registerDependencies','fillText','@univerjs/docs-ui','forEach','rgba(255,\x20255,\x20255,\x200.01)','_univerInstanceService','forwardRef','ranges'];_0xdf25=function(){return _0x2cc6c9;};return _0xdf25();}class is extends a[_0x2f2715(0x24a)]{constructor(){const _0x2e261e=_0x2f2715;super(),h(this,_0x2e261e(0x24c),a[_0x2e261e(0x160)]()),h(this,'_selfUnitIDs',new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x2e261e(0x1c2),null),h(this,_0x2e261e(0x150),new Map()),h(this,_0x2e261e(0x213),new Map()),this['_init']();}['dispose'](){const _0xcaf131=_0x2f2715;super['dispose'](),this['_clearOtherTimers'][_0xcaf131(0x265)]((_0x4e297c,_0x3ac5ee)=>this[_0xcaf131(0x24f)](_0x3ac5ee)),this[_0xcaf131(0x1c2)]&&window[_0xcaf131(0x1ec)](this[_0xcaf131(0x1c2)]);}[_0x2f2715(0x1ad)](_0x1c6a24){const _0x11154f=_0x2f2715;return this[_0x11154f(0x22a)](_0x1c6a24)[_0x11154f(0x231)](d['distinctUntilChanged']());}['editingUnit'](_0xb898a2){const _0x54f2aa=_0x2f2715;this[_0x54f2aa(0x31e)][_0x54f2aa(0x1b5)]===0x0&&this['_scheduleHeartbeat'](),this[_0x54f2aa(0x31e)][_0x54f2aa(0x239)](_0xb898a2),this[_0x54f2aa(0x2ac)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xb898a2],'isForwarded':!0x1});}['disposeUnit'](_0x1dc5e3){const _0x204c73=_0x2f2715;this[_0x204c73(0x31e)]['delete'](_0x1dc5e3),this['_selfUnitIDs'][_0x204c73(0x1b5)]===0x0&&this[_0x204c73(0x1c2)]&&window[_0x204c73(0x1ec)](this[_0x204c73(0x1c2)]);}[_0x2f2715(0x1cb)](){const _0x372055=_0x2f2715;this[_0x372055(0x1d4)](a[_0x372055(0x157)](d[_0x372055(0x219)](window,_0x372055(0x232))[_0x372055(0x185)](_0x283032=>{const _0x2a7c32=_0x372055;if(_0x283032[_0x2a7c32(0x2a4)]!==Le||!_0x283032[_0x2a7c32(0x32f)])return;const _0x3e20aa=JSON[_0x2a7c32(0x18f)](_0x283032[_0x2a7c32(0x32f)]);this[_0x2a7c32(0x1ae)](_0x3e20aa);}))),window[_0x372055(0x2aa)]('unload',()=>this[_0x372055(0x2ac)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x372055(0x2d0)](this['_selfUnitIDs'])}));}[_0x2f2715(0x1ae)](_0x2dc3e5){const _0xc20e26=_0x2f2715;switch(_0x2dc3e5['type']){case 0x0:this['_handleJoinEvent'](_0x2dc3e5);break;case 0x1:this[_0xc20e26(0x2f9)](_0x2dc3e5);break;case 0x2:this[_0xc20e26(0x2a7)](_0x2dc3e5);break;}}['_handleJoinEvent'](_0x532e6c){const _0x104e22=_0x2f2715,{unitIDs:_0x39ff93,memberID:_0x5c3221,isForwarded:_0x45f7c9}=_0x532e6c;_0x39ff93[_0x104e22(0x265)](_0x4ae8b8=>{const _0x444931=_0x104e22;if(!_0x45f7c9&&this[_0x444931(0x15e)][_0x444931(0x156)](_0x4ae8b8)&&this[_0x444931(0x22a)](_0x4ae8b8)['next'](u[_0x444931(0x38a)][_0x444931(0x2fc)]),!this['_unitOnClients'][_0x444931(0x156)](_0x4ae8b8)||!this[_0x444931(0x15e)]['get'](_0x4ae8b8)[_0x444931(0x156)](_0x5c3221)){const _0x135306=this[_0x444931(0x15e)][_0x444931(0x2f7)](_0x4ae8b8)||new Set();_0x135306['add'](_0x5c3221),this[_0x444931(0x15e)][_0x444931(0x2bc)](_0x4ae8b8,_0x135306),this['_scheduleClearOtherTimer'](_0x5c3221);}}),_0x45f7c9||this[_0x104e22(0x2ac)]({'type':0x0,'memberID':this[_0x104e22(0x24c)],'unitIDs':[...this[_0x104e22(0x31e)]],'isForwarded':!0x0});}[_0x2f2715(0x1e6)](_0x58b8de){const _0x17afb1=_0x2f2715;this['_removeClearOtherTimer'](_0x58b8de);const _0x1589ce=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x192dec=>{const _0x212102=_0x330b;_0x192dec[_0x212102(0x1e1)](_0x58b8de);});},Me*0x2);this[_0x17afb1(0x150)][_0x17afb1(0x2bc)](_0x58b8de,_0x1589ce);}['_removeClearOtherTimer'](_0x69a7a){const _0x35bd0a=_0x2f2715;if(this[_0x35bd0a(0x150)]['has'](_0x69a7a)){const _0x4f3160=this['_clearOtherTimers']['get'](_0x69a7a);_0x4f3160&&window[_0x35bd0a(0x138)](_0x4f3160),this['_clearOtherTimers'][_0x35bd0a(0x2bc)](_0x69a7a,null);}}[_0x2f2715(0x2f9)](_0x213056){const {memberID:_0x32dd6d,unitIDs:_0x292c59}=_0x213056;_0x292c59['forEach'](_0x5861b0=>{const _0x294147=_0x330b;var _0x31846d;const _0x40a946=this['_unitOnClients']['get'](_0x5861b0);_0x40a946&&(_0x40a946[_0x294147(0x1e1)](_0x32dd6d),(_0x31846d=this[_0x294147(0x22a)](_0x5861b0))==null||_0x31846d['next'](_0x40a946[_0x294147(0x1b5)]===0x0?u[_0x294147(0x38a)][_0x294147(0x36f)]:u['UnitStatus'][_0x294147(0x2fc)]));}),this['_removeClearOtherTimer'](_0x32dd6d);}[_0x2f2715(0x2a7)](_0x4bfe4b){const _0x4d879e=_0x2f2715;this[_0x4d879e(0x1e6)](_0x4bfe4b[_0x4d879e(0x318)]);}['_send'](_0x172e0a){const _0x12ca14=_0x2f2715;localStorage[_0x12ca14(0x198)](Le,JSON[_0x12ca14(0x2e0)](_0x172e0a));}['_scheduleHeartbeat'](){const _0x55f2a0=_0x2f2715;this[_0x55f2a0(0x1c2)]=window[_0x55f2a0(0x1c8)](()=>{const _0x376f36=_0x55f2a0;this[_0x376f36(0x2ac)]({'type':0x2,'memberID':this[_0x376f36(0x24c)]});},Me);}[_0x2f2715(0x22a)](_0x42b2a4){const _0x5e433e=_0x2f2715;return this[_0x5e433e(0x213)]['has'](_0x42b2a4)||this[_0x5e433e(0x213)][_0x5e433e(0x2bc)](_0x42b2a4,new d['BehaviorSubject'](u[_0x5e433e(0x38a)][_0x5e433e(0x36f)])),this[_0x5e433e(0x213)]['get'](_0x42b2a4);}}var Be=(_0x511422=>(_0x511422[_0x511422[_0x2f2715(0x201)]=0x0]=_0x2f2715(0x201),_0x511422[_0x511422['OK']=0x1]='OK',_0x511422[_0x511422['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x511422[_0x511422['PERMISSION_DENIED']=0x3]=_0x2f2715(0x3ae),_0x511422[_0x511422[_0x2f2715(0x2a6)]=0x4]=_0x2f2715(0x2a6),_0x511422[_0x511422['UNAUTHENTICATED']=0x5]=_0x2f2715(0x336),_0x511422[_0x511422['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x511422[_0x511422['INVALID_ARGUMENT']=0x7]=_0x2f2715(0x20d),_0x511422[_0x511422[_0x2f2715(0x36e)]=0x8]=_0x2f2715(0x36e),_0x511422[_0x511422[_0x2f2715(0x161)]=0x9]=_0x2f2715(0x161),_0x511422[_0x511422[_0x2f2715(0x2d4)]=0xa]=_0x2f2715(0x2d4),_0x511422[_0x511422[_0x2f2715(0x1dc)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x511422[_0x511422[_0x2f2715(0x3b1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x511422[_0x511422[_0x2f2715(0x304)]=0x1772]=_0x2f2715(0x304),_0x511422[_0x511422[_0x2f2715(0x2be)]=0x1773]=_0x2f2715(0x2be),_0x511422[_0x511422[_0x2f2715(0x237)]=0x1b59]=_0x2f2715(0x237),_0x511422[_0x511422['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2f2715(0x21d),_0x511422[_0x511422[_0x2f2715(0x296)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x511422[_0x511422[_0x2f2715(0x305)]=0x1b5c]=_0x2f2715(0x305),_0x511422[_0x511422[_0x2f2715(0x1c9)]=0x1b5d]=_0x2f2715(0x1c9),_0x511422[_0x511422[_0x2f2715(0x2d1)]=0x1f41]=_0x2f2715(0x2d1),_0x511422[_0x511422[_0x2f2715(0x148)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x21b)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x374)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x1d0)]=0x232c]=_0x2f2715(0x1d0),_0x511422[_0x511422[_0x2f2715(0x151)]=0x232d]=_0x2f2715(0x151),_0x511422[_0x511422[_0x2f2715(0x286)]=0x2711]=_0x2f2715(0x286),_0x511422[_0x511422['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2f2715(0x348),_0x511422[_0x511422[_0x2f2715(0x1fa)]=0x2713]=_0x2f2715(0x1fa),_0x511422[_0x511422[_0x2f2715(0x356)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x511422[_0x511422[_0x2f2715(0x30b)]=0x271a]=_0x2f2715(0x30b),_0x511422[_0x511422[_0x2f2715(0x37e)]=0x271b]=_0x2f2715(0x37e),_0x511422[_0x511422[_0x2f2715(0x314)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x511422[_0x511422[_0x2f2715(0x272)]=0x271d]=_0x2f2715(0x272),_0x511422[_0x511422[_0x2f2715(0x31c)]=0x271e]=_0x2f2715(0x31c),_0x511422[_0x511422[_0x2f2715(0x205)]=0x271f]=_0x2f2715(0x205),_0x511422[_0x511422[_0x2f2715(0x139)]=0x2af9]=_0x2f2715(0x139),_0x511422[_0x511422[_0x2f2715(0x368)]=0x2ee1]=_0x2f2715(0x368),_0x511422[_0x511422[_0x2f2715(0x236)]=0x2ee2]='INVALID_INVITE_CODE',_0x511422[_0x511422[_0x2f2715(0x224)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x511422[_0x511422['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2f2715(0x202),_0x511422[_0x511422[_0x2f2715(0x281)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x511422[_0x511422[_0x2f2715(0x17c)]=0x32c9]=_0x2f2715(0x17c),_0x511422[_0x511422[_0x2f2715(0x381)]=0x32ca]=_0x2f2715(0x381),_0x511422[_0x511422[_0x2f2715(0x2e1)]=0x32cb]=_0x2f2715(0x2e1),_0x511422[_0x511422['UNRECOGNIZED']=-0x1]=_0x2f2715(0x3bd),_0x511422))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x398041,_0x2cd4e5,_0x17b847,_0x5a6b50)=>{const _0x409376=_0x2f2715;for(var _0x679f0a=_0x5a6b50>0x1?void 0x0:_0x5a6b50?ns(_0x2cd4e5,_0x17b847):_0x2cd4e5,_0x3916c3=_0x398041[_0x409376(0x159)]-0x1,_0x426b10;_0x3916c3>=0x0;_0x3916c3--)(_0x426b10=_0x398041[_0x3916c3])&&(_0x679f0a=_0x426b10(_0x679f0a)||_0x679f0a);return _0x679f0a;},ue=(_0x40a6b9,_0x3cf81c)=>(_0x264f6c,_0x3494f2)=>_0x3cf81c(_0x264f6c,_0x3494f2,_0x40a6b9);exports['RemoteUniscriptService']=class extends a[_0x2f2715(0x24a)]{constructor(_0x12c3f2,_0x2e3b8a,_0x32430f){const _0x23cd1f=_0x2f2715;super(),this['_instanceService']=_0x12c3f2,this[_0x23cd1f(0x3b3)]=_0x2e3b8a,this[_0x23cd1f(0x1f8)]=_0x32430f;}async[_0x2f2715(0x1be)](_0x13a742,_0x533071,_0x1cca6c,..._0x364548){const _0x44c3a2=_0x2f2715;var _0x36d109,_0x5e1bf5,_0x5070ce,_0x3f3927;const _0x13de1f=this[_0x44c3a2(0x35c)][_0x44c3a2(0x18b)]();if(!_0x13de1f)throw new Error(_0x44c3a2(0x1ab));const _0x243a9c=((_0x36d109=this[_0x44c3a2(0x1f8)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x36d109:u[_0x44c3a2(0x1cf)])+'/'+_0x13a742+_0x44c3a2(0x22b)+_0x533071,_0x38d899=new URL(window[_0x44c3a2(0x341)][_0x44c3a2(0x2ce)]),_0x333740={'scriptId':_0x13a742,'runId':(_0x5e1bf5=_0x38d899[_0x44c3a2(0x326)][_0x44c3a2(0x2f7)]('runId'))!=null?_0x5e1bf5:'','function':_0x533071,'unitId':_0x13de1f['getUnitId'](),'argsOfFunction':JSON[_0x44c3a2(0x2e0)](_0x364548),'invokeId':(_0x5070ce=_0x1cca6c[_0x44c3a2(0x270)])!=null?_0x5070ce:'','executionId':(_0x3f3927=_0x1cca6c[_0x44c3a2(0x32a)])!=null?_0x3f3927:''};try{const _0x1370d1=await this[_0x44c3a2(0x3b3)][_0x44c3a2(0x313)](_0x243a9c,{'body':_0x333740});return _0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x20e)]&&_0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x20e)][_0x44c3a2(0x2a9)]!==Be['OK']?_0x44c3a2(0x1bb):_0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x271)];}catch{return _0x44c3a2(0x1bb);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x2f2715(0x383)]),ue(0x1,a[_0x2f2715(0x1e2)](G[_0x2f2715(0x21e)])),ue(0x2,a[_0x2f2715(0x1c0)])],exports[_0x2f2715(0x371)]),exports['CollaborationStatusDisplay']=xe,exports[_0x2f2715(0x3b9)]=be,exports[_0x2f2715(0x2cf)]=Ae,exports[_0x2f2715(0x28c)]=is,exports[_0x2f2715(0x26d)]=je;
1
+ 'use strict';const _0x49408b=_0x224e;(function(_0xab5111,_0x4780b1){const _0x460b93=_0x224e,_0x5b8796=_0xab5111();while(!![]){try{const _0x564a90=-parseInt(_0x460b93(0x24b))/0x1+parseInt(_0x460b93(0x31f))/0x2+-parseInt(_0x460b93(0x1f1))/0x3+parseInt(_0x460b93(0x2ae))/0x4+-parseInt(_0x460b93(0x297))/0x5*(parseInt(_0x460b93(0x344))/0x6)+parseInt(_0x460b93(0xf1))/0x7*(-parseInt(_0x460b93(0x202))/0x8)+-parseInt(_0x460b93(0x189))/0x9*(-parseInt(_0x460b93(0x2a9))/0xa);if(_0x564a90===_0x4780b1)break;else _0x5b8796['push'](_0x5b8796['shift']());}catch(_0x2bb7fe){_0x5b8796['push'](_0x5b8796['shift']());}}}(_0x281e,0x8d4bd));var Ve=Object[_0x49408b(0x241)],Xe=(_0x57953d,_0x5ba6dc,_0x20f072)=>_0x5ba6dc in _0x57953d?Ve(_0x57953d,_0x5ba6dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20f072}):_0x57953d[_0x5ba6dc]=_0x20f072,h=(_0x351ef6,_0x3b3a62,_0x3f9447)=>Xe(_0x351ef6,typeof _0x3b3a62!=_0x49408b(0x23a)?_0x3b3a62+'':_0x3b3a62,_0x3f9447);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x49408b(0x109)),p=require(_0x49408b(0x2b8)),G=require(_0x49408b(0x20f)),b=require(_0x49408b(0x16d)),Ge=require('@univerjs/drawing'),d=require(_0x49408b(0x11e)),Y=require(_0x49408b(0x172)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x49408b(0x119)),g=require(_0x49408b(0x16f)),$=require(_0x49408b(0x302)),X=require(_0x49408b(0x201)),w=require(_0x49408b(0x34f)),T=require('@univerjs/ui'),D=require(_0x49408b(0x1de)),M=require(_0x49408b(0x25f)),Ke=require(_0x49408b(0x2a7));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x2b90f6,_0x2b666b,_0x25ecb8,_0x513921)=>{for(var _0x30c8df=_0x513921>0x1?void 0x0:_0x513921?qe(_0x2b666b,_0x25ecb8):_0x2b666b,_0x4217a6=_0x2b90f6['length']-0x1,_0x2678b8;_0x4217a6>=0x0;_0x4217a6--)(_0x2678b8=_0x2b90f6[_0x4217a6])&&(_0x30c8df=_0x2678b8(_0x30c8df)||_0x30c8df);return _0x30c8df;},Te=(_0x11dd53,_0x2b1d71)=>(_0x19db9f,_0x5edcf9)=>_0x2b1d71(_0x19db9f,_0x5edcf9,_0x11dd53);let de=class extends a[_0x49408b(0x330)]{constructor(_0x57ddf2,_0x57cb55){const _0x39539c=_0x49408b;super(),this[_0x39539c(0x288)]=_0x57ddf2,this[_0x39539c(0x1b5)]=_0x57cb55,this[_0x39539c(0x242)]();}[_0x49408b(0x242)](){const _0x512955=_0x49408b,_0x17eec3=this;this[_0x512955(0x14d)](this[_0x512955(0x288)][_0x512955(0x2f2)]({'onBeforePasteImage':async _0xaf2abe=>{const _0x55c81e=_0x512955,_0x40cd03=await _0x17eec3[_0x55c81e(0x1b5)][_0x55c81e(0x339)](_0xaf2abe);return _0x40cd03?{'source':_0x40cd03[_0x55c81e(0x373)],'imageSourceType':_0x40cd03[_0x55c81e(0x23d)]}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x49408b(0x166),'jiqing.500',_0x49408b(0x12c),_0x49408b(0x1bb),_0x49408b(0x2b6),_0x49408b(0x29d)];class me extends a['Disposable']{constructor(){const _0x3839c3=_0x49408b;super(...arguments),h(this,_0x3839c3(0x165),new Map()),h(this,_0x3839c3(0x369),0x0);}[_0x49408b(0x235)](_0x234d3a){const _0x1358a6=_0x49408b;if(this['_assignedColors'][_0x1358a6(0x1e0)](_0x234d3a))return this['_assignedColors'][_0x1358a6(0x140)](_0x234d3a);const _0x4ed88f=Oe[this['_colorIndex']];return this[_0x1358a6(0x369)]=(this['_colorIndex']+0x1)%Oe[_0x1358a6(0x1b4)],this[_0x1358a6(0x165)][_0x1358a6(0x100)](_0x234d3a,_0x4ed88f),_0x4ed88f;}}function we(_0x4cd8cc){const _0x14ac8a=_0x49408b;let _0xe719b9='';for(const _0xb8aa52 of _0x4cd8cc){const {startOffset:_0xb658e9,endOffset:_0x4d41b8,isActive:_0x406772,rangeType:_0x5c0052,segmentId:_0x28c97f,segmentPage:_0x2bb20c}=_0xb8aa52;_0xe719b9[_0x14ac8a(0x1b4)]&&(_0xe719b9+=','),_0xe719b9+=_0xb658e9+':'+_0x4d41b8+':'+(_0x406772?'1':'0')+':'+_0x5c0052+':'+_0x28c97f+':'+_0x2bb20c;}return _0xe719b9;}function Je(_0x1f6671){const _0x26a6c8=_0x49408b,_0x54dc18=_0x1f6671[_0x26a6c8(0x16c)](','),_0x2abe63=[];for(const _0x41ce75 of _0x54dc18){const [_0x338a6a,_0x16cf66,_0x54318a,_0x29c89f,_0x480a05,_0x4b3f6c]=_0x41ce75[_0x26a6c8(0x16c)](':');_0x2abe63['push']({'startOffset':Number(_0x338a6a),'endOffset':Number(_0x16cf66),'collapsed':_0x338a6a===_0x16cf66,'isActive':_0x54318a==='1','rangeType':_0x29c89f===a[_0x26a6c8(0xee)][_0x26a6c8(0x294)]?a[_0x26a6c8(0xee)][_0x26a6c8(0x294)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x480a05==_0x26a6c8(0x21e)?String(_0x480a05):'','segmentPage':Number(_0x4b3f6c!=null?_0x4b3f6c:-0x1)});}return _0x2abe63[_0x26a6c8(0x19d)](_0x2a0d4c=>_0x2a0d4c[_0x26a6c8(0x358)])||(_0x2abe63[0x0][_0x26a6c8(0x358)]=!0x0),_0x2abe63;}class Ce extends a['RxDisposable']{constructor(){const _0x21cd64=_0x49408b;super(...arguments),h(this,_0x21cd64(0x2e3),new d[(_0x21cd64(0x200))](null)),h(this,'collabCursorState$',this['_collabCursorState$'][_0x21cd64(0x29f)]());}[_0x49408b(0x124)](_0x5d5cb5){const _0x226d75=_0x49408b,{unitID:_0x446520,memberID:_0x47a80b,textRanges:_0x4593c9}=_0x5d5cb5,_0x1d98b2=we(_0x4593c9);if(_0x1d98b2==='')return;const _0x15ca08={'unitID':_0x446520,'memberID':_0x47a80b,'selection':_0x1d98b2};this[_0x226d75(0x2e3)][_0x226d75(0x208)](_0x15ca08);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x2b4ef0,_0x284275,_0x2cae98,_0x2abe3c)=>{for(var _0x33c6ba=_0x2abe3c>0x1?void 0x0:_0x2abe3c?Ze(_0x284275,_0x2cae98):_0x284275,_0x5b02f9=_0x2b4ef0['length']-0x1,_0x337d6a;_0x5b02f9>=0x0;_0x5b02f9--)(_0x337d6a=_0x2b4ef0[_0x5b02f9])&&(_0x33c6ba=_0x337d6a(_0x33c6ba)||_0x33c6ba);return _0x33c6ba;},L=(_0x20568f,_0x2a6bda)=>(_0x327f3e,_0x5da055)=>_0x2a6bda(_0x327f3e,_0x5da055,_0x20568f);const et=0x12c,tt=0x64;let fe=class extends a[_0x49408b(0x330)]{constructor(_0x29a86e,_0x3de340,_0x199b5d,_0x464a01,_0x260020,_0x2ab6f6,_0x1493ee,_0x32aa6d,_0x4bca8f){const _0x48bc6a=_0x49408b;super(),h(this,'_online',!0x1),h(this,_0x48bc6a(0x242),!0x1),h(this,_0x48bc6a(0x1e3),new d[(_0x48bc6a(0x200))](new Map())),h(this,'cursorInfo$',this[_0x48bc6a(0x1e3)][_0x48bc6a(0x29f)]()),h(this,_0x48bc6a(0x145),new d['BehaviorSubject']([])),h(this,_0x48bc6a(0x25e),this['_roomMembers$'][_0x48bc6a(0x2ef)](d['debounceTime'](et))),h(this,_0x48bc6a(0x1cc),a[_0x48bc6a(0x169)](_0x4e0d07=>{const _0x47433f=_0x48bc6a,_0x536733={'eventID':m[_0x47433f(0x157)][_0x47433f(0x219)],'data':{'unitID':this['unitID'],'memberID':this[_0x47433f(0x2d9)][_0x47433f(0x36e)](),'selection':we(_0x4e0d07)}};this[_0x47433f(0x2d9)][_0x47433f(0x135)](_0x536733,this['unitID']);},tt)),(this[_0x48bc6a(0x1ca)]=_0x29a86e,this['_session']=_0x3de340,this[_0x48bc6a(0xf6)]=_0x199b5d,this['_colorAssignService']=_0x464a01,this['_memberService']=_0x260020,this[_0x48bc6a(0x1a9)]=_0x2ab6f6,this['_transformService']=_0x1493ee,this[_0x48bc6a(0x22b)]=_0x32aa6d,this['_commandService']=_0x4bca8f);}get['cursorInfo'](){const _0x39db0b=_0x49408b;return this[_0x39db0b(0x1e3)]['getValue']();}get[_0x49408b(0x185)](){const _0xa0f7ce=_0x49408b;return this[_0xa0f7ce(0x145)]['getValue']();}[_0x49408b(0x2e9)](){const _0x5c785b=_0x49408b;super[_0x5c785b(0x2e9)](),this[_0x5c785b(0x1e3)][_0x5c785b(0x208)](new Map()),this['_cursorInfo$'][_0x5c785b(0x14a)](),this[_0x5c785b(0x145)][_0x5c785b(0x208)]([]),this[_0x5c785b(0x145)][_0x5c785b(0x14a)]();}[_0x49408b(0x263)](){const _0x4390b4=_0x49408b;this[_0x4390b4(0x242)]||(this[_0x4390b4(0x242)]=!0x0,this['_session'][_0x4390b4(0x183)][_0x4390b4(0x2ef)](d[_0x4390b4(0x128)](this[_0x4390b4(0x30e)]))[_0x4390b4(0x2aa)](_0x39f8d4=>{const _0x1d8d21=_0x4390b4;_0x39f8d4===u['SessionStatus'][_0x1d8d21(0x15f)]?this[_0x1d8d21(0x27a)]():this[_0x1d8d21(0x13c)]();}),this[_0x4390b4(0x2d9)][_0x4390b4(0x278)]['pipe'](d[_0x4390b4(0x128)](this[_0x4390b4(0x30e)]))[_0x4390b4(0x2aa)](_0x1f667d=>{const _0x33cdc8=_0x4390b4,_0x5d48dd=_0x1f667d[_0x33cdc8(0x2d0)];_0x5d48dd===m[_0x33cdc8(0x157)]['UPDATE_CURSOR']&&this[_0x33cdc8(0x33e)](_0x1f667d),_0x5d48dd===m[_0x33cdc8(0x157)][_0x33cdc8(0x218)]&&this[_0x33cdc8(0x2ff)](_0x1f667d);}),this[_0x4390b4(0x14d)](this['_commandService']['onCommandExecuted'](_0x14ba57=>{const _0x9bd21d=_0x4390b4,_0x54f7ec=_0x14ba57[_0x9bd21d(0x285)];_0x54f7ec!=null&&this[_0x9bd21d(0x2ed)]&&_0x14ba57['id']===Y[_0x9bd21d(0xef)]['id']&&_0x54f7ec['unitId']===this[_0x9bd21d(0x1ca)]&&_0x54f7ec['isEditing']===!0x1&&_0x54f7ec['ranges'][_0x9bd21d(0x1b4)]>0x0&&this[_0x9bd21d(0x1cc)](_0x54f7ec[_0x9bd21d(0x2af)]);})),this[_0x4390b4(0x1a9)][_0x4390b4(0x245)]['pipe'](d[_0x4390b4(0x128)](this[_0x4390b4(0x30e)]))[_0x4390b4(0x2aa)](_0x3f37b5=>{const _0x4a2eb2=_0x4390b4;if((_0x3f37b5==null?void 0x0:_0x3f37b5[_0x4a2eb2(0x1ca)])!==this[_0x4a2eb2(0x1ca)])return;const _0x3f4893={'eventID':m['CollaborationEvent'][_0x4a2eb2(0x219)],'data':_0x3f37b5};this['_onCursorUpdate'](_0x3f4893);}),this[_0x4390b4(0x14d)](this[_0x4390b4(0x321)][_0x4390b4(0x120)](_0x2cd312=>{const _0x36566f=_0x4390b4;if(_0x2cd312[_0x36566f(0x285)]==null)return;const _0x31d200=_0x2cd312['params'];if(_0x2cd312['id']!==Y[_0x36566f(0x301)]['id']||_0x31d200[_0x36566f(0x2cb)]!==this['unitID'])return;const _0x1bc372={'id':'doc.mutation.rich-text-editing','params':_0x31d200},_0x458183=this[_0x36566f(0x243)];for(const [_0x7b0b14,_0x42af98]of _0x458183){const _0x5aa549={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x36566f(0x1ca)],'actions':null,'textRanges':_0x42af98[_0x36566f(0x2af)]}},_0x27ad7c=this['_transformService']['transformMutation'](_0x1bc372,_0x5aa549,!0x1);if(m[_0x36566f(0x182)](_0x27ad7c))throw _0x27ad7c['error'];_0x458183[_0x36566f(0x100)](_0x7b0b14,{..._0x42af98,'ranges':_0x27ad7c[_0x36566f(0x20d)][_0x36566f(0x285)][_0x36566f(0x20e)]});}queueMicrotask(()=>{const _0x3b61ac=_0x36566f;this[_0x3b61ac(0x1e3)][_0x3b61ac(0x208)](_0x458183);});})));}['_onCursorUpdate'](_0x5ba62d){const _0x599078=_0x49408b;var _0x101f3c,_0x440c0d;const {memberID:_0x271a6e,selection:_0x22418e}=_0x5ba62d[_0x599078(0x146)],_0x269253=Je(_0x22418e),_0x4e0e02=(_0x440c0d=(_0x101f3c=this[_0x599078(0x1fc)][_0x599078(0x1a5)](this[_0x599078(0x1ca)],_0x271a6e))==null?void 0x0:_0x101f3c['name'])!=null?_0x440c0d:'Unknown\x20user',_0x436998={'color':this[_0x599078(0x207)][_0x599078(0x235)](_0x271a6e),'name':_0x4e0e02,'ranges':_0x269253},_0x429b99=this[_0x599078(0x243)];_0x429b99[_0x599078(0x100)](_0x271a6e,_0x436998),this[_0x599078(0x1e3)][_0x599078(0x208)](_0x429b99);}[_0x49408b(0x2ff)](_0x3b4123){const _0x14f30c=_0x49408b,{memberID:_0x4ef101}=_0x3b4123[_0x14f30c(0x146)],_0x6f6828=this[_0x14f30c(0x243)];_0x6f6828[_0x14f30c(0x12b)](_0x4ef101),this['_cursorInfo$'][_0x14f30c(0x208)](_0x6f6828);}[_0x49408b(0x27a)](){const _0x54122a=_0x49408b;var _0x54060f;if(this[_0x54122a(0x2ed)]=!0x0,((_0x54060f=this['_univerInstanceService'][_0x54122a(0x2e8)]())==null?void 0x0:_0x54060f['getUnitId']())!==this['unitID'])return;const _0x619c77=this[_0x54122a(0xf6)][_0x54122a(0x140)](Y['DocSelectionManagerService'])['getDocRanges']();Array['isArray'](_0x619c77)&&_0x619c77[_0x54122a(0x1b4)]>0x0&&this[_0x54122a(0x1cc)](_0x619c77);}[_0x49408b(0x13c)](){const _0x2b919e=_0x49408b;this[_0x2b919e(0x2ed)]=!0x1;}};fe=Qe([L(0x2,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),L(0x3,a[_0x49408b(0x30d)](me)),L(0x4,a[_0x49408b(0x30d)](u[_0x49408b(0x211)])),L(0x5,a[_0x49408b(0x30d)](Ce)),L(0x6,m[_0x49408b(0x349)]),L(0x7,a[_0x49408b(0x213)]),L(0x8,a[_0x49408b(0x26b)])],fe);var st=Object[_0x49408b(0x1d1)],it=(_0xcfc4ac,_0x33b0b1,_0x31f661,_0x37dfb6)=>{const _0x2ae700=_0x49408b;for(var _0x40977b=_0x37dfb6>0x1?void 0x0:_0x37dfb6?st(_0x33b0b1,_0x31f661):_0x33b0b1,_0xd0aa1c=_0xcfc4ac[_0x2ae700(0x1b4)]-0x1,_0x4c8830;_0xd0aa1c>=0x0;_0xd0aa1c--)(_0x4c8830=_0xcfc4ac[_0xd0aa1c])&&(_0x40977b=_0x4c8830(_0x40977b)||_0x40977b);return _0x40977b;},A=(_0x560569,_0x510d15)=>(_0x4d82fc,_0x4db684)=>_0x510d15(_0x4d82fc,_0x4db684,_0x560569);const nt=0x12c,rt=0x64,ot=()=>{let _0x269da8=[],_0x14364e=!0x1;return _0x22ae49=>{const _0x4350f7=_0x224e;_0x269da8[_0x4350f7(0x2f8)](_0x22ae49),_0x14364e||(_0x14364e=!0x0,setTimeout(()=>{const _0x360089=_0x4350f7;_0x269da8[_0x360089(0x150)](_0x59c359=>_0x59c359()),_0x269da8=[],_0x14364e=!0x1;}));};};let Se=class extends a[_0x49408b(0x330)]{constructor(_0x2a5514,_0x194751,_0x36376d,_0x2f3d6d,_0x37af3e,_0x3d6d8a,_0x5e4736,_0x57eb8c){const _0x4e3f90=_0x49408b;super(),h(this,_0x4e3f90(0x2ed),!0x1),h(this,_0x4e3f90(0x242),!0x1),h(this,_0x4e3f90(0x1e3),new d[(_0x4e3f90(0x200))](new Map())),h(this,_0x4e3f90(0x132),this['_cursorInfo$']['asObservable']()),h(this,_0x4e3f90(0x145),new d[(_0x4e3f90(0x200))]([])),h(this,_0x4e3f90(0x25e),this[_0x4e3f90(0x145)]['pipe'](d[_0x4e3f90(0xed)](nt))),h(this,'_updateLocalCursor',a[_0x4e3f90(0x169)]((_0x28da96,_0x24d68b)=>{const _0x19c04e=_0x4e3f90,_0x564e31={'eventID':m[_0x19c04e(0x157)][_0x19c04e(0x219)],'data':{'unitID':this[_0x19c04e(0x1ca)],'memberID':this['_session'][_0x19c04e(0x36e)](),'selection':Ee['serializeRangeWithSheet'](_0x28da96,_0x24d68b[_0x19c04e(0x13e)])}};this[_0x19c04e(0x2d9)][_0x19c04e(0x135)](_0x564e31,this[_0x19c04e(0x1ca)]);},rt)),(this[_0x4e3f90(0x1ca)]=_0x2a5514,this['_session']=_0x194751,this[_0x4e3f90(0xf6)]=_0x36376d,this['_colorAssignService']=_0x2f3d6d,this[_0x4e3f90(0x1fc)]=_0x37af3e,this[_0x4e3f90(0x22b)]=_0x3d6d8a,this[_0x4e3f90(0x321)]=_0x5e4736,this['_refRangeService']=_0x57eb8c);}get['cursorInfo'](){const _0x1ec316=_0x49408b;return this[_0x1ec316(0x1e3)]['getValue']();}get[_0x49408b(0x185)](){const _0x249c4a=_0x49408b;return this[_0x249c4a(0x145)]['getValue']();}[_0x49408b(0x2e9)](){const _0x1130dc=_0x49408b;super[_0x1130dc(0x2e9)](),this[_0x1130dc(0x1e3)]['next'](new Map()),this[_0x1130dc(0x1e3)][_0x1130dc(0x14a)](),this[_0x1130dc(0x145)][_0x1130dc(0x208)]([]),this[_0x1130dc(0x145)][_0x1130dc(0x14a)]();}[_0x49408b(0x263)](){const _0x4c82e1=_0x49408b;this['_init']||(this[_0x4c82e1(0x242)]=!0x0,this['_session'][_0x4c82e1(0x183)][_0x4c82e1(0x2ef)](d[_0x4c82e1(0x128)](this[_0x4c82e1(0x30e)]))[_0x4c82e1(0x2aa)](_0x407c7b=>{const _0x26d695=_0x4c82e1;_0x407c7b===u[_0x26d695(0x2a3)][_0x26d695(0x15f)]?this[_0x26d695(0x27a)]():this[_0x26d695(0x13c)]();}),this[_0x4c82e1(0x2d9)][_0x4c82e1(0x278)][_0x4c82e1(0x2ef)](d[_0x4c82e1(0x128)](this[_0x4c82e1(0x30e)]))[_0x4c82e1(0x2aa)](_0x56fb6f=>{const _0x3a654e=_0x4c82e1,_0x424bff=_0x56fb6f[_0x3a654e(0x2d0)];_0x424bff===m[_0x3a654e(0x157)][_0x3a654e(0x219)]&&this[_0x3a654e(0x33e)](_0x56fb6f),_0x424bff===m[_0x3a654e(0x157)][_0x3a654e(0x218)]&&this[_0x3a654e(0x2ff)](_0x56fb6f);}),this[_0x4c82e1(0x279)](),this[_0x4c82e1(0x14d)](this[_0x4c82e1(0x321)][_0x4c82e1(0x120)](_0x3be3a4=>{const _0x103d05=_0x4c82e1;if(this[_0x103d05(0x2ed)]&&_0x3be3a4['id']===g[_0x103d05(0x32c)]['id']&&_0x3be3a4['params']['unitId']===this['unitID']){const _0x3db2da=_0x3be3a4[_0x103d05(0x285)];this[_0x103d05(0x1cc)](_0x3db2da[_0x103d05(0xf2)],_0x3db2da[_0x103d05(0x1c2)][0x0]);}})));}[_0x49408b(0x33e)](_0x27bb10){const _0x3c3c1f=_0x49408b;var _0x5748c8,_0x4735f2;const {memberID:_0x4d7ea6,selection:_0x3be455}=_0x27bb10['data'],{sheetName:_0x49cce6,range:_0x28a109}=Ee['deserializeRangeWithSheet'](_0x3be455),_0xd275a7={'name':(_0x4735f2=(_0x5748c8=this[_0x3c3c1f(0x1fc)][_0x3c3c1f(0x1a5)](this[_0x3c3c1f(0x1ca)],_0x4d7ea6))==null?void 0x0:_0x5748c8[_0x3c3c1f(0x22d)])!=null?_0x4735f2:_0x3c3c1f(0x221),'range':this['_getMergeRange'](_0x49cce6,_0x28a109),'sheetID':_0x49cce6,'color':this['_colorAssignService'][_0x3c3c1f(0x235)](_0x4d7ea6),'selection':_0x3be455},_0x44996f=this[_0x3c3c1f(0x243)];_0x44996f[_0x3c3c1f(0x100)](_0x4d7ea6,_0xd275a7),this['_cursorInfo$'][_0x3c3c1f(0x208)](_0x44996f);}[_0x49408b(0x2ff)](_0x24d3d6){const _0x52cad5=_0x49408b,{memberID:_0x22fd52}=_0x24d3d6[_0x52cad5(0x146)],_0x5c8d7e=this[_0x52cad5(0x243)];_0x5c8d7e[_0x52cad5(0x12b)](_0x22fd52),this['_cursorInfo$'][_0x52cad5(0x208)](_0x5c8d7e);}[_0x49408b(0x323)](_0x187f7c,_0x4f88b4){const _0x14c655=_0x49408b;var _0x52bf95,_0x4cac81;const _0x3b3c4e=(_0x4cac81=(_0x52bf95=this[_0x14c655(0x22b)]['getUniverSheetInstance'](this[_0x14c655(0x1ca)]))==null?void 0x0:_0x52bf95[_0x14c655(0x1a1)](_0x187f7c))==null?void 0x0:_0x4cac81['getMergeData']();return(_0x3b3c4e==null?void 0x0:_0x3b3c4e[_0x14c655(0x1b9)](_0x13f10d=>a['Rectangle']['contains'](_0x13f10d,_0x4f88b4)))||_0x4f88b4;}[_0x49408b(0x279)](){const _0x417284=_0x49408b,_0x21ee4e=new a[(_0x417284(0x19b))](),_0x4bf44b=ot(),_0x5f4f7e=()=>{const _0x3549be=_0x417284;_0x21ee4e[_0x3549be(0x2e9)]();const _0x569b73=(_0x5c4810,_0x4b8e59,_0x250c93,_0x387877)=>{const _0x4fd409=_0x3549be;let _0x47af79=[];switch(_0x5c4810['id']){case g['EffectRefRangId'][_0x4fd409(0x1cb)]:{_0x47af79=g[_0x4fd409(0x192)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x236)]:{_0x47af79=g['handleDeleteRangeMoveUp'](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x273)]:{_0x47af79=g[_0x4fd409(0x246)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)]['InsertRangeMoveDownCommandId']:{_0x47af79=g[_0x4fd409(0x2f1)](_0x5c4810,_0x387877);break;}case g['EffectRefRangId'][_0x4fd409(0x21c)]:{_0x47af79=g['handleInsertRangeMoveRight'](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x21b)]:{_0x47af79=g[_0x4fd409(0x20b)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)]['MoveRangeCommandId']:{_0x47af79=g[_0x4fd409(0x2e4)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x2d3)]:{_0x47af79=g[_0x4fd409(0x133)](_0x5c4810,_0x387877);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x47af79=g[_0x4fd409(0x216)](_0x5c4810,_0x387877);break;}}const _0x40b7e3=g[_0x4fd409(0x17b)](_0x47af79,_0x387877),_0x416927=this[_0x4fd409(0x243)]['get'](_0x4b8e59);if(_0x416927&&_0x40b7e3){const _0x33685a={..._0x416927,'range':_0x40b7e3};this[_0x4fd409(0x243)][_0x4fd409(0x100)](_0x4b8e59,_0x33685a),_0x4bf44b(()=>{const _0x262633=_0x4fd409,_0x30eecb=this['_refRangeService'][_0x262633(0x255)](_0x40b7e3,_0x4b749e=>(_0x30eecb[_0x262633(0x2e9)](),_0x569b73(_0x4b749e,_0x4b8e59,_0x250c93,_0x40b7e3)));_0x21ee4e['add'](_0x30eecb);});}return{'redos':[],'undos':[]};};this[_0x3549be(0x243)][_0x3549be(0x150)]((_0x562e85,_0x423eaa)=>{const _0x596b75=_0x3549be,{range:_0x5b0e77,sheetID:_0x4f4103}=_0x562e85,_0x82ce56=this[_0x596b75(0x333)][_0x596b75(0x255)](_0x5b0e77,_0x584eab=>(_0x82ce56[_0x596b75(0x2e9)](),_0x569b73(_0x584eab,_0x423eaa,_0x4f4103,_0x5b0e77)));_0x21ee4e[_0x596b75(0x306)](_0x82ce56);});};this[_0x417284(0x14d)](a[_0x417284(0x296)](this[_0x417284(0x1e3)][_0x417284(0x2aa)](()=>{_0x5f4f7e();})));}[_0x49408b(0x27a)](){const _0x47fcd6=_0x49408b;var _0x59327e,_0x564307;if(this[_0x47fcd6(0x2ed)]=!0x0,((_0x59327e=this[_0x47fcd6(0x22b)][_0x47fcd6(0x2e8)]())==null?void 0x0:_0x59327e['getUnitId']())!==this['unitID'])return;const _0x20cb57=(_0x564307=this[_0x47fcd6(0xf6)][_0x47fcd6(0x140)](g[_0x47fcd6(0x2dc)])[_0x47fcd6(0x230)]())==null?void 0x0:_0x564307[0x0],_0x1f47e7=this['_univerInstanceService'][_0x47fcd6(0x30b)](a[_0x47fcd6(0x17f)]['UNIVER_SHEET'])[_0x47fcd6(0x118)]();_0x20cb57&&_0x1f47e7&&this[_0x47fcd6(0x1cc)](_0x1f47e7['getSheetId'](),_0x20cb57);}[_0x49408b(0x13c)](){const _0x4b6501=_0x49408b;this[_0x4b6501(0x2ed)]=!0x1;}};Se=it([A(0x2,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x49408b(0x30d)](u[_0x49408b(0x211)])),A(0x5,a[_0x49408b(0x213)]),A(0x6,a[_0x49408b(0x26b)]),A(0x7,a['Inject'](g['RefRangeService']))],Se);var at=Object[_0x49408b(0x1d1)],ct=(_0x188341,_0x2a83c3,_0x5510b3,_0x294a28)=>{const _0x885311=_0x49408b;for(var _0x31b7aa=_0x294a28>0x1?void 0x0:_0x294a28?at(_0x2a83c3,_0x5510b3):_0x2a83c3,_0x5cdb23=_0x188341[_0x885311(0x1b4)]-0x1,_0x179428;_0x5cdb23>=0x0;_0x5cdb23--)(_0x179428=_0x188341[_0x5cdb23])&&(_0x31b7aa=_0x179428(_0x31b7aa)||_0x31b7aa);return _0x31b7aa;},ie=(_0x3792f8,_0x36b567)=>(_0x2d9e84,_0x2b0a57)=>_0x36b567(_0x2d9e84,_0x2b0a57,_0x3792f8);let x=class extends a[_0x49408b(0x330)]{constructor(_0x544fa5,_0x496037,_0x4bcbb6){const _0x511f73=_0x49408b;super(),h(this,_0x511f73(0x2eb),new Map()),h(this,'_entityInit$',new d[(_0x511f73(0x125))]()),(this[_0x511f73(0x22b)]=_0x544fa5,this[_0x511f73(0xf6)]=_0x496037,this[_0x511f73(0x298)]=_0x4bcbb6,this[_0x511f73(0x242)]());}[_0x49408b(0x2e9)](){const _0x350284=_0x49408b;super[_0x350284(0x2e9)](),this[_0x350284(0x2bf)][_0x350284(0x14a)](),this[_0x350284(0x2eb)]['forEach'](_0x508cb6=>_0x508cb6['dispose']());}[_0x49408b(0x2b3)](_0x54d518){const _0x409264=_0x49408b;return this[_0x409264(0x2eb)][_0x409264(0x1e0)](_0x54d518)?this[_0x409264(0x2eb)][_0x409264(0x140)](_0x54d518)[_0x409264(0x132)]:this[_0x409264(0x2bf)]['pipe'](d['filter'](_0x508628=>_0x508628['unitID']===_0x54d518),d[_0x409264(0x336)](_0x4a2980=>_0x4a2980['cursorInfo$']));}[_0x49408b(0x242)](){const _0x332e5d=_0x49408b;this['_univerInstanceService'][_0x332e5d(0x2c9)](a[_0x332e5d(0x17f)]['UNIVER_SHEET'])[_0x332e5d(0x2ef)](d[_0x332e5d(0x128)](this[_0x332e5d(0x30e)]))['subscribe'](async _0x32d121=>{const _0x383307=_0x332e5d,_0x5c3553=_0x32d121[_0x383307(0x2be)](),_0x16cff4=await this['_startSheetCollabCursor'](_0x5c3553);this['_entityInit$'][_0x383307(0x208)](_0x16cff4),this[_0x383307(0x2eb)][_0x383307(0x100)](_0x5c3553,_0x16cff4);}),this[_0x332e5d(0x22b)][_0x332e5d(0x2c9)](a['UniverInstanceType']['UNIVER_DOC'])[_0x332e5d(0x2ef)](d[_0x332e5d(0x128)](this[_0x332e5d(0x30e)]))[_0x332e5d(0x2ef)](d[_0x332e5d(0x1e8)](_0xc85f2=>!_0xc85f2[_0x332e5d(0x2be)]()[_0x332e5d(0x141)]('__')))[_0x332e5d(0x2aa)](async _0x4d29e9=>{const _0x282a34=_0x332e5d,_0x28eb70=_0x4d29e9['getUnitId'](),_0xfb995e=await this[_0x282a34(0x181)](_0x28eb70);this['_entityInit$']['next'](_0xfb995e),this[_0x282a34(0x2eb)][_0x282a34(0x100)](_0x28eb70,_0xfb995e);}),d['merge'](this[_0x332e5d(0x22b)][_0x332e5d(0x360)](a[_0x332e5d(0x17f)][_0x332e5d(0x11a)]),this['_univerInstanceService'][_0x332e5d(0x360)](a[_0x332e5d(0x17f)][_0x332e5d(0x15a)]))[_0x332e5d(0x2ef)](d[_0x332e5d(0x128)](this[_0x332e5d(0x30e)]))['subscribe'](_0x3442bb=>{const _0x57ca5b=_0x332e5d,_0x43b6d3=_0x3442bb[_0x57ca5b(0x2be)](),_0x357436=this[_0x57ca5b(0x2eb)][_0x57ca5b(0x140)](_0x43b6d3);_0x357436&&(_0x357436[_0x57ca5b(0x2e9)](),this[_0x57ca5b(0x2eb)]['delete'](_0x43b6d3));});}async[_0x49408b(0x334)](_0x1f7ee2){const _0x1ed8ae=_0x49408b,_0x51db5b=await this[_0x1ed8ae(0x298)][_0x1ed8ae(0x1e7)](_0x1f7ee2),_0x34fb85=this[_0x1ed8ae(0xf6)][_0x1ed8ae(0x2b0)](Se,_0x1f7ee2,_0x51db5b);return _0x34fb85[_0x1ed8ae(0x263)](),_0x34fb85;}async[_0x49408b(0x181)](_0x511583){const _0x199151=_0x49408b,_0x589c89=await this[_0x199151(0x298)]['requireSession'](_0x511583),_0x366a2e=this[_0x199151(0xf6)]['createInstance'](fe,_0x511583,_0x589c89);return _0x366a2e[_0x199151(0x263)](),_0x366a2e;}};x=ct([ie(0x0,a[_0x49408b(0x213)]),ie(0x1,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),ie(0x2,a[_0x49408b(0x30d)](u[_0x49408b(0x188)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x415501,_0x91900f){const _0x37cb6f=_0x49408b;let {radius:_0x4fcf72,width:_0x36a7ee,height:_0x309683}=_0x91900f;_0x4fcf72=_0x4fcf72!=null?_0x4fcf72:0x0,_0x36a7ee=_0x36a7ee!=null?_0x36a7ee:0x1e,_0x309683=_0x309683!=null?_0x309683:0x1e;let _0x529822=0x0,_0x1f2f81=0x0,_0x1f3622=0x0;_0x529822=_0x1f2f81=_0x1f3622=Math['min'](_0x4fcf72,_0x36a7ee/0x2,_0x309683/0x2),_0x415501['beginPath'](),_0x415501['moveTo'](_0x529822,0x0),_0x415501[_0x37cb6f(0x214)](_0x36a7ee-_0x1f2f81,0x0),_0x415501['arc'](_0x36a7ee-_0x1f2f81,_0x1f2f81,_0x1f2f81,Math['PI']*0x3/0x2,0x0,!0x1),_0x415501['lineTo'](_0x36a7ee,_0x309683-_0x1f3622),_0x415501[_0x37cb6f(0x292)](_0x36a7ee-_0x1f3622,_0x309683-_0x1f3622,_0x1f3622,0x0,Math['PI']/0x2,!0x1),_0x415501[_0x37cb6f(0x214)](0x0,_0x309683),_0x415501[_0x37cb6f(0x214)](0x0,_0x529822),_0x415501[_0x37cb6f(0x292)](_0x529822,_0x529822,_0x529822,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x415501[_0x37cb6f(0x269)](),_0x91900f['fill']&&(_0x415501[_0x37cb6f(0x10d)](),_0x415501[_0x37cb6f(0x21a)]=_0x91900f['fill'],_0x91900f[_0x37cb6f(0x311)]===_0x37cb6f(0x2e2)?_0x415501[_0x37cb6f(0x367)](_0x37cb6f(0x2e2)):_0x415501[_0x37cb6f(0x367)](),_0x415501[_0x37cb6f(0x300)]());}class ee extends p[_0x49408b(0x319)]{constructor(_0x2f300f,_0x50ca5d){const _0x1bc6a8=_0x49408b;super(_0x2f300f,_0x50ca5d),h(this,_0x1bc6a8(0x1f7)),h(this,_0x1bc6a8(0x1fd)),(this[_0x1bc6a8(0x1f7)]=_0x50ca5d==null?void 0x0:_0x50ca5d[_0x1bc6a8(0x1f7)],this[_0x1bc6a8(0x1fd)]=_0x50ca5d==null?void 0x0:_0x50ca5d['text']);}static[_0x49408b(0x2a2)](_0x28d797,_0x1d3b08){const _0x1003fc=_0x49408b,{text:_0x2630bb,color:_0x3b4503}=_0x1d3b08;_0x28d797[_0x1003fc(0x10d)](),_0x28d797[_0x1003fc(0x180)]=_0x1003fc(0x162);const _0x14ca6a=_0x28d797[_0x1003fc(0x238)](_0x2630bb)[_0x1003fc(0x312)],_0x4306ea=Math[_0x1003fc(0x35b)](_0x14ca6a+0x2*ne,Re);_t(_0x28d797,{'height':K,'radius':0x4,'width':_0x4306ea,'fill':_0x3b4503}),_0x28d797[_0x1003fc(0x21a)]=_0x1003fc(0x2d4);const _0x39c474=ne,_0x2e27c8=K-lt,_0x5160a6=Re-0x2*ne;if(_0x14ca6a>_0x5160a6){let _0x5c9433='',_0x1f258b=0x0;for(const _0x53f4ad of _0x2630bb){const _0x5da4c3=_0x28d797['measureText'](_0x53f4ad)[_0x1003fc(0x312)];if(_0x1f258b+_0x5da4c3<=_0x5160a6-_0x28d797[_0x1003fc(0x238)](_0x1003fc(0x113))[_0x1003fc(0x312)])_0x5c9433+=_0x53f4ad,_0x1f258b+=_0x5da4c3;else{_0x5c9433+=_0x1003fc(0x113);break;}}_0x28d797[_0x1003fc(0x13d)](_0x5c9433,_0x39c474,_0x2e27c8);}else _0x28d797[_0x1003fc(0x13d)](_0x2630bb,_0x39c474,_0x2e27c8);_0x28d797['restore']();}[_0x49408b(0x34c)](_0x1093fb){const _0x41f4f9=_0x49408b;ee[_0x41f4f9(0x2a2)](_0x1093fb,this);}}const re=_0x49408b(0xf0),ht=_0x49408b(0x314),ut=_0x49408b(0x234),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x49408b(0x2ad);class De{constructor(_0x2c902f,_0x249636,_0x5f18b8,_0x48d148){const _0x30dc7a=_0x49408b;h(this,_0x30dc7a(0x28b),[]),h(this,_0x30dc7a(0x227),null),h(this,_0x30dc7a(0x257),null),h(this,'_anchorDot',null),h(this,_0x30dc7a(0x354),null),h(this,_0x30dc7a(0x129),null),(this[_0x30dc7a(0x299)]=_0x2c902f,this['_scene']=_0x249636,this[_0x30dc7a(0x1ed)]=_0x5f18b8,this['_document']=_0x48d148,this[_0x30dc7a(0x222)]());}set[_0x49408b(0x1ad)](_0x1048e2){const _0x2ef059=_0x49408b;_0x1048e2?(this[_0x2ef059(0x22a)]&&this['_anchorDot']['hide'](),this[_0x2ef059(0x257)]&&this[_0x2ef059(0x257)][_0x2ef059(0x19f)]()):(this[_0x2ef059(0x22a)]&&this[_0x2ef059(0x22a)][_0x2ef059(0x19f)](),this['_textBubble']&&this[_0x2ef059(0x257)][_0x2ef059(0x1ce)]());}[_0x49408b(0x2e9)](){const _0x51133c=_0x49408b;for(const _0x4448f4 of this[_0x51133c(0x28b)])_0x4448f4[_0x51133c(0x2e9)]();this['_textBubble']&&this[_0x51133c(0x257)][_0x51133c(0x2e9)](),this[_0x51133c(0x22a)]&&this[_0x51133c(0x22a)][_0x51133c(0x2e9)](),this[_0x51133c(0x227)]&&this[_0x51133c(0x227)][_0x51133c(0x2e9)](),this[_0x51133c(0x129)]&&this[_0x51133c(0x129)]();}[_0x49408b(0x222)](){const _0x5bb8a3=_0x49408b;var _0x71fa30;const {_docSkeleton:_0x820278,_document:_0x5b84e3}=this,{color:_0x220cf5,name:_0x5651a6,ranges:_0x360756}=this[_0x5bb8a3(0x299)],_0x41c9e5=_0x5b84e3[_0x5bb8a3(0xfe)](),{docsLeft:_0x1e2de6,docsTop:_0x245f31}=_0x41c9e5,_0xffb6f1=new b['NodePositionConvertToCursor'](_0x41c9e5,_0x820278);for(const {startOffset:_0x20b803,endOffset:_0x563b47,rangeType:_0x2d1b42,segmentId:_0x1aa58b,segmentPage:_0x1441ea,collapsed:_0x62181d,isActive:_0x57749e}of _0x360756){const _0x2d78d3=_0x820278[_0x5bb8a3(0x1f8)](_0x20b803,!0x0,_0x1aa58b,_0x1441ea);let _0x161dee=_0x820278['findNodePositionByCharIndex'](_0x563b47,!0x0,_0x1aa58b,_0x1441ea);if(_0x161dee==null&&(_0x161dee=_0x820278[_0x5bb8a3(0x1f8)](_0x563b47-0x1,!0x1,_0x1aa58b,_0x1441ea)),_0x57749e){const {contentBoxPointGroup:_0x1d7d34}=_0xffb6f1[_0x5bb8a3(0x2cf)](_0x161dee,_0x161dee);if(_0x1d7d34[_0x5bb8a3(0x1b4)]===0x0)continue;this[_0x5bb8a3(0x357)](_0x220cf5,_0x1d7d34,_0x1e2de6,_0x245f31,_0x5651a6),this['_eventUnsubscribe']=this[_0x5bb8a3(0x32b)]();}if(_0x2d78d3&&_0x161dee){if(_0x2d1b42===a['DOC_RANGE_TYPE'][_0x5bb8a3(0x2f3)]){const _0x547395=new b[(_0x5bb8a3(0x1c5))](_0x41c9e5,_0x820278),{pointGroup:_0x5dbe71}=(_0x71fa30=_0x547395['getRangePointData'](_0x2d78d3,_0x161dee))!=null?_0x71fa30:{};if(_0x5dbe71==null||_0x5dbe71['length']===0x0)continue;this[_0x5bb8a3(0x36c)](_0x220cf5,_0x5dbe71,_0x1e2de6,_0x245f31);}else{if(!_0x62181d){const {borderBoxPointGroup:_0x451655}=_0xffb6f1[_0x5bb8a3(0x2cf)](_0x2d78d3,_0x161dee);if(_0x451655['length']===0x0)continue;this[_0x5bb8a3(0x295)](_0x220cf5,_0x451655,_0x1e2de6,_0x245f31);}}}}}['_drawAnchor'](_0x39c460,_0x454d9e,_0x2a07cf,_0x504000,_0x13d95c){const _0x3969e6=_0x49408b,_0x4caf5a=this['_getAnchorBounding'](_0x454d9e),{left:_0x1fda57,top:_0x5e1bbb,height:_0x4446a0}=_0x4caf5a,_0x4cce66=this[_0x3969e6(0x2d5)](),_0x655f7e=ft/_0x4cce66,_0x4c1b1e=new p['Rect'](re+a['Tools']['generateRandomId'](k),{'left':_0x1fda57+_0x2a07cf-_0x655f7e,'top':_0x5e1bbb+_0x504000,'height':_0x4446a0,'width':dt,'fill':_0x39c460||p[_0x3969e6(0x19e)](a[_0x3969e6(0x191)]['black'],0x0),'strokeWidth':_0x655f7e,'stroke':St,'evented':!0x0});this[_0x3969e6(0x227)]=_0x4c1b1e,this[_0x3969e6(0x176)][_0x3969e6(0x163)](_0x4c1b1e,b[_0x3969e6(0x232)]);const _0x5226e4=new p[(_0x3969e6(0x26f))](re+a[_0x3969e6(0x361)][_0x3969e6(0x271)](k),{'left':_0x1fda57+_0x2a07cf-_0x655f7e,'top':_0x5e1bbb+_0x504000-oe/0x2,'height':oe,'width':oe,'fill':_0x39c460||p[_0x3969e6(0x19e)](a[_0x3969e6(0x191)][_0x3969e6(0x153)],0x0),'strokeWidth':0x0,'stroke':_0x39c460||p[_0x3969e6(0x19e)](a['COLORS'][_0x3969e6(0x153)],0x0),'evented':!0x1});this[_0x3969e6(0x22a)]=_0x5226e4,this[_0x3969e6(0x176)]['addObject'](_0x5226e4,b[_0x3969e6(0x232)]);const _0x4939c2=new ee(re+a[_0x3969e6(0x361)][_0x3969e6(0x271)](k),{'left':_0x1fda57+_0x2a07cf-_0x655f7e,'top':_0x5e1bbb+_0x504000-K,'text':_0x13d95c,'color':_0x39c460});this[_0x3969e6(0x257)]=_0x4939c2,this[_0x3969e6(0x176)][_0x3969e6(0x163)](_0x4939c2,b[_0x3969e6(0x232)]),this[_0x3969e6(0x1ad)]=!0x1;}[_0x49408b(0x32b)](){const _0x1b74b9=_0x49408b,_0xef26cb=this[_0x1b74b9(0x227)][_0x1b74b9(0x117)][_0x1b74b9(0x33f)](()=>{const _0x57d512=_0x1b74b9;this[_0x57d512(0x1ad)]=!0x0;}),_0x39047d=this['_anchor']['onPointerLeave$'][_0x1b74b9(0x33f)](()=>{const _0x161099=_0x1b74b9;this['_hideTimer']&&clearTimeout(this[_0x161099(0x354)]),this[_0x161099(0x354)]=setTimeout(()=>{const _0x8fc63=_0x161099;this[_0x8fc63(0x1ad)]=!0x1;},0x7d0);});return()=>{const _0x33328a=_0x1b74b9;_0xef26cb[_0x33328a(0x27e)](),_0x39047d[_0x33328a(0x27e)]();};}['_drawTextRange'](_0x2575dc,_0x110f66,_0x547d71,_0x1ffd3c){const _0x5bc8ad=_0x49408b,_0x30deeb=new a[(_0x5bc8ad(0x2e5))](_0x2575dc)[_0x5bc8ad(0x308)](0.2)['toRgbString'](),_0xc31d36=new p[(_0x5bc8ad(0x359))](ht+a[_0x5bc8ad(0x361)][_0x5bc8ad(0x271)](k),{'pointsGroup':_0x110f66,'fill':_0x30deeb||p[_0x5bc8ad(0x19e)](a[_0x5bc8ad(0x191)][_0x5bc8ad(0x153)],0.2),'left':_0x547d71,'top':_0x1ffd3c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5bc8ad(0x28b)][_0x5bc8ad(0x2f8)](_0xc31d36),this[_0x5bc8ad(0x176)][_0x5bc8ad(0x163)](_0xc31d36,b[_0x5bc8ad(0x232)]);}['_drawRectRange'](_0x32b6e4,_0x121408,_0x353ebd,_0x4f27c4){const _0x1c2d82=_0x49408b,_0x181f65=new a[(_0x1c2d82(0x2e5))](_0x32b6e4)[_0x1c2d82(0x308)](0.2)[_0x1c2d82(0x2d8)](),_0x4ec333=new p[(_0x1c2d82(0x359))](ut+a['Tools'][_0x1c2d82(0x271)](k),{'pointsGroup':_0x121408,'fill':_0x181f65||p['getColor'](a['COLORS'][_0x1c2d82(0x153)],0.2),'left':_0x353ebd,'top':_0x4f27c4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1c2d82(0x28b)]['push'](_0x4ec333),this[_0x1c2d82(0x176)][_0x1c2d82(0x163)](_0x4ec333,b['TEXT_RANGE_LAYER_INDEX']);}[_0x49408b(0xfd)](_0x38693d){const _0x1428b4=_0x38693d[0x0],_0x35b0c4=_0x1428b4[0x0],_0x2a25ce=_0x1428b4[0x2],{x:_0x44f67f,y:_0x3ddeed}=_0x35b0c4,{x:_0x2e71e0,y:_0x590a54}=_0x2a25ce;return{'left':_0x44f67f,'top':_0x3ddeed,'width':_0x2e71e0-_0x44f67f,'height':_0x590a54-_0x3ddeed};}['_getScale'](){const _0x59e33e=_0x49408b,{scaleX:_0xc89a7b,scaleY:_0x55b0bb}=this[_0x59e33e(0x176)][_0x59e33e(0x26a)]();return Math[_0x59e33e(0x338)](_0xc89a7b,_0x55b0bb);}}var It=Object[_0x49408b(0x1d1)],vt=(_0xc2586f,_0x24f2a8,_0x2ccd03,_0x3b8627)=>{const _0x462d24=_0x49408b;for(var _0x1b2b26=_0x3b8627>0x1?void 0x0:_0x3b8627?It(_0x24f2a8,_0x2ccd03):_0x24f2a8,_0x1f086d=_0xc2586f[_0x462d24(0x1b4)]-0x1,_0x58c5d3;_0x1f086d>=0x0;_0x1f086d--)(_0x58c5d3=_0xc2586f[_0x1f086d])&&(_0x1b2b26=_0x58c5d3(_0x1b2b26)||_0x1b2b26);return _0x1b2b26;},W=(_0x8e1005,_0x30dc3e)=>(_0x2285ee,_0x2efbe8)=>_0x30dc3e(_0x2285ee,_0x2efbe8,_0x8e1005);let Ie=class extends a[_0x49408b(0x330)]{constructor(_0x2c378d,_0x2153e2,_0x401866,_0x36cd02,_0x13d54b){const _0x58eca0=_0x49408b;super(),h(this,'_cursorShapes',[]),h(this,_0x58eca0(0x17d),[]),(this[_0x58eca0(0x1d0)]=_0x2c378d,this[_0x58eca0(0x22e)]=_0x2153e2,this[_0x58eca0(0x112)]=_0x401866,this[_0x58eca0(0x321)]=_0x36cd02,this[_0x58eca0(0x1f4)]=_0x13d54b,this[_0x58eca0(0x242)]());}[_0x49408b(0x242)](){const _0x19de7f=_0x49408b,_0x5b850b=this[_0x19de7f(0x1d0)][_0x19de7f(0x2cb)],_0x50ec15=this[_0x19de7f(0x22e)];this[_0x19de7f(0x14d)](d[_0x19de7f(0x1ef)]([this['_collabCursorController'][_0x19de7f(0x2b3)](_0x5b850b),this[_0x19de7f(0x1f4)]['currentTheme$']])['pipe']($[_0x19de7f(0x212)](([_0x2afd49,_0x235405])=>({'skeleton':_0x50ec15[_0x19de7f(0x36d)](),'cursors':[..._0x2afd49['values']()][_0x19de7f(0x24a)](_0x2b2929=>({..._0x2b2929,'color':this[_0x19de7f(0x1f4)][_0x19de7f(0x27f)](_0x2b2929[_0x19de7f(0x1f7)])}))})))[_0x19de7f(0x2aa)](_0x5ddba8=>{const _0x38a672=_0x19de7f;if(this['_removeCollabCursors'](),_0x5ddba8){const {skeleton:_0x145f63,cursors:_0x1afb8a}=_0x5ddba8;this[_0x38a672(0x1ae)](_0x145f63,_0x1afb8a);}})),this[_0x19de7f(0x365)](),this[_0x19de7f(0x2b1)]();}[_0x49408b(0x1ae)](_0xcfcc95,_0x37e59d){const _0x54fddd=_0x49408b,{scene:_0x3f7c8f,mainComponent:_0x368d02}=this[_0x54fddd(0x1d0)],_0x5e0d06=_0x37e59d[_0x54fddd(0x212)](_0x433c1c=>new De(_0x433c1c,_0x3f7c8f,_0xcfcc95,_0x368d02));this[_0x54fddd(0x1a4)]=_0x5e0d06,this['_cursors']=_0x37e59d;}[_0x49408b(0x23f)](){const _0x1bb45c=_0x49408b;this[_0x1bb45c(0x355)]();const {scene:_0x4c08af,mainComponent:_0x302664}=this[_0x1bb45c(0x1d0)],_0x56bca6=this['_docSkeletonManagerService'][_0x1bb45c(0x36d)](),_0x3cab1e=this[_0x1bb45c(0x17d)][_0x1bb45c(0x212)](_0x4233de=>new De(_0x4233de,_0x4c08af,_0x56bca6,_0x302664));this[_0x1bb45c(0x1a4)]=_0x3cab1e;}['_removeCollabCursors'](){const _0x1b47e3=_0x49408b;this[_0x1b47e3(0x1a4)]['forEach'](_0x10a206=>_0x10a206[_0x1b47e3(0x2e9)]()),this[_0x1b47e3(0x1a4)]=[];}[_0x49408b(0x2b1)](){const _0x2469da=_0x49408b,_0x2ff319=[b[_0x2469da(0x142)]['id']];this[_0x2469da(0x14d)](this['_commandService'][_0x2469da(0x120)](_0x29d204=>{const _0x55f3b2=_0x2469da;_0x2ff319[_0x55f3b2(0x147)](_0x29d204['id'])&&_0x29d204[_0x55f3b2(0x285)][_0x55f3b2(0x2cb)]===this['_context'][_0x55f3b2(0x2cb)]&&this[_0x55f3b2(0x23f)]();}));}[_0x49408b(0x365)](){const _0x13b9bf=_0x49408b;this[_0x13b9bf(0x14d)](a[_0x13b9bf(0x34e)](this[_0x13b9bf(0x1d0)][_0x13b9bf(0x114)][_0x13b9bf(0x1c8)])[_0x13b9bf(0x2ef)]($['filter'](_0xea6c23=>_0xea6c23['type']===p[_0x13b9bf(0x111)][_0x13b9bf(0x1a0)]),$[_0x13b9bf(0x116)](0x10))[_0x13b9bf(0x2aa)](()=>{const _0x2ad41f=_0x13b9bf;this[_0x2ad41f(0x23f)]();}));}};Ie=vt([W(0x1,a[_0x49408b(0x30d)](Y[_0x49408b(0x21d)])),W(0x2,a[_0x49408b(0x30d)](x)),W(0x3,a[_0x49408b(0x26b)]),W(0x4,a[_0x49408b(0x30d)](a[_0x49408b(0x31a)]))],Ie);const gt=0x1,mt=1.5;function _0x281e(){const _0x216540=['endRow','yellow.400','PY_RUNTIME_SCRIPT_ERROR','asObservable','sessionTicket','transformIMECache','drawWith','SessionStatus','Failed','clsx','1em','@univerjs/rpc','0\x200\x2016\x2016','1977980cUyTNu','subscribe','memberID','_removeClearOtherTimer','rgba(255,\x20255,\x20255,\x200.01)','1138128hruxye','ranges','createInstance','_initCommandExecutedListener','_setupBeforeClosingHandler','getCollabCursors$','getRenderById','setParam','blue.400','LICENSE_MAX_UNITS_EXCEEDED','@univerjs/engine-render','NOT_FOUND','attrs','_getSaveTimeout','PERMISSION_DENIED','assign','getUnitId','_entityInit$','apply','_scheduleClearOtherTimer','isTransformMutationsWithChangesetSuccess','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','setConfig','CollaborationStatusDisplay','onLocalMutation','collaboration-client-ui.config','getTypeOfUnitAdded$','tag','unitId','type','Workbook','focused$','getRangePointData','eventID','call','_logService','RemoveColCommandId','#FFF','_getScale','registerBeforeClose','popstate','toRgbString','_session','_ensureSubject','_getSheetObject','SheetsSelectionsService','IUIPartsService','_send','INVITE_CODE_HAS_BEEN_UES','undoState','_initEvent','evenodd','_collabCursorState$','handleMoveRange','ColorKit','_updateSubUnitFromURLParams','_handleEvent','getFocusedUnit','dispose','substring','_entities','_transformHistoryAndStateStack','_online','touchDependencies','pipe','IRemoteInstanceService','handleInsertRangeMoveDown','addClipboardHook','RECT','_saveTaskMap','executeCommand','body','_notificationService','push','_registerDependencies','search','_collaborationUIEventService','YUUMI_NO_CUBOID_FOR_QUESTION','CollaborationSocketService','labelPosition','_onCursorDelete','restore','RichTextEditingMutation','rxjs/operators','addEventListener','permission.title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','add','ticket','setAlpha','OnLineIcon','_hovered','getCurrentUnitForType','Optional','Inject','dispose$','_initDependencies','collabStatus.synced','fillRule','width','wsSessionTicketUrl','collab-text-range-','_range','getOwnPropertySymbols','getStateCache','transformByState','Shape','ThemeService','_revisionService','_backgroundColor','DocSelectionManagerService','m1Prime','510192IQoavD','EMAIL_HAS_BEEN_BOUND','_commandService','_transformService','_getMergeRange','_cachedData','getConfig','currentColor','WECHAT_HAS_BEEN_BOUND','mapTo','ENSURE_SNAPSHOT_EXECUTION','_name','_handleHover','SetSelectionsOperation','exhaustSavingTask','UniverCollaborationClientUIPlugin','_setupSubUnitSync','RxDisposable','_uiPartsService','round','_refRangeService','_startSheetCollabCursor','connectInjector','switchMap','MessageType','max','saveImage','collabStatus.offline','actions','disposeUnit','_scheduleSaving','_onCursorUpdate','subscribeEvent','size','getUndoRedoMutationParamsCache','FETCH_MISS','[CollaborationDataLoaderController]','1086bXXzad','DependentOn','EffectRefRangId','startRow','Injector','ITransformService','doc.mutation.rich-text-editing','UNAUTHENTICATED','_draw','_heartbeatTimer','fromEventSubject','react/jsx-runtime','_scheduleHeartbeat','url(#$1','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','MOBILE_HAS_BEEN_BOUND','_hideTimer','_removeCollabCursors','transformMutation','_drawAnchor','isActive','RegularPolygon','M0\x200H16V16H0z','min','FromArray','DocIMEInputManagerService','setTimeout','CHANGESET_REVISION_CONFILICT','getTypeOfUnitDisposed$','Tools','_messageService','currentSkeleton$','SUBMIT_CHANGESET_TIMEOUT','_initResize','editingUnit','fill','_beforeCloseService','_colorIndex','endColumn','_initEntityListener','_drawRectRange','getSkeleton','getMemberID','searchParams','getCurrentRevOfUnit','Error','YUUMI_ALL_TABLES_IS_INVALID','source','onMouseMove','replaceState','_instanceService','registerDependencies','SOCKET_FAILED_RETRY','toString','on-line-icon','getDocRanges','IBeforeCloseService','APPLY_DUPLICATED','_unitStatus','_clearOtherTimers','debounceTime','DOC_RANGE_TYPE','SetTextSelectionsOperation','collab-text-anchor-','19131xhwOBp','subUnitId','result','collabStatus.fetchMiss','ILocalStorageService','_injector','SNAPSHOT_INVALID_SNAPSHOT','CollaborationUIEventId','collabStatus.conflict','YUUMI_SUBSCRIPTION_NOT_FOUND','Warning','activeSheet$','_getAnchorBounding','getOffsetConfig','newValue','set','getUnhiddenWorksheets','SOCKET_FAILED','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','_httpService','history','NO_OTHER_CLIENTS_EDITING','Disposable','onPointerLeave$','@univerjs/core','hasOwnProperty','svg','CollaborationController','save','updateOfflineData','0\x200\x2017\x2016','values','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_collabCursorController','...','engine','enableLocalCache','throttleTime','onPointerEnter$','getActiveSheet','@univerjs/engine-formula','UNIVER_DOC','transformStateCache','INVITE_CODE_REQUIRED','DesktopCollaborationStatusDisplayController','rxjs','ALREADY_EXISTS','onCommandExecuted','OTHER_CLIENTS_EDITING','on-line-icon_clip0_910_349','error','syncEditingCollabCursor','Subject','UnitStatus','_getSessionTicket','takeUntil','_eventUnsubscribe','_localCacheService','delete','green.600','forwardRef','_configService','then','AWAITING_WITH_PENDING','APPLY_REVISION_CONFILICT','cursorInfo$','handleIRemoveCol','collab-client.tooltip.reconnect','send','urlChange$','univer-flex\x20univer-items-center','triggerDblclick','ACTIVE_UNIT_EVENT_CHANNEL','DocStateChangeManagerService','transform','_toggleOffline','fillText','range','unload','get','startsWith','SetDocZoomRatioOperation','xlink:href','VIEW_MAIN','_roomMembers$','data','includes','useDependency','INVALID_ARGUMENT','complete','addHandlerCallback','path','disposeWithMe','_localeService','selection','forEach','_sheetSkeletonManagerService','href','black','_transformPreviousActiveRange','disableLocalCache','DocCollaborationEntity','CollaborationEvent','RemoteUniscriptService','concat','UNIVER_SHEET','NOT_COLLAB','INotificationService','IMessageService','SheetSkeletonManagerService','ONLINE','getSheetId','uni.network.url-service','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','addObject','WebBrowserSingleActiveUnitService','_assignedColors','purple.300','Plugin','Vector2','debounce','_urlService','runId','split','@univerjs/docs-ui','session.collaboration-timeout','@univerjs/sheets','APPLY_REJECT','getCellPositionByOffset','@univerjs/docs','_transformUndoRedoStack','_docTransformIMECacheService','_registerRenderDependencies','_scene','WebURLService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','location','override','runRefRangeMutations','addObjects','_cursors','runOnServer','UniverInstanceType','font','_startDocCollabCursor','isTransformMutationFailure','sessionStatus$','transformSelections','roomMembers','whenReady','loadOfflineData','CollaborationSessionService','90LRtzjb','YUUMI_URL_COL_OUT_OF_RANGE','mutations','getCurrent','getRelativeToViewportCoord','_docTransformStateCacheService','collabStatus.notCollab','createElement','COLORS','handleDeleteRangeMoveLeft','permission.content','idSuffix','saveTaskMap','ILocalCacheService','from','unshift','loadUnit','_docSyncEditingCollabCursorService','DisposableCollection','CollaborationStatus','some','getColor','show','resize','getSheetBySheetId','extend','stringify','_cursorShapes','getMember','redoState','_localStorageService','top','_syncEditingCollabCursorService','entries','IConfigService','PENDING','_hover','_updateCollabCursors','_handleJoinEvent','ISnapshotServerService','indexOf','white','colorChannel1','length','_imageIoService','_unitOnClients','skeleton','getCollabEntity$','find','key','red.300','_updateURLWithCurrentState','distinctUntilChanged','http://www.w3.org/2000/svg','all','invokeId','onStarting','selections','debug','replace','NodePositionConvertToRectRange','status$','BuiltInUIPart','onTransformChange$','propertyIsEnumerable','unitID','DeleteRangeMoveLeftCommandId','_updateLocalCursor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','hide','collaboration-client.offline-data-not-saved','_context','getOwnPropertyDescriptor','none','jsxs','column','YUUMI_RATE_OVER_LIMIT','OFFLINE','mask','_selfUnitIDs','UNDEFINED','transformMutationsWithChangeset','JOIN_ROOM_FAILED','clipPath','replaceDocRanges','@univerjs/design','defs','has','pushState','use','_cursorInfo$','_collaborationController','[RemoteUniscriptService]:\x20no\x20focused\x20unit','univer-flex\x20univer-mr-2\x20univer-text-xl','requireSession','filter','UNRECOGNIZED','origin','_docTransformSelectionsService','useObservable','_docSkeleton','storage','combineLatest','_docStateChangeManagerService','1611165hAYoZZ','Tooltip','_initStatusListener','_themeService','COMPLETION_FINISHED','session.will-retry','color','findNodePositionByCharIndex','getParam','APPLY_PERMISSION_DENIED','fromEvent','_memberService','text','INVITE_CODE_ALREADY_BOUND','setItem','BehaviorSubject','@univerjs/sheets-ui','2272RFvnmk','entityInit$','getItem','registerRenderModule','BrowserCollaborationSocketService','_colorAssignService','next','deepClone','YUUMI_UNABLE_LOAD_URL','handleInsertRow','bottom','m2Prime','textRanges','@univerjs/network','YUUMI_ASYNCIO_CANCELLED','MemberService','map','IUniverInstanceService','lineTo','setShapeProps','handleIRemoveRow','_createSocketURL','USERS_LEAVE','UPDATE_CURSOR','fillStyle','InsertRowCommandId','InsertRangeMoveRightCommandId','DocSkeletonManagerService','string','collaboration.closeRoom','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','Unknown\x20user','_render','_handleLeaveEvent','url(#off-line-icon_clip0_910_343)','LICENSE_DISTRO_REJECTED','application/json','_anchor','with','LOGIN_FAILED','_anchorDot','_univerInstanceService','_doCreateSocket','name','_docSkeletonManagerService','_handleHeartbeatEvent','getCurrentSelections','_disabled','TEXT_RANGE_LAYER_INDEX','defIds','collab-rect-range-','assignAColorForMemberID','DeleteRangeMoveUpCommandId','UniverCollaborationClientPlugin','measureText','clearInterval','symbol','height','random','imageSourceType','current','_refreshCollabCursors','registerComponent','defineProperty','_init','cursorInfo','SNAPSHOT_HAS_BEEN_REMOVED','collabCursorState$','handleInsertCol','LocaleService','jsx','univerjs-icon\x20univerjs-icon-','flatMap','335308UNCkaQ','YUUMI_TABLE_NOT_FOUND_IN_UNIT','makeDirty','sheetID','prototype','useRef','_labelPosition','_dataLoaderService','getUnitStatus$','_status$','registerRefRange','unit','_textBubble','code','_color','_id','CollaborationDataLoaderController','getLocalCacheKey','INVALID_INVITE_CODE','roomMembers$','react','_config','IRenderManagerService','createIdentifier','init','docStateChange$','clearTimeout','INTERNAL_ERROR','HTTPService','row','closePath','getAncestorScale','ICommandService','LOCAL_CACHE_INTERVAL_KEY','isArray','subunit','Rect','reconnect','generateRandomId','url(#on-line-icon_clip0_910_349)','InsertColCommandId','useCallback','merge','transformRemoteChangeset','SetWorksheetActivateCommand','event$','_onRefRangeChange','_toggleOnline','DEFAULT_WS_SESSION_TICKET_URL','off-line-icon_clip0_910_343','setActiveRange','unsubscribe','getColorFromTheme','LICENSE_EXPORT_SIZE_EXCEEDED','TOO_MANY_REQUESTS','children','className','APPLY_NON_SEQUENTIAL_REVISION','params','setStateCache','_saveCache','_docClipboardService','USER_NOT_INVITED_CODE','startColumn','_shapes','_lastPointer','YUUMI_AI_RUN_FAILED','CONNECTOR_DATA_TOO_LARGE','_initStatusComponent','_renderManagerService','div','arc','ILogService','TEXT','_drawTextRange','toDisposable','8020pQliwh','_collabSessionService','_cursor','pluginName','icon'];_0x281e=function(){return _0x216540;};return _0x281e();}class Pe extends p['Shape']{constructor(_0x2de016,_0x569cff){const _0x32a3c4=_0x49408b;super(_0x2de016,_0x569cff),h(this,_0x32a3c4(0x259)),h(this,'_hovered',!0x1),h(this,_0x32a3c4(0x315)),h(this,_0x32a3c4(0x32a),''),h(this,_0x32a3c4(0x251),_0x32a3c4(0x1a8)),h(this,_0x32a3c4(0x31c)),(_0x569cff&&this[_0x32a3c4(0x215)](_0x569cff),this[_0x32a3c4(0x117)][_0x32a3c4(0x33f)](()=>this[_0x32a3c4(0x215)]({'hovered':!0x0})),this[_0x32a3c4(0x108)][_0x32a3c4(0x33f)](()=>this[_0x32a3c4(0x215)]({'hovered':!0x1})));}[_0x49408b(0x215)](_0xa29fe8){const _0x33a3e2=_0x49408b;var _0x1cfeed,_0x371482,_0x566e63,_0xfeb5fa,_0x21e182,_0x4ddbdc;this['_color']=(_0x1cfeed=_0xa29fe8['color'])!=null?_0x1cfeed:this['_color'],this[_0x33a3e2(0x30a)]=(_0x371482=_0xa29fe8['hovered'])!=null?_0x371482:this[_0x33a3e2(0x30a)],this['_range']=(_0x566e63=_0xa29fe8[_0x33a3e2(0x13e)])!=null?_0x566e63:this[_0x33a3e2(0x315)],this['_name']=(_0xfeb5fa=_0xa29fe8[_0x33a3e2(0x22d)])!=null?_0xfeb5fa:this[_0x33a3e2(0x32a)],this[_0x33a3e2(0x251)]=(_0x21e182=_0xa29fe8[_0x33a3e2(0x2fe)])!=null?_0x21e182:this[_0x33a3e2(0x251)],this['_backgroundColor']=(_0x4ddbdc=_0xa29fe8['backgroundColor'])!=null?_0x4ddbdc:this[_0x33a3e2(0x31c)],this[_0x33a3e2(0x318)]({'width':_0xa29fe8[_0x33a3e2(0x312)],'height':_0xa29fe8[_0x33a3e2(0x23b)]});}[_0x49408b(0xe1)](_0x5440f9){const _0x5af9d0=_0x49408b,{row:_0x56982a,column:_0xf6956a}=_0x5440f9;if(_0x56982a>=this[_0x5af9d0(0x315)][_0x5af9d0(0x347)]&&_0x56982a<=this[_0x5af9d0(0x315)][_0x5af9d0(0x29c)]&&_0xf6956a>=this[_0x5af9d0(0x315)][_0x5af9d0(0x28a)]&&_0xf6956a<=this['_range'][_0x5af9d0(0x36a)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x49408b(0x138)](_0x25b0a3){return!0x1;}[_0x49408b(0x34c)](_0x3f5ddf){const _0x3c4100=_0x49408b;p['Rect']['drawWith'](_0x3f5ddf,{'width':this[_0x3c4100(0x312)],'height':this[_0x3c4100(0x23b)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3c4100(0x31c)]}),this[_0x3c4100(0x30a)]&&(_0x3f5ddf[_0x3c4100(0x10d)](),_0x3f5ddf[_0x3c4100(0x13b)](0x1,0x0,0x0,0x1,this['width'],this[_0x3c4100(0x251)]===_0x3c4100(0x20c)?0x0:-0x14),ee[_0x3c4100(0x2a2)](_0x3f5ddf,{'text':this['_name'],'color':this[_0x3c4100(0x259)]}),_0x3f5ddf[_0x3c4100(0x300)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x3bae75,_0x8a952,_0x237196,_0x563d20)=>{for(var _0x23dcd2=_0x563d20>0x1?void 0x0:_0x563d20?Ct(_0x8a952,_0x237196):_0x8a952,_0x571a95=_0x3bae75['length']-0x1,_0x5c3e5c;_0x571a95>=0x0;_0x571a95--)(_0x5c3e5c=_0x3bae75[_0x571a95])&&(_0x23dcd2=_0x5c3e5c(_0x23dcd2)||_0x23dcd2);return _0x23dcd2;},ae=(_0x17873d,_0x59e912)=>(_0x1afd34,_0x1657de)=>_0x59e912(_0x1afd34,_0x1657de,_0x17873d);const bt=0x1389;let ve=class extends a[_0x49408b(0x330)]{constructor(_0x282433,_0x357e7a,_0x22d812,_0x1539b6){const _0x91f43f=_0x49408b;super(),h(this,_0x91f43f(0x17d),new Set()),h(this,_0x91f43f(0x28c),null),(this[_0x91f43f(0x1d0)]=_0x282433,this[_0x91f43f(0x151)]=_0x357e7a,this[_0x91f43f(0x112)]=_0x22d812,this[_0x91f43f(0x1f4)]=_0x1539b6,this['_init']());}[_0x49408b(0x242)](){const _0x3ea064=_0x49408b;this['_sheetSkeletonManagerService'][_0x3ea064(0x363)]['pipe']($[_0x3ea064(0x128)](this[_0x3ea064(0x30e)]),$['switchMap'](_0x1548f8=>{const _0x3388ca=_0x3ea064;if(_0x1548f8){const _0x2803c9=_0x1548f8['sheetId'];return d[_0x3388ca(0x1ef)](this[_0x3388ca(0x112)]['getCollabCursors$'](this[_0x3388ca(0x1d0)][_0x3388ca(0x2cb)]),this['_themeService']['currentTheme$'])[_0x3388ca(0x2ef)]($[_0x3388ca(0x212)](([_0x452b4e,_0x6b9051])=>{const _0xf21f18=_0x3388ca,_0x4c45a9=new Map();return _0x452b4e[_0xf21f18(0x150)]((_0x3d9d86,_0x43267b)=>{const _0x4871ad=_0xf21f18;if(_0x3d9d86[_0x4871ad(0x24e)]===_0x2803c9){const _0x160fc7={..._0x3d9d86};_0x160fc7[_0x4871ad(0x1f7)]=this[_0x4871ad(0x1f4)][_0x4871ad(0x27f)](_0x3d9d86[_0x4871ad(0x1f7)]),_0x4c45a9[_0x4871ad(0x100)](_0x43267b,_0x160fc7);}}),{'skeleton':_0x1548f8,'cursors':_0x4c45a9};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3ea064(0x2aa)](({skeleton:_0x493a11,cursors:_0xb5f480})=>{const _0x1b48e1=_0x3ea064;this[_0x1b48e1(0x355)](),_0x493a11&&this[_0x1b48e1(0x1ae)](_0x493a11,_0xb5f480);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3ea064(0x2aa)](_0x29b9d9=>{const _0x26ca86=_0x3ea064;if(_0x29b9d9==null)return;const {skeleton:_0xde8c5}=_0x29b9d9,{scene:_0x277a77}=this[_0x26ca86(0x1d0)];_0x277a77['onPointerMove$'][_0x26ca86(0x33f)](a[_0x26ca86(0x169)](_0x4ea688=>{const _0x13fe11=_0x26ca86;var _0x4537b8,_0x210cb5;const {offsetX:_0x17e504,offsetY:_0xd47661}=_0x4ea688,{x:_0x41f49f,y:_0x2c6a1f}=_0x277a77[_0x13fe11(0x18d)](p[_0x13fe11(0x168)]['FromArray']([_0x17e504,_0xd47661])),{scaleX:_0x585ddc,scaleY:_0x460817}=_0x277a77[_0x13fe11(0x26a)](),_0x92586a=_0x277a77['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x13fe11(0x144)]),_0x12bcf6=_0x277a77['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x13fe11(0x35c)]([_0x41f49f,_0x2c6a1f]),_0x92586a),_0x1a9299=_0xde8c5[_0x13fe11(0x171)](_0x17e504,_0xd47661,_0x585ddc,_0x460817,_0x12bcf6);((_0x4537b8=this[_0x13fe11(0x28c)])==null?void 0x0:_0x4537b8[_0x13fe11(0x1d4)])===_0x1a9299[_0x13fe11(0x1d4)]&&((_0x210cb5=this[_0x13fe11(0x28c)])==null?void 0x0:_0x210cb5[_0x13fe11(0x268)])===_0x1a9299['row']||this[_0x13fe11(0x17d)][_0x13fe11(0x150)](_0x1a74ca=>{const _0x1be818=_0x13fe11;_0x1a74ca[_0x1be818(0xe1)](_0x1a9299);});},0x64));});}[_0x49408b(0x1ae)](_0x329d81,_0x1d01b6){const _0x284e32=_0x49408b;var _0xb83c0a;const _0x1d0831=(_0xb83c0a=this[_0x284e32(0x151)][_0x284e32(0x18c)]())==null?void 0x0:_0xb83c0a[_0x284e32(0x1b7)];if(!_0x1d0831)return;const _0x37721e=this[_0x284e32(0x2db)]();if(!_0x37721e)return;this['_cursors'][_0x284e32(0x150)](_0x480d8a=>{const _0x4bbb9=_0x284e32;_0x480d8a[_0x4bbb9(0x24d)]();});const {scene:_0xd21ddd}=_0x37721e,_0xfa6424=Et(Array[_0x284e32(0x197)](_0x1d01b6[_0x284e32(0x110)]()))[_0x284e32(0x212)](_0x35ef94=>{const _0x50bd89=_0x284e32,{color:_0x22cb16,range:_0x2d957e,name:_0x2f50cb,selection:_0x92bdc5,sheetID:_0x588d01}=_0x35ef94,{startColumn:_0x4be384,startRow:_0x511c56,endColumn:_0x9cbcb2,endRow:_0x240455}=_0x2d957e,_0x4d92af=X['getCoordByCell'](_0x511c56,_0x4be384,_0xd21ddd,_0x1d0831),_0xdf4534=X['getCoordByCell'](_0x240455,_0x9cbcb2,_0xd21ddd,_0x1d0831),{columnHeaderHeightAndMarginTop:_0x5d770b}=_0x1d0831,{startX:_0x4cc019,startY:_0x4ab658}=_0x4d92af,{endX:_0x10aa7a,endY:_0x1dd641}=_0xdf4534,_0x18fb5c=_0x10aa7a-_0x4cc019,_0x4571a3=_0x1dd641-_0x4ab658,_0x478090={'labelPosition':_0x4ab658-_0x5d770b>=K?'top':_0x50bd89(0x20c),'sheetID':_0x588d01,'range':_0x2d957e,'color':_0x22cb16,'name':_0x2f50cb,'selection':_0x92bdc5,'left':_0x4cc019,'top':_0x4ab658,'width':_0x18fb5c,'height':_0x4571a3,'evented':!0x1,'zIndex':bt};return new Pe(_0x2f50cb,_0x478090);});_0xd21ddd[_0x284e32(0x17c)](_0xfa6424,gt),this[_0x284e32(0x17d)]=new Set(_0xfa6424);}[_0x49408b(0x355)](){const _0x3b7c04=_0x49408b;var _0x19719c;(_0x19719c=this[_0x3b7c04(0x17d)])==null||_0x19719c[_0x3b7c04(0x150)](_0x307712=>_0x307712[_0x3b7c04(0x2e9)]());}[_0x49408b(0x2db)](){const _0x15634c=_0x49408b;return X['getSheetObject'](this['_context'][_0x15634c(0x256)],this[_0x15634c(0x1d0)]);}};ve=pt([ae(0x1,a[_0x49408b(0x30d)](X[_0x49408b(0x15e)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x49408b(0x30d)](a[_0x49408b(0x31a)]))],ve);function Et(_0x28eb7f){const _0x75e519=_0x49408b,_0xf8eb20=new Map();return _0x28eb7f['forEach'](_0xd21501=>{const _0x1ea5bc=_0x224e;if(_0xf8eb20[_0x1ea5bc(0x1e0)](_0xd21501[_0x1ea5bc(0x14f)])){const _0x438c03=_0xf8eb20[_0x1ea5bc(0x140)](_0xd21501['selection']);_0x438c03['name']+=',\x20'+_0xd21501[_0x1ea5bc(0x22d)];}else _0xf8eb20['set'](_0xd21501[_0x1ea5bc(0x14f)],_0xd21501);}),Array['from'](_0xf8eb20[_0x75e519(0x110)]());}var E=function(){const _0xcd042c=_0x49408b;return E=Object[_0xcd042c(0x2bd)]||function(_0x136841){const _0x372f33=_0xcd042c;for(var _0x2fec25,_0x3a508d=0x1,_0x4da012=arguments[_0x372f33(0x1b4)];_0x3a508d<_0x4da012;_0x3a508d++){_0x2fec25=arguments[_0x3a508d];for(var _0x57139e in _0x2fec25)Object[_0x372f33(0x24f)][_0x372f33(0x10a)][_0x372f33(0x2d1)](_0x2fec25,_0x57139e)&&(_0x136841[_0x57139e]=_0x2fec25[_0x57139e]);}return _0x136841;},E[_0xcd042c(0x2c0)](this,arguments);},Tt=function(_0x3dec99,_0x4c06ee){const _0x12b34b=_0x49408b;var _0x45b2be={};for(var _0x2043cb in _0x3dec99)Object[_0x12b34b(0x24f)][_0x12b34b(0x10a)]['call'](_0x3dec99,_0x2043cb)&&_0x4c06ee['indexOf'](_0x2043cb)<0x0&&(_0x45b2be[_0x2043cb]=_0x3dec99[_0x2043cb]);if(_0x3dec99!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x4093f1=0x0,_0x2043cb=Object[_0x12b34b(0x316)](_0x3dec99);_0x4093f1<_0x2043cb['length'];_0x4093f1++)_0x4c06ee[_0x12b34b(0x1b1)](_0x2043cb[_0x4093f1])<0x0&&Object['prototype'][_0x12b34b(0x1c9)][_0x12b34b(0x2d1)](_0x3dec99,_0x2043cb[_0x4093f1])&&(_0x45b2be[_0x2043cb[_0x4093f1]]=_0x3dec99[_0x2043cb[_0x4093f1]]);}return _0x45b2be;},pe=M[_0x49408b(0x12d)](function(_0x1e0acf,_0x3d8e8a){const _0x295727=_0x49408b;var _0x2f5342=_0x1e0acf[_0x295727(0x29b)],_0x290978=_0x1e0acf['id'],_0x753149=_0x1e0acf[_0x295727(0x283)],_0x5ee303=_0x1e0acf[_0x295727(0x1a2)],_0x305c01=Tt(_0x1e0acf,['icon','id','className',_0x295727(0x1a2)]),_0x158351=_0x295727(0x249)[_0x295727(0x159)](_0x290978,'\x20')[_0x295727(0x159)](_0x753149||'')['trim'](),_0x3375a2=M[_0x295727(0x250)]('_'['concat'](Dt()));return Ae(_0x2f5342,''[_0x295727(0x159)](_0x290978),{'defIds':_0x2f5342[_0x295727(0x233)],'idSuffix':_0x3375a2[_0x295727(0x23e)]},E({'ref':_0x3d8e8a,'className':_0x158351},_0x305c01),_0x5ee303);});function Ae(_0x26a60c,_0x45eca6,_0x20629e,_0x1a50b8,_0x44505b){const _0x20edab=_0x49408b;return M[_0x20edab(0x190)](_0x26a60c[_0x20edab(0x2ca)],E(E({'key':_0x45eca6},Ot(_0x26a60c,_0x20629e,_0x44505b)),_0x1a50b8),(Rt(_0x26a60c,_0x20629e)[_0x20edab(0x282)]||[])['map'](function(_0x1eea92,_0x1816d7){const _0x135013=_0x20edab;return Ae(_0x1eea92,''['concat'](_0x45eca6,'-')['concat'](_0x26a60c[_0x135013(0x2ca)],'-')[_0x135013(0x159)](_0x1816d7),_0x20629e,void 0x0,_0x44505b);}));}function Ot(_0x2aa075,_0x422ce5,_0x9ce186){const _0x196eac=_0x49408b;var _0x36c5f1=E({},_0x2aa075[_0x196eac(0x2ba)]);_0x9ce186!=null&&_0x9ce186['colorChannel1']&&_0x36c5f1[_0x196eac(0x367)]===_0x196eac(0x1b3)&&(_0x36c5f1['fill']=_0x9ce186[_0x196eac(0x1b3)]),_0x2aa075[_0x196eac(0x2ca)]===_0x196eac(0x1d7)&&_0x36c5f1['id']&&(_0x36c5f1['id']=_0x36c5f1['id']+_0x422ce5[_0x196eac(0x194)]),Object[_0x196eac(0x1aa)](_0x36c5f1)[_0x196eac(0x150)](function(_0x47d66a){const _0x4d748c=_0x196eac;var _0x42b65c=_0x47d66a[0x0],_0x34796d=_0x47d66a[0x1];_0x42b65c==='mask'&&typeof _0x34796d==_0x4d748c(0x21e)&&(_0x36c5f1[_0x42b65c]=_0x34796d['replace'](/url\(#(.*)\)/,_0x4d748c(0x351)[_0x4d748c(0x159)](_0x422ce5['idSuffix'],')')));});var _0x39aa8a=_0x422ce5[_0x196eac(0x233)];return!_0x39aa8a||_0x39aa8a[_0x196eac(0x1b4)]===0x0||(_0x2aa075[_0x196eac(0x2ca)]===_0x196eac(0x1e2)&&_0x36c5f1[_0x196eac(0x143)]&&(_0x36c5f1[_0x196eac(0x143)]=_0x36c5f1[_0x196eac(0x143)]+_0x422ce5['idSuffix']),Object[_0x196eac(0x1aa)](_0x36c5f1)[_0x196eac(0x150)](function(_0x29ae03){const _0x23466a=_0x196eac;var _0x4688d8=_0x29ae03[0x0],_0x2521e0=_0x29ae03[0x1];typeof _0x2521e0=='string'&&(_0x36c5f1[_0x4688d8]=_0x2521e0[_0x23466a(0x1c4)](/url\(#(.*)\)/,_0x23466a(0x351)[_0x23466a(0x159)](_0x422ce5['idSuffix'],')')));})),_0x36c5f1;}function Rt(_0x3d83a,_0x2ceb70){const _0x3f31db=_0x49408b;var _0x26b89a,_0x48abe4=_0x2ceb70[_0x3f31db(0x233)];return!_0x48abe4||_0x48abe4[_0x3f31db(0x1b4)]===0x0?_0x3d83a:_0x3d83a['tag']===_0x3f31db(0x1df)&&(!((_0x26b89a=_0x3d83a[_0x3f31db(0x282)])===null||_0x26b89a===void 0x0)&&_0x26b89a[_0x3f31db(0x1b4)])?E(E({},_0x3d83a),{'children':_0x3d83a[_0x3f31db(0x282)]['map'](function(_0x45d786){const _0xf84ca=_0x3f31db;return typeof _0x45d786[_0xf84ca(0x2ba)]['id']==_0xf84ca(0x21e)&&_0x48abe4&&_0x48abe4['includes'](_0x45d786[_0xf84ca(0x2ba)]['id'])?E(E({},_0x45d786),{'attrs':E(E({},_0x45d786[_0xf84ca(0x2ba)]),{'id':_0x45d786[_0xf84ca(0x2ba)]['id']+_0x2ceb70['idSuffix']})}):_0x45d786;})}):_0x3d83a;}function Dt(){const _0x4ea88d=_0x49408b;return Math[_0x4ea88d(0x23c)]()[_0x4ea88d(0xe6)](0x24)[_0x4ea88d(0x2ea)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x49408b(0x10b),'attrs':{'xmlns':_0x49408b(0x1be),'fill':_0x49408b(0x1d2),'viewBox':_0x49408b(0x2a8),'width':_0x49408b(0x2a6),'height':_0x49408b(0x2a6)},'children':[{'tag':'g','attrs':{'clipPath':_0x49408b(0x224)},'children':[{'tag':_0x49408b(0x14c),'attrs':{'stroke':_0x49408b(0x326),'d':_0x49408b(0x103),'strokeLinecap':_0x49408b(0x332),'strokeLinejoin':_0x49408b(0x332),'strokeWidth':1.2}}]},{'tag':_0x49408b(0x1df),'attrs':{},'children':[{'tag':_0x49408b(0x1dc),'attrs':{'id':_0x49408b(0x27c)},'children':[{'tag':_0x49408b(0x14c),'attrs':{'fill':_0x49408b(0x1b2),'d':_0x49408b(0x35a)}}]}]}],'defIds':[_0x49408b(0x27c)]},ye=M[_0x49408b(0x12d)](function(_0x4c902c,_0x21e42c){const _0x3e3921=_0x49408b;return M[_0x3e3921(0x190)](pe,Object[_0x3e3921(0x2bd)]({},_0x4c902c,{'id':'off-line-icon','ref':_0x21e42c,'icon':Ut}));});ye['displayName']='OffLineIcon';var Nt={'tag':_0x49408b(0x10b),'attrs':{'xmlns':_0x49408b(0x1be),'fill':_0x49408b(0x1d2),'viewBox':_0x49408b(0x10f),'width':'1em','height':_0x49408b(0x2a6)},'children':[{'tag':'g','attrs':{'clipPath':_0x49408b(0x272)},'children':[{'tag':_0x49408b(0x14c),'attrs':{'stroke':_0x49408b(0x326),'d':_0x49408b(0x220),'strokeLinecap':'round','strokeLinejoin':_0x49408b(0x332),'strokeWidth':1.2}}]},{'tag':_0x49408b(0x1df),'attrs':{},'children':[{'tag':_0x49408b(0x1dc),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x49408b(0x14c),'attrs':{'fill':_0x49408b(0x1b2),'d':_0x49408b(0x35a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x49408b(0x122)]},$e=M['forwardRef'](function(_0xd84fec,_0x26f8ff){const _0x5411b7=_0x49408b;return M[_0x5411b7(0x190)](pe,Object['assign']({},_0xd84fec,{'id':_0x5411b7(0xe7),'ref':_0x26f8ff,'icon':Nt}));});$e['displayName']=_0x49408b(0x309);function Mt(_0x5945fc){const _0x308a29=_0x49408b;switch(_0x5945fc){case u[_0x308a29(0x19c)][_0x308a29(0x1d6)]:return _0x308a29(0x33a);case u[_0x308a29(0x19c)]['CONFLICT']:return _0x308a29(0xf9);case u[_0x308a29(0x19c)][_0x308a29(0x342)]:return _0x308a29(0xf4);case u['CollaborationStatus'][_0x308a29(0x15b)]:return _0x308a29(0x18f);case u[_0x308a29(0x19c)]['AWAITING']:case u[_0x308a29(0x19c)][_0x308a29(0x130)]:return'collabStatus.syncing';case u[_0x308a29(0x19c)]['SYNCED']:case u[_0x308a29(0x19c)][_0x308a29(0x1ac)]:return _0x308a29(0x310);}}function xe(_0x25f9c0){const _0x1bba72=_0x49408b,{status$:_0x372bf7}=_0x25f9c0,_0x413824=T[_0x1bba72(0x1ec)](_0x372bf7,u['CollaborationStatus'][_0x1bba72(0x15b)]),_0x11dc47=T[_0x1bba72(0x148)](a[_0x1bba72(0x247)]),_0x2bb874=T[_0x1bba72(0x148)](u[_0x1bba72(0x188)]),_0x17948b=_0x413824!==u[_0x1bba72(0x19c)][_0x1bba72(0x1d6)],_0xd3303f=_0x11dc47['t'](Mt(_0x413824)),_0x33e197=_0x17948b?w[_0x1bba72(0x248)]($e,{}):w[_0x1bba72(0x248)](ye,{}),_0x43db9d=M[_0x1bba72(0x274)](()=>{const _0x319552=_0x1bba72;_0x17948b||_0x2bb874[_0x319552(0x270)]();},[_0x17948b,_0x2bb874]);function _0x2ff48a(){const _0x21100f=_0x1bba72;return w[_0x21100f(0x1d3)](_0x21100f(0x291),{'className':_0x21100f(0x137),'onClick':_0x43db9d,'children':[w[_0x21100f(0x248)](_0x21100f(0x291),{'className':D[_0x21100f(0x2a5)](_0x21100f(0x1e6),{'univer-text-green-500':_0x17948b,'univer-text-red-500':!_0x17948b}),'children':_0x33e197}),w['jsx'](_0x21100f(0x291),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xd3303f})]});}return _0x17948b?_0x2ff48a():w[_0x1bba72(0x248)](D[_0x1bba72(0x1f2)],{'title':_0x11dc47['t'](_0x1bba72(0x134)),'children':_0x2ff48a()});}var Lt=Object[_0x49408b(0x1d1)],wt=(_0x4645cd,_0x199bfc,_0x2f4faa,_0x166952)=>{const _0xc077f5=_0x49408b;for(var _0x46e0d9=_0x166952>0x1?void 0x0:_0x166952?Lt(_0x199bfc,_0x2f4faa):_0x199bfc,_0x8c3abc=_0x4645cd[_0xc077f5(0x1b4)]-0x1,_0x1ec2ff;_0x8c3abc>=0x0;_0x8c3abc--)(_0x1ec2ff=_0x4645cd[_0x8c3abc])&&(_0x46e0d9=_0x1ec2ff(_0x46e0d9)||_0x46e0d9);return _0x46e0d9;},V=(_0x22aaad,_0x4e1ccb)=>(_0x56a8bf,_0x2f88a5)=>_0x4e1ccb(_0x56a8bf,_0x2f88a5,_0x22aaad);exports[_0x49408b(0x11d)]=class extends a[_0x49408b(0x107)]{constructor(_0x4a8dd6,_0x37057c,_0x15b656,_0x3f081a){const _0x386ece=_0x49408b;super(),h(this,_0x386ece(0x254),new d[(_0x386ece(0x200))](u[_0x386ece(0x19c)][_0x386ece(0x15b)])),(this[_0x386ece(0x22b)]=_0x4a8dd6,this[_0x386ece(0xf6)]=_0x37057c,this['_collaborationController']=_0x15b656,this[_0x386ece(0x331)]=_0x3f081a,this[_0x386ece(0x28f)](),this['_initStatusListener']());}[_0x49408b(0x1f3)](){const _0x4bf886=_0x49408b;this['disposeWithMe'](this['_univerInstanceService'][_0x4bf886(0x2ce)][_0x4bf886(0x2ef)](d[_0x4bf886(0x336)](()=>{const _0x1227a9=_0x4bf886,_0x2173cd=this[_0x1227a9(0x22b)]['getFocusedUnit']();return _0x2173cd?this[_0x1227a9(0x1e4)][_0x1227a9(0x1b8)](_0x2173cd[_0x1227a9(0x2be)]()):d['of'](null);}),d[_0x4bf886(0x336)](_0x571ea6=>_0x571ea6?_0x571ea6[_0x4bf886(0x1c6)]:d['of'](u[_0x4bf886(0x19c)][_0x4bf886(0x15b)])))[_0x4bf886(0x2aa)](_0x22b678=>{const _0x46e5d7=_0x4bf886;this[_0x46e5d7(0x254)]['next'](_0x22b678);}));}[_0x49408b(0x28f)](){const _0x12f076=_0x49408b;this['disposeWithMe'](this[_0x12f076(0x331)][_0x12f076(0x240)](T[_0x12f076(0x1c7)][_0x12f076(0x2c3)],()=>T[_0x12f076(0x335)](Pt({'status$':this['_status$'][_0x12f076(0x29f)]()}),this[_0x12f076(0xf6)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x49408b(0x213)]),V(0x1,a[_0x49408b(0x30d)](a['Injector'])),V(0x2,a[_0x49408b(0x30d)](u[_0x49408b(0x10c)])),V(0x3,T[_0x49408b(0x2dd)])],exports[_0x49408b(0x11d)]);function Pt(_0x3d42a7){const {status$:_0x42fc77}=_0x3d42a7;return function(){return w['jsx'](xe,{'status$':_0x42fc77});};}var At=Object[_0x49408b(0x1d1)],yt=(_0x3426bb,_0x5f3899,_0x2298b9,_0xf8de02)=>{for(var _0x246f48=_0xf8de02>0x1?void 0x0:_0xf8de02?At(_0x5f3899,_0x2298b9):_0x5f3899,_0x1e51db=_0x3426bb['length']-0x1,_0x5d42b6;_0x1e51db>=0x0;_0x1e51db--)(_0x5d42b6=_0x3426bb[_0x1e51db])&&(_0x246f48=_0x5d42b6(_0x246f48)||_0x246f48);return _0x246f48;},y=(_0x4875b6,_0x2ec820)=>(_0x50724f,_0x5595d1)=>_0x2ec820(_0x50724f,_0x5595d1,_0x4875b6);let q=class extends a['Disposable']{constructor(_0x22d965,_0x6749d5,_0xd6702d,_0x5b1ddb,_0x23ed89,_0x3f6bd2){const _0x18b8de=_0x49408b;super(),this[_0x18b8de(0x368)]=_0x22d965,this[_0x18b8de(0x12a)]=_0x6749d5,this[_0x18b8de(0x2fb)]=_0xd6702d,this[_0x18b8de(0x362)]=_0x5b1ddb,this['_notificationService']=_0x23ed89,this[_0x18b8de(0x14e)]=_0x3f6bd2,this[_0x18b8de(0x2b2)](),this[_0x18b8de(0x2e1)]();}[_0x49408b(0x2b2)](){const _0x1db298=_0x49408b;this[_0x1db298(0x14d)](this['_beforeCloseService'][_0x1db298(0x2d6)](()=>{const _0x15b0c5=_0x1db298;if(this[_0x15b0c5(0x12a)][_0x15b0c5(0x195)][_0x15b0c5(0x340)])return this[_0x15b0c5(0x14e)]['t'](_0x15b0c5(0x1cf));}));}[_0x49408b(0x2e1)](){const _0x2b7777=_0x49408b;this[_0x2b7777(0x14d)](this[_0x2b7777(0x2fb)][_0x2b7777(0x278)][_0x2b7777(0x2aa)](_0x51704b=>{const _0x2b4db6=_0x2b7777;_0x51704b['id']===u[_0x2b4db6(0xf8)]['OTHER_CLIENT_EDITING']&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0xfb)],'content':this[_0x2b4db6(0x14e)]['t']('collaboration.single-unit.warning')}),_0x51704b['id']===u[_0x2b4db6(0xf8)]['CLOSE_ROOM']&&this['_messageService'][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0xfb)],'content':this[_0x2b4db6(0x14e)]['t'](_0x2b4db6(0x21f))}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0x2bc)]&&this[_0x2b4db6(0x2f7)][_0x2b4db6(0x19f)]({'title':this[_0x2b4db6(0x14e)]['t'](_0x2b4db6(0x304)),'content':this[_0x2b4db6(0x14e)]['t'](_0x2b4db6(0x193)),'type':'error','duration':0x0}),_0x51704b['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D['MessageType'][_0x2b4db6(0x371)],'content':this[_0x2b4db6(0x14e)]['t']('collaboration.closeRoom')+'('+_0x51704b[_0x2b4db6(0x146)]+')'}),_0x51704b['id']===u['CollaborationUIEventId'][_0x2b4db6(0x1db)]&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0xfb)],'content':this[_0x2b4db6(0x14e)]['t'](_0x51704b[_0x2b4db6(0x146)]||'')}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0xe5)]&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D['MessageType'][_0x2b4db6(0xfb)],'content':this['_localeService']['t'](_0x2b4db6(0x1f6))}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0x102)]&&this['_messageService'][_0x2b4db6(0x19f)]({'type':D['MessageType'][_0x2b4db6(0x371)],'content':this[_0x2b4db6(0x14e)]['t']('session.connection-failed')}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0x364)]&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0x371)],'content':this['_localeService']['t'](_0x2b4db6(0x16e))});}));}};q=yt([y(0x0,T[_0x49408b(0xe9)]),y(0x1,u[_0x49408b(0x196)]),y(0x2,a[_0x49408b(0x30d)](u['CollaborationUIEventService'])),y(0x3,T[_0x49408b(0x15d)]),y(0x4,T[_0x49408b(0x15c)]),y(0x5,a[_0x49408b(0x30d)](a[_0x49408b(0x247)]))],q);const $t=_0x49408b(0x2c8),Ue={},be=a[_0x49408b(0x262)](_0x49408b(0x161));var xt=Object[_0x49408b(0x1d1)],jt=(_0x1fd60a,_0xa7689f,_0x24be3d,_0x366c76)=>{const _0x30b6e4=_0x49408b;for(var _0x3ab78f=_0x366c76>0x1?void 0x0:_0x366c76?xt(_0xa7689f,_0x24be3d):_0xa7689f,_0x127067=_0x1fd60a[_0x30b6e4(0x1b4)]-0x1,_0x361dfe;_0x127067>=0x0;_0x127067--)(_0x361dfe=_0x1fd60a[_0x127067])&&(_0x3ab78f=_0x361dfe(_0x3ab78f)||_0x3ab78f);return _0x3ab78f;},H=(_0x67bf55,_0x21a442)=>(_0x28203e,_0x34dcaa)=>_0x21a442(_0x28203e,_0x34dcaa,_0x67bf55);exports[_0x49408b(0x25b)]=class extends a[_0x49408b(0x330)]{constructor(_0x1db728,_0x264e9f,_0x24399a,_0x3c4d6f,_0x4ec7f7){const _0x4a8c50=_0x49408b;super(),this[_0x4a8c50(0x16a)]=_0x1db728,this[_0x4a8c50(0x2d2)]=_0x264e9f,this[_0x4a8c50(0x321)]=_0x24399a,this[_0x4a8c50(0x252)]=_0x3c4d6f,_0x4ec7f7?_0x4ec7f7==null||_0x4ec7f7[_0x4a8c50(0x186)]()[_0x4a8c50(0x12f)](()=>this[_0x4a8c50(0x242)]()):(this[_0x4a8c50(0x2d2)][_0x4a8c50(0x1c3)](_0x4a8c50(0x343),_0x4a8c50(0x305)),this[_0x4a8c50(0x242)]());}async[_0x49408b(0x242)](){const _0x4a52cb=_0x49408b,_0x27a59b=this[_0x4a52cb(0x16a)][_0x4a52cb(0x1f9)]('unit'),_0x1918ca=this[_0x4a52cb(0x16a)]['getParam']('type'),_0x29dd44=this['_urlService'][_0x4a52cb(0x1f9)](_0x4a52cb(0x26e));if(!_0x27a59b||!_0x1918ca){this[_0x4a52cb(0x2d2)][_0x4a52cb(0x1c3)](_0x4a52cb(0x343),_0x4a52cb(0x2c4));return;}const _0x3c8e58=await this['_dataLoaderService'][_0x4a52cb(0x199)](_0x27a59b,Number(_0x1918ca),_0x29dd44);_0x3c8e58&&_0x3c8e58 instanceof a[_0x4a52cb(0x2cd)]&&this[_0x4a52cb(0x32f)](_0x3c8e58);}async[_0x49408b(0x32f)](_0x1bc4d0){const _0x42aeb8=_0x49408b;await this[_0x42aeb8(0x2e6)](_0x1bc4d0),_0x1bc4d0[_0x42aeb8(0xfc)]['pipe'](d[_0x42aeb8(0x128)](this['dispose$']))[_0x42aeb8(0x2aa)](_0x543d10=>{const _0x25f740=_0x42aeb8;_0x543d10&&this[_0x25f740(0x1bc)](_0x543d10);}),this[_0x42aeb8(0x16a)][_0x42aeb8(0x136)]['pipe'](d[_0x42aeb8(0x128)](this[_0x42aeb8(0x30e)]))[_0x42aeb8(0x2aa)](()=>this[_0x42aeb8(0x2e6)](_0x1bc4d0));}[_0x49408b(0x1bc)](_0x3f144e,_0x2a0035=!0x1){const _0x33ab00=_0x49408b,_0x41ce13=this[_0x33ab00(0x16a)]['getParam']('subunit');_0x3f144e[_0x33ab00(0x160)]()!==_0x41ce13&&this[_0x33ab00(0x16a)][_0x33ab00(0x2b5)](_0x33ab00(0x26e),_0x3f144e[_0x33ab00(0x160)](),_0x2a0035);}async[_0x49408b(0x2e6)](_0x566082){const _0x5120cb=_0x49408b;var _0x45096a;const _0x4d58a2=this[_0x5120cb(0x16a)][_0x5120cb(0x1f9)](_0x5120cb(0x26e));if(!_0x4d58a2||!_0x566082[_0x5120cb(0x1a1)](_0x4d58a2)){const _0x5442c3=_0x566082[_0x5120cb(0x101)]()[0x0],_0x1c1c18=_0x566082[_0x5120cb(0x1a1)](_0x5442c3);if(!_0x1c1c18)return;this['_updateURLWithCurrentState'](_0x1c1c18,!0x0),await this[_0x5120cb(0x321)][_0x5120cb(0x2f5)](g[_0x5120cb(0x277)]['id'],{'unitId':_0x566082[_0x5120cb(0x2be)](),'subUnitId':_0x5442c3});return;}((_0x45096a=_0x566082[_0x5120cb(0x118)]())==null?void 0x0:_0x45096a[_0x5120cb(0x160)]())!==_0x4d58a2&&await this[_0x5120cb(0x321)][_0x5120cb(0x2f5)](g[_0x5120cb(0x277)]['id'],{'unitId':_0x566082[_0x5120cb(0x2be)](),'subUnitId':_0x4d58a2});}},exports[_0x49408b(0x25b)]=jt([H(0x0,be),H(0x1,a[_0x49408b(0x293)]),H(0x2,a['ICommandService']),H(0x3,a['Inject'](u['DataLoaderService'])),H(0x4,a[_0x49408b(0x30c)](Ke[_0x49408b(0x2f0)]))],exports[_0x49408b(0x25b)]);var Bt=Object[_0x49408b(0x1d1)],kt=(_0x585bdf,_0x58b531,_0x3d8f76,_0x3ce5a7)=>{const _0x3558f2=_0x49408b;for(var _0x40a419=_0x3ce5a7>0x1?void 0x0:_0x3ce5a7?Bt(_0x58b531,_0x3d8f76):_0x58b531,_0x21c6ba=_0x585bdf[_0x3558f2(0x1b4)]-0x1,_0x2a8fb3;_0x21c6ba>=0x0;_0x21c6ba--)(_0x2a8fb3=_0x585bdf[_0x21c6ba])&&(_0x40a419=_0x2a8fb3(_0x40a419)||_0x40a419);return _0x40a419;},ce=(_0x482e6e,_0x49e355)=>(_0x43287f,_0x255cda)=>_0x49e355(_0x43287f,_0x255cda,_0x482e6e);let z=class{constructor(_0x4ecf26,_0x2a8fdb,_0x9a7a5e){const _0x3de854=_0x49408b;this[_0x3de854(0xf6)]=_0x4ecf26,this[_0x3de854(0x322)]=_0x2a8fdb,this['_renderManagerService']=_0x9a7a5e;}['transformIMECache'](_0x15e2ef){const _0x1f9d86=_0x49408b;this[_0x1f9d86(0x173)](_0x15e2ef),this['_transformPreviousActiveRange'](_0x15e2ef);}[_0x49408b(0x276)](_0xf6b75b){const _0x440975=_0x49408b,{unitID:_0x4ab0d9}=_0xf6b75b,_0x2caac5=this[_0x440975(0x290)][_0x440975(0x2b4)](_0x4ab0d9)['with'](b['DocIMEInputManagerService']),{redoCache:_0x5a9ae4}=_0x2caac5[_0x440975(0x341)]();if(_0x5a9ae4['length']===0x0)return _0xf6b75b;let _0x41b4e5=a[_0x440975(0x361)][_0x440975(0x209)](_0xf6b75b[_0x440975(0x18b)][0x0]);for(let _0x1a96e5=0x0;_0x1a96e5<_0x5a9ae4[_0x440975(0x1b4)];_0x1a96e5++){const _0x5a6d17={'id':_0x440975(0x34a),'params':{..._0x5a9ae4[_0x1a96e5]}},_0x401f6a=this[_0x440975(0x322)][_0x440975(0x356)](_0x41b4e5,_0x5a6d17,!0x1);if(m[_0x440975(0x182)](_0x401f6a))throw _0x401f6a[_0x440975(0x123)];_0x41b4e5=_0x401f6a[_0x440975(0x31e)];}return{...a[_0x440975(0x361)][_0x440975(0x209)](_0xf6b75b),'mutations':[_0x41b4e5]};}[_0x49408b(0x173)](_0x2e6bf1){const _0x5caba0=_0x49408b,{unitID:_0x5f31b1}=_0x2e6bf1,_0x567077=this[_0x5caba0(0x290)]['getRenderById'](_0x5f31b1)[_0x5caba0(0x228)](b[_0x5caba0(0x35d)]),{undoCache:_0x298222,redoCache:_0x2c5b26}=_0x567077[_0x5caba0(0x341)]();if(_0x298222['length']===0x0||_0x2c5b26[_0x5caba0(0x1b4)]===0x0)return;const _0x24c4d6=[],_0x472df7=[];let _0x349dcf=a[_0x5caba0(0x361)][_0x5caba0(0x209)](_0x2e6bf1[_0x5caba0(0x18b)][0x0]),_0x1b50e4=a['Tools'][_0x5caba0(0x209)](_0x2e6bf1[_0x5caba0(0x18b)][0x0]);for(let _0x71d2bf=_0x298222['length']-0x1;_0x71d2bf>=0x0;_0x71d2bf--){const _0x3718e6={'id':'doc.mutation.rich-text-editing','params':{..._0x298222[_0x71d2bf]}},_0x5bdebe={'id':'doc.mutation.rich-text-editing','params':{..._0x2c5b26[_0x71d2bf]}},_0x24159a=this[_0x5caba0(0x322)]['transformMutation'](_0x349dcf,_0x3718e6,!0x1),_0xf93b1e=this[_0x5caba0(0x322)][_0x5caba0(0x356)](_0x1b50e4,_0x5bdebe,!0x1);if(m[_0x5caba0(0x182)](_0x24159a))throw _0x24159a[_0x5caba0(0x123)];if(m['isTransformMutationFailure'](_0xf93b1e))throw _0xf93b1e[_0x5caba0(0x123)];_0x24c4d6[_0x5caba0(0x198)](_0x24159a[_0x5caba0(0x20d)][_0x5caba0(0x285)]),_0x472df7[_0x5caba0(0x198)](_0xf93b1e[_0x5caba0(0x20d)][_0x5caba0(0x285)]),_0x349dcf=_0x24159a['m1Prime'],_0x1b50e4=_0xf93b1e[_0x5caba0(0x31e)];}_0x567077['setUndoRedoMutationParamsCache']({'undoCache':_0x24c4d6,'redoCache':_0x472df7});}[_0x49408b(0x154)](_0x3ab8ee){const _0x10168a=_0x49408b,{unitID:_0xf9ed2e}=_0x3ab8ee,_0x59080c=this['_renderManagerService'][_0x10168a(0x2b4)](_0xf9ed2e)[_0x10168a(0x228)](b[_0x10168a(0x35d)]),_0x46dd0c=_0x59080c['getActiveRange']();if(_0x46dd0c==null)return;const _0x2f1ac0=[{'id':_0x10168a(0x34a),'params':{'unitId':_0x3ab8ee['unitID'],'actions':null,'textRanges':[_0x46dd0c]}}],_0x40f99e=this[_0x10168a(0x322)][_0x10168a(0x1da)](_0x3ab8ee,_0x2f1ac0);if(!m[_0x10168a(0x2c2)](_0x40f99e))throw _0x40f99e[_0x10168a(0x123)];const _0x304a92=_0x40f99e[_0x10168a(0x20d)][0x0]['params'][_0x10168a(0x20e)];Array['isArray'](_0x304a92)&&_0x304a92[_0x10168a(0x1b4)]&&_0x59080c[_0x10168a(0x27d)](_0x304a92[0x0]);}};z=kt([ce(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),ce(0x1,m[_0x49408b(0x349)]),ce(0x2,p[_0x49408b(0x261)])],z);var Ht=Object[_0x49408b(0x1d1)],Ft=(_0x3bae35,_0x36aad8,_0x3a52cc,_0x4020cb)=>{const _0x5435e0=_0x49408b;for(var _0x4f9f1b=_0x4020cb>0x1?void 0x0:_0x4020cb?Ht(_0x36aad8,_0x3a52cc):_0x36aad8,_0x2074c5=_0x3bae35[_0x5435e0(0x1b4)]-0x1,_0x4ca972;_0x2074c5>=0x0;_0x2074c5--)(_0x4ca972=_0x3bae35[_0x2074c5])&&(_0x4f9f1b=_0x4ca972(_0x4f9f1b)||_0x4f9f1b);return _0x4f9f1b;},le=(_0x442599,_0x2b3247)=>(_0x16f119,_0x15c29b)=>_0x2b3247(_0x16f119,_0x15c29b,_0x442599);let J=class{constructor(_0x3befaa,_0x457236,_0xb9e51a){const _0x58307b=_0x49408b;this[_0x58307b(0xf6)]=_0x3befaa,this[_0x58307b(0x322)]=_0x457236,this[_0x58307b(0x1f0)]=_0xb9e51a;}[_0x49408b(0x11b)](_0xf3c299){const _0x2876d2=_0x49408b;this[_0x2876d2(0x2ec)](_0xf3c299);}['transformRemoteChangeset'](_0x1b676c){const _0x44d39f=_0x49408b,{unitID:_0x14b9e7}=_0x1b676c,{collaboration:_0xf53173}=this[_0x44d39f(0x1f0)][_0x44d39f(0x317)](_0x14b9e7);if(_0xf53173[_0x44d39f(0x1b4)]===0x0)return _0x1b676c;let _0x47309b=a['Tools'][_0x44d39f(0x209)](_0x1b676c[_0x44d39f(0x18b)][0x0]);for(let _0x321510=0x0;_0x321510<_0xf53173[_0x44d39f(0x1b4)];_0x321510++){const _0x22b078={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf53173[_0x321510]['unitId'],..._0xf53173[_0x321510][_0x44d39f(0x1a6)]}},_0x29ecf1=this['_transformService'][_0x44d39f(0x356)](_0x47309b,_0x22b078,!0x1);if(m[_0x44d39f(0x182)](_0x29ecf1))throw _0x29ecf1[_0x44d39f(0x123)];_0x47309b=_0x29ecf1[_0x44d39f(0x31e)];}return{...a[_0x44d39f(0x361)][_0x44d39f(0x209)](_0x1b676c),'mutations':[_0x47309b]};}[_0x49408b(0x2ec)](_0x8412b0){const _0x201c5a=_0x49408b,{unitID:_0x5ab5b9}=_0x8412b0,{history:_0x462274,collaboration:_0x5f1f68}=this[_0x201c5a(0x1f0)][_0x201c5a(0x317)](_0x5ab5b9);if(_0x462274[_0x201c5a(0x1b4)]===0x0&&_0x5f1f68[_0x201c5a(0x1b4)]===0x0)return;const _0x44c9d7=[],_0x557ef1=[];let _0x322723=a['Tools'][_0x201c5a(0x209)](_0x8412b0[_0x201c5a(0x18b)][0x0]),_0x1ec9db=a[_0x201c5a(0x361)][_0x201c5a(0x209)](_0x8412b0[_0x201c5a(0x18b)][0x0]);for(let _0x7db1c2=_0x462274['length']-0x1;_0x7db1c2>=0x0;_0x7db1c2--){const _0x4351d1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x462274[_0x7db1c2]['unitId'],..._0x462274[_0x7db1c2]['undoState']}},_0xec3afb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x462274[_0x7db1c2][_0x201c5a(0x2cb)],..._0x462274[_0x7db1c2]['redoState']}},_0x19725e=this['_transformService'][_0x201c5a(0x356)](_0x322723,_0x4351d1,!0x1),_0x3aff37=this['_transformService'][_0x201c5a(0x356)](_0x1ec9db,_0xec3afb,!0x1);if(m[_0x201c5a(0x182)](_0x19725e))throw _0x19725e[_0x201c5a(0x123)];if(m[_0x201c5a(0x182)](_0x3aff37))throw _0x3aff37[_0x201c5a(0x123)];_0x44c9d7[_0x201c5a(0x198)]({..._0x462274[_0x7db1c2],'undoState':_0x19725e[_0x201c5a(0x20d)]['params'],'redoState':_0x3aff37[_0x201c5a(0x20d)][_0x201c5a(0x285)]}),_0x322723=_0x19725e[_0x201c5a(0x31e)],_0x1ec9db=_0x3aff37[_0x201c5a(0x31e)];}_0x322723=a[_0x201c5a(0x361)][_0x201c5a(0x209)](_0x8412b0[_0x201c5a(0x18b)][0x0]),_0x1ec9db=a['Tools'][_0x201c5a(0x209)](_0x8412b0['mutations'][0x0]);for(let _0x23cb30=_0x5f1f68[_0x201c5a(0x1b4)]-0x1;_0x23cb30>=0x0;_0x23cb30--){const _0xcd408={'id':_0x201c5a(0x34a),'params':{'unitId':_0x5f1f68[_0x23cb30][_0x201c5a(0x2cb)],..._0x5f1f68[_0x23cb30][_0x201c5a(0x2e0)]}},_0x20ea13={'id':_0x201c5a(0x34a),'params':{'unitId':_0x5f1f68[_0x23cb30][_0x201c5a(0x2cb)],..._0x5f1f68[_0x23cb30][_0x201c5a(0x1a6)]}},_0x56a664=this['_transformService'][_0x201c5a(0x356)](_0x322723,_0xcd408,!0x1),_0xf02772=this[_0x201c5a(0x322)]['transformMutation'](_0x1ec9db,_0x20ea13,!0x1);if(m[_0x201c5a(0x182)](_0x56a664))throw _0x56a664[_0x201c5a(0x123)];if(m[_0x201c5a(0x182)](_0xf02772))throw _0xf02772[_0x201c5a(0x123)];_0x557ef1[_0x201c5a(0x198)]({..._0x5f1f68[_0x23cb30],'undoState':_0x56a664['m2Prime']['params'],'redoState':_0xf02772['m2Prime'][_0x201c5a(0x285)]}),_0x322723=_0x56a664[_0x201c5a(0x31e)],_0x1ec9db=_0xf02772['m1Prime'];}this[_0x201c5a(0x1f0)][_0x201c5a(0x286)](_0x5ab5b9,{'history':_0x44c9d7,'collaboration':_0x557ef1});}};J=Ft([le(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),le(0x1,m[_0x49408b(0x349)]),le(0x2,a[_0x49408b(0x30d)](b[_0x49408b(0x13a)]))],J);var Yt=Object[_0x49408b(0x1d1)],Wt=(_0x5b1780,_0x18f6d5,_0x5360fe,_0xf1f04c)=>{const _0x27cd92=_0x49408b;for(var _0x15e398=_0xf1f04c>0x1?void 0x0:_0xf1f04c?Yt(_0x18f6d5,_0x5360fe):_0x18f6d5,_0x4bcc03=_0x5b1780[_0x27cd92(0x1b4)]-0x1,_0x1b16bb;_0x4bcc03>=0x0;_0x4bcc03--)(_0x1b16bb=_0x5b1780[_0x4bcc03])&&(_0x15e398=_0x1b16bb(_0x15e398)||_0x15e398);return _0x15e398;},Ne=(_0x3b768f,_0xd891b9)=>(_0x42915b,_0x1b8a13)=>_0xd891b9(_0x42915b,_0x1b8a13,_0x3b768f);let Z=class{constructor(_0x2518f1,_0x3b92f6){const _0x413763=_0x49408b;this['_injector']=_0x2518f1,this[_0x413763(0x322)]=_0x3b92f6;}['transformSelections'](_0x57d5a7){const _0x303937=_0x49408b;var _0x5c85a1;const _0xeafa57=this[_0x303937(0xf6)][_0x303937(0x140)](Y[_0x303937(0x31d)]),_0x1f9745=(_0x5c85a1=_0xeafa57[_0x303937(0xe8)]())!=null?_0x5c85a1:[];if(_0x1f9745['length']===0x0)return;const _0x112626=_0x57d5a7[_0x303937(0x1ca)],_0x1e497c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x112626,'actions':null,'textRanges':_0x1f9745}}],_0x1f107d=this[_0x303937(0x322)][_0x303937(0x1da)](_0x57d5a7,_0x1e497c);if(!m[_0x303937(0x2c2)](_0x1f107d))throw _0x1f107d[_0x303937(0x123)];const _0xd5962=_0x1f107d[_0x303937(0x20d)][0x0][_0x303937(0x285)]['textRanges'];Array[_0x303937(0x26d)](_0xd5962)&&_0xd5962['length']&&_0xeafa57[_0x303937(0x1dd)](_0xd5962,{'unitId':_0x112626,'subUnitId':_0x112626},!0x1);}};Z=Wt([Ne(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),Ne(0x1,m[_0x49408b(0x349)])],Z);var Vt=Object[_0x49408b(0x1d1)],Xt=(_0x549ecd,_0x5b9753,_0x5ab70a,_0x3dd91b)=>{const _0xa84007=_0x49408b;for(var _0x4f1c86=_0x3dd91b>0x1?void 0x0:_0x3dd91b?Vt(_0x5b9753,_0x5ab70a):_0x5b9753,_0x3e8ae9=_0x549ecd[_0xa84007(0x1b4)]-0x1,_0x3c4c6d;_0x3e8ae9>=0x0;_0x3e8ae9--)(_0x3c4c6d=_0x549ecd[_0x3e8ae9])&&(_0x4f1c86=_0x3c4c6d(_0x4f1c86)||_0x4f1c86);return _0x4f1c86;},N=(_0x5a59b2,_0x511e47)=>(_0x21cf33,_0x5d8cc4)=>_0x511e47(_0x21cf33,_0x5d8cc4,_0x5a59b2);let Q=class extends a[_0x49408b(0x107)]{constructor(_0x152f7e,_0x29e167,_0x5f1387,_0x2403ad,_0x2efee2,_0x1caf12,_0x64b623,_0x4c83bd){const _0x21b431=_0x49408b;super(),h(this,_0x21b431(0x254),new d[(_0x21b431(0x200))](u[_0x21b431(0x19c)][_0x21b431(0x15b)])),(this[_0x21b431(0x1f0)]=_0x152f7e,this[_0x21b431(0x1e4)]=_0x29e167,this[_0x21b431(0x174)]=_0x5f1387,this[_0x21b431(0x18e)]=_0x2403ad,this[_0x21b431(0x1eb)]=_0x2efee2,this[_0x21b431(0x19a)]=_0x1caf12,this[_0x21b431(0x362)]=_0x64b623,this[_0x21b431(0x14e)]=_0x4c83bd,this[_0x21b431(0x36b)]());}[_0x49408b(0x36b)](){const _0x24bb07=_0x49408b;this[_0x24bb07(0x14d)](this[_0x24bb07(0x1e4)][_0x24bb07(0x203)][_0x24bb07(0x2aa)](_0x1b4d1c=>{const _0x39d8cd=_0x24bb07,_0x1a52b1=this['_docStateChangeManagerService'][_0x39d8cd(0x264)]['subscribe'](_0x39ece3=>{const _0x4d647b=_0x39d8cd;if(_0x39ece3==null)return;const {unitId:_0x42f1df,redoState:_0x3faa4c,commandId:_0x5ee2fa}=_0x39ece3;if(_0x42f1df!==_0x1b4d1c['unitID'])return;const _0x2911ee={'id':_0x5ee2fa,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x42f1df,'actions':_0x3faa4c[_0x4d647b(0x33b)],'textRanges':null}};_0x1b4d1c[_0x4d647b(0x2c7)](_0x2911ee);});if(_0x1b4d1c['disposeWithMe'](_0x1a52b1),_0x1b4d1c instanceof u[_0x39d8cd(0x156)]){const _0x32bff8={'onTransformIME':_0x2f2252=>this[_0x39d8cd(0x174)][_0x39d8cd(0x2a1)](_0x2f2252),'onTransformState':_0x393647=>this[_0x39d8cd(0x18e)][_0x39d8cd(0x11b)](_0x393647),'onTransformSelections':_0x1da492=>this[_0x39d8cd(0x1eb)][_0x39d8cd(0x184)](_0x1da492),'onSyncEditingCollabCursor':_0x18d138=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x18d138),'onTransformRemoteChangesetByIMECache':_0xb326bf=>this[_0x39d8cd(0x174)][_0x39d8cd(0x276)](_0xb326bf),'onTransformRemoteChangesetByStateCache':_0x55e9bf=>this[_0x39d8cd(0x18e)][_0x39d8cd(0x276)](_0x55e9bf)};_0x1b4d1c[_0x39d8cd(0x14b)](_0x32bff8);}}));}};Q=Xt([N(0x0,a[_0x49408b(0x30d)](b[_0x49408b(0x13a)])),N(0x1,a[_0x49408b(0x30d)](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a[_0x49408b(0x30d)](J)),N(0x4,a[_0x49408b(0x30d)](Z)),N(0x5,a[_0x49408b(0x30d)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x49408b(0x30d)](a['LocaleService']))],Q);var Gt=Object[_0x49408b(0x1d1)],Kt=(_0xc16a66,_0x3e2603,_0x475477,_0x4ecd6a)=>{const _0x584d24=_0x49408b;for(var _0x1084ae=_0x4ecd6a>0x1?void 0x0:_0x4ecd6a?Gt(_0x3e2603,_0x475477):_0x3e2603,_0xcc3591=_0xc16a66[_0x584d24(0x1b4)]-0x1,_0x46bf39;_0xcc3591>=0x0;_0xcc3591--)(_0x46bf39=_0xc16a66[_0xcc3591])&&(_0x1084ae=_0x46bf39(_0x1084ae)||_0x1084ae);return _0x1084ae;},_e=(_0x18e3f4,_0x4e2141)=>(_0x4d5fee,_0x4edd0f)=>_0x4e2141(_0x4d5fee,_0x4edd0f,_0x18e3f4);let ge=class extends a['Disposable']{constructor(_0x133b6e,_0x5846f7,_0x3ad43d){const _0x344a4b=_0x49408b;super(),h(this,_0x344a4b(0x324),new Map()),h(this,_0x344a4b(0x2f4),new Map()),h(this,_0x344a4b(0x231),!0x1),(this['_configService']=_0x133b6e,this[_0x344a4b(0x1a7)]=_0x5846f7,this[_0x344a4b(0x31b)]=_0x3ad43d);}[_0x49408b(0x155)](){this['_disabled']=!0x0;}[_0x49408b(0x115)](){const _0x11d03b=_0x49408b;this[_0x11d03b(0x231)]=!0x1;}get[_0x49408b(0x195)](){const _0x29b91b=_0x49408b;return this[_0x29b91b(0x2f4)];}[_0x49408b(0x2e9)](){const _0x308b95=_0x49408b;this[_0x308b95(0x32d)]()[_0x308b95(0x12f)](()=>super[_0x308b95(0x2e9)]());}async[_0x49408b(0x187)](_0x158dbf){const _0x43b13a=_0x49408b;return this[_0x43b13a(0x231)]?null:this[_0x43b13a(0x1a7)][_0x43b13a(0x204)](u[_0x43b13a(0x25c)](_0x158dbf));}async['saveOfflineData'](_0x1beed2,_0x1d44fc){const _0x3a6ec8=_0x49408b;return!!this['_localStorageService'][_0x3a6ec8(0x1ff)](_0x1beed2,_0x1d44fc);}[_0x49408b(0x10e)](_0x2a9558,_0x103671,_0x8937dd,_0x350927){const _0x560b1f=_0x49408b,_0x2c9f0d=this[_0x560b1f(0x31b)][_0x560b1f(0x370)](_0x2a9558);this[_0x560b1f(0x324)][_0x560b1f(0x100)](_0x2a9558,{'unitID':_0x2a9558,'type':_0x103671,'awaitingChangeset':_0x8937dd,'mutations':_0x350927,'rev':_0x2c9f0d}),this[_0x560b1f(0x2f4)][_0x560b1f(0x1e0)](_0x2a9558)||this[_0x560b1f(0x33d)](_0x2a9558);}[_0x49408b(0x33d)](_0x5517b5){const _0x3c6f6f=_0x49408b,_0x4c7fc3=this[_0x3c6f6f(0x2bb)]();_0x4c7fc3===0x0?this['_saveCache'](_0x5517b5):this['_saveTaskMap'][_0x3c6f6f(0x100)](_0x5517b5,setTimeout(()=>this[_0x3c6f6f(0x287)](_0x5517b5),_0x4c7fc3));}['_getSaveTimeout'](){const _0x2c7476=_0x49408b;var _0x3750a7;return(_0x3750a7=this[_0x2c7476(0x12e)][_0x2c7476(0x325)](u[_0x2c7476(0x26c)]))!=null?_0x3750a7:u['LOCAL_CACHE_INTERVAL'];}[_0x49408b(0x287)](_0xd758a){const _0x2e811d=_0x49408b,_0x3630a6=this['_saveTaskMap'][_0x2e811d(0x140)](_0xd758a);return _0x3630a6!==void 0x0&&window[_0x2e811d(0x265)](_0x3630a6),this['_localStorageService']['setItem'](u['getLocalCacheKey'](_0xd758a),this[_0x2e811d(0x324)][_0x2e811d(0x140)](_0xd758a))[_0x2e811d(0x12f)](()=>this[_0x2e811d(0x2f4)]['delete'](_0xd758a));}async[_0x49408b(0x32d)](){const _0x5b248f=_0x49408b,_0x3e4b21=[];this[_0x5b248f(0x2f4)]['forEach']((_0x92306a,_0x1acb1e)=>{const _0x32d54e=_0x5b248f;window['clearTimeout'](_0x92306a),_0x3e4b21[_0x32d54e(0x2f8)](this[_0x32d54e(0x287)](_0x1acb1e)[_0x32d54e(0x12f)](()=>{const _0x38f908=_0x32d54e;this[_0x38f908(0x2f4)][_0x38f908(0x12b)](_0x1acb1e);}));}),await Promise[_0x5b248f(0x1bf)](_0x3e4b21);}};ge=Kt([_e(0x0,a[_0x49408b(0x1ab)]),_e(0x1,a[_0x49408b(0xf5)]),_e(0x2,a[_0x49408b(0x30d)](m['RevisionService']))],ge);class je extends a[_0x49408b(0x330)]{constructor(){const _0xfe50da=_0x49408b;super(),h(this,_0xfe50da(0x136)),this[_0xfe50da(0x136)]=d[_0xfe50da(0x1fb)](window,_0xfe50da(0x2d7))['pipe'](d[_0xfe50da(0x128)](this[_0xfe50da(0x30e)]),d['shareReplay'](0x1),d[_0xfe50da(0x328)](void 0x0));}['setParam'](_0xad687c,_0x4257f5,_0x44e4e7=!0x1){const _0x4d67a8=_0x49408b,_0x48245b=new URL(window[_0x4d67a8(0x179)]['href']);_0x48245b[_0x4d67a8(0x36f)][_0x4d67a8(0x100)](_0xad687c,_0x4257f5),_0x44e4e7?window['history'][_0x4d67a8(0xe2)]('','',_0x48245b[_0x4d67a8(0xe6)]()):window[_0x4d67a8(0x105)][_0x4d67a8(0x1e1)]('','',_0x48245b[_0x4d67a8(0xe6)]());}['removeParam'](_0x3fb9b3,_0x29d223=!0x1){const _0x4fe619=_0x49408b,_0x105315=new URL(window[_0x4fe619(0x179)][_0x4fe619(0x152)]);_0x105315[_0x4fe619(0x36f)][_0x4fe619(0x12b)](_0x3fb9b3),_0x29d223?window[_0x4fe619(0x105)][_0x4fe619(0xe2)]('','',_0x105315[_0x4fe619(0xe6)]()):window[_0x4fe619(0x105)]['pushState']('','',_0x105315[_0x4fe619(0xe6)]());}[_0x49408b(0x1f9)](_0x325ec9){const _0x41ce0d=_0x49408b;var _0x33680d;return(_0x33680d=new URL(window[_0x41ce0d(0x179)][_0x41ce0d(0x152)])[_0x41ce0d(0x36f)][_0x41ce0d(0x140)](_0x325ec9))!=null?_0x33680d:void 0x0;}}var qt=Object[_0x49408b(0x241)],zt=Object[_0x49408b(0x1d1)],Jt=(_0x1deec2,_0x40793e,_0x4ee586)=>_0x40793e in _0x1deec2?qt(_0x1deec2,_0x40793e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ee586}):_0x1deec2[_0x40793e]=_0x4ee586,Zt=(_0x788c9,_0xf0eb8a,_0x12c7bc,_0x4879a4)=>{const _0x41bae9=_0x49408b;for(var _0x531e8f=_0x4879a4>0x1?void 0x0:_0x4879a4?zt(_0xf0eb8a,_0x12c7bc):_0xf0eb8a,_0x43b2e3=_0x788c9[_0x41bae9(0x1b4)]-0x1,_0x587a0b;_0x43b2e3>=0x0;_0x43b2e3--)(_0x587a0b=_0x788c9[_0x43b2e3])&&(_0x531e8f=_0x587a0b(_0x531e8f)||_0x531e8f);return _0x531e8f;},he=(_0xc72fad,_0x51237f)=>(_0x29c4cc,_0x18648a)=>_0x51237f(_0x29c4cc,_0x18648a,_0xc72fad),Qt=(_0x4b80dc,_0x468bd0,_0x36b52e)=>Jt(_0x4b80dc,_0x468bd0+'',_0x36b52e);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x49408b(0x167)]{constructor(_0x5b860e=Ue,_0x130e3f,_0x3c1bd8,_0x6a9f54){const _0x2385aa=_0x49408b;super(),this[_0x2385aa(0x260)]=_0x5b860e,this['_renderManagerService']=_0x130e3f,this[_0x2385aa(0xf6)]=_0x3c1bd8,this[_0x2385aa(0x12e)]=_0x6a9f54;const {..._0x269f56}=a[_0x2385aa(0x275)]({},Ue,this[_0x2385aa(0x260)]);this[_0x2385aa(0x12e)][_0x2385aa(0x2c5)]($t,_0x269f56);}[_0x49408b(0x1c1)](){const _0x337484=_0x49408b;this[_0x337484(0x2f9)](),this[_0x337484(0x30f)]();}['onRendered'](){const _0x973901=_0x49408b;this[_0x973901(0x175)]();}[_0x49408b(0x2f9)](){const _0x1dcfcf=_0x49408b;var _0x40669b;const _0x8f7e63=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G['WebSocketService']}],[u[_0x1dcfcf(0x196)],{'useClass':ge}],[exports[_0x1dcfcf(0x11d)]],[Q],[q],[x],[de],[exports[_0x1dcfcf(0x25b)]]];a[_0x1dcfcf(0xe4)](this['_injector'],a['mergeOverrideWithDependencies'](_0x8f7e63,(_0x40669b=this[_0x1dcfcf(0x260)])==null?void 0x0:_0x40669b[_0x1dcfcf(0x17a)]));}[_0x49408b(0x175)](){const _0x8aff89=_0x49408b;this['disposeWithMe'](this[_0x8aff89(0x290)]['registerRenderModule'](a[_0x8aff89(0x17f)][_0x8aff89(0x11a)],[Ie])),this[_0x8aff89(0x14d)](this['_renderManagerService'][_0x8aff89(0x205)](a[_0x8aff89(0x17f)]['UNIVER_SHEET'],[ve]));}[_0x49408b(0x30f)](){const _0x2feb34=_0x49408b;a[_0x2feb34(0x2ee)](this['_injector'],[[x],[exports[_0x2feb34(0x11d)]],[Q],[q],[exports[_0x2feb34(0x25b)]]]);}},Qt(exports[_0x49408b(0x32e)],_0x49408b(0x29a),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x49408b(0x345)](u[_0x49408b(0x237)]),he(0x1,p[_0x49408b(0x261)]),he(0x2,a[_0x49408b(0x30d)](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0x49408b(0x32e)]);var ts=Object[_0x49408b(0x1d1)],ss=(_0x1a4b33,_0x571e43,_0x581cd1,_0x18103b)=>{const _0x5ccff4=_0x49408b;for(var _0x679fc7=_0x18103b>0x1?void 0x0:_0x18103b?ts(_0x571e43,_0x581cd1):_0x571e43,_0x428d17=_0x1a4b33[_0x5ccff4(0x1b4)]-0x1,_0x3b0eb0;_0x428d17>=0x0;_0x428d17--)(_0x3b0eb0=_0x1a4b33[_0x428d17])&&(_0x679fc7=_0x3b0eb0(_0x679fc7)||_0x679fc7);return _0x679fc7;},F=(_0x2fb274,_0xa047d4)=>(_0x530525,_0x3fd0d0)=>_0xa047d4(_0x530525,_0x3fd0d0,_0x2fb274);exports[_0x49408b(0x206)]=class extends u[_0x49408b(0x2fd)]{constructor(_0x41699a,_0x561b15,_0x19fd78,_0x4ac186,_0x30cb83){super(_0x41699a,_0x561b15,_0x19fd78,_0x4ac186,_0x30cb83);}async['createSocket'](_0x34f9f3){const _0x20b9ab=_0x49408b,_0x1ff8f5=await this[_0x20b9ab(0x127)](),_0x3d4e7=this[_0x20b9ab(0x217)](_0x34f9f3,_0x1ff8f5);return this[_0x20b9ab(0x22c)](_0x3d4e7);}['_createSocketURL'](_0x3bc509,_0x51e82a){const _0x2e94ab=_0x49408b,_0x598556=typeof window>'u'?new URL(_0x3bc509):new URL(_0x3bc509,window['location'][_0x2e94ab(0x1ea)]);_0x598556[_0x2e94ab(0x36f)][_0x2e94ab(0x100)](_0x2e94ab(0x2a0),_0x51e82a);const _0x2149b6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2e94ab(0x2fa)]);return _0x2149b6[_0x2e94ab(0x140)]('runId')&&_0x598556[_0x2e94ab(0x36f)][_0x2e94ab(0x100)]('runId',_0x2149b6[_0x2e94ab(0x140)](_0x2e94ab(0x16b))),_0x598556[_0x2e94ab(0xe6)]();}async[_0x49408b(0x127)](){const _0x5a26ab=_0x49408b;var _0x5dcad9,_0x46da03,_0x332379;const _0x1f5c73=this['_configService'][_0x5a26ab(0x325)](u[_0x5a26ab(0x1cd)]),_0x13037a=(_0x5dcad9=_0x1f5c73==null?void 0x0:_0x1f5c73[_0x5a26ab(0x313)])!=null?_0x5dcad9:u[_0x5a26ab(0x27b)];return(_0x332379=(_0x46da03=(await this[_0x5a26ab(0x104)][_0x5a26ab(0x140)](_0x13037a,{'headers':{'Content-Type':_0x5a26ab(0x226)}}))[_0x5a26ab(0x2f6)])==null?void 0x0:_0x46da03[_0x5a26ab(0x307)])!=null?_0x332379:'';}},exports[_0x49408b(0x206)]=ss([F(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),F(0x1,a[_0x49408b(0x30d)](G[_0x49408b(0x267)])),F(0x2,a[_0x49408b(0x1ab)]),F(0x3,a['ILogService']),F(0x4,m[_0x49408b(0x1b0)])],exports[_0x49408b(0x206)]);const Me=0x7530,Le=_0x49408b(0x139);class is extends a[_0x49408b(0x107)]{constructor(){const _0x368ac8=_0x49408b;super(),h(this,_0x368ac8(0x25a),a[_0x368ac8(0x271)]()),h(this,_0x368ac8(0x1d8),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x368ac8(0x34d),null),h(this,_0x368ac8(0xec),new Map()),h(this,_0x368ac8(0xeb),new Map()),this[_0x368ac8(0x242)]();}[_0x49408b(0x2e9)](){const _0x5a6401=_0x49408b;super[_0x5a6401(0x2e9)](),this['_clearOtherTimers']['forEach']((_0x5a86c6,_0x191911)=>this[_0x5a6401(0x2ac)](_0x191911)),this[_0x5a6401(0x34d)]&&window[_0x5a6401(0x239)](this[_0x5a6401(0x34d)]);}[_0x49408b(0x253)](_0x14949c){const _0x1bf6a7=_0x49408b;return this[_0x1bf6a7(0x2da)](_0x14949c)['pipe'](d[_0x1bf6a7(0x1bd)]());}[_0x49408b(0x366)](_0x42df1c){const _0x1d3679=_0x49408b;this[_0x1d3679(0x1d8)][_0x1d3679(0x340)]===0x0&&this[_0x1d3679(0x350)](),this[_0x1d3679(0x1d8)]['add'](_0x42df1c),this[_0x1d3679(0x2de)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x42df1c],'isForwarded':!0x1});}[_0x49408b(0x33c)](_0x24c657){const _0x6af59f=_0x49408b;this[_0x6af59f(0x1d8)][_0x6af59f(0x12b)](_0x24c657),this[_0x6af59f(0x1d8)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x6af59f(0x34d)]);}[_0x49408b(0x242)](){const _0x3803b2=_0x49408b;this['disposeWithMe'](a[_0x3803b2(0x296)](d[_0x3803b2(0x1fb)](window,_0x3803b2(0x1ee))[_0x3803b2(0x2aa)](_0x3af8df=>{const _0x2ba48e=_0x3803b2;if(_0x3af8df[_0x2ba48e(0x1ba)]!==Le||!_0x3af8df[_0x2ba48e(0xff)])return;const _0x546aff=JSON['parse'](_0x3af8df[_0x2ba48e(0xff)]);this[_0x2ba48e(0x2e7)](_0x546aff);}))),window[_0x3803b2(0x303)](_0x3803b2(0x13f),()=>this[_0x3803b2(0x2de)]({'type':0x1,'memberID':this[_0x3803b2(0x25a)],'unitIDs':Array[_0x3803b2(0x197)](this['_selfUnitIDs'])}));}[_0x49408b(0x2e7)](_0x5aa2ec){const _0x2080a0=_0x49408b;switch(_0x5aa2ec[_0x2080a0(0x2cc)]){case 0x0:this[_0x2080a0(0x1af)](_0x5aa2ec);break;case 0x1:this[_0x2080a0(0x223)](_0x5aa2ec);break;case 0x2:this[_0x2080a0(0x22f)](_0x5aa2ec);break;}}[_0x49408b(0x1af)](_0x3a8c24){const _0x40cc53=_0x49408b,{unitIDs:_0x4ed0cb,memberID:_0x53ac98,isForwarded:_0x3e3a73}=_0x3a8c24;_0x4ed0cb[_0x40cc53(0x150)](_0x37a50a=>{const _0x2214ad=_0x40cc53;if(!_0x3e3a73&&this[_0x2214ad(0x1b6)][_0x2214ad(0x1e0)](_0x37a50a)&&this[_0x2214ad(0x2da)](_0x37a50a)[_0x2214ad(0x208)](u[_0x2214ad(0x126)][_0x2214ad(0x121)]),!this[_0x2214ad(0x1b6)]['has'](_0x37a50a)||!this[_0x2214ad(0x1b6)][_0x2214ad(0x140)](_0x37a50a)[_0x2214ad(0x1e0)](_0x53ac98)){const _0x29960d=this[_0x2214ad(0x1b6)]['get'](_0x37a50a)||new Set();_0x29960d[_0x2214ad(0x306)](_0x53ac98),this[_0x2214ad(0x1b6)][_0x2214ad(0x100)](_0x37a50a,_0x29960d),this[_0x2214ad(0x2c1)](_0x53ac98);}}),_0x3e3a73||this['_send']({'type':0x0,'memberID':this[_0x40cc53(0x25a)],'unitIDs':[...this[_0x40cc53(0x1d8)]],'isForwarded':!0x0});}[_0x49408b(0x2c1)](_0x1668e5){const _0x180dc7=_0x49408b;this[_0x180dc7(0x2ac)](_0x1668e5);const _0x2c7e67=window[_0x180dc7(0x35e)](()=>{const _0x4c3c30=_0x180dc7;this[_0x4c3c30(0x1b6)][_0x4c3c30(0x150)](_0x3edf6f=>{const _0x55dd4f=_0x4c3c30;_0x3edf6f[_0x55dd4f(0x12b)](_0x1668e5);});},Me*0x2);this[_0x180dc7(0xec)]['set'](_0x1668e5,_0x2c7e67);}[_0x49408b(0x2ac)](_0x351231){const _0x54adc2=_0x49408b;if(this['_clearOtherTimers'][_0x54adc2(0x1e0)](_0x351231)){const _0x485779=this[_0x54adc2(0xec)][_0x54adc2(0x140)](_0x351231);_0x485779&&window[_0x54adc2(0x265)](_0x485779),this[_0x54adc2(0xec)][_0x54adc2(0x100)](_0x351231,null);}}['_handleLeaveEvent'](_0x2f2371){const _0x446b20=_0x49408b,{memberID:_0x3db0d3,unitIDs:_0x543c1e}=_0x2f2371;_0x543c1e[_0x446b20(0x150)](_0x316f77=>{const _0x69dfcb=_0x446b20;var _0xdddefe;const _0x6c717a=this[_0x69dfcb(0x1b6)][_0x69dfcb(0x140)](_0x316f77);_0x6c717a&&(_0x6c717a[_0x69dfcb(0x12b)](_0x3db0d3),(_0xdddefe=this[_0x69dfcb(0x2da)](_0x316f77))==null||_0xdddefe[_0x69dfcb(0x208)](_0x6c717a[_0x69dfcb(0x340)]===0x0?u[_0x69dfcb(0x126)][_0x69dfcb(0x106)]:u[_0x69dfcb(0x126)][_0x69dfcb(0x121)]));}),this[_0x446b20(0x2ac)](_0x3db0d3);}[_0x49408b(0x22f)](_0x4d0430){const _0x22dbc3=_0x49408b;this['_scheduleClearOtherTimer'](_0x4d0430[_0x22dbc3(0x2ab)]);}[_0x49408b(0x2de)](_0x47b433){const _0x4bf4d6=_0x49408b;localStorage[_0x4bf4d6(0x1ff)](Le,JSON[_0x4bf4d6(0x1a3)](_0x47b433));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x33b605){const _0x4347fc=_0x49408b;return this['_unitStatus'][_0x4347fc(0x1e0)](_0x33b605)||this['_unitStatus'][_0x4347fc(0x100)](_0x33b605,new d[(_0x4347fc(0x200))](u[_0x4347fc(0x126)][_0x4347fc(0x106)])),this[_0x4347fc(0xeb)][_0x4347fc(0x140)](_0x33b605);}}function _0x224e(_0x1f4544,_0x400402){const _0x281eb3=_0x281e();return _0x224e=function(_0x224ec5,_0x16d738){_0x224ec5=_0x224ec5-0xe1;let _0x2514ee=_0x281eb3[_0x224ec5];return _0x2514ee;},_0x224e(_0x1f4544,_0x400402);}var Be=(_0x5817a5=>(_0x5817a5[_0x5817a5[_0x49408b(0x1d9)]=0x0]='UNDEFINED',_0x5817a5[_0x5817a5['OK']=0x1]='OK',_0x5817a5[_0x5817a5[_0x49408b(0x266)]=0x2]='INTERNAL_ERROR',_0x5817a5[_0x5817a5[_0x49408b(0x2bc)]=0x3]=_0x49408b(0x2bc),_0x5817a5[_0x5817a5[_0x49408b(0x2b9)]=0x4]='NOT_FOUND',_0x5817a5[_0x5817a5[_0x49408b(0x34b)]=0x5]='UNAUTHENTICATED',_0x5817a5[_0x5817a5['ALREADY_EXISTS']=0x6]=_0x49408b(0x11f),_0x5817a5[_0x5817a5[_0x49408b(0x149)]=0x7]=_0x49408b(0x149),_0x5817a5[_0x5817a5['TOO_MANY_REQUESTS']=0x8]=_0x49408b(0x281),_0x5817a5[_0x5817a5[_0x49408b(0x1f5)]=0x9]=_0x49408b(0x1f5),_0x5817a5[_0x5817a5[_0x49408b(0x229)]=0xa]='LOGIN_FAILED',_0x5817a5[_0x5817a5[_0x49408b(0x35f)]=0x1389]=_0x49408b(0x35f),_0x5817a5[_0x5817a5['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x49408b(0xf7),_0x5817a5[_0x5817a5[_0x49408b(0x244)]=0x1772]=_0x49408b(0x244),_0x5817a5[_0x5817a5[_0x49408b(0x329)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x5817a5[_0x5817a5[_0x49408b(0x170)]=0x1b59]=_0x49408b(0x170),_0x5817a5[_0x5817a5[_0x49408b(0x284)]=0x1b5a]=_0x49408b(0x284),_0x5817a5[_0x5817a5[_0x49408b(0x131)]=0x1b5b]=_0x49408b(0x131),_0x5817a5[_0x5817a5[_0x49408b(0x1fa)]=0x1b5c]=_0x49408b(0x1fa),_0x5817a5[_0x5817a5[_0x49408b(0xea)]=0x1b5d]='APPLY_DUPLICATED',_0x5817a5[_0x5817a5[_0x49408b(0x28e)]=0x1f41]=_0x49408b(0x28e),_0x5817a5[_0x5817a5[_0x49408b(0x2b7)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5817a5[_0x5817a5[_0x49408b(0x178)]=0x232a]=_0x49408b(0x178),_0x5817a5[_0x5817a5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5817a5[_0x5817a5[_0x49408b(0x280)]=0x232c]=_0x49408b(0x280),_0x5817a5[_0x5817a5[_0x49408b(0x225)]=0x232d]=_0x49408b(0x225),_0x5817a5[_0x5817a5['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x49408b(0x20a),_0x5817a5[_0x5817a5['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x49408b(0x18a),_0x5817a5[_0x5817a5[_0x49408b(0x1d5)]=0x2713]=_0x49408b(0x1d5),_0x5817a5[_0x5817a5[_0x49408b(0xfa)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5817a5[_0x5817a5[_0x49408b(0x2fc)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x5817a5[_0x5817a5[_0x49408b(0x210)]=0x271b]=_0x49408b(0x210),_0x5817a5[_0x5817a5[_0x49408b(0x24c)]=0x271c]=_0x49408b(0x24c),_0x5817a5[_0x5817a5['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x49408b(0x372),_0x5817a5[_0x5817a5['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5817a5[_0x5817a5['YUUMI_AI_RUN_FAILED']=0x271f]=_0x49408b(0x28d),_0x5817a5[_0x5817a5[_0x49408b(0x29e)]=0x2af9]=_0x49408b(0x29e),_0x5817a5[_0x5817a5[_0x49408b(0x2df)]=0x2ee1]=_0x49408b(0x2df),_0x5817a5[_0x5817a5[_0x49408b(0x25d)]=0x2ee2]=_0x49408b(0x25d),_0x5817a5[_0x5817a5[_0x49408b(0x11c)]=0x2ee3]=_0x49408b(0x11c),_0x5817a5[_0x5817a5[_0x49408b(0x289)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5817a5[_0x5817a5[_0x49408b(0x1fe)]=0x2ee5]=_0x49408b(0x1fe),_0x5817a5[_0x5817a5[_0x49408b(0x327)]=0x32c9]=_0x49408b(0x327),_0x5817a5[_0x5817a5[_0x49408b(0x353)]=0x32ca]=_0x49408b(0x353),_0x5817a5[_0x5817a5[_0x49408b(0x320)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5817a5[_0x5817a5['UNRECOGNIZED']=-0x1]=_0x49408b(0x1e9),_0x5817a5))(Be||{}),ns=Object[_0x49408b(0x1d1)],rs=(_0x2f96a1,_0x24e376,_0x153b51,_0x241d0c)=>{for(var _0x31cb18=_0x241d0c>0x1?void 0x0:_0x241d0c?ns(_0x24e376,_0x153b51):_0x24e376,_0x453dc0=_0x2f96a1['length']-0x1,_0x3f55c2;_0x453dc0>=0x0;_0x453dc0--)(_0x3f55c2=_0x2f96a1[_0x453dc0])&&(_0x31cb18=_0x3f55c2(_0x31cb18)||_0x31cb18);return _0x31cb18;},ue=(_0x1680a6,_0x3e5624)=>(_0x47001d,_0x2b29bb)=>_0x3e5624(_0x47001d,_0x2b29bb,_0x1680a6);exports[_0x49408b(0x158)]=class extends a[_0x49408b(0x107)]{constructor(_0x24933d,_0x10501b,_0x4a8b3c){const _0x229f87=_0x49408b;super(),this[_0x229f87(0xe3)]=_0x24933d,this['_httpService']=_0x10501b,this[_0x229f87(0x12e)]=_0x4a8b3c;}async[_0x49408b(0x17e)](_0x5eaf44,_0x2d034e,_0x1876ca,..._0x47bde1){const _0x406512=_0x49408b;var _0x4301ea,_0x5a4183,_0x243968,_0x3294c0;const _0x820eef=this[_0x406512(0xe3)]['getFocusedUnit']();if(!_0x820eef)throw new Error(_0x406512(0x1e5));const _0x1ddcfb=((_0x4301ea=this['_configService']['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4301ea:u[_0x406512(0x352)])+'/'+_0x5eaf44+'/run/'+_0x2d034e,_0x1dd859=new URL(window['location'][_0x406512(0x152)]),_0x371f4b={'scriptId':_0x5eaf44,'runId':(_0x5a4183=_0x1dd859[_0x406512(0x36f)][_0x406512(0x140)](_0x406512(0x16b)))!=null?_0x5a4183:'','function':_0x2d034e,'unitId':_0x820eef['getUnitId'](),'argsOfFunction':JSON[_0x406512(0x1a3)](_0x47bde1),'invokeId':(_0x243968=_0x1876ca[_0x406512(0x1c0)])!=null?_0x243968:'','executionId':(_0x3294c0=_0x1876ca['executionId'])!=null?_0x3294c0:''};try{const _0x10c27c=await this[_0x406512(0x104)]['post'](_0x1ddcfb,{'body':_0x371f4b});return _0x10c27c[_0x406512(0x2f6)][_0x406512(0x123)]&&_0x10c27c[_0x406512(0x2f6)]['error'][_0x406512(0x258)]!==Be['OK']?_0x406512(0x2a4):_0x10c27c[_0x406512(0x2f6)][_0x406512(0xf3)];}catch{return _0x406512(0x2a4);}}},exports[_0x49408b(0x158)]=rs([ue(0x0,a[_0x49408b(0x213)]),ue(0x1,a[_0x49408b(0x30d)](G[_0x49408b(0x267)])),ue(0x2,a[_0x49408b(0x1ab)])],exports['RemoteUniscriptService']),exports[_0x49408b(0x2c6)]=xe,exports['IURLService']=be,exports['SheetCollabCursorShape']=Pe,exports[_0x49408b(0x164)]=is,exports[_0x49408b(0x177)]=je;
@@ -1 +1 @@
1
- 'use strict';function _0x4ec8(){const _0xf1c2ef=['Local\x20file','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','5KVScHf','1331104mdTEXN','10jPRLQf','3789498AVNKaO','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','2793984ZjqAor','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','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.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','7fUKAIc','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','24iXaTCd','4547691rFhAVK','11651783oALetE','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3lzcHJe','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing...','468357hsNAhu','Authentication\x20Error','642662IdupBj'];_0x4ec8=function(){return _0xf1c2ef;};return _0x4ec8();}const _0x456286=_0x48b5;(function(_0x232786,_0x3b41e1){const _0x27a400=_0x48b5,_0x402cf8=_0x232786();while(!![]){try{const _0x22bf5f=-parseInt(_0x27a400(0x1a6))/0x1*(-parseInt(_0x27a400(0x1ab))/0x2)+-parseInt(_0x27a400(0x1a9))/0x3*(-parseInt(_0x27a400(0x1a2))/0x4)+-parseInt(_0x27a400(0x195))/0x5*(-parseInt(_0x27a400(0x198))/0x6)+-parseInt(_0x27a400(0x19f))/0x7*(parseInt(_0x27a400(0x196))/0x8)+parseInt(_0x27a400(0x1a3))/0x9*(-parseInt(_0x27a400(0x197))/0xa)+-parseInt(_0x27a400(0x1a4))/0xb+-parseInt(_0x27a400(0x19b))/0xc;if(_0x22bf5f===_0x3b41e1)break;else _0x402cf8['push'](_0x402cf8['shift']());}catch(_0x59c241){_0x402cf8['push'](_0x402cf8['shift']());}}}(_0x4ec8,0x8acc6));function _0x48b5(_0x4c8eb9,_0x70a395){const _0x4ec843=_0x4ec8();return _0x48b5=function(_0x48b5f6,_0x35700e){_0x48b5f6=_0x48b5f6-0x195;let _0x191459=_0x4ec843[_0x48b5f6];return _0x191459;},_0x48b5(_0x4c8eb9,_0x70a395);}const e={'collab-client':{'tooltip':{'reconnect':_0x456286(0x19a)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x456286(0x1a1),'notCollab':_0x456286(0x1ac),'synced':'Synced','syncing':_0x456286(0x1a8),'offline':_0x456286(0x19e)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x456286(0x1a7),'room-full':_0x456286(0x1a0),'collaboration-timeout':_0x456286(0x19c)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x456286(0x19d)},'permission':{'title':_0x456286(0x1aa),'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':_0x456286(0x1ad)},'closeRoom':_0x456286(0x1a5)},'auth':{'needGotoLoginAlert':_0x456286(0x199)}};module['exports']=e;
1
+ 'use strict';const _0x2618bc=_0x1092;(function(_0x2d3d51,_0x202065){const _0x1044a3=_0x1092,_0x1faaef=_0x2d3d51();while(!![]){try{const _0x31dc0b=-parseInt(_0x1044a3(0x19c))/0x1+parseInt(_0x1044a3(0x196))/0x2*(-parseInt(_0x1044a3(0x1ab))/0x3)+parseInt(_0x1044a3(0x1a2))/0x4*(-parseInt(_0x1044a3(0x19f))/0x5)+-parseInt(_0x1044a3(0x199))/0x6*(-parseInt(_0x1044a3(0x1a9))/0x7)+parseInt(_0x1044a3(0x1a8))/0x8*(parseInt(_0x1044a3(0x1a3))/0x9)+-parseInt(_0x1044a3(0x19b))/0xa*(parseInt(_0x1044a3(0x1a1))/0xb)+-parseInt(_0x1044a3(0x1a7))/0xc*(-parseInt(_0x1044a3(0x195))/0xd);if(_0x31dc0b===_0x202065)break;else _0x1faaef['push'](_0x1faaef['shift']());}catch(_0x2423f6){_0x1faaef['push'](_0x1faaef['shift']());}}}(_0x4d40,0xb7ffe));function _0x1092(_0x103459,_0x519787){const _0x4d40d0=_0x4d40();return _0x1092=function(_0x10926c,_0x173c95){_0x10926c=_0x10926c-0x194;let _0x55dbcb=_0x4d40d0[_0x10926c];return _0x55dbcb;},_0x1092(_0x103459,_0x519787);}function _0x4d40(){const _0x44fd01=['Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','exports','35034AINvyA','Synced','10UhCPlp','1259849GQmNrW','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','5xCbqau','Click\x20to\x20Reconnect','5700145JjBwwd','1120552yPFArT','18lecibY','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Syncing\x20server\x20data...','Syncing...','888SiZKNt','1171064BmJIrv','469rnAKXO','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3983805AjWGIA','Authentication\x20Error','Edit\x20conflicts','Collaboration\x20Conflict','Local\x20file','607100JUQWoD','2cFxmDN'];_0x4d40=function(){return _0x44fd01;};return _0x4d40();}const e={'collab-client':{'tooltip':{'reconnect':_0x2618bc(0x1a0)}},'collabStatus':{'fetchMiss':_0x2618bc(0x1a5),'conflict':_0x2618bc(0x1ad),'notCollab':_0x2618bc(0x194),'synced':_0x2618bc(0x19a),'syncing':_0x2618bc(0x1a6),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x2618bc(0x19e),'room-full':_0x2618bc(0x19d),'collaboration-timeout':_0x2618bc(0x1a4)},'conflict':{'title':_0x2618bc(0x1ae),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x2618bc(0x1ac),'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':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x2618bc(0x1aa)},'auth':{'needGotoLoginAlert':_0x2618bc(0x197)}};module[_0x2618bc(0x198)]=e;