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

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 +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3c5b5e=_0x4dd1;(function(_0x5efd71,_0x5c8a74){const _0x237399=_0x4dd1,_0x44cb38=_0x5efd71();while(!![]){try{const _0x3b6627=parseInt(_0x237399(0x360))/0x1+-parseInt(_0x237399(0x160))/0x2*(-parseInt(_0x237399(0x372))/0x3)+parseInt(_0x237399(0x25f))/0x4+parseInt(_0x237399(0x186))/0x5*(parseInt(_0x237399(0x297))/0x6)+parseInt(_0x237399(0x385))/0x7+-parseInt(_0x237399(0x2db))/0x8*(parseInt(_0x237399(0x384))/0x9)+-parseInt(_0x237399(0x2ff))/0xa*(parseInt(_0x237399(0x326))/0xb);if(_0x3b6627===_0x5c8a74)break;else _0x44cb38['push'](_0x44cb38['shift']());}catch(_0x2dff9b){_0x44cb38['push'](_0x44cb38['shift']());}}}(_0x2c72,0x23313));var Ve=Object[_0x3c5b5e(0x19e)],Ge=(_0x296c81,_0x3d7080,_0x4c3084)=>_0x3d7080 in _0x296c81?Ve(_0x296c81,_0x3d7080,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c3084}):_0x296c81[_0x3d7080]=_0x4c3084,_=(_0x48db9b,_0x485c41,_0x2831f0)=>Ge(_0x48db9b,typeof _0x485c41!='symbol'?_0x485c41+'':_0x485c41,_0x2831f0);Object[_0x3c5b5e(0x19e)](exports,Symbol[_0x3c5b5e(0x31c)],{'value':_0x3c5b5e(0x27d)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),p=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0xd9c326,..._0x213c3e}){const _0x472f22=_0x3c5b5e,{icon:_0xc07101,id:_0x3fbb7d,className:_0x5c626f,extend:_0x22d94,..._0x2a92a9}=_0x213c3e,_0x33625c=(_0x472f22(0x27e)+_0x3fbb7d+'\x20'+(_0x5c626f||''))['trim'](),_0x3f6f7b=A[_0x472f22(0x2fa)]('_'+Je());return we(_0xc07101,''+_0x3fbb7d,{'defIds':_0xc07101[_0x472f22(0x3b0)],'idSuffix':_0x3f6f7b['current']},{'ref':_0xd9c326,'className':_0x33625c,..._0x2a92a9},_0x22d94);}function we(_0x498b61,_0x398245,_0x286234,_0x238edd,_0x24f1de){const _0x4640c2=_0x3c5b5e;return A[_0x4640c2(0x171)](_0x498b61[_0x4640c2(0x1f1)],{'key':_0x398245,...qe(_0x498b61,_0x286234,_0x24f1de),..._0x238edd},(ze(_0x498b61,_0x286234)['children']||[])[_0x4640c2(0x375)]((_0x68386d,_0x3779fe)=>we(_0x68386d,_0x398245+'-'+_0x498b61[_0x4640c2(0x1f1)]+'-'+_0x3779fe,_0x286234,void 0x0,_0x24f1de)));}function qe(_0x2bff0d,_0x398f7f,_0x241438){const _0x386c87=_0x3c5b5e,_0x2e191d={..._0x2bff0d[_0x386c87(0x245)]};_0x241438!=null&&_0x241438[_0x386c87(0x2a7)]&&_0x2e191d[_0x386c87(0x3ee)]===_0x386c87(0x2a7)&&(_0x2e191d[_0x386c87(0x3ee)]=_0x241438['colorChannel1']),_0x2bff0d[_0x386c87(0x1f1)]===_0x386c87(0x3ab)&&_0x2e191d['id']&&(_0x2e191d['id']=_0x2e191d['id']+_0x398f7f[_0x386c87(0x201)]),Object[_0x386c87(0x1fb)](_0x2e191d)[_0x386c87(0x1bb)](([_0x2506b0,_0x2f6685])=>{const _0x102281=_0x386c87;_0x2506b0==='mask'&&typeof _0x2f6685==_0x102281(0x3a1)&&(_0x2e191d[_0x2506b0]=_0x2f6685['replace'](/url\(#(.*)\)/,_0x102281(0x141)+_0x398f7f[_0x102281(0x201)]+')'));});const {defIds:_0x203cbd}=_0x398f7f;return!_0x203cbd||_0x203cbd[_0x386c87(0x232)]===0x0||(_0x2bff0d['tag']==='use'&&_0x2e191d[_0x386c87(0x325)]&&(_0x2e191d[_0x386c87(0x325)]=_0x2e191d[_0x386c87(0x325)]+_0x398f7f[_0x386c87(0x201)]),Object[_0x386c87(0x1fb)](_0x2e191d)[_0x386c87(0x1bb)](([_0x3b9379,_0x50973e])=>{const _0x330cf3=_0x386c87;typeof _0x50973e==_0x330cf3(0x3a1)&&(_0x2e191d[_0x3b9379]=_0x50973e[_0x330cf3(0x1b0)](/url\(#(.*)\)/,_0x330cf3(0x141)+_0x398f7f[_0x330cf3(0x201)]+')'));})),_0x2e191d;}function ze(_0x3fc988,_0x648344){const _0x28334b=_0x3c5b5e;var _0x59ad19;const {defIds:_0x2c8c05}=_0x648344;return!_0x2c8c05||_0x2c8c05[_0x28334b(0x232)]===0x0?_0x3fc988:_0x3fc988[_0x28334b(0x1f1)]===_0x28334b(0x290)&&((_0x59ad19=_0x3fc988['children'])!=null&&_0x59ad19[_0x28334b(0x232)])?{..._0x3fc988,'children':_0x3fc988[_0x28334b(0x2fb)][_0x28334b(0x375)](_0x554239=>typeof _0x554239['attrs']['id']==_0x28334b(0x3a1)&&_0x2c8c05&&_0x2c8c05[_0x28334b(0x228)](_0x554239[_0x28334b(0x245)]['id'])?{..._0x554239,'attrs':{..._0x554239['attrs'],'id':_0x554239[_0x28334b(0x245)]['id']+_0x648344[_0x28334b(0x201)]}}:_0x554239)}:_0x3fc988;}function Je(){const _0x2a70e7=_0x3c5b5e;return Math[_0x2a70e7(0x13e)]()[_0x2a70e7(0x14c)](0x24)[_0x2a70e7(0x1c7)](0x2,0x8);}Ce[_0x3c5b5e(0x307)]=_0x3c5b5e(0x365);const Ze={'tag':_0x3c5b5e(0x20c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3c5b5e(0x283),'viewBox':'0\x200\x2016\x2016','width':_0x3c5b5e(0x282),'height':_0x3c5b5e(0x282)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c5b5e(0x1b3)},'children':[{'tag':_0x3c5b5e(0x318),'attrs':{'stroke':_0x3c5b5e(0x1c9),'d':_0x3c5b5e(0x273),'strokeLinecap':_0x3c5b5e(0x386),'strokeLinejoin':_0x3c5b5e(0x386),'strokeWidth':1.2}}]},{'tag':_0x3c5b5e(0x290),'attrs':{},'children':[{'tag':_0x3c5b5e(0x144),'attrs':{'id':_0x3c5b5e(0x177)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x3c5b5e(0x1ef)}}]}]}],'defIds':[_0x3c5b5e(0x177)]},ye=A['forwardRef'](function(_0x3b7cb3,_0x271a9b){const _0x2a95e7=_0x3c5b5e;return A['createElement'](Ce,Object['assign']({},_0x3b7cb3,{'id':_0x2a95e7(0x19f),'ref':_0x271a9b,'icon':Ze}));});ye[_0x3c5b5e(0x307)]=_0x3c5b5e(0x1fa);const Qe={'tag':_0x3c5b5e(0x20c),'attrs':{'xmlns':_0x3c5b5e(0x2eb),'fill':_0x3c5b5e(0x283),'viewBox':_0x3c5b5e(0x334),'width':'1em','height':_0x3c5b5e(0x282)},'children':[{'tag':'g','attrs':{'clipPath':_0x3c5b5e(0x32e)},'children':[{'tag':_0x3c5b5e(0x318),'attrs':{'stroke':_0x3c5b5e(0x1c9),'d':_0x3c5b5e(0x2ec),'strokeLinecap':_0x3c5b5e(0x386),'strokeLinejoin':_0x3c5b5e(0x386),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3c5b5e(0x144),'attrs':{'id':_0x3c5b5e(0x34e)},'children':[{'tag':_0x3c5b5e(0x318),'attrs':{'fill':_0x3c5b5e(0x1cb),'d':_0x3c5b5e(0x1ef),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3c5b5e(0x34e)]},$e=A[_0x3c5b5e(0x323)](function(_0x47a040,_0x15e526){const _0x81730c=_0x3c5b5e;return A['createElement'](Ce,Object['assign']({},_0x47a040,{'id':_0x81730c(0x2ca),'ref':_0x15e526,'icon':Qe}));});$e[_0x3c5b5e(0x307)]='OnLineIcon';function et(_0xad961b){const _0x36e2a0=_0x3c5b5e;switch(_0xad961b){case u[_0x36e2a0(0x1d8)]['OFFLINE']:return'collabStatus.offline';case u[_0x36e2a0(0x1d8)][_0x36e2a0(0x181)]:return _0x36e2a0(0x308);case u[_0x36e2a0(0x1d8)][_0x36e2a0(0x218)]:return'collabStatus.fetchMiss';case u[_0x36e2a0(0x1d8)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x36e2a0(0x1d8)]['AWAITING']:case u['CollaborationStatus'][_0x36e2a0(0x370)]:return _0x36e2a0(0x382);case u[_0x36e2a0(0x1d8)][_0x36e2a0(0x255)]:case u[_0x36e2a0(0x1d8)][_0x36e2a0(0x16a)]:return _0x36e2a0(0x1cd);}}function tt(_0x2ada77){const _0x5e1b90=_0x3c5b5e,{status$:_0x3c1109}=_0x2ada77,_0x1a3aff=O[_0x5e1b90(0x388)](_0x3c1109,u['CollaborationStatus'][_0x5e1b90(0x3cb)]),_0x17f4ee=O['useDependency'](a[_0x5e1b90(0x235)]),_0x2f0e51=O[_0x5e1b90(0x2a1)](u[_0x5e1b90(0x173)]),_0x65dc44=_0x1a3aff!==u[_0x5e1b90(0x1d8)][_0x5e1b90(0x3c3)],_0x3eb7af=_0x17f4ee['t'](et(_0x1a3aff)),_0x518d68=_0x65dc44?M[_0x5e1b90(0x1b2)]($e,{}):M[_0x5e1b90(0x1b2)](ye,{}),_0x106166=A[_0x5e1b90(0x272)](()=>{_0x65dc44||_0x2f0e51['reconnect']();},[_0x65dc44,_0x2f0e51]);function _0x4b077d(){const _0x507ddc=_0x5e1b90;return M['jsxs']('div',{'className':_0x507ddc(0x176),'onClick':_0x106166,'children':[M[_0x507ddc(0x1b2)]('div',{'className':T[_0x507ddc(0x2a8)](_0x507ddc(0x221),{'univer-text-green-500':_0x65dc44,'univer-text-red-500':!_0x65dc44}),'children':_0x518d68}),M[_0x507ddc(0x1b2)](_0x507ddc(0x1c0),{'className':_0x507ddc(0x217),'children':_0x3eb7af})]});}return _0x65dc44?_0x4b077d():M[_0x5e1b90(0x1b2)](T[_0x5e1b90(0x36b)],{'title':_0x17f4ee['t'](_0x5e1b90(0x327)),'children':_0x4b077d()});}var st=Object[_0x3c5b5e(0x2ee)],it=(_0x353dcd,_0x1da7c7,_0x5316f7,_0xf35784)=>{const _0x5f578d=_0x3c5b5e;for(var _0x282782=_0xf35784>0x1?void 0x0:_0xf35784?st(_0x1da7c7,_0x5316f7):_0x1da7c7,_0x2526fb=_0x353dcd[_0x5f578d(0x232)]-0x1,_0x12de90;_0x2526fb>=0x0;_0x2526fb--)(_0x12de90=_0x353dcd[_0x2526fb])&&(_0x282782=_0x12de90(_0x282782)||_0x282782);return _0x282782;},K=(_0x495efb,_0x3deb4c)=>(_0x5bb220,_0x423a63)=>_0x3deb4c(_0x5bb220,_0x423a63,_0x495efb);exports[_0x3c5b5e(0x143)]=class extends a[_0x3c5b5e(0x343)]{constructor(_0x1bdf11,_0x3116ba,_0x2ac915,_0x1059c3){const _0x11eb1a=_0x3c5b5e;super(),_(this,_0x11eb1a(0x39c),new I[(_0x11eb1a(0x3d7))](u['CollaborationStatus'][_0x11eb1a(0x3cb)])),(this[_0x11eb1a(0x2c9)]=_0x1bdf11,this[_0x11eb1a(0x25b)]=_0x3116ba,this[_0x11eb1a(0x1c6)]=_0x2ac915,this['_uiPartsService']=_0x1059c3,this[_0x11eb1a(0x2b2)](),this[_0x11eb1a(0x2ea)]());}[_0x3c5b5e(0x2ea)](){const _0x393345=_0x3c5b5e;this['disposeWithMe'](this['_univerInstanceService'][_0x393345(0x1e0)][_0x393345(0x38e)](I[_0x393345(0x14a)](()=>{const _0x1af2df=_0x393345,_0x27ac37=this[_0x1af2df(0x2c9)]['getFocusedUnit']();return _0x27ac37?this[_0x1af2df(0x1c6)]['getCollabEntity$'](_0x27ac37['getUnitId']()):I['of'](null);}),I[_0x393345(0x14a)](_0x53186c=>_0x53186c?_0x53186c[_0x393345(0x195)]:I['of'](u[_0x393345(0x1d8)][_0x393345(0x3cb)])))[_0x393345(0x257)](_0xa89c2a=>{const _0x2d8271=_0x393345;this[_0x2d8271(0x39c)]['next'](_0xa89c2a);}));}[_0x3c5b5e(0x2b2)](){const _0x599925=_0x3c5b5e;this[_0x599925(0x203)](this[_0x599925(0x14f)][_0x599925(0x37a)](O[_0x599925(0x246)][_0x599925(0x151)],()=>O[_0x599925(0x354)](nt({'status$':this[_0x599925(0x39c)][_0x599925(0x1e4)]()}),this[_0x599925(0x25b)])));}},exports[_0x3c5b5e(0x143)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x20e)])),K(0x2,a[_0x3c5b5e(0x2dc)](u[_0x3c5b5e(0x32d)])),K(0x3,O[_0x3c5b5e(0x26c)])],exports[_0x3c5b5e(0x143)]);function nt(_0x444ae2){const {status$:_0x32f0a1}=_0x444ae2;return function(){return M['jsx'](tt,{'status$':_0x32f0a1});};}const pe=a[_0x3c5b5e(0x1b1)]('uni.network.url-service');var rt=Object[_0x3c5b5e(0x2ee)],ot=(_0x243dea,_0x2ba13a,_0x802cee,_0x13a2d9)=>{const _0x59ae09=_0x3c5b5e;for(var _0x42c18d=_0x13a2d9>0x1?void 0x0:_0x13a2d9?rt(_0x2ba13a,_0x802cee):_0x2ba13a,_0x371720=_0x243dea[_0x59ae09(0x232)]-0x1,_0x108677;_0x371720>=0x0;_0x371720--)(_0x108677=_0x243dea[_0x371720])&&(_0x42c18d=_0x108677(_0x42c18d)||_0x42c18d);return _0x42c18d;},j=(_0x22b016,_0x2039ba)=>(_0x1ada53,_0x3985ae)=>_0x2039ba(_0x1ada53,_0x3985ae,_0x22b016);exports['CollaborationDataLoaderController']=class extends a[_0x3c5b5e(0x286)]{constructor(_0x37a6cc,_0x56d2ec,_0x4008a7,_0x2fbb52,_0x39596e){const _0x33cf3b=_0x3c5b5e;super(),this['_urlService']=_0x37a6cc,this[_0x33cf3b(0x1ac)]=_0x56d2ec,this['_commandService']=_0x4008a7,this[_0x33cf3b(0x2f3)]=_0x2fbb52,_0x39596e?_0x39596e==null||_0x39596e[_0x33cf3b(0x31d)]()[_0x33cf3b(0x333)](()=>this[_0x33cf3b(0x3c8)]()):(this[_0x33cf3b(0x1ac)][_0x33cf3b(0x35a)](_0x33cf3b(0x356),_0x33cf3b(0x3a7)),this[_0x33cf3b(0x3c8)]());}async['_init'](){const _0xc30054=_0x3c5b5e,_0x3f4800=this[_0xc30054(0x209)][_0xc30054(0x2c5)](_0xc30054(0x3f1)),_0x35da86=this['_urlService'][_0xc30054(0x2c5)](_0xc30054(0x29c)),_0xa26107=this[_0xc30054(0x209)]['getParam']('subunit');if(!_0x3f4800||!_0x35da86){this[_0xc30054(0x1ac)][_0xc30054(0x35a)]('[CollaborationDataLoaderController]',_0xc30054(0x303));return;}const _0x49cb5b=await this[_0xc30054(0x2f3)][_0xc30054(0x1de)](_0x3f4800,Number(_0x35da86),_0xa26107);_0x49cb5b&&_0x49cb5b instanceof a[_0xc30054(0x2e2)]&&this[_0xc30054(0x30b)](_0x49cb5b);}async[_0x3c5b5e(0x30b)](_0x2e482){const _0x480cb7=_0x3c5b5e;await this[_0x480cb7(0x344)](_0x2e482),_0x2e482[_0x480cb7(0x2e1)][_0x480cb7(0x38e)](I[_0x480cb7(0x1af)](this[_0x480cb7(0x193)]))[_0x480cb7(0x257)](_0x343543=>{const _0x398697=_0x480cb7;_0x343543&&this[_0x398697(0x3d9)](_0x343543);}),this['_urlService']['urlChange$']['pipe'](I[_0x480cb7(0x1af)](this['dispose$']))['subscribe'](()=>this[_0x480cb7(0x344)](_0x2e482));}[_0x3c5b5e(0x3d9)](_0x2761e9,_0x46393a=!0x1){const _0x53052f=_0x3c5b5e,_0xa3eb6b=this['_urlService']['getParam'](_0x53052f(0x1d5));_0x2761e9[_0x53052f(0x23b)]()!==_0xa3eb6b&&this[_0x53052f(0x209)][_0x53052f(0x351)]('subunit',_0x2761e9[_0x53052f(0x23b)](),_0x46393a);}async['_updateSubUnitFromURLParams'](_0x37ad49){const _0x548d97=_0x3c5b5e;var _0x20a717;const _0x6a1cd=this[_0x548d97(0x209)]['getParam'](_0x548d97(0x1d5));if(!_0x6a1cd||!_0x37ad49['getSheetBySheetId'](_0x6a1cd)){const _0x2c2fdc=_0x37ad49[_0x548d97(0x32c)]()[0x0],_0x1d1297=_0x37ad49['getSheetBySheetId'](_0x2c2fdc);if(!_0x1d1297)return;this['_updateURLWithCurrentState'](_0x1d1297,!0x0),await this['_commandService']['executeCommand'](g[_0x548d97(0x319)]['id'],{'unitId':_0x37ad49['getUnitId'](),'subUnitId':_0x2c2fdc});return;}((_0x20a717=_0x37ad49[_0x548d97(0x3b4)]())==null?void 0x0:_0x20a717['getSheetId']())!==_0x6a1cd&&await this[_0x548d97(0x2d7)][_0x548d97(0x330)](g[_0x548d97(0x319)]['id'],{'unitId':_0x37ad49[_0x548d97(0x279)](),'subUnitId':_0x6a1cd});}},exports[_0x3c5b5e(0x3d1)]=ot([j(0x0,pe),j(0x1,a[_0x3c5b5e(0x3a3)]),j(0x2,a['ICommandService']),j(0x3,a[_0x3c5b5e(0x2dc)](u[_0x3c5b5e(0x241)])),j(0x4,a[_0x3c5b5e(0x2dd)](Xe[_0x3c5b5e(0x1a4)]))],exports[_0x3c5b5e(0x3d1)]);var at=Object[_0x3c5b5e(0x2ee)],ct=(_0x3dc2c0,_0x136137,_0x1c7adf,_0x2240cc)=>{for(var _0x393edd=_0x2240cc>0x1?void 0x0:_0x2240cc?at(_0x136137,_0x1c7adf):_0x136137,_0x38f597=_0x3dc2c0['length']-0x1,_0x5236f9;_0x38f597>=0x0;_0x38f597--)(_0x5236f9=_0x3dc2c0[_0x38f597])&&(_0x393edd=_0x5236f9(_0x393edd)||_0x393edd);return _0x393edd;},Re=(_0x57fce0,_0xd9724)=>(_0x52c7a1,_0x494a2c)=>_0xd9724(_0x52c7a1,_0x494a2c,_0x57fce0);let de=class extends a[_0x3c5b5e(0x286)]{constructor(_0x40edf3,_0x5a5042){const _0x18280d=_0x3c5b5e;super(),this[_0x18280d(0x280)]=_0x40edf3,this[_0x18280d(0x18d)]=_0x5a5042,this[_0x18280d(0x3c8)]();}[_0x3c5b5e(0x3c8)](){const _0x1b89c6=_0x3c5b5e,_0x3176cc=this;this[_0x1b89c6(0x203)](this[_0x1b89c6(0x280)][_0x1b89c6(0x22b)]({'onBeforePasteImage':async _0x3f7628=>{const _0x2ab587=_0x1b89c6,_0x16647f=await _0x3176cc[_0x2ab587(0x18d)][_0x2ab587(0x393)](_0x3f7628);return _0x16647f?{'source':_0x16647f['source'],'imageSourceType':_0x16647f[_0x2ab587(0x1f0)]}:null;}}));}};de=ct([Re(0x0,p[_0x3c5b5e(0x31b)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0x3c5b5e(0x2d6),'jiqing.500',_0x3c5b5e(0x1d7),'red.300',_0x3c5b5e(0x336),_0x3c5b5e(0x3af)];class Te extends a[_0x3c5b5e(0x343)]{constructor(){const _0x726de7=_0x3c5b5e;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x726de7(0x179),0x0);}['assignAColorForMemberID'](_0x3bb4b1){const _0x15ed55=_0x3c5b5e;if(this[_0x15ed55(0x194)][_0x15ed55(0x1ed)](_0x3bb4b1))return this[_0x15ed55(0x194)][_0x15ed55(0x1a0)](_0x3bb4b1);const _0x5087cf=be[this[_0x15ed55(0x179)]];return this['_colorIndex']=(this[_0x15ed55(0x179)]+0x1)%be[_0x15ed55(0x232)],this['_assignedColors'][_0x15ed55(0x39b)](_0x3bb4b1,_0x5087cf),_0x5087cf;}}function xe(_0x58533c){const _0x43fb86=_0x3c5b5e;let _0x4f592b='';for(const _0x245af5 of _0x58533c){const {startOffset:_0x254ffb,endOffset:_0x2f4a6e,isActive:_0x2fdeac,rangeType:_0xbc92ca,segmentId:_0x580b79,segmentPage:_0x8bd95c}=_0x245af5;_0x4f592b[_0x43fb86(0x232)]&&(_0x4f592b+=','),_0x4f592b+=_0x254ffb+':'+_0x2f4a6e+':'+(_0x2fdeac?'1':'0')+':'+_0xbc92ca+':'+_0x580b79+':'+_0x8bd95c;}return _0x4f592b;}function lt(_0x456b9e){const _0x3bff48=_0x3c5b5e,_0x191f87=_0x456b9e[_0x3bff48(0x24b)](','),_0x4258f1=[];for(const _0x3db8b2 of _0x191f87){const [_0x190f62,_0x209ecd,_0x38912e,_0x2a2a15,_0x10c97f,_0x6f892e]=_0x3db8b2[_0x3bff48(0x24b)](':');_0x4258f1[_0x3bff48(0x2cc)]({'startOffset':Number(_0x190f62),'endOffset':Number(_0x209ecd),'collapsed':_0x190f62===_0x209ecd,'isActive':_0x38912e==='1','rangeType':_0x2a2a15===a[_0x3bff48(0x1e3)][_0x3bff48(0x266)]?a[_0x3bff48(0x1e3)][_0x3bff48(0x266)]:a[_0x3bff48(0x1e3)][_0x3bff48(0x3aa)],'segmentId':typeof _0x10c97f==_0x3bff48(0x3a1)?String(_0x10c97f):'','segmentPage':Number(_0x6f892e!=null?_0x6f892e:-0x1)});}return _0x4258f1[_0x3bff48(0x3bf)](_0x4cc320=>_0x4cc320[_0x3bff48(0x244)])||(_0x4258f1[0x0][_0x3bff48(0x244)]=!0x0),_0x4258f1;}class Oe extends a[_0x3c5b5e(0x286)]{constructor(){const _0x463c40=_0x3c5b5e;super(...arguments),_(this,_0x463c40(0x2fc),new I[(_0x463c40(0x3d7))](null)),_(this,_0x463c40(0x284),this['_collabCursorState$'][_0x463c40(0x1e4)]());}[_0x3c5b5e(0x153)](_0x5962ec){const _0xcd360d=_0x3c5b5e,{unitID:_0x3a0d5e,memberID:_0x14e00a,textRanges:_0x215ce2}=_0x5962ec,_0x3c8036=xe(_0x215ce2);if(_0x3c8036==='')return;const _0x42a3fa={'unitID':_0x3a0d5e,'memberID':_0x14e00a,'selection':_0x3c8036};this['_collabCursorState$'][_0xcd360d(0x310)](_0x42a3fa);}}var _t=Object[_0x3c5b5e(0x2ee)],ht=(_0x1b5089,_0x713f6,_0x198e00,_0x4592ea)=>{const _0x4d888a=_0x3c5b5e;for(var _0x43bd3d=_0x4592ea>0x1?void 0x0:_0x4592ea?_t(_0x713f6,_0x198e00):_0x713f6,_0x10f04d=_0x1b5089[_0x4d888a(0x232)]-0x1,_0x9b1c60;_0x10f04d>=0x0;_0x10f04d--)(_0x9b1c60=_0x1b5089[_0x10f04d])&&(_0x43bd3d=_0x9b1c60(_0x43bd3d)||_0x43bd3d);return _0x43bd3d;},U=(_0x3cc23c,_0x26d1a7)=>(_0x481011,_0x5119e4)=>_0x26d1a7(_0x481011,_0x5119e4,_0x3cc23c);const ut=0x12c,It=0x64;let fe=class extends a['RxDisposable']{constructor(_0x46eb28,_0x1db1e6,_0xbc5611,_0x34099b,_0x569f7b,_0x4e36f5,_0x4bef0d,_0x2c879d,_0x1a4e9c){const _0x43cf35=_0x3c5b5e;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x43cf35(0x3d7))](new Map())),_(this,_0x43cf35(0x317),this[_0x43cf35(0x222)][_0x43cf35(0x1e4)]()),_(this,_0x43cf35(0x2c7),new I[(_0x43cf35(0x3d7))]([])),_(this,_0x43cf35(0x278),this[_0x43cf35(0x2c7)][_0x43cf35(0x38e)](I[_0x43cf35(0x29e)](ut))),_(this,_0x43cf35(0x2d4),a['debounce'](_0x530fe2=>{const _0x474aab=_0x43cf35,_0x159528={'eventID':v[_0x474aab(0x36f)][_0x474aab(0x337)],'data':{'unitID':this[_0x474aab(0x1c5)],'memberID':this[_0x474aab(0x2a6)]['getMemberID'](),'selection':xe(_0x530fe2)}};this[_0x474aab(0x2a6)]['send'](_0x159528,this[_0x474aab(0x1c5)]);},It)),(this[_0x43cf35(0x1c5)]=_0x46eb28,this[_0x43cf35(0x2a6)]=_0x1db1e6,this[_0x43cf35(0x25b)]=_0xbc5611,this[_0x43cf35(0x3a8)]=_0x34099b,this[_0x43cf35(0x313)]=_0x569f7b,this['_syncEditingCollabCursorService']=_0x4e36f5,this['_transformService']=_0x4bef0d,this[_0x43cf35(0x2c9)]=_0x2c879d,this['_commandService']=_0x1a4e9c);}get[_0x3c5b5e(0x358)](){const _0x57a8e1=_0x3c5b5e;return this['_cursorInfo$'][_0x57a8e1(0x224)]();}get['roomMembers'](){const _0x51fc60=_0x3c5b5e;return this[_0x51fc60(0x2c7)][_0x51fc60(0x224)]();}[_0x3c5b5e(0x1f3)](){const _0x32a41d=_0x3c5b5e;super[_0x32a41d(0x1f3)](),this['_cursorInfo$'][_0x32a41d(0x310)](new Map()),this[_0x32a41d(0x222)][_0x32a41d(0x396)](),this['_roomMembers$']['next']([]),this[_0x32a41d(0x2c7)][_0x32a41d(0x396)]();}['init'](){const _0x456d65=_0x3c5b5e;this[_0x456d65(0x3c8)]||(this[_0x456d65(0x3c8)]=!0x0,this[_0x456d65(0x2a6)][_0x456d65(0x37b)][_0x456d65(0x38e)](I[_0x456d65(0x1af)](this[_0x456d65(0x193)]))[_0x456d65(0x257)](_0x507da9=>{const _0x4d7da5=_0x456d65;_0x507da9===u[_0x4d7da5(0x3de)][_0x4d7da5(0x148)]?this[_0x4d7da5(0x25d)]():this[_0x4d7da5(0x20f)]();}),this[_0x456d65(0x2a6)][_0x456d65(0x2b3)][_0x456d65(0x38e)](I[_0x456d65(0x1af)](this['dispose$']))[_0x456d65(0x257)](_0x2fbdcb=>{const _0x306c0f=_0x456d65,_0x4d702f=_0x2fbdcb[_0x306c0f(0x3b6)];_0x4d702f===v['CollaborationEvent'][_0x306c0f(0x337)]&&this[_0x306c0f(0x28e)](_0x2fbdcb),_0x4d702f===v[_0x306c0f(0x36f)][_0x306c0f(0x3ad)]&&this[_0x306c0f(0x3db)](_0x2fbdcb);}),this[_0x456d65(0x203)](this['_commandService'][_0x456d65(0x261)](_0x1d7ef4=>{const _0x45d422=_0x456d65,_0x52cfd4=_0x1d7ef4[_0x45d422(0x3ce)];_0x52cfd4!=null&&this['_online']&&_0x1d7ef4['id']===W[_0x45d422(0x13f)]['id']&&_0x52cfd4[_0x45d422(0x1f2)]===this['unitID']&&_0x52cfd4[_0x45d422(0x285)]===!0x1&&_0x52cfd4[_0x45d422(0x2c2)][_0x45d422(0x232)]>0x0&&this[_0x45d422(0x2d4)](_0x52cfd4[_0x45d422(0x2c2)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x456d65(0x38e)](I[_0x456d65(0x1af)](this[_0x456d65(0x193)]))[_0x456d65(0x257)](_0x281f26=>{const _0x32c4ef=_0x456d65;if((_0x281f26==null?void 0x0:_0x281f26[_0x32c4ef(0x1c5)])!==this[_0x32c4ef(0x1c5)])return;const _0x19b60e={'eventID':v['CollaborationEvent'][_0x32c4ef(0x337)],'data':_0x281f26};this[_0x32c4ef(0x28e)](_0x19b60e);}),this[_0x456d65(0x203)](this['_commandService']['onCommandExecuted'](_0x5a5cd1=>{const _0x2dd9d6=_0x456d65;if(_0x5a5cd1[_0x2dd9d6(0x3ce)]==null)return;const _0x4d8a6d=_0x5a5cd1[_0x2dd9d6(0x3ce)];if(_0x5a5cd1['id']!==W[_0x2dd9d6(0x39a)]['id']||_0x4d8a6d['unitId']!==this[_0x2dd9d6(0x1c5)])return;const _0xaace73={'id':_0x2dd9d6(0x2f2),'params':_0x4d8a6d},_0x293555=this[_0x2dd9d6(0x358)];for(const [_0x3d8148,_0x2f99cf]of _0x293555){const _0x4301f3={'id':_0x2dd9d6(0x2f2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2f99cf['ranges']}},_0x1da602=this[_0x2dd9d6(0x3bb)][_0x2dd9d6(0x346)](_0xaace73,_0x4301f3,!0x1);if(v['isTransformMutationFailure'](_0x1da602))throw _0x1da602[_0x2dd9d6(0x37e)];_0x293555['set'](_0x3d8148,{..._0x2f99cf,'ranges':_0x1da602[_0x2dd9d6(0x260)][_0x2dd9d6(0x3ce)][_0x2dd9d6(0x2c3)]});}queueMicrotask(()=>{const _0x4d00e6=_0x2dd9d6;this[_0x4d00e6(0x222)][_0x4d00e6(0x310)](_0x293555);});})));}[_0x3c5b5e(0x28e)](_0x37e609){const _0x329752=_0x3c5b5e;var _0x218fa0,_0x48a3cf;const {memberID:_0x55e205,selection:_0x27f18b}=_0x37e609[_0x329752(0x348)],_0x36437d=lt(_0x27f18b),_0x6bc94b=(_0x48a3cf=(_0x218fa0=this['_memberService']['getMember'](this[_0x329752(0x1c5)],_0x55e205))==null?void 0x0:_0x218fa0['name'])!=null?_0x48a3cf:'Unknown\x20user',_0x33358f={'color':this['_colorAssignService'][_0x329752(0x20a)](_0x55e205),'name':_0x6bc94b,'ranges':_0x36437d},_0x5ecb1b=this['cursorInfo'];_0x5ecb1b[_0x329752(0x39b)](_0x55e205,_0x33358f),this['_cursorInfo$'][_0x329752(0x310)](_0x5ecb1b);}[_0x3c5b5e(0x3db)](_0xeac92f){const _0xbc49cb=_0x3c5b5e,{memberID:_0x7d17e}=_0xeac92f[_0xbc49cb(0x348)],_0x2a24c6=this['cursorInfo'];_0x2a24c6[_0xbc49cb(0x263)](_0x7d17e),this['_cursorInfo$']['next'](_0x2a24c6);}['_toggleOnline'](){const _0x20658d=_0x3c5b5e;var _0x352713;if(this[_0x20658d(0x20b)]=!0x0,((_0x352713=this[_0x20658d(0x2c9)]['getFocusedUnit']())==null?void 0x0:_0x352713[_0x20658d(0x279)]())!==this['unitID'])return;const _0x4bcb1d=this['_injector'][_0x20658d(0x1a0)](W['DocSelectionManagerService'])[_0x20658d(0x2b1)]();Array[_0x20658d(0x1f4)](_0x4bcb1d)&&_0x4bcb1d[_0x20658d(0x232)]>0x0&&this['_updateLocalCursor'](_0x4bcb1d);}['_toggleOffline'](){const _0x50c167=_0x3c5b5e;this[_0x50c167(0x20b)]=!0x1;}};fe=ht([U(0x2,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x20e)])),U(0x3,a[_0x3c5b5e(0x2dc)](Te)),U(0x4,a['Inject'](u[_0x3c5b5e(0x2a2)])),U(0x5,a[_0x3c5b5e(0x2dc)](Oe)),U(0x6,v['ITransformService']),U(0x7,a[_0x3c5b5e(0x26a)]),U(0x8,a[_0x3c5b5e(0x293)])],fe);var St=Object[_0x3c5b5e(0x2ee)],dt=(_0x3f0fb9,_0x9d3ee,_0x4ca7fc,_0x12b110)=>{for(var _0x28b9cf=_0x12b110>0x1?void 0x0:_0x12b110?St(_0x9d3ee,_0x4ca7fc):_0x9d3ee,_0x5d9b0b=_0x3f0fb9['length']-0x1,_0xd564d1;_0x5d9b0b>=0x0;_0x5d9b0b--)(_0xd564d1=_0x3f0fb9[_0x5d9b0b])&&(_0x28b9cf=_0xd564d1(_0x28b9cf)||_0x28b9cf);return _0x28b9cf;},w=(_0x41cd5a,_0x241ec2)=>(_0x4d3105,_0x150b4f)=>_0x241ec2(_0x4d3105,_0x150b4f,_0x41cd5a);const ft=0x12c,mt=0x64,gt=()=>{let _0x38591f=[],_0xc01fcd=!0x1;return _0xaf0168=>{const _0x32e608=_0x4dd1;_0x38591f[_0x32e608(0x2cc)](_0xaf0168),_0xc01fcd||(_0xc01fcd=!0x0,setTimeout(()=>{_0x38591f['forEach'](_0x333e32=>_0x333e32()),_0x38591f=[],_0xc01fcd=!0x1;}));};};let me=class extends a['RxDisposable']{constructor(_0x19c4ed,_0x511787,_0x22a223,_0x4c7f42,_0x2f4669,_0x3a719d,_0x1c1ef2,_0x36eeef){const _0xd4a63a=_0x3c5b5e;super(),_(this,_0xd4a63a(0x20b),!0x1),_(this,_0xd4a63a(0x3c8),!0x1),_(this,_0xd4a63a(0x222),new I[(_0xd4a63a(0x3d7))](new Map())),_(this,_0xd4a63a(0x317),this[_0xd4a63a(0x222)]['asObservable']()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0xd4a63a(0x278),this[_0xd4a63a(0x2c7)][_0xd4a63a(0x38e)](I[_0xd4a63a(0x29e)](ft))),_(this,_0xd4a63a(0x2d4),a[_0xd4a63a(0x3e1)]((_0x4a99c8,_0xc0a610)=>{const _0x28c3cc=_0xd4a63a,_0x54da62={'eventID':v['CollaborationEvent'][_0x28c3cc(0x337)],'data':{'unitID':this['unitID'],'memberID':this[_0x28c3cc(0x2a6)][_0x28c3cc(0x1ba)](),'selection':x[_0x28c3cc(0x3ef)](_0x4a99c8,_0xc0a610[_0x28c3cc(0x2f9)])}};this[_0x28c3cc(0x2a6)][_0x28c3cc(0x22e)](_0x54da62,this[_0x28c3cc(0x1c5)]);},mt)),(this[_0xd4a63a(0x1c5)]=_0x19c4ed,this['_session']=_0x511787,this[_0xd4a63a(0x25b)]=_0x22a223,this['_colorAssignService']=_0x4c7f42,this[_0xd4a63a(0x313)]=_0x2f4669,this[_0xd4a63a(0x2c9)]=_0x3a719d,this[_0xd4a63a(0x2d7)]=_0x1c1ef2,this[_0xd4a63a(0x3e8)]=_0x36eeef);}get[_0x3c5b5e(0x358)](){const _0x463e48=_0x3c5b5e;return this[_0x463e48(0x222)][_0x463e48(0x224)]();}get[_0x3c5b5e(0x2ba)](){const _0x21ce29=_0x3c5b5e;return this[_0x21ce29(0x2c7)]['getValue']();}['dispose'](){const _0x5a1a3e=_0x3c5b5e;super['dispose'](),this[_0x5a1a3e(0x222)][_0x5a1a3e(0x310)](new Map()),this[_0x5a1a3e(0x222)][_0x5a1a3e(0x396)](),this[_0x5a1a3e(0x2c7)][_0x5a1a3e(0x310)]([]),this[_0x5a1a3e(0x2c7)][_0x5a1a3e(0x396)]();}[_0x3c5b5e(0x3b7)](){const _0x3f3486=_0x3c5b5e;this[_0x3f3486(0x3c8)]||(this[_0x3f3486(0x3c8)]=!0x0,this['_session'][_0x3f3486(0x37b)][_0x3f3486(0x38e)](I[_0x3f3486(0x1af)](this['dispose$']))[_0x3f3486(0x257)](_0x2058a9=>{const _0x19df37=_0x3f3486;_0x2058a9===u[_0x19df37(0x3de)]['ONLINE']?this[_0x19df37(0x25d)]():this[_0x19df37(0x20f)]();}),this[_0x3f3486(0x2a6)][_0x3f3486(0x2b3)][_0x3f3486(0x38e)](I[_0x3f3486(0x1af)](this['dispose$']))[_0x3f3486(0x257)](_0xe932ff=>{const _0x4aac5d=_0x3f3486,_0x102ca8=_0xe932ff[_0x4aac5d(0x3b6)];_0x102ca8===v[_0x4aac5d(0x36f)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xe932ff),_0x102ca8===v[_0x4aac5d(0x36f)][_0x4aac5d(0x3ad)]&&this['_onCursorDelete'](_0xe932ff);}),this[_0x3f3486(0x250)](),this[_0x3f3486(0x203)](this[_0x3f3486(0x2d7)][_0x3f3486(0x261)](_0x4944f9=>{const _0x1d5b8c=_0x3f3486;if(this[_0x1d5b8c(0x20b)]&&_0x4944f9['id']===g[_0x1d5b8c(0x230)]['id']&&_0x4944f9[_0x1d5b8c(0x3ce)][_0x1d5b8c(0x1f2)]===this[_0x1d5b8c(0x1c5)]){const _0x371ffe=_0x4944f9['params'];this['_updateLocalCursor'](_0x371ffe['subUnitId'],_0x371ffe['selections'][0x0]);}})));}['_onCursorUpdate'](_0x2682be){const _0x536f4b=_0x3c5b5e;var _0x2ec431,_0x641b69;const {memberID:_0xde92c3,selection:_0x50a07c}=_0x2682be['data'],{sheetName:_0x1e24fe,range:_0x258152}=x['deserializeRangeWithSheet'](_0x50a07c),_0x45dfc3={'name':(_0x641b69=(_0x2ec431=this[_0x536f4b(0x313)][_0x536f4b(0x251)](this[_0x536f4b(0x1c5)],_0xde92c3))==null?void 0x0:_0x2ec431[_0x536f4b(0x15e)])!=null?_0x641b69:_0x536f4b(0x1c1),'range':this[_0x536f4b(0x274)](_0x1e24fe,_0x258152),'sheetID':_0x1e24fe,'color':this[_0x536f4b(0x3a8)][_0x536f4b(0x20a)](_0xde92c3),'selection':_0x50a07c},_0x1e37bf=this[_0x536f4b(0x358)];_0x1e37bf[_0x536f4b(0x39b)](_0xde92c3,_0x45dfc3),this[_0x536f4b(0x222)][_0x536f4b(0x310)](_0x1e37bf);}['_onCursorDelete'](_0x4e94a7){const _0x61f00a=_0x3c5b5e,{memberID:_0x269bdb}=_0x4e94a7[_0x61f00a(0x348)],_0x10b009=this[_0x61f00a(0x358)];_0x10b009['delete'](_0x269bdb),this[_0x61f00a(0x222)][_0x61f00a(0x310)](_0x10b009);}['_getMergeRange'](_0x3d7d06,_0x322d0d){const _0x5f7ce0=_0x3c5b5e;var _0x2a4a94,_0x5ea31a;const _0x89935d=(_0x5ea31a=(_0x2a4a94=this[_0x5f7ce0(0x2c9)][_0x5f7ce0(0x1b7)](this[_0x5f7ce0(0x1c5)]))==null?void 0x0:_0x2a4a94[_0x5f7ce0(0x3dc)](_0x3d7d06))==null?void 0x0:_0x5ea31a[_0x5f7ce0(0x1e5)]();return(_0x89935d==null?void 0x0:_0x89935d[_0x5f7ce0(0x28f)](_0x184c0a=>a[_0x5f7ce0(0x3cc)]['contains'](_0x184c0a,_0x322d0d)))||_0x322d0d;}[_0x3c5b5e(0x250)](){const _0x26232e=_0x3c5b5e,_0x257600=new a[(_0x26232e(0x1a8))](),_0x1055e7=gt(),_0x105241=()=>{const _0xa55dad=_0x26232e;_0x257600['dispose']();const _0x220bfc=(_0x49dd1a,_0x2a8482,_0x3b9345,_0x16a954)=>{const _0x3b82d5=_0x4dd1;let _0x5535c3=[];switch(_0x49dd1a['id']){case g[_0x3b82d5(0x2ab)][_0x3b82d5(0x3b5)]:{_0x5535c3=g[_0x3b82d5(0x361)](_0x49dd1a,_0x16a954);break;}case g[_0x3b82d5(0x2ab)][_0x3b82d5(0x166)]:{_0x5535c3=g['handleDeleteRangeMoveUp'](_0x49dd1a,_0x16a954);break;}case g[_0x3b82d5(0x2ab)]['InsertColCommandId']:{_0x5535c3=g[_0x3b82d5(0x324)](_0x49dd1a,_0x16a954);break;}case g[_0x3b82d5(0x2ab)][_0x3b82d5(0x1d4)]:{_0x5535c3=g[_0x3b82d5(0x1dc)](_0x49dd1a,_0x16a954);break;}case g[_0x3b82d5(0x2ab)][_0x3b82d5(0x26d)]:{_0x5535c3=g['handleInsertRangeMoveRight'](_0x49dd1a,_0x16a954);break;}case g['EffectRefRangId'][_0x3b82d5(0x36d)]:{_0x5535c3=g[_0x3b82d5(0x248)](_0x49dd1a,_0x16a954);break;}case g[_0x3b82d5(0x2ab)]['MoveRangeCommandId']:{_0x5535c3=g[_0x3b82d5(0x295)](_0x49dd1a,_0x16a954);break;}case g[_0x3b82d5(0x2ab)]['RemoveColCommandId']:{_0x5535c3=g['handleIRemoveCol'](_0x49dd1a,_0x16a954);break;}case g[_0x3b82d5(0x2ab)][_0x3b82d5(0x2f6)]:{_0x5535c3=g['handleIRemoveRow'](_0x49dd1a,_0x16a954);break;}}const _0x146f13=g[_0x3b82d5(0x1c3)](_0x5535c3,_0x16a954),_0x1a2920=this[_0x3b82d5(0x358)][_0x3b82d5(0x1a0)](_0x2a8482);if(_0x1a2920&&_0x146f13){const _0x5817e7={..._0x1a2920,'range':_0x146f13};this[_0x3b82d5(0x358)][_0x3b82d5(0x39b)](_0x2a8482,_0x5817e7),_0x1055e7(()=>{const _0x4b8d77=_0x3b82d5,_0x34efbf=this[_0x4b8d77(0x3e8)][_0x4b8d77(0x175)](_0x146f13,_0x160103=>(_0x34efbf[_0x4b8d77(0x1f3)](),_0x220bfc(_0x160103,_0x2a8482,_0x3b9345,_0x146f13)));_0x257600['add'](_0x34efbf);});}return{'redos':[],'undos':[]};};this[_0xa55dad(0x358)][_0xa55dad(0x1bb)]((_0x3baa21,_0x2dde59)=>{const _0x2f06c7=_0xa55dad,{range:_0xe2364c,sheetID:_0x59cdfc}=_0x3baa21,_0x3f9c50=this['_refRangeService'][_0x2f06c7(0x175)](_0xe2364c,_0x83b703=>(_0x3f9c50[_0x2f06c7(0x1f3)](),_0x220bfc(_0x83b703,_0x2dde59,_0x59cdfc,_0xe2364c)));_0x257600[_0x2f06c7(0x1fd)](_0x3f9c50);});};this[_0x26232e(0x203)](a[_0x26232e(0x275)](this[_0x26232e(0x222)][_0x26232e(0x257)](()=>{_0x105241();})));}[_0x3c5b5e(0x25d)](){const _0xa2e6e0=_0x3c5b5e;var _0x442f0b,_0x3c3867;if(this['_online']=!0x0,((_0x442f0b=this[_0xa2e6e0(0x2c9)]['getFocusedUnit']())==null?void 0x0:_0x442f0b[_0xa2e6e0(0x279)]())!==this[_0xa2e6e0(0x1c5)])return;const _0x375d9d=(_0x3c3867=this[_0xa2e6e0(0x25b)]['get'](g[_0xa2e6e0(0x2be)])['getCurrentSelections']())==null?void 0x0:_0x3c3867[0x0],_0x2dc1b2=this[_0xa2e6e0(0x2c9)][_0xa2e6e0(0x3b9)](a[_0xa2e6e0(0x258)][_0xa2e6e0(0x227)])['getActiveSheet']();_0x375d9d&&_0x2dc1b2&&this['_updateLocalCursor'](_0x2dc1b2[_0xa2e6e0(0x23b)](),_0x375d9d);}[_0x3c5b5e(0x20f)](){const _0x11120b=_0x3c5b5e;this[_0x11120b(0x20b)]=!0x1;}};me=dt([w(0x2,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x20e)])),w(0x3,a['Inject'](Te)),w(0x4,a[_0x3c5b5e(0x2dc)](u[_0x3c5b5e(0x2a2)])),w(0x5,a[_0x3c5b5e(0x26a)]),w(0x6,a[_0x3c5b5e(0x293)]),w(0x7,a[_0x3c5b5e(0x2dc)](g[_0x3c5b5e(0x3b3)]))],me);var vt=Object[_0x3c5b5e(0x2ee)],Et=(_0x2b94d6,_0x172b5b,_0x1938b9,_0x358bf9)=>{const _0x51d268=_0x3c5b5e;for(var _0x5d4275=_0x358bf9>0x1?void 0x0:_0x358bf9?vt(_0x172b5b,_0x1938b9):_0x172b5b,_0xfb4d9f=_0x2b94d6[_0x51d268(0x232)]-0x1,_0x4efebd;_0xfb4d9f>=0x0;_0xfb4d9f--)(_0x4efebd=_0x2b94d6[_0xfb4d9f])&&(_0x5d4275=_0x4efebd(_0x5d4275)||_0x5d4275);return _0x5d4275;},oe=(_0x2547fc,_0x1419a5)=>(_0x1fbd5a,_0x21ab04)=>_0x1419a5(_0x1fbd5a,_0x21ab04,_0x2547fc);let B=class extends a['RxDisposable']{constructor(_0x55a8a4,_0x2f2cb5,_0xd496a9){const _0x31382a=_0x3c5b5e;super(),_(this,_0x31382a(0x3e4),new Map()),_(this,_0x31382a(0x37f),new I[(_0x31382a(0x36a))]()),(this[_0x31382a(0x2c9)]=_0x55a8a4,this[_0x31382a(0x25b)]=_0x2f2cb5,this[_0x31382a(0x16f)]=_0xd496a9,this[_0x31382a(0x3c8)]());}[_0x3c5b5e(0x1f3)](){const _0x383cb0=_0x3c5b5e;super[_0x383cb0(0x1f3)](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0xcfc398=>_0xcfc398['dispose']());}[_0x3c5b5e(0x350)](_0x3c089e){const _0x375c8b=_0x3c5b5e;return this[_0x375c8b(0x3e4)]['has'](_0x3c089e)?this[_0x375c8b(0x3e4)]['get'](_0x3c089e)[_0x375c8b(0x317)]:this[_0x375c8b(0x37f)][_0x375c8b(0x38e)](I[_0x375c8b(0x264)](_0x48580e=>_0x48580e['unitID']===_0x3c089e),I[_0x375c8b(0x14a)](_0x30927e=>_0x30927e[_0x375c8b(0x317)]));}['_init'](){const _0x56ee63=_0x3c5b5e;this[_0x56ee63(0x2c9)][_0x56ee63(0x1a5)](a[_0x56ee63(0x258)]['UNIVER_SHEET'])[_0x56ee63(0x38e)](I['takeUntil'](this[_0x56ee63(0x193)]))[_0x56ee63(0x257)](async _0x563ace=>{const _0x3f0b48=_0x56ee63,_0x4dc7ef=_0x563ace[_0x3f0b48(0x279)](),_0x292d9e=await this['_startSheetCollabCursor'](_0x4dc7ef);this[_0x3f0b48(0x37f)]['next'](_0x292d9e),this[_0x3f0b48(0x3e4)][_0x3f0b48(0x39b)](_0x4dc7ef,_0x292d9e);}),this[_0x56ee63(0x2c9)][_0x56ee63(0x1a5)](a[_0x56ee63(0x258)]['UNIVER_DOC'])[_0x56ee63(0x38e)](I[_0x56ee63(0x1af)](this['dispose$']))[_0x56ee63(0x38e)](I['filter'](_0x3b7c69=>!_0x3b7c69[_0x56ee63(0x279)]()[_0x56ee63(0x300)]('__')))[_0x56ee63(0x257)](async _0x24f404=>{const _0x3e87e7=_0x56ee63,_0x432e0d=_0x24f404['getUnitId'](),_0x448fe7=await this[_0x3e87e7(0x3c2)](_0x432e0d);this[_0x3e87e7(0x37f)]['next'](_0x448fe7),this[_0x3e87e7(0x3e4)][_0x3e87e7(0x39b)](_0x432e0d,_0x448fe7);}),I['merge'](this[_0x56ee63(0x2c9)][_0x56ee63(0x21c)](a[_0x56ee63(0x258)][_0x56ee63(0x259)]),this[_0x56ee63(0x2c9)][_0x56ee63(0x21c)](a[_0x56ee63(0x258)][_0x56ee63(0x227)]))['pipe'](I[_0x56ee63(0x1af)](this[_0x56ee63(0x193)]))[_0x56ee63(0x257)](_0x4573a0=>{const _0x27efb7=_0x56ee63,_0x5a3607=_0x4573a0[_0x27efb7(0x279)](),_0x501f4e=this[_0x27efb7(0x3e4)]['get'](_0x5a3607);_0x501f4e&&(_0x501f4e['dispose'](),this[_0x27efb7(0x3e4)][_0x27efb7(0x263)](_0x5a3607));});}async[_0x3c5b5e(0x19c)](_0x1007e4){const _0x55e2cd=_0x3c5b5e,_0x555438=await this['_collabSessionService'][_0x55e2cd(0x23d)](_0x1007e4),_0x291e13=this['_injector'][_0x55e2cd(0x2bd)](me,_0x1007e4,_0x555438);return _0x291e13['init'](),_0x291e13;}async[_0x3c5b5e(0x3c2)](_0x4499d5){const _0x5f20e4=_0x3c5b5e,_0x27a466=await this[_0x5f20e4(0x16f)]['requireSession'](_0x4499d5),_0x385c99=this['_injector'][_0x5f20e4(0x2bd)](fe,_0x4499d5,_0x27a466);return _0x385c99[_0x5f20e4(0x3b7)](),_0x385c99;}};B=Et([oe(0x0,a[_0x3c5b5e(0x26a)]),oe(0x1,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x20e)])),oe(0x2,a[_0x3c5b5e(0x2dc)](u[_0x3c5b5e(0x173)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function pt(_0x384c01,_0x4b24bb){const _0x518348=_0x3c5b5e;let {radius:_0x138b0b,width:_0x4a0bfb,height:_0x558e42}=_0x4b24bb;_0x138b0b=_0x138b0b!=null?_0x138b0b:0x0,_0x4a0bfb=_0x4a0bfb!=null?_0x4a0bfb:0x1e,_0x558e42=_0x558e42!=null?_0x558e42:0x1e;let _0x481f70=0x0,_0x1f5e2d=0x0,_0x56024f=0x0;_0x481f70=_0x1f5e2d=_0x56024f=Math[_0x518348(0x304)](_0x138b0b,_0x4a0bfb/0x2,_0x558e42/0x2),_0x384c01['beginPath'](),_0x384c01[_0x518348(0x2aa)](_0x481f70,0x0),_0x384c01[_0x518348(0x3cf)](_0x4a0bfb-_0x1f5e2d,0x0),_0x384c01[_0x518348(0x27a)](_0x4a0bfb-_0x1f5e2d,_0x1f5e2d,_0x1f5e2d,Math['PI']*0x3/0x2,0x0,!0x1),_0x384c01[_0x518348(0x3cf)](_0x4a0bfb,_0x558e42-_0x56024f),_0x384c01[_0x518348(0x27a)](_0x4a0bfb-_0x56024f,_0x558e42-_0x56024f,_0x56024f,0x0,Math['PI']/0x2,!0x1),_0x384c01['lineTo'](0x0,_0x558e42),_0x384c01[_0x518348(0x3cf)](0x0,_0x481f70),_0x384c01[_0x518348(0x27a)](_0x481f70,_0x481f70,_0x481f70,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x384c01[_0x518348(0x328)](),_0x4b24bb[_0x518348(0x3ee)]&&(_0x384c01['save'](),_0x384c01[_0x518348(0x34c)]=_0x4b24bb[_0x518348(0x3ee)],_0x4b24bb[_0x518348(0x178)]===_0x518348(0x1b5)?_0x384c01[_0x518348(0x3ee)](_0x518348(0x1b5)):_0x384c01[_0x518348(0x3ee)](),_0x384c01[_0x518348(0x340)]());}class ie extends C[_0x3c5b5e(0x1db)]{constructor(_0x1b4502,_0x353cba){const _0x4418e8=_0x3c5b5e;super(_0x1b4502,_0x353cba),_(this,_0x4418e8(0x18f)),_(this,'text'),(this[_0x4418e8(0x18f)]=_0x353cba==null?void 0x0:_0x353cba[_0x4418e8(0x18f)],this[_0x4418e8(0x202)]=_0x353cba==null?void 0x0:_0x353cba[_0x4418e8(0x202)]);}static[_0x3c5b5e(0x25a)](_0x2f4e43,_0x3461b6){const _0x22d0c7=_0x3c5b5e,{text:_0x340c9d,color:_0x1d373e}=_0x3461b6;_0x2f4e43['save'](),_0x2f4e43[_0x22d0c7(0x2b5)]=_0x22d0c7(0x2f0);const _0x47b2b6=_0x2f4e43[_0x22d0c7(0x187)](_0x340c9d)['width'],_0x475b7d=Math['min'](_0x47b2b6+0x2*ae,De);pt(_0x2f4e43,{'height':X,'radius':0x4,'width':_0x475b7d,'fill':_0x1d373e}),_0x2f4e43[_0x22d0c7(0x34c)]='#FFF';const _0x3ac567=ae,_0x940933=X-Ct,_0x3727d7=De-0x2*ae;if(_0x47b2b6>_0x3727d7){let _0x50de49='',_0x15a6d=0x0;for(const _0x23f13c of _0x340c9d){const _0x661914=_0x2f4e43['measureText'](_0x23f13c)[_0x22d0c7(0x345)];if(_0x15a6d+_0x661914<=_0x3727d7-_0x2f4e43[_0x22d0c7(0x187)](_0x22d0c7(0x3ba))[_0x22d0c7(0x345)])_0x50de49+=_0x23f13c,_0x15a6d+=_0x661914;else{_0x50de49+=_0x22d0c7(0x3ba);break;}}_0x2f4e43[_0x22d0c7(0x339)](_0x50de49,_0x3ac567,_0x940933);}else _0x2f4e43[_0x22d0c7(0x339)](_0x340c9d,_0x3ac567,_0x940933);_0x2f4e43['restore']();}[_0x3c5b5e(0x371)](_0x2fbdf8){const _0x147ee2=_0x3c5b5e;ie[_0x147ee2(0x25a)](_0x2fbdf8,this);}}const ce=_0x3c5b5e(0x35b),Tt=_0x3c5b5e(0x35d),Ot=_0x3c5b5e(0x1e2),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x3c5b5e(0x35e);class Ne{constructor(_0x39470d,_0x6bdf1,_0x278124,_0x3b7aca){const _0xe1a930=_0x3c5b5e;_(this,_0xe1a930(0x190),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0xe1a930(0x15f),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this['_cursor']=_0x39470d,this[_0xe1a930(0x1d2)]=_0x6bdf1,this[_0xe1a930(0x38f)]=_0x278124,this[_0xe1a930(0x3d5)]=_0x3b7aca,this[_0xe1a930(0x3a6)]());}set[_0x3c5b5e(0x188)](_0x397ff5){const _0x2d124c=_0x3c5b5e;_0x397ff5?(this[_0x2d124c(0x15f)]&&this[_0x2d124c(0x15f)]['hide'](),this[_0x2d124c(0x164)]&&this['_textBubble'][_0x2d124c(0x1bc)]()):(this['_anchorDot']&&this[_0x2d124c(0x15f)][_0x2d124c(0x1bc)](),this[_0x2d124c(0x164)]&&this[_0x2d124c(0x164)][_0x2d124c(0x352)]());}['dispose'](){const _0x2a583f=_0x3c5b5e;for(const _0x93c882 of this['_shapes'])_0x93c882[_0x2a583f(0x1f3)]();this[_0x2a583f(0x164)]&&this[_0x2a583f(0x164)][_0x2a583f(0x1f3)](),this[_0x2a583f(0x15f)]&&this[_0x2a583f(0x15f)][_0x2a583f(0x1f3)](),this['_anchor']&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0x2a583f(0x1a2)]();}[_0x3c5b5e(0x3a6)](){const _0x5650d9=_0x3c5b5e;var _0x50383b;const {_docSkeleton:_0x5a063a,_document:_0x1b0129}=this,{color:_0x5a2ab3,name:_0x4f4572,ranges:_0x45a807}=this['_cursor'],_0x29c8a7=_0x1b0129[_0x5650d9(0x22c)](),{docsLeft:_0x33cc9c,docsTop:_0x15ed0f}=_0x29c8a7,_0x54f7ca=new p[(_0x5650d9(0x321))](_0x29c8a7,_0x5a063a);for(const {startOffset:_0x21d693,endOffset:_0x3e8e10,rangeType:_0x3de34a,segmentId:_0x1215fa,segmentPage:_0x158cc4,collapsed:_0x5ad7ee,isActive:_0xba81ff}of _0x45a807){const _0x3b54b5=_0x5a063a[_0x5650d9(0x36c)](_0x21d693,!0x0,_0x1215fa,_0x158cc4);let _0x27ca0d=_0x5a063a['findNodePositionByCharIndex'](_0x3e8e10,!0x0,_0x1215fa,_0x158cc4);if(_0x27ca0d==null&&(_0x27ca0d=_0x5a063a[_0x5650d9(0x36c)](_0x3e8e10-0x1,!0x1,_0x1215fa,_0x158cc4)),_0xba81ff){const {contentBoxPointGroup:_0x208337}=_0x54f7ca['getRangePointData'](_0x27ca0d,_0x27ca0d);if(_0x208337['length']===0x0)continue;this[_0x5650d9(0x395)](_0x5a2ab3,_0x208337,_0x33cc9c,_0x15ed0f,_0x4f4572),this[_0x5650d9(0x1a2)]=this[_0x5650d9(0x311)]();}if(_0x3b54b5&&_0x27ca0d){if(_0x3de34a===a['DOC_RANGE_TYPE'][_0x5650d9(0x3aa)]){const _0x156e60=new p[(_0x5650d9(0x163))](_0x29c8a7,_0x5a063a),{pointGroup:_0x42a2f5}=(_0x50383b=_0x156e60[_0x5650d9(0x267)](_0x3b54b5,_0x27ca0d))!=null?_0x50383b:{};if(_0x42a2f5==null||_0x42a2f5['length']===0x0)continue;this[_0x5650d9(0x392)](_0x5a2ab3,_0x42a2f5,_0x33cc9c,_0x15ed0f);}else{if(!_0x5ad7ee){const {borderBoxPointGroup:_0x55ba76}=_0x54f7ca[_0x5650d9(0x267)](_0x3b54b5,_0x27ca0d);if(_0x55ba76[_0x5650d9(0x232)]===0x0)continue;this['_drawTextRange'](_0x5a2ab3,_0x55ba76,_0x33cc9c,_0x15ed0f);}}}}}[_0x3c5b5e(0x395)](_0x565844,_0x38d328,_0x1538d7,_0x4279f0,_0x5a9e73){const _0x32349b=_0x3c5b5e,_0x9803e=this[_0x32349b(0x197)](_0x38d328),{left:_0x17650d,top:_0x25c12a,height:_0x24b717}=_0x9803e,_0x45d7e0=this[_0x32349b(0x183)](),_0x35c270=bt/_0x45d7e0,_0xab0591=new C['Rect'](ce+a[_0x32349b(0x3d4)](Y),{'left':_0x17650d+_0x1538d7-_0x35c270,'top':_0x25c12a+_0x4279f0,'height':_0x24b717,'width':Rt,'fill':_0x565844||C[_0x32349b(0x13c)](a[_0x32349b(0x158)][_0x32349b(0x180)],0x0),'strokeWidth':_0x35c270,'stroke':Dt,'evented':!0x0});this['_anchor']=_0xab0591,this['_scene'][_0x32349b(0x215)](_0xab0591,p[_0x32349b(0x341)]);const _0x302bf3=new C['Rect'](ce+a[_0x32349b(0x3d4)](Y),{'left':_0x17650d+_0x1538d7-_0x35c270,'top':_0x25c12a+_0x4279f0-le/0x2,'height':le,'width':le,'fill':_0x565844||C[_0x32349b(0x13c)](a[_0x32349b(0x158)][_0x32349b(0x180)],0x0),'strokeWidth':0x0,'stroke':_0x565844||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x32349b(0x15f)]=_0x302bf3,this[_0x32349b(0x1d2)]['addObject'](_0x302bf3,p[_0x32349b(0x341)]);const _0x292e59=new ie(ce+a[_0x32349b(0x3d4)](Y),{'left':_0x17650d+_0x1538d7-_0x35c270,'top':_0x25c12a+_0x4279f0-X,'text':_0x5a9e73,'color':_0x565844});this[_0x32349b(0x164)]=_0x292e59,this[_0x32349b(0x1d2)][_0x32349b(0x215)](_0x292e59,p['TEXT_RANGE_LAYER_INDEX']),this[_0x32349b(0x188)]=!0x1;}[_0x3c5b5e(0x311)](){const _0x4bb272=_0x3c5b5e,_0x4282da=this[_0x4bb272(0x226)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x51df2e=this[_0x4bb272(0x226)]['onPointerLeave$'][_0x4bb272(0x3dd)](()=>{const _0x466635=_0x4bb272;this[_0x466635(0x240)]&&clearTimeout(this['_hideTimer']),this[_0x466635(0x240)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x56a356=_0x4bb272;_0x4282da[_0x56a356(0x19b)](),_0x51df2e['unsubscribe']();};}[_0x3c5b5e(0x3da)](_0x2cf549,_0x3aa8c2,_0x45a906,_0x42b085){const _0x382c85=_0x3c5b5e,_0xf8c19=new a[(_0x382c85(0x3ed))](_0x2cf549)[_0x382c85(0x1d6)](0.2)['toRgbString'](),_0x19db23=new C[(_0x382c85(0x2c6))](Tt+a[_0x382c85(0x3d4)](Y),{'pointsGroup':_0x3aa8c2,'fill':_0xf8c19||C[_0x382c85(0x13c)](a[_0x382c85(0x158)]['black'],0.2),'left':_0x45a906,'top':_0x42b085,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x382c85(0x190)][_0x382c85(0x2cc)](_0x19db23),this[_0x382c85(0x1d2)][_0x382c85(0x215)](_0x19db23,p[_0x382c85(0x341)]);}[_0x3c5b5e(0x392)](_0x3d9417,_0x2f7b4e,_0x8d9d57,_0x157dd2){const _0x5ac9a3=_0x3c5b5e,_0x28da69=new a['ColorKit'](_0x3d9417)[_0x5ac9a3(0x1d6)](0.2)['toRgbString'](),_0x908091=new C[(_0x5ac9a3(0x2c6))](Ot+a[_0x5ac9a3(0x3d4)](Y),{'pointsGroup':_0x2f7b4e,'fill':_0x28da69||C[_0x5ac9a3(0x13c)](a[_0x5ac9a3(0x158)][_0x5ac9a3(0x180)],0.2),'left':_0x8d9d57,'top':_0x157dd2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5ac9a3(0x190)][_0x5ac9a3(0x2cc)](_0x908091),this['_scene'][_0x5ac9a3(0x215)](_0x908091,p['TEXT_RANGE_LAYER_INDEX']);}[_0x3c5b5e(0x197)](_0x2516cb){const _0x1256db=_0x2516cb[0x0],_0x235e05=_0x1256db[0x0],_0x2357b1=_0x1256db[0x2],{x:_0x4405ad,y:_0x546e81}=_0x235e05,{x:_0x4979f9,y:_0x1e59d2}=_0x2357b1;return{'left':_0x4405ad,'top':_0x546e81,'width':_0x4979f9-_0x4405ad,'height':_0x1e59d2-_0x546e81};}[_0x3c5b5e(0x183)](){const _0x245f24=_0x3c5b5e,{scaleX:_0x574666,scaleY:_0x135aec}=this[_0x245f24(0x1d2)][_0x245f24(0x196)]();return Math['max'](_0x574666,_0x135aec);}}var Nt=Object[_0x3c5b5e(0x2ee)],Ut=(_0xe814d3,_0x17617b,_0x24219b,_0x17c75a)=>{const _0x21bd4e=_0x3c5b5e;for(var _0xce311f=_0x17c75a>0x1?void 0x0:_0x17c75a?Nt(_0x17617b,_0x24219b):_0x17617b,_0x2cb12b=_0xe814d3[_0x21bd4e(0x232)]-0x1,_0x5e0d5a;_0x2cb12b>=0x0;_0x2cb12b--)(_0x5e0d5a=_0xe814d3[_0x2cb12b])&&(_0xce311f=_0x5e0d5a(_0xce311f)||_0xce311f);return _0xce311f;},q=(_0x4740ff,_0x23d644)=>(_0x42472c,_0x1dacce)=>_0x23d644(_0x42472c,_0x1dacce,_0x4740ff);let ge=class extends a[_0x3c5b5e(0x286)]{constructor(_0x17de2b,_0x48a71a,_0x53bfa8,_0x513899,_0xe1c304){const _0x55efa0=_0x3c5b5e;super(),_(this,_0x55efa0(0x2ae),[]),_(this,'_cursors',[]),(this[_0x55efa0(0x3a5)]=_0x17de2b,this[_0x55efa0(0x16d)]=_0x48a71a,this[_0x55efa0(0x19d)]=_0x53bfa8,this[_0x55efa0(0x2d7)]=_0x513899,this[_0x55efa0(0x3d0)]=_0xe1c304,this[_0x55efa0(0x3c8)]());}['_init'](){const _0x20a392=_0x3c5b5e,_0xf49d97=this[_0x20a392(0x3a5)][_0x20a392(0x1f2)],_0x33d993=this[_0x20a392(0x16d)];this['disposeWithMe'](I[_0x20a392(0x379)]([this['_collabCursorController'][_0x20a392(0x350)](_0xf49d97),this['_themeService'][_0x20a392(0x236)]])[_0x20a392(0x38e)]($[_0x20a392(0x375)](([_0x34966a,_0x3096dc])=>({'skeleton':_0x33d993['getSkeleton'](),'cursors':[..._0x34966a[_0x20a392(0x2a3)]()][_0x20a392(0x1cc)](_0x570512=>({..._0x570512,'color':this[_0x20a392(0x3d0)][_0x20a392(0x349)](_0x570512[_0x20a392(0x18f)])}))})))[_0x20a392(0x257)](_0x95ddd9=>{const _0x157f56=_0x20a392;if(this[_0x157f56(0x17a)](),_0x95ddd9){const {skeleton:_0x152cd2,cursors:_0xd45171}=_0x95ddd9;this['_updateCollabCursors'](_0x152cd2,_0xd45171);}})),this[_0x20a392(0x29b)](),this[_0x20a392(0x27f)]();}[_0x3c5b5e(0x1df)](_0x523201,_0x2a1a58){const _0xe1bca8=_0x3c5b5e,{scene:_0x4ce906,mainComponent:_0xc37096}=this[_0xe1bca8(0x3a5)],_0x22c561=_0x2a1a58['map'](_0x2e0519=>new Ne(_0x2e0519,_0x4ce906,_0x523201,_0xc37096));this[_0xe1bca8(0x2ae)]=_0x22c561,this[_0xe1bca8(0x2ad)]=_0x2a1a58;}[_0x3c5b5e(0x150)](){const _0x574f45=_0x3c5b5e;this['_removeCollabCursors']();const {scene:_0x4d42b4,mainComponent:_0x164b16}=this['_context'],_0x53ad12=this[_0x574f45(0x16d)][_0x574f45(0x145)](),_0x3f95c9=this[_0x574f45(0x2ad)][_0x574f45(0x375)](_0x51fe15=>new Ne(_0x51fe15,_0x4d42b4,_0x53ad12,_0x164b16));this[_0x574f45(0x2ae)]=_0x3f95c9;}['_removeCollabCursors'](){const _0xcc0c37=_0x3c5b5e;this['_cursorShapes'][_0xcc0c37(0x1bb)](_0x71a8c4=>_0x71a8c4[_0xcc0c37(0x1f3)]()),this['_cursorShapes']=[];}[_0x3c5b5e(0x27f)](){const _0x125633=_0x3c5b5e,_0x2cd03a=[p['SetDocZoomRatioOperation']['id']];this[_0x125633(0x203)](this[_0x125633(0x2d7)][_0x125633(0x261)](_0x4b7a61=>{const _0x26abe4=_0x125633;_0x2cd03a['includes'](_0x4b7a61['id'])&&_0x4b7a61[_0x26abe4(0x3ce)][_0x26abe4(0x1f2)]===this[_0x26abe4(0x3a5)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3c5b5e(0x29b)](){const _0x35d7e7=_0x3c5b5e;this[_0x35d7e7(0x203)](a[_0x35d7e7(0x243)](this[_0x35d7e7(0x3a5)][_0x35d7e7(0x198)][_0x35d7e7(0x2df)])['pipe']($[_0x35d7e7(0x264)](_0x5b0220=>_0x5b0220[_0x35d7e7(0x29c)]===C[_0x35d7e7(0x1ce)][_0x35d7e7(0x1e6)]),$['throttleTime'](0x10))[_0x35d7e7(0x257)](()=>{const _0x2150f3=_0x35d7e7;this[_0x2150f3(0x150)]();}));}};ge=Ut([q(0x1,a['Inject'](W['DocSkeletonManagerService'])),q(0x2,a['Inject'](B)),q(0x3,a['ICommandService']),q(0x4,a['Inject'](a[_0x3c5b5e(0x1d1)]))],ge);function _0x2c72(){const _0x24301a=['getColorFromTheme','getCurrentRevOfUnit','IMessageService','fillStyle','_unitOnClients','on-line-icon_clip0_910_349','ACTIVE_UNIT_EVENT_CHANNEL','getCollabCursors$','setParam','hide','PY_RUNTIME_SCRIPT_ERROR','connectInjector','Error','[CollaborationDataLoaderController]','LICENSE_IMPORT_SIZE_EXCEEDED','cursorInfo','unload','debug','collab-text-anchor-','editingUnit','collab-text-range-','rgba(255,\x20255,\x20255,\x200.01)','_setupBeforeClosingHandler','158988inCTOc','handleDeleteRangeMoveLeft','SUCCESS','_configService','_initEvent','UniverIcon','_getSessionTicket','UNRECOGNIZED','unshift','selection','Subject','Tooltip','findNodePositionByCharIndex','InsertRowCommandId','ENSURE_SNAPSHOT_EXECUTION','CollaborationEvent','AWAITING_WITH_PENDING','_draw','249HqErnY','UniverCollaborationClientUIPlugin','sheetID','map','stringify','now','m1Prime','combineLatest','registerComponent','sessionStatus$','bottom','REDEMPTION_CODE_FULLY_REDEEMED','error','_entityInit$','clearInterval','memberID','collabStatus.syncing','permission.title','153EmwZCD','1070552AomOiY','round','_httpService','useObservable','[RemoteUniscriptService]:\x20no\x20focused\x20unit','APPLY_NON_SEQUENTIAL_REVISION','INVITE_CODE_ALREADY_BOUND','LICENSE_DISTRO_REJECTED','transformMutationsWithChangeset','pipe','_docSkeleton','getLocalCacheKey','replaceState','_drawRectRange','saveImage','_getSaveTimeout','_drawAnchor','complete','_handleLeaveEvent','APPLY_PERMISSION_DENIED','YUUMI_URL_COL_OUT_OF_RANGE','RichTextEditingMutation','set','_status$','YUUMI_ASYNCIO_CANCELLED','OTHER_CLIENTS_EDITING','with','mergeOverrideWithDependencies','string','_notificationService','ILogService','setItem','_context','_render','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_colorAssignService','backgroundColor','RECT','mask','DEFAULT_WS_SESSION_TICKET_URL','USERS_LEAVE','_checkAndWaitForCalculationPermission','yellow.400','defIds','_handleEvent','INVITE_CODE_HAS_BEEN_UES','RefRangeService','getActiveSheet','DeleteRangeMoveLeftCommandId','eventID','init','_saveCache','getCurrentUnitForType','...','_transformService','functionsExecutedState','getViewport','isFormulaId','some','_docTransformStateCacheService','IURLService','_startDocCollabCursor','OFFLINE','SNAPSHOT_HAS_BEEN_REMOVED','_disabled','distinctUntilChanged','docStateChange$','_init','setInterval','getformulaLimitStatusUrl','NOT_COLLAB','Rectangle','INVALID_INVITE_CODE','params','lineTo','_themeService','CollaborationDataLoaderController','_docSyncEditingCollabCursorService','WebSocketService','generateRandomId','_document','ENTITLE_REPORT_LIMIT_EXCEED','BehaviorSubject','CommandType','_updateURLWithCurrentState','_drawTextRange','_onCursorDelete','getSheetBySheetId','subscribeEvent','SessionStatus','isTransformMutationsWithChangesetSuccess','_id','debounce','permission.content','registerRenderModule','_entities','YUUMI_ALL_TABLES_IS_INVALID','DependentOn','_handleHeartbeatEvent','_refRangeService','YUUMI_CONNECTOR_URL_NOT_FOUND','transformRemoteChangeset','searchParams','isFormulaString','ColorKit','fill','serializeRangeWithSheet','_name','unit','_cachedData','getColor','_unitStatus','random','SetTextSelectionsOperation','exhaustSavingTask','url(#$1','/universer-api/license/formula/limit/status','DesktopCollaborationStatusDisplayController','clipPath','getSkeleton','formula.calculation.started','actions','ONLINE','_applyCommand','switchMap','_hasFormulaInDirtyRanges','toString','FromArray','_localStorageService','_uiPartsService','_refreshCollabCursors','HEADER_MENU','_transformPreviousActiveRange','syncEditingCollabCursor','_initEntityListener','totalFormulasToCalculate','onPointerLeave$','IBeforeCloseService','COLORS','CHANGESET_REVISION_CONFILICT','key','urlChange$','JOIN_ROOM_FAILED','setShapeProps','name','_anchorDot','3812udfzhv','_ensureSubject','hovered','NodePositionConvertToRectRange','_textBubble','code','DeleteRangeMoveUpCommandId','Failed','ILocalStorageService','_handleJoinEvent','PENDING','collaboration.closeRoom','getCellMatrix','_docSkeletonManagerService','_startCalculationLimit','_collabSessionService','_selfUnitIDs','createElement','DocCollaborationEntity','CollaborationSessionService','_transformUndoRedoStack','registerRefRange','univer-flex\x20univer-items-center','off-line-icon_clip0_910_343','fillRule','_colorIndex','_removeCollabCursors','setStateCache','USER_NOT_FOUND','_backgroundColor','disposeUnit','setUndoRedoMutationParamsCache','black','CONFLICT','LICENSE_MAX_UNITS_EXCEEDED','_getScale','clearTimeout','storage','795790fOArVa','measureText','_hover','labelPosition','_checkCalculationAvailable','_hovered','startColumn','_imageIoService','session.will-retry','color','_shapes','stage','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','dispose$','_assignedColors','status$','getAncestorScale','_getAnchorBounding','engine','_send','getCurrent','unsubscribe','_startSheetCollabCursor','_collabCursorController','defineProperty','off-line-icon','get','onPointerMove$','_eventUnsubscribe','endColumn','IRemoteInstanceService','getTypeOfUnitAdded$','makeDirty','_getFormulaLimitStatus','DisposableCollection','entityInit$','_collaborationUIEventService','runId','_logService','YUUMI_SUBSCRIPTION_NOT_FOUND','post','takeUntil','replace','createIdentifier','jsx','url(#off-line-icon_clip0_910_343)','TOO_MANY_REQUESTS','evenodd','WECHAT_HAS_BEEN_BOUND','getUniverSheetInstance','onPointerEnter$','MessageType','getMemberID','forEach','show','transformStateCache','YUUMI_RATE_OVER_LIMIT','SheetSkeletonManagerService','div','Unknown\x20user','_labelPosition','runRefRangeMutations','setActiveRange','unitID','_collaborationController','substring','UnitStatus','currentColor','mutations','white','flatMap','collabStatus.synced','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_messageService','_docTransformSelectionsService','ThemeService','_scene','REDEMPTION_CODE_NOT_STARTED','InsertRangeMoveDownCommandId','subunit','setAlpha','green.600','CollaborationStatus','redoState','IConfigService','Shape','handleInsertRangeMoveDown','_color','loadUnit','_updateCollabCursors','focused$','DocSelectionManagerService','collab-rect-range-','DOC_RANGE_TYPE','asObservable','getMergeData','resize','from','REDEMPTION_CODE_INACTIVE','_range','getUnitStatus$','_localCacheService','ENTITLE_NEED_BILLING_ADDRESS','has','_pollingInterval','M0\x200H16V16H0z','imageSourceType','tag','unitId','dispose','isArray','addEventListener','sheetId','YUUMI_AI_RUN_FAILED','transformSelections','_setFormulaLimitStatus','OffLineIcon','entries','_renderManagerService','add','createSocket','session.connection-failed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','idSuffix','text','disposeWithMe','_beforeCloseService','body','_initDependencies','CollaborationSocketService','Warning','_urlService','assignAColorForMemberID','_online','svg','INVITE_CODE_REQUIRED','Injector','_toggleOffline','_currentUsage','deepClone','pushState','limitInfo','_heartbeatTimer','addObject','transform','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','FETCH_MISS','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','skeleton','CollaborationUIEventId','getTypeOfUnitDisposed$','ISocketService','NO_OTHER_CLIENTS_EDITING','/run/','LICENSE_EXPORT_SIZE_EXCEEDED','univer-mr-2\x20univer-flex\x20univer-text-xl','_cursorInfo$','APPLY_DUPLICATED','getValue','_showGuardMessage','_anchor','UNIVER_SHEET','includes','CURRENT_STATUS_CANNOT_OPERATE','setConfig','addClipboardHook','getOffsetConfig','LOCAL_CACHE_INTERVAL_KEY','send','REDEMPTION_INVALID_CODE','SetSelectionsOperation','column','length','_docTransformIMECacheService','INotificationService','LocaleService','currentTheme$','FormulaExecuteStageType','pluginName','releaseFormulaLimitUrl','startFormulaLimitUrl','getSheetId','LOGIN_TOKEN_PROCESSING_FAILED','requireSession','IRenderManagerService','location','_hideTimer','DataLoaderService','EMAIL_VERIFY_CODE_MISMATCH','fromEventSubject','isActive','attrs','BuiltInUIPart','getFocusedUnit','handleInsertRow','newValue','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','split','_releaseCalculationLimit','collaboration.single-unit.warning','parse','isTransformMutationFailure','_onRefRangeChange','getMember','_scheduleSaving','getSheetObject','setTimeout','SYNCED','SheetCollabCursorShape','subscribe','UniverInstanceType','UNIVER_DOC','drawWith','_injector','_instanceService','_toggleOnline','AUTHORIZE_CODE_ILLEGAL','49144OFSiem','m2Prime','onCommandExecuted','_localeService','delete','filter','getUndoRedoMutationParamsCache','TEXT','getRangePointData','onLocalMutation','_lastPointer','IUniverInstanceService','_taskIds','IUIPartsService','InsertRangeMoveRightCommandId','onStarting','addObjects','_sheetSkeletonManagerService','collaboration-client-ui.config','useCallback','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','_getMergeRange','toDisposable','Vector2','INTERNAL_ERROR','roomMembers$','getUnitId','arc','ERROR_AGAIN','USER_IS_ANONYMOUS','Module','univerjs-icon\x20univerjs-icon-','_initCommandExecutedListener','_docClipboardService','_removeClearOtherTimer','1em','none','collabCursorState$','isEditing','RxDisposable','CanceledError','row','removeParam','registerBeforeClose','YUUMI_UNABLE_LOAD_URL','result','invokeId','_onCursorUpdate','find','defs','Loading','height','ICommandService','MUTATION','handleMoveRange','EMAIL_HAS_BEEN_BOUND','6zeduzS','history','parseInt','getActiveRange','_initResize','type','OTHER_CLIENT_EDITING','debounceTime','_revisionService','SUBMIT_CHANGESET_TIMEOUT','useDependency','MemberService','values','RevisionService','size','_session','colorChannel1','clsx','_registerRenderDependencies','moveTo','EffectRefRangId','HTTPService','_cursors','_cursorShapes','LOGIN_FAILED','saveOfflineData','getDocRanges','_initStatusComponent','event$','MOBILE_VERIFY_CODE_MISMATCH','font','Tools','_registerDependencies','transformByState','saveTaskMap','roomMembers','INVALID_ARGUMENT','_clearPolling','createInstance','SheetsSelectionsService','onMouseMove','SetFormulaCalculationNotificationMutation','currentSkeleton$','ranges','textRanges','RemoteUniscriptService','getParam','RegularPolygon','_roomMembers$','getCellPositionByOffset','_univerInstanceService','on-line-icon','YUUMI_NO_CUBOID_FOR_QUESTION','push','getRenderById','fromEvent','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getStateCache','APPLY_REJECT','WebBrowserSingleActiveUnitService','session.collaboration-timeout','_updateLocalCursor','START_CALCULATION','purple.300','_commandService','_scheduleClearOtherTimer','REDEMPTION_USER_REDEEM_TIMES_EXCEED','updateOfflineData','73264MMPvxm','Inject','Optional','ENTITLE_CHAT_LIMIT_EXCEED','onTransformChange$','SetFormulaCalculationStartMutation','activeSheet$','Workbook','PAYMENT_CHANNEL_NOT_SUPPORT','ENTITLE_DUP_SUBSCRIPTION','getConfig','getItem','_lastResponseTimestamp','_clearOtherTimers','USER_NOT_INVITED_CODE','_initStatusListener','http://www.w3.org/2000/svg','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','triggerDblclick','getOwnPropertyDescriptor','sessionTicket','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','stageInfo','doc.mutation.rich-text-editing','_dataLoaderService','_createSocketURL','REDEMPTION_USER_NOT_ELIGIBLE','RemoveRowCommandId','/universer-api/license/formula/limit/start','_maxFormulaLimit','range','useRef','children','_collabCursorState$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','endRow','1139110aFJMly','startsWith','UNAUTHENTICATED','_getSheetObject','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','min','getVpScrollXYInfoByPosToVp','touchDependencies','displayName','collabStatus.conflict','_docStateChangeManagerService','_scheduleHeartbeat','_setupSubUnitSync','SNAPSHOT_INVALID_SNAPSHOT','_transformHistoryAndStateStack','getRelativeToViewportCoord','startRow','next','_handleHover','popstate','_memberService','href','mapTo','DocStateChangeManagerService','cursorInfo$','path','SetWorksheetActivateCommand','CLOSE_ROOM','IDocClipboardService','toStringTag','whenReady','Plugin','_config','getCoordByCell','NodePositionConvertToCursor','PERMISSION_DENIED','forwardRef','handleInsertCol','xlink:href','33ACNcLq','collab-client.tooltip.reconnect','closePath','BrowserCollaborationSocketService','ITransformService','wsSessionTicketUrl','getUnhiddenWorksheets','CollaborationController','url(#on-line-icon_clip0_910_349)','SOCKET_FAILED_RETRY','executeCommand','APPLY_REVISION_CONFILICT','_saveTaskMap','then','0\x200\x2017\x2016','ALREADY_EXISTS','blue.400','UPDATE_CURSOR','override','fillText','all','loadOfflineData','WebURLService','currentUsage','LOCAL_CACHE_INTERVAL','COMPLETION_FINISHED','restore','TEXT_RANGE_LAYER_INDEX','ILocalCacheService','Disposable','_updateSubUnitFromURLParams','width','transformMutation','DocIMEInputManagerService','data'];_0x2c72=function(){return _0x24301a;};return _0x2c72();}const Lt=0x1,Mt=1.5;class Be extends C['Shape']{constructor(_0x5e6cd1,_0x28e308){const _0x3e0ab1=_0x3c5b5e;super(_0x5e6cd1,_0x28e308),_(this,'_color'),_(this,_0x3e0ab1(0x18b),!0x1),_(this,_0x3e0ab1(0x1e9)),_(this,_0x3e0ab1(0x3f0),''),_(this,'_labelPosition','top'),_(this,'_backgroundColor'),(_0x28e308&&this['setShapeProps'](_0x28e308),this[_0x3e0ab1(0x1b8)][_0x3e0ab1(0x3dd)](()=>this[_0x3e0ab1(0x15d)]({'hovered':!0x0})),this[_0x3e0ab1(0x156)][_0x3e0ab1(0x3dd)](()=>this[_0x3e0ab1(0x15d)]({'hovered':!0x1})));}[_0x3c5b5e(0x15d)](_0x197150){const _0x488c9c=_0x3c5b5e;var _0x219d05,_0x42fbf8,_0x1f3d49,_0x1cb7cf,_0x3c846c,_0x36c5a2;this[_0x488c9c(0x1dd)]=(_0x219d05=_0x197150[_0x488c9c(0x18f)])!=null?_0x219d05:this['_color'],this[_0x488c9c(0x18b)]=(_0x42fbf8=_0x197150[_0x488c9c(0x162)])!=null?_0x42fbf8:this[_0x488c9c(0x18b)],this['_range']=(_0x1f3d49=_0x197150[_0x488c9c(0x2f9)])!=null?_0x1f3d49:this[_0x488c9c(0x1e9)],this[_0x488c9c(0x3f0)]=(_0x1cb7cf=_0x197150[_0x488c9c(0x15e)])!=null?_0x1cb7cf:this[_0x488c9c(0x3f0)],this['_labelPosition']=(_0x3c846c=_0x197150[_0x488c9c(0x189)])!=null?_0x3c846c:this[_0x488c9c(0x1c2)],this[_0x488c9c(0x17d)]=(_0x36c5a2=_0x197150[_0x488c9c(0x3a9)])!=null?_0x36c5a2:this[_0x488c9c(0x17d)],this[_0x488c9c(0x2b8)]({'width':_0x197150[_0x488c9c(0x345)],'height':_0x197150[_0x488c9c(0x292)]});}[_0x3c5b5e(0x2bf)](_0x4e863d){const _0x3c1ad0=_0x3c5b5e,{row:_0x242b93,column:_0x409b35}=_0x4e863d;if(_0x242b93>=this[_0x3c1ad0(0x1e9)]['startRow']&&_0x242b93<=this[_0x3c1ad0(0x1e9)][_0x3c1ad0(0x2fe)]&&_0x409b35>=this[_0x3c1ad0(0x1e9)]['startColumn']&&_0x409b35<=this[_0x3c1ad0(0x1e9)][_0x3c1ad0(0x1a3)]){this[_0x3c1ad0(0x15d)]({'hovered':!0x0});return;}this[_0x3c1ad0(0x15d)]({'hovered':!0x1});}[_0x3c5b5e(0x2ed)](_0x53c44a){return!0x1;}[_0x3c5b5e(0x371)](_0x1491fb){const _0x448816=_0x3c5b5e;C['Rect']['drawWith'](_0x1491fb,{'width':this['width'],'height':this[_0x448816(0x292)],'strokeWidth':Mt,'stroke':this[_0x448816(0x1dd)],'evented':!0x1,'fill':this[_0x448816(0x17d)]}),this['_hovered']&&(_0x1491fb['save'](),_0x1491fb[_0x448816(0x216)](0x1,0x0,0x0,0x1,this[_0x448816(0x345)],this['_labelPosition']===_0x448816(0x37c)?0x0:-X),ie[_0x448816(0x25a)](_0x1491fb,{'text':this[_0x448816(0x3f0)],'color':this[_0x448816(0x1dd)]}),_0x1491fb[_0x448816(0x340)]());}}var At=Object[_0x3c5b5e(0x2ee)],Pt=(_0xc43284,_0x51fb8e,_0x46d067,_0x2dd56f)=>{for(var _0x5d4ae0=_0x2dd56f>0x1?void 0x0:_0x2dd56f?At(_0x51fb8e,_0x46d067):_0x51fb8e,_0x4d6baf=_0xc43284['length']-0x1,_0x439778;_0x4d6baf>=0x0;_0x4d6baf--)(_0x439778=_0xc43284[_0x4d6baf])&&(_0x5d4ae0=_0x439778(_0x5d4ae0)||_0x5d4ae0);return _0x5d4ae0;},_e=(_0xd33012,_0x3e6c9f)=>(_0x2f44e3,_0x56e361)=>_0x3e6c9f(_0x2f44e3,_0x56e361,_0xd33012);const wt=0x1389;let ve=class extends a[_0x3c5b5e(0x286)]{constructor(_0x31760a,_0x3cc75f,_0x99fbe,_0x93e3c7){const _0x3492ab=_0x3c5b5e;super(),_(this,_0x3492ab(0x2ad),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x31760a,this[_0x3492ab(0x270)]=_0x3cc75f,this[_0x3492ab(0x19d)]=_0x99fbe,this[_0x3492ab(0x3d0)]=_0x93e3c7,this[_0x3492ab(0x3c8)]());}[_0x3c5b5e(0x3c8)](){const _0x30977e=_0x3c5b5e;this[_0x30977e(0x270)][_0x30977e(0x2c1)][_0x30977e(0x38e)]($[_0x30977e(0x1af)](this[_0x30977e(0x193)]),$['switchMap'](_0x22638a=>{const _0x5972f6=_0x30977e;if(_0x22638a){const _0x53237b=_0x22638a[_0x5972f6(0x1f6)];return I[_0x5972f6(0x379)](this[_0x5972f6(0x19d)]['getCollabCursors$'](this[_0x5972f6(0x3a5)][_0x5972f6(0x1f2)]),this[_0x5972f6(0x3d0)]['currentTheme$'])[_0x5972f6(0x38e)]($[_0x5972f6(0x375)](([_0x9b1f14,_0x1e3b19])=>{const _0x41a690=_0x5972f6,_0x4be71a=new Map();return _0x9b1f14[_0x41a690(0x1bb)]((_0x252d7f,_0x10e8e4)=>{const _0x4dd4de=_0x41a690;if(_0x252d7f[_0x4dd4de(0x374)]===_0x53237b){const _0xb10592={..._0x252d7f};_0xb10592[_0x4dd4de(0x18f)]=this[_0x4dd4de(0x3d0)]['getColorFromTheme'](_0x252d7f[_0x4dd4de(0x18f)]),_0x4be71a[_0x4dd4de(0x39b)](_0x10e8e4,_0xb10592);}}),{'skeleton':_0x22638a,'cursors':_0x4be71a};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x30977e(0x257)](({skeleton:_0x2a4290,cursors:_0x222865})=>{const _0x21b6ee=_0x30977e;this[_0x21b6ee(0x17a)](),_0x2a4290&&this[_0x21b6ee(0x1df)](_0x2a4290,_0x222865);}),this[_0x30977e(0x270)][_0x30977e(0x2c1)][_0x30977e(0x257)](_0x502853=>{const _0x3bd297=_0x30977e;if(_0x502853==null)return;const {skeleton:_0x57abfe}=_0x502853,{scene:_0x96f823}=this[_0x3bd297(0x3a5)];_0x96f823[_0x3bd297(0x1a1)][_0x3bd297(0x3dd)](a[_0x3bd297(0x3e1)](_0x17f8b5=>{const _0x27c1e3=_0x3bd297;var _0x20ed42,_0x3ff64b;const {offsetX:_0x1becf5,offsetY:_0x3b737f}=_0x17f8b5,{x:_0xb1ed54,y:_0x57dd87}=_0x96f823[_0x27c1e3(0x30e)](C[_0x27c1e3(0x276)][_0x27c1e3(0x14d)]([_0x1becf5,_0x3b737f])),{scaleX:_0x4ade1a,scaleY:_0x55dbdd}=_0x96f823[_0x27c1e3(0x196)](),_0x4d3c4b=_0x96f823[_0x27c1e3(0x3bd)](C['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x40071d=_0x96f823[_0x27c1e3(0x305)](C['Vector2'][_0x27c1e3(0x14d)]([_0xb1ed54,_0x57dd87]),_0x4d3c4b),_0x2d2966=_0x57abfe[_0x27c1e3(0x2c8)](_0x1becf5,_0x3b737f,_0x4ade1a,_0x55dbdd,_0x40071d);((_0x20ed42=this[_0x27c1e3(0x269)])==null?void 0x0:_0x20ed42[_0x27c1e3(0x231)])===_0x2d2966[_0x27c1e3(0x231)]&&((_0x3ff64b=this[_0x27c1e3(0x269)])==null?void 0x0:_0x3ff64b[_0x27c1e3(0x288)])===_0x2d2966[_0x27c1e3(0x288)]||this[_0x27c1e3(0x2ad)][_0x27c1e3(0x1bb)](_0x335ca2=>{const _0x3e8b3a=_0x27c1e3;_0x335ca2[_0x3e8b3a(0x2bf)](_0x2d2966);});},0x64));});}[_0x3c5b5e(0x1df)](_0x21f3d5,_0x500d2a){const _0x40ea87=_0x3c5b5e;var _0x9defd6;const _0x33693d=(_0x9defd6=this[_0x40ea87(0x270)][_0x40ea87(0x19a)]())==null?void 0x0:_0x9defd6[_0x40ea87(0x21a)];if(!_0x33693d)return;const _0x1a11f6=this['_getSheetObject']();if(!_0x1a11f6)return;this[_0x40ea87(0x2ad)][_0x40ea87(0x1bb)](_0x39a881=>{const _0x526fae=_0x40ea87;_0x39a881[_0x526fae(0x1a6)]();});const {scene:_0x257971}=_0x1a11f6,_0x1fa773=yt(Array[_0x40ea87(0x1e7)](_0x500d2a[_0x40ea87(0x2a3)]()))[_0x40ea87(0x375)](_0x456421=>{const _0x2eb716=_0x40ea87,{color:_0x499c04,range:_0x196085,name:_0x233c11,selection:_0x355685,sheetID:_0x28b3c6}=_0x456421,{startColumn:_0xfce0fa,startRow:_0x1a8dda,endColumn:_0x91dbb9,endRow:_0x31c1ec}=_0x196085,_0x2ccc3f=z['getCoordByCell'](_0x1a8dda,_0xfce0fa,_0x257971,_0x33693d),_0x3f1c74=z[_0x2eb716(0x320)](_0x31c1ec,_0x91dbb9,_0x257971,_0x33693d),{columnHeaderHeightAndMarginTop:_0x2c7e88}=_0x33693d,{startX:_0x163f73,startY:_0xace49b}=_0x2ccc3f,{endX:_0x2890b0,endY:_0x42ce2d}=_0x3f1c74,_0x3e1c23=_0x2890b0-_0x163f73,_0x180b3d=_0x42ce2d-_0xace49b,_0x50d9e8={'labelPosition':_0xace49b-_0x2c7e88>=X?'top':_0x2eb716(0x37c),'sheetID':_0x28b3c6,'range':_0x196085,'color':_0x499c04,'name':_0x233c11,'selection':_0x355685,'left':_0x163f73,'top':_0xace49b,'width':_0x3e1c23,'height':_0x180b3d,'evented':!0x1,'zIndex':wt};return new Be(_0x233c11,_0x50d9e8);});_0x257971[_0x40ea87(0x26f)](_0x1fa773,Lt),this[_0x40ea87(0x2ad)]=new Set(_0x1fa773);}[_0x3c5b5e(0x17a)](){const _0x1738f7=_0x3c5b5e;var _0x3ee72b;(_0x3ee72b=this[_0x1738f7(0x2ad)])==null||_0x3ee72b[_0x1738f7(0x1bb)](_0x1d643d=>_0x1d643d['dispose']());}[_0x3c5b5e(0x302)](){const _0x18c4db=_0x3c5b5e;return z[_0x18c4db(0x253)](this['_context']['unit'],this[_0x18c4db(0x3a5)]);}};ve=Pt([_e(0x1,a['Inject'](z[_0x3c5b5e(0x1bf)])),_e(0x2,a['Inject'](B)),_e(0x3,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x1d1)]))],ve);function _0x4dd1(_0x2310bd,_0x3fc292){const _0x2c72a8=_0x2c72();return _0x4dd1=function(_0x4dd143,_0x2d572f){_0x4dd143=_0x4dd143-0x13c;let _0x16f7b1=_0x2c72a8[_0x4dd143];return _0x16f7b1;},_0x4dd1(_0x2310bd,_0x3fc292);}function yt(_0x6321c9){const _0x17e6a7=_0x3c5b5e,_0x5591b0=new Map();return _0x6321c9[_0x17e6a7(0x1bb)](_0x20dd1e=>{const _0x144473=_0x17e6a7;if(_0x5591b0[_0x144473(0x1ed)](_0x20dd1e['selection'])){const _0x454851=_0x5591b0['get'](_0x20dd1e['selection']);_0x454851[_0x144473(0x15e)]+=',\x20'+_0x20dd1e[_0x144473(0x15e)];}else _0x5591b0[_0x144473(0x39b)](_0x20dd1e[_0x144473(0x369)],_0x20dd1e);}),Array[_0x17e6a7(0x1e7)](_0x5591b0[_0x17e6a7(0x2a3)]());}var $t=Object[_0x3c5b5e(0x2ee)],xt=(_0x177ea3,_0x25a037,_0x2d9be2,_0x1ad31c)=>{const _0x42fa68=_0x3c5b5e;for(var _0x50c801=_0x1ad31c>0x1?void 0x0:_0x1ad31c?$t(_0x25a037,_0x2d9be2):_0x25a037,_0x449f2b=_0x177ea3[_0x42fa68(0x232)]-0x1,_0x21254c;_0x449f2b>=0x0;_0x449f2b--)(_0x21254c=_0x177ea3[_0x449f2b])&&(_0x50c801=_0x21254c(_0x50c801)||_0x50c801);return _0x50c801;},y=(_0x350ce7,_0x2f4bfd)=>(_0x59a595,_0x134c3e)=>_0x2f4bfd(_0x59a595,_0x134c3e,_0x350ce7);let J=class extends a[_0x3c5b5e(0x343)]{constructor(_0x2ec2e8,_0x4166a0,_0x1e2a02,_0x5bdf40,_0x17e0eb,_0xac446){const _0x186252=_0x3c5b5e;super(),this['_beforeCloseService']=_0x2ec2e8,this[_0x186252(0x1eb)]=_0x4166a0,this[_0x186252(0x1aa)]=_0x1e2a02,this[_0x186252(0x1cf)]=_0x5bdf40,this['_notificationService']=_0x17e0eb,this[_0x186252(0x262)]=_0xac446,this[_0x186252(0x35f)](),this[_0x186252(0x364)]();}[_0x3c5b5e(0x35f)](){const _0x134aa2=_0x3c5b5e;this[_0x134aa2(0x203)](this[_0x134aa2(0x204)][_0x134aa2(0x28a)](()=>{const _0x369ae6=_0x134aa2;if(this[_0x369ae6(0x1eb)][_0x369ae6(0x2b9)][_0x369ae6(0x2a5)])return this[_0x369ae6(0x262)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3c5b5e(0x364)](){const _0x15a2fd=_0x3c5b5e;this[_0x15a2fd(0x203)](this[_0x15a2fd(0x1aa)]['event$'][_0x15a2fd(0x257)](_0xedd441=>{const _0x29aab8=_0x15a2fd;_0xedd441['id']===u[_0x29aab8(0x21b)][_0x29aab8(0x29d)]&&this['_messageService']['show']({'type':T[_0x29aab8(0x1b9)][_0x29aab8(0x208)],'content':this[_0x29aab8(0x262)]['t'](_0x29aab8(0x24d))}),_0xedd441['id']===u[_0x29aab8(0x21b)][_0x29aab8(0x31a)]&&this[_0x29aab8(0x1cf)][_0x29aab8(0x1bc)]({'type':T[_0x29aab8(0x1b9)][_0x29aab8(0x208)],'content':this[_0x29aab8(0x262)]['t'](_0x29aab8(0x16b))}),_0xedd441['id']===u['CollaborationUIEventId'][_0x29aab8(0x322)]&&this[_0x29aab8(0x3a2)][_0x29aab8(0x1bc)]({'title':this[_0x29aab8(0x262)]['t'](_0x29aab8(0x383)),'content':this[_0x29aab8(0x262)]['t'](_0x29aab8(0x3e2)),'type':'error','duration':0x0}),_0xedd441['id']===u[_0x29aab8(0x21b)][_0x29aab8(0x181)]&&this['_messageService'][_0x29aab8(0x1bc)]({'type':T[_0x29aab8(0x1b9)][_0x29aab8(0x355)],'content':this[_0x29aab8(0x262)]['t'](_0x29aab8(0x16b))+'('+_0xedd441[_0x29aab8(0x348)]+')'}),_0xedd441['id']===u[_0x29aab8(0x21b)][_0x29aab8(0x15c)]&&this[_0x29aab8(0x1cf)][_0x29aab8(0x1bc)]({'type':T[_0x29aab8(0x1b9)]['Warning'],'content':this[_0x29aab8(0x262)]['t'](_0xedd441['data']||'')}),_0xedd441['id']===u[_0x29aab8(0x21b)][_0x29aab8(0x32f)]&&this[_0x29aab8(0x1cf)]['show']({'type':T[_0x29aab8(0x1b9)][_0x29aab8(0x208)],'content':this['_localeService']['t'](_0x29aab8(0x18e))}),_0xedd441['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x29aab8(0x1bc)]({'type':T['MessageType']['Error'],'content':this[_0x29aab8(0x262)]['t'](_0x29aab8(0x1ff))}),_0xedd441['id']===u[_0x29aab8(0x21b)][_0x29aab8(0x2a0)]&&this[_0x29aab8(0x1cf)][_0x29aab8(0x1bc)]({'type':T[_0x29aab8(0x1b9)]['Error'],'content':this[_0x29aab8(0x262)]['t'](_0x29aab8(0x2d3))});}));}};J=xt([y(0x0,O[_0x3c5b5e(0x157)]),y(0x1,u[_0x3c5b5e(0x342)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x3c5b5e(0x34b)]),y(0x4,O[_0x3c5b5e(0x234)]),y(0x5,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x235)]))],J);const Bt=_0x3c5b5e(0x271),Ue={};var Ft=Object[_0x3c5b5e(0x2ee)],kt=(_0x272402,_0x23db6e,_0x9ec9f5,_0x37ec1d)=>{const _0x8e752=_0x3c5b5e;for(var _0x5a6bb5=_0x37ec1d>0x1?void 0x0:_0x37ec1d?Ft(_0x23db6e,_0x9ec9f5):_0x23db6e,_0x169805=_0x272402[_0x8e752(0x232)]-0x1,_0x2229ef;_0x169805>=0x0;_0x169805--)(_0x2229ef=_0x272402[_0x169805])&&(_0x5a6bb5=_0x2229ef(_0x5a6bb5)||_0x5a6bb5);return _0x5a6bb5;},Le=(_0x3458a4,_0x492a30)=>(_0xf1f44b,_0x8771f2)=>_0x492a30(_0xf1f44b,_0x8771f2,_0x3458a4);let Z=class{constructor(_0x3efc8f,_0x4f152e){const _0x3188f2=_0x3c5b5e;this[_0x3188f2(0x3bb)]=_0x3efc8f,this[_0x3188f2(0x1fc)]=_0x4f152e;}['transformIMECache'](_0x954d1){const _0xe7a088=_0x3c5b5e;this[_0xe7a088(0x174)](_0x954d1),this['_transformPreviousActiveRange'](_0x954d1);}[_0x3c5b5e(0x3ea)](_0x2b77c8){const _0x3812f7=_0x3c5b5e,{unitID:_0xb081b8}=_0x2b77c8,_0x10e520=this[_0x3812f7(0x1fc)][_0x3812f7(0x2cd)](_0xb081b8)[_0x3812f7(0x39f)](p[_0x3812f7(0x347)]),{redoCache:_0x2696b0}=_0x10e520['getUndoRedoMutationParamsCache']();if(_0x2696b0[_0x3812f7(0x232)]===0x0)return _0x2b77c8;let _0x3d4afe=a[_0x3812f7(0x2b6)]['deepClone'](_0x2b77c8['mutations'][0x0]);for(let _0x41f655=0x0;_0x41f655<_0x2696b0[_0x3812f7(0x232)];_0x41f655++){const _0x5bc690={'id':'doc.mutation.rich-text-editing','params':{..._0x2696b0[_0x41f655]}},_0x53c873=this[_0x3812f7(0x3bb)][_0x3812f7(0x346)](_0x3d4afe,_0x5bc690,!0x1);if(v[_0x3812f7(0x24f)](_0x53c873))throw _0x53c873[_0x3812f7(0x37e)];_0x3d4afe=_0x53c873[_0x3812f7(0x378)];}return{...a[_0x3812f7(0x2b6)]['deepClone'](_0x2b77c8),'mutations':[_0x3d4afe]};}[_0x3c5b5e(0x174)](_0x4ff010){const _0x4f379a=_0x3c5b5e,{unitID:_0x7ee421}=_0x4ff010,_0x19329d=this['_renderManagerService'][_0x4f379a(0x2cd)](_0x7ee421)[_0x4f379a(0x39f)](p[_0x4f379a(0x347)]),{undoCache:_0x4074e1,redoCache:_0x48843a}=_0x19329d[_0x4f379a(0x265)]();if(_0x4074e1[_0x4f379a(0x232)]===0x0||_0x48843a[_0x4f379a(0x232)]===0x0)return;const _0x24c247=[],_0x2e9e0c=[];let _0xc48185=a[_0x4f379a(0x2b6)]['deepClone'](_0x4ff010['mutations'][0x0]),_0x5abf0c=a['Tools'][_0x4f379a(0x211)](_0x4ff010[_0x4f379a(0x1ca)][0x0]);for(let _0x163952=_0x4074e1[_0x4f379a(0x232)]-0x1;_0x163952>=0x0;_0x163952--){const _0x2af524={'id':'doc.mutation.rich-text-editing','params':{..._0x4074e1[_0x163952]}},_0x5af45e={'id':_0x4f379a(0x2f2),'params':{..._0x48843a[_0x163952]}},_0x22bc11=this[_0x4f379a(0x3bb)]['transformMutation'](_0xc48185,_0x2af524,!0x1),_0x5241c2=this[_0x4f379a(0x3bb)][_0x4f379a(0x346)](_0x5abf0c,_0x5af45e,!0x1);if(v['isTransformMutationFailure'](_0x22bc11))throw _0x22bc11[_0x4f379a(0x37e)];if(v[_0x4f379a(0x24f)](_0x5241c2))throw _0x5241c2[_0x4f379a(0x37e)];_0x24c247[_0x4f379a(0x368)](_0x22bc11['m2Prime'][_0x4f379a(0x3ce)]),_0x2e9e0c['unshift'](_0x5241c2[_0x4f379a(0x260)]['params']),_0xc48185=_0x22bc11[_0x4f379a(0x378)],_0x5abf0c=_0x5241c2['m1Prime'];}_0x19329d[_0x4f379a(0x17f)]({'undoCache':_0x24c247,'redoCache':_0x2e9e0c});}[_0x3c5b5e(0x152)](_0x5511ae){const _0x45594d=_0x3c5b5e,{unitID:_0x155ddd}=_0x5511ae,_0x55a720=this['_renderManagerService'][_0x45594d(0x2cd)](_0x155ddd)[_0x45594d(0x39f)](p['DocIMEInputManagerService']),_0x50dc5f=_0x55a720[_0x45594d(0x29a)]();if(_0x50dc5f==null)return;const _0x30e65e=[{'id':_0x45594d(0x2f2),'params':{'unitId':_0x5511ae[_0x45594d(0x1c5)],'actions':null,'textRanges':[_0x50dc5f]}}],_0x35b56f=this[_0x45594d(0x3bb)][_0x45594d(0x38d)](_0x5511ae,_0x30e65e);if(!v[_0x45594d(0x3df)](_0x35b56f))throw _0x35b56f[_0x45594d(0x37e)];const _0x16307f=_0x35b56f[_0x45594d(0x260)][0x0]['params'][_0x45594d(0x2c3)];Array['isArray'](_0x16307f)&&_0x16307f['length']&&_0x55a720[_0x45594d(0x1c4)](_0x16307f[0x0]);}};Z=kt([Le(0x0,v['ITransformService']),Le(0x1,C[_0x3c5b5e(0x23e)])],Z);var jt=Object[_0x3c5b5e(0x2ee)],Yt=(_0x1f8c9b,_0x4828e5,_0x24afaf,_0x5d1fe4)=>{const _0x4db2e4=_0x3c5b5e;for(var _0x5e4408=_0x5d1fe4>0x1?void 0x0:_0x5d1fe4?jt(_0x4828e5,_0x24afaf):_0x4828e5,_0x1083cd=_0x1f8c9b[_0x4db2e4(0x232)]-0x1,_0x42ac34;_0x1083cd>=0x0;_0x1083cd--)(_0x42ac34=_0x1f8c9b[_0x1083cd])&&(_0x5e4408=_0x42ac34(_0x5e4408)||_0x5e4408);return _0x5e4408;},he=(_0x1740d9,_0x3ab709)=>(_0x1f24a1,_0x935339)=>_0x3ab709(_0x1f24a1,_0x935339,_0x1740d9);let Q=class{constructor(_0x56e463,_0x39ec94,_0x38ca57){const _0xc409d3=_0x3c5b5e;this[_0xc409d3(0x25b)]=_0x56e463,this['_transformService']=_0x39ec94,this[_0xc409d3(0x309)]=_0x38ca57;}[_0x3c5b5e(0x1bd)](_0x4867b7){const _0x37e222=_0x3c5b5e;this[_0x37e222(0x30d)](_0x4867b7);}['transformRemoteChangeset'](_0x19343e){const _0x501831=_0x3c5b5e,{unitID:_0x3afe9c}=_0x19343e,{collaboration:_0x1ffde9}=this['_docStateChangeManagerService']['getStateCache'](_0x3afe9c);if(_0x1ffde9['length']===0x0)return _0x19343e;let _0x363670=a[_0x501831(0x2b6)][_0x501831(0x211)](_0x19343e[_0x501831(0x1ca)][0x0]);for(let _0x325925=0x0;_0x325925<_0x1ffde9[_0x501831(0x232)];_0x325925++){const _0x151e74={'id':_0x501831(0x2f2),'params':{'unitId':_0x1ffde9[_0x325925][_0x501831(0x1f2)],..._0x1ffde9[_0x325925]['redoState']}},_0x515490=this[_0x501831(0x3bb)][_0x501831(0x346)](_0x363670,_0x151e74,!0x1);if(v['isTransformMutationFailure'](_0x515490))throw _0x515490[_0x501831(0x37e)];_0x363670=_0x515490['m1Prime'];}return{...a[_0x501831(0x2b6)][_0x501831(0x211)](_0x19343e),'mutations':[_0x363670]};}['_transformHistoryAndStateStack'](_0x280e89){const _0x42af59=_0x3c5b5e,{unitID:_0x2fbf46}=_0x280e89,{history:_0x10f2cb,collaboration:_0x354e8c}=this['_docStateChangeManagerService'][_0x42af59(0x2d0)](_0x2fbf46);if(_0x10f2cb['length']===0x0&&_0x354e8c[_0x42af59(0x232)]===0x0)return;const _0x59c911=[],_0x1371c9=[];let _0x189a0d=a[_0x42af59(0x2b6)][_0x42af59(0x211)](_0x280e89['mutations'][0x0]),_0x318607=a['Tools'][_0x42af59(0x211)](_0x280e89[_0x42af59(0x1ca)][0x0]);for(let _0x51c381=_0x10f2cb[_0x42af59(0x232)]-0x1;_0x51c381>=0x0;_0x51c381--){const _0x4bec1e={'id':_0x42af59(0x2f2),'params':{'unitId':_0x10f2cb[_0x51c381][_0x42af59(0x1f2)],..._0x10f2cb[_0x51c381]['undoState']}},_0x37b348={'id':_0x42af59(0x2f2),'params':{'unitId':_0x10f2cb[_0x51c381][_0x42af59(0x1f2)],..._0x10f2cb[_0x51c381][_0x42af59(0x1d9)]}},_0x5c8b75=this['_transformService'][_0x42af59(0x346)](_0x189a0d,_0x4bec1e,!0x1),_0x36ab6c=this[_0x42af59(0x3bb)][_0x42af59(0x346)](_0x318607,_0x37b348,!0x1);if(v[_0x42af59(0x24f)](_0x5c8b75))throw _0x5c8b75[_0x42af59(0x37e)];if(v['isTransformMutationFailure'](_0x36ab6c))throw _0x36ab6c[_0x42af59(0x37e)];_0x59c911[_0x42af59(0x368)]({..._0x10f2cb[_0x51c381],'undoState':_0x5c8b75[_0x42af59(0x260)][_0x42af59(0x3ce)],'redoState':_0x36ab6c[_0x42af59(0x260)][_0x42af59(0x3ce)]}),_0x189a0d=_0x5c8b75['m1Prime'],_0x318607=_0x36ab6c[_0x42af59(0x378)];}_0x189a0d=a[_0x42af59(0x2b6)][_0x42af59(0x211)](_0x280e89['mutations'][0x0]),_0x318607=a['Tools'][_0x42af59(0x211)](_0x280e89[_0x42af59(0x1ca)][0x0]);for(let _0xb4fb09=_0x354e8c[_0x42af59(0x232)]-0x1;_0xb4fb09>=0x0;_0xb4fb09--){const _0x1073ac={'id':_0x42af59(0x2f2),'params':{'unitId':_0x354e8c[_0xb4fb09][_0x42af59(0x1f2)],..._0x354e8c[_0xb4fb09]['undoState']}},_0x3e4f80={'id':_0x42af59(0x2f2),'params':{'unitId':_0x354e8c[_0xb4fb09]['unitId'],..._0x354e8c[_0xb4fb09][_0x42af59(0x1d9)]}},_0x4c36e1=this[_0x42af59(0x3bb)][_0x42af59(0x346)](_0x189a0d,_0x1073ac,!0x1),_0x1e7108=this[_0x42af59(0x3bb)][_0x42af59(0x346)](_0x318607,_0x3e4f80,!0x1);if(v[_0x42af59(0x24f)](_0x4c36e1))throw _0x4c36e1['error'];if(v[_0x42af59(0x24f)](_0x1e7108))throw _0x1e7108[_0x42af59(0x37e)];_0x1371c9[_0x42af59(0x368)]({..._0x354e8c[_0xb4fb09],'undoState':_0x4c36e1[_0x42af59(0x260)][_0x42af59(0x3ce)],'redoState':_0x1e7108[_0x42af59(0x260)][_0x42af59(0x3ce)]}),_0x189a0d=_0x4c36e1[_0x42af59(0x378)],_0x318607=_0x1e7108[_0x42af59(0x378)];}this[_0x42af59(0x309)][_0x42af59(0x17b)](_0x2fbf46,{'history':_0x59c911,'collaboration':_0x1371c9});}};Q=Yt([he(0x0,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x20e)])),he(0x1,v['ITransformService']),he(0x2,a['Inject'](p['DocStateChangeManagerService']))],Q);var Ht=Object[_0x3c5b5e(0x2ee)],Wt=(_0x420057,_0x41f656,_0x276bd8,_0x3491af)=>{for(var _0x2f379e=_0x3491af>0x1?void 0x0:_0x3491af?Ht(_0x41f656,_0x276bd8):_0x41f656,_0x14e32a=_0x420057['length']-0x1,_0x5c384a;_0x14e32a>=0x0;_0x14e32a--)(_0x5c384a=_0x420057[_0x14e32a])&&(_0x2f379e=_0x5c384a(_0x2f379e)||_0x2f379e);return _0x2f379e;},Me=(_0x2697b7,_0x4683c9)=>(_0x30c709,_0x1dc7cf)=>_0x4683c9(_0x30c709,_0x1dc7cf,_0x2697b7);let ee=class{constructor(_0x5f2a10,_0x3bbbf2){const _0x44b45c=_0x3c5b5e;this[_0x44b45c(0x25b)]=_0x5f2a10,this['_transformService']=_0x3bbbf2;}[_0x3c5b5e(0x1f8)](_0x1aa568){const _0x5e6682=_0x3c5b5e;var _0x619dbf;const _0x41c59a=this[_0x5e6682(0x25b)][_0x5e6682(0x1a0)](W[_0x5e6682(0x1e1)]),_0x1d3c1e=(_0x619dbf=_0x41c59a[_0x5e6682(0x2b1)]())!=null?_0x619dbf:[];if(_0x1d3c1e['length']===0x0)return;const _0x29d039=_0x1aa568[_0x5e6682(0x1c5)],_0x4bb36f=[{'id':_0x5e6682(0x2f2),'params':{'unitId':_0x29d039,'actions':null,'textRanges':_0x1d3c1e}}],_0x463151=this[_0x5e6682(0x3bb)][_0x5e6682(0x38d)](_0x1aa568,_0x4bb36f);if(!v[_0x5e6682(0x3df)](_0x463151))throw _0x463151[_0x5e6682(0x37e)];const _0x3693dd=_0x463151['m2Prime'][0x0]['params']['textRanges'];Array[_0x5e6682(0x1f4)](_0x3693dd)&&_0x3693dd[_0x5e6682(0x232)]&&_0x41c59a['replaceDocRanges'](_0x3693dd,{'unitId':_0x29d039,'subUnitId':_0x29d039},!0x1);}};ee=Wt([Me(0x0,a[_0x3c5b5e(0x2dc)](a['Injector'])),Me(0x1,v[_0x3c5b5e(0x32a)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x3fac3f,_0x4072e5,_0x589ecf,_0x53262d)=>{const _0x2bcc6b=_0x3c5b5e;for(var _0x38085f=_0x53262d>0x1?void 0x0:_0x53262d?Vt(_0x4072e5,_0x589ecf):_0x4072e5,_0xf5592f=_0x3fac3f[_0x2bcc6b(0x232)]-0x1,_0x595130;_0xf5592f>=0x0;_0xf5592f--)(_0x595130=_0x3fac3f[_0xf5592f])&&(_0x38085f=_0x595130(_0x38085f)||_0x38085f);return _0x38085f;},N=(_0x3f14ca,_0x773ab9)=>(_0x372e13,_0x220cb0)=>_0x773ab9(_0x372e13,_0x220cb0,_0x3f14ca);let te=class extends a['Disposable']{constructor(_0x3ef96f,_0x2b7e21,_0x1eb84f,_0x5ce06c,_0x13f2da,_0x36cdea,_0x3b101e,_0x391efb){const _0x1974b3=_0x3c5b5e;super(),_(this,_0x1974b3(0x39c),new I[(_0x1974b3(0x3d7))](u[_0x1974b3(0x1d8)][_0x1974b3(0x3cb)])),(this[_0x1974b3(0x309)]=_0x3ef96f,this['_collaborationController']=_0x2b7e21,this[_0x1974b3(0x233)]=_0x1eb84f,this[_0x1974b3(0x3c0)]=_0x5ce06c,this['_docTransformSelectionsService']=_0x13f2da,this[_0x1974b3(0x3d2)]=_0x36cdea,this[_0x1974b3(0x1cf)]=_0x3b101e,this[_0x1974b3(0x262)]=_0x391efb,this[_0x1974b3(0x154)]());}['_initEntityListener'](){const _0x1d68eb=_0x3c5b5e;this[_0x1d68eb(0x203)](this[_0x1d68eb(0x1c6)][_0x1d68eb(0x1a9)][_0x1d68eb(0x257)](_0x1dff38=>{const _0x2af643=_0x1d68eb,_0x4d1a4f=this[_0x2af643(0x309)][_0x2af643(0x3c7)][_0x2af643(0x257)](_0x1a9f0f=>{const _0x5eb556=_0x2af643;if(_0x1a9f0f==null)return;const {unitId:_0x2cb2c8,redoState:_0x3ddfbd,commandId:_0x3d430f}=_0x1a9f0f;if(_0x2cb2c8!==_0x1dff38[_0x5eb556(0x1c5)])return;const _0x4fb5f0={'id':_0x3d430f,'type':a[_0x5eb556(0x3d8)][_0x5eb556(0x294)],'params':{'unitId':_0x2cb2c8,'actions':_0x3ddfbd[_0x5eb556(0x147)],'textRanges':null}};_0x1dff38[_0x5eb556(0x268)](_0x4fb5f0);});if(_0x1dff38[_0x2af643(0x203)](_0x4d1a4f),_0x1dff38 instanceof u[_0x2af643(0x172)]){const _0x378cc2={'onTransformIME':_0x1938e2=>this[_0x2af643(0x233)]['transformIMECache'](_0x1938e2),'onTransformState':_0x6c80d5=>this[_0x2af643(0x3c0)][_0x2af643(0x1bd)](_0x6c80d5),'onTransformSelections':_0xac4b61=>this[_0x2af643(0x1d0)][_0x2af643(0x1f8)](_0xac4b61),'onSyncEditingCollabCursor':_0x45ec9d=>this[_0x2af643(0x3d2)]['syncEditingCollabCursor'](_0x45ec9d),'onTransformRemoteChangesetByIMECache':_0xb5d054=>this['_docTransformIMECacheService'][_0x2af643(0x3ea)](_0xb5d054),'onTransformRemoteChangesetByStateCache':_0x18b76e=>this['_docTransformStateCacheService'][_0x2af643(0x3ea)](_0x18b76e)};_0x1dff38['addHandlerCallback'](_0x378cc2);}}));}};te=Gt([N(0x0,a[_0x3c5b5e(0x2dc)](p[_0x3c5b5e(0x316)])),N(0x1,a[_0x3c5b5e(0x2dc)](u[_0x3c5b5e(0x32d)])),N(0x2,a[_0x3c5b5e(0x2dc)](Z)),N(0x3,a[_0x3c5b5e(0x2dc)](Q)),N(0x4,a[_0x3c5b5e(0x2dc)](ee)),N(0x5,a['Inject'](Oe)),N(0x6,O[_0x3c5b5e(0x34b)]),N(0x7,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x235)]))],te);var V=(_0xee8672=>(_0xee8672[_0xee8672['UNDEFINED']=0x0]='UNDEFINED',_0xee8672[_0xee8672['OK']=0x1]='OK',_0xee8672[_0xee8672[_0x3c5b5e(0x277)]=0x2]='INTERNAL_ERROR',_0xee8672[_0xee8672['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0xee8672[_0xee8672['NOT_FOUND']=0x4]='NOT_FOUND',_0xee8672[_0xee8672[_0x3c5b5e(0x301)]=0x5]=_0x3c5b5e(0x301),_0xee8672[_0xee8672['ALREADY_EXISTS']=0x6]=_0x3c5b5e(0x335),_0xee8672[_0xee8672[_0x3c5b5e(0x2bb)]=0x7]=_0x3c5b5e(0x2bb),_0xee8672[_0xee8672[_0x3c5b5e(0x1b4)]=0x8]='TOO_MANY_REQUESTS',_0xee8672[_0xee8672[_0x3c5b5e(0x33f)]=0x9]=_0x3c5b5e(0x33f),_0xee8672[_0xee8672[_0x3c5b5e(0x2af)]=0xa]=_0x3c5b5e(0x2af),_0xee8672[_0xee8672['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x3c5b5e(0x2b4),_0xee8672[_0xee8672[_0x3c5b5e(0x24a)]=0xc]=_0x3c5b5e(0x24a),_0xee8672[_0xee8672[_0x3c5b5e(0x242)]=0xd]=_0x3c5b5e(0x242),_0xee8672[_0xee8672[_0x3c5b5e(0x2cf)]=0xe]=_0x3c5b5e(0x2cf),_0xee8672[_0xee8672['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x3c5b5e(0x25e),_0xee8672[_0xee8672[_0x3c5b5e(0x23c)]=0x10]=_0x3c5b5e(0x23c),_0xee8672[_0xee8672[_0x3c5b5e(0x229)]=0x64]=_0x3c5b5e(0x229),_0xee8672[_0xee8672[_0x3c5b5e(0x27b)]=0x65]=_0x3c5b5e(0x27b),_0xee8672[_0xee8672[_0x3c5b5e(0x17c)]=0xc9]=_0x3c5b5e(0x17c),_0xee8672[_0xee8672[_0x3c5b5e(0x27c)]=0xca]='USER_IS_ANONYMOUS',_0xee8672[_0xee8672[_0x3c5b5e(0x159)]=0x1389]=_0x3c5b5e(0x159),_0xee8672[_0xee8672[_0x3c5b5e(0x30c)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xee8672[_0xee8672[_0x3c5b5e(0x3c4)]=0x1772]=_0x3c5b5e(0x3c4),_0xee8672[_0xee8672[_0x3c5b5e(0x36e)]=0x1773]=_0x3c5b5e(0x36e),_0xee8672[_0xee8672[_0x3c5b5e(0x2d1)]=0x1b59]=_0x3c5b5e(0x2d1),_0xee8672[_0xee8672[_0x3c5b5e(0x38a)]=0x1b5a]=_0x3c5b5e(0x38a),_0xee8672[_0xee8672['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x3c5b5e(0x331),_0xee8672[_0xee8672['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3c5b5e(0x398),_0xee8672[_0xee8672[_0x3c5b5e(0x223)]=0x1b5d]='APPLY_DUPLICATED',_0xee8672[_0xee8672['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xee8672[_0xee8672[_0x3c5b5e(0x182)]=0x2329]=_0x3c5b5e(0x182),_0xee8672[_0xee8672[_0x3c5b5e(0x200)]=0x232a]=_0x3c5b5e(0x200),_0xee8672[_0xee8672[_0x3c5b5e(0x357)]=0x232b]=_0x3c5b5e(0x357),_0xee8672[_0xee8672[_0x3c5b5e(0x220)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xee8672[_0xee8672['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3c5b5e(0x38c),_0xee8672[_0xee8672[_0x3c5b5e(0x28b)]=0x2711]=_0x3c5b5e(0x28b),_0xee8672[_0xee8672[_0x3c5b5e(0x399)]=0x2712]=_0x3c5b5e(0x399),_0xee8672[_0xee8672[_0x3c5b5e(0x1be)]=0x2713]=_0x3c5b5e(0x1be),_0xee8672[_0xee8672[_0x3c5b5e(0x1ad)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xee8672[_0xee8672[_0x3c5b5e(0x2cb)]=0x271a]=_0x3c5b5e(0x2cb),_0xee8672[_0xee8672[_0x3c5b5e(0x39d)]=0x271b]=_0x3c5b5e(0x39d),_0xee8672[_0xee8672['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xee8672[_0xee8672[_0x3c5b5e(0x3e5)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xee8672[_0xee8672[_0x3c5b5e(0x192)]=0x271e]=_0x3c5b5e(0x192),_0xee8672[_0xee8672[_0x3c5b5e(0x1f7)]=0x271f]=_0x3c5b5e(0x1f7),_0xee8672[_0xee8672[_0x3c5b5e(0x3e9)]=0x2720]=_0x3c5b5e(0x3e9),_0xee8672[_0xee8672['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x3c5b5e(0x353),_0xee8672[_0xee8672[_0x3c5b5e(0x3b2)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xee8672[_0xee8672['INVALID_INVITE_CODE']=0x2ee2]=_0x3c5b5e(0x3cd),_0xee8672[_0xee8672['INVITE_CODE_REQUIRED']=0x2ee3]=_0x3c5b5e(0x20d),_0xee8672[_0xee8672[_0x3c5b5e(0x2e9)]=0x2ee4]=_0x3c5b5e(0x2e9),_0xee8672[_0xee8672[_0x3c5b5e(0x38b)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0xee8672[_0xee8672['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x3c5b5e(0x1b6),_0xee8672[_0xee8672['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0xee8672[_0xee8672[_0x3c5b5e(0x296)]=0x32cb]=_0x3c5b5e(0x296),_0xee8672[_0xee8672['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0xee8672[_0xee8672[_0x3c5b5e(0x219)]=0x36b2]=_0x3c5b5e(0x219),_0xee8672[_0xee8672['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x3c5b5e(0x2e4),_0xee8672[_0xee8672['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x3c5b5e(0x2e3),_0xee8672[_0xee8672['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x3c5b5e(0x2de),_0xee8672[_0xee8672[_0x3c5b5e(0x3d6)]=0x3716]=_0x3c5b5e(0x3d6),_0xee8672[_0xee8672[_0x3c5b5e(0x1ec)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xee8672[_0xee8672[_0x3c5b5e(0x22f)]=0x3a99]=_0x3c5b5e(0x22f),_0xee8672[_0xee8672['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3c5b5e(0x1e8),_0xee8672[_0xee8672[_0x3c5b5e(0x37d)]=0x3a9b]=_0x3c5b5e(0x37d),_0xee8672[_0xee8672[_0x3c5b5e(0x1d3)]=0x3a9c]=_0x3c5b5e(0x1d3),_0xee8672[_0xee8672[_0x3c5b5e(0x2f5)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0xee8672[_0xee8672[_0x3c5b5e(0x2d9)]=0x3a9e]=_0x3c5b5e(0x2d9),_0xee8672[_0xee8672['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0xee8672[_0xee8672[_0x3c5b5e(0x367)]=-0x1]=_0x3c5b5e(0x367),_0xee8672))(V||{});function Xt(_0x2d6f18){const _0x4f5583=_0x3c5b5e;var _0x2aec66,_0x37b4eb;const _0x2328c6=(_0x2aec66=_0x2d6f18['stageInfo'])==null?void 0x0:_0x2aec66[_0x4f5583(0x191)],_0x2f2574=((_0x37b4eb=_0x2d6f18[_0x4f5583(0x2f1)])==null?void 0x0:_0x37b4eb[_0x4f5583(0x155)])||0x0;return _0x2328c6===x[_0x4f5583(0x237)][_0x4f5583(0x2d5)]&&_0x2f2574>0x0;}function Kt(_0x1890d0){const _0x3f1498=_0x3c5b5e;return _0x1890d0[_0x3f1498(0x3bc)]===x['FormulaExecutedStateType'][_0x3f1498(0x362)];}var qt=Object[_0x3c5b5e(0x2ee)],zt=(_0x5cb547,_0x55281b,_0x3b10ee,_0x427c0f)=>{const _0x9148cb=_0x3c5b5e;for(var _0x137b9e=_0x427c0f>0x1?void 0x0:_0x427c0f?qt(_0x55281b,_0x3b10ee):_0x55281b,_0x2acdd4=_0x5cb547[_0x9148cb(0x232)]-0x1,_0x18cf39;_0x2acdd4>=0x0;_0x2acdd4--)(_0x18cf39=_0x5cb547[_0x2acdd4])&&(_0x137b9e=_0x18cf39(_0x137b9e)||_0x137b9e);return _0x137b9e;},L=(_0x2b71c7,_0x343fe7)=>(_0x35e80d,_0x1ae540)=>_0x343fe7(_0x35e80d,_0x1ae540,_0x2b71c7);const Jt=_0x3c5b5e(0x142),Zt=_0x3c5b5e(0x2f7),Qt='/universer-api/license/formula/limit/done';let se=class extends a['Disposable']{constructor(_0x174872,_0x296b5e,_0x1a78f4,_0x1fdb1b,_0x2c696f,_0x1d472f,_0x5b2e3f){const _0x407600=_0x3c5b5e;super(),_(this,_0x407600(0x1ee),null),_(this,_0x407600(0x2f8),0x0),_(this,'_currentUsage',0x0),_(this,_0x407600(0x26b),[]),_(this,'_lastResponseTimestamp',0x0),(this['_messageService']=_0x174872,this[_0x407600(0x2d7)]=_0x296b5e,this[_0x407600(0x363)]=_0x1a78f4,this[_0x407600(0x387)]=_0x1fdb1b,this[_0x407600(0x2c9)]=_0x2c696f,this[_0x407600(0x1ac)]=_0x1d472f,this['_localeService']=_0x5b2e3f,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0xa64ed4=_0x3c5b5e;this[_0xa64ed4(0x203)](this[_0xa64ed4(0x2d7)]['beforeCommandExecuted']((_0x137786,_0x204503)=>{const _0x101b7e=_0xa64ed4;if(_0x137786['id']!==x[_0x101b7e(0x2e0)]['id'])return;const _0x5100df=_0x137786[_0x101b7e(0x3ce)];if(!this['_hasFormulaInDirtyRanges'](_0x5100df['dirtyRanges']))return;if(!this['_checkCalculationAvailable']())throw this[_0x101b7e(0x3ae)](_0x137786,_0x204503),this[_0x101b7e(0x225)](),new a[(_0x101b7e(0x287))]();})),this[_0xa64ed4(0x203)](this[_0xa64ed4(0x2d7)][_0xa64ed4(0x261)]((_0x423d35,_0x2b39d8)=>{const _0x22dba9=_0xa64ed4;if(_0x423d35['id']!==x[_0x22dba9(0x2c0)]['id'])return;const _0x236172=_0x423d35[_0x22dba9(0x3ce)];if(Xt(_0x236172)){const _0xa3904d=a['generateRandomId']();this['_taskIds'][_0x22dba9(0x2cc)](_0xa3904d),this[_0x22dba9(0x16e)](_0xa3904d);}else{if(Kt(_0x236172)&&this[_0x22dba9(0x26b)]['length']>0x0){const _0x22a9dd=this[_0x22dba9(0x26b)]['shift']();this[_0x22dba9(0x24c)](_0x22a9dd);}}}));}[_0x3c5b5e(0x1f3)](){const _0x54ffe7=_0x3c5b5e;super[_0x54ffe7(0x1f3)](),this[_0x54ffe7(0x2bc)](),this[_0x54ffe7(0x26b)]=[],this[_0x54ffe7(0x210)]=0x0,this[_0x54ffe7(0x2f8)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3c5b5e(0x3ae)](_0x3738fa,_0xa9d3b4){const _0x1453f3=_0x3c5b5e;for(let _0x427286=0x0;_0x427286<0x1e;_0x427286++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0x1453f3(0x149)](_0x3738fa,_0xa9d3b4),this[_0x1453f3(0x1cf)][_0x1453f3(0x1bc)]({'content':this['_localeService']['t'](_0x1453f3(0x146)),'type':T[_0x1453f3(0x1b9)]['Success']});return;}await new Promise(_0x399b28=>{const _0x34c811=_0x1453f3;this[_0x34c811(0x1ee)]=window['setTimeout'](_0x399b28,0x3e8);});}catch(_0x10498d){this[_0x1453f3(0x1ac)][_0x1453f3(0x37e)](_0x10498d);}this[_0x1453f3(0x1cf)][_0x1453f3(0x1bc)]({'content':this[_0x1453f3(0x262)]['t']('formula.calculation.unable'),'type':T[_0x1453f3(0x1b9)]['Error']});}['_applyCommand'](_0x91ba7d,_0x3101e3){const _0x1e3585=_0x3c5b5e;try{this[_0x1e3585(0x2d7)][_0x1e3585(0x330)](_0x91ba7d['id'],_0x91ba7d[_0x1e3585(0x3ce)],_0x3101e3);}catch(_0x125d8b){this[_0x1e3585(0x1ac)][_0x1e3585(0x37e)](_0x125d8b);}}['_setFormulaLimitStatus'](_0xb31646,_0x3ea00e){const _0xd2047e=_0x3c5b5e;_0x3ea00e<this[_0xd2047e(0x2e7)]||(this[_0xd2047e(0x2e7)]=_0x3ea00e,this['_maxFormulaLimit']=Number[_0xd2047e(0x299)](_0xb31646['maxFormulaLimit']),this[_0xd2047e(0x210)]=Number[_0xd2047e(0x299)](_0xb31646[_0xd2047e(0x33d)]));}async[_0x3c5b5e(0x16e)](_0x24827e){const _0x1fe857=_0x3c5b5e;var _0x26553e,_0x23939b;const _0x512c69=Date[_0x1fe857(0x377)]();try{const _0x451731=((_0x26553e=this[_0x1fe857(0x363)][_0x1fe857(0x2e5)](u[_0x1fe857(0x2fd)]))==null?void 0x0:_0x26553e[_0x1fe857(0x23a)])||Zt,_0x406459=(await this[_0x1fe857(0x387)][_0x1fe857(0x1ae)](_0x451731,{'body':JSON[_0x1fe857(0x376)]({'taskId':_0x24827e})}))[_0x1fe857(0x205)];if(((_0x23939b=_0x406459[_0x1fe857(0x37e)])==null?void 0x0:_0x23939b[_0x1fe857(0x165)])!==V['OK'])return;this[_0x1fe857(0x1f9)](_0x406459[_0x1fe857(0x213)],_0x512c69);}catch(_0x401b57){this[_0x1fe857(0x1ac)][_0x1fe857(0x37e)](_0x401b57);}}async[_0x3c5b5e(0x1a7)](_0x534674){const _0x3fcbaa=_0x3c5b5e;var _0xba5c24,_0x246cf4;const _0x3e4ed7=Date[_0x3fcbaa(0x377)]();try{const _0x4dea4e=((_0xba5c24=this[_0x3fcbaa(0x363)][_0x3fcbaa(0x2e5)](u[_0x3fcbaa(0x2fd)]))==null?void 0x0:_0xba5c24[_0x3fcbaa(0x3ca)])||Jt,_0xcb0718=_0x534674?_0x4dea4e+'?taskId='+encodeURIComponent(_0x534674):_0x4dea4e,_0x5d541e=(await this[_0x3fcbaa(0x387)]['get'](_0xcb0718))[_0x3fcbaa(0x205)];if(((_0x246cf4=_0x5d541e[_0x3fcbaa(0x37e)])==null?void 0x0:_0x246cf4[_0x3fcbaa(0x165)])!==V['OK'])return;this[_0x3fcbaa(0x1f9)](_0x5d541e[_0x3fcbaa(0x213)],_0x3e4ed7);}catch(_0x34a9a8){this[_0x3fcbaa(0x1ac)][_0x3fcbaa(0x37e)](_0x34a9a8);}}async['_releaseCalculationLimit'](_0x852358){const _0x13d37f=_0x3c5b5e;var _0xae01f7,_0x518210;const _0x4518aa=Date[_0x13d37f(0x377)]();try{const _0x2d34e1=((_0xae01f7=this[_0x13d37f(0x363)][_0x13d37f(0x2e5)](u[_0x13d37f(0x2fd)]))==null?void 0x0:_0xae01f7[_0x13d37f(0x239)])||Qt,_0x146b8f=(await this[_0x13d37f(0x387)][_0x13d37f(0x1ae)](_0x2d34e1,{'body':JSON['stringify']({'taskId':_0x852358})}))[_0x13d37f(0x205)];if(((_0x518210=_0x146b8f['error'])==null?void 0x0:_0x518210[_0x13d37f(0x165)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x146b8f['limitInfo'],_0x4518aa);}catch(_0x1e0a1d){this['_logService'][_0x13d37f(0x37e)](_0x1e0a1d);}}[_0x3c5b5e(0x18a)](){const _0x33ef86=_0x3c5b5e;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x33ef86(0x2f8)]-this[_0x33ef86(0x210)]>0x0;}[_0x3c5b5e(0x2bc)](){const _0x4cca25=_0x3c5b5e;this['_pollingInterval']&&(clearTimeout(this[_0x4cca25(0x1ee)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x434ad8=_0x3c5b5e;this[_0x434ad8(0x1cf)][_0x434ad8(0x1bc)]({'content':this[_0x434ad8(0x262)]['t']('formula.calculation.waiting'),'type':T[_0x434ad8(0x1b9)][_0x434ad8(0x291)]});}[_0x3c5b5e(0x14b)](_0x1e9687){const _0x19cb41=_0x3c5b5e;for(const _0x5eaaa3 of _0x1e9687){const {unitId:_0x284b4a,sheetId:_0x2abd07,range:_0x1361be}=_0x5eaaa3,_0x4d0dca=this[_0x19cb41(0x2c9)]['getUnit'](_0x284b4a);if(!_0x4d0dca)continue;const _0x4ef85b=_0x4d0dca[_0x19cb41(0x3dc)](_0x2abd07);if(!_0x4ef85b)continue;const _0x35c805=_0x4ef85b[_0x19cb41(0x16c)]();for(let _0x40580a=_0x1361be[_0x19cb41(0x30f)];_0x40580a<=_0x1361be['endRow'];_0x40580a++)for(let _0x50e0eb=_0x1361be[_0x19cb41(0x18c)];_0x50e0eb<=_0x1361be[_0x19cb41(0x1a3)];_0x50e0eb++){const _0x1b80e4=_0x35c805[_0x19cb41(0x224)](_0x40580a,_0x50e0eb);if(_0x1b80e4&&(a[_0x19cb41(0x3ec)](_0x1b80e4['f'])||a[_0x19cb41(0x3be)](_0x1b80e4['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x3c5b5e(0x2dc)](O[_0x3c5b5e(0x34b)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x3c5b5e(0x2dc)](G[_0x3c5b5e(0x2ac)])),L(0x4,a[_0x3c5b5e(0x26a)]),L(0x5,a[_0x3c5b5e(0x3a3)]),L(0x6,a[_0x3c5b5e(0x2dc)](a['LocaleService']))],se);var es=Object[_0x3c5b5e(0x2ee)],ts=(_0x1954bf,_0x1fedc2,_0x4722e6,_0x3066df)=>{for(var _0x26a7b6=_0x3066df>0x1?void 0x0:_0x3066df?es(_0x1fedc2,_0x4722e6):_0x1fedc2,_0x16b17c=_0x1954bf['length']-0x1,_0xcc6f74;_0x16b17c>=0x0;_0x16b17c--)(_0xcc6f74=_0x1954bf[_0x16b17c])&&(_0x26a7b6=_0xcc6f74(_0x26a7b6)||_0x26a7b6);return _0x26a7b6;},ue=(_0x540b4f,_0x1186a2)=>(_0x455a1b,_0x4f3e69)=>_0x1186a2(_0x455a1b,_0x4f3e69,_0x540b4f);let Ee=class extends a['Disposable']{constructor(_0x3cd152,_0x42bd5e,_0x5b6ca7){const _0xfa62da=_0x3c5b5e;super(),_(this,_0xfa62da(0x3f2),new Map()),_(this,_0xfa62da(0x332),new Map()),_(this,'_disabled',!0x1),(this[_0xfa62da(0x363)]=_0x3cd152,this['_localStorageService']=_0x42bd5e,this[_0xfa62da(0x29f)]=_0x5b6ca7);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x27dbe4=_0x3c5b5e;this[_0x27dbe4(0x3c5)]=!0x1;}get[_0x3c5b5e(0x2b9)](){const _0x344cf6=_0x3c5b5e;return this[_0x344cf6(0x332)];}['dispose'](){const _0x2d4988=_0x3c5b5e;this[_0x2d4988(0x140)]()['then'](()=>super[_0x2d4988(0x1f3)]());}async[_0x3c5b5e(0x33b)](_0x4fa501){const _0x4ac0e2=_0x3c5b5e;return this[_0x4ac0e2(0x3c5)]?null:this[_0x4ac0e2(0x14e)][_0x4ac0e2(0x2e6)](u[_0x4ac0e2(0x390)](_0x4fa501));}async[_0x3c5b5e(0x2b0)](_0x2dd0c6,_0x408be8){const _0x213546=_0x3c5b5e;return!!this[_0x213546(0x14e)]['setItem'](_0x2dd0c6,_0x408be8);}[_0x3c5b5e(0x2da)](_0x5b6c34,_0x76155c,_0x82befb,_0x58f610){const _0x4dd996=_0x3c5b5e,_0x14e3ff=this[_0x4dd996(0x29f)][_0x4dd996(0x34a)](_0x5b6c34);this[_0x4dd996(0x3f2)][_0x4dd996(0x39b)](_0x5b6c34,{'unitID':_0x5b6c34,'type':_0x76155c,'awaitingChangeset':_0x82befb,'mutations':_0x58f610,'rev':_0x14e3ff}),this[_0x4dd996(0x332)][_0x4dd996(0x1ed)](_0x5b6c34)||this[_0x4dd996(0x252)](_0x5b6c34);}[_0x3c5b5e(0x252)](_0x3ec3c3){const _0x2396b8=_0x3c5b5e,_0x4d87ab=this['_getSaveTimeout']();_0x4d87ab===0x0?this[_0x2396b8(0x3b8)](_0x3ec3c3):this['_saveTaskMap'][_0x2396b8(0x39b)](_0x3ec3c3,setTimeout(()=>this['_saveCache'](_0x3ec3c3),_0x4d87ab));}[_0x3c5b5e(0x394)](){const _0x4ff68a=_0x3c5b5e;var _0x18324b;return(_0x18324b=this['_configService']['getConfig'](u[_0x4ff68a(0x22d)]))!=null?_0x18324b:u[_0x4ff68a(0x33e)];}[_0x3c5b5e(0x3b8)](_0x4c25ee){const _0x5a6310=_0x3c5b5e,_0x3e4f65=this[_0x5a6310(0x332)][_0x5a6310(0x1a0)](_0x4c25ee);return _0x3e4f65!==void 0x0&&window['clearTimeout'](_0x3e4f65),this[_0x5a6310(0x14e)][_0x5a6310(0x3a4)](u[_0x5a6310(0x390)](_0x4c25ee),this['_cachedData'][_0x5a6310(0x1a0)](_0x4c25ee))[_0x5a6310(0x333)](()=>this[_0x5a6310(0x332)][_0x5a6310(0x263)](_0x4c25ee));}async[_0x3c5b5e(0x140)](){const _0x45680d=_0x3c5b5e,_0x21eb52=[];this[_0x45680d(0x332)][_0x45680d(0x1bb)]((_0x17ec5c,_0x17767c)=>{const _0x1d5d5d=_0x45680d;window[_0x1d5d5d(0x184)](_0x17ec5c),_0x21eb52['push'](this['_saveCache'](_0x17767c)[_0x1d5d5d(0x333)](()=>{const _0x1b48fc=_0x1d5d5d;this['_saveTaskMap'][_0x1b48fc(0x263)](_0x17767c);}));}),await Promise[_0x45680d(0x33a)](_0x21eb52);}};Ee=ts([ue(0x0,a[_0x3c5b5e(0x1da)]),ue(0x1,a[_0x3c5b5e(0x168)]),ue(0x2,a[_0x3c5b5e(0x2dc)](v[_0x3c5b5e(0x2a4)]))],Ee);class Fe extends a[_0x3c5b5e(0x286)]{constructor(){const _0x32ffe0=_0x3c5b5e;super(),_(this,_0x32ffe0(0x15b)),this[_0x32ffe0(0x15b)]=I[_0x32ffe0(0x2ce)](window,_0x32ffe0(0x312))[_0x32ffe0(0x38e)](I[_0x32ffe0(0x1af)](this[_0x32ffe0(0x193)]),I['shareReplay'](0x1),I[_0x32ffe0(0x315)](void 0x0));}[_0x3c5b5e(0x351)](_0x42cff4,_0x4fde67,_0x349e73=!0x1){const _0x207683=_0x3c5b5e,_0xb34bda=new URL(window[_0x207683(0x23f)][_0x207683(0x314)]);_0xb34bda[_0x207683(0x3eb)]['set'](_0x42cff4,_0x4fde67),_0x349e73?window[_0x207683(0x298)][_0x207683(0x391)]('','',_0xb34bda[_0x207683(0x14c)]()):window[_0x207683(0x298)][_0x207683(0x212)]('','',_0xb34bda[_0x207683(0x14c)]());}[_0x3c5b5e(0x289)](_0x2b827e,_0x15a63e=!0x1){const _0x340b67=_0x3c5b5e,_0x261acc=new URL(window[_0x340b67(0x23f)][_0x340b67(0x314)]);_0x261acc[_0x340b67(0x3eb)][_0x340b67(0x263)](_0x2b827e),_0x15a63e?window[_0x340b67(0x298)][_0x340b67(0x391)]('','',_0x261acc[_0x340b67(0x14c)]()):window[_0x340b67(0x298)][_0x340b67(0x212)]('','',_0x261acc[_0x340b67(0x14c)]());}['getParam'](_0x32ca54){const _0x1c14c5=_0x3c5b5e;var _0x4a7a7a;return(_0x4a7a7a=new URL(window[_0x1c14c5(0x23f)][_0x1c14c5(0x314)])[_0x1c14c5(0x3eb)]['get'](_0x32ca54))!=null?_0x4a7a7a:void 0x0;}}var ss=Object[_0x3c5b5e(0x19e)],is=Object[_0x3c5b5e(0x2ee)],ns=(_0xce3f0d,_0x2d376c,_0x291368)=>_0x2d376c in _0xce3f0d?ss(_0xce3f0d,_0x2d376c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x291368}):_0xce3f0d[_0x2d376c]=_0x291368,rs=(_0x3609e1,_0x27f08d,_0x3ab767,_0x1c9758)=>{const _0x101a47=_0x3c5b5e;for(var _0x25b032=_0x1c9758>0x1?void 0x0:_0x1c9758?is(_0x27f08d,_0x3ab767):_0x27f08d,_0xcc1c38=_0x3609e1[_0x101a47(0x232)]-0x1,_0x30b501;_0xcc1c38>=0x0;_0xcc1c38--)(_0x30b501=_0x3609e1[_0xcc1c38])&&(_0x25b032=_0x30b501(_0x25b032)||_0x25b032);return _0x25b032;},Ie=(_0x173bc6,_0xd923ae)=>(_0x3a6ab6,_0x38ae17)=>_0xd923ae(_0x3a6ab6,_0x38ae17,_0x173bc6),os=(_0x47f962,_0x3b1c40,_0x1a51fe)=>ns(_0x47f962,_0x3b1c40+'',_0x1a51fe);const as='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x3c5b5e(0x31e)]{constructor(_0x52ed69=Ue,_0x58d8c5,_0x168a06,_0x36f925){const _0x1898c1=_0x3c5b5e;super(),this[_0x1898c1(0x31f)]=_0x52ed69,this[_0x1898c1(0x1fc)]=_0x58d8c5,this['_injector']=_0x168a06,this['_configService']=_0x36f925;const {..._0x45a23f}=a['merge']({},Ue,this[_0x1898c1(0x31f)]);this['_configService'][_0x1898c1(0x22a)](Bt,_0x45a23f);}[_0x3c5b5e(0x26e)](){const _0x5b0dc1=_0x3c5b5e;this[_0x5b0dc1(0x2b7)](),this[_0x5b0dc1(0x206)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3c5b5e(0x2b7)](){const _0x4b7563=_0x3c5b5e;var _0x405de8;const _0x22b5fc=[[Te],[se],[ee],[Z],[Q],[Oe],[pe,{'useClass':Fe}],[G[_0x4b7563(0x21d)],{'useClass':G[_0x4b7563(0x3d3)]}],[u[_0x4b7563(0x342)],{'useClass':Ee}],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[B],[de],[exports[_0x4b7563(0x3d1)]]];a['registerDependencies'](this['_injector'],a[_0x4b7563(0x3a0)](_0x22b5fc,(_0x405de8=this[_0x4b7563(0x31f)])==null?void 0x0:_0x405de8[_0x4b7563(0x338)]));}[_0x3c5b5e(0x2a9)](){const _0x181051=_0x3c5b5e;this[_0x181051(0x203)](this[_0x181051(0x1fc)][_0x181051(0x3e3)](a[_0x181051(0x258)][_0x181051(0x259)],[ge])),this[_0x181051(0x203)](this[_0x181051(0x1fc)][_0x181051(0x3e3)](a['UniverInstanceType'][_0x181051(0x227)],[ve]));}['_initDependencies'](){const _0x6cf81a=_0x3c5b5e;a[_0x6cf81a(0x306)](this[_0x6cf81a(0x25b)],[[B],[exports[_0x6cf81a(0x143)]],[te],[J],[exports[_0x6cf81a(0x3d1)]],[se]]);}},os(exports[_0x3c5b5e(0x373)],_0x3c5b5e(0x238),as),exports[_0x3c5b5e(0x373)]=rs([a[_0x3c5b5e(0x3e6)](u['UniverCollaborationClientPlugin']),Ie(0x1,C['IRenderManagerService']),Ie(0x2,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x20e)])),Ie(0x3,a['IConfigService'])],exports[_0x3c5b5e(0x373)]);var cs=Object[_0x3c5b5e(0x2ee)],ls=(_0x316153,_0x4d35b3,_0x57650f,_0x39a10d)=>{const _0x53d42e=_0x3c5b5e;for(var _0x48abe8=_0x39a10d>0x1?void 0x0:_0x39a10d?cs(_0x4d35b3,_0x57650f):_0x4d35b3,_0x1fa768=_0x316153[_0x53d42e(0x232)]-0x1,_0x585f4d;_0x1fa768>=0x0;_0x1fa768--)(_0x585f4d=_0x316153[_0x1fa768])&&(_0x48abe8=_0x585f4d(_0x48abe8)||_0x48abe8);return _0x48abe8;},H=(_0x31793f,_0x5887e5)=>(_0x2a8dd5,_0x32b362)=>_0x5887e5(_0x2a8dd5,_0x32b362,_0x31793f);exports['BrowserCollaborationSocketService']=class extends u[_0x3c5b5e(0x207)]{constructor(_0x1587cc,_0x3df4e3,_0x428fe9,_0x3f49ca,_0x3b6ffd){super(_0x1587cc,_0x3df4e3,_0x428fe9,_0x3f49ca,_0x3b6ffd);}async[_0x3c5b5e(0x1fe)](_0x3c64d7){const _0x53db5b=_0x3c5b5e,_0x4d882=await this['_getSessionTicket'](),_0x34c86c=this[_0x53db5b(0x2f4)](_0x3c64d7,_0x4d882);return this['_doCreateSocket'](_0x34c86c);}[_0x3c5b5e(0x2f4)](_0x3fe36b,_0x4530a2){const _0x36eda3=_0x3c5b5e,_0x16253e=typeof window>'u'?new URL(_0x3fe36b):new URL(_0x3fe36b,window[_0x36eda3(0x23f)]['origin']);_0x16253e['searchParams'][_0x36eda3(0x39b)](_0x36eda3(0x2ef),_0x4530a2);const _0x5907c1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x36eda3(0x23f)]['search']);return _0x5907c1['get'](_0x36eda3(0x1ab))&&_0x16253e[_0x36eda3(0x3eb)][_0x36eda3(0x39b)]('runId',_0x5907c1[_0x36eda3(0x1a0)]('runId')),_0x16253e[_0x36eda3(0x14c)]();}async[_0x3c5b5e(0x366)](){const _0x1d5596=_0x3c5b5e;var _0x2c6522,_0x3b6ff7,_0x220cbc;const _0x2507fa=this[_0x1d5596(0x363)][_0x1d5596(0x2e5)](u[_0x1d5596(0x2fd)]),_0x49b7b7=(_0x2c6522=_0x2507fa==null?void 0x0:_0x2507fa[_0x1d5596(0x32b)])!=null?_0x2c6522:u[_0x1d5596(0x3ac)];return(_0x220cbc=(_0x3b6ff7=(await this[_0x1d5596(0x387)][_0x1d5596(0x1a0)](_0x49b7b7,{'headers':{'Content-Type':'application/json'}}))[_0x1d5596(0x205)])==null?void 0x0:_0x3b6ff7['ticket'])!=null?_0x220cbc:'';}},exports[_0x3c5b5e(0x329)]=ls([H(0x0,a[_0x3c5b5e(0x2dc)](a[_0x3c5b5e(0x20e)])),H(0x1,a[_0x3c5b5e(0x2dc)](G[_0x3c5b5e(0x2ac)])),H(0x2,a[_0x3c5b5e(0x1da)]),H(0x3,a['ILogService']),H(0x4,v['ISnapshotServerService'])],exports[_0x3c5b5e(0x329)]);var _s=Object[_0x3c5b5e(0x2ee)],hs=(_0x7200ac,_0x51e6fd,_0x1da12f,_0x163687)=>{for(var _0x3c92d0=_0x163687>0x1?void 0x0:_0x163687?_s(_0x51e6fd,_0x1da12f):_0x51e6fd,_0x5d9b71=_0x7200ac['length']-0x1,_0x26a958;_0x5d9b71>=0x0;_0x5d9b71--)(_0x26a958=_0x7200ac[_0x5d9b71])&&(_0x3c92d0=_0x26a958(_0x3c92d0)||_0x3c92d0);return _0x3c92d0;},Se=(_0x57753b,_0x4b7e1f)=>(_0x1bb2a2,_0x24f31c)=>_0x4b7e1f(_0x1bb2a2,_0x24f31c,_0x57753b);exports[_0x3c5b5e(0x2c4)]=class extends a['Disposable']{constructor(_0x1603ae,_0x3c10c0,_0x43ac88){const _0x886309=_0x3c5b5e;super(),this['_instanceService']=_0x1603ae,this[_0x886309(0x387)]=_0x3c10c0,this['_configService']=_0x43ac88;}async['runOnServer'](_0x289d32,_0x5210f7,_0x2bd663,..._0x117ac0){const _0x4857e7=_0x3c5b5e;var _0x164c2d,_0x52cb02,_0xd21ff8,_0x266a17;const _0xe1c2f8=this[_0x4857e7(0x25c)][_0x4857e7(0x247)]();if(!_0xe1c2f8)throw new Error(_0x4857e7(0x389));const _0x3e8d60=((_0x164c2d=this['_configService'][_0x4857e7(0x2e5)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x164c2d:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x289d32+_0x4857e7(0x21f)+_0x5210f7,_0xdd87bf=new URL(window[_0x4857e7(0x23f)][_0x4857e7(0x314)]),_0x293023={'scriptId':_0x289d32,'runId':(_0x52cb02=_0xdd87bf[_0x4857e7(0x3eb)]['get'](_0x4857e7(0x1ab)))!=null?_0x52cb02:'','function':_0x5210f7,'unitId':_0xe1c2f8[_0x4857e7(0x279)](),'argsOfFunction':JSON[_0x4857e7(0x376)](_0x117ac0),'invokeId':(_0xd21ff8=_0x2bd663[_0x4857e7(0x28d)])!=null?_0xd21ff8:'','executionId':(_0x266a17=_0x2bd663['executionId'])!=null?_0x266a17:''};try{const _0x26229a=await this[_0x4857e7(0x387)]['post'](_0x3e8d60,{'body':_0x293023});return _0x26229a['body'][_0x4857e7(0x37e)]&&_0x26229a[_0x4857e7(0x205)][_0x4857e7(0x37e)][_0x4857e7(0x165)]!==V['OK']?'Failed':_0x26229a[_0x4857e7(0x205)][_0x4857e7(0x28c)];}catch{return _0x4857e7(0x167);}}},exports[_0x3c5b5e(0x2c4)]=hs([Se(0x0,a[_0x3c5b5e(0x26a)]),Se(0x1,a[_0x3c5b5e(0x2dc)](G[_0x3c5b5e(0x2ac)])),Se(0x2,a[_0x3c5b5e(0x1da)])],exports[_0x3c5b5e(0x2c4)]);const Ae=0x7530,Pe=_0x3c5b5e(0x34f);class us extends a[_0x3c5b5e(0x343)]{constructor(){const _0x1b8a57=_0x3c5b5e;super(),_(this,_0x1b8a57(0x3e0),a[_0x1b8a57(0x3d4)]()),_(this,_0x1b8a57(0x170),new Set()),_(this,_0x1b8a57(0x34d),new Map()),_(this,_0x1b8a57(0x214),null),_(this,_0x1b8a57(0x2e8),new Map()),_(this,_0x1b8a57(0x13d),new Map()),this[_0x1b8a57(0x3c8)]();}['dispose'](){const _0x2aa311=_0x3c5b5e;super['dispose'](),this[_0x2aa311(0x2e8)][_0x2aa311(0x1bb)]((_0x3e148d,_0x507243)=>this[_0x2aa311(0x281)](_0x507243)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x2aa311(0x214)]);}[_0x3c5b5e(0x1ea)](_0x81edf6){const _0x54b452=_0x3c5b5e;return this[_0x54b452(0x161)](_0x81edf6)[_0x54b452(0x38e)](I[_0x54b452(0x3c6)]());}[_0x3c5b5e(0x35c)](_0x3c9deb){const _0x27f8a9=_0x3c5b5e;this[_0x27f8a9(0x170)][_0x27f8a9(0x2a5)]===0x0&&this[_0x27f8a9(0x30a)](),this[_0x27f8a9(0x170)][_0x27f8a9(0x1fd)](_0x3c9deb),this[_0x27f8a9(0x199)]({'type':0x0,'memberID':this[_0x27f8a9(0x3e0)],'unitIDs':[_0x3c9deb],'isForwarded':!0x1});}[_0x3c5b5e(0x17e)](_0x2bc611){const _0x1049ab=_0x3c5b5e;this['_selfUnitIDs']['delete'](_0x2bc611),this[_0x1049ab(0x170)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x1049ab(0x380)](this[_0x1049ab(0x214)]);}[_0x3c5b5e(0x3c8)](){const _0x111dcd=_0x3c5b5e;this[_0x111dcd(0x203)](a['toDisposable'](I[_0x111dcd(0x2ce)](window,_0x111dcd(0x185))['subscribe'](_0x2bdb13=>{const _0x14c0cd=_0x111dcd;if(_0x2bdb13[_0x14c0cd(0x15a)]!==Pe||!_0x2bdb13[_0x14c0cd(0x249)])return;const _0x5ee1f5=JSON[_0x14c0cd(0x24e)](_0x2bdb13[_0x14c0cd(0x249)]);this[_0x14c0cd(0x3b1)](_0x5ee1f5);}))),window[_0x111dcd(0x1f5)](_0x111dcd(0x359),()=>this[_0x111dcd(0x199)]({'type':0x1,'memberID':this[_0x111dcd(0x3e0)],'unitIDs':Array['from'](this[_0x111dcd(0x170)])}));}[_0x3c5b5e(0x3b1)](_0x37d87e){const _0x53e9db=_0x3c5b5e;switch(_0x37d87e[_0x53e9db(0x29c)]){case 0x0:this[_0x53e9db(0x169)](_0x37d87e);break;case 0x1:this['_handleLeaveEvent'](_0x37d87e);break;case 0x2:this['_handleHeartbeatEvent'](_0x37d87e);break;}}[_0x3c5b5e(0x169)](_0x3b00dd){const _0x26076c=_0x3c5b5e,{unitIDs:_0x3e1b85,memberID:_0x57b116,isForwarded:_0x13bcb7}=_0x3b00dd;_0x3e1b85[_0x26076c(0x1bb)](_0x757e9d=>{const _0x20bca1=_0x26076c;if(!_0x13bcb7&&this['_unitOnClients'][_0x20bca1(0x1ed)](_0x757e9d)&&this['_ensureSubject'](_0x757e9d)['next'](u[_0x20bca1(0x1c8)][_0x20bca1(0x39e)]),!this['_unitOnClients'][_0x20bca1(0x1ed)](_0x757e9d)||!this[_0x20bca1(0x34d)]['get'](_0x757e9d)[_0x20bca1(0x1ed)](_0x57b116)){const _0x81d3a=this[_0x20bca1(0x34d)][_0x20bca1(0x1a0)](_0x757e9d)||new Set();_0x81d3a[_0x20bca1(0x1fd)](_0x57b116),this[_0x20bca1(0x34d)][_0x20bca1(0x39b)](_0x757e9d,_0x81d3a),this[_0x20bca1(0x2d8)](_0x57b116);}}),_0x13bcb7||this[_0x26076c(0x199)]({'type':0x0,'memberID':this[_0x26076c(0x3e0)],'unitIDs':[...this[_0x26076c(0x170)]],'isForwarded':!0x0});}[_0x3c5b5e(0x2d8)](_0x11bf21){const _0x2f5c0e=_0x3c5b5e;this[_0x2f5c0e(0x281)](_0x11bf21);const _0x4ce4b0=window[_0x2f5c0e(0x254)](()=>{const _0x1f7c6d=_0x2f5c0e;this[_0x1f7c6d(0x34d)][_0x1f7c6d(0x1bb)](_0x166b97=>{const _0x4ec8ce=_0x1f7c6d;_0x166b97[_0x4ec8ce(0x263)](_0x11bf21);});},Ae*0x2);this[_0x2f5c0e(0x2e8)][_0x2f5c0e(0x39b)](_0x11bf21,_0x4ce4b0);}[_0x3c5b5e(0x281)](_0x2fc6d9){const _0x5e74dd=_0x3c5b5e;if(this[_0x5e74dd(0x2e8)][_0x5e74dd(0x1ed)](_0x2fc6d9)){const _0xb5550f=this[_0x5e74dd(0x2e8)]['get'](_0x2fc6d9);_0xb5550f&&window[_0x5e74dd(0x184)](_0xb5550f),this[_0x5e74dd(0x2e8)][_0x5e74dd(0x39b)](_0x2fc6d9,null);}}[_0x3c5b5e(0x397)](_0x34d30a){const {memberID:_0x399778,unitIDs:_0x2df04a}=_0x34d30a;_0x2df04a['forEach'](_0x4c45b2=>{const _0x4dac1b=_0x4dd1;var _0x3b44c2;const _0x383e99=this[_0x4dac1b(0x34d)][_0x4dac1b(0x1a0)](_0x4c45b2);_0x383e99&&(_0x383e99[_0x4dac1b(0x263)](_0x399778),(_0x3b44c2=this[_0x4dac1b(0x161)](_0x4c45b2))==null||_0x3b44c2[_0x4dac1b(0x310)](_0x383e99['size']===0x0?u[_0x4dac1b(0x1c8)][_0x4dac1b(0x21e)]:u['UnitStatus'][_0x4dac1b(0x39e)]));}),this['_removeClearOtherTimer'](_0x399778);}[_0x3c5b5e(0x3e7)](_0xb08675){const _0x469295=_0x3c5b5e;this['_scheduleClearOtherTimer'](_0xb08675[_0x469295(0x381)]);}[_0x3c5b5e(0x199)](_0x994b1d){const _0x3f514a=_0x3c5b5e;localStorage['setItem'](Pe,JSON[_0x3f514a(0x376)](_0x994b1d));}[_0x3c5b5e(0x30a)](){const _0x2c8b44=_0x3c5b5e;this[_0x2c8b44(0x214)]=window[_0x2c8b44(0x3c9)](()=>{const _0x595f26=_0x2c8b44;this['_send']({'type':0x2,'memberID':this[_0x595f26(0x3e0)]});},Ae);}[_0x3c5b5e(0x161)](_0x1cc83d){const _0x5bbf88=_0x3c5b5e;return this[_0x5bbf88(0x13d)][_0x5bbf88(0x1ed)](_0x1cc83d)||this[_0x5bbf88(0x13d)]['set'](_0x1cc83d,new I[(_0x5bbf88(0x3d7))](u['UnitStatus'][_0x5bbf88(0x21e)])),this[_0x5bbf88(0x13d)][_0x5bbf88(0x1a0)](_0x1cc83d);}}exports[_0x3c5b5e(0x3c1)]=pe,exports[_0x3c5b5e(0x256)]=Be,exports[_0x3c5b5e(0x2d2)]=us,exports[_0x3c5b5e(0x33c)]=Fe;
1
+ 'use strict';const _0x56cc55=_0x5cb8;(function(_0x1f753d,_0x3fe2f5){const _0x5e4edf=_0x5cb8,_0x53b6c2=_0x1f753d();while(!![]){try{const _0x149857=-parseInt(_0x5e4edf(0x1af))/0x1+-parseInt(_0x5e4edf(0x2dc))/0x2*(-parseInt(_0x5e4edf(0x2c8))/0x3)+-parseInt(_0x5e4edf(0x331))/0x4*(parseInt(_0x5e4edf(0x2af))/0x5)+parseInt(_0x5e4edf(0x377))/0x6+-parseInt(_0x5e4edf(0x11c))/0x7*(parseInt(_0x5e4edf(0x154))/0x8)+parseInt(_0x5e4edf(0x25c))/0x9*(parseInt(_0x5e4edf(0x183))/0xa)+parseInt(_0x5e4edf(0x114))/0xb*(-parseInt(_0x5e4edf(0x2e7))/0xc);if(_0x149857===_0x3fe2f5)break;else _0x53b6c2['push'](_0x53b6c2['shift']());}catch(_0x55e92b){_0x53b6c2['push'](_0x53b6c2['shift']());}}}(_0x2fa8,0x495ab));var Ve=Object['defineProperty'],Ge=(_0x16a59b,_0x46e14d,_0x2ed8ef)=>_0x46e14d in _0x16a59b?Ve(_0x16a59b,_0x46e14d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ed8ef}):_0x16a59b[_0x46e14d]=_0x2ed8ef,_=(_0x39a9b7,_0x1289a1,_0x5604cf)=>Ge(_0x39a9b7,typeof _0x1289a1!=_0x56cc55(0x27f)?_0x1289a1+'':_0x1289a1,_0x5604cf);Object['defineProperty'](exports,Symbol[_0x56cc55(0x34c)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),p=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x567ee1,..._0x24bf7b}){const _0x3faecc=_0x56cc55,{icon:_0x2105e8,id:_0x335f17,className:_0x3c9760,extend:_0x3a28e7,..._0x209fa6}=_0x24bf7b,_0x10c334=(_0x3faecc(0xf9)+_0x335f17+'\x20'+(_0x3c9760||''))[_0x3faecc(0x26a)](),_0xcb930e=A[_0x3faecc(0x2c1)]('_'+Je());return we(_0x2105e8,''+_0x335f17,{'defIds':_0x2105e8[_0x3faecc(0x266)],'idSuffix':_0xcb930e[_0x3faecc(0x2ac)]},{'ref':_0x567ee1,'className':_0x10c334,..._0x209fa6},_0x3a28e7);}function we(_0x2133d8,_0x1e659f,_0x1de5e0,_0x5de397,_0x4f4165){const _0x349b6a=_0x56cc55;return A[_0x349b6a(0x1c5)](_0x2133d8['tag'],{'key':_0x1e659f,...qe(_0x2133d8,_0x1de5e0,_0x4f4165),..._0x5de397},(ze(_0x2133d8,_0x1de5e0)[_0x349b6a(0x1ba)]||[])[_0x349b6a(0x195)]((_0x314fe0,_0x2c681f)=>we(_0x314fe0,_0x1e659f+'-'+_0x2133d8[_0x349b6a(0x11b)]+'-'+_0x2c681f,_0x1de5e0,void 0x0,_0x4f4165)));}function qe(_0x4afad1,_0xbf5959,_0x56b956){const _0x4bb9b3=_0x56cc55,_0x41c822={..._0x4afad1[_0x4bb9b3(0x33e)]};_0x56b956!=null&&_0x56b956[_0x4bb9b3(0x129)]&&_0x41c822['fill']===_0x4bb9b3(0x129)&&(_0x41c822[_0x4bb9b3(0x180)]=_0x56b956[_0x4bb9b3(0x129)]),_0x4afad1[_0x4bb9b3(0x11b)]===_0x4bb9b3(0x36f)&&_0x41c822['id']&&(_0x41c822['id']=_0x41c822['id']+_0xbf5959[_0x4bb9b3(0x208)]),Object['entries'](_0x41c822)['forEach'](([_0x53b3f7,_0x2fbc31])=>{const _0x51e23b=_0x4bb9b3;_0x53b3f7===_0x51e23b(0x36f)&&typeof _0x2fbc31==_0x51e23b(0x188)&&(_0x41c822[_0x53b3f7]=_0x2fbc31[_0x51e23b(0x240)](/url\(#(.*)\)/,_0x51e23b(0x1ac)+_0xbf5959[_0x51e23b(0x208)]+')'));});const {defIds:_0x45c94b}=_0xbf5959;return!_0x45c94b||_0x45c94b[_0x4bb9b3(0x38a)]===0x0||(_0x4afad1[_0x4bb9b3(0x11b)]===_0x4bb9b3(0x2c2)&&_0x41c822[_0x4bb9b3(0x19b)]&&(_0x41c822['xlink:href']=_0x41c822[_0x4bb9b3(0x19b)]+_0xbf5959[_0x4bb9b3(0x208)]),Object[_0x4bb9b3(0x2ad)](_0x41c822)[_0x4bb9b3(0x306)](([_0x36c921,_0x891988])=>{const _0x94abb2=_0x4bb9b3;typeof _0x891988==_0x94abb2(0x188)&&(_0x41c822[_0x36c921]=_0x891988[_0x94abb2(0x240)](/url\(#(.*)\)/,_0x94abb2(0x1ac)+_0xbf5959[_0x94abb2(0x208)]+')'));})),_0x41c822;}function ze(_0x5651fd,_0x56f7dc){const _0x55d2bf=_0x56cc55;var _0x164467;const {defIds:_0xba01a3}=_0x56f7dc;return!_0xba01a3||_0xba01a3[_0x55d2bf(0x38a)]===0x0?_0x5651fd:_0x5651fd[_0x55d2bf(0x11b)]===_0x55d2bf(0x2c3)&&((_0x164467=_0x5651fd[_0x55d2bf(0x1ba)])!=null&&_0x164467[_0x55d2bf(0x38a)])?{..._0x5651fd,'children':_0x5651fd['children']['map'](_0x4ebee4=>typeof _0x4ebee4['attrs']['id']==_0x55d2bf(0x188)&&_0xba01a3&&_0xba01a3[_0x55d2bf(0xfe)](_0x4ebee4[_0x55d2bf(0x33e)]['id'])?{..._0x4ebee4,'attrs':{..._0x4ebee4['attrs'],'id':_0x4ebee4[_0x55d2bf(0x33e)]['id']+_0x56f7dc[_0x55d2bf(0x208)]}}:_0x4ebee4)}:_0x5651fd;}function Je(){const _0x301ca5=_0x56cc55;return Math[_0x301ca5(0x231)]()[_0x301ca5(0x175)](0x24)[_0x301ca5(0x1a5)](0x2,0x8);}Ce[_0x56cc55(0x26b)]=_0x56cc55(0x38d);const Ze={'tag':_0x56cc55(0x2fa),'attrs':{'xmlns':_0x56cc55(0x376),'fill':_0x56cc55(0x2b3),'viewBox':'0\x200\x2016\x2016','width':_0x56cc55(0x123),'height':_0x56cc55(0x123)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x56cc55(0xe5),'d':_0x56cc55(0x1d7),'strokeLinecap':_0x56cc55(0x25e),'strokeLinejoin':_0x56cc55(0x25e),'strokeWidth':1.2}}]},{'tag':_0x56cc55(0x2c3),'attrs':{},'children':[{'tag':_0x56cc55(0x1d6),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x56cc55(0x10f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=A[_0x56cc55(0x13e)](function(_0x3baac3,_0x2dd8d2){const _0x2f58fc=_0x56cc55;return A[_0x2f58fc(0x1c5)](Ce,Object[_0x2f58fc(0x15f)]({},_0x3baac3,{'id':_0x2f58fc(0x151),'ref':_0x2dd8d2,'icon':Ze}));});ye[_0x56cc55(0x26b)]=_0x56cc55(0x256);const Qe={'tag':_0x56cc55(0x2fa),'attrs':{'xmlns':_0x56cc55(0x376),'fill':'none','viewBox':_0x56cc55(0x33b),'width':_0x56cc55(0x123),'height':_0x56cc55(0x123)},'children':[{'tag':'g','attrs':{'clipPath':_0x56cc55(0x22b)},'children':[{'tag':_0x56cc55(0x31b),'attrs':{'stroke':_0x56cc55(0xe5),'d':_0x56cc55(0x1dc),'strokeLinecap':_0x56cc55(0x25e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x56cc55(0x2c3),'attrs':{},'children':[{'tag':_0x56cc55(0x1d6),'attrs':{'id':_0x56cc55(0x220)},'children':[{'tag':_0x56cc55(0x31b),'attrs':{'fill':_0x56cc55(0x179),'d':'M0\x200H16V16H0z','transform':_0x56cc55(0x1fe)}}]}]}],'defIds':[_0x56cc55(0x220)]},$e=A[_0x56cc55(0x13e)](function(_0x3faf9e,_0x2b5d11){const _0x4d3572=_0x56cc55;return A[_0x4d3572(0x1c5)](Ce,Object[_0x4d3572(0x15f)]({},_0x3faf9e,{'id':'on-line-icon','ref':_0x2b5d11,'icon':Qe}));});$e['displayName']=_0x56cc55(0x105);function _0x5cb8(_0x1dd51b,_0x59611f){const _0x2fa816=_0x2fa8();return _0x5cb8=function(_0x5cb81c,_0x36ff81){_0x5cb81c=_0x5cb81c-0xd2;let _0x2ff82a=_0x2fa816[_0x5cb81c];return _0x2ff82a;},_0x5cb8(_0x1dd51b,_0x59611f);}function et(_0x2d63ad){const _0x33d064=_0x56cc55;switch(_0x2d63ad){case u[_0x33d064(0x2ef)][_0x33d064(0x29d)]:return _0x33d064(0x14e);case u[_0x33d064(0x2ef)][_0x33d064(0x2b8)]:return _0x33d064(0x1c1);case u['CollaborationStatus'][_0x33d064(0x19f)]:return _0x33d064(0x23d);case u[_0x33d064(0x2ef)][_0x33d064(0x2ff)]:return _0x33d064(0xe2);case u[_0x33d064(0x2ef)][_0x33d064(0x336)]:case u[_0x33d064(0x2ef)][_0x33d064(0x275)]:return _0x33d064(0x362);case u[_0x33d064(0x2ef)][_0x33d064(0xef)]:case u['CollaborationStatus'][_0x33d064(0x176)]:return _0x33d064(0x159);}}function tt(_0x1ca1fa){const _0x54e4e4=_0x56cc55,{status$:_0x52b60a}=_0x1ca1fa,_0x2a8112=O[_0x54e4e4(0x141)](_0x52b60a,u['CollaborationStatus'][_0x54e4e4(0x2ff)]),_0x4e2b09=O[_0x54e4e4(0x143)](a[_0x54e4e4(0x1f2)]),_0x458cae=O['useDependency'](u['CollaborationSessionService']),_0x288deb=_0x2a8112!==u[_0x54e4e4(0x2ef)][_0x54e4e4(0x29d)],_0x2a79fa=_0x4e2b09['t'](et(_0x2a8112)),_0x1c97fa=_0x288deb?M[_0x54e4e4(0x134)]($e,{}):M[_0x54e4e4(0x134)](ye,{}),_0x398ca5=A[_0x54e4e4(0x1df)](()=>{_0x288deb||_0x458cae['reconnect']();},[_0x288deb,_0x458cae]);function _0x4e05a9(){const _0x1bf20e=_0x54e4e4;return M['jsxs'](_0x1bf20e(0x160),{'className':_0x1bf20e(0x34a),'onClick':_0x398ca5,'children':[M[_0x1bf20e(0x134)](_0x1bf20e(0x160),{'className':T['clsx'](_0x1bf20e(0x27e),{'univer-text-green-500':_0x288deb,'univer-text-red-500':!_0x288deb}),'children':_0x1c97fa}),M[_0x1bf20e(0x134)](_0x1bf20e(0x160),{'className':_0x1bf20e(0x37b),'children':_0x2a79fa})]});}return _0x288deb?_0x4e05a9():M[_0x54e4e4(0x134)](T[_0x54e4e4(0x29e)],{'title':_0x4e2b09['t'](_0x54e4e4(0x109)),'children':_0x4e05a9()});}var st=Object['getOwnPropertyDescriptor'],it=(_0x2301bc,_0x3f46b6,_0x5eda45,_0x13af4f)=>{const _0x1085d1=_0x56cc55;for(var _0x3728aa=_0x13af4f>0x1?void 0x0:_0x13af4f?st(_0x3f46b6,_0x5eda45):_0x3f46b6,_0x518302=_0x2301bc[_0x1085d1(0x38a)]-0x1,_0x2c1327;_0x518302>=0x0;_0x518302--)(_0x2c1327=_0x2301bc[_0x518302])&&(_0x3728aa=_0x2c1327(_0x3728aa)||_0x3728aa);return _0x3728aa;},K=(_0x3b860f,_0x28bb32)=>(_0x4a9a81,_0x14130e)=>_0x28bb32(_0x4a9a81,_0x14130e,_0x3b860f);exports[_0x56cc55(0x2fd)]=class extends a[_0x56cc55(0x30f)]{constructor(_0x2982e0,_0x3ab163,_0x57c1a3,_0x2b9d04){const _0x3f3896=_0x56cc55;super(),_(this,_0x3f3896(0x1ce),new I[(_0x3f3896(0x1b2))](u[_0x3f3896(0x2ef)][_0x3f3896(0x2ff)])),(this[_0x3f3896(0x389)]=_0x2982e0,this[_0x3f3896(0x18a)]=_0x3ab163,this[_0x3f3896(0x2fb)]=_0x57c1a3,this[_0x3f3896(0x305)]=_0x2b9d04,this[_0x3f3896(0x1ec)](),this['_initStatusListener']());}[_0x56cc55(0x117)](){const _0x1ccad9=_0x56cc55;this['disposeWithMe'](this['_univerInstanceService']['focused$']['pipe'](I[_0x1ccad9(0x261)](()=>{const _0x732b48=_0x1ccad9,_0x3e8e0d=this[_0x732b48(0x389)][_0x732b48(0x116)]();return _0x3e8e0d?this[_0x732b48(0x2fb)]['getCollabEntity$'](_0x3e8e0d['getUnitId']()):I['of'](null);}),I[_0x1ccad9(0x261)](_0x41d870=>_0x41d870?_0x41d870[_0x1ccad9(0x270)]:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x1ccad9(0xdc)](_0x56f4f4=>{const _0x5d6a7e=_0x1ccad9;this[_0x5d6a7e(0x1ce)]['next'](_0x56f4f4);}));}[_0x56cc55(0x1ec)](){const _0x2bb917=_0x56cc55;this['disposeWithMe'](this[_0x2bb917(0x305)][_0x2bb917(0x174)](O['BuiltInUIPart'][_0x2bb917(0x36c)],()=>O['connectInjector'](nt({'status$':this[_0x2bb917(0x1ce)][_0x2bb917(0x2a2)]()}),this['_injector'])));}},exports[_0x56cc55(0x2fd)]=it([K(0x0,a[_0x56cc55(0x211)]),K(0x1,a[_0x56cc55(0x32f)](a['Injector'])),K(0x2,a[_0x56cc55(0x32f)](u[_0x56cc55(0x198)])),K(0x3,O[_0x56cc55(0x269)])],exports[_0x56cc55(0x2fd)]);function nt(_0x2458db){const {status$:_0xe4eda8}=_0x2458db;return function(){return M['jsx'](tt,{'status$':_0xe4eda8});};}const pe=a[_0x56cc55(0x229)](_0x56cc55(0x247));var rt=Object['getOwnPropertyDescriptor'],ot=(_0x957279,_0x3068d8,_0x546018,_0xa99a3d)=>{const _0x26e2d4=_0x56cc55;for(var _0x2d2a33=_0xa99a3d>0x1?void 0x0:_0xa99a3d?rt(_0x3068d8,_0x546018):_0x3068d8,_0x5f28ca=_0x957279[_0x26e2d4(0x38a)]-0x1,_0x16d969;_0x5f28ca>=0x0;_0x5f28ca--)(_0x16d969=_0x957279[_0x5f28ca])&&(_0x2d2a33=_0x16d969(_0x2d2a33)||_0x2d2a33);return _0x2d2a33;},j=(_0x146338,_0x30c71b)=>(_0x180282,_0x580dd1)=>_0x30c71b(_0x180282,_0x580dd1,_0x146338);exports[_0x56cc55(0x12d)]=class extends a[_0x56cc55(0x19c)]{constructor(_0x27ce7e,_0x2b3645,_0x275d2c,_0x59403e,_0x223c8e){const _0x6a678=_0x56cc55;super(),this[_0x6a678(0xfa)]=_0x27ce7e,this[_0x6a678(0x36e)]=_0x2b3645,this[_0x6a678(0x226)]=_0x275d2c,this[_0x6a678(0x25d)]=_0x59403e,_0x223c8e?_0x223c8e==null||_0x223c8e[_0x6a678(0x350)]()['then'](()=>this['_init']()):(this[_0x6a678(0x36e)][_0x6a678(0x1dd)](_0x6a678(0x1b8),_0x6a678(0x283)),this[_0x6a678(0x10e)]());}async[_0x56cc55(0x10e)](){const _0x41484d=_0x56cc55,_0x31c1d4=this[_0x41484d(0xfa)][_0x41484d(0x259)](_0x41484d(0x2d7)),_0x1ebd26=this['_urlService'][_0x41484d(0x259)](_0x41484d(0x106)),_0x180795=this['_urlService'][_0x41484d(0x259)](_0x41484d(0x1fc));if(!_0x31c1d4||!_0x1ebd26){this[_0x41484d(0x36e)]['debug']('[CollaborationDataLoaderController]',_0x41484d(0x10c));return;}const _0x576952=await this[_0x41484d(0x25d)]['loadUnit'](_0x31c1d4,Number(_0x1ebd26),_0x180795);_0x576952&&_0x576952 instanceof a[_0x41484d(0x241)]&&this[_0x41484d(0xff)](_0x576952);}async[_0x56cc55(0xff)](_0x3391cb){const _0x555263=_0x56cc55;await this[_0x555263(0x32a)](_0x3391cb),_0x3391cb[_0x555263(0x29a)]['pipe'](I[_0x555263(0x2b9)](this[_0x555263(0x390)]))['subscribe'](_0x205091=>{_0x205091&&this['_updateURLWithCurrentState'](_0x205091);}),this[_0x555263(0xfa)][_0x555263(0x112)][_0x555263(0x1ad)](I[_0x555263(0x2b9)](this['dispose$']))[_0x555263(0xdc)](()=>this[_0x555263(0x32a)](_0x3391cb));}['_updateURLWithCurrentState'](_0x220132,_0x463c37=!0x1){const _0x11f75f=_0x56cc55,_0x35e2ff=this[_0x11f75f(0xfa)][_0x11f75f(0x259)](_0x11f75f(0x1fc));_0x220132['getSheetId']()!==_0x35e2ff&&this[_0x11f75f(0xfa)][_0x11f75f(0x1b6)]('subunit',_0x220132[_0x11f75f(0x343)](),_0x463c37);}async[_0x56cc55(0x32a)](_0x404b10){const _0x4e2209=_0x56cc55;var _0x288a52;const _0x84031=this['_urlService'][_0x4e2209(0x259)](_0x4e2209(0x1fc));if(!_0x84031||!_0x404b10[_0x4e2209(0x17c)](_0x84031)){const _0x33b7d1=_0x404b10[_0x4e2209(0x353)]()[0x0],_0x2f8282=_0x404b10[_0x4e2209(0x17c)](_0x33b7d1);if(!_0x2f8282)return;this[_0x4e2209(0x1d5)](_0x2f8282,!0x0),await this[_0x4e2209(0x226)]['executeCommand'](g[_0x4e2209(0x232)]['id'],{'unitId':_0x404b10[_0x4e2209(0x28b)](),'subUnitId':_0x33b7d1});return;}((_0x288a52=_0x404b10[_0x4e2209(0x2c7)]())==null?void 0x0:_0x288a52[_0x4e2209(0x343)]())!==_0x84031&&await this[_0x4e2209(0x226)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x404b10['getUnitId'](),'subUnitId':_0x84031});}},exports[_0x56cc55(0x12d)]=ot([j(0x0,pe),j(0x1,a['ILogService']),j(0x2,a[_0x56cc55(0x1d2)]),j(0x3,a[_0x56cc55(0x32f)](u[_0x56cc55(0x244)])),j(0x4,a[_0x56cc55(0x2e9)](Xe[_0x56cc55(0x291)]))],exports['CollaborationDataLoaderController']);var at=Object['getOwnPropertyDescriptor'],ct=(_0x3e81f0,_0x1e9ae1,_0x37bc0b,_0x52ff77)=>{const _0x40fd3c=_0x56cc55;for(var _0x2261e9=_0x52ff77>0x1?void 0x0:_0x52ff77?at(_0x1e9ae1,_0x37bc0b):_0x1e9ae1,_0x303e64=_0x3e81f0[_0x40fd3c(0x38a)]-0x1,_0x1ccc0f;_0x303e64>=0x0;_0x303e64--)(_0x1ccc0f=_0x3e81f0[_0x303e64])&&(_0x2261e9=_0x1ccc0f(_0x2261e9)||_0x2261e9);return _0x2261e9;},Re=(_0x39683d,_0x48b76c)=>(_0x4eb4d2,_0x521df8)=>_0x48b76c(_0x4eb4d2,_0x521df8,_0x39683d);let de=class extends a['RxDisposable']{constructor(_0x344b6f,_0x1bb258){const _0x30f0cf=_0x56cc55;super(),this[_0x30f0cf(0x126)]=_0x344b6f,this[_0x30f0cf(0x152)]=_0x1bb258,this[_0x30f0cf(0x10e)]();}['_init'](){const _0x1ada62=_0x56cc55,_0xe3460a=this;this[_0x1ada62(0x303)](this[_0x1ada62(0x126)][_0x1ada62(0x17a)]({'onBeforePasteImage':async _0x31cef4=>{const _0x285707=_0x1ada62,_0x237d99=await _0xe3460a[_0x285707(0x152)]['saveImage'](_0x31cef4);return _0x237d99?{'source':_0x237d99['source'],'imageSourceType':_0x237d99[_0x285707(0x260)]}:null;}}));}};de=ct([Re(0x0,p[_0x56cc55(0x280)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0x56cc55(0x37e),'jiqing.500',_0x56cc55(0x124),_0x56cc55(0x127),_0x56cc55(0x1b7),_0x56cc55(0x2f6)];class Te extends a[_0x56cc55(0x30f)]{constructor(){const _0x26641a=_0x56cc55;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x26641a(0x21a),0x0);}['assignAColorForMemberID'](_0x43d8a6){const _0x7d533d=_0x56cc55;if(this[_0x7d533d(0x323)]['has'](_0x43d8a6))return this[_0x7d533d(0x323)]['get'](_0x43d8a6);const _0x549259=be[this[_0x7d533d(0x21a)]];return this[_0x7d533d(0x21a)]=(this['_colorIndex']+0x1)%be[_0x7d533d(0x38a)],this[_0x7d533d(0x323)][_0x7d533d(0x22d)](_0x43d8a6,_0x549259),_0x549259;}}function xe(_0x28eeff){let _0x168abc='';for(const _0x2b7905 of _0x28eeff){const {startOffset:_0x25f6d6,endOffset:_0x4594d5,isActive:_0x4b89fb,rangeType:_0x44a41b,segmentId:_0x2dfe5e,segmentPage:_0x5d1f84}=_0x2b7905;_0x168abc['length']&&(_0x168abc+=','),_0x168abc+=_0x25f6d6+':'+_0x4594d5+':'+(_0x4b89fb?'1':'0')+':'+_0x44a41b+':'+_0x2dfe5e+':'+_0x5d1f84;}return _0x168abc;}function lt(_0x4a5441){const _0x1b9096=_0x56cc55,_0x4fb701=_0x4a5441[_0x1b9096(0x197)](','),_0x10b81b=[];for(const _0x869ec9 of _0x4fb701){const [_0x424762,_0x367550,_0x421da2,_0x1c77b4,_0x432e0b,_0x104d70]=_0x869ec9['split'](':');_0x10b81b['push']({'startOffset':Number(_0x424762),'endOffset':Number(_0x367550),'collapsed':_0x424762===_0x367550,'isActive':_0x421da2==='1','rangeType':_0x1c77b4===a[_0x1b9096(0x264)][_0x1b9096(0x1cf)]?a[_0x1b9096(0x264)][_0x1b9096(0x1cf)]:a[_0x1b9096(0x264)][_0x1b9096(0x147)],'segmentId':typeof _0x432e0b=='string'?String(_0x432e0b):'','segmentPage':Number(_0x104d70!=null?_0x104d70:-0x1)});}return _0x10b81b[_0x1b9096(0x30b)](_0x4a9c25=>_0x4a9c25['isActive'])||(_0x10b81b[0x0][_0x1b9096(0x2f0)]=!0x0),_0x10b81b;}class Oe extends a[_0x56cc55(0x19c)]{constructor(){const _0x243272=_0x56cc55;super(...arguments),_(this,_0x243272(0x2e5),new I[(_0x243272(0x1b2))](null)),_(this,'collabCursorState$',this[_0x243272(0x2e5)][_0x243272(0x2a2)]());}[_0x56cc55(0x2aa)](_0x1c09bd){const _0x23a927=_0x56cc55,{unitID:_0x3d7d21,memberID:_0xef2d20,textRanges:_0x4c520c}=_0x1c09bd,_0x193f3b=xe(_0x4c520c);if(_0x193f3b==='')return;const _0x546c4e={'unitID':_0x3d7d21,'memberID':_0xef2d20,'selection':_0x193f3b};this[_0x23a927(0x2e5)][_0x23a927(0x380)](_0x546c4e);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x4c7e60,_0x61f445,_0xe5999,_0x27e812)=>{const _0x378bd4=_0x56cc55;for(var _0x1a4ea9=_0x27e812>0x1?void 0x0:_0x27e812?_t(_0x61f445,_0xe5999):_0x61f445,_0x5ede49=_0x4c7e60[_0x378bd4(0x38a)]-0x1,_0x2fe7e6;_0x5ede49>=0x0;_0x5ede49--)(_0x2fe7e6=_0x4c7e60[_0x5ede49])&&(_0x1a4ea9=_0x2fe7e6(_0x1a4ea9)||_0x1a4ea9);return _0x1a4ea9;},U=(_0xc7c3d4,_0x2a0ad9)=>(_0x57f7ab,_0x41d224)=>_0x2a0ad9(_0x57f7ab,_0x41d224,_0xc7c3d4);const ut=0x12c,It=0x64;let fe=class extends a[_0x56cc55(0x19c)]{constructor(_0xbba773,_0x500b59,_0x208eaa,_0x36b665,_0x98be77,_0x4933d6,_0x2a0f78,_0x1d3da9,_0x231fb1){const _0xa618aa=_0x56cc55;super(),_(this,_0xa618aa(0x2f4),!0x1),_(this,'_init',!0x1),_(this,_0xa618aa(0x18f),new I['BehaviorSubject'](new Map())),_(this,_0xa618aa(0x248),this['_cursorInfo$']['asObservable']()),_(this,_0xa618aa(0x153),new I['BehaviorSubject']([])),_(this,'roomMembers$',this['_roomMembers$'][_0xa618aa(0x1ad)](I['debounceTime'](ut))),_(this,_0xa618aa(0x18e),a['debounce'](_0x58a8e7=>{const _0x162ff5=_0xa618aa,_0x52a818={'eventID':v['CollaborationEvent'][_0x162ff5(0xf4)],'data':{'unitID':this[_0x162ff5(0x1ef)],'memberID':this[_0x162ff5(0x24e)][_0x162ff5(0x2e8)](),'selection':xe(_0x58a8e7)}};this['_session']['send'](_0x52a818,this[_0x162ff5(0x1ef)]);},It)),(this[_0xa618aa(0x1ef)]=_0xbba773,this[_0xa618aa(0x24e)]=_0x500b59,this[_0xa618aa(0x18a)]=_0x208eaa,this[_0xa618aa(0x2ba)]=_0x36b665,this['_memberService']=_0x98be77,this['_syncEditingCollabCursorService']=_0x4933d6,this[_0xa618aa(0x358)]=_0x2a0f78,this['_univerInstanceService']=_0x1d3da9,this['_commandService']=_0x231fb1);}get[_0x56cc55(0x1b9)](){const _0x40051c=_0x56cc55;return this[_0x40051c(0x18f)][_0x40051c(0x31d)]();}get[_0x56cc55(0x1aa)](){const _0x1cfb66=_0x56cc55;return this[_0x1cfb66(0x153)]['getValue']();}['dispose'](){const _0x45784f=_0x56cc55;super['dispose'](),this[_0x45784f(0x18f)][_0x45784f(0x380)](new Map()),this[_0x45784f(0x18f)][_0x45784f(0x36a)](),this[_0x45784f(0x153)][_0x45784f(0x380)]([]),this[_0x45784f(0x153)][_0x45784f(0x36a)]();}[_0x56cc55(0x101)](){const _0x303e1f=_0x56cc55;this['_init']||(this['_init']=!0x0,this[_0x303e1f(0x24e)][_0x303e1f(0x364)][_0x303e1f(0x1ad)](I[_0x303e1f(0x2b9)](this[_0x303e1f(0x390)]))[_0x303e1f(0xdc)](_0x13faa5=>{const _0x3e31ef=_0x303e1f;_0x13faa5===u['SessionStatus'][_0x3e31ef(0x2b1)]?this[_0x3e31ef(0x218)]():this[_0x3e31ef(0x16b)]();}),this[_0x303e1f(0x24e)][_0x303e1f(0x1ff)][_0x303e1f(0x1ad)](I['takeUntil'](this['dispose$']))[_0x303e1f(0xdc)](_0x1a60ef=>{const _0x566386=_0x303e1f,_0x50d283=_0x1a60ef[_0x566386(0x2cc)];_0x50d283===v[_0x566386(0x237)]['UPDATE_CURSOR']&&this[_0x566386(0x28d)](_0x1a60ef),_0x50d283===v['CollaborationEvent'][_0x566386(0x235)]&&this['_onCursorDelete'](_0x1a60ef);}),this[_0x303e1f(0x303)](this['_commandService'][_0x303e1f(0x11d)](_0xe31cdb=>{const _0x4f892b=_0x303e1f,_0x369604=_0xe31cdb[_0x4f892b(0x2d8)];_0x369604!=null&&this[_0x4f892b(0x2f4)]&&_0xe31cdb['id']===W[_0x4f892b(0x34d)]['id']&&_0x369604[_0x4f892b(0x1cb)]===this['unitID']&&_0x369604[_0x4f892b(0x1be)]===!0x1&&_0x369604[_0x4f892b(0x292)]['length']>0x0&&this['_updateLocalCursor'](_0x369604[_0x4f892b(0x292)]);})),this[_0x303e1f(0x28a)][_0x303e1f(0x1cc)]['pipe'](I[_0x303e1f(0x2b9)](this[_0x303e1f(0x390)]))[_0x303e1f(0xdc)](_0x55a09c=>{const _0x37354e=_0x303e1f;if((_0x55a09c==null?void 0x0:_0x55a09c[_0x37354e(0x1ef)])!==this[_0x37354e(0x1ef)])return;const _0x5befba={'eventID':v[_0x37354e(0x237)][_0x37354e(0xf4)],'data':_0x55a09c};this[_0x37354e(0x28d)](_0x5befba);}),this[_0x303e1f(0x303)](this[_0x303e1f(0x226)][_0x303e1f(0x11d)](_0x20d624=>{const _0x29645e=_0x303e1f;if(_0x20d624[_0x29645e(0x2d8)]==null)return;const _0x39d8d6=_0x20d624[_0x29645e(0x2d8)];if(_0x20d624['id']!==W[_0x29645e(0x341)]['id']||_0x39d8d6['unitId']!==this[_0x29645e(0x1ef)])return;const _0x4a1b33={'id':_0x29645e(0xf6),'params':_0x39d8d6},_0x364145=this[_0x29645e(0x1b9)];for(const [_0x30a080,_0x328969]of _0x364145){const _0x52ce5e={'id':_0x29645e(0xf6),'params':{'unitId':this[_0x29645e(0x1ef)],'actions':null,'textRanges':_0x328969['ranges']}},_0x312893=this['_transformService']['transformMutation'](_0x4a1b33,_0x52ce5e,!0x1);if(v[_0x29645e(0x1e1)](_0x312893))throw _0x312893['error'];_0x364145[_0x29645e(0x22d)](_0x30a080,{..._0x328969,'ranges':_0x312893[_0x29645e(0x2a3)]['params']['textRanges']});}queueMicrotask(()=>{const _0x22adaa=_0x29645e;this[_0x22adaa(0x18f)][_0x22adaa(0x380)](_0x364145);});})));}[_0x56cc55(0x28d)](_0x58396f){const _0x1186a4=_0x56cc55;var _0x47d08d,_0x4a39c7;const {memberID:_0x2bbfc1,selection:_0x2767ba}=_0x58396f[_0x1186a4(0x206)],_0x16a8b8=lt(_0x2767ba),_0x3c2b90=(_0x4a39c7=(_0x47d08d=this['_memberService'][_0x1186a4(0x31e)](this[_0x1186a4(0x1ef)],_0x2bbfc1))==null?void 0x0:_0x47d08d[_0x1186a4(0x1eb)])!=null?_0x4a39c7:_0x1186a4(0x304),_0x3ed852={'color':this[_0x1186a4(0x2ba)][_0x1186a4(0x16d)](_0x2bbfc1),'name':_0x3c2b90,'ranges':_0x16a8b8},_0x3b015e=this[_0x1186a4(0x1b9)];_0x3b015e[_0x1186a4(0x22d)](_0x2bbfc1,_0x3ed852),this[_0x1186a4(0x18f)][_0x1186a4(0x380)](_0x3b015e);}[_0x56cc55(0x30a)](_0x295553){const _0x36c405=_0x56cc55,{memberID:_0x2a2499}=_0x295553[_0x36c405(0x206)],_0x100181=this[_0x36c405(0x1b9)];_0x100181['delete'](_0x2a2499),this[_0x36c405(0x18f)][_0x36c405(0x380)](_0x100181);}['_toggleOnline'](){const _0x4dc84d=_0x56cc55;var _0x3db6d8;if(this[_0x4dc84d(0x2f4)]=!0x0,((_0x3db6d8=this[_0x4dc84d(0x389)]['getFocusedUnit']())==null?void 0x0:_0x3db6d8[_0x4dc84d(0x28b)]())!==this[_0x4dc84d(0x1ef)])return;const _0x12461b=this['_injector']['get'](W[_0x4dc84d(0x29f)])[_0x4dc84d(0x19d)]();Array['isArray'](_0x12461b)&&_0x12461b['length']>0x0&&this[_0x4dc84d(0x18e)](_0x12461b);}[_0x56cc55(0x16b)](){const _0x27fd8a=_0x56cc55;this[_0x27fd8a(0x2f4)]=!0x1;}};fe=ht([U(0x2,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),U(0x3,a[_0x56cc55(0x32f)](Te)),U(0x4,a[_0x56cc55(0x32f)](u[_0x56cc55(0x296)])),U(0x5,a[_0x56cc55(0x32f)](Oe)),U(0x6,v['ITransformService']),U(0x7,a[_0x56cc55(0x211)]),U(0x8,a[_0x56cc55(0x1d2)])],fe);var St=Object[_0x56cc55(0x369)],dt=(_0x39d90d,_0x22202c,_0x5792cf,_0x49e231)=>{const _0x24b86f=_0x56cc55;for(var _0x15056c=_0x49e231>0x1?void 0x0:_0x49e231?St(_0x22202c,_0x5792cf):_0x22202c,_0x50e975=_0x39d90d[_0x24b86f(0x38a)]-0x1,_0x45172e;_0x50e975>=0x0;_0x50e975--)(_0x45172e=_0x39d90d[_0x50e975])&&(_0x15056c=_0x45172e(_0x15056c)||_0x15056c);return _0x15056c;},w=(_0x3a8295,_0x50842d)=>(_0x2e3f87,_0x52ef06)=>_0x50842d(_0x2e3f87,_0x52ef06,_0x3a8295);const ft=0x12c,mt=0x64,gt=()=>{let _0x31cda9=[],_0x4f9744=!0x1;return _0x32866a=>{const _0x58601e=_0x5cb8;_0x31cda9[_0x58601e(0xf5)](_0x32866a),_0x4f9744||(_0x4f9744=!0x0,setTimeout(()=>{const _0x31d91c=_0x58601e;_0x31cda9[_0x31d91c(0x306)](_0x2fcbad=>_0x2fcbad()),_0x31cda9=[],_0x4f9744=!0x1;}));};};let me=class extends a[_0x56cc55(0x19c)]{constructor(_0x401acb,_0x203927,_0x2739f4,_0x1cb7cf,_0x2f71d1,_0x71301,_0x42c734,_0x5ba247){const _0x32bab2=_0x56cc55;super(),_(this,_0x32bab2(0x2f4),!0x1),_(this,_0x32bab2(0x10e),!0x1),_(this,_0x32bab2(0x18f),new I['BehaviorSubject'](new Map())),_(this,_0x32bab2(0x248),this['_cursorInfo$'][_0x32bab2(0x2a2)]()),_(this,'_roomMembers$',new I[(_0x32bab2(0x1b2))]([])),_(this,'roomMembers$',this[_0x32bab2(0x153)][_0x32bab2(0x1ad)](I[_0x32bab2(0x29b)](ft))),_(this,_0x32bab2(0x18e),a[_0x32bab2(0x140)]((_0x88b4a9,_0x31ec21)=>{const _0x2bd3a4=_0x32bab2,_0x1fabc2={'eventID':v[_0x2bd3a4(0x237)][_0x2bd3a4(0xf4)],'data':{'unitID':this[_0x2bd3a4(0x1ef)],'memberID':this[_0x2bd3a4(0x24e)][_0x2bd3a4(0x2e8)](),'selection':x[_0x2bd3a4(0x1e8)](_0x88b4a9,_0x31ec21[_0x2bd3a4(0x119)])}};this[_0x2bd3a4(0x24e)][_0x2bd3a4(0x285)](_0x1fabc2,this[_0x2bd3a4(0x1ef)]);},mt)),(this[_0x32bab2(0x1ef)]=_0x401acb,this[_0x32bab2(0x24e)]=_0x203927,this[_0x32bab2(0x18a)]=_0x2739f4,this[_0x32bab2(0x2ba)]=_0x1cb7cf,this[_0x32bab2(0x193)]=_0x2f71d1,this[_0x32bab2(0x389)]=_0x71301,this['_commandService']=_0x42c734,this[_0x32bab2(0x128)]=_0x5ba247);}get[_0x56cc55(0x1b9)](){const _0x5ddc7b=_0x56cc55;return this['_cursorInfo$'][_0x5ddc7b(0x31d)]();}get[_0x56cc55(0x1aa)](){const _0x4ae55d=_0x56cc55;return this[_0x4ae55d(0x153)][_0x4ae55d(0x31d)]();}[_0x56cc55(0x236)](){const _0x1b9267=_0x56cc55;super[_0x1b9267(0x236)](),this[_0x1b9267(0x18f)][_0x1b9267(0x380)](new Map()),this[_0x1b9267(0x18f)][_0x1b9267(0x36a)](),this['_roomMembers$'][_0x1b9267(0x380)]([]),this[_0x1b9267(0x153)][_0x1b9267(0x36a)]();}[_0x56cc55(0x101)](){const _0x5a712a=_0x56cc55;this[_0x5a712a(0x10e)]||(this[_0x5a712a(0x10e)]=!0x0,this[_0x5a712a(0x24e)]['sessionStatus$']['pipe'](I[_0x5a712a(0x2b9)](this[_0x5a712a(0x390)]))['subscribe'](_0x9c9f01=>{const _0x42ef7f=_0x5a712a;_0x9c9f01===u['SessionStatus']['ONLINE']?this[_0x42ef7f(0x218)]():this[_0x42ef7f(0x16b)]();}),this['_session']['event$'][_0x5a712a(0x1ad)](I[_0x5a712a(0x2b9)](this['dispose$']))[_0x5a712a(0xdc)](_0xc4ef01=>{const _0x1ff0dd=_0x5a712a,_0x27195f=_0xc4ef01[_0x1ff0dd(0x2cc)];_0x27195f===v[_0x1ff0dd(0x237)][_0x1ff0dd(0xf4)]&&this[_0x1ff0dd(0x28d)](_0xc4ef01),_0x27195f===v['CollaborationEvent'][_0x1ff0dd(0x235)]&&this[_0x1ff0dd(0x30a)](_0xc4ef01);}),this[_0x5a712a(0x2d1)](),this[_0x5a712a(0x303)](this[_0x5a712a(0x226)][_0x5a712a(0x11d)](_0x5c15c5=>{const _0x52e9ee=_0x5a712a;if(this[_0x52e9ee(0x2f4)]&&_0x5c15c5['id']===g[_0x52e9ee(0x32e)]['id']&&_0x5c15c5[_0x52e9ee(0x2d8)][_0x52e9ee(0x1cb)]===this[_0x52e9ee(0x1ef)]){const _0x420cb5=_0x5c15c5['params'];this[_0x52e9ee(0x18e)](_0x420cb5[_0x52e9ee(0x2e3)],_0x420cb5[_0x52e9ee(0x28e)][0x0]);}})));}[_0x56cc55(0x28d)](_0x2d6b39){const _0x4898d0=_0x56cc55;var _0x4a0a4b,_0x4617a2;const {memberID:_0x1d20fa,selection:_0x77cc90}=_0x2d6b39[_0x4898d0(0x206)],{sheetName:_0x5f357c,range:_0x48649a}=x['deserializeRangeWithSheet'](_0x77cc90),_0x43c392={'name':(_0x4617a2=(_0x4a0a4b=this[_0x4898d0(0x193)][_0x4898d0(0x31e)](this[_0x4898d0(0x1ef)],_0x1d20fa))==null?void 0x0:_0x4a0a4b['name'])!=null?_0x4617a2:_0x4898d0(0x304),'range':this[_0x4898d0(0x356)](_0x5f357c,_0x48649a),'sheetID':_0x5f357c,'color':this['_colorAssignService'][_0x4898d0(0x16d)](_0x1d20fa),'selection':_0x77cc90},_0x2d09a1=this[_0x4898d0(0x1b9)];_0x2d09a1[_0x4898d0(0x22d)](_0x1d20fa,_0x43c392),this[_0x4898d0(0x18f)]['next'](_0x2d09a1);}['_onCursorDelete'](_0x161bd8){const _0x1f0ae1=_0x56cc55,{memberID:_0x160210}=_0x161bd8[_0x1f0ae1(0x206)],_0x4fe450=this[_0x1f0ae1(0x1b9)];_0x4fe450['delete'](_0x160210),this[_0x1f0ae1(0x18f)][_0x1f0ae1(0x380)](_0x4fe450);}['_getMergeRange'](_0x38a3d2,_0x54910f){const _0x35d69d=_0x56cc55;var _0x685f3b,_0x34c01c;const _0x1f31e5=(_0x34c01c=(_0x685f3b=this[_0x35d69d(0x389)]['getUniverSheetInstance'](this[_0x35d69d(0x1ef)]))==null?void 0x0:_0x685f3b[_0x35d69d(0x17c)](_0x38a3d2))==null?void 0x0:_0x34c01c[_0x35d69d(0x10d)]();return(_0x1f31e5==null?void 0x0:_0x1f31e5[_0x35d69d(0x1e5)](_0x3933af=>a[_0x35d69d(0x1b3)][_0x35d69d(0x31a)](_0x3933af,_0x54910f)))||_0x54910f;}[_0x56cc55(0x2d1)](){const _0x31e983=_0x56cc55,_0x3c366c=new a[(_0x31e983(0x168))](),_0x5d1af9=gt(),_0x237cc6=()=>{const _0x21ec51=_0x31e983;_0x3c366c['dispose']();const _0x3e0a67=(_0x20c63e,_0x2f886d,_0x279249,_0x41be84)=>{const _0x5f13f7=_0x5cb8;let _0x421956=[];switch(_0x20c63e['id']){case g[_0x5f13f7(0x330)]['DeleteRangeMoveLeftCommandId']:{_0x421956=g[_0x5f13f7(0x14f)](_0x20c63e,_0x41be84);break;}case g['EffectRefRangId'][_0x5f13f7(0x2a5)]:{_0x421956=g[_0x5f13f7(0x251)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x166)]:{_0x421956=g[_0x5f13f7(0x15c)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x299)]:{_0x421956=g[_0x5f13f7(0x1c3)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x315)]:{_0x421956=g['handleInsertRangeMoveRight'](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x36d)]:{_0x421956=g[_0x5f13f7(0x111)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x1d1)]:{_0x421956=g[_0x5f13f7(0x249)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)]['RemoveColCommandId']:{_0x421956=g[_0x5f13f7(0x262)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x17d)]:{_0x421956=g[_0x5f13f7(0x20b)](_0x20c63e,_0x41be84);break;}}const _0x388515=g[_0x5f13f7(0x202)](_0x421956,_0x41be84),_0xa47d1c=this[_0x5f13f7(0x1b9)][_0x5f13f7(0x15d)](_0x2f886d);if(_0xa47d1c&&_0x388515){const _0x4848f2={..._0xa47d1c,'range':_0x388515};this[_0x5f13f7(0x1b9)]['set'](_0x2f886d,_0x4848f2),_0x5d1af9(()=>{const _0x1e508b=_0x5f13f7,_0x367b98=this['_refRangeService']['registerRefRange'](_0x388515,_0x387c4b=>(_0x367b98[_0x1e508b(0x236)](),_0x3e0a67(_0x387c4b,_0x2f886d,_0x279249,_0x388515)));_0x3c366c[_0x1e508b(0x35c)](_0x367b98);});}return{'redos':[],'undos':[]};};this[_0x21ec51(0x1b9)][_0x21ec51(0x306)]((_0x3d83a,_0x277777)=>{const _0x597d50=_0x21ec51,{range:_0x2b7395,sheetID:_0x537258}=_0x3d83a,_0x19348e=this[_0x597d50(0x128)][_0x597d50(0x131)](_0x2b7395,_0xb58d05=>(_0x19348e[_0x597d50(0x236)](),_0x3e0a67(_0xb58d05,_0x277777,_0x537258,_0x2b7395)));_0x3c366c[_0x597d50(0x35c)](_0x19348e);});};this[_0x31e983(0x303)](a['toDisposable'](this[_0x31e983(0x18f)]['subscribe'](()=>{_0x237cc6();})));}[_0x56cc55(0x218)](){const _0x3b2d8c=_0x56cc55;var _0x387963,_0x21cb4b;if(this[_0x3b2d8c(0x2f4)]=!0x0,((_0x387963=this[_0x3b2d8c(0x389)][_0x3b2d8c(0x116)]())==null?void 0x0:_0x387963[_0x3b2d8c(0x28b)]())!==this[_0x3b2d8c(0x1ef)])return;const _0x22c85c=(_0x21cb4b=this[_0x3b2d8c(0x18a)][_0x3b2d8c(0x15d)](g[_0x3b2d8c(0x178)])['getCurrentSelections']())==null?void 0x0:_0x21cb4b[0x0],_0x52b2c6=this['_univerInstanceService'][_0x3b2d8c(0x167)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3b2d8c(0x2c7)]();_0x22c85c&&_0x52b2c6&&this[_0x3b2d8c(0x18e)](_0x52b2c6[_0x3b2d8c(0x343)](),_0x22c85c);}[_0x56cc55(0x16b)](){const _0x2d1097=_0x56cc55;this[_0x2d1097(0x2f4)]=!0x1;}};me=dt([w(0x2,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),w(0x3,a[_0x56cc55(0x32f)](Te)),w(0x4,a['Inject'](u[_0x56cc55(0x296)])),w(0x5,a[_0x56cc55(0x211)]),w(0x6,a[_0x56cc55(0x1d2)]),w(0x7,a[_0x56cc55(0x32f)](g['RefRangeService']))],me);var vt=Object[_0x56cc55(0x369)],Et=(_0x3cdac2,_0x11f5e4,_0xa74810,_0x1ee72a)=>{for(var _0x146c16=_0x1ee72a>0x1?void 0x0:_0x1ee72a?vt(_0x11f5e4,_0xa74810):_0x11f5e4,_0x56b7c7=_0x3cdac2['length']-0x1,_0x1a538f;_0x56b7c7>=0x0;_0x56b7c7--)(_0x1a538f=_0x3cdac2[_0x56b7c7])&&(_0x146c16=_0x1a538f(_0x146c16)||_0x146c16);return _0x146c16;},oe=(_0x40690b,_0x2d7ee6)=>(_0x35e3d7,_0xeafeac)=>_0x2d7ee6(_0x35e3d7,_0xeafeac,_0x40690b);let B=class extends a[_0x56cc55(0x19c)]{constructor(_0x69c4e9,_0x4ff4ae,_0x5a4a71){const _0x3831f9=_0x56cc55;super(),_(this,_0x3831f9(0x2d2),new Map()),_(this,_0x3831f9(0x2b7),new I[(_0x3831f9(0x214))]()),(this[_0x3831f9(0x389)]=_0x69c4e9,this[_0x3831f9(0x18a)]=_0x4ff4ae,this[_0x3831f9(0x258)]=_0x5a4a71,this[_0x3831f9(0x10e)]());}['dispose'](){const _0x7c4f29=_0x56cc55;super[_0x7c4f29(0x236)](),this[_0x7c4f29(0x2b7)][_0x7c4f29(0x36a)](),this[_0x7c4f29(0x2d2)][_0x7c4f29(0x306)](_0x18c8fe=>_0x18c8fe[_0x7c4f29(0x236)]());}['getCollabCursors$'](_0x44865c){const _0x22fb2d=_0x56cc55;return this[_0x22fb2d(0x2d2)][_0x22fb2d(0x36b)](_0x44865c)?this['_entities'][_0x22fb2d(0x15d)](_0x44865c)['cursorInfo$']:this[_0x22fb2d(0x2b7)][_0x22fb2d(0x1ad)](I['filter'](_0x1cd880=>_0x1cd880[_0x22fb2d(0x1ef)]===_0x44865c),I['switchMap'](_0x2d2207=>_0x2d2207[_0x22fb2d(0x248)]));}[_0x56cc55(0x10e)](){const _0x364649=_0x56cc55;this[_0x364649(0x389)][_0x364649(0x2d6)](a[_0x364649(0x15a)][_0x364649(0x25f)])['pipe'](I['takeUntil'](this[_0x364649(0x390)]))[_0x364649(0xdc)](async _0x3086ce=>{const _0x40412d=_0x364649,_0x483328=_0x3086ce[_0x40412d(0x28b)](),_0x578a8c=await this[_0x40412d(0x1f8)](_0x483328);this['_entityInit$'][_0x40412d(0x380)](_0x578a8c),this[_0x40412d(0x2d2)][_0x40412d(0x22d)](_0x483328,_0x578a8c);}),this[_0x364649(0x389)]['getTypeOfUnitAdded$'](a[_0x364649(0x15a)][_0x364649(0x2ce)])[_0x364649(0x1ad)](I[_0x364649(0x2b9)](this[_0x364649(0x390)]))[_0x364649(0x1ad)](I[_0x364649(0x2a7)](_0x10954d=>!_0x10954d[_0x364649(0x28b)]()[_0x364649(0x34f)]('__')))['subscribe'](async _0x1d0abd=>{const _0x3eb6a7=_0x364649,_0x5643c8=_0x1d0abd['getUnitId'](),_0x56dc95=await this['_startDocCollabCursor'](_0x5643c8);this['_entityInit$']['next'](_0x56dc95),this['_entities'][_0x3eb6a7(0x22d)](_0x5643c8,_0x56dc95);}),I[_0x364649(0x19e)](this[_0x364649(0x389)][_0x364649(0x14c)](a[_0x364649(0x15a)][_0x364649(0x2ce)]),this[_0x364649(0x389)][_0x364649(0x14c)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](I[_0x364649(0x2b9)](this[_0x364649(0x390)]))[_0x364649(0xdc)](_0x434115=>{const _0x255085=_0x364649,_0x21e9fc=_0x434115[_0x255085(0x28b)](),_0xccb743=this['_entities'][_0x255085(0x15d)](_0x21e9fc);_0xccb743&&(_0xccb743[_0x255085(0x236)](),this[_0x255085(0x2d2)]['delete'](_0x21e9fc));});}async['_startSheetCollabCursor'](_0x14689e){const _0x57fb78=_0x56cc55,_0x124a8b=await this[_0x57fb78(0x258)][_0x57fb78(0x177)](_0x14689e),_0x53fd8f=this[_0x57fb78(0x18a)][_0x57fb78(0x219)](me,_0x14689e,_0x124a8b);return _0x53fd8f['init'](),_0x53fd8f;}async[_0x56cc55(0x38e)](_0x1f75d9){const _0x3aa008=_0x56cc55,_0x3a308a=await this[_0x3aa008(0x258)]['requireSession'](_0x1f75d9),_0x577c80=this['_injector'][_0x3aa008(0x219)](fe,_0x1f75d9,_0x3a308a);return _0x577c80[_0x3aa008(0x101)](),_0x577c80;}};B=Et([oe(0x0,a['IUniverInstanceService']),oe(0x1,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),oe(0x2,a[_0x56cc55(0x32f)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function pt(_0x5e2125,_0xa83df7){const _0x273302=_0x56cc55;let {radius:_0xec61a6,width:_0x2bd617,height:_0xd51bb5}=_0xa83df7;_0xec61a6=_0xec61a6!=null?_0xec61a6:0x0,_0x2bd617=_0x2bd617!=null?_0x2bd617:0x1e,_0xd51bb5=_0xd51bb5!=null?_0xd51bb5:0x1e;let _0x58f096=0x0,_0x43fcfb=0x0,_0x45413b=0x0;_0x58f096=_0x43fcfb=_0x45413b=Math[_0x273302(0x2cb)](_0xec61a6,_0x2bd617/0x2,_0xd51bb5/0x2),_0x5e2125['beginPath'](),_0x5e2125['moveTo'](_0x58f096,0x0),_0x5e2125[_0x273302(0x281)](_0x2bd617-_0x43fcfb,0x0),_0x5e2125[_0x273302(0x1bb)](_0x2bd617-_0x43fcfb,_0x43fcfb,_0x43fcfb,Math['PI']*0x3/0x2,0x0,!0x1),_0x5e2125[_0x273302(0x281)](_0x2bd617,_0xd51bb5-_0x45413b),_0x5e2125[_0x273302(0x1bb)](_0x2bd617-_0x45413b,_0xd51bb5-_0x45413b,_0x45413b,0x0,Math['PI']/0x2,!0x1),_0x5e2125[_0x273302(0x281)](0x0,_0xd51bb5),_0x5e2125[_0x273302(0x281)](0x0,_0x58f096),_0x5e2125[_0x273302(0x1bb)](_0x58f096,_0x58f096,_0x58f096,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5e2125[_0x273302(0x192)](),_0xa83df7[_0x273302(0x180)]&&(_0x5e2125[_0x273302(0x191)](),_0x5e2125['fillStyle']=_0xa83df7['fill'],_0xa83df7[_0x273302(0x30e)]===_0x273302(0x22f)?_0x5e2125['fill']('evenodd'):_0x5e2125[_0x273302(0x180)](),_0x5e2125['restore']());}class ie extends C[_0x56cc55(0x2f9)]{constructor(_0x2dd8f4,_0x3fe669){const _0x9867f0=_0x56cc55;super(_0x2dd8f4,_0x3fe669),_(this,_0x9867f0(0x35b)),_(this,_0x9867f0(0x344)),(this[_0x9867f0(0x35b)]=_0x3fe669==null?void 0x0:_0x3fe669[_0x9867f0(0x35b)],this[_0x9867f0(0x344)]=_0x3fe669==null?void 0x0:_0x3fe669[_0x9867f0(0x344)]);}static['drawWith'](_0x2ff3c7,_0x2f00fb){const _0x2aeb89=_0x56cc55,{text:_0x4c7969,color:_0x111f2d}=_0x2f00fb;_0x2ff3c7[_0x2aeb89(0x191)](),_0x2ff3c7[_0x2aeb89(0x212)]=_0x2aeb89(0x2bd);const _0x159a08=_0x2ff3c7['measureText'](_0x4c7969)[_0x2aeb89(0x1a9)],_0x2e953a=Math[_0x2aeb89(0x2cb)](_0x159a08+0x2*ae,De);pt(_0x2ff3c7,{'height':X,'radius':0x4,'width':_0x2e953a,'fill':_0x111f2d}),_0x2ff3c7['fillStyle']='#FFF';const _0x148cc4=ae,_0x4364b2=X-Ct,_0x247118=De-0x2*ae;if(_0x159a08>_0x247118){let _0x2c73bf='',_0x110a9d=0x0;for(const _0x55070f of _0x4c7969){const _0x24559b=_0x2ff3c7[_0x2aeb89(0x172)](_0x55070f)[_0x2aeb89(0x1a9)];if(_0x110a9d+_0x24559b<=_0x247118-_0x2ff3c7[_0x2aeb89(0x172)](_0x2aeb89(0x1a4))[_0x2aeb89(0x1a9)])_0x2c73bf+=_0x55070f,_0x110a9d+=_0x24559b;else{_0x2c73bf+=_0x2aeb89(0x1a4);break;}}_0x2ff3c7[_0x2aeb89(0x366)](_0x2c73bf,_0x148cc4,_0x4364b2);}else _0x2ff3c7[_0x2aeb89(0x366)](_0x4c7969,_0x148cc4,_0x4364b2);_0x2ff3c7[_0x2aeb89(0x181)]();}['_draw'](_0x28d8a6){const _0x4c7dc8=_0x56cc55;ie[_0x4c7dc8(0x132)](_0x28d8a6,this);}}const ce=_0x56cc55(0x144),Tt=_0x56cc55(0x2c6),Ot=_0x56cc55(0x34b),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt='rgba(255,\x20255,\x20255,\x200.01)';class Ne{constructor(_0x4086ba,_0x50f795,_0x2516b9,_0x217a5f){const _0x4d03e0=_0x56cc55;_(this,_0x4d03e0(0x23e),[]),_(this,'_anchor',null),_(this,_0x4d03e0(0x388),null),_(this,_0x4d03e0(0x338),null),_(this,_0x4d03e0(0x2ee),null),_(this,_0x4d03e0(0x2f5),null),(this[_0x4d03e0(0x156)]=_0x4086ba,this['_scene']=_0x50f795,this['_docSkeleton']=_0x2516b9,this[_0x4d03e0(0x253)]=_0x217a5f,this[_0x4d03e0(0x137)]());}set['_hover'](_0x3b12dc){const _0x4bcb4a=_0x56cc55;_0x3b12dc?(this[_0x4bcb4a(0x338)]&&this[_0x4bcb4a(0x338)][_0x4bcb4a(0x130)](),this[_0x4bcb4a(0x388)]&&this['_textBubble']['show']()):(this[_0x4bcb4a(0x338)]&&this[_0x4bcb4a(0x338)][_0x4bcb4a(0x357)](),this[_0x4bcb4a(0x388)]&&this['_textBubble'][_0x4bcb4a(0x130)]());}['dispose'](){const _0x2d0a8e=_0x56cc55;for(const _0x134bae of this[_0x2d0a8e(0x23e)])_0x134bae['dispose']();this[_0x2d0a8e(0x388)]&&this['_textBubble']['dispose'](),this[_0x2d0a8e(0x338)]&&this[_0x2d0a8e(0x338)]['dispose'](),this[_0x2d0a8e(0x27c)]&&this['_anchor'][_0x2d0a8e(0x236)](),this[_0x2d0a8e(0x2f5)]&&this['_eventUnsubscribe']();}[_0x56cc55(0x137)](){const _0x48d459=_0x56cc55;var _0x17a19c;const {_docSkeleton:_0x4247ca,_document:_0xf1e712}=this,{color:_0x1be5e7,name:_0x5bab2a,ranges:_0x3edcac}=this[_0x48d459(0x156)],_0x59b5a6=_0xf1e712[_0x48d459(0x35e)](),{docsLeft:_0xbee43e,docsTop:_0x258520}=_0x59b5a6,_0x43f468=new p['NodePositionConvertToCursor'](_0x59b5a6,_0x4247ca);for(const {startOffset:_0xd1c962,endOffset:_0xaf8a49,rangeType:_0x48bd85,segmentId:_0x135068,segmentPage:_0x349c98,collapsed:_0x59c0a9,isActive:_0x42b442}of _0x3edcac){const _0x2e18e3=_0x4247ca[_0x48d459(0x1db)](_0xd1c962,!0x0,_0x135068,_0x349c98);let _0x51e457=_0x4247ca[_0x48d459(0x1db)](_0xaf8a49,!0x0,_0x135068,_0x349c98);if(_0x51e457==null&&(_0x51e457=_0x4247ca[_0x48d459(0x1db)](_0xaf8a49-0x1,!0x1,_0x135068,_0x349c98)),_0x42b442){const {contentBoxPointGroup:_0x2bd518}=_0x43f468[_0x48d459(0x263)](_0x51e457,_0x51e457);if(_0x2bd518['length']===0x0)continue;this[_0x48d459(0xf7)](_0x1be5e7,_0x2bd518,_0xbee43e,_0x258520,_0x5bab2a),this[_0x48d459(0x2f5)]=this[_0x48d459(0x34e)]();}if(_0x2e18e3&&_0x51e457){if(_0x48bd85===a[_0x48d459(0x264)][_0x48d459(0x147)]){const _0x37b5da=new p[(_0x48d459(0x314))](_0x59b5a6,_0x4247ca),{pointGroup:_0x2905a0}=(_0x17a19c=_0x37b5da[_0x48d459(0x263)](_0x2e18e3,_0x51e457))!=null?_0x17a19c:{};if(_0x2905a0==null||_0x2905a0[_0x48d459(0x38a)]===0x0)continue;this[_0x48d459(0xe3)](_0x1be5e7,_0x2905a0,_0xbee43e,_0x258520);}else{if(!_0x59c0a9){const {borderBoxPointGroup:_0x517f6f}=_0x43f468[_0x48d459(0x263)](_0x2e18e3,_0x51e457);if(_0x517f6f['length']===0x0)continue;this[_0x48d459(0x349)](_0x1be5e7,_0x517f6f,_0xbee43e,_0x258520);}}}}}['_drawAnchor'](_0x33feb2,_0x5367d8,_0x426154,_0x369e43,_0x47329e){const _0x4e7c94=_0x56cc55,_0x4aa440=this['_getAnchorBounding'](_0x5367d8),{left:_0x46d7ba,top:_0x3e0858,height:_0x1f5018}=_0x4aa440,_0x3de523=this[_0x4e7c94(0x1e2)](),_0x1b00ef=bt/_0x3de523,_0x199996=new C[(_0x4e7c94(0x298))](ce+a[_0x4e7c94(0x368)](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43,'height':_0x1f5018,'width':Rt,'fill':_0x33feb2||C['getColor'](a[_0x4e7c94(0x340)][_0x4e7c94(0xea)],0x0),'strokeWidth':_0x1b00ef,'stroke':Dt,'evented':!0x0});this[_0x4e7c94(0x27c)]=_0x199996,this['_scene'][_0x4e7c94(0x1a8)](_0x199996,p[_0x4e7c94(0x155)]);const _0x5775db=new C[(_0x4e7c94(0x298))](ce+a['generateRandomId'](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43-le/0x2,'height':le,'width':le,'fill':_0x33feb2||C[_0x4e7c94(0x2a1)](a[_0x4e7c94(0x340)][_0x4e7c94(0xea)],0x0),'strokeWidth':0x0,'stroke':_0x33feb2||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x4e7c94(0x338)]=_0x5775db,this[_0x4e7c94(0x1e0)][_0x4e7c94(0x1a8)](_0x5775db,p[_0x4e7c94(0x155)]);const _0xfb44ce=new ie(ce+a[_0x4e7c94(0x368)](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43-X,'text':_0x47329e,'color':_0x33feb2});this[_0x4e7c94(0x388)]=_0xfb44ce,this[_0x4e7c94(0x1e0)][_0x4e7c94(0x1a8)](_0xfb44ce,p['TEXT_RANGE_LAYER_INDEX']),this[_0x4e7c94(0x289)]=!0x1;}[_0x56cc55(0x34e)](){const _0x156ad4=_0x56cc55,_0x4f23e7=this[_0x156ad4(0x27c)]['onPointerEnter$'][_0x156ad4(0x1bf)](()=>{const _0x260cd8=_0x156ad4;this[_0x260cd8(0x289)]=!0x0;}),_0x21424c=this[_0x156ad4(0x27c)]['onPointerLeave$'][_0x156ad4(0x1bf)](()=>{const _0x3ab504=_0x156ad4;this[_0x3ab504(0x2ee)]&&clearTimeout(this[_0x3ab504(0x2ee)]),this[_0x3ab504(0x2ee)]=setTimeout(()=>{const _0x2c272e=_0x3ab504;this[_0x2c272e(0x289)]=!0x1;},0x7d0);});return()=>{const _0x260e0f=_0x156ad4;_0x4f23e7[_0x260e0f(0x230)](),_0x21424c[_0x260e0f(0x230)]();};}[_0x56cc55(0x349)](_0x125d32,_0x12f71d,_0x2637c4,_0x1b14e1){const _0x18f833=_0x56cc55,_0xc415b3=new a[(_0x18f833(0x18d))](_0x125d32)[_0x18f833(0x328)](0.2)[_0x18f833(0x1fb)](),_0x30f59d=new C[(_0x18f833(0x2c5))](Tt+a['generateRandomId'](Y),{'pointsGroup':_0x12f71d,'fill':_0xc415b3||C[_0x18f833(0x2a1)](a[_0x18f833(0x340)][_0x18f833(0xea)],0.2),'left':_0x2637c4,'top':_0x1b14e1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x18f833(0xf5)](_0x30f59d),this[_0x18f833(0x1e0)]['addObject'](_0x30f59d,p[_0x18f833(0x155)]);}[_0x56cc55(0xe3)](_0x115cb2,_0x88bb0d,_0x4bf009,_0x5f3b71){const _0x3cf0dc=_0x56cc55,_0x1858b9=new a[(_0x3cf0dc(0x18d))](_0x115cb2)[_0x3cf0dc(0x328)](0.2)[_0x3cf0dc(0x1fb)](),_0x6397b7=new C[(_0x3cf0dc(0x2c5))](Ot+a[_0x3cf0dc(0x368)](Y),{'pointsGroup':_0x88bb0d,'fill':_0x1858b9||C[_0x3cf0dc(0x2a1)](a[_0x3cf0dc(0x340)]['black'],0.2),'left':_0x4bf009,'top':_0x5f3b71,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3cf0dc(0x23e)][_0x3cf0dc(0xf5)](_0x6397b7),this[_0x3cf0dc(0x1e0)][_0x3cf0dc(0x1a8)](_0x6397b7,p['TEXT_RANGE_LAYER_INDEX']);}[_0x56cc55(0x1c4)](_0x3ee4e7){const _0x487bb9=_0x3ee4e7[0x0],_0x579592=_0x487bb9[0x0],_0x1e868c=_0x487bb9[0x2],{x:_0x3d55b5,y:_0x1b7dd2}=_0x579592,{x:_0x2df388,y:_0x52d820}=_0x1e868c;return{'left':_0x3d55b5,'top':_0x1b7dd2,'width':_0x2df388-_0x3d55b5,'height':_0x52d820-_0x1b7dd2};}[_0x56cc55(0x1e2)](){const _0x53a17e=_0x56cc55,{scaleX:_0x4ae61f,scaleY:_0x444605}=this[_0x53a17e(0x1e0)][_0x53a17e(0x2b2)]();return Math['max'](_0x4ae61f,_0x444605);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x51bfab,_0x45b68e,_0x313845,_0x316ce1)=>{const _0x48a772=_0x56cc55;for(var _0x59e35c=_0x316ce1>0x1?void 0x0:_0x316ce1?Nt(_0x45b68e,_0x313845):_0x45b68e,_0x4708d8=_0x51bfab[_0x48a772(0x38a)]-0x1,_0x3806c8;_0x4708d8>=0x0;_0x4708d8--)(_0x3806c8=_0x51bfab[_0x4708d8])&&(_0x59e35c=_0x3806c8(_0x59e35c)||_0x59e35c);return _0x59e35c;},q=(_0x1e7d55,_0x538494)=>(_0x245b28,_0x55b334)=>_0x538494(_0x245b28,_0x55b334,_0x1e7d55);let ge=class extends a[_0x56cc55(0x19c)]{constructor(_0x4a6d62,_0x54bde2,_0xf8b55a,_0x237a81,_0x418437){const _0x227c50=_0x56cc55;super(),_(this,_0x227c50(0x1e7),[]),_(this,_0x227c50(0x21b),[]),(this[_0x227c50(0x24f)]=_0x4a6d62,this[_0x227c50(0xda)]=_0x54bde2,this['_collabCursorController']=_0xf8b55a,this[_0x227c50(0x226)]=_0x237a81,this[_0x227c50(0x35d)]=_0x418437,this['_init']());}['_init'](){const _0x4fe3dc=_0x56cc55,_0x4d7f4e=this[_0x4fe3dc(0x24f)][_0x4fe3dc(0x1cb)],_0x517fd3=this[_0x4fe3dc(0xda)];this[_0x4fe3dc(0x303)](I['combineLatest']([this[_0x4fe3dc(0x2a4)][_0x4fe3dc(0x121)](_0x4d7f4e),this[_0x4fe3dc(0x35d)][_0x4fe3dc(0x10b)]])[_0x4fe3dc(0x1ad)]($[_0x4fe3dc(0x195)](([_0x3ac08e,_0x5eba2d])=>({'skeleton':_0x517fd3[_0x4fe3dc(0x26c)](),'cursors':[..._0x3ac08e[_0x4fe3dc(0x243)]()][_0x4fe3dc(0x205)](_0x498d87=>({..._0x498d87,'color':this[_0x4fe3dc(0x35d)][_0x4fe3dc(0x139)](_0x498d87['color'])}))})))[_0x4fe3dc(0xdc)](_0xb91ca=>{const _0x18b38c=_0x4fe3dc;if(this['_removeCollabCursors'](),_0xb91ca){const {skeleton:_0x223df0,cursors:_0x52cbaf}=_0xb91ca;this[_0x18b38c(0x24b)](_0x223df0,_0x52cbaf);}})),this[_0x4fe3dc(0x136)](),this['_initCommandExecutedListener']();}[_0x56cc55(0x24b)](_0x3fd865,_0x36ccbf){const _0x2ffabc=_0x56cc55,{scene:_0xcbde94,mainComponent:_0x259eda}=this['_context'],_0x1ac434=_0x36ccbf['map'](_0x28acd0=>new Ne(_0x28acd0,_0xcbde94,_0x3fd865,_0x259eda));this[_0x2ffabc(0x1e7)]=_0x1ac434,this['_cursors']=_0x36ccbf;}[_0x56cc55(0x37c)](){const _0x1efba3=_0x56cc55;this[_0x1efba3(0x342)]();const {scene:_0x2ec1fd,mainComponent:_0x579904}=this[_0x1efba3(0x24f)],_0x242678=this[_0x1efba3(0xda)][_0x1efba3(0x26c)](),_0x577f39=this[_0x1efba3(0x21b)][_0x1efba3(0x195)](_0x25fe13=>new Ne(_0x25fe13,_0x2ec1fd,_0x242678,_0x579904));this[_0x1efba3(0x1e7)]=_0x577f39;}[_0x56cc55(0x342)](){const _0x1c4ba3=_0x56cc55;this[_0x1c4ba3(0x1e7)][_0x1c4ba3(0x306)](_0x51db52=>_0x51db52[_0x1c4ba3(0x236)]()),this[_0x1c4ba3(0x1e7)]=[];}[_0x56cc55(0x32c)](){const _0x5d8a82=_0x56cc55,_0x4ab911=[p['SetDocZoomRatioOperation']['id']];this[_0x5d8a82(0x303)](this['_commandService'][_0x5d8a82(0x11d)](_0x48d827=>{const _0x9c0022=_0x5d8a82;_0x4ab911[_0x9c0022(0xfe)](_0x48d827['id'])&&_0x48d827[_0x9c0022(0x2d8)][_0x9c0022(0x1cb)]===this[_0x9c0022(0x24f)][_0x9c0022(0x1cb)]&&this['_refreshCollabCursors']();}));}[_0x56cc55(0x136)](){const _0x552ac6=_0x56cc55;this[_0x552ac6(0x303)](a[_0x552ac6(0x20a)](this[_0x552ac6(0x24f)]['engine'][_0x552ac6(0x102)])[_0x552ac6(0x1ad)]($[_0x552ac6(0x2a7)](_0x5015ee=>_0x5015ee[_0x552ac6(0x106)]===C[_0x552ac6(0x22a)]['resize']),$[_0x552ac6(0x1f6)](0x10))[_0x552ac6(0xdc)](()=>{const _0x242282=_0x552ac6;this[_0x242282(0x37c)]();}));}};ge=Ut([q(0x1,a[_0x56cc55(0x32f)](W[_0x56cc55(0x318)])),q(0x2,a['Inject'](B)),q(0x3,a['ICommandService']),q(0x4,a[_0x56cc55(0x32f)](a[_0x56cc55(0x2c4)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x56cc55(0x2f9)]{constructor(_0x2cd7fe,_0x183cd6){const _0x2f94f4=_0x56cc55;super(_0x2cd7fe,_0x183cd6),_(this,_0x2f94f4(0x16f)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,'_labelPosition','top'),_(this,_0x2f94f4(0x2ec)),(_0x183cd6&&this[_0x2f94f4(0x2dd)](_0x183cd6),this[_0x2f94f4(0x2d0)][_0x2f94f4(0x1bf)](()=>this[_0x2f94f4(0x2dd)]({'hovered':!0x0})),this[_0x2f94f4(0x216)][_0x2f94f4(0x1bf)](()=>this[_0x2f94f4(0x2dd)]({'hovered':!0x1})));}[_0x56cc55(0x2dd)](_0x2ddced){const _0x468d15=_0x56cc55;var _0xd81638,_0x5ebbd5,_0x1e04d7,_0x4633c8,_0x581a6b,_0x279196;this[_0x468d15(0x16f)]=(_0xd81638=_0x2ddced[_0x468d15(0x35b)])!=null?_0xd81638:this[_0x468d15(0x16f)],this[_0x468d15(0x2bc)]=(_0x5ebbd5=_0x2ddced['hovered'])!=null?_0x5ebbd5:this[_0x468d15(0x2bc)],this[_0x468d15(0x12b)]=(_0x1e04d7=_0x2ddced[_0x468d15(0x119)])!=null?_0x1e04d7:this[_0x468d15(0x12b)],this['_name']=(_0x4633c8=_0x2ddced[_0x468d15(0x1eb)])!=null?_0x4633c8:this['_name'],this[_0x468d15(0x33a)]=(_0x581a6b=_0x2ddced[_0x468d15(0x293)])!=null?_0x581a6b:this['_labelPosition'],this[_0x468d15(0x2ec)]=(_0x279196=_0x2ddced[_0x468d15(0x2de)])!=null?_0x279196:this['_backgroundColor'],this[_0x468d15(0x173)]({'width':_0x2ddced[_0x468d15(0x1a9)],'height':_0x2ddced[_0x468d15(0x184)]});}[_0x56cc55(0x2cd)](_0x5ec357){const _0xa485e3=_0x56cc55,{row:_0x20098b,column:_0x586978}=_0x5ec357;if(_0x20098b>=this[_0xa485e3(0x12b)][_0xa485e3(0x239)]&&_0x20098b<=this[_0xa485e3(0x12b)][_0xa485e3(0x367)]&&_0x586978>=this[_0xa485e3(0x12b)][_0xa485e3(0x103)]&&_0x586978<=this[_0xa485e3(0x12b)][_0xa485e3(0x23c)]){this[_0xa485e3(0x2dd)]({'hovered':!0x0});return;}this[_0xa485e3(0x2dd)]({'hovered':!0x1});}[_0x56cc55(0x301)](_0x329cba){return!0x1;}[_0x56cc55(0x165)](_0x17f75b){const _0x51197d=_0x56cc55;C[_0x51197d(0x298)][_0x51197d(0x132)](_0x17f75b,{'width':this[_0x51197d(0x1a9)],'height':this[_0x51197d(0x184)],'strokeWidth':Mt,'stroke':this[_0x51197d(0x16f)],'evented':!0x1,'fill':this[_0x51197d(0x2ec)]}),this['_hovered']&&(_0x17f75b[_0x51197d(0x191)](),_0x17f75b['transform'](0x1,0x0,0x0,0x1,this[_0x51197d(0x1a9)],this[_0x51197d(0x33a)]==='bottom'?0x0:-X),ie[_0x51197d(0x132)](_0x17f75b,{'text':this[_0x51197d(0x273)],'color':this[_0x51197d(0x16f)]}),_0x17f75b['restore']());}}var At=Object['getOwnPropertyDescriptor'],Pt=(_0x4e59c6,_0x205df4,_0x4a1a76,_0x555e12)=>{const _0x286bcf=_0x56cc55;for(var _0x2cf357=_0x555e12>0x1?void 0x0:_0x555e12?At(_0x205df4,_0x4a1a76):_0x205df4,_0x3c4ba4=_0x4e59c6[_0x286bcf(0x38a)]-0x1,_0x45b42d;_0x3c4ba4>=0x0;_0x3c4ba4--)(_0x45b42d=_0x4e59c6[_0x3c4ba4])&&(_0x2cf357=_0x45b42d(_0x2cf357)||_0x2cf357);return _0x2cf357;},_e=(_0x3eb022,_0x3f1f3a)=>(_0x341190,_0xa09544)=>_0x3f1f3a(_0x341190,_0xa09544,_0x3eb022);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x58e6c8,_0x2f1012,_0x121d8c,_0x4693fa){const _0x2be790=_0x56cc55;super(),_(this,'_cursors',new Set()),_(this,_0x2be790(0x1bd),null),(this['_context']=_0x58e6c8,this[_0x2be790(0x274)]=_0x2f1012,this['_collabCursorController']=_0x121d8c,this[_0x2be790(0x35d)]=_0x4693fa,this['_init']());}['_init'](){const _0x468a54=_0x56cc55;this[_0x468a54(0x274)][_0x468a54(0x20e)][_0x468a54(0x1ad)]($['takeUntil'](this[_0x468a54(0x390)]),$[_0x468a54(0x261)](_0x5301a1=>{const _0x18e388=_0x468a54;if(_0x5301a1){const _0x106bab=_0x5301a1['sheetId'];return I[_0x18e388(0x37a)](this[_0x18e388(0x2a4)][_0x18e388(0x121)](this[_0x18e388(0x24f)][_0x18e388(0x1cb)]),this['_themeService']['currentTheme$'])[_0x18e388(0x1ad)]($[_0x18e388(0x195)](([_0x39b021,_0x5a3c4b])=>{const _0x5c8bb0=_0x18e388,_0x28c2a0=new Map();return _0x39b021[_0x5c8bb0(0x306)]((_0x3f18ef,_0x23254e)=>{const _0x230f60=_0x5c8bb0;if(_0x3f18ef[_0x230f60(0x2b4)]===_0x106bab){const _0xd8aac3={..._0x3f18ef};_0xd8aac3[_0x230f60(0x35b)]=this[_0x230f60(0x35d)][_0x230f60(0x139)](_0x3f18ef[_0x230f60(0x35b)]),_0x28c2a0[_0x230f60(0x22d)](_0x23254e,_0xd8aac3);}}),{'skeleton':_0x5301a1,'cursors':_0x28c2a0};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x468a54(0xdc)](({skeleton:_0x23b8ed,cursors:_0x5d02de})=>{const _0x46a8d1=_0x468a54;this['_removeCollabCursors'](),_0x23b8ed&&this[_0x46a8d1(0x24b)](_0x23b8ed,_0x5d02de);}),this[_0x468a54(0x274)][_0x468a54(0x20e)][_0x468a54(0xdc)](_0x3dd763=>{const _0x3029a9=_0x468a54;if(_0x3dd763==null)return;const {skeleton:_0x3c9570}=_0x3dd763,{scene:_0xb01d61}=this[_0x3029a9(0x24f)];_0xb01d61[_0x3029a9(0x15b)][_0x3029a9(0x1bf)](a[_0x3029a9(0x140)](_0x39e942=>{const _0x1f0bf1=_0x3029a9;var _0x4a55aa,_0x499abd;const {offsetX:_0x42e1d4,offsetY:_0x2c947e}=_0x39e942,{x:_0x532f5c,y:_0xd1bc8c}=_0xb01d61[_0x1f0bf1(0x30c)](C[_0x1f0bf1(0x233)]['FromArray']([_0x42e1d4,_0x2c947e])),{scaleX:_0x50df8e,scaleY:_0x101652}=_0xb01d61[_0x1f0bf1(0x2b2)](),_0x468d49=_0xb01d61[_0x1f0bf1(0x1a1)](C[_0x1f0bf1(0x2a8)][_0x1f0bf1(0x158)]),_0x33fb9b=_0xb01d61[_0x1f0bf1(0x1f4)](C['Vector2'][_0x1f0bf1(0x382)]([_0x532f5c,_0xd1bc8c]),_0x468d49),_0x54779d=_0x3c9570[_0x1f0bf1(0x309)](_0x42e1d4,_0x2c947e,_0x50df8e,_0x101652,_0x33fb9b);((_0x4a55aa=this[_0x1f0bf1(0x1bd)])==null?void 0x0:_0x4a55aa[_0x1f0bf1(0x35f)])===_0x54779d['column']&&((_0x499abd=this[_0x1f0bf1(0x1bd)])==null?void 0x0:_0x499abd[_0x1f0bf1(0x333)])===_0x54779d[_0x1f0bf1(0x333)]||this[_0x1f0bf1(0x21b)]['forEach'](_0x4aaacc=>{const _0x673024=_0x1f0bf1;_0x4aaacc[_0x673024(0x2cd)](_0x54779d);});},0x64));});}[_0x56cc55(0x24b)](_0x329181,_0x2e594e){const _0x165cf6=_0x56cc55;var _0x2a9e0;const _0xe89968=(_0x2a9e0=this['_sheetSkeletonManagerService'][_0x165cf6(0x157)]())==null?void 0x0:_0x2a9e0[_0x165cf6(0x2d5)];if(!_0xe89968)return;const _0x2309ea=this[_0x165cf6(0x2c0)]();if(!_0x2309ea)return;this[_0x165cf6(0x21b)][_0x165cf6(0x306)](_0x1bb27f=>{_0x1bb27f['makeDirty']();});const {scene:_0x5d5000}=_0x2309ea,_0x25ae17=yt(Array[_0x165cf6(0x2e0)](_0x2e594e[_0x165cf6(0x243)]()))[_0x165cf6(0x195)](_0x4fff75=>{const _0x51a25d=_0x165cf6,{color:_0x524f8e,range:_0x5a819d,name:_0x127c88,selection:_0x59607b,sheetID:_0x12cd15}=_0x4fff75,{startColumn:_0x228688,startRow:_0x4f528c,endColumn:_0x34225d,endRow:_0x21d52a}=_0x5a819d,_0x5b8430=z['getCoordByCell'](_0x4f528c,_0x228688,_0x5d5000,_0xe89968),_0xce8c42=z[_0x51a25d(0x1b0)](_0x21d52a,_0x34225d,_0x5d5000,_0xe89968),{columnHeaderHeightAndMarginTop:_0x3ecea4}=_0xe89968,{startX:_0x3971a1,startY:_0x53a44c}=_0x5b8430,{endX:_0x2abffd,endY:_0x2c161a}=_0xce8c42,_0x4c49f8=_0x2abffd-_0x3971a1,_0x3a311d=_0x2c161a-_0x53a44c,_0xd443e8={'labelPosition':_0x53a44c-_0x3ecea4>=X?'top':_0x51a25d(0x1ee),'sheetID':_0x12cd15,'range':_0x5a819d,'color':_0x524f8e,'name':_0x127c88,'selection':_0x59607b,'left':_0x3971a1,'top':_0x53a44c,'width':_0x4c49f8,'height':_0x3a311d,'evented':!0x1,'zIndex':wt};return new Be(_0x127c88,_0xd443e8);});_0x5d5000[_0x165cf6(0x1b1)](_0x25ae17,Lt),this['_cursors']=new Set(_0x25ae17);}[_0x56cc55(0x342)](){const _0x184a7a=_0x56cc55;var _0x2c2e32;(_0x2c2e32=this[_0x184a7a(0x21b)])==null||_0x2c2e32[_0x184a7a(0x306)](_0x10ad7c=>_0x10ad7c[_0x184a7a(0x236)]());}[_0x56cc55(0x2c0)](){const _0x2eac81=_0x56cc55;return z[_0x2eac81(0x32d)](this['_context'][_0x2eac81(0x2d7)],this['_context']);}};ve=Pt([_e(0x1,a[_0x56cc55(0x32f)](z['SheetSkeletonManagerService'])),_e(0x2,a['Inject'](B)),_e(0x3,a['Inject'](a[_0x56cc55(0x2c4)]))],ve);function yt(_0x545bdb){const _0x2f37cb=_0x56cc55,_0x123f6a=new Map();return _0x545bdb[_0x2f37cb(0x306)](_0x17503e=>{const _0x3a5e6c=_0x2f37cb;if(_0x123f6a[_0x3a5e6c(0x36b)](_0x17503e[_0x3a5e6c(0x1d4)])){const _0xcba609=_0x123f6a[_0x3a5e6c(0x15d)](_0x17503e[_0x3a5e6c(0x1d4)]);_0xcba609[_0x3a5e6c(0x1eb)]+=',\x20'+_0x17503e[_0x3a5e6c(0x1eb)];}else _0x123f6a[_0x3a5e6c(0x22d)](_0x17503e[_0x3a5e6c(0x1d4)],_0x17503e);}),Array[_0x2f37cb(0x2e0)](_0x123f6a['values']());}var $t=Object[_0x56cc55(0x369)],xt=(_0x23b7d7,_0x4e7924,_0x39d54f,_0x12bbef)=>{for(var _0x4aa78e=_0x12bbef>0x1?void 0x0:_0x12bbef?$t(_0x4e7924,_0x39d54f):_0x4e7924,_0x7f7ade=_0x23b7d7['length']-0x1,_0x3e6f19;_0x7f7ade>=0x0;_0x7f7ade--)(_0x3e6f19=_0x23b7d7[_0x7f7ade])&&(_0x4aa78e=_0x3e6f19(_0x4aa78e)||_0x4aa78e);return _0x4aa78e;},y=(_0x13b472,_0x5b373f)=>(_0x509d06,_0x543a0f)=>_0x5b373f(_0x509d06,_0x543a0f,_0x13b472);let J=class extends a[_0x56cc55(0x30f)]{constructor(_0x96ad05,_0x11f006,_0x5a3221,_0x30723,_0x4d0552,_0x53dda6){const _0x3ca652=_0x56cc55;super(),this[_0x3ca652(0x13d)]=_0x96ad05,this[_0x3ca652(0x19a)]=_0x11f006,this[_0x3ca652(0xdb)]=_0x5a3221,this[_0x3ca652(0x217)]=_0x30723,this['_notificationService']=_0x4d0552,this[_0x3ca652(0xed)]=_0x53dda6,this[_0x3ca652(0x25a)](),this[_0x3ca652(0x238)]();}[_0x56cc55(0x25a)](){const _0x858822=_0x56cc55;this[_0x858822(0x303)](this[_0x858822(0x13d)][_0x858822(0x1e9)](()=>{const _0x30f8ee=_0x858822;if(this[_0x30f8ee(0x19a)]['saveTaskMap']['size'])return this[_0x30f8ee(0xed)]['t'](_0x30f8ee(0x24c));}));}[_0x56cc55(0x238)](){const _0x42dfb5=_0x56cc55;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0x42dfb5(0xdc)](_0x1f046c=>{const _0x1c80ff=_0x42dfb5;_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x2ab)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this['_localeService']['t'](_0x1c80ff(0x372))}),_0x1f046c['id']===u[_0x1c80ff(0x329)]['CLOSE_ROOM']&&this['_messageService'][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x204))}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x1f0)]&&this[_0x1c80ff(0x332)]['show']({'title':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x2a6)),'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x170)),'type':_0x1c80ff(0x1b4),'duration':0x0}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x2b8)]&&this[_0x1c80ff(0x217)]['show']({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x204))+'('+_0x1f046c[_0x1c80ff(0x206)]+')'}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0xd6)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)]['Warning'],'content':this[_0x1c80ff(0xed)]['t'](_0x1f046c[_0x1c80ff(0x206)]||'')}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x1a2)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this['_localeService']['t'](_0x1c80ff(0x2e6))}),_0x1f046c['id']===u[_0x1c80ff(0x329)]['SOCKET_FAILED']&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x224))}),_0x1f046c['id']===u['CollaborationUIEventId'][_0x1c80ff(0x38c)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x221))});}));}};function _0x2fa8(){const _0x499915=['_selfUnitIDs','disposeWithMe','Unknown\x20user','_uiPartsService','forEach','PY_RUNTIME_SCRIPT_ERROR','MOBILE_VERIFY_CODE_MISMATCH','getCellPositionByOffset','_onCursorDelete','some','getRelativeToViewportCoord','SUCCESS','fillRule','Disposable','application/json','disableLocalCache','IRenderManagerService','_lastResponseTimestamp','NodePositionConvertToRectRange','InsertRangeMoveRightCommandId','_saveTaskMap','getUndoRedoMutationParamsCache','DocSkeletonManagerService','sessionTicket','contains','path','RemoteUniscriptService','getValue','getMember','_getFormulaLimitStatus','YUUMI_TABLE_NOT_FOUND_IN_UNIT','YUUMI_ASYNCIO_CANCELLED','Failed','_assignedColors','_transformUndoRedoStack','fromEvent','then','disposeUnit','setAlpha','CollaborationUIEventId','_updateSubUnitFromURLParams','_registerDependencies','_initCommandExecutedListener','getSheetObject','SetSelectionsOperation','Inject','EffectRefRangId','147844tZdutA','_notificationService','row','Loading','delete','AWAITING','WebSocketService','_anchorDot','newValue','_labelPosition','0\x200\x2017\x2016','getConfig','ALREADY_EXISTS','attrs','INVALID_INVITE_CODE','COLORS','RichTextEditingMutation','_removeCollabCursors','getSheetId','text','transformRemoteChangeset','_transformHistoryAndStateStack','EMAIL_VERIFY_CODE_MISMATCH','isFormulaString','_drawTextRange','univer-flex\x20univer-items-center','collab-rect-range-','toStringTag','SetTextSelectionsOperation','_handleHover','startsWith','whenReady','YUUMI_SUBSCRIPTION_NOT_FOUND','ticket','getUnhiddenWorksheets','_id','releaseFormulaLimitUrl','_getMergeRange','show','_transformService','wsSessionTicketUrl','YUUMI_UNABLE_LOAD_URL','color','add','_themeService','getOffsetConfig','column','transformStateCache','beforeCommandExecuted','collabStatus.syncing','MessageType','sessionStatus$','storage','fillText','endRow','generateRandomId','getOwnPropertyDescriptor','complete','has','HEADER_MENU','InsertRowCommandId','_logService','mask','runId','CHANGESET_REVISION_CONFILICT','collaboration.single-unit.warning','INVITE_CODE_ALREADY_BOUND','deepClone','getCellMatrix','http://www.w3.org/2000/svg','773778OwPhTv','formula.calculation.unable','stringify','combineLatest','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_refreshCollabCursors','unshift','purple.300','unload','next','INVALID_ARGUMENT','FromArray','_scheduleClearOtherTimer','[RemoteUniscriptService]:\x20no\x20focused\x20unit','LICENSE_MAX_UNITS_EXCEEDED','_docTransformStateCacheService','_releaseCalculationLimit','_textBubble','_univerInstanceService','length','MOBILE_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','UniverIcon','_startDocCollabCursor','clearTimeout','dispose$','updateOfflineData','Error','transformMutation','setUndoRedoMutationParamsCache','createSocket','JOIN_ROOM_FAILED','toDisposable','REDEMPTION_USER_NOT_ELIGIBLE','addEventListener','_docSkeletonManagerService','_collaborationUIEventService','subscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','isArray','onStarting','entityInit$','body','collabStatus.notCollab','_drawRectRange','getActiveRange','currentColor','UnitStatus','USER_NOT_INVITED_CODE','functionsExecutedState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','black','memberID','_taskIds','_localeService','INVITE_CODE_HAS_BEEN_UES','SYNCED','_handleLeaveEvent','with','CommandType','mutations','UPDATE_CURSOR','push','doc.mutation.rich-text-editing','_drawAnchor','DocCollaborationEntity','univerjs-icon\x20univerjs-icon-','_urlService','actions','YUUMI_ALL_TABLES_IS_INVALID','parseInt','includes','_setupSubUnitSync','popstate','init','onTransformChange$','startColumn','_renderManagerService','OnLineIcon','type','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Warning','collab-client.tooltip.reconnect','setInterval','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMergeData','_init','M0\x200H16V16H0z','LICENSE_DISTRO_REJECTED','handleInsertRow','urlChange$','loadOfflineData','3982gIQDoU','_handleJoinEvent','getFocusedUnit','_initStatusListener','INTERNAL_ERROR','range','APPLY_PERMISSION_DENIED','tag','21sOERFc','onCommandExecuted','UniverCollaborationClientUIPlugin','origin','_httpService','getCollabCursors$','_docStateChangeManagerService','1em','green.600','ENTITLE_DUP_SUBSCRIPTION','_docClipboardService','red.300','_refRangeService','colorChannel1','pluginName','_range','OTHER_CLIENTS_EDITING','CollaborationDataLoaderController','m1Prime','setActiveRange','hide','registerRefRange','drawWith','shift','jsx','_handleHeartbeatEvent','_initResize','_render','ACTIVE_UNIT_EVENT_CHANNEL','getColorFromTheme','pushState','setItem','HTTPService','_beforeCloseService','forwardRef','APPLY_REVISION_CONFILICT','debounce','useObservable','stage','useDependency','collab-text-anchor-','ENSURE_SNAPSHOT_EXECUTION','DEFAULT_WS_SESSION_TICKET_URL','RECT','exhaustSavingTask','IMessageService','SetFormulaCalculationStartMutation','limitInfo','getTypeOfUnitDisposed$','ENTITLE_NEED_BILLING_ADDRESS','collabStatus.offline','handleDeleteRangeMoveLeft','LOCAL_CACHE_INTERVAL_KEY','off-line-icon','_imageIoService','_roomMembers$','905768uJxuSf','TEXT_RANGE_LAYER_INDEX','_cursor','getCurrent','VIEW_MAIN','collabStatus.synced','UniverInstanceType','onPointerMove$','handleInsertCol','get','REDEMPTION_CODE_NOT_STARTED','assign','div','FormulaExecuteStageType','APPLY_REJECT','_hasFormulaInDirtyRanges','YUUMI_AI_RUN_FAILED','_draw','InsertColCommandId','getCurrentUnitForType','DisposableCollection','result','setStateCache','_toggleOffline','UniverCollaborationClientPlugin','assignAColorForMemberID','_createSocketURL','_color','permission.content','_getSaveTimeout','measureText','transformByState','registerComponent','toString','PENDING','requireSession','SheetsSelectionsService','white','addClipboardHook','CURRENT_STATUS_CANNOT_OPERATE','getSheetBySheetId','RemoveRowCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_ensureSubject','fill','restore','CollaborationSocketService','520MAEkpS','height','setTimeout','maxFormulaLimit','_currentUsage','string','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_injector','replaceDocRanges','_docTransformSelectionsService','ColorKit','_updateLocalCursor','_cursorInfo$','?taskId=','save','closePath','_memberService','getRenderById','map','stageInfo','split','CollaborationController','startFormulaLimitUrl','_localCacheService','xlink:href','RxDisposable','getDocRanges','merge','FETCH_MISS','_pollingInterval','getViewport','SOCKET_FAILED_RETRY','registerRenderModule','...','substring','mapTo','SheetCollabCursorShape','addObject','width','roomMembers','_checkCalculationAvailable','url(#$1','pipe','_config','39250eehMgH','getCoordByCell','addObjects','BehaviorSubject','Rectangle','error','code','setParam','blue.400','[CollaborationDataLoaderController]','cursorInfo','children','arc','YUUMI_URL_COL_OUT_OF_RANGE','_lastPointer','isEditing','subscribeEvent','_saveCache','collabStatus.conflict','_send','handleInsertRangeMoveDown','_getAnchorBounding','createElement','/universer-api/license/formula/limit/status','YUUMI_RATE_OVER_LIMIT','ISnapshotServerService','PAYMENT_CHANNEL_NOT_SUPPORT','totalFormulasToCalculate','unitId','collabCursorState$','_checkAndWaitForCalculationPermission','_status$','TEXT','_scheduleSaving','MoveRangeCommandId','ICommandService','registerDependencies','selection','_updateURLWithCurrentState','clipPath','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','_instanceService','enableLocalCache','formula.calculation.waiting','findNodePositionByCharIndex','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','debug','BrowserCollaborationSocketService','useCallback','_scene','isTransformMutationFailure','_getScale','START_CALCULATION','ILogService','find','WebBrowserSingleActiveUnitService','_cursorShapes','serializeRangeWithSheet','registerBeforeClose','_transformPreviousActiveRange','name','_initStatusComponent','location','bottom','unitID','PERMISSION_DENIED','CollaborationUIEventService','LocaleService','INVITE_CODE_REQUIRED','getVpScrollXYInfoByPosToVp','setConfig','throttleTime','addHandlerCallback','_startSheetCollabCursor','WebURLService','YUUMI_CONNECTOR_URL_NOT_FOUND','toRgbString','subunit','EMAIL_HAS_BEEN_BOUND','translate(.97)','event$','_unitOnClients','_unitStatus','runRefRangeMutations','IConfigService','collaboration.closeRoom','flatMap','data','LOGIN_FAILED','idSuffix','_startCalculationLimit','fromEventSubject','handleIRemoveRow','ERROR_AGAIN','_disabled','currentSkeleton$','NOT_FOUND','ENTITLE_CHAT_LIMIT_EXCEED','IUniverInstanceService','font','key','Subject','_configService','onPointerLeave$','_messageService','_toggleOnline','createInstance','_colorIndex','_cursors','_registerRenderDependencies','defineProperty','Plugin','_clearOtherTimers','on-line-icon_clip0_910_349','session.collaboration-timeout','editingUnit','APPLY_DUPLICATED','session.connection-failed','href','_commandService','distinctUntilChanged','Success','createIdentifier','TRANSFORM_CHANGE_OBSERVABLE_TYPE','url(#on-line-icon_clip0_910_349)','YUUMI_NO_CUBOID_FOR_QUESTION','set','AUTHORIZE_CODE_ILLEGAL','evenodd','unsubscribe','random','SetWorksheetActivateCommand','Vector2','runOnServer','USERS_LEAVE','dispose','CollaborationEvent','_initEvent','startRow','isFormulaId','_initCommandInterceptor','endColumn','collabStatus.fetchMiss','_shapes','REDEMPTION_CODE_HAS_BEEN_CREATED','replace','Workbook','_removeClearOtherTimer','values','DataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_handleEvent','uni.network.url-service','cursorInfo$','handleMoveRange','Injector','_updateCollabCursors','collaboration-client.offline-data-not-saved','IURLService','_session','_context','_maxFormulaLimit','handleDeleteRangeMoveUp','UNAUTHENTICATED','_document','ITransformService','_cachedData','OffLineIcon','USER_NOT_FOUND','_collabSessionService','getParam','_setupBeforeClosingHandler','formula.calculation.started','103590MsKFnm','_dataLoaderService','round','UNIVER_SHEET','imageSourceType','switchMap','handleIRemoveCol','getRangePointData','DOC_RANGE_TYPE','all','defIds','redoState','transformIMECache','IUIPartsService','trim','displayName','getSkeleton','REDEMPTION_CODE_INACTIVE','LICENSE_EXPORT_SIZE_EXCEEDED','_doCreateSocket','status$','_showGuardMessage','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_name','_sheetSkeletonManagerService','AWAITING_WITH_PENDING','REDEMPTION_CODE_FULLY_REDEEMED','_initEntityListener','textRanges','clearInterval','onRendered','NO_OTHER_CLIENTS_EDITING','_anchor','LICENSE_IMPORT_SIZE_EXCEEDED','univer-mr-2\x20univer-flex\x20univer-text-xl','symbol','IDocClipboardService','lineTo','_applyCommand','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','transformSelections','send','override','undoState','_setFormulaLimitStatus','_hover','_syncEditingCollabCursorService','getUnitId','getStateCache','_onCursorUpdate','selections','now','DocStateChangeManagerService','IRemoteInstanceService','ranges','labelPosition','_localStorageService','_revisionService','MemberService','_docTransformIMECacheService','Rect','InsertRangeMoveDownCommandId','activeSheet$','debounceTime','isTransformMutationsWithChangesetSuccess','OFFLINE','Tooltip','DocSelectionManagerService','WECHAT_HAS_BEEN_BOUND','getColor','asObservable','m2Prime','_collabCursorController','DeleteRangeMoveUpCommandId','permission.title','filter','SHEET_VIEWPORT_KEY','LOGIN_TOKEN_PROCESSING_FAILED','syncEditingCollabCursor','OTHER_CLIENT_EDITING','current','entries','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','5zYlcjE','APPLY_NON_SEQUENTIAL_REVISION','ONLINE','getAncestorScale','none','sheetID','Tools','_docSyncEditingCollabCursorService','_entityInit$','CONFLICT','takeUntil','_colorAssignService','TOO_MANY_REQUESTS','_hovered','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','COMPLETION_FINISHED','_initDependencies','_getSheetObject','useRef','use','defs','ThemeService','RegularPolygon','collab-text-range-','getActiveSheet','726099YZyqeF','searchParams','DocIMEInputManagerService','min','eventID','onMouseMove','UNIVER_DOC','SNAPSHOT_HAS_BEEN_REMOVED','onPointerEnter$','_onRefRangeChange','_entities','history','replaceState','skeleton','getTypeOfUnitAdded$','unit','params','REDEMPTION_INVALID_CODE','_clearPolling','IBeforeCloseService','4YGAMzL','setShapeProps','backgroundColor','size','from','SetFormulaCalculationNotificationMutation','_heartbeatTimer','subUnitId','getCurrentRevOfUnit','_collabCursorState$','session.will-retry','16416ZmCRqo','getMemberID','Optional','touchDependencies','ILocalCacheService','_backgroundColor','LOCAL_CACHE_INTERVAL','_hideTimer','CollaborationStatus','isActive','ISocketService','post','executeCommand','_online','_eventUnsubscribe','yellow.400','getformulaLimitStatusUrl','UNDEFINED','Shape','svg','_collaborationController','_getSessionTicket','DesktopCollaborationStatusDisplayController','DependentOn','NOT_COLLAB','transformMutationsWithChangeset','triggerDblclick'];_0x2fa8=function(){return _0x499915;};return _0x2fa8();}J=xt([y(0x0,O[_0x56cc55(0x2db)]),y(0x1,u[_0x56cc55(0x2eb)]),y(0x2,a['Inject'](u[_0x56cc55(0x1f1)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x56cc55(0x32f)](a[_0x56cc55(0x1f2)]))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x56cc55(0x369)],kt=(_0x20ef38,_0x301a07,_0x441321,_0x1e0091)=>{const _0x205c4f=_0x56cc55;for(var _0x2e414c=_0x1e0091>0x1?void 0x0:_0x1e0091?Ft(_0x301a07,_0x441321):_0x301a07,_0x1ce739=_0x20ef38[_0x205c4f(0x38a)]-0x1,_0x53b2a0;_0x1ce739>=0x0;_0x1ce739--)(_0x53b2a0=_0x20ef38[_0x1ce739])&&(_0x2e414c=_0x53b2a0(_0x2e414c)||_0x2e414c);return _0x2e414c;},Le=(_0x33a93d,_0x23011b)=>(_0x371b88,_0x608b95)=>_0x23011b(_0x371b88,_0x608b95,_0x33a93d);let Z=class{constructor(_0x37acce,_0x71a6b3){const _0x414b33=_0x56cc55;this[_0x414b33(0x358)]=_0x37acce,this[_0x414b33(0x104)]=_0x71a6b3;}[_0x56cc55(0x268)](_0x1b686f){const _0x95b86a=_0x56cc55;this[_0x95b86a(0x324)](_0x1b686f),this[_0x95b86a(0x1ea)](_0x1b686f);}['transformRemoteChangeset'](_0x265eb4){const _0x2e108f=_0x56cc55,{unitID:_0x20c445}=_0x265eb4,_0x2b90e1=this[_0x2e108f(0x104)][_0x2e108f(0x194)](_0x20c445)[_0x2e108f(0xf1)](p[_0x2e108f(0x2ca)]),{redoCache:_0x32b4b2}=_0x2b90e1[_0x2e108f(0x317)]();if(_0x32b4b2[_0x2e108f(0x38a)]===0x0)return _0x265eb4;let _0x25ca7d=a['Tools'][_0x2e108f(0x374)](_0x265eb4['mutations'][0x0]);for(let _0x968d36=0x0;_0x968d36<_0x32b4b2['length'];_0x968d36++){const _0x243055={'id':_0x2e108f(0xf6),'params':{..._0x32b4b2[_0x968d36]}},_0x15fc88=this[_0x2e108f(0x358)]['transformMutation'](_0x25ca7d,_0x243055,!0x1);if(v[_0x2e108f(0x1e1)](_0x15fc88))throw _0x15fc88['error'];_0x25ca7d=_0x15fc88[_0x2e108f(0x12e)];}return{...a[_0x2e108f(0x2b5)][_0x2e108f(0x374)](_0x265eb4),'mutations':[_0x25ca7d]};}[_0x56cc55(0x324)](_0x4cd99b){const _0x71ab6e=_0x56cc55,{unitID:_0x1a53bd}=_0x4cd99b,_0xabf045=this[_0x71ab6e(0x104)][_0x71ab6e(0x194)](_0x1a53bd)['with'](p[_0x71ab6e(0x2ca)]),{undoCache:_0x23d1a3,redoCache:_0x316af2}=_0xabf045[_0x71ab6e(0x317)]();if(_0x23d1a3[_0x71ab6e(0x38a)]===0x0||_0x316af2[_0x71ab6e(0x38a)]===0x0)return;const _0x432bfc=[],_0x34cdf2=[];let _0x3fce3f=a[_0x71ab6e(0x2b5)][_0x71ab6e(0x374)](_0x4cd99b[_0x71ab6e(0xf3)][0x0]),_0x3444af=a[_0x71ab6e(0x2b5)][_0x71ab6e(0x374)](_0x4cd99b[_0x71ab6e(0xf3)][0x0]);for(let _0x5431b0=_0x23d1a3[_0x71ab6e(0x38a)]-0x1;_0x5431b0>=0x0;_0x5431b0--){const _0x33464a={'id':_0x71ab6e(0xf6),'params':{..._0x23d1a3[_0x5431b0]}},_0x1c1b6c={'id':_0x71ab6e(0xf6),'params':{..._0x316af2[_0x5431b0]}},_0x4477a2=this[_0x71ab6e(0x358)][_0x71ab6e(0xd3)](_0x3fce3f,_0x33464a,!0x1),_0x4db28a=this['_transformService'][_0x71ab6e(0xd3)](_0x3444af,_0x1c1b6c,!0x1);if(v['isTransformMutationFailure'](_0x4477a2))throw _0x4477a2[_0x71ab6e(0x1b4)];if(v[_0x71ab6e(0x1e1)](_0x4db28a))throw _0x4db28a[_0x71ab6e(0x1b4)];_0x432bfc[_0x71ab6e(0x37d)](_0x4477a2[_0x71ab6e(0x2a3)][_0x71ab6e(0x2d8)]),_0x34cdf2['unshift'](_0x4db28a[_0x71ab6e(0x2a3)][_0x71ab6e(0x2d8)]),_0x3fce3f=_0x4477a2[_0x71ab6e(0x12e)],_0x3444af=_0x4db28a[_0x71ab6e(0x12e)];}_0xabf045[_0x71ab6e(0xd4)]({'undoCache':_0x432bfc,'redoCache':_0x34cdf2});}[_0x56cc55(0x1ea)](_0x345255){const _0x37a9b3=_0x56cc55,{unitID:_0x2aa011}=_0x345255,_0xe757ac=this[_0x37a9b3(0x104)][_0x37a9b3(0x194)](_0x2aa011)['with'](p[_0x37a9b3(0x2ca)]),_0x18d711=_0xe757ac[_0x37a9b3(0xe4)]();if(_0x18d711==null)return;const _0x5059c0=[{'id':_0x37a9b3(0xf6),'params':{'unitId':_0x345255[_0x37a9b3(0x1ef)],'actions':null,'textRanges':[_0x18d711]}}],_0x17850c=this['_transformService'][_0x37a9b3(0x300)](_0x345255,_0x5059c0);if(!v[_0x37a9b3(0x29c)](_0x17850c))throw _0x17850c[_0x37a9b3(0x1b4)];const _0x49781c=_0x17850c[_0x37a9b3(0x2a3)][0x0]['params'][_0x37a9b3(0x278)];Array[_0x37a9b3(0xde)](_0x49781c)&&_0x49781c[_0x37a9b3(0x38a)]&&_0xe757ac[_0x37a9b3(0x12f)](_0x49781c[0x0]);}};Z=kt([Le(0x0,v[_0x56cc55(0x254)]),Le(0x1,C[_0x56cc55(0x312)])],Z);var jt=Object[_0x56cc55(0x369)],Yt=(_0x16a2cb,_0x5084d8,_0x43442c,_0x507ddb)=>{for(var _0x5738a3=_0x507ddb>0x1?void 0x0:_0x507ddb?jt(_0x5084d8,_0x43442c):_0x5084d8,_0x2240b2=_0x16a2cb['length']-0x1,_0x5f5388;_0x2240b2>=0x0;_0x2240b2--)(_0x5f5388=_0x16a2cb[_0x2240b2])&&(_0x5738a3=_0x5f5388(_0x5738a3)||_0x5738a3);return _0x5738a3;},he=(_0x258368,_0x560bc3)=>(_0x5960f7,_0x307029)=>_0x560bc3(_0x5960f7,_0x307029,_0x258368);let Q=class{constructor(_0x1502b4,_0x45f6a5,_0x448521){const _0x38c7a5=_0x56cc55;this[_0x38c7a5(0x18a)]=_0x1502b4,this[_0x38c7a5(0x358)]=_0x45f6a5,this[_0x38c7a5(0x122)]=_0x448521;}[_0x56cc55(0x360)](_0x5e4ab8){this['_transformHistoryAndStateStack'](_0x5e4ab8);}[_0x56cc55(0x345)](_0x275e05){const _0x4065b5=_0x56cc55,{unitID:_0x2a82b2}=_0x275e05,{collaboration:_0x39f1b2}=this[_0x4065b5(0x122)][_0x4065b5(0x28c)](_0x2a82b2);if(_0x39f1b2[_0x4065b5(0x38a)]===0x0)return _0x275e05;let _0x6b84=a[_0x4065b5(0x2b5)][_0x4065b5(0x374)](_0x275e05['mutations'][0x0]);for(let _0xc97646=0x0;_0xc97646<_0x39f1b2[_0x4065b5(0x38a)];_0xc97646++){const _0x2c96d7={'id':_0x4065b5(0xf6),'params':{'unitId':_0x39f1b2[_0xc97646]['unitId'],..._0x39f1b2[_0xc97646][_0x4065b5(0x267)]}},_0x339e41=this[_0x4065b5(0x358)][_0x4065b5(0xd3)](_0x6b84,_0x2c96d7,!0x1);if(v[_0x4065b5(0x1e1)](_0x339e41))throw _0x339e41[_0x4065b5(0x1b4)];_0x6b84=_0x339e41[_0x4065b5(0x12e)];}return{...a['Tools'][_0x4065b5(0x374)](_0x275e05),'mutations':[_0x6b84]};}[_0x56cc55(0x346)](_0x4e9181){const _0x2bb537=_0x56cc55,{unitID:_0x210cbe}=_0x4e9181,{history:_0x47bb1b,collaboration:_0x1107dd}=this[_0x2bb537(0x122)][_0x2bb537(0x28c)](_0x210cbe);if(_0x47bb1b[_0x2bb537(0x38a)]===0x0&&_0x1107dd[_0x2bb537(0x38a)]===0x0)return;const _0x708f0d=[],_0xcc5c1f=[];let _0x4f0af2=a[_0x2bb537(0x2b5)]['deepClone'](_0x4e9181[_0x2bb537(0xf3)][0x0]),_0x43396b=a['Tools'][_0x2bb537(0x374)](_0x4e9181[_0x2bb537(0xf3)][0x0]);for(let _0x37b8eb=_0x47bb1b[_0x2bb537(0x38a)]-0x1;_0x37b8eb>=0x0;_0x37b8eb--){const _0x3efdb6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47bb1b[_0x37b8eb][_0x2bb537(0x1cb)],..._0x47bb1b[_0x37b8eb][_0x2bb537(0x287)]}},_0x1701ab={'id':_0x2bb537(0xf6),'params':{'unitId':_0x47bb1b[_0x37b8eb][_0x2bb537(0x1cb)],..._0x47bb1b[_0x37b8eb]['redoState']}},_0x2e9052=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x4f0af2,_0x3efdb6,!0x1),_0x3ef9f7=this['_transformService'][_0x2bb537(0xd3)](_0x43396b,_0x1701ab,!0x1);if(v[_0x2bb537(0x1e1)](_0x2e9052))throw _0x2e9052['error'];if(v[_0x2bb537(0x1e1)](_0x3ef9f7))throw _0x3ef9f7[_0x2bb537(0x1b4)];_0x708f0d[_0x2bb537(0x37d)]({..._0x47bb1b[_0x37b8eb],'undoState':_0x2e9052[_0x2bb537(0x2a3)]['params'],'redoState':_0x3ef9f7[_0x2bb537(0x2a3)][_0x2bb537(0x2d8)]}),_0x4f0af2=_0x2e9052[_0x2bb537(0x12e)],_0x43396b=_0x3ef9f7[_0x2bb537(0x12e)];}_0x4f0af2=a['Tools']['deepClone'](_0x4e9181[_0x2bb537(0xf3)][0x0]),_0x43396b=a[_0x2bb537(0x2b5)][_0x2bb537(0x374)](_0x4e9181[_0x2bb537(0xf3)][0x0]);for(let _0x261d28=_0x1107dd[_0x2bb537(0x38a)]-0x1;_0x261d28>=0x0;_0x261d28--){const _0x2818f6={'id':_0x2bb537(0xf6),'params':{'unitId':_0x1107dd[_0x261d28]['unitId'],..._0x1107dd[_0x261d28][_0x2bb537(0x287)]}},_0x1a20c2={'id':_0x2bb537(0xf6),'params':{'unitId':_0x1107dd[_0x261d28][_0x2bb537(0x1cb)],..._0x1107dd[_0x261d28]['redoState']}},_0x3767ed=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x4f0af2,_0x2818f6,!0x1),_0x1a53db=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x43396b,_0x1a20c2,!0x1);if(v['isTransformMutationFailure'](_0x3767ed))throw _0x3767ed[_0x2bb537(0x1b4)];if(v[_0x2bb537(0x1e1)](_0x1a53db))throw _0x1a53db[_0x2bb537(0x1b4)];_0xcc5c1f[_0x2bb537(0x37d)]({..._0x1107dd[_0x261d28],'undoState':_0x3767ed['m2Prime'][_0x2bb537(0x2d8)],'redoState':_0x1a53db['m2Prime']['params']}),_0x4f0af2=_0x3767ed[_0x2bb537(0x12e)],_0x43396b=_0x1a53db[_0x2bb537(0x12e)];}this[_0x2bb537(0x122)][_0x2bb537(0x16a)](_0x210cbe,{'history':_0x708f0d,'collaboration':_0xcc5c1f});}};Q=Yt([he(0x0,a[_0x56cc55(0x32f)](a['Injector'])),he(0x1,v[_0x56cc55(0x254)]),he(0x2,a[_0x56cc55(0x32f)](p[_0x56cc55(0x290)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x471e43,_0x1d9ba7,_0x52d635,_0x5a4f76)=>{const _0x1e871c=_0x56cc55;for(var _0x5989f8=_0x5a4f76>0x1?void 0x0:_0x5a4f76?Ht(_0x1d9ba7,_0x52d635):_0x1d9ba7,_0x59cefd=_0x471e43[_0x1e871c(0x38a)]-0x1,_0x39851c;_0x59cefd>=0x0;_0x59cefd--)(_0x39851c=_0x471e43[_0x59cefd])&&(_0x5989f8=_0x39851c(_0x5989f8)||_0x5989f8);return _0x5989f8;},Me=(_0x1085e7,_0x118365)=>(_0x8b5068,_0x48e9c3)=>_0x118365(_0x8b5068,_0x48e9c3,_0x1085e7);let ee=class{constructor(_0x185deb,_0x3a1b07){const _0x46266c=_0x56cc55;this[_0x46266c(0x18a)]=_0x185deb,this[_0x46266c(0x358)]=_0x3a1b07;}['transformSelections'](_0x54dde7){const _0x28ee70=_0x56cc55;var _0x28817b;const _0x3faf38=this['_injector'][_0x28ee70(0x15d)](W['DocSelectionManagerService']),_0x515cc0=(_0x28817b=_0x3faf38[_0x28ee70(0x19d)]())!=null?_0x28817b:[];if(_0x515cc0[_0x28ee70(0x38a)]===0x0)return;const _0x924c4=_0x54dde7['unitID'],_0x3cea58=[{'id':_0x28ee70(0xf6),'params':{'unitId':_0x924c4,'actions':null,'textRanges':_0x515cc0}}],_0x1fc6cb=this[_0x28ee70(0x358)][_0x28ee70(0x300)](_0x54dde7,_0x3cea58);if(!v[_0x28ee70(0x29c)](_0x1fc6cb))throw _0x1fc6cb['error'];const _0x537c02=_0x1fc6cb['m2Prime'][0x0][_0x28ee70(0x2d8)][_0x28ee70(0x278)];Array[_0x28ee70(0xde)](_0x537c02)&&_0x537c02[_0x28ee70(0x38a)]&&_0x3faf38[_0x28ee70(0x18b)](_0x537c02,{'unitId':_0x924c4,'subUnitId':_0x924c4},!0x1);}};ee=Wt([Me(0x0,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),Me(0x1,v[_0x56cc55(0x254)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x5c02fe,_0x67e5c2,_0x3fdc44,_0x397d52)=>{const _0x44050c=_0x56cc55;for(var _0x1258db=_0x397d52>0x1?void 0x0:_0x397d52?Vt(_0x67e5c2,_0x3fdc44):_0x67e5c2,_0x536217=_0x5c02fe[_0x44050c(0x38a)]-0x1,_0x2ee370;_0x536217>=0x0;_0x536217--)(_0x2ee370=_0x5c02fe[_0x536217])&&(_0x1258db=_0x2ee370(_0x1258db)||_0x1258db);return _0x1258db;},N=(_0x238b48,_0x48cd77)=>(_0x562861,_0x3053b1)=>_0x48cd77(_0x562861,_0x3053b1,_0x238b48);let te=class extends a[_0x56cc55(0x30f)]{constructor(_0x20a009,_0x5c5b0a,_0xedaa61,_0x64f181,_0xea1139,_0x21f32b,_0x156a4c,_0x5a9458){const _0x1f21a9=_0x56cc55;super(),_(this,_0x1f21a9(0x1ce),new I[(_0x1f21a9(0x1b2))](u[_0x1f21a9(0x2ef)][_0x1f21a9(0x2ff)])),(this['_docStateChangeManagerService']=_0x20a009,this[_0x1f21a9(0x2fb)]=_0x5c5b0a,this[_0x1f21a9(0x297)]=_0xedaa61,this[_0x1f21a9(0x386)]=_0x64f181,this[_0x1f21a9(0x18c)]=_0xea1139,this[_0x1f21a9(0x2b6)]=_0x21f32b,this['_messageService']=_0x156a4c,this[_0x1f21a9(0xed)]=_0x5a9458,this[_0x1f21a9(0x277)]());}['_initEntityListener'](){const _0x55459a=_0x56cc55;this[_0x55459a(0x303)](this[_0x55459a(0x2fb)][_0x55459a(0xe0)]['subscribe'](_0x45cba7=>{const _0x24892d=_0x55459a,_0x1c0085=this[_0x24892d(0x122)]['docStateChange$']['subscribe'](_0xd28b01=>{const _0x4b4997=_0x24892d;if(_0xd28b01==null)return;const {unitId:_0x2fbf9e,redoState:_0x29c20b,commandId:_0x4d6e82}=_0xd28b01;if(_0x2fbf9e!==_0x45cba7['unitID'])return;const _0x574fd1={'id':_0x4d6e82,'type':a[_0x4b4997(0xf2)]['MUTATION'],'params':{'unitId':_0x2fbf9e,'actions':_0x29c20b[_0x4b4997(0xfb)],'textRanges':null}};_0x45cba7['onLocalMutation'](_0x574fd1);});if(_0x45cba7[_0x24892d(0x303)](_0x1c0085),_0x45cba7 instanceof u[_0x24892d(0xf8)]){const _0x27f936={'onTransformIME':_0xd2d6aa=>this[_0x24892d(0x297)][_0x24892d(0x268)](_0xd2d6aa),'onTransformState':_0xe16827=>this['_docTransformStateCacheService'][_0x24892d(0x360)](_0xe16827),'onTransformSelections':_0x4d9417=>this[_0x24892d(0x18c)][_0x24892d(0x284)](_0x4d9417),'onSyncEditingCollabCursor':_0x50303c=>this[_0x24892d(0x2b6)][_0x24892d(0x2aa)](_0x50303c),'onTransformRemoteChangesetByIMECache':_0x2428b5=>this[_0x24892d(0x297)][_0x24892d(0x345)](_0x2428b5),'onTransformRemoteChangesetByStateCache':_0x4d5926=>this[_0x24892d(0x386)][_0x24892d(0x345)](_0x4d5926)};_0x45cba7[_0x24892d(0x1f7)](_0x27f936);}}));}};te=Gt([N(0x0,a[_0x56cc55(0x32f)](p['DocStateChangeManagerService'])),N(0x1,a[_0x56cc55(0x32f)](u['CollaborationController'])),N(0x2,a[_0x56cc55(0x32f)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a[_0x56cc55(0x32f)](ee)),N(0x5,a[_0x56cc55(0x32f)](Oe)),N(0x6,O[_0x56cc55(0x149)]),N(0x7,a[_0x56cc55(0x32f)](a['LocaleService']))],te);var V=(_0x4548e6=>(_0x4548e6[_0x4548e6[_0x56cc55(0x2f8)]=0x0]=_0x56cc55(0x2f8),_0x4548e6[_0x4548e6['OK']=0x1]='OK',_0x4548e6[_0x4548e6[_0x56cc55(0x118)]=0x2]=_0x56cc55(0x118),_0x4548e6[_0x4548e6[_0x56cc55(0x1f0)]=0x3]=_0x56cc55(0x1f0),_0x4548e6[_0x4548e6['NOT_FOUND']=0x4]=_0x56cc55(0x20f),_0x4548e6[_0x4548e6[_0x56cc55(0x252)]=0x5]=_0x56cc55(0x252),_0x4548e6[_0x4548e6['ALREADY_EXISTS']=0x6]=_0x56cc55(0x33d),_0x4548e6[_0x4548e6['INVALID_ARGUMENT']=0x7]=_0x56cc55(0x381),_0x4548e6[_0x4548e6[_0x56cc55(0x2bb)]=0x8]=_0x56cc55(0x2bb),_0x4548e6[_0x4548e6['COMPLETION_FINISHED']=0x9]=_0x56cc55(0x2be),_0x4548e6[_0x4548e6[_0x56cc55(0x207)]=0xa]=_0x56cc55(0x207),_0x4548e6[_0x4548e6[_0x56cc55(0x308)]=0xb]=_0x56cc55(0x308),_0x4548e6[_0x4548e6[_0x56cc55(0x107)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4548e6[_0x4548e6[_0x56cc55(0x347)]=0xd]=_0x56cc55(0x347),_0x4548e6[_0x4548e6['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4548e6[_0x4548e6['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x56cc55(0x22e),_0x4548e6[_0x4548e6[_0x56cc55(0x2a9)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x4548e6[_0x4548e6['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x56cc55(0x17b),_0x4548e6[_0x4548e6[_0x56cc55(0x20c)]=0x65]=_0x56cc55(0x20c),_0x4548e6[_0x4548e6[_0x56cc55(0x257)]=0xc9]=_0x56cc55(0x257),_0x4548e6[_0x4548e6['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x4548e6[_0x4548e6[_0x56cc55(0x371)]=0x1389]=_0x56cc55(0x371),_0x4548e6[_0x4548e6['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4548e6[_0x4548e6['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x56cc55(0x2cf),_0x4548e6[_0x4548e6[_0x56cc55(0x145)]=0x1773]=_0x56cc55(0x145),_0x4548e6[_0x4548e6[_0x56cc55(0x162)]=0x1b59]=_0x56cc55(0x162),_0x4548e6[_0x4548e6['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x56cc55(0x2b0),_0x4548e6[_0x4548e6[_0x56cc55(0x13f)]=0x1b5b]=_0x56cc55(0x13f),_0x4548e6[_0x4548e6[_0x56cc55(0x11a)]=0x1b5c]=_0x56cc55(0x11a),_0x4548e6[_0x4548e6['APPLY_DUPLICATED']=0x1b5d]=_0x56cc55(0x223),_0x4548e6[_0x4548e6['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4548e6[_0x4548e6[_0x56cc55(0x385)]=0x2329]=_0x56cc55(0x385),_0x4548e6[_0x4548e6[_0x56cc55(0xdd)]=0x232a]=_0x56cc55(0xdd),_0x4548e6[_0x4548e6[_0x56cc55(0x27d)]=0x232b]=_0x56cc55(0x27d),_0x4548e6[_0x4548e6[_0x56cc55(0x26e)]=0x232c]=_0x56cc55(0x26e),_0x4548e6[_0x4548e6[_0x56cc55(0x110)]=0x232d]=_0x56cc55(0x110),_0x4548e6[_0x4548e6[_0x56cc55(0x35a)]=0x2711]=_0x56cc55(0x35a),_0x4548e6[_0x4548e6[_0x56cc55(0x1bc)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4548e6[_0x4548e6[_0x56cc55(0x1c7)]=0x2713]=_0x56cc55(0x1c7),_0x4548e6[_0x4548e6[_0x56cc55(0x351)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4548e6[_0x4548e6[_0x56cc55(0x22c)]=0x271a]=_0x56cc55(0x22c),_0x4548e6[_0x4548e6['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x56cc55(0x321),_0x4548e6[_0x4548e6[_0x56cc55(0x320)]=0x271c]=_0x56cc55(0x320),_0x4548e6[_0x4548e6[_0x56cc55(0xfc)]=0x271d]=_0x56cc55(0xfc),_0x4548e6[_0x4548e6[_0x56cc55(0xe9)]=0x271e]=_0x56cc55(0xe9),_0x4548e6[_0x4548e6[_0x56cc55(0x164)]=0x271f]=_0x56cc55(0x164),_0x4548e6[_0x4548e6[_0x56cc55(0x1fa)]=0x2720]=_0x56cc55(0x1fa),_0x4548e6[_0x4548e6[_0x56cc55(0x307)]=0x2af9]=_0x56cc55(0x307),_0x4548e6[_0x4548e6['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x56cc55(0xee),_0x4548e6[_0x4548e6[_0x56cc55(0x33f)]=0x2ee2]='INVALID_INVITE_CODE',_0x4548e6[_0x4548e6[_0x56cc55(0x1f3)]=0x2ee3]=_0x56cc55(0x1f3),_0x4548e6[_0x4548e6['USER_NOT_INVITED_CODE']=0x2ee4]=_0x56cc55(0xe7),_0x4548e6[_0x4548e6[_0x56cc55(0x373)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4548e6[_0x4548e6[_0x56cc55(0x2a0)]=0x32c9]=_0x56cc55(0x2a0),_0x4548e6[_0x4548e6[_0x56cc55(0x38b)]=0x32ca]=_0x56cc55(0x38b),_0x4548e6[_0x4548e6[_0x56cc55(0x1fd)]=0x32cb]=_0x56cc55(0x1fd),_0x4548e6[_0x4548e6[_0x56cc55(0x189)]=0x36b1]=_0x56cc55(0x189),_0x4548e6[_0x4548e6['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x56cc55(0x17e),_0x4548e6[_0x4548e6[_0x56cc55(0x125)]=0x36b3]=_0x56cc55(0x125),_0x4548e6[_0x4548e6[_0x56cc55(0x1c9)]=0x36b4]=_0x56cc55(0x1c9),_0x4548e6[_0x4548e6[_0x56cc55(0x210)]=0x3715]=_0x56cc55(0x210),_0x4548e6[_0x4548e6['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4548e6[_0x4548e6['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x56cc55(0x14d),_0x4548e6[_0x4548e6[_0x56cc55(0x2d9)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4548e6[_0x4548e6[_0x56cc55(0x26d)]=0x3a9a]=_0x56cc55(0x26d),_0x4548e6[_0x4548e6[_0x56cc55(0x276)]=0x3a9b]=_0x56cc55(0x276),_0x4548e6[_0x4548e6[_0x56cc55(0x15e)]=0x3a9c]=_0x56cc55(0x15e),_0x4548e6[_0x4548e6['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x56cc55(0xd8),_0x4548e6[_0x4548e6[_0x56cc55(0x272)]=0x3a9e]=_0x56cc55(0x272),_0x4548e6[_0x4548e6[_0x56cc55(0x23f)]=0x3a9f]=_0x56cc55(0x23f),_0x4548e6[_0x4548e6['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4548e6))(V||{});function Xt(_0x40348a){const _0x3eac2f=_0x56cc55;var _0x73ae58,_0x21a2da;const _0x18bd94=(_0x73ae58=_0x40348a['stageInfo'])==null?void 0x0:_0x73ae58[_0x3eac2f(0x142)],_0x43cc45=((_0x21a2da=_0x40348a[_0x3eac2f(0x196)])==null?void 0x0:_0x21a2da[_0x3eac2f(0x1ca)])||0x0;return _0x18bd94===x[_0x3eac2f(0x161)][_0x3eac2f(0x1e3)]&&_0x43cc45>0x0;}function Kt(_0x5b76dc){const _0x29e49a=_0x56cc55;return _0x5b76dc[_0x29e49a(0xe8)]===x['FormulaExecutedStateType'][_0x29e49a(0x30d)];}var qt=Object[_0x56cc55(0x369)],zt=(_0x4a7a7b,_0x3d3f7b,_0x30b09a,_0x2ca370)=>{for(var _0xb03445=_0x2ca370>0x1?void 0x0:_0x2ca370?qt(_0x3d3f7b,_0x30b09a):_0x3d3f7b,_0x52d641=_0x4a7a7b['length']-0x1,_0x3ced8c;_0x52d641>=0x0;_0x52d641--)(_0x3ced8c=_0x4a7a7b[_0x52d641])&&(_0xb03445=_0x3ced8c(_0xb03445)||_0xb03445);return _0xb03445;},L=(_0x164f15,_0x119056)=>(_0x479717,_0x35eae2)=>_0x119056(_0x479717,_0x35eae2,_0x164f15);const Jt=_0x56cc55(0x1c6),Zt='/universer-api/license/formula/limit/start',Qt='/universer-api/license/formula/limit/done';let se=class extends a[_0x56cc55(0x30f)]{constructor(_0x160954,_0x4ac40d,_0x241695,_0x32b613,_0x152973,_0xefe685,_0x2121ce){const _0x24be6d=_0x56cc55;super(),_(this,_0x24be6d(0x1a0),null),_(this,_0x24be6d(0x250),0x0),_(this,_0x24be6d(0x187),0x0),_(this,'_taskIds',[]),_(this,_0x24be6d(0x313),0x0),(this[_0x24be6d(0x217)]=_0x160954,this[_0x24be6d(0x226)]=_0x4ac40d,this[_0x24be6d(0x215)]=_0x241695,this[_0x24be6d(0x120)]=_0x32b613,this[_0x24be6d(0x389)]=_0x152973,this[_0x24be6d(0x36e)]=_0xefe685,this[_0x24be6d(0xed)]=_0x2121ce,this[_0x24be6d(0x23b)]());}['_initCommandInterceptor'](){const _0x359327=_0x56cc55;this[_0x359327(0x303)](this['_commandService'][_0x359327(0x361)]((_0x269653,_0x949ec0)=>{const _0x27e479=_0x359327;if(_0x269653['id']!==x[_0x27e479(0x14a)]['id'])return;const _0x946af0=_0x269653[_0x27e479(0x2d8)];if(!this[_0x27e479(0x163)](_0x946af0['dirtyRanges']))return;if(!this[_0x27e479(0x1ab)]())throw this[_0x27e479(0x1cd)](_0x269653,_0x949ec0),this[_0x27e479(0x271)](),new a['CanceledError']();})),this['disposeWithMe'](this[_0x359327(0x226)][_0x359327(0x11d)]((_0xa288b6,_0x2672db)=>{const _0x1bfd6a=_0x359327;if(_0xa288b6['id']!==x[_0x1bfd6a(0x2e1)]['id'])return;const _0xab9655=_0xa288b6[_0x1bfd6a(0x2d8)];if(Xt(_0xab9655)){const _0x413ad4=a[_0x1bfd6a(0x368)]();this[_0x1bfd6a(0xec)]['push'](_0x413ad4),this[_0x1bfd6a(0x209)](_0x413ad4);}else{if(Kt(_0xab9655)&&this[_0x1bfd6a(0xec)][_0x1bfd6a(0x38a)]>0x0){const _0x18af0e=this[_0x1bfd6a(0xec)][_0x1bfd6a(0x133)]();this[_0x1bfd6a(0x387)](_0x18af0e);}}}));}['dispose'](){const _0x397c4d=_0x56cc55;super['dispose'](),this[_0x397c4d(0x2da)](),this[_0x397c4d(0xec)]=[],this[_0x397c4d(0x187)]=0x0,this[_0x397c4d(0x250)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x56cc55(0x1cd)](_0x3ccb02,_0x47b7c8){const _0x39d72d=_0x56cc55;for(let _0x10f9d5=0x0;_0x10f9d5<0x1e;_0x10f9d5++)try{if(await this[_0x39d72d(0x31f)](),this['_checkCalculationAvailable']()){this[_0x39d72d(0x282)](_0x3ccb02,_0x47b7c8),this[_0x39d72d(0x217)][_0x39d72d(0x357)]({'content':this[_0x39d72d(0xed)]['t'](_0x39d72d(0x25b)),'type':T[_0x39d72d(0x363)][_0x39d72d(0x228)]});return;}await new Promise(_0x2217ab=>{const _0x401907=_0x39d72d;this[_0x401907(0x1a0)]=window[_0x401907(0x185)](_0x2217ab,0x3e8);});}catch(_0x240d0d){this[_0x39d72d(0x36e)][_0x39d72d(0x1b4)](_0x240d0d);}this[_0x39d72d(0x217)][_0x39d72d(0x357)]({'content':this['_localeService']['t'](_0x39d72d(0x378)),'type':T[_0x39d72d(0x363)]['Error']});}[_0x56cc55(0x282)](_0x42cd51,_0xb0dbee){const _0x371e03=_0x56cc55;try{this[_0x371e03(0x226)][_0x371e03(0x2f3)](_0x42cd51['id'],_0x42cd51['params'],_0xb0dbee);}catch(_0xb1a79e){this[_0x371e03(0x36e)]['error'](_0xb1a79e);}}[_0x56cc55(0x288)](_0x76d1f4,_0xdf4314){const _0xc7a898=_0x56cc55;_0xdf4314<this['_lastResponseTimestamp']||(this[_0xc7a898(0x313)]=_0xdf4314,this[_0xc7a898(0x250)]=Number['parseInt'](_0x76d1f4[_0xc7a898(0x186)]),this['_currentUsage']=Number[_0xc7a898(0xfd)](_0x76d1f4['currentUsage']));}async[_0x56cc55(0x209)](_0x4997bb){const _0x41431f=_0x56cc55;var _0x112e55,_0x2c94d4;const _0x596bec=Date[_0x41431f(0x28f)]();try{const _0x294007=((_0x112e55=this['_configService']['getConfig'](u[_0x41431f(0x245)]))==null?void 0x0:_0x112e55[_0x41431f(0x199)])||Zt,_0x21f53f=(await this[_0x41431f(0x120)]['post'](_0x294007,{'body':JSON[_0x41431f(0x379)]({'taskId':_0x4997bb})}))[_0x41431f(0xe1)];if(((_0x2c94d4=_0x21f53f[_0x41431f(0x1b4)])==null?void 0x0:_0x2c94d4[_0x41431f(0x1b5)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x21f53f[_0x41431f(0x14b)],_0x596bec);}catch(_0x5b4956){this[_0x41431f(0x36e)][_0x41431f(0x1b4)](_0x5b4956);}}async[_0x56cc55(0x31f)](_0x4fbe7c){const _0x3e89d0=_0x56cc55;var _0x4a68d7,_0x39a523;const _0x124aa0=Date[_0x3e89d0(0x28f)]();try{const _0x473930=((_0x4a68d7=this[_0x3e89d0(0x215)]['getConfig'](u[_0x3e89d0(0x245)]))==null?void 0x0:_0x4a68d7[_0x3e89d0(0x2f7)])||Jt,_0x4ef26d=_0x4fbe7c?_0x473930+_0x3e89d0(0x190)+encodeURIComponent(_0x4fbe7c):_0x473930,_0x5c0d0a=(await this[_0x3e89d0(0x120)][_0x3e89d0(0x15d)](_0x4ef26d))[_0x3e89d0(0xe1)];if(((_0x39a523=_0x5c0d0a['error'])==null?void 0x0:_0x39a523[_0x3e89d0(0x1b5)])!==V['OK'])return;this[_0x3e89d0(0x288)](_0x5c0d0a[_0x3e89d0(0x14b)],_0x124aa0);}catch(_0x4fbde5){this['_logService'][_0x3e89d0(0x1b4)](_0x4fbde5);}}async['_releaseCalculationLimit'](_0x5c30de){const _0x4be1e8=_0x56cc55;var _0x3414e8,_0x1bf618;const _0x2d437f=Date[_0x4be1e8(0x28f)]();try{const _0xe07242=((_0x3414e8=this[_0x4be1e8(0x215)][_0x4be1e8(0x33c)](u[_0x4be1e8(0x245)]))==null?void 0x0:_0x3414e8[_0x4be1e8(0x355)])||Qt,_0x11ace2=(await this['_httpService'][_0x4be1e8(0x2f2)](_0xe07242,{'body':JSON[_0x4be1e8(0x379)]({'taskId':_0x5c30de})}))['body'];if(((_0x1bf618=_0x11ace2['error'])==null?void 0x0:_0x1bf618[_0x4be1e8(0x1b5)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x11ace2[_0x4be1e8(0x14b)],_0x2d437f);}catch(_0x2b9b21){this[_0x4be1e8(0x36e)][_0x4be1e8(0x1b4)](_0x2b9b21);}}[_0x56cc55(0x1ab)](){const _0x1390f1=_0x56cc55;return this[_0x1390f1(0x250)]===0x0?!0x0:this[_0x1390f1(0x250)]-this[_0x1390f1(0x187)]>0x0;}[_0x56cc55(0x2da)](){const _0x3e2c90=_0x56cc55;this[_0x3e2c90(0x1a0)]&&(clearTimeout(this[_0x3e2c90(0x1a0)]),this[_0x3e2c90(0x1a0)]=null);}[_0x56cc55(0x271)](){const _0x472e88=_0x56cc55;this[_0x472e88(0x217)][_0x472e88(0x357)]({'content':this[_0x472e88(0xed)]['t'](_0x472e88(0x1da)),'type':T[_0x472e88(0x363)][_0x472e88(0x334)]});}[_0x56cc55(0x163)](_0x2ca328){const _0x593da1=_0x56cc55;for(const _0xa1dd56 of _0x2ca328){const {unitId:_0x22c1f8,sheetId:_0x15b664,range:_0x96a9d3}=_0xa1dd56,_0x21eecc=this[_0x593da1(0x389)]['getUnit'](_0x22c1f8);if(!_0x21eecc)continue;const _0x1903b2=_0x21eecc['getSheetBySheetId'](_0x15b664);if(!_0x1903b2)continue;const _0x228963=_0x1903b2[_0x593da1(0x375)]();for(let _0x1b0f13=_0x96a9d3[_0x593da1(0x239)];_0x1b0f13<=_0x96a9d3[_0x593da1(0x367)];_0x1b0f13++)for(let _0x5d1096=_0x96a9d3[_0x593da1(0x103)];_0x5d1096<=_0x96a9d3[_0x593da1(0x23c)];_0x5d1096++){const _0x5d5c72=_0x228963[_0x593da1(0x31d)](_0x1b0f13,_0x5d1096);if(_0x5d5c72&&(a[_0x593da1(0x348)](_0x5d5c72['f'])||a[_0x593da1(0x23a)](_0x5d5c72['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a['Inject'](O[_0x56cc55(0x149)])),L(0x1,a['ICommandService']),L(0x2,a[_0x56cc55(0x203)]),L(0x3,a[_0x56cc55(0x32f)](G['HTTPService'])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x56cc55(0x1e4)]),L(0x6,a[_0x56cc55(0x32f)](a[_0x56cc55(0x1f2)]))],se);var es=Object['getOwnPropertyDescriptor'],ts=(_0x437249,_0x4a6785,_0x46fbb5,_0x27a9ad)=>{for(var _0x170b9d=_0x27a9ad>0x1?void 0x0:_0x27a9ad?es(_0x4a6785,_0x46fbb5):_0x4a6785,_0x676606=_0x437249['length']-0x1,_0x32d60c;_0x676606>=0x0;_0x676606--)(_0x32d60c=_0x437249[_0x676606])&&(_0x170b9d=_0x32d60c(_0x170b9d)||_0x170b9d);return _0x170b9d;},ue=(_0x5608f9,_0x3c2683)=>(_0x5290fa,_0x14cf7e)=>_0x3c2683(_0x5290fa,_0x14cf7e,_0x5608f9);let Ee=class extends a[_0x56cc55(0x30f)]{constructor(_0xe803e9,_0x49f0f9,_0x474398){const _0x3f2d61=_0x56cc55;super(),_(this,_0x3f2d61(0x255),new Map()),_(this,_0x3f2d61(0x316),new Map()),_(this,_0x3f2d61(0x20d),!0x1),(this[_0x3f2d61(0x215)]=_0xe803e9,this[_0x3f2d61(0x294)]=_0x49f0f9,this[_0x3f2d61(0x295)]=_0x474398);}[_0x56cc55(0x311)](){this['_disabled']=!0x0;}[_0x56cc55(0x1d9)](){const _0x5f3acf=_0x56cc55;this[_0x5f3acf(0x20d)]=!0x1;}get['saveTaskMap'](){const _0x549eee=_0x56cc55;return this[_0x549eee(0x316)];}[_0x56cc55(0x236)](){const _0x26d3e7=_0x56cc55;this[_0x26d3e7(0x148)]()[_0x26d3e7(0x326)](()=>super['dispose']());}async[_0x56cc55(0x113)](_0x40dff5){const _0xeeaa30=_0x56cc55;return this[_0xeeaa30(0x20d)]?null:this['_localStorageService']['getItem'](u['getLocalCacheKey'](_0x40dff5));}async['saveOfflineData'](_0x8f5f01,_0x3a5f59){const _0x2bbe96=_0x56cc55;return!!this['_localStorageService'][_0x2bbe96(0x13b)](_0x8f5f01,_0x3a5f59);}[_0x56cc55(0x391)](_0x5e3196,_0x263216,_0x11f742,_0x280327){const _0x2a5337=_0x56cc55,_0x1442e4=this[_0x2a5337(0x295)][_0x2a5337(0x2e4)](_0x5e3196);this[_0x2a5337(0x255)]['set'](_0x5e3196,{'unitID':_0x5e3196,'type':_0x263216,'awaitingChangeset':_0x11f742,'mutations':_0x280327,'rev':_0x1442e4}),this[_0x2a5337(0x316)][_0x2a5337(0x36b)](_0x5e3196)||this['_scheduleSaving'](_0x5e3196);}[_0x56cc55(0x1d0)](_0x4bc332){const _0x44414c=_0x56cc55,_0x21cfde=this[_0x44414c(0x171)]();_0x21cfde===0x0?this[_0x44414c(0x1c0)](_0x4bc332):this[_0x44414c(0x316)]['set'](_0x4bc332,setTimeout(()=>this[_0x44414c(0x1c0)](_0x4bc332),_0x21cfde));}['_getSaveTimeout'](){const _0x526bd7=_0x56cc55;var _0xc01f06;return(_0xc01f06=this[_0x526bd7(0x215)][_0x526bd7(0x33c)](u[_0x526bd7(0x150)]))!=null?_0xc01f06:u[_0x526bd7(0x2ed)];}['_saveCache'](_0x9043d0){const _0x44df87=_0x56cc55,_0x14468e=this[_0x44df87(0x316)][_0x44df87(0x15d)](_0x9043d0);return _0x14468e!==void 0x0&&window[_0x44df87(0x38f)](_0x14468e),this[_0x44df87(0x294)][_0x44df87(0x13b)](u['getLocalCacheKey'](_0x9043d0),this[_0x44df87(0x255)]['get'](_0x9043d0))[_0x44df87(0x326)](()=>this[_0x44df87(0x316)][_0x44df87(0x335)](_0x9043d0));}async[_0x56cc55(0x148)](){const _0x446ab4=_0x56cc55,_0x5ee18d=[];this['_saveTaskMap'][_0x446ab4(0x306)]((_0xdff3f2,_0x141a45)=>{const _0xb33c55=_0x446ab4;window[_0xb33c55(0x38f)](_0xdff3f2),_0x5ee18d['push'](this[_0xb33c55(0x1c0)](_0x141a45)[_0xb33c55(0x326)](()=>{const _0x33795e=_0xb33c55;this[_0x33795e(0x316)]['delete'](_0x141a45);}));}),await Promise[_0x446ab4(0x265)](_0x5ee18d);}};Ee=ts([ue(0x0,a[_0x56cc55(0x203)]),ue(0x1,a['ILocalStorageService']),ue(0x2,a[_0x56cc55(0x32f)](v['RevisionService']))],Ee);class Fe extends a[_0x56cc55(0x19c)]{constructor(){const _0x2a1881=_0x56cc55;super(),_(this,_0x2a1881(0x112)),this[_0x2a1881(0x112)]=I[_0x2a1881(0x325)](window,_0x2a1881(0x100))[_0x2a1881(0x1ad)](I[_0x2a1881(0x2b9)](this[_0x2a1881(0x390)]),I['shareReplay'](0x1),I[_0x2a1881(0x1a6)](void 0x0));}[_0x56cc55(0x1b6)](_0x2892ab,_0x33ebc6,_0x2e07fc=!0x1){const _0x3d80f1=_0x56cc55,_0x25402f=new URL(window['location'][_0x3d80f1(0x225)]);_0x25402f[_0x3d80f1(0x2c9)]['set'](_0x2892ab,_0x33ebc6),_0x2e07fc?window[_0x3d80f1(0x2d3)][_0x3d80f1(0x2d4)]('','',_0x25402f[_0x3d80f1(0x175)]()):window['history'][_0x3d80f1(0x13a)]('','',_0x25402f['toString']());}['removeParam'](_0x19420a,_0x140d60=!0x1){const _0x1c74ed=_0x56cc55,_0x54761c=new URL(window[_0x1c74ed(0x1ed)]['href']);_0x54761c[_0x1c74ed(0x2c9)]['delete'](_0x19420a),_0x140d60?window['history'][_0x1c74ed(0x2d4)]('','',_0x54761c['toString']()):window[_0x1c74ed(0x2d3)][_0x1c74ed(0x13a)]('','',_0x54761c[_0x1c74ed(0x175)]());}['getParam'](_0xdceaac){const _0x2ce4c3=_0x56cc55;var _0x3fb0f7;return(_0x3fb0f7=new URL(window[_0x2ce4c3(0x1ed)][_0x2ce4c3(0x225)])[_0x2ce4c3(0x2c9)][_0x2ce4c3(0x15d)](_0xdceaac))!=null?_0x3fb0f7:void 0x0;}}var ss=Object[_0x56cc55(0x21d)],is=Object[_0x56cc55(0x369)],ns=(_0x523756,_0x52587d,_0x1c90ec)=>_0x52587d in _0x523756?ss(_0x523756,_0x52587d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c90ec}):_0x523756[_0x52587d]=_0x1c90ec,rs=(_0x99d77,_0x4074f6,_0xc6a9b5,_0x287b08)=>{const _0x320374=_0x56cc55;for(var _0x52079b=_0x287b08>0x1?void 0x0:_0x287b08?is(_0x4074f6,_0xc6a9b5):_0x4074f6,_0x41f5ef=_0x99d77[_0x320374(0x38a)]-0x1,_0x44751f;_0x41f5ef>=0x0;_0x41f5ef--)(_0x44751f=_0x99d77[_0x41f5ef])&&(_0x52079b=_0x44751f(_0x52079b)||_0x52079b);return _0x52079b;},Ie=(_0x3c383a,_0x223218)=>(_0x10d41d,_0x398284)=>_0x223218(_0x10d41d,_0x398284,_0x3c383a),os=(_0x406922,_0x235ec8,_0x1a9202)=>ns(_0x406922,_0x235ec8+'',_0x1a9202);const as='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x56cc55(0x11e)]=class extends a[_0x56cc55(0x21e)]{constructor(_0x222369=Ue,_0x415faf,_0x39658c,_0x2be249){const _0x17fc41=_0x56cc55;super(),this['_config']=_0x222369,this['_renderManagerService']=_0x415faf,this[_0x17fc41(0x18a)]=_0x39658c,this[_0x17fc41(0x215)]=_0x2be249;const {..._0x3404cb}=a['merge']({},Ue,this[_0x17fc41(0x1ae)]);this[_0x17fc41(0x215)][_0x17fc41(0x1f5)](Bt,_0x3404cb);}[_0x56cc55(0xdf)](){const _0x44bfdc=_0x56cc55;this['_registerDependencies'](),this[_0x44bfdc(0x2bf)]();}[_0x56cc55(0x27a)](){const _0x125459=_0x56cc55;this[_0x125459(0x21c)]();}[_0x56cc55(0x32b)](){const _0xfb43c7=_0x56cc55;var _0x46e10d;const _0x5e1c04=[[Te],[se],[ee],[Z],[Q],[Oe],[pe,{'useClass':Fe}],[G[_0xfb43c7(0x2f1)],{'useClass':G[_0xfb43c7(0x337)]}],[u['ILocalCacheService'],{'useClass':Ee}],[exports[_0xfb43c7(0x2fd)]],[te],[J],[B],[de],[exports[_0xfb43c7(0x12d)]]];a[_0xfb43c7(0x1d3)](this[_0xfb43c7(0x18a)],a['mergeOverrideWithDependencies'](_0x5e1c04,(_0x46e10d=this[_0xfb43c7(0x1ae)])==null?void 0x0:_0x46e10d[_0xfb43c7(0x286)]));}[_0x56cc55(0x21c)](){const _0x3548b6=_0x56cc55;this[_0x3548b6(0x303)](this[_0x3548b6(0x104)]['registerRenderModule'](a[_0x3548b6(0x15a)][_0x3548b6(0x2ce)],[ge])),this[_0x3548b6(0x303)](this[_0x3548b6(0x104)][_0x3548b6(0x1a3)](a['UniverInstanceType'][_0x3548b6(0x25f)],[ve]));}['_initDependencies'](){const _0x44da0f=_0x56cc55;a[_0x44da0f(0x2ea)](this[_0x44da0f(0x18a)],[[B],[exports[_0x44da0f(0x2fd)]],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x56cc55(0x11e)],_0x56cc55(0x12a),as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x56cc55(0x2fe)](u[_0x56cc55(0x16c)]),Ie(0x1,C[_0x56cc55(0x312)]),Ie(0x2,a[_0x56cc55(0x32f)](a['Injector'])),Ie(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x56cc55(0x369)],ls=(_0x273b64,_0x3a48a0,_0x65334a,_0x7fcc78)=>{const _0x20a0e4=_0x56cc55;for(var _0x1e0907=_0x7fcc78>0x1?void 0x0:_0x7fcc78?cs(_0x3a48a0,_0x65334a):_0x3a48a0,_0x1751d9=_0x273b64[_0x20a0e4(0x38a)]-0x1,_0xad8967;_0x1751d9>=0x0;_0x1751d9--)(_0xad8967=_0x273b64[_0x1751d9])&&(_0x1e0907=_0xad8967(_0x1e0907)||_0x1e0907);return _0x1e0907;},H=(_0x440b4d,_0xd4f43c)=>(_0x223793,_0x596f34)=>_0xd4f43c(_0x223793,_0x596f34,_0x440b4d);exports['BrowserCollaborationSocketService']=class extends u[_0x56cc55(0x182)]{constructor(_0x5119a1,_0x2de781,_0x1afed8,_0x52b363,_0x236d63){super(_0x5119a1,_0x2de781,_0x1afed8,_0x52b363,_0x236d63);}async[_0x56cc55(0xd5)](_0x3baa69){const _0x137454=_0x56cc55,_0x8369a=await this['_getSessionTicket'](),_0x5ef2fa=this[_0x137454(0x16e)](_0x3baa69,_0x8369a);return this[_0x137454(0x26f)](_0x5ef2fa);}['_createSocketURL'](_0x1e16ad,_0x59441d){const _0x8b989f=_0x56cc55,_0x1193da=typeof window>'u'?new URL(_0x1e16ad):new URL(_0x1e16ad,window[_0x8b989f(0x1ed)][_0x8b989f(0x11f)]);_0x1193da[_0x8b989f(0x2c9)][_0x8b989f(0x22d)](_0x8b989f(0x319),_0x59441d);const _0x40e805=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8b989f(0x1ed)]['search']);return _0x40e805[_0x8b989f(0x15d)](_0x8b989f(0x370))&&_0x1193da[_0x8b989f(0x2c9)][_0x8b989f(0x22d)]('runId',_0x40e805[_0x8b989f(0x15d)]('runId')),_0x1193da[_0x8b989f(0x175)]();}async[_0x56cc55(0x2fc)](){const _0x7b9c16=_0x56cc55;var _0x4ee30f,_0x26a6a4,_0x593ba4;const _0x4526a7=this['_configService'][_0x7b9c16(0x33c)](u[_0x7b9c16(0x245)]),_0x2729d4=(_0x4ee30f=_0x4526a7==null?void 0x0:_0x4526a7[_0x7b9c16(0x359)])!=null?_0x4ee30f:u[_0x7b9c16(0x146)];return(_0x593ba4=(_0x26a6a4=(await this['_httpService'][_0x7b9c16(0x15d)](_0x2729d4,{'headers':{'Content-Type':_0x7b9c16(0x310)}}))[_0x7b9c16(0xe1)])==null?void 0x0:_0x26a6a4[_0x7b9c16(0x352)])!=null?_0x593ba4:'';}},exports[_0x56cc55(0x1de)]=ls([H(0x0,a['Inject'](a[_0x56cc55(0x24a)])),H(0x1,a[_0x56cc55(0x32f)](G[_0x56cc55(0x13c)])),H(0x2,a[_0x56cc55(0x203)]),H(0x3,a[_0x56cc55(0x1e4)]),H(0x4,v[_0x56cc55(0x1c8)])],exports['BrowserCollaborationSocketService']);var _s=Object[_0x56cc55(0x369)],hs=(_0x30f13e,_0x463e08,_0x21d1dc,_0x596e75)=>{const _0x536a51=_0x56cc55;for(var _0x124c41=_0x596e75>0x1?void 0x0:_0x596e75?_s(_0x463e08,_0x21d1dc):_0x463e08,_0x3b5c9b=_0x30f13e[_0x536a51(0x38a)]-0x1,_0x3dfcbe;_0x3b5c9b>=0x0;_0x3b5c9b--)(_0x3dfcbe=_0x30f13e[_0x3b5c9b])&&(_0x124c41=_0x3dfcbe(_0x124c41)||_0x124c41);return _0x124c41;},Se=(_0x202622,_0x177f1e)=>(_0x397be8,_0x2185ea)=>_0x177f1e(_0x397be8,_0x2185ea,_0x202622);exports[_0x56cc55(0x31c)]=class extends a[_0x56cc55(0x30f)]{constructor(_0x5e5e05,_0x3031e4,_0x984499){const _0x298220=_0x56cc55;super(),this[_0x298220(0x1d8)]=_0x5e5e05,this[_0x298220(0x120)]=_0x3031e4,this[_0x298220(0x215)]=_0x984499;}async[_0x56cc55(0x234)](_0x364093,_0x5c905a,_0x29f96f,..._0x302041){const _0x5dcf7c=_0x56cc55;var _0x1666f2,_0x497629,_0x8a5cae,_0x3675cb;const _0x19bf8f=this[_0x5dcf7c(0x1d8)]['getFocusedUnit']();if(!_0x19bf8f)throw new Error(_0x5dcf7c(0x384));const _0x5a6565=((_0x1666f2=this[_0x5dcf7c(0x215)][_0x5dcf7c(0x33c)](u[_0x5dcf7c(0x2ae)]))!=null?_0x1666f2:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x364093+'/run/'+_0x5c905a,_0x3b3b73=new URL(window[_0x5dcf7c(0x1ed)][_0x5dcf7c(0x225)]),_0x1472c0={'scriptId':_0x364093,'runId':(_0x497629=_0x3b3b73[_0x5dcf7c(0x2c9)]['get'](_0x5dcf7c(0x370)))!=null?_0x497629:'','function':_0x5c905a,'unitId':_0x19bf8f[_0x5dcf7c(0x28b)](),'argsOfFunction':JSON[_0x5dcf7c(0x379)](_0x302041),'invokeId':(_0x8a5cae=_0x29f96f['invokeId'])!=null?_0x8a5cae:'','executionId':(_0x3675cb=_0x29f96f['executionId'])!=null?_0x3675cb:''};try{const _0x40830d=await this[_0x5dcf7c(0x120)][_0x5dcf7c(0x2f2)](_0x5a6565,{'body':_0x1472c0});return _0x40830d[_0x5dcf7c(0xe1)][_0x5dcf7c(0x1b4)]&&_0x40830d['body']['error'][_0x5dcf7c(0x1b5)]!==V['OK']?_0x5dcf7c(0x322):_0x40830d[_0x5dcf7c(0xe1)][_0x5dcf7c(0x169)];}catch{return _0x5dcf7c(0x322);}}},exports[_0x56cc55(0x31c)]=hs([Se(0x0,a[_0x56cc55(0x211)]),Se(0x1,a[_0x56cc55(0x32f)](G['HTTPService'])),Se(0x2,a[_0x56cc55(0x203)])],exports['RemoteUniscriptService']);const Ae=0x7530,Pe=_0x56cc55(0x138);class us extends a[_0x56cc55(0x30f)]{constructor(){const _0x465266=_0x56cc55;super(),_(this,_0x465266(0x354),a[_0x465266(0x368)]()),_(this,_0x465266(0x302),new Set()),_(this,_0x465266(0x200),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x465266(0x201),new Map()),this[_0x465266(0x10e)]();}['dispose'](){const _0x105e60=_0x56cc55;super[_0x105e60(0x236)](),this['_clearOtherTimers']['forEach']((_0x441809,_0x294c15)=>this['_removeClearOtherTimer'](_0x294c15)),this[_0x105e60(0x2e2)]&&window[_0x105e60(0x279)](this[_0x105e60(0x2e2)]);}['getUnitStatus$'](_0xb8ca7f){const _0x4f7b09=_0x56cc55;return this[_0x4f7b09(0x17f)](_0xb8ca7f)[_0x4f7b09(0x1ad)](I[_0x4f7b09(0x227)]());}[_0x56cc55(0x222)](_0x28fb04){const _0x77901f=_0x56cc55;this[_0x77901f(0x302)][_0x77901f(0x2df)]===0x0&&this['_scheduleHeartbeat'](),this[_0x77901f(0x302)][_0x77901f(0x35c)](_0x28fb04),this[_0x77901f(0x1c2)]({'type':0x0,'memberID':this[_0x77901f(0x354)],'unitIDs':[_0x28fb04],'isForwarded':!0x1});}[_0x56cc55(0x327)](_0x129779){const _0x546971=_0x56cc55;this[_0x546971(0x302)][_0x546971(0x335)](_0x129779),this[_0x546971(0x302)][_0x546971(0x2df)]===0x0&&this[_0x546971(0x2e2)]&&window['clearInterval'](this[_0x546971(0x2e2)]);}[_0x56cc55(0x10e)](){const _0x32721a=_0x56cc55;this[_0x32721a(0x303)](a[_0x32721a(0xd7)](I[_0x32721a(0x325)](window,_0x32721a(0x365))[_0x32721a(0xdc)](_0x44b049=>{const _0x550980=_0x32721a;if(_0x44b049[_0x550980(0x213)]!==Pe||!_0x44b049[_0x550980(0x339)])return;const _0x7e1fda=JSON['parse'](_0x44b049[_0x550980(0x339)]);this[_0x550980(0x246)](_0x7e1fda);}))),window[_0x32721a(0xd9)](_0x32721a(0x37f),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x32721a(0x2e0)](this[_0x32721a(0x302)])}));}[_0x56cc55(0x246)](_0xa0078b){const _0x2a1eb8=_0x56cc55;switch(_0xa0078b['type']){case 0x0:this[_0x2a1eb8(0x115)](_0xa0078b);break;case 0x1:this[_0x2a1eb8(0xf0)](_0xa0078b);break;case 0x2:this[_0x2a1eb8(0x135)](_0xa0078b);break;}}[_0x56cc55(0x115)](_0x1add46){const _0x461585=_0x56cc55,{unitIDs:_0x26ebaf,memberID:_0x2307fa,isForwarded:_0x2ec2af}=_0x1add46;_0x26ebaf[_0x461585(0x306)](_0xabb6b7=>{const _0x2412e1=_0x461585;if(!_0x2ec2af&&this[_0x2412e1(0x200)][_0x2412e1(0x36b)](_0xabb6b7)&&this[_0x2412e1(0x17f)](_0xabb6b7)['next'](u[_0x2412e1(0xe6)][_0x2412e1(0x12c)]),!this[_0x2412e1(0x200)][_0x2412e1(0x36b)](_0xabb6b7)||!this[_0x2412e1(0x200)][_0x2412e1(0x15d)](_0xabb6b7)[_0x2412e1(0x36b)](_0x2307fa)){const _0x324a46=this[_0x2412e1(0x200)][_0x2412e1(0x15d)](_0xabb6b7)||new Set();_0x324a46[_0x2412e1(0x35c)](_0x2307fa),this[_0x2412e1(0x200)][_0x2412e1(0x22d)](_0xabb6b7,_0x324a46),this[_0x2412e1(0x383)](_0x2307fa);}}),_0x2ec2af||this[_0x461585(0x1c2)]({'type':0x0,'memberID':this[_0x461585(0x354)],'unitIDs':[...this[_0x461585(0x302)]],'isForwarded':!0x0});}[_0x56cc55(0x383)](_0x30d398){const _0x4d8f45=_0x56cc55;this[_0x4d8f45(0x242)](_0x30d398);const _0x1bd2c4=window[_0x4d8f45(0x185)](()=>{const _0x527876=_0x4d8f45;this['_unitOnClients'][_0x527876(0x306)](_0x122f02=>{const _0x3ba601=_0x527876;_0x122f02[_0x3ba601(0x335)](_0x30d398);});},Ae*0x2);this[_0x4d8f45(0x21f)][_0x4d8f45(0x22d)](_0x30d398,_0x1bd2c4);}[_0x56cc55(0x242)](_0x558c03){const _0x53c8df=_0x56cc55;if(this[_0x53c8df(0x21f)][_0x53c8df(0x36b)](_0x558c03)){const _0xa33a2f=this[_0x53c8df(0x21f)][_0x53c8df(0x15d)](_0x558c03);_0xa33a2f&&window['clearTimeout'](_0xa33a2f),this[_0x53c8df(0x21f)]['set'](_0x558c03,null);}}[_0x56cc55(0xf0)](_0x559d06){const _0x20368b=_0x56cc55,{memberID:_0x1119dd,unitIDs:_0x2ddbf8}=_0x559d06;_0x2ddbf8['forEach'](_0x5c9d06=>{const _0x249515=_0x5cb8;var _0x2e6b37;const _0x4bf87e=this[_0x249515(0x200)]['get'](_0x5c9d06);_0x4bf87e&&(_0x4bf87e['delete'](_0x1119dd),(_0x2e6b37=this[_0x249515(0x17f)](_0x5c9d06))==null||_0x2e6b37['next'](_0x4bf87e[_0x249515(0x2df)]===0x0?u['UnitStatus'][_0x249515(0x27b)]:u[_0x249515(0xe6)]['OTHER_CLIENTS_EDITING']));}),this[_0x20368b(0x242)](_0x1119dd);}['_handleHeartbeatEvent'](_0xd35506){const _0x27373d=_0x56cc55;this[_0x27373d(0x383)](_0xd35506[_0x27373d(0xeb)]);}[_0x56cc55(0x1c2)](_0x2ccdd9){const _0x956666=_0x56cc55;localStorage[_0x956666(0x13b)](Pe,JSON[_0x956666(0x379)](_0x2ccdd9));}['_scheduleHeartbeat'](){const _0x4fe52d=_0x56cc55;this[_0x4fe52d(0x2e2)]=window[_0x4fe52d(0x10a)](()=>{const _0x23c930=_0x4fe52d;this[_0x23c930(0x1c2)]({'type':0x2,'memberID':this[_0x23c930(0x354)]});},Ae);}['_ensureSubject'](_0x211b01){const _0x4a92dc=_0x56cc55;return this['_unitStatus'][_0x4a92dc(0x36b)](_0x211b01)||this[_0x4a92dc(0x201)]['set'](_0x211b01,new I[(_0x4a92dc(0x1b2))](u[_0x4a92dc(0xe6)][_0x4a92dc(0x27b)])),this[_0x4a92dc(0x201)]['get'](_0x211b01);}}exports[_0x56cc55(0x24d)]=pe,exports[_0x56cc55(0x1a7)]=Be,exports[_0x56cc55(0x1e6)]=us,exports[_0x56cc55(0x1f9)]=Fe;