@univerjs-pro/collaboration-client-ui 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180327

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 +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x112f11=_0x29e7;(function(_0x3e21a1,_0x1c569a){const _0x29b1fd=_0x29e7,_0x5ccba5=_0x3e21a1();while(!![]){try{const _0xeba00a=parseInt(_0x29b1fd(0x219))/0x1*(parseInt(_0x29b1fd(0x20a))/0x2)+-parseInt(_0x29b1fd(0x137))/0x3*(-parseInt(_0x29b1fd(0x3a2))/0x4)+-parseInt(_0x29b1fd(0x230))/0x5*(-parseInt(_0x29b1fd(0x1a3))/0x6)+-parseInt(_0x29b1fd(0x106))/0x7*(-parseInt(_0x29b1fd(0x102))/0x8)+-parseInt(_0x29b1fd(0x359))/0x9+parseInt(_0x29b1fd(0x3ae))/0xa+parseInt(_0x29b1fd(0x2a3))/0xb*(-parseInt(_0x29b1fd(0x356))/0xc);if(_0xeba00a===_0x1c569a)break;else _0x5ccba5['push'](_0x5ccba5['shift']());}catch(_0xbb5d50){_0x5ccba5['push'](_0x5ccba5['shift']());}}}(_0x1d23,0x5333e));var Ge=Object[_0x112f11(0x39a)],Xe=(_0x3c98b0,_0x839fa9,_0x23f189)=>_0x839fa9 in _0x3c98b0?Ge(_0x3c98b0,_0x839fa9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23f189}):_0x3c98b0[_0x839fa9]=_0x23f189,_=(_0x2ead2d,_0x33c441,_0x3142b2)=>Xe(_0x2ead2d,typeof _0x33c441!=_0x112f11(0x12c)?_0x33c441+'':_0x33c441,_0x3142b2);Object[_0x112f11(0x39a)](exports,Symbol['toStringTag'],{'value':'Module'});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){const _0x4a8ed1=_0x112f11;return O=Object[_0x4a8ed1(0x25d)]||function(_0x27087b){const _0xc1834=_0x4a8ed1;for(var _0x521b14,_0x4371d3=0x1,_0x1ccff1=arguments[_0xc1834(0x132)];_0x4371d3<_0x1ccff1;_0x4371d3++){_0x521b14=arguments[_0x4371d3];for(var _0x21c108 in _0x521b14)Object['prototype'][_0xc1834(0x37d)]['call'](_0x521b14,_0x21c108)&&(_0x27087b[_0x21c108]=_0x521b14[_0x21c108]);}return _0x27087b;},O[_0x4a8ed1(0x2d4)](this,arguments);},ze=function(_0x8dd33d,_0xa8f390){const _0x38613f=_0x112f11;var _0x48c602={};for(var _0x11d018 in _0x8dd33d)Object[_0x38613f(0x36b)][_0x38613f(0x37d)][_0x38613f(0x2aa)](_0x8dd33d,_0x11d018)&&_0xa8f390[_0x38613f(0x174)](_0x11d018)<0x0&&(_0x48c602[_0x11d018]=_0x8dd33d[_0x11d018]);if(_0x8dd33d!=null&&typeof Object[_0x38613f(0x350)]==_0x38613f(0x333)){for(var _0x2a71a6=0x0,_0x11d018=Object[_0x38613f(0x350)](_0x8dd33d);_0x2a71a6<_0x11d018['length'];_0x2a71a6++)_0xa8f390[_0x38613f(0x174)](_0x11d018[_0x2a71a6])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x8dd33d,_0x11d018[_0x2a71a6])&&(_0x48c602[_0x11d018[_0x2a71a6]]=_0x8dd33d[_0x11d018[_0x2a71a6]]);}return _0x48c602;},pe=L[_0x112f11(0x338)](function(_0x5e2670,_0x4eef74){const _0x2ae66b=_0x112f11;var _0x4b2bb7=_0x5e2670[_0x2ae66b(0x161)],_0x5d0e10=_0x5e2670['id'],_0x1cc86d=_0x5e2670[_0x2ae66b(0x118)],_0x6115cf=_0x5e2670[_0x2ae66b(0x242)],_0x59eaed=ze(_0x5e2670,[_0x2ae66b(0x161),'id',_0x2ae66b(0x118),'extend']),_0xa6c516=_0x2ae66b(0x2f9)[_0x2ae66b(0x345)](_0x5d0e10,'\x20')[_0x2ae66b(0x345)](_0x1cc86d||'')[_0x2ae66b(0x184)](),_0x841bfb=L[_0x2ae66b(0x337)]('_'[_0x2ae66b(0x345)](Qe()));return ye(_0x4b2bb7,''['concat'](_0x5d0e10),{'defIds':_0x4b2bb7[_0x2ae66b(0x227)],'idSuffix':_0x841bfb['current']},O({'ref':_0x4eef74,'className':_0xa6c516},_0x59eaed),_0x6115cf);});function ye(_0x3205fe,_0x290d91,_0x13a560,_0x53fc4d,_0x5d99d4){const _0x570a00=_0x112f11;return L[_0x570a00(0x2ae)](_0x3205fe[_0x570a00(0x114)],O(O({'key':_0x290d91},Je(_0x3205fe,_0x13a560,_0x5d99d4)),_0x53fc4d),(Ze(_0x3205fe,_0x13a560)['children']||[])[_0x570a00(0x2a9)](function(_0x3ea9f0,_0x25910b){const _0x38bf2c=_0x570a00;return ye(_0x3ea9f0,''[_0x38bf2c(0x345)](_0x290d91,'-')[_0x38bf2c(0x345)](_0x3205fe['tag'],'-')[_0x38bf2c(0x345)](_0x25910b),_0x13a560,void 0x0,_0x5d99d4);}));}function Je(_0x2a0b24,_0x152ab4,_0x34baef){const _0x5e31b2=_0x112f11;var _0x2b3881=O({},_0x2a0b24[_0x5e31b2(0x2ac)]);_0x34baef!=null&&_0x34baef[_0x5e31b2(0x203)]&&_0x2b3881[_0x5e31b2(0x352)]===_0x5e31b2(0x203)&&(_0x2b3881[_0x5e31b2(0x352)]=_0x34baef[_0x5e31b2(0x203)]),_0x2a0b24[_0x5e31b2(0x114)]==='mask'&&_0x2b3881['id']&&(_0x2b3881['id']=_0x2b3881['id']+_0x152ab4[_0x5e31b2(0x1ee)]),Object['entries'](_0x2b3881)['forEach'](function(_0x281c25){const _0x2fb981=_0x5e31b2;var _0x40ca29=_0x281c25[0x0],_0x12e381=_0x281c25[0x1];_0x40ca29===_0x2fb981(0x1ea)&&typeof _0x12e381=='string'&&(_0x2b3881[_0x40ca29]=_0x12e381[_0x2fb981(0x11b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x152ab4['idSuffix'],')')));});var _0x1a07d5=_0x152ab4[_0x5e31b2(0x227)];return!_0x1a07d5||_0x1a07d5['length']===0x0||(_0x2a0b24[_0x5e31b2(0x114)]===_0x5e31b2(0x1b0)&&_0x2b3881[_0x5e31b2(0x116)]&&(_0x2b3881[_0x5e31b2(0x116)]=_0x2b3881[_0x5e31b2(0x116)]+_0x152ab4[_0x5e31b2(0x1ee)]),Object[_0x5e31b2(0x121)](_0x2b3881)['forEach'](function(_0x4cbba6){const _0x1440c8=_0x5e31b2;var _0xa03b3a=_0x4cbba6[0x0],_0x30d5dd=_0x4cbba6[0x1];typeof _0x30d5dd==_0x1440c8(0x1c0)&&(_0x2b3881[_0xa03b3a]=_0x30d5dd[_0x1440c8(0x11b)](/url\(#(.*)\)/,_0x1440c8(0x14d)['concat'](_0x152ab4[_0x1440c8(0x1ee)],')')));})),_0x2b3881;}function Ze(_0x583b19,_0x46f241){const _0x32c67c=_0x112f11;var _0xa4665,_0x5aec23=_0x46f241['defIds'];return!_0x5aec23||_0x5aec23['length']===0x0?_0x583b19:_0x583b19[_0x32c67c(0x114)]===_0x32c67c(0x12f)&&(!((_0xa4665=_0x583b19[_0x32c67c(0x362)])===null||_0xa4665===void 0x0)&&_0xa4665['length'])?O(O({},_0x583b19),{'children':_0x583b19[_0x32c67c(0x362)][_0x32c67c(0x2a9)](function(_0x543930){const _0x265804=_0x32c67c;return typeof _0x543930['attrs']['id']==_0x265804(0x1c0)&&_0x5aec23&&_0x5aec23['includes'](_0x543930[_0x265804(0x2ac)]['id'])?O(O({},_0x543930),{'attrs':O(O({},_0x543930[_0x265804(0x2ac)]),{'id':_0x543930['attrs']['id']+_0x46f241[_0x265804(0x1ee)]})}):_0x543930;})}):_0x583b19;}function Qe(){const _0x533ebc=_0x112f11;return Math[_0x533ebc(0x1e7)]()[_0x533ebc(0x1c8)](0x24)['substring'](0x2,0x8);}pe[_0x112f11(0x210)]='UniverIcon';var et={'tag':'svg','attrs':{'xmlns':_0x112f11(0x2fb),'fill':_0x112f11(0x113),'viewBox':_0x112f11(0x2d7),'width':_0x112f11(0x314),'height':_0x112f11(0x314)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x112f11(0x383),'attrs':{'stroke':_0x112f11(0x179),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x112f11(0x1b5),'strokeLinejoin':_0x112f11(0x1b5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x112f11(0x23c)},'children':[{'tag':_0x112f11(0x383),'attrs':{'fill':_0x112f11(0x3af),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=L[_0x112f11(0x338)](function(_0x50513c,_0x4465fa){const _0x122bab=_0x112f11;return L[_0x122bab(0x2ae)](pe,Object['assign']({},_0x50513c,{'id':_0x122bab(0x105),'ref':_0x4465fa,'icon':et}));});xe[_0x112f11(0x210)]=_0x112f11(0x32e);var tt={'tag':_0x112f11(0x181),'attrs':{'xmlns':_0x112f11(0x2fb),'fill':_0x112f11(0x113),'viewBox':_0x112f11(0x39f),'width':_0x112f11(0x314),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x112f11(0x383),'attrs':{'stroke':_0x112f11(0x179),'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':_0x112f11(0x1b5),'strokeLinejoin':_0x112f11(0x1b5),'strokeWidth':1.2}}]},{'tag':_0x112f11(0x12f),'attrs':{},'children':[{'tag':_0x112f11(0x269),'attrs':{'id':_0x112f11(0x1a5)},'children':[{'tag':_0x112f11(0x383),'attrs':{'fill':_0x112f11(0x3af),'d':_0x112f11(0x28e),'transform':_0x112f11(0x387)}}]}]}],'defIds':[_0x112f11(0x1a5)]},$e=L[_0x112f11(0x338)](function(_0x2dc88b,_0x14fb1a){const _0x5d3037=_0x112f11;return L['createElement'](pe,Object[_0x5d3037(0x25d)]({},_0x2dc88b,{'id':_0x5d3037(0x165),'ref':_0x14fb1a,'icon':tt}));});$e[_0x112f11(0x210)]='OnLineIcon';function st(_0x5b86f4){const _0x5ea49c=_0x112f11;switch(_0x5b86f4){case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x330)]:return _0x5ea49c(0x13b);case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x34c)]:return _0x5ea49c(0x1b2);case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x271)]:return'collabStatus.fetchMiss';case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x1d6)]:return _0x5ea49c(0x2e4);case u[_0x5ea49c(0x2f7)]['AWAITING']:case u[_0x5ea49c(0x2f7)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u['CollaborationStatus'][_0x5ea49c(0x19d)]:case u[_0x5ea49c(0x2f7)][_0x5ea49c(0x1d7)]:return _0x5ea49c(0x250);}}function it(_0x22327a){const _0x50d7bb=_0x112f11,{status$:_0x304413}=_0x22327a,_0x24d2d7=R['useObservable'](_0x304413,u['CollaborationStatus']['NOT_COLLAB']),_0x28d48b=R[_0x50d7bb(0x19e)](a['LocaleService']),_0x10e68f=R[_0x50d7bb(0x19e)](u[_0x50d7bb(0x12b)]),_0x530093=_0x24d2d7!==u[_0x50d7bb(0x2f7)][_0x50d7bb(0x330)],_0x2fde4f=_0x28d48b['t'](st(_0x24d2d7)),_0x2829db=_0x530093?P[_0x50d7bb(0x21f)]($e,{}):P[_0x50d7bb(0x21f)](xe,{}),_0x4775ec=L[_0x50d7bb(0x38a)](()=>{const _0x3433bb=_0x50d7bb;_0x530093||_0x10e68f[_0x3433bb(0x276)]();},[_0x530093,_0x10e68f]);function _0x17eaeb(){const _0xa21a7e=_0x50d7bb;return P[_0xa21a7e(0x18d)](_0xa21a7e(0x217),{'className':_0xa21a7e(0x37e),'onClick':_0x4775ec,'children':[P[_0xa21a7e(0x21f)](_0xa21a7e(0x217),{'className':T[_0xa21a7e(0x2e6)](_0xa21a7e(0x34f),{'univer-text-green-500':_0x530093,'univer-text-red-500':!_0x530093}),'children':_0x2829db}),P[_0xa21a7e(0x21f)](_0xa21a7e(0x217),{'className':_0xa21a7e(0x147),'children':_0x2fde4f})]});}return _0x530093?_0x17eaeb():P[_0x50d7bb(0x21f)](T[_0x50d7bb(0x1c1)],{'title':_0x28d48b['t'](_0x50d7bb(0x33f)),'children':_0x17eaeb()});}var nt=Object[_0x112f11(0x265)],rt=(_0x2189c1,_0x404eec,_0x1de77f,_0x2c7fa3)=>{const _0x2cf0ce=_0x112f11;for(var _0x3a347d=_0x2c7fa3>0x1?void 0x0:_0x2c7fa3?nt(_0x404eec,_0x1de77f):_0x404eec,_0x4f3970=_0x2189c1[_0x2cf0ce(0x132)]-0x1,_0x2afd6c;_0x4f3970>=0x0;_0x4f3970--)(_0x2afd6c=_0x2189c1[_0x4f3970])&&(_0x3a347d=_0x2afd6c(_0x3a347d)||_0x3a347d);return _0x3a347d;},q=(_0x1a4793,_0x3a2524)=>(_0x11cbef,_0x1a6e48)=>_0x3a2524(_0x11cbef,_0x1a6e48,_0x1a4793);exports[_0x112f11(0x33a)]=class extends a['Disposable']{constructor(_0x503be0,_0x471189,_0x215d67,_0x3d5834){const _0x18c350=_0x112f11;super(),_(this,_0x18c350(0x2db),new I[(_0x18c350(0x1dd))](u[_0x18c350(0x2f7)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x503be0,this[_0x18c350(0x399)]=_0x471189,this[_0x18c350(0x131)]=_0x215d67,this[_0x18c350(0x149)]=_0x3d5834,this[_0x18c350(0x247)](),this[_0x18c350(0x23f)]());}[_0x112f11(0x23f)](){const _0x4faa50=_0x112f11;this[_0x4faa50(0x2dc)](this[_0x4faa50(0x368)][_0x4faa50(0xf5)][_0x4faa50(0x15e)](I[_0x4faa50(0x1ce)](()=>{const _0x109a52=_0x4faa50,_0x327d13=this[_0x109a52(0x368)]['getFocusedUnit']();return _0x327d13?this[_0x109a52(0x131)][_0x109a52(0x27b)](_0x327d13['getUnitId']()):I['of'](null);}),I[_0x4faa50(0x1ce)](_0xf1b880=>_0xf1b880?_0xf1b880[_0x4faa50(0xfc)]:I['of'](u[_0x4faa50(0x2f7)][_0x4faa50(0x1d6)])))['subscribe'](_0x528cd0=>{const _0x5282c2=_0x4faa50;this[_0x5282c2(0x2db)][_0x5282c2(0x159)](_0x528cd0);}));}[_0x112f11(0x247)](){const _0x4ad369=_0x112f11;this[_0x4ad369(0x2dc)](this[_0x4ad369(0x149)][_0x4ad369(0x231)](R[_0x4ad369(0x35c)][_0x4ad369(0x156)],()=>R[_0x4ad369(0x263)](ot({'status$':this['_status$'][_0x4ad369(0x38e)]()}),this['_injector'])));}},exports[_0x112f11(0x33a)]=rt([q(0x0,a[_0x112f11(0x2cf)]),q(0x1,a['Inject'](a[_0x112f11(0x32f)])),q(0x2,a[_0x112f11(0x277)](u[_0x112f11(0x2d6)])),q(0x3,R['IUIPartsService'])],exports[_0x112f11(0x33a)]);function ot(_0x27f1a8){const {status$:_0x53ea63}=_0x27f1a8;return function(){const _0xc081e6=_0x29e7;return P[_0xc081e6(0x21f)](it,{'status$':_0x53ea63});};}const Te=a[_0x112f11(0x295)](_0x112f11(0x285));var at=Object[_0x112f11(0x265)],ct=(_0x17ae67,_0x4a2e07,_0x369c96,_0x11df7f)=>{const _0x1e34dd=_0x112f11;for(var _0x510190=_0x11df7f>0x1?void 0x0:_0x11df7f?at(_0x4a2e07,_0x369c96):_0x4a2e07,_0x8ce58d=_0x17ae67[_0x1e34dd(0x132)]-0x1,_0x3b274b;_0x8ce58d>=0x0;_0x8ce58d--)(_0x3b274b=_0x17ae67[_0x8ce58d])&&(_0x510190=_0x3b274b(_0x510190)||_0x510190);return _0x510190;},Y=(_0x1ddf92,_0xe2f8e2)=>(_0x3eaaf0,_0x48ab7f)=>_0xe2f8e2(_0x3eaaf0,_0x48ab7f,_0x1ddf92);exports[_0x112f11(0x374)]=class extends a[_0x112f11(0x2a7)]{constructor(_0x6ac9d9,_0x36daa4,_0x2d7077,_0x41579d,_0x3a6083){const _0x2ca784=_0x112f11;super(),this[_0x2ca784(0x2f2)]=_0x6ac9d9,this[_0x2ca784(0x3ad)]=_0x36daa4,this[_0x2ca784(0x124)]=_0x2d7077,this['_dataLoaderService']=_0x41579d,_0x3a6083?_0x3a6083==null||_0x3a6083['whenReady']()['then'](()=>this[_0x2ca784(0x31e)]()):(this[_0x2ca784(0x3ad)]['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2ca784(0x31e)]());}async['_init'](){const _0x7a5915=_0x112f11,_0x53dbf5=this[_0x7a5915(0x2f2)]['getParam'](_0x7a5915(0x38c)),_0x1f6bbe=this[_0x7a5915(0x2f2)][_0x7a5915(0x1ab)](_0x7a5915(0x342)),_0x7a0dae=this[_0x7a5915(0x2f2)][_0x7a5915(0x1ab)](_0x7a5915(0x275));if(!_0x53dbf5||!_0x1f6bbe){this[_0x7a5915(0x3ad)][_0x7a5915(0x23d)](_0x7a5915(0x1f9),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x28671a=await this['_dataLoaderService'][_0x7a5915(0x2b4)](_0x53dbf5,Number(_0x1f6bbe),_0x7a0dae);_0x28671a&&_0x28671a instanceof a['Workbook']&&this[_0x7a5915(0x30c)](_0x28671a);}async[_0x112f11(0x30c)](_0x48cdde){const _0x10ce43=_0x112f11;await this[_0x10ce43(0x19a)](_0x48cdde),_0x48cdde[_0x10ce43(0x223)][_0x10ce43(0x15e)](I[_0x10ce43(0x2a6)](this[_0x10ce43(0x33b)]))[_0x10ce43(0x1a4)](_0x4f9f5b=>{_0x4f9f5b&&this['_updateURLWithCurrentState'](_0x4f9f5b);}),this[_0x10ce43(0x2f2)][_0x10ce43(0x1ba)][_0x10ce43(0x15e)](I['takeUntil'](this[_0x10ce43(0x33b)]))[_0x10ce43(0x1a4)](()=>this['_updateSubUnitFromURLParams'](_0x48cdde));}[_0x112f11(0x143)](_0x5a6433,_0x16cdb0=!0x1){const _0x492270=_0x112f11,_0x3a0733=this[_0x492270(0x2f2)][_0x492270(0x1ab)](_0x492270(0x275));_0x5a6433[_0x492270(0x3a5)]()!==_0x3a0733&&this[_0x492270(0x2f2)][_0x492270(0x108)](_0x492270(0x275),_0x5a6433[_0x492270(0x3a5)](),_0x16cdb0);}async[_0x112f11(0x19a)](_0x5b7e63){const _0x13b13e=_0x112f11;var _0x5cf6d6;const _0x32b094=this[_0x13b13e(0x2f2)][_0x13b13e(0x1ab)](_0x13b13e(0x275));if(!_0x32b094||!_0x5b7e63[_0x13b13e(0x1db)](_0x32b094)){const _0x478aa0=_0x5b7e63[_0x13b13e(0x385)]()[0x0],_0xa74068=_0x5b7e63['getSheetBySheetId'](_0x478aa0);if(!_0xa74068)return;this[_0x13b13e(0x143)](_0xa74068,!0x0),await this['_commandService'][_0x13b13e(0x257)](v[_0x13b13e(0x127)]['id'],{'unitId':_0x5b7e63[_0x13b13e(0x1d3)](),'subUnitId':_0x478aa0});return;}((_0x5cf6d6=_0x5b7e63[_0x13b13e(0xfb)]())==null?void 0x0:_0x5cf6d6[_0x13b13e(0x3a5)]())!==_0x32b094&&await this[_0x13b13e(0x124)][_0x13b13e(0x257)](v[_0x13b13e(0x127)]['id'],{'unitId':_0x5b7e63[_0x13b13e(0x1d3)](),'subUnitId':_0x32b094});}},exports[_0x112f11(0x374)]=ct([Y(0x0,Te),Y(0x1,a[_0x112f11(0x12d)]),Y(0x2,a[_0x112f11(0x16e)]),Y(0x3,a['Inject'](u[_0x112f11(0x1cd)])),Y(0x4,a[_0x112f11(0x10b)](Ke['IRemoteInstanceService']))],exports[_0x112f11(0x374)]);var lt=Object[_0x112f11(0x265)],_t=(_0x32f594,_0x3ea944,_0x309acc,_0x1debf9)=>{const _0xbbc329=_0x112f11;for(var _0x1d454f=_0x1debf9>0x1?void 0x0:_0x1debf9?lt(_0x3ea944,_0x309acc):_0x3ea944,_0x46f57c=_0x32f594[_0xbbc329(0x132)]-0x1,_0x432cb2;_0x46f57c>=0x0;_0x46f57c--)(_0x432cb2=_0x32f594[_0x46f57c])&&(_0x1d454f=_0x432cb2(_0x1d454f)||_0x1d454f);return _0x1d454f;},be=(_0x4e8dff,_0x153949)=>(_0x2225b1,_0x29b9e5)=>_0x153949(_0x2225b1,_0x29b9e5,_0x4e8dff);let fe=class extends a['RxDisposable']{constructor(_0x5e01f8,_0x3b69e7){const _0x5f4cdd=_0x112f11;super(),this[_0x5f4cdd(0x1a6)]=_0x5e01f8,this['_imageIoService']=_0x3b69e7,this['_init']();}['_init'](){const _0x456496=_0x112f11,_0x71edde=this;this[_0x456496(0x2dc)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x573ab9=>{const _0x26a16b=_0x456496,_0x2d87fd=await _0x71edde[_0x26a16b(0x209)][_0x26a16b(0x192)](_0x573ab9);return _0x2d87fd?{'source':_0x2d87fd[_0x26a16b(0x187)],'imageSourceType':_0x2d87fd[_0x26a16b(0xf4)]}:null;}}));}};fe=_t([be(0x0,p[_0x112f11(0x17c)]),be(0x1,qe['IImageIoService'])],fe);const De=[_0x112f11(0x3a9),_0x112f11(0x36d),_0x112f11(0x2af),_0x112f11(0x322),_0x112f11(0x279),_0x112f11(0xfa)];class Oe extends a[_0x112f11(0x18b)]{constructor(){const _0x33ccd7=_0x112f11;super(...arguments),_(this,_0x33ccd7(0x34d),new Map()),_(this,_0x33ccd7(0x20c),0x0);}[_0x112f11(0x364)](_0x56a218){const _0x351e2f=_0x112f11;if(this['_assignedColors']['has'](_0x56a218))return this[_0x351e2f(0x34d)][_0x351e2f(0x243)](_0x56a218);const _0x281e80=De[this[_0x351e2f(0x20c)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%De[_0x351e2f(0x132)],this[_0x351e2f(0x34d)]['set'](_0x56a218,_0x281e80),_0x281e80;}}function Be(_0x43e282){let _0xbfa438='';for(const _0x19f292 of _0x43e282){const {startOffset:_0x3bee4b,endOffset:_0x24e91c,isActive:_0x50a83d,rangeType:_0x1fa9df,segmentId:_0x4a8022,segmentPage:_0x57e485}=_0x19f292;_0xbfa438['length']&&(_0xbfa438+=','),_0xbfa438+=_0x3bee4b+':'+_0x24e91c+':'+(_0x50a83d?'1':'0')+':'+_0x1fa9df+':'+_0x4a8022+':'+_0x57e485;}return _0xbfa438;}function ht(_0x2ed8cd){const _0x2bc499=_0x112f11,_0x5db7b2=_0x2ed8cd['split'](','),_0x3cd6cb=[];for(const _0x41a3a8 of _0x5db7b2){const [_0x3d54a2,_0x2bc8b9,_0x2fb1ad,_0xaadf89,_0x4901ab,_0x11ac5c]=_0x41a3a8[_0x2bc499(0x111)](':');_0x3cd6cb['push']({'startOffset':Number(_0x3d54a2),'endOffset':Number(_0x2bc8b9),'collapsed':_0x3d54a2===_0x2bc8b9,'isActive':_0x2fb1ad==='1','rangeType':_0xaadf89===a[_0x2bc499(0x212)][_0x2bc499(0x11f)]?a['DOC_RANGE_TYPE'][_0x2bc499(0x11f)]:a['DOC_RANGE_TYPE'][_0x2bc499(0x177)],'segmentId':typeof _0x4901ab=='string'?String(_0x4901ab):'','segmentPage':Number(_0x11ac5c!=null?_0x11ac5c:-0x1)});}return _0x3cd6cb['some'](_0x3a8004=>_0x3a8004[_0x2bc499(0x1e9)])||(_0x3cd6cb[0x0][_0x2bc499(0x1e9)]=!0x0),_0x3cd6cb;}class Re extends a[_0x112f11(0x2a7)]{constructor(){const _0x297d35=_0x112f11;super(...arguments),_(this,_0x297d35(0x393),new I['BehaviorSubject'](null)),_(this,_0x297d35(0x1fd),this['_collabCursorState$'][_0x297d35(0x38e)]());}[_0x112f11(0x262)](_0x31c084){const _0x1717fb=_0x112f11,{unitID:_0x313d1a,memberID:_0x1ccd85,textRanges:_0x189d00}=_0x31c084,_0x2055d0=Be(_0x189d00);if(_0x2055d0==='')return;const _0x3eee94={'unitID':_0x313d1a,'memberID':_0x1ccd85,'selection':_0x2055d0};this['_collabCursorState$'][_0x1717fb(0x159)](_0x3eee94);}}var ut=Object[_0x112f11(0x265)],It=(_0x36c822,_0x21f43f,_0x23851c,_0x227f1e)=>{for(var _0x5df7c3=_0x227f1e>0x1?void 0x0:_0x227f1e?ut(_0x21f43f,_0x23851c):_0x21f43f,_0x1d5c16=_0x36c822['length']-0x1,_0x184e77;_0x1d5c16>=0x0;_0x1d5c16--)(_0x184e77=_0x36c822[_0x1d5c16])&&(_0x5df7c3=_0x184e77(_0x5df7c3)||_0x5df7c3);return _0x5df7c3;},M=(_0x2f3e5c,_0x39a7d6)=>(_0x7c9803,_0x3912a9)=>_0x39a7d6(_0x7c9803,_0x3912a9,_0x2f3e5c);const dt=0x12c,St=0x64;let me=class extends a[_0x112f11(0x2a7)]{constructor(_0x4a6422,_0x42fd7b,_0x1a9d90,_0x3f6049,_0x5e06bb,_0x4cc40f,_0x554f23,_0x22b17b,_0x3bf8aa){const _0x1a6499=_0x112f11;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x1a6499(0x34b),new I[(_0x1a6499(0x1dd))](new Map())),_(this,_0x1a6499(0x1cc),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new I[(_0x1a6499(0x1dd))]([])),_(this,'roomMembers$',this[_0x1a6499(0x2d1)][_0x1a6499(0x15e)](I['debounceTime'](dt))),_(this,'_updateLocalCursor',a['debounce'](_0x35930c=>{const _0x98cbfd=_0x1a6499,_0x2c7cca={'eventID':g[_0x98cbfd(0x24e)][_0x98cbfd(0x1f5)],'data':{'unitID':this[_0x98cbfd(0x2ad)],'memberID':this[_0x98cbfd(0x2e7)][_0x98cbfd(0x259)](),'selection':Be(_0x35930c)}};this['_session'][_0x98cbfd(0x339)](_0x2c7cca,this[_0x98cbfd(0x2ad)]);},St)),(this[_0x1a6499(0x2ad)]=_0x4a6422,this['_session']=_0x42fd7b,this[_0x1a6499(0x399)]=_0x1a9d90,this['_colorAssignService']=_0x3f6049,this[_0x1a6499(0x32b)]=_0x5e06bb,this[_0x1a6499(0x13a)]=_0x4cc40f,this[_0x1a6499(0x14e)]=_0x554f23,this[_0x1a6499(0x368)]=_0x22b17b,this[_0x1a6499(0x124)]=_0x3bf8aa);}get[_0x112f11(0x1b7)](){return this['_cursorInfo$']['getValue']();}get[_0x112f11(0x2a4)](){const _0x30413b=_0x112f11;return this[_0x30413b(0x2d1)]['getValue']();}['dispose'](){const _0x3e6439=_0x112f11;super[_0x3e6439(0x2de)](),this[_0x3e6439(0x34b)][_0x3e6439(0x159)](new Map()),this['_cursorInfo$'][_0x3e6439(0x188)](),this[_0x3e6439(0x2d1)]['next']([]),this[_0x3e6439(0x2d1)][_0x3e6439(0x188)]();}[_0x112f11(0x278)](){const _0x472610=_0x112f11;this[_0x472610(0x31e)]||(this[_0x472610(0x31e)]=!0x0,this[_0x472610(0x2e7)][_0x472610(0x296)]['pipe'](I[_0x472610(0x2a6)](this['dispose$']))[_0x472610(0x1a4)](_0x4c749b=>{const _0x597d5b=_0x472610;_0x4c749b===u[_0x597d5b(0x2b6)][_0x597d5b(0x1d9)]?this['_toggleOnline']():this[_0x597d5b(0x1b6)]();}),this[_0x472610(0x2e7)][_0x472610(0x13d)]['pipe'](I[_0x472610(0x2a6)](this[_0x472610(0x33b)]))['subscribe'](_0x33dd7b=>{const _0x4f0ad2=_0x472610,_0x563839=_0x33dd7b[_0x4f0ad2(0x1ae)];_0x563839===g[_0x4f0ad2(0x24e)][_0x4f0ad2(0x1f5)]&&this[_0x4f0ad2(0x232)](_0x33dd7b),_0x563839===g[_0x4f0ad2(0x24e)][_0x4f0ad2(0x1fa)]&&this[_0x4f0ad2(0x2a8)](_0x33dd7b);}),this[_0x472610(0x2dc)](this[_0x472610(0x124)][_0x472610(0x12a)](_0x87c95e=>{const _0x5e4df4=_0x472610,_0x59b4b8=_0x87c95e[_0x5e4df4(0x298)];_0x59b4b8!=null&&this['_online']&&_0x87c95e['id']===V[_0x5e4df4(0x222)]['id']&&_0x59b4b8[_0x5e4df4(0x1bf)]===this[_0x5e4df4(0x2ad)]&&_0x59b4b8[_0x5e4df4(0x1e6)]===!0x1&&_0x59b4b8[_0x5e4df4(0x386)][_0x5e4df4(0x132)]>0x0&&this[_0x5e4df4(0x1ac)](_0x59b4b8[_0x5e4df4(0x386)]);})),this['_syncEditingCollabCursorService'][_0x472610(0x1fd)]['pipe'](I[_0x472610(0x2a6)](this[_0x472610(0x33b)]))[_0x472610(0x1a4)](_0x554bcb=>{const _0x311c39=_0x472610;if((_0x554bcb==null?void 0x0:_0x554bcb['unitID'])!==this[_0x311c39(0x2ad)])return;const _0x5dec0f={'eventID':g[_0x311c39(0x24e)][_0x311c39(0x1f5)],'data':_0x554bcb};this[_0x311c39(0x232)](_0x5dec0f);}),this[_0x472610(0x2dc)](this[_0x472610(0x124)]['onCommandExecuted'](_0x33d029=>{const _0x4f05a4=_0x472610;if(_0x33d029[_0x4f05a4(0x298)]==null)return;const _0x2b5205=_0x33d029['params'];if(_0x33d029['id']!==V[_0x4f05a4(0x395)]['id']||_0x2b5205[_0x4f05a4(0x1bf)]!==this[_0x4f05a4(0x2ad)])return;const _0x67c11d={'id':_0x4f05a4(0x2b0),'params':_0x2b5205},_0x5cfc8e=this['cursorInfo'];for(const [_0x3b6281,_0x1e6005]of _0x5cfc8e){const _0x15e0ab={'id':_0x4f05a4(0x2b0),'params':{'unitId':this[_0x4f05a4(0x2ad)],'actions':null,'textRanges':_0x1e6005['ranges']}},_0x2fec1d=this[_0x4f05a4(0x14e)][_0x4f05a4(0x1f4)](_0x67c11d,_0x15e0ab,!0x1);if(g['isTransformMutationFailure'](_0x2fec1d))throw _0x2fec1d[_0x4f05a4(0x351)];_0x5cfc8e[_0x4f05a4(0x17b)](_0x3b6281,{..._0x1e6005,'ranges':_0x2fec1d[_0x4f05a4(0x15f)]['params'][_0x4f05a4(0x220)]});}queueMicrotask(()=>{const _0x20f222=_0x4f05a4;this[_0x20f222(0x34b)][_0x20f222(0x159)](_0x5cfc8e);});})));}[_0x112f11(0x232)](_0x58bd69){const _0x4662ee=_0x112f11;var _0x134651,_0x585133;const {memberID:_0xd88fcf,selection:_0x135999}=_0x58bd69[_0x4662ee(0x34e)],_0x20bd17=ht(_0x135999),_0x2284aa=(_0x585133=(_0x134651=this['_memberService'][_0x4662ee(0x389)](this['unitID'],_0xd88fcf))==null?void 0x0:_0x134651[_0x4662ee(0x3a3)])!=null?_0x585133:_0x4662ee(0x3a6),_0xfc0962={'color':this[_0x4662ee(0x16c)][_0x4662ee(0x364)](_0xd88fcf),'name':_0x2284aa,'ranges':_0x20bd17},_0x178e50=this[_0x4662ee(0x1b7)];_0x178e50[_0x4662ee(0x17b)](_0xd88fcf,_0xfc0962),this[_0x4662ee(0x34b)][_0x4662ee(0x159)](_0x178e50);}[_0x112f11(0x2a8)](_0x30d557){const _0x453425=_0x112f11,{memberID:_0x55fd65}=_0x30d557[_0x453425(0x34e)],_0x9880ed=this[_0x453425(0x1b7)];_0x9880ed[_0x453425(0x375)](_0x55fd65),this['_cursorInfo$']['next'](_0x9880ed);}[_0x112f11(0x166)](){const _0x19d25e=_0x112f11;var _0x46cc3f;if(this[_0x19d25e(0x1c3)]=!0x0,((_0x46cc3f=this[_0x19d25e(0x368)][_0x19d25e(0x299)]())==null?void 0x0:_0x46cc3f[_0x19d25e(0x1d3)]())!==this[_0x19d25e(0x2ad)])return;const _0x1ad5c1=this['_injector'][_0x19d25e(0x243)](V[_0x19d25e(0x268)])[_0x19d25e(0x329)]();Array['isArray'](_0x1ad5c1)&&_0x1ad5c1[_0x19d25e(0x132)]>0x0&&this[_0x19d25e(0x1ac)](_0x1ad5c1);}['_toggleOffline'](){const _0x4c563a=_0x112f11;this[_0x4c563a(0x1c3)]=!0x1;}};me=It([M(0x2,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),M(0x3,a[_0x112f11(0x277)](Oe)),M(0x4,a[_0x112f11(0x277)](u['MemberService'])),M(0x5,a['Inject'](Re)),M(0x6,g[_0x112f11(0x2c3)]),M(0x7,a[_0x112f11(0x2cf)]),M(0x8,a[_0x112f11(0x16e)])],me);var ft=Object[_0x112f11(0x265)],mt=(_0x53eabc,_0x386036,_0x2e051e,_0x51686c)=>{const _0x5103b6=_0x112f11;for(var _0x306351=_0x51686c>0x1?void 0x0:_0x51686c?ft(_0x386036,_0x2e051e):_0x386036,_0x4dc526=_0x53eabc[_0x5103b6(0x132)]-0x1,_0x46e85c;_0x4dc526>=0x0;_0x4dc526--)(_0x46e85c=_0x53eabc[_0x4dc526])&&(_0x306351=_0x46e85c(_0x306351)||_0x306351);return _0x306351;},y=(_0x302396,_0x1b0ac7)=>(_0x2fc1fd,_0x1898bb)=>_0x1b0ac7(_0x2fc1fd,_0x1898bb,_0x302396);function _0x1d23(){const _0x3571ca=['clsx','_session','toDisposable','FromArray','_startSheetCollabCursor','restore','endColumn','_renderManagerService','Warning','IMessageService','with','enableLocalCache','_urlService','MemberService','_initEvent','parse','searchParams','CollaborationStatus','getLocalCacheKey','univerjs-icon\x20univerjs-icon-','handleIRemoveCol','http://www.w3.org/2000/svg','_saveCache','SUCCESS','code','ENSURE_SNAPSHOT_EXECUTION','Rect','selection','fillStyle','ThemeService','YUUMI_ALL_TABLES_IS_INVALID','PY_RUNTIME_SCRIPT_ERROR','FormulaExecuteStageType','getUniverSheetInstance','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_handleEvent','InsertRangeMoveDownCommandId','_currentUsage','_setupSubUnitSync','mutations','transformMutationsWithChangeset','_textBubble','OTHER_CLIENT_EDITING','setConfig','UNAUTHENTICATED','arc','1em','startRow','disableLocalCache','PERMISSION_DENIED','Rectangle','debounce','USER_IS_ANONYMOUS','_unitOnClients','ENTITLE_CAN_NOT_BUY_LOWER_OTP','WebSocketService','_init','_drawTextRange','getStateCache','_scheduleClearOtherTimer','red.300','_range','SUBMIT_CHANGESET_TIMEOUT','USER_NOT_INVITED_CODE','_initResize','isTransformMutationsWithChangesetSuccess','font','getDocRanges','createInstance','_memberService','totalFormulasToCalculate','replaceDocRanges','OffLineIcon','Injector','OFFLINE','_handleLeaveEvent','body','function','onPointerEnter$','YUUMI_UNABLE_LOAD_URL','_getAnchorBounding','useRef','forwardRef','send','DesktopCollaborationStatusDisplayController','dispose$','_document','DocStateChangeManagerService','DocSkeletonManagerService','collab-client.tooltip.reconnect','getSkeleton','USER_NOT_FOUND','type','getRangePointData','_collabSessionService','concat','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LOGIN_FAILED','IRenderManagerService','_initEntityListener','_getSaveTimeout','_cursorInfo$','CONFLICT','_assignedColors','data','univer-mr-2\x20univer-flex\x20univer-text-xl','getOwnPropertySymbols','error','fill','_instanceService','storage','popstate','12AvsMVp','transformIMECache','_maxFormulaLimit','6047451qTtqqW','_docTransformSelectionsService','addObject','BuiltInUIPart','replaceState','_send','m1Prime','endRow','measureText','children','TOO_MANY_REQUESTS','assignAColorForMemberID','FormulaExecutedStateType','getformulaLimitStatusUrl','/universer-api/license/formula/limit/done','_univerInstanceService','handleInsertRow','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','prototype','text','jiqing.500','REDEMPTION_INVALID_CODE','transform','getMergeData','_selfUnitIDs','_initCommandInterceptor','_createSocketURL','CollaborationDataLoaderController','delete','_beforeCloseService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_saveTaskMap','_scheduleSaving','ColorKit','startsWith','_localStorageService','hasOwnProperty','univer-flex\x20univer-items-center','labelPosition','transformByState','_lastPointer','_cursorShapes','path','_cursor','getUnhiddenWorksheets','ranges','translate(.97)','REDEMPTION_CODE_NOT_STARTED','getMember','useCallback','getActiveRange','unit','formula.calculation.started','asObservable','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_entityInit$','/universer-api/license/formula/limit/status','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabCursorState$','moveTo','RichTextEditingMutation','APPLY_NON_SEQUENTIAL_REVISION','generateRandomId','_unitStatus','_injector','defineProperty','_scene','subscribeEvent','newValue','entityInit$','0\x200\x2017\x2016','_shapes','_setFormulaLimitStatus','44768fXXWOy','name','black','getSheetId','Unknown\x20user','application/json','filter','purple.300','SheetSkeletonManagerService','stageInfo','_startCalculationLimit','_logService','2955540CGSxaQ','white','_refRangeService','has','ISnapshotServerService','show','imageSourceType','focused$','getTypeOfUnitAdded$','_transformPreviousActiveRange','_hovered','_transformUndoRedoStack','yellow.400','getActiveSheet','status$','handleInsertRangeMoveDown','flatMap','_disabled','contains','_configService','603752QmZHBi','IConfigService','_pollingInterval','off-line-icon','14ZNWwha','APPLY_REJECT','setParam','getAncestorScale','DocCollaborationEntity','Optional','CollaborationSocketService','now','YUUMI_SUBSCRIPTION_NOT_FOUND','saveOfflineData','WECHAT_HAS_BEEN_BOUND','split','NO_OTHER_CLIENTS_EDITING','none','tag','Failed','xlink:href','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','className','ENTITLE_REPORT_LIMIT_EXCEED','ISocketService','replace','...','currentTheme$','clearTimeout','TEXT','#FFF','entries','AUTHORIZE_CODE_ILLEGAL','_backgroundColor','_commandService','onTransformChange$','SHEET_VIEWPORT_KEY','SetWorksheetActivateCommand','UniverInstanceType','makeDirty','onCommandExecuted','CollaborationSessionService','symbol','ILogService','max','defs','_ensureSubject','_collaborationController','length','transformStateCache','touchDependencies','Vector2','registerDependencies','48lwkbzl','TEXT_RANGE_LAYER_INDEX','debounceTime','_syncEditingCollabCursorService','collabStatus.offline','registerRefRange','event$','INVITE_CODE_REQUIRED','location','SetFormulaCalculationNotificationMutation','drawWith','setTimeout','_updateURLWithCurrentState','key','ticket','getTypeOfUnitDisposed$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','collaboration.closeRoom','_uiPartsService','pluginName','onMouseMove','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','url(#$1','_transformService','YUUMI_ASYNCIO_CANCELLED','NodePositionConvertToRectRange','Success','collab-rect-range-','_docSkeletonManagerService','JOIN_ROOM_FAILED','SetDocZoomRatioOperation','HEADER_MENU','INotificationService','PAYMENT_CHANNEL_NOT_SUPPORT','next','_refreshCollabCursors','executionId','then','SetSelectionsOperation','pipe','m2Prime','_clearOtherTimers','icon','_render','forEach','getColor','on-line-icon','_toggleOnline','fillText','getColorFromTheme','fillRule','RefRangeService','all','_colorAssignService','_docTransformStateCacheService','ICommandService','addEventListener','runId','handleInsertRangeMoveRight','throttleTime','getItem','indexOf','collaboration-client.offline-data-not-saved','UnitStatus','RECT','CHANGESET_REVISION_CONFILICT','currentColor','DEFAULT_WS_SESSION_TICKET_URL','set','IDocClipboardService','UNIVER_DOC','_revisionService','_scheduleHeartbeat','ENTITLE_DUP_SUBSCRIPTION','svg','_labelPosition','WebURLService','trim','parseInt','setItem','source','complete','INVITE_CODE_ALREADY_BOUND','collab-text-anchor-','Disposable','onPointerLeave$','jsxs','height','RemoteUniscriptService','undoState','_config','saveImage','runRefRangeMutations','onStarting','findNodePositionByCharIndex','_getMergeRange','_id','_doCreateSocket','selections','_updateSubUnitFromURLParams','_notificationService','_heartbeatTimer','SYNCED','useDependency','MOBILE_HAS_BEEN_BOUND','_cursors','saveTaskMap','_startDocCollabCursor','2697888WYMZbJ','subscribe','on-line-icon_clip0_910_349','_docClipboardService','_initCommandExecutedListener','APPLY_PERMISSION_DENIED','hide','evenodd','getParam','_updateLocalCursor','MUTATION','eventID','_anchor','use','runOnServer','collabStatus.conflict','UNDEFINED','INVALID_INVITE_CODE','round','_toggleOffline','cursorInfo','getCoordByCell','range','urlChange$','values','redoState','resize','_hasFormulaInDirtyRanges','unitId','string','Tooltip','APPLY_REVISION_CONFILICT','_online','pushState','_name','InsertColCommandId','closePath','toString','_transformHistoryAndStateStack','LOCAL_CACHE_INTERVAL_KEY','_getScale','cursorInfo$','DataLoaderService','switchMap','getRelativeToViewportCoord','getRenderById','disposeUnit','handleInsertCol','getUnitId','setShapeProps','beginPath','NOT_COLLAB','PENDING','shareReplay','ONLINE','BrowserCollaborationSocketService','getSheetBySheetId','isTransformMutationFailure','BehaviorSubject','InsertRowCommandId','createSocket','Subject','width','_collaborationUIEventService','REDEMPTION_CODE_FULLY_REDEEMED','_setupBeforeClosingHandler','invokeId','isEditing','random','RevisionService','isActive','mask','stringify','CONNECTOR_DATA_TOO_LARGE','_handleJoinEvent','idSuffix','_checkAndWaitForCalculationPermission','_sheetSkeletonManagerService','addHandlerCallback','row','shift','transformMutation','UPDATE_CURSOR','UniverCollaborationClientUIPlugin','INVITE_CODE_HAS_BEEN_UES','_updateCollabCursors','[CollaborationDataLoaderController]','USERS_LEAVE','distinctUntilChanged','transformSelections','collabCursorState$','_taskIds','REDEMPTION_USER_NOT_ELIGIBLE','history','bottom','getCellMatrix','colorChannel1','href','YUUMI_CONNECTOR_URL_NOT_FOUND','_localeService','backgroundColor','ENTITLE_CHAT_LIMIT_EXCEED','_imageIoService','4LWtNOV','getVpScrollXYInfoByPosToVp','_colorIndex','color','setUndoRedoMutationParamsCache','post','displayName','_removeClearOtherTimer','DOC_RANGE_TYPE','_applyCommand','START_CALCULATION','getUndoRedoMutationParamsCache','onLocalMutation','div','LICENSE_IMPORT_SIZE_EXCEEDED','318211kMPNiD','RemoveColCommandId','_docSkeleton','_removeCollabCursors','_initDependencies','EMAIL_VERIFY_CODE_MISMATCH','jsx','textRanges','combineLatest','SetTextSelectionsOperation','activeSheet$','_getFormulaLimitStatus','getUnit','origin','defIds','deepClone','_handleHeartbeatEvent','size','beforeCommandExecuted','COMPLETION_FINISHED','Tools','EMAIL_HAS_BEEN_BOUND','triggerDblclick','5zoIull','registerComponent','_onCursorUpdate','LICENSE_DISTRO_REJECTED','add','_eventUnsubscribe','_anchorDot','DeleteRangeMoveLeftCommandId','CURRENT_STATUS_CANNOT_OPERATE','sheetID','serializeRangeWithSheet','INVALID_ARGUMENT','off-line-icon_clip0_910_343','debug','formula.calculation.unable','_initStatusListener','_getSheetObject','_hover','extend','get','_drawAnchor','Error','collab-text-range-','_initStatusComponent','_messageService','APPLY_DUPLICATED','SNAPSHOT_HAS_BEEN_REMOVED','_checkCalculationAvailable','getValue','LocaleService','CollaborationEvent','removeParam','collabStatus.synced','getCurrentUnitForType','toRgbString','_context','registerRenderModule','LOGIN_TOKEN_PROCESSING_FAILED','deserializeRangeWithSheet','executeCommand','getViewport','getMemberID','engine','REDEMPTION_CODE_INACTIVE','EffectRefRangId','assign','loadOfflineData','search','_docStateChangeManagerService','getCollabCursors$','syncEditingCollabCursor','connectInjector','onRendered','getOwnPropertyDescriptor','_clearPolling','_entities','DocSelectionManagerService','clipPath','getConfig','CollaborationUIEventService','ILocalCacheService','_localCacheService','fromEvent','UNRECOGNIZED','_color','FETCH_MISS','DisposableCollection','unsubscribe','column','subunit','reconnect','Inject','init','blue.400','YUUMI_NO_CUBOID_FOR_QUESTION','getCollabEntity$','_cachedData','Shape','currentSkeleton$','/run/','DependentOn','limitInfo','OTHER_CLIENTS_EDITING','_docTransformIMECacheService','permission.content','uni.network.url-service','from','save','/universer-api/license/formula/limit/start','YUUMI_AI_RUN_FAILED','_draw','unshift','handleDeleteRangeMoveUp','ERROR_AGAIN','M0\x200H16V16H0z','getUnitStatus$','clearInterval','releaseFormulaLimitUrl','_getSessionTicket','REDEMPTION_CODE_HAS_BEEN_CREATED','CommandType','createIdentifier','sessionStatus$','_themeService','params','getFocusedUnit','collaboration-client-ui.config','mergeOverrideWithDependencies','getCellPositionByOffset','_handleHover','_releaseCalculationLimit','collaboration.single-unit.warning','TRANSFORM_CHANGE_OBSERVABLE_TYPE','requireSession','_showGuardMessage','7687867rfOSyg','roomMembers','setAlpha','takeUntil','RxDisposable','_onCursorDelete','map','call','INTERNAL_ERROR','attrs','unitID','createElement','green.600','doc.mutation.rich-text-editing','_httpService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ALREADY_EXISTS','loadUnit','CollaborationUIEventId','SessionStatus','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CanceledError','NOT_FOUND','SOCKET_FAILED_RETRY','SNAPSHOT_INVALID_SNAPSHOT','merge','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SHEET','_drawRectRange','_hideTimer','docStateChange$','currentUsage','ITransformService','COLORS','lineTo','_onRefRangeChange','startColumn','RegularPolygon','session.connection-failed','rgba(255,\x20255,\x20255,\x200.01)','DocIMEInputManagerService','HTTPService','push','fromEventSubject','IUniverInstanceService','min','_roomMembers$','find','setActiveRange','apply','transformRemoteChangeset','CollaborationController','0\x200\x2016\x2016','RemoveRowCommandId','ACTIVE_UNIT_EVENT_CHANNEL','_lastResponseTimestamp','_status$','disposeWithMe','handleDeleteRangeMoveLeft','dispose','mapTo','MessageType','addObjects','_collabCursorController','isArray','collabStatus.notCollab','LICENSE_MAX_UNITS_EXCEEDED'];_0x1d23=function(){return _0x3571ca;};return _0x1d23();}const vt=0x12c,gt=0x64,Et=()=>{let _0x40611f=[],_0x343799=!0x1;return _0x4554eb=>{const _0xb06d06=_0x29e7;_0x40611f[_0xb06d06(0x2cd)](_0x4554eb),_0x343799||(_0x343799=!0x0,setTimeout(()=>{const _0x2c87eb=_0xb06d06;_0x40611f[_0x2c87eb(0x163)](_0x2374e6=>_0x2374e6()),_0x40611f=[],_0x343799=!0x1;}));};};let ve=class extends a['RxDisposable']{constructor(_0x56bba1,_0x29f7f3,_0x4c4b14,_0x3d3558,_0x5288e7,_0x4f78fb,_0x496a98,_0x13d8e2){const _0x117d3f=_0x112f11;super(),_(this,_0x117d3f(0x1c3),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x117d3f(0x1dd))](new Map())),_(this,'cursorInfo$',this[_0x117d3f(0x34b)]['asObservable']()),_(this,_0x117d3f(0x2d1),new I[(_0x117d3f(0x1dd))]([])),_(this,'roomMembers$',this[_0x117d3f(0x2d1)]['pipe'](I[_0x117d3f(0x139)](vt))),_(this,_0x117d3f(0x1ac),a[_0x117d3f(0x319)]((_0x42f0d8,_0x13155f)=>{const _0x979ba=_0x117d3f,_0x41d808={'eventID':g[_0x979ba(0x24e)][_0x979ba(0x1f5)],'data':{'unitID':this[_0x979ba(0x2ad)],'memberID':this[_0x979ba(0x2e7)][_0x979ba(0x259)](),'selection':B[_0x979ba(0x23a)](_0x42f0d8,_0x13155f[_0x979ba(0x1b9)])}};this[_0x979ba(0x2e7)][_0x979ba(0x339)](_0x41d808,this[_0x979ba(0x2ad)]);},gt)),(this['unitID']=_0x56bba1,this['_session']=_0x29f7f3,this[_0x117d3f(0x399)]=_0x4c4b14,this[_0x117d3f(0x16c)]=_0x3d3558,this[_0x117d3f(0x32b)]=_0x5288e7,this[_0x117d3f(0x368)]=_0x4f78fb,this['_commandService']=_0x496a98,this[_0x117d3f(0x3b0)]=_0x13d8e2);}get[_0x112f11(0x1b7)](){const _0x4b558b=_0x112f11;return this['_cursorInfo$'][_0x4b558b(0x24c)]();}get[_0x112f11(0x2a4)](){const _0x5a15de=_0x112f11;return this['_roomMembers$'][_0x5a15de(0x24c)]();}[_0x112f11(0x2de)](){const _0x2ae72a=_0x112f11;super['dispose'](),this[_0x2ae72a(0x34b)][_0x2ae72a(0x159)](new Map()),this[_0x2ae72a(0x34b)]['complete'](),this[_0x2ae72a(0x2d1)][_0x2ae72a(0x159)]([]),this[_0x2ae72a(0x2d1)]['complete']();}[_0x112f11(0x278)](){const _0x33b445=_0x112f11;this['_init']||(this['_init']=!0x0,this[_0x33b445(0x2e7)][_0x33b445(0x296)][_0x33b445(0x15e)](I['takeUntil'](this[_0x33b445(0x33b)]))['subscribe'](_0x4f684b=>{const _0x15e96e=_0x33b445;_0x4f684b===u[_0x15e96e(0x2b6)]['ONLINE']?this['_toggleOnline']():this[_0x15e96e(0x1b6)]();}),this[_0x33b445(0x2e7)][_0x33b445(0x13d)][_0x33b445(0x15e)](I[_0x33b445(0x2a6)](this[_0x33b445(0x33b)]))['subscribe'](_0x35eb26=>{const _0x2ca4e9=_0x33b445,_0x19752c=_0x35eb26[_0x2ca4e9(0x1ae)];_0x19752c===g[_0x2ca4e9(0x24e)][_0x2ca4e9(0x1f5)]&&this[_0x2ca4e9(0x232)](_0x35eb26),_0x19752c===g[_0x2ca4e9(0x24e)][_0x2ca4e9(0x1fa)]&&this[_0x2ca4e9(0x2a8)](_0x35eb26);}),this[_0x33b445(0x2c6)](),this[_0x33b445(0x2dc)](this[_0x33b445(0x124)][_0x33b445(0x12a)](_0x3cac70=>{const _0x4a0dfd=_0x33b445;if(this[_0x4a0dfd(0x1c3)]&&_0x3cac70['id']===v[_0x4a0dfd(0x15d)]['id']&&_0x3cac70[_0x4a0dfd(0x298)]['unitId']===this[_0x4a0dfd(0x2ad)]){const _0x35804e=_0x3cac70['params'];this[_0x4a0dfd(0x1ac)](_0x35804e['subUnitId'],_0x35804e[_0x4a0dfd(0x199)][0x0]);}})));}[_0x112f11(0x232)](_0x1fb4e9){const _0x384d33=_0x112f11;var _0x1cfe89,_0x42e324;const {memberID:_0x249daa,selection:_0x25bdf9}=_0x1fb4e9[_0x384d33(0x34e)],{sheetName:_0x4d02c3,range:_0x5bd066}=B[_0x384d33(0x256)](_0x25bdf9),_0xae0e34={'name':(_0x42e324=(_0x1cfe89=this[_0x384d33(0x32b)][_0x384d33(0x389)](this[_0x384d33(0x2ad)],_0x249daa))==null?void 0x0:_0x1cfe89[_0x384d33(0x3a3)])!=null?_0x42e324:'Unknown\x20user','range':this[_0x384d33(0x196)](_0x4d02c3,_0x5bd066),'sheetID':_0x4d02c3,'color':this[_0x384d33(0x16c)][_0x384d33(0x364)](_0x249daa),'selection':_0x25bdf9},_0x1e808d=this[_0x384d33(0x1b7)];_0x1e808d[_0x384d33(0x17b)](_0x249daa,_0xae0e34),this[_0x384d33(0x34b)][_0x384d33(0x159)](_0x1e808d);}[_0x112f11(0x2a8)](_0x4fe60a){const _0x2b5882=_0x112f11,{memberID:_0x553281}=_0x4fe60a[_0x2b5882(0x34e)],_0x38ec43=this[_0x2b5882(0x1b7)];_0x38ec43['delete'](_0x553281),this[_0x2b5882(0x34b)][_0x2b5882(0x159)](_0x38ec43);}[_0x112f11(0x196)](_0x52f819,_0x15e7ff){const _0x57067c=_0x112f11;var _0x153fcb,_0x1f3678;const _0x3c0f44=(_0x1f3678=(_0x153fcb=this[_0x57067c(0x368)][_0x57067c(0x307)](this[_0x57067c(0x2ad)]))==null?void 0x0:_0x153fcb[_0x57067c(0x1db)](_0x52f819))==null?void 0x0:_0x1f3678[_0x57067c(0x370)]();return(_0x3c0f44==null?void 0x0:_0x3c0f44[_0x57067c(0x2d2)](_0x52805e=>a[_0x57067c(0x318)][_0x57067c(0x100)](_0x52805e,_0x15e7ff)))||_0x15e7ff;}[_0x112f11(0x2c6)](){const _0x157cce=_0x112f11,_0x1e96c8=new a[(_0x157cce(0x272))](),_0x2231cf=Et(),_0x573ae2=()=>{const _0x34a5f2=_0x157cce;_0x1e96c8['dispose']();const _0x43fb8d=(_0x4af698,_0x5997b3,_0x4a4904,_0x4b0692)=>{const _0x524aa4=_0x29e7;let _0x61c71d=[];switch(_0x4af698['id']){case v[_0x524aa4(0x25c)][_0x524aa4(0x237)]:{_0x61c71d=v[_0x524aa4(0x2dd)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)]['DeleteRangeMoveUpCommandId']:{_0x61c71d=v[_0x524aa4(0x28c)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x1c6)]:{_0x61c71d=v[_0x524aa4(0x1d2)](_0x4af698,_0x4b0692);break;}case v['EffectRefRangId'][_0x524aa4(0x30a)]:{_0x61c71d=v[_0x524aa4(0xfd)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)]['InsertRangeMoveRightCommandId']:{_0x61c71d=v[_0x524aa4(0x171)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x1de)]:{_0x61c71d=v[_0x524aa4(0x369)](_0x4af698,_0x4b0692);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x61c71d=v['handleMoveRange'](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x21a)]:{_0x61c71d=v[_0x524aa4(0x2fa)](_0x4af698,_0x4b0692);break;}case v[_0x524aa4(0x25c)][_0x524aa4(0x2d8)]:{_0x61c71d=v['handleIRemoveRow'](_0x4af698,_0x4b0692);break;}}const _0xc656f3=v[_0x524aa4(0x193)](_0x61c71d,_0x4b0692),_0x395d3f=this[_0x524aa4(0x1b7)][_0x524aa4(0x243)](_0x5997b3);if(_0x395d3f&&_0xc656f3){const _0x469d0f={..._0x395d3f,'range':_0xc656f3};this[_0x524aa4(0x1b7)][_0x524aa4(0x17b)](_0x5997b3,_0x469d0f),_0x2231cf(()=>{const _0x4ea002=_0x524aa4,_0x5ccad1=this[_0x4ea002(0x3b0)][_0x4ea002(0x13c)](_0xc656f3,_0x243780=>(_0x5ccad1[_0x4ea002(0x2de)](),_0x43fb8d(_0x243780,_0x5997b3,_0x4a4904,_0xc656f3)));_0x1e96c8[_0x4ea002(0x234)](_0x5ccad1);});}return{'redos':[],'undos':[]};};this[_0x34a5f2(0x1b7)]['forEach']((_0xe86a83,_0x1977d5)=>{const _0x5e0f75=_0x34a5f2,{range:_0x22dad7,sheetID:_0x1b919e}=_0xe86a83,_0x22c41f=this[_0x5e0f75(0x3b0)][_0x5e0f75(0x13c)](_0x22dad7,_0x5c91df=>(_0x22c41f[_0x5e0f75(0x2de)](),_0x43fb8d(_0x5c91df,_0x1977d5,_0x1b919e,_0x22dad7)));_0x1e96c8['add'](_0x22c41f);});};this[_0x157cce(0x2dc)](a[_0x157cce(0x2e8)](this['_cursorInfo$'][_0x157cce(0x1a4)](()=>{_0x573ae2();})));}[_0x112f11(0x166)](){const _0x639d27=_0x112f11;var _0x4ddaa9,_0x25119b;if(this[_0x639d27(0x1c3)]=!0x0,((_0x4ddaa9=this[_0x639d27(0x368)][_0x639d27(0x299)]())==null?void 0x0:_0x4ddaa9[_0x639d27(0x1d3)]())!==this[_0x639d27(0x2ad)])return;const _0x209ac3=(_0x25119b=this[_0x639d27(0x399)]['get'](v['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x25119b[0x0],_0x165a2f=this[_0x639d27(0x368)][_0x639d27(0x251)](a[_0x639d27(0x128)][_0x639d27(0x2be)])[_0x639d27(0xfb)]();_0x209ac3&&_0x165a2f&&this[_0x639d27(0x1ac)](_0x165a2f['getSheetId'](),_0x209ac3);}[_0x112f11(0x1b6)](){const _0x5d914e=_0x112f11;this[_0x5d914e(0x1c3)]=!0x1;}};ve=mt([y(0x2,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),y(0x3,a[_0x112f11(0x277)](Oe)),y(0x4,a['Inject'](u[_0x112f11(0x2f3)])),y(0x5,a[_0x112f11(0x2cf)]),y(0x6,a[_0x112f11(0x16e)]),y(0x7,a[_0x112f11(0x277)](v[_0x112f11(0x16a)]))],ve);var Ct=Object[_0x112f11(0x265)],pt=(_0x175f3f,_0x2fa676,_0x21f239,_0x3be40b)=>{const _0x413063=_0x112f11;for(var _0x25882a=_0x3be40b>0x1?void 0x0:_0x3be40b?Ct(_0x2fa676,_0x21f239):_0x2fa676,_0x494e19=_0x175f3f[_0x413063(0x132)]-0x1,_0x336a99;_0x494e19>=0x0;_0x494e19--)(_0x336a99=_0x175f3f[_0x494e19])&&(_0x25882a=_0x336a99(_0x25882a)||_0x25882a);return _0x25882a;},ae=(_0x962f99,_0x4c5b2e)=>(_0x424277,_0x220ac7)=>_0x4c5b2e(_0x424277,_0x220ac7,_0x962f99);let F=class extends a['RxDisposable']{constructor(_0x1fff10,_0x1a6cae,_0x5a6eb7){const _0x3849b2=_0x112f11;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new I[(_0x3849b2(0x1e0))]()),(this[_0x3849b2(0x368)]=_0x1fff10,this['_injector']=_0x1a6cae,this['_collabSessionService']=_0x5a6eb7,this[_0x3849b2(0x31e)]());}[_0x112f11(0x2de)](){const _0x16e3de=_0x112f11;super[_0x16e3de(0x2de)](),this[_0x16e3de(0x390)]['complete'](),this[_0x16e3de(0x267)][_0x16e3de(0x163)](_0x1ae7c4=>_0x1ae7c4[_0x16e3de(0x2de)]());}['getCollabCursors$'](_0x486195){const _0x3931e1=_0x112f11;return this[_0x3931e1(0x267)]['has'](_0x486195)?this[_0x3931e1(0x267)]['get'](_0x486195)['cursorInfo$']:this[_0x3931e1(0x390)][_0x3931e1(0x15e)](I['filter'](_0x227052=>_0x227052[_0x3931e1(0x2ad)]===_0x486195),I[_0x3931e1(0x1ce)](_0x28d41e=>_0x28d41e['cursorInfo$']));}['_init'](){const _0x2e7a2a=_0x112f11;this['_univerInstanceService'][_0x2e7a2a(0xf6)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2e7a2a(0x15e)](I[_0x2e7a2a(0x2a6)](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x1a4)](async _0x42573f=>{const _0x167ae1=_0x2e7a2a,_0x134e61=_0x42573f[_0x167ae1(0x1d3)](),_0x1a9725=await this[_0x167ae1(0x2ea)](_0x134e61);this[_0x167ae1(0x390)][_0x167ae1(0x159)](_0x1a9725),this[_0x167ae1(0x267)][_0x167ae1(0x17b)](_0x134e61,_0x1a9725);}),this['_univerInstanceService'][_0x2e7a2a(0xf6)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x17d)])['pipe'](I['takeUntil'](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x15e)](I['filter'](_0x2f4154=>!_0x2f4154[_0x2e7a2a(0x1d3)]()[_0x2e7a2a(0x37b)]('__')))[_0x2e7a2a(0x1a4)](async _0x5643ad=>{const _0x18218c=_0x2e7a2a,_0x5ef9ca=_0x5643ad[_0x18218c(0x1d3)](),_0x46586e=await this[_0x18218c(0x1a2)](_0x5ef9ca);this[_0x18218c(0x390)]['next'](_0x46586e),this[_0x18218c(0x267)]['set'](_0x5ef9ca,_0x46586e);}),I[_0x2e7a2a(0x2bc)](this[_0x2e7a2a(0x368)][_0x2e7a2a(0x146)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x17d)]),this[_0x2e7a2a(0x368)][_0x2e7a2a(0x146)](a[_0x2e7a2a(0x128)][_0x2e7a2a(0x2be)]))[_0x2e7a2a(0x15e)](I['takeUntil'](this[_0x2e7a2a(0x33b)]))[_0x2e7a2a(0x1a4)](_0x427ab4=>{const _0x78d2a1=_0x2e7a2a,_0x1864fa=_0x427ab4[_0x78d2a1(0x1d3)](),_0x5b74ee=this[_0x78d2a1(0x267)][_0x78d2a1(0x243)](_0x1864fa);_0x5b74ee&&(_0x5b74ee[_0x78d2a1(0x2de)](),this[_0x78d2a1(0x267)][_0x78d2a1(0x375)](_0x1864fa));});}async[_0x112f11(0x2ea)](_0x113e5f){const _0x2f1d1d=_0x112f11,_0x5573a3=await this[_0x2f1d1d(0x344)][_0x2f1d1d(0x2a1)](_0x113e5f),_0x139201=this[_0x2f1d1d(0x399)]['createInstance'](ve,_0x113e5f,_0x5573a3);return _0x139201[_0x2f1d1d(0x278)](),_0x139201;}async[_0x112f11(0x1a2)](_0x5c62f7){const _0x4ebe91=_0x112f11,_0x4d91cc=await this[_0x4ebe91(0x344)][_0x4ebe91(0x2a1)](_0x5c62f7),_0x1cdfe8=this['_injector'][_0x4ebe91(0x32a)](me,_0x5c62f7,_0x4d91cc);return _0x1cdfe8[_0x4ebe91(0x278)](),_0x1cdfe8;}};F=pt([ae(0x0,a['IUniverInstanceService']),ae(0x1,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),ae(0x2,a['Inject'](u[_0x112f11(0x12b)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0xf2a38,_0x235370){const _0x227b16=_0x112f11;let {radius:_0x89473c,width:_0x562799,height:_0x42537c}=_0x235370;_0x89473c=_0x89473c!=null?_0x89473c:0x0,_0x562799=_0x562799!=null?_0x562799:0x1e,_0x42537c=_0x42537c!=null?_0x42537c:0x1e;let _0x13c606=0x0,_0x5b8427=0x0,_0x2dc1c0=0x0;_0x13c606=_0x5b8427=_0x2dc1c0=Math[_0x227b16(0x2d0)](_0x89473c,_0x562799/0x2,_0x42537c/0x2),_0xf2a38[_0x227b16(0x1d5)](),_0xf2a38[_0x227b16(0x394)](_0x13c606,0x0),_0xf2a38[_0x227b16(0x2c5)](_0x562799-_0x5b8427,0x0),_0xf2a38[_0x227b16(0x313)](_0x562799-_0x5b8427,_0x5b8427,_0x5b8427,Math['PI']*0x3/0x2,0x0,!0x1),_0xf2a38[_0x227b16(0x2c5)](_0x562799,_0x42537c-_0x2dc1c0),_0xf2a38[_0x227b16(0x313)](_0x562799-_0x2dc1c0,_0x42537c-_0x2dc1c0,_0x2dc1c0,0x0,Math['PI']/0x2,!0x1),_0xf2a38[_0x227b16(0x2c5)](0x0,_0x42537c),_0xf2a38[_0x227b16(0x2c5)](0x0,_0x13c606),_0xf2a38[_0x227b16(0x313)](_0x13c606,_0x13c606,_0x13c606,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xf2a38[_0x227b16(0x1c7)](),_0x235370[_0x227b16(0x352)]&&(_0xf2a38[_0x227b16(0x287)](),_0xf2a38[_0x227b16(0x302)]=_0x235370[_0x227b16(0x352)],_0x235370[_0x227b16(0x169)]==='evenodd'?_0xf2a38[_0x227b16(0x352)](_0x227b16(0x1aa)):_0xf2a38[_0x227b16(0x352)](),_0xf2a38[_0x227b16(0x2eb)]());}class ne extends C[_0x112f11(0x27d)]{constructor(_0x1bed95,_0x207836){const _0x21a81a=_0x112f11;super(_0x1bed95,_0x207836),_(this,_0x21a81a(0x20d)),_(this,_0x21a81a(0x36c)),(this['color']=_0x207836==null?void 0x0:_0x207836[_0x21a81a(0x20d)],this['text']=_0x207836==null?void 0x0:_0x207836[_0x21a81a(0x36c)]);}static[_0x112f11(0x141)](_0x2ee5a6,_0x2bd442){const _0x2fcf1c=_0x112f11,{text:_0x290abb,color:_0x33d568}=_0x2bd442;_0x2ee5a6[_0x2fcf1c(0x287)](),_0x2ee5a6[_0x2fcf1c(0x328)]=_0x2fcf1c(0x392);const _0x24fce2=_0x2ee5a6['measureText'](_0x290abb)[_0x2fcf1c(0x1e1)],_0x28419c=Math['min'](_0x24fce2+0x2*ce,Ne);Ot(_0x2ee5a6,{'height':K,'radius':0x4,'width':_0x28419c,'fill':_0x33d568}),_0x2ee5a6[_0x2fcf1c(0x302)]=_0x2fcf1c(0x120);const _0x33ca99=ce,_0x598ef6=K-Tt,_0x3f4522=Ne-0x2*ce;if(_0x24fce2>_0x3f4522){let _0x54299c='',_0x3c6cf2=0x0;for(const _0x1a1ef6 of _0x290abb){const _0x2bbbd5=_0x2ee5a6[_0x2fcf1c(0x361)](_0x1a1ef6)[_0x2fcf1c(0x1e1)];if(_0x3c6cf2+_0x2bbbd5<=_0x3f4522-_0x2ee5a6[_0x2fcf1c(0x361)]('...')[_0x2fcf1c(0x1e1)])_0x54299c+=_0x1a1ef6,_0x3c6cf2+=_0x2bbbd5;else{_0x54299c+=_0x2fcf1c(0x11c);break;}}_0x2ee5a6[_0x2fcf1c(0x167)](_0x54299c,_0x33ca99,_0x598ef6);}else _0x2ee5a6['fillText'](_0x290abb,_0x33ca99,_0x598ef6);_0x2ee5a6[_0x2fcf1c(0x2eb)]();}[_0x112f11(0x28a)](_0x303d1b){const _0x2f671d=_0x112f11;ne[_0x2f671d(0x141)](_0x303d1b,this);}}const le=_0x112f11(0x18a),Rt=_0x112f11(0x246),bt=_0x112f11(0x152),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0x112f11(0x2ca);class Ue{constructor(_0x1669d1,_0x2eb17c,_0x5c3153,_0x2b3062){const _0x2471ab=_0x112f11;_(this,_0x2471ab(0x3a0),[]),_(this,_0x2471ab(0x1af),null),_(this,_0x2471ab(0x30f),null),_(this,'_anchorDot',null),_(this,_0x2471ab(0x2c0),null),_(this,_0x2471ab(0x235),null),(this['_cursor']=_0x1669d1,this[_0x2471ab(0x39b)]=_0x2eb17c,this[_0x2471ab(0x21b)]=_0x5c3153,this[_0x2471ab(0x33c)]=_0x2b3062,this['_render']());}set['_hover'](_0x216b5b){const _0x1f4486=_0x112f11;_0x216b5b?(this[_0x1f4486(0x236)]&&this[_0x1f4486(0x236)][_0x1f4486(0x1a9)](),this[_0x1f4486(0x30f)]&&this[_0x1f4486(0x30f)][_0x1f4486(0xf3)]()):(this[_0x1f4486(0x236)]&&this[_0x1f4486(0x236)][_0x1f4486(0xf3)](),this[_0x1f4486(0x30f)]&&this[_0x1f4486(0x30f)]['hide']());}[_0x112f11(0x2de)](){const _0x5bbf32=_0x112f11;for(const _0x272dd7 of this['_shapes'])_0x272dd7[_0x5bbf32(0x2de)]();this['_textBubble']&&this[_0x5bbf32(0x30f)]['dispose'](),this[_0x5bbf32(0x236)]&&this[_0x5bbf32(0x236)]['dispose'](),this[_0x5bbf32(0x1af)]&&this['_anchor'][_0x5bbf32(0x2de)](),this[_0x5bbf32(0x235)]&&this[_0x5bbf32(0x235)]();}[_0x112f11(0x162)](){const _0x270551=_0x112f11;var _0x444738;const {_docSkeleton:_0x219627,_document:_0x652f33}=this,{color:_0x5053ad,name:_0x550b72,ranges:_0x4bb485}=this[_0x270551(0x384)],_0x326991=_0x652f33['getOffsetConfig'](),{docsLeft:_0x5bc1ae,docsTop:_0x1e6e49}=_0x326991,_0x2c6d1a=new p['NodePositionConvertToCursor'](_0x326991,_0x219627);for(const {startOffset:_0x2b65ee,endOffset:_0x584b00,rangeType:_0x8e5ccd,segmentId:_0x53d5bc,segmentPage:_0x69580b,collapsed:_0x2c6071,isActive:_0x2200f0}of _0x4bb485){const _0x27e7c5=_0x219627[_0x270551(0x195)](_0x2b65ee,!0x0,_0x53d5bc,_0x69580b);let _0x3afd0c=_0x219627[_0x270551(0x195)](_0x584b00,!0x0,_0x53d5bc,_0x69580b);if(_0x3afd0c==null&&(_0x3afd0c=_0x219627[_0x270551(0x195)](_0x584b00-0x1,!0x1,_0x53d5bc,_0x69580b)),_0x2200f0){const {contentBoxPointGroup:_0x57d534}=_0x2c6d1a[_0x270551(0x343)](_0x3afd0c,_0x3afd0c);if(_0x57d534[_0x270551(0x132)]===0x0)continue;this[_0x270551(0x244)](_0x5053ad,_0x57d534,_0x5bc1ae,_0x1e6e49,_0x550b72),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x27e7c5&&_0x3afd0c){if(_0x8e5ccd===a['DOC_RANGE_TYPE'][_0x270551(0x177)]){const _0x57be9c=new p[(_0x270551(0x150))](_0x326991,_0x219627),{pointGroup:_0x20e24f}=(_0x444738=_0x57be9c[_0x270551(0x343)](_0x27e7c5,_0x3afd0c))!=null?_0x444738:{};if(_0x20e24f==null||_0x20e24f[_0x270551(0x132)]===0x0)continue;this['_drawRectRange'](_0x5053ad,_0x20e24f,_0x5bc1ae,_0x1e6e49);}else{if(!_0x2c6071){const {borderBoxPointGroup:_0x5ec46b}=_0x2c6d1a[_0x270551(0x343)](_0x27e7c5,_0x3afd0c);if(_0x5ec46b[_0x270551(0x132)]===0x0)continue;this[_0x270551(0x31f)](_0x5053ad,_0x5ec46b,_0x5bc1ae,_0x1e6e49);}}}}}['_drawAnchor'](_0x2b3d14,_0x3c4f2d,_0x346791,_0x1a2b82,_0x463339){const _0x4b04f6=_0x112f11,_0xf41096=this[_0x4b04f6(0x336)](_0x3c4f2d),{left:_0x5e865a,top:_0x3ebaad,height:_0x1fc6b3}=_0xf41096,_0x29cbc9=this['_getScale'](),_0x35d290=Nt/_0x29cbc9,_0x50ee1d=new C[(_0x4b04f6(0x300))](le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82,'height':_0x1fc6b3,'width':Dt,'fill':_0x2b3d14||C[_0x4b04f6(0x164)](a[_0x4b04f6(0x2c4)][_0x4b04f6(0x3a4)],0x0),'strokeWidth':_0x35d290,'stroke':Ut,'evented':!0x0});this[_0x4b04f6(0x1af)]=_0x50ee1d,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0x50ee1d,p[_0x4b04f6(0x138)]);const _0x5285ae=new C[(_0x4b04f6(0x300))](le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82-_e/0x2,'height':_e,'width':_e,'fill':_0x2b3d14||C['getColor'](a[_0x4b04f6(0x2c4)][_0x4b04f6(0x3a4)],0x0),'strokeWidth':0x0,'stroke':_0x2b3d14||C[_0x4b04f6(0x164)](a['COLORS'][_0x4b04f6(0x3a4)],0x0),'evented':!0x1});this[_0x4b04f6(0x236)]=_0x5285ae,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0x5285ae,p[_0x4b04f6(0x138)]);const _0xb90cc9=new ne(le+a[_0x4b04f6(0x397)](H),{'left':_0x5e865a+_0x346791-_0x35d290,'top':_0x3ebaad+_0x1a2b82-K,'text':_0x463339,'color':_0x2b3d14});this['_textBubble']=_0xb90cc9,this[_0x4b04f6(0x39b)][_0x4b04f6(0x35b)](_0xb90cc9,p[_0x4b04f6(0x138)]),this[_0x4b04f6(0x241)]=!0x1;}[_0x112f11(0x29d)](){const _0x2b42ed=_0x112f11,_0x48c51e=this[_0x2b42ed(0x1af)][_0x2b42ed(0x334)][_0x2b42ed(0x39c)](()=>{this['_hover']=!0x0;}),_0x393a05=this[_0x2b42ed(0x1af)][_0x2b42ed(0x18c)][_0x2b42ed(0x39c)](()=>{const _0x3c2018=_0x2b42ed;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x3c2018(0x2c0)]=setTimeout(()=>{const _0x61b8b2=_0x3c2018;this[_0x61b8b2(0x241)]=!0x1;},0x7d0);});return()=>{const _0x1282b1=_0x2b42ed;_0x48c51e[_0x1282b1(0x273)](),_0x393a05[_0x1282b1(0x273)]();};}[_0x112f11(0x31f)](_0x1feb9c,_0x3cc776,_0x5c800f,_0x52bff0){const _0x54a99b=_0x112f11,_0x51631d=new a[(_0x54a99b(0x37a))](_0x1feb9c)[_0x54a99b(0x2a5)](0.2)[_0x54a99b(0x252)](),_0x33e84d=new C[(_0x54a99b(0x2c8))](Rt+a[_0x54a99b(0x397)](H),{'pointsGroup':_0x3cc776,'fill':_0x51631d||C['getColor'](a[_0x54a99b(0x2c4)]['black'],0.2),'left':_0x5c800f,'top':_0x52bff0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x54a99b(0x3a0)][_0x54a99b(0x2cd)](_0x33e84d),this[_0x54a99b(0x39b)][_0x54a99b(0x35b)](_0x33e84d,p[_0x54a99b(0x138)]);}[_0x112f11(0x2bf)](_0x5038e1,_0x41e6cb,_0x4b10c1,_0x3096d9){const _0x50f564=_0x112f11,_0x4a0cc1=new a['ColorKit'](_0x5038e1)[_0x50f564(0x2a5)](0.2)[_0x50f564(0x252)](),_0xf15c70=new C['RegularPolygon'](bt+a[_0x50f564(0x397)](H),{'pointsGroup':_0x41e6cb,'fill':_0x4a0cc1||C[_0x50f564(0x164)](a[_0x50f564(0x2c4)][_0x50f564(0x3a4)],0.2),'left':_0x4b10c1,'top':_0x3096d9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x50f564(0x3a0)][_0x50f564(0x2cd)](_0xf15c70),this['_scene'][_0x50f564(0x35b)](_0xf15c70,p[_0x50f564(0x138)]);}[_0x112f11(0x336)](_0x4d6f57){const _0x2ed6e0=_0x4d6f57[0x0],_0x1c41b3=_0x2ed6e0[0x0],_0x56860a=_0x2ed6e0[0x2],{x:_0x1287e1,y:_0x16f985}=_0x1c41b3,{x:_0x48b063,y:_0x8a4ba9}=_0x56860a;return{'left':_0x1287e1,'top':_0x16f985,'width':_0x48b063-_0x1287e1,'height':_0x8a4ba9-_0x16f985};}[_0x112f11(0x1cb)](){const _0x5189bf=_0x112f11,{scaleX:_0x49ed6f,scaleY:_0x3aa864}=this[_0x5189bf(0x39b)][_0x5189bf(0x109)]();return Math[_0x5189bf(0x12e)](_0x49ed6f,_0x3aa864);}}var Lt=Object[_0x112f11(0x265)],Mt=(_0x1750ec,_0x45be3c,_0x321544,_0x50bb1c)=>{const _0x2c2068=_0x112f11;for(var _0x412723=_0x50bb1c>0x1?void 0x0:_0x50bb1c?Lt(_0x45be3c,_0x321544):_0x45be3c,_0xc8712=_0x1750ec[_0x2c2068(0x132)]-0x1,_0x997ded;_0xc8712>=0x0;_0xc8712--)(_0x997ded=_0x1750ec[_0xc8712])&&(_0x412723=_0x997ded(_0x412723)||_0x412723);return _0x412723;},z=(_0x4875dc,_0x272070)=>(_0x45b963,_0xea378a)=>_0x272070(_0x45b963,_0xea378a,_0x4875dc);let ge=class extends a[_0x112f11(0x2a7)]{constructor(_0xf48ac0,_0x295175,_0x183ec0,_0x298a04,_0x4217a6){const _0x2b3ee6=_0x112f11;super(),_(this,_0x2b3ee6(0x382),[]),_(this,_0x2b3ee6(0x1a0),[]),(this[_0x2b3ee6(0x253)]=_0xf48ac0,this[_0x2b3ee6(0x153)]=_0x295175,this[_0x2b3ee6(0x2e2)]=_0x183ec0,this[_0x2b3ee6(0x124)]=_0x298a04,this[_0x2b3ee6(0x297)]=_0x4217a6,this[_0x2b3ee6(0x31e)]());}[_0x112f11(0x31e)](){const _0x20fe1b=_0x112f11,_0x2f320c=this[_0x20fe1b(0x253)][_0x20fe1b(0x1bf)],_0x52b98b=this[_0x20fe1b(0x153)];this[_0x20fe1b(0x2dc)](I[_0x20fe1b(0x221)]([this[_0x20fe1b(0x2e2)]['getCollabCursors$'](_0x2f320c),this[_0x20fe1b(0x297)][_0x20fe1b(0x11d)]])['pipe']($[_0x20fe1b(0x2a9)](([_0x381850,_0x4d3752])=>({'skeleton':_0x52b98b['getSkeleton'](),'cursors':[..._0x381850['values']()][_0x20fe1b(0xfe)](_0x241667=>({..._0x241667,'color':this['_themeService'][_0x20fe1b(0x168)](_0x241667[_0x20fe1b(0x20d)])}))})))[_0x20fe1b(0x1a4)](_0x14f530=>{if(this['_removeCollabCursors'](),_0x14f530){const {skeleton:_0x48cfe5,cursors:_0x33fa38}=_0x14f530;this['_updateCollabCursors'](_0x48cfe5,_0x33fa38);}})),this[_0x20fe1b(0x326)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4adeb7,_0x1e08a8){const _0x2b18b5=_0x112f11,{scene:_0x364598,mainComponent:_0x2a340d}=this['_context'],_0x693970=_0x1e08a8[_0x2b18b5(0x2a9)](_0x5033b2=>new Ue(_0x5033b2,_0x364598,_0x4adeb7,_0x2a340d));this[_0x2b18b5(0x382)]=_0x693970,this[_0x2b18b5(0x1a0)]=_0x1e08a8;}[_0x112f11(0x15a)](){const _0x7e6c2a=_0x112f11;this[_0x7e6c2a(0x21c)]();const {scene:_0x5a6413,mainComponent:_0x319652}=this[_0x7e6c2a(0x253)],_0xb6cacf=this[_0x7e6c2a(0x153)][_0x7e6c2a(0x340)](),_0x449c99=this[_0x7e6c2a(0x1a0)][_0x7e6c2a(0x2a9)](_0x3c5414=>new Ue(_0x3c5414,_0x5a6413,_0xb6cacf,_0x319652));this['_cursorShapes']=_0x449c99;}[_0x112f11(0x21c)](){const _0x397f8c=_0x112f11;this[_0x397f8c(0x382)][_0x397f8c(0x163)](_0x573c7f=>_0x573c7f[_0x397f8c(0x2de)]()),this[_0x397f8c(0x382)]=[];}[_0x112f11(0x1a7)](){const _0x351d9e=_0x112f11,_0x349955=[p[_0x351d9e(0x155)]['id']];this[_0x351d9e(0x2dc)](this['_commandService'][_0x351d9e(0x12a)](_0x3fb38a=>{const _0x569dae=_0x351d9e;_0x349955['includes'](_0x3fb38a['id'])&&_0x3fb38a[_0x569dae(0x298)][_0x569dae(0x1bf)]===this[_0x569dae(0x253)][_0x569dae(0x1bf)]&&this[_0x569dae(0x15a)]();}));}['_initResize'](){const _0xf9ab81=_0x112f11;this[_0xf9ab81(0x2dc)](a[_0xf9ab81(0x2ce)](this[_0xf9ab81(0x253)][_0xf9ab81(0x25a)][_0xf9ab81(0x125)])[_0xf9ab81(0x15e)]($[_0xf9ab81(0x3a8)](_0x5484bb=>_0x5484bb['type']===C[_0xf9ab81(0x2a0)][_0xf9ab81(0x1bd)]),$[_0xf9ab81(0x172)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ge=Mt([z(0x1,a[_0x112f11(0x277)](V[_0x112f11(0x33e)])),z(0x2,a[_0x112f11(0x277)](F)),z(0x3,a[_0x112f11(0x16e)]),z(0x4,a[_0x112f11(0x277)](a[_0x112f11(0x303)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0x112f11(0x27d)]{constructor(_0x4d7c16,_0x35791d){const _0x162ac2=_0x112f11;super(_0x4d7c16,_0x35791d),_(this,'_color'),_(this,_0x162ac2(0xf8),!0x1),_(this,_0x162ac2(0x323)),_(this,_0x162ac2(0x1c5),''),_(this,_0x162ac2(0x182),'top'),_(this,_0x162ac2(0x123)),(_0x35791d&&this[_0x162ac2(0x1d4)](_0x35791d),this[_0x162ac2(0x334)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x162ac2(0x18c)][_0x162ac2(0x39c)](()=>this[_0x162ac2(0x1d4)]({'hovered':!0x1})));}['setShapeProps'](_0x10bc8b){const _0xd816ed=_0x112f11;var _0x16ac3e,_0x548a85,_0x4cc8a2,_0x32b512,_0x5ae56c,_0xf3fd6d;this[_0xd816ed(0x270)]=(_0x16ac3e=_0x10bc8b[_0xd816ed(0x20d)])!=null?_0x16ac3e:this[_0xd816ed(0x270)],this[_0xd816ed(0xf8)]=(_0x548a85=_0x10bc8b['hovered'])!=null?_0x548a85:this[_0xd816ed(0xf8)],this[_0xd816ed(0x323)]=(_0x4cc8a2=_0x10bc8b[_0xd816ed(0x1b9)])!=null?_0x4cc8a2:this[_0xd816ed(0x323)],this[_0xd816ed(0x1c5)]=(_0x32b512=_0x10bc8b['name'])!=null?_0x32b512:this[_0xd816ed(0x1c5)],this[_0xd816ed(0x182)]=(_0x5ae56c=_0x10bc8b[_0xd816ed(0x37f)])!=null?_0x5ae56c:this[_0xd816ed(0x182)],this[_0xd816ed(0x123)]=(_0xf3fd6d=_0x10bc8b[_0xd816ed(0x207)])!=null?_0xf3fd6d:this[_0xd816ed(0x123)],this[_0xd816ed(0x380)]({'width':_0x10bc8b[_0xd816ed(0x1e1)],'height':_0x10bc8b[_0xd816ed(0x18e)]});}[_0x112f11(0x14b)](_0x469543){const _0x3a227c=_0x112f11,{row:_0x1a00db,column:_0x115391}=_0x469543;if(_0x1a00db>=this[_0x3a227c(0x323)][_0x3a227c(0x315)]&&_0x1a00db<=this[_0x3a227c(0x323)]['endRow']&&_0x115391>=this[_0x3a227c(0x323)][_0x3a227c(0x2c7)]&&_0x115391<=this[_0x3a227c(0x323)]['endColumn']){this[_0x3a227c(0x1d4)]({'hovered':!0x0});return;}this[_0x3a227c(0x1d4)]({'hovered':!0x1});}[_0x112f11(0x22f)](_0x197835){return!0x1;}[_0x112f11(0x28a)](_0x3f2ce9){const _0x507288=_0x112f11;C[_0x507288(0x300)][_0x507288(0x141)](_0x3f2ce9,{'width':this['width'],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x507288(0x270)],'evented':!0x1,'fill':this[_0x507288(0x123)]}),this[_0x507288(0xf8)]&&(_0x3f2ce9[_0x507288(0x287)](),_0x3f2ce9[_0x507288(0x36f)](0x1,0x0,0x0,0x1,this['width'],this[_0x507288(0x182)]==='bottom'?0x0:-K),ne[_0x507288(0x141)](_0x3f2ce9,{'text':this[_0x507288(0x1c5)],'color':this[_0x507288(0x270)]}),_0x3f2ce9[_0x507288(0x2eb)]());}}var wt=Object[_0x112f11(0x265)],yt=(_0x564172,_0x3a6ae2,_0x4c52ba,_0x30e663)=>{const _0x3262cb=_0x112f11;for(var _0x1e3ff4=_0x30e663>0x1?void 0x0:_0x30e663?wt(_0x3a6ae2,_0x4c52ba):_0x3a6ae2,_0x1687af=_0x564172[_0x3262cb(0x132)]-0x1,_0x40cc6e;_0x1687af>=0x0;_0x1687af--)(_0x40cc6e=_0x564172[_0x1687af])&&(_0x1e3ff4=_0x40cc6e(_0x1e3ff4)||_0x1e3ff4);return _0x1e3ff4;},he=(_0x1afc71,_0x407f77)=>(_0x453422,_0x54728c)=>_0x407f77(_0x453422,_0x54728c,_0x1afc71);const xt=0x1389;let Ee=class extends a[_0x112f11(0x2a7)]{constructor(_0x4bef08,_0x3f5baf,_0x4d8489,_0x7468e3){const _0x78563d=_0x112f11;super(),_(this,'_cursors',new Set()),_(this,_0x78563d(0x381),null),(this[_0x78563d(0x253)]=_0x4bef08,this[_0x78563d(0x1f0)]=_0x3f5baf,this[_0x78563d(0x2e2)]=_0x4d8489,this[_0x78563d(0x297)]=_0x7468e3,this[_0x78563d(0x31e)]());}[_0x112f11(0x31e)](){const _0x5944ff=_0x112f11;this['_sheetSkeletonManagerService'][_0x5944ff(0x27e)][_0x5944ff(0x15e)]($[_0x5944ff(0x2a6)](this['dispose$']),$[_0x5944ff(0x1ce)](_0x4207df=>{const _0x47f5f5=_0x5944ff;if(_0x4207df){const _0x146263=_0x4207df['sheetId'];return I[_0x47f5f5(0x221)](this[_0x47f5f5(0x2e2)][_0x47f5f5(0x261)](this[_0x47f5f5(0x253)][_0x47f5f5(0x1bf)]),this[_0x47f5f5(0x297)][_0x47f5f5(0x11d)])['pipe']($[_0x47f5f5(0x2a9)](([_0x5860c8,_0xd6f5e8])=>{const _0x585691=_0x47f5f5,_0x522cad=new Map();return _0x5860c8[_0x585691(0x163)]((_0x476484,_0x32d9be)=>{const _0x5bbb3c=_0x585691;if(_0x476484[_0x5bbb3c(0x239)]===_0x146263){const _0x2034ee={..._0x476484};_0x2034ee['color']=this[_0x5bbb3c(0x297)][_0x5bbb3c(0x168)](_0x476484[_0x5bbb3c(0x20d)]),_0x522cad[_0x5bbb3c(0x17b)](_0x32d9be,_0x2034ee);}}),{'skeleton':_0x4207df,'cursors':_0x522cad};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4ba84d,cursors:_0xb05eb9})=>{const _0x4bc156=_0x5944ff;this[_0x4bc156(0x21c)](),_0x4ba84d&&this[_0x4bc156(0x1f8)](_0x4ba84d,_0xb05eb9);}),this[_0x5944ff(0x1f0)]['currentSkeleton$'][_0x5944ff(0x1a4)](_0xaa4ef3=>{const _0xb6b9fc=_0x5944ff;if(_0xaa4ef3==null)return;const {skeleton:_0x1de9f8}=_0xaa4ef3,{scene:_0x59829}=this[_0xb6b9fc(0x253)];_0x59829['onPointerMove$'][_0xb6b9fc(0x39c)](a[_0xb6b9fc(0x319)](_0x5224e9=>{const _0x4596a2=_0xb6b9fc;var _0x249d0a,_0x5d9f74;const {offsetX:_0x10f323,offsetY:_0xd3cc0}=_0x5224e9,{x:_0x504c86,y:_0x5cf0dd}=_0x59829[_0x4596a2(0x1cf)](C[_0x4596a2(0x135)][_0x4596a2(0x2e9)]([_0x10f323,_0xd3cc0])),{scaleX:_0x46d5c6,scaleY:_0x4056c8}=_0x59829[_0x4596a2(0x109)](),_0x250d5f=_0x59829[_0x4596a2(0x258)](C[_0x4596a2(0x126)]['VIEW_MAIN']),_0x6cdaf4=_0x59829[_0x4596a2(0x20b)](C[_0x4596a2(0x135)][_0x4596a2(0x2e9)]([_0x504c86,_0x5cf0dd]),_0x250d5f),_0x3555c6=_0x1de9f8[_0x4596a2(0x29c)](_0x10f323,_0xd3cc0,_0x46d5c6,_0x4056c8,_0x6cdaf4);((_0x249d0a=this[_0x4596a2(0x381)])==null?void 0x0:_0x249d0a[_0x4596a2(0x274)])===_0x3555c6[_0x4596a2(0x274)]&&((_0x5d9f74=this['_lastPointer'])==null?void 0x0:_0x5d9f74[_0x4596a2(0x1f2)])===_0x3555c6[_0x4596a2(0x1f2)]||this['_cursors'][_0x4596a2(0x163)](_0x405a72=>{const _0x9f3ebf=_0x4596a2;_0x405a72[_0x9f3ebf(0x14b)](_0x3555c6);});},0x64));});}[_0x112f11(0x1f8)](_0x25ce95,_0x1d85e8){const _0x514d5e=_0x112f11;var _0x1aa799;const _0x407c77=(_0x1aa799=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x1aa799['skeleton'];if(!_0x407c77)return;const _0x39cbf8=this[_0x514d5e(0x240)]();if(!_0x39cbf8)return;this[_0x514d5e(0x1a0)]['forEach'](_0x12f921=>{const _0x4b6472=_0x514d5e;_0x12f921[_0x4b6472(0x129)]();});const {scene:_0x4e2fd9}=_0x39cbf8,_0x1042f8=$t(Array['from'](_0x1d85e8[_0x514d5e(0x1bb)]()))[_0x514d5e(0x2a9)](_0x32e519=>{const _0x196241=_0x514d5e,{color:_0x3966b2,range:_0x554e18,name:_0x1e5c50,selection:_0x513c01,sheetID:_0x304429}=_0x32e519,{startColumn:_0x409d90,startRow:_0x592a70,endColumn:_0x1d0585,endRow:_0x2edf25}=_0x554e18,_0x6d64a9=J['getCoordByCell'](_0x592a70,_0x409d90,_0x4e2fd9,_0x407c77),_0x34a45c=J[_0x196241(0x1b8)](_0x2edf25,_0x1d0585,_0x4e2fd9,_0x407c77),{columnHeaderHeightAndMarginTop:_0x56e724}=_0x407c77,{startX:_0x59c67c,startY:_0x30180c}=_0x6d64a9,{endX:_0x5d028e,endY:_0x5ec5db}=_0x34a45c,_0x57753d=_0x5d028e-_0x59c67c,_0x94706f=_0x5ec5db-_0x30180c,_0x147bb1={'labelPosition':_0x30180c-_0x56e724>=K?'top':_0x196241(0x201),'sheetID':_0x304429,'range':_0x554e18,'color':_0x3966b2,'name':_0x1e5c50,'selection':_0x513c01,'left':_0x59c67c,'top':_0x30180c,'width':_0x57753d,'height':_0x94706f,'evented':!0x1,'zIndex':xt};return new Fe(_0x1e5c50,_0x147bb1);});_0x4e2fd9[_0x514d5e(0x2e1)](_0x1042f8,At),this[_0x514d5e(0x1a0)]=new Set(_0x1042f8);}['_removeCollabCursors'](){const _0x29fa58=_0x112f11;var _0x20455d;(_0x20455d=this[_0x29fa58(0x1a0)])==null||_0x20455d['forEach'](_0x479867=>_0x479867[_0x29fa58(0x2de)]());}[_0x112f11(0x240)](){const _0x11120e=_0x112f11;return J['getSheetObject'](this['_context']['unit'],this[_0x11120e(0x253)]);}};Ee=yt([he(0x1,a[_0x112f11(0x277)](J[_0x112f11(0x3aa)])),he(0x2,a[_0x112f11(0x277)](F)),he(0x3,a[_0x112f11(0x277)](a[_0x112f11(0x303)]))],Ee);function $t(_0x12ca83){const _0x357338=_0x112f11,_0x3a18c4=new Map();return _0x12ca83['forEach'](_0x1c0953=>{const _0x1fff7b=_0x29e7;if(_0x3a18c4[_0x1fff7b(0x3b1)](_0x1c0953[_0x1fff7b(0x301)])){const _0x3ff7f9=_0x3a18c4[_0x1fff7b(0x243)](_0x1c0953[_0x1fff7b(0x301)]);_0x3ff7f9[_0x1fff7b(0x3a3)]+=',\x20'+_0x1c0953[_0x1fff7b(0x3a3)];}else _0x3a18c4[_0x1fff7b(0x17b)](_0x1c0953['selection'],_0x1c0953);}),Array[_0x357338(0x286)](_0x3a18c4['values']());}var Bt=Object[_0x112f11(0x265)],Ft=(_0x2b465f,_0x584584,_0x37ea73,_0x127c40)=>{const _0x356a3b=_0x112f11;for(var _0x3aeb2a=_0x127c40>0x1?void 0x0:_0x127c40?Bt(_0x584584,_0x37ea73):_0x584584,_0x196ff0=_0x2b465f[_0x356a3b(0x132)]-0x1,_0x30bbd8;_0x196ff0>=0x0;_0x196ff0--)(_0x30bbd8=_0x2b465f[_0x196ff0])&&(_0x3aeb2a=_0x30bbd8(_0x3aeb2a)||_0x3aeb2a);return _0x3aeb2a;},x=(_0x30f6d8,_0xa34841)=>(_0x4f243f,_0x4f5bf9)=>_0xa34841(_0x4f243f,_0x4f5bf9,_0x30f6d8);let Z=class extends a[_0x112f11(0x18b)]{constructor(_0x1550e9,_0x5dcbb2,_0x596827,_0x518b5b,_0x475a57,_0x422622){const _0x4688a7=_0x112f11;super(),this[_0x4688a7(0x376)]=_0x1550e9,this[_0x4688a7(0x26d)]=_0x5dcbb2,this[_0x4688a7(0x1e2)]=_0x596827,this[_0x4688a7(0x248)]=_0x518b5b,this[_0x4688a7(0x19b)]=_0x475a57,this[_0x4688a7(0x206)]=_0x422622,this[_0x4688a7(0x1e4)](),this[_0x4688a7(0x2f4)]();}['_setupBeforeClosingHandler'](){const _0x8e361f=_0x112f11;this[_0x8e361f(0x2dc)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x42e01b=_0x8e361f;if(this[_0x42e01b(0x26d)]['saveTaskMap']['size'])return this[_0x42e01b(0x206)]['t'](_0x42e01b(0x175));}));}[_0x112f11(0x2f4)](){const _0x5e0364=_0x112f11;this[_0x5e0364(0x2dc)](this['_collaborationUIEventService'][_0x5e0364(0x13d)][_0x5e0364(0x1a4)](_0x41baf8=>{const _0x32ac78=_0x5e0364;_0x41baf8['id']===u['CollaborationUIEventId'][_0x32ac78(0x310)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T['MessageType'][_0x32ac78(0x2ee)],'content':this['_localeService']['t'](_0x32ac78(0x29f))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)]['CLOSE_ROOM']&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)]['Warning'],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x148))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x317)]&&this[_0x32ac78(0x19b)][_0x32ac78(0xf3)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x284)),'type':_0x32ac78(0x351),'duration':0x0}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x34c)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)]['Error'],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x148))+'('+_0x41baf8['data']+')'}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x154)]&&this[_0x32ac78(0x248)]['show']({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x2ee)],'content':this['_localeService']['t'](_0x41baf8[_0x32ac78(0x34e)]||'')}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x2ba)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x2ee)],'content':this['_localeService']['t']('session.will-retry')}),_0x41baf8['id']===u[_0x32ac78(0x2b5)]['SOCKET_FAILED']&&this['_messageService'][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x245)],'content':this[_0x32ac78(0x206)]['t'](_0x32ac78(0x2c9))}),_0x41baf8['id']===u[_0x32ac78(0x2b5)][_0x32ac78(0x324)]&&this[_0x32ac78(0x248)][_0x32ac78(0xf3)]({'type':T[_0x32ac78(0x2e0)][_0x32ac78(0x245)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};Z=Ft([x(0x0,R['IBeforeCloseService']),x(0x1,u[_0x112f11(0x26c)]),x(0x2,a[_0x112f11(0x277)](u[_0x112f11(0x26b)])),x(0x3,R[_0x112f11(0x2ef)]),x(0x4,R[_0x112f11(0x157)]),x(0x5,a['Inject'](a[_0x112f11(0x24d)]))],Z);const kt=_0x112f11(0x29a),Le={};var jt=Object[_0x112f11(0x265)],Yt=(_0x46b632,_0x211ba1,_0x89f82c,_0x17fe31)=>{const _0x4833f1=_0x112f11;for(var _0x4b7ace=_0x17fe31>0x1?void 0x0:_0x17fe31?jt(_0x211ba1,_0x89f82c):_0x211ba1,_0x1c6f52=_0x46b632[_0x4833f1(0x132)]-0x1,_0x50436e;_0x1c6f52>=0x0;_0x1c6f52--)(_0x50436e=_0x46b632[_0x1c6f52])&&(_0x4b7ace=_0x50436e(_0x4b7ace)||_0x4b7ace);return _0x4b7ace;},Me=(_0x2243e2,_0xe4d3b4)=>(_0x2a2def,_0x21909e)=>_0xe4d3b4(_0x2a2def,_0x21909e,_0x2243e2);let Q=class{constructor(_0x5ca376,_0xe2e4c3){const _0x5d2a1d=_0x112f11;this['_transformService']=_0x5ca376,this[_0x5d2a1d(0x2ed)]=_0xe2e4c3;}[_0x112f11(0x357)](_0x44856e){const _0x1f905c=_0x112f11;this[_0x1f905c(0xf9)](_0x44856e),this[_0x1f905c(0xf7)](_0x44856e);}['transformRemoteChangeset'](_0x57781a){const _0x10c35b=_0x112f11,{unitID:_0x40371f}=_0x57781a,_0x48c049=this[_0x10c35b(0x2ed)][_0x10c35b(0x1d0)](_0x40371f)[_0x10c35b(0x2f0)](p[_0x10c35b(0x2cb)]),{redoCache:_0x2e6ba9}=_0x48c049[_0x10c35b(0x215)]();if(_0x2e6ba9['length']===0x0)return _0x57781a;let _0x5e4f74=a[_0x10c35b(0x22d)][_0x10c35b(0x228)](_0x57781a[_0x10c35b(0x30d)][0x0]);for(let _0x16de05=0x0;_0x16de05<_0x2e6ba9[_0x10c35b(0x132)];_0x16de05++){const _0x1316e5={'id':_0x10c35b(0x2b0),'params':{..._0x2e6ba9[_0x16de05]}},_0x38aea8=this['_transformService'][_0x10c35b(0x1f4)](_0x5e4f74,_0x1316e5,!0x1);if(g[_0x10c35b(0x1dc)](_0x38aea8))throw _0x38aea8[_0x10c35b(0x351)];_0x5e4f74=_0x38aea8[_0x10c35b(0x35f)];}return{...a[_0x10c35b(0x22d)][_0x10c35b(0x228)](_0x57781a),'mutations':[_0x5e4f74]};}[_0x112f11(0xf9)](_0x10cecf){const _0x236e09=_0x112f11,{unitID:_0x368484}=_0x10cecf,_0x5340a8=this[_0x236e09(0x2ed)][_0x236e09(0x1d0)](_0x368484)[_0x236e09(0x2f0)](p['DocIMEInputManagerService']),{undoCache:_0x56b045,redoCache:_0x586c57}=_0x5340a8[_0x236e09(0x215)]();if(_0x56b045[_0x236e09(0x132)]===0x0||_0x586c57[_0x236e09(0x132)]===0x0)return;const _0x1a7531=[],_0x9e4622=[];let _0x4a267f=a[_0x236e09(0x22d)]['deepClone'](_0x10cecf[_0x236e09(0x30d)][0x0]),_0x471dca=a[_0x236e09(0x22d)][_0x236e09(0x228)](_0x10cecf[_0x236e09(0x30d)][0x0]);for(let _0xe6f88=_0x56b045[_0x236e09(0x132)]-0x1;_0xe6f88>=0x0;_0xe6f88--){const _0x234eb4={'id':_0x236e09(0x2b0),'params':{..._0x56b045[_0xe6f88]}},_0x18ff25={'id':_0x236e09(0x2b0),'params':{..._0x586c57[_0xe6f88]}},_0x355d6e=this[_0x236e09(0x14e)]['transformMutation'](_0x4a267f,_0x234eb4,!0x1),_0x56c18b=this[_0x236e09(0x14e)][_0x236e09(0x1f4)](_0x471dca,_0x18ff25,!0x1);if(g[_0x236e09(0x1dc)](_0x355d6e))throw _0x355d6e['error'];if(g[_0x236e09(0x1dc)](_0x56c18b))throw _0x56c18b[_0x236e09(0x351)];_0x1a7531[_0x236e09(0x28b)](_0x355d6e[_0x236e09(0x15f)][_0x236e09(0x298)]),_0x9e4622[_0x236e09(0x28b)](_0x56c18b[_0x236e09(0x15f)][_0x236e09(0x298)]),_0x4a267f=_0x355d6e[_0x236e09(0x35f)],_0x471dca=_0x56c18b[_0x236e09(0x35f)];}_0x5340a8[_0x236e09(0x20e)]({'undoCache':_0x1a7531,'redoCache':_0x9e4622});}[_0x112f11(0xf7)](_0x78036d){const _0x2db07b=_0x112f11,{unitID:_0x1a55a6}=_0x78036d,_0x378f6b=this['_renderManagerService'][_0x2db07b(0x1d0)](_0x1a55a6)[_0x2db07b(0x2f0)](p['DocIMEInputManagerService']),_0x336b96=_0x378f6b[_0x2db07b(0x38b)]();if(_0x336b96==null)return;const _0x5aa77f=[{'id':_0x2db07b(0x2b0),'params':{'unitId':_0x78036d[_0x2db07b(0x2ad)],'actions':null,'textRanges':[_0x336b96]}}],_0x147b06=this[_0x2db07b(0x14e)][_0x2db07b(0x30e)](_0x78036d,_0x5aa77f);if(!g['isTransformMutationsWithChangesetSuccess'](_0x147b06))throw _0x147b06[_0x2db07b(0x351)];const _0x3df4f8=_0x147b06[_0x2db07b(0x15f)][0x0]['params'][_0x2db07b(0x220)];Array[_0x2db07b(0x2e3)](_0x3df4f8)&&_0x3df4f8['length']&&_0x378f6b[_0x2db07b(0x2d3)](_0x3df4f8[0x0]);}};Q=Yt([Me(0x0,g[_0x112f11(0x2c3)]),Me(0x1,C['IRenderManagerService'])],Q);var Ht=Object[_0x112f11(0x265)],Wt=(_0x3a8424,_0x5a74dc,_0x5a29ed,_0x10f538)=>{for(var _0x5d1114=_0x10f538>0x1?void 0x0:_0x10f538?Ht(_0x5a74dc,_0x5a29ed):_0x5a74dc,_0x3ea74c=_0x3a8424['length']-0x1,_0x1f8ec9;_0x3ea74c>=0x0;_0x3ea74c--)(_0x1f8ec9=_0x3a8424[_0x3ea74c])&&(_0x5d1114=_0x1f8ec9(_0x5d1114)||_0x5d1114);return _0x5d1114;},ue=(_0x393c51,_0x4b598e)=>(_0x1ebc3a,_0x3f9cc7)=>_0x4b598e(_0x1ebc3a,_0x3f9cc7,_0x393c51);let ee=class{constructor(_0x295194,_0x221cbf,_0x2b4a8d){const _0x47d721=_0x112f11;this['_injector']=_0x295194,this['_transformService']=_0x221cbf,this[_0x47d721(0x260)]=_0x2b4a8d;}[_0x112f11(0x133)](_0x4fe669){const _0x268fcc=_0x112f11;this[_0x268fcc(0x1c9)](_0x4fe669);}[_0x112f11(0x2d5)](_0x51d84c){const _0x2ba9a7=_0x112f11,{unitID:_0x7cd8c}=_0x51d84c,{collaboration:_0x11433d}=this[_0x2ba9a7(0x260)][_0x2ba9a7(0x320)](_0x7cd8c);if(_0x11433d['length']===0x0)return _0x51d84c;let _0x3f354e=a[_0x2ba9a7(0x22d)][_0x2ba9a7(0x228)](_0x51d84c[_0x2ba9a7(0x30d)][0x0]);for(let _0x21b391=0x0;_0x21b391<_0x11433d[_0x2ba9a7(0x132)];_0x21b391++){const _0x36739c={'id':_0x2ba9a7(0x2b0),'params':{'unitId':_0x11433d[_0x21b391]['unitId'],..._0x11433d[_0x21b391][_0x2ba9a7(0x1bc)]}},_0x2e19e9=this[_0x2ba9a7(0x14e)]['transformMutation'](_0x3f354e,_0x36739c,!0x1);if(g[_0x2ba9a7(0x1dc)](_0x2e19e9))throw _0x2e19e9[_0x2ba9a7(0x351)];_0x3f354e=_0x2e19e9[_0x2ba9a7(0x35f)];}return{...a[_0x2ba9a7(0x22d)][_0x2ba9a7(0x228)](_0x51d84c),'mutations':[_0x3f354e]};}['_transformHistoryAndStateStack'](_0x362e3a){const _0x3aab18=_0x112f11,{unitID:_0xf91a5c}=_0x362e3a,{history:_0x15602e,collaboration:_0x2f6538}=this[_0x3aab18(0x260)][_0x3aab18(0x320)](_0xf91a5c);if(_0x15602e[_0x3aab18(0x132)]===0x0&&_0x2f6538[_0x3aab18(0x132)]===0x0)return;const _0xc08c41=[],_0x51dd11=[];let _0x5fa0a3=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a[_0x3aab18(0x30d)][0x0]),_0x169387=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a[_0x3aab18(0x30d)][0x0]);for(let _0x49e69a=_0x15602e['length']-0x1;_0x49e69a>=0x0;_0x49e69a--){const _0x319cf2={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x15602e[_0x49e69a][_0x3aab18(0x1bf)],..._0x15602e[_0x49e69a][_0x3aab18(0x190)]}},_0x590dab={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x15602e[_0x49e69a]['unitId'],..._0x15602e[_0x49e69a][_0x3aab18(0x1bc)]}},_0x46f4a0=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x5fa0a3,_0x319cf2,!0x1),_0x29d9d0=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x169387,_0x590dab,!0x1);if(g[_0x3aab18(0x1dc)](_0x46f4a0))throw _0x46f4a0['error'];if(g['isTransformMutationFailure'](_0x29d9d0))throw _0x29d9d0[_0x3aab18(0x351)];_0xc08c41[_0x3aab18(0x28b)]({..._0x15602e[_0x49e69a],'undoState':_0x46f4a0[_0x3aab18(0x15f)]['params'],'redoState':_0x29d9d0[_0x3aab18(0x15f)][_0x3aab18(0x298)]}),_0x5fa0a3=_0x46f4a0[_0x3aab18(0x35f)],_0x169387=_0x29d9d0[_0x3aab18(0x35f)];}_0x5fa0a3=a['Tools'][_0x3aab18(0x228)](_0x362e3a['mutations'][0x0]),_0x169387=a[_0x3aab18(0x22d)][_0x3aab18(0x228)](_0x362e3a['mutations'][0x0]);for(let _0x139b6c=_0x2f6538[_0x3aab18(0x132)]-0x1;_0x139b6c>=0x0;_0x139b6c--){const _0x5051a9={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x2f6538[_0x139b6c][_0x3aab18(0x1bf)],..._0x2f6538[_0x139b6c][_0x3aab18(0x190)]}},_0x27cfa8={'id':_0x3aab18(0x2b0),'params':{'unitId':_0x2f6538[_0x139b6c][_0x3aab18(0x1bf)],..._0x2f6538[_0x139b6c][_0x3aab18(0x1bc)]}},_0xd8c1e9=this['_transformService']['transformMutation'](_0x5fa0a3,_0x5051a9,!0x1),_0x2ebc64=this[_0x3aab18(0x14e)][_0x3aab18(0x1f4)](_0x169387,_0x27cfa8,!0x1);if(g['isTransformMutationFailure'](_0xd8c1e9))throw _0xd8c1e9[_0x3aab18(0x351)];if(g[_0x3aab18(0x1dc)](_0x2ebc64))throw _0x2ebc64[_0x3aab18(0x351)];_0x51dd11[_0x3aab18(0x28b)]({..._0x2f6538[_0x139b6c],'undoState':_0xd8c1e9[_0x3aab18(0x15f)][_0x3aab18(0x298)],'redoState':_0x2ebc64[_0x3aab18(0x15f)][_0x3aab18(0x298)]}),_0x5fa0a3=_0xd8c1e9['m1Prime'],_0x169387=_0x2ebc64[_0x3aab18(0x35f)];}this[_0x3aab18(0x260)]['setStateCache'](_0xf91a5c,{'history':_0xc08c41,'collaboration':_0x51dd11});}};ee=Wt([ue(0x0,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),ue(0x1,g[_0x112f11(0x2c3)]),ue(0x2,a[_0x112f11(0x277)](p[_0x112f11(0x33d)]))],ee);var Vt=Object[_0x112f11(0x265)],Gt=(_0x42f49f,_0x5dbe74,_0x247990,_0x1ade56)=>{for(var _0x1270dc=_0x1ade56>0x1?void 0x0:_0x1ade56?Vt(_0x5dbe74,_0x247990):_0x5dbe74,_0x26ae08=_0x42f49f['length']-0x1,_0x30a59a;_0x26ae08>=0x0;_0x26ae08--)(_0x30a59a=_0x42f49f[_0x26ae08])&&(_0x1270dc=_0x30a59a(_0x1270dc)||_0x1270dc);return _0x1270dc;},Ae=(_0x2a1309,_0x10a669)=>(_0x455f84,_0x12d731)=>_0x10a669(_0x455f84,_0x12d731,_0x2a1309);let te=class{constructor(_0xb95f0f,_0x28dc7f){const _0x48a862=_0x112f11;this[_0x48a862(0x399)]=_0xb95f0f,this['_transformService']=_0x28dc7f;}[_0x112f11(0x1fc)](_0xcdbf3f){const _0x3dcd51=_0x112f11;var _0x516c47;const _0x169064=this[_0x3dcd51(0x399)]['get'](V[_0x3dcd51(0x268)]),_0x3a16eb=(_0x516c47=_0x169064[_0x3dcd51(0x329)]())!=null?_0x516c47:[];if(_0x3a16eb[_0x3dcd51(0x132)]===0x0)return;const _0x5e06b4=_0xcdbf3f[_0x3dcd51(0x2ad)],_0x4e739a=[{'id':_0x3dcd51(0x2b0),'params':{'unitId':_0x5e06b4,'actions':null,'textRanges':_0x3a16eb}}],_0x360497=this[_0x3dcd51(0x14e)]['transformMutationsWithChangeset'](_0xcdbf3f,_0x4e739a);if(!g[_0x3dcd51(0x327)](_0x360497))throw _0x360497['error'];const _0x37e0cc=_0x360497['m2Prime'][0x0][_0x3dcd51(0x298)][_0x3dcd51(0x220)];Array['isArray'](_0x37e0cc)&&_0x37e0cc[_0x3dcd51(0x132)]&&_0x169064[_0x3dcd51(0x32d)](_0x37e0cc,{'unitId':_0x5e06b4,'subUnitId':_0x5e06b4},!0x1);}};te=Gt([Ae(0x0,a[_0x112f11(0x277)](a[_0x112f11(0x32f)])),Ae(0x1,g['ITransformService'])],te);var Xt=Object[_0x112f11(0x265)],Kt=(_0x2cf8b0,_0x1288dc,_0x168cc4,_0x2e04b3)=>{const _0x5d4f27=_0x112f11;for(var _0x45c880=_0x2e04b3>0x1?void 0x0:_0x2e04b3?Xt(_0x1288dc,_0x168cc4):_0x1288dc,_0x3920df=_0x2cf8b0[_0x5d4f27(0x132)]-0x1,_0x4a7329;_0x3920df>=0x0;_0x3920df--)(_0x4a7329=_0x2cf8b0[_0x3920df])&&(_0x45c880=_0x4a7329(_0x45c880)||_0x45c880);return _0x45c880;},U=(_0x4f2724,_0x220e60)=>(_0x562f07,_0x532f8f)=>_0x220e60(_0x562f07,_0x532f8f,_0x4f2724);let se=class extends a[_0x112f11(0x18b)]{constructor(_0x215996,_0x3ab657,_0xa457b8,_0x2cb261,_0x194490,_0x169052,_0x24463e,_0x1a2ad5){const _0x1da069=_0x112f11;super(),_(this,'_status$',new I[(_0x1da069(0x1dd))](u['CollaborationStatus'][_0x1da069(0x1d6)])),(this[_0x1da069(0x260)]=_0x215996,this[_0x1da069(0x131)]=_0x3ab657,this[_0x1da069(0x283)]=_0xa457b8,this[_0x1da069(0x16d)]=_0x2cb261,this[_0x1da069(0x35a)]=_0x194490,this['_docSyncEditingCollabCursorService']=_0x169052,this['_messageService']=_0x24463e,this['_localeService']=_0x1a2ad5,this['_initEntityListener']());}[_0x112f11(0x349)](){const _0x121983=_0x112f11;this[_0x121983(0x2dc)](this[_0x121983(0x131)][_0x121983(0x39e)][_0x121983(0x1a4)](_0x1d9906=>{const _0x2adc9b=_0x121983,_0x58fb78=this[_0x2adc9b(0x260)][_0x2adc9b(0x2c1)]['subscribe'](_0x2c38a9=>{const _0x4feb04=_0x2adc9b;if(_0x2c38a9==null)return;const {unitId:_0x2359e5,redoState:_0x56946b,commandId:_0x5522b4}=_0x2c38a9;if(_0x2359e5!==_0x1d9906[_0x4feb04(0x2ad)])return;const _0x282a34={'id':_0x5522b4,'type':a[_0x4feb04(0x294)][_0x4feb04(0x1ad)],'params':{'unitId':_0x2359e5,'actions':_0x56946b['actions'],'textRanges':null}};_0x1d9906[_0x4feb04(0x216)](_0x282a34);});if(_0x1d9906[_0x2adc9b(0x2dc)](_0x58fb78),_0x1d9906 instanceof u[_0x2adc9b(0x10a)]){const _0x4fc780={'onTransformIME':_0x24089b=>this[_0x2adc9b(0x283)][_0x2adc9b(0x357)](_0x24089b),'onTransformState':_0xd569eb=>this[_0x2adc9b(0x16d)][_0x2adc9b(0x133)](_0xd569eb),'onTransformSelections':_0x9877=>this[_0x2adc9b(0x35a)][_0x2adc9b(0x1fc)](_0x9877),'onSyncEditingCollabCursor':_0x2aa81d=>this['_docSyncEditingCollabCursorService'][_0x2adc9b(0x262)](_0x2aa81d),'onTransformRemoteChangesetByIMECache':_0x4770e8=>this[_0x2adc9b(0x283)]['transformRemoteChangeset'](_0x4770e8),'onTransformRemoteChangesetByStateCache':_0x1faac8=>this['_docTransformStateCacheService'][_0x2adc9b(0x2d5)](_0x1faac8)};_0x1d9906[_0x2adc9b(0x1f1)](_0x4fc780);}}));}};se=Kt([U(0x0,a[_0x112f11(0x277)](p[_0x112f11(0x33d)])),U(0x1,a[_0x112f11(0x277)](u[_0x112f11(0x2d6)])),U(0x2,a[_0x112f11(0x277)](Q)),U(0x3,a[_0x112f11(0x277)](ee)),U(0x4,a[_0x112f11(0x277)](te)),U(0x5,a[_0x112f11(0x277)](Re)),U(0x6,R[_0x112f11(0x2ef)]),U(0x7,a[_0x112f11(0x277)](a[_0x112f11(0x24d)]))],se);var G=(_0x186439=>(_0x186439[_0x186439[_0x112f11(0x1b3)]=0x0]=_0x112f11(0x1b3),_0x186439[_0x186439['OK']=0x1]='OK',_0x186439[_0x186439[_0x112f11(0x2ab)]=0x2]=_0x112f11(0x2ab),_0x186439[_0x186439[_0x112f11(0x317)]=0x3]=_0x112f11(0x317),_0x186439[_0x186439['NOT_FOUND']=0x4]=_0x112f11(0x2b9),_0x186439[_0x186439[_0x112f11(0x312)]=0x5]=_0x112f11(0x312),_0x186439[_0x186439[_0x112f11(0x2b3)]=0x6]=_0x112f11(0x2b3),_0x186439[_0x186439[_0x112f11(0x23b)]=0x7]='INVALID_ARGUMENT',_0x186439[_0x186439['TOO_MANY_REQUESTS']=0x8]=_0x112f11(0x363),_0x186439[_0x186439[_0x112f11(0x22c)]=0x9]='COMPLETION_FINISHED',_0x186439[_0x186439['LOGIN_FAILED']=0xa]=_0x112f11(0x347),_0x186439[_0x186439['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x186439[_0x186439[_0x112f11(0x2b2)]=0xc]=_0x112f11(0x2b2),_0x186439[_0x186439['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x112f11(0x21e),_0x186439[_0x186439[_0x112f11(0x117)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x186439[_0x186439[_0x112f11(0x122)]=0xf]=_0x112f11(0x122),_0x186439[_0x186439[_0x112f11(0x255)]=0x10]=_0x112f11(0x255),_0x186439[_0x186439[_0x112f11(0x238)]=0x64]=_0x112f11(0x238),_0x186439[_0x186439[_0x112f11(0x28d)]=0x65]='ERROR_AGAIN',_0x186439[_0x186439['USER_NOT_FOUND']=0xc9]=_0x112f11(0x341),_0x186439[_0x186439[_0x112f11(0x31a)]=0xca]='USER_IS_ANONYMOUS',_0x186439[_0x186439[_0x112f11(0x178)]=0x1389]=_0x112f11(0x178),_0x186439[_0x186439[_0x112f11(0x2bb)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x186439[_0x186439[_0x112f11(0x24a)]=0x1772]=_0x112f11(0x24a),_0x186439[_0x186439[_0x112f11(0x2ff)]=0x1773]=_0x112f11(0x2ff),_0x186439[_0x186439['APPLY_REJECT']=0x1b59]=_0x112f11(0x107),_0x186439[_0x186439[_0x112f11(0x396)]=0x1b5a]=_0x112f11(0x396),_0x186439[_0x186439[_0x112f11(0x1c2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x186439[_0x186439[_0x112f11(0x1a8)]=0x1b5c]=_0x112f11(0x1a8),_0x186439[_0x186439[_0x112f11(0x249)]=0x1b5d]=_0x112f11(0x249),_0x186439[_0x186439[_0x112f11(0x1ec)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x186439[_0x186439[_0x112f11(0x2e5)]=0x2329]=_0x112f11(0x2e5),_0x186439[_0x186439[_0x112f11(0x14c)]=0x232a]=_0x112f11(0x14c),_0x186439[_0x186439[_0x112f11(0x218)]=0x232b]=_0x112f11(0x218),_0x186439[_0x186439['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x112f11(0x2bd),_0x186439[_0x186439['LICENSE_DISTRO_REJECTED']=0x232d]=_0x112f11(0x233),_0x186439[_0x186439[_0x112f11(0x335)]=0x2711]=_0x112f11(0x335),_0x186439[_0x186439['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x186439[_0x186439['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x186439[_0x186439[_0x112f11(0x10e)]=0x2714]=_0x112f11(0x10e),_0x186439[_0x186439[_0x112f11(0x27a)]=0x271a]=_0x112f11(0x27a),_0x186439[_0x186439[_0x112f11(0x14f)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x186439[_0x186439['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x112f11(0x38f),_0x186439[_0x186439[_0x112f11(0x304)]=0x271d]=_0x112f11(0x304),_0x186439[_0x186439[_0x112f11(0x36a)]=0x271e]=_0x112f11(0x36a),_0x186439[_0x186439[_0x112f11(0x289)]=0x271f]=_0x112f11(0x289),_0x186439[_0x186439[_0x112f11(0x205)]=0x2720]=_0x112f11(0x205),_0x186439[_0x186439['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x112f11(0x305),_0x186439[_0x186439[_0x112f11(0x1f7)]=0x2ee1]=_0x112f11(0x1f7),_0x186439[_0x186439['INVALID_INVITE_CODE']=0x2ee2]=_0x112f11(0x1b4),_0x186439[_0x186439['INVITE_CODE_REQUIRED']=0x2ee3]=_0x112f11(0x13e),_0x186439[_0x186439[_0x112f11(0x325)]=0x2ee4]=_0x112f11(0x325),_0x186439[_0x186439[_0x112f11(0x189)]=0x2ee5]=_0x112f11(0x189),_0x186439[_0x186439[_0x112f11(0x110)]=0x32c9]=_0x112f11(0x110),_0x186439[_0x186439[_0x112f11(0x19f)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x186439[_0x186439[_0x112f11(0x22e)]=0x32cb]=_0x112f11(0x22e),_0x186439[_0x186439[_0x112f11(0x31c)]=0x36b1]=_0x112f11(0x31c),_0x186439[_0x186439[_0x112f11(0x377)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x186439[_0x186439[_0x112f11(0x180)]=0x36b3]=_0x112f11(0x180),_0x186439[_0x186439[_0x112f11(0x158)]=0x36b4]=_0x112f11(0x158),_0x186439[_0x186439[_0x112f11(0x208)]=0x3715]=_0x112f11(0x208),_0x186439[_0x186439[_0x112f11(0x119)]=0x3716]=_0x112f11(0x119),_0x186439[_0x186439['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x186439[_0x186439['REDEMPTION_INVALID_CODE']=0x3a99]=_0x112f11(0x36e),_0x186439[_0x186439[_0x112f11(0x25b)]=0x3a9a]=_0x112f11(0x25b),_0x186439[_0x186439[_0x112f11(0x1e3)]=0x3a9b]=_0x112f11(0x1e3),_0x186439[_0x186439[_0x112f11(0x388)]=0x3a9c]=_0x112f11(0x388),_0x186439[_0x186439[_0x112f11(0x1ff)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x186439[_0x186439[_0x112f11(0x308)]=0x3a9e]=_0x112f11(0x308),_0x186439[_0x186439[_0x112f11(0x293)]=0x3a9f]=_0x112f11(0x293),_0x186439[_0x186439[_0x112f11(0x26f)]=-0x1]=_0x112f11(0x26f),_0x186439))(G||{});function qt(_0x139c7c){const _0x5610d0=_0x112f11;var _0x409ce2,_0xed9212;const _0x4fdadb=(_0x409ce2=_0x139c7c[_0x5610d0(0x3ab)])==null?void 0x0:_0x409ce2['stage'],_0x1b0ba2=((_0xed9212=_0x139c7c[_0x5610d0(0x3ab)])==null?void 0x0:_0xed9212[_0x5610d0(0x32c)])||0x0;return _0x4fdadb===B[_0x5610d0(0x306)][_0x5610d0(0x214)]&&_0x1b0ba2>0x0;}function zt(_0x442fbe){const _0x2535b0=_0x112f11;return _0x442fbe['functionsExecutedState']===B[_0x2535b0(0x365)][_0x2535b0(0x2fd)];}var Jt=Object[_0x112f11(0x265)],Zt=(_0x4fec46,_0x84c0e6,_0x356fb6,_0x4d2df8)=>{const _0x8e63d9=_0x112f11;for(var _0x291d44=_0x4d2df8>0x1?void 0x0:_0x4d2df8?Jt(_0x84c0e6,_0x356fb6):_0x84c0e6,_0x253be0=_0x4fec46[_0x8e63d9(0x132)]-0x1,_0x1e84b6;_0x253be0>=0x0;_0x253be0--)(_0x1e84b6=_0x4fec46[_0x253be0])&&(_0x291d44=_0x1e84b6(_0x291d44)||_0x291d44);return _0x291d44;},A=(_0x135e82,_0x3fe452)=>(_0x32a183,_0x19c03d)=>_0x3fe452(_0x32a183,_0x19c03d,_0x135e82);function _0x29e7(_0x413cbf,_0x1b276d){const _0x1d231a=_0x1d23();return _0x29e7=function(_0x29e743,_0x4c6694){_0x29e743=_0x29e743-0xf2;let _0x420222=_0x1d231a[_0x29e743];return _0x420222;},_0x29e7(_0x413cbf,_0x1b276d);}const Qt=_0x112f11(0x391),es=_0x112f11(0x288),ts=_0x112f11(0x367);let ie=class extends a[_0x112f11(0x18b)]{constructor(_0x3f9bf7,_0x8c4cd0,_0x41c11f,_0x3746b0,_0x18d73f,_0x1bbdd7,_0x1aaf49){const _0x4e1a42=_0x112f11;super(),_(this,_0x4e1a42(0x104),null),_(this,_0x4e1a42(0x358),0x0),_(this,_0x4e1a42(0x30b),0x0),_(this,_0x4e1a42(0x1fe),[]),_(this,_0x4e1a42(0x2da),0x0),(this[_0x4e1a42(0x248)]=_0x3f9bf7,this[_0x4e1a42(0x124)]=_0x8c4cd0,this[_0x4e1a42(0x101)]=_0x41c11f,this[_0x4e1a42(0x2b1)]=_0x3746b0,this['_univerInstanceService']=_0x18d73f,this[_0x4e1a42(0x3ad)]=_0x1bbdd7,this['_localeService']=_0x1aaf49,this[_0x4e1a42(0x372)]());}['_initCommandInterceptor'](){const _0x26786b=_0x112f11;this[_0x26786b(0x2dc)](this['_commandService'][_0x26786b(0x22b)]((_0xceebea,_0x1b1efb)=>{const _0x4ab1e2=_0x26786b;if(_0xceebea['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x31a8e2=_0xceebea[_0x4ab1e2(0x298)];if(!this[_0x4ab1e2(0x1be)](_0x31a8e2['dirtyRanges']))return;if(!this['_checkCalculationAvailable']())throw this[_0x4ab1e2(0x1ef)](_0xceebea,_0x1b1efb),this[_0x4ab1e2(0x2a2)](),new a[(_0x4ab1e2(0x2b8))]();})),this[_0x26786b(0x2dc)](this['_commandService'][_0x26786b(0x12a)]((_0x1d49b8,_0x228be7)=>{const _0x3cd7e6=_0x26786b;if(_0x1d49b8['id']!==B[_0x3cd7e6(0x140)]['id'])return;const _0x1159c2=_0x1d49b8[_0x3cd7e6(0x298)];if(qt(_0x1159c2)){const _0x703cbf=a[_0x3cd7e6(0x397)]();this[_0x3cd7e6(0x1fe)][_0x3cd7e6(0x2cd)](_0x703cbf),this['_startCalculationLimit'](_0x703cbf);}else{if(zt(_0x1159c2)&&this['_taskIds'][_0x3cd7e6(0x132)]>0x0){const _0x18f84c=this[_0x3cd7e6(0x1fe)][_0x3cd7e6(0x1f3)]();this[_0x3cd7e6(0x29e)](_0x18f84c);}}}));}[_0x112f11(0x2de)](){const _0x133112=_0x112f11;super['dispose'](),this[_0x133112(0x266)](),this[_0x133112(0x1fe)]=[],this['_currentUsage']=0x0,this[_0x133112(0x358)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x112f11(0x1ef)](_0x50f648,_0x592203){const _0x12e3d6=_0x112f11;for(let _0x54f8c8=0x0;_0x54f8c8<0x1e;_0x54f8c8++)try{if(await this[_0x12e3d6(0x224)](),this[_0x12e3d6(0x24b)]()){this[_0x12e3d6(0x213)](_0x50f648,_0x592203),this['_messageService'][_0x12e3d6(0xf3)]({'content':this[_0x12e3d6(0x206)]['t'](_0x12e3d6(0x38d)),'type':T[_0x12e3d6(0x2e0)][_0x12e3d6(0x151)]});return;}await new Promise(_0x494222=>{const _0x4a87f5=_0x12e3d6;this[_0x4a87f5(0x104)]=window[_0x4a87f5(0x142)](_0x494222,0x3e8);});}catch(_0x477d95){this[_0x12e3d6(0x3ad)][_0x12e3d6(0x351)](_0x477d95);}this['_messageService'][_0x12e3d6(0xf3)]({'content':this['_localeService']['t'](_0x12e3d6(0x23e)),'type':T['MessageType'][_0x12e3d6(0x245)]});}['_applyCommand'](_0x1c2665,_0x3b285a){const _0x379c58=_0x112f11;try{this[_0x379c58(0x124)][_0x379c58(0x257)](_0x1c2665['id'],_0x1c2665[_0x379c58(0x298)],_0x3b285a);}catch(_0x10bbb5){this[_0x379c58(0x3ad)][_0x379c58(0x351)](_0x10bbb5);}}[_0x112f11(0x3a1)](_0x38fca3,_0x42ca79){const _0x4962cd=_0x112f11;_0x42ca79<this[_0x4962cd(0x2da)]||(this[_0x4962cd(0x2da)]=_0x42ca79,this[_0x4962cd(0x358)]=Number[_0x4962cd(0x185)](_0x38fca3['maxFormulaLimit']),this[_0x4962cd(0x30b)]=Number[_0x4962cd(0x185)](_0x38fca3[_0x4962cd(0x2c2)]));}async[_0x112f11(0x3ac)](_0x3bf8d3){const _0x27771e=_0x112f11;var _0x19f8cb,_0x25fbb8;const _0x3018d6=Date[_0x27771e(0x10d)]();try{const _0x425c84=((_0x19f8cb=this[_0x27771e(0x101)][_0x27771e(0x26a)](u[_0x27771e(0x346)]))==null?void 0x0:_0x19f8cb['startFormulaLimitUrl'])||es,_0x441ce2=(await this[_0x27771e(0x2b1)][_0x27771e(0x20f)](_0x425c84,{'body':JSON['stringify']({'taskId':_0x3bf8d3})}))['body'];if(((_0x25fbb8=_0x441ce2[_0x27771e(0x351)])==null?void 0x0:_0x25fbb8[_0x27771e(0x2fe)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x441ce2[_0x27771e(0x281)],_0x3018d6);}catch(_0x385edd){this['_logService']['error'](_0x385edd);}}async['_getFormulaLimitStatus'](_0x36408f){const _0x4c3b68=_0x112f11;var _0x12fdd3,_0x226d2c;const _0xb49f3=Date['now']();try{const _0x260b59=((_0x12fdd3=this[_0x4c3b68(0x101)][_0x4c3b68(0x26a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x12fdd3[_0x4c3b68(0x366)])||Qt,_0x1ed7c9=_0x36408f?_0x260b59+'?taskId='+encodeURIComponent(_0x36408f):_0x260b59,_0x46ebea=(await this['_httpService'][_0x4c3b68(0x243)](_0x1ed7c9))[_0x4c3b68(0x332)];if(((_0x226d2c=_0x46ebea[_0x4c3b68(0x351)])==null?void 0x0:_0x226d2c[_0x4c3b68(0x2fe)])!==G['OK'])return;this[_0x4c3b68(0x3a1)](_0x46ebea['limitInfo'],_0xb49f3);}catch(_0x15cde8){this[_0x4c3b68(0x3ad)][_0x4c3b68(0x351)](_0x15cde8);}}async[_0x112f11(0x29e)](_0x55692a){const _0x3a0cd1=_0x112f11;var _0x5c17b4,_0x5555df;const _0x5da0f0=Date[_0x3a0cd1(0x10d)]();try{const _0x58f2f8=((_0x5c17b4=this[_0x3a0cd1(0x101)][_0x3a0cd1(0x26a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5c17b4[_0x3a0cd1(0x291)])||ts,_0xcf579=(await this[_0x3a0cd1(0x2b1)][_0x3a0cd1(0x20f)](_0x58f2f8,{'body':JSON[_0x3a0cd1(0x1eb)]({'taskId':_0x55692a})}))[_0x3a0cd1(0x332)];if(((_0x5555df=_0xcf579[_0x3a0cd1(0x351)])==null?void 0x0:_0x5555df[_0x3a0cd1(0x2fe)])!==G['OK'])return;this[_0x3a0cd1(0x3a1)](_0xcf579[_0x3a0cd1(0x281)],_0x5da0f0);}catch(_0x2d29f7){this[_0x3a0cd1(0x3ad)][_0x3a0cd1(0x351)](_0x2d29f7);}}[_0x112f11(0x24b)](){const _0x3dc164=_0x112f11;return this[_0x3dc164(0x358)]===0x0?!0x0:this[_0x3dc164(0x358)]-this[_0x3dc164(0x30b)]>0x0;}['_clearPolling'](){const _0x4f347f=_0x112f11;this[_0x4f347f(0x104)]&&(clearTimeout(this[_0x4f347f(0x104)]),this[_0x4f347f(0x104)]=null);}[_0x112f11(0x2a2)](){const _0xe315c4=_0x112f11;this[_0xe315c4(0x248)][_0xe315c4(0xf3)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T[_0xe315c4(0x2e0)]['Loading']});}[_0x112f11(0x1be)](_0x3255e3){const _0x177212=_0x112f11;for(const _0x9b81fd of _0x3255e3){const {unitId:_0x2fe700,sheetId:_0x1f010b,range:_0x20b13d}=_0x9b81fd,_0x5a1a60=this[_0x177212(0x368)][_0x177212(0x225)](_0x2fe700);if(!_0x5a1a60)continue;const _0x3fd0e3=_0x5a1a60[_0x177212(0x1db)](_0x1f010b);if(!_0x3fd0e3)continue;const _0x24d943=_0x3fd0e3[_0x177212(0x202)]();for(let _0x14f75f=_0x20b13d['startRow'];_0x14f75f<=_0x20b13d[_0x177212(0x360)];_0x14f75f++)for(let _0x3c373d=_0x20b13d[_0x177212(0x2c7)];_0x3c373d<=_0x20b13d[_0x177212(0x2ec)];_0x3c373d++){const _0x4f545b=_0x24d943[_0x177212(0x24c)](_0x14f75f,_0x3c373d);if(_0x4f545b&&(a['isFormulaString'](_0x4f545b['f'])||a['isFormulaId'](_0x4f545b['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a['Inject'](R[_0x112f11(0x2ef)])),A(0x1,a[_0x112f11(0x16e)]),A(0x2,a['IConfigService']),A(0x3,a[_0x112f11(0x277)](X[_0x112f11(0x2cc)])),A(0x4,a['IUniverInstanceService']),A(0x5,a['ILogService']),A(0x6,a['Inject'](a[_0x112f11(0x24d)]))],ie);var ss=Object[_0x112f11(0x265)],is=(_0x1efde1,_0x1b6091,_0x54350c,_0x13a840)=>{const _0x4607ef=_0x112f11;for(var _0x12d35f=_0x13a840>0x1?void 0x0:_0x13a840?ss(_0x1b6091,_0x54350c):_0x1b6091,_0x2544a0=_0x1efde1[_0x4607ef(0x132)]-0x1,_0x500709;_0x2544a0>=0x0;_0x2544a0--)(_0x500709=_0x1efde1[_0x2544a0])&&(_0x12d35f=_0x500709(_0x12d35f)||_0x12d35f);return _0x12d35f;},Ie=(_0x489b9e,_0x171c96)=>(_0xdad764,_0x5048ef)=>_0x171c96(_0xdad764,_0x5048ef,_0x489b9e);let Ce=class extends a['Disposable']{constructor(_0x2ce255,_0x10929d,_0x1dd487){const _0x3651e9=_0x112f11;super(),_(this,_0x3651e9(0x27c),new Map()),_(this,_0x3651e9(0x378),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x2ce255,this[_0x3651e9(0x37c)]=_0x10929d,this[_0x3651e9(0x17e)]=_0x1dd487);}[_0x112f11(0x316)](){const _0x4b44ba=_0x112f11;this[_0x4b44ba(0xff)]=!0x0;}[_0x112f11(0x2f1)](){const _0x19a34e=_0x112f11;this[_0x19a34e(0xff)]=!0x1;}get[_0x112f11(0x1a1)](){return this['_saveTaskMap'];}['dispose'](){const _0x9dfc64=_0x112f11;this['exhaustSavingTask']()[_0x9dfc64(0x15c)](()=>super[_0x9dfc64(0x2de)]());}async[_0x112f11(0x25e)](_0x2c8d38){const _0x8ae4f4=_0x112f11;return this[_0x8ae4f4(0xff)]?null:this[_0x8ae4f4(0x37c)][_0x8ae4f4(0x173)](u[_0x8ae4f4(0x2f8)](_0x2c8d38));}async[_0x112f11(0x10f)](_0x117dbd,_0x552307){const _0x1f5f30=_0x112f11;return!!this[_0x1f5f30(0x37c)][_0x1f5f30(0x186)](_0x117dbd,_0x552307);}['updateOfflineData'](_0x23e58e,_0x59f99b,_0x2b7252,_0x35265a){const _0x2a69a8=_0x112f11,_0x2aff03=this[_0x2a69a8(0x17e)]['getCurrentRevOfUnit'](_0x23e58e);this[_0x2a69a8(0x27c)][_0x2a69a8(0x17b)](_0x23e58e,{'unitID':_0x23e58e,'type':_0x59f99b,'awaitingChangeset':_0x2b7252,'mutations':_0x35265a,'rev':_0x2aff03}),this[_0x2a69a8(0x378)][_0x2a69a8(0x3b1)](_0x23e58e)||this[_0x2a69a8(0x379)](_0x23e58e);}['_scheduleSaving'](_0xd877f0){const _0x413913=_0x112f11,_0x4f5e67=this[_0x413913(0x34a)]();_0x4f5e67===0x0?this[_0x413913(0x2fc)](_0xd877f0):this[_0x413913(0x378)]['set'](_0xd877f0,setTimeout(()=>this[_0x413913(0x2fc)](_0xd877f0),_0x4f5e67));}['_getSaveTimeout'](){const _0x37b343=_0x112f11;var _0x539a48;return(_0x539a48=this[_0x37b343(0x101)]['getConfig'](u[_0x37b343(0x1ca)]))!=null?_0x539a48:u['LOCAL_CACHE_INTERVAL'];}[_0x112f11(0x2fc)](_0x5b64e3){const _0xab88da=_0x112f11,_0x2033a8=this[_0xab88da(0x378)]['get'](_0x5b64e3);return _0x2033a8!==void 0x0&&window['clearTimeout'](_0x2033a8),this[_0xab88da(0x37c)]['setItem'](u[_0xab88da(0x2f8)](_0x5b64e3),this['_cachedData']['get'](_0x5b64e3))[_0xab88da(0x15c)](()=>this[_0xab88da(0x378)][_0xab88da(0x375)](_0x5b64e3));}async['exhaustSavingTask'](){const _0x2673bb=_0x112f11,_0x2dad59=[];this['_saveTaskMap']['forEach']((_0x4bae63,_0x12f09a)=>{const _0x32789e=_0x29e7;window[_0x32789e(0x11e)](_0x4bae63),_0x2dad59[_0x32789e(0x2cd)](this['_saveCache'](_0x12f09a)[_0x32789e(0x15c)](()=>{const _0x44e6da=_0x32789e;this[_0x44e6da(0x378)]['delete'](_0x12f09a);}));}),await Promise[_0x2673bb(0x16b)](_0x2dad59);}};Ce=is([Ie(0x0,a[_0x112f11(0x103)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a[_0x112f11(0x277)](g[_0x112f11(0x1e8)]))],Ce);class ke extends a[_0x112f11(0x2a7)]{constructor(){const _0x442ce2=_0x112f11;super(),_(this,_0x442ce2(0x1ba)),this[_0x442ce2(0x1ba)]=I['fromEvent'](window,_0x442ce2(0x355))[_0x442ce2(0x15e)](I[_0x442ce2(0x2a6)](this[_0x442ce2(0x33b)]),I[_0x442ce2(0x1d8)](0x1),I[_0x442ce2(0x2df)](void 0x0));}['setParam'](_0x2012d5,_0xa08d3f,_0x2f10f2=!0x1){const _0x2dceb5=_0x112f11,_0x49dd43=new URL(window[_0x2dceb5(0x13f)][_0x2dceb5(0x204)]);_0x49dd43[_0x2dceb5(0x2f6)][_0x2dceb5(0x17b)](_0x2012d5,_0xa08d3f),_0x2f10f2?window[_0x2dceb5(0x200)][_0x2dceb5(0x35d)]('','',_0x49dd43[_0x2dceb5(0x1c8)]()):window['history'][_0x2dceb5(0x1c4)]('','',_0x49dd43['toString']());}[_0x112f11(0x24f)](_0x142f79,_0x5bd0f3=!0x1){const _0x82156d=_0x112f11,_0x4c0655=new URL(window[_0x82156d(0x13f)]['href']);_0x4c0655[_0x82156d(0x2f6)][_0x82156d(0x375)](_0x142f79),_0x5bd0f3?window[_0x82156d(0x200)][_0x82156d(0x35d)]('','',_0x4c0655[_0x82156d(0x1c8)]()):window[_0x82156d(0x200)][_0x82156d(0x1c4)]('','',_0x4c0655['toString']());}[_0x112f11(0x1ab)](_0x33e3da){const _0x510ab5=_0x112f11;var _0x114db8;return(_0x114db8=new URL(window[_0x510ab5(0x13f)][_0x510ab5(0x204)])[_0x510ab5(0x2f6)]['get'](_0x33e3da))!=null?_0x114db8:void 0x0;}}var ns=Object[_0x112f11(0x39a)],rs=Object[_0x112f11(0x265)],os=(_0x3739bc,_0x990ac3,_0x508a74)=>_0x990ac3 in _0x3739bc?ns(_0x3739bc,_0x990ac3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x508a74}):_0x3739bc[_0x990ac3]=_0x508a74,as=(_0xeb00cf,_0x3a3a33,_0x415332,_0x4d13b1)=>{const _0x4dd8fc=_0x112f11;for(var _0x53cdb9=_0x4d13b1>0x1?void 0x0:_0x4d13b1?rs(_0x3a3a33,_0x415332):_0x3a3a33,_0x172bdc=_0xeb00cf[_0x4dd8fc(0x132)]-0x1,_0x233609;_0x172bdc>=0x0;_0x172bdc--)(_0x233609=_0xeb00cf[_0x172bdc])&&(_0x53cdb9=_0x233609(_0x53cdb9)||_0x53cdb9);return _0x53cdb9;},de=(_0x507d02,_0x3b4ef7)=>(_0x27108a,_0x327c72)=>_0x3b4ef7(_0x27108a,_0x327c72,_0x507d02),cs=(_0x469523,_0x27ae97,_0x21d8b0)=>os(_0x469523,_0x27ae97+'',_0x21d8b0);const ls='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x112f11(0x1f6)]=class extends a['Plugin']{constructor(_0x4b6d52=Le,_0x38bc2d,_0x144045,_0x5b5146){const _0x75fdfa=_0x112f11;super(),this[_0x75fdfa(0x191)]=_0x4b6d52,this[_0x75fdfa(0x2ed)]=_0x38bc2d,this[_0x75fdfa(0x399)]=_0x144045,this[_0x75fdfa(0x101)]=_0x5b5146;const {..._0x5aa050}=a[_0x75fdfa(0x2bc)]({},Le,this[_0x75fdfa(0x191)]);this[_0x75fdfa(0x101)][_0x75fdfa(0x311)](kt,_0x5aa050);}[_0x112f11(0x194)](){const _0x30dc6d=_0x112f11;this['_registerDependencies'](),this[_0x30dc6d(0x21d)]();}[_0x112f11(0x264)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x142390=_0x112f11;var _0x400d92;const _0x28d28d=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x142390(0x11a)],{'useClass':X[_0x142390(0x31d)]}],[u[_0x142390(0x26c)],{'useClass':Ce}],[exports[_0x142390(0x33a)]],[se],[Z],[F],[fe],[exports[_0x142390(0x374)]]];a[_0x142390(0x136)](this[_0x142390(0x399)],a[_0x142390(0x29b)](_0x28d28d,(_0x400d92=this['_config'])==null?void 0x0:_0x400d92['override']));}['_registerRenderDependencies'](){const _0x271da2=_0x112f11;this[_0x271da2(0x2dc)](this[_0x271da2(0x2ed)][_0x271da2(0x254)](a[_0x271da2(0x128)]['UNIVER_DOC'],[ge])),this[_0x271da2(0x2dc)](this[_0x271da2(0x2ed)][_0x271da2(0x254)](a[_0x271da2(0x128)][_0x271da2(0x2be)],[Ee]));}[_0x112f11(0x21d)](){const _0x2ae4a1=_0x112f11;a[_0x2ae4a1(0x134)](this[_0x2ae4a1(0x399)],[[F],[exports[_0x2ae4a1(0x33a)]],[se],[Z],[exports[_0x2ae4a1(0x374)]],[ie]]);}},cs(exports[_0x112f11(0x1f6)],_0x112f11(0x14a),ls),exports[_0x112f11(0x1f6)]=as([a[_0x112f11(0x280)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x112f11(0x348)]),de(0x2,a['Inject'](a[_0x112f11(0x32f)])),de(0x3,a[_0x112f11(0x103)])],exports[_0x112f11(0x1f6)]);var _s=Object[_0x112f11(0x265)],hs=(_0x540212,_0x4f522b,_0x30e9d9,_0x4f89bd)=>{const _0x3b1186=_0x112f11;for(var _0x26e627=_0x4f89bd>0x1?void 0x0:_0x4f89bd?_s(_0x4f522b,_0x30e9d9):_0x4f522b,_0x179b62=_0x540212[_0x3b1186(0x132)]-0x1,_0x385d62;_0x179b62>=0x0;_0x179b62--)(_0x385d62=_0x540212[_0x179b62])&&(_0x26e627=_0x385d62(_0x26e627)||_0x26e627);return _0x26e627;},W=(_0x2c1dc9,_0x3addbd)=>(_0x3cad74,_0x15cba1)=>_0x3addbd(_0x3cad74,_0x15cba1,_0x2c1dc9);exports['BrowserCollaborationSocketService']=class extends u[_0x112f11(0x10c)]{constructor(_0x43fcda,_0x2fcc66,_0x35b874,_0x553313,_0xb9b26c){super(_0x43fcda,_0x2fcc66,_0x35b874,_0x553313,_0xb9b26c);}async[_0x112f11(0x1df)](_0x5d0876){const _0x1dca75=_0x112f11,_0x4612fd=await this[_0x1dca75(0x292)](),_0x17f598=this[_0x1dca75(0x373)](_0x5d0876,_0x4612fd);return this[_0x1dca75(0x198)](_0x17f598);}[_0x112f11(0x373)](_0x8ebbda,_0x12ab0f){const _0x3c6f6b=_0x112f11,_0x39e40e=typeof window>'u'?new URL(_0x8ebbda):new URL(_0x8ebbda,window[_0x3c6f6b(0x13f)][_0x3c6f6b(0x226)]);_0x39e40e[_0x3c6f6b(0x2f6)][_0x3c6f6b(0x17b)]('sessionTicket',_0x12ab0f);const _0x28431f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3c6f6b(0x13f)][_0x3c6f6b(0x25f)]);return _0x28431f[_0x3c6f6b(0x243)](_0x3c6f6b(0x170))&&_0x39e40e['searchParams']['set'](_0x3c6f6b(0x170),_0x28431f[_0x3c6f6b(0x243)](_0x3c6f6b(0x170))),_0x39e40e[_0x3c6f6b(0x1c8)]();}async['_getSessionTicket'](){const _0x22f55f=_0x112f11;var _0x16f736,_0x797d1b,_0x28b8a1;const _0x4de503=this['_configService']['getConfig'](u[_0x22f55f(0x346)]),_0x9fa43e=(_0x16f736=_0x4de503==null?void 0x0:_0x4de503['wsSessionTicketUrl'])!=null?_0x16f736:u[_0x22f55f(0x17a)];return(_0x28b8a1=(_0x797d1b=(await this[_0x22f55f(0x2b1)][_0x22f55f(0x243)](_0x9fa43e,{'headers':{'Content-Type':_0x22f55f(0x3a7)}}))[_0x22f55f(0x332)])==null?void 0x0:_0x797d1b[_0x22f55f(0x145)])!=null?_0x28b8a1:'';}},exports[_0x112f11(0x1da)]=hs([W(0x0,a['Inject'](a[_0x112f11(0x32f)])),W(0x1,a['Inject'](X[_0x112f11(0x2cc)])),W(0x2,a[_0x112f11(0x103)]),W(0x3,a[_0x112f11(0x12d)]),W(0x4,g[_0x112f11(0xf2)])],exports[_0x112f11(0x1da)]);var us=Object[_0x112f11(0x265)],Is=(_0x1b5bf9,_0x115257,_0x4b7546,_0x1a9306)=>{const _0x4ea549=_0x112f11;for(var _0x428f55=_0x1a9306>0x1?void 0x0:_0x1a9306?us(_0x115257,_0x4b7546):_0x115257,_0x490cf1=_0x1b5bf9[_0x4ea549(0x132)]-0x1,_0x257b54;_0x490cf1>=0x0;_0x490cf1--)(_0x257b54=_0x1b5bf9[_0x490cf1])&&(_0x428f55=_0x257b54(_0x428f55)||_0x428f55);return _0x428f55;},Se=(_0x1a0d2b,_0x3916e7)=>(_0x201f3f,_0xccc8fd)=>_0x3916e7(_0x201f3f,_0xccc8fd,_0x1a0d2b);exports[_0x112f11(0x18f)]=class extends a[_0x112f11(0x18b)]{constructor(_0x3d2cae,_0x2c31aa,_0x14ee4a){const _0x1c943b=_0x112f11;super(),this[_0x1c943b(0x353)]=_0x3d2cae,this[_0x1c943b(0x2b1)]=_0x2c31aa,this[_0x1c943b(0x101)]=_0x14ee4a;}async[_0x112f11(0x1b1)](_0x2b9a6c,_0x33e1e4,_0x3b54ec,..._0x5e915b){const _0x38e602=_0x112f11;var _0x4c8678,_0x5391b3,_0x397586,_0x4d0cc8;const _0xc6fbdf=this[_0x38e602(0x353)][_0x38e602(0x299)]();if(!_0xc6fbdf)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2f8bf0=((_0x4c8678=this[_0x38e602(0x101)][_0x38e602(0x26a)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4c8678:u[_0x38e602(0x2b7)])+'/'+_0x2b9a6c+_0x38e602(0x27f)+_0x33e1e4,_0x47aa08=new URL(window[_0x38e602(0x13f)]['href']),_0x4c6ec5={'scriptId':_0x2b9a6c,'runId':(_0x5391b3=_0x47aa08[_0x38e602(0x2f6)][_0x38e602(0x243)](_0x38e602(0x170)))!=null?_0x5391b3:'','function':_0x33e1e4,'unitId':_0xc6fbdf[_0x38e602(0x1d3)](),'argsOfFunction':JSON[_0x38e602(0x1eb)](_0x5e915b),'invokeId':(_0x397586=_0x3b54ec[_0x38e602(0x1e5)])!=null?_0x397586:'','executionId':(_0x4d0cc8=_0x3b54ec[_0x38e602(0x15b)])!=null?_0x4d0cc8:''};try{const _0x2ca1d0=await this['_httpService'][_0x38e602(0x20f)](_0x2f8bf0,{'body':_0x4c6ec5});return _0x2ca1d0[_0x38e602(0x332)][_0x38e602(0x351)]&&_0x2ca1d0[_0x38e602(0x332)][_0x38e602(0x351)][_0x38e602(0x2fe)]!==G['OK']?_0x38e602(0x115):_0x2ca1d0[_0x38e602(0x332)]['result'];}catch{return _0x38e602(0x115);}}},exports['RemoteUniscriptService']=Is([Se(0x0,a[_0x112f11(0x2cf)]),Se(0x1,a[_0x112f11(0x277)](X['HTTPService'])),Se(0x2,a['IConfigService'])],exports[_0x112f11(0x18f)]);const Pe=0x7530,we=_0x112f11(0x2d9);class ds extends a[_0x112f11(0x18b)]{constructor(){const _0x4b2ee5=_0x112f11;super(),_(this,'_id',a[_0x4b2ee5(0x397)]()),_(this,_0x4b2ee5(0x371),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x4b2ee5(0x19c),null),_(this,_0x4b2ee5(0x160),new Map()),_(this,_0x4b2ee5(0x398),new Map()),this[_0x4b2ee5(0x31e)]();}['dispose'](){const _0x42aae6=_0x112f11;super[_0x42aae6(0x2de)](),this[_0x42aae6(0x160)][_0x42aae6(0x163)]((_0x50fc7b,_0x2b0fbd)=>this['_removeClearOtherTimer'](_0x2b0fbd)),this[_0x42aae6(0x19c)]&&window[_0x42aae6(0x290)](this['_heartbeatTimer']);}[_0x112f11(0x28f)](_0x5f0084){const _0x382112=_0x112f11;return this['_ensureSubject'](_0x5f0084)[_0x382112(0x15e)](I[_0x382112(0x1fb)]());}['editingUnit'](_0x1a6c66){const _0x5a9de9=_0x112f11;this[_0x5a9de9(0x371)][_0x5a9de9(0x22a)]===0x0&&this[_0x5a9de9(0x17f)](),this[_0x5a9de9(0x371)][_0x5a9de9(0x234)](_0x1a6c66),this['_send']({'type':0x0,'memberID':this[_0x5a9de9(0x197)],'unitIDs':[_0x1a6c66],'isForwarded':!0x1});}[_0x112f11(0x1d1)](_0x5ad57f){const _0x366f76=_0x112f11;this[_0x366f76(0x371)][_0x366f76(0x375)](_0x5ad57f),this[_0x366f76(0x371)][_0x366f76(0x22a)]===0x0&&this[_0x366f76(0x19c)]&&window[_0x366f76(0x290)](this[_0x366f76(0x19c)]);}[_0x112f11(0x31e)](){const _0x117275=_0x112f11;this[_0x117275(0x2dc)](a['toDisposable'](I[_0x117275(0x26e)](window,_0x117275(0x354))[_0x117275(0x1a4)](_0x5abd6b=>{const _0x165856=_0x117275;if(_0x5abd6b[_0x165856(0x144)]!==we||!_0x5abd6b[_0x165856(0x39d)])return;const _0xbd301d=JSON[_0x165856(0x2f5)](_0x5abd6b['newValue']);this[_0x165856(0x309)](_0xbd301d);}))),window[_0x117275(0x16f)]('unload',()=>this[_0x117275(0x35e)]({'type':0x1,'memberID':this[_0x117275(0x197)],'unitIDs':Array[_0x117275(0x286)](this[_0x117275(0x371)])}));}[_0x112f11(0x309)](_0x2133cd){const _0x4b1f09=_0x112f11;switch(_0x2133cd[_0x4b1f09(0x342)]){case 0x0:this[_0x4b1f09(0x1ed)](_0x2133cd);break;case 0x1:this[_0x4b1f09(0x331)](_0x2133cd);break;case 0x2:this[_0x4b1f09(0x229)](_0x2133cd);break;}}[_0x112f11(0x1ed)](_0x154e0a){const _0xef9169=_0x112f11,{unitIDs:_0x879878,memberID:_0x410d10,isForwarded:_0x5a3c5f}=_0x154e0a;_0x879878[_0xef9169(0x163)](_0x33abf1=>{const _0x2f1762=_0xef9169;if(!_0x5a3c5f&&this['_unitOnClients'][_0x2f1762(0x3b1)](_0x33abf1)&&this[_0x2f1762(0x130)](_0x33abf1)['next'](u['UnitStatus'][_0x2f1762(0x282)]),!this['_unitOnClients'][_0x2f1762(0x3b1)](_0x33abf1)||!this[_0x2f1762(0x31b)][_0x2f1762(0x243)](_0x33abf1)['has'](_0x410d10)){const _0xb9f8aa=this[_0x2f1762(0x31b)]['get'](_0x33abf1)||new Set();_0xb9f8aa[_0x2f1762(0x234)](_0x410d10),this[_0x2f1762(0x31b)][_0x2f1762(0x17b)](_0x33abf1,_0xb9f8aa),this[_0x2f1762(0x321)](_0x410d10);}}),_0x5a3c5f||this['_send']({'type':0x0,'memberID':this[_0xef9169(0x197)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x112f11(0x321)](_0x2b916b){const _0xc85eb3=_0x112f11;this['_removeClearOtherTimer'](_0x2b916b);const _0x37c578=window['setTimeout'](()=>{const _0x52af6c=_0x29e7;this[_0x52af6c(0x31b)][_0x52af6c(0x163)](_0x3dd324=>{const _0x2e3fd5=_0x52af6c;_0x3dd324[_0x2e3fd5(0x375)](_0x2b916b);});},Pe*0x2);this['_clearOtherTimers'][_0xc85eb3(0x17b)](_0x2b916b,_0x37c578);}[_0x112f11(0x211)](_0x795226){const _0x13949f=_0x112f11;if(this[_0x13949f(0x160)][_0x13949f(0x3b1)](_0x795226)){const _0x3f0140=this[_0x13949f(0x160)][_0x13949f(0x243)](_0x795226);_0x3f0140&&window[_0x13949f(0x11e)](_0x3f0140),this[_0x13949f(0x160)][_0x13949f(0x17b)](_0x795226,null);}}[_0x112f11(0x331)](_0x3d8880){const _0x3a285d=_0x112f11,{memberID:_0x3c20e3,unitIDs:_0x274186}=_0x3d8880;_0x274186[_0x3a285d(0x163)](_0x3970e3=>{const _0x493b5a=_0x3a285d;var _0x43f52e;const _0x19c2f5=this[_0x493b5a(0x31b)]['get'](_0x3970e3);_0x19c2f5&&(_0x19c2f5[_0x493b5a(0x375)](_0x3c20e3),(_0x43f52e=this[_0x493b5a(0x130)](_0x3970e3))==null||_0x43f52e[_0x493b5a(0x159)](_0x19c2f5[_0x493b5a(0x22a)]===0x0?u[_0x493b5a(0x176)][_0x493b5a(0x112)]:u[_0x493b5a(0x176)]['OTHER_CLIENTS_EDITING']));}),this[_0x3a285d(0x211)](_0x3c20e3);}[_0x112f11(0x229)](_0x1d238d){const _0x5bbb2f=_0x112f11;this[_0x5bbb2f(0x321)](_0x1d238d['memberID']);}[_0x112f11(0x35e)](_0x458fda){const _0x2803f3=_0x112f11;localStorage[_0x2803f3(0x186)](we,JSON[_0x2803f3(0x1eb)](_0x458fda));}[_0x112f11(0x17f)](){const _0x5459a6=_0x112f11;this[_0x5459a6(0x19c)]=window['setInterval'](()=>{const _0x168531=_0x5459a6;this[_0x168531(0x35e)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0x112f11(0x130)](_0x136b22){const _0x2751e3=_0x112f11;return this[_0x2751e3(0x398)][_0x2751e3(0x3b1)](_0x136b22)||this['_unitStatus'][_0x2751e3(0x17b)](_0x136b22,new I[(_0x2751e3(0x1dd))](u[_0x2751e3(0x176)][_0x2751e3(0x112)])),this[_0x2751e3(0x398)][_0x2751e3(0x243)](_0x136b22);}}exports['IURLService']=Te,exports['SheetCollabCursorShape']=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports[_0x112f11(0x183)]=ke;
1
+ 'use strict';const _0xf8a214=_0x3a58;(function(_0x7d46b1,_0x376645){const _0x29ea44=_0x3a58,_0x584744=_0x7d46b1();while(!![]){try{const _0x10afb4=parseInt(_0x29ea44(0x224))/0x1*(-parseInt(_0x29ea44(0x26a))/0x2)+-parseInt(_0x29ea44(0x2af))/0x3+-parseInt(_0x29ea44(0x212))/0x4*(parseInt(_0x29ea44(0x403))/0x5)+parseInt(_0x29ea44(0x1d1))/0x6+parseInt(_0x29ea44(0x2b2))/0x7*(-parseInt(_0x29ea44(0x309))/0x8)+parseInt(_0x29ea44(0x2ca))/0x9*(parseInt(_0x29ea44(0x3e5))/0xa)+parseInt(_0x29ea44(0x1a6))/0xb*(parseInt(_0x29ea44(0x1bb))/0xc);if(_0x10afb4===_0x376645)break;else _0x584744['push'](_0x584744['shift']());}catch(_0x26d3f2){_0x584744['push'](_0x584744['shift']());}}}(_0x55eb,0xeb316));var Ge=Object['defineProperty'],Xe=(_0x50d416,_0x3671df,_0x5be88)=>_0x3671df in _0x50d416?Ge(_0x50d416,_0x3671df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5be88}):_0x50d416[_0x3671df]=_0x5be88,_=(_0x2bcfeb,_0x598652,_0x2f12f8)=>Xe(_0x2bcfeb,typeof _0x598652!='symbol'?_0x598652+'':_0x598652,_0x2f12f8);Object[_0xf8a214(0x1d3)](exports,Symbol[_0xf8a214(0x282)],{'value':_0xf8a214(0x226)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){const _0x2c7191=_0xf8a214;return O=Object['assign']||function(_0x2ffbd5){const _0x572a1f=_0x3a58;for(var _0x4d1ba7,_0x7dde3e=0x1,_0x489b3d=arguments[_0x572a1f(0x3b4)];_0x7dde3e<_0x489b3d;_0x7dde3e++){_0x4d1ba7=arguments[_0x7dde3e];for(var _0x3e0309 in _0x4d1ba7)Object['prototype'][_0x572a1f(0x366)][_0x572a1f(0x383)](_0x4d1ba7,_0x3e0309)&&(_0x2ffbd5[_0x3e0309]=_0x4d1ba7[_0x3e0309]);}return _0x2ffbd5;},O[_0x2c7191(0x369)](this,arguments);},ze=function(_0x10050e,_0x1d2614){const _0x300a52=_0xf8a214;var _0x586209={};for(var _0x2af30f in _0x10050e)Object[_0x300a52(0x324)]['hasOwnProperty'][_0x300a52(0x383)](_0x10050e,_0x2af30f)&&_0x1d2614[_0x300a52(0x2f6)](_0x2af30f)<0x0&&(_0x586209[_0x2af30f]=_0x10050e[_0x2af30f]);if(_0x10050e!=null&&typeof Object[_0x300a52(0x3e1)]=='function'){for(var _0xda0436=0x0,_0x2af30f=Object[_0x300a52(0x3e1)](_0x10050e);_0xda0436<_0x2af30f[_0x300a52(0x3b4)];_0xda0436++)_0x1d2614['indexOf'](_0x2af30f[_0xda0436])<0x0&&Object[_0x300a52(0x324)][_0x300a52(0x2c8)][_0x300a52(0x383)](_0x10050e,_0x2af30f[_0xda0436])&&(_0x586209[_0x2af30f[_0xda0436]]=_0x10050e[_0x2af30f[_0xda0436]]);}return _0x586209;},pe=L[_0xf8a214(0x1f3)](function(_0x5df914,_0x288786){const _0xa911d2=_0xf8a214;var _0x1782c1=_0x5df914[_0xa911d2(0x1e1)],_0x4ffe05=_0x5df914['id'],_0x2e4a1a=_0x5df914[_0xa911d2(0x21b)],_0x34bd83=_0x5df914[_0xa911d2(0x154)],_0x19d68d=ze(_0x5df914,[_0xa911d2(0x1e1),'id',_0xa911d2(0x21b),_0xa911d2(0x154)]),_0x32ef8d=_0xa911d2(0x356)['concat'](_0x4ffe05,'\x20')[_0xa911d2(0x401)](_0x2e4a1a||'')[_0xa911d2(0x25f)](),_0x1d4b1d=L[_0xa911d2(0x3c1)]('_'['concat'](Qe()));return ye(_0x1782c1,''[_0xa911d2(0x401)](_0x4ffe05),{'defIds':_0x1782c1[_0xa911d2(0x2c5)],'idSuffix':_0x1d4b1d[_0xa911d2(0x3ad)]},O({'ref':_0x288786,'className':_0x32ef8d},_0x19d68d),_0x34bd83);});function ye(_0x194e12,_0x2c11a6,_0x2670cb,_0x588e42,_0x1970c6){const _0x55566c=_0xf8a214;return L['createElement'](_0x194e12[_0x55566c(0x27e)],O(O({'key':_0x2c11a6},Je(_0x194e12,_0x2670cb,_0x1970c6)),_0x588e42),(Ze(_0x194e12,_0x2670cb)[_0x55566c(0x3ed)]||[])[_0x55566c(0x39a)](function(_0x7699ba,_0x1a8e69){const _0x523cf3=_0x55566c;return ye(_0x7699ba,''['concat'](_0x2c11a6,'-')[_0x523cf3(0x401)](_0x194e12['tag'],'-')['concat'](_0x1a8e69),_0x2670cb,void 0x0,_0x1970c6);}));}function Je(_0x372539,_0x13bfd1,_0x104d63){const _0x542b4f=_0xf8a214;var _0x571d5f=O({},_0x372539[_0x542b4f(0x32d)]);_0x104d63!=null&&_0x104d63['colorChannel1']&&_0x571d5f[_0x542b4f(0x36b)]===_0x542b4f(0x3c8)&&(_0x571d5f[_0x542b4f(0x36b)]=_0x104d63[_0x542b4f(0x3c8)]),_0x372539['tag']===_0x542b4f(0x157)&&_0x571d5f['id']&&(_0x571d5f['id']=_0x571d5f['id']+_0x13bfd1['idSuffix']),Object[_0x542b4f(0x350)](_0x571d5f)[_0x542b4f(0x1f2)](function(_0x22d543){const _0x593f63=_0x542b4f;var _0x5c39b9=_0x22d543[0x0],_0x5c25cc=_0x22d543[0x1];_0x5c39b9===_0x593f63(0x157)&&typeof _0x5c25cc==_0x593f63(0x25e)&&(_0x571d5f[_0x5c39b9]=_0x5c25cc[_0x593f63(0x29f)](/url\(#(.*)\)/,_0x593f63(0x33b)[_0x593f63(0x401)](_0x13bfd1[_0x593f63(0x370)],')')));});var _0x3ec379=_0x13bfd1['defIds'];return!_0x3ec379||_0x3ec379[_0x542b4f(0x3b4)]===0x0||(_0x372539[_0x542b4f(0x27e)]===_0x542b4f(0x371)&&_0x571d5f[_0x542b4f(0x3b6)]&&(_0x571d5f[_0x542b4f(0x3b6)]=_0x571d5f['xlink:href']+_0x13bfd1[_0x542b4f(0x370)]),Object[_0x542b4f(0x350)](_0x571d5f)[_0x542b4f(0x1f2)](function(_0x2f6b08){const _0x467cc7=_0x542b4f;var _0x3f8871=_0x2f6b08[0x0],_0xab251e=_0x2f6b08[0x1];typeof _0xab251e==_0x467cc7(0x25e)&&(_0x571d5f[_0x3f8871]=_0xab251e[_0x467cc7(0x29f)](/url\(#(.*)\)/,_0x467cc7(0x33b)['concat'](_0x13bfd1[_0x467cc7(0x370)],')')));})),_0x571d5f;}function Ze(_0x19a10f,_0x7679c5){const _0x2328ea=_0xf8a214;var _0x370f74,_0x11e498=_0x7679c5[_0x2328ea(0x2c5)];return!_0x11e498||_0x11e498['length']===0x0?_0x19a10f:_0x19a10f[_0x2328ea(0x27e)]==='defs'&&(!((_0x370f74=_0x19a10f[_0x2328ea(0x3ed)])===null||_0x370f74===void 0x0)&&_0x370f74['length'])?O(O({},_0x19a10f),{'children':_0x19a10f[_0x2328ea(0x3ed)][_0x2328ea(0x39a)](function(_0x184a1a){const _0x4b45cd=_0x2328ea;return typeof _0x184a1a[_0x4b45cd(0x32d)]['id']==_0x4b45cd(0x25e)&&_0x11e498&&_0x11e498[_0x4b45cd(0x40d)](_0x184a1a[_0x4b45cd(0x32d)]['id'])?O(O({},_0x184a1a),{'attrs':O(O({},_0x184a1a[_0x4b45cd(0x32d)]),{'id':_0x184a1a[_0x4b45cd(0x32d)]['id']+_0x7679c5[_0x4b45cd(0x370)]})}):_0x184a1a;})}):_0x19a10f;}function Qe(){const _0x1ffb39=_0xf8a214;return Math[_0x1ffb39(0x274)]()[_0x1ffb39(0x3b5)](0x24)[_0x1ffb39(0x359)](0x2,0x8);}pe['displayName']=_0xf8a214(0x24a);var et={'tag':_0xf8a214(0x303),'attrs':{'xmlns':_0xf8a214(0x1b5),'fill':'none','viewBox':_0xf8a214(0x1d2),'width':_0xf8a214(0x227),'height':_0xf8a214(0x227)},'children':[{'tag':'g','attrs':{'clipPath':_0xf8a214(0x17e)},'children':[{'tag':'path','attrs':{'stroke':_0xf8a214(0x320),'d':_0xf8a214(0x2d1),'strokeLinecap':_0xf8a214(0x2fa),'strokeLinejoin':_0xf8a214(0x2fa),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xf8a214(0x33e),'attrs':{'id':_0xf8a214(0x241)},'children':[{'tag':_0xf8a214(0x202),'attrs':{'fill':_0xf8a214(0x22d),'d':_0xf8a214(0x37e)}}]}]}],'defIds':[_0xf8a214(0x241)]},xe=L[_0xf8a214(0x1f3)](function(_0x5b9dac,_0x37a9c6){const _0x297dc9=_0xf8a214;return L[_0x297dc9(0x211)](pe,Object[_0x297dc9(0x3e9)]({},_0x5b9dac,{'id':'off-line-icon','ref':_0x37a9c6,'icon':et}));});xe[_0xf8a214(0x228)]=_0xf8a214(0x16c);var tt={'tag':_0xf8a214(0x303),'attrs':{'xmlns':_0xf8a214(0x1b5),'fill':'none','viewBox':_0xf8a214(0x1ed),'width':'1em','height':_0xf8a214(0x227)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xf8a214(0x202),'attrs':{'stroke':_0xf8a214(0x320),'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':_0xf8a214(0x2fa),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xf8a214(0x279),'attrs':{},'children':[{'tag':_0xf8a214(0x33e),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xf8a214(0x202),'attrs':{'fill':_0xf8a214(0x22d),'d':_0xf8a214(0x37e),'transform':_0xf8a214(0x1ad)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=L[_0xf8a214(0x1f3)](function(_0x5371d3,_0x41b233){const _0x403e22=_0xf8a214;return L['createElement'](pe,Object[_0x403e22(0x3e9)]({},_0x5371d3,{'id':_0x403e22(0x23c),'ref':_0x41b233,'icon':tt}));});$e['displayName']='OnLineIcon';function st(_0x24521e){const _0x50ef14=_0xf8a214;switch(_0x24521e){case u['CollaborationStatus']['OFFLINE']:return _0x50ef14(0x388);case u[_0x50ef14(0x232)][_0x50ef14(0x1d9)]:return _0x50ef14(0x215);case u[_0x50ef14(0x232)][_0x50ef14(0x165)]:return _0x50ef14(0x3be);case u[_0x50ef14(0x232)]['NOT_COLLAB']:return'collabStatus.notCollab';case u['CollaborationStatus']['AWAITING']:case u[_0x50ef14(0x232)][_0x50ef14(0x16b)]:return'collabStatus.syncing';case u[_0x50ef14(0x232)][_0x50ef14(0x174)]:case u[_0x50ef14(0x232)][_0x50ef14(0x353)]:return _0x50ef14(0x177);}}function it(_0xa6160a){const _0x243dac=_0xf8a214,{status$:_0x232603}=_0xa6160a,_0x279aee=R['useObservable'](_0x232603,u['CollaborationStatus'][_0x243dac(0x172)]),_0x50c1b0=R[_0x243dac(0x25b)](a[_0x243dac(0x19f)]),_0x42f72a=R[_0x243dac(0x25b)](u[_0x243dac(0x35c)]),_0x51de6d=_0x279aee!==u[_0x243dac(0x232)]['OFFLINE'],_0x44e22e=_0x50c1b0['t'](st(_0x279aee)),_0x4df435=_0x51de6d?P[_0x243dac(0x3f2)]($e,{}):P['jsx'](xe,{}),_0x2c385f=L[_0x243dac(0x2cc)](()=>{const _0x5a9198=_0x243dac;_0x51de6d||_0x42f72a[_0x5a9198(0x1b8)]();},[_0x51de6d,_0x42f72a]);function _0x308e32(){const _0x202ab7=_0x243dac;return P[_0x202ab7(0x20e)](_0x202ab7(0x3cc),{'className':_0x202ab7(0x290),'onClick':_0x2c385f,'children':[P[_0x202ab7(0x3f2)](_0x202ab7(0x3cc),{'className':T[_0x202ab7(0x2fb)](_0x202ab7(0x2e9),{'univer-text-green-500':_0x51de6d,'univer-text-red-500':!_0x51de6d}),'children':_0x4df435}),P[_0x202ab7(0x3f2)](_0x202ab7(0x3cc),{'className':_0x202ab7(0x20a),'children':_0x44e22e})]});}return _0x51de6d?_0x308e32():P[_0x243dac(0x3f2)](T[_0x243dac(0x355)],{'title':_0x50c1b0['t'](_0x243dac(0x3c6)),'children':_0x308e32()});}var nt=Object[_0xf8a214(0x3f6)],rt=(_0x1f3351,_0x5ba179,_0x24405d,_0x15ab07)=>{const _0x1b82e1=_0xf8a214;for(var _0x30e1aa=_0x15ab07>0x1?void 0x0:_0x15ab07?nt(_0x5ba179,_0x24405d):_0x5ba179,_0x4a918b=_0x1f3351[_0x1b82e1(0x3b4)]-0x1,_0x5547a2;_0x4a918b>=0x0;_0x4a918b--)(_0x5547a2=_0x1f3351[_0x4a918b])&&(_0x30e1aa=_0x5547a2(_0x30e1aa)||_0x30e1aa);return _0x30e1aa;},q=(_0x2298e5,_0x109dc7)=>(_0x32b3d2,_0xacc21e)=>_0x109dc7(_0x32b3d2,_0xacc21e,_0x2298e5);exports[_0xf8a214(0x3d9)]=class extends a[_0xf8a214(0x296)]{constructor(_0x106774,_0x58170e,_0x2dccb4,_0x486d77){const _0x19dbe0=_0xf8a214;super(),_(this,_0x19dbe0(0x328),new I[(_0x19dbe0(0x1e3))](u[_0x19dbe0(0x232)][_0x19dbe0(0x172)])),(this[_0x19dbe0(0x314)]=_0x106774,this['_injector']=_0x58170e,this[_0x19dbe0(0x1de)]=_0x2dccb4,this[_0x19dbe0(0x1e2)]=_0x486d77,this['_initStatusComponent'](),this[_0x19dbe0(0x244)]());}['_initStatusListener'](){const _0x2b0710=_0xf8a214;this['disposeWithMe'](this[_0x2b0710(0x314)]['focused$']['pipe'](I[_0x2b0710(0x1e4)](()=>{const _0x1a53b9=_0x2b0710,_0x448253=this['_univerInstanceService'][_0x1a53b9(0x322)]();return _0x448253?this['_collaborationController']['getCollabEntity$'](_0x448253[_0x1a53b9(0x365)]()):I['of'](null);}),I[_0x2b0710(0x1e4)](_0x4f0a1b=>_0x4f0a1b?_0x4f0a1b[_0x2b0710(0x289)]:I['of'](u['CollaborationStatus'][_0x2b0710(0x172)])))[_0x2b0710(0x1dd)](_0x81a59d=>{this['_status$']['next'](_0x81a59d);}));}[_0xf8a214(0x203)](){const _0x440f57=_0xf8a214;this['disposeWithMe'](this[_0x440f57(0x1e2)][_0x440f57(0x40c)](R['BuiltInUIPart'][_0x440f57(0x2d6)],()=>R['connectInjector'](ot({'status$':this['_status$'][_0x440f57(0x1c6)]()}),this[_0x440f57(0x3c4)])));}},exports[_0xf8a214(0x3d9)]=rt([q(0x0,a['IUniverInstanceService']),q(0x1,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),q(0x2,a[_0xf8a214(0x31a)](u[_0xf8a214(0x2c1)])),q(0x3,R[_0xf8a214(0x2b0)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x3495af){const {status$:_0xb3f481}=_0x3495af;return function(){const _0x33052e=_0x3a58;return P[_0x33052e(0x3f2)](it,{'status$':_0xb3f481});};}const Te=a[_0xf8a214(0x387)](_0xf8a214(0x21f));var at=Object[_0xf8a214(0x3f6)],ct=(_0x24d925,_0x4adc5f,_0x212d28,_0x5d41a1)=>{const _0x1510a8=_0xf8a214;for(var _0xa78938=_0x5d41a1>0x1?void 0x0:_0x5d41a1?at(_0x4adc5f,_0x212d28):_0x4adc5f,_0x108ac8=_0x24d925[_0x1510a8(0x3b4)]-0x1,_0xde0f89;_0x108ac8>=0x0;_0x108ac8--)(_0xde0f89=_0x24d925[_0x108ac8])&&(_0xa78938=_0xde0f89(_0xa78938)||_0xa78938);return _0xa78938;},Y=(_0x5a95e6,_0x5d8b15)=>(_0x11a1d3,_0x20df06)=>_0x5d8b15(_0x11a1d3,_0x20df06,_0x5a95e6);exports[_0xf8a214(0x2b6)]=class extends a[_0xf8a214(0x18e)]{constructor(_0x31c24c,_0x1bbd0c,_0x2365f9,_0x1eecc2,_0x23c4ce){const _0x2658d5=_0xf8a214;super(),this['_urlService']=_0x31c24c,this[_0x2658d5(0x231)]=_0x1bbd0c,this[_0x2658d5(0x265)]=_0x2365f9,this['_dataLoaderService']=_0x1eecc2,_0x23c4ce?_0x23c4ce==null||_0x23c4ce[_0x2658d5(0x19b)]()['then'](()=>this['_init']()):(this[_0x2658d5(0x231)][_0x2658d5(0x2d5)](_0x2658d5(0x3a1),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2658d5(0x3ff)]());}async[_0xf8a214(0x3ff)](){const _0x329e23=_0xf8a214,_0x2c90b2=this[_0x329e23(0x17a)][_0x329e23(0x24e)](_0x329e23(0x26c)),_0x3d8384=this[_0x329e23(0x17a)][_0x329e23(0x24e)](_0x329e23(0x351)),_0xdf2ceb=this['_urlService'][_0x329e23(0x24e)](_0x329e23(0x382));if(!_0x2c90b2||!_0x3d8384){this[_0x329e23(0x231)][_0x329e23(0x2d5)](_0x329e23(0x3a1),_0x329e23(0x188));return;}const _0x26d715=await this['_dataLoaderService'][_0x329e23(0x2f5)](_0x2c90b2,Number(_0x3d8384),_0xdf2ceb);_0x26d715&&_0x26d715 instanceof a[_0x329e23(0x1c5)]&&this[_0x329e23(0x2ed)](_0x26d715);}async['_setupSubUnitSync'](_0x3a6e46){const _0x249280=_0xf8a214;await this[_0x249280(0x275)](_0x3a6e46),_0x3a6e46[_0x249280(0x31c)][_0x249280(0x141)](I['takeUntil'](this[_0x249280(0x186)]))['subscribe'](_0x5ea4d7=>{const _0xa1cf2f=_0x249280;_0x5ea4d7&&this[_0xa1cf2f(0x3d0)](_0x5ea4d7);}),this['_urlService']['urlChange$'][_0x249280(0x141)](I[_0x249280(0x36f)](this[_0x249280(0x186)]))[_0x249280(0x1dd)](()=>this['_updateSubUnitFromURLParams'](_0x3a6e46));}['_updateURLWithCurrentState'](_0x47da34,_0x310790=!0x1){const _0x32d47a=_0xf8a214,_0x371bba=this['_urlService']['getParam'](_0x32d47a(0x382));_0x47da34[_0x32d47a(0x3bd)]()!==_0x371bba&&this[_0x32d47a(0x17a)][_0x32d47a(0x27f)](_0x32d47a(0x382),_0x47da34[_0x32d47a(0x3bd)](),_0x310790);}async['_updateSubUnitFromURLParams'](_0x30899b){const _0x33d665=_0xf8a214;var _0x39a5c3;const _0xeda943=this[_0x33d665(0x17a)]['getParam'](_0x33d665(0x382));if(!_0xeda943||!_0x30899b[_0x33d665(0x2a6)](_0xeda943)){const _0x4eced3=_0x30899b[_0x33d665(0x32a)]()[0x0],_0x1397d2=_0x30899b['getSheetBySheetId'](_0x4eced3);if(!_0x1397d2)return;this[_0x33d665(0x3d0)](_0x1397d2,!0x0),await this[_0x33d665(0x265)][_0x33d665(0x2c7)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x30899b[_0x33d665(0x365)](),'subUnitId':_0x4eced3});return;}((_0x39a5c3=_0x30899b[_0x33d665(0x345)]())==null?void 0x0:_0x39a5c3[_0x33d665(0x3bd)]())!==_0xeda943&&await this[_0x33d665(0x265)][_0x33d665(0x2c7)](v[_0x33d665(0x281)]['id'],{'unitId':_0x30899b[_0x33d665(0x365)](),'subUnitId':_0xeda943});}},exports[_0xf8a214(0x2b6)]=ct([Y(0x0,Te),Y(0x1,a[_0xf8a214(0x375)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0xf8a214(0x31a)](u[_0xf8a214(0x190)])),Y(0x4,a[_0xf8a214(0x173)](Ke[_0xf8a214(0x3bb)]))],exports[_0xf8a214(0x2b6)]);var lt=Object[_0xf8a214(0x3f6)],_t=(_0x101a8e,_0x774349,_0x574524,_0x35271c)=>{const _0x5ee153=_0xf8a214;for(var _0x5a0564=_0x35271c>0x1?void 0x0:_0x35271c?lt(_0x774349,_0x574524):_0x774349,_0x1c3ecf=_0x101a8e[_0x5ee153(0x3b4)]-0x1,_0x58eddb;_0x1c3ecf>=0x0;_0x1c3ecf--)(_0x58eddb=_0x101a8e[_0x1c3ecf])&&(_0x5a0564=_0x58eddb(_0x5a0564)||_0x5a0564);return _0x5a0564;},be=(_0x177f1e,_0x19d527)=>(_0x3d8aac,_0x4484b6)=>_0x19d527(_0x3d8aac,_0x4484b6,_0x177f1e);let fe=class extends a[_0xf8a214(0x18e)]{constructor(_0x5f1c0a,_0x1f3cdf){const _0x46b4dd=_0xf8a214;super(),this[_0x46b4dd(0x3d6)]=_0x5f1c0a,this['_imageIoService']=_0x1f3cdf,this[_0x46b4dd(0x3ff)]();}[_0xf8a214(0x3ff)](){const _0x4bfb9c=_0xf8a214,_0x307e25=this;this[_0x4bfb9c(0x297)](this['_docClipboardService'][_0x4bfb9c(0x1ff)]({'onBeforePasteImage':async _0x42e6a3=>{const _0x3758b4=_0x4bfb9c,_0x3b53c9=await _0x307e25['_imageIoService'][_0x3758b4(0x163)](_0x42e6a3);return _0x3b53c9?{'source':_0x3b53c9[_0x3758b4(0x300)],'imageSourceType':_0x3b53c9['imageSourceType']}:null;}}));}};fe=_t([be(0x0,p[_0xf8a214(0x2e7)]),be(0x1,qe[_0xf8a214(0x37a)])],fe);const De=['purple.300',_0xf8a214(0x31e),_0xf8a214(0x40a),_0xf8a214(0x23e),_0xf8a214(0x2b8),_0xf8a214(0x187)];class Oe extends a[_0xf8a214(0x296)]{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0xf8a214(0x36c)](_0x3ed424){const _0x4ab728=_0xf8a214;if(this[_0x4ab728(0x390)][_0x4ab728(0x342)](_0x3ed424))return this[_0x4ab728(0x390)][_0x4ab728(0x1d8)](_0x3ed424);const _0x3a8723=De[this['_colorIndex']];return this['_colorIndex']=(this[_0x4ab728(0x3ce)]+0x1)%De[_0x4ab728(0x3b4)],this[_0x4ab728(0x390)][_0x4ab728(0x3b2)](_0x3ed424,_0x3a8723),_0x3a8723;}}function Be(_0xdd374a){const _0x3af474=_0xf8a214;let _0x187c6e='';for(const _0x2633bc of _0xdd374a){const {startOffset:_0x44cc61,endOffset:_0x182d6e,isActive:_0x1db6e3,rangeType:_0x437b7f,segmentId:_0xf4cb81,segmentPage:_0x196e68}=_0x2633bc;_0x187c6e[_0x3af474(0x3b4)]&&(_0x187c6e+=','),_0x187c6e+=_0x44cc61+':'+_0x182d6e+':'+(_0x1db6e3?'1':'0')+':'+_0x437b7f+':'+_0xf4cb81+':'+_0x196e68;}return _0x187c6e;}function ht(_0x27c65e){const _0x48ea24=_0xf8a214,_0x488e7f=_0x27c65e[_0x48ea24(0x179)](','),_0x2e3d80=[];for(const _0x348758 of _0x488e7f){const [_0x29120d,_0x49482b,_0x4b8a58,_0x2b7e93,_0x245346,_0x211612]=_0x348758['split'](':');_0x2e3d80['push']({'startOffset':Number(_0x29120d),'endOffset':Number(_0x49482b),'collapsed':_0x29120d===_0x49482b,'isActive':_0x4b8a58==='1','rangeType':_0x2b7e93===a[_0x48ea24(0x2c3)]['TEXT']?a[_0x48ea24(0x2c3)][_0x48ea24(0x395)]:a['DOC_RANGE_TYPE'][_0x48ea24(0x280)],'segmentId':typeof _0x245346==_0x48ea24(0x25e)?String(_0x245346):'','segmentPage':Number(_0x211612!=null?_0x211612:-0x1)});}return _0x2e3d80[_0x48ea24(0x34a)](_0x24e96b=>_0x24e96b['isActive'])||(_0x2e3d80[0x0]['isActive']=!0x0),_0x2e3d80;}class Re extends a[_0xf8a214(0x18e)]{constructor(){const _0x529633=_0xf8a214;super(...arguments),_(this,'_collabCursorState$',new I[(_0x529633(0x1e3))](null)),_(this,_0x529633(0x214),this[_0x529633(0x3d3)]['asObservable']());}[_0xf8a214(0x2df)](_0x42597d){const _0x144c37=_0xf8a214,{unitID:_0xf78751,memberID:_0x147740,textRanges:_0x1fb0fa}=_0x42597d,_0x508705=Be(_0x1fb0fa);if(_0x508705==='')return;const _0xac88f2={'unitID':_0xf78751,'memberID':_0x147740,'selection':_0x508705};this[_0x144c37(0x3d3)][_0x144c37(0x2cd)](_0xac88f2);}}var ut=Object[_0xf8a214(0x3f6)],It=(_0xdadf15,_0x1b47f5,_0x20631f,_0x11dfa2)=>{const _0x280b65=_0xf8a214;for(var _0x343914=_0x11dfa2>0x1?void 0x0:_0x11dfa2?ut(_0x1b47f5,_0x20631f):_0x1b47f5,_0x3b1546=_0xdadf15[_0x280b65(0x3b4)]-0x1,_0x1d1f11;_0x3b1546>=0x0;_0x3b1546--)(_0x1d1f11=_0xdadf15[_0x3b1546])&&(_0x343914=_0x1d1f11(_0x343914)||_0x343914);return _0x343914;},M=(_0x3f8322,_0x5abe53)=>(_0x5221a1,_0x433e08)=>_0x5abe53(_0x5221a1,_0x433e08,_0x3f8322);const dt=0x12c,St=0x64;let me=class extends a[_0xf8a214(0x18e)]{constructor(_0x26775d,_0x220af6,_0x32fe0d,_0x5136ce,_0x2c5a0e,_0xdb5003,_0x108d35,_0x327733,_0x13a0cf){const _0x28f3ce=_0xf8a214;super(),_(this,_0x28f3ce(0x3f4),!0x1),_(this,_0x28f3ce(0x3ff),!0x1),_(this,_0x28f3ce(0x3e7),new I['BehaviorSubject'](new Map())),_(this,_0x28f3ce(0x36e),this[_0x28f3ce(0x3e7)]['asObservable']()),_(this,_0x28f3ce(0x23d),new I[(_0x28f3ce(0x1e3))]([])),_(this,_0x28f3ce(0x185),this[_0x28f3ce(0x23d)][_0x28f3ce(0x141)](I[_0x28f3ce(0x193)](dt))),_(this,_0x28f3ce(0x1b4),a['debounce'](_0x56d81d=>{const _0x1d0c38=_0x28f3ce,_0xc58666={'eventID':g[_0x1d0c38(0x3e2)][_0x1d0c38(0x405)],'data':{'unitID':this[_0x1d0c38(0x29a)],'memberID':this[_0x1d0c38(0x2a2)][_0x1d0c38(0x25c)](),'selection':Be(_0x56d81d)}};this['_session']['send'](_0xc58666,this['unitID']);},St)),(this[_0x28f3ce(0x29a)]=_0x26775d,this['_session']=_0x220af6,this[_0x28f3ce(0x3c4)]=_0x32fe0d,this[_0x28f3ce(0x1c7)]=_0x5136ce,this[_0x28f3ce(0x3b1)]=_0x2c5a0e,this['_syncEditingCollabCursorService']=_0xdb5003,this['_transformService']=_0x108d35,this['_univerInstanceService']=_0x327733,this[_0x28f3ce(0x265)]=_0x13a0cf);}get[_0xf8a214(0x344)](){const _0x32e904=_0xf8a214;return this['_cursorInfo$'][_0x32e904(0x207)]();}get[_0xf8a214(0x330)](){const _0x1b14d2=_0xf8a214;return this[_0x1b14d2(0x23d)][_0x1b14d2(0x207)]();}['dispose'](){const _0x385875=_0xf8a214;super['dispose'](),this['_cursorInfo$'][_0x385875(0x2cd)](new Map()),this[_0x385875(0x3e7)][_0x385875(0x15e)](),this['_roomMembers$'][_0x385875(0x2cd)]([]),this[_0x385875(0x23d)][_0x385875(0x15e)]();}[_0xf8a214(0x2cf)](){const _0x55cd96=_0xf8a214;this[_0x55cd96(0x3ff)]||(this[_0x55cd96(0x3ff)]=!0x0,this[_0x55cd96(0x2a2)][_0x55cd96(0x373)][_0x55cd96(0x141)](I[_0x55cd96(0x36f)](this[_0x55cd96(0x186)]))[_0x55cd96(0x1dd)](_0x3da50b=>{const _0x44894f=_0x55cd96;_0x3da50b===u['SessionStatus'][_0x44894f(0x1ef)]?this['_toggleOnline']():this[_0x44894f(0x30e)]();}),this[_0x55cd96(0x2a2)][_0x55cd96(0x1b9)][_0x55cd96(0x141)](I[_0x55cd96(0x36f)](this[_0x55cd96(0x186)]))[_0x55cd96(0x1dd)](_0x3e39f6=>{const _0xb2c160=_0x55cd96,_0x5c4a18=_0x3e39f6[_0xb2c160(0x1cd)];_0x5c4a18===g[_0xb2c160(0x3e2)][_0xb2c160(0x405)]&&this[_0xb2c160(0x1c9)](_0x3e39f6),_0x5c4a18===g[_0xb2c160(0x3e2)][_0xb2c160(0x151)]&&this[_0xb2c160(0x402)](_0x3e39f6);}),this[_0x55cd96(0x297)](this[_0x55cd96(0x265)][_0x55cd96(0x248)](_0x437562=>{const _0x3cf5b4=_0x55cd96,_0x19926f=_0x437562[_0x3cf5b4(0x18b)];_0x19926f!=null&&this['_online']&&_0x437562['id']===V[_0x3cf5b4(0x149)]['id']&&_0x19926f['unitId']===this[_0x3cf5b4(0x29a)]&&_0x19926f[_0x3cf5b4(0x1fa)]===!0x1&&_0x19926f[_0x3cf5b4(0x14f)][_0x3cf5b4(0x3b4)]>0x0&&this[_0x3cf5b4(0x1b4)](_0x19926f[_0x3cf5b4(0x14f)]);})),this[_0x55cd96(0x1fd)]['collabCursorState$'][_0x55cd96(0x141)](I[_0x55cd96(0x36f)](this[_0x55cd96(0x186)]))['subscribe'](_0x2fb89c=>{const _0x243cc6=_0x55cd96;if((_0x2fb89c==null?void 0x0:_0x2fb89c['unitID'])!==this['unitID'])return;const _0x323421={'eventID':g[_0x243cc6(0x3e2)][_0x243cc6(0x405)],'data':_0x2fb89c};this[_0x243cc6(0x1c9)](_0x323421);}),this[_0x55cd96(0x297)](this[_0x55cd96(0x265)][_0x55cd96(0x248)](_0x14cf3c=>{const _0x188ad8=_0x55cd96;if(_0x14cf3c[_0x188ad8(0x18b)]==null)return;const _0x33741c=_0x14cf3c[_0x188ad8(0x18b)];if(_0x14cf3c['id']!==V[_0x188ad8(0x250)]['id']||_0x33741c[_0x188ad8(0x22e)]!==this[_0x188ad8(0x29a)])return;const _0x59e53b={'id':_0x188ad8(0x14b),'params':_0x33741c},_0xcb2aca=this[_0x188ad8(0x344)];for(const [_0x10f972,_0x5e30c1]of _0xcb2aca){const _0x1f6811={'id':_0x188ad8(0x14b),'params':{'unitId':this[_0x188ad8(0x29a)],'actions':null,'textRanges':_0x5e30c1[_0x188ad8(0x14f)]}},_0x7593b=this[_0x188ad8(0x2d3)][_0x188ad8(0x2ae)](_0x59e53b,_0x1f6811,!0x1);if(g[_0x188ad8(0x3d8)](_0x7593b))throw _0x7593b[_0x188ad8(0x249)];_0xcb2aca[_0x188ad8(0x3b2)](_0x10f972,{..._0x5e30c1,'ranges':_0x7593b[_0x188ad8(0x28c)]['params'][_0x188ad8(0x3cb)]});}queueMicrotask(()=>{const _0x1f2857=_0x188ad8;this[_0x1f2857(0x3e7)][_0x1f2857(0x2cd)](_0xcb2aca);});})));}[_0xf8a214(0x1c9)](_0x24676d){const _0x842b6d=_0xf8a214;var _0x4485bd,_0x2d099b;const {memberID:_0x430ba9,selection:_0x3bf57e}=_0x24676d[_0x842b6d(0x2a3)],_0x355ee4=ht(_0x3bf57e),_0x10a15e=(_0x2d099b=(_0x4485bd=this[_0x842b6d(0x3b1)][_0x842b6d(0x237)](this[_0x842b6d(0x29a)],_0x430ba9))==null?void 0x0:_0x4485bd['name'])!=null?_0x2d099b:_0x842b6d(0x35a),_0x5c4f83={'color':this[_0x842b6d(0x1c7)][_0x842b6d(0x36c)](_0x430ba9),'name':_0x10a15e,'ranges':_0x355ee4},_0x458b5b=this[_0x842b6d(0x344)];_0x458b5b['set'](_0x430ba9,_0x5c4f83),this[_0x842b6d(0x3e7)][_0x842b6d(0x2cd)](_0x458b5b);}['_onCursorDelete'](_0x3bbde3){const _0x3cf71f=_0xf8a214,{memberID:_0x3f8331}=_0x3bbde3[_0x3cf71f(0x2a3)],_0x13efeb=this[_0x3cf71f(0x344)];_0x13efeb[_0x3cf71f(0x367)](_0x3f8331),this[_0x3cf71f(0x3e7)][_0x3cf71f(0x2cd)](_0x13efeb);}[_0xf8a214(0x3f7)](){const _0x3bbee8=_0xf8a214;var _0x3824ef;if(this[_0x3bbee8(0x3f4)]=!0x0,((_0x3824ef=this[_0x3bbee8(0x314)]['getFocusedUnit']())==null?void 0x0:_0x3824ef[_0x3bbee8(0x365)]())!==this[_0x3bbee8(0x29a)])return;const _0x44d566=this[_0x3bbee8(0x3c4)][_0x3bbee8(0x1d8)](V[_0x3bbee8(0x3c0)])[_0x3bbee8(0x3ae)]();Array[_0x3bbee8(0x3a6)](_0x44d566)&&_0x44d566[_0x3bbee8(0x3b4)]>0x0&&this[_0x3bbee8(0x1b4)](_0x44d566);}[_0xf8a214(0x30e)](){const _0x3942fa=_0xf8a214;this[_0x3942fa(0x3f4)]=!0x1;}};me=It([M(0x2,a[_0xf8a214(0x31a)](a['Injector'])),M(0x3,a[_0xf8a214(0x31a)](Oe)),M(0x4,a[_0xf8a214(0x31a)](u[_0xf8a214(0x258)])),M(0x5,a[_0xf8a214(0x31a)](Re)),M(0x6,g['ITransformService']),M(0x7,a['IUniverInstanceService']),M(0x8,a[_0xf8a214(0x39b)])],me);var ft=Object[_0xf8a214(0x3f6)],mt=(_0x5587df,_0x1008a7,_0x12e1e4,_0x412fbc)=>{for(var _0x2101d2=_0x412fbc>0x1?void 0x0:_0x412fbc?ft(_0x1008a7,_0x12e1e4):_0x1008a7,_0x3876af=_0x5587df['length']-0x1,_0x5c4e8a;_0x3876af>=0x0;_0x3876af--)(_0x5c4e8a=_0x5587df[_0x3876af])&&(_0x2101d2=_0x5c4e8a(_0x2101d2)||_0x2101d2);return _0x2101d2;},y=(_0xf39a80,_0x465b51)=>(_0x58cc16,_0x5db712)=>_0x465b51(_0x58cc16,_0x5db712,_0xf39a80);const vt=0x12c,gt=0x64,Et=()=>{let _0x54727b=[],_0x19c66b=!0x1;return _0x197dbc=>{const _0x5f6eaf=_0x3a58;_0x54727b[_0x5f6eaf(0x346)](_0x197dbc),_0x19c66b||(_0x19c66b=!0x0,setTimeout(()=>{const _0x42951e=_0x5f6eaf;_0x54727b[_0x42951e(0x1f2)](_0x58ad53=>_0x58ad53()),_0x54727b=[],_0x19c66b=!0x1;}));};};let ve=class extends a['RxDisposable']{constructor(_0x1635e4,_0x3f56bd,_0x4991f1,_0x552930,_0x1ab985,_0xf0f7f8,_0x4235ae,_0x4c2bdb){const _0x53693d=_0xf8a214;super(),_(this,_0x53693d(0x3f4),!0x1),_(this,_0x53693d(0x3ff),!0x1),_(this,_0x53693d(0x3e7),new I[(_0x53693d(0x1e3))](new Map())),_(this,_0x53693d(0x36e),this[_0x53693d(0x3e7)][_0x53693d(0x1c6)]()),_(this,_0x53693d(0x23d),new I[(_0x53693d(0x1e3))]([])),_(this,_0x53693d(0x185),this[_0x53693d(0x23d)][_0x53693d(0x141)](I['debounceTime'](vt))),_(this,_0x53693d(0x1b4),a[_0x53693d(0x321)]((_0x5989de,_0x4014e9)=>{const _0x2e620b=_0x53693d,_0x553a26={'eventID':g['CollaborationEvent'][_0x2e620b(0x405)],'data':{'unitID':this[_0x2e620b(0x29a)],'memberID':this[_0x2e620b(0x2a2)][_0x2e620b(0x25c)](),'selection':B['serializeRangeWithSheet'](_0x5989de,_0x4014e9['range'])}};this[_0x2e620b(0x2a2)][_0x2e620b(0x381)](_0x553a26,this['unitID']);},gt)),(this[_0x53693d(0x29a)]=_0x1635e4,this['_session']=_0x3f56bd,this[_0x53693d(0x3c4)]=_0x4991f1,this[_0x53693d(0x1c7)]=_0x552930,this[_0x53693d(0x3b1)]=_0x1ab985,this['_univerInstanceService']=_0xf0f7f8,this[_0x53693d(0x265)]=_0x4235ae,this[_0x53693d(0x2ab)]=_0x4c2bdb);}get[_0xf8a214(0x344)](){const _0x1b53d3=_0xf8a214;return this['_cursorInfo$'][_0x1b53d3(0x207)]();}get[_0xf8a214(0x330)](){const _0x39f932=_0xf8a214;return this[_0x39f932(0x23d)][_0x39f932(0x207)]();}['dispose'](){const _0x1f3b54=_0xf8a214;super[_0x1f3b54(0x2d7)](),this['_cursorInfo$'][_0x1f3b54(0x2cd)](new Map()),this[_0x1f3b54(0x3e7)][_0x1f3b54(0x15e)](),this[_0x1f3b54(0x23d)][_0x1f3b54(0x2cd)]([]),this['_roomMembers$']['complete']();}[_0xf8a214(0x2cf)](){const _0x422cf8=_0xf8a214;this['_init']||(this['_init']=!0x0,this[_0x422cf8(0x2a2)][_0x422cf8(0x373)][_0x422cf8(0x141)](I[_0x422cf8(0x36f)](this[_0x422cf8(0x186)]))[_0x422cf8(0x1dd)](_0x376bbd=>{const _0x38a041=_0x422cf8;_0x376bbd===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x38a041(0x30e)]();}),this[_0x422cf8(0x2a2)][_0x422cf8(0x1b9)][_0x422cf8(0x141)](I[_0x422cf8(0x36f)](this['dispose$']))[_0x422cf8(0x1dd)](_0x3b8c6a=>{const _0x1d1611=_0x422cf8,_0x9fc22d=_0x3b8c6a[_0x1d1611(0x1cd)];_0x9fc22d===g[_0x1d1611(0x3e2)]['UPDATE_CURSOR']&&this[_0x1d1611(0x1c9)](_0x3b8c6a),_0x9fc22d===g['CollaborationEvent'][_0x1d1611(0x151)]&&this[_0x1d1611(0x402)](_0x3b8c6a);}),this['_onRefRangeChange'](),this[_0x422cf8(0x297)](this[_0x422cf8(0x265)][_0x422cf8(0x248)](_0x917031=>{const _0x6de062=_0x422cf8;if(this[_0x6de062(0x3f4)]&&_0x917031['id']===v[_0x6de062(0x147)]['id']&&_0x917031[_0x6de062(0x18b)]['unitId']===this[_0x6de062(0x29a)]){const _0x46591d=_0x917031[_0x6de062(0x18b)];this[_0x6de062(0x1b4)](_0x46591d[_0x6de062(0x1df)],_0x46591d[_0x6de062(0x394)][0x0]);}})));}['_onCursorUpdate'](_0x289432){const _0x1fa4a1=_0xf8a214;var _0x24c217,_0x32e371;const {memberID:_0x210cc9,selection:_0x41a5e8}=_0x289432['data'],{sheetName:_0x99124c,range:_0x5cc2dc}=B['deserializeRangeWithSheet'](_0x41a5e8),_0x2f1921={'name':(_0x32e371=(_0x24c217=this[_0x1fa4a1(0x3b1)]['getMember'](this[_0x1fa4a1(0x29a)],_0x210cc9))==null?void 0x0:_0x24c217[_0x1fa4a1(0x2ff)])!=null?_0x32e371:'Unknown\x20user','range':this[_0x1fa4a1(0x18d)](_0x99124c,_0x5cc2dc),'sheetID':_0x99124c,'color':this[_0x1fa4a1(0x1c7)][_0x1fa4a1(0x36c)](_0x210cc9),'selection':_0x41a5e8},_0x2f0ef7=this['cursorInfo'];_0x2f0ef7[_0x1fa4a1(0x3b2)](_0x210cc9,_0x2f1921),this[_0x1fa4a1(0x3e7)][_0x1fa4a1(0x2cd)](_0x2f0ef7);}['_onCursorDelete'](_0x161dd6){const _0x66ea3b=_0xf8a214,{memberID:_0x1b8dc4}=_0x161dd6['data'],_0x1155ad=this[_0x66ea3b(0x344)];_0x1155ad[_0x66ea3b(0x367)](_0x1b8dc4),this[_0x66ea3b(0x3e7)][_0x66ea3b(0x2cd)](_0x1155ad);}['_getMergeRange'](_0x23526c,_0x50196e){const _0x3bf824=_0xf8a214;var _0x1350d8,_0x210ba2;const _0x46280d=(_0x210ba2=(_0x1350d8=this[_0x3bf824(0x314)][_0x3bf824(0x29b)](this['unitID']))==null?void 0x0:_0x1350d8[_0x3bf824(0x2a6)](_0x23526c))==null?void 0x0:_0x210ba2[_0x3bf824(0x1ba)]();return(_0x46280d==null?void 0x0:_0x46280d['find'](_0x4998b5=>a['Rectangle'][_0x3bf824(0x26f)](_0x4998b5,_0x50196e)))||_0x50196e;}[_0xf8a214(0x251)](){const _0x397053=_0xf8a214,_0x353c2b=new a[(_0x397053(0x33f))](),_0x4e2b14=Et(),_0x32595f=()=>{const _0x4e56e5=_0x397053;_0x353c2b[_0x4e56e5(0x2d7)]();const _0x2ee450=(_0x2fb492,_0x356c20,_0x310350,_0x147309)=>{const _0x31f7a6=_0x4e56e5;let _0x5cb833=[];switch(_0x2fb492['id']){case v['EffectRefRangId'][_0x31f7a6(0x2dc)]:{_0x5cb833=v[_0x31f7a6(0x1cc)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x246)]:{_0x5cb833=v[_0x31f7a6(0x3b7)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x333)]:{_0x5cb833=v[_0x31f7a6(0x311)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x37c)]:{_0x5cb833=v[_0x31f7a6(0x38f)](_0x2fb492,_0x147309);break;}case v['EffectRefRangId'][_0x31f7a6(0x176)]:{_0x5cb833=v['handleInsertRangeMoveRight'](_0x2fb492,_0x147309);break;}case v['EffectRefRangId'][_0x31f7a6(0x1cb)]:{_0x5cb833=v[_0x31f7a6(0x1a3)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x285)]:{_0x5cb833=v[_0x31f7a6(0x1c1)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x143)]:{_0x5cb833=v[_0x31f7a6(0x1c0)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x1d5)]:{_0x5cb833=v['handleIRemoveRow'](_0x2fb492,_0x147309);break;}}const _0x4d678d=v[_0x31f7a6(0x219)](_0x5cb833,_0x147309),_0x501192=this[_0x31f7a6(0x344)][_0x31f7a6(0x1d8)](_0x356c20);if(_0x501192&&_0x4d678d){const _0x436fbf={..._0x501192,'range':_0x4d678d};this['cursorInfo'][_0x31f7a6(0x3b2)](_0x356c20,_0x436fbf),_0x4e2b14(()=>{const _0x521e1d=_0x31f7a6,_0x4f4c3d=this[_0x521e1d(0x2ab)][_0x521e1d(0x3ef)](_0x4d678d,_0x24c266=>(_0x4f4c3d[_0x521e1d(0x2d7)](),_0x2ee450(_0x24c266,_0x356c20,_0x310350,_0x4d678d)));_0x353c2b[_0x521e1d(0x22f)](_0x4f4c3d);});}return{'redos':[],'undos':[]};};this[_0x4e56e5(0x344)][_0x4e56e5(0x1f2)]((_0x5e0559,_0x32b992)=>{const _0x5332a8=_0x4e56e5,{range:_0x97e494,sheetID:_0x21ff37}=_0x5e0559,_0x38e9e8=this['_refRangeService'][_0x5332a8(0x3ef)](_0x97e494,_0x359bea=>(_0x38e9e8[_0x5332a8(0x2d7)](),_0x2ee450(_0x359bea,_0x32b992,_0x21ff37,_0x97e494)));_0x353c2b[_0x5332a8(0x22f)](_0x38e9e8);});};this[_0x397053(0x297)](a[_0x397053(0x17d)](this[_0x397053(0x3e7)][_0x397053(0x1dd)](()=>{_0x32595f();})));}['_toggleOnline'](){const _0x447bf8=_0xf8a214;var _0x5831de,_0x4b24df;if(this[_0x447bf8(0x3f4)]=!0x0,((_0x5831de=this[_0x447bf8(0x314)]['getFocusedUnit']())==null?void 0x0:_0x5831de['getUnitId']())!==this[_0x447bf8(0x29a)])return;const _0x4a4dc5=(_0x4b24df=this[_0x447bf8(0x3c4)][_0x447bf8(0x1d8)](v[_0x447bf8(0x1e0)])['getCurrentSelections']())==null?void 0x0:_0x4b24df[0x0],_0x1a6b1d=this['_univerInstanceService'][_0x447bf8(0x1e9)](a[_0x447bf8(0x392)][_0x447bf8(0x225)])['getActiveSheet']();_0x4a4dc5&&_0x1a6b1d&&this[_0x447bf8(0x1b4)](_0x1a6b1d['getSheetId'](),_0x4a4dc5);}[_0xf8a214(0x30e)](){const _0x254679=_0xf8a214;this[_0x254679(0x3f4)]=!0x1;}};ve=mt([y(0x2,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),y(0x3,a[_0xf8a214(0x31a)](Oe)),y(0x4,a['Inject'](u[_0xf8a214(0x258)])),y(0x5,a[_0xf8a214(0x389)]),y(0x6,a[_0xf8a214(0x39b)]),y(0x7,a[_0xf8a214(0x31a)](v[_0xf8a214(0x377)]))],ve);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x1d4743,_0x1f081f,_0x3c185c,_0x1c70dd)=>{const _0x529584=_0xf8a214;for(var _0x411d9b=_0x1c70dd>0x1?void 0x0:_0x1c70dd?Ct(_0x1f081f,_0x3c185c):_0x1f081f,_0x5a2a66=_0x1d4743[_0x529584(0x3b4)]-0x1,_0x115566;_0x5a2a66>=0x0;_0x5a2a66--)(_0x115566=_0x1d4743[_0x5a2a66])&&(_0x411d9b=_0x115566(_0x411d9b)||_0x411d9b);return _0x411d9b;},ae=(_0x378ae1,_0xeaf835)=>(_0x1e2e5d,_0x5175fc)=>_0xeaf835(_0x1e2e5d,_0x5175fc,_0x378ae1);let F=class extends a['RxDisposable']{constructor(_0x1cd4f7,_0x2d1a13,_0x3ae789){const _0x5f1a5f=_0xf8a214;super(),_(this,_0x5f1a5f(0x2e4),new Map()),_(this,'_entityInit$',new I[(_0x5f1a5f(0x3f1))]()),(this[_0x5f1a5f(0x314)]=_0x1cd4f7,this['_injector']=_0x2d1a13,this[_0x5f1a5f(0x206)]=_0x3ae789,this[_0x5f1a5f(0x3ff)]());}['dispose'](){const _0x34d92a=_0xf8a214;super['dispose'](),this[_0x34d92a(0x213)]['complete'](),this['_entities'][_0x34d92a(0x1f2)](_0x550aa3=>_0x550aa3[_0x34d92a(0x2d7)]());}[_0xf8a214(0x325)](_0x26fa80){const _0xebeeb0=_0xf8a214;return this[_0xebeeb0(0x2e4)][_0xebeeb0(0x342)](_0x26fa80)?this[_0xebeeb0(0x2e4)]['get'](_0x26fa80)[_0xebeeb0(0x36e)]:this[_0xebeeb0(0x213)][_0xebeeb0(0x141)](I['filter'](_0xaedd37=>_0xaedd37[_0xebeeb0(0x29a)]===_0x26fa80),I[_0xebeeb0(0x1e4)](_0x189740=>_0x189740[_0xebeeb0(0x36e)]));}['_init'](){const _0x89a6c2=_0xf8a214;this[_0x89a6c2(0x314)][_0x89a6c2(0x3e6)](a[_0x89a6c2(0x392)][_0x89a6c2(0x225)])[_0x89a6c2(0x141)](I[_0x89a6c2(0x36f)](this['dispose$']))[_0x89a6c2(0x1dd)](async _0x4aaebe=>{const _0x10bed0=_0x89a6c2,_0xd0ce64=_0x4aaebe[_0x10bed0(0x365)](),_0x57f18f=await this[_0x10bed0(0x199)](_0xd0ce64);this[_0x10bed0(0x213)][_0x10bed0(0x2cd)](_0x57f18f),this['_entities'][_0x10bed0(0x3b2)](_0xd0ce64,_0x57f18f);}),this[_0x89a6c2(0x314)][_0x89a6c2(0x3e6)](a[_0x89a6c2(0x392)]['UNIVER_DOC'])['pipe'](I[_0x89a6c2(0x36f)](this[_0x89a6c2(0x186)]))[_0x89a6c2(0x141)](I[_0x89a6c2(0x217)](_0x548de8=>!_0x548de8[_0x89a6c2(0x365)]()['startsWith']('__')))['subscribe'](async _0x3c35c9=>{const _0x48adc1=_0x89a6c2,_0x48c5e2=_0x3c35c9['getUnitId'](),_0x2d20a0=await this[_0x48adc1(0x33a)](_0x48c5e2);this[_0x48adc1(0x213)][_0x48adc1(0x2cd)](_0x2d20a0),this['_entities'][_0x48adc1(0x3b2)](_0x48c5e2,_0x2d20a0);}),I['merge'](this['_univerInstanceService'][_0x89a6c2(0x31b)](a['UniverInstanceType'][_0x89a6c2(0x361)]),this[_0x89a6c2(0x314)][_0x89a6c2(0x31b)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x89a6c2(0x141)](I[_0x89a6c2(0x36f)](this[_0x89a6c2(0x186)]))[_0x89a6c2(0x1dd)](_0x16bea4=>{const _0x19ea7a=_0x89a6c2,_0x491de7=_0x16bea4[_0x19ea7a(0x365)](),_0x1f4b4a=this[_0x19ea7a(0x2e4)][_0x19ea7a(0x1d8)](_0x491de7);_0x1f4b4a&&(_0x1f4b4a['dispose'](),this[_0x19ea7a(0x2e4)][_0x19ea7a(0x367)](_0x491de7));});}async['_startSheetCollabCursor'](_0x1d6ce7){const _0xf0a726=_0xf8a214,_0x539611=await this[_0xf0a726(0x206)][_0xf0a726(0x332)](_0x1d6ce7),_0x5aaadc=this[_0xf0a726(0x3c4)][_0xf0a726(0x34f)](ve,_0x1d6ce7,_0x539611);return _0x5aaadc['init'](),_0x5aaadc;}async[_0xf8a214(0x33a)](_0x10d585){const _0x1e4a18=_0xf8a214,_0x2715b0=await this[_0x1e4a18(0x206)][_0x1e4a18(0x332)](_0x10d585),_0x4826cf=this[_0x1e4a18(0x3c4)][_0x1e4a18(0x34f)](me,_0x10d585,_0x2715b0);return _0x4826cf[_0x1e4a18(0x2cf)](),_0x4826cf;}};F=pt([ae(0x0,a['IUniverInstanceService']),ae(0x1,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),ae(0x2,a[_0xf8a214(0x31a)](u[_0xf8a214(0x35c)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x484107,_0x4b748e){const _0x267fc3=_0xf8a214;let {radius:_0x24df9f,width:_0x50cead,height:_0x57c8f0}=_0x4b748e;_0x24df9f=_0x24df9f!=null?_0x24df9f:0x0,_0x50cead=_0x50cead!=null?_0x50cead:0x1e,_0x57c8f0=_0x57c8f0!=null?_0x57c8f0:0x1e;let _0x4775e1=0x0,_0x2fa5ef=0x0,_0xdf729f=0x0;_0x4775e1=_0x2fa5ef=_0xdf729f=Math[_0x267fc3(0x398)](_0x24df9f,_0x50cead/0x2,_0x57c8f0/0x2),_0x484107[_0x267fc3(0x13f)](),_0x484107[_0x267fc3(0x1b2)](_0x4775e1,0x0),_0x484107[_0x267fc3(0x1a0)](_0x50cead-_0x2fa5ef,0x0),_0x484107['arc'](_0x50cead-_0x2fa5ef,_0x2fa5ef,_0x2fa5ef,Math['PI']*0x3/0x2,0x0,!0x1),_0x484107[_0x267fc3(0x1a0)](_0x50cead,_0x57c8f0-_0xdf729f),_0x484107[_0x267fc3(0x2ce)](_0x50cead-_0xdf729f,_0x57c8f0-_0xdf729f,_0xdf729f,0x0,Math['PI']/0x2,!0x1),_0x484107[_0x267fc3(0x1a0)](0x0,_0x57c8f0),_0x484107[_0x267fc3(0x1a0)](0x0,_0x4775e1),_0x484107['arc'](_0x4775e1,_0x4775e1,_0x4775e1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x484107[_0x267fc3(0x140)](),_0x4b748e['fill']&&(_0x484107[_0x267fc3(0x2c2)](),_0x484107[_0x267fc3(0x307)]=_0x4b748e[_0x267fc3(0x36b)],_0x4b748e[_0x267fc3(0x166)]==='evenodd'?_0x484107[_0x267fc3(0x36b)](_0x267fc3(0x3f5)):_0x484107[_0x267fc3(0x36b)](),_0x484107[_0x267fc3(0x257)]());}class ne extends C['Shape']{constructor(_0x2b7d35,_0x3f0675){const _0x51fd46=_0xf8a214;super(_0x2b7d35,_0x3f0675),_(this,_0x51fd46(0x2ee)),_(this,_0x51fd46(0x205)),(this[_0x51fd46(0x2ee)]=_0x3f0675==null?void 0x0:_0x3f0675[_0x51fd46(0x2ee)],this[_0x51fd46(0x205)]=_0x3f0675==null?void 0x0:_0x3f0675[_0x51fd46(0x205)]);}static['drawWith'](_0xe66866,_0x20f721){const _0x4b7b20=_0xf8a214,{text:_0x3626cc,color:_0x416a17}=_0x20f721;_0xe66866[_0x4b7b20(0x2c2)](),_0xe66866[_0x4b7b20(0x1d6)]=_0x4b7b20(0x276);const _0x2d89fe=_0xe66866[_0x4b7b20(0x329)](_0x3626cc)[_0x4b7b20(0x1d7)],_0x25c606=Math[_0x4b7b20(0x398)](_0x2d89fe+0x2*ce,Ne);Ot(_0xe66866,{'height':K,'radius':0x4,'width':_0x25c606,'fill':_0x416a17}),_0xe66866['fillStyle']=_0x4b7b20(0x363);const _0x434e2f=ce,_0xfb340d=K-Tt,_0x3924d2=Ne-0x2*ce;if(_0x2d89fe>_0x3924d2){let _0x585d68='',_0x4c901b=0x0;for(const _0x579f16 of _0x3626cc){const _0x26aa61=_0xe66866['measureText'](_0x579f16)[_0x4b7b20(0x1d7)];if(_0x4c901b+_0x26aa61<=_0x3924d2-_0xe66866[_0x4b7b20(0x329)](_0x4b7b20(0x24b))['width'])_0x585d68+=_0x579f16,_0x4c901b+=_0x26aa61;else{_0x585d68+=_0x4b7b20(0x24b);break;}}_0xe66866[_0x4b7b20(0x2ac)](_0x585d68,_0x434e2f,_0xfb340d);}else _0xe66866[_0x4b7b20(0x2ac)](_0x3626cc,_0x434e2f,_0xfb340d);_0xe66866['restore']();}['_draw'](_0x3fca06){ne['drawWith'](_0x3fca06,this);}}const le=_0xf8a214(0x2a8),Rt=_0xf8a214(0x2fd),bt=_0xf8a214(0x393),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0xf8a214(0x1fc);class Ue{constructor(_0x18034e,_0x3fdbea,_0x1ee2b5,_0x929d){const _0x30196b=_0xf8a214;_(this,'_shapes',[]),_(this,_0x30196b(0x34d),null),_(this,_0x30196b(0x3c2),null),_(this,_0x30196b(0x400),null),_(this,_0x30196b(0x18f),null),_(this,'_eventUnsubscribe',null),(this[_0x30196b(0x1ce)]=_0x18034e,this[_0x30196b(0x268)]=_0x3fdbea,this[_0x30196b(0x3db)]=_0x1ee2b5,this[_0x30196b(0x35e)]=_0x929d,this['_render']());}set[_0xf8a214(0x3a7)](_0x2d9b15){const _0x2330f2=_0xf8a214;_0x2d9b15?(this[_0x2330f2(0x400)]&&this[_0x2330f2(0x400)][_0x2330f2(0x25a)](),this[_0x2330f2(0x3c2)]&&this[_0x2330f2(0x3c2)]['show']()):(this[_0x2330f2(0x400)]&&this[_0x2330f2(0x400)][_0x2330f2(0x293)](),this[_0x2330f2(0x3c2)]&&this['_textBubble']['hide']());}[_0xf8a214(0x2d7)](){const _0x320497=_0xf8a214;for(const _0x5006e1 of this[_0x320497(0x1c2)])_0x5006e1['dispose']();this[_0x320497(0x3c2)]&&this[_0x320497(0x3c2)][_0x320497(0x2d7)](),this['_anchorDot']&&this[_0x320497(0x400)]['dispose'](),this[_0x320497(0x34d)]&&this[_0x320497(0x34d)][_0x320497(0x2d7)](),this['_eventUnsubscribe']&&this[_0x320497(0x2de)]();}[_0xf8a214(0x2c9)](){const _0x3de6f9=_0xf8a214;var _0x5aa0c5;const {_docSkeleton:_0x5be093,_document:_0x2ae023}=this,{color:_0x223314,name:_0x23707d,ranges:_0x48aeda}=this[_0x3de6f9(0x1ce)],_0x697e0b=_0x2ae023[_0x3de6f9(0x3d4)](),{docsLeft:_0x503ee7,docsTop:_0x329267}=_0x697e0b,_0x54a3db=new p[(_0x3de6f9(0x30c))](_0x697e0b,_0x5be093);for(const {startOffset:_0x56b8e6,endOffset:_0x404b6c,rangeType:_0x404319,segmentId:_0xc48ec9,segmentPage:_0x1a196b,collapsed:_0x5aaf6b,isActive:_0x3fd56e}of _0x48aeda){const _0x4135a6=_0x5be093['findNodePositionByCharIndex'](_0x56b8e6,!0x0,_0xc48ec9,_0x1a196b);let _0x5a8df1=_0x5be093[_0x3de6f9(0x255)](_0x404b6c,!0x0,_0xc48ec9,_0x1a196b);if(_0x5a8df1==null&&(_0x5a8df1=_0x5be093[_0x3de6f9(0x255)](_0x404b6c-0x1,!0x1,_0xc48ec9,_0x1a196b)),_0x3fd56e){const {contentBoxPointGroup:_0x5025f0}=_0x54a3db[_0x3de6f9(0x349)](_0x5a8df1,_0x5a8df1);if(_0x5025f0['length']===0x0)continue;this[_0x3de6f9(0x318)](_0x223314,_0x5025f0,_0x503ee7,_0x329267,_0x23707d),this[_0x3de6f9(0x2de)]=this[_0x3de6f9(0x299)]();}if(_0x4135a6&&_0x5a8df1){if(_0x404319===a[_0x3de6f9(0x2c3)][_0x3de6f9(0x280)]){const _0x245090=new p[(_0x3de6f9(0x3fc))](_0x697e0b,_0x5be093),{pointGroup:_0x12cb08}=(_0x5aa0c5=_0x245090[_0x3de6f9(0x349)](_0x4135a6,_0x5a8df1))!=null?_0x5aa0c5:{};if(_0x12cb08==null||_0x12cb08['length']===0x0)continue;this[_0x3de6f9(0x155)](_0x223314,_0x12cb08,_0x503ee7,_0x329267);}else{if(!_0x5aaf6b){const {borderBoxPointGroup:_0x2b7b94}=_0x54a3db[_0x3de6f9(0x349)](_0x4135a6,_0x5a8df1);if(_0x2b7b94[_0x3de6f9(0x3b4)]===0x0)continue;this[_0x3de6f9(0x164)](_0x223314,_0x2b7b94,_0x503ee7,_0x329267);}}}}}[_0xf8a214(0x318)](_0xe77877,_0x578167,_0x2c2a04,_0xfa3bc6,_0x772eba){const _0x1e6697=_0xf8a214,_0x1b9f60=this[_0x1e6697(0x404)](_0x578167),{left:_0x1dd00e,top:_0x4c9651,height:_0x555f7e}=_0x1b9f60,_0xe4fdb8=this[_0x1e6697(0x167)](),_0x3bb5ac=Nt/_0xe4fdb8,_0x8ce1d0=new C[(_0x1e6697(0x284))](le+a[_0x1e6697(0x16e)](H),{'left':_0x1dd00e+_0x2c2a04-_0x3bb5ac,'top':_0x4c9651+_0xfa3bc6,'height':_0x555f7e,'width':Dt,'fill':_0xe77877||C[_0x1e6697(0x1a2)](a[_0x1e6697(0x2c0)][_0x1e6697(0x169)],0x0),'strokeWidth':_0x3bb5ac,'stroke':Ut,'evented':!0x0});this[_0x1e6697(0x34d)]=_0x8ce1d0,this[_0x1e6697(0x268)]['addObject'](_0x8ce1d0,p[_0x1e6697(0x354)]);const _0x5a60c2=new C[(_0x1e6697(0x284))](le+a[_0x1e6697(0x16e)](H),{'left':_0x1dd00e+_0x2c2a04-_0x3bb5ac,'top':_0x4c9651+_0xfa3bc6-_e/0x2,'height':_e,'width':_e,'fill':_0xe77877||C[_0x1e6697(0x1a2)](a[_0x1e6697(0x2c0)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xe77877||C[_0x1e6697(0x1a2)](a[_0x1e6697(0x2c0)][_0x1e6697(0x169)],0x0),'evented':!0x1});this['_anchorDot']=_0x5a60c2,this[_0x1e6697(0x268)][_0x1e6697(0x233)](_0x5a60c2,p['TEXT_RANGE_LAYER_INDEX']);const _0x1438a6=new ne(le+a['generateRandomId'](H),{'left':_0x1dd00e+_0x2c2a04-_0x3bb5ac,'top':_0x4c9651+_0xfa3bc6-K,'text':_0x772eba,'color':_0xe77877});this[_0x1e6697(0x3c2)]=_0x1438a6,this[_0x1e6697(0x268)][_0x1e6697(0x233)](_0x1438a6,p[_0x1e6697(0x354)]),this[_0x1e6697(0x3a7)]=!0x1;}[_0xf8a214(0x299)](){const _0x2991e8=_0xf8a214,_0x5957ce=this[_0x2991e8(0x34d)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x21514c=_0x2991e8;this[_0x21514c(0x3a7)]=!0x0;}),_0x4094ea=this[_0x2991e8(0x34d)]['onPointerLeave$'][_0x2991e8(0x261)](()=>{const _0x128622=_0x2991e8;this[_0x128622(0x18f)]&&clearTimeout(this[_0x128622(0x18f)]),this[_0x128622(0x18f)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x628531=_0x2991e8;_0x5957ce['unsubscribe'](),_0x4094ea[_0x628531(0x407)]();};}[_0xf8a214(0x164)](_0x1609c1,_0x29d839,_0x4e255d,_0x4639a1){const _0x4353fc=_0xf8a214,_0x32d66c=new a[(_0x4353fc(0x3b3))](_0x1609c1)[_0x4353fc(0x1ec)](0.2)['toRgbString'](),_0xa6f649=new C['RegularPolygon'](Rt+a[_0x4353fc(0x16e)](H),{'pointsGroup':_0x29d839,'fill':_0x32d66c||C['getColor'](a['COLORS'][_0x4353fc(0x169)],0.2),'left':_0x4e255d,'top':_0x4639a1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4353fc(0x1c2)][_0x4353fc(0x346)](_0xa6f649),this[_0x4353fc(0x268)][_0x4353fc(0x233)](_0xa6f649,p[_0x4353fc(0x354)]);}[_0xf8a214(0x155)](_0x204c64,_0x2d1769,_0x45ff44,_0x1bc3f8){const _0x4302b6=_0xf8a214,_0x5010c8=new a[(_0x4302b6(0x3b3))](_0x204c64)[_0x4302b6(0x1ec)](0.2)[_0x4302b6(0x156)](),_0x2d0f7a=new C[(_0x4302b6(0x3dd))](bt+a[_0x4302b6(0x16e)](H),{'pointsGroup':_0x2d1769,'fill':_0x5010c8||C[_0x4302b6(0x1a2)](a[_0x4302b6(0x2c0)][_0x4302b6(0x169)],0.2),'left':_0x45ff44,'top':_0x1bc3f8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4302b6(0x346)](_0x2d0f7a),this['_scene']['addObject'](_0x2d0f7a,p[_0x4302b6(0x354)]);}[_0xf8a214(0x404)](_0x1ca567){const _0x32e18d=_0x1ca567[0x0],_0x5bb14a=_0x32e18d[0x0],_0x2f6bf0=_0x32e18d[0x2],{x:_0x4382d1,y:_0x4d2195}=_0x5bb14a,{x:_0x63f1f8,y:_0x523b6b}=_0x2f6bf0;return{'left':_0x4382d1,'top':_0x4d2195,'width':_0x63f1f8-_0x4382d1,'height':_0x523b6b-_0x4d2195};}[_0xf8a214(0x167)](){const _0xa3161e=_0xf8a214,{scaleX:_0x180776,scaleY:_0x4971e1}=this[_0xa3161e(0x268)][_0xa3161e(0x160)]();return Math[_0xa3161e(0x1e8)](_0x180776,_0x4971e1);}}var Lt=Object[_0xf8a214(0x3f6)],Mt=(_0x45d768,_0x2ed1f9,_0x4f370b,_0x34abaf)=>{const _0xa25376=_0xf8a214;for(var _0xa3a7cb=_0x34abaf>0x1?void 0x0:_0x34abaf?Lt(_0x2ed1f9,_0x4f370b):_0x2ed1f9,_0x82c25f=_0x45d768[_0xa25376(0x3b4)]-0x1,_0x28c510;_0x82c25f>=0x0;_0x82c25f--)(_0x28c510=_0x45d768[_0x82c25f])&&(_0xa3a7cb=_0x28c510(_0xa3a7cb)||_0xa3a7cb);return _0xa3a7cb;},z=(_0x106272,_0x1a27d3)=>(_0x24ec35,_0x4f9089)=>_0x1a27d3(_0x24ec35,_0x4f9089,_0x106272);let ge=class extends a['RxDisposable']{constructor(_0x2531a6,_0x4d2b85,_0x56b759,_0x5719eb,_0x40ea98){const _0x405092=_0xf8a214;super(),_(this,'_cursorShapes',[]),_(this,_0x405092(0x1f7),[]),(this[_0x405092(0x294)]=_0x2531a6,this[_0x405092(0x313)]=_0x4d2b85,this[_0x405092(0x175)]=_0x56b759,this[_0x405092(0x265)]=_0x5719eb,this[_0x405092(0x397)]=_0x40ea98,this[_0x405092(0x3ff)]());}[_0xf8a214(0x3ff)](){const _0x4254fc=_0xf8a214,_0x451b44=this[_0x4254fc(0x294)][_0x4254fc(0x22e)],_0x5a78f1=this[_0x4254fc(0x313)];this[_0x4254fc(0x297)](I[_0x4254fc(0x3f9)]([this['_collabCursorController'][_0x4254fc(0x325)](_0x451b44),this['_themeService'][_0x4254fc(0x1a5)]])['pipe']($[_0x4254fc(0x39a)](([_0x1f0831,_0x27ca89])=>({'skeleton':_0x5a78f1[_0x4254fc(0x2f8)](),'cursors':[..._0x1f0831[_0x4254fc(0x1dc)]()][_0x4254fc(0x273)](_0x165081=>({..._0x165081,'color':this[_0x4254fc(0x397)][_0x4254fc(0x2bd)](_0x165081['color'])}))})))[_0x4254fc(0x1dd)](_0x4e5574=>{const _0x2b0a83=_0x4254fc;if(this[_0x2b0a83(0x20b)](),_0x4e5574){const {skeleton:_0xf5851c,cursors:_0x225291}=_0x4e5574;this[_0x2b0a83(0x2f1)](_0xf5851c,_0x225291);}})),this['_initResize'](),this[_0x4254fc(0x334)]();}[_0xf8a214(0x2f1)](_0x1ff907,_0x54c7c6){const _0x3a1ab0=_0xf8a214,{scene:_0x1e16d7,mainComponent:_0x3930b0}=this['_context'],_0x967a59=_0x54c7c6[_0x3a1ab0(0x39a)](_0x15108c=>new Ue(_0x15108c,_0x1e16d7,_0x1ff907,_0x3930b0));this[_0x3a1ab0(0x343)]=_0x967a59,this[_0x3a1ab0(0x1f7)]=_0x54c7c6;}[_0xf8a214(0x1b7)](){const _0x3124e9=_0xf8a214;this[_0x3124e9(0x20b)]();const {scene:_0x628044,mainComponent:_0xcd572}=this[_0x3124e9(0x294)],_0x36d681=this[_0x3124e9(0x313)]['getSkeleton'](),_0x3b07a2=this[_0x3124e9(0x1f7)]['map'](_0x41d7c8=>new Ue(_0x41d7c8,_0x628044,_0x36d681,_0xcd572));this[_0x3124e9(0x343)]=_0x3b07a2;}[_0xf8a214(0x20b)](){const _0x287aea=_0xf8a214;this[_0x287aea(0x343)][_0x287aea(0x1f2)](_0x420919=>_0x420919['dispose']()),this[_0x287aea(0x343)]=[];}[_0xf8a214(0x334)](){const _0x2f9fd2=_0xf8a214,_0x12f808=[p['SetDocZoomRatioOperation']['id']];this[_0x2f9fd2(0x297)](this[_0x2f9fd2(0x265)][_0x2f9fd2(0x248)](_0xf9f71f=>{const _0x7cc7e6=_0x2f9fd2;_0x12f808[_0x7cc7e6(0x40d)](_0xf9f71f['id'])&&_0xf9f71f[_0x7cc7e6(0x18b)][_0x7cc7e6(0x22e)]===this[_0x7cc7e6(0x294)][_0x7cc7e6(0x22e)]&&this[_0x7cc7e6(0x1b7)]();}));}[_0xf8a214(0x3c5)](){const _0x18b624=_0xf8a214;this[_0x18b624(0x297)](a[_0x18b624(0x391)](this[_0x18b624(0x294)][_0x18b624(0x1be)][_0x18b624(0x35d)])[_0x18b624(0x141)]($[_0x18b624(0x217)](_0x3ca19e=>_0x3ca19e[_0x18b624(0x351)]===C[_0x18b624(0x286)][_0x18b624(0x253)]),$[_0x18b624(0x40e)](0x10))[_0x18b624(0x1dd)](()=>{const _0x39a58b=_0x18b624;this[_0x39a58b(0x1b7)]();}));}};ge=Mt([z(0x1,a[_0xf8a214(0x31a)](V[_0xf8a214(0x2aa)])),z(0x2,a[_0xf8a214(0x31a)](F)),z(0x3,a['ICommandService']),z(0x4,a[_0xf8a214(0x31a)](a[_0xf8a214(0x39d)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0xf8a214(0x146)]{constructor(_0x5b973a,_0x2c770b){const _0x300edd=_0xf8a214;super(_0x5b973a,_0x2c770b),_(this,_0x300edd(0x1bc)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x300edd(0x1f1),''),_(this,_0x300edd(0x3dc),_0x300edd(0x3a4)),_(this,_0x300edd(0x1ca)),(_0x2c770b&&this[_0x300edd(0x37d)](_0x2c770b),this['onPointerEnter$'][_0x300edd(0x261)](()=>this[_0x300edd(0x37d)]({'hovered':!0x0})),this[_0x300edd(0x298)][_0x300edd(0x261)](()=>this[_0x300edd(0x37d)]({'hovered':!0x1})));}[_0xf8a214(0x37d)](_0x2edd01){const _0x3cca47=_0xf8a214;var _0x25c935,_0x2b6df7,_0x3e6a83,_0xce5e46,_0x4fe8a4,_0x3255d9;this[_0x3cca47(0x1bc)]=(_0x25c935=_0x2edd01[_0x3cca47(0x2ee)])!=null?_0x25c935:this[_0x3cca47(0x1bc)],this['_hovered']=(_0x2b6df7=_0x2edd01[_0x3cca47(0x28a)])!=null?_0x2b6df7:this['_hovered'],this[_0x3cca47(0x288)]=(_0x3e6a83=_0x2edd01[_0x3cca47(0x39c)])!=null?_0x3e6a83:this[_0x3cca47(0x288)],this[_0x3cca47(0x1f1)]=(_0xce5e46=_0x2edd01[_0x3cca47(0x2ff)])!=null?_0xce5e46:this[_0x3cca47(0x1f1)],this['_labelPosition']=(_0x4fe8a4=_0x2edd01['labelPosition'])!=null?_0x4fe8a4:this[_0x3cca47(0x3dc)],this[_0x3cca47(0x1ca)]=(_0x3255d9=_0x2edd01[_0x3cca47(0x24d)])!=null?_0x3255d9:this['_backgroundColor'],this[_0x3cca47(0x1f0)]({'width':_0x2edd01[_0x3cca47(0x1d7)],'height':_0x2edd01[_0x3cca47(0x19c)]});}[_0xf8a214(0x38b)](_0x4f311e){const _0xf1bfb0=_0xf8a214,{row:_0x8f8bfa,column:_0x4cd284}=_0x4f311e;if(_0x8f8bfa>=this[_0xf1bfb0(0x288)][_0xf1bfb0(0x3af)]&&_0x8f8bfa<=this[_0xf1bfb0(0x288)]['endRow']&&_0x4cd284>=this[_0xf1bfb0(0x288)]['startColumn']&&_0x4cd284<=this[_0xf1bfb0(0x288)][_0xf1bfb0(0x16d)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0xf1bfb0(0x37d)]({'hovered':!0x1});}[_0xf8a214(0x21d)](_0xbfedab){return!0x1;}[_0xf8a214(0x243)](_0x3f36e5){const _0x5b545c=_0xf8a214;C[_0x5b545c(0x284)][_0x5b545c(0x1fe)](_0x3f36e5,{'width':this[_0x5b545c(0x1d7)],'height':this[_0x5b545c(0x19c)],'strokeWidth':Pt,'stroke':this[_0x5b545c(0x1bc)],'evented':!0x1,'fill':this[_0x5b545c(0x1ca)]}),this[_0x5b545c(0x2e0)]&&(_0x3f36e5['save'](),_0x3f36e5[_0x5b545c(0x30d)](0x1,0x0,0x0,0x1,this[_0x5b545c(0x1d7)],this['_labelPosition']===_0x5b545c(0x27c)?0x0:-K),ne[_0x5b545c(0x1fe)](_0x3f36e5,{'text':this[_0x5b545c(0x1f1)],'color':this[_0x5b545c(0x1bc)]}),_0x3f36e5[_0x5b545c(0x257)]());}}var wt=Object[_0xf8a214(0x3f6)],yt=(_0x3c37ca,_0x549b1f,_0x4c6fec,_0x45d385)=>{const _0x4b0342=_0xf8a214;for(var _0x9caab4=_0x45d385>0x1?void 0x0:_0x45d385?wt(_0x549b1f,_0x4c6fec):_0x549b1f,_0x256f30=_0x3c37ca[_0x4b0342(0x3b4)]-0x1,_0x25aa56;_0x256f30>=0x0;_0x256f30--)(_0x25aa56=_0x3c37ca[_0x256f30])&&(_0x9caab4=_0x25aa56(_0x9caab4)||_0x9caab4);return _0x9caab4;},he=(_0x167113,_0x27e68f)=>(_0x57d088,_0x368101)=>_0x27e68f(_0x57d088,_0x368101,_0x167113);const xt=0x1389;let Ee=class extends a[_0xf8a214(0x18e)]{constructor(_0x13183a,_0x52548b,_0x37ad91,_0x5a4ec1){const _0x2f62f3=_0xf8a214;super(),_(this,'_cursors',new Set()),_(this,_0x2f62f3(0x347),null),(this[_0x2f62f3(0x294)]=_0x13183a,this[_0x2f62f3(0x1e5)]=_0x52548b,this[_0x2f62f3(0x175)]=_0x37ad91,this[_0x2f62f3(0x397)]=_0x5a4ec1,this[_0x2f62f3(0x3ff)]());}[_0xf8a214(0x3ff)](){const _0x144adf=_0xf8a214;this[_0x144adf(0x1e5)][_0x144adf(0x148)][_0x144adf(0x141)]($[_0x144adf(0x36f)](this[_0x144adf(0x186)]),$[_0x144adf(0x1e4)](_0x4fae89=>{const _0x52622e=_0x144adf;if(_0x4fae89){const _0x3be9b7=_0x4fae89[_0x52622e(0x2d2)];return I[_0x52622e(0x3f9)](this['_collabCursorController'][_0x52622e(0x325)](this[_0x52622e(0x294)]['unitId']),this[_0x52622e(0x397)][_0x52622e(0x1a5)])[_0x52622e(0x141)]($['map'](([_0x3e171f,_0x3ecf30])=>{const _0x50eb87=_0x52622e,_0x4fd056=new Map();return _0x3e171f[_0x50eb87(0x1f2)]((_0x160218,_0x514a98)=>{const _0x39334d=_0x50eb87;if(_0x160218[_0x39334d(0x14d)]===_0x3be9b7){const _0x2c8fe7={..._0x160218};_0x2c8fe7[_0x39334d(0x2ee)]=this[_0x39334d(0x397)][_0x39334d(0x2bd)](_0x160218[_0x39334d(0x2ee)]),_0x4fd056['set'](_0x514a98,_0x2c8fe7);}}),{'skeleton':_0x4fae89,'cursors':_0x4fd056};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x144adf(0x1dd)](({skeleton:_0x1ce83b,cursors:_0x4616b1})=>{const _0x447a78=_0x144adf;this[_0x447a78(0x20b)](),_0x1ce83b&&this[_0x447a78(0x2f1)](_0x1ce83b,_0x4616b1);}),this[_0x144adf(0x1e5)]['currentSkeleton$'][_0x144adf(0x1dd)](_0x36d08d=>{const _0x366c31=_0x144adf;if(_0x36d08d==null)return;const {skeleton:_0xadc1ad}=_0x36d08d,{scene:_0x52964e}=this['_context'];_0x52964e[_0x366c31(0x3e4)]['subscribeEvent'](a[_0x366c31(0x321)](_0x3b29cf=>{const _0x2a852f=_0x366c31;var _0x48752c,_0x2fb9fb;const {offsetX:_0x40a934,offsetY:_0xc0c2d3}=_0x3b29cf,{x:_0x2c9be5,y:_0x246623}=_0x52964e[_0x2a852f(0x14c)](C[_0x2a852f(0x340)]['FromArray']([_0x40a934,_0xc0c2d3])),{scaleX:_0x43877a,scaleY:_0x5700e9}=_0x52964e['getAncestorScale'](),_0x365331=_0x52964e[_0x2a852f(0x19a)](C[_0x2a852f(0x209)][_0x2a852f(0x240)]),_0x339a01=_0x52964e[_0x2a852f(0x2be)](C[_0x2a852f(0x340)]['FromArray']([_0x2c9be5,_0x246623]),_0x365331),_0x1a5c51=_0xadc1ad[_0x2a852f(0x2f2)](_0x40a934,_0xc0c2d3,_0x43877a,_0x5700e9,_0x339a01);((_0x48752c=this[_0x2a852f(0x347)])==null?void 0x0:_0x48752c[_0x2a852f(0x1f6)])===_0x1a5c51[_0x2a852f(0x1f6)]&&((_0x2fb9fb=this[_0x2a852f(0x347)])==null?void 0x0:_0x2fb9fb[_0x2a852f(0x358)])===_0x1a5c51['row']||this[_0x2a852f(0x1f7)][_0x2a852f(0x1f2)](_0xe7878b=>{_0xe7878b['onMouseMove'](_0x1a5c51);});},0x64));});}[_0xf8a214(0x2f1)](_0x52068c,_0x4f9821){const _0x5c1194=_0xf8a214;var _0x10c87a;const _0x6e17eb=(_0x10c87a=this[_0x5c1194(0x1e5)][_0x5c1194(0x302)]())==null?void 0x0:_0x10c87a[_0x5c1194(0x239)];if(!_0x6e17eb)return;const _0x2e4e66=this[_0x5c1194(0x2b9)]();if(!_0x2e4e66)return;this[_0x5c1194(0x1f7)]['forEach'](_0x190307=>{const _0x557b28=_0x5c1194;_0x190307[_0x557b28(0x2ba)]();});const {scene:_0x2bba78}=_0x2e4e66,_0x48edc4=$t(Array[_0x5c1194(0x195)](_0x4f9821['values']()))[_0x5c1194(0x39a)](_0x55e6e3=>{const _0x3d6b2d=_0x5c1194,{color:_0xea79fa,range:_0x444a88,name:_0x1626ad,selection:_0x2d11fd,sheetID:_0x4aa80c}=_0x55e6e3,{startColumn:_0x2145f1,startRow:_0x253192,endColumn:_0x392c54,endRow:_0x1a90c1}=_0x444a88,_0x1586d9=J[_0x3d6b2d(0x1f5)](_0x253192,_0x2145f1,_0x2bba78,_0x6e17eb),_0x22ec40=J['getCoordByCell'](_0x1a90c1,_0x392c54,_0x2bba78,_0x6e17eb),{columnHeaderHeightAndMarginTop:_0x43fc15}=_0x6e17eb,{startX:_0x1ba20d,startY:_0x1a6162}=_0x1586d9,{endX:_0xedeb1f,endY:_0x592543}=_0x22ec40,_0x2d838e=_0xedeb1f-_0x1ba20d,_0xb3148d=_0x592543-_0x1a6162,_0x4965d3={'labelPosition':_0x1a6162-_0x43fc15>=K?_0x3d6b2d(0x3a4):_0x3d6b2d(0x27c),'sheetID':_0x4aa80c,'range':_0x444a88,'color':_0xea79fa,'name':_0x1626ad,'selection':_0x2d11fd,'left':_0x1ba20d,'top':_0x1a6162,'width':_0x2d838e,'height':_0xb3148d,'evented':!0x1,'zIndex':xt};return new Fe(_0x1626ad,_0x4965d3);});_0x2bba78[_0x5c1194(0x1bd)](_0x48edc4,At),this['_cursors']=new Set(_0x48edc4);}[_0xf8a214(0x20b)](){const _0x5a479c=_0xf8a214;var _0x32d49d;(_0x32d49d=this['_cursors'])==null||_0x32d49d['forEach'](_0x2fda6f=>_0x2fda6f[_0x5a479c(0x2d7)]());}[_0xf8a214(0x2b9)](){const _0x342849=_0xf8a214;return J[_0x342849(0x208)](this['_context'][_0x342849(0x26c)],this['_context']);}};Ee=yt([he(0x1,a['Inject'](J[_0xf8a214(0x256)])),he(0x2,a['Inject'](F)),he(0x3,a[_0xf8a214(0x31a)](a['ThemeService']))],Ee);function $t(_0x450d2d){const _0x576fae=_0xf8a214,_0xef270a=new Map();return _0x450d2d['forEach'](_0x5a50f2=>{const _0x49654c=_0x3a58;if(_0xef270a['has'](_0x5a50f2[_0x49654c(0x32b)])){const _0xc2e5d1=_0xef270a['get'](_0x5a50f2[_0x49654c(0x32b)]);_0xc2e5d1[_0x49654c(0x2ff)]+=',\x20'+_0x5a50f2[_0x49654c(0x2ff)];}else _0xef270a['set'](_0x5a50f2[_0x49654c(0x32b)],_0x5a50f2);}),Array[_0x576fae(0x195)](_0xef270a[_0x576fae(0x1dc)]());}var Bt=Object[_0xf8a214(0x3f6)],Ft=(_0x3221d0,_0x5cf089,_0x55a8a1,_0x2e13d6)=>{const _0x1c3812=_0xf8a214;for(var _0x11fd43=_0x2e13d6>0x1?void 0x0:_0x2e13d6?Bt(_0x5cf089,_0x55a8a1):_0x5cf089,_0x13e680=_0x3221d0[_0x1c3812(0x3b4)]-0x1,_0x1a3494;_0x13e680>=0x0;_0x13e680--)(_0x1a3494=_0x3221d0[_0x13e680])&&(_0x11fd43=_0x1a3494(_0x11fd43)||_0x11fd43);return _0x11fd43;},x=(_0x5d8df2,_0x609bf6)=>(_0x528a32,_0x56e2b5)=>_0x609bf6(_0x528a32,_0x56e2b5,_0x5d8df2);let Z=class extends a['Disposable']{constructor(_0x2136b9,_0x2e5fdc,_0x3ace33,_0x59f0a4,_0x43d3ec,_0x52c502){const _0x3fe51a=_0xf8a214;super(),this['_beforeCloseService']=_0x2136b9,this[_0x3fe51a(0x295)]=_0x2e5fdc,this[_0x3fe51a(0x2d4)]=_0x3ace33,this[_0x3fe51a(0x291)]=_0x59f0a4,this[_0x3fe51a(0x16f)]=_0x43d3ec,this[_0x3fe51a(0x336)]=_0x52c502,this[_0x3fe51a(0x161)](),this[_0x3fe51a(0x2eb)]();}[_0xf8a214(0x161)](){const _0x124a13=_0xf8a214;this[_0x124a13(0x297)](this[_0x124a13(0x3ec)][_0x124a13(0x15c)](()=>{const _0x27b4f0=_0x124a13;if(this[_0x27b4f0(0x295)][_0x27b4f0(0x3fb)]['size'])return this[_0x27b4f0(0x336)]['t'](_0x27b4f0(0x3bf));}));}[_0xf8a214(0x2eb)](){const _0xf2e495=_0xf8a214;this[_0xf2e495(0x297)](this[_0xf2e495(0x2d4)]['event$'][_0xf2e495(0x1dd)](_0x938c9f=>{const _0x4f6a88=_0xf2e495;_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x305)]&&this[_0x4f6a88(0x291)][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)]['Warning'],'content':this[_0x4f6a88(0x336)]['t']('collaboration.single-unit.warning')}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x272)]&&this[_0x4f6a88(0x291)][_0x4f6a88(0x293)]({'type':T['MessageType'][_0x4f6a88(0x242)],'content':this[_0x4f6a88(0x336)]['t'](_0x4f6a88(0x2a7))}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x32e)]&&this[_0x4f6a88(0x16f)][_0x4f6a88(0x293)]({'title':this[_0x4f6a88(0x336)]['t']('permission.title'),'content':this['_localeService']['t'](_0x4f6a88(0x1e7)),'type':_0x4f6a88(0x249),'duration':0x0}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)]['CONFLICT']&&this[_0x4f6a88(0x291)]['show']({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x235)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x938c9f[_0x4f6a88(0x2a3)]+')'}),_0x938c9f['id']===u['CollaborationUIEventId'][_0x4f6a88(0x3d2)]&&this['_messageService'][_0x4f6a88(0x293)]({'type':T['MessageType']['Warning'],'content':this[_0x4f6a88(0x336)]['t'](_0x938c9f[_0x4f6a88(0x2a3)]||'')}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x1c4)]&&this['_messageService'][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x242)],'content':this[_0x4f6a88(0x336)]['t']('session.will-retry')}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x3eb)]&&this['_messageService'][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x235)],'content':this['_localeService']['t'](_0x4f6a88(0x162))}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4f6a88(0x291)][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x235)],'content':this['_localeService']['t'](_0x4f6a88(0x23f))});}));}};Z=Ft([x(0x0,R[_0xf8a214(0x230)]),x(0x1,u[_0xf8a214(0x204)]),x(0x2,a['Inject'](u[_0xf8a214(0x152)])),x(0x3,R[_0xf8a214(0x379)]),x(0x4,R[_0xf8a214(0x2f0)]),x(0x5,a[_0xf8a214(0x31a)](a[_0xf8a214(0x19f)]))],Z);const kt=_0xf8a214(0x37b),Le={};var jt=Object['getOwnPropertyDescriptor'],Yt=(_0x26b107,_0x3474ca,_0x23356f,_0x9ce3d4)=>{const _0x449591=_0xf8a214;for(var _0x54c1e7=_0x9ce3d4>0x1?void 0x0:_0x9ce3d4?jt(_0x3474ca,_0x23356f):_0x3474ca,_0x323a9f=_0x26b107[_0x449591(0x3b4)]-0x1,_0x211fec;_0x323a9f>=0x0;_0x323a9f--)(_0x211fec=_0x26b107[_0x323a9f])&&(_0x54c1e7=_0x211fec(_0x54c1e7)||_0x54c1e7);return _0x54c1e7;},Me=(_0x584bf4,_0x4d0518)=>(_0x8df12,_0x19e2ef)=>_0x4d0518(_0x8df12,_0x19e2ef,_0x584bf4);function _0x55eb(){const _0x2bf3bc=['subscribeEvent','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_docTransformIMECacheService','_registerDependencies','_commandService','setItem','isFormulaId','_scene','_revisionService','9586AYqaHI','_releaseCalculationLimit','unit','parse','_handleHeartbeatEvent','contains','sessionTicket','transformRemoteChangeset','CLOSE_ROOM','flatMap','random','_updateSubUnitFromURLParams','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','IRenderManagerService','application/json','defs','clearTimeout','_transformHistoryAndStateStack','bottom','_createSocketURL','tag','setParam','RECT','SetWorksheetActivateCommand','toStringTag','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Rect','MoveRangeCommandId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','actions','_range','status$','hovered','/universer-api/license/formula/limit/status','m2Prime','result','startColumn','ACTIVE_UNIT_EVENT_CHANNEL','univer-flex\x20univer-items-center','_messageService','APPLY_REJECT','show','_context','_localCacheService','Disposable','disposeWithMe','onPointerLeave$','_handleHover','unitID','getUniverSheetInstance','formula.calculation.waiting','/universer-api/license/formula/limit/done','LICENSE_IMPORT_SIZE_EXCEEDED','replace','REDEMPTION_CODE_NOT_STARTED','addHandlerCallback','_session','data','_docSyncEditingCollabCursorService','IConfigService','getSheetBySheetId','collaboration.closeRoom','collab-text-anchor-','newValue','DocSkeletonManagerService','_refRangeService','fillText','USER_NOT_FOUND','transformMutation','3417573IYVbMh','IUIPartsService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','42665CNehSA','post','touchDependencies','CHANGESET_REVISION_CONFILICT','CollaborationDataLoaderController','LOGIN_TOKEN_PROCESSING_FAILED','blue.400','_getSheetObject','makeDirty','getCurrentRevOfUnit','transformStateCache','getColorFromTheme','getVpScrollXYInfoByPosToVp','getLocalCacheKey','COLORS','CollaborationController','save','DOC_RANGE_TYPE','mergeOverrideWithDependencies','defIds','MUTATION','executeCommand','propertyIsEnumerable','_render','250218olXLXz','setInterval','useCallback','next','arc','init','stringify','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','sheetId','_transformService','_collaborationUIEventService','debug','HEADER_MENU','dispose','RemoteUniscriptService','DocIMEInputManagerService','editingUnit','WebSocketService','DeleteRangeMoveLeftCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_eventUnsubscribe','syncEditingCollabCursor','_hovered','MOBILE_HAS_BEEN_BOUND','_docTransformSelectionsService','shift','_entities','transformIMECache','INTERNAL_ERROR','IDocClipboardService','_handleEvent','univer-mr-2\x20univer-flex\x20univer-text-xl','_unitOnClients','_initEvent','then','_setupSubUnitSync','color','_docStateChangeManagerService','INotificationService','_updateCollabCursors','getCellPositionByOffset','Plugin','APPLY_PERMISSION_DENIED','loadUnit','indexOf','INVALID_ARGUMENT','getSkeleton','[RemoteUniscriptService]:\x20no\x20focused\x20unit','round','clsx','_removeClearOtherTimer','collab-text-range-','UNAUTHENTICATED','name','source','PY_RUNTIME_SCRIPT_ERROR','getCurrent','svg','setStateCache','OTHER_CLIENT_EDITING','addEventListener','fillStyle','ENTITLE_NEED_BILLING_ADDRESS','1648VMsiZt','NOT_FOUND','m1Prime','NodePositionConvertToCursor','transform','_toggleOffline','disableLocalCache','_clearOtherTimers','handleInsertCol','APPLY_NON_SEQUENTIAL_REVISION','_docSkeletonManagerService','_univerInstanceService','getRenderById','TOO_MANY_REQUESTS','getformulaLimitStatusUrl','_drawAnchor','distinctUntilChanged','Inject','getTypeOfUnitDisposed$','activeSheet$','INVITE_CODE_ALREADY_BOUND','jiqing.500','endRow','currentColor','debounce','getFocusedUnit','getUnit','prototype','getCollabCursors$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','LICENSE_DISTRO_REJECTED','_status$','measureText','getUnhiddenWorksheets','selection','Tools','attrs','PERMISSION_DENIED','SNAPSHOT_INVALID_SNAPSHOT','roomMembers','WECHAT_HAS_BEEN_BOUND','requireSession','InsertColCommandId','_initCommandExecutedListener','DocCollaborationEntity','_localeService','transformSelections','DEFAULT_WS_SESSION_TICKET_URL','currentUsage','_startDocCollabCursor','url(#$1','registerDependencies','REDEMPTION_INVALID_CODE','clipPath','DisposableCollection','Vector2','ENTITLE_REPORT_LIMIT_EXCEED','has','_cursorShapes','cursorInfo','getActiveSheet','push','_lastPointer','body','getRangePointData','some','searchParams','_showGuardMessage','_anchor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','createInstance','entries','type','HTTPService','PENDING','TEXT_RANGE_LAYER_INDEX','Tooltip','univerjs-icon\x20univerjs-icon-','functionsExecutedState','row','substring','Unknown\x20user','getStateCache','CollaborationSessionService','onTransformChange$','_document','_transformPreviousActiveRange','ISocketService','UNIVER_DOC','CURRENT_STATUS_CANNOT_OPERATE','#FFF','REDEMPTION_CODE_HAS_BEEN_CREATED','getUnitId','hasOwnProperty','delete','RevisionService','apply','?taskId=','fill','assignAColorForMemberID','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo$','takeUntil','idSuffix','use','CanceledError','sessionStatus$','_docTransformStateCacheService','ILogService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','RefRangeService','_configService','IMessageService','IImageIoService','collaboration-client-ui.config','InsertRangeMoveDownCommandId','setShapeProps','M0\x200H16V16H0z','now','APPLY_REVISION_CONFILICT','send','subunit','call','createSocket','size','UNDEFINED','createIdentifier','collabStatus.offline','IUniverInstanceService','isTransformMutationsWithChangesetSuccess','onMouseMove','INVITE_CODE_HAS_BEEN_UES','fromEvent','CONNECTOR_DATA_TOO_LARGE','handleInsertRangeMoveDown','_assignedColors','fromEventSubject','UniverInstanceType','collab-rect-range-','selections','TEXT','CommandType','_themeService','min','setUndoRedoMutationParamsCache','map','ICommandService','range','ThemeService','MessageType','YUUMI_CONNECTOR_URL_NOT_FOUND','_getSessionTicket','[CollaborationDataLoaderController]','REDEMPTION_USER_NOT_ELIGIBLE','_scheduleClearOtherTimer','top','_pollingInterval','isArray','_hover','_transformUndoRedoStack','_lastResponseTimestamp','UniverCollaborationClientUIPlugin','CollaborationUIEventId','popstate','current','getDocRanges','startRow','redoState','_memberService','set','ColorKit','length','toString','xlink:href','handleDeleteRangeMoveUp','LOCAL_CACHE_INTERVAL','/universer-api/license/formula/limit/start','replaceDocRanges','IRemoteInstanceService','getConfig','getSheetId','collabStatus.fetchMiss','collaboration-client.offline-data-not-saved','DocSelectionManagerService','useRef','_textBubble','_startCalculationLimit','_injector','_initResize','collab-client.tooltip.reconnect','SetFormulaCalculationStartMutation','colorChannel1','runOnServer','_clearPolling','textRanges','div','YUUMI_ASYNCIO_CANCELLED','_colorIndex','BrowserCollaborationSocketService','_updateURLWithCurrentState','limitInfo','JOIN_ROOM_FAILED','_collabCursorState$','getOffsetConfig','_scheduleHeartbeat','_docClipboardService','_id','isTransformMutationFailure','DesktopCollaborationStatusDisplayController','WebURLService','_docSkeleton','_labelPosition','RegularPolygon','setConfig','ILocalStorageService','updateOfflineData','getOwnPropertySymbols','CollaborationEvent','removeParam','onPointerMove$','170uunjjT','getTypeOfUnitAdded$','_cursorInfo$','_heartbeatTimer','assign','_ensureSubject','SOCKET_FAILED','_beforeCloseService','children','PAYMENT_CHANNEL_NOT_SUPPORT','registerRefRange','ENTITLE_CHAT_LIMIT_EXCEED','Subject','jsx','LICENSE_EXPORT_SIZE_EXCEEDED','_online','evenodd','getOwnPropertyDescriptor','_toggleOnline','location','combineLatest','maxFormulaLimit','saveTaskMap','NodePositionConvertToRectRange','_saveCache','FormulaExecuteStageType','_init','_anchorDot','concat','_onCursorDelete','4387170vbnGPz','_getAnchorBounding','UPDATE_CURSOR','onStarting','unsubscribe','OTHER_CLIENTS_EDITING','entityInit$','green.600','releaseFormulaLimitUrl','registerComponent','includes','throttleTime','EMAIL_HAS_BEEN_BOUND','beginPath','closePath','pipe','replaceState','RemoveColCommandId','_send','YUUMI_ALL_TABLES_IS_INVALID','Shape','SetSelectionsOperation','currentSkeleton$','SetTextSelectionsOperation','runId','doc.mutation.rich-text-editing','getRelativeToViewportCoord','sheetID','undoState','ranges','href','USERS_LEAVE','CollaborationUIEventService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','extend','_drawRectRange','toRgbString','mask','formula.calculation.started','getUndoRedoMutationParamsCache','history','UniverCollaborationClientPlugin','registerBeforeClose','stageInfo','complete','ITransformService','getAncestorScale','_setupBeforeClosingHandler','session.connection-failed','saveImage','_drawTextRange','FETCH_MISS','fillRule','_getScale','YUUMI_UNABLE_LOAD_URL','black','YUUMI_AI_RUN_FAILED','AWAITING_WITH_PENDING','OffLineIcon','endColumn','generateRandomId','_notificationService','code','YUUMI_RATE_OVER_LIMIT','NOT_COLLAB','Optional','SYNCED','_collabCursorController','InsertRangeMoveRightCommandId','collabStatus.synced','_maxFormulaLimit','split','_urlService','mapTo','_taskIds','toDisposable','url(#off-line-icon_clip0_910_343)','_localStorageService','exhaustSavingTask','LOGIN_FAILED','REDEMPTION_CODE_INACTIVE','setTimeout','SUCCESS','roomMembers$','dispose$','yellow.400','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_disabled','_initDependencies','params','_httpService','_getMergeRange','RxDisposable','_hideTimer','DataLoaderService','totalFormulasToCalculate','_getFormulaLimitStatus','debounceTime','Injector','from','USER_IS_ANONYMOUS','YUUMI_NO_CUBOID_FOR_QUESTION','FormulaExecutedStateType','_startSheetCollabCursor','getViewport','whenReady','height','merge','START_CALCULATION','LocaleService','lineTo','registerRenderModule','getColor','handleInsertRow','_initEntityListener','currentTheme$','33plceop','_setFormulaLimitStatus','onLocalMutation','mutations','_selfUnitIDs','ENSURE_SNAPSHOT_EXECUTION','_instanceService','translate(.97)','loadOfflineData','_checkCalculationAvailable','onRendered','ISnapshotServerService','moveTo','deepClone','_updateLocalCursor','http://www.w3.org/2000/svg','Success','_refreshCollabCursors','reconnect','event$','getMergeData','23775324gIgcWX','_color','addObjects','engine','isFormulaString','handleIRemoveCol','handleMoveRange','_shapes','override','SOCKET_FAILED_RETRY','Workbook','asObservable','_colorAssignService','getActiveRange','_onCursorUpdate','_backgroundColor','InsertRowCommandId','handleDeleteRangeMoveLeft','eventID','_cursor','_getSaveTimeout','Failed','2905818PumkNy','0\x200\x2016\x2016','defineProperty','AUTHORIZE_CODE_ILLEGAL','RemoveRowCommandId','font','width','get','CONFLICT','_cachedData','_registerRenderDependencies','values','subscribe','_collaborationController','subUnitId','SheetsSelectionsService','icon','_uiPartsService','BehaviorSubject','switchMap','_sheetSkeletonManagerService','_config','permission.content','max','getCurrentUnitForType','ALREADY_EXISTS','UnitStatus','setAlpha','0\x200\x2017\x2016','DocStateChangeManagerService','ONLINE','transformByState','_name','forEach','forwardRef','_unitStatus','getCoordByCell','column','_cursors','docStateChange$','INVITE_CODE_REQUIRED','isEditing','MOBILE_VERIFY_CODE_MISMATCH','rgba(255,\x20255,\x20255,\x200.01)','_syncEditingCollabCursorService','drawWith','addClipboardHook','ENTITLE_DUP_SUBSCRIPTION','transformMutationsWithChangeset','path','_initStatusComponent','ILocalCacheService','text','_collabSessionService','getValue','getSheetObject','SHEET_VIEWPORT_KEY','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_removeCollabCursors','pushState','getCellMatrix','jsxs','_saveTaskMap','YUUMI_URL_COL_OUT_OF_RANGE','createElement','8caMRJZ','_entityInit$','collabCursorState$','collabStatus.conflict','APPLY_DUPLICATED','filter','beforeCommandExecuted','runRefRangeMutations','_currentUsage','className','UNRECOGNIZED','triggerDblclick','parseInt','uni.network.url-service','_applyCommand','SNAPSHOT_HAS_BEEN_REMOVED','disposeUnit','enableLocalCache','373FVwvcz','UNIVER_SHEET','Module','1em','displayName','REDEMPTION_CODE_FULLY_REDEEMED','clearInterval','_renderManagerService','LOCAL_CACHE_INTERVAL_KEY','white','unitId','add','IBeforeCloseService','_logService','CollaborationStatus','addObject','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Error','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getMember','YUUMI_SUBSCRIPTION_NOT_FOUND','skeleton','executionId','search','on-line-icon','_roomMembers$','red.300','session.collaboration-timeout','VIEW_MAIN','off-line-icon_clip0_910_343','Warning','_draw','_initStatusListener','unshift','DeleteRangeMoveUpCommandId','EffectRefRangId','onCommandExecuted','error','UniverIcon','...','_handleJoinEvent','backgroundColor','getParam','COMPLETION_FINISHED','RichTextEditingMutation','_onRefRangeChange','USER_NOT_INVITED_CODE','resize','_checkAndWaitForCalculationPermission','findNodePositionByCharIndex','SheetSkeletonManagerService','restore','MemberService','with','hide','useDependency','getMemberID','_initCommandInterceptor','string','trim','_hasFormulaInDirtyRanges'];_0x55eb=function(){return _0x2bf3bc;};return _0x55eb();}let Q=class{constructor(_0x3c5d1d,_0x4af6f9){const _0x38e74b=_0xf8a214;this[_0x38e74b(0x2d3)]=_0x3c5d1d,this['_renderManagerService']=_0x4af6f9;}[_0xf8a214(0x2e5)](_0x1ef8b9){const _0x4c1e0d=_0xf8a214;this['_transformUndoRedoStack'](_0x1ef8b9),this[_0x4c1e0d(0x35f)](_0x1ef8b9);}[_0xf8a214(0x271)](_0xf9899a){const _0x563d10=_0xf8a214,{unitID:_0x56aa20}=_0xf9899a,_0x30f4e0=this[_0x563d10(0x22b)][_0x563d10(0x315)](_0x56aa20)[_0x563d10(0x259)](p[_0x563d10(0x2d9)]),{redoCache:_0x574cb4}=_0x30f4e0['getUndoRedoMutationParamsCache']();if(_0x574cb4[_0x563d10(0x3b4)]===0x0)return _0xf9899a;let _0x4d49f5=a[_0x563d10(0x32c)]['deepClone'](_0xf9899a[_0x563d10(0x1a9)][0x0]);for(let _0x570fd6=0x0;_0x570fd6<_0x574cb4[_0x563d10(0x3b4)];_0x570fd6++){const _0x36b912={'id':_0x563d10(0x14b),'params':{..._0x574cb4[_0x570fd6]}},_0x5d86d0=this[_0x563d10(0x2d3)][_0x563d10(0x2ae)](_0x4d49f5,_0x36b912,!0x1);if(g[_0x563d10(0x3d8)](_0x5d86d0))throw _0x5d86d0[_0x563d10(0x249)];_0x4d49f5=_0x5d86d0[_0x563d10(0x30b)];}return{...a[_0x563d10(0x32c)]['deepClone'](_0xf9899a),'mutations':[_0x4d49f5]};}[_0xf8a214(0x3a8)](_0x35c641){const _0x2d5dea=_0xf8a214,{unitID:_0x42aee7}=_0x35c641,_0x14f2e3=this[_0x2d5dea(0x22b)]['getRenderById'](_0x42aee7)['with'](p[_0x2d5dea(0x2d9)]),{undoCache:_0x2d902c,redoCache:_0x5e6db4}=_0x14f2e3[_0x2d5dea(0x159)]();if(_0x2d902c[_0x2d5dea(0x3b4)]===0x0||_0x5e6db4[_0x2d5dea(0x3b4)]===0x0)return;const _0x21a13e=[],_0x10b833=[];let _0xba0764=a[_0x2d5dea(0x32c)][_0x2d5dea(0x1b3)](_0x35c641['mutations'][0x0]),_0x49b8b8=a['Tools'][_0x2d5dea(0x1b3)](_0x35c641['mutations'][0x0]);for(let _0x4af280=_0x2d902c[_0x2d5dea(0x3b4)]-0x1;_0x4af280>=0x0;_0x4af280--){const _0x320cd5={'id':_0x2d5dea(0x14b),'params':{..._0x2d902c[_0x4af280]}},_0x21bb1e={'id':'doc.mutation.rich-text-editing','params':{..._0x5e6db4[_0x4af280]}},_0x5d2438=this[_0x2d5dea(0x2d3)][_0x2d5dea(0x2ae)](_0xba0764,_0x320cd5,!0x1),_0x426450=this['_transformService'][_0x2d5dea(0x2ae)](_0x49b8b8,_0x21bb1e,!0x1);if(g[_0x2d5dea(0x3d8)](_0x5d2438))throw _0x5d2438[_0x2d5dea(0x249)];if(g[_0x2d5dea(0x3d8)](_0x426450))throw _0x426450[_0x2d5dea(0x249)];_0x21a13e[_0x2d5dea(0x245)](_0x5d2438[_0x2d5dea(0x28c)][_0x2d5dea(0x18b)]),_0x10b833['unshift'](_0x426450[_0x2d5dea(0x28c)][_0x2d5dea(0x18b)]),_0xba0764=_0x5d2438[_0x2d5dea(0x30b)],_0x49b8b8=_0x426450[_0x2d5dea(0x30b)];}_0x14f2e3[_0x2d5dea(0x399)]({'undoCache':_0x21a13e,'redoCache':_0x10b833});}[_0xf8a214(0x35f)](_0x32c8a0){const _0xcae86e=_0xf8a214,{unitID:_0x46bb9d}=_0x32c8a0,_0x36a93f=this[_0xcae86e(0x22b)][_0xcae86e(0x315)](_0x46bb9d)[_0xcae86e(0x259)](p[_0xcae86e(0x2d9)]),_0xca9203=_0x36a93f[_0xcae86e(0x1c8)]();if(_0xca9203==null)return;const _0x3fe3bc=[{'id':_0xcae86e(0x14b),'params':{'unitId':_0x32c8a0[_0xcae86e(0x29a)],'actions':null,'textRanges':[_0xca9203]}}],_0x3fc72e=this['_transformService'][_0xcae86e(0x201)](_0x32c8a0,_0x3fe3bc);if(!g[_0xcae86e(0x38a)](_0x3fc72e))throw _0x3fc72e[_0xcae86e(0x249)];const _0x457e02=_0x3fc72e[_0xcae86e(0x28c)][0x0][_0xcae86e(0x18b)][_0xcae86e(0x3cb)];Array[_0xcae86e(0x3a6)](_0x457e02)&&_0x457e02[_0xcae86e(0x3b4)]&&_0x36a93f['setActiveRange'](_0x457e02[0x0]);}};Q=Yt([Me(0x0,g[_0xf8a214(0x15f)]),Me(0x1,C['IRenderManagerService'])],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x22db53,_0x149754,_0x1eb144,_0x36984c)=>{for(var _0x3a54dd=_0x36984c>0x1?void 0x0:_0x36984c?Ht(_0x149754,_0x1eb144):_0x149754,_0x42faa0=_0x22db53['length']-0x1,_0x579a82;_0x42faa0>=0x0;_0x42faa0--)(_0x579a82=_0x22db53[_0x42faa0])&&(_0x3a54dd=_0x579a82(_0x3a54dd)||_0x3a54dd);return _0x3a54dd;},ue=(_0x804e7c,_0x14a44f)=>(_0xe8fc3b,_0x386184)=>_0x14a44f(_0xe8fc3b,_0x386184,_0x804e7c);function _0x3a58(_0x16cfc7,_0xedb69a){const _0x55ebb1=_0x55eb();return _0x3a58=function(_0x3a5834,_0x230637){_0x3a5834=_0x3a5834-0x13e;let _0x1da430=_0x55ebb1[_0x3a5834];return _0x1da430;},_0x3a58(_0x16cfc7,_0xedb69a);}let ee=class{constructor(_0x40a055,_0x501d93,_0x3774c9){const _0x31d8b8=_0xf8a214;this[_0x31d8b8(0x3c4)]=_0x40a055,this[_0x31d8b8(0x2d3)]=_0x501d93,this[_0x31d8b8(0x2ef)]=_0x3774c9;}[_0xf8a214(0x2bc)](_0x20fa2b){const _0x17cec3=_0xf8a214;this[_0x17cec3(0x27b)](_0x20fa2b);}[_0xf8a214(0x271)](_0x3d0dcc){const _0x59aebd=_0xf8a214,{unitID:_0x26982e}=_0x3d0dcc,{collaboration:_0x5c67a7}=this[_0x59aebd(0x2ef)][_0x59aebd(0x35b)](_0x26982e);if(_0x5c67a7[_0x59aebd(0x3b4)]===0x0)return _0x3d0dcc;let _0x3ea9fe=a[_0x59aebd(0x32c)][_0x59aebd(0x1b3)](_0x3d0dcc[_0x59aebd(0x1a9)][0x0]);for(let _0x58a3a9=0x0;_0x58a3a9<_0x5c67a7[_0x59aebd(0x3b4)];_0x58a3a9++){const _0x49a033={'id':_0x59aebd(0x14b),'params':{'unitId':_0x5c67a7[_0x58a3a9][_0x59aebd(0x22e)],..._0x5c67a7[_0x58a3a9][_0x59aebd(0x3b0)]}},_0x411187=this[_0x59aebd(0x2d3)][_0x59aebd(0x2ae)](_0x3ea9fe,_0x49a033,!0x1);if(g[_0x59aebd(0x3d8)](_0x411187))throw _0x411187[_0x59aebd(0x249)];_0x3ea9fe=_0x411187['m1Prime'];}return{...a[_0x59aebd(0x32c)]['deepClone'](_0x3d0dcc),'mutations':[_0x3ea9fe]};}[_0xf8a214(0x27b)](_0x2f1a42){const _0x68b1f6=_0xf8a214,{unitID:_0x7244de}=_0x2f1a42,{history:_0x2d94a3,collaboration:_0xea3458}=this[_0x68b1f6(0x2ef)]['getStateCache'](_0x7244de);if(_0x2d94a3[_0x68b1f6(0x3b4)]===0x0&&_0xea3458['length']===0x0)return;const _0x4793b7=[],_0x565735=[];let _0x39ed35=a['Tools'][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]),_0x234b02=a[_0x68b1f6(0x32c)][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]);for(let _0x185afe=_0x2d94a3['length']-0x1;_0x185afe>=0x0;_0x185afe--){const _0x504127={'id':_0x68b1f6(0x14b),'params':{'unitId':_0x2d94a3[_0x185afe][_0x68b1f6(0x22e)],..._0x2d94a3[_0x185afe]['undoState']}},_0x189e72={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d94a3[_0x185afe][_0x68b1f6(0x22e)],..._0x2d94a3[_0x185afe][_0x68b1f6(0x3b0)]}},_0x21f2fc=this['_transformService'][_0x68b1f6(0x2ae)](_0x39ed35,_0x504127,!0x1),_0x1b2ba3=this['_transformService'][_0x68b1f6(0x2ae)](_0x234b02,_0x189e72,!0x1);if(g[_0x68b1f6(0x3d8)](_0x21f2fc))throw _0x21f2fc[_0x68b1f6(0x249)];if(g[_0x68b1f6(0x3d8)](_0x1b2ba3))throw _0x1b2ba3[_0x68b1f6(0x249)];_0x4793b7['unshift']({..._0x2d94a3[_0x185afe],'undoState':_0x21f2fc[_0x68b1f6(0x28c)][_0x68b1f6(0x18b)],'redoState':_0x1b2ba3[_0x68b1f6(0x28c)]['params']}),_0x39ed35=_0x21f2fc['m1Prime'],_0x234b02=_0x1b2ba3[_0x68b1f6(0x30b)];}_0x39ed35=a['Tools'][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]),_0x234b02=a['Tools'][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]);for(let _0xe851c2=_0xea3458[_0x68b1f6(0x3b4)]-0x1;_0xe851c2>=0x0;_0xe851c2--){const _0x384a19={'id':_0x68b1f6(0x14b),'params':{'unitId':_0xea3458[_0xe851c2][_0x68b1f6(0x22e)],..._0xea3458[_0xe851c2][_0x68b1f6(0x14e)]}},_0x1289ea={'id':_0x68b1f6(0x14b),'params':{'unitId':_0xea3458[_0xe851c2][_0x68b1f6(0x22e)],..._0xea3458[_0xe851c2]['redoState']}},_0x50523c=this[_0x68b1f6(0x2d3)][_0x68b1f6(0x2ae)](_0x39ed35,_0x384a19,!0x1),_0x5b4929=this['_transformService']['transformMutation'](_0x234b02,_0x1289ea,!0x1);if(g['isTransformMutationFailure'](_0x50523c))throw _0x50523c[_0x68b1f6(0x249)];if(g[_0x68b1f6(0x3d8)](_0x5b4929))throw _0x5b4929[_0x68b1f6(0x249)];_0x565735[_0x68b1f6(0x245)]({..._0xea3458[_0xe851c2],'undoState':_0x50523c[_0x68b1f6(0x28c)]['params'],'redoState':_0x5b4929[_0x68b1f6(0x28c)]['params']}),_0x39ed35=_0x50523c[_0x68b1f6(0x30b)],_0x234b02=_0x5b4929[_0x68b1f6(0x30b)];}this[_0x68b1f6(0x2ef)][_0x68b1f6(0x304)](_0x7244de,{'history':_0x4793b7,'collaboration':_0x565735});}};ee=Wt([ue(0x0,a['Inject'](a[_0xf8a214(0x194)])),ue(0x1,g[_0xf8a214(0x15f)]),ue(0x2,a[_0xf8a214(0x31a)](p[_0xf8a214(0x1ee)]))],ee);var Vt=Object[_0xf8a214(0x3f6)],Gt=(_0x530aa2,_0x26a2b5,_0x2d7246,_0xb113e4)=>{const _0x1a0ca3=_0xf8a214;for(var _0xc7e818=_0xb113e4>0x1?void 0x0:_0xb113e4?Vt(_0x26a2b5,_0x2d7246):_0x26a2b5,_0x266548=_0x530aa2[_0x1a0ca3(0x3b4)]-0x1,_0x51b4ac;_0x266548>=0x0;_0x266548--)(_0x51b4ac=_0x530aa2[_0x266548])&&(_0xc7e818=_0x51b4ac(_0xc7e818)||_0xc7e818);return _0xc7e818;},Ae=(_0x195022,_0xce509c)=>(_0x15e49f,_0x3d6b4f)=>_0xce509c(_0x15e49f,_0x3d6b4f,_0x195022);let te=class{constructor(_0x21a368,_0x17e152){const _0xa6d3d9=_0xf8a214;this[_0xa6d3d9(0x3c4)]=_0x21a368,this[_0xa6d3d9(0x2d3)]=_0x17e152;}['transformSelections'](_0x42272c){const _0x1a4322=_0xf8a214;var _0x5b1d54;const _0x1757c3=this[_0x1a4322(0x3c4)][_0x1a4322(0x1d8)](V[_0x1a4322(0x3c0)]),_0x4f3dc2=(_0x5b1d54=_0x1757c3[_0x1a4322(0x3ae)]())!=null?_0x5b1d54:[];if(_0x4f3dc2[_0x1a4322(0x3b4)]===0x0)return;const _0x43e021=_0x42272c['unitID'],_0x1c9278=[{'id':_0x1a4322(0x14b),'params':{'unitId':_0x43e021,'actions':null,'textRanges':_0x4f3dc2}}],_0x3785b3=this[_0x1a4322(0x2d3)][_0x1a4322(0x201)](_0x42272c,_0x1c9278);if(!g[_0x1a4322(0x38a)](_0x3785b3))throw _0x3785b3[_0x1a4322(0x249)];const _0x372b6e=_0x3785b3['m2Prime'][0x0]['params']['textRanges'];Array[_0x1a4322(0x3a6)](_0x372b6e)&&_0x372b6e[_0x1a4322(0x3b4)]&&_0x1757c3[_0x1a4322(0x3ba)](_0x372b6e,{'unitId':_0x43e021,'subUnitId':_0x43e021},!0x1);}};te=Gt([Ae(0x0,a['Inject'](a[_0xf8a214(0x194)])),Ae(0x1,g[_0xf8a214(0x15f)])],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x93f6f2,_0x25c8ff,_0x9cf20e,_0x5512be)=>{const _0x3be424=_0xf8a214;for(var _0x2a131d=_0x5512be>0x1?void 0x0:_0x5512be?Xt(_0x25c8ff,_0x9cf20e):_0x25c8ff,_0x3c28d0=_0x93f6f2[_0x3be424(0x3b4)]-0x1,_0xb36cd7;_0x3c28d0>=0x0;_0x3c28d0--)(_0xb36cd7=_0x93f6f2[_0x3c28d0])&&(_0x2a131d=_0xb36cd7(_0x2a131d)||_0x2a131d);return _0x2a131d;},U=(_0x5ee22e,_0x5e9266)=>(_0x151126,_0x382c75)=>_0x5e9266(_0x151126,_0x382c75,_0x5ee22e);let se=class extends a['Disposable']{constructor(_0x3ef340,_0x2e84f9,_0x39e859,_0x8e50c,_0x47ba4a,_0x55458f,_0xa5e63f,_0x354656){const _0x2bdb42=_0xf8a214;super(),_(this,_0x2bdb42(0x328),new I[(_0x2bdb42(0x1e3))](u[_0x2bdb42(0x232)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x3ef340,this['_collaborationController']=_0x2e84f9,this['_docTransformIMECacheService']=_0x39e859,this[_0x2bdb42(0x374)]=_0x8e50c,this['_docTransformSelectionsService']=_0x47ba4a,this[_0x2bdb42(0x2a4)]=_0x55458f,this['_messageService']=_0xa5e63f,this['_localeService']=_0x354656,this[_0x2bdb42(0x1a4)]());}[_0xf8a214(0x1a4)](){const _0x490435=_0xf8a214;this[_0x490435(0x297)](this[_0x490435(0x1de)][_0x490435(0x409)][_0x490435(0x1dd)](_0x420bce=>{const _0x3f760b=_0x490435,_0xe12fb9=this['_docStateChangeManagerService'][_0x3f760b(0x1f8)][_0x3f760b(0x1dd)](_0x2b63c0=>{const _0x420169=_0x3f760b;if(_0x2b63c0==null)return;const {unitId:_0x388643,redoState:_0x584e06,commandId:_0xd5810f}=_0x2b63c0;if(_0x388643!==_0x420bce['unitID'])return;const _0x368c6d={'id':_0xd5810f,'type':a[_0x420169(0x396)][_0x420169(0x2c6)],'params':{'unitId':_0x388643,'actions':_0x584e06[_0x420169(0x287)],'textRanges':null}};_0x420bce[_0x420169(0x1a8)](_0x368c6d);});if(_0x420bce[_0x3f760b(0x297)](_0xe12fb9),_0x420bce instanceof u[_0x3f760b(0x335)]){const _0x48e7f8={'onTransformIME':_0x57829f=>this['_docTransformIMECacheService']['transformIMECache'](_0x57829f),'onTransformState':_0x4233f5=>this[_0x3f760b(0x374)][_0x3f760b(0x2bc)](_0x4233f5),'onTransformSelections':_0x261743=>this[_0x3f760b(0x2e2)][_0x3f760b(0x337)](_0x261743),'onSyncEditingCollabCursor':_0x158ae8=>this['_docSyncEditingCollabCursorService'][_0x3f760b(0x2df)](_0x158ae8),'onTransformRemoteChangesetByIMECache':_0x2633a1=>this[_0x3f760b(0x263)][_0x3f760b(0x271)](_0x2633a1),'onTransformRemoteChangesetByStateCache':_0x32fd08=>this[_0x3f760b(0x374)][_0x3f760b(0x271)](_0x32fd08)};_0x420bce[_0x3f760b(0x2a1)](_0x48e7f8);}}));}};se=Kt([U(0x0,a[_0xf8a214(0x31a)](p[_0xf8a214(0x1ee)])),U(0x1,a[_0xf8a214(0x31a)](u[_0xf8a214(0x2c1)])),U(0x2,a[_0xf8a214(0x31a)](Q)),U(0x3,a[_0xf8a214(0x31a)](ee)),U(0x4,a[_0xf8a214(0x31a)](te)),U(0x5,a[_0xf8a214(0x31a)](Re)),U(0x6,R[_0xf8a214(0x379)]),U(0x7,a['Inject'](a[_0xf8a214(0x19f)]))],se);var G=(_0x341774=>(_0x341774[_0x341774[_0xf8a214(0x386)]=0x0]='UNDEFINED',_0x341774[_0x341774['OK']=0x1]='OK',_0x341774[_0x341774['INTERNAL_ERROR']=0x2]=_0xf8a214(0x2e6),_0x341774[_0x341774[_0xf8a214(0x32e)]=0x3]=_0xf8a214(0x32e),_0x341774[_0x341774['NOT_FOUND']=0x4]=_0xf8a214(0x30a),_0x341774[_0x341774[_0xf8a214(0x2fe)]=0x5]='UNAUTHENTICATED',_0x341774[_0x341774[_0xf8a214(0x1ea)]=0x6]='ALREADY_EXISTS',_0x341774[_0x341774[_0xf8a214(0x2f7)]=0x7]='INVALID_ARGUMENT',_0x341774[_0x341774[_0xf8a214(0x316)]=0x8]=_0xf8a214(0x316),_0x341774[_0x341774[_0xf8a214(0x24f)]=0x9]='COMPLETION_FINISHED',_0x341774[_0x341774[_0xf8a214(0x181)]=0xa]=_0xf8a214(0x181),_0x341774[_0x341774[_0xf8a214(0x1fb)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x341774[_0x341774[_0xf8a214(0x2b1)]=0xc]=_0xf8a214(0x2b1),_0x341774[_0x341774['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x341774[_0x341774[_0xf8a214(0x153)]=0xe]=_0xf8a214(0x153),_0x341774[_0x341774[_0xf8a214(0x1d4)]=0xf]=_0xf8a214(0x1d4),_0x341774[_0x341774[_0xf8a214(0x2b7)]=0x10]=_0xf8a214(0x2b7),_0x341774[_0x341774[_0xf8a214(0x362)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x341774[_0x341774['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x341774[_0x341774['USER_NOT_FOUND']=0xc9]=_0xf8a214(0x2ad),_0x341774[_0x341774[_0xf8a214(0x196)]=0xca]=_0xf8a214(0x196),_0x341774[_0x341774[_0xf8a214(0x2b5)]=0x1389]=_0xf8a214(0x2b5),_0x341774[_0x341774[_0xf8a214(0x32f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x341774[_0x341774[_0xf8a214(0x221)]=0x1772]=_0xf8a214(0x221),_0x341774[_0x341774['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xf8a214(0x1ab),_0x341774[_0x341774[_0xf8a214(0x292)]=0x1b59]=_0xf8a214(0x292),_0x341774[_0x341774[_0xf8a214(0x312)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x341774[_0x341774[_0xf8a214(0x380)]=0x1b5b]=_0xf8a214(0x380),_0x341774[_0x341774[_0xf8a214(0x2f4)]=0x1b5c]=_0xf8a214(0x2f4),_0x341774[_0x341774[_0xf8a214(0x216)]=0x1b5d]=_0xf8a214(0x216),_0x341774[_0x341774[_0xf8a214(0x38e)]=0x1f41]=_0xf8a214(0x38e),_0x341774[_0x341774[_0xf8a214(0x36d)]=0x2329]=_0xf8a214(0x36d),_0x341774[_0x341774['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xf8a214(0x376),_0x341774[_0x341774['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xf8a214(0x29e),_0x341774[_0x341774[_0xf8a214(0x3f3)]=0x232c]=_0xf8a214(0x3f3),_0x341774[_0x341774[_0xf8a214(0x327)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x341774[_0x341774[_0xf8a214(0x168)]=0x2711]=_0xf8a214(0x168),_0x341774[_0x341774[_0xf8a214(0x210)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x341774[_0x341774[_0xf8a214(0x171)]=0x2713]=_0xf8a214(0x171),_0x341774[_0x341774[_0xf8a214(0x238)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x341774[_0x341774[_0xf8a214(0x197)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x341774[_0x341774[_0xf8a214(0x3cd)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x341774[_0x341774[_0xf8a214(0x34e)]=0x271c]=_0xf8a214(0x34e),_0x341774[_0x341774['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0xf8a214(0x145),_0x341774[_0x341774[_0xf8a214(0x283)]=0x271e]=_0xf8a214(0x283),_0x341774[_0x341774[_0xf8a214(0x16a)]=0x271f]=_0xf8a214(0x16a),_0x341774[_0x341774[_0xf8a214(0x39f)]=0x2720]=_0xf8a214(0x39f),_0x341774[_0x341774[_0xf8a214(0x301)]=0x2af9]=_0xf8a214(0x301),_0x341774[_0x341774[_0xf8a214(0x38c)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x341774[_0x341774['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x341774[_0x341774[_0xf8a214(0x1f9)]=0x2ee3]=_0xf8a214(0x1f9),_0x341774[_0x341774[_0xf8a214(0x252)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x341774[_0x341774['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xf8a214(0x31d),_0x341774[_0x341774[_0xf8a214(0x331)]=0x32c9]=_0xf8a214(0x331),_0x341774[_0x341774[_0xf8a214(0x2e1)]=0x32ca]=_0xf8a214(0x2e1),_0x341774[_0x341774[_0xf8a214(0x13e)]=0x32cb]=_0xf8a214(0x13e),_0x341774[_0x341774[_0xf8a214(0x326)]=0x36b1]=_0xf8a214(0x326),_0x341774[_0x341774[_0xf8a214(0x2dd)]=0x36b2]=_0xf8a214(0x2dd),_0x341774[_0x341774[_0xf8a214(0x200)]=0x36b3]=_0xf8a214(0x200),_0x341774[_0x341774[_0xf8a214(0x3ee)]=0x36b4]=_0xf8a214(0x3ee),_0x341774[_0x341774[_0xf8a214(0x3f0)]=0x3715]=_0xf8a214(0x3f0),_0x341774[_0x341774[_0xf8a214(0x341)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x341774[_0x341774[_0xf8a214(0x308)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x341774[_0x341774[_0xf8a214(0x33d)]=0x3a99]=_0xf8a214(0x33d),_0x341774[_0x341774[_0xf8a214(0x182)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x341774[_0x341774[_0xf8a214(0x229)]=0x3a9b]=_0xf8a214(0x229),_0x341774[_0x341774[_0xf8a214(0x2a0)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x341774[_0x341774['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0xf8a214(0x3a2),_0x341774[_0x341774[_0xf8a214(0x236)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x341774[_0x341774['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0xf8a214(0x364),_0x341774[_0x341774[_0xf8a214(0x21c)]=-0x1]='UNRECOGNIZED',_0x341774))(G||{});function qt(_0x230174){const _0x4e641f=_0xf8a214;var _0xc58d18,_0x8db8a0;const _0x333e71=(_0xc58d18=_0x230174[_0x4e641f(0x15d)])==null?void 0x0:_0xc58d18['stage'],_0xcfe074=((_0x8db8a0=_0x230174[_0x4e641f(0x15d)])==null?void 0x0:_0x8db8a0[_0x4e641f(0x191)])||0x0;return _0x333e71===B[_0x4e641f(0x3fe)][_0x4e641f(0x19e)]&&_0xcfe074>0x0;}function zt(_0x1f8368){const _0x59e1d9=_0xf8a214;return _0x1f8368[_0x59e1d9(0x357)]===B[_0x59e1d9(0x198)][_0x59e1d9(0x184)];}var Jt=Object[_0xf8a214(0x3f6)],Zt=(_0x19b03e,_0x7d35ed,_0x25e64c,_0x5466c9)=>{const _0x11e90a=_0xf8a214;for(var _0x1d645e=_0x5466c9>0x1?void 0x0:_0x5466c9?Jt(_0x7d35ed,_0x25e64c):_0x7d35ed,_0x1319f2=_0x19b03e[_0x11e90a(0x3b4)]-0x1,_0x5ce9ca;_0x1319f2>=0x0;_0x1319f2--)(_0x5ce9ca=_0x19b03e[_0x1319f2])&&(_0x1d645e=_0x5ce9ca(_0x1d645e)||_0x1d645e);return _0x1d645e;},A=(_0x47ed51,_0x49c457)=>(_0x3061a3,_0x5425c5)=>_0x49c457(_0x3061a3,_0x5425c5,_0x47ed51);const Qt=_0xf8a214(0x28b),es=_0xf8a214(0x3b9),ts=_0xf8a214(0x29d);let ie=class extends a[_0xf8a214(0x296)]{constructor(_0x1645bc,_0x412041,_0x750f3a,_0x4ae29b,_0x3b60e2,_0xe0572c,_0xe1322){const _0x57014c=_0xf8a214;super(),_(this,_0x57014c(0x3a5),null),_(this,_0x57014c(0x178),0x0),_(this,_0x57014c(0x21a),0x0),_(this,_0x57014c(0x17c),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x57014c(0x291)]=_0x1645bc,this['_commandService']=_0x412041,this[_0x57014c(0x378)]=_0x750f3a,this[_0x57014c(0x18c)]=_0x4ae29b,this[_0x57014c(0x314)]=_0x3b60e2,this[_0x57014c(0x231)]=_0xe0572c,this['_localeService']=_0xe1322,this[_0x57014c(0x25d)]());}[_0xf8a214(0x25d)](){const _0x17c9ad=_0xf8a214;this[_0x17c9ad(0x297)](this[_0x17c9ad(0x265)][_0x17c9ad(0x218)]((_0x5bef6a,_0x1ba6c3)=>{const _0x2e6de1=_0x17c9ad;if(_0x5bef6a['id']!==B[_0x2e6de1(0x3c7)]['id'])return;const _0x288f00=_0x5bef6a['params'];if(!this['_hasFormulaInDirtyRanges'](_0x288f00['dirtyRanges']))return;if(!this[_0x2e6de1(0x1af)]())throw this[_0x2e6de1(0x254)](_0x5bef6a,_0x1ba6c3),this[_0x2e6de1(0x34c)](),new a[(_0x2e6de1(0x372))]();})),this[_0x17c9ad(0x297)](this[_0x17c9ad(0x265)][_0x17c9ad(0x248)]((_0x456b31,_0x49be43)=>{const _0x11ec92=_0x17c9ad;if(_0x456b31['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x583cc7=_0x456b31[_0x11ec92(0x18b)];if(qt(_0x583cc7)){const _0x5ac2a7=a[_0x11ec92(0x16e)]();this[_0x11ec92(0x17c)][_0x11ec92(0x346)](_0x5ac2a7),this[_0x11ec92(0x3c3)](_0x5ac2a7);}else{if(zt(_0x583cc7)&&this[_0x11ec92(0x17c)][_0x11ec92(0x3b4)]>0x0){const _0x43a914=this['_taskIds'][_0x11ec92(0x2e3)]();this['_releaseCalculationLimit'](_0x43a914);}}}));}['dispose'](){const _0xc8ab6e=_0xf8a214;super['dispose'](),this[_0xc8ab6e(0x3ca)](),this[_0xc8ab6e(0x17c)]=[],this[_0xc8ab6e(0x21a)]=0x0,this[_0xc8ab6e(0x178)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xf8a214(0x254)](_0xd13cde,_0x1bc8aa){const _0x337dcf=_0xf8a214;for(let _0xbd5f27=0x0;_0xbd5f27<0x1e;_0xbd5f27++)try{if(await this[_0x337dcf(0x192)](),this[_0x337dcf(0x1af)]()){this[_0x337dcf(0x220)](_0xd13cde,_0x1bc8aa),this[_0x337dcf(0x291)][_0x337dcf(0x293)]({'content':this['_localeService']['t'](_0x337dcf(0x158)),'type':T[_0x337dcf(0x39e)][_0x337dcf(0x1b6)]});return;}await new Promise(_0x91d20e=>{const _0x109c2b=_0x337dcf;this[_0x109c2b(0x3a5)]=window[_0x109c2b(0x183)](_0x91d20e,0x3e8);});}catch(_0x3e1c26){this[_0x337dcf(0x231)][_0x337dcf(0x249)](_0x3e1c26);}this[_0x337dcf(0x291)][_0x337dcf(0x293)]({'content':this[_0x337dcf(0x336)]['t']('formula.calculation.unable'),'type':T[_0x337dcf(0x39e)]['Error']});}[_0xf8a214(0x220)](_0x53e9e9,_0x12cb41){const _0x44091e=_0xf8a214;try{this['_commandService'][_0x44091e(0x2c7)](_0x53e9e9['id'],_0x53e9e9[_0x44091e(0x18b)],_0x12cb41);}catch(_0x532b0f){this[_0x44091e(0x231)][_0x44091e(0x249)](_0x532b0f);}}[_0xf8a214(0x1a7)](_0x159e30,_0x4497a4){const _0x46d84b=_0xf8a214;_0x4497a4<this[_0x46d84b(0x3a9)]||(this[_0x46d84b(0x3a9)]=_0x4497a4,this[_0x46d84b(0x178)]=Number[_0x46d84b(0x21e)](_0x159e30[_0x46d84b(0x3fa)]),this[_0x46d84b(0x21a)]=Number[_0x46d84b(0x21e)](_0x159e30[_0x46d84b(0x339)]));}async[_0xf8a214(0x3c3)](_0x46fa58){const _0x2605e1=_0xf8a214;var _0x25ee37,_0x40caec;const _0xa547c6=Date[_0x2605e1(0x37f)]();try{const _0x4773ea=((_0x25ee37=this[_0x2605e1(0x378)][_0x2605e1(0x3bc)](u[_0x2605e1(0x262)]))==null?void 0x0:_0x25ee37['startFormulaLimitUrl'])||es,_0x38a825=(await this[_0x2605e1(0x18c)][_0x2605e1(0x2b3)](_0x4773ea,{'body':JSON[_0x2605e1(0x2d0)]({'taskId':_0x46fa58})}))[_0x2605e1(0x348)];if(((_0x40caec=_0x38a825[_0x2605e1(0x249)])==null?void 0x0:_0x40caec[_0x2605e1(0x170)])!==G['OK'])return;this[_0x2605e1(0x1a7)](_0x38a825[_0x2605e1(0x3d1)],_0xa547c6);}catch(_0x44a09f){this[_0x2605e1(0x231)][_0x2605e1(0x249)](_0x44a09f);}}async[_0xf8a214(0x192)](_0x3117a6){const _0x231aeb=_0xf8a214;var _0x358813,_0x4a1010;const _0x2ed3c4=Date[_0x231aeb(0x37f)]();try{const _0x51ab16=((_0x358813=this[_0x231aeb(0x378)][_0x231aeb(0x3bc)](u[_0x231aeb(0x262)]))==null?void 0x0:_0x358813[_0x231aeb(0x317)])||Qt,_0x292f27=_0x3117a6?_0x51ab16+_0x231aeb(0x36a)+encodeURIComponent(_0x3117a6):_0x51ab16,_0x6a3a82=(await this[_0x231aeb(0x18c)][_0x231aeb(0x1d8)](_0x292f27))[_0x231aeb(0x348)];if(((_0x4a1010=_0x6a3a82['error'])==null?void 0x0:_0x4a1010[_0x231aeb(0x170)])!==G['OK'])return;this[_0x231aeb(0x1a7)](_0x6a3a82[_0x231aeb(0x3d1)],_0x2ed3c4);}catch(_0x321db3){this[_0x231aeb(0x231)]['error'](_0x321db3);}}async[_0xf8a214(0x26b)](_0x2747ec){const _0x4ff490=_0xf8a214;var _0xd3c70d,_0x32aef6;const _0x392c0e=Date[_0x4ff490(0x37f)]();try{const _0x3e939a=((_0xd3c70d=this[_0x4ff490(0x378)]['getConfig'](u[_0x4ff490(0x262)]))==null?void 0x0:_0xd3c70d[_0x4ff490(0x40b)])||ts,_0xe0aee7=(await this[_0x4ff490(0x18c)][_0x4ff490(0x2b3)](_0x3e939a,{'body':JSON[_0x4ff490(0x2d0)]({'taskId':_0x2747ec})}))[_0x4ff490(0x348)];if(((_0x32aef6=_0xe0aee7[_0x4ff490(0x249)])==null?void 0x0:_0x32aef6[_0x4ff490(0x170)])!==G['OK'])return;this[_0x4ff490(0x1a7)](_0xe0aee7['limitInfo'],_0x392c0e);}catch(_0x5176a3){this[_0x4ff490(0x231)][_0x4ff490(0x249)](_0x5176a3);}}[_0xf8a214(0x1af)](){const _0x3f09d8=_0xf8a214;return this[_0x3f09d8(0x178)]===0x0?!0x0:this[_0x3f09d8(0x178)]-this['_currentUsage']>0x0;}[_0xf8a214(0x3ca)](){const _0x37f2b5=_0xf8a214;this[_0x37f2b5(0x3a5)]&&(clearTimeout(this[_0x37f2b5(0x3a5)]),this[_0x37f2b5(0x3a5)]=null);}[_0xf8a214(0x34c)](){const _0x4423b6=_0xf8a214;this[_0x4423b6(0x291)]['show']({'content':this['_localeService']['t'](_0x4423b6(0x29c)),'type':T[_0x4423b6(0x39e)]['Loading']});}[_0xf8a214(0x260)](_0x5747fa){const _0xe3697e=_0xf8a214;for(const _0x2f33a2 of _0x5747fa){const {unitId:_0x2b97c1,sheetId:_0x421ffd,range:_0x39fb29}=_0x2f33a2,_0x2878c0=this[_0xe3697e(0x314)][_0xe3697e(0x323)](_0x2b97c1);if(!_0x2878c0)continue;const _0x4e626b=_0x2878c0[_0xe3697e(0x2a6)](_0x421ffd);if(!_0x4e626b)continue;const _0x15cc8d=_0x4e626b[_0xe3697e(0x20d)]();for(let _0x434693=_0x39fb29[_0xe3697e(0x3af)];_0x434693<=_0x39fb29[_0xe3697e(0x31f)];_0x434693++)for(let _0x27640e=_0x39fb29[_0xe3697e(0x28e)];_0x27640e<=_0x39fb29[_0xe3697e(0x16d)];_0x27640e++){const _0x564fd5=_0x15cc8d[_0xe3697e(0x207)](_0x434693,_0x27640e);if(_0x564fd5&&(a[_0xe3697e(0x1bf)](_0x564fd5['f'])||a[_0xe3697e(0x267)](_0x564fd5['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0xf8a214(0x31a)](R[_0xf8a214(0x379)])),A(0x1,a[_0xf8a214(0x39b)]),A(0x2,a[_0xf8a214(0x2a5)]),A(0x3,a[_0xf8a214(0x31a)](X[_0xf8a214(0x352)])),A(0x4,a[_0xf8a214(0x389)]),A(0x5,a[_0xf8a214(0x375)]),A(0x6,a[_0xf8a214(0x31a)](a[_0xf8a214(0x19f)]))],ie);var ss=Object[_0xf8a214(0x3f6)],is=(_0x55f962,_0x1d4d1f,_0x5623be,_0x5cc9ea)=>{for(var _0x3e81e4=_0x5cc9ea>0x1?void 0x0:_0x5cc9ea?ss(_0x1d4d1f,_0x5623be):_0x1d4d1f,_0x130108=_0x55f962['length']-0x1,_0x3620ca;_0x130108>=0x0;_0x130108--)(_0x3620ca=_0x55f962[_0x130108])&&(_0x3e81e4=_0x3620ca(_0x3e81e4)||_0x3e81e4);return _0x3e81e4;},Ie=(_0x137b27,_0x2c5b3b)=>(_0x56dec9,_0x2f754d)=>_0x2c5b3b(_0x56dec9,_0x2f754d,_0x137b27);let Ce=class extends a[_0xf8a214(0x296)]{constructor(_0x396561,_0x5cf09d,_0x5211e0){const _0x22f2d9=_0xf8a214;super(),_(this,_0x22f2d9(0x1da),new Map()),_(this,_0x22f2d9(0x20f),new Map()),_(this,'_disabled',!0x1),(this[_0x22f2d9(0x378)]=_0x396561,this[_0x22f2d9(0x17f)]=_0x5cf09d,this[_0x22f2d9(0x269)]=_0x5211e0);}[_0xf8a214(0x30f)](){const _0x16e7f3=_0xf8a214;this[_0x16e7f3(0x189)]=!0x0;}[_0xf8a214(0x223)](){const _0x1e3688=_0xf8a214;this[_0x1e3688(0x189)]=!0x1;}get[_0xf8a214(0x3fb)](){const _0x2145ca=_0xf8a214;return this[_0x2145ca(0x20f)];}[_0xf8a214(0x2d7)](){const _0x59b9a6=_0xf8a214;this[_0x59b9a6(0x180)]()[_0x59b9a6(0x2ec)](()=>super[_0x59b9a6(0x2d7)]());}async[_0xf8a214(0x1ae)](_0x381059){const _0x3c68e4=_0xf8a214;return this['_disabled']?null:this[_0x3c68e4(0x17f)]['getItem'](u[_0x3c68e4(0x2bf)](_0x381059));}async['saveOfflineData'](_0x396877,_0x51b4c4){const _0x4419fb=_0xf8a214;return!!this['_localStorageService'][_0x4419fb(0x266)](_0x396877,_0x51b4c4);}[_0xf8a214(0x3e0)](_0x1d87bc,_0x18b746,_0x30b210,_0x398d7e){const _0x1afabd=_0xf8a214,_0x29a78c=this[_0x1afabd(0x269)][_0x1afabd(0x2bb)](_0x1d87bc);this['_cachedData'][_0x1afabd(0x3b2)](_0x1d87bc,{'unitID':_0x1d87bc,'type':_0x18b746,'awaitingChangeset':_0x30b210,'mutations':_0x398d7e,'rev':_0x29a78c}),this[_0x1afabd(0x20f)][_0x1afabd(0x342)](_0x1d87bc)||this['_scheduleSaving'](_0x1d87bc);}['_scheduleSaving'](_0x12d331){const _0x181d3c=_0xf8a214,_0x2a6887=this[_0x181d3c(0x1cf)]();_0x2a6887===0x0?this[_0x181d3c(0x3fd)](_0x12d331):this['_saveTaskMap']['set'](_0x12d331,setTimeout(()=>this['_saveCache'](_0x12d331),_0x2a6887));}[_0xf8a214(0x1cf)](){const _0x41352b=_0xf8a214;var _0x446e74;return(_0x446e74=this[_0x41352b(0x378)][_0x41352b(0x3bc)](u[_0x41352b(0x22c)]))!=null?_0x446e74:u[_0x41352b(0x3b8)];}[_0xf8a214(0x3fd)](_0x52bb8a){const _0x1efebe=_0xf8a214,_0x331caf=this[_0x1efebe(0x20f)][_0x1efebe(0x1d8)](_0x52bb8a);return _0x331caf!==void 0x0&&window['clearTimeout'](_0x331caf),this[_0x1efebe(0x17f)][_0x1efebe(0x266)](u[_0x1efebe(0x2bf)](_0x52bb8a),this[_0x1efebe(0x1da)]['get'](_0x52bb8a))[_0x1efebe(0x2ec)](()=>this[_0x1efebe(0x20f)][_0x1efebe(0x367)](_0x52bb8a));}async[_0xf8a214(0x180)](){const _0xbddfb9=_0xf8a214,_0x2153d6=[];this[_0xbddfb9(0x20f)]['forEach']((_0x392171,_0x49df50)=>{const _0x3004b7=_0xbddfb9;window['clearTimeout'](_0x392171),_0x2153d6[_0x3004b7(0x346)](this[_0x3004b7(0x3fd)](_0x49df50)[_0x3004b7(0x2ec)](()=>{const _0x2686d0=_0x3004b7;this[_0x2686d0(0x20f)][_0x2686d0(0x367)](_0x49df50);}));}),await Promise['all'](_0x2153d6);}};Ce=is([Ie(0x0,a[_0xf8a214(0x2a5)]),Ie(0x1,a[_0xf8a214(0x3df)]),Ie(0x2,a['Inject'](g[_0xf8a214(0x368)]))],Ce);class ke extends a[_0xf8a214(0x18e)]{constructor(){const _0x381c2e=_0xf8a214;super(),_(this,'urlChange$'),this['urlChange$']=I['fromEvent'](window,_0x381c2e(0x3ac))[_0x381c2e(0x141)](I[_0x381c2e(0x36f)](this['dispose$']),I['shareReplay'](0x1),I[_0x381c2e(0x17b)](void 0x0));}[_0xf8a214(0x27f)](_0xc54658,_0x276d40,_0x371e3a=!0x1){const _0x16586d=_0xf8a214,_0x1233b7=new URL(window['location'][_0x16586d(0x150)]);_0x1233b7[_0x16586d(0x34b)]['set'](_0xc54658,_0x276d40),_0x371e3a?window['history'][_0x16586d(0x142)]('','',_0x1233b7[_0x16586d(0x3b5)]()):window['history'][_0x16586d(0x20c)]('','',_0x1233b7['toString']());}[_0xf8a214(0x3e3)](_0x54e05c,_0x5af06d=!0x1){const _0xec13a9=_0xf8a214,_0x53bd81=new URL(window[_0xec13a9(0x3f8)][_0xec13a9(0x150)]);_0x53bd81['searchParams']['delete'](_0x54e05c),_0x5af06d?window[_0xec13a9(0x15a)][_0xec13a9(0x142)]('','',_0x53bd81['toString']()):window['history'][_0xec13a9(0x20c)]('','',_0x53bd81[_0xec13a9(0x3b5)]());}[_0xf8a214(0x24e)](_0x1ba902){const _0x27f2e5=_0xf8a214;var _0x10e5ad;return(_0x10e5ad=new URL(window[_0x27f2e5(0x3f8)][_0x27f2e5(0x150)])[_0x27f2e5(0x34b)]['get'](_0x1ba902))!=null?_0x10e5ad:void 0x0;}}var ns=Object[_0xf8a214(0x1d3)],rs=Object[_0xf8a214(0x3f6)],os=(_0x13fa9e,_0x404d35,_0x15f197)=>_0x404d35 in _0x13fa9e?ns(_0x13fa9e,_0x404d35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15f197}):_0x13fa9e[_0x404d35]=_0x15f197,as=(_0xa087ef,_0x9b24a9,_0xb9039f,_0x4a95a7)=>{const _0x54702b=_0xf8a214;for(var _0x2b29d4=_0x4a95a7>0x1?void 0x0:_0x4a95a7?rs(_0x9b24a9,_0xb9039f):_0x9b24a9,_0x112cee=_0xa087ef[_0x54702b(0x3b4)]-0x1,_0x46e268;_0x112cee>=0x0;_0x112cee--)(_0x46e268=_0xa087ef[_0x112cee])&&(_0x2b29d4=_0x46e268(_0x2b29d4)||_0x2b29d4);return _0x2b29d4;},de=(_0x5a13f7,_0x1d4747)=>(_0x22f496,_0x4e2405)=>_0x1d4747(_0x22f496,_0x4e2405,_0x5a13f7),cs=(_0x3a0a11,_0x2a1936,_0x4e8fae)=>os(_0x3a0a11,_0x2a1936+'',_0x4e8fae);const ls='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0xf8a214(0x3aa)]=class extends a[_0xf8a214(0x2f3)]{constructor(_0x355564=Le,_0x3899d6,_0xef86bc,_0x5abeb9){const _0x2c1f65=_0xf8a214;super(),this[_0x2c1f65(0x1e6)]=_0x355564,this['_renderManagerService']=_0x3899d6,this[_0x2c1f65(0x3c4)]=_0xef86bc,this[_0x2c1f65(0x378)]=_0x5abeb9;const {..._0x1f9104}=a[_0x2c1f65(0x19d)]({},Le,this['_config']);this[_0x2c1f65(0x378)][_0x2c1f65(0x3de)](kt,_0x1f9104);}[_0xf8a214(0x406)](){const _0x3d1353=_0xf8a214;this[_0x3d1353(0x264)](),this[_0x3d1353(0x18a)]();}[_0xf8a214(0x1b0)](){const _0xeaa336=_0xf8a214;this[_0xeaa336(0x1db)]();}[_0xf8a214(0x264)](){const _0x380d03=_0xf8a214;var _0x5d1ea2;const _0xd94bcf=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x380d03(0x360)],{'useClass':X[_0x380d03(0x2db)]}],[u[_0x380d03(0x204)],{'useClass':Ce}],[exports[_0x380d03(0x3d9)]],[se],[Z],[F],[fe],[exports[_0x380d03(0x2b6)]]];a[_0x380d03(0x33c)](this['_injector'],a[_0x380d03(0x2c4)](_0xd94bcf,(_0x5d1ea2=this['_config'])==null?void 0x0:_0x5d1ea2[_0x380d03(0x1c3)]));}[_0xf8a214(0x1db)](){const _0x345c58=_0xf8a214;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x345c58(0x392)]['UNIVER_DOC'],[ge])),this[_0x345c58(0x297)](this[_0x345c58(0x22b)][_0x345c58(0x1a1)](a[_0x345c58(0x392)][_0x345c58(0x225)],[Ee]));}[_0xf8a214(0x18a)](){const _0x1491fd=_0xf8a214;a[_0x1491fd(0x2b4)](this[_0x1491fd(0x3c4)],[[F],[exports[_0x1491fd(0x3d9)]],[se],[Z],[exports[_0x1491fd(0x2b6)]],[ie]]);}},cs(exports['UniverCollaborationClientUIPlugin'],'pluginName',ls),exports[_0xf8a214(0x3aa)]=as([a['DependentOn'](u[_0xf8a214(0x15b)]),de(0x1,C[_0xf8a214(0x277)]),de(0x2,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),de(0x3,a[_0xf8a214(0x2a5)])],exports[_0xf8a214(0x3aa)]);var _s=Object[_0xf8a214(0x3f6)],hs=(_0x17b909,_0x4fcd2b,_0x259bc4,_0x3de0ad)=>{for(var _0x194515=_0x3de0ad>0x1?void 0x0:_0x3de0ad?_s(_0x4fcd2b,_0x259bc4):_0x4fcd2b,_0x5746c6=_0x17b909['length']-0x1,_0x480a47;_0x5746c6>=0x0;_0x5746c6--)(_0x480a47=_0x17b909[_0x5746c6])&&(_0x194515=_0x480a47(_0x194515)||_0x194515);return _0x194515;},W=(_0xf9468b,_0x299f11)=>(_0x224f1a,_0x435a53)=>_0x299f11(_0x224f1a,_0x435a53,_0xf9468b);exports[_0xf8a214(0x3cf)]=class extends u['CollaborationSocketService']{constructor(_0x595a48,_0x404f0f,_0x520ef3,_0x473512,_0x6b2893){super(_0x595a48,_0x404f0f,_0x520ef3,_0x473512,_0x6b2893);}async[_0xf8a214(0x384)](_0x2c9544){const _0xc694ce=_0xf8a214,_0x2701a3=await this[_0xc694ce(0x3a0)](),_0x3ee265=this[_0xc694ce(0x27d)](_0x2c9544,_0x2701a3);return this['_doCreateSocket'](_0x3ee265);}['_createSocketURL'](_0x49cbfb,_0x43a29e){const _0x5a1ec3=_0xf8a214,_0x7989d6=typeof window>'u'?new URL(_0x49cbfb):new URL(_0x49cbfb,window[_0x5a1ec3(0x3f8)]['origin']);_0x7989d6[_0x5a1ec3(0x34b)]['set'](_0x5a1ec3(0x270),_0x43a29e);const _0x431d03=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x5a1ec3(0x23b)]);return _0x431d03[_0x5a1ec3(0x1d8)](_0x5a1ec3(0x14a))&&_0x7989d6[_0x5a1ec3(0x34b)][_0x5a1ec3(0x3b2)](_0x5a1ec3(0x14a),_0x431d03[_0x5a1ec3(0x1d8)](_0x5a1ec3(0x14a))),_0x7989d6[_0x5a1ec3(0x3b5)]();}async[_0xf8a214(0x3a0)](){const _0x5a6f35=_0xf8a214;var _0x4c637b,_0x15c9af,_0x19053f;const _0x4e739b=this[_0x5a6f35(0x378)][_0x5a6f35(0x3bc)](u[_0x5a6f35(0x262)]),_0x522ead=(_0x4c637b=_0x4e739b==null?void 0x0:_0x4e739b['wsSessionTicketUrl'])!=null?_0x4c637b:u[_0x5a6f35(0x338)];return(_0x19053f=(_0x15c9af=(await this['_httpService'][_0x5a6f35(0x1d8)](_0x522ead,{'headers':{'Content-Type':_0x5a6f35(0x278)}}))[_0x5a6f35(0x348)])==null?void 0x0:_0x15c9af['ticket'])!=null?_0x19053f:'';}},exports[_0xf8a214(0x3cf)]=hs([W(0x0,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),W(0x1,a['Inject'](X['HTTPService'])),W(0x2,a[_0xf8a214(0x2a5)]),W(0x3,a[_0xf8a214(0x375)]),W(0x4,g[_0xf8a214(0x1b1)])],exports[_0xf8a214(0x3cf)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x3290b1,_0x1a64af,_0x1e75e8,_0x4d9693)=>{for(var _0x217ea9=_0x4d9693>0x1?void 0x0:_0x4d9693?us(_0x1a64af,_0x1e75e8):_0x1a64af,_0x5b6e92=_0x3290b1['length']-0x1,_0x359e4c;_0x5b6e92>=0x0;_0x5b6e92--)(_0x359e4c=_0x3290b1[_0x5b6e92])&&(_0x217ea9=_0x359e4c(_0x217ea9)||_0x217ea9);return _0x217ea9;},Se=(_0x43de29,_0x37aeb4)=>(_0x4e3f7e,_0x2fa50c)=>_0x37aeb4(_0x4e3f7e,_0x2fa50c,_0x43de29);exports[_0xf8a214(0x2d8)]=class extends a[_0xf8a214(0x296)]{constructor(_0x3ad0c1,_0x35761b,_0x4f79d6){const _0x1fef8c=_0xf8a214;super(),this[_0x1fef8c(0x1ac)]=_0x3ad0c1,this['_httpService']=_0x35761b,this[_0x1fef8c(0x378)]=_0x4f79d6;}async[_0xf8a214(0x3c9)](_0x30e5b8,_0xd65f3d,_0x3abd26,..._0x22647e){const _0xedc868=_0xf8a214;var _0x172dee,_0xbbdc0c,_0x49555c,_0x4fe7c7;const _0x395cc5=this[_0xedc868(0x1ac)][_0xedc868(0x322)]();if(!_0x395cc5)throw new Error(_0xedc868(0x2f9));const _0x1144e2=((_0x172dee=this[_0xedc868(0x378)]['getConfig'](u[_0xedc868(0x234)]))!=null?_0x172dee:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x30e5b8+'/run/'+_0xd65f3d,_0x39681f=new URL(window[_0xedc868(0x3f8)]['href']),_0x3e3736={'scriptId':_0x30e5b8,'runId':(_0xbbdc0c=_0x39681f['searchParams']['get'](_0xedc868(0x14a)))!=null?_0xbbdc0c:'','function':_0xd65f3d,'unitId':_0x395cc5['getUnitId'](),'argsOfFunction':JSON[_0xedc868(0x2d0)](_0x22647e),'invokeId':(_0x49555c=_0x3abd26['invokeId'])!=null?_0x49555c:'','executionId':(_0x4fe7c7=_0x3abd26[_0xedc868(0x23a)])!=null?_0x4fe7c7:''};try{const _0x5a4601=await this[_0xedc868(0x18c)][_0xedc868(0x2b3)](_0x1144e2,{'body':_0x3e3736});return _0x5a4601[_0xedc868(0x348)][_0xedc868(0x249)]&&_0x5a4601[_0xedc868(0x348)][_0xedc868(0x249)][_0xedc868(0x170)]!==G['OK']?'Failed':_0x5a4601['body'][_0xedc868(0x28d)];}catch{return _0xedc868(0x1d0);}}},exports[_0xf8a214(0x2d8)]=Is([Se(0x0,a[_0xf8a214(0x389)]),Se(0x1,a[_0xf8a214(0x31a)](X[_0xf8a214(0x352)])),Se(0x2,a['IConfigService'])],exports['RemoteUniscriptService']);const Pe=0x7530,we=_0xf8a214(0x28f);class ds extends a[_0xf8a214(0x296)]{constructor(){const _0x2a9532=_0xf8a214;super(),_(this,_0x2a9532(0x3d7),a[_0x2a9532(0x16e)]()),_(this,_0x2a9532(0x1aa),new Set()),_(this,_0x2a9532(0x2ea),new Map()),_(this,_0x2a9532(0x3e8),null),_(this,_0x2a9532(0x310),new Map()),_(this,'_unitStatus',new Map()),this[_0x2a9532(0x3ff)]();}[_0xf8a214(0x2d7)](){const _0x3a2077=_0xf8a214;super[_0x3a2077(0x2d7)](),this[_0x3a2077(0x310)]['forEach']((_0x2c0e9e,_0x30fcdd)=>this['_removeClearOtherTimer'](_0x30fcdd)),this['_heartbeatTimer']&&window[_0x3a2077(0x22a)](this[_0x3a2077(0x3e8)]);}['getUnitStatus$'](_0x442163){const _0x493e2a=_0xf8a214;return this[_0x493e2a(0x3ea)](_0x442163)[_0x493e2a(0x141)](I[_0x493e2a(0x319)]());}[_0xf8a214(0x2da)](_0x500e4d){const _0x5e6fea=_0xf8a214;this[_0x5e6fea(0x1aa)][_0x5e6fea(0x385)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5e6fea(0x1aa)][_0x5e6fea(0x22f)](_0x500e4d),this[_0x5e6fea(0x144)]({'type':0x0,'memberID':this[_0x5e6fea(0x3d7)],'unitIDs':[_0x500e4d],'isForwarded':!0x1});}[_0xf8a214(0x222)](_0x5d360f){const _0x4eb282=_0xf8a214;this[_0x4eb282(0x1aa)][_0x4eb282(0x367)](_0x5d360f),this['_selfUnitIDs'][_0x4eb282(0x385)]===0x0&&this[_0x4eb282(0x3e8)]&&window['clearInterval'](this[_0x4eb282(0x3e8)]);}[_0xf8a214(0x3ff)](){const _0x21ea0e=_0xf8a214;this['disposeWithMe'](a[_0x21ea0e(0x17d)](I[_0x21ea0e(0x38d)](window,'storage')[_0x21ea0e(0x1dd)](_0x55523c=>{const _0x27e394=_0x21ea0e;if(_0x55523c['key']!==we||!_0x55523c[_0x27e394(0x2a9)])return;const _0x200ee1=JSON[_0x27e394(0x26d)](_0x55523c[_0x27e394(0x2a9)]);this[_0x27e394(0x2e8)](_0x200ee1);}))),window[_0x21ea0e(0x306)]('unload',()=>this[_0x21ea0e(0x144)]({'type':0x1,'memberID':this[_0x21ea0e(0x3d7)],'unitIDs':Array[_0x21ea0e(0x195)](this[_0x21ea0e(0x1aa)])}));}[_0xf8a214(0x2e8)](_0x1b569e){const _0x1592ee=_0xf8a214;switch(_0x1b569e[_0x1592ee(0x351)]){case 0x0:this[_0x1592ee(0x24c)](_0x1b569e);break;case 0x1:this['_handleLeaveEvent'](_0x1b569e);break;case 0x2:this[_0x1592ee(0x26e)](_0x1b569e);break;}}[_0xf8a214(0x24c)](_0x1fcb6c){const _0x5701f1=_0xf8a214,{unitIDs:_0x48d702,memberID:_0x4e99b2,isForwarded:_0x52ace8}=_0x1fcb6c;_0x48d702[_0x5701f1(0x1f2)](_0x891c0=>{const _0x190504=_0x5701f1;if(!_0x52ace8&&this[_0x190504(0x2ea)][_0x190504(0x342)](_0x891c0)&&this[_0x190504(0x3ea)](_0x891c0)[_0x190504(0x2cd)](u['UnitStatus'][_0x190504(0x408)]),!this[_0x190504(0x2ea)][_0x190504(0x342)](_0x891c0)||!this[_0x190504(0x2ea)][_0x190504(0x1d8)](_0x891c0)[_0x190504(0x342)](_0x4e99b2)){const _0x2c3b39=this['_unitOnClients'][_0x190504(0x1d8)](_0x891c0)||new Set();_0x2c3b39[_0x190504(0x22f)](_0x4e99b2),this['_unitOnClients'][_0x190504(0x3b2)](_0x891c0,_0x2c3b39),this['_scheduleClearOtherTimer'](_0x4e99b2);}}),_0x52ace8||this['_send']({'type':0x0,'memberID':this[_0x5701f1(0x3d7)],'unitIDs':[...this[_0x5701f1(0x1aa)]],'isForwarded':!0x0});}[_0xf8a214(0x3a3)](_0x6dd33e){const _0xa0e238=_0xf8a214;this[_0xa0e238(0x2fc)](_0x6dd33e);const _0x4e423f=window['setTimeout'](()=>{const _0x1b8462=_0xa0e238;this['_unitOnClients'][_0x1b8462(0x1f2)](_0x28b629=>{const _0x553f77=_0x1b8462;_0x28b629[_0x553f77(0x367)](_0x6dd33e);});},Pe*0x2);this[_0xa0e238(0x310)][_0xa0e238(0x3b2)](_0x6dd33e,_0x4e423f);}[_0xf8a214(0x2fc)](_0x27a63d){const _0x4ba0e3=_0xf8a214;if(this[_0x4ba0e3(0x310)]['has'](_0x27a63d)){const _0x247257=this['_clearOtherTimers'][_0x4ba0e3(0x1d8)](_0x27a63d);_0x247257&&window[_0x4ba0e3(0x27a)](_0x247257),this[_0x4ba0e3(0x310)][_0x4ba0e3(0x3b2)](_0x27a63d,null);}}['_handleLeaveEvent'](_0x289830){const _0x1c5483=_0xf8a214,{memberID:_0xf36fd,unitIDs:_0x29ec3e}=_0x289830;_0x29ec3e[_0x1c5483(0x1f2)](_0x272dfe=>{const _0x4ffcfe=_0x1c5483;var _0x342389;const _0xa3694d=this['_unitOnClients'][_0x4ffcfe(0x1d8)](_0x272dfe);_0xa3694d&&(_0xa3694d['delete'](_0xf36fd),(_0x342389=this['_ensureSubject'](_0x272dfe))==null||_0x342389[_0x4ffcfe(0x2cd)](_0xa3694d[_0x4ffcfe(0x385)]===0x0?u[_0x4ffcfe(0x1eb)]['NO_OTHER_CLIENTS_EDITING']:u[_0x4ffcfe(0x1eb)][_0x4ffcfe(0x408)]));}),this[_0x1c5483(0x2fc)](_0xf36fd);}[_0xf8a214(0x26e)](_0x28d43f){const _0x12ca27=_0xf8a214;this[_0x12ca27(0x3a3)](_0x28d43f['memberID']);}[_0xf8a214(0x144)](_0x2f5608){const _0x2e4568=_0xf8a214;localStorage[_0x2e4568(0x266)](we,JSON[_0x2e4568(0x2d0)](_0x2f5608));}[_0xf8a214(0x3d5)](){const _0x258f8a=_0xf8a214;this[_0x258f8a(0x3e8)]=window[_0x258f8a(0x2cb)](()=>{const _0x2542e3=_0x258f8a;this['_send']({'type':0x2,'memberID':this[_0x2542e3(0x3d7)]});},Pe);}[_0xf8a214(0x3ea)](_0x39b231){const _0x16186a=_0xf8a214;return this[_0x16186a(0x1f4)][_0x16186a(0x342)](_0x39b231)||this['_unitStatus'][_0x16186a(0x3b2)](_0x39b231,new I['BehaviorSubject'](u[_0x16186a(0x1eb)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x16186a(0x1d8)](_0x39b231);}}exports['IURLService']=Te,exports['SheetCollabCursorShape']=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports[_0xf8a214(0x3da)]=ke;