@univerjs-pro/collaboration-client-ui 0.10.13 → 0.10.14-nightly.202511070628

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.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. 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 _0x4aeb9a=_0x12f6;(function(_0x4f0a12,_0x323dfe){const _0x444f65=_0x12f6,_0x40fde2=_0x4f0a12();while(!![]){try{const _0xc46a7b=-parseInt(_0x444f65(0x340))/0x1+-parseInt(_0x444f65(0x26e))/0x2+-parseInt(_0x444f65(0x2f6))/0x3*(parseInt(_0x444f65(0xbf))/0x4)+parseInt(_0x444f65(0x1cb))/0x5*(-parseInt(_0x444f65(0x15b))/0x6)+-parseInt(_0x444f65(0x241))/0x7*(parseInt(_0x444f65(0x1f2))/0x8)+-parseInt(_0x444f65(0x18d))/0x9+parseInt(_0x444f65(0xae))/0xa;if(_0xc46a7b===_0x323dfe)break;else _0x40fde2['push'](_0x40fde2['shift']());}catch(_0x293edf){_0x40fde2['push'](_0x40fde2['shift']());}}}(_0x21c1,0xc0648));var Ve=Object[_0x4aeb9a(0x2a7)],Ge=(_0x494659,_0x2f77ca,_0x23a73a)=>_0x2f77ca in _0x494659?Ve(_0x494659,_0x2f77ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23a73a}):_0x494659[_0x2f77ca]=_0x23a73a,_=(_0x451f74,_0x2c3ad0,_0x54ca8d)=>Ge(_0x451f74,typeof _0x2c3ad0!='symbol'?_0x2c3ad0+'':_0x2c3ad0,_0x54ca8d);Object[_0x4aeb9a(0x2a7)](exports,Symbol[_0x4aeb9a(0x2fa)],{'value':_0x4aeb9a(0x342)});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:_0x2ce1d2,..._0xc14670}){const _0x951334=_0x4aeb9a,{icon:_0x15ce5a,id:_0x13add8,className:_0x547437,extend:_0x4b8fab,..._0x52e2c7}=_0xc14670,_0x1681b0=(_0x951334(0x1bd)+_0x13add8+'\x20'+(_0x547437||''))['trim'](),_0x55e567=A[_0x951334(0x27b)]('_'+Je());return we(_0x15ce5a,''+_0x13add8,{'defIds':_0x15ce5a['defIds'],'idSuffix':_0x55e567['current']},{'ref':_0x2ce1d2,'className':_0x1681b0,..._0x52e2c7},_0x4b8fab);}function we(_0x17f7f6,_0x43b1eb,_0x2b0e2a,_0x16d5dd,_0xeae5ca){const _0x3b9d11=_0x4aeb9a;return A[_0x3b9d11(0x1ef)](_0x17f7f6[_0x3b9d11(0x277)],{'key':_0x43b1eb,...qe(_0x17f7f6,_0x2b0e2a,_0xeae5ca),..._0x16d5dd},(ze(_0x17f7f6,_0x2b0e2a)['children']||[])[_0x3b9d11(0x20a)]((_0x3b6459,_0x129f8e)=>we(_0x3b6459,_0x43b1eb+'-'+_0x17f7f6[_0x3b9d11(0x277)]+'-'+_0x129f8e,_0x2b0e2a,void 0x0,_0xeae5ca)));}function qe(_0xf0dd02,_0xb32229,_0x40a50b){const _0x582bce=_0x4aeb9a,_0x487fc6={..._0xf0dd02[_0x582bce(0x2ab)]};_0x40a50b!=null&&_0x40a50b[_0x582bce(0xff)]&&_0x487fc6[_0x582bce(0x234)]==='colorChannel1'&&(_0x487fc6[_0x582bce(0x234)]=_0x40a50b['colorChannel1']),_0xf0dd02['tag']==='mask'&&_0x487fc6['id']&&(_0x487fc6['id']=_0x487fc6['id']+_0xb32229[_0x582bce(0xa3)]),Object[_0x582bce(0x175)](_0x487fc6)[_0x582bce(0x270)](([_0xc8bea5,_0x37ca7e])=>{const _0x11566c=_0x582bce;_0xc8bea5===_0x11566c(0x2ee)&&typeof _0x37ca7e==_0x11566c(0x321)&&(_0x487fc6[_0xc8bea5]=_0x37ca7e[_0x11566c(0x2e6)](/url\(#(.*)\)/,_0x11566c(0x162)+_0xb32229['idSuffix']+')'));});const {defIds:_0x3fcff7}=_0xb32229;return!_0x3fcff7||_0x3fcff7[_0x582bce(0x2d7)]===0x0||(_0xf0dd02[_0x582bce(0x277)]===_0x582bce(0x28d)&&_0x487fc6[_0x582bce(0x10e)]&&(_0x487fc6[_0x582bce(0x10e)]=_0x487fc6[_0x582bce(0x10e)]+_0xb32229[_0x582bce(0xa3)]),Object[_0x582bce(0x175)](_0x487fc6)['forEach'](([_0x4be58f,_0x38112f])=>{const _0x344f30=_0x582bce;typeof _0x38112f==_0x344f30(0x321)&&(_0x487fc6[_0x4be58f]=_0x38112f['replace'](/url\(#(.*)\)/,'url(#$1'+_0xb32229[_0x344f30(0xa3)]+')'));})),_0x487fc6;}function ze(_0x51c763,_0x20df3d){const _0x43e938=_0x4aeb9a;var _0x3044ec;const {defIds:_0x5d086d}=_0x20df3d;return!_0x5d086d||_0x5d086d['length']===0x0?_0x51c763:_0x51c763['tag']===_0x43e938(0x17b)&&((_0x3044ec=_0x51c763['children'])!=null&&_0x3044ec[_0x43e938(0x2d7)])?{..._0x51c763,'children':_0x51c763['children'][_0x43e938(0x20a)](_0x9b456c=>typeof _0x9b456c[_0x43e938(0x2ab)]['id']==_0x43e938(0x321)&&_0x5d086d&&_0x5d086d[_0x43e938(0x31a)](_0x9b456c['attrs']['id'])?{..._0x9b456c,'attrs':{..._0x9b456c[_0x43e938(0x2ab)],'id':_0x9b456c['attrs']['id']+_0x20df3d[_0x43e938(0xa3)]}}:_0x9b456c)}:_0x51c763;}function Je(){const _0x422fce=_0x4aeb9a;return Math[_0x422fce(0x158)]()[_0x422fce(0xa8)](0x24)[_0x422fce(0x16e)](0x2,0x8);}Ce['displayName']=_0x4aeb9a(0x164);const Ze={'tag':'svg','attrs':{'xmlns':_0x4aeb9a(0x11b),'fill':_0x4aeb9a(0xfc),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4aeb9a(0x1b2)},'children':[{'tag':'g','attrs':{'clipPath':_0x4aeb9a(0x2aa)},'children':[{'tag':'path','attrs':{'stroke':_0x4aeb9a(0xe9),'d':_0x4aeb9a(0x167),'strokeLinecap':_0x4aeb9a(0x2f2),'strokeLinejoin':_0x4aeb9a(0x2f2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4aeb9a(0x198),'attrs':{'id':_0x4aeb9a(0x30a)},'children':[{'tag':_0x4aeb9a(0x257),'attrs':{'fill':'white','d':_0x4aeb9a(0x33e)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=A['forwardRef'](function(_0xb14ff9,_0x44dc48){const _0x415e31=_0x4aeb9a;return A[_0x415e31(0x1ef)](Ce,Object[_0x415e31(0x1ec)]({},_0xb14ff9,{'id':_0x415e31(0x1cf),'ref':_0x44dc48,'icon':Ze}));});ye[_0x4aeb9a(0x28b)]=_0x4aeb9a(0x157);const Qe={'tag':'svg','attrs':{'xmlns':_0x4aeb9a(0x11b),'fill':_0x4aeb9a(0xfc),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4aeb9a(0x1b2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x4aeb9a(0xe9),'d':_0x4aeb9a(0x1bc),'strokeLinecap':'round','strokeLinejoin':_0x4aeb9a(0x2f2),'strokeWidth':1.2}}]},{'tag':_0x4aeb9a(0x17b),'attrs':{},'children':[{'tag':_0x4aeb9a(0x198),'attrs':{'id':_0x4aeb9a(0x2c5)},'children':[{'tag':'path','attrs':{'fill':_0x4aeb9a(0x2c3),'d':_0x4aeb9a(0x33e),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4aeb9a(0x2c5)]},$e=A[_0x4aeb9a(0x275)](function(_0x2a24f3,_0x327ae3){const _0x299ecd=_0x4aeb9a;return A[_0x299ecd(0x1ef)](Ce,Object[_0x299ecd(0x1ec)]({},_0x2a24f3,{'id':_0x299ecd(0x2ca),'ref':_0x327ae3,'icon':Qe}));});$e[_0x4aeb9a(0x28b)]=_0x4aeb9a(0x284);function et(_0x4ee377){const _0x3ac318=_0x4aeb9a;switch(_0x4ee377){case u[_0x3ac318(0x202)][_0x3ac318(0x1a2)]:return'collabStatus.offline';case u[_0x3ac318(0x202)][_0x3ac318(0x1ba)]:return'collabStatus.conflict';case u[_0x3ac318(0x202)][_0x3ac318(0x1ce)]:return'collabStatus.fetchMiss';case u[_0x3ac318(0x202)][_0x3ac318(0x16c)]:return _0x3ac318(0x1da);case u['CollaborationStatus']['AWAITING']:case u[_0x3ac318(0x202)]['AWAITING_WITH_PENDING']:return _0x3ac318(0xb8);case u['CollaborationStatus']['SYNCED']:case u[_0x3ac318(0x202)]['PENDING']:return _0x3ac318(0xad);}}function tt(_0x3ffdc9){const _0x33c833=_0x4aeb9a,{status$:_0x455ad7}=_0x3ffdc9,_0x126a21=O[_0x33c833(0xd4)](_0x455ad7,u[_0x33c833(0x202)][_0x33c833(0x16c)]),_0x51ab2b=O[_0x33c833(0xe7)](a['LocaleService']),_0x59ecd9=O['useDependency'](u[_0x33c833(0x25a)]),_0x3d4595=_0x126a21!==u[_0x33c833(0x202)][_0x33c833(0x1a2)],_0x50efad=_0x51ab2b['t'](et(_0x126a21)),_0x274809=_0x3d4595?M['jsx']($e,{}):M[_0x33c833(0xd9)](ye,{}),_0x52b499=A[_0x33c833(0x23e)](()=>{_0x3d4595||_0x59ecd9['reconnect']();},[_0x3d4595,_0x59ecd9]);function _0x59fc51(){const _0x3847ae=_0x33c833;return M['jsxs'](_0x3847ae(0x160),{'className':_0x3847ae(0xa0),'onClick':_0x52b499,'children':[M[_0x3847ae(0xd9)](_0x3847ae(0x160),{'className':p[_0x3847ae(0x263)](_0x3847ae(0x22f),{'univer-text-green-500':_0x3d4595,'univer-text-red-500':!_0x3d4595}),'children':_0x274809}),M[_0x3847ae(0xd9)](_0x3847ae(0x160),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x50efad})]});}return _0x3d4595?_0x59fc51():M[_0x33c833(0xd9)](p[_0x33c833(0x316)],{'title':_0x51ab2b['t']('collab-client.tooltip.reconnect'),'children':_0x59fc51()});}var st=Object[_0x4aeb9a(0x1b9)],it=(_0xccc586,_0x51ccd6,_0x18d2bc,_0x3940b3)=>{const _0x387f7d=_0x4aeb9a;for(var _0x1dcfe8=_0x3940b3>0x1?void 0x0:_0x3940b3?st(_0x51ccd6,_0x18d2bc):_0x51ccd6,_0x2e5c3b=_0xccc586[_0x387f7d(0x2d7)]-0x1,_0x2036fe;_0x2e5c3b>=0x0;_0x2e5c3b--)(_0x2036fe=_0xccc586[_0x2e5c3b])&&(_0x1dcfe8=_0x2036fe(_0x1dcfe8)||_0x1dcfe8);return _0x1dcfe8;},K=(_0x1070e6,_0x149b39)=>(_0x5c6c46,_0x150039)=>_0x149b39(_0x5c6c46,_0x150039,_0x1070e6);exports[_0x4aeb9a(0x24c)]=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x8cf6a2,_0x32f844,_0x58d333,_0x5e7bb0){const _0x4024f4=_0x4aeb9a;super(),_(this,_0x4024f4(0x182),new I[(_0x4024f4(0x21c))](u['CollaborationStatus'][_0x4024f4(0x16c)])),(this['_univerInstanceService']=_0x8cf6a2,this[_0x4024f4(0x33b)]=_0x32f844,this[_0x4024f4(0x1e2)]=_0x58d333,this[_0x4024f4(0x293)]=_0x5e7bb0,this[_0x4024f4(0x2a0)](),this['_initStatusListener']());}[_0x4aeb9a(0x288)](){const _0x21d87d=_0x4aeb9a;this[_0x21d87d(0xc8)](this[_0x21d87d(0x2da)][_0x21d87d(0x2d3)][_0x21d87d(0x2b1)](I[_0x21d87d(0x25c)](()=>{const _0x57c831=_0x21d87d,_0xb9ce55=this[_0x57c831(0x2da)][_0x57c831(0x2b9)]();return _0xb9ce55?this[_0x57c831(0x1e2)][_0x57c831(0x16a)](_0xb9ce55[_0x57c831(0x2f0)]()):I['of'](null);}),I[_0x21d87d(0x25c)](_0x190e1d=>_0x190e1d?_0x190e1d[_0x21d87d(0x2c7)]:I['of'](u[_0x21d87d(0x202)]['NOT_COLLAB'])))['subscribe'](_0x1a75be=>{const _0x42ad62=_0x21d87d;this[_0x42ad62(0x182)]['next'](_0x1a75be);}));}['_initStatusComponent'](){const _0x36dff5=_0x4aeb9a;this[_0x36dff5(0xc8)](this['_uiPartsService'][_0x36dff5(0x14a)](O[_0x36dff5(0xbd)]['HEADER_MENU'],()=>O[_0x36dff5(0x1cd)](nt({'status$':this['_status$']['asObservable']()}),this[_0x36dff5(0x33b)])));}},exports['DesktopCollaborationStatusDisplayController']=it([K(0x0,a[_0x4aeb9a(0x2bb)]),K(0x1,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),K(0x2,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0xa5)])),K(0x3,O[_0x4aeb9a(0x251)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x39d3af){const {status$:_0xbdedfd}=_0x39d3af;return function(){const _0x4a907e=_0x12f6;return M[_0x4a907e(0xd9)](tt,{'status$':_0xbdedfd});};}const Te=a[_0x4aeb9a(0x29c)](_0x4aeb9a(0xd2));var rt=Object['getOwnPropertyDescriptor'],ot=(_0xec465c,_0x402f62,_0x3cb1ee,_0x7f248a)=>{const _0x1650bc=_0x4aeb9a;for(var _0x15530d=_0x7f248a>0x1?void 0x0:_0x7f248a?rt(_0x402f62,_0x3cb1ee):_0x402f62,_0x4e1cf9=_0xec465c[_0x1650bc(0x2d7)]-0x1,_0x3ff814;_0x4e1cf9>=0x0;_0x4e1cf9--)(_0x3ff814=_0xec465c[_0x4e1cf9])&&(_0x15530d=_0x3ff814(_0x15530d)||_0x15530d);return _0x15530d;},j=(_0x4e7c79,_0x108487)=>(_0x52b0ae,_0x3bec04)=>_0x108487(_0x52b0ae,_0x3bec04,_0x4e7c79);exports[_0x4aeb9a(0x245)]=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x5a8bf6,_0x496a9d,_0x3b3636,_0x530bb6,_0x35c70d){const _0x451695=_0x4aeb9a;super(),this[_0x451695(0x23c)]=_0x5a8bf6,this[_0x451695(0x146)]=_0x496a9d,this[_0x451695(0x28c)]=_0x3b3636,this[_0x451695(0x135)]=_0x530bb6,_0x35c70d?_0x35c70d==null||_0x35c70d[_0x451695(0xcd)]()[_0x451695(0x25e)](()=>this['_init']()):(this['_logService'][_0x451695(0x1d7)]('[CollaborationDataLoaderController]',_0x451695(0x2d8)),this[_0x451695(0xe5)]());}async[_0x4aeb9a(0xe5)](){const _0x457251=_0x4aeb9a,_0x4d911c=this['_urlService'][_0x457251(0xdc)](_0x457251(0x311)),_0x4660d5=this[_0x457251(0x23c)][_0x457251(0xdc)](_0x457251(0x1e9)),_0x2672e1=this[_0x457251(0x23c)]['getParam']('subunit');if(!_0x4d911c||!_0x4660d5){this[_0x457251(0x146)]['debug'](_0x457251(0x19e),_0x457251(0x2df));return;}const _0x1a4152=await this[_0x457251(0x135)][_0x457251(0x25f)](_0x4d911c,Number(_0x4660d5),_0x2672e1);_0x1a4152&&_0x1a4152 instanceof a[_0x457251(0x22a)]&&this['_setupSubUnitSync'](_0x1a4152);}async[_0x4aeb9a(0x27e)](_0x4dbbcf){const _0x17161b=_0x4aeb9a;await this['_updateSubUnitFromURLParams'](_0x4dbbcf),_0x4dbbcf[_0x17161b(0x314)][_0x17161b(0x2b1)](I[_0x17161b(0x1b6)](this[_0x17161b(0x19d)]))['subscribe'](_0x15e795=>{const _0x59e30e=_0x17161b;_0x15e795&&this[_0x59e30e(0xf1)](_0x15e795);}),this[_0x17161b(0x23c)]['urlChange$'][_0x17161b(0x2b1)](I[_0x17161b(0x1b6)](this[_0x17161b(0x19d)]))[_0x17161b(0x302)](()=>this[_0x17161b(0x21f)](_0x4dbbcf));}[_0x4aeb9a(0xf1)](_0x829d0d,_0x2a8b3e=!0x1){const _0x1202e2=_0x4aeb9a,_0x3e58dc=this['_urlService']['getParam'](_0x1202e2(0x206));_0x829d0d[_0x1202e2(0x1ab)]()!==_0x3e58dc&&this['_urlService'][_0x1202e2(0x2b7)](_0x1202e2(0x206),_0x829d0d[_0x1202e2(0x1ab)](),_0x2a8b3e);}async[_0x4aeb9a(0x21f)](_0x142362){const _0x53a14c=_0x4aeb9a;var _0x504cdf;const _0x4c28e1=this[_0x53a14c(0x23c)]['getParam'](_0x53a14c(0x206));if(!_0x4c28e1||!_0x142362['getSheetBySheetId'](_0x4c28e1)){const _0x1d1cfd=_0x142362['getUnhiddenWorksheets']()[0x0],_0x481cc3=_0x142362['getSheetBySheetId'](_0x1d1cfd);if(!_0x481cc3)return;this[_0x53a14c(0xf1)](_0x481cc3,!0x0),await this['_commandService'][_0x53a14c(0xf7)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x142362[_0x53a14c(0x2f0)](),'subUnitId':_0x1d1cfd});return;}((_0x504cdf=_0x142362[_0x53a14c(0x10b)]())==null?void 0x0:_0x504cdf[_0x53a14c(0x1ab)]())!==_0x4c28e1&&await this[_0x53a14c(0x28c)]['executeCommand'](g[_0x53a14c(0xb9)]['id'],{'unitId':_0x142362[_0x53a14c(0x2f0)](),'subUnitId':_0x4c28e1});}},exports[_0x4aeb9a(0x245)]=ot([j(0x0,Te),j(0x1,a[_0x4aeb9a(0x14e)]),j(0x2,a[_0x4aeb9a(0x1f7)]),j(0x3,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x199)])),j(0x4,a[_0x4aeb9a(0x2b8)](Xe[_0x4aeb9a(0xb2)]))],exports[_0x4aeb9a(0x245)]);var at=Object[_0x4aeb9a(0x1b9)],ct=(_0x141e9f,_0x1eb95c,_0x481b0c,_0x4aa02c)=>{const _0x3387ba=_0x4aeb9a;for(var _0xc6592d=_0x4aa02c>0x1?void 0x0:_0x4aa02c?at(_0x1eb95c,_0x481b0c):_0x1eb95c,_0x3e2ce6=_0x141e9f[_0x3387ba(0x2d7)]-0x1,_0x3aa7c1;_0x3e2ce6>=0x0;_0x3e2ce6--)(_0x3aa7c1=_0x141e9f[_0x3e2ce6])&&(_0xc6592d=_0x3aa7c1(_0xc6592d)||_0xc6592d);return _0xc6592d;},Re=(_0x392aa7,_0x43b4ea)=>(_0x390293,_0x48cd4e)=>_0x43b4ea(_0x390293,_0x48cd4e,_0x392aa7);let de=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x25bbfa,_0x1b6330){const _0x2a71e5=_0x4aeb9a;super(),this[_0x2a71e5(0xe3)]=_0x25bbfa,this[_0x2a71e5(0x2dc)]=_0x1b6330,this[_0x2a71e5(0xe5)]();}[_0x4aeb9a(0xe5)](){const _0x2bba88=_0x4aeb9a,_0x5f0797=this;this[_0x2bba88(0xc8)](this[_0x2bba88(0xe3)][_0x2bba88(0x196)]({'onBeforePasteImage':async _0x4cb1f0=>{const _0x51604f=_0x2bba88,_0x12e75b=await _0x5f0797[_0x51604f(0x2dc)][_0x51604f(0xf3)](_0x4cb1f0);return _0x12e75b?{'source':_0x12e75b['source'],'imageSourceType':_0x12e75b[_0x51604f(0x106)]}:null;}}));}};de=ct([Re(0x0,T['IDocClipboardService']),Re(0x1,Ke[_0x4aeb9a(0x29d)])],de);const be=[_0x4aeb9a(0x104),_0x4aeb9a(0x336),_0x4aeb9a(0xd8),'red.300',_0x4aeb9a(0x128),_0x4aeb9a(0x2ac)];function _0x21c1(){const _0x5dcec4=['popstate','_updateSubUnitFromURLParams','LocaleService','search','ENTITLE_NEED_BILLING_ADDRESS','registerBeforeClose','_entities','onPointerMove$','_initDependencies','collabCursorState$','_render','origin','Workbook','setItem','requireSession','_handleLeaveEvent','_collabCursorState$','univer-mr-2\x20univer-flex\x20univer-text-xl','INVALID_INVITE_CODE','resize','SessionStatus','_unitOnClients','fill','_getSessionTicket','WebSocketService','_taskIds','LICENSE_DISTRO_REJECTED','getCurrentSelections','_currentUsage','isTransformMutationsWithChangesetSuccess','_urlService','SetDocZoomRatioOperation','useCallback','_anchor','currentSkeleton$','14oMHabD','EffectRefRangId','RevisionService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationDataLoaderController','values','addEventListener','UPDATE_CURSOR','_session','asObservable','IRenderManagerService','DesktopCollaborationStatusDisplayController','handleMoveRange','_getAnchorBounding','_eventUnsubscribe','_entityInit$','IUIPartsService','SetTextSelectionsOperation','MemberService','CHANGESET_REVISION_CONFILICT','_hasFormulaInDirtyRanges','_cursorShapes','path','LICENSE_EXPORT_SIZE_EXCEEDED','onPointerLeave$','CollaborationSessionService','DEFAULT_WS_SESSION_TICKET_URL','switchMap','get','then','loadUnit','collab-text-anchor-','_startDocCollabCursor','findNodePositionByCharIndex','clsx','color','MessageType','DocIMEInputManagerService','_refRangeService','save','_removeCollabCursors','transformStateCache','_handleEvent','APPLY_PERMISSION_DENIED','complete','1341974AxlDTQ','_releaseCalculationLimit','forEach','RegularPolygon','_cachedData','deserializeRangeWithSheet','updateOfflineData','forwardRef','undoState','tag','_disabled','HTTPService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','useRef','formula.calculation.started','getVpScrollXYInfoByPosToVp','_setupSubUnitSync','SUCCESS','Error','collaboration.single-unit.warning','COLORS','TOO_MANY_REQUESTS','OnLineIcon','fromEvent','_drawAnchor','DocSelectionManagerService','_initStatusListener','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startSheetCollabCursor','displayName','_commandService','use','registerRenderModule','REDEMPTION_CODE_HAS_BEEN_CREATED','_checkCalculationAvailable','BrowserCollaborationSocketService','registerRefRange','_uiPartsService','beginPath','arc','SheetCollabCursorShape','NOT_FOUND','USER_NOT_INVITED_CODE','urlChange$','moveTo','_heartbeatTimer','createIdentifier','IImageIoService','RemoteUniscriptService','CLOSE_ROOM','_initStatusComponent','setTimeout','isTransformMutationFailure','saveTaskMap','toRgbString','size','UniverCollaborationClientUIPlugin','defineProperty','permission.title','CollaborationEvent','url(#off-line-icon_clip0_910_343)','attrs','yellow.400','SNAPSHOT_INVALID_SNAPSHOT','UNIVER_SHEET','_initResize','restore','pipe','generateRandomId','_online','getCurrent','IBeforeCloseService','SUBMIT_CHANGESET_TIMEOUT','setParam','Optional','getFocusedUnit','sessionTicket','IUniverInstanceService','_backgroundColor','fromEventSubject','UNIVER_DOC','_setFormulaLimitStatus','_getScale','formula.calculation.waiting','_docSyncEditingCollabCursorService','white','Disposable','on-line-icon_clip0_910_349','lineTo','status$','LOGIN_TOKEN_PROCESSING_FAILED','transform','on-line-icon','column','now','_collabSessionService','handleIRemoveCol','onCommandExecuted','REDEMPTION_CODE_NOT_STARTED','font','_docSkeletonManagerService','focused$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','hovered','_docTransformSelectionsService','length','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_transformPreviousActiveRange','_univerInstanceService','InsertColCommandId','_imageIoService','_httpService','LOCAL_CACHE_INTERVAL_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','session.connection-failed','getConfig','getUniverSheetInstance','href','MoveRangeCommandId','ENTITLE_REPORT_LIMIT_EXCEED','replace','send','PERMISSION_DENIED','INVITE_CODE_HAS_BEEN_UES','transformByState','eventID','RefRangeService','_localStorageService','mask','COMPLETION_FINISHED','getUnitId','_docSkeleton','round','has','collab-rect-range-','ISocketService','3hbgmLB','row','TEXT','_saveCache','toStringTag','measureText','Rect','show','stringify','Unknown\x20user','DeleteRangeMoveUpCommandId','_transformService','subscribe','getCurrentRevOfUnit','roomMembers','clearTimeout','_messageService','_initEntityListener','backgroundColor','CanceledError','off-line-icon_clip0_910_343','body','InsertRangeMoveDownCommandId','YUUMI_NO_CUBOID_FOR_QUESTION','collaboration-client.offline-data-not-saved','_labelPosition','ENTITLE_CHAT_LIMIT_EXCEED','unit','endColumn','CommandType','activeSheet$','saveOfflineData','Tooltip','triggerDblclick','_sheetSkeletonManagerService','_onCursorUpdate','includes','RichTextEditingMutation','max','redoState','_updateCollabCursors','endRow','stage','string','_handleHeartbeatEvent','getUnitStatus$','OTHER_CLIENTS_EDITING','TEXT_RANGE_LAYER_INDEX','transformSelections','stageInfo','transformRemoteChangeset','RECT','unitID','ThemeService','newValue','_configService','split','DocCollaborationEntity','override','DOC_RANGE_TYPE','ENTITLE_DUP_SUBSCRIPTION','YUUMI_ASYNCIO_CANCELLED','_unitStatus','SetFormulaCalculationStartMutation','jiqing.500','contains','replaceState','selection','_hideTimer','_injector','startsWith','_handleHover','M0\x200H16V16H0z','YUUMI_RATE_OVER_LIMIT','1546874OpxJOu','dispose','Module','_onCursorDelete','createInstance','REDEMPTION_USER_NOT_ELIGIBLE','Injector','/universer-api/license/formula/limit/done','_draw','_ensureSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','fillText','push','_initCommandInterceptor','ILocalStorageService','getMergeData','createSocket','univer-flex\x20univer-items-center','hide','Warning','idSuffix','#FFF','CollaborationController','_cursorInfo$','_cursor','toString','isActive','merge','getUnit','disposeUnit','collabStatus.synced','67429310dxxhro','APPLY_DUPLICATED','docStateChange$','shareReplay','IRemoteInstanceService','ColorKit','[RemoteUniscriptService]:\x20no\x20focused\x20unit','ENSURE_SNAPSHOT_EXECUTION','INVITE_CODE_ALREADY_BOUND','getOffsetConfig','collabStatus.syncing','SetWorksheetActivateCommand','_transformHistoryAndStateStack','_onRefRangeChange','ILocalCacheService','BuiltInUIPart','RemoveColCommandId','5166924IgqUbg','/run/','_getMergeRange','_removeClearOtherTimer','/universer-api/license/formula/limit/start','CURRENT_STATUS_CANNOT_OPERATE','beforeCommandExecuted','getRangePointData','AUTHORIZE_CODE_ILLEGAL','disposeWithMe','getAncestorScale','find','SNAPSHOT_HAS_BEEN_REMOVED','registerDependencies','whenReady','SheetSkeletonManagerService','_name','onMouseMove','_registerRenderDependencies','uni.network.url-service','_memberService','useObservable','init','EMAIL_VERIFY_CODE_MISMATCH','REDEMPTION_CODE_INACTIVE','green.600','jsx','textRanges','UNDEFINED','getParam','_pollingInterval','transformMutationsWithChangeset','USERS_LEAVE','m2Prime','YUUMI_CONNECTOR_URL_NOT_FOUND','MOBILE_VERIFY_CODE_MISMATCH','_docClipboardService','executionId','_init','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','useDependency','_checkAndWaitForCalculationPermission','currentColor','transformIMECache','height','mutations','key','engine','CollaborationSocketService','post','_updateURLWithCurrentState','exhaustSavingTask','saveImage','APPLY_REJECT','pushState','runOnServer','executeCommand','addObject','bottom','range','_localeService','none','_send','name','colorChannel1','Shape','serializeRangeWithSheet','unshift','CollaborationUIEventService','purple.300','_showGuardMessage','imageSourceType','setConfig','WebBrowserSingleActiveUnitService','evenodd','getColorFromTheme','getActiveSheet','onPointerEnter$','closePath','xlink:href','IMessageService','getRelativeToViewportCoord','startRow','?taskId=','searchParams','Rectangle','YUUMI_URL_COL_OUT_OF_RANGE','_range','ISnapshotServerService','SheetsSelectionsService','roomMembers$','mergeOverrideWithDependencies','http://www.w3.org/2000/svg','getColor','_context','parseInt','doc.mutation.rich-text-editing','getSheetBySheetId','LICENSE_MAX_UNITS_EXCEEDED','YUUMI_UNABLE_LOAD_URL','INVITE_CODE_REQUIRED','collab-text-range-','ENTITLE_INSUFFICIENT_QUOTA','_maxFormulaLimit','_id','blue.400','sheetID','skeleton','RxDisposable','INVALID_ARGUMENT','min','_handleJoinEvent','_lastPointer','shift','getUndoRedoMutationParamsCache','totalFormulasToCalculate','_textBubble','SHEET_VIEWPORT_KEY','_dataLoaderService','SOCKET_FAILED_RETRY','EMAIL_HAS_BEEN_BOUND','_roomMembers$','getMember','session.collaboration-timeout','parse','cursorInfo','limitInfo','_shapes','getTypeOfUnitDisposed$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','VIEW_MAIN','LICENSE_IMPORT_SIZE_EXCEEDED','UniverCollaborationClientPlugin','YUUMI_ALL_TABLES_IS_INVALID','getDocRanges','_logService','transformMutation','handleInsertRow','add','registerComponent','event$','YUUMI_SUBSCRIPTION_NOT_FOUND','IConfigService','ILogService','invokeId','_saveTaskMap','INTERNAL_ERROR','currentTheme$','onStarting','getSkeleton','DocSkeletonManagerService','getItem','OffLineIcon','random','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WECHAT_HAS_BEEN_BOUND','268344dbXzzc','rgba(255,\x20255,\x20255,\x200.01)','_doCreateSocket','setAlpha','_getSaveTimeout','div','labelPosition','url(#$1','INotificationService','UniverIcon','_collaborationUIEventService','setStateCache','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','_clearPolling','_selfUnitIDs','getCollabEntity$','subscribeEvent','NOT_COLLAB','history','substring','_startCalculationLimit','Tools','_colorAssignService','_hovered','ONLINE','getCellPositionByOffset','entries','getMemberID','_notificationService','unsubscribe','getformulaLimitStatusUrl','_syncEditingCollabCursorService','defs','_getFormulaLimitStatus','code','top','text','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_color','_status$','maxFormulaLimit','unitId','distinctUntilChanged','getValue','DocStateChangeManagerService','YUUMI_AI_RUN_FAILED','...','Inject','REDEMPTION_INVALID_CODE','clearInterval','6482403sWxKUS','getRenderById','PAYMENT_CHANNEL_NOT_SUPPORT','USER_NOT_FOUND','cursorInfo$','location','black','_assignedColors','_anchorDot','addClipboardHook','SetSelectionsOperation','clipPath','DataLoaderService','REDEMPTION_CODE_FULLY_REDEEMED','params','DependentOn','dispose$','[CollaborationDataLoaderController]','from','error','m1Prime','OFFLINE','entityInit$','MOBILE_HAS_BEEN_BOUND','isArray','_toggleOnline','_lastResponseTimestamp','pluginName','getCollabCursors$','ITransformService','getSheetId','UNRECOGNIZED','ticket','UniverInstanceType','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docStateChangeManagerService','CollaborationUIEventId','1em','drawWith','setUndoRedoMutationParamsCache','_setupBeforeClosingHandler','takeUntil','sessionStatus$','debounceTime','getOwnPropertyDescriptor','CONFLICT','_scheduleSaving','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','univerjs-icon\x20univerjs-icon-','startFormulaLimitUrl','_scene','PY_RUNTIME_SCRIPT_ERROR','setShapeProps','getStateCache','throttleTime','ALREADY_EXISTS','_transformUndoRedoStack','_toggleOffline','_docTransformIMECacheService','_getSheetObject','_renderManagerService','_drawTextRange','125hnanyk','DATA_SOURCE_TOO_LARGE','connectInjector','FETCH_MISS','off-line-icon','ranges','ACTIVE_UNIT_EVENT_CHANNEL','Plugin','_clearOtherTimers','Vector2','collaboration.closeRoom','ERROR_AGAIN','debug','onRendered','addObjects','collabStatus.notCollab','delete','currentUsage','width','APPLY_NON_SEQUENTIAL_REVISION','_drawRectRange','_collabCursorController','_revisionService','_collaborationController','startColumn','_registerDependencies','_config','_beforeCloseService','FromArray','subUnitId','type','makeDirty','debounce','assign','handleDeleteRangeMoveLeft','deepClone','createElement','_initEvent','runId','2427728MAQSMS','getLocalCacheKey','UnitStatus','flatMap','_localCacheService','ICommandService','combineLatest','_document','Subject','_scheduleHeartbeat','fillStyle','replaceDocRanges','WebURLService','_hover','setInterval','result','CollaborationStatus','LOGIN_FAILED','toDisposable','_docTransformStateCacheService','subunit','next','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_createSocketURL','map','_scheduleClearOtherTimer','assignAColorForMemberID','_refreshCollabCursors','filter','set','_themeService','_cursors','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_applyCommand','data','OTHER_CLIENT_EDITING','_updateLocalCursor','MUTATION','DeleteRangeMoveLeftCommandId','selections','_colorIndex','getTypeOfUnitAdded$','BehaviorSubject','removeParam'];_0x21c1=function(){return _0x5dcec4;};return _0x21c1();}class pe extends a[_0x4aeb9a(0x2c4)]{constructor(){const _0x36b9ae=_0x4aeb9a;super(...arguments),_(this,_0x36b9ae(0x194),new Map()),_(this,_0x36b9ae(0x21a),0x0);}[_0x4aeb9a(0x20c)](_0x517ece){const _0x125c7b=_0x4aeb9a;if(this[_0x125c7b(0x194)][_0x125c7b(0x2f3)](_0x517ece))return this[_0x125c7b(0x194)][_0x125c7b(0x25d)](_0x517ece);const _0x697e70=be[this[_0x125c7b(0x21a)]];return this[_0x125c7b(0x21a)]=(this[_0x125c7b(0x21a)]+0x1)%be['length'],this[_0x125c7b(0x194)]['set'](_0x517ece,_0x697e70),_0x697e70;}}function xe(_0xc07875){const _0x2758b4=_0x4aeb9a;let _0x113e9a='';for(const _0x3472aa of _0xc07875){const {startOffset:_0x242781,endOffset:_0xbdd5f7,isActive:_0x24d64d,rangeType:_0xc1ccb0,segmentId:_0x2e3e71,segmentPage:_0x3113b2}=_0x3472aa;_0x113e9a[_0x2758b4(0x2d7)]&&(_0x113e9a+=','),_0x113e9a+=_0x242781+':'+_0xbdd5f7+':'+(_0x24d64d?'1':'0')+':'+_0xc1ccb0+':'+_0x2e3e71+':'+_0x3113b2;}return _0x113e9a;}function lt(_0x29163e){const _0x46cdc2=_0x4aeb9a,_0x37a5cb=_0x29163e[_0x46cdc2(0x32e)](','),_0x400e66=[];for(const _0x26eaa6 of _0x37a5cb){const [_0x221629,_0x38eb2a,_0x5cb8b8,_0x3357f4,_0x5de9cf,_0x4ab4af]=_0x26eaa6[_0x46cdc2(0x32e)](':');_0x400e66['push']({'startOffset':Number(_0x221629),'endOffset':Number(_0x38eb2a),'collapsed':_0x221629===_0x38eb2a,'isActive':_0x5cb8b8==='1','rangeType':_0x3357f4===a[_0x46cdc2(0x331)]['TEXT']?a[_0x46cdc2(0x331)][_0x46cdc2(0x2f8)]:a[_0x46cdc2(0x331)][_0x46cdc2(0x329)],'segmentId':typeof _0x5de9cf==_0x46cdc2(0x321)?String(_0x5de9cf):'','segmentPage':Number(_0x4ab4af!=null?_0x4ab4af:-0x1)});}return _0x400e66['some'](_0x5a77a5=>_0x5a77a5[_0x46cdc2(0xa9)])||(_0x400e66[0x0][_0x46cdc2(0xa9)]=!0x0),_0x400e66;}class Oe extends a[_0x4aeb9a(0x12b)]{constructor(){const _0x1188c7=_0x4aeb9a;super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,_0x1188c7(0x227),this[_0x1188c7(0x22e)][_0x1188c7(0x24a)]());}['syncEditingCollabCursor'](_0x7dc6f5){const _0x3961d8=_0x4aeb9a,{unitID:_0x5d1084,memberID:_0x8abd31,textRanges:_0x2408d1}=_0x7dc6f5,_0x44a079=xe(_0x2408d1);if(_0x44a079==='')return;const _0x1c8d2f={'unitID':_0x5d1084,'memberID':_0x8abd31,'selection':_0x44a079};this['_collabCursorState$'][_0x3961d8(0x207)](_0x1c8d2f);}}var _t=Object[_0x4aeb9a(0x1b9)],ht=(_0x1b8b81,_0x442d1f,_0x4ec6e9,_0x2d0d51)=>{for(var _0x2d943e=_0x2d0d51>0x1?void 0x0:_0x2d0d51?_t(_0x442d1f,_0x4ec6e9):_0x442d1f,_0x1b6819=_0x1b8b81['length']-0x1,_0x1ccc53;_0x1b6819>=0x0;_0x1b6819--)(_0x1ccc53=_0x1b8b81[_0x1b6819])&&(_0x2d943e=_0x1ccc53(_0x2d943e)||_0x2d943e);return _0x2d943e;},U=(_0x4b860f,_0x1f669c)=>(_0x41725e,_0x4ccceb)=>_0x1f669c(_0x41725e,_0x4ccceb,_0x4b860f);const ut=0x12c,It=0x64;let fe=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x3f5a99,_0x3229eb,_0x153c02,_0x1b9a6f,_0x4b221f,_0x6827d3,_0x75651a,_0x3c077f,_0x4e2ff4){const _0xc127bd=_0x4aeb9a;super(),_(this,_0xc127bd(0x2b3),!0x1),_(this,_0xc127bd(0xe5),!0x1),_(this,'_cursorInfo$',new I[(_0xc127bd(0x21c))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0xc127bd(0x138),new I[(_0xc127bd(0x21c))]([])),_(this,_0xc127bd(0x119),this[_0xc127bd(0x138)][_0xc127bd(0x2b1)](I[_0xc127bd(0x1b8)](ut))),_(this,_0xc127bd(0x216),a[_0xc127bd(0x1eb)](_0x305a05=>{const _0x23c189=_0xc127bd,_0x3b4dd9={'eventID':v['CollaborationEvent'][_0x23c189(0x248)],'data':{'unitID':this[_0x23c189(0x32a)],'memberID':this['_session'][_0x23c189(0x176)](),'selection':xe(_0x305a05)}};this[_0x23c189(0x249)][_0x23c189(0x2e7)](_0x3b4dd9,this[_0x23c189(0x32a)]);},It)),(this[_0xc127bd(0x32a)]=_0x3f5a99,this[_0xc127bd(0x249)]=_0x3229eb,this[_0xc127bd(0x33b)]=_0x153c02,this[_0xc127bd(0x171)]=_0x1b9a6f,this['_memberService']=_0x4b221f,this[_0xc127bd(0x17a)]=_0x6827d3,this[_0xc127bd(0x301)]=_0x75651a,this[_0xc127bd(0x2da)]=_0x3c077f,this['_commandService']=_0x4e2ff4);}get[_0x4aeb9a(0x13c)](){const _0x30e4e1=_0x4aeb9a;return this[_0x30e4e1(0xa6)][_0x30e4e1(0x186)]();}get[_0x4aeb9a(0x304)](){const _0xb0097c=_0x4aeb9a;return this[_0xb0097c(0x138)][_0xb0097c(0x186)]();}['dispose'](){const _0x5e1640=_0x4aeb9a;super[_0x5e1640(0x341)](),this[_0x5e1640(0xa6)]['next'](new Map()),this[_0x5e1640(0xa6)][_0x5e1640(0x26d)](),this[_0x5e1640(0x138)][_0x5e1640(0x207)]([]),this[_0x5e1640(0x138)][_0x5e1640(0x26d)]();}['init'](){const _0x287992=_0x4aeb9a;this[_0x287992(0xe5)]||(this[_0x287992(0xe5)]=!0x0,this['_session'][_0x287992(0x1b7)][_0x287992(0x2b1)](I[_0x287992(0x1b6)](this['dispose$']))[_0x287992(0x302)](_0x636f9a=>{const _0x3e3ce9=_0x287992;_0x636f9a===u['SessionStatus'][_0x3e3ce9(0x173)]?this['_toggleOnline']():this[_0x3e3ce9(0x1c6)]();}),this['_session'][_0x287992(0x14b)][_0x287992(0x2b1)](I['takeUntil'](this[_0x287992(0x19d)]))[_0x287992(0x302)](_0xfbdb10=>{const _0x4d898c=_0x287992,_0x5e405d=_0xfbdb10[_0x4d898c(0x2eb)];_0x5e405d===v[_0x4d898c(0x2a9)][_0x4d898c(0x248)]&&this[_0x4d898c(0x319)](_0xfbdb10),_0x5e405d===v['CollaborationEvent']['USERS_LEAVE']&&this[_0x4d898c(0x343)](_0xfbdb10);}),this[_0x287992(0xc8)](this[_0x287992(0x28c)][_0x287992(0x2cf)](_0x18ae58=>{const _0x3a22b5=_0x287992,_0x1a7c94=_0x18ae58[_0x3a22b5(0x19b)];_0x1a7c94!=null&&this[_0x3a22b5(0x2b3)]&&_0x18ae58['id']===W[_0x3a22b5(0x252)]['id']&&_0x1a7c94[_0x3a22b5(0x184)]===this['unitID']&&_0x1a7c94['isEditing']===!0x1&&_0x1a7c94[_0x3a22b5(0x1d0)][_0x3a22b5(0x2d7)]>0x0&&this[_0x3a22b5(0x216)](_0x1a7c94[_0x3a22b5(0x1d0)]);})),this[_0x287992(0x17a)][_0x287992(0x227)][_0x287992(0x2b1)](I[_0x287992(0x1b6)](this[_0x287992(0x19d)]))['subscribe'](_0x4d0e99=>{const _0x1e1769=_0x287992;if((_0x4d0e99==null?void 0x0:_0x4d0e99[_0x1e1769(0x32a)])!==this[_0x1e1769(0x32a)])return;const _0x3dd141={'eventID':v['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4d0e99};this['_onCursorUpdate'](_0x3dd141);}),this[_0x287992(0xc8)](this[_0x287992(0x28c)]['onCommandExecuted'](_0x49830b=>{const _0x12d8b7=_0x287992;if(_0x49830b[_0x12d8b7(0x19b)]==null)return;const _0x21d82f=_0x49830b[_0x12d8b7(0x19b)];if(_0x49830b['id']!==W[_0x12d8b7(0x31b)]['id']||_0x21d82f[_0x12d8b7(0x184)]!==this[_0x12d8b7(0x32a)])return;const _0x54ec3b={'id':'doc.mutation.rich-text-editing','params':_0x21d82f},_0x2956ca=this[_0x12d8b7(0x13c)];for(const [_0x221e8c,_0x36f5da]of _0x2956ca){const _0x21ccc6={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x12d8b7(0x32a)],'actions':null,'textRanges':_0x36f5da[_0x12d8b7(0x1d0)]}},_0x24b4fe=this[_0x12d8b7(0x301)][_0x12d8b7(0x147)](_0x54ec3b,_0x21ccc6,!0x1);if(v[_0x12d8b7(0x2a2)](_0x24b4fe))throw _0x24b4fe[_0x12d8b7(0x1a0)];_0x2956ca[_0x12d8b7(0x20f)](_0x221e8c,{..._0x36f5da,'ranges':_0x24b4fe[_0x12d8b7(0xe0)][_0x12d8b7(0x19b)][_0x12d8b7(0xda)]});}queueMicrotask(()=>{const _0x598c8d=_0x12d8b7;this[_0x598c8d(0xa6)][_0x598c8d(0x207)](_0x2956ca);});})));}[_0x4aeb9a(0x319)](_0x529155){const _0xd2dc19=_0x4aeb9a;var _0x1e6d61,_0x30e7d1;const {memberID:_0x326593,selection:_0x3044bc}=_0x529155[_0xd2dc19(0x214)],_0x16a500=lt(_0x3044bc),_0x17b03f=(_0x30e7d1=(_0x1e6d61=this['_memberService'][_0xd2dc19(0x139)](this[_0xd2dc19(0x32a)],_0x326593))==null?void 0x0:_0x1e6d61[_0xd2dc19(0xfe)])!=null?_0x30e7d1:_0xd2dc19(0x2ff),_0x31ea74={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x326593),'name':_0x17b03f,'ranges':_0x16a500},_0x312634=this['cursorInfo'];_0x312634[_0xd2dc19(0x20f)](_0x326593,_0x31ea74),this[_0xd2dc19(0xa6)][_0xd2dc19(0x207)](_0x312634);}[_0x4aeb9a(0x343)](_0x471e5f){const _0x2cb3af=_0x4aeb9a,{memberID:_0x140ec7}=_0x471e5f[_0x2cb3af(0x214)],_0x21e188=this[_0x2cb3af(0x13c)];_0x21e188[_0x2cb3af(0x1db)](_0x140ec7),this[_0x2cb3af(0xa6)][_0x2cb3af(0x207)](_0x21e188);}[_0x4aeb9a(0x1a6)](){const _0x1dd792=_0x4aeb9a;var _0x52b6a3;if(this[_0x1dd792(0x2b3)]=!0x0,((_0x52b6a3=this[_0x1dd792(0x2da)][_0x1dd792(0x2b9)]())==null?void 0x0:_0x52b6a3[_0x1dd792(0x2f0)]())!==this['unitID'])return;const _0x2a6b37=this[_0x1dd792(0x33b)]['get'](W[_0x1dd792(0x287)])[_0x1dd792(0x145)]();Array[_0x1dd792(0x1a5)](_0x2a6b37)&&_0x2a6b37[_0x1dd792(0x2d7)]>0x0&&this['_updateLocalCursor'](_0x2a6b37);}['_toggleOffline'](){const _0x9b6c78=_0x4aeb9a;this[_0x9b6c78(0x2b3)]=!0x1;}};fe=ht([U(0x2,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),U(0x3,a[_0x4aeb9a(0x18a)](pe)),U(0x4,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x253)])),U(0x5,a[_0x4aeb9a(0x18a)](Oe)),U(0x6,v[_0x4aeb9a(0x1aa)]),U(0x7,a[_0x4aeb9a(0x2bb)]),U(0x8,a[_0x4aeb9a(0x1f7)])],fe);var St=Object[_0x4aeb9a(0x1b9)],dt=(_0x3925e5,_0xbe8ecb,_0x29b83a,_0x231c2b)=>{const _0x314696=_0x4aeb9a;for(var _0x28a97e=_0x231c2b>0x1?void 0x0:_0x231c2b?St(_0xbe8ecb,_0x29b83a):_0xbe8ecb,_0x23dfc3=_0x3925e5[_0x314696(0x2d7)]-0x1,_0x37fbbc;_0x23dfc3>=0x0;_0x23dfc3--)(_0x37fbbc=_0x3925e5[_0x23dfc3])&&(_0x28a97e=_0x37fbbc(_0x28a97e)||_0x28a97e);return _0x28a97e;},w=(_0x214997,_0x33976c)=>(_0x2ee1eb,_0x182851)=>_0x33976c(_0x2ee1eb,_0x182851,_0x214997);const ft=0x12c,mt=0x64,gt=()=>{let _0x442e70=[],_0x248c16=!0x1;return _0x29d2f8=>{const _0x1461c0=_0x12f6;_0x442e70[_0x1461c0(0x9b)](_0x29d2f8),_0x248c16||(_0x248c16=!0x0,setTimeout(()=>{const _0x505199=_0x1461c0;_0x442e70[_0x505199(0x270)](_0x4acf39=>_0x4acf39()),_0x442e70=[],_0x248c16=!0x1;}));};};let me=class extends a[_0x4aeb9a(0x12b)]{constructor(_0x56b1a9,_0x266557,_0x45ded4,_0x4c3e2e,_0x37529e,_0x3324da,_0x3a102d,_0x269fef){const _0x4d5ae6=_0x4aeb9a;super(),_(this,_0x4d5ae6(0x2b3),!0x1),_(this,_0x4d5ae6(0xe5),!0x1),_(this,_0x4d5ae6(0xa6),new I[(_0x4d5ae6(0x21c))](new Map())),_(this,_0x4d5ae6(0x191),this['_cursorInfo$'][_0x4d5ae6(0x24a)]()),_(this,_0x4d5ae6(0x138),new I[(_0x4d5ae6(0x21c))]([])),_(this,_0x4d5ae6(0x119),this[_0x4d5ae6(0x138)][_0x4d5ae6(0x2b1)](I[_0x4d5ae6(0x1b8)](ft))),_(this,_0x4d5ae6(0x216),a[_0x4d5ae6(0x1eb)]((_0x4950e3,_0x11ba54)=>{const _0x37f943=_0x4d5ae6,_0x4459b3={'eventID':v['CollaborationEvent'][_0x37f943(0x248)],'data':{'unitID':this[_0x37f943(0x32a)],'memberID':this[_0x37f943(0x249)][_0x37f943(0x176)](),'selection':x[_0x37f943(0x101)](_0x4950e3,_0x11ba54['range'])}};this[_0x37f943(0x249)][_0x37f943(0x2e7)](_0x4459b3,this[_0x37f943(0x32a)]);},mt)),(this[_0x4d5ae6(0x32a)]=_0x56b1a9,this[_0x4d5ae6(0x249)]=_0x266557,this[_0x4d5ae6(0x33b)]=_0x45ded4,this['_colorAssignService']=_0x4c3e2e,this[_0x4d5ae6(0xd3)]=_0x37529e,this[_0x4d5ae6(0x2da)]=_0x3324da,this[_0x4d5ae6(0x28c)]=_0x3a102d,this[_0x4d5ae6(0x267)]=_0x269fef);}get[_0x4aeb9a(0x13c)](){const _0x592a85=_0x4aeb9a;return this['_cursorInfo$'][_0x592a85(0x186)]();}get[_0x4aeb9a(0x304)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x4c9e16=_0x4aeb9a;super[_0x4c9e16(0x341)](),this[_0x4c9e16(0xa6)][_0x4c9e16(0x207)](new Map()),this[_0x4c9e16(0xa6)][_0x4c9e16(0x26d)](),this[_0x4c9e16(0x138)][_0x4c9e16(0x207)]([]),this['_roomMembers$'][_0x4c9e16(0x26d)]();}[_0x4aeb9a(0xd5)](){const _0x330415=_0x4aeb9a;this[_0x330415(0xe5)]||(this[_0x330415(0xe5)]=!0x0,this[_0x330415(0x249)][_0x330415(0x1b7)][_0x330415(0x2b1)](I['takeUntil'](this[_0x330415(0x19d)]))[_0x330415(0x302)](_0x5d1fd1=>{const _0x16e6de=_0x330415;_0x5d1fd1===u[_0x16e6de(0x232)][_0x16e6de(0x173)]?this[_0x16e6de(0x1a6)]():this[_0x16e6de(0x1c6)]();}),this[_0x330415(0x249)][_0x330415(0x14b)]['pipe'](I[_0x330415(0x1b6)](this['dispose$']))[_0x330415(0x302)](_0x4d3535=>{const _0x4840d4=_0x330415,_0x4bd01b=_0x4d3535[_0x4840d4(0x2eb)];_0x4bd01b===v[_0x4840d4(0x2a9)][_0x4840d4(0x248)]&&this[_0x4840d4(0x319)](_0x4d3535),_0x4bd01b===v[_0x4840d4(0x2a9)][_0x4840d4(0xdf)]&&this['_onCursorDelete'](_0x4d3535);}),this[_0x330415(0xbb)](),this[_0x330415(0xc8)](this[_0x330415(0x28c)][_0x330415(0x2cf)](_0x2816be=>{const _0x5a4d0e=_0x330415;if(this[_0x5a4d0e(0x2b3)]&&_0x2816be['id']===g[_0x5a4d0e(0x197)]['id']&&_0x2816be[_0x5a4d0e(0x19b)][_0x5a4d0e(0x184)]===this[_0x5a4d0e(0x32a)]){const _0x3487e5=_0x2816be[_0x5a4d0e(0x19b)];this['_updateLocalCursor'](_0x3487e5[_0x5a4d0e(0x1e8)],_0x3487e5[_0x5a4d0e(0x219)][0x0]);}})));}[_0x4aeb9a(0x319)](_0x402fa8){const _0x454384=_0x4aeb9a;var _0x421f4d,_0x41b9a0;const {memberID:_0x1c8fb6,selection:_0x567064}=_0x402fa8[_0x454384(0x214)],{sheetName:_0x239223,range:_0x399532}=x[_0x454384(0x273)](_0x567064),_0x19c50c={'name':(_0x41b9a0=(_0x421f4d=this['_memberService']['getMember'](this[_0x454384(0x32a)],_0x1c8fb6))==null?void 0x0:_0x421f4d[_0x454384(0xfe)])!=null?_0x41b9a0:'Unknown\x20user','range':this[_0x454384(0xc1)](_0x239223,_0x399532),'sheetID':_0x239223,'color':this[_0x454384(0x171)][_0x454384(0x20c)](_0x1c8fb6),'selection':_0x567064},_0x13149e=this['cursorInfo'];_0x13149e[_0x454384(0x20f)](_0x1c8fb6,_0x19c50c),this[_0x454384(0xa6)][_0x454384(0x207)](_0x13149e);}[_0x4aeb9a(0x343)](_0x156efa){const _0x46c2de=_0x4aeb9a,{memberID:_0xa0cec}=_0x156efa[_0x46c2de(0x214)],_0x2e1449=this[_0x46c2de(0x13c)];_0x2e1449[_0x46c2de(0x1db)](_0xa0cec),this[_0x46c2de(0xa6)][_0x46c2de(0x207)](_0x2e1449);}[_0x4aeb9a(0xc1)](_0x30b423,_0xaea83c){const _0x232ee1=_0x4aeb9a;var _0x123eef,_0x35b0fb;const _0x2cbff8=(_0x35b0fb=(_0x123eef=this[_0x232ee1(0x2da)][_0x232ee1(0x2e2)](this[_0x232ee1(0x32a)]))==null?void 0x0:_0x123eef[_0x232ee1(0x120)](_0x30b423))==null?void 0x0:_0x35b0fb[_0x232ee1(0x9e)]();return(_0x2cbff8==null?void 0x0:_0x2cbff8[_0x232ee1(0xca)](_0x5ef859=>a[_0x232ee1(0x114)][_0x232ee1(0x337)](_0x5ef859,_0xaea83c)))||_0xaea83c;}[_0x4aeb9a(0xbb)](){const _0x42d5c6=_0x4aeb9a,_0x47a411=new a['DisposableCollection'](),_0x56d1a0=gt(),_0x1c2e0e=()=>{const _0x55e1f3=_0x12f6;_0x47a411[_0x55e1f3(0x341)]();const _0x18086a=(_0x44c6ed,_0x3e5afe,_0xf32b92,_0x61c15d)=>{const _0x43f40b=_0x55e1f3;let _0x5baf68=[];switch(_0x44c6ed['id']){case g[_0x43f40b(0x242)][_0x43f40b(0x218)]:{_0x5baf68=g[_0x43f40b(0x1ed)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0x300)]:{_0x5baf68=g['handleDeleteRangeMoveUp'](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0x2db)]:{_0x5baf68=g['handleInsertCol'](_0x44c6ed,_0x61c15d);break;}case g['EffectRefRangId'][_0x43f40b(0x30c)]:{_0x5baf68=g['handleInsertRangeMoveDown'](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)]['InsertRangeMoveRightCommandId']:{_0x5baf68=g['handleInsertRangeMoveRight'](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)]['InsertRowCommandId']:{_0x5baf68=g[_0x43f40b(0x148)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0x2e4)]:{_0x5baf68=g[_0x43f40b(0x24d)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)][_0x43f40b(0xbe)]:{_0x5baf68=g[_0x43f40b(0x2ce)](_0x44c6ed,_0x61c15d);break;}case g[_0x43f40b(0x242)]['RemoveRowCommandId']:{_0x5baf68=g['handleIRemoveRow'](_0x44c6ed,_0x61c15d);break;}}const _0x2cf936=g['runRefRangeMutations'](_0x5baf68,_0x61c15d),_0x3a2489=this['cursorInfo'][_0x43f40b(0x25d)](_0x3e5afe);if(_0x3a2489&&_0x2cf936){const _0x25283d={..._0x3a2489,'range':_0x2cf936};this[_0x43f40b(0x13c)][_0x43f40b(0x20f)](_0x3e5afe,_0x25283d),_0x56d1a0(()=>{const _0x40001d=_0x43f40b,_0x4efcfb=this['_refRangeService'][_0x40001d(0x292)](_0x2cf936,_0x27bbb4=>(_0x4efcfb[_0x40001d(0x341)](),_0x18086a(_0x27bbb4,_0x3e5afe,_0xf32b92,_0x2cf936)));_0x47a411[_0x40001d(0x149)](_0x4efcfb);});}return{'redos':[],'undos':[]};};this[_0x55e1f3(0x13c)][_0x55e1f3(0x270)]((_0x33cd32,_0x272907)=>{const _0xf165ee=_0x55e1f3,{range:_0x25cc81,sheetID:_0x2c6210}=_0x33cd32,_0x31c836=this['_refRangeService'][_0xf165ee(0x292)](_0x25cc81,_0x313e99=>(_0x31c836[_0xf165ee(0x341)](),_0x18086a(_0x313e99,_0x272907,_0x2c6210,_0x25cc81)));_0x47a411[_0xf165ee(0x149)](_0x31c836);});};this[_0x42d5c6(0xc8)](a[_0x42d5c6(0x204)](this['_cursorInfo$'][_0x42d5c6(0x302)](()=>{_0x1c2e0e();})));}[_0x4aeb9a(0x1a6)](){const _0x175725=_0x4aeb9a;var _0x341508,_0x1dc9bb;if(this[_0x175725(0x2b3)]=!0x0,((_0x341508=this[_0x175725(0x2da)][_0x175725(0x2b9)]())==null?void 0x0:_0x341508[_0x175725(0x2f0)]())!==this[_0x175725(0x32a)])return;const _0x4b8dc4=(_0x1dc9bb=this[_0x175725(0x33b)]['get'](g[_0x175725(0x118)])[_0x175725(0x239)]())==null?void 0x0:_0x1dc9bb[0x0],_0x4a36bf=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x175725(0x1ae)][_0x175725(0x2ae)])[_0x175725(0x10b)]();_0x4b8dc4&&_0x4a36bf&&this['_updateLocalCursor'](_0x4a36bf[_0x175725(0x1ab)](),_0x4b8dc4);}[_0x4aeb9a(0x1c6)](){this['_online']=!0x1;}};me=dt([w(0x2,a[_0x4aeb9a(0x18a)](a['Injector'])),w(0x3,a[_0x4aeb9a(0x18a)](pe)),w(0x4,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x253)])),w(0x5,a[_0x4aeb9a(0x2bb)]),w(0x6,a[_0x4aeb9a(0x1f7)]),w(0x7,a[_0x4aeb9a(0x18a)](g[_0x4aeb9a(0x2ec)]))],me);var vt=Object[_0x4aeb9a(0x1b9)],Et=(_0x5267d7,_0x4674ba,_0x1db2f9,_0x23aaea)=>{for(var _0x332ce0=_0x23aaea>0x1?void 0x0:_0x23aaea?vt(_0x4674ba,_0x1db2f9):_0x4674ba,_0x98a54f=_0x5267d7['length']-0x1,_0x5b93de;_0x98a54f>=0x0;_0x98a54f--)(_0x5b93de=_0x5267d7[_0x98a54f])&&(_0x332ce0=_0x5b93de(_0x332ce0)||_0x332ce0);return _0x332ce0;},oe=(_0x3d3e3c,_0x193ab3)=>(_0x3b61c7,_0x16b068)=>_0x193ab3(_0x3b61c7,_0x16b068,_0x3d3e3c);let B=class extends a['RxDisposable']{constructor(_0x56bea4,_0x2de705,_0x3d1f89){const _0x1d99b6=_0x4aeb9a;super(),_(this,'_entities',new Map()),_(this,_0x1d99b6(0x250),new I[(_0x1d99b6(0x1fa))]()),(this[_0x1d99b6(0x2da)]=_0x56bea4,this['_injector']=_0x2de705,this[_0x1d99b6(0x2cd)]=_0x3d1f89,this[_0x1d99b6(0xe5)]());}[_0x4aeb9a(0x341)](){const _0x4e5e76=_0x4aeb9a;super['dispose'](),this[_0x4e5e76(0x250)][_0x4e5e76(0x26d)](),this[_0x4e5e76(0x224)]['forEach'](_0x489bcd=>_0x489bcd['dispose']());}[_0x4aeb9a(0x1a9)](_0x347698){const _0x1e5873=_0x4aeb9a;return this['_entities'][_0x1e5873(0x2f3)](_0x347698)?this[_0x1e5873(0x224)][_0x1e5873(0x25d)](_0x347698)[_0x1e5873(0x191)]:this[_0x1e5873(0x250)][_0x1e5873(0x2b1)](I[_0x1e5873(0x20e)](_0x219a76=>_0x219a76[_0x1e5873(0x32a)]===_0x347698),I[_0x1e5873(0x25c)](_0x3b64b4=>_0x3b64b4[_0x1e5873(0x191)]));}[_0x4aeb9a(0xe5)](){const _0xd6f6ca=_0x4aeb9a;this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x21b)](a['UniverInstanceType']['UNIVER_SHEET'])[_0xd6f6ca(0x2b1)](I[_0xd6f6ca(0x1b6)](this[_0xd6f6ca(0x19d)]))['subscribe'](async _0x461cc1=>{const _0xf0371b=_0xd6f6ca,_0x427b29=_0x461cc1[_0xf0371b(0x2f0)](),_0x32f33a=await this[_0xf0371b(0x28a)](_0x427b29);this[_0xf0371b(0x250)]['next'](_0x32f33a),this[_0xf0371b(0x224)][_0xf0371b(0x20f)](_0x427b29,_0x32f33a);}),this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x21b)](a[_0xd6f6ca(0x1ae)][_0xd6f6ca(0x2be)])[_0xd6f6ca(0x2b1)](I[_0xd6f6ca(0x1b6)](this[_0xd6f6ca(0x19d)]))[_0xd6f6ca(0x2b1)](I[_0xd6f6ca(0x20e)](_0x7922f5=>!_0x7922f5['getUnitId']()[_0xd6f6ca(0x33c)]('__')))[_0xd6f6ca(0x302)](async _0x2a7542=>{const _0x5f18d8=_0xd6f6ca,_0x3dcac3=_0x2a7542[_0x5f18d8(0x2f0)](),_0x566b44=await this['_startDocCollabCursor'](_0x3dcac3);this[_0x5f18d8(0x250)][_0x5f18d8(0x207)](_0x566b44),this['_entities'][_0x5f18d8(0x20f)](_0x3dcac3,_0x566b44);}),I[_0xd6f6ca(0xaa)](this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x13f)](a[_0xd6f6ca(0x1ae)][_0xd6f6ca(0x2be)]),this[_0xd6f6ca(0x2da)][_0xd6f6ca(0x13f)](a['UniverInstanceType'][_0xd6f6ca(0x2ae)]))['pipe'](I[_0xd6f6ca(0x1b6)](this[_0xd6f6ca(0x19d)]))[_0xd6f6ca(0x302)](_0x4833a3=>{const _0x4d45d5=_0xd6f6ca,_0x439511=_0x4833a3[_0x4d45d5(0x2f0)](),_0xa32fa6=this[_0x4d45d5(0x224)][_0x4d45d5(0x25d)](_0x439511);_0xa32fa6&&(_0xa32fa6[_0x4d45d5(0x341)](),this[_0x4d45d5(0x224)][_0x4d45d5(0x1db)](_0x439511));});}async[_0x4aeb9a(0x28a)](_0x2205ad){const _0x495113=_0x4aeb9a,_0x3d05e5=await this[_0x495113(0x2cd)][_0x495113(0x22c)](_0x2205ad),_0x51d4d4=this[_0x495113(0x33b)][_0x495113(0x344)](me,_0x2205ad,_0x3d05e5);return _0x51d4d4[_0x495113(0xd5)](),_0x51d4d4;}async[_0x4aeb9a(0x261)](_0x237abf){const _0x4ace5d=_0x4aeb9a,_0x133777=await this[_0x4ace5d(0x2cd)][_0x4ace5d(0x22c)](_0x237abf),_0x2268cc=this['_injector'][_0x4ace5d(0x344)](fe,_0x237abf,_0x133777);return _0x2268cc[_0x4ace5d(0xd5)](),_0x2268cc;}};B=Et([oe(0x0,a[_0x4aeb9a(0x2bb)]),oe(0x1,a['Inject'](a['Injector'])),oe(0x2,a[_0x4aeb9a(0x18a)](u[_0x4aeb9a(0x25a)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0x2166ce,_0x4831ae){const _0x5b4fdc=_0x4aeb9a;let {radius:_0x15aa3f,width:_0x20194f,height:_0x18da05}=_0x4831ae;_0x15aa3f=_0x15aa3f!=null?_0x15aa3f:0x0,_0x20194f=_0x20194f!=null?_0x20194f:0x1e,_0x18da05=_0x18da05!=null?_0x18da05:0x1e;let _0x100cb4=0x0,_0x2eb6ed=0x0,_0x146aea=0x0;_0x100cb4=_0x2eb6ed=_0x146aea=Math[_0x5b4fdc(0x12d)](_0x15aa3f,_0x20194f/0x2,_0x18da05/0x2),_0x2166ce[_0x5b4fdc(0x294)](),_0x2166ce[_0x5b4fdc(0x29a)](_0x100cb4,0x0),_0x2166ce[_0x5b4fdc(0x2c6)](_0x20194f-_0x2eb6ed,0x0),_0x2166ce[_0x5b4fdc(0x295)](_0x20194f-_0x2eb6ed,_0x2eb6ed,_0x2eb6ed,Math['PI']*0x3/0x2,0x0,!0x1),_0x2166ce[_0x5b4fdc(0x2c6)](_0x20194f,_0x18da05-_0x146aea),_0x2166ce[_0x5b4fdc(0x295)](_0x20194f-_0x146aea,_0x18da05-_0x146aea,_0x146aea,0x0,Math['PI']/0x2,!0x1),_0x2166ce[_0x5b4fdc(0x2c6)](0x0,_0x18da05),_0x2166ce['lineTo'](0x0,_0x100cb4),_0x2166ce[_0x5b4fdc(0x295)](_0x100cb4,_0x100cb4,_0x100cb4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2166ce[_0x5b4fdc(0x10d)](),_0x4831ae[_0x5b4fdc(0x234)]&&(_0x2166ce['save'](),_0x2166ce[_0x5b4fdc(0x1fc)]=_0x4831ae[_0x5b4fdc(0x234)],_0x4831ae['fillRule']===_0x5b4fdc(0x109)?_0x2166ce[_0x5b4fdc(0x234)]('evenodd'):_0x2166ce[_0x5b4fdc(0x234)](),_0x2166ce[_0x5b4fdc(0x2b0)]());}class ie extends C['Shape']{constructor(_0x2837a1,_0xde9497){const _0x36ec84=_0x4aeb9a;super(_0x2837a1,_0xde9497),_(this,_0x36ec84(0x264)),_(this,_0x36ec84(0x17f)),(this[_0x36ec84(0x264)]=_0xde9497==null?void 0x0:_0xde9497[_0x36ec84(0x264)],this[_0x36ec84(0x17f)]=_0xde9497==null?void 0x0:_0xde9497[_0x36ec84(0x17f)]);}static[_0x4aeb9a(0x1b3)](_0x2f6c7a,_0x1fe003){const _0x2b3966=_0x4aeb9a,{text:_0x17ecec,color:_0x25b016}=_0x1fe003;_0x2f6c7a[_0x2b3966(0x268)](),_0x2f6c7a[_0x2b3966(0x2d1)]=_0x2b3966(0x289);const _0x27b5db=_0x2f6c7a[_0x2b3966(0x2fb)](_0x17ecec)[_0x2b3966(0x1dd)],_0x426e3a=Math[_0x2b3966(0x12d)](_0x27b5db+0x2*ae,De);Tt(_0x2f6c7a,{'height':X,'radius':0x4,'width':_0x426e3a,'fill':_0x25b016}),_0x2f6c7a[_0x2b3966(0x1fc)]=_0x2b3966(0xa4);const _0x4a7197=ae,_0x34281c=X-Ct,_0x222bda=De-0x2*ae;if(_0x27b5db>_0x222bda){let _0x3d5d51='',_0x8b67fb=0x0;for(const _0x8e0c26 of _0x17ecec){const _0x4da237=_0x2f6c7a[_0x2b3966(0x2fb)](_0x8e0c26)[_0x2b3966(0x1dd)];if(_0x8b67fb+_0x4da237<=_0x222bda-_0x2f6c7a[_0x2b3966(0x2fb)](_0x2b3966(0x189))[_0x2b3966(0x1dd)])_0x3d5d51+=_0x8e0c26,_0x8b67fb+=_0x4da237;else{_0x3d5d51+=_0x2b3966(0x189);break;}}_0x2f6c7a[_0x2b3966(0x9a)](_0x3d5d51,_0x4a7197,_0x34281c);}else _0x2f6c7a['fillText'](_0x17ecec,_0x4a7197,_0x34281c);_0x2f6c7a[_0x2b3966(0x2b0)]();}['_draw'](_0x54aca3){const _0x15f889=_0x4aeb9a;ie[_0x15f889(0x1b3)](_0x54aca3,this);}}const ce=_0x4aeb9a(0x260),pt=_0x4aeb9a(0x124),Ot=_0x4aeb9a(0x2f4),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x4aeb9a(0x15c);class Ne{constructor(_0x132d4e,_0x345b72,_0x522608,_0x3ce413){const _0x4d49cc=_0x4aeb9a;_(this,_0x4d49cc(0x13e),[]),_(this,_0x4d49cc(0x23f),null),_(this,_0x4d49cc(0x133),null),_(this,_0x4d49cc(0x195),null),_(this,_0x4d49cc(0x33a),null),_(this,_0x4d49cc(0x24f),null),(this['_cursor']=_0x132d4e,this['_scene']=_0x345b72,this[_0x4d49cc(0x2f1)]=_0x522608,this[_0x4d49cc(0x1f9)]=_0x3ce413,this['_render']());}set['_hover'](_0x199c74){const _0x45d449=_0x4aeb9a;_0x199c74?(this['_anchorDot']&&this[_0x45d449(0x195)][_0x45d449(0xa1)](),this[_0x45d449(0x133)]&&this['_textBubble'][_0x45d449(0x2fd)]()):(this[_0x45d449(0x195)]&&this[_0x45d449(0x195)][_0x45d449(0x2fd)](),this[_0x45d449(0x133)]&&this[_0x45d449(0x133)]['hide']());}[_0x4aeb9a(0x341)](){const _0x2b5d33=_0x4aeb9a;for(const _0x4ed856 of this[_0x2b5d33(0x13e)])_0x4ed856[_0x2b5d33(0x341)]();this['_textBubble']&&this['_textBubble']['dispose'](),this[_0x2b5d33(0x195)]&&this[_0x2b5d33(0x195)][_0x2b5d33(0x341)](),this[_0x2b5d33(0x23f)]&&this[_0x2b5d33(0x23f)]['dispose'](),this[_0x2b5d33(0x24f)]&&this[_0x2b5d33(0x24f)]();}[_0x4aeb9a(0x228)](){const _0x479410=_0x4aeb9a;var _0xac73fb;const {_docSkeleton:_0x3e0e4f,_document:_0x8f079d}=this,{color:_0x5aaff4,name:_0x1bda6e,ranges:_0x4c3ca3}=this[_0x479410(0xa7)],_0x1ee9ad=_0x8f079d[_0x479410(0xb7)](),{docsLeft:_0x1c5a76,docsTop:_0x4e622d}=_0x1ee9ad,_0x53b2be=new T['NodePositionConvertToCursor'](_0x1ee9ad,_0x3e0e4f);for(const {startOffset:_0x21c1ff,endOffset:_0xa0261c,rangeType:_0x3dc869,segmentId:_0x4ba0d0,segmentPage:_0xf2ee6a,collapsed:_0xa0883,isActive:_0x7925d2}of _0x4c3ca3){const _0x6485e6=_0x3e0e4f['findNodePositionByCharIndex'](_0x21c1ff,!0x0,_0x4ba0d0,_0xf2ee6a);let _0x47582b=_0x3e0e4f[_0x479410(0x262)](_0xa0261c,!0x0,_0x4ba0d0,_0xf2ee6a);if(_0x47582b==null&&(_0x47582b=_0x3e0e4f[_0x479410(0x262)](_0xa0261c-0x1,!0x1,_0x4ba0d0,_0xf2ee6a)),_0x7925d2){const {contentBoxPointGroup:_0x4efdf1}=_0x53b2be[_0x479410(0xc6)](_0x47582b,_0x47582b);if(_0x4efdf1[_0x479410(0x2d7)]===0x0)continue;this[_0x479410(0x286)](_0x5aaff4,_0x4efdf1,_0x1c5a76,_0x4e622d,_0x1bda6e),this['_eventUnsubscribe']=this[_0x479410(0x33d)]();}if(_0x6485e6&&_0x47582b){if(_0x3dc869===a[_0x479410(0x331)]['RECT']){const _0x2b34f4=new T['NodePositionConvertToRectRange'](_0x1ee9ad,_0x3e0e4f),{pointGroup:_0x3d087b}=(_0xac73fb=_0x2b34f4[_0x479410(0xc6)](_0x6485e6,_0x47582b))!=null?_0xac73fb:{};if(_0x3d087b==null||_0x3d087b[_0x479410(0x2d7)]===0x0)continue;this[_0x479410(0x1df)](_0x5aaff4,_0x3d087b,_0x1c5a76,_0x4e622d);}else{if(!_0xa0883){const {borderBoxPointGroup:_0x126406}=_0x53b2be['getRangePointData'](_0x6485e6,_0x47582b);if(_0x126406[_0x479410(0x2d7)]===0x0)continue;this['_drawTextRange'](_0x5aaff4,_0x126406,_0x1c5a76,_0x4e622d);}}}}}['_drawAnchor'](_0x1a465f,_0x5733db,_0x17a3ab,_0x339547,_0x239c81){const _0x2c24c7=_0x4aeb9a,_0x2bf6c3=this['_getAnchorBounding'](_0x5733db),{left:_0x22f1b2,top:_0x29cd3d,height:_0x3c03f6}=_0x2bf6c3,_0x3bd0e5=this[_0x2c24c7(0x2c0)](),_0x61f368=bt/_0x3bd0e5,_0xfedffb=new C[(_0x2c24c7(0x2fc))](ce+a['generateRandomId'](Y),{'left':_0x22f1b2+_0x17a3ab-_0x61f368,'top':_0x29cd3d+_0x339547,'height':_0x3c03f6,'width':Rt,'fill':_0x1a465f||C[_0x2c24c7(0x11c)](a[_0x2c24c7(0x282)][_0x2c24c7(0x193)],0x0),'strokeWidth':_0x61f368,'stroke':Dt,'evented':!0x0});this['_anchor']=_0xfedffb,this[_0x2c24c7(0x1bf)][_0x2c24c7(0xf8)](_0xfedffb,T[_0x2c24c7(0x325)]);const _0x3a0751=new C['Rect'](ce+a[_0x2c24c7(0x2b2)](Y),{'left':_0x22f1b2+_0x17a3ab-_0x61f368,'top':_0x29cd3d+_0x339547-le/0x2,'height':le,'width':le,'fill':_0x1a465f||C['getColor'](a[_0x2c24c7(0x282)][_0x2c24c7(0x193)],0x0),'strokeWidth':0x0,'stroke':_0x1a465f||C['getColor'](a['COLORS'][_0x2c24c7(0x193)],0x0),'evented':!0x1});this[_0x2c24c7(0x195)]=_0x3a0751,this[_0x2c24c7(0x1bf)][_0x2c24c7(0xf8)](_0x3a0751,T[_0x2c24c7(0x325)]);const _0x5dc387=new ie(ce+a['generateRandomId'](Y),{'left':_0x22f1b2+_0x17a3ab-_0x61f368,'top':_0x29cd3d+_0x339547-X,'text':_0x239c81,'color':_0x1a465f});this[_0x2c24c7(0x133)]=_0x5dc387,this[_0x2c24c7(0x1bf)][_0x2c24c7(0xf8)](_0x5dc387,T[_0x2c24c7(0x325)]),this[_0x2c24c7(0x1ff)]=!0x1;}[_0x4aeb9a(0x33d)](){const _0x56c027=_0x4aeb9a,_0x45906e=this[_0x56c027(0x23f)][_0x56c027(0x10c)][_0x56c027(0x16b)](()=>{const _0x3b782e=_0x56c027;this[_0x3b782e(0x1ff)]=!0x0;}),_0x1e48c2=this[_0x56c027(0x23f)][_0x56c027(0x259)]['subscribeEvent'](()=>{const _0x54cd29=_0x56c027;this[_0x54cd29(0x33a)]&&clearTimeout(this['_hideTimer']),this[_0x54cd29(0x33a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5a8aca=_0x56c027;_0x45906e[_0x5a8aca(0x178)](),_0x1e48c2[_0x5a8aca(0x178)]();};}[_0x4aeb9a(0x1ca)](_0x28bddf,_0x20c881,_0x1ae343,_0x1c1640){const _0x56666a=_0x4aeb9a,_0x1ee57e=new a['ColorKit'](_0x28bddf)[_0x56666a(0x15e)](0.2)[_0x56666a(0x2a4)](),_0x45c42c=new C['RegularPolygon'](pt+a[_0x56666a(0x2b2)](Y),{'pointsGroup':_0x20c881,'fill':_0x1ee57e||C[_0x56666a(0x11c)](a['COLORS'][_0x56666a(0x193)],0.2),'left':_0x1ae343,'top':_0x1c1640,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56666a(0x13e)][_0x56666a(0x9b)](_0x45c42c),this[_0x56666a(0x1bf)]['addObject'](_0x45c42c,T[_0x56666a(0x325)]);}[_0x4aeb9a(0x1df)](_0x2e6860,_0x552d0b,_0x2face4,_0x2e305a){const _0x3aa751=_0x4aeb9a,_0x2a2ba5=new a[(_0x3aa751(0xb3))](_0x2e6860)[_0x3aa751(0x15e)](0.2)['toRgbString'](),_0x22f3a1=new C[(_0x3aa751(0x271))](Ot+a['generateRandomId'](Y),{'pointsGroup':_0x552d0b,'fill':_0x2a2ba5||C[_0x3aa751(0x11c)](a[_0x3aa751(0x282)]['black'],0.2),'left':_0x2face4,'top':_0x2e305a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3aa751(0x13e)]['push'](_0x22f3a1),this['_scene'][_0x3aa751(0xf8)](_0x22f3a1,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4aeb9a(0x24e)](_0x269f3d){const _0x2dae3a=_0x269f3d[0x0],_0x337901=_0x2dae3a[0x0],_0x356cee=_0x2dae3a[0x2],{x:_0x2b4965,y:_0x2c65fd}=_0x337901,{x:_0x3075b0,y:_0x14f43c}=_0x356cee;return{'left':_0x2b4965,'top':_0x2c65fd,'width':_0x3075b0-_0x2b4965,'height':_0x14f43c-_0x2c65fd};}[_0x4aeb9a(0x2c0)](){const _0x4d58fd=_0x4aeb9a,{scaleX:_0x4cdfb3,scaleY:_0x5911ba}=this[_0x4d58fd(0x1bf)][_0x4d58fd(0xc9)]();return Math[_0x4d58fd(0x31c)](_0x4cdfb3,_0x5911ba);}}var Nt=Object[_0x4aeb9a(0x1b9)],Ut=(_0x435758,_0x92a9f3,_0x6f69f6,_0xafca0d)=>{const _0x19137d=_0x4aeb9a;for(var _0x394106=_0xafca0d>0x1?void 0x0:_0xafca0d?Nt(_0x92a9f3,_0x6f69f6):_0x92a9f3,_0x202839=_0x435758[_0x19137d(0x2d7)]-0x1,_0x2b166b;_0x202839>=0x0;_0x202839--)(_0x2b166b=_0x435758[_0x202839])&&(_0x394106=_0x2b166b(_0x394106)||_0x394106);return _0x394106;},q=(_0x150fc9,_0x384468)=>(_0xf719e6,_0x46ebb7)=>_0x384468(_0xf719e6,_0x46ebb7,_0x150fc9);let ge=class extends a['RxDisposable']{constructor(_0x592604,_0x22efda,_0x755c7,_0x33fb60,_0x225650){const _0xd8f7f0=_0x4aeb9a;super(),_(this,'_cursorShapes',[]),_(this,_0xd8f7f0(0x211),[]),(this[_0xd8f7f0(0x11d)]=_0x592604,this[_0xd8f7f0(0x2d2)]=_0x22efda,this[_0xd8f7f0(0x1e0)]=_0x755c7,this[_0xd8f7f0(0x28c)]=_0x33fb60,this['_themeService']=_0x225650,this[_0xd8f7f0(0xe5)]());}[_0x4aeb9a(0xe5)](){const _0x121ca0=_0x4aeb9a,_0x51e70b=this['_context'][_0x121ca0(0x184)],_0x23d1fa=this['_docSkeletonManagerService'];this['disposeWithMe'](I[_0x121ca0(0x1f8)]([this['_collabCursorController'][_0x121ca0(0x1a9)](_0x51e70b),this['_themeService'][_0x121ca0(0x152)]])[_0x121ca0(0x2b1)]($[_0x121ca0(0x20a)](([_0x43fdc9,_0x1d9bc5])=>({'skeleton':_0x23d1fa[_0x121ca0(0x154)](),'cursors':[..._0x43fdc9[_0x121ca0(0x246)]()][_0x121ca0(0x1f5)](_0x421687=>({..._0x421687,'color':this[_0x121ca0(0x210)]['getColorFromTheme'](_0x421687[_0x121ca0(0x264)])}))})))['subscribe'](_0x5615e3=>{const _0xea721=_0x121ca0;if(this[_0xea721(0x269)](),_0x5615e3){const {skeleton:_0x5d84ab,cursors:_0x406c02}=_0x5615e3;this[_0xea721(0x31e)](_0x5d84ab,_0x406c02);}})),this[_0x121ca0(0x2af)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x53b0c8,_0x4363f1){const _0x46741e=_0x4aeb9a,{scene:_0x3cf011,mainComponent:_0x1b9783}=this[_0x46741e(0x11d)],_0x20890e=_0x4363f1[_0x46741e(0x20a)](_0x3f64b9=>new Ne(_0x3f64b9,_0x3cf011,_0x53b0c8,_0x1b9783));this[_0x46741e(0x256)]=_0x20890e,this['_cursors']=_0x4363f1;}[_0x4aeb9a(0x20d)](){const _0x2047a3=_0x4aeb9a;this[_0x2047a3(0x269)]();const {scene:_0x4e8409,mainComponent:_0x35e292}=this[_0x2047a3(0x11d)],_0x35bcf2=this['_docSkeletonManagerService'][_0x2047a3(0x154)](),_0x55d1d2=this[_0x2047a3(0x211)][_0x2047a3(0x20a)](_0x3d9cce=>new Ne(_0x3d9cce,_0x4e8409,_0x35bcf2,_0x35e292));this['_cursorShapes']=_0x55d1d2;}[_0x4aeb9a(0x269)](){const _0x10920a=_0x4aeb9a;this['_cursorShapes']['forEach'](_0x1f81b7=>_0x1f81b7[_0x10920a(0x341)]()),this[_0x10920a(0x256)]=[];}['_initCommandExecutedListener'](){const _0x5744ec=_0x4aeb9a,_0x2f0621=[T[_0x5744ec(0x23d)]['id']];this['disposeWithMe'](this[_0x5744ec(0x28c)][_0x5744ec(0x2cf)](_0x29949c=>{const _0x176378=_0x5744ec;_0x2f0621[_0x176378(0x31a)](_0x29949c['id'])&&_0x29949c[_0x176378(0x19b)]['unitId']===this[_0x176378(0x11d)][_0x176378(0x184)]&&this[_0x176378(0x20d)]();}));}['_initResize'](){const _0x3ff162=_0x4aeb9a;this[_0x3ff162(0xc8)](a[_0x3ff162(0x2bd)](this[_0x3ff162(0x11d)][_0x3ff162(0xee)]['onTransformChange$'])[_0x3ff162(0x2b1)]($[_0x3ff162(0x20e)](_0x5aaba9=>_0x5aaba9[_0x3ff162(0x1e9)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3ff162(0x231)]),$[_0x3ff162(0x1c3)](0x10))[_0x3ff162(0x302)](()=>{const _0x2b3383=_0x3ff162;this[_0x2b3383(0x20d)]();}));}};ge=Ut([q(0x1,a['Inject'](W[_0x4aeb9a(0x155)])),q(0x2,a[_0x4aeb9a(0x18a)](B)),q(0x3,a[_0x4aeb9a(0x1f7)]),q(0x4,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x32b)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x4aeb9a(0x100)]{constructor(_0xbc5137,_0x5768b2){const _0x23f317=_0x4aeb9a;super(_0xbc5137,_0x5768b2),_(this,_0x23f317(0x181)),_(this,_0x23f317(0x172),!0x1),_(this,'_range'),_(this,_0x23f317(0xcf),''),_(this,'_labelPosition',_0x23f317(0x17e)),_(this,_0x23f317(0x2bc)),(_0x5768b2&&this[_0x23f317(0x1c1)](_0x5768b2),this[_0x23f317(0x10c)][_0x23f317(0x16b)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x23f317(0x259)][_0x23f317(0x16b)](()=>this[_0x23f317(0x1c1)]({'hovered':!0x1})));}[_0x4aeb9a(0x1c1)](_0x356846){const _0x44e58f=_0x4aeb9a;var _0x332854,_0x29e0fb,_0x46c278,_0x4c9b80,_0x22771e,_0x460d60;this[_0x44e58f(0x181)]=(_0x332854=_0x356846[_0x44e58f(0x264)])!=null?_0x332854:this[_0x44e58f(0x181)],this[_0x44e58f(0x172)]=(_0x29e0fb=_0x356846[_0x44e58f(0x2d5)])!=null?_0x29e0fb:this['_hovered'],this['_range']=(_0x46c278=_0x356846[_0x44e58f(0xfa)])!=null?_0x46c278:this[_0x44e58f(0x116)],this[_0x44e58f(0xcf)]=(_0x4c9b80=_0x356846[_0x44e58f(0xfe)])!=null?_0x4c9b80:this[_0x44e58f(0xcf)],this[_0x44e58f(0x30f)]=(_0x22771e=_0x356846[_0x44e58f(0x161)])!=null?_0x22771e:this[_0x44e58f(0x30f)],this[_0x44e58f(0x2bc)]=(_0x460d60=_0x356846[_0x44e58f(0x308)])!=null?_0x460d60:this['_backgroundColor'],this[_0x44e58f(0x2ea)]({'width':_0x356846[_0x44e58f(0x1dd)],'height':_0x356846['height']});}[_0x4aeb9a(0xd0)](_0x3c7f25){const _0x45c608=_0x4aeb9a,{row:_0x5695e7,column:_0x146627}=_0x3c7f25;if(_0x5695e7>=this[_0x45c608(0x116)]['startRow']&&_0x5695e7<=this[_0x45c608(0x116)][_0x45c608(0x31f)]&&_0x146627>=this[_0x45c608(0x116)][_0x45c608(0x1e3)]&&_0x146627<=this[_0x45c608(0x116)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4aeb9a(0x317)](_0x14dfc6){return!0x1;}[_0x4aeb9a(0x97)](_0xe593a8){const _0x57be4f=_0x4aeb9a;C[_0x57be4f(0x2fc)][_0x57be4f(0x1b3)](_0xe593a8,{'width':this[_0x57be4f(0x1dd)],'height':this[_0x57be4f(0xeb)],'strokeWidth':Mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x57be4f(0x2bc)]}),this[_0x57be4f(0x172)]&&(_0xe593a8[_0x57be4f(0x268)](),_0xe593a8[_0x57be4f(0x2c9)](0x1,0x0,0x0,0x1,this['width'],this[_0x57be4f(0x30f)]===_0x57be4f(0xf9)?0x0:-X),ie[_0x57be4f(0x1b3)](_0xe593a8,{'text':this[_0x57be4f(0xcf)],'color':this[_0x57be4f(0x181)]}),_0xe593a8[_0x57be4f(0x2b0)]());}}var At=Object[_0x4aeb9a(0x1b9)],Pt=(_0x14f082,_0x44d405,_0x5c73b6,_0x36268a)=>{const _0x51c6b0=_0x4aeb9a;for(var _0x12395c=_0x36268a>0x1?void 0x0:_0x36268a?At(_0x44d405,_0x5c73b6):_0x44d405,_0x5cc201=_0x14f082[_0x51c6b0(0x2d7)]-0x1,_0x30dcdc;_0x5cc201>=0x0;_0x5cc201--)(_0x30dcdc=_0x14f082[_0x5cc201])&&(_0x12395c=_0x30dcdc(_0x12395c)||_0x12395c);return _0x12395c;},_e=(_0x263c70,_0x296479)=>(_0x344272,_0x576a91)=>_0x296479(_0x344272,_0x576a91,_0x263c70);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0xafc79c,_0x474663,_0x484537,_0x4d9080){const _0x27f4e6=_0x4aeb9a;super(),_(this,_0x27f4e6(0x211),new Set()),_(this,'_lastPointer',null),(this[_0x27f4e6(0x11d)]=_0xafc79c,this['_sheetSkeletonManagerService']=_0x474663,this[_0x27f4e6(0x1e0)]=_0x484537,this[_0x27f4e6(0x210)]=_0x4d9080,this[_0x27f4e6(0xe5)]());}['_init'](){const _0x45f39a=_0x4aeb9a;this[_0x45f39a(0x318)]['currentSkeleton$'][_0x45f39a(0x2b1)]($[_0x45f39a(0x1b6)](this['dispose$']),$[_0x45f39a(0x25c)](_0x3f7114=>{const _0x492713=_0x45f39a;if(_0x3f7114){const _0x1bd1ff=_0x3f7114['sheetId'];return I[_0x492713(0x1f8)](this['_collabCursorController'][_0x492713(0x1a9)](this[_0x492713(0x11d)][_0x492713(0x184)]),this[_0x492713(0x210)][_0x492713(0x152)])[_0x492713(0x2b1)]($[_0x492713(0x20a)](([_0x46607a,_0xa4175b])=>{const _0x793348=_0x492713,_0x4685a0=new Map();return _0x46607a[_0x793348(0x270)]((_0x4c2cdc,_0x326ad2)=>{const _0x2abfe7=_0x793348;if(_0x4c2cdc[_0x2abfe7(0x129)]===_0x1bd1ff){const _0x5127ce={..._0x4c2cdc};_0x5127ce[_0x2abfe7(0x264)]=this[_0x2abfe7(0x210)][_0x2abfe7(0x10a)](_0x4c2cdc['color']),_0x4685a0[_0x2abfe7(0x20f)](_0x326ad2,_0x5127ce);}}),{'skeleton':_0x3f7114,'cursors':_0x4685a0};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x45f39a(0x302)](({skeleton:_0x6dd02d,cursors:_0x144b03})=>{const _0x59ec40=_0x45f39a;this[_0x59ec40(0x269)](),_0x6dd02d&&this[_0x59ec40(0x31e)](_0x6dd02d,_0x144b03);}),this[_0x45f39a(0x318)][_0x45f39a(0x240)][_0x45f39a(0x302)](_0x97509c=>{const _0x3d4f90=_0x45f39a;if(_0x97509c==null)return;const {skeleton:_0x2ec593}=_0x97509c,{scene:_0x5597f8}=this[_0x3d4f90(0x11d)];_0x5597f8[_0x3d4f90(0x225)]['subscribeEvent'](a['debounce'](_0x1d6ddc=>{const _0x217c99=_0x3d4f90;var _0x3eab34,_0x502ae4;const {offsetX:_0x580bff,offsetY:_0x52e99b}=_0x1d6ddc,{x:_0x8c876,y:_0x2d1b84}=_0x5597f8[_0x217c99(0x110)](C['Vector2'][_0x217c99(0x1e7)]([_0x580bff,_0x52e99b])),{scaleX:_0x24f5c6,scaleY:_0x3ade95}=_0x5597f8[_0x217c99(0xc9)](),_0x46d91d=_0x5597f8['getViewport'](C[_0x217c99(0x134)][_0x217c99(0x141)]),_0x2aa24a=_0x5597f8[_0x217c99(0x27d)](C[_0x217c99(0x1d4)][_0x217c99(0x1e7)]([_0x8c876,_0x2d1b84]),_0x46d91d),_0x4aaab3=_0x2ec593[_0x217c99(0x174)](_0x580bff,_0x52e99b,_0x24f5c6,_0x3ade95,_0x2aa24a);((_0x3eab34=this['_lastPointer'])==null?void 0x0:_0x3eab34[_0x217c99(0x2cb)])===_0x4aaab3[_0x217c99(0x2cb)]&&((_0x502ae4=this[_0x217c99(0x12f)])==null?void 0x0:_0x502ae4[_0x217c99(0x2f7)])===_0x4aaab3[_0x217c99(0x2f7)]||this[_0x217c99(0x211)][_0x217c99(0x270)](_0x101091=>{const _0x414428=_0x217c99;_0x101091[_0x414428(0xd0)](_0x4aaab3);});},0x64));});}['_updateCollabCursors'](_0x43516e,_0x578498){const _0x4d8229=_0x4aeb9a;var _0x2bcc8a;const _0x94978f=(_0x2bcc8a=this[_0x4d8229(0x318)][_0x4d8229(0x2b4)]())==null?void 0x0:_0x2bcc8a[_0x4d8229(0x12a)];if(!_0x94978f)return;const _0x2248c9=this[_0x4d8229(0x1c8)]();if(!_0x2248c9)return;this['_cursors'][_0x4d8229(0x270)](_0x2dacf5=>{const _0x384b9e=_0x4d8229;_0x2dacf5[_0x384b9e(0x1ea)]();});const {scene:_0x37df5a}=_0x2248c9,_0x47a5f3=yt(Array[_0x4d8229(0x19f)](_0x578498[_0x4d8229(0x246)]()))[_0x4d8229(0x20a)](_0xa6010f=>{const {color:_0x1c3b44,range:_0x201f29,name:_0x4c7d28,selection:_0x55f06f,sheetID:_0x44f5b9}=_0xa6010f,{startColumn:_0x37dc59,startRow:_0x11338a,endColumn:_0x5d02a9,endRow:_0x1fafd9}=_0x201f29,_0x61a6ab=z['getCoordByCell'](_0x11338a,_0x37dc59,_0x37df5a,_0x94978f),_0x2d6ab1=z['getCoordByCell'](_0x1fafd9,_0x5d02a9,_0x37df5a,_0x94978f),{columnHeaderHeightAndMarginTop:_0xcee54c}=_0x94978f,{startX:_0x19246c,startY:_0x128657}=_0x61a6ab,{endX:_0x4f32c6,endY:_0xbea95b}=_0x2d6ab1,_0x112558=_0x4f32c6-_0x19246c,_0x4924ba=_0xbea95b-_0x128657,_0x2182c9={'labelPosition':_0x128657-_0xcee54c>=X?'top':'bottom','sheetID':_0x44f5b9,'range':_0x201f29,'color':_0x1c3b44,'name':_0x4c7d28,'selection':_0x55f06f,'left':_0x19246c,'top':_0x128657,'width':_0x112558,'height':_0x4924ba,'evented':!0x1,'zIndex':wt};return new Be(_0x4c7d28,_0x2182c9);});_0x37df5a[_0x4d8229(0x1d9)](_0x47a5f3,Lt),this['_cursors']=new Set(_0x47a5f3);}[_0x4aeb9a(0x269)](){const _0x3ffa3e=_0x4aeb9a;var _0x18d074;(_0x18d074=this[_0x3ffa3e(0x211)])==null||_0x18d074['forEach'](_0x5b93b9=>_0x5b93b9[_0x3ffa3e(0x341)]());}[_0x4aeb9a(0x1c8)](){const _0x1e873e=_0x4aeb9a;return z['getSheetObject'](this['_context'][_0x1e873e(0x311)],this[_0x1e873e(0x11d)]);}};ve=Pt([_e(0x1,a['Inject'](z[_0x4aeb9a(0xce)])),_e(0x2,a[_0x4aeb9a(0x18a)](B)),_e(0x3,a['Inject'](a[_0x4aeb9a(0x32b)]))],ve);function yt(_0x479afe){const _0x4db56f=_0x4aeb9a,_0x499eda=new Map();return _0x479afe[_0x4db56f(0x270)](_0x1798cd=>{const _0x576c69=_0x4db56f;if(_0x499eda[_0x576c69(0x2f3)](_0x1798cd[_0x576c69(0x339)])){const _0x145030=_0x499eda[_0x576c69(0x25d)](_0x1798cd['selection']);_0x145030[_0x576c69(0xfe)]+=',\x20'+_0x1798cd[_0x576c69(0xfe)];}else _0x499eda['set'](_0x1798cd['selection'],_0x1798cd);}),Array[_0x4db56f(0x19f)](_0x499eda[_0x4db56f(0x246)]());}var $t=Object[_0x4aeb9a(0x1b9)],xt=(_0x4648cb,_0x28d728,_0x9047e1,_0x3987c8)=>{for(var _0x24bfb5=_0x3987c8>0x1?void 0x0:_0x3987c8?$t(_0x28d728,_0x9047e1):_0x28d728,_0x371128=_0x4648cb['length']-0x1,_0x4fc039;_0x371128>=0x0;_0x371128--)(_0x4fc039=_0x4648cb[_0x371128])&&(_0x24bfb5=_0x4fc039(_0x24bfb5)||_0x24bfb5);return _0x24bfb5;},y=(_0x146cc7,_0xbf4b46)=>(_0x5e6c15,_0x3405d8)=>_0xbf4b46(_0x5e6c15,_0x3405d8,_0x146cc7);function _0x12f6(_0x2b0ae0,_0x4bb99b){const _0x21c1cd=_0x21c1();return _0x12f6=function(_0x12f6d3,_0x3f31d3){_0x12f6d3=_0x12f6d3-0x95;let _0x17df0a=_0x21c1cd[_0x12f6d3];return _0x17df0a;},_0x12f6(_0x2b0ae0,_0x4bb99b);}let J=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x19a163,_0x5afd3a,_0x56ea1b,_0x352e42,_0x94b669,_0x4ddc6c){const _0x2113c7=_0x4aeb9a;super(),this['_beforeCloseService']=_0x19a163,this[_0x2113c7(0x1f6)]=_0x5afd3a,this[_0x2113c7(0x165)]=_0x56ea1b,this[_0x2113c7(0x306)]=_0x352e42,this[_0x2113c7(0x177)]=_0x94b669,this[_0x2113c7(0xfb)]=_0x4ddc6c,this['_setupBeforeClosingHandler'](),this[_0x2113c7(0x1f0)]();}[_0x4aeb9a(0x1b5)](){const _0x486ce2=_0x4aeb9a;this[_0x486ce2(0xc8)](this[_0x486ce2(0x1e6)][_0x486ce2(0x223)](()=>{const _0x4741a9=_0x486ce2;if(this[_0x4741a9(0x1f6)][_0x4741a9(0x2a3)][_0x4741a9(0x2a5)])return this[_0x4741a9(0xfb)]['t'](_0x4741a9(0x30e));}));}['_initEvent'](){const _0x2568b4=_0x4aeb9a;this[_0x2568b4(0xc8)](this[_0x2568b4(0x165)][_0x2568b4(0x14b)][_0x2568b4(0x302)](_0x362af7=>{const _0x142121=_0x2568b4;_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x215)]&&this['_messageService']['show']({'type':p[_0x142121(0x265)][_0x142121(0xa2)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x281))}),_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x29f)]&&this['_messageService'][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)][_0x142121(0xa2)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x1d5))}),_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x2e8)]&&this[_0x142121(0x177)][_0x142121(0x2fd)]({'title':this[_0x142121(0xfb)]['t'](_0x142121(0x2a8)),'content':this['_localeService']['t']('permission.content'),'type':_0x142121(0x1a0),'duration':0x0}),_0x362af7['id']===u['CollaborationUIEventId'][_0x142121(0x1ba)]&&this[_0x142121(0x306)][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)][_0x142121(0x280)],'content':this[_0x142121(0xfb)]['t']('collaboration.closeRoom')+'('+_0x362af7[_0x142121(0x214)]+')'}),_0x362af7['id']===u[_0x142121(0x1b1)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)]['Warning'],'content':this[_0x142121(0xfb)]['t'](_0x362af7[_0x142121(0x214)]||'')}),_0x362af7['id']===u[_0x142121(0x1b1)][_0x142121(0x136)]&&this['_messageService'][_0x142121(0x2fd)]({'type':p[_0x142121(0x265)][_0x142121(0xa2)],'content':this[_0x142121(0xfb)]['t']('session.will-retry')}),_0x362af7['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x142121(0x306)]['show']({'type':p[_0x142121(0x265)][_0x142121(0x280)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x2e0))}),_0x362af7['id']===u['CollaborationUIEventId'][_0x142121(0x2b6)]&&this[_0x142121(0x306)]['show']({'type':p['MessageType'][_0x142121(0x280)],'content':this[_0x142121(0xfb)]['t'](_0x142121(0x13a))});}));}};J=xt([y(0x0,O[_0x4aeb9a(0x2b5)]),y(0x1,u[_0x4aeb9a(0xbc)]),y(0x2,a['Inject'](u[_0x4aeb9a(0x103)])),y(0x3,O[_0x4aeb9a(0x10f)]),y(0x4,O[_0x4aeb9a(0x163)]),y(0x5,a[_0x4aeb9a(0x18a)](a['LocaleService']))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x4aeb9a(0x1b9)],kt=(_0x356d2,_0x3f2db8,_0x1f2aed,_0x534100)=>{const _0x32c42a=_0x4aeb9a;for(var _0x47c7be=_0x534100>0x1?void 0x0:_0x534100?Ft(_0x3f2db8,_0x1f2aed):_0x3f2db8,_0x1bc6af=_0x356d2[_0x32c42a(0x2d7)]-0x1,_0x68424f;_0x1bc6af>=0x0;_0x1bc6af--)(_0x68424f=_0x356d2[_0x1bc6af])&&(_0x47c7be=_0x68424f(_0x47c7be)||_0x47c7be);return _0x47c7be;},Le=(_0x4d7770,_0x4aac5)=>(_0x3d7ffa,_0x45db65)=>_0x4aac5(_0x3d7ffa,_0x45db65,_0x4d7770);let Z=class{constructor(_0x26be0e,_0x5643ab){const _0x3708c2=_0x4aeb9a;this['_transformService']=_0x26be0e,this[_0x3708c2(0x1c9)]=_0x5643ab;}[_0x4aeb9a(0xea)](_0x167b90){const _0x12613c=_0x4aeb9a;this[_0x12613c(0x1c5)](_0x167b90),this[_0x12613c(0x2d9)](_0x167b90);}[_0x4aeb9a(0x328)](_0x2d187f){const _0xe75a90=_0x4aeb9a,{unitID:_0x44a878}=_0x2d187f,_0x494c73=this[_0xe75a90(0x1c9)][_0xe75a90(0x18e)](_0x44a878)['with'](T['DocIMEInputManagerService']),{redoCache:_0x38c2d2}=_0x494c73[_0xe75a90(0x131)]();if(_0x38c2d2[_0xe75a90(0x2d7)]===0x0)return _0x2d187f;let _0x226dd7=a[_0xe75a90(0x170)]['deepClone'](_0x2d187f[_0xe75a90(0xec)][0x0]);for(let _0x462697=0x0;_0x462697<_0x38c2d2[_0xe75a90(0x2d7)];_0x462697++){const _0xe78e6a={'id':'doc.mutation.rich-text-editing','params':{..._0x38c2d2[_0x462697]}},_0x6d02fc=this[_0xe75a90(0x301)][_0xe75a90(0x147)](_0x226dd7,_0xe78e6a,!0x1);if(v[_0xe75a90(0x2a2)](_0x6d02fc))throw _0x6d02fc[_0xe75a90(0x1a0)];_0x226dd7=_0x6d02fc[_0xe75a90(0x1a1)];}return{...a[_0xe75a90(0x170)][_0xe75a90(0x1ee)](_0x2d187f),'mutations':[_0x226dd7]};}[_0x4aeb9a(0x1c5)](_0x2ad6bc){const _0x113bf9=_0x4aeb9a,{unitID:_0xb04fa}=_0x2ad6bc,_0x1c7e21=this[_0x113bf9(0x1c9)]['getRenderById'](_0xb04fa)['with'](T[_0x113bf9(0x266)]),{undoCache:_0x1de664,redoCache:_0x592448}=_0x1c7e21[_0x113bf9(0x131)]();if(_0x1de664[_0x113bf9(0x2d7)]===0x0||_0x592448['length']===0x0)return;const _0x511af1=[],_0x31877b=[];let _0x1c958a=a['Tools'][_0x113bf9(0x1ee)](_0x2ad6bc[_0x113bf9(0xec)][0x0]),_0x40b82c=a[_0x113bf9(0x170)][_0x113bf9(0x1ee)](_0x2ad6bc[_0x113bf9(0xec)][0x0]);for(let _0x5d757a=_0x1de664[_0x113bf9(0x2d7)]-0x1;_0x5d757a>=0x0;_0x5d757a--){const _0x2f6da4={'id':_0x113bf9(0x11f),'params':{..._0x1de664[_0x5d757a]}},_0x41e297={'id':'doc.mutation.rich-text-editing','params':{..._0x592448[_0x5d757a]}},_0x5c7547=this[_0x113bf9(0x301)][_0x113bf9(0x147)](_0x1c958a,_0x2f6da4,!0x1),_0x3a5ebc=this[_0x113bf9(0x301)][_0x113bf9(0x147)](_0x40b82c,_0x41e297,!0x1);if(v['isTransformMutationFailure'](_0x5c7547))throw _0x5c7547['error'];if(v[_0x113bf9(0x2a2)](_0x3a5ebc))throw _0x3a5ebc['error'];_0x511af1[_0x113bf9(0x102)](_0x5c7547[_0x113bf9(0xe0)][_0x113bf9(0x19b)]),_0x31877b[_0x113bf9(0x102)](_0x3a5ebc[_0x113bf9(0xe0)][_0x113bf9(0x19b)]),_0x1c958a=_0x5c7547[_0x113bf9(0x1a1)],_0x40b82c=_0x3a5ebc[_0x113bf9(0x1a1)];}_0x1c7e21[_0x113bf9(0x1b4)]({'undoCache':_0x511af1,'redoCache':_0x31877b});}[_0x4aeb9a(0x2d9)](_0x27e001){const _0x3b1594=_0x4aeb9a,{unitID:_0x652080}=_0x27e001,_0x258d21=this[_0x3b1594(0x1c9)][_0x3b1594(0x18e)](_0x652080)['with'](T['DocIMEInputManagerService']),_0x355126=_0x258d21['getActiveRange']();if(_0x355126==null)return;const _0x8fd487=[{'id':_0x3b1594(0x11f),'params':{'unitId':_0x27e001['unitID'],'actions':null,'textRanges':[_0x355126]}}],_0x28a36d=this[_0x3b1594(0x301)][_0x3b1594(0xde)](_0x27e001,_0x8fd487);if(!v['isTransformMutationsWithChangesetSuccess'](_0x28a36d))throw _0x28a36d[_0x3b1594(0x1a0)];const _0xd8489c=_0x28a36d['m2Prime'][0x0][_0x3b1594(0x19b)]['textRanges'];Array[_0x3b1594(0x1a5)](_0xd8489c)&&_0xd8489c[_0x3b1594(0x2d7)]&&_0x258d21['setActiveRange'](_0xd8489c[0x0]);}};Z=kt([Le(0x0,v['ITransformService']),Le(0x1,C[_0x4aeb9a(0x24b)])],Z);var jt=Object[_0x4aeb9a(0x1b9)],Yt=(_0x101175,_0x5cca6d,_0x339afa,_0x29b2f3)=>{for(var _0x3ef546=_0x29b2f3>0x1?void 0x0:_0x29b2f3?jt(_0x5cca6d,_0x339afa):_0x5cca6d,_0x3492ec=_0x101175['length']-0x1,_0x3cfc98;_0x3492ec>=0x0;_0x3492ec--)(_0x3cfc98=_0x101175[_0x3492ec])&&(_0x3ef546=_0x3cfc98(_0x3ef546)||_0x3ef546);return _0x3ef546;},he=(_0x1e29f3,_0xf3d487)=>(_0x5e8aa,_0x274f9c)=>_0xf3d487(_0x5e8aa,_0x274f9c,_0x1e29f3);let Q=class{constructor(_0x299a53,_0x40ecde,_0x3c596c){const _0x50c9c5=_0x4aeb9a;this[_0x50c9c5(0x33b)]=_0x299a53,this[_0x50c9c5(0x301)]=_0x40ecde,this['_docStateChangeManagerService']=_0x3c596c;}[_0x4aeb9a(0x26a)](_0x1b7225){const _0x4a6f0d=_0x4aeb9a;this[_0x4a6f0d(0xba)](_0x1b7225);}[_0x4aeb9a(0x328)](_0x4242e8){const _0x4f891f=_0x4aeb9a,{unitID:_0x118881}=_0x4242e8,{collaboration:_0x5627f1}=this[_0x4f891f(0x1b0)][_0x4f891f(0x1c2)](_0x118881);if(_0x5627f1[_0x4f891f(0x2d7)]===0x0)return _0x4242e8;let _0x56a727=a['Tools'][_0x4f891f(0x1ee)](_0x4242e8['mutations'][0x0]);for(let _0x20cd17=0x0;_0x20cd17<_0x5627f1[_0x4f891f(0x2d7)];_0x20cd17++){const _0x320819={'id':_0x4f891f(0x11f),'params':{'unitId':_0x5627f1[_0x20cd17]['unitId'],..._0x5627f1[_0x20cd17][_0x4f891f(0x31d)]}},_0x135670=this['_transformService'][_0x4f891f(0x147)](_0x56a727,_0x320819,!0x1);if(v['isTransformMutationFailure'](_0x135670))throw _0x135670[_0x4f891f(0x1a0)];_0x56a727=_0x135670[_0x4f891f(0x1a1)];}return{...a[_0x4f891f(0x170)][_0x4f891f(0x1ee)](_0x4242e8),'mutations':[_0x56a727]};}[_0x4aeb9a(0xba)](_0x2da09b){const _0xeb9f06=_0x4aeb9a,{unitID:_0x482af5}=_0x2da09b,{history:_0x4dded7,collaboration:_0x275191}=this[_0xeb9f06(0x1b0)][_0xeb9f06(0x1c2)](_0x482af5);if(_0x4dded7[_0xeb9f06(0x2d7)]===0x0&&_0x275191[_0xeb9f06(0x2d7)]===0x0)return;const _0x1c4362=[],_0x34d447=[];let _0x3040fe=a['Tools'][_0xeb9f06(0x1ee)](_0x2da09b[_0xeb9f06(0xec)][0x0]),_0x3f5bde=a['Tools'][_0xeb9f06(0x1ee)](_0x2da09b[_0xeb9f06(0xec)][0x0]);for(let _0x14920d=_0x4dded7[_0xeb9f06(0x2d7)]-0x1;_0x14920d>=0x0;_0x14920d--){const _0x2700cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4dded7[_0x14920d]['unitId'],..._0x4dded7[_0x14920d]['undoState']}},_0x524908={'id':_0xeb9f06(0x11f),'params':{'unitId':_0x4dded7[_0x14920d]['unitId'],..._0x4dded7[_0x14920d][_0xeb9f06(0x31d)]}},_0xa81b0d=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3040fe,_0x2700cb,!0x1),_0x4c090c=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3f5bde,_0x524908,!0x1);if(v[_0xeb9f06(0x2a2)](_0xa81b0d))throw _0xa81b0d[_0xeb9f06(0x1a0)];if(v[_0xeb9f06(0x2a2)](_0x4c090c))throw _0x4c090c[_0xeb9f06(0x1a0)];_0x1c4362['unshift']({..._0x4dded7[_0x14920d],'undoState':_0xa81b0d[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)],'redoState':_0x4c090c[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)]}),_0x3040fe=_0xa81b0d[_0xeb9f06(0x1a1)],_0x3f5bde=_0x4c090c['m1Prime'];}_0x3040fe=a[_0xeb9f06(0x170)][_0xeb9f06(0x1ee)](_0x2da09b['mutations'][0x0]),_0x3f5bde=a[_0xeb9f06(0x170)][_0xeb9f06(0x1ee)](_0x2da09b['mutations'][0x0]);for(let _0x385567=_0x275191[_0xeb9f06(0x2d7)]-0x1;_0x385567>=0x0;_0x385567--){const _0xe43172={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x275191[_0x385567][_0xeb9f06(0x184)],..._0x275191[_0x385567][_0xeb9f06(0x276)]}},_0x5eb713={'id':_0xeb9f06(0x11f),'params':{'unitId':_0x275191[_0x385567]['unitId'],..._0x275191[_0x385567][_0xeb9f06(0x31d)]}},_0x43c054=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3040fe,_0xe43172,!0x1),_0x2e88ea=this[_0xeb9f06(0x301)][_0xeb9f06(0x147)](_0x3f5bde,_0x5eb713,!0x1);if(v['isTransformMutationFailure'](_0x43c054))throw _0x43c054[_0xeb9f06(0x1a0)];if(v['isTransformMutationFailure'](_0x2e88ea))throw _0x2e88ea[_0xeb9f06(0x1a0)];_0x34d447[_0xeb9f06(0x102)]({..._0x275191[_0x385567],'undoState':_0x43c054[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)],'redoState':_0x2e88ea[_0xeb9f06(0xe0)][_0xeb9f06(0x19b)]}),_0x3040fe=_0x43c054['m1Prime'],_0x3f5bde=_0x2e88ea[_0xeb9f06(0x1a1)];}this[_0xeb9f06(0x1b0)][_0xeb9f06(0x166)](_0x482af5,{'history':_0x1c4362,'collaboration':_0x34d447});}};Q=Yt([he(0x0,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),he(0x1,v['ITransformService']),he(0x2,a[_0x4aeb9a(0x18a)](T[_0x4aeb9a(0x187)]))],Q);var Ht=Object[_0x4aeb9a(0x1b9)],Wt=(_0x2cfd72,_0x37608f,_0x5c40dd,_0x3d9770)=>{const _0x2089af=_0x4aeb9a;for(var _0x442303=_0x3d9770>0x1?void 0x0:_0x3d9770?Ht(_0x37608f,_0x5c40dd):_0x37608f,_0x315ade=_0x2cfd72[_0x2089af(0x2d7)]-0x1,_0x4462b0;_0x315ade>=0x0;_0x315ade--)(_0x4462b0=_0x2cfd72[_0x315ade])&&(_0x442303=_0x4462b0(_0x442303)||_0x442303);return _0x442303;},Me=(_0x1669da,_0x5e01f0)=>(_0x3b14dd,_0x477e47)=>_0x5e01f0(_0x3b14dd,_0x477e47,_0x1669da);let ee=class{constructor(_0x36147b,_0x4f51dc){const _0x18d834=_0x4aeb9a;this[_0x18d834(0x33b)]=_0x36147b,this[_0x18d834(0x301)]=_0x4f51dc;}[_0x4aeb9a(0x326)](_0x92d859){const _0x48177c=_0x4aeb9a;var _0x5de3c0;const _0x357ecc=this[_0x48177c(0x33b)]['get'](W[_0x48177c(0x287)]),_0x8281dd=(_0x5de3c0=_0x357ecc[_0x48177c(0x145)]())!=null?_0x5de3c0:[];if(_0x8281dd[_0x48177c(0x2d7)]===0x0)return;const _0x976da0=_0x92d859['unitID'],_0x2846b1=[{'id':_0x48177c(0x11f),'params':{'unitId':_0x976da0,'actions':null,'textRanges':_0x8281dd}}],_0x2255bb=this['_transformService'][_0x48177c(0xde)](_0x92d859,_0x2846b1);if(!v[_0x48177c(0x23b)](_0x2255bb))throw _0x2255bb[_0x48177c(0x1a0)];const _0x578add=_0x2255bb[_0x48177c(0xe0)][0x0][_0x48177c(0x19b)][_0x48177c(0xda)];Array[_0x48177c(0x1a5)](_0x578add)&&_0x578add[_0x48177c(0x2d7)]&&_0x357ecc[_0x48177c(0x1fd)](_0x578add,{'unitId':_0x976da0,'subUnitId':_0x976da0},!0x1);}};ee=Wt([Me(0x0,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),Me(0x1,v[_0x4aeb9a(0x1aa)])],ee);var Vt=Object[_0x4aeb9a(0x1b9)],Gt=(_0x57d8da,_0x230d30,_0x1005bb,_0x2b9569)=>{const _0x2b3aab=_0x4aeb9a;for(var _0x19546b=_0x2b9569>0x1?void 0x0:_0x2b9569?Vt(_0x230d30,_0x1005bb):_0x230d30,_0x3d5b1d=_0x57d8da[_0x2b3aab(0x2d7)]-0x1,_0x3218e9;_0x3d5b1d>=0x0;_0x3d5b1d--)(_0x3218e9=_0x57d8da[_0x3d5b1d])&&(_0x19546b=_0x3218e9(_0x19546b)||_0x19546b);return _0x19546b;},N=(_0x4a17b2,_0x203933)=>(_0x52059a,_0x128532)=>_0x203933(_0x52059a,_0x128532,_0x4a17b2);let te=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x50232c,_0x48e162,_0x4fa02f,_0x21ae49,_0x10acf1,_0x176f2a,_0x3d8fdf,_0x110123){const _0x46632b=_0x4aeb9a;super(),_(this,_0x46632b(0x182),new I['BehaviorSubject'](u['CollaborationStatus'][_0x46632b(0x16c)])),(this[_0x46632b(0x1b0)]=_0x50232c,this[_0x46632b(0x1e2)]=_0x48e162,this[_0x46632b(0x1c7)]=_0x4fa02f,this[_0x46632b(0x205)]=_0x21ae49,this[_0x46632b(0x2d6)]=_0x10acf1,this[_0x46632b(0x2c2)]=_0x176f2a,this[_0x46632b(0x306)]=_0x3d8fdf,this['_localeService']=_0x110123,this[_0x46632b(0x307)]());}[_0x4aeb9a(0x307)](){const _0x66551f=_0x4aeb9a;this['disposeWithMe'](this[_0x66551f(0x1e2)][_0x66551f(0x1a3)][_0x66551f(0x302)](_0x4f64ef=>{const _0x54ef91=_0x66551f,_0x2a12e5=this[_0x54ef91(0x1b0)][_0x54ef91(0xb0)]['subscribe'](_0x782e60=>{const _0x293e57=_0x54ef91;if(_0x782e60==null)return;const {unitId:_0x54f3c4,redoState:_0x46311c,commandId:_0x20c083}=_0x782e60;if(_0x54f3c4!==_0x4f64ef['unitID'])return;const _0x41fd4e={'id':_0x20c083,'type':a[_0x293e57(0x313)][_0x293e57(0x217)],'params':{'unitId':_0x54f3c4,'actions':_0x46311c['actions'],'textRanges':null}};_0x4f64ef['onLocalMutation'](_0x41fd4e);});if(_0x4f64ef[_0x54ef91(0xc8)](_0x2a12e5),_0x4f64ef instanceof u[_0x54ef91(0x32f)]){const _0x2f03b0={'onTransformIME':_0xa9c303=>this[_0x54ef91(0x1c7)][_0x54ef91(0xea)](_0xa9c303),'onTransformState':_0x34d73e=>this[_0x54ef91(0x205)][_0x54ef91(0x26a)](_0x34d73e),'onTransformSelections':_0x97f47d=>this[_0x54ef91(0x2d6)]['transformSelections'](_0x97f47d),'onSyncEditingCollabCursor':_0x13203b=>this[_0x54ef91(0x2c2)]['syncEditingCollabCursor'](_0x13203b),'onTransformRemoteChangesetByIMECache':_0xdfc4ed=>this[_0x54ef91(0x1c7)][_0x54ef91(0x328)](_0xdfc4ed),'onTransformRemoteChangesetByStateCache':_0x129411=>this[_0x54ef91(0x205)][_0x54ef91(0x328)](_0x129411)};_0x4f64ef['addHandlerCallback'](_0x2f03b0);}}));}};te=Gt([N(0x0,a[_0x4aeb9a(0x18a)](T[_0x4aeb9a(0x187)])),N(0x1,a[_0x4aeb9a(0x18a)](u['CollaborationController'])),N(0x2,a[_0x4aeb9a(0x18a)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a['Inject'](ee)),N(0x5,a[_0x4aeb9a(0x18a)](Oe)),N(0x6,O[_0x4aeb9a(0x10f)]),N(0x7,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x220)]))],te);var V=(_0x2276b5=>(_0x2276b5[_0x2276b5[_0x4aeb9a(0xdb)]=0x0]=_0x4aeb9a(0xdb),_0x2276b5[_0x2276b5['OK']=0x1]='OK',_0x2276b5[_0x2276b5[_0x4aeb9a(0x151)]=0x2]=_0x4aeb9a(0x151),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2e8)]=0x3]=_0x4aeb9a(0x2e8),_0x2276b5[_0x2276b5[_0x4aeb9a(0x297)]=0x4]='NOT_FOUND',_0x2276b5[_0x2276b5['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x2276b5[_0x2276b5['ALREADY_EXISTS']=0x6]=_0x4aeb9a(0x1c4),_0x2276b5[_0x2276b5['INVALID_ARGUMENT']=0x7]=_0x4aeb9a(0x12c),_0x2276b5[_0x2276b5[_0x4aeb9a(0x283)]=0x8]='TOO_MANY_REQUESTS',_0x2276b5[_0x2276b5[_0x4aeb9a(0x2ef)]=0x9]=_0x4aeb9a(0x2ef),_0x2276b5[_0x2276b5[_0x4aeb9a(0x203)]=0xa]=_0x4aeb9a(0x203),_0x2276b5[_0x2276b5[_0x4aeb9a(0xe2)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2276b5[_0x2276b5[_0x4aeb9a(0x180)]=0xc]=_0x4aeb9a(0x180),_0x2276b5[_0x2276b5['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x4aeb9a(0xd6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2d4)]=0xe]=_0x4aeb9a(0x2d4),_0x2276b5[_0x2276b5[_0x4aeb9a(0xc7)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x2276b5[_0x2276b5[_0x4aeb9a(0x2c8)]=0x10]=_0x4aeb9a(0x2c8),_0x2276b5[_0x2276b5[_0x4aeb9a(0xc4)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2276b5[_0x2276b5['ERROR_AGAIN']=0x65]=_0x4aeb9a(0x1d6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x190)]=0xc9]=_0x4aeb9a(0x190),_0x2276b5[_0x2276b5['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x2276b5[_0x2276b5[_0x4aeb9a(0x254)]=0x1389]=_0x4aeb9a(0x254),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2ad)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2276b5[_0x2276b5[_0x4aeb9a(0xcb)]=0x1772]=_0x4aeb9a(0xcb),_0x2276b5[_0x2276b5[_0x4aeb9a(0xb5)]=0x1773]=_0x4aeb9a(0xb5),_0x2276b5[_0x2276b5[_0x4aeb9a(0xf4)]=0x1b59]='APPLY_REJECT',_0x2276b5[_0x2276b5[_0x4aeb9a(0x1de)]=0x1b5a]=_0x4aeb9a(0x1de),_0x2276b5[_0x2276b5['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2276b5[_0x2276b5['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4aeb9a(0x26c),_0x2276b5[_0x2276b5[_0x4aeb9a(0xaf)]=0x1b5d]='APPLY_DUPLICATED',_0x2276b5[_0x2276b5['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2276b5[_0x2276b5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4aeb9a(0x121),_0x2276b5[_0x2276b5[_0x4aeb9a(0x27a)]=0x232a]=_0x4aeb9a(0x27a),_0x2276b5[_0x2276b5[_0x4aeb9a(0x142)]=0x232b]=_0x4aeb9a(0x142),_0x2276b5[_0x2276b5[_0x4aeb9a(0x258)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2276b5[_0x2276b5[_0x4aeb9a(0x238)]=0x232d]=_0x4aeb9a(0x238),_0x2276b5[_0x2276b5[_0x4aeb9a(0x122)]=0x2711]=_0x4aeb9a(0x122),_0x2276b5[_0x2276b5[_0x4aeb9a(0x115)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2276b5[_0x2276b5[_0x4aeb9a(0x33f)]=0x2713]=_0x4aeb9a(0x33f),_0x2276b5[_0x2276b5[_0x4aeb9a(0x14c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2276b5[_0x2276b5[_0x4aeb9a(0x30d)]=0x271a]=_0x4aeb9a(0x30d),_0x2276b5[_0x2276b5['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4aeb9a(0x333),_0x2276b5[_0x2276b5['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x2276b5[_0x2276b5[_0x4aeb9a(0x144)]=0x271d]=_0x4aeb9a(0x144),_0x2276b5[_0x2276b5['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x4aeb9a(0x99),_0x2276b5[_0x2276b5[_0x4aeb9a(0x188)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x2276b5[_0x2276b5[_0x4aeb9a(0xe1)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x2276b5[_0x2276b5['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4aeb9a(0x1c0),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2e9)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2276b5[_0x2276b5['INVALID_INVITE_CODE']=0x2ee2]=_0x4aeb9a(0x230),_0x2276b5[_0x2276b5[_0x4aeb9a(0x123)]=0x2ee3]=_0x4aeb9a(0x123),_0x2276b5[_0x2276b5[_0x4aeb9a(0x298)]=0x2ee4]=_0x4aeb9a(0x298),_0x2276b5[_0x2276b5[_0x4aeb9a(0xb6)]=0x2ee5]=_0x4aeb9a(0xb6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x15a)]=0x32c9]=_0x4aeb9a(0x15a),_0x2276b5[_0x2276b5[_0x4aeb9a(0x1a4)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2276b5[_0x2276b5['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4aeb9a(0x137),_0x2276b5[_0x2276b5[_0x4aeb9a(0x208)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2276b5[_0x2276b5[_0x4aeb9a(0xe6)]=0x36b2]=_0x4aeb9a(0xe6),_0x2276b5[_0x2276b5[_0x4aeb9a(0x332)]=0x36b3]=_0x4aeb9a(0x332),_0x2276b5[_0x2276b5[_0x4aeb9a(0x18f)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2276b5[_0x2276b5[_0x4aeb9a(0x310)]=0x3715]=_0x4aeb9a(0x310),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2e5)]=0x3716]=_0x4aeb9a(0x2e5),_0x2276b5[_0x2276b5[_0x4aeb9a(0x125)]=0x3717]=_0x4aeb9a(0x125),_0x2276b5[_0x2276b5[_0x4aeb9a(0x222)]=0x37dd]=_0x4aeb9a(0x222),_0x2276b5[_0x2276b5[_0x4aeb9a(0x18b)]=0x3a99]=_0x4aeb9a(0x18b),_0x2276b5[_0x2276b5[_0x4aeb9a(0xd7)]=0x3a9a]=_0x4aeb9a(0xd7),_0x2276b5[_0x2276b5['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x4aeb9a(0x19a),_0x2276b5[_0x2276b5[_0x4aeb9a(0x2d0)]=0x3a9c]=_0x4aeb9a(0x2d0),_0x2276b5[_0x2276b5[_0x4aeb9a(0x345)]=0x3a9d]=_0x4aeb9a(0x345),_0x2276b5[_0x2276b5[_0x4aeb9a(0x1af)]=0x3a9e]=_0x4aeb9a(0x1af),_0x2276b5[_0x2276b5[_0x4aeb9a(0x28f)]=0x3a9f]=_0x4aeb9a(0x28f),_0x2276b5[_0x2276b5[_0x4aeb9a(0x1cc)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2276b5[_0x2276b5['UNRECOGNIZED']=-0x1]=_0x4aeb9a(0x1ac),_0x2276b5))(V||{});function Xt(_0x2fe327){const _0x4b8d96=_0x4aeb9a;var _0x540b9d,_0x6205cb;const _0x4cbda0=(_0x540b9d=_0x2fe327[_0x4b8d96(0x327)])==null?void 0x0:_0x540b9d[_0x4b8d96(0x320)],_0x29730c=((_0x6205cb=_0x2fe327[_0x4b8d96(0x327)])==null?void 0x0:_0x6205cb[_0x4b8d96(0x132)])||0x0;return _0x4cbda0===x['FormulaExecuteStageType']['START_CALCULATION']&&_0x29730c>0x0;}function Kt(_0x502dfe){const _0x133e3a=_0x4aeb9a;return _0x502dfe['functionsExecutedState']===x['FormulaExecutedStateType'][_0x133e3a(0x27f)];}var qt=Object['getOwnPropertyDescriptor'],zt=(_0x1ed6bd,_0x2fcfa7,_0x4e8a81,_0x305bfa)=>{const _0x4157e3=_0x4aeb9a;for(var _0x3f416e=_0x305bfa>0x1?void 0x0:_0x305bfa?qt(_0x2fcfa7,_0x4e8a81):_0x2fcfa7,_0x459eec=_0x1ed6bd[_0x4157e3(0x2d7)]-0x1,_0x26276c;_0x459eec>=0x0;_0x459eec--)(_0x26276c=_0x1ed6bd[_0x459eec])&&(_0x3f416e=_0x26276c(_0x3f416e)||_0x3f416e);return _0x3f416e;},L=(_0x51aa19,_0x37476f)=>(_0x9fd3fb,_0x3fee07)=>_0x37476f(_0x9fd3fb,_0x3fee07,_0x51aa19);const Jt='/universer-api/license/formula/limit/status',Zt=_0x4aeb9a(0xc3),Qt=_0x4aeb9a(0x96);let se=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0xee88a4,_0x42cb33,_0x14bb6e,_0x4eaa15,_0x1322ba,_0x2b4b1b,_0x3121e3){const _0x32dd18=_0x4aeb9a;super(),_(this,'_pollingInterval',null),_(this,_0x32dd18(0x126),0x0),_(this,_0x32dd18(0x23a),0x0),_(this,_0x32dd18(0x237),[]),_(this,_0x32dd18(0x1a7),0x0),(this[_0x32dd18(0x306)]=_0xee88a4,this[_0x32dd18(0x28c)]=_0x42cb33,this['_configService']=_0x14bb6e,this['_httpService']=_0x4eaa15,this['_univerInstanceService']=_0x1322ba,this[_0x32dd18(0x146)]=_0x2b4b1b,this[_0x32dd18(0xfb)]=_0x3121e3,this[_0x32dd18(0x9c)]());}[_0x4aeb9a(0x9c)](){const _0x4ad9e3=_0x4aeb9a;this[_0x4ad9e3(0xc8)](this[_0x4ad9e3(0x28c)][_0x4ad9e3(0xc5)]((_0x2bc0c8,_0x471533)=>{const _0x541834=_0x4ad9e3;var _0x19c551;if(_0x2bc0c8['id']!==x[_0x541834(0x335)]['id'])return;const _0x148867=_0x2bc0c8[_0x541834(0x19b)];if(!this['_hasFormulaInDirtyRanges']((_0x19c551=_0x148867['dirtyRanges'])!=null?_0x19c551:[]))return;if(!this[_0x541834(0x290)]())throw this[_0x541834(0xe8)](_0x2bc0c8,_0x471533),this[_0x541834(0x105)](),new a[(_0x541834(0x309))]();})),this[_0x4ad9e3(0xc8)](this[_0x4ad9e3(0x28c)]['onCommandExecuted']((_0x2e37a5,_0xb2e2df)=>{const _0x3ee179=_0x4ad9e3;if(_0x2e37a5['id']!==x['SetFormulaCalculationNotificationMutation']['id'])return;const _0x3e50fb=_0x2e37a5[_0x3ee179(0x19b)];if(Xt(_0x3e50fb)){const _0x22bf29=a[_0x3ee179(0x2b2)]();this[_0x3ee179(0x237)][_0x3ee179(0x9b)](_0x22bf29),this[_0x3ee179(0x16f)](_0x22bf29);}else{if(Kt(_0x3e50fb)&&this[_0x3ee179(0x237)][_0x3ee179(0x2d7)]>0x0){const _0xa549d9=this['_taskIds'][_0x3ee179(0x130)]();this[_0x3ee179(0x26f)](_0xa549d9);}}}));}[_0x4aeb9a(0x341)](){const _0x5730ad=_0x4aeb9a;super[_0x5730ad(0x341)](),this[_0x5730ad(0x168)](),this[_0x5730ad(0x237)]=[],this['_currentUsage']=0x0,this[_0x5730ad(0x126)]=0x0,this[_0x5730ad(0x1a7)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x31c420,_0x3cb87d){const _0x44221c=_0x4aeb9a;for(let _0x398c81=0x0;_0x398c81<0x1e;_0x398c81++)try{if(await this[_0x44221c(0x17c)](),this[_0x44221c(0x290)]()){this[_0x44221c(0x213)](_0x31c420,_0x3cb87d),this[_0x44221c(0x306)]['show']({'content':this['_localeService']['t'](_0x44221c(0x27c)),'type':p[_0x44221c(0x265)]['Success']});return;}await new Promise(_0x3df192=>{const _0x5ddf44=_0x44221c;this[_0x5ddf44(0xdd)]=window[_0x5ddf44(0x2a1)](_0x3df192,0x3e8);});}catch(_0x1db362){this['_logService']['error'](_0x1db362);}this[_0x44221c(0x306)][_0x44221c(0x2fd)]({'content':this[_0x44221c(0xfb)]['t']('formula.calculation.unable'),'type':p['MessageType'][_0x44221c(0x280)]});}['_applyCommand'](_0x2aa59a,_0xb658d0){const _0x39e1be=_0x4aeb9a;try{this[_0x39e1be(0x28c)][_0x39e1be(0xf7)](_0x2aa59a['id'],_0x2aa59a[_0x39e1be(0x19b)],_0xb658d0);}catch(_0x5bf994){this['_logService']['error'](_0x5bf994);}}['_setFormulaLimitStatus'](_0x56482d,_0x15c37e){const _0x13b3f8=_0x4aeb9a;_0x15c37e<this['_lastResponseTimestamp']||(this[_0x13b3f8(0x1a7)]=_0x15c37e,this['_maxFormulaLimit']=Number[_0x13b3f8(0x11e)](_0x56482d[_0x13b3f8(0x183)]),this[_0x13b3f8(0x23a)]=Number[_0x13b3f8(0x11e)](_0x56482d[_0x13b3f8(0x1dc)]));}async[_0x4aeb9a(0x16f)](_0x90d12b){const _0x5345ff=_0x4aeb9a;var _0x3807b7,_0x5bf237;const _0x310944=Date[_0x5345ff(0x2cc)]();try{const _0x3c7178=((_0x3807b7=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3807b7[_0x5345ff(0x1be)])||Zt,_0x6ae37e=(await this['_httpService'][_0x5345ff(0xf0)](_0x3c7178,{'body':JSON['stringify']({'taskId':_0x90d12b})}))[_0x5345ff(0x30b)];if(((_0x5bf237=_0x6ae37e[_0x5345ff(0x1a0)])==null?void 0x0:_0x5bf237[_0x5345ff(0x17d)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x6ae37e[_0x5345ff(0x13d)],_0x310944);}catch(_0x1e68a0){this[_0x5345ff(0x146)][_0x5345ff(0x1a0)](_0x1e68a0);}}async['_getFormulaLimitStatus'](_0x427d49){const _0x27c5d7=_0x4aeb9a;var _0x4a50d3,_0xaf874d;const _0x15262b=Date[_0x27c5d7(0x2cc)]();try{const _0x5a62b6=((_0x4a50d3=this['_configService']['getConfig'](u[_0x27c5d7(0x159)]))==null?void 0x0:_0x4a50d3[_0x27c5d7(0x179)])||Jt,_0x26fd8c=_0x427d49?_0x5a62b6+_0x27c5d7(0x112)+encodeURIComponent(_0x427d49):_0x5a62b6,_0x4dca21=(await this[_0x27c5d7(0x2dd)][_0x27c5d7(0x25d)](_0x26fd8c))[_0x27c5d7(0x30b)];if(((_0xaf874d=_0x4dca21[_0x27c5d7(0x1a0)])==null?void 0x0:_0xaf874d['code'])!==V['OK'])return;this[_0x27c5d7(0x2bf)](_0x4dca21['limitInfo'],_0x15262b);}catch(_0x3d0e40){this['_logService'][_0x27c5d7(0x1a0)](_0x3d0e40);}}async[_0x4aeb9a(0x26f)](_0x341821){const _0x3c4699=_0x4aeb9a;var _0x3ab2ed,_0xf2ffbb;const _0x10ef5c=Date[_0x3c4699(0x2cc)]();try{const _0x234aa9=((_0x3ab2ed=this[_0x3c4699(0x32d)][_0x3c4699(0x2e1)](u[_0x3c4699(0x159)]))==null?void 0x0:_0x3ab2ed['releaseFormulaLimitUrl'])||Qt,_0x28d231=(await this[_0x3c4699(0x2dd)][_0x3c4699(0xf0)](_0x234aa9,{'body':JSON[_0x3c4699(0x2fe)]({'taskId':_0x341821})}))[_0x3c4699(0x30b)];if(((_0xf2ffbb=_0x28d231[_0x3c4699(0x1a0)])==null?void 0x0:_0xf2ffbb['code'])!==V['OK'])return;this[_0x3c4699(0x2bf)](_0x28d231[_0x3c4699(0x13d)],_0x10ef5c);}catch(_0x2ed9da){this[_0x3c4699(0x146)][_0x3c4699(0x1a0)](_0x2ed9da);}}[_0x4aeb9a(0x290)](){const _0x5caf41=_0x4aeb9a;return this[_0x5caf41(0x126)]===0x0?!0x0:this[_0x5caf41(0x126)]-this[_0x5caf41(0x23a)]>0x0;}[_0x4aeb9a(0x168)](){const _0x588974=_0x4aeb9a;this['_pollingInterval']&&(clearTimeout(this[_0x588974(0xdd)]),this['_pollingInterval']=null);}[_0x4aeb9a(0x105)](){const _0x360527=_0x4aeb9a;this[_0x360527(0x306)]['show']({'content':this[_0x360527(0xfb)]['t'](_0x360527(0x2c1)),'type':p[_0x360527(0x265)]['Loading']});}[_0x4aeb9a(0x255)](_0x13314e){const _0x4766ea=_0x4aeb9a;for(const _0x2e9488 of _0x13314e){const {unitId:_0x235a04,sheetId:_0x571967,range:_0x562912}=_0x2e9488,_0x10d273=this[_0x4766ea(0x2da)][_0x4766ea(0xab)](_0x235a04);if(!_0x10d273)continue;const _0x5ea2c3=_0x10d273['getSheetBySheetId'](_0x571967);if(!_0x5ea2c3)continue;const _0x3c9679=_0x5ea2c3['getCellMatrix']();for(let _0x4443b3=_0x562912[_0x4766ea(0x111)];_0x4443b3<=_0x562912[_0x4766ea(0x31f)];_0x4443b3++)for(let _0x143004=_0x562912[_0x4766ea(0x1e3)];_0x143004<=_0x562912[_0x4766ea(0x312)];_0x143004++){const _0x2b059e=_0x3c9679['getValue'](_0x4443b3,_0x143004);if(_0x2b059e&&(a['isFormulaString'](_0x2b059e['f'])||a['isFormulaId'](_0x2b059e['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a['Inject'](O['IMessageService'])),L(0x1,a[_0x4aeb9a(0x1f7)]),L(0x2,a[_0x4aeb9a(0x14d)]),L(0x3,a[_0x4aeb9a(0x18a)](G['HTTPService'])),L(0x4,a[_0x4aeb9a(0x2bb)]),L(0x5,a[_0x4aeb9a(0x14e)]),L(0x6,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x220)]))],se);var es=Object[_0x4aeb9a(0x1b9)],ts=(_0x7d29ef,_0x46257c,_0x5a01c0,_0x3d7188)=>{const _0x10a772=_0x4aeb9a;for(var _0x3095ec=_0x3d7188>0x1?void 0x0:_0x3d7188?es(_0x46257c,_0x5a01c0):_0x46257c,_0x11f6b2=_0x7d29ef[_0x10a772(0x2d7)]-0x1,_0x2f309e;_0x11f6b2>=0x0;_0x11f6b2--)(_0x2f309e=_0x7d29ef[_0x11f6b2])&&(_0x3095ec=_0x2f309e(_0x3095ec)||_0x3095ec);return _0x3095ec;},ue=(_0x496174,_0x4fd6a1)=>(_0x5d43d8,_0x20fda7)=>_0x4fd6a1(_0x5d43d8,_0x20fda7,_0x496174);let Ee=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x2b13d9,_0x1f7966,_0x29608b){const _0x42a135=_0x4aeb9a;super(),_(this,_0x42a135(0x272),new Map()),_(this,_0x42a135(0x150),new Map()),_(this,_0x42a135(0x278),!0x1),(this[_0x42a135(0x32d)]=_0x2b13d9,this['_localStorageService']=_0x1f7966,this[_0x42a135(0x1e1)]=_0x29608b);}['disableLocalCache'](){const _0x1f4994=_0x4aeb9a;this[_0x1f4994(0x278)]=!0x0;}['enableLocalCache'](){const _0x5e9f33=_0x4aeb9a;this[_0x5e9f33(0x278)]=!0x1;}get[_0x4aeb9a(0x2a3)](){const _0x3985bc=_0x4aeb9a;return this[_0x3985bc(0x150)];}[_0x4aeb9a(0x341)](){const _0xb5f94=_0x4aeb9a;this['exhaustSavingTask']()[_0xb5f94(0x25e)](()=>super[_0xb5f94(0x341)]());}async['loadOfflineData'](_0x145757){const _0x157877=_0x4aeb9a;return this[_0x157877(0x278)]?null:this[_0x157877(0x2ed)][_0x157877(0x156)](u[_0x157877(0x1f3)](_0x145757));}async[_0x4aeb9a(0x315)](_0xa9d7e8,_0x47f134){return!!this['_localStorageService']['setItem'](_0xa9d7e8,_0x47f134);}[_0x4aeb9a(0x274)](_0xba991b,_0x2e438e,_0x416599,_0x1ab1f8){const _0x166012=_0x4aeb9a,_0x67db58=this[_0x166012(0x1e1)][_0x166012(0x303)](_0xba991b);this[_0x166012(0x272)][_0x166012(0x20f)](_0xba991b,{'unitID':_0xba991b,'type':_0x2e438e,'awaitingChangeset':_0x416599,'mutations':_0x1ab1f8,'rev':_0x67db58}),this['_saveTaskMap']['has'](_0xba991b)||this[_0x166012(0x1bb)](_0xba991b);}[_0x4aeb9a(0x1bb)](_0x526e12){const _0x437a9d=_0x4aeb9a,_0x468791=this[_0x437a9d(0x15f)]();_0x468791===0x0?this['_saveCache'](_0x526e12):this['_saveTaskMap'][_0x437a9d(0x20f)](_0x526e12,setTimeout(()=>this[_0x437a9d(0x2f9)](_0x526e12),_0x468791));}[_0x4aeb9a(0x15f)](){const _0x3f6e33=_0x4aeb9a;var _0x3f52e5;return(_0x3f52e5=this[_0x3f6e33(0x32d)][_0x3f6e33(0x2e1)](u[_0x3f6e33(0x2de)]))!=null?_0x3f52e5:u['LOCAL_CACHE_INTERVAL'];}[_0x4aeb9a(0x2f9)](_0x533859){const _0x2b7ed4=_0x4aeb9a,_0x27693e=this[_0x2b7ed4(0x150)][_0x2b7ed4(0x25d)](_0x533859);return _0x27693e!==void 0x0&&window['clearTimeout'](_0x27693e),this[_0x2b7ed4(0x2ed)][_0x2b7ed4(0x22b)](u[_0x2b7ed4(0x1f3)](_0x533859),this[_0x2b7ed4(0x272)]['get'](_0x533859))[_0x2b7ed4(0x25e)](()=>this[_0x2b7ed4(0x150)][_0x2b7ed4(0x1db)](_0x533859));}async[_0x4aeb9a(0xf2)](){const _0x49232e=_0x4aeb9a,_0x155df6=[];this[_0x49232e(0x150)][_0x49232e(0x270)]((_0x4f8478,_0x3ed6e2)=>{const _0x6bd113=_0x49232e;window['clearTimeout'](_0x4f8478),_0x155df6[_0x6bd113(0x9b)](this['_saveCache'](_0x3ed6e2)[_0x6bd113(0x25e)](()=>{const _0x4d2d96=_0x6bd113;this[_0x4d2d96(0x150)][_0x4d2d96(0x1db)](_0x3ed6e2);}));}),await Promise['all'](_0x155df6);}};Ee=ts([ue(0x0,a[_0x4aeb9a(0x14d)]),ue(0x1,a[_0x4aeb9a(0x9d)]),ue(0x2,a[_0x4aeb9a(0x18a)](v[_0x4aeb9a(0x243)]))],Ee);class Fe extends a[_0x4aeb9a(0x12b)]{constructor(){const _0x4775f4=_0x4aeb9a;super(),_(this,_0x4775f4(0x299)),this[_0x4775f4(0x299)]=I['fromEvent'](window,_0x4775f4(0x21e))[_0x4775f4(0x2b1)](I[_0x4775f4(0x1b6)](this[_0x4775f4(0x19d)]),I[_0x4775f4(0xb1)](0x1),I['mapTo'](void 0x0));}[_0x4aeb9a(0x2b7)](_0x194c69,_0x5a4627,_0x3366be=!0x1){const _0x515b87=_0x4aeb9a,_0x5fd59a=new URL(window['location'][_0x515b87(0x2e3)]);_0x5fd59a[_0x515b87(0x113)][_0x515b87(0x20f)](_0x194c69,_0x5a4627),_0x3366be?window[_0x515b87(0x16d)][_0x515b87(0x338)]('','',_0x5fd59a[_0x515b87(0xa8)]()):window['history'][_0x515b87(0xf5)]('','',_0x5fd59a[_0x515b87(0xa8)]());}[_0x4aeb9a(0x21d)](_0x2109d4,_0x1b1058=!0x1){const _0x1ddd44=_0x4aeb9a,_0x3ca123=new URL(window[_0x1ddd44(0x192)][_0x1ddd44(0x2e3)]);_0x3ca123[_0x1ddd44(0x113)][_0x1ddd44(0x1db)](_0x2109d4),_0x1b1058?window['history'][_0x1ddd44(0x338)]('','',_0x3ca123[_0x1ddd44(0xa8)]()):window[_0x1ddd44(0x16d)][_0x1ddd44(0xf5)]('','',_0x3ca123[_0x1ddd44(0xa8)]());}['getParam'](_0x473a8c){const _0x162ec9=_0x4aeb9a;var _0x1b1471;return(_0x1b1471=new URL(window[_0x162ec9(0x192)][_0x162ec9(0x2e3)])[_0x162ec9(0x113)][_0x162ec9(0x25d)](_0x473a8c))!=null?_0x1b1471:void 0x0;}}var ss=Object[_0x4aeb9a(0x2a7)],is=Object['getOwnPropertyDescriptor'],ns=(_0x56db19,_0x19701b,_0x350e9e)=>_0x19701b in _0x56db19?ss(_0x56db19,_0x19701b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x350e9e}):_0x56db19[_0x19701b]=_0x350e9e,rs=(_0x272182,_0x2caeb4,_0x861745,_0x46832f)=>{const _0x7a29cf=_0x4aeb9a;for(var _0x53e44d=_0x46832f>0x1?void 0x0:_0x46832f?is(_0x2caeb4,_0x861745):_0x2caeb4,_0x136c35=_0x272182[_0x7a29cf(0x2d7)]-0x1,_0xce0c64;_0x136c35>=0x0;_0x136c35--)(_0xce0c64=_0x272182[_0x136c35])&&(_0x53e44d=_0xce0c64(_0x53e44d)||_0x53e44d);return _0x53e44d;},Ie=(_0x1ecb0c,_0x135134)=>(_0x2ffd96,_0x1dcfc1)=>_0x135134(_0x2ffd96,_0x1dcfc1,_0x1ecb0c),os=(_0x208f84,_0x3a72da,_0x3966e8)=>ns(_0x208f84,_0x3a72da+'',_0x3966e8);const as=_0x4aeb9a(0x212);exports[_0x4aeb9a(0x2a6)]=class extends a[_0x4aeb9a(0x1d2)]{constructor(_0x351e27=Ue,_0x463628,_0x50bec5,_0x2546ad){const _0x3aca64=_0x4aeb9a;super(),this['_config']=_0x351e27,this[_0x3aca64(0x1c9)]=_0x463628,this[_0x3aca64(0x33b)]=_0x50bec5,this[_0x3aca64(0x32d)]=_0x2546ad;const {..._0x5a7dbf}=a[_0x3aca64(0xaa)]({},Ue,this[_0x3aca64(0x1e5)]);this[_0x3aca64(0x32d)][_0x3aca64(0x107)](Bt,_0x5a7dbf);}[_0x4aeb9a(0x153)](){const _0x3666b0=_0x4aeb9a;this['_registerDependencies'](),this[_0x3666b0(0x226)]();}[_0x4aeb9a(0x1d8)](){const _0x5bd8d0=_0x4aeb9a;this[_0x5bd8d0(0xd1)]();}[_0x4aeb9a(0x1e4)](){const _0x5a8801=_0x4aeb9a;var _0x5b046a;const _0x385f21=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G[_0x5a8801(0x2f5)],{'useClass':G[_0x5a8801(0x236)]}],[u[_0x5a8801(0xbc)],{'useClass':Ee}],[exports[_0x5a8801(0x24c)]],[te],[J],[B],[de],[exports[_0x5a8801(0x245)]]];a[_0x5a8801(0xcc)](this[_0x5a8801(0x33b)],a[_0x5a8801(0x11a)](_0x385f21,(_0x5b046a=this[_0x5a8801(0x1e5)])==null?void 0x0:_0x5b046a[_0x5a8801(0x330)]));}['_registerRenderDependencies'](){const _0x15f087=_0x4aeb9a;this['disposeWithMe'](this[_0x15f087(0x1c9)][_0x15f087(0x28e)](a[_0x15f087(0x1ae)][_0x15f087(0x2be)],[ge])),this[_0x15f087(0xc8)](this[_0x15f087(0x1c9)][_0x15f087(0x28e)](a[_0x15f087(0x1ae)][_0x15f087(0x2ae)],[ve]));}['_initDependencies'](){const _0x8af531=_0x4aeb9a;a['touchDependencies'](this[_0x8af531(0x33b)],[[B],[exports[_0x8af531(0x24c)]],[te],[J],[exports[_0x8af531(0x245)]],[se]]);}},os(exports[_0x4aeb9a(0x2a6)],_0x4aeb9a(0x1a8),as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x4aeb9a(0x19c)](u[_0x4aeb9a(0x143)]),Ie(0x1,C[_0x4aeb9a(0x24b)]),Ie(0x2,a['Inject'](a['Injector'])),Ie(0x3,a[_0x4aeb9a(0x14d)])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x4aeb9a(0x1b9)],ls=(_0x46d29a,_0x57ec71,_0x1be324,_0x39af04)=>{const _0x1109af=_0x4aeb9a;for(var _0x526446=_0x39af04>0x1?void 0x0:_0x39af04?cs(_0x57ec71,_0x1be324):_0x57ec71,_0x2c47ca=_0x46d29a[_0x1109af(0x2d7)]-0x1,_0x4fe3ba;_0x2c47ca>=0x0;_0x2c47ca--)(_0x4fe3ba=_0x46d29a[_0x2c47ca])&&(_0x526446=_0x4fe3ba(_0x526446)||_0x526446);return _0x526446;},H=(_0x1f01ae,_0x5e0f06)=>(_0x37c543,_0x439ae4)=>_0x5e0f06(_0x37c543,_0x439ae4,_0x1f01ae);exports[_0x4aeb9a(0x291)]=class extends u[_0x4aeb9a(0xef)]{constructor(_0x57f14a,_0x8f44c,_0x183a24,_0x3fec23,_0x2a8992){super(_0x57f14a,_0x8f44c,_0x183a24,_0x3fec23,_0x2a8992);}async[_0x4aeb9a(0x9f)](_0x319680){const _0x85ec14=_0x4aeb9a,_0x45446d=await this[_0x85ec14(0x235)](),_0x3aeec9=this[_0x85ec14(0x209)](_0x319680,_0x45446d);return this[_0x85ec14(0x15d)](_0x3aeec9);}[_0x4aeb9a(0x209)](_0x7b97fd,_0x3d1047){const _0xc0cf9d=_0x4aeb9a,_0x4cc359=typeof window>'u'?new URL(_0x7b97fd):new URL(_0x7b97fd,window[_0xc0cf9d(0x192)][_0xc0cf9d(0x229)]);_0x4cc359['searchParams'][_0xc0cf9d(0x20f)](_0xc0cf9d(0x2ba),_0x3d1047);const _0x25290b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xc0cf9d(0x192)][_0xc0cf9d(0x221)]);return _0x25290b[_0xc0cf9d(0x25d)](_0xc0cf9d(0x1f1))&&_0x4cc359['searchParams']['set'](_0xc0cf9d(0x1f1),_0x25290b[_0xc0cf9d(0x25d)](_0xc0cf9d(0x1f1))),_0x4cc359[_0xc0cf9d(0xa8)]();}async[_0x4aeb9a(0x235)](){const _0x4da837=_0x4aeb9a;var _0x45bff2,_0x1c87df,_0x552344;const _0x2b63eb=this[_0x4da837(0x32d)][_0x4da837(0x2e1)](u[_0x4da837(0x159)]),_0x5b95d3=(_0x45bff2=_0x2b63eb==null?void 0x0:_0x2b63eb['wsSessionTicketUrl'])!=null?_0x45bff2:u[_0x4da837(0x25b)];return(_0x552344=(_0x1c87df=(await this[_0x4da837(0x2dd)][_0x4da837(0x25d)](_0x5b95d3,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x1c87df[_0x4da837(0x1ad)])!=null?_0x552344:'';}},exports['BrowserCollaborationSocketService']=ls([H(0x0,a[_0x4aeb9a(0x18a)](a[_0x4aeb9a(0x95)])),H(0x1,a[_0x4aeb9a(0x18a)](G[_0x4aeb9a(0x279)])),H(0x2,a[_0x4aeb9a(0x14d)]),H(0x3,a[_0x4aeb9a(0x14e)]),H(0x4,v[_0x4aeb9a(0x117)])],exports['BrowserCollaborationSocketService']);var _s=Object['getOwnPropertyDescriptor'],hs=(_0xc4563e,_0x3c4b9,_0x1b4298,_0x19f89e)=>{const _0x1e7fc4=_0x4aeb9a;for(var _0x285950=_0x19f89e>0x1?void 0x0:_0x19f89e?_s(_0x3c4b9,_0x1b4298):_0x3c4b9,_0x3df7b2=_0xc4563e[_0x1e7fc4(0x2d7)]-0x1,_0x533375;_0x3df7b2>=0x0;_0x3df7b2--)(_0x533375=_0xc4563e[_0x3df7b2])&&(_0x285950=_0x533375(_0x285950)||_0x285950);return _0x285950;},Se=(_0x14da9e,_0x552563)=>(_0x2cec88,_0x4429d4)=>_0x552563(_0x2cec88,_0x4429d4,_0x14da9e);exports['RemoteUniscriptService']=class extends a[_0x4aeb9a(0x2c4)]{constructor(_0x29fe55,_0x18cf55,_0x271edc){const _0x2caabd=_0x4aeb9a;super(),this['_instanceService']=_0x29fe55,this[_0x2caabd(0x2dd)]=_0x18cf55,this[_0x2caabd(0x32d)]=_0x271edc;}async[_0x4aeb9a(0xf6)](_0x31536a,_0x58edd1,_0xf05d89,..._0x22209c){const _0x15c4cd=_0x4aeb9a;var _0x22c865,_0x4b2533,_0x4c8777,_0x46993b;const _0x2539e5=this['_instanceService'][_0x15c4cd(0x2b9)]();if(!_0x2539e5)throw new Error(_0x15c4cd(0xb4));const _0x5703e0=((_0x22c865=this[_0x15c4cd(0x32d)]['getConfig'](u[_0x15c4cd(0x244)]))!=null?_0x22c865:u[_0x15c4cd(0x140)])+'/'+_0x31536a+_0x15c4cd(0xc0)+_0x58edd1,_0x4753e7=new URL(window['location'][_0x15c4cd(0x2e3)]),_0x485a35={'scriptId':_0x31536a,'runId':(_0x4b2533=_0x4753e7[_0x15c4cd(0x113)][_0x15c4cd(0x25d)](_0x15c4cd(0x1f1)))!=null?_0x4b2533:'','function':_0x58edd1,'unitId':_0x2539e5[_0x15c4cd(0x2f0)](),'argsOfFunction':JSON[_0x15c4cd(0x2fe)](_0x22209c),'invokeId':(_0x4c8777=_0xf05d89[_0x15c4cd(0x14f)])!=null?_0x4c8777:'','executionId':(_0x46993b=_0xf05d89[_0x15c4cd(0xe4)])!=null?_0x46993b:''};try{const _0x347078=await this[_0x15c4cd(0x2dd)][_0x15c4cd(0xf0)](_0x5703e0,{'body':_0x485a35});return _0x347078[_0x15c4cd(0x30b)][_0x15c4cd(0x1a0)]&&_0x347078[_0x15c4cd(0x30b)][_0x15c4cd(0x1a0)][_0x15c4cd(0x17d)]!==V['OK']?'Failed':_0x347078[_0x15c4cd(0x30b)][_0x15c4cd(0x201)];}catch{return'Failed';}}},exports[_0x4aeb9a(0x29e)]=hs([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0x4aeb9a(0x18a)](G['HTTPService'])),Se(0x2,a['IConfigService'])],exports[_0x4aeb9a(0x29e)]);const Ae=0x7530,Pe=_0x4aeb9a(0x1d1);class us extends a[_0x4aeb9a(0x2c4)]{constructor(){const _0x2b46b4=_0x4aeb9a;super(),_(this,'_id',a[_0x2b46b4(0x2b2)]()),_(this,_0x2b46b4(0x169),new Set()),_(this,_0x2b46b4(0x233),new Map()),_(this,_0x2b46b4(0x29b),null),_(this,_0x2b46b4(0x1d3),new Map()),_(this,_0x2b46b4(0x334),new Map()),this[_0x2b46b4(0xe5)]();}['dispose'](){const _0x2b29f2=_0x4aeb9a;super[_0x2b29f2(0x341)](),this[_0x2b29f2(0x1d3)][_0x2b29f2(0x270)]((_0x2ece9f,_0x5c74cb)=>this['_removeClearOtherTimer'](_0x5c74cb)),this[_0x2b29f2(0x29b)]&&window[_0x2b29f2(0x18c)](this['_heartbeatTimer']);}[_0x4aeb9a(0x323)](_0x327d41){const _0x3e6bb0=_0x4aeb9a;return this[_0x3e6bb0(0x98)](_0x327d41)[_0x3e6bb0(0x2b1)](I[_0x3e6bb0(0x185)]());}['editingUnit'](_0xb750ee){const _0x354ee6=_0x4aeb9a;this[_0x354ee6(0x169)][_0x354ee6(0x2a5)]===0x0&&this[_0x354ee6(0x1fb)](),this[_0x354ee6(0x169)][_0x354ee6(0x149)](_0xb750ee),this[_0x354ee6(0xfd)]({'type':0x0,'memberID':this[_0x354ee6(0x127)],'unitIDs':[_0xb750ee],'isForwarded':!0x1});}[_0x4aeb9a(0xac)](_0x5b1eba){const _0x47a41e=_0x4aeb9a;this[_0x47a41e(0x169)][_0x47a41e(0x1db)](_0x5b1eba),this['_selfUnitIDs'][_0x47a41e(0x2a5)]===0x0&&this[_0x47a41e(0x29b)]&&window[_0x47a41e(0x18c)](this['_heartbeatTimer']);}[_0x4aeb9a(0xe5)](){const _0x42d333=_0x4aeb9a;this['disposeWithMe'](a[_0x42d333(0x204)](I[_0x42d333(0x285)](window,'storage')[_0x42d333(0x302)](_0x1fa6ef=>{const _0x5b3a0f=_0x42d333;if(_0x1fa6ef[_0x5b3a0f(0xed)]!==Pe||!_0x1fa6ef[_0x5b3a0f(0x32c)])return;const _0x578b69=JSON[_0x5b3a0f(0x13b)](_0x1fa6ef[_0x5b3a0f(0x32c)]);this['_handleEvent'](_0x578b69);}))),window[_0x42d333(0x247)]('unload',()=>this[_0x42d333(0xfd)]({'type':0x1,'memberID':this[_0x42d333(0x127)],'unitIDs':Array[_0x42d333(0x19f)](this[_0x42d333(0x169)])}));}[_0x4aeb9a(0x26b)](_0xd94757){const _0x20566f=_0x4aeb9a;switch(_0xd94757[_0x20566f(0x1e9)]){case 0x0:this[_0x20566f(0x12e)](_0xd94757);break;case 0x1:this[_0x20566f(0x22d)](_0xd94757);break;case 0x2:this['_handleHeartbeatEvent'](_0xd94757);break;}}[_0x4aeb9a(0x12e)](_0x4d6eb2){const _0x3d3131=_0x4aeb9a,{unitIDs:_0x4330e7,memberID:_0x361d5e,isForwarded:_0x1fcc95}=_0x4d6eb2;_0x4330e7['forEach'](_0x4244db=>{const _0x437ee3=_0x12f6;if(!_0x1fcc95&&this[_0x437ee3(0x233)][_0x437ee3(0x2f3)](_0x4244db)&&this[_0x437ee3(0x98)](_0x4244db)[_0x437ee3(0x207)](u[_0x437ee3(0x1f4)][_0x437ee3(0x324)]),!this[_0x437ee3(0x233)][_0x437ee3(0x2f3)](_0x4244db)||!this[_0x437ee3(0x233)][_0x437ee3(0x25d)](_0x4244db)[_0x437ee3(0x2f3)](_0x361d5e)){const _0x4025bf=this[_0x437ee3(0x233)][_0x437ee3(0x25d)](_0x4244db)||new Set();_0x4025bf['add'](_0x361d5e),this[_0x437ee3(0x233)][_0x437ee3(0x20f)](_0x4244db,_0x4025bf),this['_scheduleClearOtherTimer'](_0x361d5e);}}),_0x1fcc95||this[_0x3d3131(0xfd)]({'type':0x0,'memberID':this[_0x3d3131(0x127)],'unitIDs':[...this[_0x3d3131(0x169)]],'isForwarded':!0x0});}[_0x4aeb9a(0x20b)](_0x1b90aa){const _0x471649=_0x4aeb9a;this[_0x471649(0xc2)](_0x1b90aa);const _0x4a2dbc=window['setTimeout'](()=>{const _0x5d447f=_0x471649;this['_unitOnClients'][_0x5d447f(0x270)](_0x26e25b=>{const _0x13a677=_0x5d447f;_0x26e25b[_0x13a677(0x1db)](_0x1b90aa);});},Ae*0x2);this[_0x471649(0x1d3)][_0x471649(0x20f)](_0x1b90aa,_0x4a2dbc);}[_0x4aeb9a(0xc2)](_0x43d286){const _0x697c87=_0x4aeb9a;if(this[_0x697c87(0x1d3)][_0x697c87(0x2f3)](_0x43d286)){const _0x2488ad=this[_0x697c87(0x1d3)][_0x697c87(0x25d)](_0x43d286);_0x2488ad&&window[_0x697c87(0x305)](_0x2488ad),this[_0x697c87(0x1d3)][_0x697c87(0x20f)](_0x43d286,null);}}[_0x4aeb9a(0x22d)](_0x141be8){const _0x3300e0=_0x4aeb9a,{memberID:_0x168f4e,unitIDs:_0x2f2fa2}=_0x141be8;_0x2f2fa2[_0x3300e0(0x270)](_0x599216=>{const _0x37d3a1=_0x3300e0;var _0x22dd61;const _0x4dcf2c=this[_0x37d3a1(0x233)]['get'](_0x599216);_0x4dcf2c&&(_0x4dcf2c[_0x37d3a1(0x1db)](_0x168f4e),(_0x22dd61=this[_0x37d3a1(0x98)](_0x599216))==null||_0x22dd61[_0x37d3a1(0x207)](_0x4dcf2c['size']===0x0?u[_0x37d3a1(0x1f4)]['NO_OTHER_CLIENTS_EDITING']:u[_0x37d3a1(0x1f4)][_0x37d3a1(0x324)]));}),this[_0x3300e0(0xc2)](_0x168f4e);}[_0x4aeb9a(0x322)](_0x19baea){const _0xaa413d=_0x4aeb9a;this[_0xaa413d(0x20b)](_0x19baea['memberID']);}['_send'](_0x50c3c1){const _0x916e46=_0x4aeb9a;localStorage[_0x916e46(0x22b)](Pe,JSON[_0x916e46(0x2fe)](_0x50c3c1));}[_0x4aeb9a(0x1fb)](){const _0x53ff3=_0x4aeb9a;this['_heartbeatTimer']=window[_0x53ff3(0x200)](()=>{const _0x317089=_0x53ff3;this[_0x317089(0xfd)]({'type':0x2,'memberID':this[_0x317089(0x127)]});},Ae);}[_0x4aeb9a(0x98)](_0xc14404){const _0x2af34f=_0x4aeb9a;return this[_0x2af34f(0x334)][_0x2af34f(0x2f3)](_0xc14404)||this[_0x2af34f(0x334)][_0x2af34f(0x20f)](_0xc14404,new I[(_0x2af34f(0x21c))](u['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x2af34f(0x334)][_0x2af34f(0x25d)](_0xc14404);}}exports['IURLService']=Te,exports[_0x4aeb9a(0x296)]=Be,exports[_0x4aeb9a(0x108)]=us,exports[_0x4aeb9a(0x1fe)]=Fe;