@univerjs-pro/collaboration-client-ui 0.15.0-insiders.20260108-7b9120d → 0.15.0-insiders.20260110-48b77c8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1d15a3=_0x2fae;(function(_0x32c2f7,_0xd4077){const _0xc55bfd=_0x2fae,_0x41375b=_0x32c2f7();while(!![]){try{const _0x51967a=-parseInt(_0xc55bfd(0x350))/0x1*(-parseInt(_0xc55bfd(0x294))/0x2)+-parseInt(_0xc55bfd(0x373))/0x3+-parseInt(_0xc55bfd(0x3f3))/0x4*(-parseInt(_0xc55bfd(0x1b5))/0x5)+parseInt(_0xc55bfd(0x1f5))/0x6+-parseInt(_0xc55bfd(0x3a3))/0x7*(-parseInt(_0xc55bfd(0x329))/0x8)+parseInt(_0xc55bfd(0x16a))/0x9*(-parseInt(_0xc55bfd(0x382))/0xa)+parseInt(_0xc55bfd(0x2d5))/0xb*(parseInt(_0xc55bfd(0x3b8))/0xc);if(_0x51967a===_0xd4077)break;else _0x41375b['push'](_0x41375b['shift']());}catch(_0xdb905b){_0x41375b['push'](_0x41375b['shift']());}}}(_0x2641,0x2fff2));var Xe=Object['defineProperty'],Ke=(_0x28b667,_0x21f85f,_0x2c2357)=>_0x21f85f in _0x28b667?Xe(_0x28b667,_0x21f85f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c2357}):_0x28b667[_0x21f85f]=_0x2c2357,_=(_0x545140,_0x3c0230,_0x21020d)=>Ke(_0x545140,typeof _0x3c0230!=_0x1d15a3(0x20b)?_0x3c0230+'':_0x3c0230,_0x21020d);Object['defineProperty'](exports,Symbol[_0x1d15a3(0x23c)],{'value':_0x1d15a3(0x21c)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x11c877,..._0x1c739b}){const _0x524105=_0x1d15a3,{icon:_0x223f69,id:_0x1ffb3d,className:_0x5c3d50,extend:_0x17acf7,..._0x2e5bb4}=_0x1c739b,_0x305672=(_0x524105(0x305)+_0x1ffb3d+'\x20'+(_0x5c3d50||''))[_0x524105(0x16f)](),_0x5bda5e=A['useRef']('_'+Qe());return $e(_0x223f69,''+_0x1ffb3d,{'defIds':_0x223f69[_0x524105(0x29d)],'idSuffix':_0x5bda5e[_0x524105(0x244)]},{'ref':_0x11c877,'className':_0x305672,..._0x2e5bb4},_0x17acf7);}function $e(_0x30bff4,_0x2c8ff1,_0x18a503,_0x34799c,_0x755125){const _0x2f2085=_0x1d15a3;return A['createElement'](_0x30bff4[_0x2f2085(0x225)],{'key':_0x2c8ff1,...Je(_0x30bff4,_0x18a503,_0x755125),..._0x34799c},(Ze(_0x30bff4,_0x18a503)[_0x2f2085(0x3a8)]||[])[_0x2f2085(0x32c)]((_0x4529da,_0x15b118)=>$e(_0x4529da,_0x2c8ff1+'-'+_0x30bff4[_0x2f2085(0x225)]+'-'+_0x15b118,_0x18a503,void 0x0,_0x755125)));}function Je(_0x5e57c7,_0x241385,_0x6d0e6){const _0x278c4f=_0x1d15a3,_0x27de7d={..._0x5e57c7[_0x278c4f(0x25a)]};_0x6d0e6!=null&&_0x6d0e6[_0x278c4f(0x39b)]&&_0x27de7d['fill']===_0x278c4f(0x39b)&&(_0x27de7d[_0x278c4f(0x242)]=_0x6d0e6[_0x278c4f(0x39b)]),_0x5e57c7['tag']===_0x278c4f(0x34e)&&_0x27de7d['id']&&(_0x27de7d['id']=_0x27de7d['id']+_0x241385['idSuffix']),Object[_0x278c4f(0x2b9)](_0x27de7d)[_0x278c4f(0x354)](([_0x2678a5,_0x44d653])=>{const _0x33d227=_0x278c4f;_0x2678a5==='mask'&&typeof _0x44d653==_0x33d227(0x401)&&(_0x27de7d[_0x2678a5]=_0x44d653['replace'](/url\(#(.*)\)/,_0x33d227(0x380)+_0x241385[_0x33d227(0x197)]+')'));});const {defIds:_0x352d6f}=_0x241385;return!_0x352d6f||_0x352d6f[_0x278c4f(0x368)]===0x0||(_0x5e57c7['tag']===_0x278c4f(0x2fb)&&_0x27de7d[_0x278c4f(0x3f1)]&&(_0x27de7d[_0x278c4f(0x3f1)]=_0x27de7d[_0x278c4f(0x3f1)]+_0x241385[_0x278c4f(0x197)]),Object[_0x278c4f(0x2b9)](_0x27de7d)[_0x278c4f(0x354)](([_0x42da85,_0x47a677])=>{const _0x5356dc=_0x278c4f;typeof _0x47a677==_0x5356dc(0x401)&&(_0x27de7d[_0x42da85]=_0x47a677[_0x5356dc(0x344)](/url\(#(.*)\)/,_0x5356dc(0x380)+_0x241385[_0x5356dc(0x197)]+')'));})),_0x27de7d;}function Ze(_0x1e2718,_0x33c17a){const _0x58000f=_0x1d15a3;var _0x347147;const {defIds:_0x417486}=_0x33c17a;return!_0x417486||_0x417486[_0x58000f(0x368)]===0x0?_0x1e2718:_0x1e2718[_0x58000f(0x225)]===_0x58000f(0x259)&&((_0x347147=_0x1e2718[_0x58000f(0x3a8)])!=null&&_0x347147['length'])?{..._0x1e2718,'children':_0x1e2718[_0x58000f(0x3a8)][_0x58000f(0x32c)](_0x2354da=>typeof _0x2354da[_0x58000f(0x25a)]['id']==_0x58000f(0x401)&&_0x417486&&_0x417486[_0x58000f(0x167)](_0x2354da[_0x58000f(0x25a)]['id'])?{..._0x2354da,'attrs':{..._0x2354da[_0x58000f(0x25a)],'id':_0x2354da['attrs']['id']+_0x33c17a[_0x58000f(0x197)]}}:_0x2354da)}:_0x1e2718;}function Qe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}pe[_0x1d15a3(0x272)]=_0x1d15a3(0x408);const et={'tag':'svg','attrs':{'xmlns':_0x1d15a3(0x3ba),'fill':'none','viewBox':_0x1d15a3(0x432),'width':_0x1d15a3(0x2e8),'height':_0x1d15a3(0x2e8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1d15a3(0x2f3),'strokeLinecap':_0x1d15a3(0x3fe),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1d15a3(0x259),'attrs':{},'children':[{'tag':_0x1d15a3(0x2c9),'attrs':{'id':_0x1d15a3(0x416)},'children':[{'tag':'path','attrs':{'fill':_0x1d15a3(0x16e),'d':_0x1d15a3(0x23a)}}]}]}],'defIds':[_0x1d15a3(0x416)]},xe=A['forwardRef'](function(_0x1fb4e3,_0x4c4f52){const _0x5935f1=_0x1d15a3;return A[_0x5935f1(0x2c0)](pe,Object['assign']({},_0x1fb4e3,{'id':_0x5935f1(0x36c),'ref':_0x4c4f52,'icon':et}));});xe[_0x1d15a3(0x272)]=_0x1d15a3(0x3ff);const tt={'tag':_0x1d15a3(0x1fb),'attrs':{'xmlns':_0x1d15a3(0x3ba),'fill':_0x1d15a3(0x2a4),'viewBox':_0x1d15a3(0x3ac),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1d15a3(0x2f6)},'children':[{'tag':_0x1d15a3(0x33f),'attrs':{'stroke':_0x1d15a3(0x29f),'d':_0x1d15a3(0x2e9),'strokeLinecap':_0x1d15a3(0x3fe),'strokeLinejoin':_0x1d15a3(0x3fe),'strokeWidth':1.2}}]},{'tag':_0x1d15a3(0x259),'attrs':{},'children':[{'tag':_0x1d15a3(0x2c9),'attrs':{'id':_0x1d15a3(0x3e3)},'children':[{'tag':_0x1d15a3(0x33f),'attrs':{'fill':_0x1d15a3(0x16e),'d':_0x1d15a3(0x23a),'transform':_0x1d15a3(0x2c6)}}]}]}],'defIds':[_0x1d15a3(0x3e3)]},Be=A[_0x1d15a3(0x226)](function(_0x1fff27,_0x4db9ef){const _0x5670d4=_0x1d15a3;return A[_0x5670d4(0x2c0)](pe,Object[_0x5670d4(0x3ce)]({},_0x1fff27,{'id':_0x5670d4(0x3af),'ref':_0x4db9ef,'icon':tt}));});Be[_0x1d15a3(0x272)]=_0x1d15a3(0x2af);function st(_0x4d24e2){const _0x14983a=_0x1d15a3;switch(_0x4d24e2){case u[_0x14983a(0x384)][_0x14983a(0x1f4)]:return _0x14983a(0x1f1);case u['CollaborationStatus'][_0x14983a(0x266)]:return _0x14983a(0x19d);case u[_0x14983a(0x384)][_0x14983a(0x26e)]:return _0x14983a(0x179);case u[_0x14983a(0x384)][_0x14983a(0x265)]:return _0x14983a(0x26d);case u[_0x14983a(0x384)][_0x14983a(0x161)]:case u[_0x14983a(0x384)][_0x14983a(0x371)]:return _0x14983a(0x199);case u[_0x14983a(0x384)][_0x14983a(0x223)]:case u['CollaborationStatus'][_0x14983a(0x289)]:return _0x14983a(0x2eb);}}function it(_0x57a858){const _0x443eab=_0x1d15a3,{status$:_0x53c893}=_0x57a858,_0x4ff445=O[_0x443eab(0x2f7)](_0x53c893,u[_0x443eab(0x384)][_0x443eab(0x265)]),_0x453b2b=O[_0x443eab(0x397)](a[_0x443eab(0x379)]),_0x1818f1=O[_0x443eab(0x397)](u['CollaborationSessionService']),_0x367427=_0x4ff445!==u['CollaborationStatus'][_0x443eab(0x1f4)],_0x342282=_0x453b2b['t'](st(_0x4ff445)),_0x21d2b5=_0x367427?M[_0x443eab(0x1a0)](Be,{}):M[_0x443eab(0x1a0)](xe,{}),_0x99f183=A[_0x443eab(0x30c)](()=>{const _0x5d853f=_0x443eab;_0x367427||_0x1818f1[_0x5d853f(0x36d)]();},[_0x367427,_0x1818f1]);function _0x29d549(){const _0x2b615f=_0x443eab;return M[_0x2b615f(0x3e0)](_0x2b615f(0x31c),{'className':_0x2b615f(0x2da),'onClick':_0x99f183,'children':[M[_0x2b615f(0x1a0)](_0x2b615f(0x31c),{'className':p[_0x2b615f(0x271)](_0x2b615f(0x269),{'univer-text-green-500':_0x367427,'univer-text-red-500':!_0x367427}),'children':_0x21d2b5}),M['jsx'](_0x2b615f(0x31c),{'className':_0x2b615f(0x419),'children':_0x342282})]});}return _0x367427?_0x29d549():M[_0x443eab(0x1a0)](p[_0x443eab(0x298)],{'title':_0x453b2b['t']('collab-client.tooltip.reconnect'),'children':_0x29d549()});}var nt=Object[_0x1d15a3(0x1e0)],rt=(_0x64e2a5,_0xd18d2a,_0x28d667,_0x121a5c)=>{for(var _0x83a806=_0x121a5c>0x1?void 0x0:_0x121a5c?nt(_0xd18d2a,_0x28d667):_0xd18d2a,_0x493f73=_0x64e2a5['length']-0x1,_0x5bf5b4;_0x493f73>=0x0;_0x493f73--)(_0x5bf5b4=_0x64e2a5[_0x493f73])&&(_0x83a806=_0x5bf5b4(_0x83a806)||_0x83a806);return _0x83a806;},K=(_0x5483cb,_0x1f382b)=>(_0x40e995,_0x3b8422)=>_0x1f382b(_0x40e995,_0x3b8422,_0x5483cb);exports[_0x1d15a3(0x284)]=class extends a[_0x1d15a3(0x2cf)]{constructor(_0x596fdd,_0x45d11a,_0x4a2848,_0x5a4d43){const _0x38175c=_0x1d15a3;super(),_(this,_0x38175c(0x2a1),new I[(_0x38175c(0x288))](u[_0x38175c(0x384)][_0x38175c(0x265)])),(this[_0x38175c(0x2d3)]=_0x596fdd,this['_injector']=_0x45d11a,this[_0x38175c(0x21d)]=_0x4a2848,this[_0x38175c(0x18d)]=_0x5a4d43,this[_0x38175c(0x1e3)](),this['_initStatusListener']());}[_0x1d15a3(0x16b)](){const _0x474ecc=_0x1d15a3;this[_0x474ecc(0x35d)](this[_0x474ecc(0x2d3)][_0x474ecc(0x293)]['pipe'](I[_0x474ecc(0x29b)](()=>{const _0x2e389c=_0x474ecc,_0x167c66=this[_0x2e389c(0x2d3)][_0x2e389c(0x1e4)]();return _0x167c66?this[_0x2e389c(0x21d)][_0x2e389c(0x310)](_0x167c66[_0x2e389c(0x2a7)]()):I['of'](null);}),I[_0x474ecc(0x29b)](_0x2ff3c4=>_0x2ff3c4?_0x2ff3c4['status$']:I['of'](u[_0x474ecc(0x384)][_0x474ecc(0x265)])))['subscribe'](_0xc4ab4a=>{const _0x21bc85=_0x474ecc;this['_status$'][_0x21bc85(0x423)](_0xc4ab4a);}));}[_0x1d15a3(0x1e3)](){const _0x493968=_0x1d15a3;this[_0x493968(0x35d)](this[_0x493968(0x18d)][_0x493968(0x203)](O[_0x493968(0x420)][_0x493968(0x394)],()=>O[_0x493968(0x360)](ot({'status$':this[_0x493968(0x2a1)][_0x493968(0x332)]()}),this[_0x493968(0x3d4)])));}},exports[_0x1d15a3(0x284)]=rt([K(0x0,a[_0x1d15a3(0x182)]),K(0x1,a[_0x1d15a3(0x17f)](a[_0x1d15a3(0x173)])),K(0x2,a[_0x1d15a3(0x17f)](u[_0x1d15a3(0x165)])),K(0x3,O[_0x1d15a3(0x164)])],exports[_0x1d15a3(0x284)]);function ot(_0x1fd144){const {status$:_0x533cc4}=_0x1fd144;return function(){const _0x4441ef=_0x2fae;return M[_0x4441ef(0x1a0)](it,{'status$':_0x533cc4});};}const Oe=a['createIdentifier'](_0x1d15a3(0x28c));var at=Object[_0x1d15a3(0x1e0)],ct=(_0x3ff7fd,_0x5605a3,_0xcbfbe9,_0x1ccd4f)=>{const _0x1f1c28=_0x1d15a3;for(var _0x3a3f37=_0x1ccd4f>0x1?void 0x0:_0x1ccd4f?at(_0x5605a3,_0xcbfbe9):_0x5605a3,_0x16f32f=_0x3ff7fd[_0x1f1c28(0x368)]-0x1,_0x2f37c0;_0x16f32f>=0x0;_0x16f32f--)(_0x2f37c0=_0x3ff7fd[_0x16f32f])&&(_0x3a3f37=_0x2f37c0(_0x3a3f37)||_0x3a3f37);return _0x3a3f37;},Y=(_0x52a593,_0x55f51e)=>(_0x4d77e0,_0x2b5218)=>_0x55f51e(_0x4d77e0,_0x2b5218,_0x52a593);exports[_0x1d15a3(0x1fa)]=class extends a[_0x1d15a3(0x174)]{constructor(_0x35e67a,_0x321bcb,_0x386cbb,_0x1ed11a,_0x4816a8){const _0x196259=_0x1d15a3;super(),this['_urlService']=_0x35e67a,this[_0x196259(0x3c0)]=_0x321bcb,this[_0x196259(0x370)]=_0x386cbb,this[_0x196259(0x31a)]=_0x1ed11a,_0x4816a8?_0x4816a8==null||_0x4816a8[_0x196259(0x295)]()[_0x196259(0x308)](()=>this[_0x196259(0x29c)]()):(this['_logService'][_0x196259(0x3c5)](_0x196259(0x37c),_0x196259(0x3ed)),this[_0x196259(0x29c)]());}async[_0x1d15a3(0x29c)](){const _0x50f9b8=_0x1d15a3,_0x375079=this['_urlService'][_0x50f9b8(0x1db)](_0x50f9b8(0x3ee)),_0x26cbdf=this[_0x50f9b8(0x28b)][_0x50f9b8(0x1db)](_0x50f9b8(0x2fc)),_0x65235e=this[_0x50f9b8(0x28b)]['getParam'](_0x50f9b8(0x1fc));if(!_0x375079||!_0x26cbdf){this['_logService'][_0x50f9b8(0x3c5)](_0x50f9b8(0x37c),_0x50f9b8(0x1b9));return;}const _0x13e99a=await this['_dataLoaderService'][_0x50f9b8(0x2ec)](_0x375079,Number(_0x26cbdf),_0x65235e);_0x13e99a&&_0x13e99a instanceof a[_0x50f9b8(0x321)]&&this[_0x50f9b8(0x22e)](_0x13e99a);}async['_setupSubUnitSync'](_0x569954){const _0x2a702c=_0x1d15a3;await this[_0x2a702c(0x256)](_0x569954),_0x569954[_0x2a702c(0x34a)][_0x2a702c(0x2ae)](I[_0x2a702c(0x2c3)](this['dispose$']))[_0x2a702c(0x1fe)](_0x1bdd7c=>{const _0x27520d=_0x2a702c;_0x1bdd7c&&this[_0x27520d(0x176)](_0x1bdd7c);}),this[_0x2a702c(0x28b)][_0x2a702c(0x206)][_0x2a702c(0x2ae)](I['takeUntil'](this[_0x2a702c(0x43c)]))[_0x2a702c(0x1fe)](()=>this[_0x2a702c(0x256)](_0x569954));}[_0x1d15a3(0x176)](_0x1065f9,_0x2d0bd4=!0x1){const _0x56b165=_0x1d15a3,_0x25813f=this[_0x56b165(0x28b)]['getParam'](_0x56b165(0x1fc));_0x1065f9[_0x56b165(0x39f)]()!==_0x25813f&&this['_urlService']['setParam'](_0x56b165(0x1fc),_0x1065f9['getSheetId'](),_0x2d0bd4);}async[_0x1d15a3(0x256)](_0x36c95b){const _0x3b9136=_0x1d15a3;var _0x502b88;const _0x2ea100=this[_0x3b9136(0x28b)][_0x3b9136(0x1db)](_0x3b9136(0x1fc));if(!_0x2ea100||!_0x36c95b['getSheetBySheetId'](_0x2ea100)){const _0x3e8f4b=_0x36c95b[_0x3b9136(0x396)]()[0x0],_0x4d5167=_0x36c95b[_0x3b9136(0x1a8)](_0x3e8f4b);if(!_0x4d5167)return;this[_0x3b9136(0x176)](_0x4d5167,!0x0),await this[_0x3b9136(0x370)][_0x3b9136(0x218)](v[_0x3b9136(0x1e9)]['id'],{'unitId':_0x36c95b[_0x3b9136(0x2a7)](),'subUnitId':_0x3e8f4b});return;}((_0x502b88=_0x36c95b[_0x3b9136(0x3b9)]())==null?void 0x0:_0x502b88['getSheetId']())!==_0x2ea100&&await this['_commandService'][_0x3b9136(0x218)](v[_0x3b9136(0x1e9)]['id'],{'unitId':_0x36c95b[_0x3b9136(0x2a7)](),'subUnitId':_0x2ea100});}},exports[_0x1d15a3(0x1fa)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x1d15a3(0x2c2)]),Y(0x3,a['Inject'](u[_0x1d15a3(0x2d6)])),Y(0x4,a['Optional'](qe[_0x1d15a3(0x1b6)]))],exports[_0x1d15a3(0x1fa)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x43c526,_0x3ac6dc,_0x472d3a,_0x496960)=>{const _0x33a778=_0x1d15a3;for(var _0x1b2ead=_0x496960>0x1?void 0x0:_0x496960?lt(_0x3ac6dc,_0x472d3a):_0x3ac6dc,_0x2c42e1=_0x43c526[_0x33a778(0x368)]-0x1,_0x42283b;_0x2c42e1>=0x0;_0x2c42e1--)(_0x42283b=_0x43c526[_0x2c42e1])&&(_0x1b2ead=_0x42283b(_0x1b2ead)||_0x1b2ead);return _0x1b2ead;},De=(_0x3972e8,_0x2bf13f)=>(_0x580432,_0x556c6e)=>_0x2bf13f(_0x580432,_0x556c6e,_0x3972e8);let me=class extends a[_0x1d15a3(0x174)]{constructor(_0x4a9b0d,_0x5368c8){const _0x352134=_0x1d15a3;super(),this[_0x352134(0x21b)]=_0x4a9b0d,this[_0x352134(0x1f7)]=_0x5368c8,this['_init']();}[_0x1d15a3(0x29c)](){const _0x55bd3e=_0x1d15a3,_0xfd9c37=this;this[_0x55bd3e(0x35d)](this[_0x55bd3e(0x21b)]['addClipboardHook']({'onBeforePasteImage':async _0x3b01d3=>{const _0x4354c6=_0x55bd3e,_0x4a2274=await _0xfd9c37['_imageIoService'][_0x4354c6(0x3c2)](_0x3b01d3);return _0x4a2274?{'source':_0x4a2274[_0x4354c6(0x3ad)],'imageSourceType':_0x4a2274[_0x4354c6(0x406)]}:null;}}));}};me=_t([De(0x0,T[_0x1d15a3(0x2e7)]),De(0x1,ze['IImageIoService'])],me);function _0x2641(){const _0x5ae985=['UniverInstanceType','_updateSubUnitFromURLParams','override','range','defs','attrs','_handleHover','OTHER_CLIENTS_EDITING','/universer-api/license/formula/limit/status','SheetCollabCursorShape','_scheduleSaving','DATA_SOURCE_TOO_LARGE','Rectangle','CHANGESET_REVISION_CONFILICT','_assignedColors','show','NOT_COLLAB','CONFLICT','AUTHORIZE_CODE_ILLEGAL','OTHER_CLIENT_EDITING','univer-mr-2\x20univer-flex\x20univer-text-xl','join','values','ALREADY_EXISTS','collabStatus.notCollab','FETCH_MISS','getAncestorScale','sessionTicket','clsx','displayName','_collaborationSessionService','CollaborationSocketService','registerRefRange','UPDATE_CURSOR','docStateChange$','_color','YUUMI_AI_RUN_FAILED','params','labelPosition','CURRENT_STATUS_CANNOT_OPERATE','toString','requireSession','onTransformChange$','_updateLocalCursor','addHandlerCallback','code','size','DesktopCollaborationStatusDisplayController','arc','ENTITLE_USE_COUPON_NOT_1ST_TRADE','removeParam','BehaviorSubject','PENDING','_transformHistoryAndStateStack','_urlService','uni.network.url-service','isTransformMutationsWithChangesetSuccess','cursorInfo$','_docSkeletonManagerService','EffectRefRangId','_handleHeartbeatEvent','resize','focused$','20CtrccF','whenReady','collab-text-anchor-','setShapeProps','Tooltip','has','LICENSE_MAX_UNITS_EXCEEDED','switchMap','_init','defIds','all','currentColor','YUUMI_UNABLE_LOAD_URL','_status$','getStateCache','\x20at\x20','none','getRenderById','_lastResponseTimestamp','getUnitId','handleInsertRangeMoveDown','TEXT','ENTITLE_REPORT_LIMIT_EXCEED','HTTPService','UnitStatus','endColumn','pipe','OnLineIcon','registerBeforeClose','transformRemoteChangeset','collab-rect-range-','font','getformulaLimitStatusUrl','DocIMEInputManagerService','_send','WebSocketService','session.collaboration-timeout','entries','_refRangeService','RemoteUniscriptService','transformMutationsWithChangeset','SetDocZoomRatioOperation','ISocketService','socket$','createElement','_name','ICommandService','takeUntil','InsertRangeMoveDownCommandId','COMPLETION_FINISHED','translate(.97)','_cursors','FormulaExecutedStateType','clipPath','body','from','runOnServer','setActiveRange','_docSyncEditingCollabCursorService','Disposable','_getMergeRange','_getSessionTicket','unload','_univerInstanceService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','29040bivCiX','DataLoaderService','TEXT_RANGE_LAYER_INDEX','EMAIL_VERIFY_CODE_MISMATCH','REDEMPTION_CODE_HAS_BEEN_CREATED','univer-flex\x20univer-items-center','makeDirty','min','with','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','MOBILE_HAS_BEEN_BOUND','formula.calculation.waiting','loadOfflineData','replaceState','transformSelections','yellow.400','REDEMPTION_CODE_INACTIVE','IDocClipboardService','1em','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','/universer-api/frontend/logs','collabStatus.synced','loadUnit','_transformUndoRedoStack','DEFAULT_WS_SESSION_TICKET_URL','USER_IS_ANONYMOUS','complete','endRow','NodePositionConvertToRectRange','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','LICENSE_DISTRO_REJECTED','getMember','url(#on-line-icon_clip0_910_349)','useObservable','COLORS','transformStateCache','Rect','use','type','PERMISSION_DENIED','_handleLeaveEvent','maxFormulaLimit','disposeUnit','ACTIVE_UNIT_EVENT_CHANNEL','registerDependencies','_entityInit$','_selfUnitIDs','univerjs-icon\x20univerjs-icon-','getTypeOfUnitAdded$','filter','then','USER_NOT_INVITED_CODE','ENTITLE_INSUFFICIENT_QUOTA','_configService','useCallback','_startSheetCollabCursor','MoveRangeCommandId','WECHAT_HAS_BEEN_BOUND','getCollabEntity$','onMouseMove','collaboration.closeRoom','_showGuardMessage','NOT_FOUND','...','defineProperty','RECT','APPLY_REJECT','RevisionService','_dataLoaderService','transform','div','_cachedData','MUTATION','_localeService','SessionStatus','Workbook','getSheetObject','_getSheetObject','startRow','DocSelectionManagerService','backgroundColor','USER_NOT_FOUND','IConfigService','20024kObwkE','_roomMembers$','enableLocalCache','map','Unknown\x20user','getCurrentUnitForType','_anchorDot','_saveTaskMap','WebBrowserSingleActiveUnitService','asObservable','unshift','updateOfflineData','red.300','_messageService','saveOfflineData','replaceDocRanges','IBeforeCloseService','distinctUntilChanged','START_CALCULATION','lineTo','mergeOverrideWithDependencies','evenodd','path','isFormulaId','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_scheduleHeartbeat','_initEntityListener','replace','IRenderManagerService','UNDEFINED','post','getLocalCacheKey','ColorKit','activeSheet$','send','some','_clearPolling','mask','UNIVER_DOC','11161QyvrDW','dispose','_monkeyPatchLogService','ITransformService','forEach','BrowserCollaborationSocketService','_getSaveTimeout','_toggleOffline','_renderManagerService','_pollingInterval','_colorIndex','currentSkeleton$','get','disposeWithMe','onPointerLeave$','_shapes','connectInjector','deepClone','add','getCurrentRevOfUnit','_drawAnchor','_range','_labelPosition','_cursor','length','history','_notificationService','location','off-line-icon','reconnect','_docTransformIMECacheService','key','_commandService','AWAITING_WITH_PENDING','INVITE_CODE_ALREADY_BOUND','809199NHpbmN','_unitStatus','NodePositionConvertToCursor','LOGIN_FAILED','generateRandomId','IURLService','LocaleService','_handleEvent','INVITE_CODE_HAS_BEEN_UES','[CollaborationDataLoaderController]','assignAColorForMemberID','/universer-api/license/formula/limit/done','restore','url(#$1','REDEMPTION_USER_NOT_ELIGIBLE','730nkRxDs','_startCalculationLimit','CollaborationStatus','memberID','toRgbString','doc.mutation.rich-text-editing','FromArray','saveTaskMap','_transformService','APPLY_REVISION_CONFILICT','editingUnit','runId','PAYMENT_CHANNEL_NOT_SUPPORT','_initCommandExecutedListener','DocCollaborationEntity','_docStateChangeManagerService','set','getCollabCursors$','HEADER_MENU','_instanceService','getUnhiddenWorksheets','useDependency','lineno','APPLY_PERMISSION_DENIED','unhandledrejection','colorChannel1','REDEMPTION_INVALID_CODE','ILogService','init','getSheetId','_unitOnClients','onStarting','_beforeCloseService','77QKKraa','getCurrentSelections','sheetID','colno','deserializeRangeWithSheet','children','CommandType','permission.content','split','0\x200\x2017\x2016','source','collaboration.single-unit.warning','on-line-icon','INVITE_CODE_REQUIRED','catch','Error','_setFormulaLimitStatus','DOC_RANGE_TYPE','handleDeleteRangeMoveLeft','_initWindowErrorListener','searchParams','72CyClku','getActiveSheet','http://www.w3.org/2000/svg','_draw','SetFormulaCalculationNotificationMutation','collaboration-client-ui.config','getViewport','getColor','_logService','startsWith','saveImage','SNAPSHOT_HAS_BEEN_REMOVED','currentUsage','debug','_onCursorDelete','_onRefRangeChange','mapTo','INTERNAL_ERROR','USERS_LEAVE','_textBubble','fillText','/run/','assign','_initCommandInterceptor','_scene','YUUMI_CONNECTOR_URL_NOT_FOUND','addObjects','handleIRemoveCol','_injector','INotificationService','_backgroundColor','_colorAssignService','CollaborationUIEventService','MOBILE_VERIFY_CODE_MISMATCH','blue.400','addEventListener','search','permission.title','_collabCursorController','fromEvent','jsxs','_currentUsage','closePath','on-line-icon_clip0_910_349','transformIMECache','cursorInfo','CONNECTOR_DATA_TOO_LARGE','bottom','_render','touchDependencies','SetTextSelectionsOperation','width','_transformPreviousActiveRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unit','createInstance','_sheetSkeletonManagerService','xlink:href','_hover','4884BNUPNd','_heartbeatTimer','unitId','_context','green.600','_initEvent','top','REDEMPTION_CODE_FULLY_REDEEMED','_cursorInfo$','entityInit$','storage','round','OffLineIcon','formula.calculation.unable','string','ENSURE_SNAPSHOT_EXECUTION','RemoveColCommandId','redoState','DocSkeletonManagerService','imageSourceType','getTypeOfUnitDisposed$','UniverIcon','stringify','clearInterval','#FFF','textRanges','_drawTextRange','IMessageService','delete','_ensureSubject','debounceTime','_scheduleClearOtherTimer','popstate','_registerRenderDependencies','_onCursorUpdate','off-line-icon_clip0_910_343','CollaborationSessionService','getUnit','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_hasFormulaInDirtyRanges','InsertRowCommandId','onPointerEnter$','_removeCollabCursors','toDisposable','href','BuiltInUIPart','ILocalCacheService','ILocalStorageService','next','[RemoteUniscriptService]:\x20no\x20focused\x20unit','roomMembers','_lastPointer','_themeService','setTimeout','onPointerMove$','transformMutation','SheetsSelectionsService','_clearOtherTimers','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','parseInt','_docTransformSelectionsService','_uploadLog','isEditing','0\x200\x2016\x2016','application/json','APPLY_DUPLICATED','isActive','exhaustSavingTask','APPLY_NON_SEQUENTIAL_REVISION','_checkCalculationAvailable','?taskId=','_id','SNAPSHOT_INVALID_SNAPSHOT','dispose$','ENTITLE_CHAT_LIMIT_EXCEED','_doCreateSocket','DocStateChangeManagerService','AWAITING','_updateCollabCursors','subUnitId','IUIPartsService','CollaborationController','drawWith','includes','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','setItem','7929CwqeuC','_initStatusListener','clearTimeout','subscribeEvent','white','trim','handleMoveRange','_initUserListener','REDEMPTION_CODE_NOT_STARTED','Injector','RxDisposable','_collaborationUIEventService','_updateURLWithCurrentState','m2Prime','SUBMIT_CHANGESET_TIMEOUT','collabStatus.fetchMiss','_cursorShapes','merge','REDEMPTION_USER_REDEEM_TIMES_EXCEED','EMAIL_HAS_BEEN_BOUND','beforeCommandExecuted','Inject','session.connection-failed','registerRenderModule','IUniverInstanceService','fillStyle','data','Failed','getRangePointData','releaseFormulaLimitUrl','YUUMI_ASYNCIO_CANCELLED','enableFrontendLog','CollaborationUIEventId','_disabled','ONLINE','_uiPartsService','ENTITLE_NEED_BILLING_ADDRESS','transformByState','newValue','getCellMatrix','UniverCollaborationClientUIPlugin','_memberService','color','_config','_applyCommand','idSuffix','handleDeleteRangeMoveUp','collabStatus.syncing','addObject','handleIRemoveRow','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.conflict','_anchor','_entities','jsx','actions','Vector2','_session','_localStorageService','getValue','ERROR_AGAIN','CollaborationEvent','getSheetBySheetId','getVpScrollXYInfoByPosToVp','message','/universer-api/license/formula/limit/start','beginPath','LICENSE_EXPORT_SIZE_EXCEEDED','_localCacheService','getColorFromTheme','_hideTimer','_maxFormulaLimit','_getScale','ISnapshotServerService','selection','730kUFUur','IRemoteInstanceService','formula.calculation.started','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','black','isFormulaString','RegularPolygon','debounce','MessageType','getCurrent','onRendered','_initResize','_setupBeforeClosingHandler','limitInfo','_refreshCollabCursors','WebURLService','YUUMI_ALL_TABLES_IS_INVALID','YUUMI_URL_COL_OUT_OF_RANGE','_syncEditingCollabCursorService','m1Prime','YUUMI_NO_CUBOID_FOR_QUESTION','_createSocketURL','Plugin','_removeClearOtherTimer','_releaseCalculationLimit','findNodePositionByCharIndex','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_docTransformStateCacheService','UNRECOGNIZED','INVALID_ARGUMENT','getMemberID','RemoveRowCommandId','save','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_SUBSCRIPTION_NOT_FOUND','serializeRangeWithSheet','eventID','getParam','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','selections','collabCursorState$','SetFormulaCalculationStartMutation','getOwnPropertyDescriptor','push','now','_initStatusComponent','getFocusedUnit','SheetSkeletonManagerService','_getAnchorBounding','_initUnhandledRejectionListener','_handleJoinEvent','SetWorksheetActivateCommand','name','measureText','text','_eventUnsubscribe','[Unhandled\x20Rejection]:\x20','CanceledError','Loading','collabStatus.offline','_taskIds','sessionStatus$','OFFLINE','1184346VrGnJP','_online','_imageIoService','unitID','onCommandExecuted','CollaborationDataLoaderController','svg','subunit','invokeId','subscribe','column','DeleteRangeMoveLeftCommandId','_drawRectRange','dirtyRanges','registerComponent','setConfig','LOCAL_CACHE_INTERVAL','urlChange$','ENTITLE_COUPON_EXPIRED','sheetId','_hovered','hide','symbol','ranges','isArray','error','getUndoRedoMutationParamsCache','_httpService','_saveCache','removeEventListener','pushState','JOIN_ROOM_FAILED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','YUUMI_RATE_OVER_LIMIT','rgba(255,\x20255,\x20255,\x200.01)','executeCommand','_initDependencies','RefRangeService','_docClipboardService','Module','_collaborationController','getUnitStatus$','undoState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_memberID','_revisionService','SYNCED','SUCCESS','tag','forwardRef','unsubscribe','_collabCursorState$','setAlpha','UNIVER_SHEET','Warning','flatMap','setInterval','_setupSubUnitSync','PY_RUNTIME_SCRIPT_ERROR','throttleTime','pluginName','handleInsertCol','getConfig','executionId','_checkAndWaitForCalculationPermission','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UniverCollaborationClientPlugin','jiqing.500','TOO_MANY_REQUESTS','M0\x200H16V16H0z','stack','toStringTag','getDocRanges','_collabSessionService','height','wsSessionTicketUrl','origin','fill','stageInfo','current','isTransformMutationFailure','MemberService','getRelativeToViewportCoord','getSkeleton','LOGIN_TOKEN_PROCESSING_FAILED','handleInsertRow','moveTo','event$','Shape','ENTITLE_DUP_SUBSCRIPTION','fromEventSubject','mutations','Tools','_toggleOnline','DependentOn','_document'];_0x2641=function(){return _0x5ae985;};return _0x2641();}const Ne=['purple.300',_0x1d15a3(0x238),_0x1d15a3(0x3f7),_0x1d15a3(0x335),_0x1d15a3(0x3da),_0x1d15a3(0x2e5)];class Re extends a['Disposable']{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x1d15a3(0x37d)](_0x2b8a32){const _0xfc70a0=_0x1d15a3;if(this[_0xfc70a0(0x263)][_0xfc70a0(0x299)](_0x2b8a32))return this['_assignedColors'][_0xfc70a0(0x35c)](_0x2b8a32);const _0x43467e=Ne[this[_0xfc70a0(0x35a)]];return this['_colorIndex']=(this[_0xfc70a0(0x35a)]+0x1)%Ne['length'],this[_0xfc70a0(0x263)][_0xfc70a0(0x392)](_0x2b8a32,_0x43467e),_0x43467e;}}function Fe(_0x854521){let _0x7557d2='';for(const _0x3e2c30 of _0x854521){const {startOffset:_0x2e63df,endOffset:_0x4ef576,isActive:_0x1f5e65,rangeType:_0x5cbd56,segmentId:_0x2b40f4,segmentPage:_0x4f184e}=_0x3e2c30;_0x7557d2['length']&&(_0x7557d2+=','),_0x7557d2+=_0x2e63df+':'+_0x4ef576+':'+(_0x1f5e65?'1':'0')+':'+_0x5cbd56+':'+_0x2b40f4+':'+_0x4f184e;}return _0x7557d2;}function ht(_0x5c8191){const _0x223938=_0x1d15a3,_0x1f11e6=_0x5c8191[_0x223938(0x3ab)](','),_0x229f71=[];for(const _0x5b6e18 of _0x1f11e6){const [_0x2d0303,_0x57f04f,_0x8eda2f,_0x48a423,_0xf56ac0,_0x4719c8]=_0x5b6e18[_0x223938(0x3ab)](':');_0x229f71[_0x223938(0x1e1)]({'startOffset':Number(_0x2d0303),'endOffset':Number(_0x57f04f),'collapsed':_0x2d0303===_0x57f04f,'isActive':_0x8eda2f==='1','rangeType':_0x48a423===a[_0x223938(0x3b4)][_0x223938(0x2a9)]?a[_0x223938(0x3b4)][_0x223938(0x2a9)]:a[_0x223938(0x3b4)][_0x223938(0x317)],'segmentId':typeof _0xf56ac0=='string'?String(_0xf56ac0):'','segmentPage':Number(_0x4719c8!=null?_0x4719c8:-0x1)});}return _0x229f71[_0x223938(0x34c)](_0x1a612b=>_0x1a612b[_0x223938(0x435)])||(_0x229f71[0x0][_0x223938(0x435)]=!0x0),_0x229f71;}class be extends a['RxDisposable']{constructor(){const _0x50120d=_0x1d15a3;super(...arguments),_(this,_0x50120d(0x228),new I[(_0x50120d(0x288))](null)),_(this,_0x50120d(0x1de),this['_collabCursorState$'][_0x50120d(0x332)]());}['syncEditingCollabCursor'](_0x172693){const _0x582435=_0x1d15a3,{unitID:_0x2b6271,memberID:_0x4ece66,textRanges:_0x2c93f4}=_0x172693,_0x5a7949=Fe(_0x2c93f4);if(_0x5a7949==='')return;const _0x2ce63f={'unitID':_0x2b6271,'memberID':_0x4ece66,'selection':_0x5a7949};this[_0x582435(0x228)]['next'](_0x2ce63f);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x432cec,_0x5b8072,_0x279663,_0x44c9c8)=>{const _0x2fcf6d=_0x1d15a3;for(var _0x3b0b79=_0x44c9c8>0x1?void 0x0:_0x44c9c8?ut(_0x5b8072,_0x279663):_0x5b8072,_0x57d2e9=_0x432cec[_0x2fcf6d(0x368)]-0x1,_0x24a3fb;_0x57d2e9>=0x0;_0x57d2e9--)(_0x24a3fb=_0x432cec[_0x57d2e9])&&(_0x3b0b79=_0x24a3fb(_0x3b0b79)||_0x3b0b79);return _0x3b0b79;},U=(_0x2e725b,_0x334d99)=>(_0x2e13eb,_0x1bf77d)=>_0x334d99(_0x2e13eb,_0x1bf77d,_0x2e725b);const St=0x12c,dt=0x64;let ve=class extends a[_0x1d15a3(0x174)]{constructor(_0x3a60fe,_0x51d85d,_0x3dda0a,_0x4ba2cb,_0x580349,_0x5b468b,_0x3d3ba2,_0x53518f,_0x3905ff){const _0x43e18d=_0x1d15a3;super(),_(this,_0x43e18d(0x1f6),!0x1),_(this,_0x43e18d(0x29c),!0x1),_(this,_0x43e18d(0x3fb),new I[(_0x43e18d(0x288))](new Map())),_(this,_0x43e18d(0x28e),this[_0x43e18d(0x3fb)]['asObservable']()),_(this,_0x43e18d(0x32a),new I[(_0x43e18d(0x288))]([])),_(this,'roomMembers$',this[_0x43e18d(0x32a)]['pipe'](I[_0x43e18d(0x411)](St))),_(this,_0x43e18d(0x280),a[_0x43e18d(0x1bd)](_0x440477=>{const _0x3fe007=_0x43e18d,_0x32a1b0={'eventID':g[_0x3fe007(0x1a7)][_0x3fe007(0x276)],'data':{'unitID':this[_0x3fe007(0x1f8)],'memberID':this['_session'][_0x3fe007(0x1d4)](),'selection':Fe(_0x440477)}};this[_0x3fe007(0x1a3)][_0x3fe007(0x34b)](_0x32a1b0,this[_0x3fe007(0x1f8)]);},dt)),(this[_0x43e18d(0x1f8)]=_0x3a60fe,this[_0x43e18d(0x1a3)]=_0x51d85d,this[_0x43e18d(0x3d4)]=_0x3dda0a,this[_0x43e18d(0x3d7)]=_0x4ba2cb,this[_0x43e18d(0x193)]=_0x580349,this[_0x43e18d(0x1c8)]=_0x5b468b,this['_transformService']=_0x3d3ba2,this[_0x43e18d(0x2d3)]=_0x53518f,this[_0x43e18d(0x370)]=_0x3905ff);}get[_0x1d15a3(0x3e5)](){const _0x4a11a4=_0x1d15a3;return this[_0x4a11a4(0x3fb)][_0x4a11a4(0x1a5)]();}get[_0x1d15a3(0x425)](){const _0x45042e=_0x1d15a3;return this['_roomMembers$'][_0x45042e(0x1a5)]();}[_0x1d15a3(0x351)](){const _0x4cc1ea=_0x1d15a3;super[_0x4cc1ea(0x351)](),this[_0x4cc1ea(0x3fb)][_0x4cc1ea(0x423)](new Map()),this[_0x4cc1ea(0x3fb)][_0x4cc1ea(0x2f0)](),this[_0x4cc1ea(0x32a)][_0x4cc1ea(0x423)]([]),this[_0x4cc1ea(0x32a)][_0x4cc1ea(0x2f0)]();}[_0x1d15a3(0x39e)](){const _0x1fb735=_0x1d15a3;this[_0x1fb735(0x29c)]||(this[_0x1fb735(0x29c)]=!0x0,this[_0x1fb735(0x1a3)][_0x1fb735(0x1f3)]['pipe'](I['takeUntil'](this[_0x1fb735(0x43c)]))['subscribe'](_0x41a23c=>{const _0x1785b6=_0x1fb735;_0x41a23c===u[_0x1785b6(0x320)][_0x1785b6(0x18c)]?this[_0x1785b6(0x252)]():this[_0x1785b6(0x357)]();}),this[_0x1fb735(0x1a3)]['event$'][_0x1fb735(0x2ae)](I[_0x1fb735(0x2c3)](this[_0x1fb735(0x43c)]))['subscribe'](_0x51f5c9=>{const _0x3917b9=_0x1fb735,_0x145cd3=_0x51f5c9['eventID'];_0x145cd3===g[_0x3917b9(0x1a7)]['UPDATE_CURSOR']&&this[_0x3917b9(0x415)](_0x51f5c9),_0x145cd3===g[_0x3917b9(0x1a7)][_0x3917b9(0x3ca)]&&this[_0x3917b9(0x3c6)](_0x51f5c9);}),this[_0x1fb735(0x35d)](this[_0x1fb735(0x370)]['onCommandExecuted'](_0x1d6553=>{const _0x33bfdf=_0x1fb735,_0x2f0ce4=_0x1d6553[_0x33bfdf(0x27a)];_0x2f0ce4!=null&&this[_0x33bfdf(0x1f6)]&&_0x1d6553['id']===V[_0x33bfdf(0x3ea)]['id']&&_0x2f0ce4[_0x33bfdf(0x3f5)]===this[_0x33bfdf(0x1f8)]&&_0x2f0ce4[_0x33bfdf(0x431)]===!0x1&&_0x2f0ce4[_0x33bfdf(0x20c)][_0x33bfdf(0x368)]>0x0&&this[_0x33bfdf(0x280)](_0x2f0ce4[_0x33bfdf(0x20c)]);})),this['_syncEditingCollabCursorService'][_0x1fb735(0x1de)]['pipe'](I['takeUntil'](this['dispose$']))['subscribe'](_0x34aff8=>{const _0x2ed125=_0x1fb735;if((_0x34aff8==null?void 0x0:_0x34aff8['unitID'])!==this[_0x2ed125(0x1f8)])return;const _0x1c18ff={'eventID':g[_0x2ed125(0x1a7)][_0x2ed125(0x276)],'data':_0x34aff8};this[_0x2ed125(0x415)](_0x1c18ff);}),this[_0x1fb735(0x35d)](this[_0x1fb735(0x370)][_0x1fb735(0x1f9)](_0x213171=>{const _0x5a39e5=_0x1fb735;if(_0x213171['params']==null)return;const _0x2245a4=_0x213171[_0x5a39e5(0x27a)];if(_0x213171['id']!==V['RichTextEditingMutation']['id']||_0x2245a4[_0x5a39e5(0x3f5)]!==this[_0x5a39e5(0x1f8)])return;const _0x1c5a88={'id':_0x5a39e5(0x387),'params':_0x2245a4},_0x2f2774=this[_0x5a39e5(0x3e5)];for(const [_0x5220dd,_0x453c5d]of _0x2f2774){const _0x220a71={'id':_0x5a39e5(0x387),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x453c5d[_0x5a39e5(0x20c)]}},_0xf2fcf5=this[_0x5a39e5(0x38a)][_0x5a39e5(0x42a)](_0x1c5a88,_0x220a71,!0x1);if(g['isTransformMutationFailure'](_0xf2fcf5))throw _0xf2fcf5[_0x5a39e5(0x20e)];_0x2f2774[_0x5a39e5(0x392)](_0x5220dd,{..._0x453c5d,'ranges':_0xf2fcf5[_0x5a39e5(0x177)][_0x5a39e5(0x27a)][_0x5a39e5(0x40c)]});}queueMicrotask(()=>{const _0xdcd27b=_0x5a39e5;this[_0xdcd27b(0x3fb)][_0xdcd27b(0x423)](_0x2f2774);});})));}[_0x1d15a3(0x415)](_0x3340fb){const _0x117944=_0x1d15a3;var _0x4b168d,_0x4e1acc;const {memberID:_0x4bf38c,selection:_0x2b8cff}=_0x3340fb[_0x117944(0x184)],_0x2c2faf=ht(_0x2b8cff),_0x3a3ec2=(_0x4e1acc=(_0x4b168d=this[_0x117944(0x193)][_0x117944(0x2f5)](this[_0x117944(0x1f8)],_0x4bf38c))==null?void 0x0:_0x4b168d[_0x117944(0x1ea)])!=null?_0x4e1acc:_0x117944(0x32d),_0x86825={'color':this[_0x117944(0x3d7)][_0x117944(0x37d)](_0x4bf38c),'name':_0x3a3ec2,'ranges':_0x2c2faf},_0x35cee0=this[_0x117944(0x3e5)];_0x35cee0[_0x117944(0x392)](_0x4bf38c,_0x86825),this[_0x117944(0x3fb)][_0x117944(0x423)](_0x35cee0);}['_onCursorDelete'](_0x4c2b65){const _0x262e4f=_0x1d15a3,{memberID:_0x160db6}=_0x4c2b65[_0x262e4f(0x184)],_0x5302f9=this[_0x262e4f(0x3e5)];_0x5302f9['delete'](_0x160db6),this[_0x262e4f(0x3fb)][_0x262e4f(0x423)](_0x5302f9);}['_toggleOnline'](){const _0x2cca47=_0x1d15a3;var _0x32a144;if(this[_0x2cca47(0x1f6)]=!0x0,((_0x32a144=this[_0x2cca47(0x2d3)][_0x2cca47(0x1e4)]())==null?void 0x0:_0x32a144[_0x2cca47(0x2a7)]())!==this[_0x2cca47(0x1f8)])return;const _0x43ca29=this[_0x2cca47(0x3d4)][_0x2cca47(0x35c)](V[_0x2cca47(0x325)])[_0x2cca47(0x23d)]();Array['isArray'](_0x43ca29)&&_0x43ca29[_0x2cca47(0x368)]>0x0&&this[_0x2cca47(0x280)](_0x43ca29);}['_toggleOffline'](){const _0x110b96=_0x1d15a3;this[_0x110b96(0x1f6)]=!0x1;}};ve=It([U(0x2,a[_0x1d15a3(0x17f)](a[_0x1d15a3(0x173)])),U(0x3,a[_0x1d15a3(0x17f)](Re)),U(0x4,a[_0x1d15a3(0x17f)](u[_0x1d15a3(0x246)])),U(0x5,a[_0x1d15a3(0x17f)](be)),U(0x6,g[_0x1d15a3(0x353)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x1d15a3(0x2c2)])],ve);var ft=Object[_0x1d15a3(0x1e0)],mt=(_0x6de989,_0x34109d,_0x22488f,_0x48d6d9)=>{const _0x527e1c=_0x1d15a3;for(var _0x485a7e=_0x48d6d9>0x1?void 0x0:_0x48d6d9?ft(_0x34109d,_0x22488f):_0x34109d,_0xee82d0=_0x6de989[_0x527e1c(0x368)]-0x1,_0x27c492;_0xee82d0>=0x0;_0xee82d0--)(_0x27c492=_0x6de989[_0xee82d0])&&(_0x485a7e=_0x27c492(_0x485a7e)||_0x485a7e);return _0x485a7e;},w=(_0x39ec43,_0x5da8f7)=>(_0x1e1953,_0x5206e1)=>_0x5da8f7(_0x1e1953,_0x5206e1,_0x39ec43);const vt=0x12c,gt=0x64,Et=()=>{let _0x5b5c17=[],_0x684bfc=!0x1;return _0x53f019=>{_0x5b5c17['push'](_0x53f019),_0x684bfc||(_0x684bfc=!0x0,setTimeout(()=>{_0x5b5c17['forEach'](_0x1db2cf=>_0x1db2cf()),_0x5b5c17=[],_0x684bfc=!0x1;}));};};let ge=class extends a[_0x1d15a3(0x174)]{constructor(_0x10b6c4,_0x2d03bc,_0x4394be,_0x3b1a1e,_0x6fd5c6,_0x1cd48d,_0x1588ca,_0x1d1ee3){const _0x106401=_0x1d15a3;super(),_(this,'_online',!0x1),_(this,_0x106401(0x29c),!0x1),_(this,_0x106401(0x3fb),new I[(_0x106401(0x288))](new Map())),_(this,_0x106401(0x28e),this[_0x106401(0x3fb)][_0x106401(0x332)]()),_(this,_0x106401(0x32a),new I[(_0x106401(0x288))]([])),_(this,'roomMembers$',this[_0x106401(0x32a)][_0x106401(0x2ae)](I['debounceTime'](vt))),_(this,_0x106401(0x280),a[_0x106401(0x1bd)]((_0x4574ae,_0x56f635)=>{const _0x229ae8=_0x106401,_0x4d94d3={'eventID':g[_0x229ae8(0x1a7)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x229ae8(0x1f8)],'memberID':this['_session'][_0x229ae8(0x1d4)](),'selection':B[_0x229ae8(0x1d9)](_0x4574ae,_0x56f635[_0x229ae8(0x258)])}};this[_0x229ae8(0x1a3)][_0x229ae8(0x34b)](_0x4d94d3,this[_0x229ae8(0x1f8)]);},gt)),(this[_0x106401(0x1f8)]=_0x10b6c4,this['_session']=_0x2d03bc,this[_0x106401(0x3d4)]=_0x4394be,this[_0x106401(0x3d7)]=_0x3b1a1e,this[_0x106401(0x193)]=_0x6fd5c6,this[_0x106401(0x2d3)]=_0x1cd48d,this[_0x106401(0x370)]=_0x1588ca,this[_0x106401(0x2ba)]=_0x1d1ee3);}get[_0x1d15a3(0x3e5)](){const _0x2f3f58=_0x1d15a3;return this[_0x2f3f58(0x3fb)]['getValue']();}get['roomMembers'](){const _0x4e4c65=_0x1d15a3;return this[_0x4e4c65(0x32a)][_0x4e4c65(0x1a5)]();}['dispose'](){const _0xf732b=_0x1d15a3;super[_0xf732b(0x351)](),this['_cursorInfo$']['next'](new Map()),this[_0xf732b(0x3fb)][_0xf732b(0x2f0)](),this[_0xf732b(0x32a)]['next']([]),this[_0xf732b(0x32a)][_0xf732b(0x2f0)]();}[_0x1d15a3(0x39e)](){const _0x7cbb2a=_0x1d15a3;this[_0x7cbb2a(0x29c)]||(this[_0x7cbb2a(0x29c)]=!0x0,this[_0x7cbb2a(0x1a3)][_0x7cbb2a(0x1f3)]['pipe'](I['takeUntil'](this[_0x7cbb2a(0x43c)]))[_0x7cbb2a(0x1fe)](_0x2489a4=>{const _0x4d0ed4=_0x7cbb2a;_0x2489a4===u[_0x4d0ed4(0x320)][_0x4d0ed4(0x18c)]?this[_0x4d0ed4(0x252)]():this[_0x4d0ed4(0x357)]();}),this[_0x7cbb2a(0x1a3)][_0x7cbb2a(0x24c)][_0x7cbb2a(0x2ae)](I['takeUntil'](this[_0x7cbb2a(0x43c)]))[_0x7cbb2a(0x1fe)](_0x157323=>{const _0x230daa=_0x7cbb2a,_0x45fea3=_0x157323[_0x230daa(0x1da)];_0x45fea3===g['CollaborationEvent'][_0x230daa(0x276)]&&this[_0x230daa(0x415)](_0x157323),_0x45fea3===g[_0x230daa(0x1a7)][_0x230daa(0x3ca)]&&this[_0x230daa(0x3c6)](_0x157323);}),this[_0x7cbb2a(0x3c7)](),this[_0x7cbb2a(0x35d)](this['_commandService'][_0x7cbb2a(0x1f9)](_0xb45a69=>{const _0x1ffac6=_0x7cbb2a;if(this[_0x1ffac6(0x1f6)]&&_0xb45a69['id']===v['SetSelectionsOperation']['id']&&_0xb45a69[_0x1ffac6(0x27a)][_0x1ffac6(0x3f5)]===this['unitID']){const _0xef58ed=_0xb45a69[_0x1ffac6(0x27a)];this[_0x1ffac6(0x280)](_0xef58ed[_0x1ffac6(0x163)],_0xef58ed[_0x1ffac6(0x1dd)][0x0]);}})));}['_onCursorUpdate'](_0x555118){const _0x4c6b3a=_0x1d15a3;var _0xcdcd3,_0x556d12;const {memberID:_0x28998b,selection:_0x4bc3b4}=_0x555118[_0x4c6b3a(0x184)],{sheetName:_0x2b1f1e,range:_0x33a64a}=B[_0x4c6b3a(0x3a7)](_0x4bc3b4),_0x16c460={'name':(_0x556d12=(_0xcdcd3=this[_0x4c6b3a(0x193)][_0x4c6b3a(0x2f5)](this['unitID'],_0x28998b))==null?void 0x0:_0xcdcd3[_0x4c6b3a(0x1ea)])!=null?_0x556d12:'Unknown\x20user','range':this[_0x4c6b3a(0x2d0)](_0x2b1f1e,_0x33a64a),'sheetID':_0x2b1f1e,'color':this[_0x4c6b3a(0x3d7)]['assignAColorForMemberID'](_0x28998b),'selection':_0x4bc3b4},_0x1ef7f0=this[_0x4c6b3a(0x3e5)];_0x1ef7f0[_0x4c6b3a(0x392)](_0x28998b,_0x16c460),this[_0x4c6b3a(0x3fb)]['next'](_0x1ef7f0);}[_0x1d15a3(0x3c6)](_0x348091){const _0x91f40f=_0x1d15a3,{memberID:_0x13d7e5}=_0x348091[_0x91f40f(0x184)],_0x31c534=this[_0x91f40f(0x3e5)];_0x31c534[_0x91f40f(0x40f)](_0x13d7e5),this[_0x91f40f(0x3fb)][_0x91f40f(0x423)](_0x31c534);}[_0x1d15a3(0x2d0)](_0x2e01a1,_0x3b6334){const _0x452c8a=_0x1d15a3;var _0x56cf70,_0x580eb4;const _0x1bf68c=(_0x580eb4=(_0x56cf70=this[_0x452c8a(0x2d3)]['getUniverSheetInstance'](this[_0x452c8a(0x1f8)]))==null?void 0x0:_0x56cf70[_0x452c8a(0x1a8)](_0x2e01a1))==null?void 0x0:_0x580eb4['getMergeData']();return(_0x1bf68c==null?void 0x0:_0x1bf68c['find'](_0x26cb5e=>a[_0x452c8a(0x261)]['contains'](_0x26cb5e,_0x3b6334)))||_0x3b6334;}[_0x1d15a3(0x3c7)](){const _0x56a1e6=_0x1d15a3,_0x1d707e=new a['DisposableCollection'](),_0x178534=Et(),_0x58dd27=()=>{const _0x2ce220=_0x2fae;_0x1d707e[_0x2ce220(0x351)]();const _0x2d8784=(_0x4c59c1,_0x1a5367,_0x37d260,_0x5450b0)=>{const _0x351056=_0x2ce220;let _0x510364=[];switch(_0x4c59c1['id']){case v['EffectRefRangId'][_0x351056(0x200)]:{_0x510364=v[_0x351056(0x3b5)](_0x4c59c1,_0x5450b0);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x510364=v[_0x351056(0x198)](_0x4c59c1,_0x5450b0);break;}case v['EffectRefRangId']['InsertColCommandId']:{_0x510364=v[_0x351056(0x232)](_0x4c59c1,_0x5450b0);break;}case v[_0x351056(0x290)][_0x351056(0x2c4)]:{_0x510364=v[_0x351056(0x2a8)](_0x4c59c1,_0x5450b0);break;}case v[_0x351056(0x290)]['InsertRangeMoveRightCommandId']:{_0x510364=v['handleInsertRangeMoveRight'](_0x4c59c1,_0x5450b0);break;}case v[_0x351056(0x290)][_0x351056(0x41b)]:{_0x510364=v[_0x351056(0x24a)](_0x4c59c1,_0x5450b0);break;}case v[_0x351056(0x290)][_0x351056(0x30e)]:{_0x510364=v[_0x351056(0x170)](_0x4c59c1,_0x5450b0);break;}case v[_0x351056(0x290)][_0x351056(0x403)]:{_0x510364=v[_0x351056(0x3d3)](_0x4c59c1,_0x5450b0);break;}case v['EffectRefRangId'][_0x351056(0x1d5)]:{_0x510364=v[_0x351056(0x19b)](_0x4c59c1,_0x5450b0);break;}}const _0x4943c5=v['runRefRangeMutations'](_0x510364,_0x5450b0),_0x156bfb=this[_0x351056(0x3e5)][_0x351056(0x35c)](_0x1a5367);if(_0x156bfb&&_0x4943c5){const _0x3b155c={..._0x156bfb,'range':_0x4943c5};this[_0x351056(0x3e5)]['set'](_0x1a5367,_0x3b155c),_0x178534(()=>{const _0x538715=_0x351056,_0x3f6b26=this[_0x538715(0x2ba)][_0x538715(0x275)](_0x4943c5,_0x5235c6=>(_0x3f6b26['dispose'](),_0x2d8784(_0x5235c6,_0x1a5367,_0x37d260,_0x4943c5)));_0x1d707e[_0x538715(0x362)](_0x3f6b26);});}return{'redos':[],'undos':[]};};this[_0x2ce220(0x3e5)][_0x2ce220(0x354)]((_0x197569,_0x4ea629)=>{const _0x1368cf=_0x2ce220,{range:_0x12f44c,sheetID:_0x1cc8b2}=_0x197569,_0x513609=this[_0x1368cf(0x2ba)]['registerRefRange'](_0x12f44c,_0x29147f=>(_0x513609[_0x1368cf(0x351)](),_0x2d8784(_0x29147f,_0x4ea629,_0x1cc8b2,_0x12f44c)));_0x1d707e[_0x1368cf(0x362)](_0x513609);});};this['disposeWithMe'](a['toDisposable'](this[_0x56a1e6(0x3fb)][_0x56a1e6(0x1fe)](()=>{_0x58dd27();})));}[_0x1d15a3(0x252)](){const _0xa25eeb=_0x1d15a3;var _0x59eab0,_0x1aec88;if(this[_0xa25eeb(0x1f6)]=!0x0,((_0x59eab0=this[_0xa25eeb(0x2d3)][_0xa25eeb(0x1e4)]())==null?void 0x0:_0x59eab0['getUnitId']())!==this[_0xa25eeb(0x1f8)])return;const _0x3317c4=(_0x1aec88=this['_injector']['get'](v[_0xa25eeb(0x42b)])[_0xa25eeb(0x3a4)]())==null?void 0x0:_0x1aec88[0x0],_0x3c6bd2=this[_0xa25eeb(0x2d3)][_0xa25eeb(0x32e)](a[_0xa25eeb(0x255)][_0xa25eeb(0x22a)])[_0xa25eeb(0x3b9)]();_0x3317c4&&_0x3c6bd2&&this['_updateLocalCursor'](_0x3c6bd2[_0xa25eeb(0x39f)](),_0x3317c4);}[_0x1d15a3(0x357)](){const _0x52c5e5=_0x1d15a3;this[_0x52c5e5(0x1f6)]=!0x1;}};ge=mt([w(0x2,a[_0x1d15a3(0x17f)](a['Injector'])),w(0x3,a[_0x1d15a3(0x17f)](Re)),w(0x4,a['Inject'](u[_0x1d15a3(0x246)])),w(0x5,a[_0x1d15a3(0x182)]),w(0x6,a[_0x1d15a3(0x2c2)]),w(0x7,a['Inject'](v[_0x1d15a3(0x21a)]))],ge);var Ct=Object[_0x1d15a3(0x1e0)],Tt=(_0x22ef6f,_0x4c76a4,_0x1ed0f3,_0x523440)=>{const _0x122af=_0x1d15a3;for(var _0x177517=_0x523440>0x1?void 0x0:_0x523440?Ct(_0x4c76a4,_0x1ed0f3):_0x4c76a4,_0x16c1d2=_0x22ef6f[_0x122af(0x368)]-0x1,_0x162c3b;_0x16c1d2>=0x0;_0x16c1d2--)(_0x162c3b=_0x22ef6f[_0x16c1d2])&&(_0x177517=_0x162c3b(_0x177517)||_0x177517);return _0x177517;},ce=(_0x33756a,_0x154a05)=>(_0x505bfd,_0x47b251)=>_0x154a05(_0x505bfd,_0x47b251,_0x33756a);let F=class extends a['RxDisposable']{constructor(_0x4be8ee,_0x28aa1a,_0x1ffeb0){const _0xbbad44=_0x1d15a3;super(),_(this,_0xbbad44(0x19f),new Map()),_(this,_0xbbad44(0x303),new I['Subject']()),(this[_0xbbad44(0x2d3)]=_0x4be8ee,this[_0xbbad44(0x3d4)]=_0x28aa1a,this[_0xbbad44(0x23e)]=_0x1ffeb0,this['_init']());}[_0x1d15a3(0x351)](){const _0x5f5502=_0x1d15a3;super[_0x5f5502(0x351)](),this['_entityInit$'][_0x5f5502(0x2f0)](),this['_entities'][_0x5f5502(0x354)](_0x1a6615=>_0x1a6615['dispose']());}['getCollabCursors$'](_0x4810f8){const _0x126aaf=_0x1d15a3;return this['_entities'][_0x126aaf(0x299)](_0x4810f8)?this[_0x126aaf(0x19f)][_0x126aaf(0x35c)](_0x4810f8)[_0x126aaf(0x28e)]:this[_0x126aaf(0x303)]['pipe'](I[_0x126aaf(0x307)](_0x31f31c=>_0x31f31c['unitID']===_0x4810f8),I[_0x126aaf(0x29b)](_0x4df049=>_0x4df049[_0x126aaf(0x28e)]));}['_init'](){const _0x5f53ed=_0x1d15a3;this[_0x5f53ed(0x2d3)][_0x5f53ed(0x306)](a['UniverInstanceType'][_0x5f53ed(0x22a)])[_0x5f53ed(0x2ae)](I[_0x5f53ed(0x2c3)](this[_0x5f53ed(0x43c)]))[_0x5f53ed(0x1fe)](async _0x2f353b=>{const _0x3bb384=_0x5f53ed,_0x196c90=_0x2f353b[_0x3bb384(0x2a7)](),_0x3cc2b3=await this[_0x3bb384(0x30d)](_0x196c90);this[_0x3bb384(0x303)][_0x3bb384(0x423)](_0x3cc2b3),this['_entities'][_0x3bb384(0x392)](_0x196c90,_0x3cc2b3);}),this[_0x5f53ed(0x2d3)][_0x5f53ed(0x306)](a['UniverInstanceType'][_0x5f53ed(0x34f)])[_0x5f53ed(0x2ae)](I['takeUntil'](this[_0x5f53ed(0x43c)]))[_0x5f53ed(0x2ae)](I[_0x5f53ed(0x307)](_0x49077c=>!_0x49077c[_0x5f53ed(0x2a7)]()[_0x5f53ed(0x3c1)]('__')))[_0x5f53ed(0x1fe)](async _0x4f23ae=>{const _0x565df1=_0x5f53ed,_0xcf4b59=_0x4f23ae[_0x565df1(0x2a7)](),_0x834aa2=await this['_startDocCollabCursor'](_0xcf4b59);this[_0x565df1(0x303)]['next'](_0x834aa2),this[_0x565df1(0x19f)][_0x565df1(0x392)](_0xcf4b59,_0x834aa2);}),I[_0x5f53ed(0x17b)](this['_univerInstanceService'][_0x5f53ed(0x407)](a['UniverInstanceType']['UNIVER_DOC']),this[_0x5f53ed(0x2d3)][_0x5f53ed(0x407)](a['UniverInstanceType'][_0x5f53ed(0x22a)]))[_0x5f53ed(0x2ae)](I[_0x5f53ed(0x2c3)](this[_0x5f53ed(0x43c)]))[_0x5f53ed(0x1fe)](_0x10d15b=>{const _0x32703d=_0x5f53ed,_0x375592=_0x10d15b[_0x32703d(0x2a7)](),_0x2f06bf=this[_0x32703d(0x19f)][_0x32703d(0x35c)](_0x375592);_0x2f06bf&&(_0x2f06bf['dispose'](),this[_0x32703d(0x19f)][_0x32703d(0x40f)](_0x375592));});}async['_startSheetCollabCursor'](_0x14f203){const _0xde70f0=_0x1d15a3,_0x3376d1=await this[_0xde70f0(0x23e)]['requireSession'](_0x14f203),_0x211442=this[_0xde70f0(0x3d4)][_0xde70f0(0x3ef)](ge,_0x14f203,_0x3376d1);return _0x211442['init'](),_0x211442;}async['_startDocCollabCursor'](_0x69499c){const _0x4047bd=_0x1d15a3,_0x71cffc=await this[_0x4047bd(0x23e)][_0x4047bd(0x27e)](_0x69499c),_0x5f0e2b=this[_0x4047bd(0x3d4)][_0x4047bd(0x3ef)](ve,_0x69499c,_0x71cffc);return _0x5f0e2b['init'](),_0x5f0e2b;}};F=Tt([ce(0x0,a[_0x1d15a3(0x182)]),ce(0x1,a[_0x1d15a3(0x17f)](a[_0x1d15a3(0x173)])),ce(0x2,a['Inject'](u[_0x1d15a3(0x417)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x35304e,_0x35d2a6){const _0x325c98=_0x1d15a3;let {radius:_0x2e3983,width:_0x48b19f,height:_0x3306b7}=_0x35d2a6;_0x2e3983=_0x2e3983!=null?_0x2e3983:0x0,_0x48b19f=_0x48b19f!=null?_0x48b19f:0x1e,_0x3306b7=_0x3306b7!=null?_0x3306b7:0x1e;let _0xf36274=0x0,_0x4f667e=0x0,_0x2d0f0d=0x0;_0xf36274=_0x4f667e=_0x2d0f0d=Math[_0x325c98(0x2dc)](_0x2e3983,_0x48b19f/0x2,_0x3306b7/0x2),_0x35304e[_0x325c98(0x1ac)](),_0x35304e[_0x325c98(0x24b)](_0xf36274,0x0),_0x35304e[_0x325c98(0x33c)](_0x48b19f-_0x4f667e,0x0),_0x35304e[_0x325c98(0x285)](_0x48b19f-_0x4f667e,_0x4f667e,_0x4f667e,Math['PI']*0x3/0x2,0x0,!0x1),_0x35304e[_0x325c98(0x33c)](_0x48b19f,_0x3306b7-_0x2d0f0d),_0x35304e[_0x325c98(0x285)](_0x48b19f-_0x2d0f0d,_0x3306b7-_0x2d0f0d,_0x2d0f0d,0x0,Math['PI']/0x2,!0x1),_0x35304e[_0x325c98(0x33c)](0x0,_0x3306b7),_0x35304e[_0x325c98(0x33c)](0x0,_0xf36274),_0x35304e[_0x325c98(0x285)](_0xf36274,_0xf36274,_0xf36274,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x35304e[_0x325c98(0x3e2)](),_0x35d2a6[_0x325c98(0x242)]&&(_0x35304e[_0x325c98(0x1d6)](),_0x35304e[_0x325c98(0x183)]=_0x35d2a6[_0x325c98(0x242)],_0x35d2a6['fillRule']===_0x325c98(0x33e)?_0x35304e[_0x325c98(0x242)](_0x325c98(0x33e)):_0x35304e[_0x325c98(0x242)](),_0x35304e['restore']());}class re extends C[_0x1d15a3(0x24d)]{constructor(_0x1e7fd7,_0x49b681){const _0x1e2e4c=_0x1d15a3;super(_0x1e7fd7,_0x49b681),_(this,_0x1e2e4c(0x194)),_(this,'text'),(this[_0x1e2e4c(0x194)]=_0x49b681==null?void 0x0:_0x49b681['color'],this[_0x1e2e4c(0x1ec)]=_0x49b681==null?void 0x0:_0x49b681[_0x1e2e4c(0x1ec)]);}static[_0x1d15a3(0x166)](_0x595a7f,_0x4f76bf){const _0x35ca53=_0x1d15a3,{text:_0x1a9d4e,color:_0x298162}=_0x4f76bf;_0x595a7f[_0x35ca53(0x1d6)](),_0x595a7f[_0x35ca53(0x2b3)]=_0x35ca53(0x215);const _0x1a0a8f=_0x595a7f[_0x35ca53(0x1eb)](_0x1a9d4e)['width'],_0x5125b6=Math[_0x35ca53(0x2dc)](_0x1a0a8f+0x2*le,Ue);Ot(_0x595a7f,{'height':X,'radius':0x4,'width':_0x5125b6,'fill':_0x298162}),_0x595a7f[_0x35ca53(0x183)]=_0x35ca53(0x40b);const _0x12fd9a=le,_0x374346=X-pt,_0x1325aa=Ue-0x2*le;if(_0x1a0a8f>_0x1325aa){let _0x493dc6='',_0x2eeef8=0x0;for(const _0x31a9aa of _0x1a9d4e){const _0x41bee2=_0x595a7f[_0x35ca53(0x1eb)](_0x31a9aa)[_0x35ca53(0x3eb)];if(_0x2eeef8+_0x41bee2<=_0x1325aa-_0x595a7f['measureText'](_0x35ca53(0x315))['width'])_0x493dc6+=_0x31a9aa,_0x2eeef8+=_0x41bee2;else{_0x493dc6+=_0x35ca53(0x315);break;}}_0x595a7f[_0x35ca53(0x3cc)](_0x493dc6,_0x12fd9a,_0x374346);}else _0x595a7f[_0x35ca53(0x3cc)](_0x1a9d4e,_0x12fd9a,_0x374346);_0x595a7f[_0x35ca53(0x37f)]();}[_0x1d15a3(0x3bb)](_0x1dbdb3){const _0x290e82=_0x1d15a3;re[_0x290e82(0x166)](_0x1dbdb3,this);}}const _e=_0x1d15a3(0x296),Rt='collab-text-range-',bt=_0x1d15a3(0x2b2),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x1d15a3(0x217);class Le{constructor(_0x3466b3,_0x5a4d30,_0x1655c0,_0x343ea6){const _0xdb2253=_0x1d15a3;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0xdb2253(0x1ed),null),(this[_0xdb2253(0x367)]=_0x3466b3,this[_0xdb2253(0x3d0)]=_0x5a4d30,this['_docSkeleton']=_0x1655c0,this[_0xdb2253(0x254)]=_0x343ea6,this[_0xdb2253(0x3e8)]());}set['_hover'](_0x1a441d){const _0x3d9737=_0x1d15a3;_0x1a441d?(this[_0x3d9737(0x32f)]&&this[_0x3d9737(0x32f)][_0x3d9737(0x20a)](),this[_0x3d9737(0x3cb)]&&this[_0x3d9737(0x3cb)]['show']()):(this['_anchorDot']&&this[_0x3d9737(0x32f)][_0x3d9737(0x264)](),this['_textBubble']&&this[_0x3d9737(0x3cb)]['hide']());}[_0x1d15a3(0x351)](){const _0x3c75a0=_0x1d15a3;for(const _0x5bab43 of this[_0x3c75a0(0x35f)])_0x5bab43[_0x3c75a0(0x351)]();this[_0x3c75a0(0x3cb)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x3c75a0(0x351)](),this[_0x3c75a0(0x19e)]&&this[_0x3c75a0(0x19e)][_0x3c75a0(0x351)](),this[_0x3c75a0(0x1ed)]&&this[_0x3c75a0(0x1ed)]();}['_render'](){const _0x2d9bfa=_0x1d15a3;var _0x6b832;const {_docSkeleton:_0x5623ff,_document:_0x53e760}=this,{color:_0x54b47b,name:_0x1b1f1f,ranges:_0x2a61f6}=this[_0x2d9bfa(0x367)],_0x15e6e7=_0x53e760['getOffsetConfig'](),{docsLeft:_0xdd883b,docsTop:_0x4f094b}=_0x15e6e7,_0x2245e5=new T[(_0x2d9bfa(0x375))](_0x15e6e7,_0x5623ff);for(const {startOffset:_0x3cdc89,endOffset:_0x452ef9,rangeType:_0xaaa4ba,segmentId:_0x93c343,segmentPage:_0x18a9a8,collapsed:_0x2d1392,isActive:_0x5b1c31}of _0x2a61f6){const _0x384c61=_0x5623ff[_0x2d9bfa(0x1cf)](_0x3cdc89,!0x0,_0x93c343,_0x18a9a8);let _0x2848de=_0x5623ff['findNodePositionByCharIndex'](_0x452ef9,!0x0,_0x93c343,_0x18a9a8);if(_0x2848de==null&&(_0x2848de=_0x5623ff[_0x2d9bfa(0x1cf)](_0x452ef9-0x1,!0x1,_0x93c343,_0x18a9a8)),_0x5b1c31){const {contentBoxPointGroup:_0x3b54b9}=_0x2245e5['getRangePointData'](_0x2848de,_0x2848de);if(_0x3b54b9[_0x2d9bfa(0x368)]===0x0)continue;this['_drawAnchor'](_0x54b47b,_0x3b54b9,_0xdd883b,_0x4f094b,_0x1b1f1f),this[_0x2d9bfa(0x1ed)]=this['_handleHover']();}if(_0x384c61&&_0x2848de){if(_0xaaa4ba===a[_0x2d9bfa(0x3b4)][_0x2d9bfa(0x317)]){const _0x1a0755=new T[(_0x2d9bfa(0x2f2))](_0x15e6e7,_0x5623ff),{pointGroup:_0x431d85}=(_0x6b832=_0x1a0755['getRangePointData'](_0x384c61,_0x2848de))!=null?_0x6b832:{};if(_0x431d85==null||_0x431d85[_0x2d9bfa(0x368)]===0x0)continue;this['_drawRectRange'](_0x54b47b,_0x431d85,_0xdd883b,_0x4f094b);}else{if(!_0x2d1392){const {borderBoxPointGroup:_0x348238}=_0x2245e5[_0x2d9bfa(0x186)](_0x384c61,_0x2848de);if(_0x348238[_0x2d9bfa(0x368)]===0x0)continue;this[_0x2d9bfa(0x40d)](_0x54b47b,_0x348238,_0xdd883b,_0x4f094b);}}}}}[_0x1d15a3(0x364)](_0xe66fff,_0xe9f04b,_0x4b0ce3,_0x14c411,_0x1f1633){const _0x1e534b=_0x1d15a3,_0x5090f6=this[_0x1e534b(0x1e6)](_0xe9f04b),{left:_0x2a36cf,top:_0x12690c,height:_0x2fdbbc}=_0x5090f6,_0x272ac5=this[_0x1e534b(0x1b2)](),_0x56c7a3=Nt/_0x272ac5,_0x1a8364=new C[(_0x1e534b(0x2fa))](_e+a[_0x1e534b(0x377)](H),{'left':_0x2a36cf+_0x4b0ce3-_0x56c7a3,'top':_0x12690c+_0x14c411,'height':_0x2fdbbc,'width':Dt,'fill':_0xe66fff||C[_0x1e534b(0x3bf)](a[_0x1e534b(0x2f8)][_0x1e534b(0x1ba)],0x0),'strokeWidth':_0x56c7a3,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x1a8364,this[_0x1e534b(0x3d0)]['addObject'](_0x1a8364,T[_0x1e534b(0x2d7)]);const _0x3a85b7=new C[(_0x1e534b(0x2fa))](_e+a[_0x1e534b(0x377)](H),{'left':_0x2a36cf+_0x4b0ce3-_0x56c7a3,'top':_0x12690c+_0x14c411-he/0x2,'height':he,'width':he,'fill':_0xe66fff||C[_0x1e534b(0x3bf)](a[_0x1e534b(0x2f8)][_0x1e534b(0x1ba)],0x0),'strokeWidth':0x0,'stroke':_0xe66fff||C[_0x1e534b(0x3bf)](a['COLORS'][_0x1e534b(0x1ba)],0x0),'evented':!0x1});this['_anchorDot']=_0x3a85b7,this[_0x1e534b(0x3d0)][_0x1e534b(0x19a)](_0x3a85b7,T[_0x1e534b(0x2d7)]);const _0x13b2d9=new re(_e+a[_0x1e534b(0x377)](H),{'left':_0x2a36cf+_0x4b0ce3-_0x56c7a3,'top':_0x12690c+_0x14c411-X,'text':_0x1f1633,'color':_0xe66fff});this['_textBubble']=_0x13b2d9,this[_0x1e534b(0x3d0)]['addObject'](_0x13b2d9,T['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x1d15a3(0x25b)](){const _0x490a93=_0x1d15a3,_0x5524d2=this[_0x490a93(0x19e)][_0x490a93(0x41c)]['subscribeEvent'](()=>{const _0x53f44f=_0x490a93;this[_0x53f44f(0x3f2)]=!0x0;}),_0xc70431=this['_anchor'][_0x490a93(0x35e)][_0x490a93(0x16d)](()=>{const _0x21eb6a=_0x490a93;this['_hideTimer']&&clearTimeout(this[_0x21eb6a(0x1b0)]),this[_0x21eb6a(0x1b0)]=setTimeout(()=>{const _0x427e4c=_0x21eb6a;this[_0x427e4c(0x3f2)]=!0x1;},0x7d0);});return()=>{const _0x1f44b6=_0x490a93;_0x5524d2[_0x1f44b6(0x227)](),_0xc70431[_0x1f44b6(0x227)]();};}[_0x1d15a3(0x40d)](_0xf634d1,_0x2f75bf,_0x498841,_0xa95f71){const _0x48562a=_0x1d15a3,_0x2459a6=new a['ColorKit'](_0xf634d1)[_0x48562a(0x229)](0.2)['toRgbString'](),_0x22dfc7=new C['RegularPolygon'](Rt+a[_0x48562a(0x377)](H),{'pointsGroup':_0x2f75bf,'fill':_0x2459a6||C[_0x48562a(0x3bf)](a[_0x48562a(0x2f8)][_0x48562a(0x1ba)],0.2),'left':_0x498841,'top':_0xa95f71,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x48562a(0x35f)][_0x48562a(0x1e1)](_0x22dfc7),this[_0x48562a(0x3d0)][_0x48562a(0x19a)](_0x22dfc7,T[_0x48562a(0x2d7)]);}[_0x1d15a3(0x201)](_0x1cbdff,_0x1a559c,_0x2a9a17,_0x1b262c){const _0x29f676=_0x1d15a3,_0x45a2b5=new a[(_0x29f676(0x349))](_0x1cbdff)[_0x29f676(0x229)](0.2)[_0x29f676(0x386)](),_0x3464e8=new C[(_0x29f676(0x1bc))](bt+a[_0x29f676(0x377)](H),{'pointsGroup':_0x1a559c,'fill':_0x45a2b5||C['getColor'](a[_0x29f676(0x2f8)][_0x29f676(0x1ba)],0.2),'left':_0x2a9a17,'top':_0x1b262c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x29f676(0x35f)][_0x29f676(0x1e1)](_0x3464e8),this[_0x29f676(0x3d0)][_0x29f676(0x19a)](_0x3464e8,T[_0x29f676(0x2d7)]);}[_0x1d15a3(0x1e6)](_0x4ea379){const _0x293a66=_0x4ea379[0x0],_0xc41103=_0x293a66[0x0],_0x3b2d7c=_0x293a66[0x2],{x:_0x22cf44,y:_0x4f3287}=_0xc41103,{x:_0x56a9db,y:_0xb2a6a}=_0x3b2d7c;return{'left':_0x22cf44,'top':_0x4f3287,'width':_0x56a9db-_0x22cf44,'height':_0xb2a6a-_0x4f3287};}[_0x1d15a3(0x1b2)](){const _0x432309=_0x1d15a3,{scaleX:_0x28bfdc,scaleY:_0x4edb14}=this[_0x432309(0x3d0)][_0x432309(0x26f)]();return Math['max'](_0x28bfdc,_0x4edb14);}}var Lt=Object[_0x1d15a3(0x1e0)],Mt=(_0x59179c,_0x27e091,_0x490337,_0x102225)=>{const _0x3eb69b=_0x1d15a3;for(var _0xc3bfdd=_0x102225>0x1?void 0x0:_0x102225?Lt(_0x27e091,_0x490337):_0x27e091,_0x70462c=_0x59179c[_0x3eb69b(0x368)]-0x1,_0x2ddb84;_0x70462c>=0x0;_0x70462c--)(_0x2ddb84=_0x59179c[_0x70462c])&&(_0xc3bfdd=_0x2ddb84(_0xc3bfdd)||_0xc3bfdd);return _0xc3bfdd;},q=(_0x539097,_0x537eeb)=>(_0x5697cd,_0x429d71)=>_0x537eeb(_0x5697cd,_0x429d71,_0x539097);let Ee=class extends a[_0x1d15a3(0x174)]{constructor(_0x280c4f,_0x19f607,_0x20d056,_0x2e8975,_0x516159){const _0x5a3409=_0x1d15a3;super(),_(this,_0x5a3409(0x17a),[]),_(this,_0x5a3409(0x2c7),[]),(this['_context']=_0x280c4f,this[_0x5a3409(0x28f)]=_0x19f607,this[_0x5a3409(0x3de)]=_0x20d056,this[_0x5a3409(0x370)]=_0x2e8975,this['_themeService']=_0x516159,this['_init']());}[_0x1d15a3(0x29c)](){const _0x380a2e=_0x1d15a3,_0x4e0676=this[_0x380a2e(0x3f6)][_0x380a2e(0x3f5)],_0x342005=this[_0x380a2e(0x28f)];this[_0x380a2e(0x35d)](I['combineLatest']([this[_0x380a2e(0x3de)]['getCollabCursors$'](_0x4e0676),this[_0x380a2e(0x427)][_0x380a2e(0x1b8)]])['pipe']($[_0x380a2e(0x32c)](([_0x379d85,_0x3f874d])=>({'skeleton':_0x342005[_0x380a2e(0x248)](),'cursors':[..._0x379d85[_0x380a2e(0x26b)]()][_0x380a2e(0x22c)](_0xbcc173=>({..._0xbcc173,'color':this['_themeService'][_0x380a2e(0x1af)](_0xbcc173[_0x380a2e(0x194)])}))})))[_0x380a2e(0x1fe)](_0x16e81a=>{const _0x45aad0=_0x380a2e;if(this[_0x45aad0(0x41d)](),_0x16e81a){const {skeleton:_0x3da8a0,cursors:_0xc76d67}=_0x16e81a;this['_updateCollabCursors'](_0x3da8a0,_0xc76d67);}})),this[_0x380a2e(0x1c1)](),this['_initCommandExecutedListener']();}[_0x1d15a3(0x162)](_0xb96f32,_0x488f08){const _0xa35d1b=_0x1d15a3,{scene:_0x24e80b,mainComponent:_0x32676e}=this[_0xa35d1b(0x3f6)],_0x8efcd2=_0x488f08[_0xa35d1b(0x32c)](_0x43230c=>new Le(_0x43230c,_0x24e80b,_0xb96f32,_0x32676e));this['_cursorShapes']=_0x8efcd2,this[_0xa35d1b(0x2c7)]=_0x488f08;}[_0x1d15a3(0x1c4)](){const _0x4a81c1=_0x1d15a3;this[_0x4a81c1(0x41d)]();const {scene:_0x2ee2bb,mainComponent:_0x31813e}=this[_0x4a81c1(0x3f6)],_0x4bbf19=this[_0x4a81c1(0x28f)][_0x4a81c1(0x248)](),_0x245893=this['_cursors'][_0x4a81c1(0x32c)](_0x45a41c=>new Le(_0x45a41c,_0x2ee2bb,_0x4bbf19,_0x31813e));this[_0x4a81c1(0x17a)]=_0x245893;}['_removeCollabCursors'](){const _0x1777ca=_0x1d15a3;this['_cursorShapes'][_0x1777ca(0x354)](_0x29e240=>_0x29e240[_0x1777ca(0x351)]()),this[_0x1777ca(0x17a)]=[];}[_0x1d15a3(0x38f)](){const _0x4da7d1=_0x1d15a3,_0x20cfd2=[T[_0x4da7d1(0x2bd)]['id']];this[_0x4da7d1(0x35d)](this[_0x4da7d1(0x370)][_0x4da7d1(0x1f9)](_0x16d2cf=>{const _0x24f2bc=_0x4da7d1;_0x20cfd2[_0x24f2bc(0x167)](_0x16d2cf['id'])&&_0x16d2cf['params']['unitId']===this[_0x24f2bc(0x3f6)][_0x24f2bc(0x3f5)]&&this[_0x24f2bc(0x1c4)]();}));}[_0x1d15a3(0x1c1)](){const _0x4b4243=_0x1d15a3;this['disposeWithMe'](a[_0x4b4243(0x24f)](this[_0x4b4243(0x3f6)]['engine'][_0x4b4243(0x27f)])['pipe']($[_0x4b4243(0x307)](_0xe170b5=>_0xe170b5['type']===C[_0x4b4243(0x19c)][_0x4b4243(0x292)]),$[_0x4b4243(0x230)](0x10))['subscribe'](()=>{const _0x5af529=_0x4b4243;this[_0x5af529(0x1c4)]();}));}};Ee=Mt([q(0x1,a[_0x1d15a3(0x17f)](V[_0x1d15a3(0x405)])),q(0x2,a[_0x1d15a3(0x17f)](F)),q(0x3,a[_0x1d15a3(0x2c2)]),q(0x4,a[_0x1d15a3(0x17f)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x1d15a3(0x24d)]{constructor(_0x22e182,_0x5308e9){const _0x197fb4=_0x1d15a3;super(_0x22e182,_0x5308e9),_(this,_0x197fb4(0x278)),_(this,_0x197fb4(0x209),!0x1),_(this,_0x197fb4(0x365)),_(this,'_name',''),_(this,_0x197fb4(0x366),_0x197fb4(0x3f9)),_(this,_0x197fb4(0x3d6)),(_0x5308e9&&this['setShapeProps'](_0x5308e9),this['onPointerEnter$'][_0x197fb4(0x16d)](()=>this[_0x197fb4(0x297)]({'hovered':!0x0})),this[_0x197fb4(0x35e)]['subscribeEvent'](()=>this[_0x197fb4(0x297)]({'hovered':!0x1})));}[_0x1d15a3(0x297)](_0x1bad60){const _0x51636c=_0x1d15a3;var _0x1d1a50,_0x4ee687,_0x109960,_0x455660,_0x1c22a2,_0x286e86;this[_0x51636c(0x278)]=(_0x1d1a50=_0x1bad60['color'])!=null?_0x1d1a50:this[_0x51636c(0x278)],this[_0x51636c(0x209)]=(_0x4ee687=_0x1bad60['hovered'])!=null?_0x4ee687:this[_0x51636c(0x209)],this[_0x51636c(0x365)]=(_0x109960=_0x1bad60['range'])!=null?_0x109960:this[_0x51636c(0x365)],this[_0x51636c(0x2c1)]=(_0x455660=_0x1bad60[_0x51636c(0x1ea)])!=null?_0x455660:this[_0x51636c(0x2c1)],this[_0x51636c(0x366)]=(_0x1c22a2=_0x1bad60[_0x51636c(0x27b)])!=null?_0x1c22a2:this[_0x51636c(0x366)],this['_backgroundColor']=(_0x286e86=_0x1bad60[_0x51636c(0x326)])!=null?_0x286e86:this[_0x51636c(0x3d6)],this[_0x51636c(0x18f)]({'width':_0x1bad60[_0x51636c(0x3eb)],'height':_0x1bad60[_0x51636c(0x23f)]});}[_0x1d15a3(0x311)](_0x6b9378){const _0x256a69=_0x1d15a3,{row:_0x4ed0f4,column:_0x15b20d}=_0x6b9378;if(_0x4ed0f4>=this[_0x256a69(0x365)][_0x256a69(0x324)]&&_0x4ed0f4<=this[_0x256a69(0x365)]['endRow']&&_0x15b20d>=this[_0x256a69(0x365)]['startColumn']&&_0x15b20d<=this[_0x256a69(0x365)][_0x256a69(0x2ad)]){this[_0x256a69(0x297)]({'hovered':!0x0});return;}this[_0x256a69(0x297)]({'hovered':!0x1});}['triggerDblclick'](_0x24ded8){return!0x1;}[_0x1d15a3(0x3bb)](_0x392287){const _0x41c420=_0x1d15a3;C[_0x41c420(0x2fa)][_0x41c420(0x166)](_0x392287,{'width':this['width'],'height':this[_0x41c420(0x23f)],'strokeWidth':Pt,'stroke':this[_0x41c420(0x278)],'evented':!0x1,'fill':this[_0x41c420(0x3d6)]}),this[_0x41c420(0x209)]&&(_0x392287[_0x41c420(0x1d6)](),_0x392287[_0x41c420(0x31b)](0x1,0x0,0x0,0x1,this[_0x41c420(0x3eb)],this[_0x41c420(0x366)]===_0x41c420(0x3e7)?0x0:-X),re[_0x41c420(0x166)](_0x392287,{'text':this[_0x41c420(0x2c1)],'color':this[_0x41c420(0x278)]}),_0x392287[_0x41c420(0x37f)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x462017,_0x27667e,_0x311d0d,_0x84b79b)=>{for(var _0x1d982b=_0x84b79b>0x1?void 0x0:_0x84b79b?wt(_0x27667e,_0x311d0d):_0x27667e,_0x3ce513=_0x462017['length']-0x1,_0x5d0ac4;_0x3ce513>=0x0;_0x3ce513--)(_0x5d0ac4=_0x462017[_0x3ce513])&&(_0x1d982b=_0x5d0ac4(_0x1d982b)||_0x1d982b);return _0x1d982b;},ue=(_0x129964,_0xd90d8e)=>(_0x37199a,_0x482fc2)=>_0xd90d8e(_0x37199a,_0x482fc2,_0x129964);const $t=0x1389;let Ce=class extends a[_0x1d15a3(0x174)]{constructor(_0x5d7298,_0x2ad2b7,_0x55599f,_0x20543f){const _0x288436=_0x1d15a3;super(),_(this,'_cursors',new Set()),_(this,_0x288436(0x426),null),(this[_0x288436(0x3f6)]=_0x5d7298,this['_sheetSkeletonManagerService']=_0x2ad2b7,this[_0x288436(0x3de)]=_0x55599f,this[_0x288436(0x427)]=_0x20543f,this['_init']());}[_0x1d15a3(0x29c)](){const _0xaa0d55=_0x1d15a3;this['_sheetSkeletonManagerService'][_0xaa0d55(0x35b)][_0xaa0d55(0x2ae)]($[_0xaa0d55(0x2c3)](this['dispose$']),$[_0xaa0d55(0x29b)](_0x8336fc=>{const _0x54eb40=_0xaa0d55;if(_0x8336fc){const _0x23bbb1=_0x8336fc[_0x54eb40(0x208)];return I['combineLatest'](this['_collabCursorController'][_0x54eb40(0x393)](this[_0x54eb40(0x3f6)][_0x54eb40(0x3f5)]),this[_0x54eb40(0x427)]['currentTheme$'])[_0x54eb40(0x2ae)]($[_0x54eb40(0x32c)](([_0x5e9e7e,_0x407b8a])=>{const _0x447260=_0x54eb40,_0x564a65=new Map();return _0x5e9e7e[_0x447260(0x354)]((_0xaedfb3,_0x475ef6)=>{const _0x11b1fa=_0x447260;if(_0xaedfb3[_0x11b1fa(0x3a5)]===_0x23bbb1){const _0x2a4cfa={..._0xaedfb3};_0x2a4cfa[_0x11b1fa(0x194)]=this[_0x11b1fa(0x427)]['getColorFromTheme'](_0xaedfb3['color']),_0x564a65[_0x11b1fa(0x392)](_0x475ef6,_0x2a4cfa);}}),{'skeleton':_0x8336fc,'cursors':_0x564a65};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0xaa0d55(0x1fe)](({skeleton:_0x56a92e,cursors:_0x5a0090})=>{this['_removeCollabCursors'](),_0x56a92e&&this['_updateCollabCursors'](_0x56a92e,_0x5a0090);}),this[_0xaa0d55(0x3f0)]['currentSkeleton$'][_0xaa0d55(0x1fe)](_0x437176=>{const _0x1a69c8=_0xaa0d55;if(_0x437176==null)return;const {skeleton:_0x56f91e}=_0x437176,{scene:_0x9b64f5}=this[_0x1a69c8(0x3f6)];_0x9b64f5[_0x1a69c8(0x429)][_0x1a69c8(0x16d)](a[_0x1a69c8(0x1bd)](_0x4df984=>{const _0x17783e=_0x1a69c8;var _0x422126,_0x4e8f5f;const {offsetX:_0x1a2c0f,offsetY:_0x24f9c1}=_0x4df984,{x:_0x338381,y:_0x3ef21b}=_0x9b64f5[_0x17783e(0x247)](C[_0x17783e(0x1a2)][_0x17783e(0x388)]([_0x1a2c0f,_0x24f9c1])),{scaleX:_0x97df2b,scaleY:_0xdc1a0f}=_0x9b64f5[_0x17783e(0x26f)](),_0x5ba69e=_0x9b64f5[_0x17783e(0x3be)](C['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x21587c=_0x9b64f5[_0x17783e(0x1a9)](C[_0x17783e(0x1a2)]['FromArray']([_0x338381,_0x3ef21b]),_0x5ba69e),_0x82ebc5=_0x56f91e['getCellPositionByOffset'](_0x1a2c0f,_0x24f9c1,_0x97df2b,_0xdc1a0f,_0x21587c);((_0x422126=this[_0x17783e(0x426)])==null?void 0x0:_0x422126[_0x17783e(0x1ff)])===_0x82ebc5[_0x17783e(0x1ff)]&&((_0x4e8f5f=this[_0x17783e(0x426)])==null?void 0x0:_0x4e8f5f['row'])===_0x82ebc5['row']||this[_0x17783e(0x2c7)][_0x17783e(0x354)](_0xb2a809=>{const _0x40959d=_0x17783e;_0xb2a809[_0x40959d(0x311)](_0x82ebc5);});},0x64));});}[_0x1d15a3(0x162)](_0x54c77d,_0x790f7f){const _0x5aba38=_0x1d15a3;var _0x393052;const _0x148613=(_0x393052=this['_sheetSkeletonManagerService'][_0x5aba38(0x1bf)]())==null?void 0x0:_0x393052['skeleton'];if(!_0x148613)return;const _0x49c38d=this[_0x5aba38(0x323)]();if(!_0x49c38d)return;this['_cursors'][_0x5aba38(0x354)](_0x2a9a6e=>{const _0x5582a0=_0x5aba38;_0x2a9a6e[_0x5582a0(0x2db)]();});const {scene:_0x19f423}=_0x49c38d,_0x64f022=xt(Array[_0x5aba38(0x2cb)](_0x790f7f[_0x5aba38(0x26b)]()))[_0x5aba38(0x32c)](_0x6d4240=>{const _0xd02e5c=_0x5aba38,{color:_0x129f48,range:_0x49e24f,name:_0x57999a,selection:_0x3177f0,sheetID:_0x2cc838}=_0x6d4240,{startColumn:_0x44ff4a,startRow:_0x10401d,endColumn:_0x1baa21,endRow:_0x2fd542}=_0x49e24f,_0x453c89=J['getCoordByCell'](_0x10401d,_0x44ff4a,_0x19f423,_0x148613),_0x2d56ca=J['getCoordByCell'](_0x2fd542,_0x1baa21,_0x19f423,_0x148613),{columnHeaderHeightAndMarginTop:_0x3f7f22}=_0x148613,{startX:_0x4d4dca,startY:_0x57b02d}=_0x453c89,{endX:_0x24e5b4,endY:_0xa7ef5d}=_0x2d56ca,_0x537c90=_0x24e5b4-_0x4d4dca,_0x2b3643=_0xa7ef5d-_0x57b02d,_0x23f09e={'labelPosition':_0x57b02d-_0x3f7f22>=X?_0xd02e5c(0x3f9):_0xd02e5c(0x3e7),'sheetID':_0x2cc838,'range':_0x49e24f,'color':_0x129f48,'name':_0x57999a,'selection':_0x3177f0,'left':_0x4d4dca,'top':_0x57b02d,'width':_0x537c90,'height':_0x2b3643,'evented':!0x1,'zIndex':$t};return new je(_0x57999a,_0x23f09e);});_0x19f423[_0x5aba38(0x3d2)](_0x64f022,At),this[_0x5aba38(0x2c7)]=new Set(_0x64f022);}['_removeCollabCursors'](){const _0x4a1ae8=_0x1d15a3;var _0x520214;(_0x520214=this[_0x4a1ae8(0x2c7)])==null||_0x520214[_0x4a1ae8(0x354)](_0x12faf1=>_0x12faf1['dispose']());}['_getSheetObject'](){const _0x53c887=_0x1d15a3;return J[_0x53c887(0x322)](this[_0x53c887(0x3f6)][_0x53c887(0x3ee)],this['_context']);}};Ce=yt([ue(0x1,a[_0x1d15a3(0x17f)](J[_0x1d15a3(0x1e5)])),ue(0x2,a['Inject'](F)),ue(0x3,a['Inject'](a['ThemeService']))],Ce);function xt(_0x35ca97){const _0x9c678f=_0x1d15a3,_0x4b9d12=new Map();return _0x35ca97['forEach'](_0x404f42=>{const _0x2e88e2=_0x2fae;if(_0x4b9d12[_0x2e88e2(0x299)](_0x404f42['selection'])){const _0x2b62b0=_0x4b9d12[_0x2e88e2(0x35c)](_0x404f42[_0x2e88e2(0x1b4)]);_0x2b62b0[_0x2e88e2(0x1ea)]+=',\x20'+_0x404f42[_0x2e88e2(0x1ea)];}else _0x4b9d12[_0x2e88e2(0x392)](_0x404f42['selection'],_0x404f42);}),Array['from'](_0x4b9d12[_0x9c678f(0x26b)]());}var Bt=Object[_0x1d15a3(0x1e0)],Ft=(_0x22b6ec,_0x343da9,_0x2bd0b6,_0x952a21)=>{for(var _0x2764ea=_0x952a21>0x1?void 0x0:_0x952a21?Bt(_0x343da9,_0x2bd0b6):_0x343da9,_0x42c294=_0x22b6ec['length']-0x1,_0x16a8ba;_0x42c294>=0x0;_0x42c294--)(_0x16a8ba=_0x22b6ec[_0x42c294])&&(_0x2764ea=_0x16a8ba(_0x2764ea)||_0x2764ea);return _0x2764ea;},y=(_0x140628,_0x3c5cf9)=>(_0x4cda9e,_0x51be78)=>_0x3c5cf9(_0x4cda9e,_0x51be78,_0x140628);let Z=class extends a[_0x1d15a3(0x2cf)]{constructor(_0x25edc6,_0xb7ef4,_0x213752,_0x1e13a2,_0x1914cc,_0x27e974){const _0x2a48e0=_0x1d15a3;super(),this[_0x2a48e0(0x3a2)]=_0x25edc6,this[_0x2a48e0(0x1ae)]=_0xb7ef4,this[_0x2a48e0(0x175)]=_0x213752,this[_0x2a48e0(0x336)]=_0x1e13a2,this[_0x2a48e0(0x36a)]=_0x1914cc,this[_0x2a48e0(0x31f)]=_0x27e974,this[_0x2a48e0(0x1c2)](),this[_0x2a48e0(0x3f8)]();}[_0x1d15a3(0x1c2)](){const _0xa2be22=_0x1d15a3;this['disposeWithMe'](this['_beforeCloseService'][_0xa2be22(0x2b0)](()=>{const _0x1e07de=_0xa2be22;if(this[_0x1e07de(0x1ae)][_0x1e07de(0x389)]['size'])return this['_localeService']['t']('collaboration.offline-data-not-saved');}));}[_0x1d15a3(0x3f8)](){const _0x12a8f2=_0x1d15a3;this[_0x12a8f2(0x35d)](this['_collaborationUIEventService'][_0x12a8f2(0x24c)][_0x12a8f2(0x1fe)](_0x95eac6=>{const _0x1a74e1=_0x12a8f2;_0x95eac6['id']===u[_0x1a74e1(0x18a)][_0x1a74e1(0x268)]&&this[_0x1a74e1(0x336)][_0x1a74e1(0x264)]({'type':p[_0x1a74e1(0x1be)][_0x1a74e1(0x22b)],'content':this[_0x1a74e1(0x31f)]['t'](_0x1a74e1(0x3ae))}),_0x95eac6['id']===u[_0x1a74e1(0x18a)]['CLOSE_ROOM']&&this[_0x1a74e1(0x336)]['show']({'type':p['MessageType'][_0x1a74e1(0x22b)],'content':this[_0x1a74e1(0x31f)]['t'](_0x1a74e1(0x312))}),_0x95eac6['id']===u[_0x1a74e1(0x18a)][_0x1a74e1(0x2fd)]&&this[_0x1a74e1(0x36a)][_0x1a74e1(0x264)]({'title':this[_0x1a74e1(0x31f)]['t'](_0x1a74e1(0x3dd)),'content':this[_0x1a74e1(0x31f)]['t'](_0x1a74e1(0x3aa)),'type':_0x1a74e1(0x20e),'duration':0x0}),_0x95eac6['id']===u[_0x1a74e1(0x18a)][_0x1a74e1(0x266)]&&this['_messageService'][_0x1a74e1(0x264)]({'type':p[_0x1a74e1(0x1be)][_0x1a74e1(0x3b2)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x95eac6[_0x1a74e1(0x184)]+')'}),_0x95eac6['id']===u[_0x1a74e1(0x18a)][_0x1a74e1(0x214)]&&this[_0x1a74e1(0x336)]['show']({'type':p['MessageType'][_0x1a74e1(0x22b)],'content':this[_0x1a74e1(0x31f)]['t'](_0x95eac6[_0x1a74e1(0x184)]||'')}),_0x95eac6['id']===u[_0x1a74e1(0x18a)]['SOCKET_FAILED_RETRY']&&this[_0x1a74e1(0x336)][_0x1a74e1(0x264)]({'type':p[_0x1a74e1(0x1be)]['Warning'],'content':this[_0x1a74e1(0x31f)]['t']('session.will-retry')}),_0x95eac6['id']===u[_0x1a74e1(0x18a)]['SOCKET_FAILED']&&this[_0x1a74e1(0x336)][_0x1a74e1(0x264)]({'type':p[_0x1a74e1(0x1be)][_0x1a74e1(0x3b2)],'content':this[_0x1a74e1(0x31f)]['t'](_0x1a74e1(0x180))}),_0x95eac6['id']===u[_0x1a74e1(0x18a)][_0x1a74e1(0x178)]&&this['_messageService'][_0x1a74e1(0x264)]({'type':p[_0x1a74e1(0x1be)][_0x1a74e1(0x3b2)],'content':this['_localeService']['t'](_0x1a74e1(0x2b8))});}));}};Z=Ft([y(0x0,O[_0x1d15a3(0x339)]),y(0x1,u[_0x1d15a3(0x421)]),y(0x2,a['Inject'](u[_0x1d15a3(0x3d8)])),y(0x3,O[_0x1d15a3(0x40e)]),y(0x4,O[_0x1d15a3(0x3d5)]),y(0x5,a[_0x1d15a3(0x17f)](a[_0x1d15a3(0x379)]))],Z);var jt=Object[_0x1d15a3(0x1e0)],kt=(_0x347552,_0x56fdc0,_0x1c4b2e,_0x473664)=>{const _0x221b9b=_0x1d15a3;for(var _0x58d8cf=_0x473664>0x1?void 0x0:_0x473664?jt(_0x56fdc0,_0x1c4b2e):_0x56fdc0,_0x289a5d=_0x347552[_0x221b9b(0x368)]-0x1,_0x397f0a;_0x289a5d>=0x0;_0x289a5d--)(_0x397f0a=_0x347552[_0x289a5d])&&(_0x58d8cf=_0x397f0a(_0x58d8cf)||_0x58d8cf);return _0x58d8cf;},z=(_0x30d2cd,_0xc8c705)=>(_0x1c564e,_0x37d73d)=>_0xc8c705(_0x1c564e,_0x37d73d,_0x30d2cd);let Q=class extends a[_0x1d15a3(0x2cf)]{constructor(_0xf5b74e,_0x326d99,_0x57555b,_0x9a31b){const _0x147887=_0x1d15a3;super(),_(this,'_memberID'),(this[_0x147887(0x3d4)]=_0xf5b74e,this['_httpService']=_0x326d99,this[_0x147887(0x3c0)]=_0x57555b,this[_0x147887(0x273)]=_0x9a31b,this[_0x147887(0x29c)]());}[_0x1d15a3(0x29c)](){const _0x110ca1=_0x1d15a3;this[_0x110ca1(0x3b6)](),this['_initUnhandledRejectionListener'](),this[_0x110ca1(0x352)](),this['_initUserListener']();}[_0x1d15a3(0x171)](){const _0x1a789f=_0x1d15a3;this[_0x1a789f(0x35d)](this[_0x1a789f(0x273)][_0x1a789f(0x2bf)][_0x1a789f(0x1fe)](_0x2beb29=>{const _0x2daed0=_0x1a789f;this[_0x2daed0(0x221)]=_0x2beb29==null?void 0x0:_0x2beb29[_0x2daed0(0x385)];}));}['_initWindowErrorListener'](){const _0x188852=_0x1d15a3,_0x5503c3=_0x2af674=>{const _0x403c6b=_0x2fae;var _0x595259;this[_0x403c6b(0x430)](_0x403c6b(0x20e),'[Window\x20Error]:\x20'+_0x2af674[_0x403c6b(0x1aa)]+_0x403c6b(0x2a3)+_0x2af674['filename']+':'+_0x2af674[_0x403c6b(0x398)]+':'+_0x2af674[_0x403c6b(0x3a6)]+'\x0a'+(((_0x595259=_0x2af674['error'])==null?void 0x0:_0x595259[_0x403c6b(0x23b)])||''));};window[_0x188852(0x3db)]('error',_0x5503c3),this[_0x188852(0x35d)](()=>{const _0x193b59=_0x188852;window[_0x193b59(0x212)](_0x193b59(0x20e),_0x5503c3);});}[_0x1d15a3(0x1e7)](){const _0x4c1e23=_0x1d15a3,_0x12dd7f=_0x2c19de=>{const _0x1d35a6=_0x2fae;this[_0x1d35a6(0x430)](_0x1d35a6(0x20e),_0x1d35a6(0x1ee)+_0x2c19de['reason']);};window[_0x4c1e23(0x3db)](_0x4c1e23(0x39a),_0x12dd7f),this[_0x4c1e23(0x35d)](()=>{const _0x3c0d4c=_0x4c1e23;window[_0x3c0d4c(0x212)](_0x3c0d4c(0x39a),_0x12dd7f);});}['_monkeyPatchLogService'](){const _0x43c0aa=_0x1d15a3,_0x423b6d=this[_0x43c0aa(0x3c0)][_0x43c0aa(0x20e)]['bind'](this['_logService']);this[_0x43c0aa(0x3c0)][_0x43c0aa(0x20e)]=(..._0x1d8dbc)=>{const _0x19de05=_0x43c0aa,_0x308d3a=_0x1d8dbc[_0x19de05(0x32c)](_0xc90689=>_0xc90689 instanceof Error?_0xc90689['message']+'\x0a'+_0xc90689[_0x19de05(0x23b)]:String(_0xc90689))[_0x19de05(0x26a)]('\x20');this[_0x19de05(0x430)](_0x19de05(0x20e),'[LogService\x20Error]:\x20'+_0x308d3a),_0x423b6d(..._0x1d8dbc);},this['disposeWithMe'](()=>{const _0x11fb70=_0x43c0aa;this[_0x11fb70(0x3c0)]['error']=_0x423b6d;});}[_0x1d15a3(0x430)](_0x477860,_0xef4937){const _0xca995d=_0x1d15a3;try{const _0x3bf491={'userId':this[_0xca995d(0x221)],'logLabel':_0x477860,'content':_0xef4937};this[_0xca995d(0x210)]['post'](_0xca995d(0x2ea),{'body':_0x3bf491})[_0xca995d(0x3b1)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x1d15a3(0x17f)](a[_0x1d15a3(0x173)])),z(0x1,a[_0x1d15a3(0x17f)](x[_0x1d15a3(0x2ab)])),z(0x2,a[_0x1d15a3(0x39d)]),z(0x3,a[_0x1d15a3(0x17f)](u[_0x1d15a3(0x417)]))],Q);const Yt=_0x1d15a3(0x3bd),Me={};var Ht=Object[_0x1d15a3(0x1e0)],Wt=(_0x2ac940,_0x22af15,_0x431801,_0x122bd5)=>{const _0x236133=_0x1d15a3;for(var _0x599eab=_0x122bd5>0x1?void 0x0:_0x122bd5?Ht(_0x22af15,_0x431801):_0x22af15,_0x1fb1b1=_0x2ac940[_0x236133(0x368)]-0x1,_0x5defd6;_0x1fb1b1>=0x0;_0x1fb1b1--)(_0x5defd6=_0x2ac940[_0x1fb1b1])&&(_0x599eab=_0x5defd6(_0x599eab)||_0x599eab);return _0x599eab;},Ae=(_0x128017,_0x71fc0e)=>(_0x204971,_0x417a9c)=>_0x71fc0e(_0x204971,_0x417a9c,_0x128017);function _0x2fae(_0x10fb09,_0x31cfa2){_0x10fb09=_0x10fb09-0x15f;const _0x2641c5=_0x2641();let _0x2faedd=_0x2641c5[_0x10fb09];return _0x2faedd;}let ee=class{constructor(_0x29759d,_0x64448f){const _0x24abf8=_0x1d15a3;this[_0x24abf8(0x38a)]=_0x29759d,this['_renderManagerService']=_0x64448f;}['transformIMECache'](_0x454a70){const _0x2c9f8d=_0x1d15a3;this[_0x2c9f8d(0x2ed)](_0x454a70),this[_0x2c9f8d(0x3ec)](_0x454a70);}[_0x1d15a3(0x2b1)](_0xb65ff6){const _0x4c011c=_0x1d15a3,{unitID:_0x573fcf}=_0xb65ff6,_0xc701df=this[_0x4c011c(0x358)]['getRenderById'](_0x573fcf)['with'](T[_0x4c011c(0x2b5)]),{redoCache:_0x15cd70}=_0xc701df[_0x4c011c(0x20f)]();if(_0x15cd70[_0x4c011c(0x368)]===0x0)return _0xb65ff6;let _0x3a759b=a[_0x4c011c(0x251)][_0x4c011c(0x361)](_0xb65ff6[_0x4c011c(0x250)][0x0]);for(let _0x568806=0x0;_0x568806<_0x15cd70[_0x4c011c(0x368)];_0x568806++){const _0x50ba63={'id':_0x4c011c(0x387),'params':{..._0x15cd70[_0x568806]}},_0x5931a2=this[_0x4c011c(0x38a)][_0x4c011c(0x42a)](_0x3a759b,_0x50ba63,!0x1);if(g[_0x4c011c(0x245)](_0x5931a2))throw _0x5931a2[_0x4c011c(0x20e)];_0x3a759b=_0x5931a2[_0x4c011c(0x1c9)];}return{...a[_0x4c011c(0x251)]['deepClone'](_0xb65ff6),'mutations':[_0x3a759b]};}[_0x1d15a3(0x2ed)](_0x4ed120){const _0x13063d=_0x1d15a3,{unitID:_0x921071}=_0x4ed120,_0x2c17e7=this[_0x13063d(0x358)][_0x13063d(0x2a5)](_0x921071)[_0x13063d(0x2dd)](T[_0x13063d(0x2b5)]),{undoCache:_0x378daf,redoCache:_0x5b190e}=_0x2c17e7[_0x13063d(0x20f)]();if(_0x378daf[_0x13063d(0x368)]===0x0||_0x5b190e[_0x13063d(0x368)]===0x0)return;const _0x3124d3=[],_0x3296d3=[];let _0x28f635=a[_0x13063d(0x251)]['deepClone'](_0x4ed120[_0x13063d(0x250)][0x0]),_0x4ee3a7=a[_0x13063d(0x251)][_0x13063d(0x361)](_0x4ed120['mutations'][0x0]);for(let _0x3e5516=_0x378daf[_0x13063d(0x368)]-0x1;_0x3e5516>=0x0;_0x3e5516--){const _0x49dc06={'id':_0x13063d(0x387),'params':{..._0x378daf[_0x3e5516]}},_0x3580b4={'id':_0x13063d(0x387),'params':{..._0x5b190e[_0x3e5516]}},_0xc7f11d=this[_0x13063d(0x38a)][_0x13063d(0x42a)](_0x28f635,_0x49dc06,!0x1),_0x339c06=this['_transformService'][_0x13063d(0x42a)](_0x4ee3a7,_0x3580b4,!0x1);if(g['isTransformMutationFailure'](_0xc7f11d))throw _0xc7f11d[_0x13063d(0x20e)];if(g[_0x13063d(0x245)](_0x339c06))throw _0x339c06[_0x13063d(0x20e)];_0x3124d3['unshift'](_0xc7f11d[_0x13063d(0x177)][_0x13063d(0x27a)]),_0x3296d3[_0x13063d(0x333)](_0x339c06[_0x13063d(0x177)][_0x13063d(0x27a)]),_0x28f635=_0xc7f11d[_0x13063d(0x1c9)],_0x4ee3a7=_0x339c06[_0x13063d(0x1c9)];}_0x2c17e7['setUndoRedoMutationParamsCache']({'undoCache':_0x3124d3,'redoCache':_0x3296d3});}[_0x1d15a3(0x3ec)](_0x3fc54f){const _0x489d73=_0x1d15a3,{unitID:_0x313900}=_0x3fc54f,_0x2144b9=this[_0x489d73(0x358)][_0x489d73(0x2a5)](_0x313900)[_0x489d73(0x2dd)](T[_0x489d73(0x2b5)]),_0x18f44c=_0x2144b9['getActiveRange']();if(_0x18f44c==null)return;const _0x554c49=[{'id':_0x489d73(0x387),'params':{'unitId':_0x3fc54f[_0x489d73(0x1f8)],'actions':null,'textRanges':[_0x18f44c]}}],_0x36abe4=this[_0x489d73(0x38a)]['transformMutationsWithChangeset'](_0x3fc54f,_0x554c49);if(!g[_0x489d73(0x28d)](_0x36abe4))throw _0x36abe4['error'];const _0x55659=_0x36abe4[_0x489d73(0x177)][0x0][_0x489d73(0x27a)][_0x489d73(0x40c)];Array['isArray'](_0x55659)&&_0x55659['length']&&_0x2144b9[_0x489d73(0x2cd)](_0x55659[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x1d15a3(0x345)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x20b277,_0x2436bc,_0x4b0bf4,_0x35f872)=>{const _0x1eb54c=_0x1d15a3;for(var _0x7fc777=_0x35f872>0x1?void 0x0:_0x35f872?Vt(_0x2436bc,_0x4b0bf4):_0x2436bc,_0x22084a=_0x20b277[_0x1eb54c(0x368)]-0x1,_0x5c4c14;_0x22084a>=0x0;_0x22084a--)(_0x5c4c14=_0x20b277[_0x22084a])&&(_0x7fc777=_0x5c4c14(_0x7fc777)||_0x7fc777);return _0x7fc777;},Ie=(_0x2b9b4d,_0x3adee0)=>(_0x15df23,_0x1a26e5)=>_0x3adee0(_0x15df23,_0x1a26e5,_0x2b9b4d);let te=class{constructor(_0x227b6d,_0x17e7cf,_0x3752fe){const _0x4c867c=_0x1d15a3;this[_0x4c867c(0x3d4)]=_0x227b6d,this['_transformService']=_0x17e7cf,this[_0x4c867c(0x391)]=_0x3752fe;}[_0x1d15a3(0x2f9)](_0x5dfc39){const _0x58294e=_0x1d15a3;this[_0x58294e(0x28a)](_0x5dfc39);}['transformRemoteChangeset'](_0x4521fe){const _0x1bb672=_0x1d15a3,{unitID:_0x4f7a38}=_0x4521fe,{collaboration:_0x48a18e}=this['_docStateChangeManagerService'][_0x1bb672(0x2a2)](_0x4f7a38);if(_0x48a18e[_0x1bb672(0x368)]===0x0)return _0x4521fe;let _0x2b2678=a['Tools']['deepClone'](_0x4521fe[_0x1bb672(0x250)][0x0]);for(let _0x167183=0x0;_0x167183<_0x48a18e[_0x1bb672(0x368)];_0x167183++){const _0x5c1d2e={'id':_0x1bb672(0x387),'params':{'unitId':_0x48a18e[_0x167183][_0x1bb672(0x3f5)],..._0x48a18e[_0x167183][_0x1bb672(0x404)]}},_0x12d84b=this['_transformService']['transformMutation'](_0x2b2678,_0x5c1d2e,!0x1);if(g[_0x1bb672(0x245)](_0x12d84b))throw _0x12d84b[_0x1bb672(0x20e)];_0x2b2678=_0x12d84b[_0x1bb672(0x1c9)];}return{...a[_0x1bb672(0x251)][_0x1bb672(0x361)](_0x4521fe),'mutations':[_0x2b2678]};}['_transformHistoryAndStateStack'](_0x3a34c9){const _0x3344c0=_0x1d15a3,{unitID:_0x37e805}=_0x3a34c9,{history:_0x4e26dd,collaboration:_0x45d850}=this[_0x3344c0(0x391)]['getStateCache'](_0x37e805);if(_0x4e26dd['length']===0x0&&_0x45d850[_0x3344c0(0x368)]===0x0)return;const _0x247e81=[],_0x2ef173=[];let _0x360f71=a[_0x3344c0(0x251)]['deepClone'](_0x3a34c9[_0x3344c0(0x250)][0x0]),_0x258005=a['Tools']['deepClone'](_0x3a34c9[_0x3344c0(0x250)][0x0]);for(let _0x40920c=_0x4e26dd['length']-0x1;_0x40920c>=0x0;_0x40920c--){const _0x20ed6={'id':_0x3344c0(0x387),'params':{'unitId':_0x4e26dd[_0x40920c]['unitId'],..._0x4e26dd[_0x40920c]['undoState']}},_0x1ec2c6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e26dd[_0x40920c][_0x3344c0(0x3f5)],..._0x4e26dd[_0x40920c][_0x3344c0(0x404)]}},_0x46ed94=this[_0x3344c0(0x38a)][_0x3344c0(0x42a)](_0x360f71,_0x20ed6,!0x1),_0x35bb40=this[_0x3344c0(0x38a)][_0x3344c0(0x42a)](_0x258005,_0x1ec2c6,!0x1);if(g[_0x3344c0(0x245)](_0x46ed94))throw _0x46ed94[_0x3344c0(0x20e)];if(g[_0x3344c0(0x245)](_0x35bb40))throw _0x35bb40[_0x3344c0(0x20e)];_0x247e81[_0x3344c0(0x333)]({..._0x4e26dd[_0x40920c],'undoState':_0x46ed94[_0x3344c0(0x177)][_0x3344c0(0x27a)],'redoState':_0x35bb40[_0x3344c0(0x177)][_0x3344c0(0x27a)]}),_0x360f71=_0x46ed94[_0x3344c0(0x1c9)],_0x258005=_0x35bb40[_0x3344c0(0x1c9)];}_0x360f71=a[_0x3344c0(0x251)]['deepClone'](_0x3a34c9[_0x3344c0(0x250)][0x0]),_0x258005=a[_0x3344c0(0x251)][_0x3344c0(0x361)](_0x3a34c9[_0x3344c0(0x250)][0x0]);for(let _0x14374d=_0x45d850[_0x3344c0(0x368)]-0x1;_0x14374d>=0x0;_0x14374d--){const _0x279e58={'id':_0x3344c0(0x387),'params':{'unitId':_0x45d850[_0x14374d][_0x3344c0(0x3f5)],..._0x45d850[_0x14374d][_0x3344c0(0x21f)]}},_0x134633={'id':_0x3344c0(0x387),'params':{'unitId':_0x45d850[_0x14374d]['unitId'],..._0x45d850[_0x14374d]['redoState']}},_0x139a1f=this['_transformService'][_0x3344c0(0x42a)](_0x360f71,_0x279e58,!0x1),_0x24d207=this[_0x3344c0(0x38a)]['transformMutation'](_0x258005,_0x134633,!0x1);if(g[_0x3344c0(0x245)](_0x139a1f))throw _0x139a1f[_0x3344c0(0x20e)];if(g['isTransformMutationFailure'](_0x24d207))throw _0x24d207[_0x3344c0(0x20e)];_0x2ef173[_0x3344c0(0x333)]({..._0x45d850[_0x14374d],'undoState':_0x139a1f[_0x3344c0(0x177)][_0x3344c0(0x27a)],'redoState':_0x24d207[_0x3344c0(0x177)][_0x3344c0(0x27a)]}),_0x360f71=_0x139a1f['m1Prime'],_0x258005=_0x24d207['m1Prime'];}this[_0x3344c0(0x391)]['setStateCache'](_0x37e805,{'history':_0x247e81,'collaboration':_0x2ef173});}};te=Gt([Ie(0x0,a[_0x1d15a3(0x17f)](a['Injector'])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x1d15a3(0x17f)](T['DocStateChangeManagerService']))],te);var Xt=Object[_0x1d15a3(0x1e0)],Kt=(_0x25afce,_0x5cda14,_0x72ad86,_0x310a90)=>{for(var _0x56934b=_0x310a90>0x1?void 0x0:_0x310a90?Xt(_0x5cda14,_0x72ad86):_0x5cda14,_0x3c4fa8=_0x25afce['length']-0x1,_0x48b775;_0x3c4fa8>=0x0;_0x3c4fa8--)(_0x48b775=_0x25afce[_0x3c4fa8])&&(_0x56934b=_0x48b775(_0x56934b)||_0x56934b);return _0x56934b;},Pe=(_0x4c8169,_0x48ff3e)=>(_0x3549ce,_0x5117d2)=>_0x48ff3e(_0x3549ce,_0x5117d2,_0x4c8169);let se=class{constructor(_0x5f3e55,_0x7fb594){const _0x129ce4=_0x1d15a3;this[_0x129ce4(0x3d4)]=_0x5f3e55,this[_0x129ce4(0x38a)]=_0x7fb594;}[_0x1d15a3(0x2e4)](_0x34c5d8){const _0x5d3967=_0x1d15a3;var _0x1f471f;const _0x494b6a=this['_injector'][_0x5d3967(0x35c)](V['DocSelectionManagerService']),_0x11e855=(_0x1f471f=_0x494b6a[_0x5d3967(0x23d)]())!=null?_0x1f471f:[];if(_0x11e855[_0x5d3967(0x368)]===0x0)return;const _0x11107b=_0x34c5d8[_0x5d3967(0x1f8)],_0x2ea995=[{'id':_0x5d3967(0x387),'params':{'unitId':_0x11107b,'actions':null,'textRanges':_0x11e855}}],_0x3290ac=this[_0x5d3967(0x38a)][_0x5d3967(0x2bc)](_0x34c5d8,_0x2ea995);if(!g[_0x5d3967(0x28d)](_0x3290ac))throw _0x3290ac['error'];const _0x4e5d31=_0x3290ac[_0x5d3967(0x177)][0x0][_0x5d3967(0x27a)][_0x5d3967(0x40c)];Array[_0x5d3967(0x20d)](_0x4e5d31)&&_0x4e5d31[_0x5d3967(0x368)]&&_0x494b6a[_0x5d3967(0x338)](_0x4e5d31,{'unitId':_0x11107b,'subUnitId':_0x11107b},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x1d15a3(0x173)])),Pe(0x1,g[_0x1d15a3(0x353)])],se);var qt=Object[_0x1d15a3(0x1e0)],zt=(_0x1b4488,_0x4bb6d3,_0x38e648,_0x15d609)=>{const _0x4cfabf=_0x1d15a3;for(var _0x2d1770=_0x15d609>0x1?void 0x0:_0x15d609?qt(_0x4bb6d3,_0x38e648):_0x4bb6d3,_0x557188=_0x1b4488[_0x4cfabf(0x368)]-0x1,_0x44c6d8;_0x557188>=0x0;_0x557188--)(_0x44c6d8=_0x1b4488[_0x557188])&&(_0x2d1770=_0x44c6d8(_0x2d1770)||_0x2d1770);return _0x2d1770;},N=(_0x5e76cc,_0x5cfa72)=>(_0x3b0153,_0x10b608)=>_0x5cfa72(_0x3b0153,_0x10b608,_0x5e76cc);let ie=class extends a[_0x1d15a3(0x2cf)]{constructor(_0x41497d,_0xd9fe68,_0x4973a1,_0x2d8204,_0xe0b9e,_0x3ac49e,_0xa5870c,_0x5787a8){const _0x4c4522=_0x1d15a3;super(),_(this,_0x4c4522(0x2a1),new I[(_0x4c4522(0x288))](u[_0x4c4522(0x384)][_0x4c4522(0x265)])),(this['_docStateChangeManagerService']=_0x41497d,this[_0x4c4522(0x21d)]=_0xd9fe68,this['_docTransformIMECacheService']=_0x4973a1,this[_0x4c4522(0x1d1)]=_0x2d8204,this[_0x4c4522(0x42f)]=_0xe0b9e,this[_0x4c4522(0x2ce)]=_0x3ac49e,this[_0x4c4522(0x336)]=_0xa5870c,this[_0x4c4522(0x31f)]=_0x5787a8,this[_0x4c4522(0x343)]());}[_0x1d15a3(0x343)](){const _0x38fc4f=_0x1d15a3;this[_0x38fc4f(0x35d)](this[_0x38fc4f(0x21d)][_0x38fc4f(0x3fc)][_0x38fc4f(0x1fe)](_0x1c3404=>{const _0x5d12de=_0x38fc4f,_0x3052fb=this['_docStateChangeManagerService'][_0x5d12de(0x277)][_0x5d12de(0x1fe)](_0x4e7fe0=>{const _0x28c022=_0x5d12de;if(_0x4e7fe0==null)return;const {unitId:_0x15dc0,redoState:_0x7d10fe,commandId:_0x2c5991}=_0x4e7fe0;if(_0x15dc0!==_0x1c3404[_0x28c022(0x1f8)])return;const _0x5ea918={'id':_0x2c5991,'type':a[_0x28c022(0x3a9)][_0x28c022(0x31e)],'params':{'unitId':_0x15dc0,'actions':_0x7d10fe[_0x28c022(0x1a1)],'textRanges':null}};_0x1c3404['onLocalMutation'](_0x5ea918);});if(_0x1c3404[_0x5d12de(0x35d)](_0x3052fb),_0x1c3404 instanceof u[_0x5d12de(0x390)]){const _0x5740ad={'onTransformIME':_0x3d853a=>this[_0x5d12de(0x36e)][_0x5d12de(0x3e4)](_0x3d853a),'onTransformState':_0x21ac55=>this[_0x5d12de(0x1d1)][_0x5d12de(0x2f9)](_0x21ac55),'onTransformSelections':_0x4956d7=>this[_0x5d12de(0x42f)][_0x5d12de(0x2e4)](_0x4956d7),'onSyncEditingCollabCursor':_0x4d3dc0=>this[_0x5d12de(0x2ce)]['syncEditingCollabCursor'](_0x4d3dc0),'onTransformRemoteChangesetByIMECache':_0xe7b9ae=>this[_0x5d12de(0x36e)][_0x5d12de(0x2b1)](_0xe7b9ae),'onTransformRemoteChangesetByStateCache':_0x537012=>this[_0x5d12de(0x1d1)]['transformRemoteChangeset'](_0x537012)};_0x1c3404[_0x5d12de(0x281)](_0x5740ad);}}));}};ie=zt([N(0x0,a[_0x1d15a3(0x17f)](T[_0x1d15a3(0x160)])),N(0x1,a[_0x1d15a3(0x17f)](u[_0x1d15a3(0x165)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x1d15a3(0x17f)](te)),N(0x4,a[_0x1d15a3(0x17f)](se)),N(0x5,a[_0x1d15a3(0x17f)](be)),N(0x6,O[_0x1d15a3(0x40e)]),N(0x7,a['Inject'](a[_0x1d15a3(0x379)]))],ie);var G=(_0xe629cb=>(_0xe629cb[_0xe629cb[_0x1d15a3(0x346)]=0x0]=_0x1d15a3(0x346),_0xe629cb[_0xe629cb['OK']=0x1]='OK',_0xe629cb[_0xe629cb['INTERNAL_ERROR']=0x2]=_0x1d15a3(0x3c9),_0xe629cb[_0xe629cb[_0x1d15a3(0x2fd)]=0x3]=_0x1d15a3(0x2fd),_0xe629cb[_0xe629cb[_0x1d15a3(0x314)]=0x4]=_0x1d15a3(0x314),_0xe629cb[_0xe629cb['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0xe629cb[_0xe629cb[_0x1d15a3(0x26c)]=0x6]=_0x1d15a3(0x26c),_0xe629cb[_0xe629cb[_0x1d15a3(0x1d3)]=0x7]=_0x1d15a3(0x1d3),_0xe629cb[_0xe629cb['TOO_MANY_REQUESTS']=0x8]=_0x1d15a3(0x239),_0xe629cb[_0xe629cb[_0x1d15a3(0x2c5)]=0x9]=_0x1d15a3(0x2c5),_0xe629cb[_0xe629cb[_0x1d15a3(0x376)]=0xa]=_0x1d15a3(0x376),_0xe629cb[_0xe629cb[_0x1d15a3(0x3d9)]=0xb]=_0x1d15a3(0x3d9),_0xe629cb[_0xe629cb[_0x1d15a3(0x236)]=0xc]=_0x1d15a3(0x236),_0xe629cb[_0xe629cb[_0x1d15a3(0x2d8)]=0xd]=_0x1d15a3(0x2d8),_0xe629cb[_0xe629cb['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xe629cb[_0xe629cb[_0x1d15a3(0x267)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0xe629cb[_0xe629cb[_0x1d15a3(0x249)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0xe629cb[_0xe629cb[_0x1d15a3(0x27c)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xe629cb[_0xe629cb['ERROR_AGAIN']=0x65]=_0x1d15a3(0x1a6),_0xe629cb[_0xe629cb[_0x1d15a3(0x327)]=0xc9]=_0x1d15a3(0x327),_0xe629cb[_0xe629cb[_0x1d15a3(0x2ef)]=0xca]=_0x1d15a3(0x2ef),_0xe629cb[_0xe629cb['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x1d15a3(0x262),_0xe629cb[_0xe629cb[_0x1d15a3(0x43b)]=0x1771]=_0x1d15a3(0x43b),_0xe629cb[_0xe629cb[_0x1d15a3(0x3c3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xe629cb[_0xe629cb[_0x1d15a3(0x402)]=0x1773]=_0x1d15a3(0x402),_0xe629cb[_0xe629cb['APPLY_REJECT']=0x1b59]=_0x1d15a3(0x318),_0xe629cb[_0xe629cb[_0x1d15a3(0x437)]=0x1b5a]=_0x1d15a3(0x437),_0xe629cb[_0xe629cb[_0x1d15a3(0x38b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0xe629cb[_0xe629cb[_0x1d15a3(0x399)]=0x1b5c]=_0x1d15a3(0x399),_0xe629cb[_0xe629cb[_0x1d15a3(0x434)]=0x1b5d]='APPLY_DUPLICATED',_0xe629cb[_0xe629cb['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1d15a3(0x3e6),_0xe629cb[_0xe629cb[_0x1d15a3(0x29a)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xe629cb[_0xe629cb[_0x1d15a3(0x1dc)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xe629cb[_0xe629cb[_0x1d15a3(0x1d7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xe629cb[_0xe629cb[_0x1d15a3(0x1ad)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xe629cb[_0xe629cb[_0x1d15a3(0x2f4)]=0x232d]=_0x1d15a3(0x2f4),_0xe629cb[_0xe629cb[_0x1d15a3(0x2a0)]=0x2711]=_0x1d15a3(0x2a0),_0xe629cb[_0xe629cb[_0x1d15a3(0x1c7)]=0x2712]=_0x1d15a3(0x1c7),_0xe629cb[_0xe629cb[_0x1d15a3(0x216)]=0x2713]=_0x1d15a3(0x216),_0xe629cb[_0xe629cb[_0x1d15a3(0x1d8)]=0x2714]=_0x1d15a3(0x1d8),_0xe629cb[_0xe629cb[_0x1d15a3(0x1ca)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xe629cb[_0xe629cb[_0x1d15a3(0x188)]=0x271b]=_0x1d15a3(0x188),_0xe629cb[_0xe629cb[_0x1d15a3(0x2d4)]=0x271c]=_0x1d15a3(0x2d4),_0xe629cb[_0xe629cb[_0x1d15a3(0x1c6)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xe629cb[_0xe629cb[_0x1d15a3(0x220)]=0x271e]=_0x1d15a3(0x220),_0xe629cb[_0xe629cb[_0x1d15a3(0x279)]=0x271f]=_0x1d15a3(0x279),_0xe629cb[_0xe629cb[_0x1d15a3(0x3d1)]=0x2720]=_0x1d15a3(0x3d1),_0xe629cb[_0xe629cb['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1d15a3(0x22f),_0xe629cb[_0xe629cb['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1d15a3(0x37b),_0xe629cb[_0xe629cb['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0xe629cb[_0xe629cb[_0x1d15a3(0x3b0)]=0x2ee3]=_0x1d15a3(0x3b0),_0xe629cb[_0xe629cb[_0x1d15a3(0x309)]=0x2ee4]='USER_NOT_INVITED_CODE',_0xe629cb[_0xe629cb[_0x1d15a3(0x372)]=0x2ee5]=_0x1d15a3(0x372),_0xe629cb[_0xe629cb[_0x1d15a3(0x30f)]=0x32c9]=_0x1d15a3(0x30f),_0xe629cb[_0xe629cb[_0x1d15a3(0x2e0)]=0x32ca]=_0x1d15a3(0x2e0),_0xe629cb[_0xe629cb[_0x1d15a3(0x17d)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0xe629cb[_0xe629cb[_0x1d15a3(0x341)]=0x36b1]=_0x1d15a3(0x341),_0xe629cb[_0xe629cb[_0x1d15a3(0x2df)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xe629cb[_0xe629cb[_0x1d15a3(0x24e)]=0x36b3]=_0x1d15a3(0x24e),_0xe629cb[_0xe629cb[_0x1d15a3(0x38e)]=0x36b4]=_0x1d15a3(0x38e),_0xe629cb[_0xe629cb['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0xe629cb[_0xe629cb[_0x1d15a3(0x207)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0xe629cb[_0xe629cb['ENTITLE_COUPON_USED_UP']=0x36b7]='ENTITLE_COUPON_USED_UP',_0xe629cb[_0xe629cb['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x1d15a3(0x286),_0xe629cb[_0xe629cb[_0x1d15a3(0x43d)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0xe629cb[_0xe629cb[_0x1d15a3(0x2aa)]=0x3716]=_0x1d15a3(0x2aa),_0xe629cb[_0xe629cb[_0x1d15a3(0x30a)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xe629cb[_0xe629cb['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x1d15a3(0x18e),_0xe629cb[_0xe629cb['REDEMPTION_INVALID_CODE']=0x3a99]=_0x1d15a3(0x39c),_0xe629cb[_0xe629cb['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x1d15a3(0x2e6),_0xe629cb[_0xe629cb[_0x1d15a3(0x3fa)]=0x3a9b]=_0x1d15a3(0x3fa),_0xe629cb[_0xe629cb[_0x1d15a3(0x172)]=0x3a9c]=_0x1d15a3(0x172),_0xe629cb[_0xe629cb['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x1d15a3(0x381),_0xe629cb[_0xe629cb[_0x1d15a3(0x17c)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0xe629cb[_0xe629cb[_0x1d15a3(0x2d9)]=0x3a9f]=_0x1d15a3(0x2d9),_0xe629cb[_0xe629cb[_0x1d15a3(0x260)]=0x3e81]=_0x1d15a3(0x260),_0xe629cb[_0xe629cb[_0x1d15a3(0x1d2)]=-0x1]=_0x1d15a3(0x1d2),_0xe629cb))(G||{});function Jt(_0x364d15){const _0x4db44f=_0x1d15a3;var _0x3f30aa,_0x3a80ae;const _0xad1f33=(_0x3f30aa=_0x364d15[_0x4db44f(0x243)])==null?void 0x0:_0x3f30aa['stage'],_0x2cde85=((_0x3a80ae=_0x364d15[_0x4db44f(0x243)])==null?void 0x0:_0x3a80ae['totalFormulasToCalculate'])||0x0;return _0xad1f33===B['FormulaExecuteStageType'][_0x4db44f(0x33b)]&&_0x2cde85>0x0;}function Zt(_0x291c6b){const _0x5ce031=_0x1d15a3;return _0x291c6b['functionsExecutedState']===B[_0x5ce031(0x2c8)][_0x5ce031(0x224)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x10d1eb,_0x59ac86,_0x30c19e,_0x51ec8b)=>{const _0xe01a5a=_0x1d15a3;for(var _0x395a21=_0x51ec8b>0x1?void 0x0:_0x51ec8b?Qt(_0x59ac86,_0x30c19e):_0x59ac86,_0x14fa40=_0x10d1eb[_0xe01a5a(0x368)]-0x1,_0xda9136;_0x14fa40>=0x0;_0x14fa40--)(_0xda9136=_0x10d1eb[_0x14fa40])&&(_0x395a21=_0xda9136(_0x395a21)||_0x395a21);return _0x395a21;},L=(_0x45d4c5,_0x18ed89)=>(_0x413610,_0x58c387)=>_0x18ed89(_0x413610,_0x58c387,_0x45d4c5);const ts=_0x1d15a3(0x25d),ss=_0x1d15a3(0x1ab),is=_0x1d15a3(0x37e);let ne=class extends a[_0x1d15a3(0x2cf)]{constructor(_0x26dfbf,_0x18568e,_0x4d5e19,_0x1e4cdf,_0x33e27a,_0x2227a2,_0x106105){const _0x2b326d=_0x1d15a3;super(),_(this,_0x2b326d(0x359),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x2b326d(0x3e1),0x0),_(this,_0x2b326d(0x1f2),[]),_(this,_0x2b326d(0x2a6),0x0),(this[_0x2b326d(0x336)]=_0x26dfbf,this[_0x2b326d(0x370)]=_0x18568e,this[_0x2b326d(0x30b)]=_0x4d5e19,this[_0x2b326d(0x210)]=_0x1e4cdf,this[_0x2b326d(0x2d3)]=_0x33e27a,this[_0x2b326d(0x3c0)]=_0x2227a2,this[_0x2b326d(0x31f)]=_0x106105,this[_0x2b326d(0x3cf)]());}[_0x1d15a3(0x3cf)](){const _0x2a22be=_0x1d15a3;this[_0x2a22be(0x35d)](this['_commandService'][_0x2a22be(0x17e)]((_0x31c039,_0x3f1739)=>{const _0x3b83a1=_0x2a22be;var _0x4be065;if(_0x31c039['id']!==B[_0x3b83a1(0x1df)]['id'])return;const _0x589dca=_0x31c039[_0x3b83a1(0x27a)];if(!this[_0x3b83a1(0x41a)]((_0x4be065=_0x589dca[_0x3b83a1(0x202)])!=null?_0x4be065:[]))return;if(!this[_0x3b83a1(0x438)]())throw this[_0x3b83a1(0x235)](_0x31c039,_0x3f1739),this[_0x3b83a1(0x313)](),new a[(_0x3b83a1(0x1ef))]();})),this[_0x2a22be(0x35d)](this[_0x2a22be(0x370)][_0x2a22be(0x1f9)]((_0x55239c,_0x5c71bd)=>{const _0x22176a=_0x2a22be;if(_0x55239c['id']!==B[_0x22176a(0x3bc)]['id'])return;const _0x2f58e0=_0x55239c['params'];if(Jt(_0x2f58e0)){const _0x4c8d6a=a[_0x22176a(0x377)]();this[_0x22176a(0x1f2)][_0x22176a(0x1e1)](_0x4c8d6a),this[_0x22176a(0x383)](_0x4c8d6a);}else{if(Zt(_0x2f58e0)&&this[_0x22176a(0x1f2)][_0x22176a(0x368)]>0x0){const _0x5f1e7e=this['_taskIds']['shift']();this[_0x22176a(0x1ce)](_0x5f1e7e);}}}));}[_0x1d15a3(0x351)](){const _0x489d3b=_0x1d15a3;super[_0x489d3b(0x351)](),this[_0x489d3b(0x34d)](),this[_0x489d3b(0x1f2)]=[],this[_0x489d3b(0x3e1)]=0x0,this[_0x489d3b(0x1b1)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x1d15a3(0x235)](_0x5104d2,_0x294b98){const _0x856ca2=_0x1d15a3;for(let _0x53a2fe=0x0;_0x53a2fe<0x1e;_0x53a2fe++)try{if(await this['_getFormulaLimitStatus'](),this[_0x856ca2(0x438)]()){this['_applyCommand'](_0x5104d2,_0x294b98),this[_0x856ca2(0x336)]['show']({'content':this[_0x856ca2(0x31f)]['t'](_0x856ca2(0x1b7)),'type':p[_0x856ca2(0x1be)]['Success']});return;}await new Promise(_0x2457e9=>{const _0x23e5e9=_0x856ca2;this[_0x23e5e9(0x359)]=window['setTimeout'](_0x2457e9,0x3e8);});}catch(_0x35b17a){this['_logService'][_0x856ca2(0x20e)](_0x35b17a);}this[_0x856ca2(0x336)]['show']({'content':this[_0x856ca2(0x31f)]['t'](_0x856ca2(0x400)),'type':p[_0x856ca2(0x1be)]['Error']});}[_0x1d15a3(0x196)](_0x523077,_0x2caf4f){const _0xf28e41=_0x1d15a3;try{this[_0xf28e41(0x370)][_0xf28e41(0x218)](_0x523077['id'],_0x523077['params'],_0x2caf4f);}catch(_0x32ca2c){this[_0xf28e41(0x3c0)][_0xf28e41(0x20e)](_0x32ca2c);}}[_0x1d15a3(0x3b3)](_0x2cb45f,_0x1feabd){const _0x3aeb39=_0x1d15a3;_0x1feabd<this['_lastResponseTimestamp']||(this[_0x3aeb39(0x2a6)]=_0x1feabd,this[_0x3aeb39(0x1b1)]=Number[_0x3aeb39(0x42e)](_0x2cb45f[_0x3aeb39(0x2ff)]),this['_currentUsage']=Number[_0x3aeb39(0x42e)](_0x2cb45f[_0x3aeb39(0x3c4)]));}async[_0x1d15a3(0x383)](_0x1e34cc){const _0x81466c=_0x1d15a3;var _0x1c117c,_0x58eef4;const _0x52a68d=Date['now']();try{const _0xf6fb5a=((_0x1c117c=this[_0x81466c(0x30b)][_0x81466c(0x233)](u[_0x81466c(0x2de)]))==null?void 0x0:_0x1c117c['startFormulaLimitUrl'])||ss,_0x340704=(await this['_httpService'][_0x81466c(0x347)](_0xf6fb5a,{'body':JSON[_0x81466c(0x409)]({'taskId':_0x1e34cc})}))[_0x81466c(0x2ca)];if(((_0x58eef4=_0x340704[_0x81466c(0x20e)])==null?void 0x0:_0x58eef4[_0x81466c(0x282)])!==G['OK'])return;this[_0x81466c(0x3b3)](_0x340704[_0x81466c(0x1c3)],_0x52a68d);}catch(_0x5d11b6){this[_0x81466c(0x3c0)][_0x81466c(0x20e)](_0x5d11b6);}}async['_getFormulaLimitStatus'](_0x178b20){const _0x5a203f=_0x1d15a3;var _0x572cc4,_0x132984;const _0x5a6da4=Date[_0x5a203f(0x1e2)]();try{const _0x15622e=((_0x572cc4=this['_configService']['getConfig'](u[_0x5a203f(0x2de)]))==null?void 0x0:_0x572cc4[_0x5a203f(0x2b4)])||ts,_0x39a0e5=_0x178b20?_0x15622e+_0x5a203f(0x439)+encodeURIComponent(_0x178b20):_0x15622e,_0x2e9694=(await this['_httpService'][_0x5a203f(0x35c)](_0x39a0e5))[_0x5a203f(0x2ca)];if(((_0x132984=_0x2e9694['error'])==null?void 0x0:_0x132984[_0x5a203f(0x282)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x2e9694[_0x5a203f(0x1c3)],_0x5a6da4);}catch(_0x48f430){this[_0x5a203f(0x3c0)]['error'](_0x48f430);}}async[_0x1d15a3(0x1ce)](_0x3c640c){const _0xf383aa=_0x1d15a3;var _0x10b32e,_0x19a701;const _0xf19efe=Date['now']();try{const _0x3cc9a8=((_0x10b32e=this[_0xf383aa(0x30b)][_0xf383aa(0x233)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x10b32e[_0xf383aa(0x187)])||is,_0x353815=(await this[_0xf383aa(0x210)]['post'](_0x3cc9a8,{'body':JSON[_0xf383aa(0x409)]({'taskId':_0x3c640c})}))['body'];if(((_0x19a701=_0x353815[_0xf383aa(0x20e)])==null?void 0x0:_0x19a701[_0xf383aa(0x282)])!==G['OK'])return;this[_0xf383aa(0x3b3)](_0x353815['limitInfo'],_0xf19efe);}catch(_0x2d8627){this[_0xf383aa(0x3c0)][_0xf383aa(0x20e)](_0x2d8627);}}[_0x1d15a3(0x438)](){const _0x17e425=_0x1d15a3;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x17e425(0x3e1)]>0x0;}[_0x1d15a3(0x34d)](){const _0x278d65=_0x1d15a3;this['_pollingInterval']&&(clearTimeout(this[_0x278d65(0x359)]),this[_0x278d65(0x359)]=null);}['_showGuardMessage'](){const _0x555cc8=_0x1d15a3;this[_0x555cc8(0x336)][_0x555cc8(0x264)]({'content':this['_localeService']['t'](_0x555cc8(0x2e1)),'type':p['MessageType'][_0x555cc8(0x1f0)]});}[_0x1d15a3(0x41a)](_0x8a7f11){const _0xc59ab7=_0x1d15a3;for(const _0x2e6b19 of _0x8a7f11){const {unitId:_0x14410a,sheetId:_0x24c902,range:_0x5419df}=_0x2e6b19,_0x55da18=this['_univerInstanceService'][_0xc59ab7(0x418)](_0x14410a);if(!_0x55da18)continue;const _0x15a3ad=_0x55da18[_0xc59ab7(0x1a8)](_0x24c902);if(!_0x15a3ad)continue;const _0x290393=_0x15a3ad[_0xc59ab7(0x191)]();for(let _0x5d6684=_0x5419df[_0xc59ab7(0x324)];_0x5d6684<=_0x5419df[_0xc59ab7(0x2f1)];_0x5d6684++)for(let _0x365659=_0x5419df['startColumn'];_0x365659<=_0x5419df['endColumn'];_0x365659++){const _0x5148c5=_0x290393[_0xc59ab7(0x1a5)](_0x5d6684,_0x365659);if(_0x5148c5&&(a[_0xc59ab7(0x1bb)](_0x5148c5['f'])||a[_0xc59ab7(0x340)](_0x5148c5['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x1d15a3(0x17f)](O[_0x1d15a3(0x40e)])),L(0x1,a[_0x1d15a3(0x2c2)]),L(0x2,a['IConfigService']),L(0x3,a[_0x1d15a3(0x17f)](x[_0x1d15a3(0x2ab)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x1d15a3(0x39d)]),L(0x6,a[_0x1d15a3(0x17f)](a['LocaleService']))],ne);var ns=Object[_0x1d15a3(0x1e0)],rs=(_0x4eeb42,_0x5e2152,_0xbd9f33,_0x2d1abd)=>{const _0x41ff71=_0x1d15a3;for(var _0x594b82=_0x2d1abd>0x1?void 0x0:_0x2d1abd?ns(_0x5e2152,_0xbd9f33):_0x5e2152,_0x11230e=_0x4eeb42[_0x41ff71(0x368)]-0x1,_0x479b19;_0x11230e>=0x0;_0x11230e--)(_0x479b19=_0x4eeb42[_0x11230e])&&(_0x594b82=_0x479b19(_0x594b82)||_0x594b82);return _0x594b82;},Se=(_0x1cfefb,_0x210597)=>(_0x1782b7,_0x19c0d9)=>_0x210597(_0x1782b7,_0x19c0d9,_0x1cfefb);let Te=class extends a['Disposable']{constructor(_0x1f5c69,_0x3f9b78,_0xec454e){const _0x3526d1=_0x1d15a3;super(),_(this,_0x3526d1(0x31d),new Map()),_(this,_0x3526d1(0x330),new Map()),_(this,_0x3526d1(0x18b),!0x1),(this[_0x3526d1(0x30b)]=_0x1f5c69,this[_0x3526d1(0x1a4)]=_0x3f9b78,this[_0x3526d1(0x222)]=_0xec454e);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x1d15a3(0x32b)](){const _0xd022d0=_0x1d15a3;this[_0xd022d0(0x18b)]=!0x1;}get['saveTaskMap'](){const _0x45b8b6=_0x1d15a3;return this[_0x45b8b6(0x330)];}[_0x1d15a3(0x351)](){const _0x4bf405=_0x1d15a3;this['exhaustSavingTask']()[_0x4bf405(0x308)](()=>super[_0x4bf405(0x351)]());}async[_0x1d15a3(0x2e2)](_0x4d8ac8){const _0x135a14=_0x1d15a3;return this[_0x135a14(0x18b)]?null:this[_0x135a14(0x1a4)]['getItem'](u[_0x135a14(0x348)](_0x4d8ac8));}async[_0x1d15a3(0x337)](_0x4cee21,_0x3842a6){const _0x202979=_0x1d15a3;return!!this[_0x202979(0x1a4)][_0x202979(0x169)](_0x4cee21,_0x3842a6);}[_0x1d15a3(0x334)](_0xfd1bef,_0x43281d,_0x36c90a,_0x121079){const _0x24442b=_0x1d15a3,_0x579d24=this[_0x24442b(0x222)][_0x24442b(0x363)](_0xfd1bef);this[_0x24442b(0x31d)][_0x24442b(0x392)](_0xfd1bef,{'unitID':_0xfd1bef,'type':_0x43281d,'awaitingChangeset':_0x36c90a,'mutations':_0x121079,'rev':_0x579d24}),this[_0x24442b(0x330)][_0x24442b(0x299)](_0xfd1bef)||this[_0x24442b(0x25f)](_0xfd1bef);}[_0x1d15a3(0x25f)](_0x2c2362){const _0x51f3ea=_0x1d15a3,_0x217c53=this[_0x51f3ea(0x356)]();_0x217c53===0x0?this[_0x51f3ea(0x211)](_0x2c2362):this[_0x51f3ea(0x330)][_0x51f3ea(0x392)](_0x2c2362,setTimeout(()=>this[_0x51f3ea(0x211)](_0x2c2362),_0x217c53));}[_0x1d15a3(0x356)](){const _0x497835=_0x1d15a3;var _0x586b0b;return(_0x586b0b=this[_0x497835(0x30b)][_0x497835(0x233)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x586b0b:u[_0x497835(0x205)];}['_saveCache'](_0x2718ed){const _0x1d10ec=_0x1d15a3,_0x136cfd=this[_0x1d10ec(0x330)][_0x1d10ec(0x35c)](_0x2718ed);return _0x136cfd!==void 0x0&&window[_0x1d10ec(0x16c)](_0x136cfd),this['_localStorageService'][_0x1d10ec(0x169)](u[_0x1d10ec(0x348)](_0x2718ed),this[_0x1d10ec(0x31d)]['get'](_0x2718ed))[_0x1d10ec(0x308)](()=>this[_0x1d10ec(0x330)]['delete'](_0x2718ed));}async[_0x1d15a3(0x436)](){const _0x41bc3b=_0x1d15a3,_0x1f16d0=[];this['_saveTaskMap'][_0x41bc3b(0x354)]((_0x12f268,_0x23bef3)=>{const _0x34eb10=_0x41bc3b;window['clearTimeout'](_0x12f268),_0x1f16d0[_0x34eb10(0x1e1)](this[_0x34eb10(0x211)](_0x23bef3)[_0x34eb10(0x308)](()=>{const _0x139f63=_0x34eb10;this[_0x139f63(0x330)][_0x139f63(0x40f)](_0x23bef3);}));}),await Promise[_0x41bc3b(0x29e)](_0x1f16d0);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x1d15a3(0x422)]),Se(0x2,a['Inject'](g[_0x1d15a3(0x319)]))],Te);class ke extends a[_0x1d15a3(0x174)]{constructor(){const _0x33d9d1=_0x1d15a3;super(),_(this,'urlChange$'),this[_0x33d9d1(0x206)]=I[_0x33d9d1(0x3df)](window,_0x33d9d1(0x413))[_0x33d9d1(0x2ae)](I['takeUntil'](this[_0x33d9d1(0x43c)]),I['shareReplay'](0x1),I[_0x33d9d1(0x3c8)](void 0x0));}['setParam'](_0x5895c8,_0x44a91e,_0x520572=!0x1){const _0x49e6c2=_0x1d15a3,_0x2b0026=new URL(window['location'][_0x49e6c2(0x41f)]);_0x2b0026['searchParams'][_0x49e6c2(0x392)](_0x5895c8,_0x44a91e),_0x520572?window[_0x49e6c2(0x369)][_0x49e6c2(0x2e3)]('','',_0x2b0026[_0x49e6c2(0x27d)]()):window['history'][_0x49e6c2(0x213)]('','',_0x2b0026[_0x49e6c2(0x27d)]());}[_0x1d15a3(0x287)](_0xdb7851,_0xfa37de=!0x1){const _0x208826=_0x1d15a3,_0x2d0f87=new URL(window[_0x208826(0x36b)][_0x208826(0x41f)]);_0x2d0f87['searchParams'][_0x208826(0x40f)](_0xdb7851),_0xfa37de?window[_0x208826(0x369)][_0x208826(0x2e3)]('','',_0x2d0f87[_0x208826(0x27d)]()):window[_0x208826(0x369)][_0x208826(0x213)]('','',_0x2d0f87['toString']());}[_0x1d15a3(0x1db)](_0x20cba5){const _0x2febc5=_0x1d15a3;var _0x3944c4;return(_0x3944c4=new URL(window[_0x2febc5(0x36b)]['href'])['searchParams']['get'](_0x20cba5))!=null?_0x3944c4:void 0x0;}}var os=Object[_0x1d15a3(0x316)],as=Object['getOwnPropertyDescriptor'],cs=(_0x3c7eb9,_0x1c7eeb,_0x5b2bb2)=>_0x1c7eeb in _0x3c7eb9?os(_0x3c7eb9,_0x1c7eeb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b2bb2}):_0x3c7eb9[_0x1c7eeb]=_0x5b2bb2,ls=(_0x537de1,_0x31d4ed,_0x59b451,_0x823dbf)=>{const _0x613da0=_0x1d15a3;for(var _0x1b1c49=_0x823dbf>0x1?void 0x0:_0x823dbf?as(_0x31d4ed,_0x59b451):_0x31d4ed,_0x460587=_0x537de1[_0x613da0(0x368)]-0x1,_0x787305;_0x460587>=0x0;_0x460587--)(_0x787305=_0x537de1[_0x460587])&&(_0x1b1c49=_0x787305(_0x1b1c49)||_0x1b1c49);return _0x1b1c49;},de=(_0x50191b,_0x232f5a)=>(_0x568eae,_0x475c43)=>_0x232f5a(_0x568eae,_0x475c43,_0x50191b),_s=(_0x18ccfa,_0x2cdd73,_0x146736)=>cs(_0x18ccfa,_0x2cdd73+'',_0x146736);const hs=_0x1d15a3(0x168);exports[_0x1d15a3(0x192)]=class extends a[_0x1d15a3(0x1cc)]{constructor(_0x4e7217=Me,_0x3e93ca,_0x23efa5,_0x24cd12){const _0x5911f1=_0x1d15a3;super(),this['_config']=_0x4e7217,this[_0x5911f1(0x358)]=_0x3e93ca,this[_0x5911f1(0x3d4)]=_0x23efa5,this[_0x5911f1(0x30b)]=_0x24cd12;const {..._0x4094eb}=a[_0x5911f1(0x17b)]({},Me,this[_0x5911f1(0x195)]);this['_configService'][_0x5911f1(0x204)](Yt,_0x4094eb);}[_0x1d15a3(0x3a1)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x1d15a3(0x1c0)](){const _0x34b7ff=_0x1d15a3;this[_0x34b7ff(0x414)]();}['_registerDependencies'](){const _0x4f5a03=_0x1d15a3;var _0x444ccd;const _0xf5d61c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x4f5a03(0x2be)],{'useClass':x[_0x4f5a03(0x2b7)]}],[u[_0x4f5a03(0x421)],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x4f5a03(0x1fa)]]];this['_config'][_0x4f5a03(0x189)]&&_0xf5d61c[_0x4f5a03(0x1e1)]([Q]),a[_0x4f5a03(0x302)](this[_0x4f5a03(0x3d4)],a[_0x4f5a03(0x33d)](_0xf5d61c,(_0x444ccd=this['_config'])==null?void 0x0:_0x444ccd[_0x4f5a03(0x257)]));}[_0x1d15a3(0x414)](){const _0x234066=_0x1d15a3;this['disposeWithMe'](this[_0x234066(0x358)][_0x234066(0x181)](a[_0x234066(0x255)]['UNIVER_DOC'],[Ee])),this[_0x234066(0x35d)](this['_renderManagerService'][_0x234066(0x181)](a[_0x234066(0x255)][_0x234066(0x22a)],[Ce]));}[_0x1d15a3(0x219)](){const _0x3e00ba=_0x1d15a3;a[_0x3e00ba(0x3e9)](this[_0x3e00ba(0x3d4)],[[F],[exports[_0x3e00ba(0x284)]],[ie],[Z],[exports[_0x3e00ba(0x1fa)]],[ne]]),this[_0x3e00ba(0x195)][_0x3e00ba(0x189)]&&a[_0x3e00ba(0x3e9)](this[_0x3e00ba(0x3d4)],[[Q]]);}},_s(exports[_0x1d15a3(0x192)],_0x1d15a3(0x231),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x1d15a3(0x253)](u[_0x1d15a3(0x237)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x1d15a3(0x17f)](a[_0x1d15a3(0x173)])),de(0x3,a[_0x1d15a3(0x328)])],exports[_0x1d15a3(0x192)]);var us=Object[_0x1d15a3(0x1e0)],Is=(_0x52ec03,_0x596819,_0x2683ec,_0x44f7e6)=>{for(var _0x20a949=_0x44f7e6>0x1?void 0x0:_0x44f7e6?us(_0x596819,_0x2683ec):_0x596819,_0x158a6b=_0x52ec03['length']-0x1,_0x3b090b;_0x158a6b>=0x0;_0x158a6b--)(_0x3b090b=_0x52ec03[_0x158a6b])&&(_0x20a949=_0x3b090b(_0x20a949)||_0x20a949);return _0x20a949;},W=(_0x3f2dcd,_0x4d44c4)=>(_0x58f482,_0x23d50b)=>_0x4d44c4(_0x58f482,_0x23d50b,_0x3f2dcd);exports[_0x1d15a3(0x355)]=class extends u[_0x1d15a3(0x274)]{constructor(_0x433a7b,_0x40aee0,_0x5d54b1,_0x4769a5,_0x356e73){super(_0x433a7b,_0x40aee0,_0x5d54b1,_0x4769a5,_0x356e73);}async['createSocket'](_0xa179fc){const _0x487649=_0x1d15a3,_0x269149=await this['_getSessionTicket'](),_0x15286b=this[_0x487649(0x1cb)](_0xa179fc,_0x269149);return this[_0x487649(0x15f)](_0x15286b);}[_0x1d15a3(0x1cb)](_0x587fa6,_0x15cf01){const _0x2de5c5=_0x1d15a3,_0x4d7595=typeof window>'u'?new URL(_0x587fa6):new URL(_0x587fa6,window[_0x2de5c5(0x36b)][_0x2de5c5(0x241)]);_0x4d7595['searchParams'][_0x2de5c5(0x392)](_0x2de5c5(0x270),_0x15cf01);const _0x5feff8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2de5c5(0x36b)][_0x2de5c5(0x3dc)]);return _0x5feff8[_0x2de5c5(0x35c)](_0x2de5c5(0x38d))&&_0x4d7595[_0x2de5c5(0x3b7)][_0x2de5c5(0x392)](_0x2de5c5(0x38d),_0x5feff8[_0x2de5c5(0x35c)](_0x2de5c5(0x38d))),_0x4d7595[_0x2de5c5(0x27d)]();}async[_0x1d15a3(0x2d1)](){const _0x50a7b9=_0x1d15a3;var _0x136d10,_0x74b7c,_0x2c8e4a;const _0x508274=this['_configService'][_0x50a7b9(0x233)](u[_0x50a7b9(0x2de)]),_0x1a7198=(_0x136d10=_0x508274==null?void 0x0:_0x508274[_0x50a7b9(0x240)])!=null?_0x136d10:u[_0x50a7b9(0x2ee)];return(_0x2c8e4a=(_0x74b7c=(await this[_0x50a7b9(0x210)]['get'](_0x1a7198,{'headers':{'Content-Type':_0x50a7b9(0x433)}}))[_0x50a7b9(0x2ca)])==null?void 0x0:_0x74b7c['ticket'])!=null?_0x2c8e4a:'';}},exports[_0x1d15a3(0x355)]=Is([W(0x0,a[_0x1d15a3(0x17f)](a[_0x1d15a3(0x173)])),W(0x1,a[_0x1d15a3(0x17f)](x[_0x1d15a3(0x2ab)])),W(0x2,a['IConfigService']),W(0x3,a[_0x1d15a3(0x39d)]),W(0x4,g[_0x1d15a3(0x1b3)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x1d15a3(0x1e0)],ds=(_0x5a7c17,_0x239caa,_0x2a481a,_0x53d23a)=>{const _0x600236=_0x1d15a3;for(var _0x4fa764=_0x53d23a>0x1?void 0x0:_0x53d23a?Ss(_0x239caa,_0x2a481a):_0x239caa,_0xe0f51e=_0x5a7c17[_0x600236(0x368)]-0x1,_0x8256;_0xe0f51e>=0x0;_0xe0f51e--)(_0x8256=_0x5a7c17[_0xe0f51e])&&(_0x4fa764=_0x8256(_0x4fa764)||_0x4fa764);return _0x4fa764;},fe=(_0x1cfeeb,_0x3aa0f8)=>(_0x39a985,_0xc50246)=>_0x3aa0f8(_0x39a985,_0xc50246,_0x1cfeeb);exports[_0x1d15a3(0x2bb)]=class extends a[_0x1d15a3(0x2cf)]{constructor(_0x234f99,_0x513373,_0xb44ce5){const _0x41476b=_0x1d15a3;super(),this[_0x41476b(0x395)]=_0x234f99,this[_0x41476b(0x210)]=_0x513373,this[_0x41476b(0x30b)]=_0xb44ce5;}async[_0x1d15a3(0x2cc)](_0x3708d9,_0x487e02,_0x4df401,..._0x5399eb){const _0x2a30d0=_0x1d15a3;var _0x1761b2,_0x18bcdf,_0x4f33f5,_0x3306d0;const _0x7bd529=this[_0x2a30d0(0x395)][_0x2a30d0(0x1e4)]();if(!_0x7bd529)throw new Error(_0x2a30d0(0x424));const _0x1ad8d2=((_0x1761b2=this['_configService'][_0x2a30d0(0x233)](u[_0x2a30d0(0x42d)]))!=null?_0x1761b2:u[_0x2a30d0(0x1d0)])+'/'+_0x3708d9+_0x2a30d0(0x3cd)+_0x487e02,_0x3319b7=new URL(window['location'][_0x2a30d0(0x41f)]),_0x40093a={'scriptId':_0x3708d9,'runId':(_0x18bcdf=_0x3319b7[_0x2a30d0(0x3b7)][_0x2a30d0(0x35c)](_0x2a30d0(0x38d)))!=null?_0x18bcdf:'','function':_0x487e02,'unitId':_0x7bd529[_0x2a30d0(0x2a7)](),'argsOfFunction':JSON[_0x2a30d0(0x409)](_0x5399eb),'invokeId':(_0x4f33f5=_0x4df401[_0x2a30d0(0x1fd)])!=null?_0x4f33f5:'','executionId':(_0x3306d0=_0x4df401[_0x2a30d0(0x234)])!=null?_0x3306d0:''};try{const _0x29e84b=await this[_0x2a30d0(0x210)][_0x2a30d0(0x347)](_0x1ad8d2,{'body':_0x40093a});return _0x29e84b[_0x2a30d0(0x2ca)][_0x2a30d0(0x20e)]&&_0x29e84b[_0x2a30d0(0x2ca)][_0x2a30d0(0x20e)][_0x2a30d0(0x282)]!==G['OK']?'Failed':_0x29e84b['body']['result'];}catch{return _0x2a30d0(0x185);}}},exports[_0x1d15a3(0x2bb)]=ds([fe(0x0,a[_0x1d15a3(0x182)]),fe(0x1,a[_0x1d15a3(0x17f)](x['HTTPService'])),fe(0x2,a[_0x1d15a3(0x328)])],exports[_0x1d15a3(0x2bb)]);const we=0x7530,ye=_0x1d15a3(0x301);class fs extends a['Disposable']{constructor(){const _0x25ee4a=_0x1d15a3;super(),_(this,_0x25ee4a(0x43a),a['generateRandomId']()),_(this,_0x25ee4a(0x304),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x25ee4a(0x3f4),null),_(this,_0x25ee4a(0x42c),new Map()),_(this,_0x25ee4a(0x374),new Map()),this[_0x25ee4a(0x29c)]();}[_0x1d15a3(0x351)](){const _0x2e0452=_0x1d15a3;super[_0x2e0452(0x351)](),this['_clearOtherTimers'][_0x2e0452(0x354)]((_0x3567b2,_0x4c8ffd)=>this[_0x2e0452(0x1cd)](_0x4c8ffd)),this['_heartbeatTimer']&&window[_0x2e0452(0x40a)](this[_0x2e0452(0x3f4)]);}[_0x1d15a3(0x21e)](_0x2d1257){const _0x221fa7=_0x1d15a3;return this['_ensureSubject'](_0x2d1257)['pipe'](I[_0x221fa7(0x33a)]());}[_0x1d15a3(0x38c)](_0x1c0ce4){const _0x44220a=_0x1d15a3;this['_selfUnitIDs'][_0x44220a(0x283)]===0x0&&this[_0x44220a(0x342)](),this[_0x44220a(0x304)]['add'](_0x1c0ce4),this['_send']({'type':0x0,'memberID':this[_0x44220a(0x43a)],'unitIDs':[_0x1c0ce4],'isForwarded':!0x1});}[_0x1d15a3(0x300)](_0x43b3ba){const _0x458df1=_0x1d15a3;this[_0x458df1(0x304)][_0x458df1(0x40f)](_0x43b3ba),this[_0x458df1(0x304)]['size']===0x0&&this[_0x458df1(0x3f4)]&&window[_0x458df1(0x40a)](this[_0x458df1(0x3f4)]);}['_init'](){const _0x523df0=_0x1d15a3;this[_0x523df0(0x35d)](a[_0x523df0(0x41e)](I[_0x523df0(0x3df)](window,_0x523df0(0x3fd))[_0x523df0(0x1fe)](_0x3c8d35=>{const _0x17b85c=_0x523df0;if(_0x3c8d35[_0x17b85c(0x36f)]!==ye||!_0x3c8d35[_0x17b85c(0x190)])return;const _0x20f550=JSON['parse'](_0x3c8d35[_0x17b85c(0x190)]);this[_0x17b85c(0x37a)](_0x20f550);}))),window[_0x523df0(0x3db)](_0x523df0(0x2d2),()=>this[_0x523df0(0x2b6)]({'type':0x1,'memberID':this[_0x523df0(0x43a)],'unitIDs':Array[_0x523df0(0x2cb)](this[_0x523df0(0x304)])}));}[_0x1d15a3(0x37a)](_0x113bd7){const _0x3e7ee1=_0x1d15a3;switch(_0x113bd7[_0x3e7ee1(0x2fc)]){case 0x0:this[_0x3e7ee1(0x1e8)](_0x113bd7);break;case 0x1:this[_0x3e7ee1(0x2fe)](_0x113bd7);break;case 0x2:this[_0x3e7ee1(0x291)](_0x113bd7);break;}}[_0x1d15a3(0x1e8)](_0x5a29cd){const _0x32c18f=_0x1d15a3,{unitIDs:_0x33c406,memberID:_0x2a7c62,isForwarded:_0x4e7dcb}=_0x5a29cd;_0x33c406['forEach'](_0xa40e69=>{const _0x570f62=_0x2fae;if(!_0x4e7dcb&&this['_unitOnClients'][_0x570f62(0x299)](_0xa40e69)&&this['_ensureSubject'](_0xa40e69)[_0x570f62(0x423)](u[_0x570f62(0x2ac)][_0x570f62(0x25c)]),!this[_0x570f62(0x3a0)][_0x570f62(0x299)](_0xa40e69)||!this[_0x570f62(0x3a0)][_0x570f62(0x35c)](_0xa40e69)[_0x570f62(0x299)](_0x2a7c62)){const _0xa1a0d9=this[_0x570f62(0x3a0)][_0x570f62(0x35c)](_0xa40e69)||new Set();_0xa1a0d9[_0x570f62(0x362)](_0x2a7c62),this[_0x570f62(0x3a0)][_0x570f62(0x392)](_0xa40e69,_0xa1a0d9),this['_scheduleClearOtherTimer'](_0x2a7c62);}}),_0x4e7dcb||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x32c18f(0x304)]],'isForwarded':!0x0});}[_0x1d15a3(0x412)](_0x2b5260){const _0x2f83f3=_0x1d15a3;this[_0x2f83f3(0x1cd)](_0x2b5260);const _0x2692a0=window[_0x2f83f3(0x428)](()=>{this['_unitOnClients']['forEach'](_0x59a4e6=>{const _0xa73b08=_0x2fae;_0x59a4e6[_0xa73b08(0x40f)](_0x2b5260);});},we*0x2);this[_0x2f83f3(0x42c)][_0x2f83f3(0x392)](_0x2b5260,_0x2692a0);}[_0x1d15a3(0x1cd)](_0x2505f8){const _0x5e7a50=_0x1d15a3;if(this[_0x5e7a50(0x42c)][_0x5e7a50(0x299)](_0x2505f8)){const _0x40ef30=this['_clearOtherTimers'][_0x5e7a50(0x35c)](_0x2505f8);_0x40ef30&&window[_0x5e7a50(0x16c)](_0x40ef30),this['_clearOtherTimers'][_0x5e7a50(0x392)](_0x2505f8,null);}}[_0x1d15a3(0x2fe)](_0x4424f3){const _0x5a38e4=_0x1d15a3,{memberID:_0x2a2554,unitIDs:_0x5e68d6}=_0x4424f3;_0x5e68d6[_0x5a38e4(0x354)](_0x2ef74c=>{const _0x1031ad=_0x5a38e4;var _0x5ba795;const _0x87ab62=this[_0x1031ad(0x3a0)]['get'](_0x2ef74c);_0x87ab62&&(_0x87ab62[_0x1031ad(0x40f)](_0x2a2554),(_0x5ba795=this['_ensureSubject'](_0x2ef74c))==null||_0x5ba795[_0x1031ad(0x423)](_0x87ab62[_0x1031ad(0x283)]===0x0?u[_0x1031ad(0x2ac)]['NO_OTHER_CLIENTS_EDITING']:u[_0x1031ad(0x2ac)][_0x1031ad(0x25c)]));}),this[_0x5a38e4(0x1cd)](_0x2a2554);}[_0x1d15a3(0x291)](_0x233294){const _0x553be5=_0x1d15a3;this[_0x553be5(0x412)](_0x233294[_0x553be5(0x385)]);}[_0x1d15a3(0x2b6)](_0x25c61c){const _0x2da419=_0x1d15a3;localStorage[_0x2da419(0x169)](ye,JSON[_0x2da419(0x409)](_0x25c61c));}[_0x1d15a3(0x342)](){const _0x6dd292=_0x1d15a3;this[_0x6dd292(0x3f4)]=window[_0x6dd292(0x22d)](()=>{const _0x2479e5=_0x6dd292;this[_0x2479e5(0x2b6)]({'type':0x2,'memberID':this[_0x2479e5(0x43a)]});},we);}[_0x1d15a3(0x410)](_0x185a0f){const _0x4b3bb3=_0x1d15a3;return this[_0x4b3bb3(0x374)][_0x4b3bb3(0x299)](_0x185a0f)||this[_0x4b3bb3(0x374)][_0x4b3bb3(0x392)](_0x185a0f,new I[(_0x4b3bb3(0x288))](u[_0x4b3bb3(0x2ac)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x4b3bb3(0x374)][_0x4b3bb3(0x35c)](_0x185a0f);}}exports[_0x1d15a3(0x378)]=Oe,exports[_0x1d15a3(0x25e)]=je,exports[_0x1d15a3(0x331)]=fs,exports[_0x1d15a3(0x1c5)]=ke;
|
|
1
|
+
'use strict';const _0x3c131d=_0x4b7f;(function(_0x5458ac,_0x223d73){const _0x1795cd=_0x4b7f,_0x20f85d=_0x5458ac();while(!![]){try{const _0x10c78e=-parseInt(_0x1795cd(0x29d))/0x1*(parseInt(_0x1795cd(0x369))/0x2)+parseInt(_0x1795cd(0x1dd))/0x3*(parseInt(_0x1795cd(0x19b))/0x4)+-parseInt(_0x1795cd(0x1b7))/0x5+parseInt(_0x1795cd(0x192))/0x6*(parseInt(_0x1795cd(0x2ba))/0x7)+-parseInt(_0x1795cd(0x2af))/0x8+parseInt(_0x1795cd(0x31a))/0x9+parseInt(_0x1795cd(0x23a))/0xa;if(_0x10c78e===_0x223d73)break;else _0x20f85d['push'](_0x20f85d['shift']());}catch(_0x12842c){_0x20f85d['push'](_0x20f85d['shift']());}}}(_0xd0ca,0xd19ee));function _0x4b7f(_0x5217fa,_0x16f4a8){_0x5217fa=_0x5217fa-0xe2;const _0xd0ca88=_0xd0ca();let _0x4b7feb=_0xd0ca88[_0x5217fa];return _0x4b7feb;}var Xe=Object[_0x3c131d(0x287)],Ke=(_0xb7c84b,_0x1ea573,_0x15c1b2)=>_0x1ea573 in _0xb7c84b?Xe(_0xb7c84b,_0x1ea573,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15c1b2}):_0xb7c84b[_0x1ea573]=_0x15c1b2,_=(_0x124165,_0x41782a,_0x11ad84)=>Ke(_0x124165,typeof _0x41782a!='symbol'?_0x41782a+'':_0x41782a,_0x11ad84);Object['defineProperty'](exports,Symbol[_0x3c131d(0x23b)],{'value':_0x3c131d(0x234)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x54e704,..._0x29fe99}){const _0x208dc3=_0x3c131d,{icon:_0x400a97,id:_0x18856c,className:_0x55f042,extend:_0xb978c8,..._0x9530a7}=_0x29fe99,_0x397d48=(_0x208dc3(0x139)+_0x18856c+'\x20'+(_0x55f042||''))[_0x208dc3(0x27f)](),_0x67ff96=A[_0x208dc3(0x2ab)]('_'+Qe());return $e(_0x400a97,''+_0x18856c,{'defIds':_0x400a97['defIds'],'idSuffix':_0x67ff96[_0x208dc3(0x34c)]},{'ref':_0x54e704,'className':_0x397d48,..._0x9530a7},_0xb978c8);}function $e(_0x282647,_0x1ff818,_0x551d23,_0x12071b,_0xfe2b77){const _0x3ffd0a=_0x3c131d;return A['createElement'](_0x282647['tag'],{'key':_0x1ff818,...Je(_0x282647,_0x551d23,_0xfe2b77),..._0x12071b},(Ze(_0x282647,_0x551d23)[_0x3ffd0a(0x2f5)]||[])[_0x3ffd0a(0xf0)]((_0x445794,_0x116b04)=>$e(_0x445794,_0x1ff818+'-'+_0x282647['tag']+'-'+_0x116b04,_0x551d23,void 0x0,_0xfe2b77)));}function Je(_0x4de2af,_0x22eb7f,_0x4f5f74){const _0x4c04a5=_0x3c131d,_0x4ef742={..._0x4de2af[_0x4c04a5(0x298)]};_0x4f5f74!=null&&_0x4f5f74[_0x4c04a5(0x132)]&&_0x4ef742[_0x4c04a5(0x323)]==='colorChannel1'&&(_0x4ef742[_0x4c04a5(0x323)]=_0x4f5f74[_0x4c04a5(0x132)]),_0x4de2af[_0x4c04a5(0x304)]===_0x4c04a5(0x36f)&&_0x4ef742['id']&&(_0x4ef742['id']=_0x4ef742['id']+_0x22eb7f[_0x4c04a5(0x111)]),Object['entries'](_0x4ef742)[_0x4c04a5(0x1df)](([_0x58ed28,_0x2d9539])=>{const _0x2c5955=_0x4c04a5;_0x58ed28==='mask'&&typeof _0x2d9539==_0x2c5955(0x21a)&&(_0x4ef742[_0x58ed28]=_0x2d9539[_0x2c5955(0x2cf)](/url\(#(.*)\)/,_0x2c5955(0x203)+_0x22eb7f[_0x2c5955(0x111)]+')'));});const {defIds:_0x551d13}=_0x22eb7f;return!_0x551d13||_0x551d13[_0x4c04a5(0x29a)]===0x0||(_0x4de2af[_0x4c04a5(0x304)]===_0x4c04a5(0x2e1)&&_0x4ef742['xlink:href']&&(_0x4ef742[_0x4c04a5(0x1ed)]=_0x4ef742['xlink:href']+_0x22eb7f['idSuffix']),Object[_0x4c04a5(0x346)](_0x4ef742)[_0x4c04a5(0x1df)](([_0x21f162,_0x5ea594])=>{const _0x5cf568=_0x4c04a5;typeof _0x5ea594==_0x5cf568(0x21a)&&(_0x4ef742[_0x21f162]=_0x5ea594[_0x5cf568(0x2cf)](/url\(#(.*)\)/,_0x5cf568(0x203)+_0x22eb7f[_0x5cf568(0x111)]+')'));})),_0x4ef742;}function Ze(_0x31b7f4,_0x23da59){const _0x7afe2=_0x3c131d;var _0x2f2a56;const {defIds:_0x372f0e}=_0x23da59;return!_0x372f0e||_0x372f0e[_0x7afe2(0x29a)]===0x0?_0x31b7f4:_0x31b7f4[_0x7afe2(0x304)]===_0x7afe2(0x1a7)&&((_0x2f2a56=_0x31b7f4[_0x7afe2(0x2f5)])!=null&&_0x2f2a56[_0x7afe2(0x29a)])?{..._0x31b7f4,'children':_0x31b7f4[_0x7afe2(0x2f5)][_0x7afe2(0xf0)](_0x520c74=>typeof _0x520c74[_0x7afe2(0x298)]['id']==_0x7afe2(0x21a)&&_0x372f0e&&_0x372f0e[_0x7afe2(0x23e)](_0x520c74[_0x7afe2(0x298)]['id'])?{..._0x520c74,'attrs':{..._0x520c74[_0x7afe2(0x298)],'id':_0x520c74['attrs']['id']+_0x23da59['idSuffix']}}:_0x520c74)}:_0x31b7f4;}function Qe(){const _0x376ed5=_0x3c131d;return Math['random']()['toString'](0x24)[_0x376ed5(0x185)](0x2,0x8);}pe[_0x3c131d(0x2e3)]=_0x3c131d(0x27e);const et={'tag':'svg','attrs':{'xmlns':_0x3c131d(0x3a3),'fill':'none','viewBox':_0x3c131d(0x12a),'width':'1em','height':_0x3c131d(0x149)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3c131d(0x1ca),'attrs':{'stroke':'currentColor','d':_0x3c131d(0x105),'strokeLinecap':'round','strokeLinejoin':_0x3c131d(0x380),'strokeWidth':1.2}}]},{'tag':_0x3c131d(0x1a7),'attrs':{},'children':[{'tag':_0x3c131d(0x354),'attrs':{'id':_0x3c131d(0x29f)},'children':[{'tag':_0x3c131d(0x1ca),'attrs':{'fill':_0x3c131d(0x232),'d':_0x3c131d(0x2b9)}}]}]}],'defIds':[_0x3c131d(0x29f)]},xe=A[_0x3c131d(0x385)](function(_0x274922,_0x126de6){const _0x482350=_0x3c131d;return A[_0x482350(0x2f6)](pe,Object[_0x482350(0xe4)]({},_0x274922,{'id':_0x482350(0x2d4),'ref':_0x126de6,'icon':et}));});xe['displayName']=_0x3c131d(0x103);const tt={'tag':_0x3c131d(0x282),'attrs':{'xmlns':_0x3c131d(0x3a3),'fill':'none','viewBox':_0x3c131d(0x30b),'width':_0x3c131d(0x149),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3c131d(0x233)},'children':[{'tag':_0x3c131d(0x1ca),'attrs':{'stroke':_0x3c131d(0x1ac),'d':_0x3c131d(0x10f),'strokeLinecap':_0x3c131d(0x380),'strokeLinejoin':_0x3c131d(0x380),'strokeWidth':1.2}}]},{'tag':_0x3c131d(0x1a7),'attrs':{},'children':[{'tag':_0x3c131d(0x354),'attrs':{'id':_0x3c131d(0x2ca)},'children':[{'tag':'path','attrs':{'fill':_0x3c131d(0x232),'d':_0x3c131d(0x2b9),'transform':_0x3c131d(0x28f)}}]}]}],'defIds':[_0x3c131d(0x2ca)]},Be=A['forwardRef'](function(_0x1d5116,_0x5bc1fd){const _0x5ae732=_0x3c131d;return A[_0x5ae732(0x2f6)](pe,Object[_0x5ae732(0xe4)]({},_0x1d5116,{'id':_0x5ae732(0x36a),'ref':_0x5bc1fd,'icon':tt}));});Be['displayName']='OnLineIcon';function st(_0x40cfe9){const _0x244cf2=_0x3c131d;switch(_0x40cfe9){case u[_0x244cf2(0x30f)][_0x244cf2(0x199)]:return'collabStatus.offline';case u[_0x244cf2(0x30f)][_0x244cf2(0x140)]:return _0x244cf2(0x16f);case u[_0x244cf2(0x30f)]['FETCH_MISS']:return _0x244cf2(0x1c7);case u['CollaborationStatus']['NOT_COLLAB']:return _0x244cf2(0x1bd);case u[_0x244cf2(0x30f)][_0x244cf2(0x155)]:case u[_0x244cf2(0x30f)][_0x244cf2(0x209)]:return _0x244cf2(0x311);case u[_0x244cf2(0x30f)][_0x244cf2(0x30a)]:case u[_0x244cf2(0x30f)][_0x244cf2(0x332)]:return _0x244cf2(0x259);}}function it(_0xf5f947){const _0x94033d=_0x3c131d,{status$:_0xbc329d}=_0xf5f947,_0x14d0ef=O[_0x94033d(0x1e6)](_0xbc329d,u[_0x94033d(0x30f)][_0x94033d(0x2c1)]),_0x9e92bc=O['useDependency'](a[_0x94033d(0x29e)]),_0x19dc44=O['useDependency'](u[_0x94033d(0x1e7)]),_0x225bec=_0x14d0ef!==u[_0x94033d(0x30f)][_0x94033d(0x199)],_0x4c0a42=_0x9e92bc['t'](st(_0x14d0ef)),_0x5d8f2b=_0x225bec?M[_0x94033d(0x16a)](Be,{}):M['jsx'](xe,{}),_0x452fa5=A[_0x94033d(0x1fa)](()=>{_0x225bec||_0x19dc44['reconnect']();},[_0x225bec,_0x19dc44]);function _0xaed499(){const _0x138190=_0x94033d;return M[_0x138190(0x24a)](_0x138190(0x38e),{'className':'univer-flex\x20univer-items-center','onClick':_0x452fa5,'children':[M['jsx'](_0x138190(0x38e),{'className':p[_0x138190(0x374)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x225bec,'univer-text-red-500':!_0x225bec}),'children':_0x5d8f2b}),M['jsx'](_0x138190(0x38e),{'className':_0x138190(0x2a8),'children':_0x4c0a42})]});}return _0x225bec?_0xaed499():M['jsx'](p[_0x94033d(0x28a)],{'title':_0x9e92bc['t']('collab-client.tooltip.reconnect'),'children':_0xaed499()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0xedcd6d,_0x3d3873,_0x485449,_0x2c2458)=>{for(var _0x5a975a=_0x2c2458>0x1?void 0x0:_0x2c2458?nt(_0x3d3873,_0x485449):_0x3d3873,_0xafc73a=_0xedcd6d['length']-0x1,_0x487679;_0xafc73a>=0x0;_0xafc73a--)(_0x487679=_0xedcd6d[_0xafc73a])&&(_0x5a975a=_0x487679(_0x5a975a)||_0x5a975a);return _0x5a975a;},K=(_0x26deab,_0x55333a)=>(_0x3f83df,_0x1298d2)=>_0x55333a(_0x3f83df,_0x1298d2,_0x26deab);exports[_0x3c131d(0xe5)]=class extends a['Disposable']{constructor(_0x4509d4,_0x1caec5,_0x127f78,_0x55eb37){const _0x149f24=_0x3c131d;super(),_(this,_0x149f24(0x224),new I[(_0x149f24(0x301))](u[_0x149f24(0x30f)][_0x149f24(0x2c1)])),(this[_0x149f24(0x24c)]=_0x4509d4,this[_0x149f24(0x2ef)]=_0x1caec5,this[_0x149f24(0x159)]=_0x127f78,this[_0x149f24(0x166)]=_0x55eb37,this[_0x149f24(0x1ec)](),this[_0x149f24(0x204)]());}['_initStatusListener'](){const _0x330729=_0x3c131d;this[_0x330729(0x3a7)](this[_0x330729(0x24c)][_0x330729(0x18f)]['pipe'](I[_0x330729(0x31d)](()=>{const _0x157b8f=_0x330729,_0x12b91a=this[_0x157b8f(0x24c)][_0x157b8f(0x15c)]();return _0x12b91a?this[_0x157b8f(0x159)][_0x157b8f(0x3a4)](_0x12b91a[_0x157b8f(0x247)]()):I['of'](null);}),I[_0x330729(0x31d)](_0xca2a56=>_0xca2a56?_0xca2a56['status$']:I['of'](u[_0x330729(0x30f)]['NOT_COLLAB'])))[_0x330729(0x330)](_0x57a64c=>{const _0x3b0f1a=_0x330729;this[_0x3b0f1a(0x224)][_0x3b0f1a(0x1cf)](_0x57a64c);}));}['_initStatusComponent'](){const _0x387d9f=_0x3c131d;this[_0x387d9f(0x3a7)](this[_0x387d9f(0x166)]['registerComponent'](O[_0x387d9f(0x1e8)]['HEADER_MENU'],()=>O['connectInjector'](ot({'status$':this[_0x387d9f(0x224)][_0x387d9f(0x26c)]()}),this[_0x387d9f(0x2ef)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a[_0x3c131d(0x146)])),K(0x2,a[_0x3c131d(0x1fd)](u['CollaborationController'])),K(0x3,O[_0x3c131d(0x1e3)])],exports[_0x3c131d(0xe5)]);function ot(_0x1410dc){const {status$:_0x12c25e}=_0x1410dc;return function(){const _0x4ed952=_0x4b7f;return M[_0x4ed952(0x16a)](it,{'status$':_0x12c25e});};}const Oe=a[_0x3c131d(0x356)](_0x3c131d(0x14e));var at=Object[_0x3c131d(0x196)],ct=(_0x5eba21,_0x3bddd8,_0x1ad0b9,_0x447cec)=>{const _0x254e59=_0x3c131d;for(var _0x5c5ede=_0x447cec>0x1?void 0x0:_0x447cec?at(_0x3bddd8,_0x1ad0b9):_0x3bddd8,_0x17c542=_0x5eba21[_0x254e59(0x29a)]-0x1,_0x864259;_0x17c542>=0x0;_0x17c542--)(_0x864259=_0x5eba21[_0x17c542])&&(_0x5c5ede=_0x864259(_0x5c5ede)||_0x5c5ede);return _0x5c5ede;},Y=(_0x4387f6,_0x1bd3af)=>(_0x161323,_0x743553)=>_0x1bd3af(_0x161323,_0x743553,_0x4387f6);exports[_0x3c131d(0x263)]=class extends a[_0x3c131d(0x141)]{constructor(_0x1d32bc,_0x29472e,_0x1e2d9f,_0x5a617c,_0x4427ee){const _0x22f2a3=_0x3c131d;super(),this['_urlService']=_0x1d32bc,this[_0x22f2a3(0x25a)]=_0x29472e,this['_commandService']=_0x1e2d9f,this[_0x22f2a3(0x164)]=_0x5a617c,_0x4427ee?_0x4427ee==null||_0x4427ee[_0x22f2a3(0x16d)]()['then'](()=>this[_0x22f2a3(0x11a)]()):(this[_0x22f2a3(0x25a)][_0x22f2a3(0x20b)](_0x22f2a3(0x1b8),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x22f2a3(0x11a)]());}async[_0x3c131d(0x11a)](){const _0x3492e5=_0x3c131d,_0x23c540=this[_0x3492e5(0x1a4)]['getParam'](_0x3492e5(0x268)),_0x41ee2a=this[_0x3492e5(0x1a4)][_0x3492e5(0x102)](_0x3492e5(0x24d)),_0x1b6e85=this[_0x3492e5(0x1a4)][_0x3492e5(0x102)]('subunit');if(!_0x23c540||!_0x41ee2a){this[_0x3492e5(0x25a)][_0x3492e5(0x20b)](_0x3492e5(0x1b8),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1945df=await this['_dataLoaderService']['loadUnit'](_0x23c540,Number(_0x41ee2a),_0x1b6e85);_0x1945df&&_0x1945df instanceof a[_0x3492e5(0x2df)]&&this[_0x3492e5(0x2b6)](_0x1945df);}async['_setupSubUnitSync'](_0x36407e){const _0x3c29cb=_0x3c131d;await this['_updateSubUnitFromURLParams'](_0x36407e),_0x36407e['activeSheet$']['pipe'](I[_0x3c29cb(0x2e6)](this[_0x3c29cb(0x2f9)]))[_0x3c29cb(0x330)](_0xfe5eb2=>{const _0x3e0284=_0x3c29cb;_0xfe5eb2&&this[_0x3e0284(0x33c)](_0xfe5eb2);}),this['_urlService'][_0x3c29cb(0x289)][_0x3c29cb(0x14f)](I[_0x3c29cb(0x2e6)](this['dispose$']))['subscribe'](()=>this[_0x3c29cb(0x377)](_0x36407e));}['_updateURLWithCurrentState'](_0x2c930c,_0x2d8019=!0x1){const _0x2ba6e5=_0x3c131d,_0x3a7938=this[_0x2ba6e5(0x1a4)][_0x2ba6e5(0x102)](_0x2ba6e5(0x1d2));_0x2c930c[_0x2ba6e5(0x339)]()!==_0x3a7938&&this[_0x2ba6e5(0x1a4)]['setParam'](_0x2ba6e5(0x1d2),_0x2c930c[_0x2ba6e5(0x339)](),_0x2d8019);}async['_updateSubUnitFromURLParams'](_0x416904){const _0x1dbbae=_0x3c131d;var _0x84e230;const _0x329ba0=this[_0x1dbbae(0x1a4)][_0x1dbbae(0x102)](_0x1dbbae(0x1d2));if(!_0x329ba0||!_0x416904['getSheetBySheetId'](_0x329ba0)){const _0x49bbfc=_0x416904['getUnhiddenWorksheets']()[0x0],_0x1b7b1f=_0x416904[_0x1dbbae(0x277)](_0x49bbfc);if(!_0x1b7b1f)return;this[_0x1dbbae(0x33c)](_0x1b7b1f,!0x0),await this[_0x1dbbae(0x25e)][_0x1dbbae(0x1c9)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x416904[_0x1dbbae(0x247)](),'subUnitId':_0x49bbfc});return;}((_0x84e230=_0x416904['getActiveSheet']())==null?void 0x0:_0x84e230[_0x1dbbae(0x339)]())!==_0x329ba0&&await this[_0x1dbbae(0x25e)][_0x1dbbae(0x1c9)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x416904[_0x1dbbae(0x247)](),'subUnitId':_0x329ba0});}},exports[_0x3c131d(0x263)]=ct([Y(0x0,Oe),Y(0x1,a[_0x3c131d(0x2b4)]),Y(0x2,a[_0x3c131d(0x33d)]),Y(0x3,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x206)])),Y(0x4,a[_0x3c131d(0x303)](qe['IRemoteInstanceService']))],exports[_0x3c131d(0x263)]);var lt=Object[_0x3c131d(0x196)],_t=(_0x4704ea,_0x26f27d,_0xb5f7ad,_0xb23402)=>{const _0x5193b1=_0x3c131d;for(var _0x2fc5ce=_0xb23402>0x1?void 0x0:_0xb23402?lt(_0x26f27d,_0xb5f7ad):_0x26f27d,_0x4f397c=_0x4704ea[_0x5193b1(0x29a)]-0x1,_0x31973d;_0x4f397c>=0x0;_0x4f397c--)(_0x31973d=_0x4704ea[_0x4f397c])&&(_0x2fc5ce=_0x31973d(_0x2fc5ce)||_0x2fc5ce);return _0x2fc5ce;},De=(_0x444cb6,_0x216d35)=>(_0x2c8412,_0xdb4d61)=>_0x216d35(_0x2c8412,_0xdb4d61,_0x444cb6);let me=class extends a[_0x3c131d(0x141)]{constructor(_0x17fd40,_0x41bb32){const _0x1c5c96=_0x3c131d;super(),this[_0x1c5c96(0x210)]=_0x17fd40,this[_0x1c5c96(0x297)]=_0x41bb32,this[_0x1c5c96(0x11a)]();}[_0x3c131d(0x11a)](){const _0x111a9f=_0x3c131d,_0x4e5e2c=this;this[_0x111a9f(0x3a7)](this[_0x111a9f(0x210)][_0x111a9f(0xfc)]({'onBeforePasteImage':async _0x5113ee=>{const _0x3e04c=_0x111a9f,_0x533a4f=await _0x4e5e2c[_0x3e04c(0x297)][_0x3e04c(0x329)](_0x5113ee);return _0x533a4f?{'source':_0x533a4f[_0x3e04c(0x2d5)],'imageSourceType':_0x533a4f[_0x3e04c(0x1cd)]}:null;}}));}};me=_t([De(0x0,T[_0x3c131d(0x2cb)]),De(0x1,ze[_0x3c131d(0x14c)])],me);const Ne=['purple.300','jiqing.500',_0x3c131d(0x12c),_0x3c131d(0xf6),'blue.400','yellow.400'];class Re extends a['Disposable']{constructor(){const _0x142f97=_0x3c131d;super(...arguments),_(this,_0x142f97(0x230),new Map()),_(this,_0x142f97(0x187),0x0);}[_0x3c131d(0x1e9)](_0x3ca445){const _0x3d4dcc=_0x3c131d;if(this[_0x3d4dcc(0x230)]['has'](_0x3ca445))return this[_0x3d4dcc(0x230)]['get'](_0x3ca445);const _0x3ffaf9=Ne[this[_0x3d4dcc(0x187)]];return this['_colorIndex']=(this[_0x3d4dcc(0x187)]+0x1)%Ne['length'],this[_0x3d4dcc(0x230)]['set'](_0x3ca445,_0x3ffaf9),_0x3ffaf9;}}function Fe(_0x130914){let _0xc754a5='';for(const _0x2113d5 of _0x130914){const {startOffset:_0x2ca6bf,endOffset:_0x95da31,isActive:_0xb4d1b,rangeType:_0x515316,segmentId:_0x35a42e,segmentPage:_0x379328}=_0x2113d5;_0xc754a5['length']&&(_0xc754a5+=','),_0xc754a5+=_0x2ca6bf+':'+_0x95da31+':'+(_0xb4d1b?'1':'0')+':'+_0x515316+':'+_0x35a42e+':'+_0x379328;}return _0xc754a5;}function ht(_0x1ce7ad){const _0x24fc3c=_0x3c131d,_0xbbe2e0=_0x1ce7ad['split'](','),_0x56283f=[];for(const _0x4ea4c0 of _0xbbe2e0){const [_0x1f36e3,_0x88720b,_0x49c2d6,_0x277d23,_0x58c8e9,_0x239fb4]=_0x4ea4c0[_0x24fc3c(0xf7)](':');_0x56283f[_0x24fc3c(0x2ad)]({'startOffset':Number(_0x1f36e3),'endOffset':Number(_0x88720b),'collapsed':_0x1f36e3===_0x88720b,'isActive':_0x49c2d6==='1','rangeType':_0x277d23===a[_0x24fc3c(0x1de)]['TEXT']?a[_0x24fc3c(0x1de)][_0x24fc3c(0x351)]:a[_0x24fc3c(0x1de)]['RECT'],'segmentId':typeof _0x58c8e9==_0x24fc3c(0x21a)?String(_0x58c8e9):'','segmentPage':Number(_0x239fb4!=null?_0x239fb4:-0x1)});}return _0x56283f[_0x24fc3c(0x281)](_0x1bb8bb=>_0x1bb8bb[_0x24fc3c(0x11f)])||(_0x56283f[0x0][_0x24fc3c(0x11f)]=!0x0),_0x56283f;}function _0xd0ca(){const _0x1960c0=['RevisionService','limitInfo','_getSessionTicket','string','_collaborationSessionService','handleMoveRange','column','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_scene','INVITE_CODE_ALREADY_BOUND','_drawTextRange','SNAPSHOT_HAS_BEEN_REMOVED','Shape','_status$','_refRangeService','COMPLETION_FINISHED','application/json','_getAnchorBounding','post','_initDependencies','_beforeCloseService','_saveTaskMap','_docStateChangeManagerService','UniverInstanceType','selection','_assignedColors','startsWith','white','url(#on-line-icon_clip0_910_349)','Module','getTypeOfUnitAdded$','fillStyle','parse','LICENSE_DISTRO_REJECTED','YUUMI_RATE_OVER_LIMIT','16271410FmlzxM','toStringTag','_docTransformStateCacheService','_textBubble','includes','INTERNAL_ERROR','history','_setupBeforeClosingHandler','getActiveRange','filename','fillRule','DisposableCollection','_unitOnClients','getUnitId','getSheetObject','hovered','jsxs','getCoordByCell','_univerInstanceService','type','_clearPolling','/universer-api/frontend/logs','SessionStatus','row','measureText','_roomMembers$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_backgroundColor','_draw','ONLINE','collabStatus.synced','_logService','CollaborationSocketService','height','findNodePositionByCharIndex','_commandService','has','_context','_eventUnsubscribe','_renderManagerService','CollaborationDataLoaderController','sheetId','ENSURE_SNAPSHOT_EXECUTION','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','handleDeleteRangeMoveUp','unit','WebBrowserSingleActiveUnitService','sessionStatus$','_toggleOffline','asObservable','OTHER_CLIENTS_EDITING','YUUMI_ALL_TABLES_IS_INVALID','key','_getScale','subscribeEvent','_localeService','NOT_FOUND','_selfUnitIDs','setAlpha','handleIRemoveRow','getSheetBySheetId','registerRefRange','Plugin','getMember','onStarting','startFormulaLimitUrl','ISnapshotServerService','UniverIcon','trim','transformMutation','some','svg','InsertColCommandId','_config','searchParams','m1Prime','defineProperty','shareReplay','urlChange$','Tooltip','_refreshCollabCursors','IUniverInstanceService','serializeRangeWithSheet','event$','translate(.97)','beforeCommandExecuted','enableFrontendLog','from','maxFormulaLimit','max','RemoveRowCommandId','Disposable','_imageIoService','attrs','setInterval','length','CommandType','_httpService','5ycBouM','LocaleService','off-line-icon_clip0_910_343','/universer-api/license/formula/limit/status','DependentOn','disposeUnit','USER_NOT_FOUND','stringify','eventID','_onCursorDelete','RemoveColCommandId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','REDEMPTION_USER_REDEEM_TIMES_EXCEED','replaceDocRanges','useRef','save','push','REDEMPTION_CODE_NOT_STARTED','6154504RXgjFt','newValue','_docTransformIMECacheService','TOO_MANY_REQUESTS','_registerDependencies','ILogService','getTypeOfUnitDisposed$','_setupSubUnitSync','params','_colorAssignService','M0\x200H16V16H0z','630LKFkMT','_doCreateSocket','_collabCursorState$','IURLService','/universer-api/license/formula/limit/done','_lastPointer','code','NOT_COLLAB','SetFormulaCalculationStartMutation','createSocket','Error','DocSelectionManagerService','_updateCollabCursors','Success','values','getCurrent','on-line-icon_clip0_910_349','IDocClipboardService','RefRangeService','_localStorageService','_handleLeaveEvent','replace','entityInit$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getMergeData','_setFormulaLimitStatus','off-line-icon','source','stage','color','_collabCursorController','INVALID_ARGUMENT','addHandlerCallback','_clearOtherTimers','_docSyncEditingCollabCursorService','_entityInit$','collab-text-range-','Workbook','UNIVER_SHEET','use','ILocalCacheService','displayName','generateRandomId','throttleTime','takeUntil','combineLatest','_session','Unknown\x20user','delete','wsSessionTicketUrl','_initWindowErrorListener','send','unload','_injector','labelPosition','YUUMI_AI_RUN_FAILED','then','_getMergeRange','unitID','children','createElement','setActiveRange','top','dispose$','m2Prime','_initEvent','dispose','toString','handleInsertRangeMoveRight','reason','getSkeleton','BehaviorSubject','APPLY_REJECT','Optional','tag','registerBeforeClose','EMAIL_VERIFY_CODE_MISMATCH','_cursorShapes','ColorKit','getUndoRedoMutationParamsCache','SYNCED','0\x200\x2017\x2016','distinctUntilChanged','filter','SHEET_VIEWPORT_KEY','CollaborationStatus','sheetID','collabStatus.syncing','text','setParam','_memberID','contains','EMAIL_HAS_BEEN_BOUND','_localCacheService','bind','_docSkeletonManagerService','7455483UyLaDp','isEditing','UNRECOGNIZED','switchMap','rgba(255,\x20255,\x20255,\x200.01)','ranges','_transformHistoryAndStateStack','YUUMI_NO_CUBOID_FOR_QUESTION','IConfigService','fill','ENTITLE_CHAT_LIMIT_EXCEED','INVITE_CODE_HAS_BEEN_UES','_anchorDot','getRenderById','setShapeProps','saveImage','isArray','getColor','resize','isTransformMutationsWithChangesetSuccess','ILocalStorageService','redoState','subscribe','IRenderManagerService','PENDING','INotificationService','Tools','_name','collaboration.single-unit.warning','TEXT_RANGE_LAYER_INDEX','onCommandExecuted','getSheetId','permission.content','JOIN_ROOM_FAILED','_updateURLWithCurrentState','ICommandService','_getFormulaLimitStatus','registerRenderModule','drawWith','_initCommandExecutedListener','UNAUTHENTICATED','NO_OTHER_CLIENTS_EDITING','InsertRangeMoveDownCommandId','merge','entries','getLocalCacheKey','getRelativeToViewportCoord','_startCalculationLimit','_applyCommand','evenodd','current','USERS_LEAVE','updateOfflineData','transformRemoteChangeset','getStateCache','TEXT','handleInsertRangeMoveDown','ENTITLE_COUPON_EXPIRED','clipPath','unshift','createIdentifier','_currentUsage','_hideTimer','SheetSkeletonManagerService','textRanges','SheetsSelectionsService','onTransformChange$','hide','_removeCollabCursors','getCollabCursors$','actions','_checkAndWaitForCalculationPermission','with','clearInterval','_online','_hasFormulaInDirtyRanges','MemberService','onRendered','[RemoteUniscriptService]:\x20no\x20focused\x20unit','243766xihuYJ','on-line-icon','REDEMPTION_CODE_HAS_BEEN_CREATED','YUUMI_UNABLE_LOAD_URL','unhandledrejection','getCurrentSelections','mask','Warning','/universer-api/license/formula/limit/start','isTransformMutationFailure','getAncestorScale','clsx','setStateCache','syncEditingCollabCursor','_updateSubUnitFromURLParams','SetTextSelectionsOperation','parseInt','complete','setItem','collaboration-client-ui.config','mutations','HTTPService','...','round','origin','INVITE_CODE_REQUIRED','_transformPreviousActiveRange','collab-rect-range-','forwardRef','DocStateChangeManagerService','AUTHORIZE_CODE_ILLEGAL','join','arc','_scheduleSaving','find','skeleton','_collaborationUIEventService','div','exhaustSavingTask','MoveRangeCommandId','_themeService','invokeId','CONNECTOR_DATA_TOO_LARGE','_scheduleHeartbeat','addEventListener','_handleHeartbeatEvent','_entities','YUUMI_ASYNCIO_CANCELLED','runId','getConfig','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','FromArray','APPLY_PERMISSION_DENIED','_uploadLog','cursorInfo$','LICENSE_IMPORT_SIZE_EXCEEDED','saveTaskMap','http://www.w3.org/2000/svg','getCollabEntity$','setUndoRedoMutationParamsCache','CLOSE_ROOM','disposeWithMe','_id','LOGIN_FAILED','PAYMENT_CHANNEL_NOT_SUPPORT','session.collaboration-timeout','assign','DesktopCollaborationStatusDisplayController','doc.mutation.rich-text-editing','_labelPosition','UniverCollaborationClientPlugin','_memberService','CollaborationEvent','LOCAL_CACHE_INTERVAL','MUTATION','_color','getCellMatrix','now','map','cursorInfo','storage','CHANGESET_REVISION_CONFILICT','toDisposable','INVALID_INVITE_CODE','red.300','split','_registerRenderDependencies','size','COLORS','_revisionService','addClipboardHook','runRefRangeMutations','permission.title','unsubscribe','_configService','getDocRanges','getParam','OffLineIcon','formula.calculation.unable','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','onLocalMutation','createInstance','SetSelectionsOperation','_messageService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','collab-text-anchor-','Vector2','touchDependencies','name','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','init','idSuffix','getItem','_instanceService','SetFormulaCalculationNotificationMutation','IMessageService','currentSkeleton$','isFormulaString','_syncEditingCollabCursorService','/run/','_init','_cursors','UNDEFINED','_startSheetCollabCursor','REDEMPTION_CODE_FULLY_REDEEMED','isActive','roomMembers$','transformStateCache','_toggleOnline','YUUMI_CONNECTOR_URL_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','SheetCollabCursorShape','_cursorInfo$','_onRefRangeChange','Subject','_hovered','0\x200\x2016\x2016','APPLY_REVISION_CONFILICT','green.600','WECHAT_HAS_BEEN_BOUND','collaboration.closeRoom','_lastResponseTimestamp','socket$','mapTo','colorChannel1','black','saveOfflineData','DATA_SOURCE_TOO_LARGE','endColumn','RegularPolygon','ENTITLE_USE_COUPON_NOT_1ST_TRADE','univerjs-icon\x20univerjs-icon-','_maxFormulaLimit','stack','addObjects','_scheduleClearOtherTimer','REDEMPTION_INVALID_CODE','_collabSessionService','CONFLICT','RxDisposable','ENTITLE_INVALID_COUPON_CODE','EffectRefRangId','setConfig','Rect','Injector','_initCommandInterceptor','font','1em','_taskIds','_initUserListener','IImageIoService','ISocketService','uni.network.url-service','pipe','LICENSE_EXPORT_SIZE_EXCEEDED','transformSelections','_onCursorUpdate','handleInsertRow','totalFormulasToCalculate','AWAITING','collabCursorState$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DocIMEInputManagerService','_collaborationController','lineTo','_heartbeatTimer','getFocusedUnit','_docSkeleton','replaceState','getColorFromTheme','isFormulaId','debounce','releaseFormulaLimitUrl','_drawAnchor','_dataLoaderService','data','_uiPartsService','setTimeout','_saveCache','RECT','jsx','UPDATE_CURSOR','getRangePointData','whenReady','subUnitId','collabStatus.conflict','onPointerEnter$','_checkCalculationAvailable','href','_initEntityListener','_notificationService','USER_NOT_INVITED_CODE','_hover','startColumn','transform','addObject','debounceTime','_send','MOBILE_HAS_BEEN_BOUND','stageInfo','_docTransformSelectionsService','DocSkeletonManagerService','Loading','UniverCollaborationClientUIPlugin','_anchor','handleIRemoveCol','formula.calculation.waiting','substring','UnitStatus','_colorIndex','closePath','registerDependencies','ENTITLE_COUPON_USED_UP','onMouseMove','REDEMPTION_CODE_INACTIVE','WebURLService','override','focused$','_transformUndoRedoStack','ERROR_AGAIN','28698ECldZp','editingUnit','ITransformService','pluginName','getOwnPropertyDescriptor','location','transformByState','OFFLINE','fromEvent','19892tpuIdg','catch','flatMap','Failed','_cachedData','[Unhandled\x20Rejection]:\x20','ENTITLE_REPORT_LIMIT_EXCEED','removeEventListener','_cursor','_urlService','_updateLocalCursor','result','defs','deepClone','engine','error','_range','currentColor','startRow','_pollingInterval','range','getMemberID','body','_disabled','dirtyRanges','BrowserCollaborationSocketService','CURRENT_STATUS_CANNOT_OPERATE','_getSaveTimeout','6749285IZTHwz','[CollaborationDataLoaderController]','ALREADY_EXISTS','_transformService','LICENSE_MAX_UNITS_EXCEEDED','RemoteUniscriptService','collabStatus.notCollab','CollaborationController','SNAPSHOT_INVALID_SNAPSHOT','undoState','OTHER_CLIENT_EDITING','_showGuardMessage','backgroundColor','search','_render','InsertRowCommandId','collabStatus.fetchMiss','endRow','executeCommand','path','ENTITLE_INSUFFICIENT_QUOTA','_createSocketURL','imageSourceType','ENTITLE_DUP_SUBSCRIPTION','next','transformMutationsWithChangeset','mergeOverrideWithDependencies','subunit','_handleEvent','getActiveSheet','CanceledError','getViewport','_shapes','_ensureSubject','onPointerLeave$','MessageType','_initResize','set','423yZmOPu','DOC_RANGE_TYPE','forEach','ThemeService','getCurrentUnitForType','PERMISSION_DENIED','IUIPartsService','pushState','_handleJoinEvent','useObservable','CollaborationSessionService','BuiltInUIPart','assignAColorForMemberID','popstate','YUUMI_SUBSCRIPTION_NOT_FOUND','_initStatusComponent','xlink:href','fillText','loadOfflineData','fromEventSubject','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','all','_monkeyPatchLogService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_releaseCalculationLimit','getValue','_getSheetObject','memberID','MOBILE_VERIFY_CODE_MISMATCH','useCallback','UNIVER_DOC','add','Inject','YUUMI_URL_COL_OUT_OF_RANGE','show','restore','_sheetSkeletonManagerService','selections','url(#$1','_initStatusListener','roomMembers','DataLoaderService','LOGIN_TOKEN_PROCESSING_FAILED','transformIMECache','AWAITING_WITH_PENDING','width','debug','APPLY_NON_SEQUENTIAL_REVISION','get','moveTo','ENTITLE_NEED_BILLING_ADDRESS','_docClipboardService','_removeClearOtherTimer','triggerDblclick','unitId','_unitStatus','START_CALCULATION','min'];_0xd0ca=function(){return _0x1960c0;};return _0xd0ca();}class be extends a[_0x3c131d(0x141)]{constructor(){const _0x2c1eea=_0x3c131d;super(...arguments),_(this,'_collabCursorState$',new I[(_0x2c1eea(0x301))](null)),_(this,_0x2c1eea(0x156),this[_0x2c1eea(0x2bc)]['asObservable']());}['syncEditingCollabCursor'](_0x1c0dc3){const _0x494988=_0x3c131d,{unitID:_0x153e86,memberID:_0x5d9cf7,textRanges:_0x282a59}=_0x1c0dc3,_0x86f77d=Fe(_0x282a59);if(_0x86f77d==='')return;const _0x23addf={'unitID':_0x153e86,'memberID':_0x5d9cf7,'selection':_0x86f77d};this[_0x494988(0x2bc)][_0x494988(0x1cf)](_0x23addf);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x443c85,_0x2f40b3,_0x579581,_0x248cec)=>{const _0x2813ee=_0x3c131d;for(var _0x3961e4=_0x248cec>0x1?void 0x0:_0x248cec?ut(_0x2f40b3,_0x579581):_0x2f40b3,_0x213655=_0x443c85[_0x2813ee(0x29a)]-0x1,_0x42d9e9;_0x213655>=0x0;_0x213655--)(_0x42d9e9=_0x443c85[_0x213655])&&(_0x3961e4=_0x42d9e9(_0x3961e4)||_0x3961e4);return _0x3961e4;},U=(_0xb2da92,_0x175a14)=>(_0x4cf19a,_0x446c02)=>_0x175a14(_0x4cf19a,_0x446c02,_0xb2da92);const St=0x12c,dt=0x64;let ve=class extends a[_0x3c131d(0x141)]{constructor(_0x4eac66,_0x23e22c,_0xdd856c,_0x27c12b,_0x1de3e9,_0x4fa938,_0x29d991,_0x5c4d33,_0x5a8d28){const _0xb1bfe=_0x3c131d;super(),_(this,_0xb1bfe(0x364),!0x1),_(this,'_init',!0x1),_(this,_0xb1bfe(0x126),new I[(_0xb1bfe(0x301))](new Map())),_(this,_0xb1bfe(0x3a0),this[_0xb1bfe(0x126)][_0xb1bfe(0x26c)]()),_(this,_0xb1bfe(0x253),new I[(_0xb1bfe(0x301))]([])),_(this,_0xb1bfe(0x120),this[_0xb1bfe(0x253)]['pipe'](I[_0xb1bfe(0x17a)](St))),_(this,_0xb1bfe(0x1a5),a[_0xb1bfe(0x161)](_0x561e89=>{const _0x5afcb7=_0xb1bfe,_0x16c67c={'eventID':g[_0x5afcb7(0xea)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x5afcb7(0x2e8)][_0x5afcb7(0x1b0)](),'selection':Fe(_0x561e89)}};this[_0x5afcb7(0x2e8)][_0x5afcb7(0x2ed)](_0x16c67c,this['unitID']);},dt)),(this[_0xb1bfe(0x2f4)]=_0x4eac66,this['_session']=_0x23e22c,this['_injector']=_0xdd856c,this[_0xb1bfe(0x2b8)]=_0x27c12b,this[_0xb1bfe(0xe9)]=_0x1de3e9,this['_syncEditingCollabCursorService']=_0x4fa938,this[_0xb1bfe(0x1ba)]=_0x29d991,this[_0xb1bfe(0x24c)]=_0x5c4d33,this[_0xb1bfe(0x25e)]=_0x5a8d28);}get['cursorInfo'](){const _0x1a0aa5=_0x3c131d;return this[_0x1a0aa5(0x126)][_0x1a0aa5(0x1f6)]();}get['roomMembers'](){const _0x2ef460=_0x3c131d;return this[_0x2ef460(0x253)][_0x2ef460(0x1f6)]();}[_0x3c131d(0x2fc)](){const _0x121e8c=_0x3c131d;super['dispose'](),this[_0x121e8c(0x126)][_0x121e8c(0x1cf)](new Map()),this[_0x121e8c(0x126)][_0x121e8c(0x37a)](),this['_roomMembers$'][_0x121e8c(0x1cf)]([]),this['_roomMembers$'][_0x121e8c(0x37a)]();}['init'](){const _0x227c2d=_0x3c131d;this[_0x227c2d(0x11a)]||(this[_0x227c2d(0x11a)]=!0x0,this[_0x227c2d(0x2e8)][_0x227c2d(0x26a)][_0x227c2d(0x14f)](I[_0x227c2d(0x2e6)](this['dispose$']))[_0x227c2d(0x330)](_0x5e310c=>{const _0x396383=_0x227c2d;_0x5e310c===u[_0x396383(0x250)][_0x396383(0x258)]?this[_0x396383(0x122)]():this[_0x396383(0x26b)]();}),this[_0x227c2d(0x2e8)][_0x227c2d(0x28e)][_0x227c2d(0x14f)](I['takeUntil'](this[_0x227c2d(0x2f9)]))['subscribe'](_0x4ff9b6=>{const _0x73d26e=_0x227c2d,_0xf21c71=_0x4ff9b6[_0x73d26e(0x2a5)];_0xf21c71===g[_0x73d26e(0xea)]['UPDATE_CURSOR']&&this[_0x73d26e(0x152)](_0x4ff9b6),_0xf21c71===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x73d26e(0x2a6)](_0x4ff9b6);}),this[_0x227c2d(0x3a7)](this['_commandService'][_0x227c2d(0x338)](_0x33610e=>{const _0x281476=_0x227c2d,_0x573f27=_0x33610e[_0x281476(0x2b7)];_0x573f27!=null&&this[_0x281476(0x364)]&&_0x33610e['id']===V[_0x281476(0x378)]['id']&&_0x573f27[_0x281476(0x213)]===this[_0x281476(0x2f4)]&&_0x573f27[_0x281476(0x31b)]===!0x1&&_0x573f27[_0x281476(0x31f)][_0x281476(0x29a)]>0x0&&this[_0x281476(0x1a5)](_0x573f27['ranges']);})),this[_0x227c2d(0x118)][_0x227c2d(0x156)][_0x227c2d(0x14f)](I[_0x227c2d(0x2e6)](this[_0x227c2d(0x2f9)]))[_0x227c2d(0x330)](_0x19a209=>{const _0x31fcaf=_0x227c2d;if((_0x19a209==null?void 0x0:_0x19a209[_0x31fcaf(0x2f4)])!==this[_0x31fcaf(0x2f4)])return;const _0x1e8c43={'eventID':g[_0x31fcaf(0xea)][_0x31fcaf(0x16b)],'data':_0x19a209};this[_0x31fcaf(0x152)](_0x1e8c43);}),this['disposeWithMe'](this[_0x227c2d(0x25e)][_0x227c2d(0x338)](_0x181c71=>{const _0x293f84=_0x227c2d;if(_0x181c71[_0x293f84(0x2b7)]==null)return;const _0x3d6143=_0x181c71[_0x293f84(0x2b7)];if(_0x181c71['id']!==V['RichTextEditingMutation']['id']||_0x3d6143['unitId']!==this[_0x293f84(0x2f4)])return;const _0x5916d1={'id':'doc.mutation.rich-text-editing','params':_0x3d6143},_0xa53a73=this['cursorInfo'];for(const [_0x477205,_0x1c6e9c]of _0xa53a73){const _0x5ef484={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x293f84(0x2f4)],'actions':null,'textRanges':_0x1c6e9c['ranges']}},_0x58162d=this[_0x293f84(0x1ba)][_0x293f84(0x280)](_0x5916d1,_0x5ef484,!0x1);if(g['isTransformMutationFailure'](_0x58162d))throw _0x58162d[_0x293f84(0x1aa)];_0xa53a73[_0x293f84(0x1dc)](_0x477205,{..._0x1c6e9c,'ranges':_0x58162d[_0x293f84(0x2fa)]['params'][_0x293f84(0x35a)]});}queueMicrotask(()=>{const _0x46b51e=_0x293f84;this['_cursorInfo$'][_0x46b51e(0x1cf)](_0xa53a73);});})));}[_0x3c131d(0x152)](_0x5c4b37){const _0x1ebe7a=_0x3c131d;var _0x2c0a44,_0x1111ca;const {memberID:_0xa75df6,selection:_0x18af88}=_0x5c4b37['data'],_0x26743b=ht(_0x18af88),_0x4ff848=(_0x1111ca=(_0x2c0a44=this[_0x1ebe7a(0xe9)]['getMember'](this[_0x1ebe7a(0x2f4)],_0xa75df6))==null?void 0x0:_0x2c0a44[_0x1ebe7a(0x10e)])!=null?_0x1111ca:_0x1ebe7a(0x2e9),_0x43aee3={'color':this[_0x1ebe7a(0x2b8)]['assignAColorForMemberID'](_0xa75df6),'name':_0x4ff848,'ranges':_0x26743b},_0x51b223=this[_0x1ebe7a(0xf1)];_0x51b223[_0x1ebe7a(0x1dc)](_0xa75df6,_0x43aee3),this[_0x1ebe7a(0x126)][_0x1ebe7a(0x1cf)](_0x51b223);}[_0x3c131d(0x2a6)](_0x5e310d){const _0x4ed4f0=_0x3c131d,{memberID:_0x3cb816}=_0x5e310d[_0x4ed4f0(0x165)],_0x2735c2=this[_0x4ed4f0(0xf1)];_0x2735c2['delete'](_0x3cb816),this[_0x4ed4f0(0x126)][_0x4ed4f0(0x1cf)](_0x2735c2);}['_toggleOnline'](){const _0x37979f=_0x3c131d;var _0x25f6b5;if(this['_online']=!0x0,((_0x25f6b5=this[_0x37979f(0x24c)][_0x37979f(0x15c)]())==null?void 0x0:_0x25f6b5[_0x37979f(0x247)]())!==this[_0x37979f(0x2f4)])return;const _0x5cfb07=this[_0x37979f(0x2ef)][_0x37979f(0x20d)](V[_0x37979f(0x2c5)])[_0x37979f(0x101)]();Array[_0x37979f(0x32a)](_0x5cfb07)&&_0x5cfb07[_0x37979f(0x29a)]>0x0&&this[_0x37979f(0x1a5)](_0x5cfb07);}[_0x3c131d(0x26b)](){const _0x5d0233=_0x3c131d;this[_0x5d0233(0x364)]=!0x1;}};ve=It([U(0x2,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),U(0x3,a[_0x3c131d(0x1fd)](Re)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a[_0x3c131d(0x1fd)](be)),U(0x6,g[_0x3c131d(0x194)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x3c131d(0x33d)])],ve);var ft=Object[_0x3c131d(0x196)],mt=(_0x1c8c58,_0x106d38,_0x154540,_0x303f17)=>{const _0x14b0c5=_0x3c131d;for(var _0x3a3f64=_0x303f17>0x1?void 0x0:_0x303f17?ft(_0x106d38,_0x154540):_0x106d38,_0x588e2f=_0x1c8c58[_0x14b0c5(0x29a)]-0x1,_0x3a8de0;_0x588e2f>=0x0;_0x588e2f--)(_0x3a8de0=_0x1c8c58[_0x588e2f])&&(_0x3a3f64=_0x3a8de0(_0x3a3f64)||_0x3a3f64);return _0x3a3f64;},w=(_0x4c0630,_0x42eaa8)=>(_0x30dd86,_0x1d901b)=>_0x42eaa8(_0x30dd86,_0x1d901b,_0x4c0630);const vt=0x12c,gt=0x64,Et=()=>{let _0x28ea3a=[],_0x3870aa=!0x1;return _0x598730=>{_0x28ea3a['push'](_0x598730),_0x3870aa||(_0x3870aa=!0x0,setTimeout(()=>{const _0x1a1522=_0x4b7f;_0x28ea3a[_0x1a1522(0x1df)](_0x31c5d1=>_0x31c5d1()),_0x28ea3a=[],_0x3870aa=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x262152,_0x4537f8,_0x4f3c65,_0x510d65,_0x244072,_0x1b62db,_0x3ea0e3,_0x7b6cdc){const _0x5ac4fd=_0x3c131d;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x5ac4fd(0x126),new I[(_0x5ac4fd(0x301))](new Map())),_(this,'cursorInfo$',this[_0x5ac4fd(0x126)][_0x5ac4fd(0x26c)]()),_(this,_0x5ac4fd(0x253),new I[(_0x5ac4fd(0x301))]([])),_(this,_0x5ac4fd(0x120),this[_0x5ac4fd(0x253)]['pipe'](I['debounceTime'](vt))),_(this,_0x5ac4fd(0x1a5),a[_0x5ac4fd(0x161)]((_0x1a3ee9,_0x54f84a)=>{const _0x60947=_0x5ac4fd,_0x1f4093={'eventID':g[_0x60947(0xea)][_0x60947(0x16b)],'data':{'unitID':this[_0x60947(0x2f4)],'memberID':this['_session'][_0x60947(0x1b0)](),'selection':B[_0x60947(0x28d)](_0x1a3ee9,_0x54f84a[_0x60947(0x1af)])}};this[_0x60947(0x2e8)]['send'](_0x1f4093,this[_0x60947(0x2f4)]);},gt)),(this['unitID']=_0x262152,this[_0x5ac4fd(0x2e8)]=_0x4537f8,this[_0x5ac4fd(0x2ef)]=_0x4f3c65,this[_0x5ac4fd(0x2b8)]=_0x510d65,this[_0x5ac4fd(0xe9)]=_0x244072,this[_0x5ac4fd(0x24c)]=_0x1b62db,this[_0x5ac4fd(0x25e)]=_0x3ea0e3,this[_0x5ac4fd(0x225)]=_0x7b6cdc);}get[_0x3c131d(0xf1)](){const _0x494cdf=_0x3c131d;return this[_0x494cdf(0x126)][_0x494cdf(0x1f6)]();}get[_0x3c131d(0x205)](){const _0x310f01=_0x3c131d;return this[_0x310f01(0x253)][_0x310f01(0x1f6)]();}[_0x3c131d(0x2fc)](){const _0x1ffefd=_0x3c131d;super[_0x1ffefd(0x2fc)](),this['_cursorInfo$'][_0x1ffefd(0x1cf)](new Map()),this[_0x1ffefd(0x126)]['complete'](),this[_0x1ffefd(0x253)][_0x1ffefd(0x1cf)]([]),this[_0x1ffefd(0x253)]['complete']();}[_0x3c131d(0x110)](){const _0x1185d7=_0x3c131d;this[_0x1185d7(0x11a)]||(this[_0x1185d7(0x11a)]=!0x0,this['_session']['sessionStatus$'][_0x1185d7(0x14f)](I[_0x1185d7(0x2e6)](this[_0x1185d7(0x2f9)]))['subscribe'](_0x2f5c03=>{const _0x54bf01=_0x1185d7;_0x2f5c03===u['SessionStatus'][_0x54bf01(0x258)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x1185d7(0x2e8)]['event$'][_0x1185d7(0x14f)](I[_0x1185d7(0x2e6)](this['dispose$']))[_0x1185d7(0x330)](_0x996b72=>{const _0x5a8fba=_0x1185d7,_0x1bc18c=_0x996b72[_0x5a8fba(0x2a5)];_0x1bc18c===g[_0x5a8fba(0xea)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x996b72),_0x1bc18c===g['CollaborationEvent'][_0x5a8fba(0x34d)]&&this['_onCursorDelete'](_0x996b72);}),this[_0x1185d7(0x127)](),this['disposeWithMe'](this[_0x1185d7(0x25e)][_0x1185d7(0x338)](_0x5f2df3=>{const _0x18a278=_0x1185d7;if(this[_0x18a278(0x364)]&&_0x5f2df3['id']===v[_0x18a278(0x108)]['id']&&_0x5f2df3['params'][_0x18a278(0x213)]===this[_0x18a278(0x2f4)]){const _0x525489=_0x5f2df3[_0x18a278(0x2b7)];this[_0x18a278(0x1a5)](_0x525489[_0x18a278(0x16e)],_0x525489[_0x18a278(0x202)][0x0]);}})));}[_0x3c131d(0x152)](_0x32be4c){const _0x17b351=_0x3c131d;var _0x48b7b4,_0xafa2c9;const {memberID:_0x167704,selection:_0x4bd947}=_0x32be4c[_0x17b351(0x165)],{sheetName:_0x172172,range:_0x77405f}=B['deserializeRangeWithSheet'](_0x4bd947),_0x538140={'name':(_0xafa2c9=(_0x48b7b4=this['_memberService'][_0x17b351(0x27a)](this[_0x17b351(0x2f4)],_0x167704))==null?void 0x0:_0x48b7b4[_0x17b351(0x10e)])!=null?_0xafa2c9:_0x17b351(0x2e9),'range':this[_0x17b351(0x2f3)](_0x172172,_0x77405f),'sheetID':_0x172172,'color':this[_0x17b351(0x2b8)]['assignAColorForMemberID'](_0x167704),'selection':_0x4bd947},_0x439031=this[_0x17b351(0xf1)];_0x439031[_0x17b351(0x1dc)](_0x167704,_0x538140),this[_0x17b351(0x126)][_0x17b351(0x1cf)](_0x439031);}[_0x3c131d(0x2a6)](_0x1ec050){const _0x15c9b3=_0x3c131d,{memberID:_0x19bb8f}=_0x1ec050[_0x15c9b3(0x165)],_0x2ee633=this['cursorInfo'];_0x2ee633[_0x15c9b3(0x2ea)](_0x19bb8f),this[_0x15c9b3(0x126)][_0x15c9b3(0x1cf)](_0x2ee633);}['_getMergeRange'](_0x1aac4a,_0x1bd77a){const _0x3de8b6=_0x3c131d;var _0x5a3122,_0x555edf;const _0x279f3f=(_0x555edf=(_0x5a3122=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3de8b6(0x2f4)]))==null?void 0x0:_0x5a3122['getSheetBySheetId'](_0x1aac4a))==null?void 0x0:_0x555edf[_0x3de8b6(0x2d2)]();return(_0x279f3f==null?void 0x0:_0x279f3f[_0x3de8b6(0x38b)](_0x11ce23=>a['Rectangle'][_0x3de8b6(0x315)](_0x11ce23,_0x1bd77a)))||_0x1bd77a;}[_0x3c131d(0x127)](){const _0x23cff2=_0x3c131d,_0x5104bb=new a[(_0x23cff2(0x245))](),_0xe518e2=Et(),_0x298eea=()=>{const _0x5cf812=_0x23cff2;_0x5104bb[_0x5cf812(0x2fc)]();const _0x6320e6=(_0x4be429,_0x596c1f,_0xff45a,_0x45225d)=>{const _0x5a3068=_0x5cf812;let _0x562611=[];switch(_0x4be429['id']){case v[_0x5a3068(0x143)]['DeleteRangeMoveLeftCommandId']:{_0x562611=v['handleDeleteRangeMoveLeft'](_0x4be429,_0x45225d);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x562611=v[_0x5a3068(0x267)](_0x4be429,_0x45225d);break;}case v['EffectRefRangId'][_0x5a3068(0x283)]:{_0x562611=v['handleInsertCol'](_0x4be429,_0x45225d);break;}case v['EffectRefRangId'][_0x5a3068(0x344)]:{_0x562611=v[_0x5a3068(0x352)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)]['InsertRangeMoveRightCommandId']:{_0x562611=v[_0x5a3068(0x2fe)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)][_0x5a3068(0x1c6)]:{_0x562611=v[_0x5a3068(0x153)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)][_0x5a3068(0x390)]:{_0x562611=v[_0x5a3068(0x21c)](_0x4be429,_0x45225d);break;}case v[_0x5a3068(0x143)][_0x5a3068(0x2a7)]:{_0x562611=v[_0x5a3068(0x183)](_0x4be429,_0x45225d);break;}case v['EffectRefRangId'][_0x5a3068(0x295)]:{_0x562611=v[_0x5a3068(0x276)](_0x4be429,_0x45225d);break;}}const _0x4a7935=v[_0x5a3068(0xfd)](_0x562611,_0x45225d),_0x3e6085=this['cursorInfo']['get'](_0x596c1f);if(_0x3e6085&&_0x4a7935){const _0x240903={..._0x3e6085,'range':_0x4a7935};this[_0x5a3068(0xf1)][_0x5a3068(0x1dc)](_0x596c1f,_0x240903),_0xe518e2(()=>{const _0x3375a5=_0x5a3068,_0x29e485=this['_refRangeService']['registerRefRange'](_0x4a7935,_0x4e31fa=>(_0x29e485['dispose'](),_0x6320e6(_0x4e31fa,_0x596c1f,_0xff45a,_0x4a7935)));_0x5104bb[_0x3375a5(0x1fc)](_0x29e485);});}return{'redos':[],'undos':[]};};this[_0x5cf812(0xf1)][_0x5cf812(0x1df)]((_0x1a78eb,_0x3a4a3f)=>{const _0x17ac86=_0x5cf812,{range:_0x41b731,sheetID:_0x378033}=_0x1a78eb,_0x4911a2=this[_0x17ac86(0x225)][_0x17ac86(0x278)](_0x41b731,_0x426c57=>(_0x4911a2[_0x17ac86(0x2fc)](),_0x6320e6(_0x426c57,_0x3a4a3f,_0x378033,_0x41b731)));_0x5104bb['add'](_0x4911a2);});};this[_0x23cff2(0x3a7)](a[_0x23cff2(0xf4)](this['_cursorInfo$'][_0x23cff2(0x330)](()=>{_0x298eea();})));}[_0x3c131d(0x122)](){const _0x360a5d=_0x3c131d;var _0x21476d,_0x2a5108;if(this[_0x360a5d(0x364)]=!0x0,((_0x21476d=this['_univerInstanceService'][_0x360a5d(0x15c)]())==null?void 0x0:_0x21476d['getUnitId']())!==this[_0x360a5d(0x2f4)])return;const _0x100695=(_0x2a5108=this[_0x360a5d(0x2ef)][_0x360a5d(0x20d)](v[_0x360a5d(0x35b)])[_0x360a5d(0x36e)]())==null?void 0x0:_0x2a5108[0x0],_0x4508eb=this['_univerInstanceService'][_0x360a5d(0x1e1)](a[_0x360a5d(0x22e)][_0x360a5d(0x2e0)])[_0x360a5d(0x1d4)]();_0x100695&&_0x4508eb&&this['_updateLocalCursor'](_0x4508eb[_0x360a5d(0x339)](),_0x100695);}[_0x3c131d(0x26b)](){const _0x14e159=_0x3c131d;this[_0x14e159(0x364)]=!0x1;}};ge=mt([w(0x2,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),w(0x3,a[_0x3c131d(0x1fd)](Re)),w(0x4,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x366)])),w(0x5,a[_0x3c131d(0x28c)]),w(0x6,a[_0x3c131d(0x33d)]),w(0x7,a[_0x3c131d(0x1fd)](v[_0x3c131d(0x2cc)]))],ge);var Ct=Object[_0x3c131d(0x196)],Tt=(_0x3cda2f,_0x2dc132,_0x42ad8f,_0x1de64b)=>{const _0x32cd13=_0x3c131d;for(var _0x1d9dc3=_0x1de64b>0x1?void 0x0:_0x1de64b?Ct(_0x2dc132,_0x42ad8f):_0x2dc132,_0x2d9569=_0x3cda2f[_0x32cd13(0x29a)]-0x1,_0x3fb9be;_0x2d9569>=0x0;_0x2d9569--)(_0x3fb9be=_0x3cda2f[_0x2d9569])&&(_0x1d9dc3=_0x3fb9be(_0x1d9dc3)||_0x1d9dc3);return _0x1d9dc3;},ce=(_0x178cb8,_0x3e47d0)=>(_0x323cae,_0x5448b3)=>_0x3e47d0(_0x323cae,_0x5448b3,_0x178cb8);let F=class extends a['RxDisposable']{constructor(_0x2f8ffa,_0x55a3b1,_0x25b422){const _0x508db4=_0x3c131d;super(),_(this,_0x508db4(0x397),new Map()),_(this,'_entityInit$',new I[(_0x508db4(0x128))]()),(this[_0x508db4(0x24c)]=_0x2f8ffa,this[_0x508db4(0x2ef)]=_0x55a3b1,this['_collabSessionService']=_0x25b422,this[_0x508db4(0x11a)]());}[_0x3c131d(0x2fc)](){const _0x33bd0e=_0x3c131d;super[_0x33bd0e(0x2fc)](),this[_0x33bd0e(0x2dd)][_0x33bd0e(0x37a)](),this['_entities'][_0x33bd0e(0x1df)](_0x1cd8c9=>_0x1cd8c9['dispose']());}['getCollabCursors$'](_0xc4148f){const _0x1ace26=_0x3c131d;return this[_0x1ace26(0x397)][_0x1ace26(0x25f)](_0xc4148f)?this[_0x1ace26(0x397)][_0x1ace26(0x20d)](_0xc4148f)[_0x1ace26(0x3a0)]:this['_entityInit$'][_0x1ace26(0x14f)](I[_0x1ace26(0x30d)](_0x4e5e5a=>_0x4e5e5a[_0x1ace26(0x2f4)]===_0xc4148f),I['switchMap'](_0xdf4a84=>_0xdf4a84[_0x1ace26(0x3a0)]));}[_0x3c131d(0x11a)](){const _0x509b96=_0x3c131d;this[_0x509b96(0x24c)][_0x509b96(0x235)](a[_0x509b96(0x22e)][_0x509b96(0x2e0)])[_0x509b96(0x14f)](I[_0x509b96(0x2e6)](this['dispose$']))[_0x509b96(0x330)](async _0x536e28=>{const _0x372f4b=_0x509b96,_0xc98545=_0x536e28[_0x372f4b(0x247)](),_0x5c747d=await this[_0x372f4b(0x11d)](_0xc98545);this[_0x372f4b(0x2dd)][_0x372f4b(0x1cf)](_0x5c747d),this[_0x372f4b(0x397)][_0x372f4b(0x1dc)](_0xc98545,_0x5c747d);}),this['_univerInstanceService'][_0x509b96(0x235)](a[_0x509b96(0x22e)][_0x509b96(0x1fb)])[_0x509b96(0x14f)](I[_0x509b96(0x2e6)](this['dispose$']))[_0x509b96(0x14f)](I[_0x509b96(0x30d)](_0x1b0307=>!_0x1b0307[_0x509b96(0x247)]()[_0x509b96(0x231)]('__')))['subscribe'](async _0x1fc089=>{const _0x5b9406=_0x509b96,_0x4e2707=_0x1fc089[_0x5b9406(0x247)](),_0x59fee8=await this['_startDocCollabCursor'](_0x4e2707);this['_entityInit$'][_0x5b9406(0x1cf)](_0x59fee8),this[_0x5b9406(0x397)][_0x5b9406(0x1dc)](_0x4e2707,_0x59fee8);}),I[_0x509b96(0x345)](this[_0x509b96(0x24c)][_0x509b96(0x2b5)](a[_0x509b96(0x22e)][_0x509b96(0x1fb)]),this[_0x509b96(0x24c)][_0x509b96(0x2b5)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](I[_0x509b96(0x2e6)](this['dispose$']))['subscribe'](_0x4badcb=>{const _0x132ace=_0x509b96,_0xf5589f=_0x4badcb[_0x132ace(0x247)](),_0x37e143=this[_0x132ace(0x397)][_0x132ace(0x20d)](_0xf5589f);_0x37e143&&(_0x37e143[_0x132ace(0x2fc)](),this[_0x132ace(0x397)][_0x132ace(0x2ea)](_0xf5589f));});}async['_startSheetCollabCursor'](_0x2fda0f){const _0x44b632=_0x3c131d,_0x42d7bc=await this[_0x44b632(0x13f)]['requireSession'](_0x2fda0f),_0x4233cf=this[_0x44b632(0x2ef)][_0x44b632(0x107)](ge,_0x2fda0f,_0x42d7bc);return _0x4233cf['init'](),_0x4233cf;}async['_startDocCollabCursor'](_0x145ee2){const _0xea5fcd=_0x3c131d,_0xc3f6c4=await this['_collabSessionService']['requireSession'](_0x145ee2),_0x1692b6=this['_injector'][_0xea5fcd(0x107)](ve,_0x145ee2,_0xc3f6c4);return _0x1692b6['init'](),_0x1692b6;}};F=Tt([ce(0x0,a[_0x3c131d(0x28c)]),ce(0x1,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),ce(0x2,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x1e7)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xccdb9d,_0x53078b){const _0x360ec5=_0x3c131d;let {radius:_0xb90f7e,width:_0x2410bd,height:_0x3f4cbd}=_0x53078b;_0xb90f7e=_0xb90f7e!=null?_0xb90f7e:0x0,_0x2410bd=_0x2410bd!=null?_0x2410bd:0x1e,_0x3f4cbd=_0x3f4cbd!=null?_0x3f4cbd:0x1e;let _0x4f8741=0x0,_0x57d2ff=0x0,_0x4c7c14=0x0;_0x4f8741=_0x57d2ff=_0x4c7c14=Math['min'](_0xb90f7e,_0x2410bd/0x2,_0x3f4cbd/0x2),_0xccdb9d['beginPath'](),_0xccdb9d[_0x360ec5(0x20e)](_0x4f8741,0x0),_0xccdb9d[_0x360ec5(0x15a)](_0x2410bd-_0x57d2ff,0x0),_0xccdb9d[_0x360ec5(0x389)](_0x2410bd-_0x57d2ff,_0x57d2ff,_0x57d2ff,Math['PI']*0x3/0x2,0x0,!0x1),_0xccdb9d[_0x360ec5(0x15a)](_0x2410bd,_0x3f4cbd-_0x4c7c14),_0xccdb9d['arc'](_0x2410bd-_0x4c7c14,_0x3f4cbd-_0x4c7c14,_0x4c7c14,0x0,Math['PI']/0x2,!0x1),_0xccdb9d[_0x360ec5(0x15a)](0x0,_0x3f4cbd),_0xccdb9d[_0x360ec5(0x15a)](0x0,_0x4f8741),_0xccdb9d[_0x360ec5(0x389)](_0x4f8741,_0x4f8741,_0x4f8741,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xccdb9d[_0x360ec5(0x188)](),_0x53078b[_0x360ec5(0x323)]&&(_0xccdb9d[_0x360ec5(0x2ac)](),_0xccdb9d['fillStyle']=_0x53078b[_0x360ec5(0x323)],_0x53078b[_0x360ec5(0x244)]===_0x360ec5(0x34b)?_0xccdb9d[_0x360ec5(0x323)](_0x360ec5(0x34b)):_0xccdb9d[_0x360ec5(0x323)](),_0xccdb9d['restore']());}class re extends C['Shape']{constructor(_0x2bba96,_0x2bdcc8){const _0x3eea8f=_0x3c131d;super(_0x2bba96,_0x2bdcc8),_(this,'color'),_(this,_0x3eea8f(0x312)),(this[_0x3eea8f(0x2d7)]=_0x2bdcc8==null?void 0x0:_0x2bdcc8[_0x3eea8f(0x2d7)],this[_0x3eea8f(0x312)]=_0x2bdcc8==null?void 0x0:_0x2bdcc8['text']);}static['drawWith'](_0x343baa,_0x120324){const _0x716ca5=_0x3c131d,{text:_0x3d92c2,color:_0x5b55ac}=_0x120324;_0x343baa[_0x716ca5(0x2ac)](),_0x343baa[_0x716ca5(0x148)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3634f6=_0x343baa[_0x716ca5(0x252)](_0x3d92c2)['width'],_0x3bf6a0=Math[_0x716ca5(0x216)](_0x3634f6+0x2*le,Ue);Ot(_0x343baa,{'height':X,'radius':0x4,'width':_0x3bf6a0,'fill':_0x5b55ac}),_0x343baa[_0x716ca5(0x236)]='#FFF';const _0x58581c=le,_0xcc0c04=X-pt,_0x1458f6=Ue-0x2*le;if(_0x3634f6>_0x1458f6){let _0x1e3d4c='',_0x253382=0x0;for(const _0x561306 of _0x3d92c2){const _0x436f6a=_0x343baa['measureText'](_0x561306)['width'];if(_0x253382+_0x436f6a<=_0x1458f6-_0x343baa[_0x716ca5(0x252)](_0x716ca5(0x37f))['width'])_0x1e3d4c+=_0x561306,_0x253382+=_0x436f6a;else{_0x1e3d4c+=_0x716ca5(0x37f);break;}}_0x343baa[_0x716ca5(0x1ee)](_0x1e3d4c,_0x58581c,_0xcc0c04);}else _0x343baa[_0x716ca5(0x1ee)](_0x3d92c2,_0x58581c,_0xcc0c04);_0x343baa[_0x716ca5(0x200)]();}[_0x3c131d(0x257)](_0x579e11){re['drawWith'](_0x579e11,this);}}const _e=_0x3c131d(0x10b),Rt=_0x3c131d(0x2de),bt=_0x3c131d(0x384),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x3c131d(0x31e);class Le{constructor(_0x482ef8,_0x538c10,_0x30d8d0,_0x12b706){const _0x169ffd=_0x3c131d;_(this,_0x169ffd(0x1d7),[]),_(this,'_anchor',null),_(this,_0x169ffd(0x23d),null),_(this,_0x169ffd(0x326),null),_(this,_0x169ffd(0x358),null),_(this,_0x169ffd(0x261),null),(this[_0x169ffd(0x1a3)]=_0x482ef8,this[_0x169ffd(0x21f)]=_0x538c10,this[_0x169ffd(0x15d)]=_0x30d8d0,this['_document']=_0x12b706,this[_0x169ffd(0x1c5)]());}set[_0x3c131d(0x176)](_0x1ee2e1){const _0x23a6e3=_0x3c131d;_0x1ee2e1?(this['_anchorDot']&&this['_anchorDot'][_0x23a6e3(0x35d)](),this['_textBubble']&&this[_0x23a6e3(0x23d)]['show']()):(this[_0x23a6e3(0x326)]&&this[_0x23a6e3(0x326)][_0x23a6e3(0x1ff)](),this[_0x23a6e3(0x23d)]&&this[_0x23a6e3(0x23d)]['hide']());}[_0x3c131d(0x2fc)](){const _0x5239ff=_0x3c131d;for(const _0x26e658 of this[_0x5239ff(0x1d7)])_0x26e658['dispose']();this[_0x5239ff(0x23d)]&&this[_0x5239ff(0x23d)][_0x5239ff(0x2fc)](),this['_anchorDot']&&this[_0x5239ff(0x326)][_0x5239ff(0x2fc)](),this[_0x5239ff(0x182)]&&this[_0x5239ff(0x182)][_0x5239ff(0x2fc)](),this[_0x5239ff(0x261)]&&this[_0x5239ff(0x261)]();}[_0x3c131d(0x1c5)](){const _0x264f20=_0x3c131d;var _0x15d2dc;const {_docSkeleton:_0x14c342,_document:_0xc2209b}=this,{color:_0x3063c8,name:_0x3d9618,ranges:_0x53e36c}=this[_0x264f20(0x1a3)],_0x129102=_0xc2209b['getOffsetConfig'](),{docsLeft:_0x3f0db2,docsTop:_0x28b6bc}=_0x129102,_0x2de1b9=new T['NodePositionConvertToCursor'](_0x129102,_0x14c342);for(const {startOffset:_0x1d5be5,endOffset:_0x1eaac,rangeType:_0x85ceee,segmentId:_0x5736b1,segmentPage:_0x2decc1,collapsed:_0x6872cb,isActive:_0x52c73d}of _0x53e36c){const _0x3321c8=_0x14c342[_0x264f20(0x25d)](_0x1d5be5,!0x0,_0x5736b1,_0x2decc1);let _0x34d330=_0x14c342[_0x264f20(0x25d)](_0x1eaac,!0x0,_0x5736b1,_0x2decc1);if(_0x34d330==null&&(_0x34d330=_0x14c342['findNodePositionByCharIndex'](_0x1eaac-0x1,!0x1,_0x5736b1,_0x2decc1)),_0x52c73d){const {contentBoxPointGroup:_0x26c2dc}=_0x2de1b9[_0x264f20(0x16c)](_0x34d330,_0x34d330);if(_0x26c2dc[_0x264f20(0x29a)]===0x0)continue;this[_0x264f20(0x163)](_0x3063c8,_0x26c2dc,_0x3f0db2,_0x28b6bc,_0x3d9618),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x3321c8&&_0x34d330){if(_0x85ceee===a['DOC_RANGE_TYPE'][_0x264f20(0x169)]){const _0x179ce1=new T['NodePositionConvertToRectRange'](_0x129102,_0x14c342),{pointGroup:_0x4094f3}=(_0x15d2dc=_0x179ce1[_0x264f20(0x16c)](_0x3321c8,_0x34d330))!=null?_0x15d2dc:{};if(_0x4094f3==null||_0x4094f3[_0x264f20(0x29a)]===0x0)continue;this['_drawRectRange'](_0x3063c8,_0x4094f3,_0x3f0db2,_0x28b6bc);}else{if(!_0x6872cb){const {borderBoxPointGroup:_0x15063e}=_0x2de1b9[_0x264f20(0x16c)](_0x3321c8,_0x34d330);if(_0x15063e['length']===0x0)continue;this[_0x264f20(0x221)](_0x3063c8,_0x15063e,_0x3f0db2,_0x28b6bc);}}}}}[_0x3c131d(0x163)](_0x2413b4,_0x30eb75,_0x29d7ce,_0xf518fa,_0x4c341f){const _0x1eb012=_0x3c131d,_0x3cb14b=this[_0x1eb012(0x228)](_0x30eb75),{left:_0x148826,top:_0x570d00,height:_0xc305e2}=_0x3cb14b,_0x46093f=this[_0x1eb012(0x270)](),_0x5e923c=Nt/_0x46093f,_0x35e655=new C[(_0x1eb012(0x145))](_e+a[_0x1eb012(0x2e4)](H),{'left':_0x148826+_0x29d7ce-_0x5e923c,'top':_0x570d00+_0xf518fa,'height':_0xc305e2,'width':Dt,'fill':_0x2413b4||C[_0x1eb012(0x32b)](a[_0x1eb012(0xfa)]['black'],0x0),'strokeWidth':_0x5e923c,'stroke':Ut,'evented':!0x0});this[_0x1eb012(0x182)]=_0x35e655,this[_0x1eb012(0x21f)][_0x1eb012(0x179)](_0x35e655,T[_0x1eb012(0x337)]);const _0xe83882=new C[(_0x1eb012(0x145))](_e+a[_0x1eb012(0x2e4)](H),{'left':_0x148826+_0x29d7ce-_0x5e923c,'top':_0x570d00+_0xf518fa-he/0x2,'height':he,'width':he,'fill':_0x2413b4||C['getColor'](a[_0x1eb012(0xfa)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2413b4||C['getColor'](a['COLORS'][_0x1eb012(0x133)],0x0),'evented':!0x1});this['_anchorDot']=_0xe83882,this[_0x1eb012(0x21f)][_0x1eb012(0x179)](_0xe83882,T[_0x1eb012(0x337)]);const _0x487753=new re(_e+a[_0x1eb012(0x2e4)](H),{'left':_0x148826+_0x29d7ce-_0x5e923c,'top':_0x570d00+_0xf518fa-X,'text':_0x4c341f,'color':_0x2413b4});this[_0x1eb012(0x23d)]=_0x487753,this[_0x1eb012(0x21f)][_0x1eb012(0x179)](_0x487753,T[_0x1eb012(0x337)]),this[_0x1eb012(0x176)]=!0x1;}['_handleHover'](){const _0x1fcd71=_0x3c131d,_0x50a932=this[_0x1fcd71(0x182)][_0x1fcd71(0x170)][_0x1fcd71(0x271)](()=>{const _0x272a11=_0x1fcd71;this[_0x272a11(0x176)]=!0x0;}),_0x1086cb=this[_0x1fcd71(0x182)]['onPointerLeave$'][_0x1fcd71(0x271)](()=>{const _0x437af6=_0x1fcd71;this[_0x437af6(0x358)]&&clearTimeout(this[_0x437af6(0x358)]),this[_0x437af6(0x358)]=setTimeout(()=>{const _0x26c7d6=_0x437af6;this[_0x26c7d6(0x176)]=!0x1;},0x7d0);});return()=>{const _0x4f1fba=_0x1fcd71;_0x50a932[_0x4f1fba(0xff)](),_0x1086cb[_0x4f1fba(0xff)]();};}[_0x3c131d(0x221)](_0x1922e8,_0x2498ca,_0x4e7ec9,_0x13304a){const _0x1d7ef4=_0x3c131d,_0xf6b3db=new a['ColorKit'](_0x1922e8)[_0x1d7ef4(0x275)](0.2)['toRgbString'](),_0x5c1e3a=new C['RegularPolygon'](Rt+a[_0x1d7ef4(0x2e4)](H),{'pointsGroup':_0x2498ca,'fill':_0xf6b3db||C[_0x1d7ef4(0x32b)](a['COLORS'][_0x1d7ef4(0x133)],0.2),'left':_0x4e7ec9,'top':_0x13304a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d7ef4(0x1d7)][_0x1d7ef4(0x2ad)](_0x5c1e3a),this[_0x1d7ef4(0x21f)][_0x1d7ef4(0x179)](_0x5c1e3a,T[_0x1d7ef4(0x337)]);}['_drawRectRange'](_0x424907,_0x54b8d3,_0x1eae90,_0x309cf2){const _0x40ebf3=_0x3c131d,_0x3bef24=new a[(_0x40ebf3(0x308))](_0x424907)[_0x40ebf3(0x275)](0.2)['toRgbString'](),_0x4237bc=new C[(_0x40ebf3(0x137))](bt+a[_0x40ebf3(0x2e4)](H),{'pointsGroup':_0x54b8d3,'fill':_0x3bef24||C[_0x40ebf3(0x32b)](a['COLORS'][_0x40ebf3(0x133)],0.2),'left':_0x1eae90,'top':_0x309cf2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x40ebf3(0x2ad)](_0x4237bc),this[_0x40ebf3(0x21f)][_0x40ebf3(0x179)](_0x4237bc,T[_0x40ebf3(0x337)]);}['_getAnchorBounding'](_0xe9c5cc){const _0x564e39=_0xe9c5cc[0x0],_0x2a6b6a=_0x564e39[0x0],_0xc8f90b=_0x564e39[0x2],{x:_0x1b229f,y:_0x55601e}=_0x2a6b6a,{x:_0x467ec2,y:_0x1e1250}=_0xc8f90b;return{'left':_0x1b229f,'top':_0x55601e,'width':_0x467ec2-_0x1b229f,'height':_0x1e1250-_0x55601e};}[_0x3c131d(0x270)](){const _0x527434=_0x3c131d,{scaleX:_0x253465,scaleY:_0x219885}=this['_scene']['getAncestorScale']();return Math[_0x527434(0x294)](_0x253465,_0x219885);}}var Lt=Object[_0x3c131d(0x196)],Mt=(_0x1db88d,_0x14b9b1,_0xde2a1,_0x30d33a)=>{const _0x1f802b=_0x3c131d;for(var _0xa17050=_0x30d33a>0x1?void 0x0:_0x30d33a?Lt(_0x14b9b1,_0xde2a1):_0x14b9b1,_0x498d29=_0x1db88d[_0x1f802b(0x29a)]-0x1,_0x253d30;_0x498d29>=0x0;_0x498d29--)(_0x253d30=_0x1db88d[_0x498d29])&&(_0xa17050=_0x253d30(_0xa17050)||_0xa17050);return _0xa17050;},q=(_0x128298,_0x197f80)=>(_0x36a90e,_0x2455c4)=>_0x197f80(_0x36a90e,_0x2455c4,_0x128298);let Ee=class extends a[_0x3c131d(0x141)]{constructor(_0x2ed131,_0x3d8e65,_0x2ff335,_0x57e883,_0x27fda7){const _0x3c48db=_0x3c131d;super(),_(this,_0x3c48db(0x307),[]),_(this,'_cursors',[]),(this[_0x3c48db(0x260)]=_0x2ed131,this[_0x3c48db(0x319)]=_0x3d8e65,this[_0x3c48db(0x2d8)]=_0x2ff335,this[_0x3c48db(0x25e)]=_0x57e883,this[_0x3c48db(0x391)]=_0x27fda7,this[_0x3c48db(0x11a)]());}[_0x3c131d(0x11a)](){const _0x4f6d4d=_0x3c131d,_0xaac0ba=this[_0x4f6d4d(0x260)][_0x4f6d4d(0x213)],_0x3a62c0=this['_docSkeletonManagerService'];this[_0x4f6d4d(0x3a7)](I[_0x4f6d4d(0x2e7)]([this['_collabCursorController'][_0x4f6d4d(0x35f)](_0xaac0ba),this[_0x4f6d4d(0x391)]['currentTheme$']])[_0x4f6d4d(0x14f)]($[_0x4f6d4d(0xf0)](([_0x3b4fca,_0x537b19])=>({'skeleton':_0x3a62c0[_0x4f6d4d(0x300)](),'cursors':[..._0x3b4fca['values']()][_0x4f6d4d(0x19d)](_0x3c5a4b=>({..._0x3c5a4b,'color':this[_0x4f6d4d(0x391)][_0x4f6d4d(0x15f)](_0x3c5a4b[_0x4f6d4d(0x2d7)])}))})))[_0x4f6d4d(0x330)](_0x1ee82c=>{if(this['_removeCollabCursors'](),_0x1ee82c){const {skeleton:_0x4a489d,cursors:_0x1fccb4}=_0x1ee82c;this['_updateCollabCursors'](_0x4a489d,_0x1fccb4);}})),this[_0x4f6d4d(0x1db)](),this[_0x4f6d4d(0x341)]();}[_0x3c131d(0x2c6)](_0x3b7d27,_0x2f40b0){const _0x2b215c=_0x3c131d,{scene:_0x298ded,mainComponent:_0x58831c}=this[_0x2b215c(0x260)],_0x755c1b=_0x2f40b0[_0x2b215c(0xf0)](_0x54b7ce=>new Le(_0x54b7ce,_0x298ded,_0x3b7d27,_0x58831c));this[_0x2b215c(0x307)]=_0x755c1b,this[_0x2b215c(0x11b)]=_0x2f40b0;}[_0x3c131d(0x28b)](){const _0x24f29f=_0x3c131d;this[_0x24f29f(0x35e)]();const {scene:_0x32c4e2,mainComponent:_0x294ba8}=this['_context'],_0x5633d2=this[_0x24f29f(0x319)][_0x24f29f(0x300)](),_0x5b3610=this[_0x24f29f(0x11b)][_0x24f29f(0xf0)](_0x545aa7=>new Le(_0x545aa7,_0x32c4e2,_0x5633d2,_0x294ba8));this[_0x24f29f(0x307)]=_0x5b3610;}[_0x3c131d(0x35e)](){const _0x447f32=_0x3c131d;this[_0x447f32(0x307)]['forEach'](_0x4c710c=>_0x4c710c[_0x447f32(0x2fc)]()),this[_0x447f32(0x307)]=[];}[_0x3c131d(0x341)](){const _0x53395e=_0x3c131d,_0x2bb703=[T['SetDocZoomRatioOperation']['id']];this[_0x53395e(0x3a7)](this[_0x53395e(0x25e)]['onCommandExecuted'](_0x15729d=>{const _0x2dd0e7=_0x53395e;_0x2bb703[_0x2dd0e7(0x23e)](_0x15729d['id'])&&_0x15729d[_0x2dd0e7(0x2b7)][_0x2dd0e7(0x213)]===this[_0x2dd0e7(0x260)][_0x2dd0e7(0x213)]&&this[_0x2dd0e7(0x28b)]();}));}[_0x3c131d(0x1db)](){const _0x237f04=_0x3c131d;this[_0x237f04(0x3a7)](a[_0x237f04(0x1f0)](this[_0x237f04(0x260)][_0x237f04(0x1a9)][_0x237f04(0x35c)])[_0x237f04(0x14f)]($['filter'](_0x22a138=>_0x22a138[_0x237f04(0x24d)]===C[_0x237f04(0x21e)][_0x237f04(0x32c)]),$[_0x237f04(0x2e5)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x3c131d(0x1fd)](V[_0x3c131d(0x17f)])),q(0x2,a[_0x3c131d(0x1fd)](F)),q(0x3,a['ICommandService']),q(0x4,a['Inject'](a[_0x3c131d(0x1e0)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x3c131d(0x223)]{constructor(_0x2698ab,_0x4aa32c){const _0x118a41=_0x3c131d;super(_0x2698ab,_0x4aa32c),_(this,_0x118a41(0xed)),_(this,_0x118a41(0x129),!0x1),_(this,'_range'),_(this,_0x118a41(0x335),''),_(this,_0x118a41(0xe7),_0x118a41(0x2f8)),_(this,_0x118a41(0x256)),(_0x4aa32c&&this[_0x118a41(0x328)](_0x4aa32c),this['onPointerEnter$'][_0x118a41(0x271)](()=>this[_0x118a41(0x328)]({'hovered':!0x0})),this[_0x118a41(0x1d9)][_0x118a41(0x271)](()=>this[_0x118a41(0x328)]({'hovered':!0x1})));}[_0x3c131d(0x328)](_0x42a097){const _0x443c2e=_0x3c131d;var _0x56509a,_0x58eff7,_0x543c10,_0x1320b2,_0x16791f,_0x17a1ba;this[_0x443c2e(0xed)]=(_0x56509a=_0x42a097[_0x443c2e(0x2d7)])!=null?_0x56509a:this['_color'],this[_0x443c2e(0x129)]=(_0x58eff7=_0x42a097[_0x443c2e(0x249)])!=null?_0x58eff7:this[_0x443c2e(0x129)],this[_0x443c2e(0x1ab)]=(_0x543c10=_0x42a097[_0x443c2e(0x1af)])!=null?_0x543c10:this[_0x443c2e(0x1ab)],this[_0x443c2e(0x335)]=(_0x1320b2=_0x42a097['name'])!=null?_0x1320b2:this[_0x443c2e(0x335)],this[_0x443c2e(0xe7)]=(_0x16791f=_0x42a097[_0x443c2e(0x2f0)])!=null?_0x16791f:this[_0x443c2e(0xe7)],this[_0x443c2e(0x256)]=(_0x17a1ba=_0x42a097[_0x443c2e(0x1c3)])!=null?_0x17a1ba:this[_0x443c2e(0x256)],this[_0x443c2e(0x198)]({'width':_0x42a097[_0x443c2e(0x20a)],'height':_0x42a097[_0x443c2e(0x25c)]});}[_0x3c131d(0x18b)](_0x453380){const _0x379dd9=_0x3c131d,{row:_0x5373ae,column:_0x58ef4f}=_0x453380;if(_0x5373ae>=this[_0x379dd9(0x1ab)][_0x379dd9(0x1ad)]&&_0x5373ae<=this['_range']['endRow']&&_0x58ef4f>=this[_0x379dd9(0x1ab)][_0x379dd9(0x177)]&&_0x58ef4f<=this[_0x379dd9(0x1ab)][_0x379dd9(0x136)]){this[_0x379dd9(0x328)]({'hovered':!0x0});return;}this[_0x379dd9(0x328)]({'hovered':!0x1});}[_0x3c131d(0x212)](_0x32eb71){return!0x1;}['_draw'](_0x5cb10e){const _0x3a83ee=_0x3c131d;C[_0x3a83ee(0x145)][_0x3a83ee(0x340)](_0x5cb10e,{'width':this[_0x3a83ee(0x20a)],'height':this[_0x3a83ee(0x25c)],'strokeWidth':Pt,'stroke':this[_0x3a83ee(0xed)],'evented':!0x1,'fill':this[_0x3a83ee(0x256)]}),this['_hovered']&&(_0x5cb10e[_0x3a83ee(0x2ac)](),_0x5cb10e[_0x3a83ee(0x178)](0x1,0x0,0x0,0x1,this[_0x3a83ee(0x20a)],this[_0x3a83ee(0xe7)]==='bottom'?0x0:-X),re['drawWith'](_0x5cb10e,{'text':this['_name'],'color':this[_0x3a83ee(0xed)]}),_0x5cb10e['restore']());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x349dcb,_0x1f450b,_0x17c9db,_0x38d5f3)=>{const _0x231577=_0x3c131d;for(var _0x4fdf88=_0x38d5f3>0x1?void 0x0:_0x38d5f3?wt(_0x1f450b,_0x17c9db):_0x1f450b,_0x38ca2f=_0x349dcb[_0x231577(0x29a)]-0x1,_0x377227;_0x38ca2f>=0x0;_0x38ca2f--)(_0x377227=_0x349dcb[_0x38ca2f])&&(_0x4fdf88=_0x377227(_0x4fdf88)||_0x4fdf88);return _0x4fdf88;},ue=(_0x2e80fa,_0x479ad4)=>(_0x15e677,_0x2c57c1)=>_0x479ad4(_0x15e677,_0x2c57c1,_0x2e80fa);const $t=0x1389;let Ce=class extends a[_0x3c131d(0x141)]{constructor(_0x1793f1,_0x15d9a9,_0x4879b3,_0x3b7782){const _0x2132f1=_0x3c131d;super(),_(this,'_cursors',new Set()),_(this,_0x2132f1(0x2bf),null),(this['_context']=_0x1793f1,this[_0x2132f1(0x201)]=_0x15d9a9,this[_0x2132f1(0x2d8)]=_0x4879b3,this[_0x2132f1(0x391)]=_0x3b7782,this[_0x2132f1(0x11a)]());}[_0x3c131d(0x11a)](){const _0x3fefea=_0x3c131d;this[_0x3fefea(0x201)][_0x3fefea(0x116)][_0x3fefea(0x14f)]($[_0x3fefea(0x2e6)](this[_0x3fefea(0x2f9)]),$['switchMap'](_0x5d136c=>{const _0x4b5e4d=_0x3fefea;if(_0x5d136c){const _0x41cc89=_0x5d136c[_0x4b5e4d(0x264)];return I['combineLatest'](this[_0x4b5e4d(0x2d8)][_0x4b5e4d(0x35f)](this[_0x4b5e4d(0x260)][_0x4b5e4d(0x213)]),this[_0x4b5e4d(0x391)]['currentTheme$'])[_0x4b5e4d(0x14f)]($['map'](([_0x43036f,_0x13273a])=>{const _0x4291fa=_0x4b5e4d,_0x20fa0c=new Map();return _0x43036f[_0x4291fa(0x1df)]((_0x1b5c13,_0x4b298b)=>{const _0x24bace=_0x4291fa;if(_0x1b5c13[_0x24bace(0x310)]===_0x41cc89){const _0x887ea={..._0x1b5c13};_0x887ea[_0x24bace(0x2d7)]=this[_0x24bace(0x391)][_0x24bace(0x15f)](_0x1b5c13['color']),_0x20fa0c[_0x24bace(0x1dc)](_0x4b298b,_0x887ea);}}),{'skeleton':_0x5d136c,'cursors':_0x20fa0c};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3fefea(0x330)](({skeleton:_0x49d2a3,cursors:_0x23aacf})=>{const _0x16028a=_0x3fefea;this[_0x16028a(0x35e)](),_0x49d2a3&&this[_0x16028a(0x2c6)](_0x49d2a3,_0x23aacf);}),this[_0x3fefea(0x201)][_0x3fefea(0x116)][_0x3fefea(0x330)](_0x4bd683=>{const _0x172be7=_0x3fefea;if(_0x4bd683==null)return;const {skeleton:_0x34963e}=_0x4bd683,{scene:_0x3a9e0f}=this['_context'];_0x3a9e0f['onPointerMove$'][_0x172be7(0x271)](a['debounce'](_0x4adfc3=>{const _0x2d9f45=_0x172be7;var _0x1c3328,_0x8454bb;const {offsetX:_0x10ce56,offsetY:_0xa5606f}=_0x4adfc3,{x:_0x3210f7,y:_0xb7c419}=_0x3a9e0f[_0x2d9f45(0x348)](C[_0x2d9f45(0x10c)][_0x2d9f45(0x39d)]([_0x10ce56,_0xa5606f])),{scaleX:_0x391e15,scaleY:_0x3c0522}=_0x3a9e0f[_0x2d9f45(0x373)](),_0x3c6d45=_0x3a9e0f[_0x2d9f45(0x1d6)](C[_0x2d9f45(0x30e)]['VIEW_MAIN']),_0x2654bd=_0x3a9e0f['getVpScrollXYInfoByPosToVp'](C[_0x2d9f45(0x10c)][_0x2d9f45(0x39d)]([_0x3210f7,_0xb7c419]),_0x3c6d45),_0x1d7dc0=_0x34963e['getCellPositionByOffset'](_0x10ce56,_0xa5606f,_0x391e15,_0x3c0522,_0x2654bd);((_0x1c3328=this[_0x2d9f45(0x2bf)])==null?void 0x0:_0x1c3328[_0x2d9f45(0x21d)])===_0x1d7dc0['column']&&((_0x8454bb=this[_0x2d9f45(0x2bf)])==null?void 0x0:_0x8454bb[_0x2d9f45(0x251)])===_0x1d7dc0[_0x2d9f45(0x251)]||this[_0x2d9f45(0x11b)]['forEach'](_0x113370=>{const _0x3ad961=_0x2d9f45;_0x113370[_0x3ad961(0x18b)](_0x1d7dc0);});},0x64));});}[_0x3c131d(0x2c6)](_0x462304,_0xd447d7){const _0x26dd48=_0x3c131d;var _0x575257;const _0x3cf403=(_0x575257=this['_sheetSkeletonManagerService'][_0x26dd48(0x2c9)]())==null?void 0x0:_0x575257[_0x26dd48(0x38c)];if(!_0x3cf403)return;const _0x57c66d=this[_0x26dd48(0x1f7)]();if(!_0x57c66d)return;this[_0x26dd48(0x11b)][_0x26dd48(0x1df)](_0x269f46=>{_0x269f46['makeDirty']();});const {scene:_0x3fd024}=_0x57c66d,_0x2e33f2=xt(Array[_0x26dd48(0x292)](_0xd447d7[_0x26dd48(0x2c8)]()))[_0x26dd48(0xf0)](_0x5da407=>{const _0xdd6f42=_0x26dd48,{color:_0x5315dd,range:_0x437541,name:_0x582c51,selection:_0x57461f,sheetID:_0x3b6e19}=_0x5da407,{startColumn:_0x272140,startRow:_0x560e5c,endColumn:_0x4dbea4,endRow:_0x3132e9}=_0x437541,_0x307067=J[_0xdd6f42(0x24b)](_0x560e5c,_0x272140,_0x3fd024,_0x3cf403),_0x30d95c=J['getCoordByCell'](_0x3132e9,_0x4dbea4,_0x3fd024,_0x3cf403),{columnHeaderHeightAndMarginTop:_0x20918e}=_0x3cf403,{startX:_0x5b3d22,startY:_0x263c1d}=_0x307067,{endX:_0x23149d,endY:_0x3ecd8b}=_0x30d95c,_0x117be2=_0x23149d-_0x5b3d22,_0x94bb16=_0x3ecd8b-_0x263c1d,_0x4dada7={'labelPosition':_0x263c1d-_0x20918e>=X?'top':'bottom','sheetID':_0x3b6e19,'range':_0x437541,'color':_0x5315dd,'name':_0x582c51,'selection':_0x57461f,'left':_0x5b3d22,'top':_0x263c1d,'width':_0x117be2,'height':_0x94bb16,'evented':!0x1,'zIndex':$t};return new je(_0x582c51,_0x4dada7);});_0x3fd024[_0x26dd48(0x13c)](_0x2e33f2,At),this[_0x26dd48(0x11b)]=new Set(_0x2e33f2);}[_0x3c131d(0x35e)](){const _0x1a0841=_0x3c131d;var _0x240d8a;(_0x240d8a=this['_cursors'])==null||_0x240d8a[_0x1a0841(0x1df)](_0x41eaeb=>_0x41eaeb[_0x1a0841(0x2fc)]());}['_getSheetObject'](){const _0x4ac5ef=_0x3c131d;return J[_0x4ac5ef(0x248)](this[_0x4ac5ef(0x260)][_0x4ac5ef(0x268)],this[_0x4ac5ef(0x260)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x3c131d(0x359)])),ue(0x2,a[_0x3c131d(0x1fd)](F)),ue(0x3,a['Inject'](a[_0x3c131d(0x1e0)]))],Ce);function xt(_0x5bbc6d){const _0x12fb02=_0x3c131d,_0x4d7bbd=new Map();return _0x5bbc6d[_0x12fb02(0x1df)](_0x59e2e5=>{const _0x1499a6=_0x12fb02;if(_0x4d7bbd[_0x1499a6(0x25f)](_0x59e2e5['selection'])){const _0x494a0c=_0x4d7bbd['get'](_0x59e2e5[_0x1499a6(0x22f)]);_0x494a0c[_0x1499a6(0x10e)]+=',\x20'+_0x59e2e5[_0x1499a6(0x10e)];}else _0x4d7bbd[_0x1499a6(0x1dc)](_0x59e2e5[_0x1499a6(0x22f)],_0x59e2e5);}),Array[_0x12fb02(0x292)](_0x4d7bbd[_0x12fb02(0x2c8)]());}var Bt=Object[_0x3c131d(0x196)],Ft=(_0x2f9430,_0x4e26ee,_0x3a83f0,_0x309a5a)=>{const _0xfcf84=_0x3c131d;for(var _0x2078a2=_0x309a5a>0x1?void 0x0:_0x309a5a?Bt(_0x4e26ee,_0x3a83f0):_0x4e26ee,_0x51c9f0=_0x2f9430[_0xfcf84(0x29a)]-0x1,_0x233c78;_0x51c9f0>=0x0;_0x51c9f0--)(_0x233c78=_0x2f9430[_0x51c9f0])&&(_0x2078a2=_0x233c78(_0x2078a2)||_0x2078a2);return _0x2078a2;},y=(_0x5a08c4,_0x12b99c)=>(_0x2fe236,_0x108066)=>_0x12b99c(_0x2fe236,_0x108066,_0x5a08c4);let Z=class extends a[_0x3c131d(0x296)]{constructor(_0x11e00d,_0x53cc42,_0xf4364b,_0x414667,_0x193600,_0x542f8e){const _0x4f01ac=_0x3c131d;super(),this[_0x4f01ac(0x22b)]=_0x11e00d,this[_0x4f01ac(0x317)]=_0x53cc42,this[_0x4f01ac(0x38d)]=_0xf4364b,this[_0x4f01ac(0x109)]=_0x414667,this[_0x4f01ac(0x174)]=_0x193600,this[_0x4f01ac(0x272)]=_0x542f8e,this[_0x4f01ac(0x241)](),this[_0x4f01ac(0x2fb)]();}[_0x3c131d(0x241)](){const _0x302e65=_0x3c131d;this[_0x302e65(0x3a7)](this[_0x302e65(0x22b)][_0x302e65(0x305)](()=>{const _0x11656d=_0x302e65;if(this[_0x11656d(0x317)]['saveTaskMap'][_0x11656d(0xf9)])return this['_localeService']['t']('collaboration.offline-data-not-saved');}));}[_0x3c131d(0x2fb)](){const _0x1d74b7=_0x3c131d;this[_0x1d74b7(0x3a7)](this[_0x1d74b7(0x38d)][_0x1d74b7(0x28e)][_0x1d74b7(0x330)](_0x153a25=>{const _0x149eda=_0x1d74b7;_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x1c1)]&&this[_0x149eda(0x109)][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x370)],'content':this[_0x149eda(0x272)]['t'](_0x149eda(0x336))}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x3a6)]&&this['_messageService']['show']({'type':p[_0x149eda(0x1da)]['Warning'],'content':this['_localeService']['t'](_0x149eda(0x12e))}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x1e2)]&&this['_notificationService'][_0x149eda(0x1ff)]({'title':this[_0x149eda(0x272)]['t'](_0x149eda(0xfe)),'content':this[_0x149eda(0x272)]['t'](_0x149eda(0x33a)),'type':_0x149eda(0x1aa),'duration':0x0}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x140)]&&this['_messageService'][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x2c4)],'content':this['_localeService']['t'](_0x149eda(0x12e))+'('+_0x153a25[_0x149eda(0x165)]+')'}),_0x153a25['id']===u['CollaborationUIEventId'][_0x149eda(0x33b)]&&this[_0x149eda(0x109)][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)]['Warning'],'content':this['_localeService']['t'](_0x153a25[_0x149eda(0x165)]||'')}),_0x153a25['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x149eda(0x109)]['show']({'type':p[_0x149eda(0x1da)][_0x149eda(0x370)],'content':this['_localeService']['t']('session.will-retry')}),_0x153a25['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x2c4)],'content':this['_localeService']['t']('session.connection-failed')}),_0x153a25['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x149eda(0x109)][_0x149eda(0x1ff)]({'type':p[_0x149eda(0x1da)][_0x149eda(0x2c4)],'content':this['_localeService']['t'](_0x149eda(0xe3))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x3c131d(0x1fd)](u['CollaborationUIEventService'])),y(0x3,O[_0x3c131d(0x115)]),y(0x4,O[_0x3c131d(0x333)]),y(0x5,a[_0x3c131d(0x1fd)](a['LocaleService']))],Z);var jt=Object[_0x3c131d(0x196)],kt=(_0x1922c7,_0x29737b,_0x4fc8e4,_0x3a4fc5)=>{const _0xa21aa5=_0x3c131d;for(var _0x482fb1=_0x3a4fc5>0x1?void 0x0:_0x3a4fc5?jt(_0x29737b,_0x4fc8e4):_0x29737b,_0x3bb80e=_0x1922c7[_0xa21aa5(0x29a)]-0x1,_0x3c1b49;_0x3bb80e>=0x0;_0x3bb80e--)(_0x3c1b49=_0x1922c7[_0x3bb80e])&&(_0x482fb1=_0x3c1b49(_0x482fb1)||_0x482fb1);return _0x482fb1;},z=(_0x2c4d19,_0x53f65a)=>(_0x5d84ee,_0x40fbe2)=>_0x53f65a(_0x5d84ee,_0x40fbe2,_0x2c4d19);let Q=class extends a['Disposable']{constructor(_0xaaf8ab,_0x5f3da9,_0x11d5ae,_0x55d717){const _0x4796ee=_0x3c131d;super(),_(this,_0x4796ee(0x314)),(this[_0x4796ee(0x2ef)]=_0xaaf8ab,this[_0x4796ee(0x29c)]=_0x5f3da9,this['_logService']=_0x11d5ae,this[_0x4796ee(0x21b)]=_0x55d717,this[_0x4796ee(0x11a)]());}[_0x3c131d(0x11a)](){const _0x2179e2=_0x3c131d;this[_0x2179e2(0x2ec)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x2179e2(0x14b)]();}[_0x3c131d(0x14b)](){const _0x142180=_0x3c131d;this[_0x142180(0x3a7)](this[_0x142180(0x21b)][_0x142180(0x130)]['subscribe'](_0x47b5f6=>{const _0x59a364=_0x142180;this['_memberID']=_0x47b5f6==null?void 0x0:_0x47b5f6[_0x59a364(0x1f8)];}));}[_0x3c131d(0x2ec)](){const _0x91c74b=_0x3c131d,_0x281674=_0x1cd92d=>{const _0x3b5929=_0x4b7f;var _0x2ebf61;this[_0x3b5929(0x39f)]('error','[Window\x20Error]:\x20'+_0x1cd92d['message']+'\x20at\x20'+_0x1cd92d[_0x3b5929(0x243)]+':'+_0x1cd92d['lineno']+':'+_0x1cd92d['colno']+'\x0a'+(((_0x2ebf61=_0x1cd92d['error'])==null?void 0x0:_0x2ebf61['stack'])||''));};window[_0x91c74b(0x395)]('error',_0x281674),this[_0x91c74b(0x3a7)](()=>{const _0x2aaaef=_0x91c74b;window[_0x2aaaef(0x1a2)]('error',_0x281674);});}['_initUnhandledRejectionListener'](){const _0x539f25=_0x3c131d,_0x2dc059=_0x4793c5=>{const _0x5a76ed=_0x4b7f;this[_0x5a76ed(0x39f)](_0x5a76ed(0x1aa),_0x5a76ed(0x1a0)+_0x4793c5[_0x5a76ed(0x2ff)]);};window['addEventListener'](_0x539f25(0x36d),_0x2dc059),this[_0x539f25(0x3a7)](()=>{const _0x2146a6=_0x539f25;window[_0x2146a6(0x1a2)](_0x2146a6(0x36d),_0x2dc059);});}[_0x3c131d(0x1f3)](){const _0x340ecb=_0x3c131d,_0x514bb3=this[_0x340ecb(0x25a)][_0x340ecb(0x1aa)][_0x340ecb(0x318)](this[_0x340ecb(0x25a)]);this['_logService'][_0x340ecb(0x1aa)]=(..._0x59620f)=>{const _0x16a20f=_0x340ecb,_0x3d2931=_0x59620f[_0x16a20f(0xf0)](_0x2bb237=>_0x2bb237 instanceof Error?_0x2bb237['message']+'\x0a'+_0x2bb237[_0x16a20f(0x13b)]:String(_0x2bb237))[_0x16a20f(0x388)]('\x20');this[_0x16a20f(0x39f)](_0x16a20f(0x1aa),'[LogService\x20Error]:\x20'+_0x3d2931),_0x514bb3(..._0x59620f);},this[_0x340ecb(0x3a7)](()=>{const _0x5abb4c=_0x340ecb;this[_0x5abb4c(0x25a)]['error']=_0x514bb3;});}['_uploadLog'](_0x4df30f,_0x1265cb){const _0x467192=_0x3c131d;try{const _0x3714a8={'userId':this[_0x467192(0x314)],'logLabel':_0x4df30f,'content':_0x1265cb};this[_0x467192(0x29c)][_0x467192(0x229)](_0x467192(0x24f),{'body':_0x3714a8})[_0x467192(0x19c)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),z(0x1,a[_0x3c131d(0x1fd)](x['HTTPService'])),z(0x2,a[_0x3c131d(0x2b4)]),z(0x3,a['Inject'](u[_0x3c131d(0x1e7)]))],Q);const Yt=_0x3c131d(0x37c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x1fd038,_0x1a37f6,_0x3832c3,_0x3533fb)=>{const _0x1d4acf=_0x3c131d;for(var _0x5e8df2=_0x3533fb>0x1?void 0x0:_0x3533fb?Ht(_0x1a37f6,_0x3832c3):_0x1a37f6,_0x36026a=_0x1fd038[_0x1d4acf(0x29a)]-0x1,_0x19d6fc;_0x36026a>=0x0;_0x36026a--)(_0x19d6fc=_0x1fd038[_0x36026a])&&(_0x5e8df2=_0x19d6fc(_0x5e8df2)||_0x5e8df2);return _0x5e8df2;},Ae=(_0x197022,_0x111772)=>(_0x55fb7f,_0x286c8b)=>_0x111772(_0x55fb7f,_0x286c8b,_0x197022);let ee=class{constructor(_0x35f537,_0x49964a){const _0x3f012b=_0x3c131d;this[_0x3f012b(0x1ba)]=_0x35f537,this[_0x3f012b(0x262)]=_0x49964a;}[_0x3c131d(0x208)](_0x1b4d98){const _0x2aa8e7=_0x3c131d;this[_0x2aa8e7(0x190)](_0x1b4d98),this[_0x2aa8e7(0x383)](_0x1b4d98);}[_0x3c131d(0x34f)](_0x306812){const _0x843621=_0x3c131d,{unitID:_0x1a74bb}=_0x306812,_0x479301=this['_renderManagerService']['getRenderById'](_0x1a74bb)[_0x843621(0x362)](T[_0x843621(0x158)]),{redoCache:_0xc883e8}=_0x479301['getUndoRedoMutationParamsCache']();if(_0xc883e8['length']===0x0)return _0x306812;let _0x5232a2=a[_0x843621(0x334)][_0x843621(0x1a8)](_0x306812[_0x843621(0x37d)][0x0]);for(let _0x41a0f8=0x0;_0x41a0f8<_0xc883e8[_0x843621(0x29a)];_0x41a0f8++){const _0x14e04f={'id':_0x843621(0xe6),'params':{..._0xc883e8[_0x41a0f8]}},_0x5dbdde=this[_0x843621(0x1ba)][_0x843621(0x280)](_0x5232a2,_0x14e04f,!0x1);if(g[_0x843621(0x372)](_0x5dbdde))throw _0x5dbdde['error'];_0x5232a2=_0x5dbdde[_0x843621(0x286)];}return{...a[_0x843621(0x334)]['deepClone'](_0x306812),'mutations':[_0x5232a2]};}[_0x3c131d(0x190)](_0x36efb2){const _0x4518bf=_0x3c131d,{unitID:_0x294922}=_0x36efb2,_0xe2b165=this[_0x4518bf(0x262)]['getRenderById'](_0x294922)[_0x4518bf(0x362)](T[_0x4518bf(0x158)]),{undoCache:_0x2cec50,redoCache:_0x11827c}=_0xe2b165[_0x4518bf(0x309)]();if(_0x2cec50[_0x4518bf(0x29a)]===0x0||_0x11827c[_0x4518bf(0x29a)]===0x0)return;const _0x1e8315=[],_0x32a7b8=[];let _0x38f482=a[_0x4518bf(0x334)]['deepClone'](_0x36efb2[_0x4518bf(0x37d)][0x0]),_0x4ceaa6=a[_0x4518bf(0x334)]['deepClone'](_0x36efb2[_0x4518bf(0x37d)][0x0]);for(let _0x1cf94a=_0x2cec50[_0x4518bf(0x29a)]-0x1;_0x1cf94a>=0x0;_0x1cf94a--){const _0x3edf93={'id':'doc.mutation.rich-text-editing','params':{..._0x2cec50[_0x1cf94a]}},_0x2aec5c={'id':_0x4518bf(0xe6),'params':{..._0x11827c[_0x1cf94a]}},_0x569e7c=this[_0x4518bf(0x1ba)]['transformMutation'](_0x38f482,_0x3edf93,!0x1),_0x5175a4=this[_0x4518bf(0x1ba)][_0x4518bf(0x280)](_0x4ceaa6,_0x2aec5c,!0x1);if(g['isTransformMutationFailure'](_0x569e7c))throw _0x569e7c[_0x4518bf(0x1aa)];if(g['isTransformMutationFailure'](_0x5175a4))throw _0x5175a4[_0x4518bf(0x1aa)];_0x1e8315['unshift'](_0x569e7c['m2Prime']['params']),_0x32a7b8[_0x4518bf(0x355)](_0x5175a4[_0x4518bf(0x2fa)][_0x4518bf(0x2b7)]),_0x38f482=_0x569e7c[_0x4518bf(0x286)],_0x4ceaa6=_0x5175a4['m1Prime'];}_0xe2b165[_0x4518bf(0x3a5)]({'undoCache':_0x1e8315,'redoCache':_0x32a7b8});}[_0x3c131d(0x383)](_0x2f5dbd){const _0x1c0296=_0x3c131d,{unitID:_0x20b11b}=_0x2f5dbd,_0x766ad3=this[_0x1c0296(0x262)][_0x1c0296(0x327)](_0x20b11b)[_0x1c0296(0x362)](T['DocIMEInputManagerService']),_0x200400=_0x766ad3[_0x1c0296(0x242)]();if(_0x200400==null)return;const _0x1919f0=[{'id':_0x1c0296(0xe6),'params':{'unitId':_0x2f5dbd['unitID'],'actions':null,'textRanges':[_0x200400]}}],_0x2d4c26=this['_transformService'][_0x1c0296(0x1d0)](_0x2f5dbd,_0x1919f0);if(!g[_0x1c0296(0x32d)](_0x2d4c26))throw _0x2d4c26['error'];const _0x6ccd44=_0x2d4c26[_0x1c0296(0x2fa)][0x0][_0x1c0296(0x2b7)]['textRanges'];Array['isArray'](_0x6ccd44)&&_0x6ccd44[_0x1c0296(0x29a)]&&_0x766ad3[_0x1c0296(0x2f7)](_0x6ccd44[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x3c131d(0x331)])],ee);var Vt=Object[_0x3c131d(0x196)],Gt=(_0xfbf486,_0x429a4c,_0x49ec36,_0x54cbfa)=>{const _0x59cbd7=_0x3c131d;for(var _0x498891=_0x54cbfa>0x1?void 0x0:_0x54cbfa?Vt(_0x429a4c,_0x49ec36):_0x429a4c,_0x5629c7=_0xfbf486[_0x59cbd7(0x29a)]-0x1,_0x34cf94;_0x5629c7>=0x0;_0x5629c7--)(_0x34cf94=_0xfbf486[_0x5629c7])&&(_0x498891=_0x34cf94(_0x498891)||_0x498891);return _0x498891;},Ie=(_0x1fec6e,_0x3a812f)=>(_0x4dd42b,_0x2e547c)=>_0x3a812f(_0x4dd42b,_0x2e547c,_0x1fec6e);let te=class{constructor(_0x5312bf,_0x2f64ef,_0x5f10b8){const _0x49b657=_0x3c131d;this[_0x49b657(0x2ef)]=_0x5312bf,this[_0x49b657(0x1ba)]=_0x2f64ef,this['_docStateChangeManagerService']=_0x5f10b8;}[_0x3c131d(0x121)](_0x373905){this['_transformHistoryAndStateStack'](_0x373905);}[_0x3c131d(0x34f)](_0x212bcf){const _0x4e52d3=_0x3c131d,{unitID:_0x1cca62}=_0x212bcf,{collaboration:_0x1e78ea}=this[_0x4e52d3(0x22d)][_0x4e52d3(0x350)](_0x1cca62);if(_0x1e78ea[_0x4e52d3(0x29a)]===0x0)return _0x212bcf;let _0xde2ee=a[_0x4e52d3(0x334)][_0x4e52d3(0x1a8)](_0x212bcf[_0x4e52d3(0x37d)][0x0]);for(let _0x3da859=0x0;_0x3da859<_0x1e78ea[_0x4e52d3(0x29a)];_0x3da859++){const _0x28e535={'id':_0x4e52d3(0xe6),'params':{'unitId':_0x1e78ea[_0x3da859]['unitId'],..._0x1e78ea[_0x3da859][_0x4e52d3(0x32f)]}},_0x3df281=this[_0x4e52d3(0x1ba)]['transformMutation'](_0xde2ee,_0x28e535,!0x1);if(g[_0x4e52d3(0x372)](_0x3df281))throw _0x3df281['error'];_0xde2ee=_0x3df281['m1Prime'];}return{...a[_0x4e52d3(0x334)][_0x4e52d3(0x1a8)](_0x212bcf),'mutations':[_0xde2ee]};}[_0x3c131d(0x320)](_0x1b09dd){const _0x31311b=_0x3c131d,{unitID:_0x49f977}=_0x1b09dd,{history:_0x18e3f3,collaboration:_0x527230}=this[_0x31311b(0x22d)][_0x31311b(0x350)](_0x49f977);if(_0x18e3f3['length']===0x0&&_0x527230[_0x31311b(0x29a)]===0x0)return;const _0x362f55=[],_0xe39026=[];let _0x507d6d=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd[_0x31311b(0x37d)][0x0]),_0x1362fe=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd['mutations'][0x0]);for(let _0x5c7f29=_0x18e3f3[_0x31311b(0x29a)]-0x1;_0x5c7f29>=0x0;_0x5c7f29--){const _0x37c6d3={'id':_0x31311b(0xe6),'params':{'unitId':_0x18e3f3[_0x5c7f29][_0x31311b(0x213)],..._0x18e3f3[_0x5c7f29][_0x31311b(0x1c0)]}},_0x212151={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18e3f3[_0x5c7f29][_0x31311b(0x213)],..._0x18e3f3[_0x5c7f29][_0x31311b(0x32f)]}},_0x2d3b47=this[_0x31311b(0x1ba)][_0x31311b(0x280)](_0x507d6d,_0x37c6d3,!0x1),_0x3c83ee=this[_0x31311b(0x1ba)]['transformMutation'](_0x1362fe,_0x212151,!0x1);if(g[_0x31311b(0x372)](_0x2d3b47))throw _0x2d3b47[_0x31311b(0x1aa)];if(g[_0x31311b(0x372)](_0x3c83ee))throw _0x3c83ee[_0x31311b(0x1aa)];_0x362f55[_0x31311b(0x355)]({..._0x18e3f3[_0x5c7f29],'undoState':_0x2d3b47['m2Prime'][_0x31311b(0x2b7)],'redoState':_0x3c83ee['m2Prime'][_0x31311b(0x2b7)]}),_0x507d6d=_0x2d3b47[_0x31311b(0x286)],_0x1362fe=_0x3c83ee[_0x31311b(0x286)];}_0x507d6d=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd['mutations'][0x0]),_0x1362fe=a[_0x31311b(0x334)][_0x31311b(0x1a8)](_0x1b09dd[_0x31311b(0x37d)][0x0]);for(let _0x2d04b4=_0x527230[_0x31311b(0x29a)]-0x1;_0x2d04b4>=0x0;_0x2d04b4--){const _0x1a305c={'id':_0x31311b(0xe6),'params':{'unitId':_0x527230[_0x2d04b4]['unitId'],..._0x527230[_0x2d04b4][_0x31311b(0x1c0)]}},_0x2f4c82={'id':_0x31311b(0xe6),'params':{'unitId':_0x527230[_0x2d04b4]['unitId'],..._0x527230[_0x2d04b4][_0x31311b(0x32f)]}},_0xbc1d69=this[_0x31311b(0x1ba)][_0x31311b(0x280)](_0x507d6d,_0x1a305c,!0x1),_0x16b101=this['_transformService'][_0x31311b(0x280)](_0x1362fe,_0x2f4c82,!0x1);if(g[_0x31311b(0x372)](_0xbc1d69))throw _0xbc1d69[_0x31311b(0x1aa)];if(g[_0x31311b(0x372)](_0x16b101))throw _0x16b101['error'];_0xe39026[_0x31311b(0x355)]({..._0x527230[_0x2d04b4],'undoState':_0xbc1d69[_0x31311b(0x2fa)][_0x31311b(0x2b7)],'redoState':_0x16b101[_0x31311b(0x2fa)][_0x31311b(0x2b7)]}),_0x507d6d=_0xbc1d69['m1Prime'],_0x1362fe=_0x16b101[_0x31311b(0x286)];}this[_0x31311b(0x22d)][_0x31311b(0x375)](_0x49f977,{'history':_0x362f55,'collaboration':_0xe39026});}};te=Gt([Ie(0x0,a['Inject'](a[_0x3c131d(0x146)])),Ie(0x1,g[_0x3c131d(0x194)]),Ie(0x2,a[_0x3c131d(0x1fd)](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x20bf08,_0x5cf36c,_0x2713da,_0x5651fd)=>{for(var _0x5f498b=_0x5651fd>0x1?void 0x0:_0x5651fd?Xt(_0x5cf36c,_0x2713da):_0x5cf36c,_0x21c7fc=_0x20bf08['length']-0x1,_0x404915;_0x21c7fc>=0x0;_0x21c7fc--)(_0x404915=_0x20bf08[_0x21c7fc])&&(_0x5f498b=_0x404915(_0x5f498b)||_0x5f498b);return _0x5f498b;},Pe=(_0x342666,_0x425593)=>(_0x26c8ba,_0x5dd6d8)=>_0x425593(_0x26c8ba,_0x5dd6d8,_0x342666);let se=class{constructor(_0x2104c3,_0x4b6847){const _0x4c90a4=_0x3c131d;this[_0x4c90a4(0x2ef)]=_0x2104c3,this['_transformService']=_0x4b6847;}[_0x3c131d(0x151)](_0x30f88c){const _0x9bede5=_0x3c131d;var _0x50c83c;const _0x5c5fa7=this[_0x9bede5(0x2ef)][_0x9bede5(0x20d)](V['DocSelectionManagerService']),_0x1fc916=(_0x50c83c=_0x5c5fa7[_0x9bede5(0x101)]())!=null?_0x50c83c:[];if(_0x1fc916[_0x9bede5(0x29a)]===0x0)return;const _0x3979df=_0x30f88c[_0x9bede5(0x2f4)],_0x44a32a=[{'id':_0x9bede5(0xe6),'params':{'unitId':_0x3979df,'actions':null,'textRanges':_0x1fc916}}],_0x5926e6=this[_0x9bede5(0x1ba)][_0x9bede5(0x1d0)](_0x30f88c,_0x44a32a);if(!g[_0x9bede5(0x32d)](_0x5926e6))throw _0x5926e6[_0x9bede5(0x1aa)];const _0x19461a=_0x5926e6[_0x9bede5(0x2fa)][0x0][_0x9bede5(0x2b7)]['textRanges'];Array[_0x9bede5(0x32a)](_0x19461a)&&_0x19461a[_0x9bede5(0x29a)]&&_0x5c5fa7[_0x9bede5(0x2aa)](_0x19461a,{'unitId':_0x3979df,'subUnitId':_0x3979df},!0x1);}};se=Kt([Pe(0x0,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),Pe(0x1,g[_0x3c131d(0x194)])],se);var qt=Object[_0x3c131d(0x196)],zt=(_0x48aea5,_0x17fcd8,_0x4dbaa1,_0xc09171)=>{const _0x3f4161=_0x3c131d;for(var _0x3dd97a=_0xc09171>0x1?void 0x0:_0xc09171?qt(_0x17fcd8,_0x4dbaa1):_0x17fcd8,_0x2b0d25=_0x48aea5[_0x3f4161(0x29a)]-0x1,_0x53fb6c;_0x2b0d25>=0x0;_0x2b0d25--)(_0x53fb6c=_0x48aea5[_0x2b0d25])&&(_0x3dd97a=_0x53fb6c(_0x3dd97a)||_0x3dd97a);return _0x3dd97a;},N=(_0x2ca793,_0x27dab9)=>(_0x1a0f13,_0x29fdbe)=>_0x27dab9(_0x1a0f13,_0x29fdbe,_0x2ca793);let ie=class extends a[_0x3c131d(0x296)]{constructor(_0xcde9e2,_0x466cb5,_0x1929e1,_0x55a613,_0xc1c624,_0x3a9c72,_0x159a71,_0x93843a){const _0x4c5957=_0x3c131d;super(),_(this,_0x4c5957(0x224),new I[(_0x4c5957(0x301))](u[_0x4c5957(0x30f)][_0x4c5957(0x2c1)])),(this['_docStateChangeManagerService']=_0xcde9e2,this['_collaborationController']=_0x466cb5,this['_docTransformIMECacheService']=_0x1929e1,this[_0x4c5957(0x23c)]=_0x55a613,this['_docTransformSelectionsService']=_0xc1c624,this[_0x4c5957(0x2dc)]=_0x3a9c72,this['_messageService']=_0x159a71,this['_localeService']=_0x93843a,this['_initEntityListener']());}[_0x3c131d(0x173)](){const _0x512cf4=_0x3c131d;this['disposeWithMe'](this[_0x512cf4(0x159)][_0x512cf4(0x2d0)][_0x512cf4(0x330)](_0x3d98a7=>{const _0x26a2b4=_0x512cf4,_0x5d1932=this[_0x26a2b4(0x22d)]['docStateChange$'][_0x26a2b4(0x330)](_0x197383=>{const _0x3ae62c=_0x26a2b4;if(_0x197383==null)return;const {unitId:_0x543f77,redoState:_0x5a1f3c,commandId:_0x25985a}=_0x197383;if(_0x543f77!==_0x3d98a7[_0x3ae62c(0x2f4)])return;const _0x17779b={'id':_0x25985a,'type':a[_0x3ae62c(0x29b)][_0x3ae62c(0xec)],'params':{'unitId':_0x543f77,'actions':_0x5a1f3c[_0x3ae62c(0x360)],'textRanges':null}};_0x3d98a7[_0x3ae62c(0x106)](_0x17779b);});if(_0x3d98a7[_0x26a2b4(0x3a7)](_0x5d1932),_0x3d98a7 instanceof u['DocCollaborationEntity']){const _0xe4251c={'onTransformIME':_0x83e51=>this[_0x26a2b4(0x2b1)][_0x26a2b4(0x208)](_0x83e51),'onTransformState':_0x1b505d=>this[_0x26a2b4(0x23c)][_0x26a2b4(0x121)](_0x1b505d),'onTransformSelections':_0x58ce3e=>this[_0x26a2b4(0x17e)][_0x26a2b4(0x151)](_0x58ce3e),'onSyncEditingCollabCursor':_0x32451f=>this[_0x26a2b4(0x2dc)][_0x26a2b4(0x376)](_0x32451f),'onTransformRemoteChangesetByIMECache':_0x105a16=>this[_0x26a2b4(0x2b1)][_0x26a2b4(0x34f)](_0x105a16),'onTransformRemoteChangesetByStateCache':_0x527467=>this['_docTransformStateCacheService'][_0x26a2b4(0x34f)](_0x527467)};_0x3d98a7[_0x26a2b4(0x2da)](_0xe4251c);}}));}};ie=zt([N(0x0,a[_0x3c131d(0x1fd)](T[_0x3c131d(0x386)])),N(0x1,a[_0x3c131d(0x1fd)](u[_0x3c131d(0x1be)])),N(0x2,a[_0x3c131d(0x1fd)](ee)),N(0x3,a[_0x3c131d(0x1fd)](te)),N(0x4,a[_0x3c131d(0x1fd)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x3c131d(0x115)]),N(0x7,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x29e)]))],ie);var G=(_0x1b5cc9=>(_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x11c)]=0x0]=_0x3c131d(0x11c),_0x1b5cc9[_0x1b5cc9['OK']=0x1]='OK',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x23f)]=0x2]=_0x3c131d(0x23f),_0x1b5cc9[_0x1b5cc9['PERMISSION_DENIED']=0x3]=_0x3c131d(0x1e2),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x273)]=0x4]=_0x3c131d(0x273),_0x1b5cc9[_0x1b5cc9['UNAUTHENTICATED']=0x5]=_0x3c131d(0x342),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1b9)]=0x6]='ALREADY_EXISTS',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2d9)]=0x7]='INVALID_ARGUMENT',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2b2)]=0x8]=_0x3c131d(0x2b2),_0x1b5cc9[_0x1b5cc9['COMPLETION_FINISHED']=0x9]=_0x3c131d(0x226),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x3a9)]=0xa]=_0x3c131d(0x3a9),_0x1b5cc9[_0x1b5cc9['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x3c131d(0x1f9),_0x1b5cc9[_0x1b5cc9['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3c131d(0x1f1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x306)]=0xd]=_0x3c131d(0x306),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x157)]=0xe]=_0x3c131d(0x157),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x387)]=0xf]=_0x3c131d(0x387),_0x1b5cc9[_0x1b5cc9['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x3c131d(0x207),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1b5)]=0x64]=_0x3c131d(0x1b5),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x191)]=0x65]='ERROR_AGAIN',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2a3)]=0xc9]='USER_NOT_FOUND',_0x1b5cc9[_0x1b5cc9['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0xf3)]=0x1389]=_0x3c131d(0xf3),_0x1b5cc9[_0x1b5cc9['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3c131d(0x1bf),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x222)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x265)]=0x1773]=_0x3c131d(0x265),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x302)]=0x1b59]=_0x3c131d(0x302),_0x1b5cc9[_0x1b5cc9['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3c131d(0x20c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x12b)]=0x1b5b]=_0x3c131d(0x12b),_0x1b5cc9[_0x1b5cc9['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3c131d(0x39e),_0x1b5cc9[_0x1b5cc9['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x393)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1bb)]=0x2329]=_0x3c131d(0x1bb),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x254)]=0x232a]=_0x3c131d(0x254),_0x1b5cc9[_0x1b5cc9['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3c131d(0x3a1),_0x1b5cc9[_0x1b5cc9['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3c131d(0x150),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x238)]=0x232d]=_0x3c131d(0x238),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x36c)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1fe)]=0x2712]=_0x3c131d(0x1fe),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x239)]=0x2713]=_0x3c131d(0x239),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1eb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1b5cc9[_0x1b5cc9['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3c131d(0x321),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x398)]=0x271b]=_0x3c131d(0x398),_0x1b5cc9[_0x1b5cc9['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3c131d(0x2d1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x26e)]=0x271d]=_0x3c131d(0x26e),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x124)]=0x271e]=_0x3c131d(0x124),_0x1b5cc9[_0x1b5cc9['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3c131d(0x2f1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x123)]=0x2720]=_0x3c131d(0x123),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x39c)]=0x2af9]=_0x3c131d(0x39c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x325)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0xf5)]=0x2ee2]=_0x3c131d(0xf5),_0x1b5cc9[_0x1b5cc9['INVITE_CODE_REQUIRED']=0x2ee3]=_0x3c131d(0x382),_0x1b5cc9[_0x1b5cc9['USER_NOT_INVITED_CODE']=0x2ee4]=_0x3c131d(0x175),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x220)]=0x2ee5]=_0x3c131d(0x220),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x12d)]=0x32c9]=_0x3c131d(0x12d),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x17c)]=0x32ca]=_0x3c131d(0x17c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x316)]=0x32cb]=_0x3c131d(0x316),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x10a)]=0x36b1]=_0x3c131d(0x10a),_0x1b5cc9[_0x1b5cc9['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1ce)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x1b5cc9[_0x1b5cc9['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x3c131d(0xe2),_0x1b5cc9[_0x1b5cc9['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x3c131d(0x142),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x353)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x18a)]=0x36b7]=_0x3c131d(0x18a),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x138)]=0x36b8]=_0x3c131d(0x138),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x324)]=0x3715]=_0x3c131d(0x324),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1a1)]=0x3716]=_0x3c131d(0x1a1),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x1cb)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x20f)]=0x37dd]=_0x3c131d(0x20f),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x13e)]=0x3a99]=_0x3c131d(0x13e),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x18c)]=0x3a9a]=_0x3c131d(0x18c),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x11e)]=0x3a9b]=_0x3c131d(0x11e),_0x1b5cc9[_0x1b5cc9['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x3c131d(0x2ae),_0x1b5cc9[_0x1b5cc9['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x2a9)]=0x3a9e]=_0x3c131d(0x2a9),_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x36b)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x135)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x1b5cc9[_0x1b5cc9[_0x3c131d(0x31c)]=-0x1]=_0x3c131d(0x31c),_0x1b5cc9))(G||{});function Jt(_0x56f931){const _0x25a20e=_0x3c131d;var _0x591cb7,_0xd1f071;const _0x5b6918=(_0x591cb7=_0x56f931[_0x25a20e(0x17d)])==null?void 0x0:_0x591cb7[_0x25a20e(0x2d6)],_0x13ba3a=((_0xd1f071=_0x56f931[_0x25a20e(0x17d)])==null?void 0x0:_0xd1f071[_0x25a20e(0x154)])||0x0;return _0x5b6918===B['FormulaExecuteStageType'][_0x25a20e(0x215)]&&_0x13ba3a>0x0;}function Zt(_0x213d3b){return _0x213d3b['functionsExecutedState']===B['FormulaExecutedStateType']['SUCCESS'];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x360bc3,_0x463000,_0x35ac52,_0x251f48)=>{const _0x53d852=_0x3c131d;for(var _0x145a9f=_0x251f48>0x1?void 0x0:_0x251f48?Qt(_0x463000,_0x35ac52):_0x463000,_0x1631a8=_0x360bc3[_0x53d852(0x29a)]-0x1,_0x56f503;_0x1631a8>=0x0;_0x1631a8--)(_0x56f503=_0x360bc3[_0x1631a8])&&(_0x145a9f=_0x56f503(_0x145a9f)||_0x145a9f);return _0x145a9f;},L=(_0x7f098e,_0x240e19)=>(_0x4178be,_0x3f4ee8)=>_0x240e19(_0x4178be,_0x3f4ee8,_0x7f098e);const ts=_0x3c131d(0x2a0),ss=_0x3c131d(0x371),is=_0x3c131d(0x2be);let ne=class extends a[_0x3c131d(0x296)]{constructor(_0x537c31,_0x165036,_0x5f1e9c,_0x525bce,_0x37b0ff,_0x35f8c7,_0x36ce7c){const _0x38e654=_0x3c131d;super(),_(this,_0x38e654(0x1ae),null),_(this,_0x38e654(0x13a),0x0),_(this,_0x38e654(0x357),0x0),_(this,'_taskIds',[]),_(this,_0x38e654(0x12f),0x0),(this[_0x38e654(0x109)]=_0x537c31,this[_0x38e654(0x25e)]=_0x165036,this[_0x38e654(0x100)]=_0x5f1e9c,this['_httpService']=_0x525bce,this[_0x38e654(0x24c)]=_0x37b0ff,this[_0x38e654(0x25a)]=_0x35f8c7,this[_0x38e654(0x272)]=_0x36ce7c,this['_initCommandInterceptor']());}[_0x3c131d(0x147)](){const _0x386b7a=_0x3c131d;this['disposeWithMe'](this[_0x386b7a(0x25e)][_0x386b7a(0x290)]((_0x958dd3,_0x23101d)=>{const _0xae5858=_0x386b7a;var _0x2fa407;if(_0x958dd3['id']!==B[_0xae5858(0x2c2)]['id'])return;const _0x217127=_0x958dd3[_0xae5858(0x2b7)];if(!this[_0xae5858(0x365)]((_0x2fa407=_0x217127[_0xae5858(0x1b3)])!=null?_0x2fa407:[]))return;if(!this[_0xae5858(0x171)]())throw this[_0xae5858(0x361)](_0x958dd3,_0x23101d),this[_0xae5858(0x1c2)](),new a[(_0xae5858(0x1d5))]();})),this[_0x386b7a(0x3a7)](this[_0x386b7a(0x25e)][_0x386b7a(0x338)]((_0xfa1df1,_0x40e7c5)=>{const _0x3e9903=_0x386b7a;if(_0xfa1df1['id']!==B[_0x3e9903(0x114)]['id'])return;const _0x515d6c=_0xfa1df1[_0x3e9903(0x2b7)];if(Jt(_0x515d6c)){const _0x43d253=a[_0x3e9903(0x2e4)]();this[_0x3e9903(0x14a)][_0x3e9903(0x2ad)](_0x43d253),this['_startCalculationLimit'](_0x43d253);}else{if(Zt(_0x515d6c)&&this[_0x3e9903(0x14a)][_0x3e9903(0x29a)]>0x0){const _0x38d182=this['_taskIds']['shift']();this[_0x3e9903(0x1f5)](_0x38d182);}}}));}[_0x3c131d(0x2fc)](){const _0x592d3e=_0x3c131d;super[_0x592d3e(0x2fc)](),this['_clearPolling'](),this[_0x592d3e(0x14a)]=[],this[_0x592d3e(0x357)]=0x0,this[_0x592d3e(0x13a)]=0x0,this[_0x592d3e(0x12f)]=0x0;}async[_0x3c131d(0x361)](_0x2f7e32,_0x2d7bd4){const _0x432898=_0x3c131d;for(let _0xc3efcd=0x0;_0xc3efcd<0x1e;_0xc3efcd++)try{if(await this[_0x432898(0x33e)](),this[_0x432898(0x171)]()){this[_0x432898(0x34a)](_0x2f7e32,_0x2d7bd4),this['_messageService'][_0x432898(0x1ff)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':p[_0x432898(0x1da)][_0x432898(0x2c7)]});return;}await new Promise(_0x385c23=>{const _0x2f9eb4=_0x432898;this[_0x2f9eb4(0x1ae)]=window[_0x2f9eb4(0x167)](_0x385c23,0x3e8);});}catch(_0x1e376f){this[_0x432898(0x25a)][_0x432898(0x1aa)](_0x1e376f);}this[_0x432898(0x109)][_0x432898(0x1ff)]({'content':this[_0x432898(0x272)]['t'](_0x432898(0x104)),'type':p[_0x432898(0x1da)][_0x432898(0x2c4)]});}[_0x3c131d(0x34a)](_0x3218c8,_0x1589a1){const _0x83bef=_0x3c131d;try{this['_commandService'][_0x83bef(0x1c9)](_0x3218c8['id'],_0x3218c8[_0x83bef(0x2b7)],_0x1589a1);}catch(_0x4e2fa4){this['_logService']['error'](_0x4e2fa4);}}[_0x3c131d(0x2d3)](_0x2610c0,_0x2040a4){const _0x3391bc=_0x3c131d;_0x2040a4<this[_0x3391bc(0x12f)]||(this['_lastResponseTimestamp']=_0x2040a4,this[_0x3391bc(0x13a)]=Number['parseInt'](_0x2610c0[_0x3391bc(0x293)]),this['_currentUsage']=Number[_0x3391bc(0x379)](_0x2610c0['currentUsage']));}async[_0x3c131d(0x349)](_0x4b8c72){const _0x3020cf=_0x3c131d;var _0x4d0213,_0x3cbe22;const _0x4c278b=Date['now']();try{const _0x3d8914=((_0x4d0213=this[_0x3020cf(0x100)][_0x3020cf(0x39a)](u[_0x3020cf(0x1f4)]))==null?void 0x0:_0x4d0213[_0x3020cf(0x27c)])||ss,_0x101523=(await this[_0x3020cf(0x29c)][_0x3020cf(0x229)](_0x3d8914,{'body':JSON[_0x3020cf(0x2a4)]({'taskId':_0x4b8c72})}))[_0x3020cf(0x1b1)];if(((_0x3cbe22=_0x101523[_0x3020cf(0x1aa)])==null?void 0x0:_0x3cbe22[_0x3020cf(0x2c0)])!==G['OK'])return;this[_0x3020cf(0x2d3)](_0x101523[_0x3020cf(0x218)],_0x4c278b);}catch(_0x1963b1){this[_0x3020cf(0x25a)]['error'](_0x1963b1);}}async[_0x3c131d(0x33e)](_0x12f9f4){const _0x3388a4=_0x3c131d;var _0x3407a6,_0x1d516e;const _0x55d4d5=Date['now']();try{const _0x5df69e=((_0x3407a6=this[_0x3388a4(0x100)][_0x3388a4(0x39a)](u[_0x3388a4(0x1f4)]))==null?void 0x0:_0x3407a6['getformulaLimitStatusUrl'])||ts,_0x598a33=_0x12f9f4?_0x5df69e+'?taskId='+encodeURIComponent(_0x12f9f4):_0x5df69e,_0x53fcca=(await this[_0x3388a4(0x29c)][_0x3388a4(0x20d)](_0x598a33))[_0x3388a4(0x1b1)];if(((_0x1d516e=_0x53fcca[_0x3388a4(0x1aa)])==null?void 0x0:_0x1d516e['code'])!==G['OK'])return;this[_0x3388a4(0x2d3)](_0x53fcca[_0x3388a4(0x218)],_0x55d4d5);}catch(_0x1e128c){this['_logService'][_0x3388a4(0x1aa)](_0x1e128c);}}async['_releaseCalculationLimit'](_0x500116){const _0x15fb37=_0x3c131d;var _0x397982,_0x22f7d5;const _0xfa70d1=Date[_0x15fb37(0xef)]();try{const _0x1cd1f6=((_0x397982=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x397982[_0x15fb37(0x162)])||is,_0x4b4689=(await this[_0x15fb37(0x29c)][_0x15fb37(0x229)](_0x1cd1f6,{'body':JSON[_0x15fb37(0x2a4)]({'taskId':_0x500116})}))[_0x15fb37(0x1b1)];if(((_0x22f7d5=_0x4b4689[_0x15fb37(0x1aa)])==null?void 0x0:_0x22f7d5[_0x15fb37(0x2c0)])!==G['OK'])return;this[_0x15fb37(0x2d3)](_0x4b4689[_0x15fb37(0x218)],_0xfa70d1);}catch(_0x4b7fab){this[_0x15fb37(0x25a)][_0x15fb37(0x1aa)](_0x4b7fab);}}[_0x3c131d(0x171)](){const _0x3f650b=_0x3c131d;return this[_0x3f650b(0x13a)]===0x0?!0x0:this[_0x3f650b(0x13a)]-this[_0x3f650b(0x357)]>0x0;}[_0x3c131d(0x24e)](){const _0x2564b0=_0x3c131d;this[_0x2564b0(0x1ae)]&&(clearTimeout(this[_0x2564b0(0x1ae)]),this[_0x2564b0(0x1ae)]=null);}[_0x3c131d(0x1c2)](){const _0x1f6629=_0x3c131d;this['_messageService']['show']({'content':this[_0x1f6629(0x272)]['t'](_0x1f6629(0x184)),'type':p[_0x1f6629(0x1da)][_0x1f6629(0x180)]});}[_0x3c131d(0x365)](_0x56a01b){const _0x40c067=_0x3c131d;for(const _0xb20061 of _0x56a01b){const {unitId:_0x1b4dba,sheetId:_0x1c4091,range:_0x7512}=_0xb20061,_0x12340d=this['_univerInstanceService']['getUnit'](_0x1b4dba);if(!_0x12340d)continue;const _0x44e566=_0x12340d[_0x40c067(0x277)](_0x1c4091);if(!_0x44e566)continue;const _0x13d7b9=_0x44e566[_0x40c067(0xee)]();for(let _0x4c92c2=_0x7512[_0x40c067(0x1ad)];_0x4c92c2<=_0x7512[_0x40c067(0x1c8)];_0x4c92c2++)for(let _0x2f5a64=_0x7512[_0x40c067(0x177)];_0x2f5a64<=_0x7512[_0x40c067(0x136)];_0x2f5a64++){const _0x2ba9c1=_0x13d7b9[_0x40c067(0x1f6)](_0x4c92c2,_0x2f5a64);if(_0x2ba9c1&&(a[_0x40c067(0x117)](_0x2ba9c1['f'])||a[_0x40c067(0x160)](_0x2ba9c1['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x3c131d(0x1fd)](O['IMessageService'])),L(0x1,a['ICommandService']),L(0x2,a[_0x3c131d(0x322)]),L(0x3,a[_0x3c131d(0x1fd)](x[_0x3c131d(0x37e)])),L(0x4,a[_0x3c131d(0x28c)]),L(0x5,a['ILogService']),L(0x6,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x29e)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x5067d5,_0x520830,_0xb90c00,_0x454189)=>{const _0x3ed299=_0x3c131d;for(var _0x290671=_0x454189>0x1?void 0x0:_0x454189?ns(_0x520830,_0xb90c00):_0x520830,_0x1b4c0e=_0x5067d5[_0x3ed299(0x29a)]-0x1,_0x2c2c56;_0x1b4c0e>=0x0;_0x1b4c0e--)(_0x2c2c56=_0x5067d5[_0x1b4c0e])&&(_0x290671=_0x2c2c56(_0x290671)||_0x290671);return _0x290671;},Se=(_0x397870,_0x9bcb96)=>(_0x5cd9de,_0x1651e8)=>_0x9bcb96(_0x5cd9de,_0x1651e8,_0x397870);let Te=class extends a['Disposable']{constructor(_0x385bd1,_0x425fd9,_0x3dada0){const _0x4cb313=_0x3c131d;super(),_(this,_0x4cb313(0x19f),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x385bd1,this[_0x4cb313(0x2cd)]=_0x425fd9,this[_0x4cb313(0xfb)]=_0x3dada0);}['disableLocalCache'](){const _0x10d5f6=_0x3c131d;this[_0x10d5f6(0x1b2)]=!0x0;}['enableLocalCache'](){const _0x432069=_0x3c131d;this[_0x432069(0x1b2)]=!0x1;}get[_0x3c131d(0x3a2)](){return this['_saveTaskMap'];}[_0x3c131d(0x2fc)](){const _0x5a6044=_0x3c131d;this['exhaustSavingTask']()[_0x5a6044(0x2f2)](()=>super[_0x5a6044(0x2fc)]());}async[_0x3c131d(0x1ef)](_0xe4a96c){const _0x3cfa2a=_0x3c131d;return this['_disabled']?null:this['_localStorageService'][_0x3cfa2a(0x112)](u[_0x3cfa2a(0x347)](_0xe4a96c));}async[_0x3c131d(0x134)](_0x558d60,_0x2c3620){const _0xc73c80=_0x3c131d;return!!this[_0xc73c80(0x2cd)][_0xc73c80(0x37b)](_0x558d60,_0x2c3620);}[_0x3c131d(0x34e)](_0x160b59,_0x251337,_0x293f3c,_0x29168f){const _0x349e58=_0x3c131d,_0x543859=this[_0x349e58(0xfb)]['getCurrentRevOfUnit'](_0x160b59);this[_0x349e58(0x19f)][_0x349e58(0x1dc)](_0x160b59,{'unitID':_0x160b59,'type':_0x251337,'awaitingChangeset':_0x293f3c,'mutations':_0x29168f,'rev':_0x543859}),this['_saveTaskMap'][_0x349e58(0x25f)](_0x160b59)||this['_scheduleSaving'](_0x160b59);}[_0x3c131d(0x38a)](_0x4461d9){const _0x320c5d=_0x3c131d,_0x1c466d=this[_0x320c5d(0x1b6)]();_0x1c466d===0x0?this[_0x320c5d(0x168)](_0x4461d9):this[_0x320c5d(0x22c)][_0x320c5d(0x1dc)](_0x4461d9,setTimeout(()=>this[_0x320c5d(0x168)](_0x4461d9),_0x1c466d));}[_0x3c131d(0x1b6)](){const _0xf396df=_0x3c131d;var _0x59f9f8;return(_0x59f9f8=this[_0xf396df(0x100)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x59f9f8:u[_0xf396df(0xeb)];}[_0x3c131d(0x168)](_0x5494d8){const _0xee9f5c=_0x3c131d,_0x287a2b=this[_0xee9f5c(0x22c)][_0xee9f5c(0x20d)](_0x5494d8);return _0x287a2b!==void 0x0&&window[_0xee9f5c(0x39b)](_0x287a2b),this['_localStorageService'][_0xee9f5c(0x37b)](u['getLocalCacheKey'](_0x5494d8),this[_0xee9f5c(0x19f)]['get'](_0x5494d8))[_0xee9f5c(0x2f2)](()=>this[_0xee9f5c(0x22c)][_0xee9f5c(0x2ea)](_0x5494d8));}async[_0x3c131d(0x38f)](){const _0x516549=_0x3c131d,_0x1984c9=[];this['_saveTaskMap'][_0x516549(0x1df)]((_0x3caa13,_0x2e5701)=>{const _0x3bf906=_0x516549;window[_0x3bf906(0x39b)](_0x3caa13),_0x1984c9[_0x3bf906(0x2ad)](this[_0x3bf906(0x168)](_0x2e5701)['then'](()=>{const _0x2f22dc=_0x3bf906;this['_saveTaskMap'][_0x2f22dc(0x2ea)](_0x2e5701);}));}),await Promise[_0x516549(0x1f2)](_0x1984c9);}};Te=rs([Se(0x0,a[_0x3c131d(0x322)]),Se(0x1,a[_0x3c131d(0x32e)]),Se(0x2,a[_0x3c131d(0x1fd)](g[_0x3c131d(0x217)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x5e5526=_0x3c131d;super(),_(this,_0x5e5526(0x289)),this['urlChange$']=I[_0x5e5526(0x19a)](window,_0x5e5526(0x1ea))[_0x5e5526(0x14f)](I['takeUntil'](this['dispose$']),I[_0x5e5526(0x288)](0x1),I[_0x5e5526(0x131)](void 0x0));}[_0x3c131d(0x313)](_0x3675ca,_0x52e068,_0x23d4e5=!0x1){const _0x25ca63=_0x3c131d,_0x227fee=new URL(window[_0x25ca63(0x197)][_0x25ca63(0x172)]);_0x227fee['searchParams'][_0x25ca63(0x1dc)](_0x3675ca,_0x52e068),_0x23d4e5?window[_0x25ca63(0x240)][_0x25ca63(0x15e)]('','',_0x227fee[_0x25ca63(0x2fd)]()):window[_0x25ca63(0x240)][_0x25ca63(0x1e4)]('','',_0x227fee[_0x25ca63(0x2fd)]());}['removeParam'](_0x507dc4,_0x139fbe=!0x1){const _0x26ac0c=_0x3c131d,_0x23a2a2=new URL(window[_0x26ac0c(0x197)][_0x26ac0c(0x172)]);_0x23a2a2[_0x26ac0c(0x285)]['delete'](_0x507dc4),_0x139fbe?window[_0x26ac0c(0x240)][_0x26ac0c(0x15e)]('','',_0x23a2a2[_0x26ac0c(0x2fd)]()):window['history'][_0x26ac0c(0x1e4)]('','',_0x23a2a2[_0x26ac0c(0x2fd)]());}[_0x3c131d(0x102)](_0x53e693){const _0xe919b9=_0x3c131d;var _0x4b3d5f;return(_0x4b3d5f=new URL(window[_0xe919b9(0x197)][_0xe919b9(0x172)])[_0xe919b9(0x285)][_0xe919b9(0x20d)](_0x53e693))!=null?_0x4b3d5f:void 0x0;}}var os=Object[_0x3c131d(0x287)],as=Object[_0x3c131d(0x196)],cs=(_0x3635bc,_0x4774bc,_0x4299d6)=>_0x4774bc in _0x3635bc?os(_0x3635bc,_0x4774bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4299d6}):_0x3635bc[_0x4774bc]=_0x4299d6,ls=(_0x37fd0e,_0x85fc93,_0x3bb5de,_0x524444)=>{for(var _0x38debd=_0x524444>0x1?void 0x0:_0x524444?as(_0x85fc93,_0x3bb5de):_0x85fc93,_0x16d3df=_0x37fd0e['length']-0x1,_0x452b1f;_0x16d3df>=0x0;_0x16d3df--)(_0x452b1f=_0x37fd0e[_0x16d3df])&&(_0x38debd=_0x452b1f(_0x38debd)||_0x38debd);return _0x38debd;},de=(_0x537057,_0x3e5bc1)=>(_0x4888b1,_0x46cb08)=>_0x3e5bc1(_0x4888b1,_0x46cb08,_0x537057),_s=(_0x9c3707,_0x153804,_0x4b7f00)=>cs(_0x9c3707,_0x153804+'',_0x4b7f00);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3c131d(0x181)]=class extends a[_0x3c131d(0x279)]{constructor(_0x3c1789=Me,_0x387a39,_0x571246,_0x3a926c){const _0x3c729f=_0x3c131d;super(),this[_0x3c729f(0x284)]=_0x3c1789,this['_renderManagerService']=_0x387a39,this[_0x3c729f(0x2ef)]=_0x571246,this[_0x3c729f(0x100)]=_0x3a926c;const {..._0x4f43e2}=a[_0x3c729f(0x345)]({},Me,this[_0x3c729f(0x284)]);this[_0x3c729f(0x100)][_0x3c729f(0x144)](Yt,_0x4f43e2);}[_0x3c131d(0x27b)](){const _0x4a42d3=_0x3c131d;this[_0x4a42d3(0x2b3)](),this[_0x4a42d3(0x22a)]();}[_0x3c131d(0x367)](){const _0x23fbb1=_0x3c131d;this[_0x23fbb1(0xf8)]();}['_registerDependencies'](){const _0x26170d=_0x3c131d;var _0x56c80f;const _0x49b1bf=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x26170d(0x14d)],{'useClass':x['WebSocketService']}],[u[_0x26170d(0x2e2)],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x26170d(0x263)]]];this[_0x26170d(0x284)][_0x26170d(0x291)]&&_0x49b1bf[_0x26170d(0x2ad)]([Q]),a[_0x26170d(0x189)](this[_0x26170d(0x2ef)],a[_0x26170d(0x1d1)](_0x49b1bf,(_0x56c80f=this[_0x26170d(0x284)])==null?void 0x0:_0x56c80f[_0x26170d(0x18e)]));}[_0x3c131d(0xf8)](){const _0x1efcd8=_0x3c131d;this[_0x1efcd8(0x3a7)](this[_0x1efcd8(0x262)][_0x1efcd8(0x33f)](a['UniverInstanceType'][_0x1efcd8(0x1fb)],[Ee])),this['disposeWithMe'](this[_0x1efcd8(0x262)][_0x1efcd8(0x33f)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}['_initDependencies'](){const _0x254ac7=_0x3c131d;a[_0x254ac7(0x10d)](this[_0x254ac7(0x2ef)],[[F],[exports[_0x254ac7(0xe5)]],[ie],[Z],[exports[_0x254ac7(0x263)]],[ne]]),this[_0x254ac7(0x284)]['enableFrontendLog']&&a['touchDependencies'](this[_0x254ac7(0x2ef)],[[Q]]);}},_s(exports[_0x3c131d(0x181)],_0x3c131d(0x195),hs),exports[_0x3c131d(0x181)]=ls([a[_0x3c131d(0x2a1)](u[_0x3c131d(0xe8)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),de(0x3,a[_0x3c131d(0x322)])],exports[_0x3c131d(0x181)]);var us=Object[_0x3c131d(0x196)],Is=(_0x4144e6,_0x1ccedc,_0x20aea1,_0x42fd4a)=>{const _0x4b83b5=_0x3c131d;for(var _0x7c6a6e=_0x42fd4a>0x1?void 0x0:_0x42fd4a?us(_0x1ccedc,_0x20aea1):_0x1ccedc,_0x411b98=_0x4144e6[_0x4b83b5(0x29a)]-0x1,_0x3a2b01;_0x411b98>=0x0;_0x411b98--)(_0x3a2b01=_0x4144e6[_0x411b98])&&(_0x7c6a6e=_0x3a2b01(_0x7c6a6e)||_0x7c6a6e);return _0x7c6a6e;},W=(_0x4f84f9,_0xa2b54)=>(_0x258ae3,_0x5ddb11)=>_0xa2b54(_0x258ae3,_0x5ddb11,_0x4f84f9);exports[_0x3c131d(0x1b4)]=class extends u[_0x3c131d(0x25b)]{constructor(_0x43a9d0,_0x275aa7,_0x2ebbaa,_0x2ec1f2,_0x3bf3b7){super(_0x43a9d0,_0x275aa7,_0x2ebbaa,_0x2ec1f2,_0x3bf3b7);}async[_0x3c131d(0x2c3)](_0x27d6ba){const _0x54e7b6=_0x3c131d,_0x2a0c44=await this[_0x54e7b6(0x219)](),_0x1c790f=this[_0x54e7b6(0x1cc)](_0x27d6ba,_0x2a0c44);return this[_0x54e7b6(0x2bb)](_0x1c790f);}[_0x3c131d(0x1cc)](_0x51b9ea,_0x3cfd68){const _0x35a10a=_0x3c131d,_0x53b4da=typeof window>'u'?new URL(_0x51b9ea):new URL(_0x51b9ea,window['location'][_0x35a10a(0x381)]);_0x53b4da['searchParams'][_0x35a10a(0x1dc)]('sessionTicket',_0x3cfd68);const _0x583ad9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x35a10a(0x197)][_0x35a10a(0x1c4)]);return _0x583ad9[_0x35a10a(0x20d)]('runId')&&_0x53b4da[_0x35a10a(0x285)]['set'](_0x35a10a(0x399),_0x583ad9[_0x35a10a(0x20d)]('runId')),_0x53b4da[_0x35a10a(0x2fd)]();}async['_getSessionTicket'](){const _0xffd887=_0x3c131d;var _0x4f1e88,_0x11ad28,_0x38d948;const _0x199f78=this[_0xffd887(0x100)][_0xffd887(0x39a)](u[_0xffd887(0x1f4)]),_0x5bd68e=(_0x4f1e88=_0x199f78==null?void 0x0:_0x199f78[_0xffd887(0x2eb)])!=null?_0x4f1e88:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x38d948=(_0x11ad28=(await this[_0xffd887(0x29c)][_0xffd887(0x20d)](_0x5bd68e,{'headers':{'Content-Type':_0xffd887(0x227)}}))[_0xffd887(0x1b1)])==null?void 0x0:_0x11ad28['ticket'])!=null?_0x38d948:'';}},exports[_0x3c131d(0x1b4)]=Is([W(0x0,a[_0x3c131d(0x1fd)](a[_0x3c131d(0x146)])),W(0x1,a[_0x3c131d(0x1fd)](x[_0x3c131d(0x37e)])),W(0x2,a[_0x3c131d(0x322)]),W(0x3,a[_0x3c131d(0x2b4)]),W(0x4,g[_0x3c131d(0x27d)])],exports[_0x3c131d(0x1b4)]);var Ss=Object[_0x3c131d(0x196)],ds=(_0x594cd9,_0x4de0fe,_0x5dacd3,_0x280e8d)=>{const _0x3870fe=_0x3c131d;for(var _0x2ed2e2=_0x280e8d>0x1?void 0x0:_0x280e8d?Ss(_0x4de0fe,_0x5dacd3):_0x4de0fe,_0x2fd36a=_0x594cd9[_0x3870fe(0x29a)]-0x1,_0x3ab0bc;_0x2fd36a>=0x0;_0x2fd36a--)(_0x3ab0bc=_0x594cd9[_0x2fd36a])&&(_0x2ed2e2=_0x3ab0bc(_0x2ed2e2)||_0x2ed2e2);return _0x2ed2e2;},fe=(_0x20ca76,_0x5a1019)=>(_0x4f6ddd,_0x21d666)=>_0x5a1019(_0x4f6ddd,_0x21d666,_0x20ca76);exports[_0x3c131d(0x1bc)]=class extends a[_0x3c131d(0x296)]{constructor(_0xf6c248,_0x1df57f,_0x373a66){const _0x34ebbf=_0x3c131d;super(),this[_0x34ebbf(0x113)]=_0xf6c248,this[_0x34ebbf(0x29c)]=_0x1df57f,this[_0x34ebbf(0x100)]=_0x373a66;}async['runOnServer'](_0x419946,_0xb382b4,_0x32475c,..._0x3caee2){const _0x23c4bf=_0x3c131d;var _0x427106,_0x52bb0d,_0x1e0adc,_0x1033d3;const _0x3f852c=this[_0x23c4bf(0x113)][_0x23c4bf(0x15c)]();if(!_0x3f852c)throw new Error(_0x23c4bf(0x368));const _0x6182fa=((_0x427106=this[_0x23c4bf(0x100)][_0x23c4bf(0x39a)](u[_0x23c4bf(0x266)]))!=null?_0x427106:u[_0x23c4bf(0x255)])+'/'+_0x419946+_0x23c4bf(0x119)+_0xb382b4,_0x2b4432=new URL(window[_0x23c4bf(0x197)]['href']),_0x51681b={'scriptId':_0x419946,'runId':(_0x52bb0d=_0x2b4432[_0x23c4bf(0x285)][_0x23c4bf(0x20d)](_0x23c4bf(0x399)))!=null?_0x52bb0d:'','function':_0xb382b4,'unitId':_0x3f852c[_0x23c4bf(0x247)](),'argsOfFunction':JSON['stringify'](_0x3caee2),'invokeId':(_0x1e0adc=_0x32475c[_0x23c4bf(0x392)])!=null?_0x1e0adc:'','executionId':(_0x1033d3=_0x32475c['executionId'])!=null?_0x1033d3:''};try{const _0x39aff3=await this[_0x23c4bf(0x29c)][_0x23c4bf(0x229)](_0x6182fa,{'body':_0x51681b});return _0x39aff3[_0x23c4bf(0x1b1)][_0x23c4bf(0x1aa)]&&_0x39aff3[_0x23c4bf(0x1b1)][_0x23c4bf(0x1aa)][_0x23c4bf(0x2c0)]!==G['OK']?_0x23c4bf(0x19e):_0x39aff3[_0x23c4bf(0x1b1)][_0x23c4bf(0x1a6)];}catch{return _0x23c4bf(0x19e);}}},exports[_0x3c131d(0x1bc)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x3c131d(0x1fd)](x['HTTPService'])),fe(0x2,a['IConfigService'])],exports[_0x3c131d(0x1bc)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x3c131d(0x296)]{constructor(){const _0x1eae6b=_0x3c131d;super(),_(this,_0x1eae6b(0x3a8),a[_0x1eae6b(0x2e4)]()),_(this,_0x1eae6b(0x274),new Set()),_(this,_0x1eae6b(0x246),new Map()),_(this,_0x1eae6b(0x15b),null),_(this,_0x1eae6b(0x2db),new Map()),_(this,'_unitStatus',new Map()),this[_0x1eae6b(0x11a)]();}[_0x3c131d(0x2fc)](){const _0xa38845=_0x3c131d;super[_0xa38845(0x2fc)](),this[_0xa38845(0x2db)][_0xa38845(0x1df)]((_0x2a16af,_0x2ed890)=>this[_0xa38845(0x211)](_0x2ed890)),this[_0xa38845(0x15b)]&&window[_0xa38845(0x363)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x3c798a){const _0x5c935c=_0x3c131d;return this['_ensureSubject'](_0x3c798a)[_0x5c935c(0x14f)](I[_0x5c935c(0x30c)]());}[_0x3c131d(0x193)](_0x54797d){const _0x46b969=_0x3c131d;this['_selfUnitIDs'][_0x46b969(0xf9)]===0x0&&this[_0x46b969(0x394)](),this[_0x46b969(0x274)][_0x46b969(0x1fc)](_0x54797d),this[_0x46b969(0x17b)]({'type':0x0,'memberID':this[_0x46b969(0x3a8)],'unitIDs':[_0x54797d],'isForwarded':!0x1});}[_0x3c131d(0x2a2)](_0x1746f3){const _0x5e8383=_0x3c131d;this[_0x5e8383(0x274)][_0x5e8383(0x2ea)](_0x1746f3),this['_selfUnitIDs'][_0x5e8383(0xf9)]===0x0&&this[_0x5e8383(0x15b)]&&window[_0x5e8383(0x363)](this['_heartbeatTimer']);}[_0x3c131d(0x11a)](){const _0x525d69=_0x3c131d;this[_0x525d69(0x3a7)](a[_0x525d69(0xf4)](I['fromEvent'](window,_0x525d69(0xf2))['subscribe'](_0x440da1=>{const _0x169afc=_0x525d69;if(_0x440da1[_0x169afc(0x26f)]!==ye||!_0x440da1[_0x169afc(0x2b0)])return;const _0x5c7770=JSON[_0x169afc(0x237)](_0x440da1[_0x169afc(0x2b0)]);this[_0x169afc(0x1d3)](_0x5c7770);}))),window['addEventListener'](_0x525d69(0x2ee),()=>this[_0x525d69(0x17b)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x525d69(0x292)](this[_0x525d69(0x274)])}));}[_0x3c131d(0x1d3)](_0x4e1b9c){const _0x25dee7=_0x3c131d;switch(_0x4e1b9c[_0x25dee7(0x24d)]){case 0x0:this['_handleJoinEvent'](_0x4e1b9c);break;case 0x1:this[_0x25dee7(0x2ce)](_0x4e1b9c);break;case 0x2:this[_0x25dee7(0x396)](_0x4e1b9c);break;}}[_0x3c131d(0x1e5)](_0x294f06){const _0x39c96f=_0x3c131d,{unitIDs:_0x42c46c,memberID:_0x907a05,isForwarded:_0x176a22}=_0x294f06;_0x42c46c[_0x39c96f(0x1df)](_0x5346e0=>{const _0x1cd2ac=_0x39c96f;if(!_0x176a22&&this[_0x1cd2ac(0x246)]['has'](_0x5346e0)&&this[_0x1cd2ac(0x1d8)](_0x5346e0)['next'](u[_0x1cd2ac(0x186)][_0x1cd2ac(0x26d)]),!this[_0x1cd2ac(0x246)][_0x1cd2ac(0x25f)](_0x5346e0)||!this[_0x1cd2ac(0x246)]['get'](_0x5346e0)['has'](_0x907a05)){const _0x2cd247=this[_0x1cd2ac(0x246)][_0x1cd2ac(0x20d)](_0x5346e0)||new Set();_0x2cd247[_0x1cd2ac(0x1fc)](_0x907a05),this[_0x1cd2ac(0x246)][_0x1cd2ac(0x1dc)](_0x5346e0,_0x2cd247),this[_0x1cd2ac(0x13d)](_0x907a05);}}),_0x176a22||this['_send']({'type':0x0,'memberID':this[_0x39c96f(0x3a8)],'unitIDs':[...this[_0x39c96f(0x274)]],'isForwarded':!0x0});}[_0x3c131d(0x13d)](_0x4ebf86){const _0x1f3b83=_0x3c131d;this[_0x1f3b83(0x211)](_0x4ebf86);const _0x3f97ee=window[_0x1f3b83(0x167)](()=>{const _0x4f1414=_0x1f3b83;this[_0x4f1414(0x246)]['forEach'](_0x32e3bd=>{const _0x128133=_0x4f1414;_0x32e3bd[_0x128133(0x2ea)](_0x4ebf86);});},we*0x2);this[_0x1f3b83(0x2db)][_0x1f3b83(0x1dc)](_0x4ebf86,_0x3f97ee);}[_0x3c131d(0x211)](_0x3798ab){const _0x1ff0cf=_0x3c131d;if(this['_clearOtherTimers'][_0x1ff0cf(0x25f)](_0x3798ab)){const _0x4734cb=this[_0x1ff0cf(0x2db)][_0x1ff0cf(0x20d)](_0x3798ab);_0x4734cb&&window[_0x1ff0cf(0x39b)](_0x4734cb),this[_0x1ff0cf(0x2db)]['set'](_0x3798ab,null);}}[_0x3c131d(0x2ce)](_0x525ef9){const _0x482cb1=_0x3c131d,{memberID:_0x502ce5,unitIDs:_0x3e80ad}=_0x525ef9;_0x3e80ad[_0x482cb1(0x1df)](_0x38aea6=>{const _0x4d36a3=_0x482cb1;var _0x534c2d;const _0x3fee84=this[_0x4d36a3(0x246)][_0x4d36a3(0x20d)](_0x38aea6);_0x3fee84&&(_0x3fee84['delete'](_0x502ce5),(_0x534c2d=this[_0x4d36a3(0x1d8)](_0x38aea6))==null||_0x534c2d[_0x4d36a3(0x1cf)](_0x3fee84['size']===0x0?u['UnitStatus'][_0x4d36a3(0x343)]:u[_0x4d36a3(0x186)][_0x4d36a3(0x26d)]));}),this[_0x482cb1(0x211)](_0x502ce5);}['_handleHeartbeatEvent'](_0x582834){const _0x3b346a=_0x3c131d;this[_0x3b346a(0x13d)](_0x582834[_0x3b346a(0x1f8)]);}[_0x3c131d(0x17b)](_0x31c09a){const _0x233d57=_0x3c131d;localStorage[_0x233d57(0x37b)](ye,JSON[_0x233d57(0x2a4)](_0x31c09a));}[_0x3c131d(0x394)](){const _0xe84778=_0x3c131d;this['_heartbeatTimer']=window[_0xe84778(0x299)](()=>{const _0x46a4c8=_0xe84778;this[_0x46a4c8(0x17b)]({'type':0x2,'memberID':this['_id']});},we);}['_ensureSubject'](_0x5b3bb4){const _0x514dff=_0x3c131d;return this[_0x514dff(0x214)][_0x514dff(0x25f)](_0x5b3bb4)||this[_0x514dff(0x214)][_0x514dff(0x1dc)](_0x5b3bb4,new I[(_0x514dff(0x301))](u[_0x514dff(0x186)][_0x514dff(0x343)])),this[_0x514dff(0x214)][_0x514dff(0x20d)](_0x5b3bb4);}}exports[_0x3c131d(0x2bd)]=Oe,exports[_0x3c131d(0x125)]=je,exports[_0x3c131d(0x269)]=fs,exports[_0x3c131d(0x18d)]=ke;
|