@univerjs-pro/collaboration-client-ui 0.10.13 → 0.10.14-nightly.202511031023
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/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/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/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/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 +18 -18
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x13f83f=_0x54f0;(function(_0x432999,_0x39e03b){const _0x2ce156=_0x54f0,_0x2d950f=_0x432999();while(!![]){try{const _0x323a7a=parseInt(_0x2ce156(0x2bb))/0x1*(parseInt(_0x2ce156(0x412))/0x2)+-parseInt(_0x2ce156(0x203))/0x3*(-parseInt(_0x2ce156(0x1fc))/0x4)+parseInt(_0x2ce156(0x27e))/0x5+-parseInt(_0x2ce156(0x3f1))/0x6+-parseInt(_0x2ce156(0x3cc))/0x7*(-parseInt(_0x2ce156(0x309))/0x8)+parseInt(_0x2ce156(0x19f))/0x9+-parseInt(_0x2ce156(0x357))/0xa*(parseInt(_0x2ce156(0x2ad))/0xb);if(_0x323a7a===_0x39e03b)break;else _0x2d950f['push'](_0x2d950f['shift']());}catch(_0x5ef04f){_0x2d950f['push'](_0x2d950f['shift']());}}}(_0x298e,0x50d10));var Ve=Object[_0x13f83f(0x3b6)],Ge=(_0x5a9a31,_0x2ced48,_0x214e76)=>_0x2ced48 in _0x5a9a31?Ve(_0x5a9a31,_0x2ced48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x214e76}):_0x5a9a31[_0x2ced48]=_0x214e76,_=(_0x3559eb,_0x2710ad,_0x2ef82e)=>Ge(_0x3559eb,typeof _0x2710ad!=_0x13f83f(0x1d3)?_0x2710ad+'':_0x2710ad,_0x2ef82e);Object['defineProperty'](exports,Symbol[_0x13f83f(0x302)],{'value':_0x13f83f(0x32c)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),p=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x436ab6,..._0x3eb966}){const _0x4b9fe5=_0x13f83f,{icon:_0x5e4607,id:_0xbf8910,className:_0x1e3aab,extend:_0x537775,..._0x4fb5b3}=_0x3eb966,_0xea8e4c=(_0x4b9fe5(0x1bd)+_0xbf8910+'\x20'+(_0x1e3aab||''))[_0x4b9fe5(0x22c)](),_0x5f3c1c=A[_0x4b9fe5(0x3c3)]('_'+Je());return we(_0x5e4607,''+_0xbf8910,{'defIds':_0x5e4607['defIds'],'idSuffix':_0x5f3c1c[_0x4b9fe5(0x282)]},{'ref':_0x436ab6,'className':_0xea8e4c,..._0x4fb5b3},_0x537775);}function we(_0x2c0db0,_0x154530,_0x5087fc,_0xca3953,_0x443f61){const _0x4e109e=_0x13f83f;return A[_0x4e109e(0x22a)](_0x2c0db0[_0x4e109e(0x174)],{'key':_0x154530,...qe(_0x2c0db0,_0x5087fc,_0x443f61),..._0xca3953},(ze(_0x2c0db0,_0x5087fc)[_0x4e109e(0x3ae)]||[])[_0x4e109e(0x2cc)]((_0x25c2f9,_0x226338)=>we(_0x25c2f9,_0x154530+'-'+_0x2c0db0[_0x4e109e(0x174)]+'-'+_0x226338,_0x5087fc,void 0x0,_0x443f61)));}function qe(_0x3be196,_0x2ece4d,_0x2bc6df){const _0x1cb8a1=_0x13f83f,_0x5910a8={..._0x3be196[_0x1cb8a1(0x24b)]};_0x2bc6df!=null&&_0x2bc6df[_0x1cb8a1(0x3c5)]&&_0x5910a8[_0x1cb8a1(0x26c)]===_0x1cb8a1(0x3c5)&&(_0x5910a8[_0x1cb8a1(0x26c)]=_0x2bc6df[_0x1cb8a1(0x3c5)]),_0x3be196[_0x1cb8a1(0x174)]==='mask'&&_0x5910a8['id']&&(_0x5910a8['id']=_0x5910a8['id']+_0x2ece4d['idSuffix']),Object[_0x1cb8a1(0x274)](_0x5910a8)[_0x1cb8a1(0x3f0)](([_0x54849b,_0x2d40b0])=>{const _0x3d9c20=_0x1cb8a1;_0x54849b==='mask'&&typeof _0x2d40b0=='string'&&(_0x5910a8[_0x54849b]=_0x2d40b0[_0x3d9c20(0x35b)](/url\(#(.*)\)/,_0x3d9c20(0x296)+_0x2ece4d[_0x3d9c20(0x36f)]+')'));});const {defIds:_0x58ea47}=_0x2ece4d;return!_0x58ea47||_0x58ea47[_0x1cb8a1(0x2c4)]===0x0||(_0x3be196[_0x1cb8a1(0x174)]===_0x1cb8a1(0x34d)&&_0x5910a8[_0x1cb8a1(0x328)]&&(_0x5910a8[_0x1cb8a1(0x328)]=_0x5910a8['xlink:href']+_0x2ece4d[_0x1cb8a1(0x36f)]),Object[_0x1cb8a1(0x274)](_0x5910a8)[_0x1cb8a1(0x3f0)](([_0x8d40b4,_0x2372b5])=>{const _0x3a9cd0=_0x1cb8a1;typeof _0x2372b5==_0x3a9cd0(0x19a)&&(_0x5910a8[_0x8d40b4]=_0x2372b5[_0x3a9cd0(0x35b)](/url\(#(.*)\)/,_0x3a9cd0(0x296)+_0x2ece4d[_0x3a9cd0(0x36f)]+')'));})),_0x5910a8;}function ze(_0x2ef130,_0x4d1ef4){const _0x12fa2e=_0x13f83f;var _0x56d1eb;const {defIds:_0x290677}=_0x4d1ef4;return!_0x290677||_0x290677[_0x12fa2e(0x2c4)]===0x0?_0x2ef130:_0x2ef130[_0x12fa2e(0x174)]===_0x12fa2e(0x1f3)&&((_0x56d1eb=_0x2ef130[_0x12fa2e(0x3ae)])!=null&&_0x56d1eb[_0x12fa2e(0x2c4)])?{..._0x2ef130,'children':_0x2ef130['children'][_0x12fa2e(0x2cc)](_0x2ad7a1=>typeof _0x2ad7a1[_0x12fa2e(0x24b)]['id']==_0x12fa2e(0x19a)&&_0x290677&&_0x290677[_0x12fa2e(0x2a5)](_0x2ad7a1[_0x12fa2e(0x24b)]['id'])?{..._0x2ad7a1,'attrs':{..._0x2ad7a1['attrs'],'id':_0x2ad7a1['attrs']['id']+_0x4d1ef4[_0x12fa2e(0x36f)]}}:_0x2ad7a1)}:_0x2ef130;}function Je(){const _0x30ecab=_0x13f83f;return Math[_0x30ecab(0x24d)]()[_0x30ecab(0x2a3)](0x24)[_0x30ecab(0x1cc)](0x2,0x8);}Ce[_0x13f83f(0x402)]=_0x13f83f(0x418);const Ze={'tag':'svg','attrs':{'xmlns':_0x13f83f(0x285),'fill':'none','viewBox':_0x13f83f(0x3a7),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x13f83f(0x344)},'children':[{'tag':_0x13f83f(0x32f),'attrs':{'stroke':_0x13f83f(0x17a),'d':_0x13f83f(0x3ea),'strokeLinecap':_0x13f83f(0x32b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x13f83f(0x1f3),'attrs':{},'children':[{'tag':_0x13f83f(0x3cf),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x13f83f(0x1a4),'d':_0x13f83f(0x2f2)}}]}]}],'defIds':[_0x13f83f(0x294)]},ye=A[_0x13f83f(0x1f5)](function(_0x2bdc16,_0x121f2a){const _0x4a7939=_0x13f83f;return A[_0x4a7939(0x22a)](Ce,Object['assign']({},_0x2bdc16,{'id':_0x4a7939(0x350),'ref':_0x121f2a,'icon':Ze}));});ye[_0x13f83f(0x402)]=_0x13f83f(0x2a7);const Qe={'tag':_0x13f83f(0x2c7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x13f83f(0x250),'viewBox':'0\x200\x2017\x2016','width':_0x13f83f(0x3eb),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x13f83f(0x1ea)},'children':[{'tag':_0x13f83f(0x32f),'attrs':{'stroke':_0x13f83f(0x17a),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x13f83f(0x32b),'strokeLinejoin':_0x13f83f(0x32b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x13f83f(0x3cf),'attrs':{'id':_0x13f83f(0x1ce)},'children':[{'tag':_0x13f83f(0x32f),'attrs':{'fill':_0x13f83f(0x1a4),'d':_0x13f83f(0x2f2),'transform':'translate(.97)'}}]}]}],'defIds':[_0x13f83f(0x1ce)]},$e=A[_0x13f83f(0x1f5)](function(_0x141a39,_0x35354b){return A['createElement'](Ce,Object['assign']({},_0x141a39,{'id':'on-line-icon','ref':_0x35354b,'icon':Qe}));});$e[_0x13f83f(0x402)]=_0x13f83f(0x1e8);function et(_0x481287){const _0xa6edac=_0x13f83f;switch(_0x481287){case u[_0xa6edac(0x407)][_0xa6edac(0x3c9)]:return _0xa6edac(0x2e7);case u[_0xa6edac(0x407)][_0xa6edac(0x196)]:return _0xa6edac(0x22d);case u[_0xa6edac(0x407)][_0xa6edac(0x1c3)]:return'collabStatus.fetchMiss';case u[_0xa6edac(0x407)][_0xa6edac(0x213)]:return _0xa6edac(0x2a4);case u[_0xa6edac(0x407)][_0xa6edac(0x27a)]:case u['CollaborationStatus'][_0xa6edac(0x1ab)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0xa6edac(0x30c)]:case u[_0xa6edac(0x407)][_0xa6edac(0x189)]:return _0xa6edac(0x400);}}function tt(_0x454c83){const _0x3fe912=_0x13f83f,{status$:_0x4f455b}=_0x454c83,_0x5ba8af=O[_0x3fe912(0x36c)](_0x4f455b,u['CollaborationStatus'][_0x3fe912(0x213)]),_0x4d5112=O[_0x3fe912(0x406)](a[_0x3fe912(0x37d)]),_0x45dee5=O[_0x3fe912(0x406)](u[_0x3fe912(0x291)]),_0x44939a=_0x5ba8af!==u['CollaborationStatus'][_0x3fe912(0x3c9)],_0x1d24a9=_0x4d5112['t'](et(_0x5ba8af)),_0x31a61a=_0x44939a?M['jsx']($e,{}):M[_0x3fe912(0x1e6)](ye,{}),_0x53fa3f=A[_0x3fe912(0x1a8)](()=>{const _0x24435c=_0x3fe912;_0x44939a||_0x45dee5[_0x24435c(0x1d1)]();},[_0x44939a,_0x45dee5]);function _0x4f5ec3(){const _0xdab757=_0x3fe912;return M[_0xdab757(0x180)](_0xdab757(0x205),{'className':_0xdab757(0x3b3),'onClick':_0x53fa3f,'children':[M['jsx'](_0xdab757(0x205),{'className':T[_0xdab757(0x209)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x44939a,'univer-text-red-500':!_0x44939a}),'children':_0x31a61a}),M[_0xdab757(0x1e6)](_0xdab757(0x205),{'className':_0xdab757(0x2d6),'children':_0x1d24a9})]});}return _0x44939a?_0x4f5ec3():M[_0x3fe912(0x1e6)](T[_0x3fe912(0x37c)],{'title':_0x4d5112['t'](_0x3fe912(0x2da)),'children':_0x4f5ec3()});}var st=Object[_0x13f83f(0x2f9)],it=(_0x4bbdc7,_0x2f2b1e,_0x49ba78,_0x307fb4)=>{const _0x26808=_0x13f83f;for(var _0x1b4708=_0x307fb4>0x1?void 0x0:_0x307fb4?st(_0x2f2b1e,_0x49ba78):_0x2f2b1e,_0x423cbd=_0x4bbdc7[_0x26808(0x2c4)]-0x1,_0x4755bd;_0x423cbd>=0x0;_0x423cbd--)(_0x4755bd=_0x4bbdc7[_0x423cbd])&&(_0x1b4708=_0x4755bd(_0x1b4708)||_0x1b4708);return _0x1b4708;},K=(_0x218bd9,_0x1bf716)=>(_0x7d92b6,_0x33b7d2)=>_0x1bf716(_0x7d92b6,_0x33b7d2,_0x218bd9);exports[_0x13f83f(0x3dc)]=class extends a[_0x13f83f(0x2aa)]{constructor(_0x16dd9f,_0x2a9b1e,_0x43fe47,_0x1657e5){const _0x31affc=_0x13f83f;super(),_(this,_0x31affc(0x346),new I[(_0x31affc(0x342))](u['CollaborationStatus'][_0x31affc(0x213)])),(this[_0x31affc(0x292)]=_0x16dd9f,this[_0x31affc(0x182)]=_0x2a9b1e,this['_collaborationController']=_0x43fe47,this[_0x31affc(0x2c5)]=_0x1657e5,this[_0x31affc(0x40d)](),this[_0x31affc(0x226)]());}[_0x13f83f(0x226)](){const _0x4728ee=_0x13f83f;this[_0x4728ee(0x217)](this['_univerInstanceService']['focused$'][_0x4728ee(0x253)](I[_0x4728ee(0x214)](()=>{const _0xc61e12=_0x4728ee,_0xb4be3=this[_0xc61e12(0x292)]['getFocusedUnit']();return _0xb4be3?this[_0xc61e12(0x2cb)][_0xc61e12(0x3a9)](_0xb4be3[_0xc61e12(0x22e)]()):I['of'](null);}),I['switchMap'](_0x4dab2b=>_0x4dab2b?_0x4dab2b[_0x4728ee(0x178)]:I['of'](u[_0x4728ee(0x407)][_0x4728ee(0x213)])))['subscribe'](_0x3f688d=>{this['_status$']['next'](_0x3f688d);}));}[_0x13f83f(0x40d)](){const _0x50bd28=_0x13f83f;this[_0x50bd28(0x217)](this['_uiPartsService']['registerComponent'](O[_0x50bd28(0x1a6)][_0x50bd28(0x396)],()=>O['connectInjector'](nt({'status$':this[_0x50bd28(0x346)][_0x50bd28(0x1ca)]()}),this[_0x50bd28(0x182)])));}},exports[_0x13f83f(0x3dc)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a['Injector'])),K(0x2,a[_0x13f83f(0x3f5)](u[_0x13f83f(0x413)])),K(0x3,O[_0x13f83f(0x1fb)])],exports[_0x13f83f(0x3dc)]);function nt(_0x1e1a43){const {status$:_0x18938d}=_0x1e1a43;return function(){return M['jsx'](tt,{'status$':_0x18938d});};}const pe=a['createIdentifier'](_0x13f83f(0x3f9));var rt=Object[_0x13f83f(0x2f9)],ot=(_0x5d6218,_0x110212,_0x4ca05c,_0x357bd8)=>{const _0x565666=_0x13f83f;for(var _0x49db42=_0x357bd8>0x1?void 0x0:_0x357bd8?rt(_0x110212,_0x4ca05c):_0x110212,_0x32c3b7=_0x5d6218[_0x565666(0x2c4)]-0x1,_0x38318d;_0x32c3b7>=0x0;_0x32c3b7--)(_0x38318d=_0x5d6218[_0x32c3b7])&&(_0x49db42=_0x38318d(_0x49db42)||_0x49db42);return _0x49db42;},j=(_0x465b30,_0x3d0d04)=>(_0xa153e1,_0x349480)=>_0x3d0d04(_0xa153e1,_0x349480,_0x465b30);exports['CollaborationDataLoaderController']=class extends a[_0x13f83f(0x31f)]{constructor(_0x208636,_0x452eff,_0x517a32,_0x3c03da,_0x499fa5){const _0x297e1a=_0x13f83f;super(),this[_0x297e1a(0x1e5)]=_0x208636,this[_0x297e1a(0x1be)]=_0x452eff,this[_0x297e1a(0x184)]=_0x517a32,this[_0x297e1a(0x1f1)]=_0x3c03da,_0x499fa5?_0x499fa5==null||_0x499fa5[_0x297e1a(0x206)]()['then'](()=>this[_0x297e1a(0x2f4)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]',_0x297e1a(0x3d3)),this[_0x297e1a(0x2f4)]());}async[_0x13f83f(0x2f4)](){const _0x4345f4=_0x13f83f,_0x24987c=this['_urlService'][_0x4345f4(0x171)]('unit'),_0x4e81ea=this[_0x4345f4(0x1e5)][_0x4345f4(0x171)](_0x4345f4(0x3af)),_0x9d49f9=this[_0x4345f4(0x1e5)]['getParam'](_0x4345f4(0x30a));if(!_0x24987c||!_0x4e81ea){this['_logService'][_0x4345f4(0x3e6)](_0x4345f4(0x38f),_0x4345f4(0x3d5));return;}const _0x4403db=await this[_0x4345f4(0x1f1)]['loadUnit'](_0x24987c,Number(_0x4e81ea),_0x9d49f9);_0x4403db&&_0x4403db instanceof a[_0x4345f4(0x3e2)]&&this['_setupSubUnitSync'](_0x4403db);}async[_0x13f83f(0x3bf)](_0x2e23c6){const _0x23240d=_0x13f83f;await this[_0x23240d(0x2e8)](_0x2e23c6),_0x2e23c6[_0x23240d(0x3cb)][_0x23240d(0x253)](I[_0x23240d(0x170)](this[_0x23240d(0x204)]))[_0x23240d(0x2ec)](_0x10d810=>{const _0x48a765=_0x23240d;_0x10d810&&this[_0x48a765(0x3bc)](_0x10d810);}),this[_0x23240d(0x1e5)][_0x23240d(0x277)][_0x23240d(0x253)](I['takeUntil'](this[_0x23240d(0x204)]))[_0x23240d(0x2ec)](()=>this[_0x23240d(0x2e8)](_0x2e23c6));}['_updateURLWithCurrentState'](_0x4b5f84,_0x576709=!0x1){const _0x4a429e=_0x13f83f,_0x53fe70=this[_0x4a429e(0x1e5)][_0x4a429e(0x171)](_0x4a429e(0x30a));_0x4b5f84[_0x4a429e(0x186)]()!==_0x53fe70&&this['_urlService']['setParam'](_0x4a429e(0x30a),_0x4b5f84[_0x4a429e(0x186)](),_0x576709);}async[_0x13f83f(0x2e8)](_0x782eaa){const _0x6cbf20=_0x13f83f;var _0x443b86;const _0x23b6ce=this[_0x6cbf20(0x1e5)][_0x6cbf20(0x171)](_0x6cbf20(0x30a));if(!_0x23b6ce||!_0x782eaa[_0x6cbf20(0x3fd)](_0x23b6ce)){const _0x39c1eb=_0x782eaa[_0x6cbf20(0x33d)]()[0x0],_0x238fd4=_0x782eaa[_0x6cbf20(0x3fd)](_0x39c1eb);if(!_0x238fd4)return;this['_updateURLWithCurrentState'](_0x238fd4,!0x0),await this[_0x6cbf20(0x184)][_0x6cbf20(0x229)](g[_0x6cbf20(0x3bd)]['id'],{'unitId':_0x782eaa[_0x6cbf20(0x22e)](),'subUnitId':_0x39c1eb});return;}((_0x443b86=_0x782eaa[_0x6cbf20(0x1a5)]())==null?void 0x0:_0x443b86[_0x6cbf20(0x186)]())!==_0x23b6ce&&await this['_commandService'][_0x6cbf20(0x229)](g[_0x6cbf20(0x3bd)]['id'],{'unitId':_0x782eaa[_0x6cbf20(0x22e)](),'subUnitId':_0x23b6ce});}},exports[_0x13f83f(0x2d7)]=ot([j(0x0,pe),j(0x1,a['ILogService']),j(0x2,a[_0x13f83f(0x2f1)]),j(0x3,a['Inject'](u['DataLoaderService'])),j(0x4,a[_0x13f83f(0x1de)](Xe['IRemoteInstanceService']))],exports[_0x13f83f(0x2d7)]);function _0x298e(){const _0x16fe61=['beginPath','redoState','fromEvent','_drawAnchor','color','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CollaborationDataLoaderController','YUUMI_RATE_OVER_LIMIT','INVALID_ARGUMENT','collab-client.tooltip.reconnect','getRelativeToViewportCoord','selection','_memberService','clearInterval','contains','FormulaExecuteStageType','SessionStatus','stringify','saveTaskMap','pluginName','NodePositionConvertToRectRange','_checkCalculationAvailable','collabStatus.offline','_updateSubUnitFromURLParams','SheetsSelectionsService','PAYMENT_CHANNEL_NOT_SUPPORT','ThemeService','subscribe','_hover','_collabCursorState$','_clearOtherTimers','currentSkeleton$','ICommandService','M0\x200H16V16H0z','COMPLETION_FINISHED','_init','_lastPointer','onPointerMove$','transformMutation','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getOwnPropertyDescriptor','formula.calculation.started','mapTo','get','EMAIL_HAS_BEEN_BOUND','getRangePointData','_collaborationUIEventService','REDEMPTION_CODE_INACTIVE','m2Prime','toStringTag','onPointerLeave$','ERROR_AGAIN','black','INVITE_CODE_REQUIRED','clearTimeout','font','6056VriNOM','subunit','createInstance','SYNCED','YUUMI_ASYNCIO_CANCELLED','_syncEditingCollabCursorService','IConfigService','/universer-api/license/formula/limit/status','push','isTransformMutationFailure','setStateCache','params','newValue','yellow.400','error','ONLINE','application/json','IURLService','post','ILogService','getCurrent','JOIN_ROOM_FAILED','RxDisposable','_onCursorUpdate','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_toggleOffline','LICENSE_DISTRO_REJECTED','transformStateCache','ITransformService','Error','roomMembers','xlink:href','DOC_RANGE_TYPE','unsubscribe','round','Module','REDEMPTION_INVALID_CODE','_eventUnsubscribe','path','storage','memberID','DependentOn','complete','START_CALCULATION','width','with','_localCacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','isFormulaString','subscribeEvent','ALREADY_EXISTS','arc','getUnhiddenWorksheets','triggerDblclick','_collabSessionService','getCurrentRevOfUnit','DocIMEInputManagerService','BehaviorSubject','_backgroundColor','url(#off-line-icon_clip0_910_343)','_disabled','_status$','YUUMI_NO_CUBOID_FOR_QUESTION','BrowserCollaborationSocketService','permission.content','Shape','_transformHistoryAndStateStack','deepClone','use','_toggleOnline','FormulaExecutedStateType','off-line-icon','_scene','getAncestorScale','getMergeData','_context','_range','CanceledError','14959080CoKRRv','undoState','DocSkeletonManagerService','addHandlerCallback','replace','_transformUndoRedoStack','TRANSFORM_CHANGE_OBSERVABLE_TYPE','max','SUCCESS','_unitStatus','doc.mutation.rich-text-editing','delete','IDocClipboardService','ENTITLE_CHAT_LIMIT_EXCEED','toDisposable','_startDocCollabCursor','from','RemoveRowCommandId','RevisionService','unitId','next','useObservable','NOT_FOUND','TEXT_RANGE_LAYER_INDEX','idSuffix','APPLY_PERMISSION_DENIED','_setFormulaLimitStatus','TEXT','APPLY_REJECT','INotificationService','result','_hasFormulaInDirtyRanges','isActive','fillRule','_scheduleClearOtherTimer','_initDependencies','collab-rect-range-','Tooltip','LocaleService','then','saveImage','ENTITLE_DUP_SUBSCRIPTION','_instanceService','CollaborationSocketService','SNAPSHOT_HAS_BEEN_REMOVED','InsertRangeMoveRightCommandId','unitID','filter','handleDeleteRangeMoveLeft','_setupBeforeClosingHandler','fillText','flatMap','onLocalMutation','getViewport','assignAColorForMemberID','all','[CollaborationDataLoaderController]','name','cursorInfo','_docSkeletonManagerService','CollaborationUIEventService','_scheduleHeartbeat','disableLocalCache','HEADER_MENU','removeParam','permission.title','serializeRangeWithSheet','getUndoRedoMutationParamsCache','exhaustSavingTask','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getRenderById','getUnitStatus$','startColumn','distinctUntilChanged','split','_getScale','WebURLService','COLORS','REDEMPTION_CODE_HAS_BEEN_CREATED','session.collaboration-timeout','0\x200\x2016\x2016','_imageIoService','getCollabEntity$','touchDependencies','registerRenderModule','onMouseMove','_anchorDot','children','type','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','selections','_showGuardMessage','univer-flex\x20univer-items-center','imageSourceType','size','defineProperty','session.will-retry','SetFormulaCalculationNotificationMutation','_httpService','REDEMPTION_USER_NOT_ELIGIBLE','getformulaLimitStatusUrl','_updateURLWithCurrentState','SetWorksheetActivateCommand','SheetCollabCursorShape','_setupSubUnitSync','getCurrentSelections','VIEW_MAIN','getCollabCursors$','useRef','some','colorChannel1','collabCursorState$','APPLY_REVISION_CONFILICT','UPDATE_CURSOR','OFFLINE','INTERNAL_ERROR','activeSheet$','5873JYnZuP','_cursorShapes','addObjects','clipPath','[RemoteUniscriptService]:\x20no\x20focused\x20unit','INVITE_CODE_HAS_BEEN_UES','_getMergeRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','text','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MOBILE_VERIFY_CODE_MISMATCH','onCommandExecuted','onTransformChange$','ACTIVE_UNIT_EVENT_CHANNEL','_drawTextRange','docStateChange$','DesktopCollaborationStatusDisplayController','entityInit$','APPLY_DUPLICATED','/universer-api/license/formula/limit/done','_createSocketURL','_cursorInfo$','Workbook','ranges','Unknown\x20user','RECT','debug','_saveTaskMap','_registerDependencies','YUUMI_UNABLE_LOAD_URL','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','1em','setTimeout','_refRangeService','Success','origin','forEach','3962358kZNywu','UniverInstanceType','_hideTimer','handleDeleteRangeMoveUp','Inject','_registerRenderDependencies','key','_removeCollabCursors','uni.network.url-service','?taskId=','_cachedData','DEFAULT_WS_SESSION_TICKET_URL','getSheetBySheetId','sheetID','isFormulaId','collabStatus.synced','handleInsertRangeMoveDown','displayName','setActiveRange','parseInt','_initEntityListener','useDependency','CollaborationStatus','MemberService','_themeService','stageInfo','_entityInit$','getDocRanges','_initStatusComponent','CURRENT_STATUS_CANNOT_OPERATE','min','limitInfo','getColorFromTheme','1119666qzdnTG','CollaborationController','disposeUnit','PY_RUNTIME_SCRIPT_ERROR','_session','setInterval','UniverIcon','endColumn','USER_IS_ANONYMOUS','LOCAL_CACHE_INTERVAL_KEY','row','_configService','Vector2','_name','OTHER_CLIENTS_EDITING','getUniverSheetInstance','getLocalCacheKey','_getFormulaLimitStatus','data','registerRefRange','_assignedColors','setItem','takeUntil','getParam','Warning','CLOSE_ROOM','tag','moveTo','ILocalCacheService','_docStateChangeManagerService','status$','_roomMembers$','currentColor','_updateLocalCursor','UniverCollaborationClientUIPlugin','labelPosition','IUniverInstanceService','session.connection-failed','jsxs','getMemberID','_injector','unload','_commandService','sessionTicket','getSheetId','now','DocSelectionManagerService','PENDING','_unitOnClients','SNAPSHOT_INVALID_SNAPSHOT','RichTextEditingMutation','_cursor','CollaborationUIEventId','collaboration.single-unit.warning','_shapes','USER_NOT_FOUND','transform','shift','_startSheetCollabCursor','_onCursorDelete','CONFLICT','addObject','startRow','show','string','_messageService','DeleteRangeMoveLeftCommandId','runOnServer','purple.300','4834404YlGpHO','CommandType','IImageIoService','blue.400','_pollingInterval','white','getActiveSheet','BuiltInUIPart','DocCollaborationEntity','useCallback','RemoteUniscriptService','_hovered','AWAITING_WITH_PENDING','merge','getTypeOfUnitDisposed$','_docTransformSelectionsService','debounce','_render','_initEvent','_handleHover','makeDirty','_collabCursorController','IRenderManagerService','cursorInfo$','RefRangeService','mergeOverrideWithDependencies','_lastResponseTimestamp','getActiveRange','_removeClearOtherTimer','m1Prime','univerjs-icon\x20univerjs-icon-','_logService','Failed','setConfig','currentTheme$','_getSheetObject','FETCH_MISS','_applyCommand','getFocusedUnit','handleInsertRow','_doCreateSocket','isEditing','getCellMatrix','asObservable','setAlpha','substring','_notificationService','on-line-icon_clip0_910_349','REDEMPTION_CODE_FULLY_REDEEMED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','reconnect','getMember','symbol','unshift','_colorIndex','invokeId','onPointerEnter$','collab-text-range-','getTypeOfUnitAdded$','_anchor','lineTo','_initCommandInterceptor','replaceState','Optional','getStateCache','INVALID_INVITE_CODE','RemoveColCommandId','RegularPolygon','href','registerBeforeClose','_urlService','jsx','add','OnLineIcon','addClipboardHook','url(#on-line-icon_clip0_910_349)','IMessageService','_document','rgba(255,\x20255,\x20255,\x200.01)','EffectRefRangId','_saveCache','_transformPreviousActiveRange','_dataLoaderService','MOBILE_HAS_BEEN_BOUND','defs','functionsExecutedState','forwardRef','TOO_MANY_REQUESTS','findNodePositionByCharIndex','evenodd','enableLocalCache','_handleLeaveEvent','IUIPartsService','4siErNS','UnitStatus','fillStyle','getUnit','combineLatest','searchParams','SOCKET_FAILED_RETRY','1948743aEDUSy','dispose$','div','whenReady','setShapeProps','dispose','clsx','eventID','set','ColorKit','handleMoveRange','_online','AUTHORIZE_CODE_ILLEGAL','_heartbeatTimer','Rect','_maxFormulaLimit','NOT_COLLAB','switchMap','WECHAT_HAS_BEEN_BOUND','...','disposeWithMe','UNAUTHENTICATED','_drawRectRange','EMAIL_VERIFY_CODE_MISMATCH','_refreshCollabCursors','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_getSessionTicket','Injector','transformRemoteChangeset','setParam','getColor','history','fromEventSubject','UNIVER_SHEET','ISocketService','_initStatusListener','SetDocZoomRatioOperation','_id','executeCommand','createElement','measureText','trim','collabStatus.conflict','getUnitId','setUndoRedoMutationParamsCache','sheetId','_docTransformStateCacheService','SOCKET_FAILED','APPLY_NON_SEQUENTIAL_REVISION','mutations','_updateCollabCursors','YUUMI_ALL_TABLES_IS_INVALID','generateRandomId','event$','body','_releaseCalculationLimit','_taskIds','_transformService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_sheetSkeletonManagerService','CollaborationEvent','DeleteRangeMoveUpCommandId','onStarting','_draw','registerDependencies','/universer-api/license/formula/limit/start','_localeService','createSocket','_scheduleSaving','_renderManagerService','UNRECOGNIZED','hide','attrs','throttleTime','random','_beforeCloseService','_clearPolling','none','InsertRowCommandId','_entities','pipe','_onRefRangeChange','_initResize','_labelPosition','init','wsSessionTicketUrl','code','values','handleIRemoveRow','location','_cursors','getOffsetConfig','_getSaveTimeout','Tools','_color','_docTransformIMECacheService','OTHER_CLIENT_EDITING','LICENSE_IMPORT_SIZE_EXCEEDED','_handleEvent','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NO_OTHER_CLIENTS_EDITING','_selfUnitIDs','replaceDocRanges','DocStateChangeManagerService','runId','fill','syncEditingCollabCursor','getValue','_send','collaboration.closeRoom','startFormulaLimitUrl','YUUMI_SUBSCRIPTION_NOT_FOUND','debounceTime','entries','SetFormulaCalculationStartMutation','toRgbString','urlChange$','LICENSE_MAX_UNITS_EXCEEDED','has','AWAITING','_ensureSubject','beforeCommandExecuted','find','528160BKkpeB','FromArray','getCoordByCell','PERMISSION_DENIED','current','INVITE_CODE_ALREADY_BOUND','_handleHeartbeatEvent','http://www.w3.org/2000/svg','UNDEFINED','isArray','InsertColCommandId','_docClipboardService','send','_localStorageService','endRow','handleIRemoveCol','getVpScrollXYInfoByPosToVp','ENSURE_SNAPSHOT_EXECUTION','_revisionService','CollaborationSessionService','_univerInstanceService','drawWith','off-line-icon_clip0_910_343','currentUsage','url(#$1','height','saveOfflineData','YUUMI_CONNECTOR_URL_NOT_FOUND','textRanges','hovered','UNIVER_DOC','_initCommandExecutedListener','ISnapshotServerService','LOGIN_FAILED','_textBubble','HTTPService','runRefRangeMutations','toString','collabStatus.notCollab','includes','column','OffLineIcon','_checkAndWaitForCalculationPermission','getSheetObject','Disposable','closePath','SUBMIT_CHANGESET_TIMEOUT','11SuUArK','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','restore','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','USER_NOT_INVITED_CODE','transformIMECache','YUUMI_URL_COL_OUT_OF_RANGE','getConfig','save','startsWith','pushState','MessageType','REDEMPTION_CODE_NOT_STARTED','1SmQutx','InsertRangeMoveDownCommandId','getItem','loadOfflineData','_getAnchorBounding','requireSession','_colorAssignService','transformSelections','handleInsertRangeMoveRight','length','_uiPartsService','totalFormulasToCalculate','svg','DisposableCollection','sessionStatus$','_currentUsage','_collaborationController','map','shareReplay','MoveRangeCommandId','ticket','_config'];_0x298e=function(){return _0x16fe61;};return _0x298e();}var at=Object['getOwnPropertyDescriptor'],ct=(_0x33c9d1,_0x11fc12,_0x4310f0,_0x5e4fc7)=>{const _0x49d93b=_0x13f83f;for(var _0x5274e5=_0x5e4fc7>0x1?void 0x0:_0x5e4fc7?at(_0x11fc12,_0x4310f0):_0x11fc12,_0x1ff23b=_0x33c9d1[_0x49d93b(0x2c4)]-0x1,_0x462e40;_0x1ff23b>=0x0;_0x1ff23b--)(_0x462e40=_0x33c9d1[_0x1ff23b])&&(_0x5274e5=_0x462e40(_0x5274e5)||_0x5274e5);return _0x5274e5;},Re=(_0x2b55ab,_0x2d718e)=>(_0x3398d0,_0x3165be)=>_0x2d718e(_0x3398d0,_0x3165be,_0x2b55ab);let de=class extends a[_0x13f83f(0x31f)]{constructor(_0x58cc07,_0x5a418f){const _0x5e9351=_0x13f83f;super(),this[_0x5e9351(0x289)]=_0x58cc07,this[_0x5e9351(0x3a8)]=_0x5a418f,this['_init']();}[_0x13f83f(0x2f4)](){const _0x18d3ce=_0x13f83f,_0x3bdd88=this;this[_0x18d3ce(0x217)](this[_0x18d3ce(0x289)][_0x18d3ce(0x1e9)]({'onBeforePasteImage':async _0x336161=>{const _0x4559af=_0x18d3ce,_0x12fd05=await _0x3bdd88[_0x4559af(0x3a8)][_0x4559af(0x37f)](_0x336161);return _0x12fd05?{'source':_0x12fd05['source'],'imageSourceType':_0x12fd05[_0x4559af(0x3b4)]}:null;}}));}};de=ct([Re(0x0,p[_0x13f83f(0x363)]),Re(0x1,Ke[_0x13f83f(0x1a1)])],de);const be=[_0x13f83f(0x19e),'jiqing.500','green.600','red.300',_0x13f83f(0x1a2),_0x13f83f(0x316)];class Te extends a[_0x13f83f(0x2aa)]{constructor(){const _0x21028a=_0x13f83f;super(...arguments),_(this,_0x21028a(0x16e),new Map()),_(this,_0x21028a(0x1d5),0x0);}['assignAColorForMemberID'](_0x2808ff){const _0x2806ce=_0x13f83f;if(this[_0x2806ce(0x16e)][_0x2806ce(0x279)](_0x2808ff))return this[_0x2806ce(0x16e)][_0x2806ce(0x2fc)](_0x2808ff);const _0x3ade11=be[this[_0x2806ce(0x1d5)]];return this['_colorIndex']=(this[_0x2806ce(0x1d5)]+0x1)%be['length'],this[_0x2806ce(0x16e)][_0x2806ce(0x20b)](_0x2808ff,_0x3ade11),_0x3ade11;}}function xe(_0x1e8c4f){const _0x7c8819=_0x13f83f;let _0x133446='';for(const _0x19ce21 of _0x1e8c4f){const {startOffset:_0x3f2ee5,endOffset:_0x5f080c,isActive:_0x4b688f,rangeType:_0x1e9fc3,segmentId:_0x3a8ca8,segmentPage:_0x3227ef}=_0x19ce21;_0x133446[_0x7c8819(0x2c4)]&&(_0x133446+=','),_0x133446+=_0x3f2ee5+':'+_0x5f080c+':'+(_0x4b688f?'1':'0')+':'+_0x1e9fc3+':'+_0x3a8ca8+':'+_0x3227ef;}return _0x133446;}function lt(_0x419961){const _0x15a58b=_0x13f83f,_0x506b9=_0x419961['split'](','),_0x2be4f4=[];for(const _0x3995f5 of _0x506b9){const [_0x248668,_0x22a13c,_0x4c1d93,_0x18c989,_0x1227f3,_0x2c363e]=_0x3995f5[_0x15a58b(0x3a1)](':');_0x2be4f4[_0x15a58b(0x311)]({'startOffset':Number(_0x248668),'endOffset':Number(_0x22a13c),'collapsed':_0x248668===_0x22a13c,'isActive':_0x4c1d93==='1','rangeType':_0x18c989===a[_0x15a58b(0x329)][_0x15a58b(0x372)]?a[_0x15a58b(0x329)][_0x15a58b(0x372)]:a[_0x15a58b(0x329)][_0x15a58b(0x3e5)],'segmentId':typeof _0x1227f3=='string'?String(_0x1227f3):'','segmentPage':Number(_0x2c363e!=null?_0x2c363e:-0x1)});}return _0x2be4f4[_0x15a58b(0x3c4)](_0x16f816=>_0x16f816[_0x15a58b(0x377)])||(_0x2be4f4[0x0]['isActive']=!0x0),_0x2be4f4;}class Oe extends a[_0x13f83f(0x31f)]{constructor(){const _0x4c39ad=_0x13f83f;super(...arguments),_(this,_0x4c39ad(0x2ee),new I[(_0x4c39ad(0x342))](null)),_(this,_0x4c39ad(0x3c6),this[_0x4c39ad(0x2ee)][_0x4c39ad(0x1ca)]());}['syncEditingCollabCursor'](_0x34669b){const _0x8b4404=_0x13f83f,{unitID:_0x5ab8db,memberID:_0x4d50de,textRanges:_0x40d8e9}=_0x34669b,_0x53682a=xe(_0x40d8e9);if(_0x53682a==='')return;const _0x36c8b6={'unitID':_0x5ab8db,'memberID':_0x4d50de,'selection':_0x53682a};this[_0x8b4404(0x2ee)][_0x8b4404(0x36b)](_0x36c8b6);}}var _t=Object[_0x13f83f(0x2f9)],ht=(_0x46edf7,_0xe369b8,_0x3e7218,_0x2c41d3)=>{for(var _0x5151a4=_0x2c41d3>0x1?void 0x0:_0x2c41d3?_t(_0xe369b8,_0x3e7218):_0xe369b8,_0x71ce6f=_0x46edf7['length']-0x1,_0x355398;_0x71ce6f>=0x0;_0x71ce6f--)(_0x355398=_0x46edf7[_0x71ce6f])&&(_0x5151a4=_0x355398(_0x5151a4)||_0x5151a4);return _0x5151a4;},U=(_0x52ec27,_0x28a70d)=>(_0x2bc0a2,_0x503124)=>_0x28a70d(_0x2bc0a2,_0x503124,_0x52ec27);const ut=0x12c,It=0x64;let fe=class extends a[_0x13f83f(0x31f)]{constructor(_0x29a2ea,_0x280f8d,_0x47b007,_0x32c8a6,_0x5eb599,_0x4a258e,_0xc81e78,_0x5bc550,_0x774f36){const _0x57431f=_0x13f83f;super(),_(this,_0x57431f(0x20e),!0x1),_(this,_0x57431f(0x2f4),!0x1),_(this,_0x57431f(0x3e1),new I[(_0x57431f(0x342))](new Map())),_(this,_0x57431f(0x1b6),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new I[(_0x57431f(0x342))]([])),_(this,'roomMembers$',this[_0x57431f(0x179)]['pipe'](I[_0x57431f(0x273)](ut))),_(this,_0x57431f(0x17b),a[_0x57431f(0x1af)](_0x9e287c=>{const _0xe91333=_0x57431f,_0x3a097d={'eventID':v[_0xe91333(0x23f)][_0xe91333(0x3c8)],'data':{'unitID':this[_0xe91333(0x385)],'memberID':this[_0xe91333(0x416)][_0xe91333(0x181)](),'selection':xe(_0x9e287c)}};this[_0xe91333(0x416)][_0xe91333(0x28a)](_0x3a097d,this[_0xe91333(0x385)]);},It)),(this[_0x57431f(0x385)]=_0x29a2ea,this[_0x57431f(0x416)]=_0x280f8d,this[_0x57431f(0x182)]=_0x47b007,this[_0x57431f(0x2c1)]=_0x32c8a6,this[_0x57431f(0x2dd)]=_0x5eb599,this[_0x57431f(0x30e)]=_0x4a258e,this[_0x57431f(0x23c)]=_0xc81e78,this[_0x57431f(0x292)]=_0x5bc550,this['_commandService']=_0x774f36);}get[_0x13f83f(0x391)](){const _0x1b7ac1=_0x13f83f;return this[_0x1b7ac1(0x3e1)][_0x1b7ac1(0x26e)]();}get[_0x13f83f(0x327)](){const _0x558380=_0x13f83f;return this[_0x558380(0x179)][_0x558380(0x26e)]();}['dispose'](){const _0x2479bb=_0x13f83f;super[_0x2479bb(0x208)](),this[_0x2479bb(0x3e1)][_0x2479bb(0x36b)](new Map()),this[_0x2479bb(0x3e1)][_0x2479bb(0x333)](),this['_roomMembers$'][_0x2479bb(0x36b)]([]),this[_0x2479bb(0x179)]['complete']();}[_0x13f83f(0x257)](){const _0x3425d3=_0x13f83f;this[_0x3425d3(0x2f4)]||(this[_0x3425d3(0x2f4)]=!0x0,this[_0x3425d3(0x416)][_0x3425d3(0x2c9)]['pipe'](I[_0x3425d3(0x170)](this[_0x3425d3(0x204)]))[_0x3425d3(0x2ec)](_0x37146c=>{const _0x146b43=_0x3425d3;_0x37146c===u[_0x146b43(0x2e1)][_0x146b43(0x318)]?this[_0x146b43(0x34e)]():this['_toggleOffline']();}),this[_0x3425d3(0x416)]['event$'][_0x3425d3(0x253)](I[_0x3425d3(0x170)](this[_0x3425d3(0x204)]))[_0x3425d3(0x2ec)](_0x79fd41=>{const _0x1ec1d7=_0x3425d3,_0x59e854=_0x79fd41['eventID'];_0x59e854===v[_0x1ec1d7(0x23f)][_0x1ec1d7(0x3c8)]&&this[_0x1ec1d7(0x320)](_0x79fd41),_0x59e854===v[_0x1ec1d7(0x23f)]['USERS_LEAVE']&&this[_0x1ec1d7(0x195)](_0x79fd41);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x500df1=>{const _0x9f2ae2=_0x3425d3,_0xc2c2a3=_0x500df1[_0x9f2ae2(0x314)];_0xc2c2a3!=null&&this['_online']&&_0x500df1['id']===W['SetTextSelectionsOperation']['id']&&_0xc2c2a3[_0x9f2ae2(0x36a)]===this[_0x9f2ae2(0x385)]&&_0xc2c2a3[_0x9f2ae2(0x1c8)]===!0x1&&_0xc2c2a3['ranges'][_0x9f2ae2(0x2c4)]>0x0&&this[_0x9f2ae2(0x17b)](_0xc2c2a3[_0x9f2ae2(0x3e3)]);})),this[_0x3425d3(0x30e)]['collabCursorState$'][_0x3425d3(0x253)](I[_0x3425d3(0x170)](this[_0x3425d3(0x204)]))[_0x3425d3(0x2ec)](_0x16aa7d=>{const _0xa71e36=_0x3425d3;if((_0x16aa7d==null?void 0x0:_0x16aa7d[_0xa71e36(0x385)])!==this[_0xa71e36(0x385)])return;const _0x1d3ab4={'eventID':v[_0xa71e36(0x23f)][_0xa71e36(0x3c8)],'data':_0x16aa7d};this[_0xa71e36(0x320)](_0x1d3ab4);}),this[_0x3425d3(0x217)](this[_0x3425d3(0x184)]['onCommandExecuted'](_0x4bf0dc=>{const _0x30bbcc=_0x3425d3;if(_0x4bf0dc[_0x30bbcc(0x314)]==null)return;const _0x524c8f=_0x4bf0dc[_0x30bbcc(0x314)];if(_0x4bf0dc['id']!==W[_0x30bbcc(0x18c)]['id']||_0x524c8f['unitId']!==this[_0x30bbcc(0x385)])return;const _0x4bbc91={'id':_0x30bbcc(0x361),'params':_0x524c8f},_0x1f069f=this[_0x30bbcc(0x391)];for(const [_0x58532e,_0x4b86a8]of _0x1f069f){const _0x3650d6={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x30bbcc(0x385)],'actions':null,'textRanges':_0x4b86a8[_0x30bbcc(0x3e3)]}},_0x68492=this[_0x30bbcc(0x23c)][_0x30bbcc(0x2f7)](_0x4bbc91,_0x3650d6,!0x1);if(v['isTransformMutationFailure'](_0x68492))throw _0x68492['error'];_0x1f069f['set'](_0x58532e,{..._0x4b86a8,'ranges':_0x68492['m2Prime'][_0x30bbcc(0x314)][_0x30bbcc(0x29a)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x1f069f);});})));}['_onCursorUpdate'](_0x189db4){const _0x5baa73=_0x13f83f;var _0x23ff8f,_0x44dc69;const {memberID:_0x135d80,selection:_0x17bcd7}=_0x189db4[_0x5baa73(0x16c)],_0x37d07d=lt(_0x17bcd7),_0x342521=(_0x44dc69=(_0x23ff8f=this[_0x5baa73(0x2dd)][_0x5baa73(0x1d2)](this[_0x5baa73(0x385)],_0x135d80))==null?void 0x0:_0x23ff8f[_0x5baa73(0x390)])!=null?_0x44dc69:_0x5baa73(0x3e4),_0x3a54f8={'color':this['_colorAssignService'][_0x5baa73(0x38d)](_0x135d80),'name':_0x342521,'ranges':_0x37d07d},_0x3b7815=this[_0x5baa73(0x391)];_0x3b7815['set'](_0x135d80,_0x3a54f8),this['_cursorInfo$'][_0x5baa73(0x36b)](_0x3b7815);}[_0x13f83f(0x195)](_0x3002bd){const _0x486b83=_0x13f83f,{memberID:_0x332536}=_0x3002bd[_0x486b83(0x16c)],_0x47ff3e=this['cursorInfo'];_0x47ff3e[_0x486b83(0x362)](_0x332536),this[_0x486b83(0x3e1)]['next'](_0x47ff3e);}[_0x13f83f(0x34e)](){const _0x3229e1=_0x13f83f;var _0x467d39;if(this[_0x3229e1(0x20e)]=!0x0,((_0x467d39=this[_0x3229e1(0x292)][_0x3229e1(0x1c5)]())==null?void 0x0:_0x467d39['getUnitId']())!==this[_0x3229e1(0x385)])return;const _0x32d1cc=this[_0x3229e1(0x182)]['get'](W[_0x3229e1(0x188)])['getDocRanges']();Array['isArray'](_0x32d1cc)&&_0x32d1cc[_0x3229e1(0x2c4)]>0x0&&this[_0x3229e1(0x17b)](_0x32d1cc);}[_0x13f83f(0x322)](){this['_online']=!0x1;}};fe=ht([U(0x2,a[_0x13f83f(0x3f5)](a['Injector'])),U(0x3,a[_0x13f83f(0x3f5)](Te)),U(0x4,a['Inject'](u[_0x13f83f(0x408)])),U(0x5,a[_0x13f83f(0x3f5)](Oe)),U(0x6,v[_0x13f83f(0x325)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x13f83f(0x2f1)])],fe);var St=Object['getOwnPropertyDescriptor'],dt=(_0x591a78,_0x71ed8f,_0xec5382,_0x130b6b)=>{const _0x1e4538=_0x13f83f;for(var _0x5691a3=_0x130b6b>0x1?void 0x0:_0x130b6b?St(_0x71ed8f,_0xec5382):_0x71ed8f,_0x540f53=_0x591a78[_0x1e4538(0x2c4)]-0x1,_0x28036c;_0x540f53>=0x0;_0x540f53--)(_0x28036c=_0x591a78[_0x540f53])&&(_0x5691a3=_0x28036c(_0x5691a3)||_0x5691a3);return _0x5691a3;},w=(_0x55b1bc,_0x14404d)=>(_0x25ecaa,_0x286ee6)=>_0x14404d(_0x25ecaa,_0x286ee6,_0x55b1bc);const ft=0x12c,mt=0x64,gt=()=>{let _0x58b16e=[],_0x12bcd8=!0x1;return _0x35d94f=>{const _0x535707=_0x54f0;_0x58b16e[_0x535707(0x311)](_0x35d94f),_0x12bcd8||(_0x12bcd8=!0x0,setTimeout(()=>{const _0x14e7ba=_0x535707;_0x58b16e[_0x14e7ba(0x3f0)](_0x26ac6d=>_0x26ac6d()),_0x58b16e=[],_0x12bcd8=!0x1;}));};};let me=class extends a[_0x13f83f(0x31f)]{constructor(_0x4eee3b,_0x120694,_0x146534,_0x56647c,_0x2da02c,_0x332890,_0x32d772,_0x4a7b2b){const _0x4d68f7=_0x13f83f;super(),_(this,'_online',!0x1),_(this,_0x4d68f7(0x2f4),!0x1),_(this,_0x4d68f7(0x3e1),new I[(_0x4d68f7(0x342))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x4d68f7(0x1ca)]()),_(this,_0x4d68f7(0x179),new I[(_0x4d68f7(0x342))]([])),_(this,'roomMembers$',this['_roomMembers$'][_0x4d68f7(0x253)](I[_0x4d68f7(0x273)](ft))),_(this,_0x4d68f7(0x17b),a['debounce']((_0x167205,_0x55540a)=>{const _0x48a083=_0x4d68f7,_0x33054d={'eventID':v['CollaborationEvent'][_0x48a083(0x3c8)],'data':{'unitID':this['unitID'],'memberID':this[_0x48a083(0x416)][_0x48a083(0x181)](),'selection':x[_0x48a083(0x399)](_0x167205,_0x55540a['range'])}};this[_0x48a083(0x416)][_0x48a083(0x28a)](_0x33054d,this['unitID']);},mt)),(this[_0x4d68f7(0x385)]=_0x4eee3b,this[_0x4d68f7(0x416)]=_0x120694,this[_0x4d68f7(0x182)]=_0x146534,this[_0x4d68f7(0x2c1)]=_0x56647c,this['_memberService']=_0x2da02c,this[_0x4d68f7(0x292)]=_0x332890,this['_commandService']=_0x32d772,this['_refRangeService']=_0x4a7b2b);}get[_0x13f83f(0x391)](){const _0x8d6644=_0x13f83f;return this[_0x8d6644(0x3e1)]['getValue']();}get['roomMembers'](){const _0x322903=_0x13f83f;return this[_0x322903(0x179)][_0x322903(0x26e)]();}[_0x13f83f(0x208)](){const _0x3cdd4b=_0x13f83f;super['dispose'](),this['_cursorInfo$'][_0x3cdd4b(0x36b)](new Map()),this[_0x3cdd4b(0x3e1)][_0x3cdd4b(0x333)](),this['_roomMembers$'][_0x3cdd4b(0x36b)]([]),this[_0x3cdd4b(0x179)][_0x3cdd4b(0x333)]();}[_0x13f83f(0x257)](){const _0x38d366=_0x13f83f;this[_0x38d366(0x2f4)]||(this[_0x38d366(0x2f4)]=!0x0,this[_0x38d366(0x416)][_0x38d366(0x2c9)][_0x38d366(0x253)](I['takeUntil'](this['dispose$']))[_0x38d366(0x2ec)](_0x34d978=>{const _0x3ed800=_0x38d366;_0x34d978===u['SessionStatus']['ONLINE']?this[_0x3ed800(0x34e)]():this[_0x3ed800(0x322)]();}),this[_0x38d366(0x416)][_0x38d366(0x238)][_0x38d366(0x253)](I['takeUntil'](this[_0x38d366(0x204)]))[_0x38d366(0x2ec)](_0x30de74=>{const _0x19ca45=_0x38d366,_0x5c67ad=_0x30de74[_0x19ca45(0x20a)];_0x5c67ad===v['CollaborationEvent'][_0x19ca45(0x3c8)]&&this['_onCursorUpdate'](_0x30de74),_0x5c67ad===v[_0x19ca45(0x23f)]['USERS_LEAVE']&&this[_0x19ca45(0x195)](_0x30de74);}),this[_0x38d366(0x254)](),this[_0x38d366(0x217)](this[_0x38d366(0x184)][_0x38d366(0x3d7)](_0x4cddfb=>{const _0x1d50ce=_0x38d366;if(this['_online']&&_0x4cddfb['id']===g['SetSelectionsOperation']['id']&&_0x4cddfb['params'][_0x1d50ce(0x36a)]===this[_0x1d50ce(0x385)]){const _0x31c027=_0x4cddfb['params'];this[_0x1d50ce(0x17b)](_0x31c027['subUnitId'],_0x31c027[_0x1d50ce(0x3b1)][0x0]);}})));}[_0x13f83f(0x320)](_0x21d47c){const _0x4d066f=_0x13f83f;var _0x2797b5,_0x5700cb;const {memberID:_0x6e346b,selection:_0x1ce4be}=_0x21d47c['data'],{sheetName:_0x17450c,range:_0x3064e7}=x['deserializeRangeWithSheet'](_0x1ce4be),_0x4fa89d={'name':(_0x5700cb=(_0x2797b5=this[_0x4d066f(0x2dd)][_0x4d066f(0x1d2)](this[_0x4d066f(0x385)],_0x6e346b))==null?void 0x0:_0x2797b5[_0x4d066f(0x390)])!=null?_0x5700cb:_0x4d066f(0x3e4),'range':this[_0x4d066f(0x3d2)](_0x17450c,_0x3064e7),'sheetID':_0x17450c,'color':this[_0x4d066f(0x2c1)][_0x4d066f(0x38d)](_0x6e346b),'selection':_0x1ce4be},_0x58a183=this[_0x4d066f(0x391)];_0x58a183[_0x4d066f(0x20b)](_0x6e346b,_0x4fa89d),this['_cursorInfo$'][_0x4d066f(0x36b)](_0x58a183);}['_onCursorDelete'](_0x27be01){const _0x169050=_0x13f83f,{memberID:_0xc10416}=_0x27be01[_0x169050(0x16c)],_0x539dc3=this[_0x169050(0x391)];_0x539dc3[_0x169050(0x362)](_0xc10416),this[_0x169050(0x3e1)][_0x169050(0x36b)](_0x539dc3);}[_0x13f83f(0x3d2)](_0x378e45,_0x42eef7){const _0x28d68f=_0x13f83f;var _0x14e5cd,_0x4aba3b;const _0x50fe67=(_0x4aba3b=(_0x14e5cd=this[_0x28d68f(0x292)][_0x28d68f(0x421)](this[_0x28d68f(0x385)]))==null?void 0x0:_0x14e5cd['getSheetBySheetId'](_0x378e45))==null?void 0x0:_0x4aba3b[_0x28d68f(0x353)]();return(_0x50fe67==null?void 0x0:_0x50fe67[_0x28d68f(0x27d)](_0x47ba82=>a['Rectangle'][_0x28d68f(0x2df)](_0x47ba82,_0x42eef7)))||_0x42eef7;}['_onRefRangeChange'](){const _0x2c2efe=_0x13f83f,_0x5ea769=new a[(_0x2c2efe(0x2c8))](),_0x4344fb=gt(),_0x259339=()=>{const _0x51c24c=_0x2c2efe;_0x5ea769[_0x51c24c(0x208)]();const _0x16e1c4=(_0x5828cb,_0x3e9f7e,_0x580b08,_0x40c0fc)=>{const _0x2315ac=_0x51c24c;let _0x10db0a=[];switch(_0x5828cb['id']){case g['EffectRefRangId'][_0x2315ac(0x19c)]:{_0x10db0a=g[_0x2315ac(0x387)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x240)]:{_0x10db0a=g[_0x2315ac(0x3f4)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x288)]:{_0x10db0a=g['handleInsertCol'](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x2bc)]:{_0x10db0a=g[_0x2315ac(0x401)](_0x5828cb,_0x40c0fc);break;}case g['EffectRefRangId'][_0x2315ac(0x384)]:{_0x10db0a=g[_0x2315ac(0x2c3)](_0x5828cb,_0x40c0fc);break;}case g['EffectRefRangId'][_0x2315ac(0x251)]:{_0x10db0a=g[_0x2315ac(0x1c6)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x2ce)]:{_0x10db0a=g[_0x2315ac(0x20d)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x1e1)]:{_0x10db0a=g[_0x2315ac(0x28d)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x368)]:{_0x10db0a=g[_0x2315ac(0x25b)](_0x5828cb,_0x40c0fc);break;}}const _0x1098d9=g[_0x2315ac(0x2a2)](_0x10db0a,_0x40c0fc),_0x54b632=this[_0x2315ac(0x391)][_0x2315ac(0x2fc)](_0x3e9f7e);if(_0x54b632&&_0x1098d9){const _0x5ab929={..._0x54b632,'range':_0x1098d9};this[_0x2315ac(0x391)][_0x2315ac(0x20b)](_0x3e9f7e,_0x5ab929),_0x4344fb(()=>{const _0x5832d6=_0x2315ac,_0x46213b=this['_refRangeService']['registerRefRange'](_0x1098d9,_0x5cb040=>(_0x46213b['dispose'](),_0x16e1c4(_0x5cb040,_0x3e9f7e,_0x580b08,_0x1098d9)));_0x5ea769[_0x5832d6(0x1e7)](_0x46213b);});}return{'redos':[],'undos':[]};};this[_0x51c24c(0x391)]['forEach']((_0x265d0b,_0x5d87ef)=>{const _0x3c5e4b=_0x51c24c,{range:_0xe2cd7f,sheetID:_0x3d74ab}=_0x265d0b,_0x1f3707=this[_0x3c5e4b(0x3ed)][_0x3c5e4b(0x16d)](_0xe2cd7f,_0x1e8ec0=>(_0x1f3707[_0x3c5e4b(0x208)](),_0x16e1c4(_0x1e8ec0,_0x5d87ef,_0x3d74ab,_0xe2cd7f)));_0x5ea769[_0x3c5e4b(0x1e7)](_0x1f3707);});};this[_0x2c2efe(0x217)](a[_0x2c2efe(0x365)](this[_0x2c2efe(0x3e1)][_0x2c2efe(0x2ec)](()=>{_0x259339();})));}[_0x13f83f(0x34e)](){const _0xdaa3f8=_0x13f83f;var _0x476ca4,_0x21d7fb;if(this['_online']=!0x0,((_0x476ca4=this[_0xdaa3f8(0x292)][_0xdaa3f8(0x1c5)]())==null?void 0x0:_0x476ca4[_0xdaa3f8(0x22e)]())!==this[_0xdaa3f8(0x385)])return;const _0x5b9730=(_0x21d7fb=this[_0xdaa3f8(0x182)]['get'](g[_0xdaa3f8(0x2e9)])[_0xdaa3f8(0x3c0)]())==null?void 0x0:_0x21d7fb[0x0],_0x3001c3=this[_0xdaa3f8(0x292)]['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0xdaa3f8(0x1a5)]();_0x5b9730&&_0x3001c3&&this[_0xdaa3f8(0x17b)](_0x3001c3[_0xdaa3f8(0x186)](),_0x5b9730);}[_0x13f83f(0x322)](){const _0x15b53d=_0x13f83f;this[_0x15b53d(0x20e)]=!0x1;}};me=dt([w(0x2,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),w(0x3,a[_0x13f83f(0x3f5)](Te)),w(0x4,a['Inject'](u[_0x13f83f(0x408)])),w(0x5,a[_0x13f83f(0x17e)]),w(0x6,a[_0x13f83f(0x2f1)]),w(0x7,a[_0x13f83f(0x3f5)](g[_0x13f83f(0x1b7)]))],me);var vt=Object['getOwnPropertyDescriptor'],Et=(_0x336fb8,_0x55bfdd,_0xbc969a,_0x4c23f0)=>{const _0x5f247f=_0x13f83f;for(var _0x4a048a=_0x4c23f0>0x1?void 0x0:_0x4c23f0?vt(_0x55bfdd,_0xbc969a):_0x55bfdd,_0x43836e=_0x336fb8[_0x5f247f(0x2c4)]-0x1,_0x103250;_0x43836e>=0x0;_0x43836e--)(_0x103250=_0x336fb8[_0x43836e])&&(_0x4a048a=_0x103250(_0x4a048a)||_0x4a048a);return _0x4a048a;},oe=(_0x235a10,_0x3a2613)=>(_0x11c529,_0xa514b7)=>_0x3a2613(_0x11c529,_0xa514b7,_0x235a10);let B=class extends a[_0x13f83f(0x31f)]{constructor(_0x493ea9,_0x56b228,_0x402723){const _0x4111fd=_0x13f83f;super(),_(this,_0x4111fd(0x252),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x4111fd(0x292)]=_0x493ea9,this[_0x4111fd(0x182)]=_0x56b228,this[_0x4111fd(0x33f)]=_0x402723,this[_0x4111fd(0x2f4)]());}[_0x13f83f(0x208)](){const _0x41248d=_0x13f83f;super[_0x41248d(0x208)](),this[_0x41248d(0x40b)][_0x41248d(0x333)](),this['_entities'][_0x41248d(0x3f0)](_0x516039=>_0x516039[_0x41248d(0x208)]());}[_0x13f83f(0x3c2)](_0x1a0495){const _0x2ceb34=_0x13f83f;return this['_entities']['has'](_0x1a0495)?this['_entities']['get'](_0x1a0495)[_0x2ceb34(0x1b6)]:this[_0x2ceb34(0x40b)][_0x2ceb34(0x253)](I['filter'](_0x390cec=>_0x390cec['unitID']===_0x1a0495),I['switchMap'](_0x41cf2f=>_0x41cf2f[_0x2ceb34(0x1b6)]));}[_0x13f83f(0x2f4)](){const _0x472da7=_0x13f83f;this['_univerInstanceService'][_0x472da7(0x1d9)](a[_0x472da7(0x3f2)][_0x472da7(0x224)])['pipe'](I[_0x472da7(0x170)](this[_0x472da7(0x204)]))[_0x472da7(0x2ec)](async _0x58ac23=>{const _0x1c74ef=_0x472da7,_0x355ff1=_0x58ac23[_0x1c74ef(0x22e)](),_0x351fb9=await this[_0x1c74ef(0x194)](_0x355ff1);this['_entityInit$'][_0x1c74ef(0x36b)](_0x351fb9),this['_entities']['set'](_0x355ff1,_0x351fb9);}),this['_univerInstanceService'][_0x472da7(0x1d9)](a['UniverInstanceType']['UNIVER_DOC'])[_0x472da7(0x253)](I[_0x472da7(0x170)](this[_0x472da7(0x204)]))['pipe'](I['filter'](_0x1bad7d=>!_0x1bad7d[_0x472da7(0x22e)]()[_0x472da7(0x2b7)]('__')))[_0x472da7(0x2ec)](async _0x2fe6bb=>{const _0x34af54=_0x472da7,_0x3a8496=_0x2fe6bb[_0x34af54(0x22e)](),_0xd5f7f2=await this[_0x34af54(0x366)](_0x3a8496);this['_entityInit$'][_0x34af54(0x36b)](_0xd5f7f2),this[_0x34af54(0x252)][_0x34af54(0x20b)](_0x3a8496,_0xd5f7f2);}),I[_0x472da7(0x1ac)](this[_0x472da7(0x292)][_0x472da7(0x1ad)](a['UniverInstanceType'][_0x472da7(0x29c)]),this[_0x472da7(0x292)][_0x472da7(0x1ad)](a[_0x472da7(0x3f2)]['UNIVER_SHEET']))[_0x472da7(0x253)](I[_0x472da7(0x170)](this['dispose$']))[_0x472da7(0x2ec)](_0x5d9257=>{const _0xb40447=_0x472da7,_0xae2a24=_0x5d9257[_0xb40447(0x22e)](),_0x17acae=this['_entities'][_0xb40447(0x2fc)](_0xae2a24);_0x17acae&&(_0x17acae['dispose'](),this['_entities'][_0xb40447(0x362)](_0xae2a24));});}async['_startSheetCollabCursor'](_0x40a23e){const _0x18c284=_0x13f83f,_0x424122=await this['_collabSessionService']['requireSession'](_0x40a23e),_0x4290d4=this['_injector'][_0x18c284(0x30b)](me,_0x40a23e,_0x424122);return _0x4290d4[_0x18c284(0x257)](),_0x4290d4;}async[_0x13f83f(0x366)](_0x32f499){const _0x443708=_0x13f83f,_0x7273af=await this[_0x443708(0x33f)][_0x443708(0x2c0)](_0x32f499),_0x18e3be=this['_injector'][_0x443708(0x30b)](fe,_0x32f499,_0x7273af);return _0x18e3be['init'](),_0x18e3be;}};B=Et([oe(0x0,a[_0x13f83f(0x17e)]),oe(0x1,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),oe(0x2,a[_0x13f83f(0x3f5)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function pt(_0xfde51d,_0x34372c){const _0x30dc99=_0x13f83f;let {radius:_0x170582,width:_0x69d262,height:_0x265e5c}=_0x34372c;_0x170582=_0x170582!=null?_0x170582:0x0,_0x69d262=_0x69d262!=null?_0x69d262:0x1e,_0x265e5c=_0x265e5c!=null?_0x265e5c:0x1e;let _0x2260f4=0x0,_0x3bc258=0x0,_0x38e53c=0x0;_0x2260f4=_0x3bc258=_0x38e53c=Math[_0x30dc99(0x40f)](_0x170582,_0x69d262/0x2,_0x265e5c/0x2),_0xfde51d[_0x30dc99(0x2d1)](),_0xfde51d[_0x30dc99(0x175)](_0x2260f4,0x0),_0xfde51d['lineTo'](_0x69d262-_0x3bc258,0x0),_0xfde51d[_0x30dc99(0x33c)](_0x69d262-_0x3bc258,_0x3bc258,_0x3bc258,Math['PI']*0x3/0x2,0x0,!0x1),_0xfde51d[_0x30dc99(0x1db)](_0x69d262,_0x265e5c-_0x38e53c),_0xfde51d[_0x30dc99(0x33c)](_0x69d262-_0x38e53c,_0x265e5c-_0x38e53c,_0x38e53c,0x0,Math['PI']/0x2,!0x1),_0xfde51d[_0x30dc99(0x1db)](0x0,_0x265e5c),_0xfde51d['lineTo'](0x0,_0x2260f4),_0xfde51d['arc'](_0x2260f4,_0x2260f4,_0x2260f4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xfde51d[_0x30dc99(0x2ab)](),_0x34372c[_0x30dc99(0x26c)]&&(_0xfde51d[_0x30dc99(0x2b6)](),_0xfde51d['fillStyle']=_0x34372c['fill'],_0x34372c[_0x30dc99(0x378)]===_0x30dc99(0x1f8)?_0xfde51d[_0x30dc99(0x26c)](_0x30dc99(0x1f8)):_0xfde51d[_0x30dc99(0x26c)](),_0xfde51d[_0x30dc99(0x2b0)]());}class ie extends C[_0x13f83f(0x34a)]{constructor(_0x209a48,_0x5b218f){const _0x54190e=_0x13f83f;super(_0x209a48,_0x5b218f),_(this,_0x54190e(0x2d5)),_(this,_0x54190e(0x3d4)),(this[_0x54190e(0x2d5)]=_0x5b218f==null?void 0x0:_0x5b218f[_0x54190e(0x2d5)],this[_0x54190e(0x3d4)]=_0x5b218f==null?void 0x0:_0x5b218f[_0x54190e(0x3d4)]);}static[_0x13f83f(0x293)](_0x333880,_0x2d3bf1){const _0x1037d1=_0x13f83f,{text:_0x5e4eac,color:_0x2d7090}=_0x2d3bf1;_0x333880[_0x1037d1(0x2b6)](),_0x333880[_0x1037d1(0x308)]=_0x1037d1(0x23d);const _0x431fdd=_0x333880['measureText'](_0x5e4eac)['width'],_0x5dd1e7=Math[_0x1037d1(0x40f)](_0x431fdd+0x2*ae,De);pt(_0x333880,{'height':X,'radius':0x4,'width':_0x5dd1e7,'fill':_0x2d7090}),_0x333880[_0x1037d1(0x1fe)]='#FFF';const _0x3bfa04=ae,_0x432a18=X-Ct,_0x21cdd8=De-0x2*ae;if(_0x431fdd>_0x21cdd8){let _0x33d9b0='',_0x6a1b2b=0x0;for(const _0x408f0a of _0x5e4eac){const _0x15d399=_0x333880[_0x1037d1(0x22b)](_0x408f0a)['width'];if(_0x6a1b2b+_0x15d399<=_0x21cdd8-_0x333880['measureText'](_0x1037d1(0x216))[_0x1037d1(0x335)])_0x33d9b0+=_0x408f0a,_0x6a1b2b+=_0x15d399;else{_0x33d9b0+=_0x1037d1(0x216);break;}}_0x333880[_0x1037d1(0x389)](_0x33d9b0,_0x3bfa04,_0x432a18);}else _0x333880[_0x1037d1(0x389)](_0x5e4eac,_0x3bfa04,_0x432a18);_0x333880[_0x1037d1(0x2b0)]();}['_draw'](_0xc98460){const _0x1e1606=_0x13f83f;ie[_0x1e1606(0x293)](_0xc98460,this);}}const ce='collab-text-anchor-',Tt=_0x13f83f(0x1d8),Ot=_0x13f83f(0x37b),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x13f83f(0x1ed);class Ne{constructor(_0x3f8937,_0x5be42c,_0x18ebf5,_0x17ac03){const _0x4c9187=_0x13f83f;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,_0x4c9187(0x2a0),null),_(this,_0x4c9187(0x3ad),null),_(this,'_hideTimer',null),_(this,_0x4c9187(0x32e),null),(this[_0x4c9187(0x18d)]=_0x3f8937,this[_0x4c9187(0x351)]=_0x5be42c,this['_docSkeleton']=_0x18ebf5,this[_0x4c9187(0x1ec)]=_0x17ac03,this['_render']());}set[_0x13f83f(0x2ed)](_0x3b2a74){const _0x237ca3=_0x13f83f;_0x3b2a74?(this[_0x237ca3(0x3ad)]&&this['_anchorDot'][_0x237ca3(0x24a)](),this[_0x237ca3(0x2a0)]&&this[_0x237ca3(0x2a0)][_0x237ca3(0x199)]()):(this[_0x237ca3(0x3ad)]&&this[_0x237ca3(0x3ad)][_0x237ca3(0x199)](),this[_0x237ca3(0x2a0)]&&this['_textBubble'][_0x237ca3(0x24a)]());}[_0x13f83f(0x208)](){const _0x583a0a=_0x13f83f;for(const _0x263951 of this[_0x583a0a(0x190)])_0x263951[_0x583a0a(0x208)]();this[_0x583a0a(0x2a0)]&&this[_0x583a0a(0x2a0)][_0x583a0a(0x208)](),this['_anchorDot']&&this[_0x583a0a(0x3ad)]['dispose'](),this['_anchor']&&this[_0x583a0a(0x1da)][_0x583a0a(0x208)](),this['_eventUnsubscribe']&&this[_0x583a0a(0x32e)]();}[_0x13f83f(0x1b0)](){const _0x2a94b7=_0x13f83f;var _0xb0f067;const {_docSkeleton:_0xd96eae,_document:_0xb35e02}=this,{color:_0x27e5d5,name:_0x429975,ranges:_0x32e321}=this[_0x2a94b7(0x18d)],_0x50e6cb=_0xb35e02[_0x2a94b7(0x25e)](),{docsLeft:_0x47799f,docsTop:_0x35175a}=_0x50e6cb,_0x43ab94=new p['NodePositionConvertToCursor'](_0x50e6cb,_0xd96eae);for(const {startOffset:_0x24bcd1,endOffset:_0x500546,rangeType:_0x54c86a,segmentId:_0x1a3c2c,segmentPage:_0x5d6d6a,collapsed:_0x2d0401,isActive:_0x5730f7}of _0x32e321){const _0x52e8b5=_0xd96eae[_0x2a94b7(0x1f7)](_0x24bcd1,!0x0,_0x1a3c2c,_0x5d6d6a);let _0xc06d7e=_0xd96eae[_0x2a94b7(0x1f7)](_0x500546,!0x0,_0x1a3c2c,_0x5d6d6a);if(_0xc06d7e==null&&(_0xc06d7e=_0xd96eae[_0x2a94b7(0x1f7)](_0x500546-0x1,!0x1,_0x1a3c2c,_0x5d6d6a)),_0x5730f7){const {contentBoxPointGroup:_0x1b2194}=_0x43ab94[_0x2a94b7(0x2fe)](_0xc06d7e,_0xc06d7e);if(_0x1b2194[_0x2a94b7(0x2c4)]===0x0)continue;this[_0x2a94b7(0x2d4)](_0x27e5d5,_0x1b2194,_0x47799f,_0x35175a,_0x429975),this['_eventUnsubscribe']=this[_0x2a94b7(0x1b2)]();}if(_0x52e8b5&&_0xc06d7e){if(_0x54c86a===a['DOC_RANGE_TYPE'][_0x2a94b7(0x3e5)]){const _0x767dc6=new p[(_0x2a94b7(0x2e5))](_0x50e6cb,_0xd96eae),{pointGroup:_0x34f562}=(_0xb0f067=_0x767dc6[_0x2a94b7(0x2fe)](_0x52e8b5,_0xc06d7e))!=null?_0xb0f067:{};if(_0x34f562==null||_0x34f562[_0x2a94b7(0x2c4)]===0x0)continue;this[_0x2a94b7(0x219)](_0x27e5d5,_0x34f562,_0x47799f,_0x35175a);}else{if(!_0x2d0401){const {borderBoxPointGroup:_0xef6eac}=_0x43ab94[_0x2a94b7(0x2fe)](_0x52e8b5,_0xc06d7e);if(_0xef6eac[_0x2a94b7(0x2c4)]===0x0)continue;this[_0x2a94b7(0x3da)](_0x27e5d5,_0xef6eac,_0x47799f,_0x35175a);}}}}}[_0x13f83f(0x2d4)](_0x32e691,_0x2679b7,_0x10363d,_0x4ec01e,_0x34f081){const _0x1a64a3=_0x13f83f,_0xb9384d=this['_getAnchorBounding'](_0x2679b7),{left:_0x2942ff,top:_0x41d861,height:_0x342791}=_0xb9384d,_0xb4c0d1=this['_getScale'](),_0xb96bef=bt/_0xb4c0d1,_0x2719be=new C['Rect'](ce+a['generateRandomId'](Y),{'left':_0x2942ff+_0x10363d-_0xb96bef,'top':_0x41d861+_0x4ec01e,'height':_0x342791,'width':Rt,'fill':_0x32e691||C['getColor'](a['COLORS'][_0x1a64a3(0x305)],0x0),'strokeWidth':_0xb96bef,'stroke':Dt,'evented':!0x0});this[_0x1a64a3(0x1da)]=_0x2719be,this[_0x1a64a3(0x351)]['addObject'](_0x2719be,p[_0x1a64a3(0x36e)]);const _0x2e1508=new C[(_0x1a64a3(0x211))](ce+a['generateRandomId'](Y),{'left':_0x2942ff+_0x10363d-_0xb96bef,'top':_0x41d861+_0x4ec01e-le/0x2,'height':le,'width':le,'fill':_0x32e691||C[_0x1a64a3(0x221)](a[_0x1a64a3(0x3a4)][_0x1a64a3(0x305)],0x0),'strokeWidth':0x0,'stroke':_0x32e691||C[_0x1a64a3(0x221)](a['COLORS'][_0x1a64a3(0x305)],0x0),'evented':!0x1});this['_anchorDot']=_0x2e1508,this[_0x1a64a3(0x351)][_0x1a64a3(0x197)](_0x2e1508,p[_0x1a64a3(0x36e)]);const _0x24adce=new ie(ce+a['generateRandomId'](Y),{'left':_0x2942ff+_0x10363d-_0xb96bef,'top':_0x41d861+_0x4ec01e-X,'text':_0x34f081,'color':_0x32e691});this['_textBubble']=_0x24adce,this['_scene'][_0x1a64a3(0x197)](_0x24adce,p['TEXT_RANGE_LAYER_INDEX']),this[_0x1a64a3(0x2ed)]=!0x1;}['_handleHover'](){const _0xbcd0f3=_0x13f83f,_0x2ff9df=this['_anchor']['onPointerEnter$'][_0xbcd0f3(0x33a)](()=>{this['_hover']=!0x0;}),_0x152be1=this['_anchor'][_0xbcd0f3(0x303)][_0xbcd0f3(0x33a)](()=>{const _0x26945b=_0xbcd0f3;this['_hideTimer']&&clearTimeout(this[_0x26945b(0x3f3)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x8ddc52=_0xbcd0f3;_0x2ff9df[_0x8ddc52(0x32a)](),_0x152be1[_0x8ddc52(0x32a)]();};}[_0x13f83f(0x3da)](_0x3d8853,_0x14adb7,_0x21e9d6,_0x462635){const _0x35ea60=_0x13f83f,_0x41503d=new a['ColorKit'](_0x3d8853)['setAlpha'](0.2)[_0x35ea60(0x276)](),_0x3a35e7=new C[(_0x35ea60(0x1e2))](Tt+a[_0x35ea60(0x237)](Y),{'pointsGroup':_0x14adb7,'fill':_0x41503d||C[_0x35ea60(0x221)](a[_0x35ea60(0x3a4)][_0x35ea60(0x305)],0.2),'left':_0x21e9d6,'top':_0x462635,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x3a35e7),this[_0x35ea60(0x351)][_0x35ea60(0x197)](_0x3a35e7,p['TEXT_RANGE_LAYER_INDEX']);}[_0x13f83f(0x219)](_0x12fd44,_0x3c9811,_0x38f08f,_0x337f98){const _0x918c7f=_0x13f83f,_0x52485f=new a[(_0x918c7f(0x20c))](_0x12fd44)[_0x918c7f(0x1cb)](0.2)['toRgbString'](),_0xde20a0=new C[(_0x918c7f(0x1e2))](Ot+a['generateRandomId'](Y),{'pointsGroup':_0x3c9811,'fill':_0x52485f||C[_0x918c7f(0x221)](a['COLORS'][_0x918c7f(0x305)],0.2),'left':_0x38f08f,'top':_0x337f98,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x918c7f(0x311)](_0xde20a0),this['_scene'][_0x918c7f(0x197)](_0xde20a0,p['TEXT_RANGE_LAYER_INDEX']);}[_0x13f83f(0x2bf)](_0x21f818){const _0xc77363=_0x21f818[0x0],_0x379617=_0xc77363[0x0],_0x2832b0=_0xc77363[0x2],{x:_0xe2ef8d,y:_0x149700}=_0x379617,{x:_0x4b2186,y:_0x328b86}=_0x2832b0;return{'left':_0xe2ef8d,'top':_0x149700,'width':_0x4b2186-_0xe2ef8d,'height':_0x328b86-_0x149700};}[_0x13f83f(0x3a2)](){const _0x5a1282=_0x13f83f,{scaleX:_0x4a8d54,scaleY:_0x599725}=this[_0x5a1282(0x351)][_0x5a1282(0x352)]();return Math[_0x5a1282(0x35e)](_0x4a8d54,_0x599725);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x5883a0,_0x33fae5,_0xd1d231,_0x45b14f)=>{const _0x2b6259=_0x13f83f;for(var _0x8fa332=_0x45b14f>0x1?void 0x0:_0x45b14f?Nt(_0x33fae5,_0xd1d231):_0x33fae5,_0x393527=_0x5883a0[_0x2b6259(0x2c4)]-0x1,_0x40a54e;_0x393527>=0x0;_0x393527--)(_0x40a54e=_0x5883a0[_0x393527])&&(_0x8fa332=_0x40a54e(_0x8fa332)||_0x8fa332);return _0x8fa332;},q=(_0x4b2374,_0x419089)=>(_0x470b12,_0x13b085)=>_0x419089(_0x470b12,_0x13b085,_0x4b2374);let ge=class extends a[_0x13f83f(0x31f)]{constructor(_0x194988,_0x59e88f,_0x19a101,_0x1103cd,_0x26064f){const _0x6c24a7=_0x13f83f;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x6c24a7(0x354)]=_0x194988,this[_0x6c24a7(0x392)]=_0x59e88f,this[_0x6c24a7(0x1b4)]=_0x19a101,this['_commandService']=_0x1103cd,this[_0x6c24a7(0x409)]=_0x26064f,this[_0x6c24a7(0x2f4)]());}[_0x13f83f(0x2f4)](){const _0x3520ab=_0x13f83f,_0x1cb57a=this[_0x3520ab(0x354)][_0x3520ab(0x36a)],_0x24f384=this[_0x3520ab(0x392)];this[_0x3520ab(0x217)](I[_0x3520ab(0x200)]([this[_0x3520ab(0x1b4)][_0x3520ab(0x3c2)](_0x1cb57a),this[_0x3520ab(0x409)][_0x3520ab(0x1c1)]])['pipe']($['map'](([_0x2de48f,_0x191335])=>({'skeleton':_0x24f384['getSkeleton'](),'cursors':[..._0x2de48f['values']()][_0x3520ab(0x38a)](_0x1bff06=>({..._0x1bff06,'color':this[_0x3520ab(0x409)][_0x3520ab(0x411)](_0x1bff06['color'])}))})))[_0x3520ab(0x2ec)](_0x3bf183=>{const _0x21b826=_0x3520ab;if(this[_0x21b826(0x3f8)](),_0x3bf183){const {skeleton:_0x41cee9,cursors:_0x30cdae}=_0x3bf183;this[_0x21b826(0x235)](_0x41cee9,_0x30cdae);}})),this[_0x3520ab(0x255)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4e736a,_0x1401bb){const _0x22c7e2=_0x13f83f,{scene:_0x1f9c51,mainComponent:_0x2798b5}=this[_0x22c7e2(0x354)],_0x292fde=_0x1401bb[_0x22c7e2(0x2cc)](_0x3fa85b=>new Ne(_0x3fa85b,_0x1f9c51,_0x4e736a,_0x2798b5));this[_0x22c7e2(0x3cd)]=_0x292fde,this[_0x22c7e2(0x25d)]=_0x1401bb;}[_0x13f83f(0x21b)](){const _0x1c9ccd=_0x13f83f;this[_0x1c9ccd(0x3f8)]();const {scene:_0x2de351,mainComponent:_0x37a8f0}=this[_0x1c9ccd(0x354)],_0x383c83=this[_0x1c9ccd(0x392)]['getSkeleton'](),_0x15d4a1=this['_cursors']['map'](_0x915c07=>new Ne(_0x915c07,_0x2de351,_0x383c83,_0x37a8f0));this[_0x1c9ccd(0x3cd)]=_0x15d4a1;}[_0x13f83f(0x3f8)](){const _0x23ee9d=_0x13f83f;this[_0x23ee9d(0x3cd)]['forEach'](_0x3e8621=>_0x3e8621['dispose']()),this[_0x23ee9d(0x3cd)]=[];}[_0x13f83f(0x29d)](){const _0x46535a=_0x13f83f,_0x4ab6d9=[p[_0x46535a(0x227)]['id']];this[_0x46535a(0x217)](this[_0x46535a(0x184)][_0x46535a(0x3d7)](_0x3d51ae=>{const _0x4bd94e=_0x46535a;_0x4ab6d9[_0x4bd94e(0x2a5)](_0x3d51ae['id'])&&_0x3d51ae[_0x4bd94e(0x314)][_0x4bd94e(0x36a)]===this[_0x4bd94e(0x354)]['unitId']&&this[_0x4bd94e(0x21b)]();}));}[_0x13f83f(0x255)](){const _0x515a40=_0x13f83f;this[_0x515a40(0x217)](a[_0x515a40(0x223)](this[_0x515a40(0x354)]['engine'][_0x515a40(0x3d8)])['pipe']($[_0x515a40(0x386)](_0x2099cc=>_0x2099cc[_0x515a40(0x3af)]===C[_0x515a40(0x35d)]['resize']),$[_0x515a40(0x24c)](0x10))['subscribe'](()=>{const _0x249e5f=_0x515a40;this[_0x249e5f(0x21b)]();}));}};ge=Ut([q(0x1,a[_0x13f83f(0x3f5)](W[_0x13f83f(0x359)])),q(0x2,a['Inject'](B)),q(0x3,a[_0x13f83f(0x2f1)]),q(0x4,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x2eb)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x13f83f(0x34a)]{constructor(_0x4b324c,_0x34c141){const _0x7377d7=_0x13f83f;super(_0x4b324c,_0x34c141),_(this,'_color'),_(this,_0x7377d7(0x1aa),!0x1),_(this,_0x7377d7(0x355)),_(this,_0x7377d7(0x41f),''),_(this,_0x7377d7(0x256),'top'),_(this,_0x7377d7(0x343)),(_0x34c141&&this[_0x7377d7(0x207)](_0x34c141),this[_0x7377d7(0x1d7)][_0x7377d7(0x33a)](()=>this[_0x7377d7(0x207)]({'hovered':!0x0})),this[_0x7377d7(0x303)][_0x7377d7(0x33a)](()=>this[_0x7377d7(0x207)]({'hovered':!0x1})));}[_0x13f83f(0x207)](_0x1ce9d4){const _0x18b9bd=_0x13f83f;var _0x2e9077,_0x31e8a8,_0x4d4497,_0x11f67c,_0x59e09e,_0x5e474c;this['_color']=(_0x2e9077=_0x1ce9d4[_0x18b9bd(0x2d5)])!=null?_0x2e9077:this[_0x18b9bd(0x261)],this['_hovered']=(_0x31e8a8=_0x1ce9d4[_0x18b9bd(0x29b)])!=null?_0x31e8a8:this[_0x18b9bd(0x1aa)],this[_0x18b9bd(0x355)]=(_0x4d4497=_0x1ce9d4['range'])!=null?_0x4d4497:this[_0x18b9bd(0x355)],this[_0x18b9bd(0x41f)]=(_0x11f67c=_0x1ce9d4[_0x18b9bd(0x390)])!=null?_0x11f67c:this['_name'],this[_0x18b9bd(0x256)]=(_0x59e09e=_0x1ce9d4[_0x18b9bd(0x17d)])!=null?_0x59e09e:this[_0x18b9bd(0x256)],this[_0x18b9bd(0x343)]=(_0x5e474c=_0x1ce9d4['backgroundColor'])!=null?_0x5e474c:this['_backgroundColor'],this['transformByState']({'width':_0x1ce9d4[_0x18b9bd(0x335)],'height':_0x1ce9d4['height']});}['onMouseMove'](_0x3803a5){const _0x592d62=_0x13f83f,{row:_0xac00c8,column:_0x412727}=_0x3803a5;if(_0xac00c8>=this[_0x592d62(0x355)][_0x592d62(0x198)]&&_0xac00c8<=this[_0x592d62(0x355)]['endRow']&&_0x412727>=this[_0x592d62(0x355)][_0x592d62(0x39f)]&&_0x412727<=this['_range'][_0x592d62(0x419)]){this[_0x592d62(0x207)]({'hovered':!0x0});return;}this[_0x592d62(0x207)]({'hovered':!0x1});}[_0x13f83f(0x33e)](_0x4a4e9f){return!0x1;}[_0x13f83f(0x242)](_0x353717){const _0x2a6ac5=_0x13f83f;C[_0x2a6ac5(0x211)][_0x2a6ac5(0x293)](_0x353717,{'width':this[_0x2a6ac5(0x335)],'height':this[_0x2a6ac5(0x297)],'strokeWidth':Mt,'stroke':this[_0x2a6ac5(0x261)],'evented':!0x1,'fill':this[_0x2a6ac5(0x343)]}),this[_0x2a6ac5(0x1aa)]&&(_0x353717[_0x2a6ac5(0x2b6)](),_0x353717[_0x2a6ac5(0x192)](0x1,0x0,0x0,0x1,this[_0x2a6ac5(0x335)],this[_0x2a6ac5(0x256)]==='bottom'?0x0:-X),ie[_0x2a6ac5(0x293)](_0x353717,{'text':this['_name'],'color':this[_0x2a6ac5(0x261)]}),_0x353717[_0x2a6ac5(0x2b0)]());}}var At=Object['getOwnPropertyDescriptor'],Pt=(_0x1294ba,_0x56481d,_0xb99628,_0x30e8aa)=>{const _0x52efd5=_0x13f83f;for(var _0x377071=_0x30e8aa>0x1?void 0x0:_0x30e8aa?At(_0x56481d,_0xb99628):_0x56481d,_0x4a69b4=_0x1294ba[_0x52efd5(0x2c4)]-0x1,_0x1b4661;_0x4a69b4>=0x0;_0x4a69b4--)(_0x1b4661=_0x1294ba[_0x4a69b4])&&(_0x377071=_0x1b4661(_0x377071)||_0x377071);return _0x377071;},_e=(_0x3bf827,_0x398270)=>(_0x35e455,_0x182ff4)=>_0x398270(_0x35e455,_0x182ff4,_0x3bf827);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x459a2f,_0x311584,_0x16e98b,_0x31209a){const _0x164307=_0x13f83f;super(),_(this,_0x164307(0x25d),new Set()),_(this,_0x164307(0x2f5),null),(this[_0x164307(0x354)]=_0x459a2f,this[_0x164307(0x23e)]=_0x311584,this[_0x164307(0x1b4)]=_0x16e98b,this[_0x164307(0x409)]=_0x31209a,this[_0x164307(0x2f4)]());}['_init'](){const _0xb7fb4a=_0x13f83f;this['_sheetSkeletonManagerService'][_0xb7fb4a(0x2f0)][_0xb7fb4a(0x253)]($[_0xb7fb4a(0x170)](this[_0xb7fb4a(0x204)]),$[_0xb7fb4a(0x214)](_0x2e5527=>{const _0x43b950=_0xb7fb4a;if(_0x2e5527){const _0x45347a=_0x2e5527[_0x43b950(0x230)];return I[_0x43b950(0x200)](this[_0x43b950(0x1b4)]['getCollabCursors$'](this[_0x43b950(0x354)]['unitId']),this[_0x43b950(0x409)][_0x43b950(0x1c1)])[_0x43b950(0x253)]($[_0x43b950(0x2cc)](([_0x52086f,_0xaa6d5b])=>{const _0x4a8ad7=new Map();return _0x52086f['forEach']((_0xa15a43,_0x1ca09a)=>{const _0x3723d4=_0x54f0;if(_0xa15a43[_0x3723d4(0x3fe)]===_0x45347a){const _0x4f4101={..._0xa15a43};_0x4f4101[_0x3723d4(0x2d5)]=this[_0x3723d4(0x409)][_0x3723d4(0x411)](_0xa15a43[_0x3723d4(0x2d5)]),_0x4a8ad7[_0x3723d4(0x20b)](_0x1ca09a,_0x4f4101);}}),{'skeleton':_0x2e5527,'cursors':_0x4a8ad7};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0xb7fb4a(0x2ec)](({skeleton:_0x234a4e,cursors:_0x4f5b23})=>{const _0x4fa4bd=_0xb7fb4a;this[_0x4fa4bd(0x3f8)](),_0x234a4e&&this['_updateCollabCursors'](_0x234a4e,_0x4f5b23);}),this['_sheetSkeletonManagerService'][_0xb7fb4a(0x2f0)][_0xb7fb4a(0x2ec)](_0x28758a=>{const _0x60ef92=_0xb7fb4a;if(_0x28758a==null)return;const {skeleton:_0x1cb832}=_0x28758a,{scene:_0x1284ff}=this[_0x60ef92(0x354)];_0x1284ff[_0x60ef92(0x2f6)]['subscribeEvent'](a['debounce'](_0x38ad8f=>{const _0x5d9388=_0x60ef92;var _0x4e0237,_0x593667;const {offsetX:_0x564d7a,offsetY:_0x5dea73}=_0x38ad8f,{x:_0x453d78,y:_0x1d4430}=_0x1284ff[_0x5d9388(0x2db)](C[_0x5d9388(0x41e)][_0x5d9388(0x27f)]([_0x564d7a,_0x5dea73])),{scaleX:_0x599023,scaleY:_0x462deb}=_0x1284ff[_0x5d9388(0x352)](),_0x2d6af4=_0x1284ff[_0x5d9388(0x38c)](C['SHEET_VIEWPORT_KEY'][_0x5d9388(0x3c1)]),_0x381592=_0x1284ff[_0x5d9388(0x28e)](C[_0x5d9388(0x41e)]['FromArray']([_0x453d78,_0x1d4430]),_0x2d6af4),_0x58795e=_0x1cb832['getCellPositionByOffset'](_0x564d7a,_0x5dea73,_0x599023,_0x462deb,_0x381592);((_0x4e0237=this[_0x5d9388(0x2f5)])==null?void 0x0:_0x4e0237[_0x5d9388(0x2a6)])===_0x58795e['column']&&((_0x593667=this[_0x5d9388(0x2f5)])==null?void 0x0:_0x593667[_0x5d9388(0x41c)])===_0x58795e['row']||this[_0x5d9388(0x25d)][_0x5d9388(0x3f0)](_0x40ac04=>{const _0x331860=_0x5d9388;_0x40ac04[_0x331860(0x3ac)](_0x58795e);});},0x64));});}[_0x13f83f(0x235)](_0x3bd622,_0xed84ea){const _0x59e929=_0x13f83f;var _0x543df1;const _0x45efc5=(_0x543df1=this[_0x59e929(0x23e)][_0x59e929(0x31d)]())==null?void 0x0:_0x543df1['skeleton'];if(!_0x45efc5)return;const _0x1b89ca=this[_0x59e929(0x1c2)]();if(!_0x1b89ca)return;this[_0x59e929(0x25d)][_0x59e929(0x3f0)](_0x45942c=>{const _0x37a6b3=_0x59e929;_0x45942c[_0x37a6b3(0x1b3)]();});const {scene:_0x34e404}=_0x1b89ca,_0x2cb203=yt(Array[_0x59e929(0x367)](_0xed84ea[_0x59e929(0x25a)]()))[_0x59e929(0x2cc)](_0x2334c0=>{const _0x2556c9=_0x59e929,{color:_0x38a03e,range:_0x477f35,name:_0x472004,selection:_0xc49ae9,sheetID:_0x21b34c}=_0x2334c0,{startColumn:_0x41e8b1,startRow:_0x126cf3,endColumn:_0x17ccdb,endRow:_0x340797}=_0x477f35,_0x3c1b32=z['getCoordByCell'](_0x126cf3,_0x41e8b1,_0x34e404,_0x45efc5),_0x5ae5e3=z[_0x2556c9(0x280)](_0x340797,_0x17ccdb,_0x34e404,_0x45efc5),{columnHeaderHeightAndMarginTop:_0x747782}=_0x45efc5,{startX:_0x4f0c58,startY:_0x318b6f}=_0x3c1b32,{endX:_0x91b6cd,endY:_0x17c05b}=_0x5ae5e3,_0x38628d=_0x91b6cd-_0x4f0c58,_0x3a0398=_0x17c05b-_0x318b6f,_0x47fbbd={'labelPosition':_0x318b6f-_0x747782>=X?'top':'bottom','sheetID':_0x21b34c,'range':_0x477f35,'color':_0x38a03e,'name':_0x472004,'selection':_0xc49ae9,'left':_0x4f0c58,'top':_0x318b6f,'width':_0x38628d,'height':_0x3a0398,'evented':!0x1,'zIndex':wt};return new Be(_0x472004,_0x47fbbd);});_0x34e404[_0x59e929(0x3ce)](_0x2cb203,Lt),this['_cursors']=new Set(_0x2cb203);}[_0x13f83f(0x3f8)](){const _0x4ab2cd=_0x13f83f;var _0x28aabb;(_0x28aabb=this[_0x4ab2cd(0x25d)])==null||_0x28aabb[_0x4ab2cd(0x3f0)](_0x2e979d=>_0x2e979d[_0x4ab2cd(0x208)]());}[_0x13f83f(0x1c2)](){const _0x49a945=_0x13f83f;return z[_0x49a945(0x2a9)](this['_context']['unit'],this['_context']);}};ve=Pt([_e(0x1,a[_0x13f83f(0x3f5)](z['SheetSkeletonManagerService'])),_e(0x2,a[_0x13f83f(0x3f5)](B)),_e(0x3,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x2eb)]))],ve);function yt(_0x5ec871){const _0x32bef4=_0x13f83f,_0x532d6b=new Map();return _0x5ec871['forEach'](_0x2e608d=>{const _0x20eb0b=_0x54f0;if(_0x532d6b[_0x20eb0b(0x279)](_0x2e608d[_0x20eb0b(0x2dc)])){const _0x3fa913=_0x532d6b[_0x20eb0b(0x2fc)](_0x2e608d[_0x20eb0b(0x2dc)]);_0x3fa913[_0x20eb0b(0x390)]+=',\x20'+_0x2e608d[_0x20eb0b(0x390)];}else _0x532d6b[_0x20eb0b(0x20b)](_0x2e608d[_0x20eb0b(0x2dc)],_0x2e608d);}),Array['from'](_0x532d6b[_0x32bef4(0x25a)]());}var $t=Object[_0x13f83f(0x2f9)],xt=(_0x414e2d,_0x4fdcf7,_0x14c0fa,_0x3a226c)=>{for(var _0x47c7d0=_0x3a226c>0x1?void 0x0:_0x3a226c?$t(_0x4fdcf7,_0x14c0fa):_0x4fdcf7,_0x26836e=_0x414e2d['length']-0x1,_0x49a5bc;_0x26836e>=0x0;_0x26836e--)(_0x49a5bc=_0x414e2d[_0x26836e])&&(_0x47c7d0=_0x49a5bc(_0x47c7d0)||_0x47c7d0);return _0x47c7d0;},y=(_0x2fb40d,_0x19cac4)=>(_0x4101aa,_0xef979e)=>_0x19cac4(_0x4101aa,_0xef979e,_0x2fb40d);let J=class extends a[_0x13f83f(0x2aa)]{constructor(_0x304462,_0x4784ee,_0x4faf49,_0x31255d,_0x4fdefd,_0x2d912d){const _0x5a6b07=_0x13f83f;super(),this[_0x5a6b07(0x24e)]=_0x304462,this[_0x5a6b07(0x337)]=_0x4784ee,this[_0x5a6b07(0x2ff)]=_0x4faf49,this[_0x5a6b07(0x19b)]=_0x31255d,this[_0x5a6b07(0x1cd)]=_0x4fdefd,this['_localeService']=_0x2d912d,this[_0x5a6b07(0x388)](),this[_0x5a6b07(0x1b1)]();}[_0x13f83f(0x388)](){const _0x55ea42=_0x13f83f;this[_0x55ea42(0x217)](this['_beforeCloseService'][_0x55ea42(0x1e4)](()=>{const _0x319266=_0x55ea42;if(this[_0x319266(0x337)][_0x319266(0x2e3)][_0x319266(0x3b5)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x13f83f(0x1b1)](){const _0x26ee2c=_0x13f83f;this[_0x26ee2c(0x217)](this['_collaborationUIEventService'][_0x26ee2c(0x238)]['subscribe'](_0x31bd7f=>{const _0x1eb424=_0x26ee2c;_0x31bd7f['id']===u['CollaborationUIEventId'][_0x1eb424(0x263)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x18f))}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x173)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T['MessageType'][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x270))}),_0x31bd7f['id']===u['CollaborationUIEventId'][_0x1eb424(0x281)]&&this[_0x1eb424(0x1cd)][_0x1eb424(0x199)]({'title':this['_localeService']['t'](_0x1eb424(0x398)),'content':this['_localeService']['t'](_0x1eb424(0x349)),'type':_0x1eb424(0x317),'duration':0x0}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x196)]&&this['_messageService'][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x326)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x31bd7f['data']+')'}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x31e)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x31bd7f['data']||'')}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x202)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x3b7))}),_0x31bd7f['id']===u['CollaborationUIEventId'][_0x1eb424(0x232)]&&this['_messageService'][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x326)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x17f))}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x2ac)]&&this[_0x1eb424(0x19b)]['show']({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x326)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x3a6))});}));}};J=xt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x13f83f(0x176)]),y(0x2,a[_0x13f83f(0x3f5)](u[_0x13f83f(0x393)])),y(0x3,O[_0x13f83f(0x1eb)]),y(0x4,O[_0x13f83f(0x374)]),y(0x5,a[_0x13f83f(0x3f5)](a['LocaleService']))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x13f83f(0x2f9)],kt=(_0x216da0,_0x321f33,_0x3f8569,_0x53c0bd)=>{for(var _0x4668c7=_0x53c0bd>0x1?void 0x0:_0x53c0bd?Ft(_0x321f33,_0x3f8569):_0x321f33,_0x2c3778=_0x216da0['length']-0x1,_0x329c25;_0x2c3778>=0x0;_0x2c3778--)(_0x329c25=_0x216da0[_0x2c3778])&&(_0x4668c7=_0x329c25(_0x4668c7)||_0x4668c7);return _0x4668c7;},Le=(_0xa6a784,_0x2d06ac)=>(_0x3a1269,_0x236489)=>_0x2d06ac(_0x3a1269,_0x236489,_0xa6a784);let Z=class{constructor(_0x4a950c,_0x127920){const _0x421020=_0x13f83f;this[_0x421020(0x23c)]=_0x4a950c,this['_renderManagerService']=_0x127920;}[_0x13f83f(0x2b3)](_0x47dde7){const _0xef5697=_0x13f83f;this[_0xef5697(0x35c)](_0x47dde7),this['_transformPreviousActiveRange'](_0x47dde7);}[_0x13f83f(0x21f)](_0x11459e){const _0xfa3177=_0x13f83f,{unitID:_0x4e5797}=_0x11459e,_0x182bf9=this[_0xfa3177(0x248)][_0xfa3177(0x39d)](_0x4e5797)['with'](p[_0xfa3177(0x341)]),{redoCache:_0x2c69c5}=_0x182bf9[_0xfa3177(0x39a)]();if(_0x2c69c5['length']===0x0)return _0x11459e;let _0x25f168=a[_0xfa3177(0x260)][_0xfa3177(0x34c)](_0x11459e[_0xfa3177(0x234)][0x0]);for(let _0x1b6244=0x0;_0x1b6244<_0x2c69c5['length'];_0x1b6244++){const _0x2ff547={'id':_0xfa3177(0x361),'params':{..._0x2c69c5[_0x1b6244]}},_0x5b8291=this[_0xfa3177(0x23c)][_0xfa3177(0x2f7)](_0x25f168,_0x2ff547,!0x1);if(v[_0xfa3177(0x312)](_0x5b8291))throw _0x5b8291['error'];_0x25f168=_0x5b8291[_0xfa3177(0x1bc)];}return{...a[_0xfa3177(0x260)][_0xfa3177(0x34c)](_0x11459e),'mutations':[_0x25f168]};}[_0x13f83f(0x35c)](_0x7c94ac){const _0x4c2ed7=_0x13f83f,{unitID:_0x226926}=_0x7c94ac,_0x236a90=this[_0x4c2ed7(0x248)]['getRenderById'](_0x226926)[_0x4c2ed7(0x336)](p[_0x4c2ed7(0x341)]),{undoCache:_0x527ecd,redoCache:_0x3b98ba}=_0x236a90[_0x4c2ed7(0x39a)]();if(_0x527ecd['length']===0x0||_0x3b98ba[_0x4c2ed7(0x2c4)]===0x0)return;const _0xe642f6=[],_0x5819ba=[];let _0x5046c1=a[_0x4c2ed7(0x260)]['deepClone'](_0x7c94ac['mutations'][0x0]),_0x48bae1=a[_0x4c2ed7(0x260)]['deepClone'](_0x7c94ac['mutations'][0x0]);for(let _0xf23efd=_0x527ecd['length']-0x1;_0xf23efd>=0x0;_0xf23efd--){const _0x3b9263={'id':_0x4c2ed7(0x361),'params':{..._0x527ecd[_0xf23efd]}},_0x3bb1ad={'id':'doc.mutation.rich-text-editing','params':{..._0x3b98ba[_0xf23efd]}},_0x5c1a99=this[_0x4c2ed7(0x23c)][_0x4c2ed7(0x2f7)](_0x5046c1,_0x3b9263,!0x1),_0x28ab16=this[_0x4c2ed7(0x23c)][_0x4c2ed7(0x2f7)](_0x48bae1,_0x3bb1ad,!0x1);if(v[_0x4c2ed7(0x312)](_0x5c1a99))throw _0x5c1a99[_0x4c2ed7(0x317)];if(v[_0x4c2ed7(0x312)](_0x28ab16))throw _0x28ab16[_0x4c2ed7(0x317)];_0xe642f6[_0x4c2ed7(0x1d4)](_0x5c1a99[_0x4c2ed7(0x301)][_0x4c2ed7(0x314)]),_0x5819ba[_0x4c2ed7(0x1d4)](_0x28ab16[_0x4c2ed7(0x301)][_0x4c2ed7(0x314)]),_0x5046c1=_0x5c1a99[_0x4c2ed7(0x1bc)],_0x48bae1=_0x28ab16[_0x4c2ed7(0x1bc)];}_0x236a90[_0x4c2ed7(0x22f)]({'undoCache':_0xe642f6,'redoCache':_0x5819ba});}[_0x13f83f(0x1f0)](_0x2ed807){const _0x44c806=_0x13f83f,{unitID:_0x14fc77}=_0x2ed807,_0x5b6205=this[_0x44c806(0x248)][_0x44c806(0x39d)](_0x14fc77)[_0x44c806(0x336)](p[_0x44c806(0x341)]),_0x580c8e=_0x5b6205[_0x44c806(0x1ba)]();if(_0x580c8e==null)return;const _0x43b607=[{'id':_0x44c806(0x361),'params':{'unitId':_0x2ed807[_0x44c806(0x385)],'actions':null,'textRanges':[_0x580c8e]}}],_0x4ceb31=this[_0x44c806(0x23c)]['transformMutationsWithChangeset'](_0x2ed807,_0x43b607);if(!v['isTransformMutationsWithChangesetSuccess'](_0x4ceb31))throw _0x4ceb31[_0x44c806(0x317)];const _0x1efdb5=_0x4ceb31['m2Prime'][0x0][_0x44c806(0x314)][_0x44c806(0x29a)];Array[_0x44c806(0x287)](_0x1efdb5)&&_0x1efdb5[_0x44c806(0x2c4)]&&_0x5b6205[_0x44c806(0x403)](_0x1efdb5[0x0]);}};Z=kt([Le(0x0,v[_0x13f83f(0x325)]),Le(0x1,C[_0x13f83f(0x1b5)])],Z);var jt=Object[_0x13f83f(0x2f9)],Yt=(_0x132d9d,_0x7382da,_0x312de0,_0x40dd96)=>{const _0x1ce959=_0x13f83f;for(var _0x553f3b=_0x40dd96>0x1?void 0x0:_0x40dd96?jt(_0x7382da,_0x312de0):_0x7382da,_0x4bc81f=_0x132d9d[_0x1ce959(0x2c4)]-0x1,_0x15af61;_0x4bc81f>=0x0;_0x4bc81f--)(_0x15af61=_0x132d9d[_0x4bc81f])&&(_0x553f3b=_0x15af61(_0x553f3b)||_0x553f3b);return _0x553f3b;},he=(_0xac18a,_0x4ccb56)=>(_0x447eff,_0x2906f7)=>_0x4ccb56(_0x447eff,_0x2906f7,_0xac18a);let Q=class{constructor(_0x500c1f,_0x4ab4dd,_0x3636eb){const _0x5b8b21=_0x13f83f;this[_0x5b8b21(0x182)]=_0x500c1f,this['_transformService']=_0x4ab4dd,this[_0x5b8b21(0x177)]=_0x3636eb;}[_0x13f83f(0x324)](_0x5c7f49){this['_transformHistoryAndStateStack'](_0x5c7f49);}[_0x13f83f(0x21f)](_0x3b953d){const _0x53097a=_0x13f83f,{unitID:_0x1bbfdb}=_0x3b953d,{collaboration:_0x3b422a}=this['_docStateChangeManagerService'][_0x53097a(0x1df)](_0x1bbfdb);if(_0x3b422a[_0x53097a(0x2c4)]===0x0)return _0x3b953d;let _0x4c482b=a['Tools'][_0x53097a(0x34c)](_0x3b953d[_0x53097a(0x234)][0x0]);for(let _0xd05208=0x0;_0xd05208<_0x3b422a['length'];_0xd05208++){const _0x3dcd3a={'id':_0x53097a(0x361),'params':{'unitId':_0x3b422a[_0xd05208]['unitId'],..._0x3b422a[_0xd05208][_0x53097a(0x2d2)]}},_0x46f2f7=this['_transformService']['transformMutation'](_0x4c482b,_0x3dcd3a,!0x1);if(v[_0x53097a(0x312)](_0x46f2f7))throw _0x46f2f7[_0x53097a(0x317)];_0x4c482b=_0x46f2f7[_0x53097a(0x1bc)];}return{...a[_0x53097a(0x260)]['deepClone'](_0x3b953d),'mutations':[_0x4c482b]};}[_0x13f83f(0x34b)](_0xf60146){const _0x379dce=_0x13f83f,{unitID:_0x16dfc8}=_0xf60146,{history:_0x5500eb,collaboration:_0x374f1c}=this['_docStateChangeManagerService'][_0x379dce(0x1df)](_0x16dfc8);if(_0x5500eb[_0x379dce(0x2c4)]===0x0&&_0x374f1c[_0x379dce(0x2c4)]===0x0)return;const _0x273504=[],_0x7b23ad=[];let _0x5cb66d=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146[_0x379dce(0x234)][0x0]),_0x21c283=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146[_0x379dce(0x234)][0x0]);for(let _0x486888=_0x5500eb[_0x379dce(0x2c4)]-0x1;_0x486888>=0x0;_0x486888--){const _0x49a1c8={'id':_0x379dce(0x361),'params':{'unitId':_0x5500eb[_0x486888][_0x379dce(0x36a)],..._0x5500eb[_0x486888][_0x379dce(0x358)]}},_0x30dcfc={'id':_0x379dce(0x361),'params':{'unitId':_0x5500eb[_0x486888][_0x379dce(0x36a)],..._0x5500eb[_0x486888][_0x379dce(0x2d2)]}},_0x23af75=this[_0x379dce(0x23c)][_0x379dce(0x2f7)](_0x5cb66d,_0x49a1c8,!0x1),_0x41eba7=this['_transformService'][_0x379dce(0x2f7)](_0x21c283,_0x30dcfc,!0x1);if(v[_0x379dce(0x312)](_0x23af75))throw _0x23af75['error'];if(v['isTransformMutationFailure'](_0x41eba7))throw _0x41eba7[_0x379dce(0x317)];_0x273504['unshift']({..._0x5500eb[_0x486888],'undoState':_0x23af75['m2Prime'][_0x379dce(0x314)],'redoState':_0x41eba7[_0x379dce(0x301)]['params']}),_0x5cb66d=_0x23af75[_0x379dce(0x1bc)],_0x21c283=_0x41eba7[_0x379dce(0x1bc)];}_0x5cb66d=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146[_0x379dce(0x234)][0x0]),_0x21c283=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146['mutations'][0x0]);for(let _0xa3aa39=_0x374f1c[_0x379dce(0x2c4)]-0x1;_0xa3aa39>=0x0;_0xa3aa39--){const _0x258fb7={'id':_0x379dce(0x361),'params':{'unitId':_0x374f1c[_0xa3aa39][_0x379dce(0x36a)],..._0x374f1c[_0xa3aa39][_0x379dce(0x358)]}},_0x3139e8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x374f1c[_0xa3aa39]['unitId'],..._0x374f1c[_0xa3aa39][_0x379dce(0x2d2)]}},_0x1fe530=this[_0x379dce(0x23c)][_0x379dce(0x2f7)](_0x5cb66d,_0x258fb7,!0x1),_0x239943=this[_0x379dce(0x23c)][_0x379dce(0x2f7)](_0x21c283,_0x3139e8,!0x1);if(v[_0x379dce(0x312)](_0x1fe530))throw _0x1fe530[_0x379dce(0x317)];if(v['isTransformMutationFailure'](_0x239943))throw _0x239943['error'];_0x7b23ad[_0x379dce(0x1d4)]({..._0x374f1c[_0xa3aa39],'undoState':_0x1fe530['m2Prime']['params'],'redoState':_0x239943['m2Prime'][_0x379dce(0x314)]}),_0x5cb66d=_0x1fe530[_0x379dce(0x1bc)],_0x21c283=_0x239943[_0x379dce(0x1bc)];}this['_docStateChangeManagerService'][_0x379dce(0x313)](_0x16dfc8,{'history':_0x273504,'collaboration':_0x7b23ad});}};Q=Yt([he(0x0,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),he(0x1,v[_0x13f83f(0x325)]),he(0x2,a[_0x13f83f(0x3f5)](p[_0x13f83f(0x26a)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x2e1a24,_0x1b0099,_0x3a3e2d,_0xe1f207)=>{const _0x585838=_0x13f83f;for(var _0x171ac5=_0xe1f207>0x1?void 0x0:_0xe1f207?Ht(_0x1b0099,_0x3a3e2d):_0x1b0099,_0x2d1fa4=_0x2e1a24[_0x585838(0x2c4)]-0x1,_0x4bed4a;_0x2d1fa4>=0x0;_0x2d1fa4--)(_0x4bed4a=_0x2e1a24[_0x2d1fa4])&&(_0x171ac5=_0x4bed4a(_0x171ac5)||_0x171ac5);return _0x171ac5;},Me=(_0x5f5a6d,_0x25208e)=>(_0x2cf7dc,_0x374ad4)=>_0x25208e(_0x2cf7dc,_0x374ad4,_0x5f5a6d);let ee=class{constructor(_0xa4602,_0x10c408){const _0x56b1d7=_0x13f83f;this['_injector']=_0xa4602,this[_0x56b1d7(0x23c)]=_0x10c408;}[_0x13f83f(0x2c2)](_0x2ec3f){const _0x4a4192=_0x13f83f;var _0x451199;const _0x362a5d=this[_0x4a4192(0x182)]['get'](W['DocSelectionManagerService']),_0x24192d=(_0x451199=_0x362a5d[_0x4a4192(0x40c)]())!=null?_0x451199:[];if(_0x24192d[_0x4a4192(0x2c4)]===0x0)return;const _0x144674=_0x2ec3f[_0x4a4192(0x385)],_0x3f9261=[{'id':_0x4a4192(0x361),'params':{'unitId':_0x144674,'actions':null,'textRanges':_0x24192d}}],_0x3d8804=this[_0x4a4192(0x23c)]['transformMutationsWithChangeset'](_0x2ec3f,_0x3f9261);if(!v['isTransformMutationsWithChangesetSuccess'](_0x3d8804))throw _0x3d8804['error'];const _0x2783d7=_0x3d8804[_0x4a4192(0x301)][0x0][_0x4a4192(0x314)]['textRanges'];Array[_0x4a4192(0x287)](_0x2783d7)&&_0x2783d7[_0x4a4192(0x2c4)]&&_0x362a5d[_0x4a4192(0x269)](_0x2783d7,{'unitId':_0x144674,'subUnitId':_0x144674},!0x1);}};ee=Wt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,v[_0x13f83f(0x325)])],ee);var Vt=Object[_0x13f83f(0x2f9)],Gt=(_0x28b281,_0x2df04a,_0x5e51b1,_0x469876)=>{const _0x155190=_0x13f83f;for(var _0x210a54=_0x469876>0x1?void 0x0:_0x469876?Vt(_0x2df04a,_0x5e51b1):_0x2df04a,_0x2ab91e=_0x28b281[_0x155190(0x2c4)]-0x1,_0x312965;_0x2ab91e>=0x0;_0x2ab91e--)(_0x312965=_0x28b281[_0x2ab91e])&&(_0x210a54=_0x312965(_0x210a54)||_0x210a54);return _0x210a54;},N=(_0x1fe1fe,_0x59e62d)=>(_0x25278f,_0x871e52)=>_0x59e62d(_0x25278f,_0x871e52,_0x1fe1fe);let te=class extends a[_0x13f83f(0x2aa)]{constructor(_0x36ba60,_0x55cd19,_0x4a0f36,_0x30a583,_0x5e03b5,_0x4eb3da,_0x49fede,_0x36362c){const _0x1304e6=_0x13f83f;super(),_(this,_0x1304e6(0x346),new I['BehaviorSubject'](u[_0x1304e6(0x407)]['NOT_COLLAB'])),(this[_0x1304e6(0x177)]=_0x36ba60,this['_collaborationController']=_0x55cd19,this[_0x1304e6(0x262)]=_0x4a0f36,this[_0x1304e6(0x231)]=_0x30a583,this[_0x1304e6(0x1ae)]=_0x5e03b5,this['_docSyncEditingCollabCursorService']=_0x4eb3da,this[_0x1304e6(0x19b)]=_0x49fede,this[_0x1304e6(0x245)]=_0x36362c,this[_0x1304e6(0x405)]());}[_0x13f83f(0x405)](){const _0x498f24=_0x13f83f;this[_0x498f24(0x217)](this[_0x498f24(0x2cb)][_0x498f24(0x3dd)][_0x498f24(0x2ec)](_0x1557c6=>{const _0x4b3548=_0x498f24,_0x2cfc1b=this[_0x4b3548(0x177)][_0x4b3548(0x3db)][_0x4b3548(0x2ec)](_0x4fe14b=>{const _0x3ac898=_0x4b3548;if(_0x4fe14b==null)return;const {unitId:_0x3be781,redoState:_0x4c5c60,commandId:_0x3ca2bb}=_0x4fe14b;if(_0x3be781!==_0x1557c6[_0x3ac898(0x385)])return;const _0x5a9430={'id':_0x3ca2bb,'type':a[_0x3ac898(0x1a0)]['MUTATION'],'params':{'unitId':_0x3be781,'actions':_0x4c5c60['actions'],'textRanges':null}};_0x1557c6[_0x3ac898(0x38b)](_0x5a9430);});if(_0x1557c6[_0x4b3548(0x217)](_0x2cfc1b),_0x1557c6 instanceof u[_0x4b3548(0x1a7)]){const _0x17c317={'onTransformIME':_0xd1f2cf=>this[_0x4b3548(0x262)][_0x4b3548(0x2b3)](_0xd1f2cf),'onTransformState':_0x35e271=>this[_0x4b3548(0x231)][_0x4b3548(0x324)](_0x35e271),'onTransformSelections':_0xe993c3=>this[_0x4b3548(0x1ae)]['transformSelections'](_0xe993c3),'onSyncEditingCollabCursor':_0x186897=>this['_docSyncEditingCollabCursorService'][_0x4b3548(0x26d)](_0x186897),'onTransformRemoteChangesetByIMECache':_0x91bf82=>this[_0x4b3548(0x262)][_0x4b3548(0x21f)](_0x91bf82),'onTransformRemoteChangesetByStateCache':_0x3a1da7=>this[_0x4b3548(0x231)][_0x4b3548(0x21f)](_0x3a1da7)};_0x1557c6[_0x4b3548(0x35a)](_0x17c317);}}));}};te=Gt([N(0x0,a[_0x13f83f(0x3f5)](p['DocStateChangeManagerService'])),N(0x1,a[_0x13f83f(0x3f5)](u[_0x13f83f(0x413)])),N(0x2,a[_0x13f83f(0x3f5)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a[_0x13f83f(0x3f5)](ee)),N(0x5,a[_0x13f83f(0x3f5)](Oe)),N(0x6,O[_0x13f83f(0x1eb)]),N(0x7,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x37d)]))],te);var V=(_0x5f5b63=>(_0x5f5b63[_0x5f5b63[_0x13f83f(0x286)]=0x0]=_0x13f83f(0x286),_0x5f5b63[_0x5f5b63['OK']=0x1]='OK',_0x5f5b63[_0x5f5b63[_0x13f83f(0x3ca)]=0x2]='INTERNAL_ERROR',_0x5f5b63[_0x5f5b63[_0x13f83f(0x281)]=0x3]='PERMISSION_DENIED',_0x5f5b63[_0x5f5b63[_0x13f83f(0x36d)]=0x4]=_0x13f83f(0x36d),_0x5f5b63[_0x5f5b63['UNAUTHENTICATED']=0x5]=_0x13f83f(0x218),_0x5f5b63[_0x5f5b63['ALREADY_EXISTS']=0x6]=_0x13f83f(0x33b),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2d9)]=0x7]=_0x13f83f(0x2d9),_0x5f5b63[_0x5f5b63[_0x13f83f(0x1f6)]=0x8]='TOO_MANY_REQUESTS',_0x5f5b63[_0x5f5b63[_0x13f83f(0x2f3)]=0x9]=_0x13f83f(0x2f3),_0x5f5b63[_0x5f5b63[_0x13f83f(0x29f)]=0xa]=_0x13f83f(0x29f),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3d6)]=0xb]=_0x13f83f(0x3d6),_0x5f5b63[_0x5f5b63['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x13f83f(0x3b0),_0x5f5b63[_0x5f5b63[_0x13f83f(0x21a)]=0xd]=_0x13f83f(0x21a),_0x5f5b63[_0x5f5b63['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5f5b63[_0x5f5b63['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x13f83f(0x20f),_0x5f5b63[_0x5f5b63['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5f5b63[_0x5f5b63[_0x13f83f(0x40e)]=0x64]=_0x13f83f(0x40e),_0x5f5b63[_0x5f5b63[_0x13f83f(0x304)]=0x65]=_0x13f83f(0x304),_0x5f5b63[_0x5f5b63[_0x13f83f(0x191)]=0xc9]=_0x13f83f(0x191),_0x5f5b63[_0x5f5b63[_0x13f83f(0x41a)]=0xca]=_0x13f83f(0x41a),_0x5f5b63[_0x5f5b63['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5f5b63[_0x5f5b63[_0x13f83f(0x18b)]=0x1771]=_0x13f83f(0x18b),_0x5f5b63[_0x5f5b63[_0x13f83f(0x383)]=0x1772]=_0x13f83f(0x383),_0x5f5b63[_0x5f5b63[_0x13f83f(0x28f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x5f5b63[_0x5f5b63[_0x13f83f(0x373)]=0x1b59]=_0x13f83f(0x373),_0x5f5b63[_0x5f5b63[_0x13f83f(0x233)]=0x1b5a]=_0x13f83f(0x233),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3c7)]=0x1b5b]=_0x13f83f(0x3c7),_0x5f5b63[_0x5f5b63[_0x13f83f(0x370)]=0x1b5c]=_0x13f83f(0x370),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3de)]=0x1b5d]=_0x13f83f(0x3de),_0x5f5b63[_0x5f5b63['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5f5b63[_0x5f5b63['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x13f83f(0x278),_0x5f5b63[_0x5f5b63['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x13f83f(0x2b1),_0x5f5b63[_0x5f5b63[_0x13f83f(0x264)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5f5b63[_0x5f5b63['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5f5b63[_0x5f5b63['LICENSE_DISTRO_REJECTED']=0x232d]=_0x13f83f(0x323),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3e9)]=0x2711]=_0x13f83f(0x3e9),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2b4)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5f5b63[_0x5f5b63[_0x13f83f(0x2d8)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5f5b63[_0x5f5b63[_0x13f83f(0x272)]=0x2714]=_0x13f83f(0x272),_0x5f5b63[_0x5f5b63[_0x13f83f(0x347)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x5f5b63[_0x5f5b63[_0x13f83f(0x30d)]=0x271b]=_0x13f83f(0x30d),_0x5f5b63[_0x5f5b63[_0x13f83f(0x39c)]=0x271c]=_0x13f83f(0x39c),_0x5f5b63[_0x5f5b63[_0x13f83f(0x236)]=0x271d]=_0x13f83f(0x236),_0x5f5b63[_0x5f5b63[_0x13f83f(0x1d0)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5f5b63[_0x5f5b63['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x5f5b63[_0x5f5b63[_0x13f83f(0x299)]=0x2720]=_0x13f83f(0x299),_0x5f5b63[_0x5f5b63['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x13f83f(0x415),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3d1)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x5f5b63[_0x5f5b63[_0x13f83f(0x1e0)]=0x2ee2]=_0x13f83f(0x1e0),_0x5f5b63[_0x5f5b63[_0x13f83f(0x306)]=0x2ee3]=_0x13f83f(0x306),_0x5f5b63[_0x5f5b63['USER_NOT_INVITED_CODE']=0x2ee4]=_0x13f83f(0x2b2),_0x5f5b63[_0x5f5b63[_0x13f83f(0x283)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5f5b63[_0x5f5b63[_0x13f83f(0x215)]=0x32c9]=_0x13f83f(0x215),_0x5f5b63[_0x5f5b63['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x13f83f(0x1f2),_0x5f5b63[_0x5f5b63['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x13f83f(0x2fd),_0x5f5b63[_0x5f5b63[_0x13f83f(0x321)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x5f5b63[_0x5f5b63['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x13f83f(0x2f8),_0x5f5b63[_0x5f5b63[_0x13f83f(0x380)]=0x36b3]=_0x13f83f(0x380),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2ea)]=0x36b4]=_0x13f83f(0x2ea),_0x5f5b63[_0x5f5b63['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x13f83f(0x364),_0x5f5b63[_0x5f5b63['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5f5b63[_0x5f5b63['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5f5b63[_0x5f5b63[_0x13f83f(0x32d)]=0x3a99]=_0x13f83f(0x32d),_0x5f5b63[_0x5f5b63[_0x13f83f(0x300)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x5f5b63[_0x5f5b63[_0x13f83f(0x1cf)]=0x3a9b]=_0x13f83f(0x1cf),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2ba)]=0x3a9c]=_0x13f83f(0x2ba),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3ba)]=0x3a9d]=_0x13f83f(0x3ba),_0x5f5b63[_0x5f5b63[_0x13f83f(0x21c)]=0x3a9e]=_0x13f83f(0x21c),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3a5)]=0x3a9f]=_0x13f83f(0x3a5),_0x5f5b63[_0x5f5b63[_0x13f83f(0x249)]=-0x1]=_0x13f83f(0x249),_0x5f5b63))(V||{});function _0x54f0(_0x3d059c,_0x5680f4){const _0x298ee6=_0x298e();return _0x54f0=function(_0x54f014,_0x18ed23){_0x54f014=_0x54f014-0x16b;let _0x4c3673=_0x298ee6[_0x54f014];return _0x4c3673;},_0x54f0(_0x3d059c,_0x5680f4);}function Xt(_0x2879f8){const _0x48f9ac=_0x13f83f;var _0x4852de,_0x1bbd16;const _0x181393=(_0x4852de=_0x2879f8['stageInfo'])==null?void 0x0:_0x4852de['stage'],_0x3b4baf=((_0x1bbd16=_0x2879f8[_0x48f9ac(0x40a)])==null?void 0x0:_0x1bbd16[_0x48f9ac(0x2c6)])||0x0;return _0x181393===x[_0x48f9ac(0x2e0)][_0x48f9ac(0x334)]&&_0x3b4baf>0x0;}function Kt(_0x5c97fc){const _0x1c0c29=_0x13f83f;return _0x5c97fc[_0x1c0c29(0x1f4)]===x[_0x1c0c29(0x34f)][_0x1c0c29(0x35f)];}var qt=Object['getOwnPropertyDescriptor'],zt=(_0x37a2b5,_0x439c9d,_0x2d2253,_0x47fddc)=>{const _0x480620=_0x13f83f;for(var _0x30b967=_0x47fddc>0x1?void 0x0:_0x47fddc?qt(_0x439c9d,_0x2d2253):_0x439c9d,_0x22814e=_0x37a2b5[_0x480620(0x2c4)]-0x1,_0x7df086;_0x22814e>=0x0;_0x22814e--)(_0x7df086=_0x37a2b5[_0x22814e])&&(_0x30b967=_0x7df086(_0x30b967)||_0x30b967);return _0x30b967;},L=(_0x260e99,_0x201c54)=>(_0xa1fa7f,_0x119156)=>_0x201c54(_0xa1fa7f,_0x119156,_0x260e99);const Jt=_0x13f83f(0x310),Zt=_0x13f83f(0x244),Qt=_0x13f83f(0x3df);let se=class extends a[_0x13f83f(0x2aa)]{constructor(_0x284e2c,_0x14bdc7,_0x505607,_0x354351,_0x4bff31,_0x300cbe,_0x5cda23){const _0x298f6a=_0x13f83f;super(),_(this,'_pollingInterval',null),_(this,_0x298f6a(0x212),0x0),_(this,_0x298f6a(0x2ca),0x0),_(this,_0x298f6a(0x23b),[]),_(this,_0x298f6a(0x1b9),0x0),(this[_0x298f6a(0x19b)]=_0x284e2c,this[_0x298f6a(0x184)]=_0x14bdc7,this['_configService']=_0x505607,this[_0x298f6a(0x3b9)]=_0x354351,this[_0x298f6a(0x292)]=_0x4bff31,this[_0x298f6a(0x1be)]=_0x300cbe,this[_0x298f6a(0x245)]=_0x5cda23,this['_initCommandInterceptor']());}[_0x13f83f(0x1dc)](){const _0x196c2b=_0x13f83f;this['disposeWithMe'](this[_0x196c2b(0x184)][_0x196c2b(0x27c)]((_0x386c2c,_0x17a780)=>{const _0x4ca76f=_0x196c2b;if(_0x386c2c['id']!==x[_0x4ca76f(0x275)]['id'])return;const _0x195572=_0x386c2c[_0x4ca76f(0x314)];if(!this[_0x4ca76f(0x376)](_0x195572['dirtyRanges']))return;if(!this[_0x4ca76f(0x2e6)]())throw this['_checkAndWaitForCalculationPermission'](_0x386c2c,_0x17a780),this[_0x4ca76f(0x3b2)](),new a[(_0x4ca76f(0x356))]();})),this['disposeWithMe'](this['_commandService'][_0x196c2b(0x3d7)]((_0x203af7,_0x4dc01b)=>{const _0x1d9425=_0x196c2b;if(_0x203af7['id']!==x[_0x1d9425(0x3b8)]['id'])return;const _0x32ec77=_0x203af7[_0x1d9425(0x314)];if(Xt(_0x32ec77)){const _0xd3550b=a[_0x1d9425(0x237)]();this[_0x1d9425(0x23b)]['push'](_0xd3550b),this['_startCalculationLimit'](_0xd3550b);}else{if(Kt(_0x32ec77)&&this['_taskIds'][_0x1d9425(0x2c4)]>0x0){const _0x20321f=this['_taskIds'][_0x1d9425(0x193)]();this[_0x1d9425(0x23a)](_0x20321f);}}}));}[_0x13f83f(0x208)](){const _0x33de06=_0x13f83f;super[_0x33de06(0x208)](),this['_clearPolling'](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x33de06(0x212)]=0x0,this[_0x33de06(0x1b9)]=0x0;}async[_0x13f83f(0x2a8)](_0x3bc143,_0x46be8e){const _0x4eb451=_0x13f83f;for(let _0x51e76d=0x0;_0x51e76d<0x1e;_0x51e76d++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0x4eb451(0x1c4)](_0x3bc143,_0x46be8e),this['_messageService']['show']({'content':this['_localeService']['t'](_0x4eb451(0x2fa)),'type':T[_0x4eb451(0x2b9)][_0x4eb451(0x3ee)]});return;}await new Promise(_0xf709d3=>{const _0x4f6fa0=_0x4eb451;this['_pollingInterval']=window[_0x4f6fa0(0x3ec)](_0xf709d3,0x3e8);});}catch(_0x3823ab){this['_logService'][_0x4eb451(0x317)](_0x3823ab);}this[_0x4eb451(0x19b)][_0x4eb451(0x199)]({'content':this[_0x4eb451(0x245)]['t']('formula.calculation.unable'),'type':T[_0x4eb451(0x2b9)][_0x4eb451(0x326)]});}[_0x13f83f(0x1c4)](_0xabfc57,_0x1cbded){const _0x3800b9=_0x13f83f;try{this[_0x3800b9(0x184)][_0x3800b9(0x229)](_0xabfc57['id'],_0xabfc57[_0x3800b9(0x314)],_0x1cbded);}catch(_0x4a0990){this[_0x3800b9(0x1be)][_0x3800b9(0x317)](_0x4a0990);}}['_setFormulaLimitStatus'](_0x5e2c93,_0x40dbf9){const _0x396bc3=_0x13f83f;_0x40dbf9<this[_0x396bc3(0x1b9)]||(this[_0x396bc3(0x1b9)]=_0x40dbf9,this['_maxFormulaLimit']=Number[_0x396bc3(0x404)](_0x5e2c93['maxFormulaLimit']),this[_0x396bc3(0x2ca)]=Number[_0x396bc3(0x404)](_0x5e2c93[_0x396bc3(0x295)]));}async['_startCalculationLimit'](_0x57faf9){const _0x53119d=_0x13f83f;var _0x53003a,_0xd36693;const _0x360ed0=Date['now']();try{const _0x82e677=((_0x53003a=this[_0x53119d(0x41d)][_0x53119d(0x2b5)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x53003a[_0x53119d(0x271)])||Zt,_0x21e95e=(await this[_0x53119d(0x3b9)][_0x53119d(0x31b)](_0x82e677,{'body':JSON['stringify']({'taskId':_0x57faf9})}))['body'];if(((_0xd36693=_0x21e95e[_0x53119d(0x317)])==null?void 0x0:_0xd36693[_0x53119d(0x259)])!==V['OK'])return;this[_0x53119d(0x371)](_0x21e95e[_0x53119d(0x410)],_0x360ed0);}catch(_0xbe8e0c){this['_logService'][_0x53119d(0x317)](_0xbe8e0c);}}async[_0x13f83f(0x16b)](_0x56885a){const _0x43ab23=_0x13f83f;var _0x3dd5da,_0xa87a02;const _0xa47079=Date[_0x43ab23(0x187)]();try{const _0x137102=((_0x3dd5da=this[_0x43ab23(0x41d)]['getConfig'](u[_0x43ab23(0x2af)]))==null?void 0x0:_0x3dd5da[_0x43ab23(0x3bb)])||Jt,_0x26420d=_0x56885a?_0x137102+_0x43ab23(0x3fa)+encodeURIComponent(_0x56885a):_0x137102,_0x341721=(await this[_0x43ab23(0x3b9)][_0x43ab23(0x2fc)](_0x26420d))['body'];if(((_0xa87a02=_0x341721[_0x43ab23(0x317)])==null?void 0x0:_0xa87a02[_0x43ab23(0x259)])!==V['OK'])return;this[_0x43ab23(0x371)](_0x341721[_0x43ab23(0x410)],_0xa47079);}catch(_0x14c061){this[_0x43ab23(0x1be)]['error'](_0x14c061);}}async['_releaseCalculationLimit'](_0x35e03d){const _0xdc2a03=_0x13f83f;var _0x1c0efa,_0x5571ee;const _0x39135f=Date[_0xdc2a03(0x187)]();try{const _0x2e5dc3=((_0x1c0efa=this[_0xdc2a03(0x41d)][_0xdc2a03(0x2b5)](u[_0xdc2a03(0x2af)]))==null?void 0x0:_0x1c0efa['releaseFormulaLimitUrl'])||Qt,_0x5a6d4f=(await this[_0xdc2a03(0x3b9)][_0xdc2a03(0x31b)](_0x2e5dc3,{'body':JSON[_0xdc2a03(0x2e2)]({'taskId':_0x35e03d})}))[_0xdc2a03(0x239)];if(((_0x5571ee=_0x5a6d4f[_0xdc2a03(0x317)])==null?void 0x0:_0x5571ee['code'])!==V['OK'])return;this[_0xdc2a03(0x371)](_0x5a6d4f[_0xdc2a03(0x410)],_0x39135f);}catch(_0x7e2ac){this[_0xdc2a03(0x1be)]['error'](_0x7e2ac);}}[_0x13f83f(0x2e6)](){const _0x254007=_0x13f83f;return this[_0x254007(0x212)]===0x0?!0x0:this[_0x254007(0x212)]-this[_0x254007(0x2ca)]>0x0;}[_0x13f83f(0x24f)](){const _0x58e5f2=_0x13f83f;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x58e5f2(0x1a3)]=null);}['_showGuardMessage'](){const _0x599c15=_0x13f83f;this['_messageService'][_0x599c15(0x199)]({'content':this[_0x599c15(0x245)]['t']('formula.calculation.waiting'),'type':T[_0x599c15(0x2b9)]['Loading']});}[_0x13f83f(0x376)](_0x2a64aa){const _0x4e5b4e=_0x13f83f;for(const _0x4bc189 of _0x2a64aa){const {unitId:_0x3789eb,sheetId:_0x518295,range:_0x473b67}=_0x4bc189,_0xd36e93=this['_univerInstanceService'][_0x4e5b4e(0x1ff)](_0x3789eb);if(!_0xd36e93)continue;const _0x3379a1=_0xd36e93[_0x4e5b4e(0x3fd)](_0x518295);if(!_0x3379a1)continue;const _0x7e4146=_0x3379a1[_0x4e5b4e(0x1c9)]();for(let _0x14c69a=_0x473b67[_0x4e5b4e(0x198)];_0x14c69a<=_0x473b67[_0x4e5b4e(0x28c)];_0x14c69a++)for(let _0x47673b=_0x473b67[_0x4e5b4e(0x39f)];_0x47673b<=_0x473b67[_0x4e5b4e(0x419)];_0x47673b++){const _0x3e3409=_0x7e4146['getValue'](_0x14c69a,_0x47673b);if(_0x3e3409&&(a[_0x4e5b4e(0x339)](_0x3e3409['f'])||a[_0x4e5b4e(0x3ff)](_0x3e3409['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x13f83f(0x3f5)](O[_0x13f83f(0x1eb)])),L(0x1,a['ICommandService']),L(0x2,a[_0x13f83f(0x30f)]),L(0x3,a[_0x13f83f(0x3f5)](G[_0x13f83f(0x2a1)])),L(0x4,a[_0x13f83f(0x17e)]),L(0x5,a[_0x13f83f(0x31c)]),L(0x6,a['Inject'](a[_0x13f83f(0x37d)]))],se);var es=Object['getOwnPropertyDescriptor'],ts=(_0x1fb338,_0x37bebe,_0x505088,_0x19cdea)=>{const _0x572fe6=_0x13f83f;for(var _0x5f3e9e=_0x19cdea>0x1?void 0x0:_0x19cdea?es(_0x37bebe,_0x505088):_0x37bebe,_0x5c5a16=_0x1fb338[_0x572fe6(0x2c4)]-0x1,_0x340d02;_0x5c5a16>=0x0;_0x5c5a16--)(_0x340d02=_0x1fb338[_0x5c5a16])&&(_0x5f3e9e=_0x340d02(_0x5f3e9e)||_0x5f3e9e);return _0x5f3e9e;},ue=(_0x1ab736,_0xba73ce)=>(_0x4d6749,_0x44438f)=>_0xba73ce(_0x4d6749,_0x44438f,_0x1ab736);let Ee=class extends a['Disposable']{constructor(_0x20ea47,_0x1f486d,_0x499aee){const _0x2e5f72=_0x13f83f;super(),_(this,_0x2e5f72(0x3fb),new Map()),_(this,_0x2e5f72(0x3e7),new Map()),_(this,_0x2e5f72(0x345),!0x1),(this[_0x2e5f72(0x41d)]=_0x20ea47,this[_0x2e5f72(0x28b)]=_0x1f486d,this['_revisionService']=_0x499aee);}[_0x13f83f(0x395)](){const _0x2adcd6=_0x13f83f;this[_0x2adcd6(0x345)]=!0x0;}[_0x13f83f(0x1f9)](){const _0x22f13d=_0x13f83f;this[_0x22f13d(0x345)]=!0x1;}get[_0x13f83f(0x2e3)](){const _0x278290=_0x13f83f;return this[_0x278290(0x3e7)];}[_0x13f83f(0x208)](){const _0x1935af=_0x13f83f;this[_0x1935af(0x39b)]()[_0x1935af(0x37e)](()=>super['dispose']());}async[_0x13f83f(0x2be)](_0x15e4a7){const _0x4fa4d7=_0x13f83f;return this[_0x4fa4d7(0x345)]?null:this['_localStorageService'][_0x4fa4d7(0x2bd)](u[_0x4fa4d7(0x422)](_0x15e4a7));}async[_0x13f83f(0x298)](_0x56f44e,_0x1a4fd3){const _0x3c90b0=_0x13f83f;return!!this['_localStorageService'][_0x3c90b0(0x16f)](_0x56f44e,_0x1a4fd3);}['updateOfflineData'](_0xb56ba0,_0x4fcab5,_0x412443,_0x142e09){const _0x5736b7=_0x13f83f,_0x166241=this[_0x5736b7(0x290)][_0x5736b7(0x340)](_0xb56ba0);this[_0x5736b7(0x3fb)]['set'](_0xb56ba0,{'unitID':_0xb56ba0,'type':_0x4fcab5,'awaitingChangeset':_0x412443,'mutations':_0x142e09,'rev':_0x166241}),this[_0x5736b7(0x3e7)][_0x5736b7(0x279)](_0xb56ba0)||this[_0x5736b7(0x247)](_0xb56ba0);}['_scheduleSaving'](_0x3a22a1){const _0x28de5c=_0x13f83f,_0x1ed95c=this[_0x28de5c(0x25f)]();_0x1ed95c===0x0?this[_0x28de5c(0x1ef)](_0x3a22a1):this[_0x28de5c(0x3e7)][_0x28de5c(0x20b)](_0x3a22a1,setTimeout(()=>this['_saveCache'](_0x3a22a1),_0x1ed95c));}[_0x13f83f(0x25f)](){const _0x2627cf=_0x13f83f;var _0x57edfb;return(_0x57edfb=this['_configService']['getConfig'](u[_0x2627cf(0x41b)]))!=null?_0x57edfb:u['LOCAL_CACHE_INTERVAL'];}[_0x13f83f(0x1ef)](_0x2b62dd){const _0x193b27=_0x13f83f,_0x343776=this[_0x193b27(0x3e7)][_0x193b27(0x2fc)](_0x2b62dd);return _0x343776!==void 0x0&&window[_0x193b27(0x307)](_0x343776),this['_localStorageService'][_0x193b27(0x16f)](u[_0x193b27(0x422)](_0x2b62dd),this[_0x193b27(0x3fb)][_0x193b27(0x2fc)](_0x2b62dd))[_0x193b27(0x37e)](()=>this[_0x193b27(0x3e7)][_0x193b27(0x362)](_0x2b62dd));}async[_0x13f83f(0x39b)](){const _0x1df6d3=_0x13f83f,_0x3fcb3b=[];this[_0x1df6d3(0x3e7)][_0x1df6d3(0x3f0)]((_0x5ef78b,_0x9d8b12)=>{const _0x48fa24=_0x1df6d3;window[_0x48fa24(0x307)](_0x5ef78b),_0x3fcb3b[_0x48fa24(0x311)](this[_0x48fa24(0x1ef)](_0x9d8b12)[_0x48fa24(0x37e)](()=>{this['_saveTaskMap']['delete'](_0x9d8b12);}));}),await Promise[_0x1df6d3(0x38e)](_0x3fcb3b);}};Ee=ts([ue(0x0,a['IConfigService']),ue(0x1,a['ILocalStorageService']),ue(0x2,a[_0x13f83f(0x3f5)](v[_0x13f83f(0x369)]))],Ee);class Fe extends a[_0x13f83f(0x31f)]{constructor(){const _0x42a1cf=_0x13f83f;super(),_(this,_0x42a1cf(0x277)),this[_0x42a1cf(0x277)]=I[_0x42a1cf(0x2d3)](window,'popstate')[_0x42a1cf(0x253)](I['takeUntil'](this[_0x42a1cf(0x204)]),I[_0x42a1cf(0x2cd)](0x1),I[_0x42a1cf(0x2fb)](void 0x0));}[_0x13f83f(0x220)](_0x1f705d,_0x42e44f,_0x35d6dc=!0x1){const _0x24c0de=_0x13f83f,_0x30183b=new URL(window['location'][_0x24c0de(0x1e3)]);_0x30183b[_0x24c0de(0x201)][_0x24c0de(0x20b)](_0x1f705d,_0x42e44f),_0x35d6dc?window['history'][_0x24c0de(0x1dd)]('','',_0x30183b[_0x24c0de(0x2a3)]()):window[_0x24c0de(0x222)][_0x24c0de(0x2b8)]('','',_0x30183b[_0x24c0de(0x2a3)]());}[_0x13f83f(0x397)](_0x518e1a,_0xdaf24e=!0x1){const _0x24e866=_0x13f83f,_0x215696=new URL(window['location'][_0x24e866(0x1e3)]);_0x215696[_0x24e866(0x201)][_0x24e866(0x362)](_0x518e1a),_0xdaf24e?window[_0x24e866(0x222)]['replaceState']('','',_0x215696[_0x24e866(0x2a3)]()):window[_0x24e866(0x222)][_0x24e866(0x2b8)]('','',_0x215696[_0x24e866(0x2a3)]());}[_0x13f83f(0x171)](_0x48e0cf){const _0xb0aa9a=_0x13f83f;var _0x3bfed2;return(_0x3bfed2=new URL(window[_0xb0aa9a(0x25c)][_0xb0aa9a(0x1e3)])[_0xb0aa9a(0x201)][_0xb0aa9a(0x2fc)](_0x48e0cf))!=null?_0x3bfed2:void 0x0;}}var ss=Object[_0x13f83f(0x3b6)],is=Object[_0x13f83f(0x2f9)],ns=(_0x353b3e,_0x32642c,_0x2bb079)=>_0x32642c in _0x353b3e?ss(_0x353b3e,_0x32642c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bb079}):_0x353b3e[_0x32642c]=_0x2bb079,rs=(_0x2b1729,_0x18036a,_0x3cdae2,_0x32bfdd)=>{const _0x3126ba=_0x13f83f;for(var _0x561e8c=_0x32bfdd>0x1?void 0x0:_0x32bfdd?is(_0x18036a,_0x3cdae2):_0x18036a,_0x1ecfa9=_0x2b1729[_0x3126ba(0x2c4)]-0x1,_0x49d8db;_0x1ecfa9>=0x0;_0x1ecfa9--)(_0x49d8db=_0x2b1729[_0x1ecfa9])&&(_0x561e8c=_0x49d8db(_0x561e8c)||_0x561e8c);return _0x561e8c;},Ie=(_0x37c6cc,_0x3c3b12)=>(_0x56fa10,_0x316a67)=>_0x3c3b12(_0x56fa10,_0x316a67,_0x37c6cc),os=(_0xf7349a,_0x924065,_0x3c34e0)=>ns(_0xf7349a,_0x924065+'',_0x3c34e0);const as=_0x13f83f(0x338);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x330fa4=Ue,_0xae746d,_0x13b5e0,_0x466174){const _0x331ece=_0x13f83f;super(),this[_0x331ece(0x2d0)]=_0x330fa4,this[_0x331ece(0x248)]=_0xae746d,this[_0x331ece(0x182)]=_0x13b5e0,this[_0x331ece(0x41d)]=_0x466174;const {..._0x421d5d}=a[_0x331ece(0x1ac)]({},Ue,this[_0x331ece(0x2d0)]);this[_0x331ece(0x41d)][_0x331ece(0x1c0)](Bt,_0x421d5d);}[_0x13f83f(0x241)](){const _0x1e13d6=_0x13f83f;this[_0x1e13d6(0x3e8)](),this[_0x1e13d6(0x37a)]();}['onRendered'](){const _0x562850=_0x13f83f;this[_0x562850(0x3f6)]();}[_0x13f83f(0x3e8)](){const _0x3672bb=_0x13f83f;var _0x45e244;const _0x130052=[[Te],[se],[ee],[Z],[Q],[Oe],[pe,{'useClass':Fe}],[G[_0x3672bb(0x225)],{'useClass':G['WebSocketService']}],[u[_0x3672bb(0x176)],{'useClass':Ee}],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[B],[de],[exports[_0x3672bb(0x2d7)]]];a[_0x3672bb(0x243)](this[_0x3672bb(0x182)],a[_0x3672bb(0x1b8)](_0x130052,(_0x45e244=this[_0x3672bb(0x2d0)])==null?void 0x0:_0x45e244['override']));}[_0x13f83f(0x3f6)](){const _0x19ffe4=_0x13f83f;this[_0x19ffe4(0x217)](this[_0x19ffe4(0x248)][_0x19ffe4(0x3ab)](a[_0x19ffe4(0x3f2)][_0x19ffe4(0x29c)],[ge])),this[_0x19ffe4(0x217)](this[_0x19ffe4(0x248)][_0x19ffe4(0x3ab)](a['UniverInstanceType']['UNIVER_SHEET'],[ve]));}['_initDependencies'](){const _0x5b441c=_0x13f83f;a[_0x5b441c(0x3aa)](this[_0x5b441c(0x182)],[[B],[exports[_0x5b441c(0x3dc)]],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x13f83f(0x17c)],_0x13f83f(0x2e4),as),exports[_0x13f83f(0x17c)]=rs([a[_0x13f83f(0x332)](u['UniverCollaborationClientPlugin']),Ie(0x1,C[_0x13f83f(0x1b5)]),Ie(0x2,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),Ie(0x3,a[_0x13f83f(0x30f)])],exports[_0x13f83f(0x17c)]);var cs=Object['getOwnPropertyDescriptor'],ls=(_0x24ba55,_0x363ac3,_0x150265,_0x1a839a)=>{const _0x1f81fc=_0x13f83f;for(var _0x35efec=_0x1a839a>0x1?void 0x0:_0x1a839a?cs(_0x363ac3,_0x150265):_0x363ac3,_0x188266=_0x24ba55[_0x1f81fc(0x2c4)]-0x1,_0x308b2f;_0x188266>=0x0;_0x188266--)(_0x308b2f=_0x24ba55[_0x188266])&&(_0x35efec=_0x308b2f(_0x35efec)||_0x35efec);return _0x35efec;},H=(_0x2cf3a2,_0x3f19a3)=>(_0x28c0ad,_0x1ea8e2)=>_0x3f19a3(_0x28c0ad,_0x1ea8e2,_0x2cf3a2);exports[_0x13f83f(0x348)]=class extends u[_0x13f83f(0x382)]{constructor(_0x403393,_0x30ed19,_0x2facf7,_0x2149eb,_0x42f738){super(_0x403393,_0x30ed19,_0x2facf7,_0x2149eb,_0x42f738);}async[_0x13f83f(0x246)](_0x4b9798){const _0x5a4813=_0x13f83f,_0x389563=await this[_0x5a4813(0x21d)](),_0xaed8b1=this[_0x5a4813(0x3e0)](_0x4b9798,_0x389563);return this[_0x5a4813(0x1c7)](_0xaed8b1);}[_0x13f83f(0x3e0)](_0x47bfde,_0x2a45aa){const _0x594d61=_0x13f83f,_0x5eea9b=typeof window>'u'?new URL(_0x47bfde):new URL(_0x47bfde,window[_0x594d61(0x25c)][_0x594d61(0x3ef)]);_0x5eea9b[_0x594d61(0x201)]['set'](_0x594d61(0x185),_0x2a45aa);const _0x402000=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x594d61(0x25c)]['search']);return _0x402000['get'](_0x594d61(0x26b))&&_0x5eea9b['searchParams'][_0x594d61(0x20b)](_0x594d61(0x26b),_0x402000[_0x594d61(0x2fc)]('runId')),_0x5eea9b[_0x594d61(0x2a3)]();}async[_0x13f83f(0x21d)](){const _0x46e6f0=_0x13f83f;var _0xa10d5b,_0x2dde0e,_0x84bad2;const _0x2c2c2b=this[_0x46e6f0(0x41d)][_0x46e6f0(0x2b5)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2083dc=(_0xa10d5b=_0x2c2c2b==null?void 0x0:_0x2c2c2b[_0x46e6f0(0x258)])!=null?_0xa10d5b:u[_0x46e6f0(0x3fc)];return(_0x84bad2=(_0x2dde0e=(await this[_0x46e6f0(0x3b9)]['get'](_0x2083dc,{'headers':{'Content-Type':_0x46e6f0(0x319)}}))['body'])==null?void 0x0:_0x2dde0e[_0x46e6f0(0x2cf)])!=null?_0x84bad2:'';}},exports[_0x13f83f(0x348)]=ls([H(0x0,a['Inject'](a[_0x13f83f(0x21e)])),H(0x1,a[_0x13f83f(0x3f5)](G[_0x13f83f(0x2a1)])),H(0x2,a[_0x13f83f(0x30f)]),H(0x3,a['ILogService']),H(0x4,v[_0x13f83f(0x29e)])],exports['BrowserCollaborationSocketService']);var _s=Object[_0x13f83f(0x2f9)],hs=(_0xb3faed,_0x324b32,_0x11c544,_0x4be6e0)=>{const _0x5ed029=_0x13f83f;for(var _0x17bcd3=_0x4be6e0>0x1?void 0x0:_0x4be6e0?_s(_0x324b32,_0x11c544):_0x324b32,_0x4f37dc=_0xb3faed[_0x5ed029(0x2c4)]-0x1,_0x3519cb;_0x4f37dc>=0x0;_0x4f37dc--)(_0x3519cb=_0xb3faed[_0x4f37dc])&&(_0x17bcd3=_0x3519cb(_0x17bcd3)||_0x17bcd3);return _0x17bcd3;},Se=(_0xbc8f3b,_0x4d6fd3)=>(_0x589af6,_0x12bc84)=>_0x4d6fd3(_0x589af6,_0x12bc84,_0xbc8f3b);exports[_0x13f83f(0x1a9)]=class extends a[_0x13f83f(0x2aa)]{constructor(_0x353043,_0x398783,_0x30bf47){const _0x37c1be=_0x13f83f;super(),this[_0x37c1be(0x381)]=_0x353043,this[_0x37c1be(0x3b9)]=_0x398783,this[_0x37c1be(0x41d)]=_0x30bf47;}async[_0x13f83f(0x19d)](_0x499734,_0x6534f4,_0x5b048f,..._0x572eeb){const _0x11adc4=_0x13f83f;var _0x4c77e4,_0x95cc01,_0x22ca8f,_0x4b189a;const _0x44f991=this['_instanceService'][_0x11adc4(0x1c5)]();if(!_0x44f991)throw new Error(_0x11adc4(0x3d0));const _0x2ba4d1=((_0x4c77e4=this[_0x11adc4(0x41d)][_0x11adc4(0x2b5)](u[_0x11adc4(0x2ae)]))!=null?_0x4c77e4:u[_0x11adc4(0x266)])+'/'+_0x499734+'/run/'+_0x6534f4,_0x5327d7=new URL(window['location']['href']),_0x20e9c4={'scriptId':_0x499734,'runId':(_0x95cc01=_0x5327d7[_0x11adc4(0x201)][_0x11adc4(0x2fc)](_0x11adc4(0x26b)))!=null?_0x95cc01:'','function':_0x6534f4,'unitId':_0x44f991['getUnitId'](),'argsOfFunction':JSON[_0x11adc4(0x2e2)](_0x572eeb),'invokeId':(_0x22ca8f=_0x5b048f[_0x11adc4(0x1d6)])!=null?_0x22ca8f:'','executionId':(_0x4b189a=_0x5b048f['executionId'])!=null?_0x4b189a:''};try{const _0x1f0208=await this[_0x11adc4(0x3b9)][_0x11adc4(0x31b)](_0x2ba4d1,{'body':_0x20e9c4});return _0x1f0208[_0x11adc4(0x239)][_0x11adc4(0x317)]&&_0x1f0208[_0x11adc4(0x239)][_0x11adc4(0x317)][_0x11adc4(0x259)]!==V['OK']?_0x11adc4(0x1bf):_0x1f0208[_0x11adc4(0x239)][_0x11adc4(0x375)];}catch{return _0x11adc4(0x1bf);}}},exports[_0x13f83f(0x1a9)]=hs([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0x13f83f(0x3f5)](G[_0x13f83f(0x2a1)])),Se(0x2,a[_0x13f83f(0x30f)])],exports['RemoteUniscriptService']);const Ae=0x7530,Pe=_0x13f83f(0x3d9);class us extends a[_0x13f83f(0x2aa)]{constructor(){const _0x599416=_0x13f83f;super(),_(this,_0x599416(0x228),a[_0x599416(0x237)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x599416(0x18a),new Map()),_(this,_0x599416(0x210),null),_(this,_0x599416(0x2ef),new Map()),_(this,_0x599416(0x360),new Map()),this['_init']();}[_0x13f83f(0x208)](){const _0x861862=_0x13f83f;super[_0x861862(0x208)](),this['_clearOtherTimers'][_0x861862(0x3f0)]((_0x10c835,_0x54ba42)=>this[_0x861862(0x1bb)](_0x54ba42)),this['_heartbeatTimer']&&window[_0x861862(0x2de)](this[_0x861862(0x210)]);}[_0x13f83f(0x39e)](_0x5e2a7a){const _0x1caa1a=_0x13f83f;return this['_ensureSubject'](_0x5e2a7a)[_0x1caa1a(0x253)](I[_0x1caa1a(0x3a0)]());}['editingUnit'](_0x48d78d){const _0x2736d7=_0x13f83f;this['_selfUnitIDs'][_0x2736d7(0x3b5)]===0x0&&this[_0x2736d7(0x394)](),this[_0x2736d7(0x268)]['add'](_0x48d78d),this[_0x2736d7(0x26f)]({'type':0x0,'memberID':this[_0x2736d7(0x228)],'unitIDs':[_0x48d78d],'isForwarded':!0x1});}[_0x13f83f(0x414)](_0x2841cd){const _0x11a5dc=_0x13f83f;this[_0x11a5dc(0x268)][_0x11a5dc(0x362)](_0x2841cd),this[_0x11a5dc(0x268)][_0x11a5dc(0x3b5)]===0x0&&this[_0x11a5dc(0x210)]&&window[_0x11a5dc(0x2de)](this['_heartbeatTimer']);}[_0x13f83f(0x2f4)](){const _0x49fafa=_0x13f83f;this['disposeWithMe'](a[_0x49fafa(0x365)](I[_0x49fafa(0x2d3)](window,_0x49fafa(0x330))[_0x49fafa(0x2ec)](_0x1bfb61=>{const _0x4b2d11=_0x49fafa;if(_0x1bfb61[_0x4b2d11(0x3f7)]!==Pe||!_0x1bfb61[_0x4b2d11(0x315)])return;const _0x4fe81b=JSON['parse'](_0x1bfb61[_0x4b2d11(0x315)]);this[_0x4b2d11(0x265)](_0x4fe81b);}))),window['addEventListener'](_0x49fafa(0x183),()=>this[_0x49fafa(0x26f)]({'type':0x1,'memberID':this[_0x49fafa(0x228)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x13f83f(0x265)](_0x142321){const _0x2d793d=_0x13f83f;switch(_0x142321[_0x2d793d(0x3af)]){case 0x0:this['_handleJoinEvent'](_0x142321);break;case 0x1:this[_0x2d793d(0x1fa)](_0x142321);break;case 0x2:this[_0x2d793d(0x284)](_0x142321);break;}}['_handleJoinEvent'](_0x4ac97a){const _0xf8adb0=_0x13f83f,{unitIDs:_0x275f33,memberID:_0x1e8238,isForwarded:_0x414140}=_0x4ac97a;_0x275f33[_0xf8adb0(0x3f0)](_0x35de7e=>{const _0xf81184=_0xf8adb0;if(!_0x414140&&this[_0xf81184(0x18a)]['has'](_0x35de7e)&&this[_0xf81184(0x27b)](_0x35de7e)[_0xf81184(0x36b)](u[_0xf81184(0x1fd)][_0xf81184(0x420)]),!this[_0xf81184(0x18a)][_0xf81184(0x279)](_0x35de7e)||!this['_unitOnClients'][_0xf81184(0x2fc)](_0x35de7e)[_0xf81184(0x279)](_0x1e8238)){const _0xe1112a=this[_0xf81184(0x18a)][_0xf81184(0x2fc)](_0x35de7e)||new Set();_0xe1112a[_0xf81184(0x1e7)](_0x1e8238),this['_unitOnClients'][_0xf81184(0x20b)](_0x35de7e,_0xe1112a),this[_0xf81184(0x379)](_0x1e8238);}}),_0x414140||this[_0xf8adb0(0x26f)]({'type':0x0,'memberID':this[_0xf8adb0(0x228)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x13f83f(0x379)](_0x59351d){const _0x227f3b=_0x13f83f;this[_0x227f3b(0x1bb)](_0x59351d);const _0x53d450=window[_0x227f3b(0x3ec)](()=>{const _0x341324=_0x227f3b;this[_0x341324(0x18a)][_0x341324(0x3f0)](_0x49d43a=>{const _0x394993=_0x341324;_0x49d43a[_0x394993(0x362)](_0x59351d);});},Ae*0x2);this[_0x227f3b(0x2ef)][_0x227f3b(0x20b)](_0x59351d,_0x53d450);}[_0x13f83f(0x1bb)](_0x53f7f1){const _0x397235=_0x13f83f;if(this[_0x397235(0x2ef)][_0x397235(0x279)](_0x53f7f1)){const _0x26a438=this[_0x397235(0x2ef)][_0x397235(0x2fc)](_0x53f7f1);_0x26a438&&window[_0x397235(0x307)](_0x26a438),this[_0x397235(0x2ef)][_0x397235(0x20b)](_0x53f7f1,null);}}[_0x13f83f(0x1fa)](_0x39e42b){const _0x579cba=_0x13f83f,{memberID:_0x401eac,unitIDs:_0x2c4ac2}=_0x39e42b;_0x2c4ac2[_0x579cba(0x3f0)](_0x515cea=>{const _0x309832=_0x579cba;var _0x41a2cd;const _0x335c68=this[_0x309832(0x18a)][_0x309832(0x2fc)](_0x515cea);_0x335c68&&(_0x335c68['delete'](_0x401eac),(_0x41a2cd=this['_ensureSubject'](_0x515cea))==null||_0x41a2cd[_0x309832(0x36b)](_0x335c68[_0x309832(0x3b5)]===0x0?u['UnitStatus'][_0x309832(0x267)]:u[_0x309832(0x1fd)][_0x309832(0x420)]));}),this[_0x579cba(0x1bb)](_0x401eac);}['_handleHeartbeatEvent'](_0x35e8d0){const _0x233d06=_0x13f83f;this['_scheduleClearOtherTimer'](_0x35e8d0[_0x233d06(0x331)]);}[_0x13f83f(0x26f)](_0x392ad6){const _0x4474be=_0x13f83f;localStorage[_0x4474be(0x16f)](Pe,JSON[_0x4474be(0x2e2)](_0x392ad6));}['_scheduleHeartbeat'](){const _0x15c705=_0x13f83f;this[_0x15c705(0x210)]=window[_0x15c705(0x417)](()=>{const _0x26753c=_0x15c705;this[_0x26753c(0x26f)]({'type':0x2,'memberID':this[_0x26753c(0x228)]});},Ae);}[_0x13f83f(0x27b)](_0x3a934a){const _0x3c0e54=_0x13f83f;return this[_0x3c0e54(0x360)][_0x3c0e54(0x279)](_0x3a934a)||this[_0x3c0e54(0x360)][_0x3c0e54(0x20b)](_0x3a934a,new I[(_0x3c0e54(0x342))](u[_0x3c0e54(0x1fd)][_0x3c0e54(0x267)])),this[_0x3c0e54(0x360)][_0x3c0e54(0x2fc)](_0x3a934a);}}exports[_0x13f83f(0x31a)]=pe,exports[_0x13f83f(0x3be)]=Be,exports['WebBrowserSingleActiveUnitService']=us,exports[_0x13f83f(0x3a3)]=Fe;
|
|
1
|
+
'use strict';const _0x55d5c6=_0x3ef0;(function(_0x3b1323,_0x2879fe){const _0x5ae944=_0x3ef0,_0x31c78d=_0x3b1323();while(!![]){try{const _0xe90293=-parseInt(_0x5ae944(0x316))/0x1*(parseInt(_0x5ae944(0x21c))/0x2)+-parseInt(_0x5ae944(0x349))/0x3+-parseInt(_0x5ae944(0x219))/0x4*(parseInt(_0x5ae944(0x2b6))/0x5)+parseInt(_0x5ae944(0x2c9))/0x6*(-parseInt(_0x5ae944(0x344))/0x7)+-parseInt(_0x5ae944(0x217))/0x8*(parseInt(_0x5ae944(0x11d))/0x9)+-parseInt(_0x5ae944(0x313))/0xa+parseInt(_0x5ae944(0x2c0))/0xb;if(_0xe90293===_0x2879fe)break;else _0x31c78d['push'](_0x31c78d['shift']());}catch(_0x255be0){_0x31c78d['push'](_0x31c78d['shift']());}}}(_0x4d6b,0x57b70));var Ve=Object[_0x55d5c6(0x337)],Ge=(_0x317742,_0x15e3ae,_0x5ec91b)=>_0x15e3ae in _0x317742?Ve(_0x317742,_0x15e3ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ec91b}):_0x317742[_0x15e3ae]=_0x5ec91b,_=(_0xa66b6f,_0x2a8657,_0x25cc55)=>Ge(_0xa66b6f,typeof _0x2a8657!='symbol'?_0x2a8657+'':_0x2a8657,_0x25cc55);Object[_0x55d5c6(0x337)](exports,Symbol['toStringTag'],{'value':_0x55d5c6(0x1f6)});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'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x424395,..._0x949196}){const _0x3ce439=_0x55d5c6,{icon:_0x38eb0b,id:_0x4b5494,className:_0x3094a1,extend:_0x5fc516,..._0x46c4dd}=_0x949196,_0x599179=(_0x3ce439(0x263)+_0x4b5494+'\x20'+(_0x3094a1||''))[_0x3ce439(0x20a)](),_0x361c94=A[_0x3ce439(0x334)]('_'+Je());return we(_0x38eb0b,''+_0x4b5494,{'defIds':_0x38eb0b[_0x3ce439(0x2e6)],'idSuffix':_0x361c94['current']},{'ref':_0x424395,'className':_0x599179,..._0x46c4dd},_0x5fc516);}function we(_0x54747d,_0x5363bc,_0x935096,_0x32645f,_0x36448a){const _0x11d702=_0x55d5c6;return A[_0x11d702(0x374)](_0x54747d[_0x11d702(0x376)],{'key':_0x5363bc,...qe(_0x54747d,_0x935096,_0x36448a),..._0x32645f},(ze(_0x54747d,_0x935096)['children']||[])[_0x11d702(0x297)]((_0x2666d7,_0x3c3e96)=>we(_0x2666d7,_0x5363bc+'-'+_0x54747d['tag']+'-'+_0x3c3e96,_0x935096,void 0x0,_0x36448a)));}function qe(_0x2b3a1b,_0x1efb58,_0x12109c){const _0x5beda9=_0x55d5c6,_0xaf52cb={..._0x2b3a1b[_0x5beda9(0x354)]};_0x12109c!=null&&_0x12109c['colorChannel1']&&_0xaf52cb[_0x5beda9(0x280)]===_0x5beda9(0x116)&&(_0xaf52cb[_0x5beda9(0x280)]=_0x12109c[_0x5beda9(0x116)]),_0x2b3a1b[_0x5beda9(0x376)]===_0x5beda9(0x1cb)&&_0xaf52cb['id']&&(_0xaf52cb['id']=_0xaf52cb['id']+_0x1efb58[_0x5beda9(0x2bb)]),Object[_0x5beda9(0x31b)](_0xaf52cb)[_0x5beda9(0x25c)](([_0x20c04a,_0x132ded])=>{const _0x52422b=_0x5beda9;_0x20c04a==='mask'&&typeof _0x132ded==_0x52422b(0x206)&&(_0xaf52cb[_0x20c04a]=_0x132ded[_0x52422b(0x34f)](/url\(#(.*)\)/,'url(#$1'+_0x1efb58[_0x52422b(0x2bb)]+')'));});const {defIds:_0x4f5fe8}=_0x1efb58;return!_0x4f5fe8||_0x4f5fe8[_0x5beda9(0x2cb)]===0x0||(_0x2b3a1b[_0x5beda9(0x376)]===_0x5beda9(0x211)&&_0xaf52cb['xlink:href']&&(_0xaf52cb[_0x5beda9(0x1ef)]=_0xaf52cb[_0x5beda9(0x1ef)]+_0x1efb58['idSuffix']),Object[_0x5beda9(0x31b)](_0xaf52cb)['forEach'](([_0x13827a,_0x54e5d6])=>{const _0x4d78a9=_0x5beda9;typeof _0x54e5d6==_0x4d78a9(0x206)&&(_0xaf52cb[_0x13827a]=_0x54e5d6['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1efb58[_0x4d78a9(0x2bb)]+')'));})),_0xaf52cb;}function ze(_0x25745b,_0x538ff5){const _0x4d414d=_0x55d5c6;var _0x36485c;const {defIds:_0x3c33d9}=_0x538ff5;return!_0x3c33d9||_0x3c33d9[_0x4d414d(0x2cb)]===0x0?_0x25745b:_0x25745b[_0x4d414d(0x376)]===_0x4d414d(0x205)&&((_0x36485c=_0x25745b[_0x4d414d(0x230)])!=null&&_0x36485c[_0x4d414d(0x2cb)])?{..._0x25745b,'children':_0x25745b[_0x4d414d(0x230)]['map'](_0x58dc97=>typeof _0x58dc97['attrs']['id']=='string'&&_0x3c33d9&&_0x3c33d9['includes'](_0x58dc97[_0x4d414d(0x354)]['id'])?{..._0x58dc97,'attrs':{..._0x58dc97['attrs'],'id':_0x58dc97[_0x4d414d(0x354)]['id']+_0x538ff5[_0x4d414d(0x2bb)]}}:_0x58dc97)}:_0x25745b;}function Je(){const _0xd7bf2f=_0x55d5c6;return Math[_0xd7bf2f(0x1b9)]()[_0xd7bf2f(0x1bd)](0x24)[_0xd7bf2f(0x229)](0x2,0x8);}Ce['displayName']='UniverIcon';const Ze={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x55d5c6(0x1e2),'viewBox':_0x55d5c6(0x199),'width':_0x55d5c6(0x168),'height':_0x55d5c6(0x168)},'children':[{'tag':'g','attrs':{'clipPath':_0x55d5c6(0x15c)},'children':[{'tag':_0x55d5c6(0x2cf),'attrs':{'stroke':_0x55d5c6(0x121),'d':_0x55d5c6(0x266),'strokeLinecap':_0x55d5c6(0x282),'strokeLinejoin':_0x55d5c6(0x282),'strokeWidth':1.2}}]},{'tag':_0x55d5c6(0x205),'attrs':{},'children':[{'tag':_0x55d5c6(0x1e4),'attrs':{'id':_0x55d5c6(0x147)},'children':[{'tag':_0x55d5c6(0x2cf),'attrs':{'fill':_0x55d5c6(0x221),'d':_0x55d5c6(0x30c)}}]}]}],'defIds':[_0x55d5c6(0x147)]},ye=A['forwardRef'](function(_0x12c7fb,_0x408b96){return A['createElement'](Ce,Object['assign']({},_0x12c7fb,{'id':'off-line-icon','ref':_0x408b96,'icon':Ze}));});ye[_0x55d5c6(0x30f)]=_0x55d5c6(0x24c);const Qe={'tag':_0x55d5c6(0x208),'attrs':{'xmlns':_0x55d5c6(0x331),'fill':'none','viewBox':_0x55d5c6(0x24b),'width':'1em','height':_0x55d5c6(0x168)},'children':[{'tag':'g','attrs':{'clipPath':_0x55d5c6(0x2ea)},'children':[{'tag':'path','attrs':{'stroke':_0x55d5c6(0x121),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x55d5c6(0x282),'strokeLinejoin':_0x55d5c6(0x282),'strokeWidth':1.2}}]},{'tag':_0x55d5c6(0x205),'attrs':{},'children':[{'tag':_0x55d5c6(0x1e4),'attrs':{'id':_0x55d5c6(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x55d5c6(0x221),'d':'M0\x200H16V16H0z','transform':_0x55d5c6(0x27a)}}]}]}],'defIds':[_0x55d5c6(0x1b3)]},$e=A[_0x55d5c6(0x1d6)](function(_0x131ad6,_0x32e3a5){const _0x5e561a=_0x55d5c6;return A[_0x5e561a(0x374)](Ce,Object['assign']({},_0x131ad6,{'id':'on-line-icon','ref':_0x32e3a5,'icon':Qe}));});$e[_0x55d5c6(0x30f)]=_0x55d5c6(0x1bb);function et(_0x5436b7){const _0x3a04a7=_0x55d5c6;switch(_0x5436b7){case u[_0x3a04a7(0x303)][_0x3a04a7(0x3a0)]:return _0x3a04a7(0x2a4);case u[_0x3a04a7(0x303)][_0x3a04a7(0x1f5)]:return _0x3a04a7(0x299);case u['CollaborationStatus'][_0x3a04a7(0x3b9)]:return'collabStatus.fetchMiss';case u[_0x3a04a7(0x303)]['NOT_COLLAB']:return _0x3a04a7(0x12e);case u[_0x3a04a7(0x303)][_0x3a04a7(0x396)]:case u[_0x3a04a7(0x303)]['AWAITING_WITH_PENDING']:return _0x3a04a7(0x35a);case u[_0x3a04a7(0x303)][_0x3a04a7(0x2ab)]:case u[_0x3a04a7(0x303)]['PENDING']:return'collabStatus.synced';}}function tt(_0x381135){const _0x157352=_0x55d5c6,{status$:_0xe3e1d4}=_0x381135,_0x200569=O[_0x157352(0x2fe)](_0xe3e1d4,u['CollaborationStatus'][_0x157352(0x312)]),_0x26efd6=O[_0x157352(0x2ee)](a[_0x157352(0x1dc)]),_0x392654=O[_0x157352(0x2ee)](u[_0x157352(0x34c)]),_0x243d86=_0x200569!==u[_0x157352(0x303)][_0x157352(0x3a0)],_0x5b6e5b=_0x26efd6['t'](et(_0x200569)),_0x318317=_0x243d86?M[_0x157352(0x178)]($e,{}):M[_0x157352(0x178)](ye,{}),_0xd25c40=A[_0x157352(0x305)](()=>{const _0x3becd3=_0x157352;_0x243d86||_0x392654[_0x3becd3(0x2c6)]();},[_0x243d86,_0x392654]);function _0x221986(){const _0x2d2d17=_0x157352;return M['jsxs'](_0x2d2d17(0x173),{'className':_0x2d2d17(0x15f),'onClick':_0xd25c40,'children':[M[_0x2d2d17(0x178)](_0x2d2d17(0x173),{'className':p[_0x2d2d17(0x2bc)](_0x2d2d17(0x3b1),{'univer-text-green-500':_0x243d86,'univer-text-red-500':!_0x243d86}),'children':_0x318317}),M[_0x2d2d17(0x178)](_0x2d2d17(0x173),{'className':_0x2d2d17(0x164),'children':_0x5b6e5b})]});}return _0x243d86?_0x221986():M[_0x157352(0x178)](p[_0x157352(0x352)],{'title':_0x26efd6['t'](_0x157352(0x378)),'children':_0x221986()});}var st=Object[_0x55d5c6(0x11e)],it=(_0x25ca3a,_0x3d3f88,_0x35ddd6,_0x303340)=>{for(var _0x5ce04d=_0x303340>0x1?void 0x0:_0x303340?st(_0x3d3f88,_0x35ddd6):_0x3d3f88,_0xf4e457=_0x25ca3a['length']-0x1,_0x3044c9;_0xf4e457>=0x0;_0xf4e457--)(_0x3044c9=_0x25ca3a[_0xf4e457])&&(_0x5ce04d=_0x3044c9(_0x5ce04d)||_0x5ce04d);return _0x5ce04d;},K=(_0x2f64f9,_0x173c10)=>(_0x52f868,_0x320768)=>_0x173c10(_0x52f868,_0x320768,_0x2f64f9);exports[_0x55d5c6(0x1ab)]=class extends a[_0x55d5c6(0x319)]{constructor(_0x1689a8,_0x2890a2,_0xd62a7a,_0x5aea78){const _0x5a306f=_0x55d5c6;super(),_(this,_0x5a306f(0x12c),new I[(_0x5a306f(0x296))](u[_0x5a306f(0x303)][_0x5a306f(0x312)])),(this[_0x5a306f(0x10c)]=_0x1689a8,this[_0x5a306f(0x238)]=_0x2890a2,this['_collaborationController']=_0xd62a7a,this['_uiPartsService']=_0x5aea78,this[_0x5a306f(0x23b)](),this[_0x5a306f(0x174)]());}[_0x55d5c6(0x174)](){const _0x3135f0=_0x55d5c6;this[_0x3135f0(0x142)](this['_univerInstanceService']['focused$'][_0x3135f0(0x2d1)](I['switchMap'](()=>{const _0x242ef6=_0x3135f0,_0x6b8698=this['_univerInstanceService'][_0x242ef6(0x358)]();return _0x6b8698?this[_0x242ef6(0x3ba)][_0x242ef6(0x321)](_0x6b8698['getUnitId']()):I['of'](null);}),I['switchMap'](_0x273608=>_0x273608?_0x273608[_0x3135f0(0x2fc)]:I['of'](u[_0x3135f0(0x303)][_0x3135f0(0x312)])))[_0x3135f0(0x1bc)](_0x55a449=>{const _0x39fa8a=_0x3135f0;this['_status$'][_0x39fa8a(0x2e2)](_0x55a449);}));}[_0x55d5c6(0x23b)](){const _0x108cac=_0x55d5c6;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](O[_0x108cac(0x1c4)][_0x108cac(0x2c4)],()=>O[_0x108cac(0x1ac)](nt({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports[_0x55d5c6(0x1ab)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x39c)])),K(0x2,a[_0x55d5c6(0x381)](u[_0x55d5c6(0x2fd)])),K(0x3,O['IUIPartsService'])],exports[_0x55d5c6(0x1ab)]);function nt(_0x2be735){const {status$:_0x21c899}=_0x2be735;return function(){return M['jsx'](tt,{'status$':_0x21c899});};}const Te=a[_0x55d5c6(0x19a)](_0x55d5c6(0x31a));var rt=Object[_0x55d5c6(0x11e)],ot=(_0x29227c,_0x3eef54,_0x4dc471,_0x4ddad5)=>{const _0x3b1405=_0x55d5c6;for(var _0x38b481=_0x4ddad5>0x1?void 0x0:_0x4ddad5?rt(_0x3eef54,_0x4dc471):_0x3eef54,_0x19da46=_0x29227c[_0x3b1405(0x2cb)]-0x1,_0x49b76a;_0x19da46>=0x0;_0x19da46--)(_0x49b76a=_0x29227c[_0x19da46])&&(_0x38b481=_0x49b76a(_0x38b481)||_0x38b481);return _0x38b481;},j=(_0x3204cc,_0x15140a)=>(_0x578385,_0x876473)=>_0x15140a(_0x578385,_0x876473,_0x3204cc);function _0x3ef0(_0x23c7a0,_0x10ceb9){const _0x4d6bc1=_0x4d6b();return _0x3ef0=function(_0x3ef02c,_0x11cc84){_0x3ef02c=_0x3ef02c-0x100;let _0x4c1781=_0x4d6bc1[_0x3ef02c];return _0x4c1781;},_0x3ef0(_0x23c7a0,_0x10ceb9);}exports[_0x55d5c6(0x16b)]=class extends a[_0x55d5c6(0x369)]{constructor(_0x9dc75,_0x2bf2df,_0x268da9,_0x577f47,_0x5f0f5b){const _0x3f9aac=_0x55d5c6;super(),this[_0x3f9aac(0x197)]=_0x9dc75,this[_0x3f9aac(0x15e)]=_0x2bf2df,this[_0x3f9aac(0x245)]=_0x268da9,this[_0x3f9aac(0x22a)]=_0x577f47,_0x5f0f5b?_0x5f0f5b==null||_0x5f0f5b[_0x3f9aac(0x187)]()['then'](()=>this[_0x3f9aac(0x341)]()):(this[_0x3f9aac(0x15e)]['debug'](_0x3f9aac(0x3b6),_0x3f9aac(0x2d6)),this[_0x3f9aac(0x341)]());}async['_init'](){const _0x319067=_0x55d5c6,_0x4ed233=this[_0x319067(0x197)][_0x319067(0x32e)](_0x319067(0x39b)),_0x148cae=this[_0x319067(0x197)]['getParam'](_0x319067(0x236)),_0x4fd515=this['_urlService'][_0x319067(0x32e)](_0x319067(0x23c));if(!_0x4ed233||!_0x148cae){this['_logService'][_0x319067(0x2dc)](_0x319067(0x3b6),_0x319067(0x288));return;}const _0x19c020=await this['_dataLoaderService'][_0x319067(0x19f)](_0x4ed233,Number(_0x148cae),_0x4fd515);_0x19c020&&_0x19c020 instanceof a[_0x319067(0x23f)]&&this[_0x319067(0x35d)](_0x19c020);}async['_setupSubUnitSync'](_0x56607a){const _0x2742e9=_0x55d5c6;await this[_0x2742e9(0x2d0)](_0x56607a),_0x56607a[_0x2742e9(0x388)][_0x2742e9(0x2d1)](I[_0x2742e9(0x33b)](this['dispose$']))[_0x2742e9(0x1bc)](_0x41bc0a=>{const _0x3c4523=_0x2742e9;_0x41bc0a&&this[_0x3c4523(0x155)](_0x41bc0a);}),this[_0x2742e9(0x197)][_0x2742e9(0x363)]['pipe'](I[_0x2742e9(0x33b)](this[_0x2742e9(0x110)]))['subscribe'](()=>this[_0x2742e9(0x2d0)](_0x56607a));}[_0x55d5c6(0x155)](_0x2e682b,_0x47a9be=!0x1){const _0x41891e=_0x55d5c6,_0x515159=this[_0x41891e(0x197)]['getParam']('subunit');_0x2e682b['getSheetId']()!==_0x515159&&this['_urlService'][_0x41891e(0x24a)]('subunit',_0x2e682b[_0x41891e(0x1e3)](),_0x47a9be);}async[_0x55d5c6(0x2d0)](_0x501125){const _0x3bf869=_0x55d5c6;var _0x37c324;const _0x4e1a4e=this['_urlService'][_0x3bf869(0x32e)](_0x3bf869(0x23c));if(!_0x4e1a4e||!_0x501125[_0x3bf869(0x2c2)](_0x4e1a4e)){const _0x3ff109=_0x501125[_0x3bf869(0x11b)]()[0x0],_0x4aee8c=_0x501125[_0x3bf869(0x2c2)](_0x3ff109);if(!_0x4aee8c)return;this[_0x3bf869(0x155)](_0x4aee8c,!0x0),await this[_0x3bf869(0x245)][_0x3bf869(0x203)](g[_0x3bf869(0x201)]['id'],{'unitId':_0x501125[_0x3bf869(0x294)](),'subUnitId':_0x3ff109});return;}((_0x37c324=_0x501125[_0x3bf869(0x384)]())==null?void 0x0:_0x37c324[_0x3bf869(0x1e3)]())!==_0x4e1a4e&&await this[_0x3bf869(0x245)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x501125[_0x3bf869(0x294)](),'subUnitId':_0x4e1a4e});}},exports['CollaborationDataLoaderController']=ot([j(0x0,Te),j(0x1,a[_0x55d5c6(0x1f1)]),j(0x2,a[_0x55d5c6(0x19d)]),j(0x3,a[_0x55d5c6(0x381)](u[_0x55d5c6(0x2b2)])),j(0x4,a['Optional'](Xe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var at=Object[_0x55d5c6(0x11e)],ct=(_0x2cbbeb,_0x4a6638,_0x487c96,_0x43e52c)=>{const _0x18d500=_0x55d5c6;for(var _0x377d6f=_0x43e52c>0x1?void 0x0:_0x43e52c?at(_0x4a6638,_0x487c96):_0x4a6638,_0x37fe39=_0x2cbbeb[_0x18d500(0x2cb)]-0x1,_0x50d58c;_0x37fe39>=0x0;_0x37fe39--)(_0x50d58c=_0x2cbbeb[_0x37fe39])&&(_0x377d6f=_0x50d58c(_0x377d6f)||_0x377d6f);return _0x377d6f;},Re=(_0x4d3cc3,_0x21f3b1)=>(_0x36bccd,_0xd591c5)=>_0x21f3b1(_0x36bccd,_0xd591c5,_0x4d3cc3);let de=class extends a[_0x55d5c6(0x369)]{constructor(_0x57a7ef,_0x46d59b){const _0x54dfa7=_0x55d5c6;super(),this['_docClipboardService']=_0x57a7ef,this[_0x54dfa7(0x193)]=_0x46d59b,this['_init']();}[_0x55d5c6(0x341)](){const _0x4bdb7c=_0x55d5c6,_0x44478c=this;this['disposeWithMe'](this['_docClipboardService'][_0x4bdb7c(0x20b)]({'onBeforePasteImage':async _0x69a0d6=>{const _0x3c6702=_0x4bdb7c,_0x4376b0=await _0x44478c[_0x3c6702(0x193)][_0x3c6702(0x14e)](_0x69a0d6);return _0x4376b0?{'source':_0x4376b0[_0x3c6702(0x1b6)],'imageSourceType':_0x4376b0[_0x3c6702(0x267)]}:null;}}));}};de=ct([Re(0x0,T['IDocClipboardService']),Re(0x1,Ke[_0x55d5c6(0x240)])],de);const be=[_0x55d5c6(0x115),_0x55d5c6(0x289),'green.600','red.300',_0x55d5c6(0x18b),'yellow.400'];class pe extends a[_0x55d5c6(0x319)]{constructor(){const _0x22a8b7=_0x55d5c6;super(...arguments),_(this,_0x22a8b7(0x38c),new Map()),_(this,_0x22a8b7(0x31d),0x0);}['assignAColorForMemberID'](_0xb3b55e){const _0x286459=_0x55d5c6;if(this[_0x286459(0x38c)][_0x286459(0x152)](_0xb3b55e))return this[_0x286459(0x38c)][_0x286459(0x32c)](_0xb3b55e);const _0x1fed83=be[this[_0x286459(0x31d)]];return this[_0x286459(0x31d)]=(this[_0x286459(0x31d)]+0x1)%be[_0x286459(0x2cb)],this[_0x286459(0x38c)][_0x286459(0x2a0)](_0xb3b55e,_0x1fed83),_0x1fed83;}}function xe(_0x57b04d){let _0x485b55='';for(const _0x31a81f of _0x57b04d){const {startOffset:_0x2e875b,endOffset:_0xbf06b3,isActive:_0x5e1c54,rangeType:_0x38626c,segmentId:_0x797f3f,segmentPage:_0x112425}=_0x31a81f;_0x485b55['length']&&(_0x485b55+=','),_0x485b55+=_0x2e875b+':'+_0xbf06b3+':'+(_0x5e1c54?'1':'0')+':'+_0x38626c+':'+_0x797f3f+':'+_0x112425;}return _0x485b55;}function lt(_0x2fb0fd){const _0x32a612=_0x55d5c6,_0x5c3131=_0x2fb0fd[_0x32a612(0x10e)](','),_0x2cce7f=[];for(const _0x215d3 of _0x5c3131){const [_0x1869c8,_0x2d731c,_0x1cb44c,_0x450864,_0x287758,_0x346edf]=_0x215d3['split'](':');_0x2cce7f[_0x32a612(0x125)]({'startOffset':Number(_0x1869c8),'endOffset':Number(_0x2d731c),'collapsed':_0x1869c8===_0x2d731c,'isActive':_0x1cb44c==='1','rangeType':_0x450864===a[_0x32a612(0x1b8)][_0x32a612(0x2b0)]?a['DOC_RANGE_TYPE'][_0x32a612(0x2b0)]:a['DOC_RANGE_TYPE'][_0x32a612(0x1ff)],'segmentId':typeof _0x287758==_0x32a612(0x206)?String(_0x287758):'','segmentPage':Number(_0x346edf!=null?_0x346edf:-0x1)});}return _0x2cce7f[_0x32a612(0x244)](_0x54a216=>_0x54a216[_0x32a612(0x2e7)])||(_0x2cce7f[0x0][_0x32a612(0x2e7)]=!0x0),_0x2cce7f;}class Oe extends a[_0x55d5c6(0x369)]{constructor(){const _0x5200a6=_0x55d5c6;super(...arguments),_(this,_0x5200a6(0x166),new I[(_0x5200a6(0x296))](null)),_(this,'collabCursorState$',this['_collabCursorState$']['asObservable']());}[_0x55d5c6(0x2f0)](_0x32447e){const _0x1504e3=_0x55d5c6,{unitID:_0x3667b8,memberID:_0x2f387f,textRanges:_0x1ff667}=_0x32447e,_0x3a0023=xe(_0x1ff667);if(_0x3a0023==='')return;const _0x285e5e={'unitID':_0x3667b8,'memberID':_0x2f387f,'selection':_0x3a0023};this[_0x1504e3(0x166)][_0x1504e3(0x2e2)](_0x285e5e);}}var _t=Object[_0x55d5c6(0x11e)],ht=(_0x4f72c4,_0x107fa9,_0x78d772,_0xb5fda2)=>{const _0x706553=_0x55d5c6;for(var _0xe1d1b7=_0xb5fda2>0x1?void 0x0:_0xb5fda2?_t(_0x107fa9,_0x78d772):_0x107fa9,_0x19802a=_0x4f72c4[_0x706553(0x2cb)]-0x1,_0x17cb1c;_0x19802a>=0x0;_0x19802a--)(_0x17cb1c=_0x4f72c4[_0x19802a])&&(_0xe1d1b7=_0x17cb1c(_0xe1d1b7)||_0xe1d1b7);return _0xe1d1b7;},U=(_0x217d3c,_0x3ea300)=>(_0x4e9b11,_0x430941)=>_0x3ea300(_0x4e9b11,_0x430941,_0x217d3c);const ut=0x12c,It=0x64;let fe=class extends a[_0x55d5c6(0x369)]{constructor(_0x44e051,_0x34844e,_0xe43a79,_0x4f5a64,_0x37b656,_0x17b451,_0xc5434a,_0x45e99b,_0x3077b9){const _0x4316d2=_0x55d5c6;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x4316d2(0x2e8),new I[(_0x4316d2(0x296))](new Map())),_(this,_0x4316d2(0x2e3),this[_0x4316d2(0x2e8)][_0x4316d2(0x38e)]()),_(this,_0x4316d2(0x232),new I[(_0x4316d2(0x296))]([])),_(this,_0x4316d2(0x1c7),this['_roomMembers$'][_0x4316d2(0x2d1)](I[_0x4316d2(0x372)](ut))),_(this,'_updateLocalCursor',a[_0x4316d2(0x34d)](_0x59e2ba=>{const _0xd9e32=_0x4316d2,_0x58a0d3={'eventID':v[_0xd9e32(0x17b)][_0xd9e32(0x119)],'data':{'unitID':this[_0xd9e32(0x248)],'memberID':this[_0xd9e32(0x22d)]['getMemberID'](),'selection':xe(_0x59e2ba)}};this[_0xd9e32(0x22d)]['send'](_0x58a0d3,this[_0xd9e32(0x248)]);},It)),(this[_0x4316d2(0x248)]=_0x44e051,this['_session']=_0x34844e,this[_0x4316d2(0x238)]=_0xe43a79,this[_0x4316d2(0x27d)]=_0x4f5a64,this[_0x4316d2(0x28a)]=_0x37b656,this[_0x4316d2(0x233)]=_0x17b451,this[_0x4316d2(0x1fc)]=_0xc5434a,this[_0x4316d2(0x10c)]=_0x45e99b,this[_0x4316d2(0x245)]=_0x3077b9);}get[_0x55d5c6(0x20c)](){const _0x26f07a=_0x55d5c6;return this[_0x26f07a(0x2e8)][_0x26f07a(0x31e)]();}get[_0x55d5c6(0x114)](){const _0x5e44b2=_0x55d5c6;return this[_0x5e44b2(0x232)][_0x5e44b2(0x31e)]();}['dispose'](){const _0x981b03=_0x55d5c6;super[_0x981b03(0x227)](),this[_0x981b03(0x2e8)][_0x981b03(0x2e2)](new Map()),this[_0x981b03(0x2e8)][_0x981b03(0x13b)](),this[_0x981b03(0x232)]['next']([]),this[_0x981b03(0x232)]['complete']();}['init'](){const _0x44de87=_0x55d5c6;this['_init']||(this[_0x44de87(0x341)]=!0x0,this[_0x44de87(0x22d)]['sessionStatus$'][_0x44de87(0x2d1)](I['takeUntil'](this[_0x44de87(0x110)]))[_0x44de87(0x1bc)](_0x3833a2=>{const _0x13f763=_0x44de87;_0x3833a2===u[_0x13f763(0x348)][_0x13f763(0x10d)]?this['_toggleOnline']():this[_0x13f763(0x141)]();}),this[_0x44de87(0x22d)][_0x44de87(0x1aa)][_0x44de87(0x2d1)](I[_0x44de87(0x33b)](this[_0x44de87(0x110)]))[_0x44de87(0x1bc)](_0x2e59bf=>{const _0x4ecefe=_0x44de87,_0x19d9bf=_0x2e59bf[_0x4ecefe(0x16d)];_0x19d9bf===v[_0x4ecefe(0x17b)][_0x4ecefe(0x119)]&&this[_0x4ecefe(0x307)](_0x2e59bf),_0x19d9bf===v[_0x4ecefe(0x17b)][_0x4ecefe(0x26e)]&&this[_0x4ecefe(0x22f)](_0x2e59bf);}),this['disposeWithMe'](this[_0x44de87(0x245)][_0x44de87(0x277)](_0x3a81e0=>{const _0x51be62=_0x44de87,_0x35f1e2=_0x3a81e0[_0x51be62(0x28c)];_0x35f1e2!=null&&this[_0x51be62(0x1fe)]&&_0x3a81e0['id']===W[_0x51be62(0x29d)]['id']&&_0x35f1e2[_0x51be62(0x2dd)]===this['unitID']&&_0x35f1e2[_0x51be62(0x20e)]===!0x1&&_0x35f1e2[_0x51be62(0x1a5)][_0x51be62(0x2cb)]>0x0&&this['_updateLocalCursor'](_0x35f1e2['ranges']);})),this['_syncEditingCollabCursorService'][_0x44de87(0x317)][_0x44de87(0x2d1)](I[_0x44de87(0x33b)](this['dispose$']))[_0x44de87(0x1bc)](_0x3ba161=>{const _0xfae9e2=_0x44de87;if((_0x3ba161==null?void 0x0:_0x3ba161[_0xfae9e2(0x248)])!==this[_0xfae9e2(0x248)])return;const _0x31f843={'eventID':v[_0xfae9e2(0x17b)][_0xfae9e2(0x119)],'data':_0x3ba161};this[_0xfae9e2(0x307)](_0x31f843);}),this['disposeWithMe'](this[_0x44de87(0x245)][_0x44de87(0x277)](_0x50407f=>{const _0x2f273c=_0x44de87;if(_0x50407f[_0x2f273c(0x28c)]==null)return;const _0x2d42a6=_0x50407f[_0x2f273c(0x28c)];if(_0x50407f['id']!==W[_0x2f273c(0x347)]['id']||_0x2d42a6[_0x2f273c(0x2dd)]!==this[_0x2f273c(0x248)])return;const _0x2b2226={'id':_0x2f273c(0x345),'params':_0x2d42a6},_0x28a17e=this[_0x2f273c(0x20c)];for(const [_0x45746f,_0x161ae9]of _0x28a17e){const _0x29f470={'id':_0x2f273c(0x345),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x161ae9[_0x2f273c(0x1a5)]}},_0x12de23=this['_transformService'][_0x2f273c(0x2ef)](_0x2b2226,_0x29f470,!0x1);if(v[_0x2f273c(0x284)](_0x12de23))throw _0x12de23['error'];_0x28a17e[_0x2f273c(0x2a0)](_0x45746f,{..._0x161ae9,'ranges':_0x12de23['m2Prime'][_0x2f273c(0x28c)]['textRanges']});}queueMicrotask(()=>{const _0x4c94fb=_0x2f273c;this['_cursorInfo$'][_0x4c94fb(0x2e2)](_0x28a17e);});})));}['_onCursorUpdate'](_0x3f9a7d){const _0x48b108=_0x55d5c6;var _0x2a4a2c,_0x21d3c1;const {memberID:_0xc37642,selection:_0xfb7d38}=_0x3f9a7d[_0x48b108(0x143)],_0x2f63be=lt(_0xfb7d38),_0x156b61=(_0x21d3c1=(_0x2a4a2c=this[_0x48b108(0x28a)][_0x48b108(0x260)](this[_0x48b108(0x248)],_0xc37642))==null?void 0x0:_0x2a4a2c['name'])!=null?_0x21d3c1:_0x48b108(0x31f),_0x3a4f94={'color':this[_0x48b108(0x27d)][_0x48b108(0x390)](_0xc37642),'name':_0x156b61,'ranges':_0x2f63be},_0x57f5c5=this[_0x48b108(0x20c)];_0x57f5c5['set'](_0xc37642,_0x3a4f94),this[_0x48b108(0x2e8)][_0x48b108(0x2e2)](_0x57f5c5);}[_0x55d5c6(0x22f)](_0xa236a3){const _0x48576f=_0x55d5c6,{memberID:_0x3a82df}=_0xa236a3[_0x48576f(0x143)],_0x3b0ac1=this[_0x48576f(0x20c)];_0x3b0ac1[_0x48576f(0x10b)](_0x3a82df),this[_0x48576f(0x2e8)]['next'](_0x3b0ac1);}[_0x55d5c6(0x123)](){const _0x496aaa=_0x55d5c6;var _0x39975f;if(this[_0x496aaa(0x1fe)]=!0x0,((_0x39975f=this['_univerInstanceService'][_0x496aaa(0x358)]())==null?void 0x0:_0x39975f[_0x496aaa(0x294)]())!==this[_0x496aaa(0x248)])return;const _0x164f60=this[_0x496aaa(0x238)][_0x496aaa(0x32c)](W[_0x496aaa(0x273)])[_0x496aaa(0x38b)]();Array[_0x496aaa(0x1c0)](_0x164f60)&&_0x164f60[_0x496aaa(0x2cb)]>0x0&&this[_0x496aaa(0x1f2)](_0x164f60);}[_0x55d5c6(0x141)](){const _0x27e265=_0x55d5c6;this[_0x27e265(0x1fe)]=!0x1;}};function _0x4d6b(){const _0x5a44d7=['Rectangle','getCollabEntity$','RevisionService','_taskIds','_getAnchorBounding','ISnapshotServerService','LOGIN_TOKEN_PROCESSING_FAILED','arc','_send','_cursor','application/json','resize','get','mutations','getParam','save','WECHAT_HAS_BEEN_BOUND','http://www.w3.org/2000/svg','setShapeProps','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','useRef','getformulaLimitStatusUrl','getRenderById','defineProperty','PAYMENT_CHANNEL_NOT_SUPPORT','getCurrentRevOfUnit','width','takeUntil','NO_OTHER_CLIENTS_EDITING','ILocalCacheService','popstate','FormulaExecuteStageType','replaceState','_init','APPLY_REVISION_CONFILICT','CollaborationUIEventId','7LFUVBO','doc.mutation.rich-text-editing','setInterval','RichTextEditingMutation','SessionStatus','576840ADMarS','show','_saveCache','CollaborationSessionService','debounce','endColumn','replace','_localCacheService','ticket','Tooltip','handleDeleteRangeMoveLeft','attrs','shift','formula.calculation.waiting','YUUMI_CONNECTOR_URL_NOT_FOUND','getFocusedUnit','UnitStatus','collabStatus.syncing','deepClone','wsSessionTicketUrl','_setupSubUnitSync','DeleteRangeMoveLeftCommandId','_heartbeatTimer','_handleEvent','stage','RemoveColCommandId','urlChange$','CollaborationUIEventService','_shapes','_removeCollabCursors','ALREADY_EXISTS','INTERNAL_ERROR','RxDisposable','add','RefRangeService','deserializeRangeWithSheet','UniverCollaborationClientUIPlugin','height','_currentUsage','getOffsetConfig','YUUMI_NO_CUBOID_FOR_QUESTION','debounceTime','saveOfflineData','createElement','MoveRangeCommandId','tag','_startCalculationLimit','collab-client.tooltip.reconnect','SHEET_VIEWPORT_KEY','_disabled','/universer-api/license/formula/limit/done','handleDeleteRangeMoveUp','_getFormulaLimitStatus','DocSkeletonManagerService','LICENSE_EXPORT_SIZE_EXCEEDED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','Inject','PY_RUNTIME_SCRIPT_ERROR','MemberService','getActiveSheet','_scheduleSaving','MOBILE_VERIFY_CODE_MISMATCH','size','activeSheet$','EMAIL_VERIFY_CODE_MISMATCH','getRangePointData','getDocRanges','_assignedColors','onStarting','asObservable','setActiveRange','assignAColorForMemberID','loadOfflineData','handleInsertCol','_registerDependencies','_removeClearOtherTimer','session.collaboration-timeout','AWAITING','stageInfo','INVALID_INVITE_CODE','parse','onTransformChange$','unit','Injector','beginPath','_setFormulaLimitStatus','onRendered','OFFLINE','CURRENT_STATUS_CANNOT_OPERATE','stringify','RemoveRowCommandId','SUCCESS','getTypeOfUnitAdded$','_initCommandExecutedListener','parseInt','SNAPSHOT_INVALID_SNAPSHOT','SetDocZoomRatioOperation','YUUMI_ALL_TABLES_IS_INVALID','_draw','_saveTaskMap','SOCKET_FAILED_RETRY','TEXT_RANGE_LAYER_INDEX','makeDirty','Warning','univer-mr-2\x20univer-flex\x20univer-text-xl','_localStorageService','DocStateChangeManagerService','ENTITLE_INSUFFICIENT_QUOTA','startColumn','[CollaborationDataLoaderController]','YUUMI_URL_COL_OUT_OF_RANGE','_instanceService','FETCH_MISS','_collaborationController','_hovered','setItem','_refreshCollabCursors','currentSkeleton$','_lastPointer','REDEMPTION_CODE_INACTIVE','_doCreateSocket','registerDependencies','with','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/universer-api/license/formula/limit/status','addObject','delete','_univerInstanceService','ONLINE','split','mergeOverrideWithDependencies','dispose$','maxFormulaLimit','Rect','_updateCollabCursors','roomMembers','purple.300','colorChannel1','_docSyncEditingCollabCursorService','Failed','UPDATE_CURSOR','_clearPolling','getUnhiddenWorksheets','throttleTime','482499eIWvqn','getOwnPropertyDescriptor','_config','?taskId=','currentColor','getColor','_toggleOnline','_checkAndWaitForCalculationPermission','push','INotificationService','SheetsSelectionsService','override','searchParams','_docTransformIMECacheService','color','_status$','origin','collabStatus.notCollab','OTHER_CLIENTS_EDITING','_beforeCloseService','transformStateCache','Plugin','_checkCalculationAvailable','COMPLETION_FINISHED','fillRule','endRow','row','evenodd','_color','EMAIL_HAS_BEEN_BOUND','complete','_themeService','CanceledError','_handleJoinEvent','location','storage','_toggleOffline','disposeWithMe','data','INVITE_CODE_ALREADY_BOUND','transformRemoteChangeset','collab-text-anchor-','off-line-icon_clip0_910_343','error','collab-rect-range-','_ensureSubject','_hasFormulaInDirtyRanges','YUUMI_TABLE_NOT_FOUND_IN_UNIT','filter','saveImage','invokeId','_getScale','shareReplay','has','fillText','ThemeService','_updateURLWithCurrentState','handleIRemoveCol','removeParam','enableLocalCache','_scheduleClearOtherTimer','max','_maxFormulaLimit','url(#off-line-icon_clip0_910_343)','_hover','_logService','univer-flex\x20univer-items-center','LICENSE_MAX_UNITS_EXCEEDED','_entityInit$','sessionStatus$','_unitOnClients','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','m2Prime','_collabCursorState$','Error','1em','INVITE_CODE_HAS_BEEN_UES','requireSession','CollaborationDataLoaderController','handleInsertRangeMoveDown','eventID','ENSURE_SNAPSHOT_EXECUTION','_render','_docSkeleton','WebURLService','triggerDblclick','div','_initStatusListener','WebSocketService','getUndoRedoMutationParamsCache','getViewport','jsx','_notificationService','_initDependencies','CollaborationEvent','rgba(255,\x20255,\x20255,\x200.01)','TOO_MANY_REQUESTS','then','_initEvent','APPLY_NON_SEQUENTIAL_REVISION','runId','ENTITLE_CHAT_LIMIT_EXCEED','SheetCollabCursorShape','onPointerMove$','subUnitId','bottom','whenReady','UNAUTHENTICATED','ColorKit','transformMutationsWithChangeset','blue.400','transformIMECache','findNodePositionByCharIndex','ILocalStorageService','YUUMI_AI_RUN_FAILED','permission.title','formula.calculation.started','APPLY_REJECT','_imageIoService','_initResize','VIEW_MAIN','m1Prime','_urlService','post','0\x200\x2016\x2016','createIdentifier','backgroundColor','_pollingInterval','ICommandService','_transformHistoryAndStateStack','loadUnit','engine','getCollabCursors$','session.will-retry','getAncestorScale','from','ranges','_docTransformSelectionsService','getCoordByCell','InsertRangeMoveDownCommandId','switchMap','event$','DesktopCollaborationStatusDisplayController','connectInjector','InsertColCommandId','ISocketService','onMouseMove','YUUMI_RATE_OVER_LIMIT','moveTo','Vector2','on-line-icon_clip0_910_349','_handleLeaveEvent','fillStyle','source','_backgroundColor','DOC_RANGE_TYPE','random','ENTITLE_NEED_BILLING_ADDRESS','OnLineIcon','subscribe','toString','getUniverSheetInstance','RemoteUniscriptService','isArray','hovered','runOnServer','isTransformMutationsWithChangesetSuccess','BuiltInUIPart','handleMoveRange','_textBubble','roomMembers$','REDEMPTION_CODE_NOT_STARTED','clearTimeout','_applyCommand','mask','APPLY_PERMISSION_DENIED','Loading','docStateChange$','setConfig','sessionTicket','_cursorShapes','newValue','DATA_SOURCE_TOO_LARGE','_scheduleHeartbeat','FromArray','forwardRef','range','NodePositionConvertToCursor','CommandType','subscribeEvent','collaboration.single-unit.warning','LocaleService','_localeService','drawWith','_sheetSkeletonManagerService','WebBrowserSingleActiveUnitService','_docStateChangeManagerService','none','getSheetId','clipPath','getCurrentUnitForType','_revisionService','_startSheetCollabCursor','search','generateRandomId','CONNECTOR_DATA_TOO_LARGE','CHANGESET_REVISION_CONFILICT','SheetSkeletonManagerService','dirtyRanges','getItem','xlink:href','getMergeData','ILogService','_updateLocalCursor','startRow','USER_NOT_FOUND','CONFLICT','Module','code','MOBILE_HAS_BEEN_BOUND','isFormulaString','FormulaExecutedStateType','getConfig','_transformService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_online','RECT','getTypeOfUnitDisposed$','SetWorksheetActivateCommand','_name','executeCommand','setTimeout','defs','string','toDisposable','svg','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','trim','addClipboardHook','cursorInfo','fromEvent','isEditing','LICENSE_DISTRO_REJECTED','now','use','collab-text-range-','NOT_FOUND','getColorFromTheme','getActiveRange','_createSocketURL','80vURfYg','UNIVER_DOC','6404KNMSLz','functionsExecutedState','ITransformService','250aDnsqr','column','START_CALCULATION','REDEMPTION_CODE_FULLY_REDEEMED','_getSheetObject','white','HTTPService','YUUMI_UNABLE_LOAD_URL','memberID','DependentOn','Shape','dispose','registerBeforeClose','substring','_dataLoaderService','currentTheme$','#FFF','_session','exhaustSavingTask','_onCursorDelete','children','isFormulaId','_roomMembers$','_syncEditingCollabCursorService','_refRangeService','_context','type','SNAPSHOT_HAS_BEEN_REMOVED','_injector','redoState','AUTHORIZE_CODE_ILLEGAL','_initStatusComponent','subunit','getSheetObject','find','Workbook','IImageIoService','getCellMatrix','_getSessionTicket','unshift','some','_commandService','toRgbString','collaboration.closeRoom','unitID','ACTIVE_UNIT_EVENT_CHANNEL','setParam','0\x200\x2017\x2016','OffLineIcon','DEFAULT_WS_SESSION_TICKET_URL','INVITE_CODE_REQUIRED','_cursors','UNRECOGNIZED','getCurrentSelections','min','getUnit','selection','_drawTextRange','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_handleHover','startFormulaLimitUrl','_startDocCollabCursor','_unitStatus','_showGuardMessage','forEach','MessageType','LOCAL_CACHE_INTERVAL','_httpService','getMember','_drawRectRange','SOCKET_FAILED','univerjs-icon\x20univerjs-icon-','_collaborationUIEventService','combineLatest','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','imageSourceType','createInstance','replaceDocRanges','DeleteRangeMoveUpCommandId','transform','includes','getSkeleton','USERS_LEAVE','REDEMPTION_USER_NOT_ELIGIBLE','releaseFormulaLimitUrl','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','unsubscribe','DocSelectionManagerService','IUniverInstanceService','YUUMI_SUBSCRIPTION_NOT_FOUND','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onCommandExecuted','SetFormulaCalculationStartMutation','_anchorDot','translate(.97)','ENTITLE_DUP_SUBSCRIPTION','hide','_colorAssignService','_messageService','_docSkeletonManagerService','fill','LICENSE_IMPORT_SIZE_EXCEEDED','round','getStateCache','isTransformMutationFailure','_getSaveTimeout','REDEMPTION_INVALID_CODE','REDEMPTION_CODE_HAS_BEEN_CREATED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','jiqing.500','_memberService','_clearOtherTimers','params','...','UniverInstanceType','MUTATION','JOIN_ROOM_FAILED','values','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleHeartbeatEvent','getUnitId','_drawAnchor','BehaviorSubject','map','getCellPositionByOffset','collabStatus.conflict','_collabCursorController','_collabSessionService','registerRenderModule','SetTextSelectionsOperation','_onRefRangeChange','_lastResponseTimestamp','set','saveTaskMap','skeleton','Tools','collabStatus.offline','ERROR_AGAIN','onLocalMutation','permission.content','text','handleInsertRow','editingUnit','SYNCED','_releaseCalculationLimit','IConfigService','history','selections','TEXT','addHandlerCallback','DataLoaderService','NodePositionConvertToRectRange','addEventListener','_id','1205KciHOj','_renderManagerService','_eventUnsubscribe','IMessageService','Success','idSuffix','clsx','_selfUnitIDs','lineTo','transformByState','29510052RbbiiW','USER_IS_ANONYMOUS','getSheetBySheetId','key','HEADER_MENU','_transformPreviousActiveRange','reconnect','YUUMI_ASYNCIO_CANCELLED','OTHER_CLIENT_EDITING','1960554gmcomH','black','length','_configService','body','_scene','path','_updateSubUnitFromURLParams','pipe','disableLocalCache','UNDEFINED','_hideTimer','closePath','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','name','init','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','href','sheetId','debug','unitId','_getMergeRange','UNIVER_SHEET','DocIMEInputManagerService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','next','cursorInfo$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','BrowserCollaborationSocketService','defIds','isActive','_cursorInfo$','font','url(#on-line-icon_clip0_910_349)','SetSelectionsOperation','EffectRefRangId','onPointerLeave$','useDependency','transformMutation','syncEditingCollabCursor','_anchor','USER_NOT_INVITED_CODE','restore','LOGIN_FAILED','LOCAL_CACHE_INTERVAL_KEY','pushState','getLocalCacheKey','getRelativeToViewportCoord','PERMISSION_DENIED','mapTo','handleInsertRangeMoveRight','status$','CollaborationController','useObservable','getMemberID','top','transformSelections','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CollaborationStatus','COLORS','useCallback','merge','_onCursorUpdate','_range','_document','undoState','handleIRemoveRow','M0\x200H16V16H0z','_entities','_cachedData','displayName','measureText','_docTransformStateCacheService','NOT_COLLAB','6103370eYutNV','touchDependencies','limitInfo','2177TbWLxL','collabCursorState$','ENTITLE_REPORT_LIMIT_EXCEED','Disposable','uni.network.url-service','entries','_labelPosition','_colorIndex','getValue','Unknown\x20user'];_0x4d6b=function(){return _0x5a44d7;};return _0x4d6b();}fe=ht([U(0x2,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x39c)])),U(0x3,a['Inject'](pe)),U(0x4,a[_0x55d5c6(0x381)](u[_0x55d5c6(0x383)])),U(0x5,a['Inject'](Oe)),U(0x6,v[_0x55d5c6(0x21b)]),U(0x7,a['IUniverInstanceService']),U(0x8,a['ICommandService'])],fe);var St=Object[_0x55d5c6(0x11e)],dt=(_0xed47c3,_0x432081,_0x17cfa3,_0xb0957b)=>{for(var _0x274feb=_0xb0957b>0x1?void 0x0:_0xb0957b?St(_0x432081,_0x17cfa3):_0x432081,_0x4ad7ce=_0xed47c3['length']-0x1,_0x243479;_0x4ad7ce>=0x0;_0x4ad7ce--)(_0x243479=_0xed47c3[_0x4ad7ce])&&(_0x274feb=_0x243479(_0x274feb)||_0x274feb);return _0x274feb;},w=(_0x1cd814,_0x15d89c)=>(_0x144d73,_0x2ff0c7)=>_0x15d89c(_0x144d73,_0x2ff0c7,_0x1cd814);const ft=0x12c,mt=0x64,gt=()=>{let _0x237c79=[],_0x31b6c5=!0x1;return _0x321de4=>{_0x237c79['push'](_0x321de4),_0x31b6c5||(_0x31b6c5=!0x0,setTimeout(()=>{const _0x539978=_0x3ef0;_0x237c79[_0x539978(0x25c)](_0x235760=>_0x235760()),_0x237c79=[],_0x31b6c5=!0x1;}));};};let me=class extends a[_0x55d5c6(0x369)]{constructor(_0x405c2b,_0x42bbe5,_0x12d293,_0x56d992,_0x7325ae,_0x136cd9,_0x14e1f9,_0x60015c){const _0x52fd24=_0x55d5c6;super(),_(this,_0x52fd24(0x1fe),!0x1),_(this,_0x52fd24(0x341),!0x1),_(this,'_cursorInfo$',new I[(_0x52fd24(0x296))](new Map())),_(this,_0x52fd24(0x2e3),this[_0x52fd24(0x2e8)][_0x52fd24(0x38e)]()),_(this,_0x52fd24(0x232),new I[(_0x52fd24(0x296))]([])),_(this,_0x52fd24(0x1c7),this[_0x52fd24(0x232)][_0x52fd24(0x2d1)](I[_0x52fd24(0x372)](ft))),_(this,_0x52fd24(0x1f2),a[_0x52fd24(0x34d)]((_0x48f46f,_0x14fc0d)=>{const _0x85cfb1=_0x52fd24,_0x3ede56={'eventID':v['CollaborationEvent'][_0x85cfb1(0x119)],'data':{'unitID':this[_0x85cfb1(0x248)],'memberID':this[_0x85cfb1(0x22d)][_0x85cfb1(0x2ff)](),'selection':x['serializeRangeWithSheet'](_0x48f46f,_0x14fc0d[_0x85cfb1(0x1d7)])}};this[_0x85cfb1(0x22d)]['send'](_0x3ede56,this[_0x85cfb1(0x248)]);},mt)),(this['unitID']=_0x405c2b,this[_0x52fd24(0x22d)]=_0x42bbe5,this[_0x52fd24(0x238)]=_0x12d293,this[_0x52fd24(0x27d)]=_0x56d992,this[_0x52fd24(0x28a)]=_0x7325ae,this['_univerInstanceService']=_0x136cd9,this[_0x52fd24(0x245)]=_0x14e1f9,this['_refRangeService']=_0x60015c);}get[_0x55d5c6(0x20c)](){const _0x3f1dcb=_0x55d5c6;return this[_0x3f1dcb(0x2e8)][_0x3f1dcb(0x31e)]();}get[_0x55d5c6(0x114)](){return this['_roomMembers$']['getValue']();}[_0x55d5c6(0x227)](){const _0x2d23cb=_0x55d5c6;super[_0x2d23cb(0x227)](),this[_0x2d23cb(0x2e8)]['next'](new Map()),this[_0x2d23cb(0x2e8)][_0x2d23cb(0x13b)](),this[_0x2d23cb(0x232)][_0x2d23cb(0x2e2)]([]),this['_roomMembers$'][_0x2d23cb(0x13b)]();}[_0x55d5c6(0x2d8)](){const _0x59f43c=_0x55d5c6;this[_0x59f43c(0x341)]||(this[_0x59f43c(0x341)]=!0x0,this[_0x59f43c(0x22d)][_0x59f43c(0x162)][_0x59f43c(0x2d1)](I[_0x59f43c(0x33b)](this['dispose$']))[_0x59f43c(0x1bc)](_0x1bc7cb=>{const _0x12d0cf=_0x59f43c;_0x1bc7cb===u[_0x12d0cf(0x348)][_0x12d0cf(0x10d)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session']['event$'][_0x59f43c(0x2d1)](I[_0x59f43c(0x33b)](this[_0x59f43c(0x110)]))[_0x59f43c(0x1bc)](_0x348bf5=>{const _0x1aa648=_0x59f43c,_0x22688b=_0x348bf5[_0x1aa648(0x16d)];_0x22688b===v['CollaborationEvent'][_0x1aa648(0x119)]&&this['_onCursorUpdate'](_0x348bf5),_0x22688b===v[_0x1aa648(0x17b)][_0x1aa648(0x26e)]&&this[_0x1aa648(0x22f)](_0x348bf5);}),this[_0x59f43c(0x29e)](),this['disposeWithMe'](this[_0x59f43c(0x245)][_0x59f43c(0x277)](_0x4650f0=>{const _0x234978=_0x59f43c;if(this['_online']&&_0x4650f0['id']===g[_0x234978(0x2eb)]['id']&&_0x4650f0[_0x234978(0x28c)][_0x234978(0x2dd)]===this[_0x234978(0x248)]){const _0x1932b2=_0x4650f0[_0x234978(0x28c)];this[_0x234978(0x1f2)](_0x1932b2[_0x234978(0x185)],_0x1932b2[_0x234978(0x2af)][0x0]);}})));}[_0x55d5c6(0x307)](_0x2e5887){const _0x4b8699=_0x55d5c6;var _0x24b353,_0x1943ee;const {memberID:_0x27f0fa,selection:_0x386e89}=_0x2e5887[_0x4b8699(0x143)],{sheetName:_0x446e35,range:_0x29bbbd}=x[_0x4b8699(0x36c)](_0x386e89),_0x249014={'name':(_0x1943ee=(_0x24b353=this[_0x4b8699(0x28a)][_0x4b8699(0x260)](this['unitID'],_0x27f0fa))==null?void 0x0:_0x24b353[_0x4b8699(0x2d7)])!=null?_0x1943ee:_0x4b8699(0x31f),'range':this[_0x4b8699(0x2de)](_0x446e35,_0x29bbbd),'sheetID':_0x446e35,'color':this[_0x4b8699(0x27d)][_0x4b8699(0x390)](_0x27f0fa),'selection':_0x386e89},_0x1e9c69=this[_0x4b8699(0x20c)];_0x1e9c69[_0x4b8699(0x2a0)](_0x27f0fa,_0x249014),this['_cursorInfo$'][_0x4b8699(0x2e2)](_0x1e9c69);}['_onCursorDelete'](_0x165eec){const _0x14a1da=_0x55d5c6,{memberID:_0x358a79}=_0x165eec[_0x14a1da(0x143)],_0x198b0e=this['cursorInfo'];_0x198b0e[_0x14a1da(0x10b)](_0x358a79),this[_0x14a1da(0x2e8)][_0x14a1da(0x2e2)](_0x198b0e);}[_0x55d5c6(0x2de)](_0xa78fee,_0x4818ee){const _0x4eaf61=_0x55d5c6;var _0x259ea8,_0x13aaba;const _0x1534e0=(_0x13aaba=(_0x259ea8=this['_univerInstanceService'][_0x4eaf61(0x1be)](this[_0x4eaf61(0x248)]))==null?void 0x0:_0x259ea8[_0x4eaf61(0x2c2)](_0xa78fee))==null?void 0x0:_0x13aaba[_0x4eaf61(0x1f0)]();return(_0x1534e0==null?void 0x0:_0x1534e0[_0x4eaf61(0x23e)](_0x155dc6=>a[_0x4eaf61(0x320)]['contains'](_0x155dc6,_0x4818ee)))||_0x4818ee;}[_0x55d5c6(0x29e)](){const _0x2039f4=_0x55d5c6,_0xf8888f=new a['DisposableCollection'](),_0x1a33ca=gt(),_0xf575a=()=>{const _0x4c3dba=_0x3ef0;_0xf8888f[_0x4c3dba(0x227)]();const _0x4362f8=(_0x2ff2e9,_0x39d2d6,_0x3cfb2b,_0x363efd)=>{const _0x404c22=_0x4c3dba;let _0x45bf73=[];switch(_0x2ff2e9['id']){case g[_0x404c22(0x2ec)][_0x404c22(0x35e)]:{_0x45bf73=g[_0x404c22(0x353)](_0x2ff2e9,_0x363efd);break;}case g['EffectRefRangId'][_0x404c22(0x26a)]:{_0x45bf73=g[_0x404c22(0x37c)](_0x2ff2e9,_0x363efd);break;}case g[_0x404c22(0x2ec)][_0x404c22(0x1ad)]:{_0x45bf73=g[_0x404c22(0x392)](_0x2ff2e9,_0x363efd);break;}case g[_0x404c22(0x2ec)][_0x404c22(0x1a8)]:{_0x45bf73=g[_0x404c22(0x16c)](_0x2ff2e9,_0x363efd);break;}case g[_0x404c22(0x2ec)]['InsertRangeMoveRightCommandId']:{_0x45bf73=g[_0x404c22(0x2fb)](_0x2ff2e9,_0x363efd);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x45bf73=g[_0x404c22(0x2a9)](_0x2ff2e9,_0x363efd);break;}case g[_0x404c22(0x2ec)][_0x404c22(0x375)]:{_0x45bf73=g[_0x404c22(0x1c5)](_0x2ff2e9,_0x363efd);break;}case g[_0x404c22(0x2ec)][_0x404c22(0x362)]:{_0x45bf73=g[_0x404c22(0x156)](_0x2ff2e9,_0x363efd);break;}case g[_0x404c22(0x2ec)][_0x404c22(0x3a3)]:{_0x45bf73=g[_0x404c22(0x30b)](_0x2ff2e9,_0x363efd);break;}}const _0x1ae940=g['runRefRangeMutations'](_0x45bf73,_0x363efd),_0x41dc74=this['cursorInfo'][_0x404c22(0x32c)](_0x39d2d6);if(_0x41dc74&&_0x1ae940){const _0x2f1b78={..._0x41dc74,'range':_0x1ae940};this[_0x404c22(0x20c)][_0x404c22(0x2a0)](_0x39d2d6,_0x2f1b78),_0x1a33ca(()=>{const _0x5e83e5=_0x404c22,_0x54c913=this['_refRangeService']['registerRefRange'](_0x1ae940,_0x11c384=>(_0x54c913[_0x5e83e5(0x227)](),_0x4362f8(_0x11c384,_0x39d2d6,_0x3cfb2b,_0x1ae940)));_0xf8888f['add'](_0x54c913);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x4c3dba(0x25c)]((_0x3d1488,_0x507391)=>{const _0x529cfa=_0x4c3dba,{range:_0x4ff82a,sheetID:_0x1d4d26}=_0x3d1488,_0x49b457=this[_0x529cfa(0x234)]['registerRefRange'](_0x4ff82a,_0x311ebc=>(_0x49b457[_0x529cfa(0x227)](),_0x4362f8(_0x311ebc,_0x507391,_0x1d4d26,_0x4ff82a)));_0xf8888f[_0x529cfa(0x36a)](_0x49b457);});};this[_0x2039f4(0x142)](a['toDisposable'](this[_0x2039f4(0x2e8)]['subscribe'](()=>{_0xf575a();})));}[_0x55d5c6(0x123)](){const _0x2f78c2=_0x55d5c6;var _0x40790b,_0x13c3b8;if(this['_online']=!0x0,((_0x40790b=this['_univerInstanceService'][_0x2f78c2(0x358)]())==null?void 0x0:_0x40790b[_0x2f78c2(0x294)]())!==this[_0x2f78c2(0x248)])return;const _0x41fcea=(_0x13c3b8=this[_0x2f78c2(0x238)][_0x2f78c2(0x32c)](g[_0x2f78c2(0x127)])[_0x2f78c2(0x251)]())==null?void 0x0:_0x13c3b8[0x0],_0x282d2d=this['_univerInstanceService'][_0x2f78c2(0x1e5)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2f78c2(0x384)]();_0x41fcea&&_0x282d2d&&this[_0x2f78c2(0x1f2)](_0x282d2d[_0x2f78c2(0x1e3)](),_0x41fcea);}[_0x55d5c6(0x141)](){this['_online']=!0x1;}};me=dt([w(0x2,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x39c)])),w(0x3,a[_0x55d5c6(0x381)](pe)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a[_0x55d5c6(0x274)]),w(0x6,a['ICommandService']),w(0x7,a[_0x55d5c6(0x381)](g[_0x55d5c6(0x36b)]))],me);var vt=Object['getOwnPropertyDescriptor'],Et=(_0x489631,_0x57dbcd,_0x1a1a1c,_0x4090c0)=>{const _0xc15a8=_0x55d5c6;for(var _0x144174=_0x4090c0>0x1?void 0x0:_0x4090c0?vt(_0x57dbcd,_0x1a1a1c):_0x57dbcd,_0x32b1a9=_0x489631[_0xc15a8(0x2cb)]-0x1,_0x150cef;_0x32b1a9>=0x0;_0x32b1a9--)(_0x150cef=_0x489631[_0x32b1a9])&&(_0x144174=_0x150cef(_0x144174)||_0x144174);return _0x144174;},oe=(_0x43e385,_0x29ca28)=>(_0x3ec852,_0x28c86d)=>_0x29ca28(_0x3ec852,_0x28c86d,_0x43e385);let B=class extends a[_0x55d5c6(0x369)]{constructor(_0x1bd06c,_0x351c0e,_0x7afac4){const _0x4ebc2c=_0x55d5c6;super(),_(this,_0x4ebc2c(0x30d),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x4ebc2c(0x10c)]=_0x1bd06c,this['_injector']=_0x351c0e,this[_0x4ebc2c(0x29b)]=_0x7afac4,this[_0x4ebc2c(0x341)]());}[_0x55d5c6(0x227)](){const _0x17bbe6=_0x55d5c6;super[_0x17bbe6(0x227)](),this[_0x17bbe6(0x161)][_0x17bbe6(0x13b)](),this[_0x17bbe6(0x30d)][_0x17bbe6(0x25c)](_0x308db2=>_0x308db2[_0x17bbe6(0x227)]());}['getCollabCursors$'](_0x57408f){const _0x7ab6c9=_0x55d5c6;return this['_entities']['has'](_0x57408f)?this[_0x7ab6c9(0x30d)]['get'](_0x57408f)['cursorInfo$']:this[_0x7ab6c9(0x161)][_0x7ab6c9(0x2d1)](I[_0x7ab6c9(0x14d)](_0x1d3ee9=>_0x1d3ee9['unitID']===_0x57408f),I[_0x7ab6c9(0x1a9)](_0x4cb3f0=>_0x4cb3f0[_0x7ab6c9(0x2e3)]));}[_0x55d5c6(0x341)](){const _0x318029=_0x55d5c6;this['_univerInstanceService'][_0x318029(0x3a5)](a['UniverInstanceType'][_0x318029(0x2df)])[_0x318029(0x2d1)](I[_0x318029(0x33b)](this[_0x318029(0x110)]))[_0x318029(0x1bc)](async _0x2eb9e6=>{const _0x438ac4=_0x318029,_0x4b7a29=_0x2eb9e6[_0x438ac4(0x294)](),_0xffa99a=await this[_0x438ac4(0x1e7)](_0x4b7a29);this[_0x438ac4(0x161)]['next'](_0xffa99a),this[_0x438ac4(0x30d)][_0x438ac4(0x2a0)](_0x4b7a29,_0xffa99a);}),this[_0x318029(0x10c)][_0x318029(0x3a5)](a[_0x318029(0x28e)]['UNIVER_DOC'])[_0x318029(0x2d1)](I[_0x318029(0x33b)](this[_0x318029(0x110)]))[_0x318029(0x2d1)](I['filter'](_0x5ce51f=>!_0x5ce51f['getUnitId']()['startsWith']('__')))[_0x318029(0x1bc)](async _0x33bab4=>{const _0x96a5a=_0x318029,_0x1d6de=_0x33bab4[_0x96a5a(0x294)](),_0x534304=await this[_0x96a5a(0x259)](_0x1d6de);this[_0x96a5a(0x161)][_0x96a5a(0x2e2)](_0x534304),this[_0x96a5a(0x30d)]['set'](_0x1d6de,_0x534304);}),I[_0x318029(0x306)](this[_0x318029(0x10c)][_0x318029(0x200)](a[_0x318029(0x28e)]['UNIVER_DOC']),this[_0x318029(0x10c)][_0x318029(0x200)](a[_0x318029(0x28e)][_0x318029(0x2df)]))[_0x318029(0x2d1)](I[_0x318029(0x33b)](this[_0x318029(0x110)]))[_0x318029(0x1bc)](_0x12ff36=>{const _0x4684ec=_0x318029,_0x56d4b4=_0x12ff36['getUnitId'](),_0x2916b0=this[_0x4684ec(0x30d)]['get'](_0x56d4b4);_0x2916b0&&(_0x2916b0[_0x4684ec(0x227)](),this[_0x4684ec(0x30d)][_0x4684ec(0x10b)](_0x56d4b4));});}async[_0x55d5c6(0x1e7)](_0x36a891){const _0x5508ab=_0x55d5c6,_0x2b821e=await this[_0x5508ab(0x29b)][_0x5508ab(0x16a)](_0x36a891),_0x1f2952=this[_0x5508ab(0x238)][_0x5508ab(0x268)](me,_0x36a891,_0x2b821e);return _0x1f2952['init'](),_0x1f2952;}async[_0x55d5c6(0x259)](_0x15e10c){const _0x2f159b=_0x55d5c6,_0x406406=await this[_0x2f159b(0x29b)]['requireSession'](_0x15e10c),_0x284055=this['_injector']['createInstance'](fe,_0x15e10c,_0x406406);return _0x284055[_0x2f159b(0x2d8)](),_0x284055;}};B=Et([oe(0x0,a['IUniverInstanceService']),oe(0x1,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x39c)])),oe(0x2,a[_0x55d5c6(0x381)](u[_0x55d5c6(0x34c)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0x40380a,_0x41f8bf){const _0xd77a6d=_0x55d5c6;let {radius:_0x31ba27,width:_0x25de79,height:_0x372499}=_0x41f8bf;_0x31ba27=_0x31ba27!=null?_0x31ba27:0x0,_0x25de79=_0x25de79!=null?_0x25de79:0x1e,_0x372499=_0x372499!=null?_0x372499:0x1e;let _0x3e1df5=0x0,_0x176f0a=0x0,_0x421134=0x0;_0x3e1df5=_0x176f0a=_0x421134=Math['min'](_0x31ba27,_0x25de79/0x2,_0x372499/0x2),_0x40380a[_0xd77a6d(0x39d)](),_0x40380a[_0xd77a6d(0x1b1)](_0x3e1df5,0x0),_0x40380a['lineTo'](_0x25de79-_0x176f0a,0x0),_0x40380a[_0xd77a6d(0x327)](_0x25de79-_0x176f0a,_0x176f0a,_0x176f0a,Math['PI']*0x3/0x2,0x0,!0x1),_0x40380a[_0xd77a6d(0x2be)](_0x25de79,_0x372499-_0x421134),_0x40380a[_0xd77a6d(0x327)](_0x25de79-_0x421134,_0x372499-_0x421134,_0x421134,0x0,Math['PI']/0x2,!0x1),_0x40380a[_0xd77a6d(0x2be)](0x0,_0x372499),_0x40380a[_0xd77a6d(0x2be)](0x0,_0x3e1df5),_0x40380a['arc'](_0x3e1df5,_0x3e1df5,_0x3e1df5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x40380a[_0xd77a6d(0x2d5)](),_0x41f8bf[_0xd77a6d(0x280)]&&(_0x40380a[_0xd77a6d(0x32f)](),_0x40380a[_0xd77a6d(0x1b5)]=_0x41f8bf[_0xd77a6d(0x280)],_0x41f8bf[_0xd77a6d(0x135)]==='evenodd'?_0x40380a[_0xd77a6d(0x280)](_0xd77a6d(0x138)):_0x40380a[_0xd77a6d(0x280)](),_0x40380a[_0xd77a6d(0x2f3)]());}class ie extends C[_0x55d5c6(0x226)]{constructor(_0x36a2cb,_0x59b3ea){const _0x16416e=_0x55d5c6;super(_0x36a2cb,_0x59b3ea),_(this,'color'),_(this,_0x16416e(0x2a8)),(this[_0x16416e(0x12b)]=_0x59b3ea==null?void 0x0:_0x59b3ea[_0x16416e(0x12b)],this['text']=_0x59b3ea==null?void 0x0:_0x59b3ea['text']);}static[_0x55d5c6(0x1de)](_0x192d49,_0xe3358f){const _0x329786=_0x55d5c6,{text:_0x1e15e6,color:_0x105c22}=_0xe3358f;_0x192d49[_0x329786(0x32f)](),_0x192d49[_0x329786(0x2e9)]=_0x329786(0x271);const _0x38f81e=_0x192d49[_0x329786(0x310)](_0x1e15e6)[_0x329786(0x33a)],_0x1d038d=Math[_0x329786(0x252)](_0x38f81e+0x2*ae,De);Tt(_0x192d49,{'height':X,'radius':0x4,'width':_0x1d038d,'fill':_0x105c22}),_0x192d49[_0x329786(0x1b5)]=_0x329786(0x22c);const _0x4afddd=ae,_0x4d41c2=X-Ct,_0x43376d=De-0x2*ae;if(_0x38f81e>_0x43376d){let _0x14fc03='',_0x24da42=0x0;for(const _0x264885 of _0x1e15e6){const _0x3d604c=_0x192d49[_0x329786(0x310)](_0x264885)[_0x329786(0x33a)];if(_0x24da42+_0x3d604c<=_0x43376d-_0x192d49['measureText'](_0x329786(0x28d))[_0x329786(0x33a)])_0x14fc03+=_0x264885,_0x24da42+=_0x3d604c;else{_0x14fc03+=_0x329786(0x28d);break;}}_0x192d49[_0x329786(0x153)](_0x14fc03,_0x4afddd,_0x4d41c2);}else _0x192d49[_0x329786(0x153)](_0x1e15e6,_0x4afddd,_0x4d41c2);_0x192d49[_0x329786(0x2f3)]();}[_0x55d5c6(0x3ab)](_0x43fe5a){const _0x1217ac=_0x55d5c6;ie[_0x1217ac(0x1de)](_0x43fe5a,this);}}const ce=_0x55d5c6(0x146),pt=_0x55d5c6(0x212),Ot=_0x55d5c6(0x149),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x55d5c6(0x17c);class Ne{constructor(_0x582387,_0x4dcb24,_0x24299e,_0x3badfb){const _0x9d7a85=_0x55d5c6;_(this,_0x9d7a85(0x365),[]),_(this,'_anchor',null),_(this,_0x9d7a85(0x1c6),null),_(this,'_anchorDot',null),_(this,_0x9d7a85(0x2d4),null),_(this,_0x9d7a85(0x2b8),null),(this[_0x9d7a85(0x329)]=_0x582387,this['_scene']=_0x4dcb24,this[_0x9d7a85(0x170)]=_0x24299e,this[_0x9d7a85(0x309)]=_0x3badfb,this[_0x9d7a85(0x16f)]());}set[_0x55d5c6(0x15d)](_0x43eafc){const _0x486149=_0x55d5c6;_0x43eafc?(this[_0x486149(0x279)]&&this[_0x486149(0x279)][_0x486149(0x27c)](),this[_0x486149(0x1c6)]&&this[_0x486149(0x1c6)]['show']()):(this[_0x486149(0x279)]&&this[_0x486149(0x279)]['show'](),this[_0x486149(0x1c6)]&&this[_0x486149(0x1c6)]['hide']());}[_0x55d5c6(0x227)](){const _0x12438b=_0x55d5c6;for(const _0x17de32 of this[_0x12438b(0x365)])_0x17de32['dispose']();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x12438b(0x279)]&&this[_0x12438b(0x279)]['dispose'](),this[_0x12438b(0x2f1)]&&this[_0x12438b(0x2f1)][_0x12438b(0x227)](),this[_0x12438b(0x2b8)]&&this[_0x12438b(0x2b8)]();}[_0x55d5c6(0x16f)](){const _0x1d5671=_0x55d5c6;var _0xef3ccc;const {_docSkeleton:_0x4f36a4,_document:_0x176485}=this,{color:_0xc022f2,name:_0x40b0c9,ranges:_0xa1272f}=this[_0x1d5671(0x329)],_0x312141=_0x176485[_0x1d5671(0x370)](),{docsLeft:_0x5229c1,docsTop:_0x17bf14}=_0x312141,_0x533f02=new T[(_0x1d5671(0x1d8))](_0x312141,_0x4f36a4);for(const {startOffset:_0xaab123,endOffset:_0x44577a,rangeType:_0x2e8773,segmentId:_0x492988,segmentPage:_0x3b1521,collapsed:_0x407e7c,isActive:_0x310efa}of _0xa1272f){const _0x1d4ef5=_0x4f36a4[_0x1d5671(0x18d)](_0xaab123,!0x0,_0x492988,_0x3b1521);let _0x463027=_0x4f36a4['findNodePositionByCharIndex'](_0x44577a,!0x0,_0x492988,_0x3b1521);if(_0x463027==null&&(_0x463027=_0x4f36a4[_0x1d5671(0x18d)](_0x44577a-0x1,!0x1,_0x492988,_0x3b1521)),_0x310efa){const {contentBoxPointGroup:_0x2b4909}=_0x533f02['getRangePointData'](_0x463027,_0x463027);if(_0x2b4909['length']===0x0)continue;this[_0x1d5671(0x295)](_0xc022f2,_0x2b4909,_0x5229c1,_0x17bf14,_0x40b0c9),this[_0x1d5671(0x2b8)]=this[_0x1d5671(0x257)]();}if(_0x1d4ef5&&_0x463027){if(_0x2e8773===a['DOC_RANGE_TYPE'][_0x1d5671(0x1ff)]){const _0x2cea37=new T[(_0x1d5671(0x2b3))](_0x312141,_0x4f36a4),{pointGroup:_0x126a5f}=(_0xef3ccc=_0x2cea37[_0x1d5671(0x38a)](_0x1d4ef5,_0x463027))!=null?_0xef3ccc:{};if(_0x126a5f==null||_0x126a5f['length']===0x0)continue;this[_0x1d5671(0x261)](_0xc022f2,_0x126a5f,_0x5229c1,_0x17bf14);}else{if(!_0x407e7c){const {borderBoxPointGroup:_0x4b16c7}=_0x533f02[_0x1d5671(0x38a)](_0x1d4ef5,_0x463027);if(_0x4b16c7['length']===0x0)continue;this[_0x1d5671(0x255)](_0xc022f2,_0x4b16c7,_0x5229c1,_0x17bf14);}}}}}['_drawAnchor'](_0xfcc507,_0x32fe85,_0x5dcbe5,_0x322f16,_0x58681f){const _0x2b7e72=_0x55d5c6,_0x29e9d4=this[_0x2b7e72(0x324)](_0x32fe85),{left:_0x387e9e,top:_0x3623bd,height:_0x4488ee}=_0x29e9d4,_0x4394d0=this[_0x2b7e72(0x150)](),_0x1b6779=bt/_0x4394d0,_0x4b3b1d=new C['Rect'](ce+a[_0x2b7e72(0x1e9)](Y),{'left':_0x387e9e+_0x5dcbe5-_0x1b6779,'top':_0x3623bd+_0x322f16,'height':_0x4488ee,'width':Rt,'fill':_0xfcc507||C[_0x2b7e72(0x122)](a[_0x2b7e72(0x304)][_0x2b7e72(0x2ca)],0x0),'strokeWidth':_0x1b6779,'stroke':Dt,'evented':!0x0});this[_0x2b7e72(0x2f1)]=_0x4b3b1d,this[_0x2b7e72(0x2ce)]['addObject'](_0x4b3b1d,T['TEXT_RANGE_LAYER_INDEX']);const _0x3218f8=new C[(_0x2b7e72(0x112))](ce+a[_0x2b7e72(0x1e9)](Y),{'left':_0x387e9e+_0x5dcbe5-_0x1b6779,'top':_0x3623bd+_0x322f16-le/0x2,'height':le,'width':le,'fill':_0xfcc507||C['getColor'](a['COLORS'][_0x2b7e72(0x2ca)],0x0),'strokeWidth':0x0,'stroke':_0xfcc507||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x3218f8,this[_0x2b7e72(0x2ce)]['addObject'](_0x3218f8,T['TEXT_RANGE_LAYER_INDEX']);const _0x44af9=new ie(ce+a[_0x2b7e72(0x1e9)](Y),{'left':_0x387e9e+_0x5dcbe5-_0x1b6779,'top':_0x3623bd+_0x322f16-X,'text':_0x58681f,'color':_0xfcc507});this[_0x2b7e72(0x1c6)]=_0x44af9,this['_scene'][_0x2b7e72(0x10a)](_0x44af9,T[_0x2b7e72(0x3ae)]),this['_hover']=!0x1;}['_handleHover'](){const _0x3bb045=_0x55d5c6,_0xc836c8=this[_0x3bb045(0x2f1)]['onPointerEnter$'][_0x3bb045(0x1da)](()=>{const _0x85cac1=_0x3bb045;this[_0x85cac1(0x15d)]=!0x0;}),_0x3e339a=this[_0x3bb045(0x2f1)][_0x3bb045(0x2ed)][_0x3bb045(0x1da)](()=>{const _0x39ef83=_0x3bb045;this[_0x39ef83(0x2d4)]&&clearTimeout(this[_0x39ef83(0x2d4)]),this[_0x39ef83(0x2d4)]=setTimeout(()=>{const _0xc1fb5b=_0x39ef83;this[_0xc1fb5b(0x15d)]=!0x1;},0x7d0);});return()=>{const _0x5db8e1=_0x3bb045;_0xc836c8['unsubscribe'](),_0x3e339a[_0x5db8e1(0x272)]();};}['_drawTextRange'](_0xbf0206,_0x3e18fd,_0x3a88ba,_0x5b91e0){const _0x158ea=_0x55d5c6,_0x13dbf6=new a[(_0x158ea(0x189))](_0xbf0206)['setAlpha'](0.2)[_0x158ea(0x246)](),_0x5ef85a=new C['RegularPolygon'](pt+a[_0x158ea(0x1e9)](Y),{'pointsGroup':_0x3e18fd,'fill':_0x13dbf6||C[_0x158ea(0x122)](a[_0x158ea(0x304)][_0x158ea(0x2ca)],0.2),'left':_0x3a88ba,'top':_0x5b91e0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x158ea(0x365)][_0x158ea(0x125)](_0x5ef85a),this[_0x158ea(0x2ce)][_0x158ea(0x10a)](_0x5ef85a,T[_0x158ea(0x3ae)]);}[_0x55d5c6(0x261)](_0x257bd9,_0x3af089,_0x569f4b,_0x4365c4){const _0xd510b7=_0x55d5c6,_0x5869e7=new a[(_0xd510b7(0x189))](_0x257bd9)['setAlpha'](0.2)[_0xd510b7(0x246)](),_0x337b25=new C['RegularPolygon'](Ot+a['generateRandomId'](Y),{'pointsGroup':_0x3af089,'fill':_0x5869e7||C[_0xd510b7(0x122)](a[_0xd510b7(0x304)][_0xd510b7(0x2ca)],0.2),'left':_0x569f4b,'top':_0x4365c4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xd510b7(0x365)][_0xd510b7(0x125)](_0x337b25),this[_0xd510b7(0x2ce)][_0xd510b7(0x10a)](_0x337b25,T[_0xd510b7(0x3ae)]);}[_0x55d5c6(0x324)](_0x39b2aa){const _0x249cb8=_0x39b2aa[0x0],_0x1d71ec=_0x249cb8[0x0],_0x39d8ef=_0x249cb8[0x2],{x:_0x519271,y:_0x16951c}=_0x1d71ec,{x:_0x27ed73,y:_0x1a2ffa}=_0x39d8ef;return{'left':_0x519271,'top':_0x16951c,'width':_0x27ed73-_0x519271,'height':_0x1a2ffa-_0x16951c};}[_0x55d5c6(0x150)](){const _0x501b2f=_0x55d5c6,{scaleX:_0xd60091,scaleY:_0x2555ad}=this['_scene'][_0x501b2f(0x1a3)]();return Math[_0x501b2f(0x15a)](_0xd60091,_0x2555ad);}}var Nt=Object[_0x55d5c6(0x11e)],Ut=(_0x1da95c,_0x481b85,_0xd04892,_0x594eea)=>{for(var _0x19c7e0=_0x594eea>0x1?void 0x0:_0x594eea?Nt(_0x481b85,_0xd04892):_0x481b85,_0x2ae783=_0x1da95c['length']-0x1,_0x2d2a9a;_0x2ae783>=0x0;_0x2ae783--)(_0x2d2a9a=_0x1da95c[_0x2ae783])&&(_0x19c7e0=_0x2d2a9a(_0x19c7e0)||_0x19c7e0);return _0x19c7e0;},q=(_0x50fdd1,_0xbc74dd)=>(_0x573fec,_0x61e577)=>_0xbc74dd(_0x573fec,_0x61e577,_0x50fdd1);let ge=class extends a[_0x55d5c6(0x369)]{constructor(_0x3c7a66,_0x24ac7e,_0x4a3a46,_0xf653b1,_0x549534){const _0x5a730e=_0x55d5c6;super(),_(this,_0x5a730e(0x1d1),[]),_(this,'_cursors',[]),(this['_context']=_0x3c7a66,this[_0x5a730e(0x27f)]=_0x24ac7e,this[_0x5a730e(0x29a)]=_0x4a3a46,this[_0x5a730e(0x245)]=_0xf653b1,this[_0x5a730e(0x13c)]=_0x549534,this[_0x5a730e(0x341)]());}[_0x55d5c6(0x341)](){const _0x244a1f=_0x55d5c6,_0x4a63e0=this[_0x244a1f(0x235)]['unitId'],_0x11291a=this[_0x244a1f(0x27f)];this[_0x244a1f(0x142)](I[_0x244a1f(0x265)]([this[_0x244a1f(0x29a)][_0x244a1f(0x1a1)](_0x4a63e0),this['_themeService'][_0x244a1f(0x22b)]])[_0x244a1f(0x2d1)]($[_0x244a1f(0x297)](([_0x248314,_0x3755fb])=>({'skeleton':_0x11291a[_0x244a1f(0x26d)](),'cursors':[..._0x248314['values']()]['flatMap'](_0x2d9c0e=>({..._0x2d9c0e,'color':this['_themeService'][_0x244a1f(0x214)](_0x2d9c0e[_0x244a1f(0x12b)])}))})))[_0x244a1f(0x1bc)](_0x550a2f=>{const _0x3580c6=_0x244a1f;if(this[_0x3580c6(0x366)](),_0x550a2f){const {skeleton:_0x4091b4,cursors:_0x298d6c}=_0x550a2f;this['_updateCollabCursors'](_0x4091b4,_0x298d6c);}})),this[_0x244a1f(0x194)](),this['_initCommandExecutedListener']();}[_0x55d5c6(0x113)](_0x33f715,_0x1c10a3){const _0x350db6=_0x55d5c6,{scene:_0xfbe923,mainComponent:_0x32ff6d}=this[_0x350db6(0x235)],_0x4af29e=_0x1c10a3[_0x350db6(0x297)](_0x490539=>new Ne(_0x490539,_0xfbe923,_0x33f715,_0x32ff6d));this[_0x350db6(0x1d1)]=_0x4af29e,this[_0x350db6(0x24f)]=_0x1c10a3;}[_0x55d5c6(0x101)](){const _0x38623d=_0x55d5c6;this[_0x38623d(0x366)]();const {scene:_0x2cdfd2,mainComponent:_0x2bd34b}=this[_0x38623d(0x235)],_0xae415c=this[_0x38623d(0x27f)][_0x38623d(0x26d)](),_0xfd06f4=this[_0x38623d(0x24f)][_0x38623d(0x297)](_0x2ab748=>new Ne(_0x2ab748,_0x2cdfd2,_0xae415c,_0x2bd34b));this[_0x38623d(0x1d1)]=_0xfd06f4;}[_0x55d5c6(0x366)](){const _0x559ee9=_0x55d5c6;this[_0x559ee9(0x1d1)]['forEach'](_0x5219b0=>_0x5219b0[_0x559ee9(0x227)]()),this[_0x559ee9(0x1d1)]=[];}[_0x55d5c6(0x3a6)](){const _0x2701c4=_0x55d5c6,_0x5aa066=[T[_0x2701c4(0x3a9)]['id']];this[_0x2701c4(0x142)](this[_0x2701c4(0x245)][_0x2701c4(0x277)](_0x41e1b1=>{const _0x35bf5e=_0x2701c4;_0x5aa066[_0x35bf5e(0x26c)](_0x41e1b1['id'])&&_0x41e1b1['params'][_0x35bf5e(0x2dd)]===this[_0x35bf5e(0x235)][_0x35bf5e(0x2dd)]&&this[_0x35bf5e(0x101)]();}));}['_initResize'](){const _0x13892e=_0x55d5c6;this[_0x13892e(0x142)](a['fromEventSubject'](this[_0x13892e(0x235)][_0x13892e(0x1a0)][_0x13892e(0x39a)])[_0x13892e(0x2d1)]($[_0x13892e(0x14d)](_0xc6d6e4=>_0xc6d6e4[_0x13892e(0x236)]===C[_0x13892e(0x302)][_0x13892e(0x32b)]),$[_0x13892e(0x11c)](0x10))[_0x13892e(0x1bc)](()=>{const _0x1ea849=_0x13892e;this[_0x1ea849(0x101)]();}));}};ge=Ut([q(0x1,a[_0x55d5c6(0x381)](W[_0x55d5c6(0x37e)])),q(0x2,a[_0x55d5c6(0x381)](B)),q(0x3,a[_0x55d5c6(0x19d)]),q(0x4,a['Inject'](a[_0x55d5c6(0x154)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x55d5c6(0x226)]{constructor(_0x88cfc2,_0x73d5a6){const _0x1dc99e=_0x55d5c6;super(_0x88cfc2,_0x73d5a6),_(this,_0x1dc99e(0x139)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x1dc99e(0x202),''),_(this,_0x1dc99e(0x31c),_0x1dc99e(0x300)),_(this,_0x1dc99e(0x1b7)),(_0x73d5a6&&this['setShapeProps'](_0x73d5a6),this['onPointerEnter$'][_0x1dc99e(0x1da)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1dc99e(0x2ed)][_0x1dc99e(0x1da)](()=>this[_0x1dc99e(0x332)]({'hovered':!0x1})));}[_0x55d5c6(0x332)](_0x3cb7a1){const _0x2c558a=_0x55d5c6;var _0x3f3dbd,_0x7a8684,_0x47ad13,_0x386efa,_0x280ac8,_0x5e37e1;this[_0x2c558a(0x139)]=(_0x3f3dbd=_0x3cb7a1[_0x2c558a(0x12b)])!=null?_0x3f3dbd:this['_color'],this['_hovered']=(_0x7a8684=_0x3cb7a1[_0x2c558a(0x1c1)])!=null?_0x7a8684:this[_0x2c558a(0x3bb)],this[_0x2c558a(0x308)]=(_0x47ad13=_0x3cb7a1[_0x2c558a(0x1d7)])!=null?_0x47ad13:this['_range'],this[_0x2c558a(0x202)]=(_0x386efa=_0x3cb7a1['name'])!=null?_0x386efa:this[_0x2c558a(0x202)],this[_0x2c558a(0x31c)]=(_0x280ac8=_0x3cb7a1['labelPosition'])!=null?_0x280ac8:this[_0x2c558a(0x31c)],this['_backgroundColor']=(_0x5e37e1=_0x3cb7a1[_0x2c558a(0x19b)])!=null?_0x5e37e1:this[_0x2c558a(0x1b7)],this[_0x2c558a(0x2bf)]({'width':_0x3cb7a1[_0x2c558a(0x33a)],'height':_0x3cb7a1['height']});}[_0x55d5c6(0x1af)](_0x48cb8a){const _0x565085=_0x55d5c6,{row:_0x121aac,column:_0x49f2d3}=_0x48cb8a;if(_0x121aac>=this[_0x565085(0x308)][_0x565085(0x1f3)]&&_0x121aac<=this[_0x565085(0x308)][_0x565085(0x136)]&&_0x49f2d3>=this['_range']['startColumn']&&_0x49f2d3<=this['_range'][_0x565085(0x34e)]){this[_0x565085(0x332)]({'hovered':!0x0});return;}this[_0x565085(0x332)]({'hovered':!0x1});}[_0x55d5c6(0x172)](_0x425a5a){return!0x1;}[_0x55d5c6(0x3ab)](_0x5030d8){const _0x5af8d9=_0x55d5c6;C['Rect'][_0x5af8d9(0x1de)](_0x5030d8,{'width':this[_0x5af8d9(0x33a)],'height':this[_0x5af8d9(0x36e)],'strokeWidth':Mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5af8d9(0x1b7)]}),this[_0x5af8d9(0x3bb)]&&(_0x5030d8[_0x5af8d9(0x32f)](),_0x5030d8[_0x5af8d9(0x26b)](0x1,0x0,0x0,0x1,this[_0x5af8d9(0x33a)],this[_0x5af8d9(0x31c)]===_0x5af8d9(0x186)?0x0:-X),ie[_0x5af8d9(0x1de)](_0x5030d8,{'text':this['_name'],'color':this['_color']}),_0x5030d8[_0x5af8d9(0x2f3)]());}}var At=Object[_0x55d5c6(0x11e)],Pt=(_0x2c3da7,_0x1912c2,_0x2e998c,_0x55893c)=>{const _0x2b430e=_0x55d5c6;for(var _0x27339d=_0x55893c>0x1?void 0x0:_0x55893c?At(_0x1912c2,_0x2e998c):_0x1912c2,_0x2a3587=_0x2c3da7[_0x2b430e(0x2cb)]-0x1,_0x44a852;_0x2a3587>=0x0;_0x2a3587--)(_0x44a852=_0x2c3da7[_0x2a3587])&&(_0x27339d=_0x44a852(_0x27339d)||_0x27339d);return _0x27339d;},_e=(_0x299e15,_0x15446d)=>(_0x5b01b9,_0x421cbc)=>_0x15446d(_0x5b01b9,_0x421cbc,_0x299e15);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x46b90b,_0x57cbbe,_0x1f9a86,_0x4c0162){const _0x521e2a=_0x55d5c6;super(),_(this,_0x521e2a(0x24f),new Set()),_(this,_0x521e2a(0x103),null),(this[_0x521e2a(0x235)]=_0x46b90b,this[_0x521e2a(0x1df)]=_0x57cbbe,this['_collabCursorController']=_0x1f9a86,this['_themeService']=_0x4c0162,this[_0x521e2a(0x341)]());}['_init'](){const _0x3d8258=_0x55d5c6;this[_0x3d8258(0x1df)][_0x3d8258(0x102)][_0x3d8258(0x2d1)]($['takeUntil'](this[_0x3d8258(0x110)]),$[_0x3d8258(0x1a9)](_0x384f8f=>{const _0x56bb44=_0x3d8258;if(_0x384f8f){const _0x2a4de3=_0x384f8f[_0x56bb44(0x2db)];return I[_0x56bb44(0x265)](this[_0x56bb44(0x29a)][_0x56bb44(0x1a1)](this[_0x56bb44(0x235)][_0x56bb44(0x2dd)]),this[_0x56bb44(0x13c)][_0x56bb44(0x22b)])[_0x56bb44(0x2d1)]($['map'](([_0x355e28,_0x88bd95])=>{const _0x1e9dcf=_0x56bb44,_0x5a4eea=new Map();return _0x355e28[_0x1e9dcf(0x25c)]((_0x4f2f4f,_0x283041)=>{const _0x5783d6=_0x1e9dcf;if(_0x4f2f4f['sheetID']===_0x2a4de3){const _0x5016c6={..._0x4f2f4f};_0x5016c6[_0x5783d6(0x12b)]=this[_0x5783d6(0x13c)][_0x5783d6(0x214)](_0x4f2f4f[_0x5783d6(0x12b)]),_0x5a4eea[_0x5783d6(0x2a0)](_0x283041,_0x5016c6);}}),{'skeleton':_0x384f8f,'cursors':_0x5a4eea};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x14c16c,cursors:_0x50f6fb})=>{const _0x2df731=_0x3d8258;this[_0x2df731(0x366)](),_0x14c16c&&this[_0x2df731(0x113)](_0x14c16c,_0x50f6fb);}),this[_0x3d8258(0x1df)][_0x3d8258(0x102)][_0x3d8258(0x1bc)](_0x6485b=>{const _0x30b4b8=_0x3d8258;if(_0x6485b==null)return;const {skeleton:_0x140ab3}=_0x6485b,{scene:_0x50b9fc}=this['_context'];_0x50b9fc[_0x30b4b8(0x184)]['subscribeEvent'](a[_0x30b4b8(0x34d)](_0x3b03d3=>{const _0x3d2b82=_0x30b4b8;var _0x23848a,_0x503238;const {offsetX:_0x4abfb1,offsetY:_0x46a875}=_0x3b03d3,{x:_0xa29189,y:_0x4f2b7a}=_0x50b9fc[_0x3d2b82(0x2f8)](C[_0x3d2b82(0x1b2)][_0x3d2b82(0x1d5)]([_0x4abfb1,_0x46a875])),{scaleX:_0x318c05,scaleY:_0x17a897}=_0x50b9fc[_0x3d2b82(0x1a3)](),_0x4ecd2c=_0x50b9fc[_0x3d2b82(0x177)](C[_0x3d2b82(0x379)][_0x3d2b82(0x195)]),_0x3fa63a=_0x50b9fc['getVpScrollXYInfoByPosToVp'](C['Vector2'][_0x3d2b82(0x1d5)]([_0xa29189,_0x4f2b7a]),_0x4ecd2c),_0x4a3f0d=_0x140ab3[_0x3d2b82(0x298)](_0x4abfb1,_0x46a875,_0x318c05,_0x17a897,_0x3fa63a);((_0x23848a=this[_0x3d2b82(0x103)])==null?void 0x0:_0x23848a[_0x3d2b82(0x21d)])===_0x4a3f0d[_0x3d2b82(0x21d)]&&((_0x503238=this[_0x3d2b82(0x103)])==null?void 0x0:_0x503238[_0x3d2b82(0x137)])===_0x4a3f0d[_0x3d2b82(0x137)]||this[_0x3d2b82(0x24f)][_0x3d2b82(0x25c)](_0x4a91c1=>{const _0x452b8d=_0x3d2b82;_0x4a91c1[_0x452b8d(0x1af)](_0x4a3f0d);});},0x64));});}[_0x55d5c6(0x113)](_0x2d673b,_0x1c474a){const _0x2b5ada=_0x55d5c6;var _0x5e5d7e;const _0x2df1f7=(_0x5e5d7e=this[_0x2b5ada(0x1df)]['getCurrent']())==null?void 0x0:_0x5e5d7e[_0x2b5ada(0x2a2)];if(!_0x2df1f7)return;const _0x558de4=this[_0x2b5ada(0x220)]();if(!_0x558de4)return;this['_cursors'][_0x2b5ada(0x25c)](_0x47d3b1=>{const _0xa2f709=_0x2b5ada;_0x47d3b1[_0xa2f709(0x3af)]();});const {scene:_0x50837c}=_0x558de4,_0x3b9b88=yt(Array[_0x2b5ada(0x1a4)](_0x1c474a[_0x2b5ada(0x291)]()))['map'](_0x5504e4=>{const _0x26c5f1=_0x2b5ada,{color:_0x595f40,range:_0x37b499,name:_0x22b470,selection:_0x5e89eb,sheetID:_0x14d601}=_0x5504e4,{startColumn:_0x461a5f,startRow:_0x129789,endColumn:_0x262e03,endRow:_0x2c8677}=_0x37b499,_0x38e8df=z[_0x26c5f1(0x1a7)](_0x129789,_0x461a5f,_0x50837c,_0x2df1f7),_0x1636ed=z[_0x26c5f1(0x1a7)](_0x2c8677,_0x262e03,_0x50837c,_0x2df1f7),{columnHeaderHeightAndMarginTop:_0x795509}=_0x2df1f7,{startX:_0x4220b2,startY:_0x2f406c}=_0x38e8df,{endX:_0x12fe73,endY:_0x1e31e2}=_0x1636ed,_0x5c64e5=_0x12fe73-_0x4220b2,_0x1364e8=_0x1e31e2-_0x2f406c,_0x11052e={'labelPosition':_0x2f406c-_0x795509>=X?_0x26c5f1(0x300):'bottom','sheetID':_0x14d601,'range':_0x37b499,'color':_0x595f40,'name':_0x22b470,'selection':_0x5e89eb,'left':_0x4220b2,'top':_0x2f406c,'width':_0x5c64e5,'height':_0x1364e8,'evented':!0x1,'zIndex':wt};return new Be(_0x22b470,_0x11052e);});_0x50837c['addObjects'](_0x3b9b88,Lt),this[_0x2b5ada(0x24f)]=new Set(_0x3b9b88);}[_0x55d5c6(0x366)](){const _0x55a7d4=_0x55d5c6;var _0x25d8ab;(_0x25d8ab=this[_0x55a7d4(0x24f)])==null||_0x25d8ab[_0x55a7d4(0x25c)](_0x56694a=>_0x56694a[_0x55a7d4(0x227)]());}[_0x55d5c6(0x220)](){const _0x38f5b7=_0x55d5c6;return z[_0x38f5b7(0x23d)](this[_0x38f5b7(0x235)][_0x38f5b7(0x39b)],this[_0x38f5b7(0x235)]);}};ve=Pt([_e(0x1,a[_0x55d5c6(0x381)](z[_0x55d5c6(0x1ec)])),_e(0x2,a['Inject'](B)),_e(0x3,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x154)]))],ve);function yt(_0x5a7697){const _0xf5a19=_0x55d5c6,_0x3f866d=new Map();return _0x5a7697[_0xf5a19(0x25c)](_0x28e498=>{const _0x57b54f=_0xf5a19;if(_0x3f866d[_0x57b54f(0x152)](_0x28e498['selection'])){const _0x44f45b=_0x3f866d[_0x57b54f(0x32c)](_0x28e498[_0x57b54f(0x254)]);_0x44f45b[_0x57b54f(0x2d7)]+=',\x20'+_0x28e498[_0x57b54f(0x2d7)];}else _0x3f866d[_0x57b54f(0x2a0)](_0x28e498[_0x57b54f(0x254)],_0x28e498);}),Array[_0xf5a19(0x1a4)](_0x3f866d[_0xf5a19(0x291)]());}var $t=Object[_0x55d5c6(0x11e)],xt=(_0x1d0642,_0x5e0e81,_0xa3adfe,_0x36dbd5)=>{for(var _0x5bba99=_0x36dbd5>0x1?void 0x0:_0x36dbd5?$t(_0x5e0e81,_0xa3adfe):_0x5e0e81,_0x37d4dd=_0x1d0642['length']-0x1,_0x5c092a;_0x37d4dd>=0x0;_0x37d4dd--)(_0x5c092a=_0x1d0642[_0x37d4dd])&&(_0x5bba99=_0x5c092a(_0x5bba99)||_0x5bba99);return _0x5bba99;},y=(_0x1933e8,_0x263524)=>(_0x3a13b6,_0xab03c0)=>_0x263524(_0x3a13b6,_0xab03c0,_0x1933e8);let J=class extends a['Disposable']{constructor(_0x541338,_0x534e75,_0x202095,_0x1e7e72,_0x105ff0,_0x260276){const _0x29c526=_0x55d5c6;super(),this['_beforeCloseService']=_0x541338,this[_0x29c526(0x350)]=_0x534e75,this[_0x29c526(0x264)]=_0x202095,this['_messageService']=_0x1e7e72,this[_0x29c526(0x179)]=_0x105ff0,this['_localeService']=_0x260276,this['_setupBeforeClosingHandler'](),this[_0x29c526(0x17f)]();}['_setupBeforeClosingHandler'](){const _0x21d7c5=_0x55d5c6;this['disposeWithMe'](this[_0x21d7c5(0x130)][_0x21d7c5(0x228)](()=>{const _0x3852b3=_0x21d7c5;if(this[_0x3852b3(0x350)]['saveTaskMap'][_0x3852b3(0x387)])return this[_0x3852b3(0x1dd)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x55d5c6(0x17f)](){const _0x1d2ddc=_0x55d5c6;this['disposeWithMe'](this[_0x1d2ddc(0x264)][_0x1d2ddc(0x1aa)][_0x1d2ddc(0x1bc)](_0x55ee3c=>{const _0x50060f=_0x1d2ddc;_0x55ee3c['id']===u[_0x50060f(0x343)][_0x50060f(0x2c8)]&&this[_0x50060f(0x27e)]['show']({'type':p[_0x50060f(0x25d)]['Warning'],'content':this['_localeService']['t'](_0x50060f(0x1db))}),_0x55ee3c['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x50060f(0x27e)][_0x50060f(0x34a)]({'type':p[_0x50060f(0x25d)][_0x50060f(0x3b0)],'content':this[_0x50060f(0x1dd)]['t'](_0x50060f(0x247))}),_0x55ee3c['id']===u['CollaborationUIEventId'][_0x50060f(0x2f9)]&&this[_0x50060f(0x179)]['show']({'title':this[_0x50060f(0x1dd)]['t'](_0x50060f(0x190)),'content':this[_0x50060f(0x1dd)]['t'](_0x50060f(0x2a7)),'type':_0x50060f(0x148),'duration':0x0}),_0x55ee3c['id']===u['CollaborationUIEventId'][_0x50060f(0x1f5)]&&this[_0x50060f(0x27e)][_0x50060f(0x34a)]({'type':p[_0x50060f(0x25d)][_0x50060f(0x167)],'content':this[_0x50060f(0x1dd)]['t']('collaboration.closeRoom')+'('+_0x55ee3c[_0x50060f(0x143)]+')'}),_0x55ee3c['id']===u[_0x50060f(0x343)][_0x50060f(0x290)]&&this[_0x50060f(0x27e)][_0x50060f(0x34a)]({'type':p[_0x50060f(0x25d)][_0x50060f(0x3b0)],'content':this['_localeService']['t'](_0x55ee3c['data']||'')}),_0x55ee3c['id']===u[_0x50060f(0x343)][_0x50060f(0x3ad)]&&this[_0x50060f(0x27e)][_0x50060f(0x34a)]({'type':p[_0x50060f(0x25d)]['Warning'],'content':this[_0x50060f(0x1dd)]['t'](_0x50060f(0x1a2))}),_0x55ee3c['id']===u['CollaborationUIEventId'][_0x50060f(0x262)]&&this[_0x50060f(0x27e)][_0x50060f(0x34a)]({'type':p[_0x50060f(0x25d)][_0x50060f(0x167)],'content':this[_0x50060f(0x1dd)]['t']('session.connection-failed')}),_0x55ee3c['id']===u[_0x50060f(0x343)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x50060f(0x27e)][_0x50060f(0x34a)]({'type':p[_0x50060f(0x25d)]['Error'],'content':this[_0x50060f(0x1dd)]['t'](_0x50060f(0x395))});}));}};J=xt([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x55d5c6(0x364)])),y(0x3,O[_0x55d5c6(0x2b9)]),y(0x4,O[_0x55d5c6(0x126)]),y(0x5,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x1dc)]))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x55d5c6(0x11e)],kt=(_0x65f7d5,_0x20375e,_0xfd6abd,_0xc1433b)=>{const _0x21add8=_0x55d5c6;for(var _0x4cf9b4=_0xc1433b>0x1?void 0x0:_0xc1433b?Ft(_0x20375e,_0xfd6abd):_0x20375e,_0xe8a32f=_0x65f7d5[_0x21add8(0x2cb)]-0x1,_0x8445da;_0xe8a32f>=0x0;_0xe8a32f--)(_0x8445da=_0x65f7d5[_0xe8a32f])&&(_0x4cf9b4=_0x8445da(_0x4cf9b4)||_0x4cf9b4);return _0x4cf9b4;},Le=(_0x2117b8,_0x3bab21)=>(_0x813e5a,_0x59e401)=>_0x3bab21(_0x813e5a,_0x59e401,_0x2117b8);let Z=class{constructor(_0x593d0d,_0x3c7382){const _0x480800=_0x55d5c6;this[_0x480800(0x1fc)]=_0x593d0d,this[_0x480800(0x2b7)]=_0x3c7382;}[_0x55d5c6(0x18c)](_0x48c048){const _0x351750=_0x55d5c6;this['_transformUndoRedoStack'](_0x48c048),this[_0x351750(0x2c5)](_0x48c048);}[_0x55d5c6(0x145)](_0x36b111){const _0x599ac5=_0x55d5c6,{unitID:_0x5b4fa6}=_0x36b111,_0x54e909=this[_0x599ac5(0x2b7)][_0x599ac5(0x336)](_0x5b4fa6)[_0x599ac5(0x107)](T[_0x599ac5(0x2e0)]),{redoCache:_0x2667c0}=_0x54e909[_0x599ac5(0x176)]();if(_0x2667c0['length']===0x0)return _0x36b111;let _0x57ad01=a[_0x599ac5(0x2a3)][_0x599ac5(0x35b)](_0x36b111['mutations'][0x0]);for(let _0xf9e8f8=0x0;_0xf9e8f8<_0x2667c0[_0x599ac5(0x2cb)];_0xf9e8f8++){const _0x292a5c={'id':_0x599ac5(0x345),'params':{..._0x2667c0[_0xf9e8f8]}},_0x519469=this[_0x599ac5(0x1fc)][_0x599ac5(0x2ef)](_0x57ad01,_0x292a5c,!0x1);if(v[_0x599ac5(0x284)](_0x519469))throw _0x519469[_0x599ac5(0x148)];_0x57ad01=_0x519469[_0x599ac5(0x196)];}return{...a['Tools']['deepClone'](_0x36b111),'mutations':[_0x57ad01]};}['_transformUndoRedoStack'](_0x406a42){const _0x2ae168=_0x55d5c6,{unitID:_0x56d05e}=_0x406a42,_0x4e00fd=this[_0x2ae168(0x2b7)]['getRenderById'](_0x56d05e)['with'](T[_0x2ae168(0x2e0)]),{undoCache:_0x5ea619,redoCache:_0x6ad061}=_0x4e00fd['getUndoRedoMutationParamsCache']();if(_0x5ea619[_0x2ae168(0x2cb)]===0x0||_0x6ad061[_0x2ae168(0x2cb)]===0x0)return;const _0x1e809d=[],_0xafee0a=[];let _0x3bb81f=a['Tools'][_0x2ae168(0x35b)](_0x406a42[_0x2ae168(0x32d)][0x0]),_0x2cb7d3=a['Tools'][_0x2ae168(0x35b)](_0x406a42['mutations'][0x0]);for(let _0x410e11=_0x5ea619[_0x2ae168(0x2cb)]-0x1;_0x410e11>=0x0;_0x410e11--){const _0x1ea0dd={'id':_0x2ae168(0x345),'params':{..._0x5ea619[_0x410e11]}},_0x6a60b3={'id':_0x2ae168(0x345),'params':{..._0x6ad061[_0x410e11]}},_0x1588b5=this['_transformService'][_0x2ae168(0x2ef)](_0x3bb81f,_0x1ea0dd,!0x1),_0x411c0c=this[_0x2ae168(0x1fc)][_0x2ae168(0x2ef)](_0x2cb7d3,_0x6a60b3,!0x1);if(v['isTransformMutationFailure'](_0x1588b5))throw _0x1588b5['error'];if(v[_0x2ae168(0x284)](_0x411c0c))throw _0x411c0c['error'];_0x1e809d[_0x2ae168(0x243)](_0x1588b5[_0x2ae168(0x165)]['params']),_0xafee0a[_0x2ae168(0x243)](_0x411c0c[_0x2ae168(0x165)][_0x2ae168(0x28c)]),_0x3bb81f=_0x1588b5[_0x2ae168(0x196)],_0x2cb7d3=_0x411c0c[_0x2ae168(0x196)];}_0x4e00fd['setUndoRedoMutationParamsCache']({'undoCache':_0x1e809d,'redoCache':_0xafee0a});}['_transformPreviousActiveRange'](_0x34ad7a){const _0x29f017=_0x55d5c6,{unitID:_0x487388}=_0x34ad7a,_0x4c697d=this['_renderManagerService'][_0x29f017(0x336)](_0x487388)[_0x29f017(0x107)](T[_0x29f017(0x2e0)]),_0x2189fe=_0x4c697d[_0x29f017(0x215)]();if(_0x2189fe==null)return;const _0x4aa7ed=[{'id':_0x29f017(0x345),'params':{'unitId':_0x34ad7a[_0x29f017(0x248)],'actions':null,'textRanges':[_0x2189fe]}}],_0x181357=this['_transformService']['transformMutationsWithChangeset'](_0x34ad7a,_0x4aa7ed);if(!v[_0x29f017(0x1c3)](_0x181357))throw _0x181357[_0x29f017(0x148)];const _0x362aa5=_0x181357[_0x29f017(0x165)][0x0][_0x29f017(0x28c)]['textRanges'];Array['isArray'](_0x362aa5)&&_0x362aa5['length']&&_0x4c697d[_0x29f017(0x38f)](_0x362aa5[0x0]);}};Z=kt([Le(0x0,v[_0x55d5c6(0x21b)]),Le(0x1,C['IRenderManagerService'])],Z);var jt=Object[_0x55d5c6(0x11e)],Yt=(_0x1e835c,_0x29b02e,_0x179611,_0x4bfba0)=>{const _0x3169e4=_0x55d5c6;for(var _0x2427a5=_0x4bfba0>0x1?void 0x0:_0x4bfba0?jt(_0x29b02e,_0x179611):_0x29b02e,_0x14281d=_0x1e835c[_0x3169e4(0x2cb)]-0x1,_0x3cf475;_0x14281d>=0x0;_0x14281d--)(_0x3cf475=_0x1e835c[_0x14281d])&&(_0x2427a5=_0x3cf475(_0x2427a5)||_0x2427a5);return _0x2427a5;},he=(_0x1febcf,_0x4288da)=>(_0x5d0c00,_0x217f32)=>_0x4288da(_0x5d0c00,_0x217f32,_0x1febcf);let Q=class{constructor(_0xde858b,_0x454aa6,_0x64e737){const _0x531c51=_0x55d5c6;this[_0x531c51(0x238)]=_0xde858b,this[_0x531c51(0x1fc)]=_0x454aa6,this[_0x531c51(0x1e1)]=_0x64e737;}['transformStateCache'](_0x118a20){this['_transformHistoryAndStateStack'](_0x118a20);}[_0x55d5c6(0x145)](_0x1d0497){const _0x16e339=_0x55d5c6,{unitID:_0x5e0e18}=_0x1d0497,{collaboration:_0x5a0fe7}=this[_0x16e339(0x1e1)][_0x16e339(0x283)](_0x5e0e18);if(_0x5a0fe7[_0x16e339(0x2cb)]===0x0)return _0x1d0497;let _0xb15bf2=a[_0x16e339(0x2a3)][_0x16e339(0x35b)](_0x1d0497[_0x16e339(0x32d)][0x0]);for(let _0x49f59c=0x0;_0x49f59c<_0x5a0fe7['length'];_0x49f59c++){const _0x5d04ca={'id':_0x16e339(0x345),'params':{'unitId':_0x5a0fe7[_0x49f59c]['unitId'],..._0x5a0fe7[_0x49f59c][_0x16e339(0x239)]}},_0xa5370a=this[_0x16e339(0x1fc)][_0x16e339(0x2ef)](_0xb15bf2,_0x5d04ca,!0x1);if(v[_0x16e339(0x284)](_0xa5370a))throw _0xa5370a[_0x16e339(0x148)];_0xb15bf2=_0xa5370a[_0x16e339(0x196)];}return{...a['Tools'][_0x16e339(0x35b)](_0x1d0497),'mutations':[_0xb15bf2]};}[_0x55d5c6(0x19e)](_0x595e69){const _0x17942d=_0x55d5c6,{unitID:_0xa52005}=_0x595e69,{history:_0x102268,collaboration:_0xe7a96d}=this['_docStateChangeManagerService'][_0x17942d(0x283)](_0xa52005);if(_0x102268['length']===0x0&&_0xe7a96d[_0x17942d(0x2cb)]===0x0)return;const _0x4b5849=[],_0x3a099a=[];let _0xffe8ef=a[_0x17942d(0x2a3)][_0x17942d(0x35b)](_0x595e69[_0x17942d(0x32d)][0x0]),_0x2cebc8=a[_0x17942d(0x2a3)][_0x17942d(0x35b)](_0x595e69[_0x17942d(0x32d)][0x0]);for(let _0x538a0b=_0x102268['length']-0x1;_0x538a0b>=0x0;_0x538a0b--){const _0x3afac8={'id':_0x17942d(0x345),'params':{'unitId':_0x102268[_0x538a0b][_0x17942d(0x2dd)],..._0x102268[_0x538a0b][_0x17942d(0x30a)]}},_0x5ac7e0={'id':_0x17942d(0x345),'params':{'unitId':_0x102268[_0x538a0b][_0x17942d(0x2dd)],..._0x102268[_0x538a0b][_0x17942d(0x239)]}},_0x60f4c1=this['_transformService'][_0x17942d(0x2ef)](_0xffe8ef,_0x3afac8,!0x1),_0x166a06=this[_0x17942d(0x1fc)][_0x17942d(0x2ef)](_0x2cebc8,_0x5ac7e0,!0x1);if(v['isTransformMutationFailure'](_0x60f4c1))throw _0x60f4c1['error'];if(v['isTransformMutationFailure'](_0x166a06))throw _0x166a06[_0x17942d(0x148)];_0x4b5849['unshift']({..._0x102268[_0x538a0b],'undoState':_0x60f4c1[_0x17942d(0x165)][_0x17942d(0x28c)],'redoState':_0x166a06['m2Prime'][_0x17942d(0x28c)]}),_0xffe8ef=_0x60f4c1[_0x17942d(0x196)],_0x2cebc8=_0x166a06[_0x17942d(0x196)];}_0xffe8ef=a['Tools'][_0x17942d(0x35b)](_0x595e69['mutations'][0x0]),_0x2cebc8=a[_0x17942d(0x2a3)][_0x17942d(0x35b)](_0x595e69[_0x17942d(0x32d)][0x0]);for(let _0x548403=_0xe7a96d[_0x17942d(0x2cb)]-0x1;_0x548403>=0x0;_0x548403--){const _0x571c84={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe7a96d[_0x548403][_0x17942d(0x2dd)],..._0xe7a96d[_0x548403][_0x17942d(0x30a)]}},_0x35db07={'id':_0x17942d(0x345),'params':{'unitId':_0xe7a96d[_0x548403]['unitId'],..._0xe7a96d[_0x548403][_0x17942d(0x239)]}},_0x4c9965=this[_0x17942d(0x1fc)][_0x17942d(0x2ef)](_0xffe8ef,_0x571c84,!0x1),_0x2c7926=this[_0x17942d(0x1fc)][_0x17942d(0x2ef)](_0x2cebc8,_0x35db07,!0x1);if(v[_0x17942d(0x284)](_0x4c9965))throw _0x4c9965['error'];if(v['isTransformMutationFailure'](_0x2c7926))throw _0x2c7926['error'];_0x3a099a[_0x17942d(0x243)]({..._0xe7a96d[_0x548403],'undoState':_0x4c9965[_0x17942d(0x165)][_0x17942d(0x28c)],'redoState':_0x2c7926[_0x17942d(0x165)]['params']}),_0xffe8ef=_0x4c9965[_0x17942d(0x196)],_0x2cebc8=_0x2c7926[_0x17942d(0x196)];}this[_0x17942d(0x1e1)]['setStateCache'](_0xa52005,{'history':_0x4b5849,'collaboration':_0x3a099a});}};Q=Yt([he(0x0,a[_0x55d5c6(0x381)](a['Injector'])),he(0x1,v[_0x55d5c6(0x21b)]),he(0x2,a[_0x55d5c6(0x381)](T[_0x55d5c6(0x3b3)]))],Q);var Ht=Object[_0x55d5c6(0x11e)],Wt=(_0x2672b0,_0x1c2d8a,_0x2a1f81,_0x5b8ac3)=>{const _0x165f69=_0x55d5c6;for(var _0xf0142b=_0x5b8ac3>0x1?void 0x0:_0x5b8ac3?Ht(_0x1c2d8a,_0x2a1f81):_0x1c2d8a,_0x52320e=_0x2672b0[_0x165f69(0x2cb)]-0x1,_0x1179dd;_0x52320e>=0x0;_0x52320e--)(_0x1179dd=_0x2672b0[_0x52320e])&&(_0xf0142b=_0x1179dd(_0xf0142b)||_0xf0142b);return _0xf0142b;},Me=(_0x173fde,_0x1b4ad2)=>(_0x2985a9,_0x73578d)=>_0x1b4ad2(_0x2985a9,_0x73578d,_0x173fde);let ee=class{constructor(_0x5b58e5,_0x97883f){const _0x5076f4=_0x55d5c6;this[_0x5076f4(0x238)]=_0x5b58e5,this[_0x5076f4(0x1fc)]=_0x97883f;}[_0x55d5c6(0x301)](_0x21c8ca){const _0x296fb9=_0x55d5c6;var _0x899260;const _0x441ba6=this['_injector'][_0x296fb9(0x32c)](W[_0x296fb9(0x273)]),_0x5b01e5=(_0x899260=_0x441ba6[_0x296fb9(0x38b)]())!=null?_0x899260:[];if(_0x5b01e5[_0x296fb9(0x2cb)]===0x0)return;const _0x3197d3=_0x21c8ca[_0x296fb9(0x248)],_0x3ba401=[{'id':_0x296fb9(0x345),'params':{'unitId':_0x3197d3,'actions':null,'textRanges':_0x5b01e5}}],_0x378f80=this['_transformService'][_0x296fb9(0x18a)](_0x21c8ca,_0x3ba401);if(!v[_0x296fb9(0x1c3)](_0x378f80))throw _0x378f80[_0x296fb9(0x148)];const _0x591f10=_0x378f80[_0x296fb9(0x165)][0x0][_0x296fb9(0x28c)]['textRanges'];Array[_0x296fb9(0x1c0)](_0x591f10)&&_0x591f10['length']&&_0x441ba6[_0x296fb9(0x269)](_0x591f10,{'unitId':_0x3197d3,'subUnitId':_0x3197d3},!0x1);}};ee=Wt([Me(0x0,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x39c)])),Me(0x1,v[_0x55d5c6(0x21b)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x4df1e0,_0x8ac472,_0x5ef2b4,_0x419e3e)=>{for(var _0x50620e=_0x419e3e>0x1?void 0x0:_0x419e3e?Vt(_0x8ac472,_0x5ef2b4):_0x8ac472,_0x5ef8d5=_0x4df1e0['length']-0x1,_0x39b2ba;_0x5ef8d5>=0x0;_0x5ef8d5--)(_0x39b2ba=_0x4df1e0[_0x5ef8d5])&&(_0x50620e=_0x39b2ba(_0x50620e)||_0x50620e);return _0x50620e;},N=(_0x2348f1,_0x8f0abb)=>(_0x1bc910,_0x4da8e1)=>_0x8f0abb(_0x1bc910,_0x4da8e1,_0x2348f1);let te=class extends a[_0x55d5c6(0x319)]{constructor(_0x18c89e,_0x350389,_0x173ffb,_0x1ce82c,_0x5de38b,_0x1eb16e,_0x52e7b2,_0x399dd4){const _0x48e788=_0x55d5c6;super(),_(this,_0x48e788(0x12c),new I[(_0x48e788(0x296))](u['CollaborationStatus'][_0x48e788(0x312)])),(this[_0x48e788(0x1e1)]=_0x18c89e,this['_collaborationController']=_0x350389,this['_docTransformIMECacheService']=_0x173ffb,this[_0x48e788(0x311)]=_0x1ce82c,this[_0x48e788(0x1a6)]=_0x5de38b,this[_0x48e788(0x117)]=_0x1eb16e,this[_0x48e788(0x27e)]=_0x52e7b2,this['_localeService']=_0x399dd4,this['_initEntityListener']());}['_initEntityListener'](){const _0x2cd482=_0x55d5c6;this[_0x2cd482(0x142)](this[_0x2cd482(0x3ba)]['entityInit$'][_0x2cd482(0x1bc)](_0x4a4660=>{const _0x2287d3=_0x2cd482,_0x3a33fc=this[_0x2287d3(0x1e1)][_0x2287d3(0x1ce)]['subscribe'](_0x1fd900=>{const _0x382bfa=_0x2287d3;if(_0x1fd900==null)return;const {unitId:_0x11df37,redoState:_0xab4303,commandId:_0x414ea6}=_0x1fd900;if(_0x11df37!==_0x4a4660[_0x382bfa(0x248)])return;const _0x4253df={'id':_0x414ea6,'type':a[_0x382bfa(0x1d9)][_0x382bfa(0x28f)],'params':{'unitId':_0x11df37,'actions':_0xab4303['actions'],'textRanges':null}};_0x4a4660[_0x382bfa(0x2a6)](_0x4253df);});if(_0x4a4660['disposeWithMe'](_0x3a33fc),_0x4a4660 instanceof u['DocCollaborationEntity']){const _0x2618f2={'onTransformIME':_0x15cac6=>this[_0x2287d3(0x12a)][_0x2287d3(0x18c)](_0x15cac6),'onTransformState':_0x573da=>this[_0x2287d3(0x311)][_0x2287d3(0x131)](_0x573da),'onTransformSelections':_0x2b20ce=>this[_0x2287d3(0x1a6)]['transformSelections'](_0x2b20ce),'onSyncEditingCollabCursor':_0x3c36a8=>this['_docSyncEditingCollabCursorService'][_0x2287d3(0x2f0)](_0x3c36a8),'onTransformRemoteChangesetByIMECache':_0x4cbd5f=>this[_0x2287d3(0x12a)][_0x2287d3(0x145)](_0x4cbd5f),'onTransformRemoteChangesetByStateCache':_0x4872c9=>this['_docTransformStateCacheService'][_0x2287d3(0x145)](_0x4872c9)};_0x4a4660[_0x2287d3(0x2b1)](_0x2618f2);}}));}};te=Gt([N(0x0,a['Inject'](T[_0x55d5c6(0x3b3)])),N(0x1,a['Inject'](u[_0x55d5c6(0x2fd)])),N(0x2,a[_0x55d5c6(0x381)](Z)),N(0x3,a[_0x55d5c6(0x381)](Q)),N(0x4,a[_0x55d5c6(0x381)](ee)),N(0x5,a[_0x55d5c6(0x381)](Oe)),N(0x6,O['IMessageService']),N(0x7,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x1dc)]))],te);var V=(_0x392e88=>(_0x392e88[_0x392e88[_0x55d5c6(0x2d3)]=0x0]=_0x55d5c6(0x2d3),_0x392e88[_0x392e88['OK']=0x1]='OK',_0x392e88[_0x392e88['INTERNAL_ERROR']=0x2]=_0x55d5c6(0x368),_0x392e88[_0x392e88[_0x55d5c6(0x2f9)]=0x3]=_0x55d5c6(0x2f9),_0x392e88[_0x392e88[_0x55d5c6(0x213)]=0x4]='NOT_FOUND',_0x392e88[_0x392e88['UNAUTHENTICATED']=0x5]=_0x55d5c6(0x188),_0x392e88[_0x392e88[_0x55d5c6(0x367)]=0x6]=_0x55d5c6(0x367),_0x392e88[_0x392e88['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x392e88[_0x392e88['TOO_MANY_REQUESTS']=0x8]=_0x55d5c6(0x17d),_0x392e88[_0x392e88['COMPLETION_FINISHED']=0x9]=_0x55d5c6(0x134),_0x392e88[_0x392e88['LOGIN_FAILED']=0xa]=_0x55d5c6(0x2f4),_0x392e88[_0x392e88[_0x55d5c6(0x386)]=0xb]=_0x55d5c6(0x386),_0x392e88[_0x392e88[_0x55d5c6(0x292)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x392e88[_0x392e88[_0x55d5c6(0x389)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x392e88[_0x392e88[_0x55d5c6(0x2e4)]=0xe]=_0x55d5c6(0x2e4),_0x392e88[_0x392e88[_0x55d5c6(0x23a)]=0xf]=_0x55d5c6(0x23a),_0x392e88[_0x392e88[_0x55d5c6(0x326)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x392e88[_0x392e88[_0x55d5c6(0x3a1)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x392e88[_0x392e88[_0x55d5c6(0x2a5)]=0x65]='ERROR_AGAIN',_0x392e88[_0x392e88[_0x55d5c6(0x1f4)]=0xc9]='USER_NOT_FOUND',_0x392e88[_0x392e88[_0x55d5c6(0x2c1)]=0xca]=_0x55d5c6(0x2c1),_0x392e88[_0x392e88['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x55d5c6(0x1eb),_0x392e88[_0x392e88[_0x55d5c6(0x3a8)]=0x1771]=_0x55d5c6(0x3a8),_0x392e88[_0x392e88[_0x55d5c6(0x237)]=0x1772]=_0x55d5c6(0x237),_0x392e88[_0x392e88[_0x55d5c6(0x16e)]=0x1773]=_0x55d5c6(0x16e),_0x392e88[_0x392e88[_0x55d5c6(0x192)]=0x1b59]=_0x55d5c6(0x192),_0x392e88[_0x392e88[_0x55d5c6(0x180)]=0x1b5a]=_0x55d5c6(0x180),_0x392e88[_0x392e88[_0x55d5c6(0x342)]=0x1b5b]=_0x55d5c6(0x342),_0x392e88[_0x392e88[_0x55d5c6(0x1cc)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x392e88[_0x392e88['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x392e88[_0x392e88[_0x55d5c6(0x1ea)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x392e88[_0x392e88[_0x55d5c6(0x160)]=0x2329]=_0x55d5c6(0x160),_0x392e88[_0x392e88[_0x55d5c6(0x276)]=0x232a]=_0x55d5c6(0x276),_0x392e88[_0x392e88[_0x55d5c6(0x281)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x392e88[_0x392e88[_0x55d5c6(0x37f)]=0x232c]=_0x55d5c6(0x37f),_0x392e88[_0x392e88[_0x55d5c6(0x20f)]=0x232d]=_0x55d5c6(0x20f),_0x392e88[_0x392e88[_0x55d5c6(0x223)]=0x2711]=_0x55d5c6(0x223),_0x392e88[_0x392e88[_0x55d5c6(0x3b7)]=0x2712]=_0x55d5c6(0x3b7),_0x392e88[_0x392e88[_0x55d5c6(0x1b0)]=0x2713]=_0x55d5c6(0x1b0),_0x392e88[_0x392e88[_0x55d5c6(0x275)]=0x2714]=_0x55d5c6(0x275),_0x392e88[_0x392e88[_0x55d5c6(0x371)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x392e88[_0x392e88[_0x55d5c6(0x2c7)]=0x271b]=_0x55d5c6(0x2c7),_0x392e88[_0x392e88[_0x55d5c6(0x14c)]=0x271c]=_0x55d5c6(0x14c),_0x392e88[_0x392e88['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x55d5c6(0x3aa),_0x392e88[_0x392e88[_0x55d5c6(0x1fd)]=0x271e]=_0x55d5c6(0x1fd),_0x392e88[_0x392e88['YUUMI_AI_RUN_FAILED']=0x271f]=_0x55d5c6(0x18f),_0x392e88[_0x392e88[_0x55d5c6(0x357)]=0x2720]=_0x55d5c6(0x357),_0x392e88[_0x392e88[_0x55d5c6(0x382)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x392e88[_0x392e88[_0x55d5c6(0x169)]=0x2ee1]=_0x55d5c6(0x169),_0x392e88[_0x392e88['INVALID_INVITE_CODE']=0x2ee2]=_0x55d5c6(0x398),_0x392e88[_0x392e88[_0x55d5c6(0x24e)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x392e88[_0x392e88[_0x55d5c6(0x2f2)]=0x2ee4]=_0x55d5c6(0x2f2),_0x392e88[_0x392e88[_0x55d5c6(0x144)]=0x2ee5]=_0x55d5c6(0x144),_0x392e88[_0x392e88[_0x55d5c6(0x330)]=0x32c9]=_0x55d5c6(0x330),_0x392e88[_0x392e88['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x55d5c6(0x1f8),_0x392e88[_0x392e88[_0x55d5c6(0x13a)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x392e88[_0x392e88[_0x55d5c6(0x2e1)]=0x36b1]=_0x55d5c6(0x2e1),_0x392e88[_0x392e88['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x392e88[_0x392e88[_0x55d5c6(0x27b)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x392e88[_0x392e88[_0x55d5c6(0x338)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x392e88[_0x392e88['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x55d5c6(0x182),_0x392e88[_0x392e88[_0x55d5c6(0x318)]=0x3716]=_0x55d5c6(0x318),_0x392e88[_0x392e88[_0x55d5c6(0x3b4)]=0x3717]=_0x55d5c6(0x3b4),_0x392e88[_0x392e88[_0x55d5c6(0x1ba)]=0x37dd]=_0x55d5c6(0x1ba),_0x392e88[_0x392e88[_0x55d5c6(0x286)]=0x3a99]=_0x55d5c6(0x286),_0x392e88[_0x392e88[_0x55d5c6(0x104)]=0x3a9a]=_0x55d5c6(0x104),_0x392e88[_0x392e88['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x55d5c6(0x21f),_0x392e88[_0x392e88[_0x55d5c6(0x1c8)]=0x3a9c]=_0x55d5c6(0x1c8),_0x392e88[_0x392e88[_0x55d5c6(0x26f)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x392e88[_0x392e88[_0x55d5c6(0x256)]=0x3a9e]=_0x55d5c6(0x256),_0x392e88[_0x392e88[_0x55d5c6(0x287)]=0x3a9f]=_0x55d5c6(0x287),_0x392e88[_0x392e88['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x55d5c6(0x1d3),_0x392e88[_0x392e88['UNRECOGNIZED']=-0x1]=_0x55d5c6(0x250),_0x392e88))(V||{});function Xt(_0x118d7f){const _0x467eb2=_0x55d5c6;var _0x49176a,_0x45e235;const _0x21c145=(_0x49176a=_0x118d7f[_0x467eb2(0x397)])==null?void 0x0:_0x49176a[_0x467eb2(0x361)],_0x10a57e=((_0x45e235=_0x118d7f['stageInfo'])==null?void 0x0:_0x45e235['totalFormulasToCalculate'])||0x0;return _0x21c145===x[_0x467eb2(0x33f)][_0x467eb2(0x21e)]&&_0x10a57e>0x0;}function Kt(_0x1dc35a){const _0x21f3e5=_0x55d5c6;return _0x1dc35a[_0x21f3e5(0x21a)]===x[_0x21f3e5(0x1fa)][_0x21f3e5(0x3a4)];}var qt=Object[_0x55d5c6(0x11e)],zt=(_0x3f65df,_0x3382b1,_0x4d7c82,_0x5154b2)=>{const _0x3eed1c=_0x55d5c6;for(var _0x3264c6=_0x5154b2>0x1?void 0x0:_0x5154b2?qt(_0x3382b1,_0x4d7c82):_0x3382b1,_0x25e86c=_0x3f65df[_0x3eed1c(0x2cb)]-0x1,_0x580608;_0x25e86c>=0x0;_0x25e86c--)(_0x580608=_0x3f65df[_0x25e86c])&&(_0x3264c6=_0x580608(_0x3264c6)||_0x3264c6);return _0x3264c6;},L=(_0x27634d,_0x81248b)=>(_0x596d88,_0x38d578)=>_0x81248b(_0x596d88,_0x38d578,_0x27634d);const Jt=_0x55d5c6(0x109),Zt='/universer-api/license/formula/limit/start',Qt=_0x55d5c6(0x37b);let se=class extends a[_0x55d5c6(0x319)]{constructor(_0x368dff,_0x493def,_0x1822b7,_0x2684b6,_0x5d010f,_0x432ae0,_0x549141){const _0x4ea510=_0x55d5c6;super(),_(this,_0x4ea510(0x19c),null),_(this,_0x4ea510(0x15b),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x4ea510(0x29f),0x0),(this[_0x4ea510(0x27e)]=_0x368dff,this['_commandService']=_0x493def,this[_0x4ea510(0x2cc)]=_0x1822b7,this[_0x4ea510(0x25f)]=_0x2684b6,this[_0x4ea510(0x10c)]=_0x5d010f,this[_0x4ea510(0x15e)]=_0x432ae0,this['_localeService']=_0x549141,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x4e6f18=_0x55d5c6;this[_0x4e6f18(0x142)](this[_0x4e6f18(0x245)]['beforeCommandExecuted']((_0x53ae83,_0x158ec9)=>{const _0x4afa71=_0x4e6f18;var _0xf76ebb;if(_0x53ae83['id']!==x[_0x4afa71(0x278)]['id'])return;const _0x43196d=_0x53ae83[_0x4afa71(0x28c)];if(!this[_0x4afa71(0x14b)]((_0xf76ebb=_0x43196d[_0x4afa71(0x1ed)])!=null?_0xf76ebb:[]))return;if(!this[_0x4afa71(0x133)]())throw this[_0x4afa71(0x124)](_0x53ae83,_0x158ec9),this[_0x4afa71(0x25b)](),new a[(_0x4afa71(0x13d))]();})),this[_0x4e6f18(0x142)](this[_0x4e6f18(0x245)][_0x4e6f18(0x277)]((_0x5f593a,_0x4b4d27)=>{const _0x42187a=_0x4e6f18;if(_0x5f593a['id']!==x['SetFormulaCalculationNotificationMutation']['id'])return;const _0x5e8c46=_0x5f593a['params'];if(Xt(_0x5e8c46)){const _0x12e6c8=a['generateRandomId']();this[_0x42187a(0x323)][_0x42187a(0x125)](_0x12e6c8),this[_0x42187a(0x377)](_0x12e6c8);}else{if(Kt(_0x5e8c46)&&this['_taskIds'][_0x42187a(0x2cb)]>0x0){const _0x4c2191=this[_0x42187a(0x323)][_0x42187a(0x355)]();this['_releaseCalculationLimit'](_0x4c2191);}}}));}[_0x55d5c6(0x227)](){const _0x38b430=_0x55d5c6;super[_0x38b430(0x227)](),this['_clearPolling'](),this[_0x38b430(0x323)]=[],this[_0x38b430(0x36f)]=0x0,this[_0x38b430(0x15b)]=0x0,this[_0x38b430(0x29f)]=0x0;}async[_0x55d5c6(0x124)](_0x32240c,_0xc17dc8){const _0x4e55f5=_0x55d5c6;for(let _0x449e4f=0x0;_0x449e4f<0x1e;_0x449e4f++)try{if(await this[_0x4e55f5(0x37d)](),this[_0x4e55f5(0x133)]()){this[_0x4e55f5(0x1ca)](_0x32240c,_0xc17dc8),this['_messageService'][_0x4e55f5(0x34a)]({'content':this[_0x4e55f5(0x1dd)]['t'](_0x4e55f5(0x191)),'type':p['MessageType'][_0x4e55f5(0x2ba)]});return;}await new Promise(_0xd82d2f=>{const _0x2aea57=_0x4e55f5;this[_0x2aea57(0x19c)]=window[_0x2aea57(0x204)](_0xd82d2f,0x3e8);});}catch(_0x39ca8a){this['_logService'][_0x4e55f5(0x148)](_0x39ca8a);}this[_0x4e55f5(0x27e)][_0x4e55f5(0x34a)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':p[_0x4e55f5(0x25d)][_0x4e55f5(0x167)]});}[_0x55d5c6(0x1ca)](_0x14b29b,_0x5099c3){const _0x202c54=_0x55d5c6;try{this['_commandService']['executeCommand'](_0x14b29b['id'],_0x14b29b[_0x202c54(0x28c)],_0x5099c3);}catch(_0x7ba43c){this[_0x202c54(0x15e)][_0x202c54(0x148)](_0x7ba43c);}}[_0x55d5c6(0x39e)](_0x4af351,_0x1cb032){const _0x486cdd=_0x55d5c6;_0x1cb032<this[_0x486cdd(0x29f)]||(this[_0x486cdd(0x29f)]=_0x1cb032,this['_maxFormulaLimit']=Number[_0x486cdd(0x3a7)](_0x4af351[_0x486cdd(0x111)]),this[_0x486cdd(0x36f)]=Number[_0x486cdd(0x3a7)](_0x4af351['currentUsage']));}async[_0x55d5c6(0x377)](_0x2bc7b9){const _0x133226=_0x55d5c6;var _0x3bb840,_0x541180;const _0x158b05=Date[_0x133226(0x210)]();try{const _0x231b02=((_0x3bb840=this[_0x133226(0x2cc)][_0x133226(0x1fb)](u[_0x133226(0x209)]))==null?void 0x0:_0x3bb840[_0x133226(0x258)])||Zt,_0x44e642=(await this[_0x133226(0x25f)][_0x133226(0x198)](_0x231b02,{'body':JSON[_0x133226(0x3a2)]({'taskId':_0x2bc7b9})}))[_0x133226(0x2cd)];if(((_0x541180=_0x44e642[_0x133226(0x148)])==null?void 0x0:_0x541180[_0x133226(0x1f7)])!==V['OK'])return;this[_0x133226(0x39e)](_0x44e642[_0x133226(0x315)],_0x158b05);}catch(_0x4e1ba2){this['_logService'][_0x133226(0x148)](_0x4e1ba2);}}async[_0x55d5c6(0x37d)](_0x5976fc){const _0x1f28dc=_0x55d5c6;var _0x3d5d59,_0x928d43;const _0xea82b=Date[_0x1f28dc(0x210)]();try{const _0x572cbd=((_0x3d5d59=this[_0x1f28dc(0x2cc)]['getConfig'](u[_0x1f28dc(0x209)]))==null?void 0x0:_0x3d5d59[_0x1f28dc(0x335)])||Jt,_0x18088d=_0x5976fc?_0x572cbd+_0x1f28dc(0x120)+encodeURIComponent(_0x5976fc):_0x572cbd,_0x2c4eb3=(await this[_0x1f28dc(0x25f)]['get'](_0x18088d))[_0x1f28dc(0x2cd)];if(((_0x928d43=_0x2c4eb3[_0x1f28dc(0x148)])==null?void 0x0:_0x928d43[_0x1f28dc(0x1f7)])!==V['OK'])return;this[_0x1f28dc(0x39e)](_0x2c4eb3['limitInfo'],_0xea82b);}catch(_0x517c9a){this[_0x1f28dc(0x15e)]['error'](_0x517c9a);}}async[_0x55d5c6(0x2ac)](_0x2492d3){const _0x489ebd=_0x55d5c6;var _0x4751b2,_0x248a69;const _0x535206=Date['now']();try{const _0xa4c568=((_0x4751b2=this[_0x489ebd(0x2cc)][_0x489ebd(0x1fb)](u[_0x489ebd(0x209)]))==null?void 0x0:_0x4751b2[_0x489ebd(0x270)])||Qt,_0x312154=(await this[_0x489ebd(0x25f)][_0x489ebd(0x198)](_0xa4c568,{'body':JSON[_0x489ebd(0x3a2)]({'taskId':_0x2492d3})}))[_0x489ebd(0x2cd)];if(((_0x248a69=_0x312154[_0x489ebd(0x148)])==null?void 0x0:_0x248a69['code'])!==V['OK'])return;this[_0x489ebd(0x39e)](_0x312154[_0x489ebd(0x315)],_0x535206);}catch(_0x1d6941){this[_0x489ebd(0x15e)][_0x489ebd(0x148)](_0x1d6941);}}['_checkCalculationAvailable'](){const _0x499fb9=_0x55d5c6;return this[_0x499fb9(0x15b)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x499fb9(0x36f)]>0x0;}[_0x55d5c6(0x11a)](){const _0x5dcea5=_0x55d5c6;this[_0x5dcea5(0x19c)]&&(clearTimeout(this['_pollingInterval']),this[_0x5dcea5(0x19c)]=null);}[_0x55d5c6(0x25b)](){const _0x3a316d=_0x55d5c6;this['_messageService']['show']({'content':this[_0x3a316d(0x1dd)]['t'](_0x3a316d(0x356)),'type':p[_0x3a316d(0x25d)][_0x3a316d(0x1cd)]});}[_0x55d5c6(0x14b)](_0x2958b6){const _0x8923e8=_0x55d5c6;for(const _0x50e6ba of _0x2958b6){const {unitId:_0x401f71,sheetId:_0x446889,range:_0x2d6783}=_0x50e6ba,_0x296d0a=this[_0x8923e8(0x10c)][_0x8923e8(0x253)](_0x401f71);if(!_0x296d0a)continue;const _0x1cdc0c=_0x296d0a['getSheetBySheetId'](_0x446889);if(!_0x1cdc0c)continue;const _0x41bb4f=_0x1cdc0c[_0x8923e8(0x241)]();for(let _0x5a9b15=_0x2d6783[_0x8923e8(0x1f3)];_0x5a9b15<=_0x2d6783['endRow'];_0x5a9b15++)for(let _0x4841f5=_0x2d6783[_0x8923e8(0x3b5)];_0x4841f5<=_0x2d6783['endColumn'];_0x4841f5++){const _0x559f51=_0x41bb4f['getValue'](_0x5a9b15,_0x4841f5);if(_0x559f51&&(a[_0x8923e8(0x1f9)](_0x559f51['f'])||a[_0x8923e8(0x231)](_0x559f51['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x55d5c6(0x381)](O['IMessageService'])),L(0x1,a[_0x55d5c6(0x19d)]),L(0x2,a[_0x55d5c6(0x2ad)]),L(0x3,a[_0x55d5c6(0x381)](G[_0x55d5c6(0x222)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x55d5c6(0x1f1)]),L(0x6,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x1dc)]))],se);var es=Object['getOwnPropertyDescriptor'],ts=(_0x159f53,_0x4e4703,_0xcf5c2b,_0x3f4b76)=>{for(var _0x5efccf=_0x3f4b76>0x1?void 0x0:_0x3f4b76?es(_0x4e4703,_0xcf5c2b):_0x4e4703,_0x51384a=_0x159f53['length']-0x1,_0x46e89e;_0x51384a>=0x0;_0x51384a--)(_0x46e89e=_0x159f53[_0x51384a])&&(_0x5efccf=_0x46e89e(_0x5efccf)||_0x5efccf);return _0x5efccf;},ue=(_0x922fe9,_0x196daa)=>(_0x789248,_0x41ad11)=>_0x196daa(_0x789248,_0x41ad11,_0x922fe9);let Ee=class extends a[_0x55d5c6(0x319)]{constructor(_0x3882bf,_0x33bfbc,_0x1e2f65){const _0x49d6c9=_0x55d5c6;super(),_(this,'_cachedData',new Map()),_(this,_0x49d6c9(0x3ac),new Map()),_(this,_0x49d6c9(0x37a),!0x1),(this[_0x49d6c9(0x2cc)]=_0x3882bf,this[_0x49d6c9(0x3b2)]=_0x33bfbc,this[_0x49d6c9(0x1e6)]=_0x1e2f65);}[_0x55d5c6(0x2d2)](){const _0x236be1=_0x55d5c6;this[_0x236be1(0x37a)]=!0x0;}[_0x55d5c6(0x158)](){const _0xde2a7b=_0x55d5c6;this[_0xde2a7b(0x37a)]=!0x1;}get[_0x55d5c6(0x2a1)](){const _0x220159=_0x55d5c6;return this[_0x220159(0x3ac)];}[_0x55d5c6(0x227)](){const _0x555189=_0x55d5c6;this[_0x555189(0x22e)]()[_0x555189(0x17e)](()=>super['dispose']());}async[_0x55d5c6(0x391)](_0x1e47ed){const _0x138876=_0x55d5c6;return this['_disabled']?null:this[_0x138876(0x3b2)][_0x138876(0x1ee)](u[_0x138876(0x2f7)](_0x1e47ed));}async[_0x55d5c6(0x373)](_0x419742,_0x4f7872){const _0x4dac9f=_0x55d5c6;return!!this[_0x4dac9f(0x3b2)]['setItem'](_0x419742,_0x4f7872);}['updateOfflineData'](_0x164fbc,_0x3062a2,_0x3d0b9c,_0x428a2f){const _0x4a0c28=_0x55d5c6,_0x2bb400=this['_revisionService'][_0x4a0c28(0x339)](_0x164fbc);this[_0x4a0c28(0x30e)]['set'](_0x164fbc,{'unitID':_0x164fbc,'type':_0x3062a2,'awaitingChangeset':_0x3d0b9c,'mutations':_0x428a2f,'rev':_0x2bb400}),this[_0x4a0c28(0x3ac)][_0x4a0c28(0x152)](_0x164fbc)||this[_0x4a0c28(0x385)](_0x164fbc);}['_scheduleSaving'](_0x175ffb){const _0x1baf1d=_0x55d5c6,_0x185e2d=this['_getSaveTimeout']();_0x185e2d===0x0?this[_0x1baf1d(0x34b)](_0x175ffb):this[_0x1baf1d(0x3ac)][_0x1baf1d(0x2a0)](_0x175ffb,setTimeout(()=>this['_saveCache'](_0x175ffb),_0x185e2d));}[_0x55d5c6(0x285)](){const _0x34ba6a=_0x55d5c6;var _0xad01e9;return(_0xad01e9=this[_0x34ba6a(0x2cc)][_0x34ba6a(0x1fb)](u[_0x34ba6a(0x2f5)]))!=null?_0xad01e9:u[_0x34ba6a(0x25e)];}['_saveCache'](_0x594e54){const _0x544703=_0x55d5c6,_0x3f9849=this['_saveTaskMap'][_0x544703(0x32c)](_0x594e54);return _0x3f9849!==void 0x0&&window['clearTimeout'](_0x3f9849),this['_localStorageService'][_0x544703(0x100)](u[_0x544703(0x2f7)](_0x594e54),this[_0x544703(0x30e)][_0x544703(0x32c)](_0x594e54))[_0x544703(0x17e)](()=>this[_0x544703(0x3ac)]['delete'](_0x594e54));}async[_0x55d5c6(0x22e)](){const _0xcf4b90=_0x55d5c6,_0x5681c6=[];this['_saveTaskMap'][_0xcf4b90(0x25c)]((_0x23b740,_0x4f6235)=>{const _0x112f0f=_0xcf4b90;window[_0x112f0f(0x1c9)](_0x23b740),_0x5681c6[_0x112f0f(0x125)](this[_0x112f0f(0x34b)](_0x4f6235)[_0x112f0f(0x17e)](()=>{const _0x24162b=_0x112f0f;this[_0x24162b(0x3ac)][_0x24162b(0x10b)](_0x4f6235);}));}),await Promise['all'](_0x5681c6);}};Ee=ts([ue(0x0,a[_0x55d5c6(0x2ad)]),ue(0x1,a[_0x55d5c6(0x18e)]),ue(0x2,a[_0x55d5c6(0x381)](v[_0x55d5c6(0x322)]))],Ee);class Fe extends a[_0x55d5c6(0x369)]{constructor(){const _0x4aabc5=_0x55d5c6;super(),_(this,_0x4aabc5(0x363)),this['urlChange$']=I[_0x4aabc5(0x20d)](window,_0x4aabc5(0x33e))[_0x4aabc5(0x2d1)](I[_0x4aabc5(0x33b)](this[_0x4aabc5(0x110)]),I[_0x4aabc5(0x151)](0x1),I[_0x4aabc5(0x2fa)](void 0x0));}['setParam'](_0x39ca3b,_0x22ba75,_0xba339e=!0x1){const _0x543c96=_0x55d5c6,_0x1bccd7=new URL(window[_0x543c96(0x13f)][_0x543c96(0x2da)]);_0x1bccd7[_0x543c96(0x129)][_0x543c96(0x2a0)](_0x39ca3b,_0x22ba75),_0xba339e?window[_0x543c96(0x2ae)][_0x543c96(0x340)]('','',_0x1bccd7['toString']()):window[_0x543c96(0x2ae)][_0x543c96(0x2f6)]('','',_0x1bccd7[_0x543c96(0x1bd)]());}[_0x55d5c6(0x157)](_0x46f78a,_0x3d3d38=!0x1){const _0x6fab79=_0x55d5c6,_0x2bc09=new URL(window[_0x6fab79(0x13f)][_0x6fab79(0x2da)]);_0x2bc09[_0x6fab79(0x129)]['delete'](_0x46f78a),_0x3d3d38?window['history'][_0x6fab79(0x340)]('','',_0x2bc09[_0x6fab79(0x1bd)]()):window[_0x6fab79(0x2ae)][_0x6fab79(0x2f6)]('','',_0x2bc09[_0x6fab79(0x1bd)]());}[_0x55d5c6(0x32e)](_0x988d7e){const _0x27ab11=_0x55d5c6;var _0x66ad12;return(_0x66ad12=new URL(window[_0x27ab11(0x13f)][_0x27ab11(0x2da)])[_0x27ab11(0x129)]['get'](_0x988d7e))!=null?_0x66ad12:void 0x0;}}var ss=Object['defineProperty'],is=Object[_0x55d5c6(0x11e)],ns=(_0x5df69a,_0x409d7a,_0x5b88e9)=>_0x409d7a in _0x5df69a?ss(_0x5df69a,_0x409d7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b88e9}):_0x5df69a[_0x409d7a]=_0x5b88e9,rs=(_0xd7802e,_0x194619,_0x23e71f,_0xcd075c)=>{const _0x101e97=_0x55d5c6;for(var _0x497ada=_0xcd075c>0x1?void 0x0:_0xcd075c?is(_0x194619,_0x23e71f):_0x194619,_0x5c3a8f=_0xd7802e[_0x101e97(0x2cb)]-0x1,_0x20f0c1;_0x5c3a8f>=0x0;_0x5c3a8f--)(_0x20f0c1=_0xd7802e[_0x5c3a8f])&&(_0x497ada=_0x20f0c1(_0x497ada)||_0x497ada);return _0x497ada;},Ie=(_0x1694a3,_0x40bfc8)=>(_0x8b6179,_0x1a3443)=>_0x40bfc8(_0x8b6179,_0x1a3443,_0x1694a3),os=(_0x5c1627,_0x1fcd9b,_0x36d906)=>ns(_0x5c1627,_0x1fcd9b+'',_0x36d906);const as=_0x55d5c6(0x333);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x55d5c6(0x132)]{constructor(_0x38c178=Ue,_0x53774b,_0x48641f,_0x216bf1){const _0xa7f20a=_0x55d5c6;super(),this[_0xa7f20a(0x11f)]=_0x38c178,this[_0xa7f20a(0x2b7)]=_0x53774b,this[_0xa7f20a(0x238)]=_0x48641f,this[_0xa7f20a(0x2cc)]=_0x216bf1;const {..._0x472162}=a[_0xa7f20a(0x306)]({},Ue,this['_config']);this['_configService'][_0xa7f20a(0x1cf)](Bt,_0x472162);}[_0x55d5c6(0x38d)](){const _0x4c4b61=_0x55d5c6;this[_0x4c4b61(0x393)](),this[_0x4c4b61(0x17a)]();}[_0x55d5c6(0x39f)](){this['_registerRenderDependencies']();}[_0x55d5c6(0x393)](){const _0x4899aa=_0x55d5c6;var _0x3d39ec;const _0x58a3c9=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G[_0x4899aa(0x1ae)],{'useClass':G[_0x4899aa(0x175)]}],[u[_0x4899aa(0x33d)],{'useClass':Ee}],[exports[_0x4899aa(0x1ab)]],[te],[J],[B],[de],[exports[_0x4899aa(0x16b)]]];a[_0x4899aa(0x106)](this[_0x4899aa(0x238)],a[_0x4899aa(0x10f)](_0x58a3c9,(_0x3d39ec=this[_0x4899aa(0x11f)])==null?void 0x0:_0x3d39ec[_0x4899aa(0x128)]));}['_registerRenderDependencies'](){const _0x125639=_0x55d5c6;this[_0x125639(0x142)](this['_renderManagerService'][_0x125639(0x29c)](a[_0x125639(0x28e)][_0x125639(0x218)],[ge])),this[_0x125639(0x142)](this[_0x125639(0x2b7)]['registerRenderModule'](a[_0x125639(0x28e)][_0x125639(0x2df)],[ve]));}[_0x55d5c6(0x17a)](){const _0x2ef949=_0x55d5c6;a[_0x2ef949(0x314)](this[_0x2ef949(0x238)],[[B],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[exports[_0x2ef949(0x16b)]],[se]]);}},os(exports[_0x55d5c6(0x36d)],'pluginName',as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x55d5c6(0x225)](u['UniverCollaborationClientPlugin']),Ie(0x1,C['IRenderManagerService']),Ie(0x2,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x39c)])),Ie(0x3,a[_0x55d5c6(0x2ad)])],exports['UniverCollaborationClientUIPlugin']);var cs=Object['getOwnPropertyDescriptor'],ls=(_0x33f8d2,_0x5e1b8c,_0x466a31,_0x4630f6)=>{const _0x338e99=_0x55d5c6;for(var _0x261519=_0x4630f6>0x1?void 0x0:_0x4630f6?cs(_0x5e1b8c,_0x466a31):_0x5e1b8c,_0x24c820=_0x33f8d2[_0x338e99(0x2cb)]-0x1,_0x190d01;_0x24c820>=0x0;_0x24c820--)(_0x190d01=_0x33f8d2[_0x24c820])&&(_0x261519=_0x190d01(_0x261519)||_0x261519);return _0x261519;},H=(_0x5eeb1c,_0x1473c8)=>(_0x25070c,_0x27f29f)=>_0x1473c8(_0x25070c,_0x27f29f,_0x5eeb1c);exports['BrowserCollaborationSocketService']=class extends u['CollaborationSocketService']{constructor(_0x2ae93e,_0x5b3c28,_0x2e6917,_0x33eac0,_0x5413f1){super(_0x2ae93e,_0x5b3c28,_0x2e6917,_0x33eac0,_0x5413f1);}async['createSocket'](_0x47e81e){const _0x51af82=_0x55d5c6,_0x5b5c85=await this['_getSessionTicket'](),_0x1105a8=this['_createSocketURL'](_0x47e81e,_0x5b5c85);return this[_0x51af82(0x105)](_0x1105a8);}[_0x55d5c6(0x216)](_0x34137f,_0x317b25){const _0x470af9=_0x55d5c6,_0x181030=typeof window>'u'?new URL(_0x34137f):new URL(_0x34137f,window['location'][_0x470af9(0x12d)]);_0x181030[_0x470af9(0x129)][_0x470af9(0x2a0)](_0x470af9(0x1d0),_0x317b25);const _0xcc345a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x470af9(0x13f)][_0x470af9(0x1e8)]);return _0xcc345a['get'](_0x470af9(0x181))&&_0x181030[_0x470af9(0x129)][_0x470af9(0x2a0)]('runId',_0xcc345a[_0x470af9(0x32c)](_0x470af9(0x181))),_0x181030[_0x470af9(0x1bd)]();}async[_0x55d5c6(0x242)](){const _0x39ae58=_0x55d5c6;var _0x58d2b1,_0xcb3084,_0x36e697;const _0x4a6f9d=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0xa031c3=(_0x58d2b1=_0x4a6f9d==null?void 0x0:_0x4a6f9d[_0x39ae58(0x35c)])!=null?_0x58d2b1:u[_0x39ae58(0x24d)];return(_0x36e697=(_0xcb3084=(await this['_httpService'][_0x39ae58(0x32c)](_0xa031c3,{'headers':{'Content-Type':_0x39ae58(0x32a)}}))[_0x39ae58(0x2cd)])==null?void 0x0:_0xcb3084[_0x39ae58(0x351)])!=null?_0x36e697:'';}},exports[_0x55d5c6(0x2e5)]=ls([H(0x0,a[_0x55d5c6(0x381)](a[_0x55d5c6(0x39c)])),H(0x1,a[_0x55d5c6(0x381)](G['HTTPService'])),H(0x2,a[_0x55d5c6(0x2ad)]),H(0x3,a['ILogService']),H(0x4,v[_0x55d5c6(0x325)])],exports[_0x55d5c6(0x2e5)]);var _s=Object[_0x55d5c6(0x11e)],hs=(_0x1c6482,_0x482040,_0x27e54e,_0x29734e)=>{for(var _0x1c8b8c=_0x29734e>0x1?void 0x0:_0x29734e?_s(_0x482040,_0x27e54e):_0x482040,_0x221fa1=_0x1c6482['length']-0x1,_0x454334;_0x221fa1>=0x0;_0x221fa1--)(_0x454334=_0x1c6482[_0x221fa1])&&(_0x1c8b8c=_0x454334(_0x1c8b8c)||_0x1c8b8c);return _0x1c8b8c;},Se=(_0x422a42,_0x70c946)=>(_0x314366,_0x2717dc)=>_0x70c946(_0x314366,_0x2717dc,_0x422a42);exports[_0x55d5c6(0x1bf)]=class extends a[_0x55d5c6(0x319)]{constructor(_0x56fe21,_0x320cd0,_0x11352c){const _0xc8745=_0x55d5c6;super(),this['_instanceService']=_0x56fe21,this['_httpService']=_0x320cd0,this[_0xc8745(0x2cc)]=_0x11352c;}async[_0x55d5c6(0x1c2)](_0x6a0742,_0x5ea208,_0x2170d5,..._0x5d0092){const _0x31457b=_0x55d5c6;var _0x1f7e06,_0x5cb516,_0x1d8228,_0x5dc4cb;const _0x34d509=this[_0x31457b(0x3b8)][_0x31457b(0x358)]();if(!_0x34d509)throw new Error(_0x31457b(0x380));const _0x4b7ead=((_0x1f7e06=this[_0x31457b(0x2cc)][_0x31457b(0x1fb)](u[_0x31457b(0x2d9)]))!=null?_0x1f7e06:u[_0x31457b(0x108)])+'/'+_0x6a0742+'/run/'+_0x5ea208,_0x24a89a=new URL(window[_0x31457b(0x13f)][_0x31457b(0x2da)]),_0x578a64={'scriptId':_0x6a0742,'runId':(_0x5cb516=_0x24a89a[_0x31457b(0x129)]['get'](_0x31457b(0x181)))!=null?_0x5cb516:'','function':_0x5ea208,'unitId':_0x34d509[_0x31457b(0x294)](),'argsOfFunction':JSON[_0x31457b(0x3a2)](_0x5d0092),'invokeId':(_0x1d8228=_0x2170d5[_0x31457b(0x14f)])!=null?_0x1d8228:'','executionId':(_0x5dc4cb=_0x2170d5['executionId'])!=null?_0x5dc4cb:''};try{const _0x22259a=await this['_httpService'][_0x31457b(0x198)](_0x4b7ead,{'body':_0x578a64});return _0x22259a[_0x31457b(0x2cd)][_0x31457b(0x148)]&&_0x22259a[_0x31457b(0x2cd)][_0x31457b(0x148)][_0x31457b(0x1f7)]!==V['OK']?'Failed':_0x22259a[_0x31457b(0x2cd)]['result'];}catch{return _0x31457b(0x118);}}},exports[_0x55d5c6(0x1bf)]=hs([Se(0x0,a[_0x55d5c6(0x274)]),Se(0x1,a[_0x55d5c6(0x381)](G[_0x55d5c6(0x222)])),Se(0x2,a[_0x55d5c6(0x2ad)])],exports[_0x55d5c6(0x1bf)]);const Ae=0x7530,Pe=_0x55d5c6(0x249);class us extends a['Disposable']{constructor(){const _0x23ea2d=_0x55d5c6;super(),_(this,'_id',a[_0x23ea2d(0x1e9)]()),_(this,_0x23ea2d(0x2bd),new Set()),_(this,_0x23ea2d(0x163),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x23ea2d(0x28b),new Map()),_(this,_0x23ea2d(0x25a),new Map()),this[_0x23ea2d(0x341)]();}[_0x55d5c6(0x227)](){const _0x1b923a=_0x55d5c6;super[_0x1b923a(0x227)](),this['_clearOtherTimers'][_0x1b923a(0x25c)]((_0x25ba05,_0x406ac3)=>this[_0x1b923a(0x394)](_0x406ac3)),this[_0x1b923a(0x35f)]&&window['clearInterval'](this[_0x1b923a(0x35f)]);}['getUnitStatus$'](_0x11d506){const _0x403317=_0x55d5c6;return this[_0x403317(0x14a)](_0x11d506)['pipe'](I['distinctUntilChanged']());}[_0x55d5c6(0x2aa)](_0x2e588a){const _0x15af34=_0x55d5c6;this[_0x15af34(0x2bd)][_0x15af34(0x387)]===0x0&&this[_0x15af34(0x1d4)](),this[_0x15af34(0x2bd)]['add'](_0x2e588a),this[_0x15af34(0x328)]({'type':0x0,'memberID':this[_0x15af34(0x2b5)],'unitIDs':[_0x2e588a],'isForwarded':!0x1});}['disposeUnit'](_0x414a18){const _0x4aab0b=_0x55d5c6;this['_selfUnitIDs'][_0x4aab0b(0x10b)](_0x414a18),this['_selfUnitIDs'][_0x4aab0b(0x387)]===0x0&&this[_0x4aab0b(0x35f)]&&window['clearInterval'](this[_0x4aab0b(0x35f)]);}[_0x55d5c6(0x341)](){const _0xa9c3ae=_0x55d5c6;this[_0xa9c3ae(0x142)](a[_0xa9c3ae(0x207)](I[_0xa9c3ae(0x20d)](window,_0xa9c3ae(0x140))[_0xa9c3ae(0x1bc)](_0x4a5257=>{const _0x2ae098=_0xa9c3ae;if(_0x4a5257[_0x2ae098(0x2c3)]!==Pe||!_0x4a5257[_0x2ae098(0x1d2)])return;const _0x3d5192=JSON[_0x2ae098(0x399)](_0x4a5257[_0x2ae098(0x1d2)]);this['_handleEvent'](_0x3d5192);}))),window[_0xa9c3ae(0x2b4)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xa9c3ae(0x1a4)](this[_0xa9c3ae(0x2bd)])}));}[_0x55d5c6(0x360)](_0x53df8a){const _0x1fbd89=_0x55d5c6;switch(_0x53df8a[_0x1fbd89(0x236)]){case 0x0:this[_0x1fbd89(0x13e)](_0x53df8a);break;case 0x1:this[_0x1fbd89(0x1b4)](_0x53df8a);break;case 0x2:this[_0x1fbd89(0x293)](_0x53df8a);break;}}['_handleJoinEvent'](_0x2e038){const _0x51c411=_0x55d5c6,{unitIDs:_0x348935,memberID:_0x1f9140,isForwarded:_0x337f8d}=_0x2e038;_0x348935[_0x51c411(0x25c)](_0x16dd64=>{const _0x31b3b7=_0x51c411;if(!_0x337f8d&&this['_unitOnClients'][_0x31b3b7(0x152)](_0x16dd64)&&this[_0x31b3b7(0x14a)](_0x16dd64)[_0x31b3b7(0x2e2)](u[_0x31b3b7(0x359)][_0x31b3b7(0x12f)]),!this[_0x31b3b7(0x163)][_0x31b3b7(0x152)](_0x16dd64)||!this['_unitOnClients']['get'](_0x16dd64)['has'](_0x1f9140)){const _0x1c304c=this[_0x31b3b7(0x163)][_0x31b3b7(0x32c)](_0x16dd64)||new Set();_0x1c304c['add'](_0x1f9140),this['_unitOnClients']['set'](_0x16dd64,_0x1c304c),this['_scheduleClearOtherTimer'](_0x1f9140);}}),_0x337f8d||this[_0x51c411(0x328)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x51c411(0x2bd)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3be452){const _0x2ea53b=_0x55d5c6;this[_0x2ea53b(0x394)](_0x3be452);const _0x486d8a=window[_0x2ea53b(0x204)](()=>{const _0x5cfa21=_0x2ea53b;this[_0x5cfa21(0x163)]['forEach'](_0x181a67=>{const _0xb84e34=_0x5cfa21;_0x181a67[_0xb84e34(0x10b)](_0x3be452);});},Ae*0x2);this[_0x2ea53b(0x28b)]['set'](_0x3be452,_0x486d8a);}[_0x55d5c6(0x394)](_0x719b33){const _0x143b1c=_0x55d5c6;if(this[_0x143b1c(0x28b)]['has'](_0x719b33)){const _0x1e8454=this['_clearOtherTimers']['get'](_0x719b33);_0x1e8454&&window[_0x143b1c(0x1c9)](_0x1e8454),this[_0x143b1c(0x28b)][_0x143b1c(0x2a0)](_0x719b33,null);}}[_0x55d5c6(0x1b4)](_0x5e9901){const _0x1a5d04=_0x55d5c6,{memberID:_0x3b61fb,unitIDs:_0x2f497d}=_0x5e9901;_0x2f497d[_0x1a5d04(0x25c)](_0x48c938=>{const _0x57ca77=_0x1a5d04;var _0x873528;const _0x2acacd=this['_unitOnClients']['get'](_0x48c938);_0x2acacd&&(_0x2acacd[_0x57ca77(0x10b)](_0x3b61fb),(_0x873528=this[_0x57ca77(0x14a)](_0x48c938))==null||_0x873528[_0x57ca77(0x2e2)](_0x2acacd[_0x57ca77(0x387)]===0x0?u[_0x57ca77(0x359)][_0x57ca77(0x33c)]:u[_0x57ca77(0x359)][_0x57ca77(0x12f)]));}),this[_0x1a5d04(0x394)](_0x3b61fb);}['_handleHeartbeatEvent'](_0x47f31b){const _0x9abe87=_0x55d5c6;this[_0x9abe87(0x159)](_0x47f31b[_0x9abe87(0x224)]);}[_0x55d5c6(0x328)](_0x429cb9){const _0x145a47=_0x55d5c6;localStorage[_0x145a47(0x100)](Pe,JSON[_0x145a47(0x3a2)](_0x429cb9));}[_0x55d5c6(0x1d4)](){const _0x29af61=_0x55d5c6;this[_0x29af61(0x35f)]=window[_0x29af61(0x346)](()=>{const _0x19a830=_0x29af61;this['_send']({'type':0x2,'memberID':this[_0x19a830(0x2b5)]});},Ae);}[_0x55d5c6(0x14a)](_0x4170aa){const _0x194c6e=_0x55d5c6;return this['_unitStatus']['has'](_0x4170aa)||this[_0x194c6e(0x25a)][_0x194c6e(0x2a0)](_0x4170aa,new I[(_0x194c6e(0x296))](u[_0x194c6e(0x359)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x194c6e(0x25a)]['get'](_0x4170aa);}}exports['IURLService']=Te,exports[_0x55d5c6(0x183)]=Be,exports[_0x55d5c6(0x1e0)]=us,exports[_0x55d5c6(0x171)]=Fe;
|