@univerjs-pro/collaboration-client-ui 0.11.0 → 0.12.0-nightly.202511220628

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 (56) 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/ja-JP.js +1 -0
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -0
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -0
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/controllers/config.schema.d.ts +5 -0
  41. package/lib/types/controllers/frontend-log/frontend-log.controller.d.ts +17 -0
  42. package/lib/types/locale/ja-JP.d.ts +3 -0
  43. package/lib/umd/facade.js +1 -1
  44. package/lib/umd/index.js +1 -1
  45. package/lib/umd/locale/ca-ES.js +1 -1
  46. package/lib/umd/locale/en-US.js +1 -1
  47. package/lib/umd/locale/es-ES.js +1 -1
  48. package/lib/umd/locale/fa-IR.js +1 -1
  49. package/lib/umd/locale/fr-FR.js +1 -1
  50. package/lib/umd/locale/ja-JP.js +1 -0
  51. package/lib/umd/locale/ko-KR.js +1 -1
  52. package/lib/umd/locale/ru-RU.js +1 -1
  53. package/lib/umd/locale/vi-VN.js +1 -1
  54. package/lib/umd/locale/zh-CN.js +1 -1
  55. package/lib/umd/locale/zh-TW.js +1 -1
  56. package/package.json +17 -17
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x322940=_0x2b7c;(function(_0x587cdb,_0x455b41){const _0x24a996=_0x2b7c,_0x153efe=_0x587cdb();while(!![]){try{const _0x71a5dc=-parseInt(_0x24a996(0x2da))/0x1*(-parseInt(_0x24a996(0x20e))/0x2)+-parseInt(_0x24a996(0x384))/0x3+-parseInt(_0x24a996(0x16b))/0x4+-parseInt(_0x24a996(0x3e4))/0x5*(parseInt(_0x24a996(0x3db))/0x6)+parseInt(_0x24a996(0x1b0))/0x7*(-parseInt(_0x24a996(0x1c3))/0x8)+-parseInt(_0x24a996(0x18b))/0x9+parseInt(_0x24a996(0x1c1))/0xa;if(_0x71a5dc===_0x455b41)break;else _0x153efe['push'](_0x153efe['shift']());}catch(_0x131f8c){_0x153efe['push'](_0x153efe['shift']());}}}(_0x384d,0x9d89a));var Ve=Object[_0x322940(0x37d)],Ge=(_0x5346c5,_0x471b68,_0x104d73)=>_0x471b68 in _0x5346c5?Ve(_0x5346c5,_0x471b68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104d73}):_0x5346c5[_0x471b68]=_0x104d73,_=(_0x34f5e6,_0x17e492,_0x213433)=>Ge(_0x34f5e6,typeof _0x17e492!=_0x322940(0x34c)?_0x17e492+'':_0x17e492,_0x213433);Object[_0x322940(0x37d)](exports,Symbol[_0x322940(0x3c3)],{'value':_0x322940(0x1c7)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),T=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x4517c9,..._0x356224}){const _0x561d46=_0x322940,{icon:_0x31b328,id:_0x31285b,className:_0x15e5ad,extend:_0xdc50e2,..._0x5abae9}=_0x356224,_0x389bc8=(_0x561d46(0x357)+_0x31285b+'\x20'+(_0x15e5ad||''))[_0x561d46(0x29d)](),_0xae14f3=A[_0x561d46(0x405)]('_'+Je());return we(_0x31b328,''+_0x31285b,{'defIds':_0x31b328[_0x561d46(0x373)],'idSuffix':_0xae14f3[_0x561d46(0x3a9)]},{'ref':_0x4517c9,'className':_0x389bc8,..._0x5abae9},_0xdc50e2);}function we(_0x3aca37,_0x155d29,_0x35f9a7,_0x1d30df,_0x3ae03a){const _0x50e595=_0x322940;return A[_0x50e595(0x20a)](_0x3aca37[_0x50e595(0x2a4)],{'key':_0x155d29,...qe(_0x3aca37,_0x35f9a7,_0x3ae03a),..._0x1d30df},(ze(_0x3aca37,_0x35f9a7)[_0x50e595(0x194)]||[])[_0x50e595(0x19c)]((_0x37a38d,_0x4c0ee7)=>we(_0x37a38d,_0x155d29+'-'+_0x3aca37[_0x50e595(0x2a4)]+'-'+_0x4c0ee7,_0x35f9a7,void 0x0,_0x3ae03a)));}function qe(_0x2cd5c8,_0x29ce8,_0x251c57){const _0x36d5f5=_0x322940,_0x23c69a={..._0x2cd5c8[_0x36d5f5(0x17c)]};_0x251c57!=null&&_0x251c57['colorChannel1']&&_0x23c69a['fill']===_0x36d5f5(0x1ad)&&(_0x23c69a[_0x36d5f5(0x3f0)]=_0x251c57[_0x36d5f5(0x1ad)]),_0x2cd5c8[_0x36d5f5(0x2a4)]===_0x36d5f5(0x31b)&&_0x23c69a['id']&&(_0x23c69a['id']=_0x23c69a['id']+_0x29ce8[_0x36d5f5(0x2e1)]),Object[_0x36d5f5(0x3a5)](_0x23c69a)[_0x36d5f5(0x2c8)](([_0x517164,_0x315177])=>{const _0x178337=_0x36d5f5;_0x517164===_0x178337(0x31b)&&typeof _0x315177==_0x178337(0x1d0)&&(_0x23c69a[_0x517164]=_0x315177[_0x178337(0x2a9)](/url\(#(.*)\)/,_0x178337(0x2b5)+_0x29ce8[_0x178337(0x2e1)]+')'));});const {defIds:_0x249f47}=_0x29ce8;return!_0x249f47||_0x249f47[_0x36d5f5(0x1ce)]===0x0||(_0x2cd5c8[_0x36d5f5(0x2a4)]===_0x36d5f5(0x3a1)&&_0x23c69a[_0x36d5f5(0x16a)]&&(_0x23c69a['xlink:href']=_0x23c69a['xlink:href']+_0x29ce8[_0x36d5f5(0x2e1)]),Object[_0x36d5f5(0x3a5)](_0x23c69a)[_0x36d5f5(0x2c8)](([_0x4719b8,_0x27bbcd])=>{const _0x1aa345=_0x36d5f5;typeof _0x27bbcd==_0x1aa345(0x1d0)&&(_0x23c69a[_0x4719b8]=_0x27bbcd[_0x1aa345(0x2a9)](/url\(#(.*)\)/,_0x1aa345(0x2b5)+_0x29ce8['idSuffix']+')'));})),_0x23c69a;}function ze(_0x251263,_0x258b2c){const _0x359052=_0x322940;var _0x24ad5c;const {defIds:_0x31739b}=_0x258b2c;return!_0x31739b||_0x31739b['length']===0x0?_0x251263:_0x251263[_0x359052(0x2a4)]===_0x359052(0x3c9)&&((_0x24ad5c=_0x251263[_0x359052(0x194)])!=null&&_0x24ad5c[_0x359052(0x1ce)])?{..._0x251263,'children':_0x251263['children']['map'](_0x5dab6e=>typeof _0x5dab6e['attrs']['id']=='string'&&_0x31739b&&_0x31739b[_0x359052(0x2cb)](_0x5dab6e['attrs']['id'])?{..._0x5dab6e,'attrs':{..._0x5dab6e['attrs'],'id':_0x5dab6e[_0x359052(0x17c)]['id']+_0x258b2c[_0x359052(0x2e1)]}}:_0x5dab6e)}:_0x251263;}function Je(){const _0x3250cf=_0x322940;return Math[_0x3250cf(0x167)]()['toString'](0x24)[_0x3250cf(0x3e2)](0x2,0x8);}Ce['displayName']=_0x322940(0x3d2);const Ze={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x322940(0x179),'viewBox':_0x322940(0x361),'width':_0x322940(0x186),'height':_0x322940(0x186)},'children':[{'tag':'g','attrs':{'clipPath':_0x322940(0x1b3)},'children':[{'tag':'path','attrs':{'stroke':_0x322940(0x37f),'d':_0x322940(0x345),'strokeLinecap':_0x322940(0x1ca),'strokeLinejoin':_0x322940(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x322940(0x3c9),'attrs':{},'children':[{'tag':_0x322940(0x270),'attrs':{'id':_0x322940(0x197)},'children':[{'tag':_0x322940(0x2ad),'attrs':{'fill':_0x322940(0x392),'d':_0x322940(0x36d)}}]}]}],'defIds':[_0x322940(0x197)]},ye=A[_0x322940(0x2ba)](function(_0xc2c24f,_0x233faa){const _0x203598=_0x322940;return A[_0x203598(0x20a)](Ce,Object[_0x203598(0x3bd)]({},_0xc2c24f,{'id':'off-line-icon','ref':_0x233faa,'icon':Ze}));});ye['displayName']=_0x322940(0x3dc);const Qe={'tag':'svg','attrs':{'xmlns':_0x322940(0x3c7),'fill':'none','viewBox':_0x322940(0x3cb),'width':_0x322940(0x186),'height':_0x322940(0x186)},'children':[{'tag':'g','attrs':{'clipPath':_0x322940(0x3f9)},'children':[{'tag':_0x322940(0x2ad),'attrs':{'stroke':_0x322940(0x37f),'d':_0x322940(0x275),'strokeLinecap':_0x322940(0x1ca),'strokeLinejoin':_0x322940(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x322940(0x3c9),'attrs':{},'children':[{'tag':_0x322940(0x270),'attrs':{'id':_0x322940(0x34a)},'children':[{'tag':_0x322940(0x2ad),'attrs':{'fill':_0x322940(0x392),'d':_0x322940(0x36d),'transform':_0x322940(0x173)}}]}]}],'defIds':[_0x322940(0x34a)]},$e=A['forwardRef'](function(_0x2d55d2,_0x1392a4){const _0xe269d=_0x322940;return A['createElement'](Ce,Object[_0xe269d(0x3bd)]({},_0x2d55d2,{'id':_0xe269d(0x340),'ref':_0x1392a4,'icon':Qe}));});$e[_0x322940(0x391)]='OnLineIcon';function et(_0x425067){const _0x36cfda=_0x322940;switch(_0x425067){case u[_0x36cfda(0x39a)][_0x36cfda(0x376)]:return _0x36cfda(0x222);case u[_0x36cfda(0x39a)][_0x36cfda(0x342)]:return _0x36cfda(0x22f);case u[_0x36cfda(0x39a)][_0x36cfda(0x206)]:return _0x36cfda(0x3d0);case u[_0x36cfda(0x39a)][_0x36cfda(0x1f4)]:return _0x36cfda(0x318);case u[_0x36cfda(0x39a)][_0x36cfda(0x232)]:case u[_0x36cfda(0x39a)][_0x36cfda(0x38e)]:return _0x36cfda(0x171);case u['CollaborationStatus'][_0x36cfda(0x202)]:case u['CollaborationStatus'][_0x36cfda(0x15a)]:return _0x36cfda(0x2ce);}}function tt(_0x125b3c){const _0x4d3b77=_0x322940,{status$:_0x2d2504}=_0x125b3c,_0x5256c0=O['useObservable'](_0x2d2504,u[_0x4d3b77(0x39a)][_0x4d3b77(0x1f4)]),_0x14a478=O[_0x4d3b77(0x38b)](a[_0x4d3b77(0x393)]),_0x2bf8c1=O[_0x4d3b77(0x38b)](u[_0x4d3b77(0x328)]),_0x53b3a3=_0x5256c0!==u[_0x4d3b77(0x39a)][_0x4d3b77(0x376)],_0x5f5398=_0x14a478['t'](et(_0x5256c0)),_0x2fd0fa=_0x53b3a3?M[_0x4d3b77(0x25e)]($e,{}):M['jsx'](ye,{}),_0x324aad=A['useCallback'](()=>{const _0x1635f9=_0x4d3b77;_0x53b3a3||_0x2bf8c1[_0x1635f9(0x1e5)]();},[_0x53b3a3,_0x2bf8c1]);function _0x53ad70(){const _0x54c58b=_0x4d3b77;return M[_0x54c58b(0x215)]('div',{'className':_0x54c58b(0x408),'onClick':_0x324aad,'children':[M[_0x54c58b(0x25e)](_0x54c58b(0x1eb),{'className':p[_0x54c58b(0x315)](_0x54c58b(0x1a4),{'univer-text-green-500':_0x53b3a3,'univer-text-red-500':!_0x53b3a3}),'children':_0x2fd0fa}),M[_0x54c58b(0x25e)](_0x54c58b(0x1eb),{'className':_0x54c58b(0x371),'children':_0x5f5398})]});}return _0x53b3a3?_0x53ad70():M['jsx'](p[_0x4d3b77(0x3de)],{'title':_0x14a478['t']('collab-client.tooltip.reconnect'),'children':_0x53ad70()});}var st=Object[_0x322940(0x27e)],it=(_0x41327c,_0x108e87,_0x40f234,_0x3a6900)=>{const _0x59449f=_0x322940;for(var _0xb9f873=_0x3a6900>0x1?void 0x0:_0x3a6900?st(_0x108e87,_0x40f234):_0x108e87,_0x2f5b67=_0x41327c[_0x59449f(0x1ce)]-0x1,_0x30b8a1;_0x2f5b67>=0x0;_0x2f5b67--)(_0x30b8a1=_0x41327c[_0x2f5b67])&&(_0xb9f873=_0x30b8a1(_0xb9f873)||_0xb9f873);return _0xb9f873;},K=(_0x153039,_0x22da00)=>(_0x17e522,_0x8b68ac)=>_0x22da00(_0x17e522,_0x8b68ac,_0x153039);exports[_0x322940(0x355)]=class extends a[_0x322940(0x1d6)]{constructor(_0x3aa7ce,_0x39d8e8,_0x30bbc1,_0x4ab081){const _0x576dc0=_0x322940;super(),_(this,_0x576dc0(0x40f),new I[(_0x576dc0(0x2cc))](u[_0x576dc0(0x39a)]['NOT_COLLAB'])),(this[_0x576dc0(0x24d)]=_0x3aa7ce,this['_injector']=_0x39d8e8,this[_0x576dc0(0x3c1)]=_0x30bbc1,this['_uiPartsService']=_0x4ab081,this['_initStatusComponent'](),this[_0x576dc0(0x2f3)]());}[_0x322940(0x2f3)](){const _0x5d5d27=_0x322940;this[_0x5d5d27(0x192)](this['_univerInstanceService']['focused$'][_0x5d5d27(0x396)](I[_0x5d5d27(0x241)](()=>{const _0x45c356=_0x5d5d27,_0x1e6755=this[_0x45c356(0x24d)]['getFocusedUnit']();return _0x1e6755?this[_0x45c356(0x3c1)][_0x45c356(0x326)](_0x1e6755[_0x45c356(0x259)]()):I['of'](null);}),I['switchMap'](_0x7ab452=>_0x7ab452?_0x7ab452[_0x5d5d27(0x30d)]:I['of'](u[_0x5d5d27(0x39a)][_0x5d5d27(0x1f4)])))[_0x5d5d27(0x2e7)](_0x144bdd=>{const _0x4ba556=_0x5d5d27;this[_0x4ba556(0x40f)][_0x4ba556(0x255)](_0x144bdd);}));}[_0x322940(0x1b5)](){const _0x169849=_0x322940;this['disposeWithMe'](this['_uiPartsService'][_0x169849(0x401)](O[_0x169849(0x313)]['HEADER_MENU'],()=>O['connectInjector'](nt({'status$':this[_0x169849(0x40f)]['asObservable']()}),this['_injector'])));}},exports[_0x322940(0x355)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a['Injector'])),K(0x2,a[_0x322940(0x1da)](u['CollaborationController'])),K(0x3,O[_0x322940(0x2ea)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x4d0953){const {status$:_0x2990aa}=_0x4d0953;return function(){const _0x2b4e38=_0x2b7c;return M[_0x2b4e38(0x25e)](tt,{'status$':_0x2990aa});};}const Te=a['createIdentifier'](_0x322940(0x278));var rt=Object[_0x322940(0x27e)],ot=(_0xa8bb31,_0x53a6fe,_0xdbfa91,_0x559998)=>{const _0x1d8052=_0x322940;for(var _0x212125=_0x559998>0x1?void 0x0:_0x559998?rt(_0x53a6fe,_0xdbfa91):_0x53a6fe,_0x35635e=_0xa8bb31[_0x1d8052(0x1ce)]-0x1,_0x25faf0;_0x35635e>=0x0;_0x35635e--)(_0x25faf0=_0xa8bb31[_0x35635e])&&(_0x212125=_0x25faf0(_0x212125)||_0x212125);return _0x212125;},j=(_0xa5ff1c,_0x5f59ef)=>(_0x1e9ed9,_0x19378f)=>_0x5f59ef(_0x1e9ed9,_0x19378f,_0xa5ff1c);exports[_0x322940(0x231)]=class extends a['RxDisposable']{constructor(_0x1f107c,_0x21eda2,_0x3ff01b,_0x30271d,_0x221a91){const _0x4267cb=_0x322940;super(),this[_0x4267cb(0x3cf)]=_0x1f107c,this[_0x4267cb(0x274)]=_0x21eda2,this['_commandService']=_0x3ff01b,this[_0x4267cb(0x2ac)]=_0x30271d,_0x221a91?_0x221a91==null||_0x221a91['whenReady']()[_0x4267cb(0x358)](()=>this[_0x4267cb(0x3a3)]()):(this[_0x4267cb(0x274)][_0x4267cb(0x1c4)](_0x4267cb(0x2a5),_0x4267cb(0x2b0)),this[_0x4267cb(0x3a3)]());}async[_0x322940(0x3a3)](){const _0x30aab9=_0x322940,_0xfdcd8f=this[_0x30aab9(0x3cf)][_0x30aab9(0x185)](_0x30aab9(0x2d7)),_0xa09833=this[_0x30aab9(0x3cf)][_0x30aab9(0x185)](_0x30aab9(0x302)),_0x53ccc9=this[_0x30aab9(0x3cf)][_0x30aab9(0x185)](_0x30aab9(0x1b4));if(!_0xfdcd8f||!_0xa09833){this[_0x30aab9(0x274)]['debug'](_0x30aab9(0x2a5),_0x30aab9(0x2a7));return;}const _0x3b2544=await this[_0x30aab9(0x2ac)]['loadUnit'](_0xfdcd8f,Number(_0xa09833),_0x53ccc9);_0x3b2544&&_0x3b2544 instanceof a[_0x30aab9(0x40d)]&&this[_0x30aab9(0x1d2)](_0x3b2544);}async[_0x322940(0x1d2)](_0x37acd3){const _0x507139=_0x322940;await this[_0x507139(0x356)](_0x37acd3),_0x37acd3[_0x507139(0x3d3)][_0x507139(0x396)](I[_0x507139(0x1e9)](this[_0x507139(0x183)]))['subscribe'](_0x281ef5=>{_0x281ef5&&this['_updateURLWithCurrentState'](_0x281ef5);}),this[_0x507139(0x3cf)][_0x507139(0x321)][_0x507139(0x396)](I[_0x507139(0x1e9)](this[_0x507139(0x183)]))[_0x507139(0x2e7)](()=>this[_0x507139(0x356)](_0x37acd3));}[_0x322940(0x2af)](_0x50b372,_0x4af61e=!0x1){const _0x1f57dd=_0x322940,_0x43bd79=this[_0x1f57dd(0x3cf)][_0x1f57dd(0x185)](_0x1f57dd(0x1b4));_0x50b372[_0x1f57dd(0x2f6)]()!==_0x43bd79&&this[_0x1f57dd(0x3cf)][_0x1f57dd(0x1fe)](_0x1f57dd(0x1b4),_0x50b372[_0x1f57dd(0x2f6)](),_0x4af61e);}async[_0x322940(0x356)](_0x4f598d){const _0x4990ef=_0x322940;var _0x4c0447;const _0x596b52=this[_0x4990ef(0x3cf)]['getParam'](_0x4990ef(0x1b4));if(!_0x596b52||!_0x4f598d[_0x4990ef(0x353)](_0x596b52)){const _0x4f04b5=_0x4f598d['getUnhiddenWorksheets']()[0x0],_0x22480c=_0x4f598d[_0x4990ef(0x353)](_0x4f04b5);if(!_0x22480c)return;this[_0x4990ef(0x2af)](_0x22480c,!0x0),await this[_0x4990ef(0x263)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4f598d[_0x4990ef(0x259)](),'subUnitId':_0x4f04b5});return;}((_0x4c0447=_0x4f598d[_0x4990ef(0x292)]())==null?void 0x0:_0x4c0447[_0x4990ef(0x2f6)]())!==_0x596b52&&await this[_0x4990ef(0x263)][_0x4990ef(0x1a5)](g[_0x4990ef(0x277)]['id'],{'unitId':_0x4f598d[_0x4990ef(0x259)](),'subUnitId':_0x596b52});}},exports[_0x322940(0x231)]=ot([j(0x0,Te),j(0x1,a[_0x322940(0x19d)]),j(0x2,a[_0x322940(0x338)]),j(0x3,a['Inject'](u[_0x322940(0x381)])),j(0x4,a[_0x322940(0x1bd)](Xe[_0x322940(0x2f7)]))],exports[_0x322940(0x231)]);function _0x2b7c(_0x1b514a,_0x46cb9f){const _0x384d2b=_0x384d();return _0x2b7c=function(_0x2b7cdd,_0x5ef2c7){_0x2b7cdd=_0x2b7cdd-0x158;let _0x281c66=_0x384d2b[_0x2b7cdd];return _0x281c66;},_0x2b7c(_0x1b514a,_0x46cb9f);}var at=Object[_0x322940(0x27e)],ct=(_0x297d70,_0x2c8ab3,_0x27af23,_0x1c1b19)=>{const _0x4f8b3e=_0x322940;for(var _0xb5afaa=_0x1c1b19>0x1?void 0x0:_0x1c1b19?at(_0x2c8ab3,_0x27af23):_0x2c8ab3,_0x51dae7=_0x297d70[_0x4f8b3e(0x1ce)]-0x1,_0x2c64c7;_0x51dae7>=0x0;_0x51dae7--)(_0x2c64c7=_0x297d70[_0x51dae7])&&(_0xb5afaa=_0x2c64c7(_0xb5afaa)||_0xb5afaa);return _0xb5afaa;},Re=(_0x514b53,_0x57ffa1)=>(_0x1e20f3,_0x43dfb7)=>_0x57ffa1(_0x1e20f3,_0x43dfb7,_0x514b53);let de=class extends a[_0x322940(0x310)]{constructor(_0x2f8654,_0x448175){const _0x331269=_0x322940;super(),this['_docClipboardService']=_0x2f8654,this[_0x331269(0x3e5)]=_0x448175,this[_0x331269(0x3a3)]();}['_init'](){const _0x27f050=_0x322940,_0x2c8013=this;this[_0x27f050(0x192)](this[_0x27f050(0x2a3)][_0x27f050(0x1a1)]({'onBeforePasteImage':async _0x95d5b8=>{const _0x256c00=_0x27f050,_0x31ad80=await _0x2c8013[_0x256c00(0x3e5)][_0x256c00(0x2ef)](_0x95d5b8);return _0x31ad80?{'source':_0x31ad80['source'],'imageSourceType':_0x31ad80[_0x256c00(0x3ac)]}:null;}}));}};de=ct([Re(0x0,T[_0x322940(0x37a)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0x322940(0x300),_0x322940(0x359),_0x322940(0x257),_0x322940(0x16e),_0x322940(0x372),_0x322940(0x369)];class pe extends a['Disposable']{constructor(){const _0x3754f1=_0x322940;super(...arguments),_(this,_0x3754f1(0x2aa),new Map()),_(this,_0x3754f1(0x25d),0x0);}[_0x322940(0x3fd)](_0x243951){const _0x5a96f2=_0x322940;if(this[_0x5a96f2(0x2aa)][_0x5a96f2(0x1a0)](_0x243951))return this[_0x5a96f2(0x2aa)]['get'](_0x243951);const _0x5e32e4=be[this[_0x5a96f2(0x25d)]];return this[_0x5a96f2(0x25d)]=(this[_0x5a96f2(0x25d)]+0x1)%be[_0x5a96f2(0x1ce)],this[_0x5a96f2(0x2aa)]['set'](_0x243951,_0x5e32e4),_0x5e32e4;}}function xe(_0x54403a){const _0x2859f4=_0x322940;let _0x2095f1='';for(const _0x1109e2 of _0x54403a){const {startOffset:_0x241af0,endOffset:_0x2e5336,isActive:_0x3d7ac7,rangeType:_0x3de3da,segmentId:_0x24fa8b,segmentPage:_0x492aca}=_0x1109e2;_0x2095f1[_0x2859f4(0x1ce)]&&(_0x2095f1+=','),_0x2095f1+=_0x241af0+':'+_0x2e5336+':'+(_0x3d7ac7?'1':'0')+':'+_0x3de3da+':'+_0x24fa8b+':'+_0x492aca;}return _0x2095f1;}function lt(_0x136dee){const _0x2ab742=_0x322940,_0xbe61d3=_0x136dee[_0x2ab742(0x1bb)](','),_0x5b2533=[];for(const _0x2c22e3 of _0xbe61d3){const [_0x5667a7,_0xfeb9cc,_0x693bf4,_0x4d2241,_0x435936,_0x4484d0]=_0x2c22e3[_0x2ab742(0x1bb)](':');_0x5b2533[_0x2ab742(0x32d)]({'startOffset':Number(_0x5667a7),'endOffset':Number(_0xfeb9cc),'collapsed':_0x5667a7===_0xfeb9cc,'isActive':_0x693bf4==='1','rangeType':_0x4d2241===a[_0x2ab742(0x309)]['TEXT']?a[_0x2ab742(0x309)][_0x2ab742(0x2bd)]:a[_0x2ab742(0x309)]['RECT'],'segmentId':typeof _0x435936==_0x2ab742(0x1d0)?String(_0x435936):'','segmentPage':Number(_0x4484d0!=null?_0x4484d0:-0x1)});}return _0x5b2533[_0x2ab742(0x33b)](_0x310e92=>_0x310e92[_0x2ab742(0x188)])||(_0x5b2533[0x0]['isActive']=!0x0),_0x5b2533;}class Oe extends a[_0x322940(0x310)]{constructor(){const _0x21be05=_0x322940;super(...arguments),_(this,_0x21be05(0x332),new I['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x21be05(0x332)]['asObservable']());}[_0x322940(0x23a)](_0x1219e6){const _0x12c73d=_0x322940,{unitID:_0x580517,memberID:_0x2fb6f9,textRanges:_0x16a539}=_0x1219e6,_0x4255a9=xe(_0x16a539);if(_0x4255a9==='')return;const _0x27ba16={'unitID':_0x580517,'memberID':_0x2fb6f9,'selection':_0x4255a9};this[_0x12c73d(0x332)][_0x12c73d(0x255)](_0x27ba16);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x32b671,_0x4b1e5a,_0x3bced5,_0xf7b193)=>{const _0x21c3a7=_0x322940;for(var _0x2e26cb=_0xf7b193>0x1?void 0x0:_0xf7b193?_t(_0x4b1e5a,_0x3bced5):_0x4b1e5a,_0x3a6ffa=_0x32b671[_0x21c3a7(0x1ce)]-0x1,_0x2b0965;_0x3a6ffa>=0x0;_0x3a6ffa--)(_0x2b0965=_0x32b671[_0x3a6ffa])&&(_0x2e26cb=_0x2b0965(_0x2e26cb)||_0x2e26cb);return _0x2e26cb;},U=(_0x37c686,_0x36156d)=>(_0x664157,_0x5b37c2)=>_0x36156d(_0x664157,_0x5b37c2,_0x37c686);const ut=0x12c,It=0x64;let fe=class extends a[_0x322940(0x310)]{constructor(_0x278e61,_0x4e775e,_0x695401,_0x2fc4d1,_0x4cb73e,_0x4fbdec,_0x3bde62,_0x3feb41,_0x147812){const _0x523e0f=_0x322940;super(),_(this,'_online',!0x1),_(this,_0x523e0f(0x3a3),!0x1),_(this,_0x523e0f(0x2dc),new I['BehaviorSubject'](new Map())),_(this,_0x523e0f(0x1ab),this['_cursorInfo$'][_0x523e0f(0x3ff)]()),_(this,_0x523e0f(0x20f),new I[(_0x523e0f(0x2cc))]([])),_(this,_0x523e0f(0x191),this['_roomMembers$']['pipe'](I[_0x523e0f(0x2d1)](ut))),_(this,_0x523e0f(0x35e),a['debounce'](_0x18046c=>{const _0x45e03e=_0x523e0f,_0x429fd8={'eventID':v[_0x45e03e(0x2e0)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x45e03e(0x2b7)]['getMemberID'](),'selection':xe(_0x18046c)}};this[_0x45e03e(0x2b7)][_0x45e03e(0x1a8)](_0x429fd8,this['unitID']);},It)),(this[_0x523e0f(0x394)]=_0x278e61,this[_0x523e0f(0x2b7)]=_0x4e775e,this[_0x523e0f(0x3aa)]=_0x695401,this[_0x523e0f(0x26d)]=_0x2fc4d1,this[_0x523e0f(0x2b3)]=_0x4cb73e,this['_syncEditingCollabCursorService']=_0x4fbdec,this[_0x523e0f(0x1ae)]=_0x3bde62,this[_0x523e0f(0x24d)]=_0x3feb41,this[_0x523e0f(0x263)]=_0x147812);}get[_0x322940(0x17f)](){const _0x217ed2=_0x322940;return this[_0x217ed2(0x2dc)][_0x217ed2(0x25a)]();}get['roomMembers'](){const _0x188232=_0x322940;return this[_0x188232(0x20f)][_0x188232(0x25a)]();}[_0x322940(0x198)](){const _0x583b4f=_0x322940;super[_0x583b4f(0x198)](),this[_0x583b4f(0x2dc)][_0x583b4f(0x255)](new Map()),this['_cursorInfo$'][_0x583b4f(0x264)](),this['_roomMembers$'][_0x583b4f(0x255)]([]),this['_roomMembers$'][_0x583b4f(0x264)]();}[_0x322940(0x223)](){const _0xb3086=_0x322940;this[_0xb3086(0x3a3)]||(this['_init']=!0x0,this[_0xb3086(0x2b7)][_0xb3086(0x1ea)][_0xb3086(0x396)](I['takeUntil'](this['dispose$']))[_0xb3086(0x2e7)](_0x2e32af=>{const _0x27e23a=_0xb3086;_0x2e32af===u[_0x27e23a(0x193)][_0x27e23a(0x2d9)]?this[_0x27e23a(0x2ed)]():this[_0x27e23a(0x26c)]();}),this[_0xb3086(0x2b7)]['event$']['pipe'](I[_0xb3086(0x1e9)](this[_0xb3086(0x183)]))['subscribe'](_0x313c4f=>{const _0x3364ca=_0xb3086,_0x5e0cb6=_0x313c4f[_0x3364ca(0x3c2)];_0x5e0cb6===v[_0x3364ca(0x2e0)][_0x3364ca(0x390)]&&this['_onCursorUpdate'](_0x313c4f),_0x5e0cb6===v[_0x3364ca(0x2e0)][_0x3364ca(0x39b)]&&this['_onCursorDelete'](_0x313c4f);}),this[_0xb3086(0x192)](this[_0xb3086(0x263)]['onCommandExecuted'](_0x501614=>{const _0x302c4e=_0xb3086,_0x4b62ea=_0x501614[_0x302c4e(0x2b2)];_0x4b62ea!=null&&this[_0x302c4e(0x22c)]&&_0x501614['id']===W['SetTextSelectionsOperation']['id']&&_0x4b62ea[_0x302c4e(0x336)]===this[_0x302c4e(0x394)]&&_0x4b62ea['isEditing']===!0x1&&_0x4b62ea[_0x302c4e(0x17e)][_0x302c4e(0x1ce)]>0x0&&this[_0x302c4e(0x35e)](_0x4b62ea[_0x302c4e(0x17e)]);})),this[_0xb3086(0x166)][_0xb3086(0x3da)][_0xb3086(0x396)](I['takeUntil'](this[_0xb3086(0x183)]))[_0xb3086(0x2e7)](_0x309f01=>{const _0x48a94b=_0xb3086;if((_0x309f01==null?void 0x0:_0x309f01[_0x48a94b(0x394)])!==this[_0x48a94b(0x394)])return;const _0x3c3c5a={'eventID':v[_0x48a94b(0x2e0)][_0x48a94b(0x390)],'data':_0x309f01};this[_0x48a94b(0x15c)](_0x3c3c5a);}),this[_0xb3086(0x192)](this[_0xb3086(0x263)][_0xb3086(0x2dd)](_0x58bf5e=>{const _0x2b712b=_0xb3086;if(_0x58bf5e['params']==null)return;const _0x479343=_0x58bf5e[_0x2b712b(0x2b2)];if(_0x58bf5e['id']!==W['RichTextEditingMutation']['id']||_0x479343[_0x2b712b(0x336)]!==this[_0x2b712b(0x394)])return;const _0x3de648={'id':_0x2b712b(0x2fd),'params':_0x479343},_0x766c4f=this[_0x2b712b(0x17f)];for(const [_0x4e2cd1,_0x3a66ae]of _0x766c4f){const _0x3675ae={'id':_0x2b712b(0x2fd),'params':{'unitId':this[_0x2b712b(0x394)],'actions':null,'textRanges':_0x3a66ae[_0x2b712b(0x17e)]}},_0x5d89a5=this['_transformService']['transformMutation'](_0x3de648,_0x3675ae,!0x1);if(v[_0x2b712b(0x201)](_0x5d89a5))throw _0x5d89a5[_0x2b712b(0x21f)];_0x766c4f[_0x2b712b(0x269)](_0x4e2cd1,{..._0x3a66ae,'ranges':_0x5d89a5[_0x2b712b(0x187)][_0x2b712b(0x2b2)]['textRanges']});}queueMicrotask(()=>{const _0x23e2f2=_0x2b712b;this[_0x23e2f2(0x2dc)][_0x23e2f2(0x255)](_0x766c4f);});})));}[_0x322940(0x15c)](_0x3ab913){const _0x4b2a6e=_0x322940;var _0x497a13,_0x166103;const {memberID:_0x45b42e,selection:_0x285830}=_0x3ab913[_0x4b2a6e(0x15e)],_0x26f461=lt(_0x285830),_0xd9ec58=(_0x166103=(_0x497a13=this['_memberService'][_0x4b2a6e(0x2d5)](this[_0x4b2a6e(0x394)],_0x45b42e))==null?void 0x0:_0x497a13['name'])!=null?_0x166103:'Unknown\x20user',_0x35ba77={'color':this[_0x4b2a6e(0x26d)][_0x4b2a6e(0x3fd)](_0x45b42e),'name':_0xd9ec58,'ranges':_0x26f461},_0x368a4b=this['cursorInfo'];_0x368a4b['set'](_0x45b42e,_0x35ba77),this[_0x4b2a6e(0x2dc)]['next'](_0x368a4b);}[_0x322940(0x24c)](_0x95f0f9){const _0x594446=_0x322940,{memberID:_0x348f49}=_0x95f0f9[_0x594446(0x15e)],_0x3eeaf5=this[_0x594446(0x17f)];_0x3eeaf5[_0x594446(0x3b4)](_0x348f49),this[_0x594446(0x2dc)][_0x594446(0x255)](_0x3eeaf5);}[_0x322940(0x2ed)](){const _0x142d2a=_0x322940;var _0x572b8c;if(this[_0x142d2a(0x22c)]=!0x0,((_0x572b8c=this[_0x142d2a(0x24d)]['getFocusedUnit']())==null?void 0x0:_0x572b8c[_0x142d2a(0x259)]())!==this[_0x142d2a(0x394)])return;const _0x42d163=this[_0x142d2a(0x3aa)]['get'](W[_0x142d2a(0x1e2)])[_0x142d2a(0x1a7)]();Array['isArray'](_0x42d163)&&_0x42d163[_0x142d2a(0x1ce)]>0x0&&this[_0x142d2a(0x35e)](_0x42d163);}[_0x322940(0x26c)](){const _0x14a256=_0x322940;this[_0x14a256(0x22c)]=!0x1;}};fe=ht([U(0x2,a[_0x322940(0x1da)](a[_0x322940(0x273)])),U(0x3,a[_0x322940(0x1da)](pe)),U(0x4,a['Inject'](u[_0x322940(0x3ad)])),U(0x5,a[_0x322940(0x1da)](Oe)),U(0x6,v[_0x322940(0x413)]),U(0x7,a['IUniverInstanceService']),U(0x8,a['ICommandService'])],fe);var St=Object[_0x322940(0x27e)],dt=(_0x3a4368,_0x2c114d,_0x5b3937,_0x4af8b5)=>{const _0xe25580=_0x322940;for(var _0x365702=_0x4af8b5>0x1?void 0x0:_0x4af8b5?St(_0x2c114d,_0x5b3937):_0x2c114d,_0x5cea58=_0x3a4368[_0xe25580(0x1ce)]-0x1,_0x124a44;_0x5cea58>=0x0;_0x5cea58--)(_0x124a44=_0x3a4368[_0x5cea58])&&(_0x365702=_0x124a44(_0x365702)||_0x365702);return _0x365702;},w=(_0xc35393,_0x1a817b)=>(_0x17a1da,_0x1644b5)=>_0x1a817b(_0x17a1da,_0x1644b5,_0xc35393);const ft=0x12c,mt=0x64,gt=()=>{let _0x455af3=[],_0x1ecbf7=!0x1;return _0x495ac1=>{const _0xce57b4=_0x2b7c;_0x455af3[_0xce57b4(0x32d)](_0x495ac1),_0x1ecbf7||(_0x1ecbf7=!0x0,setTimeout(()=>{const _0x173ac3=_0xce57b4;_0x455af3[_0x173ac3(0x2c8)](_0x4ecdb0=>_0x4ecdb0()),_0x455af3=[],_0x1ecbf7=!0x1;}));};};let me=class extends a['RxDisposable']{constructor(_0xd1ec4b,_0x462771,_0x5a671b,_0x1d968b,_0x1c5ab9,_0x3031d3,_0x19c24f,_0x53d237){const _0x50ca36=_0x322940;super(),_(this,_0x50ca36(0x22c),!0x1),_(this,_0x50ca36(0x3a3),!0x1),_(this,_0x50ca36(0x2dc),new I[(_0x50ca36(0x2cc))](new Map())),_(this,'cursorInfo$',this[_0x50ca36(0x2dc)][_0x50ca36(0x3ff)]()),_(this,_0x50ca36(0x20f),new I[(_0x50ca36(0x2cc))]([])),_(this,_0x50ca36(0x191),this[_0x50ca36(0x20f)][_0x50ca36(0x396)](I[_0x50ca36(0x2d1)](ft))),_(this,_0x50ca36(0x35e),a[_0x50ca36(0x32a)]((_0x24b73b,_0x2a8105)=>{const _0x114390=_0x50ca36,_0x2025b4={'eventID':v[_0x114390(0x2e0)][_0x114390(0x390)],'data':{'unitID':this[_0x114390(0x394)],'memberID':this['_session']['getMemberID'](),'selection':x[_0x114390(0x3f2)](_0x24b73b,_0x2a8105['range'])}};this[_0x114390(0x2b7)][_0x114390(0x1a8)](_0x2025b4,this[_0x114390(0x394)]);},mt)),(this[_0x50ca36(0x394)]=_0xd1ec4b,this[_0x50ca36(0x2b7)]=_0x462771,this['_injector']=_0x5a671b,this['_colorAssignService']=_0x1d968b,this['_memberService']=_0x1c5ab9,this[_0x50ca36(0x24d)]=_0x3031d3,this[_0x50ca36(0x263)]=_0x19c24f,this[_0x50ca36(0x228)]=_0x53d237);}get[_0x322940(0x17f)](){const _0x418c6c=_0x322940;return this['_cursorInfo$'][_0x418c6c(0x25a)]();}get[_0x322940(0x386)](){const _0x4f48aa=_0x322940;return this[_0x4f48aa(0x20f)][_0x4f48aa(0x25a)]();}[_0x322940(0x198)](){const _0x2ca829=_0x322940;super['dispose'](),this[_0x2ca829(0x2dc)][_0x2ca829(0x255)](new Map()),this[_0x2ca829(0x2dc)][_0x2ca829(0x264)](),this[_0x2ca829(0x20f)][_0x2ca829(0x255)]([]),this[_0x2ca829(0x20f)][_0x2ca829(0x264)]();}[_0x322940(0x223)](){const _0x344698=_0x322940;this['_init']||(this[_0x344698(0x3a3)]=!0x0,this['_session'][_0x344698(0x1ea)][_0x344698(0x396)](I['takeUntil'](this['dispose$']))['subscribe'](_0x146866=>{const _0x4929ae=_0x344698;_0x146866===u[_0x4929ae(0x193)]['ONLINE']?this['_toggleOnline']():this[_0x4929ae(0x26c)]();}),this[_0x344698(0x2b7)][_0x344698(0x158)]['pipe'](I[_0x344698(0x1e9)](this[_0x344698(0x183)]))[_0x344698(0x2e7)](_0x283897=>{const _0x5afa0f=_0x344698,_0x3ef46e=_0x283897[_0x5afa0f(0x3c2)];_0x3ef46e===v[_0x5afa0f(0x2e0)]['UPDATE_CURSOR']&&this[_0x5afa0f(0x15c)](_0x283897),_0x3ef46e===v[_0x5afa0f(0x2e0)]['USERS_LEAVE']&&this[_0x5afa0f(0x24c)](_0x283897);}),this['_onRefRangeChange'](),this[_0x344698(0x192)](this[_0x344698(0x263)][_0x344698(0x2dd)](_0x312c04=>{const _0x3a4d2a=_0x344698;if(this[_0x3a4d2a(0x22c)]&&_0x312c04['id']===g['SetSelectionsOperation']['id']&&_0x312c04[_0x3a4d2a(0x2b2)][_0x3a4d2a(0x336)]===this[_0x3a4d2a(0x394)]){const _0x5160e8=_0x312c04[_0x3a4d2a(0x2b2)];this[_0x3a4d2a(0x35e)](_0x5160e8['subUnitId'],_0x5160e8[_0x3a4d2a(0x29a)][0x0]);}})));}[_0x322940(0x15c)](_0x1f300a){const _0x58a182=_0x322940;var _0xcf9e4a,_0x384f7a;const {memberID:_0x3fae6c,selection:_0x50021b}=_0x1f300a[_0x58a182(0x15e)],{sheetName:_0x25710d,range:_0x415391}=x['deserializeRangeWithSheet'](_0x50021b),_0x482178={'name':(_0x384f7a=(_0xcf9e4a=this['_memberService'][_0x58a182(0x2d5)](this[_0x58a182(0x394)],_0x3fae6c))==null?void 0x0:_0xcf9e4a[_0x58a182(0x1ba)])!=null?_0x384f7a:_0x58a182(0x303),'range':this[_0x58a182(0x30b)](_0x25710d,_0x415391),'sheetID':_0x25710d,'color':this['_colorAssignService'][_0x58a182(0x3fd)](_0x3fae6c),'selection':_0x50021b},_0x4516d2=this['cursorInfo'];_0x4516d2[_0x58a182(0x269)](_0x3fae6c,_0x482178),this['_cursorInfo$'][_0x58a182(0x255)](_0x4516d2);}[_0x322940(0x24c)](_0x2d274f){const _0x2839cb=_0x322940,{memberID:_0x115b62}=_0x2d274f['data'],_0x1fd211=this[_0x2839cb(0x17f)];_0x1fd211[_0x2839cb(0x3b4)](_0x115b62),this[_0x2839cb(0x2dc)][_0x2839cb(0x255)](_0x1fd211);}[_0x322940(0x30b)](_0x5cd647,_0x537967){const _0x5b5786=_0x322940;var _0x4686d8,_0x2902df;const _0x14a1d8=(_0x2902df=(_0x4686d8=this['_univerInstanceService'][_0x5b5786(0x1e3)](this[_0x5b5786(0x394)]))==null?void 0x0:_0x4686d8[_0x5b5786(0x353)](_0x5cd647))==null?void 0x0:_0x2902df['getMergeData']();return(_0x14a1d8==null?void 0x0:_0x14a1d8[_0x5b5786(0x33c)](_0x11352c=>a[_0x5b5786(0x32e)]['contains'](_0x11352c,_0x537967)))||_0x537967;}[_0x322940(0x27d)](){const _0x411980=_0x322940,_0x56481d=new a[(_0x411980(0x238))](),_0x31da48=gt(),_0x225d3f=()=>{const _0x361914=_0x411980;_0x56481d[_0x361914(0x198)]();const _0x35743c=(_0x5e1932,_0x5cd9a2,_0x3aa90e,_0x95c254)=>{const _0x452964=_0x361914;let _0x1c0312=[];switch(_0x5e1932['id']){case g[_0x452964(0x412)]['DeleteRangeMoveLeftCommandId']:{_0x1c0312=g[_0x452964(0x30f)](_0x5e1932,_0x95c254);break;}case g[_0x452964(0x412)][_0x452964(0x20c)]:{_0x1c0312=g[_0x452964(0x288)](_0x5e1932,_0x95c254);break;}case g[_0x452964(0x412)][_0x452964(0x3bf)]:{_0x1c0312=g[_0x452964(0x34d)](_0x5e1932,_0x95c254);break;}case g[_0x452964(0x412)][_0x452964(0x1cb)]:{_0x1c0312=g[_0x452964(0x2ab)](_0x5e1932,_0x95c254);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1c0312=g[_0x452964(0x406)](_0x5e1932,_0x95c254);break;}case g[_0x452964(0x412)]['InsertRowCommandId']:{_0x1c0312=g[_0x452964(0x295)](_0x5e1932,_0x95c254);break;}case g[_0x452964(0x412)]['MoveRangeCommandId']:{_0x1c0312=g['handleMoveRange'](_0x5e1932,_0x95c254);break;}case g[_0x452964(0x412)][_0x452964(0x282)]:{_0x1c0312=g['handleIRemoveCol'](_0x5e1932,_0x95c254);break;}case g[_0x452964(0x412)]['RemoveRowCommandId']:{_0x1c0312=g[_0x452964(0x2f2)](_0x5e1932,_0x95c254);break;}}const _0x2eb3e5=g[_0x452964(0x254)](_0x1c0312,_0x95c254),_0x3b4a5d=this[_0x452964(0x17f)][_0x452964(0x38c)](_0x5cd9a2);if(_0x3b4a5d&&_0x2eb3e5){const _0x53ffdf={..._0x3b4a5d,'range':_0x2eb3e5};this[_0x452964(0x17f)][_0x452964(0x269)](_0x5cd9a2,_0x53ffdf),_0x31da48(()=>{const _0x134b20=_0x452964,_0x2b1399=this[_0x134b20(0x228)][_0x134b20(0x1e1)](_0x2eb3e5,_0x19ab69=>(_0x2b1399[_0x134b20(0x198)](),_0x35743c(_0x19ab69,_0x5cd9a2,_0x3aa90e,_0x2eb3e5)));_0x56481d[_0x134b20(0x1d9)](_0x2b1399);});}return{'redos':[],'undos':[]};};this[_0x361914(0x17f)]['forEach']((_0x38af14,_0x43cc0)=>{const _0x434ddf=_0x361914,{range:_0xadf085,sheetID:_0x1db5e6}=_0x38af14,_0x4610f7=this[_0x434ddf(0x228)][_0x434ddf(0x1e1)](_0xadf085,_0xf55468=>(_0x4610f7[_0x434ddf(0x198)](),_0x35743c(_0xf55468,_0x43cc0,_0x1db5e6,_0xadf085)));_0x56481d[_0x434ddf(0x1d9)](_0x4610f7);});};this[_0x411980(0x192)](a['toDisposable'](this['_cursorInfo$'][_0x411980(0x2e7)](()=>{_0x225d3f();})));}[_0x322940(0x2ed)](){const _0x301e76=_0x322940;var _0x18be61,_0x14e957;if(this[_0x301e76(0x22c)]=!0x0,((_0x18be61=this[_0x301e76(0x24d)][_0x301e76(0x27a)]())==null?void 0x0:_0x18be61['getUnitId']())!==this[_0x301e76(0x394)])return;const _0x5e98c1=(_0x14e957=this[_0x301e76(0x3aa)][_0x301e76(0x38c)](g[_0x301e76(0x3fe)])[_0x301e76(0x240)]())==null?void 0x0:_0x14e957[0x0],_0x42dd1d=this[_0x301e76(0x24d)][_0x301e76(0x2cf)](a['UniverInstanceType'][_0x301e76(0x251)])[_0x301e76(0x292)]();_0x5e98c1&&_0x42dd1d&&this[_0x301e76(0x35e)](_0x42dd1d[_0x301e76(0x2f6)](),_0x5e98c1);}[_0x322940(0x26c)](){this['_online']=!0x1;}};me=dt([w(0x2,a[_0x322940(0x1da)](a[_0x322940(0x273)])),w(0x3,a[_0x322940(0x1da)](pe)),w(0x4,a['Inject'](u[_0x322940(0x3ad)])),w(0x5,a[_0x322940(0x233)]),w(0x6,a[_0x322940(0x338)]),w(0x7,a[_0x322940(0x1da)](g[_0x322940(0x15d)]))],me);var vt=Object[_0x322940(0x27e)],Et=(_0xd163aa,_0x570667,_0xe6e519,_0x16ba61)=>{const _0x2f39d2=_0x322940;for(var _0x27634c=_0x16ba61>0x1?void 0x0:_0x16ba61?vt(_0x570667,_0xe6e519):_0x570667,_0xbd0cc0=_0xd163aa[_0x2f39d2(0x1ce)]-0x1,_0x56f39a;_0xbd0cc0>=0x0;_0xbd0cc0--)(_0x56f39a=_0xd163aa[_0xbd0cc0])&&(_0x27634c=_0x56f39a(_0x27634c)||_0x27634c);return _0x27634c;},oe=(_0x415d44,_0x2f2397)=>(_0x2911f6,_0x4ad378)=>_0x2f2397(_0x2911f6,_0x4ad378,_0x415d44);let B=class extends a[_0x322940(0x310)]{constructor(_0x3dca41,_0x405d20,_0x163392){const _0x194e69=_0x322940;super(),_(this,'_entities',new Map()),_(this,_0x194e69(0x29f),new I[(_0x194e69(0x3d6))]()),(this['_univerInstanceService']=_0x3dca41,this[_0x194e69(0x3aa)]=_0x405d20,this[_0x194e69(0x333)]=_0x163392,this['_init']());}[_0x322940(0x198)](){const _0x4ee14b=_0x322940;super['dispose'](),this['_entityInit$']['complete'](),this['_entities'][_0x4ee14b(0x2c8)](_0x95586=>_0x95586[_0x4ee14b(0x198)]());}['getCollabCursors$'](_0x57fb89){const _0x50d16f=_0x322940;return this[_0x50d16f(0x398)][_0x50d16f(0x1a0)](_0x57fb89)?this[_0x50d16f(0x398)][_0x50d16f(0x38c)](_0x57fb89)[_0x50d16f(0x1ab)]:this[_0x50d16f(0x29f)][_0x50d16f(0x396)](I[_0x50d16f(0x2d4)](_0x37b71f=>_0x37b71f[_0x50d16f(0x394)]===_0x57fb89),I[_0x50d16f(0x241)](_0x2e98c5=>_0x2e98c5[_0x50d16f(0x1ab)]));}['_init'](){const _0x366462=_0x322940;this[_0x366462(0x24d)]['getTypeOfUnitAdded$'](a[_0x366462(0x247)]['UNIVER_SHEET'])[_0x366462(0x396)](I['takeUntil'](this[_0x366462(0x183)]))['subscribe'](async _0x5bb550=>{const _0x4fcd86=_0x366462,_0x192a41=_0x5bb550[_0x4fcd86(0x259)](),_0x950cf5=await this[_0x4fcd86(0x36f)](_0x192a41);this[_0x4fcd86(0x29f)][_0x4fcd86(0x255)](_0x950cf5),this[_0x4fcd86(0x398)][_0x4fcd86(0x269)](_0x192a41,_0x950cf5);}),this[_0x366462(0x24d)][_0x366462(0x229)](a[_0x366462(0x247)][_0x366462(0x3f4)])['pipe'](I[_0x366462(0x1e9)](this[_0x366462(0x183)]))[_0x366462(0x396)](I[_0x366462(0x2d4)](_0x5c3d7d=>!_0x5c3d7d['getUnitId']()[_0x366462(0x344)]('__')))[_0x366462(0x2e7)](async _0x2633e4=>{const _0x10138c=_0x366462,_0x53fe38=_0x2633e4[_0x10138c(0x259)](),_0x46b93c=await this[_0x10138c(0x160)](_0x53fe38);this['_entityInit$'][_0x10138c(0x255)](_0x46b93c),this[_0x10138c(0x398)][_0x10138c(0x269)](_0x53fe38,_0x46b93c);}),I['merge'](this[_0x366462(0x24d)][_0x366462(0x221)](a['UniverInstanceType'][_0x366462(0x3f4)]),this[_0x366462(0x24d)][_0x366462(0x221)](a[_0x366462(0x247)][_0x366462(0x251)]))['pipe'](I['takeUntil'](this['dispose$']))[_0x366462(0x2e7)](_0x214cb4=>{const _0x578d1b=_0x366462,_0x9eb090=_0x214cb4['getUnitId'](),_0x1a6500=this['_entities'][_0x578d1b(0x38c)](_0x9eb090);_0x1a6500&&(_0x1a6500['dispose'](),this[_0x578d1b(0x398)][_0x578d1b(0x3b4)](_0x9eb090));});}async[_0x322940(0x36f)](_0x480fba){const _0x5629ad=_0x322940,_0x1cd249=await this[_0x5629ad(0x333)][_0x5629ad(0x1dd)](_0x480fba),_0x42800c=this[_0x5629ad(0x3aa)]['createInstance'](me,_0x480fba,_0x1cd249);return _0x42800c['init'](),_0x42800c;}async[_0x322940(0x160)](_0x49121d){const _0x309e53=_0x322940,_0x5cc897=await this[_0x309e53(0x333)][_0x309e53(0x1dd)](_0x49121d),_0xb8c4ad=this[_0x309e53(0x3aa)][_0x309e53(0x395)](fe,_0x49121d,_0x5cc897);return _0xb8c4ad['init'](),_0xb8c4ad;}};B=Et([oe(0x0,a[_0x322940(0x233)]),oe(0x1,a[_0x322940(0x1da)](a['Injector'])),oe(0x2,a[_0x322940(0x1da)](u[_0x322940(0x328)]))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function Tt(_0x47506a,_0x5f51b9){const _0x4999f0=_0x322940;let {radius:_0x2fa4b2,width:_0x124ff1,height:_0x181e25}=_0x5f51b9;_0x2fa4b2=_0x2fa4b2!=null?_0x2fa4b2:0x0,_0x124ff1=_0x124ff1!=null?_0x124ff1:0x1e,_0x181e25=_0x181e25!=null?_0x181e25:0x1e;let _0x292f18=0x0,_0x1d517e=0x0,_0x18ac16=0x0;_0x292f18=_0x1d517e=_0x18ac16=Math[_0x4999f0(0x1e0)](_0x2fa4b2,_0x124ff1/0x2,_0x181e25/0x2),_0x47506a[_0x4999f0(0x3b1)](),_0x47506a[_0x4999f0(0x3f3)](_0x292f18,0x0),_0x47506a[_0x4999f0(0x245)](_0x124ff1-_0x1d517e,0x0),_0x47506a[_0x4999f0(0x268)](_0x124ff1-_0x1d517e,_0x1d517e,_0x1d517e,Math['PI']*0x3/0x2,0x0,!0x1),_0x47506a['lineTo'](_0x124ff1,_0x181e25-_0x18ac16),_0x47506a[_0x4999f0(0x268)](_0x124ff1-_0x18ac16,_0x181e25-_0x18ac16,_0x18ac16,0x0,Math['PI']/0x2,!0x1),_0x47506a[_0x4999f0(0x245)](0x0,_0x181e25),_0x47506a[_0x4999f0(0x245)](0x0,_0x292f18),_0x47506a[_0x4999f0(0x268)](_0x292f18,_0x292f18,_0x292f18,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x47506a['closePath'](),_0x5f51b9[_0x4999f0(0x3f0)]&&(_0x47506a['save'](),_0x47506a[_0x4999f0(0x2d0)]=_0x5f51b9[_0x4999f0(0x3f0)],_0x5f51b9['fillRule']===_0x4999f0(0x1f0)?_0x47506a[_0x4999f0(0x3f0)](_0x4999f0(0x1f0)):_0x47506a['fill'](),_0x47506a[_0x4999f0(0x3ed)]());}class ie extends C[_0x322940(0x320)]{constructor(_0x38aeda,_0x1f4535){const _0x2b4ae8=_0x322940;super(_0x38aeda,_0x1f4535),_(this,_0x2b4ae8(0x3e7)),_(this,_0x2b4ae8(0x2fe)),(this[_0x2b4ae8(0x3e7)]=_0x1f4535==null?void 0x0:_0x1f4535[_0x2b4ae8(0x3e7)],this[_0x2b4ae8(0x2fe)]=_0x1f4535==null?void 0x0:_0x1f4535[_0x2b4ae8(0x2fe)]);}static[_0x322940(0x236)](_0x384d2c,_0x5202ef){const _0x1a639b=_0x322940,{text:_0x5b1345,color:_0x3df4f0}=_0x5202ef;_0x384d2c[_0x1a639b(0x25f)](),_0x384d2c['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1f89b5=_0x384d2c[_0x1a639b(0x2e4)](_0x5b1345)[_0x1a639b(0x1d4)],_0x2a78c7=Math[_0x1a639b(0x1e0)](_0x1f89b5+0x2*ae,De);Tt(_0x384d2c,{'height':X,'radius':0x4,'width':_0x2a78c7,'fill':_0x3df4f0}),_0x384d2c['fillStyle']=_0x1a639b(0x34b);const _0x1b7f11=ae,_0x34eafe=X-Ct,_0x244ed2=De-0x2*ae;if(_0x1f89b5>_0x244ed2){let _0x4bc518='',_0x3fd711=0x0;for(const _0x177181 of _0x5b1345){const _0x3bdf54=_0x384d2c[_0x1a639b(0x2e4)](_0x177181)[_0x1a639b(0x1d4)];if(_0x3fd711+_0x3bdf54<=_0x244ed2-_0x384d2c[_0x1a639b(0x2e4)]('...')[_0x1a639b(0x1d4)])_0x4bc518+=_0x177181,_0x3fd711+=_0x3bdf54;else{_0x4bc518+=_0x1a639b(0x199);break;}}_0x384d2c[_0x1a639b(0x33d)](_0x4bc518,_0x1b7f11,_0x34eafe);}else _0x384d2c[_0x1a639b(0x33d)](_0x5b1345,_0x1b7f11,_0x34eafe);_0x384d2c[_0x1a639b(0x3ed)]();}[_0x322940(0x3d4)](_0x239550){const _0x2de716=_0x322940;ie[_0x2de716(0x236)](_0x239550,this);}}const ce=_0x322940(0x298),pt=_0x322940(0x3ea),Ot=_0x322940(0x306),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x322940(0x3cd);class Ne{constructor(_0x337a76,_0x4ea106,_0x45567f,_0x854d52){const _0x3e810c=_0x322940;_(this,_0x3e810c(0x1d1),[]),_(this,_0x3e810c(0x3c6),null),_(this,_0x3e810c(0x243),null),_(this,_0x3e810c(0x323),null),_(this,_0x3e810c(0x3d7),null),_(this,_0x3e810c(0x36b),null),(this[_0x3e810c(0x38f)]=_0x337a76,this[_0x3e810c(0x20d)]=_0x4ea106,this['_docSkeleton']=_0x45567f,this[_0x3e810c(0x3fc)]=_0x854d52,this[_0x3e810c(0x23b)]());}set[_0x322940(0x1df)](_0x38e4cc){const _0xb4777b=_0x322940;_0x38e4cc?(this[_0xb4777b(0x323)]&&this[_0xb4777b(0x323)][_0xb4777b(0x1b8)](),this[_0xb4777b(0x243)]&&this[_0xb4777b(0x243)][_0xb4777b(0x219)]()):(this[_0xb4777b(0x323)]&&this[_0xb4777b(0x323)][_0xb4777b(0x219)](),this[_0xb4777b(0x243)]&&this[_0xb4777b(0x243)][_0xb4777b(0x1b8)]());}[_0x322940(0x198)](){const _0x1d49d7=_0x322940;for(const _0x40d571 of this[_0x1d49d7(0x1d1)])_0x40d571[_0x1d49d7(0x198)]();this[_0x1d49d7(0x243)]&&this['_textBubble']['dispose'](),this[_0x1d49d7(0x323)]&&this[_0x1d49d7(0x323)][_0x1d49d7(0x198)](),this['_anchor']&&this[_0x1d49d7(0x3c6)]['dispose'](),this[_0x1d49d7(0x36b)]&&this[_0x1d49d7(0x36b)]();}['_render'](){const _0x1334fc=_0x322940;var _0x117fb4;const {_docSkeleton:_0x4d8ee2,_document:_0x23801c}=this,{color:_0x4847a0,name:_0x5056a0,ranges:_0x2e6b3f}=this[_0x1334fc(0x38f)],_0x22d29f=_0x23801c[_0x1334fc(0x220)](),{docsLeft:_0x5d8feb,docsTop:_0x2acc8f}=_0x22d29f,_0x1169b5=new T[(_0x1334fc(0x1f5))](_0x22d29f,_0x4d8ee2);for(const {startOffset:_0x210ac8,endOffset:_0xbdc8db,rangeType:_0x3ca7b0,segmentId:_0x39c8d8,segmentPage:_0x433176,collapsed:_0xd2921a,isActive:_0xa977e1}of _0x2e6b3f){const _0x5365ef=_0x4d8ee2[_0x1334fc(0x2f4)](_0x210ac8,!0x0,_0x39c8d8,_0x433176);let _0x16b1c6=_0x4d8ee2['findNodePositionByCharIndex'](_0xbdc8db,!0x0,_0x39c8d8,_0x433176);if(_0x16b1c6==null&&(_0x16b1c6=_0x4d8ee2[_0x1334fc(0x2f4)](_0xbdc8db-0x1,!0x1,_0x39c8d8,_0x433176)),_0xa977e1){const {contentBoxPointGroup:_0x3ab90c}=_0x1169b5[_0x1334fc(0x25b)](_0x16b1c6,_0x16b1c6);if(_0x3ab90c['length']===0x0)continue;this['_drawAnchor'](_0x4847a0,_0x3ab90c,_0x5d8feb,_0x2acc8f,_0x5056a0),this[_0x1334fc(0x36b)]=this[_0x1334fc(0x28c)]();}if(_0x5365ef&&_0x16b1c6){if(_0x3ca7b0===a[_0x1334fc(0x309)][_0x1334fc(0x389)]){const _0x59ce9d=new T[(_0x1334fc(0x280))](_0x22d29f,_0x4d8ee2),{pointGroup:_0x58b3bb}=(_0x117fb4=_0x59ce9d[_0x1334fc(0x25b)](_0x5365ef,_0x16b1c6))!=null?_0x117fb4:{};if(_0x58b3bb==null||_0x58b3bb['length']===0x0)continue;this[_0x1334fc(0x293)](_0x4847a0,_0x58b3bb,_0x5d8feb,_0x2acc8f);}else{if(!_0xd2921a){const {borderBoxPointGroup:_0xb7781e}=_0x1169b5['getRangePointData'](_0x5365ef,_0x16b1c6);if(_0xb7781e[_0x1334fc(0x1ce)]===0x0)continue;this[_0x1334fc(0x1bf)](_0x4847a0,_0xb7781e,_0x5d8feb,_0x2acc8f);}}}}}[_0x322940(0x2e8)](_0x20f2db,_0x3cbbbc,_0x1c2ad4,_0x8afa6e,_0x263eb8){const _0x53a1e4=_0x322940,_0x236e09=this[_0x53a1e4(0x30e)](_0x3cbbbc),{left:_0xf34198,top:_0x5e73ec,height:_0x173746}=_0x236e09,_0x311745=this[_0x53a1e4(0x2b1)](),_0x3b3496=bt/_0x311745,_0x5bc791=new C[(_0x53a1e4(0x31e))](ce+a[_0x53a1e4(0x410)](Y),{'left':_0xf34198+_0x1c2ad4-_0x3b3496,'top':_0x5e73ec+_0x8afa6e,'height':_0x173746,'width':Rt,'fill':_0x20f2db||C[_0x53a1e4(0x28a)](a[_0x53a1e4(0x235)]['black'],0x0),'strokeWidth':_0x3b3496,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x5bc791,this[_0x53a1e4(0x20d)]['addObject'](_0x5bc791,T[_0x53a1e4(0x319)]);const _0x3a4229=new C['Rect'](ce+a[_0x53a1e4(0x410)](Y),{'left':_0xf34198+_0x1c2ad4-_0x3b3496,'top':_0x5e73ec+_0x8afa6e-le/0x2,'height':le,'width':le,'fill':_0x20f2db||C[_0x53a1e4(0x28a)](a[_0x53a1e4(0x235)][_0x53a1e4(0x3b5)],0x0),'strokeWidth':0x0,'stroke':_0x20f2db||C[_0x53a1e4(0x28a)](a[_0x53a1e4(0x235)]['black'],0x0),'evented':!0x1});this[_0x53a1e4(0x323)]=_0x3a4229,this['_scene'][_0x53a1e4(0x3d1)](_0x3a4229,T['TEXT_RANGE_LAYER_INDEX']);const _0x49c551=new ie(ce+a['generateRandomId'](Y),{'left':_0xf34198+_0x1c2ad4-_0x3b3496,'top':_0x5e73ec+_0x8afa6e-X,'text':_0x263eb8,'color':_0x20f2db});this[_0x53a1e4(0x243)]=_0x49c551,this[_0x53a1e4(0x20d)][_0x53a1e4(0x3d1)](_0x49c551,T['TEXT_RANGE_LAYER_INDEX']),this[_0x53a1e4(0x1df)]=!0x1;}[_0x322940(0x28c)](){const _0x8f5804=_0x322940,_0x3b947a=this[_0x8f5804(0x3c6)][_0x8f5804(0x33e)][_0x8f5804(0x284)](()=>{const _0x1b3c99=_0x8f5804;this[_0x1b3c99(0x1df)]=!0x0;}),_0x2cfb92=this[_0x8f5804(0x3c6)][_0x8f5804(0x1e4)][_0x8f5804(0x284)](()=>{const _0x303d26=_0x8f5804;this[_0x303d26(0x3d7)]&&clearTimeout(this[_0x303d26(0x3d7)]),this['_hideTimer']=setTimeout(()=>{const _0x5e57d4=_0x303d26;this[_0x5e57d4(0x1df)]=!0x1;},0x7d0);});return()=>{const _0x4654c5=_0x8f5804;_0x3b947a[_0x4654c5(0x365)](),_0x2cfb92[_0x4654c5(0x365)]();};}[_0x322940(0x1bf)](_0x94bf68,_0x3aa75b,_0xb16748,_0x39e173){const _0x8eb7e6=_0x322940,_0x2b9461=new a['ColorKit'](_0x94bf68)['setAlpha'](0.2)[_0x8eb7e6(0x311)](),_0x1af7fc=new C[(_0x8eb7e6(0x267))](pt+a[_0x8eb7e6(0x410)](Y),{'pointsGroup':_0x3aa75b,'fill':_0x2b9461||C[_0x8eb7e6(0x28a)](a[_0x8eb7e6(0x235)]['black'],0.2),'left':_0xb16748,'top':_0x39e173,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8eb7e6(0x1d1)][_0x8eb7e6(0x32d)](_0x1af7fc),this['_scene'][_0x8eb7e6(0x3d1)](_0x1af7fc,T['TEXT_RANGE_LAYER_INDEX']);}[_0x322940(0x293)](_0x551bd7,_0x4d9b0a,_0x12679f,_0x440535){const _0x4bb2a0=_0x322940,_0x593f14=new a[(_0x4bb2a0(0x3b2))](_0x551bd7)['setAlpha'](0.2)[_0x4bb2a0(0x311)](),_0x42c515=new C[(_0x4bb2a0(0x267))](Ot+a[_0x4bb2a0(0x410)](Y),{'pointsGroup':_0x4d9b0a,'fill':_0x593f14||C[_0x4bb2a0(0x28a)](a[_0x4bb2a0(0x235)][_0x4bb2a0(0x3b5)],0.2),'left':_0x12679f,'top':_0x440535,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4bb2a0(0x1d1)][_0x4bb2a0(0x32d)](_0x42c515),this[_0x4bb2a0(0x20d)][_0x4bb2a0(0x3d1)](_0x42c515,T[_0x4bb2a0(0x319)]);}[_0x322940(0x30e)](_0x9095dc){const _0x3796c4=_0x9095dc[0x0],_0x4e2c05=_0x3796c4[0x0],_0x2d08bc=_0x3796c4[0x2],{x:_0x357cbb,y:_0xabd66}=_0x4e2c05,{x:_0x928caa,y:_0x5cc6d7}=_0x2d08bc;return{'left':_0x357cbb,'top':_0xabd66,'width':_0x928caa-_0x357cbb,'height':_0x5cc6d7-_0xabd66};}[_0x322940(0x2b1)](){const _0x313679=_0x322940,{scaleX:_0x5655bd,scaleY:_0x4e6218}=this[_0x313679(0x20d)][_0x313679(0x227)]();return Math[_0x313679(0x354)](_0x5655bd,_0x4e6218);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x96d309,_0x8d4388,_0x371da6,_0x4e3c3d)=>{const _0x2736a4=_0x322940;for(var _0x4e0cbd=_0x4e3c3d>0x1?void 0x0:_0x4e3c3d?Nt(_0x8d4388,_0x371da6):_0x8d4388,_0x3808ea=_0x96d309[_0x2736a4(0x1ce)]-0x1,_0x795bde;_0x3808ea>=0x0;_0x3808ea--)(_0x795bde=_0x96d309[_0x3808ea])&&(_0x4e0cbd=_0x795bde(_0x4e0cbd)||_0x4e0cbd);return _0x4e0cbd;},q=(_0x3a909d,_0xe5464f)=>(_0x243b21,_0x17d43c)=>_0xe5464f(_0x243b21,_0x17d43c,_0x3a909d);let ge=class extends a[_0x322940(0x310)]{constructor(_0x1ec023,_0x3580cc,_0x541dd,_0x6e3ad6,_0x3eb9a1){const _0x3c39c1=_0x322940;super(),_(this,_0x3c39c1(0x334),[]),_(this,_0x3c39c1(0x21a),[]),(this[_0x3c39c1(0x351)]=_0x1ec023,this['_docSkeletonManagerService']=_0x3580cc,this[_0x3c39c1(0x1cc)]=_0x541dd,this[_0x3c39c1(0x263)]=_0x6e3ad6,this[_0x3c39c1(0x2c9)]=_0x3eb9a1,this['_init']());}[_0x322940(0x3a3)](){const _0x4b0aa4=_0x322940,_0x3ff404=this['_context'][_0x4b0aa4(0x336)],_0x335a85=this[_0x4b0aa4(0x26f)];this[_0x4b0aa4(0x192)](I[_0x4b0aa4(0x2a8)]([this[_0x4b0aa4(0x1cc)][_0x4b0aa4(0x3ce)](_0x3ff404),this['_themeService'][_0x4b0aa4(0x3c8)]])[_0x4b0aa4(0x396)]($['map'](([_0x40b5be,_0x24d70d])=>({'skeleton':_0x335a85[_0x4b0aa4(0x3cc)](),'cursors':[..._0x40b5be[_0x4b0aa4(0x261)]()][_0x4b0aa4(0x189)](_0x3ed911=>({..._0x3ed911,'color':this['_themeService']['getColorFromTheme'](_0x3ed911[_0x4b0aa4(0x3e7)])}))})))[_0x4b0aa4(0x2e7)](_0x4eb909=>{const _0x9de929=_0x4b0aa4;if(this['_removeCollabCursors'](),_0x4eb909){const {skeleton:_0x2a8335,cursors:_0x13e5be}=_0x4eb909;this[_0x9de929(0x2b4)](_0x2a8335,_0x13e5be);}})),this[_0x4b0aa4(0x21c)](),this['_initCommandExecutedListener']();}[_0x322940(0x2b4)](_0x49c514,_0xc386ac){const _0x355e0f=_0x322940,{scene:_0x22297a,mainComponent:_0x1ed4f6}=this[_0x355e0f(0x351)],_0x1ae396=_0xc386ac[_0x355e0f(0x19c)](_0x65b57=>new Ne(_0x65b57,_0x22297a,_0x49c514,_0x1ed4f6));this[_0x355e0f(0x334)]=_0x1ae396,this[_0x355e0f(0x21a)]=_0xc386ac;}['_refreshCollabCursors'](){const _0x56d798=_0x322940;this[_0x56d798(0x36e)]();const {scene:_0x403577,mainComponent:_0x1ef98c}=this[_0x56d798(0x351)],_0x222be3=this['_docSkeletonManagerService'][_0x56d798(0x3cc)](),_0x487b1d=this[_0x56d798(0x21a)][_0x56d798(0x19c)](_0x29ab=>new Ne(_0x29ab,_0x403577,_0x222be3,_0x1ef98c));this[_0x56d798(0x334)]=_0x487b1d;}[_0x322940(0x36e)](){const _0x3f590e=_0x322940;this[_0x3f590e(0x334)][_0x3f590e(0x2c8)](_0x74ed6=>_0x74ed6['dispose']()),this[_0x3f590e(0x334)]=[];}[_0x322940(0x307)](){const _0x42bf00=_0x322940,_0x6e9e35=[T[_0x42bf00(0x276)]['id']];this['disposeWithMe'](this[_0x42bf00(0x263)][_0x42bf00(0x2dd)](_0x3489c0=>{const _0x5b7100=_0x42bf00;_0x6e9e35[_0x5b7100(0x2cb)](_0x3489c0['id'])&&_0x3489c0[_0x5b7100(0x2b2)][_0x5b7100(0x336)]===this[_0x5b7100(0x351)][_0x5b7100(0x336)]&&this[_0x5b7100(0x2bc)]();}));}[_0x322940(0x21c)](){const _0x2b3557=_0x322940;this[_0x2b3557(0x192)](a[_0x2b3557(0x3e8)](this[_0x2b3557(0x351)][_0x2b3557(0x2c7)]['onTransformChange$'])[_0x2b3557(0x396)]($[_0x2b3557(0x2d4)](_0x5a6950=>_0x5a6950[_0x2b3557(0x302)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2b3557(0x25c)]),$[_0x2b3557(0x239)](0x10))[_0x2b3557(0x2e7)](()=>{const _0x313164=_0x2b3557;this[_0x313164(0x2bc)]();}));}};ge=Ut([q(0x1,a[_0x322940(0x1da)](W['DocSkeletonManagerService'])),q(0x2,a['Inject'](B)),q(0x3,a[_0x322940(0x338)]),q(0x4,a[_0x322940(0x1da)](a[_0x322940(0x407)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x322940(0x320)]{constructor(_0x4851e3,_0x596313){const _0x366c67=_0x322940;super(_0x4851e3,_0x596313),_(this,'_color'),_(this,_0x366c67(0x352),!0x1),_(this,_0x366c67(0x379)),_(this,_0x366c67(0x38d),''),_(this,_0x366c67(0x1b1),'top'),_(this,_0x366c67(0x165)),(_0x596313&&this[_0x366c67(0x1f9)](_0x596313),this[_0x366c67(0x33e)]['subscribeEvent'](()=>this[_0x366c67(0x1f9)]({'hovered':!0x0})),this[_0x366c67(0x1e4)]['subscribeEvent'](()=>this[_0x366c67(0x1f9)]({'hovered':!0x1})));}[_0x322940(0x1f9)](_0x4f9e35){const _0x1f6c32=_0x322940;var _0x53b9cf,_0x1e6c4e,_0x46547f,_0x1377c3,_0x22b61f,_0x414211;this['_color']=(_0x53b9cf=_0x4f9e35[_0x1f6c32(0x3e7)])!=null?_0x53b9cf:this[_0x1f6c32(0x329)],this['_hovered']=(_0x1e6c4e=_0x4f9e35['hovered'])!=null?_0x1e6c4e:this[_0x1f6c32(0x352)],this[_0x1f6c32(0x379)]=(_0x46547f=_0x4f9e35[_0x1f6c32(0x207)])!=null?_0x46547f:this[_0x1f6c32(0x379)],this[_0x1f6c32(0x38d)]=(_0x1377c3=_0x4f9e35[_0x1f6c32(0x1ba)])!=null?_0x1377c3:this['_name'],this['_labelPosition']=(_0x22b61f=_0x4f9e35[_0x1f6c32(0x169)])!=null?_0x22b61f:this['_labelPosition'],this['_backgroundColor']=(_0x414211=_0x4f9e35[_0x1f6c32(0x225)])!=null?_0x414211:this[_0x1f6c32(0x165)],this['transformByState']({'width':_0x4f9e35[_0x1f6c32(0x1d4)],'height':_0x4f9e35[_0x1f6c32(0x403)]});}[_0x322940(0x242)](_0x2722f9){const _0x231e25=_0x322940,{row:_0x378fb2,column:_0x1c8854}=_0x2722f9;if(_0x378fb2>=this[_0x231e25(0x379)][_0x231e25(0x281)]&&_0x378fb2<=this[_0x231e25(0x379)][_0x231e25(0x1c0)]&&_0x1c8854>=this[_0x231e25(0x379)][_0x231e25(0x17d)]&&_0x1c8854<=this[_0x231e25(0x379)][_0x231e25(0x34f)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1d791a){return!0x1;}[_0x322940(0x3d4)](_0x20d573){const _0x166199=_0x322940;C[_0x166199(0x31e)][_0x166199(0x236)](_0x20d573,{'width':this[_0x166199(0x1d4)],'height':this[_0x166199(0x403)],'strokeWidth':Mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x166199(0x165)]}),this['_hovered']&&(_0x20d573[_0x166199(0x25f)](),_0x20d573[_0x166199(0x39d)](0x1,0x0,0x0,0x1,this[_0x166199(0x1d4)],this['_labelPosition']==='bottom'?0x0:-X),ie[_0x166199(0x236)](_0x20d573,{'text':this[_0x166199(0x38d)],'color':this['_color']}),_0x20d573[_0x166199(0x3ed)]());}}var At=Object[_0x322940(0x27e)],Pt=(_0x5aae8c,_0x349e18,_0x43debb,_0x22aa86)=>{for(var _0x42aa03=_0x22aa86>0x1?void 0x0:_0x22aa86?At(_0x349e18,_0x43debb):_0x349e18,_0x422791=_0x5aae8c['length']-0x1,_0xa154a3;_0x422791>=0x0;_0x422791--)(_0xa154a3=_0x5aae8c[_0x422791])&&(_0x42aa03=_0xa154a3(_0x42aa03)||_0x42aa03);return _0x42aa03;},_e=(_0x148a25,_0x1c9d6d)=>(_0x381a64,_0x26161d)=>_0x1c9d6d(_0x381a64,_0x26161d,_0x148a25);const wt=0x1389;let ve=class extends a[_0x322940(0x310)]{constructor(_0xc6f275,_0x5ce679,_0x5f3818,_0x22a7b7){const _0x160400=_0x322940;super(),_(this,_0x160400(0x21a),new Set()),_(this,_0x160400(0x363),null),(this[_0x160400(0x351)]=_0xc6f275,this[_0x160400(0x18f)]=_0x5ce679,this['_collabCursorController']=_0x5f3818,this[_0x160400(0x2c9)]=_0x22a7b7,this['_init']());}[_0x322940(0x3a3)](){const _0x25c7e3=_0x322940;this[_0x25c7e3(0x18f)][_0x25c7e3(0x1cf)][_0x25c7e3(0x396)]($[_0x25c7e3(0x1e9)](this[_0x25c7e3(0x183)]),$[_0x25c7e3(0x241)](_0x5155e9=>{const _0x51f552=_0x25c7e3;if(_0x5155e9){const _0x81426a=_0x5155e9[_0x51f552(0x203)];return I['combineLatest'](this['_collabCursorController']['getCollabCursors$'](this[_0x51f552(0x351)]['unitId']),this[_0x51f552(0x2c9)][_0x51f552(0x3c8)])[_0x51f552(0x396)]($[_0x51f552(0x19c)](([_0x573fb2,_0x436dc4])=>{const _0x373135=new Map();return _0x573fb2['forEach']((_0x1a4e86,_0x3e285d)=>{const _0x4aff38=_0x2b7c;if(_0x1a4e86['sheetID']===_0x81426a){const _0x51aef5={..._0x1a4e86};_0x51aef5[_0x4aff38(0x3e7)]=this[_0x4aff38(0x2c9)]['getColorFromTheme'](_0x1a4e86[_0x4aff38(0x3e7)]),_0x373135['set'](_0x3e285d,_0x51aef5);}}),{'skeleton':_0x5155e9,'cursors':_0x373135};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x13a33b,cursors:_0x49e7a1})=>{const _0x5e47e8=_0x25c7e3;this[_0x5e47e8(0x36e)](),_0x13a33b&&this['_updateCollabCursors'](_0x13a33b,_0x49e7a1);}),this[_0x25c7e3(0x18f)][_0x25c7e3(0x1cf)][_0x25c7e3(0x2e7)](_0xe0df24=>{const _0x21b07b=_0x25c7e3;if(_0xe0df24==null)return;const {skeleton:_0x73a8a1}=_0xe0df24,{scene:_0x246a71}=this[_0x21b07b(0x351)];_0x246a71['onPointerMove$'][_0x21b07b(0x284)](a['debounce'](_0x5c6345=>{const _0x337296=_0x21b07b;var _0x2ae778,_0x417cad;const {offsetX:_0x210a11,offsetY:_0x3c09cc}=_0x5c6345,{x:_0x57a6bc,y:_0x2e7ec9}=_0x246a71['getRelativeToViewportCoord'](C[_0x337296(0x182)][_0x337296(0x37c)]([_0x210a11,_0x3c09cc])),{scaleX:_0x358a95,scaleY:_0x2096e3}=_0x246a71[_0x337296(0x227)](),_0xf11f6e=_0x246a71[_0x337296(0x208)](C[_0x337296(0x1bc)][_0x337296(0x3fb)]),_0xd045d9=_0x246a71[_0x337296(0x1ee)](C['Vector2']['FromArray']([_0x57a6bc,_0x2e7ec9]),_0xf11f6e),_0x2068a5=_0x73a8a1[_0x337296(0x1c2)](_0x210a11,_0x3c09cc,_0x358a95,_0x2096e3,_0xd045d9);((_0x2ae778=this[_0x337296(0x363)])==null?void 0x0:_0x2ae778[_0x337296(0x2e2)])===_0x2068a5[_0x337296(0x2e2)]&&((_0x417cad=this[_0x337296(0x363)])==null?void 0x0:_0x417cad[_0x337296(0x246)])===_0x2068a5[_0x337296(0x246)]||this[_0x337296(0x21a)][_0x337296(0x2c8)](_0x4ae3c5=>{_0x4ae3c5['onMouseMove'](_0x2068a5);});},0x64));});}[_0x322940(0x2b4)](_0x198cc1,_0x1daf2f){const _0x76650c=_0x322940;var _0x2ca77c;const _0x526dbe=(_0x2ca77c=this[_0x76650c(0x18f)][_0x76650c(0x3df)]())==null?void 0x0:_0x2ca77c['skeleton'];if(!_0x526dbe)return;const _0x2c5492=this[_0x76650c(0x32c)]();if(!_0x2c5492)return;this[_0x76650c(0x21a)][_0x76650c(0x2c8)](_0x570714=>{const _0x24f645=_0x76650c;_0x570714[_0x24f645(0x1de)]();});const {scene:_0x1e2a06}=_0x2c5492,_0x37c2b6=yt(Array['from'](_0x1daf2f[_0x76650c(0x261)]()))[_0x76650c(0x19c)](_0x282138=>{const _0x33e328=_0x76650c,{color:_0x3abd5d,range:_0x3eb80f,name:_0x30b77d,selection:_0x56cb15,sheetID:_0xd5af20}=_0x282138,{startColumn:_0x2d2dbc,startRow:_0x216a9f,endColumn:_0x44c8a4,endRow:_0x23b9a8}=_0x3eb80f,_0x14eb66=z['getCoordByCell'](_0x216a9f,_0x2d2dbc,_0x1e2a06,_0x526dbe),_0x1eac3f=z[_0x33e328(0x3ae)](_0x23b9a8,_0x44c8a4,_0x1e2a06,_0x526dbe),{columnHeaderHeightAndMarginTop:_0x1251a7}=_0x526dbe,{startX:_0x363b5f,startY:_0x3b99e}=_0x14eb66,{endX:_0x23daa6,endY:_0x5bb9e0}=_0x1eac3f,_0xa5939c=_0x23daa6-_0x363b5f,_0x4f2698=_0x5bb9e0-_0x3b99e,_0x2d12bd={'labelPosition':_0x3b99e-_0x1251a7>=X?_0x33e328(0x20b):_0x33e328(0x322),'sheetID':_0xd5af20,'range':_0x3eb80f,'color':_0x3abd5d,'name':_0x30b77d,'selection':_0x56cb15,'left':_0x363b5f,'top':_0x3b99e,'width':_0xa5939c,'height':_0x4f2698,'evented':!0x1,'zIndex':wt};return new Be(_0x30b77d,_0x2d12bd);});_0x1e2a06[_0x76650c(0x1a6)](_0x37c2b6,Lt),this['_cursors']=new Set(_0x37c2b6);}[_0x322940(0x36e)](){const _0x3767d6=_0x322940;var _0x5f1c2a;(_0x5f1c2a=this['_cursors'])==null||_0x5f1c2a[_0x3767d6(0x2c8)](_0x45e117=>_0x45e117[_0x3767d6(0x198)]());}['_getSheetObject'](){const _0x17fd1a=_0x322940;return z[_0x17fd1a(0x23d)](this[_0x17fd1a(0x351)][_0x17fd1a(0x2d7)],this[_0x17fd1a(0x351)]);}};ve=Pt([_e(0x1,a[_0x322940(0x1da)](z[_0x322940(0x1a9)])),_e(0x2,a[_0x322940(0x1da)](B)),_e(0x3,a[_0x322940(0x1da)](a['ThemeService']))],ve);function yt(_0x1226b8){const _0x17c894=_0x322940,_0x115ed0=new Map();return _0x1226b8[_0x17c894(0x2c8)](_0x455e2a=>{const _0x2fc607=_0x17c894;if(_0x115ed0[_0x2fc607(0x1a0)](_0x455e2a[_0x2fc607(0x174)])){const _0x1fdaa2=_0x115ed0[_0x2fc607(0x38c)](_0x455e2a['selection']);_0x1fdaa2[_0x2fc607(0x1ba)]+=',\x20'+_0x455e2a[_0x2fc607(0x1ba)];}else _0x115ed0[_0x2fc607(0x269)](_0x455e2a[_0x2fc607(0x174)],_0x455e2a);}),Array[_0x17c894(0x37e)](_0x115ed0['values']());}var $t=Object[_0x322940(0x27e)],xt=(_0x48aa37,_0x33f098,_0x8308f4,_0x5a23fa)=>{const _0x27f41c=_0x322940;for(var _0x2b99d1=_0x5a23fa>0x1?void 0x0:_0x5a23fa?$t(_0x33f098,_0x8308f4):_0x33f098,_0x5e06b5=_0x48aa37[_0x27f41c(0x1ce)]-0x1,_0x2e361a;_0x5e06b5>=0x0;_0x5e06b5--)(_0x2e361a=_0x48aa37[_0x5e06b5])&&(_0x2b99d1=_0x2e361a(_0x2b99d1)||_0x2b99d1);return _0x2b99d1;},y=(_0x5c6b88,_0x24ee63)=>(_0x557c35,_0x3e7020)=>_0x24ee63(_0x557c35,_0x3e7020,_0x5c6b88);let J=class extends a['Disposable']{constructor(_0x1adba7,_0x57c256,_0x5b6e2b,_0x3f95d2,_0x1c6c4f,_0xdcafa){const _0x2a4ea3=_0x322940;super(),this[_0x2a4ea3(0x335)]=_0x1adba7,this[_0x2a4ea3(0x287)]=_0x57c256,this[_0x2a4ea3(0x1db)]=_0x5b6e2b,this[_0x2a4ea3(0x3ca)]=_0x3f95d2,this[_0x2a4ea3(0x3a0)]=_0x1c6c4f,this['_localeService']=_0xdcafa,this[_0x2a4ea3(0x2ee)](),this[_0x2a4ea3(0x339)]();}['_setupBeforeClosingHandler'](){const _0x1a69eb=_0x322940;this['disposeWithMe'](this[_0x1a69eb(0x335)]['registerBeforeClose'](()=>{const _0x893a90=_0x1a69eb;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x893a90(0x19a)]['t'](_0x893a90(0x33a));}));}[_0x322940(0x339)](){const _0x3a9987=_0x322940;this[_0x3a9987(0x192)](this[_0x3a9987(0x1db)][_0x3a9987(0x158)]['subscribe'](_0x486bba=>{const _0x36755d=_0x3a9987;_0x486bba['id']===u[_0x36755d(0x196)][_0x36755d(0x184)]&&this[_0x36755d(0x3ca)][_0x36755d(0x219)]({'type':p[_0x36755d(0x2b6)]['Warning'],'content':this[_0x36755d(0x19a)]['t'](_0x36755d(0x2e5))}),_0x486bba['id']===u[_0x36755d(0x196)][_0x36755d(0x378)]&&this[_0x36755d(0x3ca)][_0x36755d(0x219)]({'type':p[_0x36755d(0x2b6)][_0x36755d(0x2df)],'content':this[_0x36755d(0x19a)]['t'](_0x36755d(0x3f1))}),_0x486bba['id']===u[_0x36755d(0x196)][_0x36755d(0x377)]&&this['_notificationService'][_0x36755d(0x219)]({'title':this[_0x36755d(0x19a)]['t'](_0x36755d(0x265)),'content':this[_0x36755d(0x19a)]['t'](_0x36755d(0x40e)),'type':'error','duration':0x0}),_0x486bba['id']===u[_0x36755d(0x196)][_0x36755d(0x342)]&&this[_0x36755d(0x3ca)][_0x36755d(0x219)]({'type':p[_0x36755d(0x2b6)][_0x36755d(0x286)],'content':this['_localeService']['t'](_0x36755d(0x3f1))+'('+_0x486bba[_0x36755d(0x15e)]+')'}),_0x486bba['id']===u[_0x36755d(0x196)][_0x36755d(0x1b2)]&&this[_0x36755d(0x3ca)][_0x36755d(0x219)]({'type':p[_0x36755d(0x2b6)][_0x36755d(0x2df)],'content':this[_0x36755d(0x19a)]['t'](_0x486bba[_0x36755d(0x15e)]||'')}),_0x486bba['id']===u[_0x36755d(0x196)][_0x36755d(0x2a6)]&&this[_0x36755d(0x3ca)][_0x36755d(0x219)]({'type':p['MessageType']['Warning'],'content':this[_0x36755d(0x19a)]['t'](_0x36755d(0x38a))}),_0x486bba['id']===u[_0x36755d(0x196)][_0x36755d(0x291)]&&this[_0x36755d(0x3ca)][_0x36755d(0x219)]({'type':p['MessageType'][_0x36755d(0x286)],'content':this[_0x36755d(0x19a)]['t']('session.connection-failed')}),_0x486bba['id']===u[_0x36755d(0x196)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x36755d(0x3ca)][_0x36755d(0x219)]({'type':p[_0x36755d(0x2b6)][_0x36755d(0x286)],'content':this[_0x36755d(0x19a)]['t'](_0x36755d(0x346))});}));}};J=xt([y(0x0,O[_0x322940(0x3b6)]),y(0x1,u[_0x322940(0x18d)]),y(0x2,a['Inject'](u[_0x322940(0x22b)])),y(0x3,O[_0x322940(0x305)]),y(0x4,O[_0x322940(0x2f8)]),y(0x5,a[_0x322940(0x1da)](a[_0x322940(0x393)]))],J);const Bt=_0x322940(0x256),Ue={};var Ft=Object[_0x322940(0x27e)],kt=(_0x3a92c9,_0x1b9acd,_0x409432,_0x57e8bd)=>{const _0x2a8656=_0x322940;for(var _0x1de476=_0x57e8bd>0x1?void 0x0:_0x57e8bd?Ft(_0x1b9acd,_0x409432):_0x1b9acd,_0x56c68e=_0x3a92c9[_0x2a8656(0x1ce)]-0x1,_0x128af4;_0x56c68e>=0x0;_0x56c68e--)(_0x128af4=_0x3a92c9[_0x56c68e])&&(_0x1de476=_0x128af4(_0x1de476)||_0x1de476);return _0x1de476;},Le=(_0x695d2b,_0x283b45)=>(_0x4cbecb,_0x52da4e)=>_0x283b45(_0x4cbecb,_0x52da4e,_0x695d2b);let Z=class{constructor(_0x5852b2,_0x58f58c){const _0x1240c7=_0x322940;this[_0x1240c7(0x1ae)]=_0x5852b2,this[_0x1240c7(0x290)]=_0x58f58c;}[_0x322940(0x367)](_0x471286){const _0x31663d=_0x322940;this['_transformUndoRedoStack'](_0x471286),this[_0x31663d(0x1af)](_0x471286);}['transformRemoteChangeset'](_0xf73d76){const _0x253b1c=_0x322940,{unitID:_0x5c685a}=_0xf73d76,_0x16dbba=this[_0x253b1c(0x290)]['getRenderById'](_0x5c685a)[_0x253b1c(0x39f)](T['DocIMEInputManagerService']),{redoCache:_0x59b9fa}=_0x16dbba[_0x253b1c(0x1cd)]();if(_0x59b9fa[_0x253b1c(0x1ce)]===0x0)return _0xf73d76;let _0xb329c5=a[_0x253b1c(0x19b)]['deepClone'](_0xf73d76[_0x253b1c(0x3fa)][0x0]);for(let _0x55e980=0x0;_0x55e980<_0x59b9fa[_0x253b1c(0x1ce)];_0x55e980++){const _0xca5b27={'id':'doc.mutation.rich-text-editing','params':{..._0x59b9fa[_0x55e980]}},_0x1f1531=this[_0x253b1c(0x1ae)]['transformMutation'](_0xb329c5,_0xca5b27,!0x1);if(v['isTransformMutationFailure'](_0x1f1531))throw _0x1f1531['error'];_0xb329c5=_0x1f1531[_0x253b1c(0x382)];}return{...a['Tools'][_0x253b1c(0x216)](_0xf73d76),'mutations':[_0xb329c5]};}[_0x322940(0x2ae)](_0x27128a){const _0x11312f=_0x322940,{unitID:_0x31c440}=_0x27128a,_0x3f84f3=this[_0x11312f(0x290)][_0x11312f(0x301)](_0x31c440)['with'](T[_0x11312f(0x24a)]),{undoCache:_0x3c8ea7,redoCache:_0x5b786c}=_0x3f84f3[_0x11312f(0x1cd)]();if(_0x3c8ea7[_0x11312f(0x1ce)]===0x0||_0x5b786c[_0x11312f(0x1ce)]===0x0)return;const _0x173dbd=[],_0x4504b6=[];let _0x4c08de=a['Tools'][_0x11312f(0x216)](_0x27128a[_0x11312f(0x3fa)][0x0]),_0x4bd5d6=a[_0x11312f(0x19b)][_0x11312f(0x216)](_0x27128a[_0x11312f(0x3fa)][0x0]);for(let _0x1af93a=_0x3c8ea7[_0x11312f(0x1ce)]-0x1;_0x1af93a>=0x0;_0x1af93a--){const _0x53d7a1={'id':'doc.mutation.rich-text-editing','params':{..._0x3c8ea7[_0x1af93a]}},_0x398dd1={'id':_0x11312f(0x2fd),'params':{..._0x5b786c[_0x1af93a]}},_0x268144=this[_0x11312f(0x1ae)]['transformMutation'](_0x4c08de,_0x53d7a1,!0x1),_0x11c2c1=this[_0x11312f(0x1ae)][_0x11312f(0x2a1)](_0x4bd5d6,_0x398dd1,!0x1);if(v['isTransformMutationFailure'](_0x268144))throw _0x268144['error'];if(v[_0x11312f(0x201)](_0x11c2c1))throw _0x11c2c1['error'];_0x173dbd['unshift'](_0x268144[_0x11312f(0x187)][_0x11312f(0x2b2)]),_0x4504b6['unshift'](_0x11c2c1[_0x11312f(0x187)][_0x11312f(0x2b2)]),_0x4c08de=_0x268144[_0x11312f(0x382)],_0x4bd5d6=_0x11c2c1[_0x11312f(0x382)];}_0x3f84f3['setUndoRedoMutationParamsCache']({'undoCache':_0x173dbd,'redoCache':_0x4504b6});}[_0x322940(0x1af)](_0x188082){const _0x3d1cbc=_0x322940,{unitID:_0x5d5ca5}=_0x188082,_0x3cba0b=this[_0x3d1cbc(0x290)][_0x3d1cbc(0x301)](_0x5d5ca5)[_0x3d1cbc(0x39f)](T[_0x3d1cbc(0x24a)]),_0x11f870=_0x3cba0b[_0x3d1cbc(0x1b6)]();if(_0x11f870==null)return;const _0x234e6b=[{'id':_0x3d1cbc(0x2fd),'params':{'unitId':_0x188082[_0x3d1cbc(0x394)],'actions':null,'textRanges':[_0x11f870]}}],_0x195d38=this[_0x3d1cbc(0x1ae)][_0x3d1cbc(0x294)](_0x188082,_0x234e6b);if(!v[_0x3d1cbc(0x22d)](_0x195d38))throw _0x195d38['error'];const _0x161d40=_0x195d38['m2Prime'][0x0][_0x3d1cbc(0x2b2)]['textRanges'];Array[_0x3d1cbc(0x161)](_0x161d40)&&_0x161d40[_0x3d1cbc(0x1ce)]&&_0x3cba0b['setActiveRange'](_0x161d40[0x0]);}};function _0x384d(){const _0x5eb61c=['transformStateCache','_getSheetObject','push','Rectangle','clearInterval','_transformHistoryAndStateStack','_handleLeaveEvent','_collabCursorState$','_collabSessionService','_cursorShapes','_beforeCloseService','unitId','body','ICommandService','_initEvent','collaboration-client.offline-data-not-saved','some','find','fillText','onPointerEnter$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','on-line-icon','pluginName','CONFLICT','/universer-api/license/formula/limit/start','startsWith','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','session.collaboration-timeout','WebURLService','now','_doCreateSocket','on-line-icon_clip0_910_349','#FFF','symbol','handleInsertCol','OTHER_CLIENTS_EDITING','endColumn','actions','_context','_hovered','getSheetBySheetId','max','DesktopCollaborationStatusDisplayController','_updateSubUnitFromURLParams','univerjs-icon\x20univerjs-icon-','then','jiqing.500','Plugin','_registerDependencies','APPLY_DUPLICATED','USER_IS_ANONYMOUS','_updateLocalCursor','ENTITLE_DUP_SUBSCRIPTION','_removeClearOtherTimer','0\x200\x2016\x2016','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_lastPointer','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','unsubscribe','parseInt','transformIMECache','ALREADY_EXISTS','yellow.400','transformRemoteChangeset','_eventUnsubscribe','_cachedData','M0\x200H16V16H0z','_removeCollabCursors','_startSheetCollabCursor','onRendered','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','blue.400','defIds','touchDependencies','RevisionService','OFFLINE','PERMISSION_DENIED','CLOSE_ROOM','_range','IDocClipboardService','_hasFormulaInDirtyRanges','FromArray','defineProperty','from','currentColor','_initDependencies','DataLoaderService','m1Prime','SNAPSHOT_INVALID_SNAPSHOT','2247756iLGcNP','INTERNAL_ERROR','roomMembers','YUUMI_CONNECTOR_URL_NOT_FOUND','getformulaLimitStatusUrl','RECT','session.will-retry','useDependency','get','_name','AWAITING_WITH_PENDING','_cursor','UPDATE_CURSOR','displayName','white','LocaleService','unitID','createInstance','pipe','EMAIL_HAS_BEEN_BOUND','_entities','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CollaborationStatus','USERS_LEAVE','dirtyRanges','transform','sessionTicket','with','_notificationService','use','shift','_init','getCellMatrix','entries','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','transformSelections','YUUMI_ALL_TABLES_IS_INVALID','current','_injector','MOBILE_HAS_BEEN_BOUND','imageSourceType','MemberService','getCoordByCell','_docTransformIMECacheService','?taskId=','beginPath','ColorKit','ISocketService','delete','black','IBeforeCloseService','stageInfo','DEFAULT_WS_SESSION_TICKET_URL','_showGuardMessage','_handleJoinEvent','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_EXPORT_SIZE_EXCEEDED','assign','_scheduleSaving','InsertColCommandId','_configService','_collaborationController','eventID','toStringTag','updateOfflineData','_registerRenderDependencies','_anchor','http://www.w3.org/2000/svg','currentTheme$','defs','_messageService','0\x200\x2017\x2016','getSkeleton','rgba(255,\x20255,\x20255,\x200.01)','getCollabCursors$','_urlService','collabStatus.fetchMiss','addObject','UniverIcon','activeSheet$','_draw','TOO_MANY_REQUESTS','Subject','_hideTimer','_pollingInterval','_selfUnitIDs','collabCursorState$','6pmhELe','OffLineIcon','_taskIds','Tooltip','getCurrent','_heartbeatTimer','ACTIVE_UNIT_EVENT_CHANNEL','substring','ENTITLE_REPORT_LIMIT_EXCEED','1143715REWQWe','_imageIoService','_handleEvent','color','fromEventSubject','totalFormulasToCalculate','collab-text-range-','YUUMI_RATE_OVER_LIMIT','onLocalMutation','restore','NO_OTHER_CLIENTS_EDITING','REDEMPTION_CODE_FULLY_REDEEMED','fill','collaboration.closeRoom','serializeRangeWithSheet','moveTo','UNIVER_DOC','/universer-api/license/formula/limit/done','INVITE_CODE_HAS_BEEN_UES','LICENSE_DISTRO_REJECTED','IConfigService','url(#on-line-icon_clip0_910_349)','mutations','VIEW_MAIN','_document','assignAColorForMemberID','SheetsSelectionsService','asObservable','DATA_SOURCE_TOO_LARGE','registerComponent','USER_NOT_INVITED_CODE','height','_applyCommand','useRef','handleInsertRangeMoveRight','ThemeService','univer-flex\x20univer-items-center','addHandlerCallback','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getUnit','CollaborationController','Workbook','permission.content','_status$','generateRandomId','toDisposable','EffectRefRangId','ITransformService','DocStateChangeManagerService','event$','_getSessionTicket','PENDING','_initCommandInterceptor','_onCursorUpdate','RefRangeService','data','WECHAT_HAS_BEEN_BOUND','_startDocCollabCursor','isArray','replaceState','textRanges','YUUMI_NO_CUBOID_FOR_QUESTION','_backgroundColor','_syncEditingCollabCursorService','random','startFormulaLimitUrl','labelPosition','xlink:href','1250304FaffYS','undoState','setItem','red.300','LOGIN_FAILED','_id','collabStatus.syncing','docStateChange$','translate(.97)','selection','RemoteUniscriptService','popstate','releaseFormulaLimitUrl','pushState','none','ILocalStorageService','editingUnit','attrs','startColumn','ranges','cursorInfo','application/json','_localStorageService','Vector2','dispose$','OTHER_CLIENT_EDITING','getParam','1em','m2Prime','isActive','flatMap','ENTITLE_INSUFFICIENT_QUOTA','1092528kopXWP','_config','ILocalCacheService','_instanceService','_sheetSkeletonManagerService','CommandType','roomMembers$','disposeWithMe','SessionStatus','children','exhaustSavingTask','CollaborationUIEventId','off-line-icon_clip0_910_343','dispose','...','_localeService','Tools','map','ILogService','saveOfflineData','newValue','has','addClipboardHook','addEventListener','LICENSE_IMPORT_SIZE_EXCEEDED','univer-mr-2\x20univer-flex\x20univer-text-xl','executeCommand','addObjects','getDocRanges','send','SheetSkeletonManagerService','size','cursorInfo$','UnitStatus','colorChannel1','_transformService','_transformPreviousActiveRange','14sdAEtw','_labelPosition','JOIN_ROOM_FAILED','url(#off-line-icon_clip0_910_343)','subunit','_initStatusComponent','getActiveRange','Loading','hide','_clearOtherTimers','name','split','SHEET_VIEWPORT_KEY','Optional','_clearPolling','_drawTextRange','endRow','23040990sGngNl','getCellPositionByOffset','4535576jFHKrE','debug','memberID','UniverCollaborationClientUIPlugin','Module','Failed','maxFormulaLimit','round','InsertRangeMoveDownCommandId','_collabCursorController','getUndoRedoMutationParamsCache','length','currentSkeleton$','string','_shapes','_setupSubUnitSync','getConfig','width','unshift','Disposable','[RemoteUniscriptService]:\x20no\x20focused\x20unit','currentUsage','add','Inject','_collaborationUIEventService','LOGIN_TOKEN_PROCESSING_FAILED','requireSession','makeDirty','_hover','min','registerRefRange','DocSelectionManagerService','getUniverSheetInstance','onPointerLeave$','reconnect','INVITE_CODE_ALREADY_BOUND','replaceDocRanges','formula.calculation.waiting','takeUntil','sessionStatus$','div','location','saveTaskMap','getVpScrollXYInfoByPosToVp','CollaborationSocketService','evenodd','ENTITLE_NEED_BILLING_ADDRESS','runId','_saveTaskMap','NOT_COLLAB','NodePositionConvertToCursor','BrowserCollaborationSocketService','USER_NOT_FOUND','formula.calculation.unable','setShapeProps','_docTransformSelectionsService','setInterval','override','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','setParam','enableLocalCache','_handleHeartbeatEvent','isTransformMutationFailure','SYNCED','sheetId','PAYMENT_CHANNEL_NOT_SUPPORT','CONNECTOR_DATA_TOO_LARGE','FETCH_MISS','range','getViewport','createSocket','createElement','top','DeleteRangeMoveUpCommandId','_scene','887032WAbAVy','_roomMembers$','PY_RUNTIME_SCRIPT_ERROR','SetFormulaCalculationNotificationMutation','merge','mapTo','_docSyncEditingCollabCursorService','jsxs','deepClone','YUUMI_AI_RUN_FAILED','UNRECOGNIZED','show','_cursors','stringify','_initResize','formula.calculation.started','ENTITLE_CHAT_LIMIT_EXCEED','error','getOffsetConfig','getTypeOfUnitDisposed$','collabStatus.offline','init','_getFormulaLimitStatus','backgroundColor','WebBrowserSingleActiveUnitService','getAncestorScale','_refRangeService','getTypeOfUnitAdded$','APPLY_PERMISSION_DENIED','CollaborationUIEventService','_online','isTransformMutationsWithChangesetSuccess','searchParams','collabStatus.conflict','START_CALCULATION','CollaborationDataLoaderController','AWAITING','IUniverInstanceService','_docTransformStateCacheService','COLORS','drawWith','isFormulaId','DisposableCollection','throttleTime','syncEditingCollabCursor','_render','APPLY_REVISION_CONFILICT','getSheetObject','CHANGESET_REVISION_CONFILICT','executionId','getCurrentSelections','switchMap','onMouseMove','_textBubble','REDEMPTION_INVALID_CODE','lineTo','row','UniverInstanceType','search','_ensureSubject','DocIMEInputManagerService','ENSURE_SNAPSHOT_EXECUTION','_onCursorDelete','_univerInstanceService','EMAIL_VERIFY_CODE_MISMATCH','history','DocCollaborationEntity','UNIVER_SHEET','onStarting','all','runRefRangeMutations','next','collaboration-client-ui.config','green.600','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getUnitId','getValue','getRangePointData','resize','_colorIndex','jsx','save','_checkCalculationAvailable','values','MUTATION','_commandService','complete','permission.title','entityInit$','RegularPolygon','arc','set','shareReplay','_httpService','_toggleOffline','_colorAssignService','ERROR_AGAIN','_docSkeletonManagerService','clipPath','MOBILE_VERIFY_CODE_MISMATCH','functionsExecutedState','Injector','_logService','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','SetDocZoomRatioOperation','SetWorksheetActivateCommand','uni.network.url-service','getItem','getFocusedUnit','_unitStatus','stage','_onRefRangeChange','getOwnPropertyDescriptor','distinctUntilChanged','NodePositionConvertToRectRange','startRow','RemoveColCommandId','_maxFormulaLimit','subscribeEvent','SheetCollabCursorShape','Error','_localCacheService','handleDeleteRangeMoveUp','disposeUnit','getColor','COMPLETION_FINISHED','_handleHover','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_releaseCalculationLimit','getStateCache','_renderManagerService','SOCKET_FAILED','getActiveSheet','_drawRectRange','transformMutationsWithChangeset','handleInsertRow','_startCalculationLimit','_scheduleClearOtherTimer','collab-text-anchor-','getLocalCacheKey','selections','unload','_send','trim','clearTimeout','_entityInit$','UNDEFINED','transformMutation','_lastResponseTimestamp','_docClipboardService','tag','[CollaborationDataLoaderController]','SOCKET_FAILED_RETRY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','combineLatest','replace','_assignedColors','handleInsertRangeMoveDown','_dataLoaderService','path','_transformUndoRedoStack','_updateURLWithCurrentState','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_getScale','params','_memberService','_updateCollabCursors','url(#$1','MessageType','_session','_saveCache','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','forwardRef','_revisionService','_refreshCollabCursors','TEXT','post','_setFormulaLimitStatus','INVALID_ARGUMENT','storage','ISnapshotServerService','DependentOn','_createSocketURL','registerRenderModule','IRenderManagerService','engine','forEach','_themeService','_initEntityListener','includes','BehaviorSubject','SetFormulaCalculationStartMutation','collabStatus.synced','getCurrentUnitForType','fillStyle','debounceTime','limitInfo','beforeCommandExecuted','filter','getMember','HTTPService','unit','_currentUsage','ONLINE','2DvVjSo','YUUMI_SUBSCRIPTION_NOT_FOUND','_cursorInfo$','onCommandExecuted','loadOfflineData','Warning','CollaborationEvent','idSuffix','column','/universer-api/license/formula/limit/status','measureText','collaboration.single-unit.warning','AUTHORIZE_CODE_ILLEGAL','subscribe','_drawAnchor','redoState','IUIPartsService','_checkAndWaitForCalculationPermission','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_toggleOnline','_setupBeforeClosingHandler','saveImage','INVITE_CODE_REQUIRED','_docStateChangeManagerService','handleIRemoveRow','_initStatusListener','findNodePositionByCharIndex','removeParam','getSheetId','IRemoteInstanceService','INotificationService','_disabled','INVALID_INVITE_CODE','setTimeout','REDEMPTION_CODE_NOT_STARTED','doc.mutation.rich-text-editing','text','registerDependencies','purple.300','getRenderById','type','Unknown\x20user','REDEMPTION_CODE_HAS_BEEN_CREATED','IMessageService','collab-rect-range-','_initCommandExecutedListener','YUUMI_ASYNCIO_CANCELLED','DOC_RANGE_TYPE','UNAUTHENTICATED','_getMergeRange','result','status$','_getAnchorBounding','handleDeleteRangeMoveLeft','RxDisposable','toRgbString','href','BuiltInUIPart','_unitOnClients','clsx','REDEMPTION_CODE_INACTIVE','NOT_FOUND','collabStatus.notCollab','TEXT_RANGE_LAYER_INDEX','isFormulaString','mask','IURLService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Rect','code','Shape','urlChange$','bottom','_anchorDot','toString','APPLY_REJECT','getCollabEntity$','YUUMI_URL_COL_OUT_OF_RANGE','CollaborationSessionService','_color','debounce'];_0x384d=function(){return _0x5eb61c;};return _0x384d();}Z=kt([Le(0x0,v[_0x322940(0x413)]),Le(0x1,C['IRenderManagerService'])],Z);var jt=Object[_0x322940(0x27e)],Yt=(_0x31b1b1,_0x110910,_0x3dfac3,_0x253eb4)=>{for(var _0x1f6fd9=_0x253eb4>0x1?void 0x0:_0x253eb4?jt(_0x110910,_0x3dfac3):_0x110910,_0x545b25=_0x31b1b1['length']-0x1,_0x221ed0;_0x545b25>=0x0;_0x545b25--)(_0x221ed0=_0x31b1b1[_0x545b25])&&(_0x1f6fd9=_0x221ed0(_0x1f6fd9)||_0x1f6fd9);return _0x1f6fd9;},he=(_0x4bfc40,_0x29e01f)=>(_0xee14c7,_0x2b1d5b)=>_0x29e01f(_0xee14c7,_0x2b1d5b,_0x4bfc40);let Q=class{constructor(_0x1def56,_0xf7778e,_0x1817e2){const _0x4a24bd=_0x322940;this[_0x4a24bd(0x3aa)]=_0x1def56,this[_0x4a24bd(0x1ae)]=_0xf7778e,this[_0x4a24bd(0x2f1)]=_0x1817e2;}['transformStateCache'](_0x68e5d4){const _0x15e695=_0x322940;this[_0x15e695(0x330)](_0x68e5d4);}['transformRemoteChangeset'](_0x200e1c){const _0x5291b9=_0x322940,{unitID:_0x361493}=_0x200e1c,{collaboration:_0x214212}=this[_0x5291b9(0x2f1)][_0x5291b9(0x28f)](_0x361493);if(_0x214212[_0x5291b9(0x1ce)]===0x0)return _0x200e1c;let _0x26ac66=a[_0x5291b9(0x19b)][_0x5291b9(0x216)](_0x200e1c[_0x5291b9(0x3fa)][0x0]);for(let _0x32c68b=0x0;_0x32c68b<_0x214212[_0x5291b9(0x1ce)];_0x32c68b++){const _0x2d19f8={'id':_0x5291b9(0x2fd),'params':{'unitId':_0x214212[_0x32c68b][_0x5291b9(0x336)],..._0x214212[_0x32c68b][_0x5291b9(0x2e9)]}},_0x3b0e81=this[_0x5291b9(0x1ae)][_0x5291b9(0x2a1)](_0x26ac66,_0x2d19f8,!0x1);if(v['isTransformMutationFailure'](_0x3b0e81))throw _0x3b0e81['error'];_0x26ac66=_0x3b0e81[_0x5291b9(0x382)];}return{...a[_0x5291b9(0x19b)][_0x5291b9(0x216)](_0x200e1c),'mutations':[_0x26ac66]};}[_0x322940(0x330)](_0x714ceb){const _0x2b7129=_0x322940,{unitID:_0x31add4}=_0x714ceb,{history:_0xd1fd27,collaboration:_0x373303}=this['_docStateChangeManagerService']['getStateCache'](_0x31add4);if(_0xd1fd27[_0x2b7129(0x1ce)]===0x0&&_0x373303[_0x2b7129(0x1ce)]===0x0)return;const _0x52665e=[],_0x36099d=[];let _0x121820=a[_0x2b7129(0x19b)]['deepClone'](_0x714ceb[_0x2b7129(0x3fa)][0x0]),_0x1271f5=a[_0x2b7129(0x19b)][_0x2b7129(0x216)](_0x714ceb['mutations'][0x0]);for(let _0x1e5291=_0xd1fd27[_0x2b7129(0x1ce)]-0x1;_0x1e5291>=0x0;_0x1e5291--){const _0x149176={'id':_0x2b7129(0x2fd),'params':{'unitId':_0xd1fd27[_0x1e5291][_0x2b7129(0x336)],..._0xd1fd27[_0x1e5291]['undoState']}},_0x2a81e8={'id':_0x2b7129(0x2fd),'params':{'unitId':_0xd1fd27[_0x1e5291][_0x2b7129(0x336)],..._0xd1fd27[_0x1e5291][_0x2b7129(0x2e9)]}},_0x55f026=this[_0x2b7129(0x1ae)]['transformMutation'](_0x121820,_0x149176,!0x1),_0x4b47cb=this[_0x2b7129(0x1ae)][_0x2b7129(0x2a1)](_0x1271f5,_0x2a81e8,!0x1);if(v[_0x2b7129(0x201)](_0x55f026))throw _0x55f026[_0x2b7129(0x21f)];if(v[_0x2b7129(0x201)](_0x4b47cb))throw _0x4b47cb[_0x2b7129(0x21f)];_0x52665e['unshift']({..._0xd1fd27[_0x1e5291],'undoState':_0x55f026[_0x2b7129(0x187)]['params'],'redoState':_0x4b47cb[_0x2b7129(0x187)]['params']}),_0x121820=_0x55f026[_0x2b7129(0x382)],_0x1271f5=_0x4b47cb['m1Prime'];}_0x121820=a[_0x2b7129(0x19b)]['deepClone'](_0x714ceb[_0x2b7129(0x3fa)][0x0]),_0x1271f5=a['Tools']['deepClone'](_0x714ceb['mutations'][0x0]);for(let _0x545c10=_0x373303[_0x2b7129(0x1ce)]-0x1;_0x545c10>=0x0;_0x545c10--){const _0x168787={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x373303[_0x545c10]['unitId'],..._0x373303[_0x545c10][_0x2b7129(0x16c)]}},_0x1bad63={'id':_0x2b7129(0x2fd),'params':{'unitId':_0x373303[_0x545c10][_0x2b7129(0x336)],..._0x373303[_0x545c10]['redoState']}},_0x41e85c=this[_0x2b7129(0x1ae)][_0x2b7129(0x2a1)](_0x121820,_0x168787,!0x1),_0x1a2630=this[_0x2b7129(0x1ae)][_0x2b7129(0x2a1)](_0x1271f5,_0x1bad63,!0x1);if(v[_0x2b7129(0x201)](_0x41e85c))throw _0x41e85c[_0x2b7129(0x21f)];if(v[_0x2b7129(0x201)](_0x1a2630))throw _0x1a2630[_0x2b7129(0x21f)];_0x36099d[_0x2b7129(0x1d5)]({..._0x373303[_0x545c10],'undoState':_0x41e85c[_0x2b7129(0x187)][_0x2b7129(0x2b2)],'redoState':_0x1a2630[_0x2b7129(0x187)][_0x2b7129(0x2b2)]}),_0x121820=_0x41e85c[_0x2b7129(0x382)],_0x1271f5=_0x1a2630[_0x2b7129(0x382)];}this[_0x2b7129(0x2f1)]['setStateCache'](_0x31add4,{'history':_0x52665e,'collaboration':_0x36099d});}};Q=Yt([he(0x0,a[_0x322940(0x1da)](a[_0x322940(0x273)])),he(0x1,v[_0x322940(0x413)]),he(0x2,a[_0x322940(0x1da)](T[_0x322940(0x414)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x256188,_0x3bf90a,_0xa4eb15,_0x4ca3f4)=>{for(var _0x1446cb=_0x4ca3f4>0x1?void 0x0:_0x4ca3f4?Ht(_0x3bf90a,_0xa4eb15):_0x3bf90a,_0x12534f=_0x256188['length']-0x1,_0xa71913;_0x12534f>=0x0;_0x12534f--)(_0xa71913=_0x256188[_0x12534f])&&(_0x1446cb=_0xa71913(_0x1446cb)||_0x1446cb);return _0x1446cb;},Me=(_0x217737,_0x376f7c)=>(_0x2e1f85,_0x99393c)=>_0x376f7c(_0x2e1f85,_0x99393c,_0x217737);let ee=class{constructor(_0x2e4a94,_0x9409d7){const _0x4786f8=_0x322940;this[_0x4786f8(0x3aa)]=_0x2e4a94,this[_0x4786f8(0x1ae)]=_0x9409d7;}['transformSelections'](_0x214bb4){const _0x2ec6a9=_0x322940;var _0x3c3723;const _0x2dda44=this[_0x2ec6a9(0x3aa)][_0x2ec6a9(0x38c)](W[_0x2ec6a9(0x1e2)]),_0x393919=(_0x3c3723=_0x2dda44[_0x2ec6a9(0x1a7)]())!=null?_0x3c3723:[];if(_0x393919[_0x2ec6a9(0x1ce)]===0x0)return;const _0x3ca6cb=_0x214bb4[_0x2ec6a9(0x394)],_0x6a2499=[{'id':_0x2ec6a9(0x2fd),'params':{'unitId':_0x3ca6cb,'actions':null,'textRanges':_0x393919}}],_0x38f0a3=this[_0x2ec6a9(0x1ae)]['transformMutationsWithChangeset'](_0x214bb4,_0x6a2499);if(!v[_0x2ec6a9(0x22d)](_0x38f0a3))throw _0x38f0a3[_0x2ec6a9(0x21f)];const _0x374a37=_0x38f0a3[_0x2ec6a9(0x187)][0x0][_0x2ec6a9(0x2b2)][_0x2ec6a9(0x163)];Array[_0x2ec6a9(0x161)](_0x374a37)&&_0x374a37[_0x2ec6a9(0x1ce)]&&_0x2dda44[_0x2ec6a9(0x1e7)](_0x374a37,{'unitId':_0x3ca6cb,'subUnitId':_0x3ca6cb},!0x1);}};ee=Wt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,v['ITransformService'])],ee);var Vt=Object[_0x322940(0x27e)],Gt=(_0x50fab7,_0x2f0790,_0x5a7718,_0x1a5f18)=>{const _0x57441=_0x322940;for(var _0x27169b=_0x1a5f18>0x1?void 0x0:_0x1a5f18?Vt(_0x2f0790,_0x5a7718):_0x2f0790,_0x22f5d6=_0x50fab7[_0x57441(0x1ce)]-0x1,_0x3bc2ce;_0x22f5d6>=0x0;_0x22f5d6--)(_0x3bc2ce=_0x50fab7[_0x22f5d6])&&(_0x27169b=_0x3bc2ce(_0x27169b)||_0x27169b);return _0x27169b;},N=(_0x53cd3e,_0x187709)=>(_0xe6d966,_0x476f09)=>_0x187709(_0xe6d966,_0x476f09,_0x53cd3e);let te=class extends a[_0x322940(0x1d6)]{constructor(_0x4ec81f,_0x2c9d76,_0x55cade,_0x22b517,_0x5055aa,_0x337bb0,_0x455e27,_0x48fb04){const _0xa9b703=_0x322940;super(),_(this,_0xa9b703(0x40f),new I[(_0xa9b703(0x2cc))](u[_0xa9b703(0x39a)]['NOT_COLLAB'])),(this[_0xa9b703(0x2f1)]=_0x4ec81f,this[_0xa9b703(0x3c1)]=_0x2c9d76,this[_0xa9b703(0x3af)]=_0x55cade,this[_0xa9b703(0x234)]=_0x22b517,this[_0xa9b703(0x1fa)]=_0x5055aa,this[_0xa9b703(0x214)]=_0x337bb0,this[_0xa9b703(0x3ca)]=_0x455e27,this[_0xa9b703(0x19a)]=_0x48fb04,this['_initEntityListener']());}[_0x322940(0x2ca)](){const _0x42acb6=_0x322940;this[_0x42acb6(0x192)](this[_0x42acb6(0x3c1)][_0x42acb6(0x266)][_0x42acb6(0x2e7)](_0x5ed100=>{const _0x1e0083=_0x42acb6,_0x128d8a=this['_docStateChangeManagerService'][_0x1e0083(0x172)][_0x1e0083(0x2e7)](_0x5c760e=>{const _0x1bd02c=_0x1e0083;if(_0x5c760e==null)return;const {unitId:_0x4a8e25,redoState:_0x517228,commandId:_0x5178a5}=_0x5c760e;if(_0x4a8e25!==_0x5ed100[_0x1bd02c(0x394)])return;const _0x102f71={'id':_0x5178a5,'type':a[_0x1bd02c(0x190)][_0x1bd02c(0x262)],'params':{'unitId':_0x4a8e25,'actions':_0x517228[_0x1bd02c(0x350)],'textRanges':null}};_0x5ed100[_0x1bd02c(0x3ec)](_0x102f71);});if(_0x5ed100[_0x1e0083(0x192)](_0x128d8a),_0x5ed100 instanceof u[_0x1e0083(0x250)]){const _0x494d7f={'onTransformIME':_0x4e6379=>this[_0x1e0083(0x3af)][_0x1e0083(0x367)](_0x4e6379),'onTransformState':_0x8b92db=>this[_0x1e0083(0x234)][_0x1e0083(0x32b)](_0x8b92db),'onTransformSelections':_0x56ed3e=>this[_0x1e0083(0x1fa)][_0x1e0083(0x3a7)](_0x56ed3e),'onSyncEditingCollabCursor':_0x4ac2dc=>this['_docSyncEditingCollabCursorService'][_0x1e0083(0x23a)](_0x4ac2dc),'onTransformRemoteChangesetByIMECache':_0xba7017=>this[_0x1e0083(0x3af)][_0x1e0083(0x36a)](_0xba7017),'onTransformRemoteChangesetByStateCache':_0x1c6e13=>this[_0x1e0083(0x234)]['transformRemoteChangeset'](_0x1c6e13)};_0x5ed100[_0x1e0083(0x409)](_0x494d7f);}}));}};te=Gt([N(0x0,a[_0x322940(0x1da)](T[_0x322940(0x414)])),N(0x1,a[_0x322940(0x1da)](u[_0x322940(0x40c)])),N(0x2,a[_0x322940(0x1da)](Z)),N(0x3,a[_0x322940(0x1da)](Q)),N(0x4,a[_0x322940(0x1da)](ee)),N(0x5,a[_0x322940(0x1da)](Oe)),N(0x6,O['IMessageService']),N(0x7,a[_0x322940(0x1da)](a['LocaleService']))],te);var V=(_0x4bdd22=>(_0x4bdd22[_0x4bdd22[_0x322940(0x2a0)]=0x0]=_0x322940(0x2a0),_0x4bdd22[_0x4bdd22['OK']=0x1]='OK',_0x4bdd22[_0x4bdd22['INTERNAL_ERROR']=0x2]=_0x322940(0x385),_0x4bdd22[_0x4bdd22[_0x322940(0x377)]=0x3]=_0x322940(0x377),_0x4bdd22[_0x4bdd22['NOT_FOUND']=0x4]=_0x322940(0x317),_0x4bdd22[_0x4bdd22[_0x322940(0x30a)]=0x5]=_0x322940(0x30a),_0x4bdd22[_0x4bdd22[_0x322940(0x368)]=0x6]='ALREADY_EXISTS',_0x4bdd22[_0x4bdd22[_0x322940(0x2c0)]=0x7]='INVALID_ARGUMENT',_0x4bdd22[_0x4bdd22[_0x322940(0x3d5)]=0x8]=_0x322940(0x3d5),_0x4bdd22[_0x4bdd22[_0x322940(0x28b)]=0x9]='COMPLETION_FINISHED',_0x4bdd22[_0x4bdd22[_0x322940(0x16f)]=0xa]=_0x322940(0x16f),_0x4bdd22[_0x4bdd22[_0x322940(0x271)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x4bdd22[_0x4bdd22[_0x322940(0x2b9)]=0xc]=_0x322940(0x2b9),_0x4bdd22[_0x4bdd22[_0x322940(0x24e)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x4bdd22[_0x4bdd22[_0x322940(0x40a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4bdd22[_0x4bdd22[_0x322940(0x2e6)]=0xf]=_0x322940(0x2e6),_0x4bdd22[_0x4bdd22[_0x322940(0x1dc)]=0x10]=_0x322940(0x1dc),_0x4bdd22[_0x4bdd22['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x4bdd22[_0x4bdd22[_0x322940(0x26e)]=0x65]=_0x322940(0x26e),_0x4bdd22[_0x4bdd22[_0x322940(0x1f7)]=0xc9]=_0x322940(0x1f7),_0x4bdd22[_0x4bdd22[_0x322940(0x35d)]=0xca]=_0x322940(0x35d),_0x4bdd22[_0x4bdd22[_0x322940(0x23e)]=0x1389]=_0x322940(0x23e),_0x4bdd22[_0x4bdd22[_0x322940(0x383)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4bdd22[_0x4bdd22['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4bdd22[_0x4bdd22[_0x322940(0x24b)]=0x1773]=_0x322940(0x24b),_0x4bdd22[_0x4bdd22[_0x322940(0x325)]=0x1b59]=_0x322940(0x325),_0x4bdd22[_0x4bdd22[_0x322940(0x3bb)]=0x1b5a]=_0x322940(0x3bb),_0x4bdd22[_0x4bdd22[_0x322940(0x23c)]=0x1b5b]=_0x322940(0x23c),_0x4bdd22[_0x4bdd22[_0x322940(0x22a)]=0x1b5c]=_0x322940(0x22a),_0x4bdd22[_0x4bdd22[_0x322940(0x35c)]=0x1b5d]=_0x322940(0x35c),_0x4bdd22[_0x4bdd22[_0x322940(0x205)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4bdd22[_0x4bdd22['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4bdd22[_0x4bdd22[_0x322940(0x1fd)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4bdd22[_0x4bdd22[_0x322940(0x1a3)]=0x232b]=_0x322940(0x1a3),_0x4bdd22[_0x4bdd22[_0x322940(0x3bc)]=0x232c]=_0x322940(0x3bc),_0x4bdd22[_0x4bdd22[_0x322940(0x3f7)]=0x232d]=_0x322940(0x3f7),_0x4bdd22[_0x4bdd22['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4bdd22[_0x4bdd22['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x322940(0x327),_0x4bdd22[_0x4bdd22[_0x322940(0x3eb)]=0x2713]=_0x322940(0x3eb),_0x4bdd22[_0x4bdd22[_0x322940(0x2db)]=0x2714]=_0x322940(0x2db),_0x4bdd22[_0x4bdd22[_0x322940(0x164)]=0x271a]=_0x322940(0x164),_0x4bdd22[_0x4bdd22[_0x322940(0x308)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x4bdd22[_0x4bdd22[_0x322940(0x31d)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x4bdd22[_0x4bdd22[_0x322940(0x3a8)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4bdd22[_0x4bdd22[_0x322940(0x362)]=0x271e]=_0x322940(0x362),_0x4bdd22[_0x4bdd22[_0x322940(0x217)]=0x271f]=_0x322940(0x217),_0x4bdd22[_0x4bdd22[_0x322940(0x387)]=0x2720]=_0x322940(0x387),_0x4bdd22[_0x4bdd22[_0x322940(0x210)]=0x2af9]=_0x322940(0x210),_0x4bdd22[_0x4bdd22[_0x322940(0x3f6)]=0x2ee1]=_0x322940(0x3f6),_0x4bdd22[_0x4bdd22[_0x322940(0x2fa)]=0x2ee2]='INVALID_INVITE_CODE',_0x4bdd22[_0x4bdd22['INVITE_CODE_REQUIRED']=0x2ee3]=_0x322940(0x2f0),_0x4bdd22[_0x4bdd22[_0x322940(0x402)]=0x2ee4]=_0x322940(0x402),_0x4bdd22[_0x4bdd22['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x322940(0x1e6),_0x4bdd22[_0x4bdd22[_0x322940(0x15f)]=0x32c9]=_0x322940(0x15f),_0x4bdd22[_0x4bdd22[_0x322940(0x3ab)]=0x32ca]=_0x322940(0x3ab),_0x4bdd22[_0x4bdd22[_0x322940(0x397)]=0x32cb]=_0x322940(0x397),_0x4bdd22[_0x4bdd22[_0x322940(0x2ec)]=0x36b1]=_0x322940(0x2ec),_0x4bdd22[_0x4bdd22[_0x322940(0x28d)]=0x36b2]=_0x322940(0x28d),_0x4bdd22[_0x4bdd22[_0x322940(0x35f)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4bdd22[_0x4bdd22['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x322940(0x204),_0x4bdd22[_0x4bdd22[_0x322940(0x21e)]=0x3715]=_0x322940(0x21e),_0x4bdd22[_0x4bdd22[_0x322940(0x3e3)]=0x3716]=_0x322940(0x3e3),_0x4bdd22[_0x4bdd22[_0x322940(0x18a)]=0x3717]=_0x322940(0x18a),_0x4bdd22[_0x4bdd22[_0x322940(0x1f1)]=0x37dd]=_0x322940(0x1f1),_0x4bdd22[_0x4bdd22[_0x322940(0x244)]=0x3a99]=_0x322940(0x244),_0x4bdd22[_0x4bdd22[_0x322940(0x316)]=0x3a9a]=_0x322940(0x316),_0x4bdd22[_0x4bdd22[_0x322940(0x3ef)]=0x3a9b]=_0x322940(0x3ef),_0x4bdd22[_0x4bdd22[_0x322940(0x2fc)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x4bdd22[_0x4bdd22['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4bdd22[_0x4bdd22[_0x322940(0x258)]=0x3a9e]=_0x322940(0x258),_0x4bdd22[_0x4bdd22[_0x322940(0x304)]=0x3a9f]=_0x322940(0x304),_0x4bdd22[_0x4bdd22[_0x322940(0x400)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x4bdd22[_0x4bdd22[_0x322940(0x218)]=-0x1]=_0x322940(0x218),_0x4bdd22))(V||{});function Xt(_0x4a5aa5){const _0x11bdb9=_0x322940;var _0x37ca84,_0x4b732b;const _0x34cb65=(_0x37ca84=_0x4a5aa5[_0x11bdb9(0x3b7)])==null?void 0x0:_0x37ca84[_0x11bdb9(0x27c)],_0x3f6acb=((_0x4b732b=_0x4a5aa5[_0x11bdb9(0x3b7)])==null?void 0x0:_0x4b732b[_0x11bdb9(0x3e9)])||0x0;return _0x34cb65===x['FormulaExecuteStageType'][_0x11bdb9(0x230)]&&_0x3f6acb>0x0;}function Kt(_0x106fda){const _0x333c3f=_0x322940;return _0x106fda[_0x333c3f(0x272)]===x['FormulaExecutedStateType']['SUCCESS'];}var qt=Object[_0x322940(0x27e)],zt=(_0x34bf2e,_0x1b41e9,_0x179a6a,_0x5b2257)=>{const _0x1d33b8=_0x322940;for(var _0xb2533d=_0x5b2257>0x1?void 0x0:_0x5b2257?qt(_0x1b41e9,_0x179a6a):_0x1b41e9,_0x1209d6=_0x34bf2e[_0x1d33b8(0x1ce)]-0x1,_0x2dc848;_0x1209d6>=0x0;_0x1209d6--)(_0x2dc848=_0x34bf2e[_0x1209d6])&&(_0xb2533d=_0x2dc848(_0xb2533d)||_0xb2533d);return _0xb2533d;},L=(_0x56d84c,_0x2ccb20)=>(_0x594e5e,_0x3e640b)=>_0x2ccb20(_0x594e5e,_0x3e640b,_0x56d84c);const Jt=_0x322940(0x2e3),Zt=_0x322940(0x343),Qt=_0x322940(0x3f5);let se=class extends a[_0x322940(0x1d6)]{constructor(_0x3d69d4,_0x38540c,_0x33b2a6,_0x1d8713,_0x1935c7,_0x33330a,_0x4935ab){const _0x2e82e6=_0x322940;super(),_(this,_0x2e82e6(0x3d8),null),_(this,_0x2e82e6(0x283),0x0),_(this,_0x2e82e6(0x2d8),0x0),_(this,_0x2e82e6(0x3dd),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x2e82e6(0x3ca)]=_0x3d69d4,this['_commandService']=_0x38540c,this['_configService']=_0x33b2a6,this[_0x2e82e6(0x26b)]=_0x1d8713,this['_univerInstanceService']=_0x1935c7,this[_0x2e82e6(0x274)]=_0x33330a,this[_0x2e82e6(0x19a)]=_0x4935ab,this[_0x2e82e6(0x15b)]());}[_0x322940(0x15b)](){const _0x1a5b04=_0x322940;this[_0x1a5b04(0x192)](this['_commandService'][_0x1a5b04(0x2d3)]((_0x1e947c,_0x53b4e8)=>{const _0x5421a7=_0x1a5b04;var _0x5d5ca8;if(_0x1e947c['id']!==x[_0x5421a7(0x2cd)]['id'])return;const _0x4ccf2f=_0x1e947c['params'];if(!this[_0x5421a7(0x37b)]((_0x5d5ca8=_0x4ccf2f[_0x5421a7(0x39c)])!=null?_0x5d5ca8:[]))return;if(!this[_0x5421a7(0x260)]())throw this[_0x5421a7(0x2eb)](_0x1e947c,_0x53b4e8),this[_0x5421a7(0x3b9)](),new a['CanceledError']();})),this[_0x1a5b04(0x192)](this['_commandService'][_0x1a5b04(0x2dd)]((_0x2e74bd,_0x31143f)=>{const _0x235396=_0x1a5b04;if(_0x2e74bd['id']!==x[_0x235396(0x211)]['id'])return;const _0x9fedef=_0x2e74bd['params'];if(Xt(_0x9fedef)){const _0x54c5c6=a[_0x235396(0x410)]();this[_0x235396(0x3dd)][_0x235396(0x32d)](_0x54c5c6),this['_startCalculationLimit'](_0x54c5c6);}else{if(Kt(_0x9fedef)&&this[_0x235396(0x3dd)][_0x235396(0x1ce)]>0x0){const _0x5c1e25=this[_0x235396(0x3dd)][_0x235396(0x3a2)]();this[_0x235396(0x28e)](_0x5c1e25);}}}));}['dispose'](){const _0x2466b2=_0x322940;super[_0x2466b2(0x198)](),this[_0x2466b2(0x1be)](),this[_0x2466b2(0x3dd)]=[],this['_currentUsage']=0x0,this[_0x2466b2(0x283)]=0x0,this[_0x2466b2(0x2a2)]=0x0;}async[_0x322940(0x2eb)](_0x26fa48,_0x4f4c99){const _0xa6f156=_0x322940;for(let _0x38da1c=0x0;_0x38da1c<0x1e;_0x38da1c++)try{if(await this[_0xa6f156(0x224)](),this[_0xa6f156(0x260)]()){this[_0xa6f156(0x404)](_0x26fa48,_0x4f4c99),this['_messageService'][_0xa6f156(0x219)]({'content':this[_0xa6f156(0x19a)]['t'](_0xa6f156(0x21d)),'type':p[_0xa6f156(0x2b6)]['Success']});return;}await new Promise(_0x37ffd4=>{this['_pollingInterval']=window['setTimeout'](_0x37ffd4,0x3e8);});}catch(_0x41de4c){this[_0xa6f156(0x274)][_0xa6f156(0x21f)](_0x41de4c);}this[_0xa6f156(0x3ca)][_0xa6f156(0x219)]({'content':this['_localeService']['t'](_0xa6f156(0x1f8)),'type':p[_0xa6f156(0x2b6)][_0xa6f156(0x286)]});}[_0x322940(0x404)](_0x38e214,_0x12923c){const _0x426bb1=_0x322940;try{this['_commandService'][_0x426bb1(0x1a5)](_0x38e214['id'],_0x38e214[_0x426bb1(0x2b2)],_0x12923c);}catch(_0x13bcf3){this[_0x426bb1(0x274)][_0x426bb1(0x21f)](_0x13bcf3);}}[_0x322940(0x2bf)](_0x59e1a2,_0x317608){const _0x203793=_0x322940;_0x317608<this[_0x203793(0x2a2)]||(this[_0x203793(0x2a2)]=_0x317608,this[_0x203793(0x283)]=Number[_0x203793(0x366)](_0x59e1a2[_0x203793(0x1c9)]),this['_currentUsage']=Number[_0x203793(0x366)](_0x59e1a2[_0x203793(0x1d8)]));}async[_0x322940(0x296)](_0x4755af){const _0x2248c4=_0x322940;var _0x4f0c5f,_0x2f191a;const _0x930d0b=Date[_0x2248c4(0x348)]();try{const _0x37df4e=((_0x4f0c5f=this[_0x2248c4(0x3c0)][_0x2248c4(0x1d3)](u[_0x2248c4(0x399)]))==null?void 0x0:_0x4f0c5f[_0x2248c4(0x168)])||Zt,_0x258f7d=(await this[_0x2248c4(0x26b)]['post'](_0x37df4e,{'body':JSON[_0x2248c4(0x21b)]({'taskId':_0x4755af})}))[_0x2248c4(0x337)];if(((_0x2f191a=_0x258f7d[_0x2248c4(0x21f)])==null?void 0x0:_0x2f191a[_0x2248c4(0x31f)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x258f7d[_0x2248c4(0x2d2)],_0x930d0b);}catch(_0x183571){this[_0x2248c4(0x274)][_0x2248c4(0x21f)](_0x183571);}}async[_0x322940(0x224)](_0x64707d){const _0x5789bb=_0x322940;var _0x2438d4,_0x5d1a5d;const _0x188a85=Date[_0x5789bb(0x348)]();try{const _0x4571ad=((_0x2438d4=this[_0x5789bb(0x3c0)][_0x5789bb(0x1d3)](u[_0x5789bb(0x399)]))==null?void 0x0:_0x2438d4[_0x5789bb(0x388)])||Jt,_0x4c250a=_0x64707d?_0x4571ad+_0x5789bb(0x3b0)+encodeURIComponent(_0x64707d):_0x4571ad,_0x540135=(await this['_httpService'][_0x5789bb(0x38c)](_0x4c250a))[_0x5789bb(0x337)];if(((_0x5d1a5d=_0x540135[_0x5789bb(0x21f)])==null?void 0x0:_0x5d1a5d[_0x5789bb(0x31f)])!==V['OK'])return;this[_0x5789bb(0x2bf)](_0x540135[_0x5789bb(0x2d2)],_0x188a85);}catch(_0x4fc5f9){this[_0x5789bb(0x274)][_0x5789bb(0x21f)](_0x4fc5f9);}}async[_0x322940(0x28e)](_0x7799ec){const _0x580dae=_0x322940;var _0x1f256b,_0x343880;const _0x4f2382=Date[_0x580dae(0x348)]();try{const _0x3e52b0=((_0x1f256b=this['_configService'][_0x580dae(0x1d3)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1f256b[_0x580dae(0x177)])||Qt,_0x50f474=(await this['_httpService'][_0x580dae(0x2be)](_0x3e52b0,{'body':JSON[_0x580dae(0x21b)]({'taskId':_0x7799ec})}))[_0x580dae(0x337)];if(((_0x343880=_0x50f474[_0x580dae(0x21f)])==null?void 0x0:_0x343880[_0x580dae(0x31f)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x50f474['limitInfo'],_0x4f2382);}catch(_0x34ce23){this[_0x580dae(0x274)][_0x580dae(0x21f)](_0x34ce23);}}[_0x322940(0x260)](){const _0x543db4=_0x322940;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x543db4(0x283)]-this[_0x543db4(0x2d8)]>0x0;}[_0x322940(0x1be)](){const _0x58506d=_0x322940;this[_0x58506d(0x3d8)]&&(clearTimeout(this[_0x58506d(0x3d8)]),this['_pollingInterval']=null);}[_0x322940(0x3b9)](){const _0x50dd7a=_0x322940;this[_0x50dd7a(0x3ca)][_0x50dd7a(0x219)]({'content':this[_0x50dd7a(0x19a)]['t'](_0x50dd7a(0x1e8)),'type':p[_0x50dd7a(0x2b6)][_0x50dd7a(0x1b7)]});}[_0x322940(0x37b)](_0x286f1c){const _0x167040=_0x322940;for(const _0x13f271 of _0x286f1c){const {unitId:_0x3c6c42,sheetId:_0x33e7f6,range:_0x47e904}=_0x13f271,_0x56bb1c=this[_0x167040(0x24d)][_0x167040(0x40b)](_0x3c6c42);if(!_0x56bb1c)continue;const _0x51fe1e=_0x56bb1c['getSheetBySheetId'](_0x33e7f6);if(!_0x51fe1e)continue;const _0x3ce269=_0x51fe1e[_0x167040(0x3a4)]();for(let _0x5a74a3=_0x47e904[_0x167040(0x281)];_0x5a74a3<=_0x47e904[_0x167040(0x1c0)];_0x5a74a3++)for(let _0x4b522c=_0x47e904[_0x167040(0x17d)];_0x4b522c<=_0x47e904[_0x167040(0x34f)];_0x4b522c++){const _0x1276b2=_0x3ce269['getValue'](_0x5a74a3,_0x4b522c);if(_0x1276b2&&(a[_0x167040(0x31a)](_0x1276b2['f'])||a[_0x167040(0x237)](_0x1276b2['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a['Inject'](O[_0x322940(0x305)])),L(0x1,a[_0x322940(0x338)]),L(0x2,a['IConfigService']),L(0x3,a[_0x322940(0x1da)](G[_0x322940(0x2d6)])),L(0x4,a[_0x322940(0x233)]),L(0x5,a[_0x322940(0x19d)]),L(0x6,a[_0x322940(0x1da)](a[_0x322940(0x393)]))],se);var es=Object[_0x322940(0x27e)],ts=(_0x2b3fab,_0x371115,_0x222b93,_0x11ddaf)=>{const _0x2bbf59=_0x322940;for(var _0x23c424=_0x11ddaf>0x1?void 0x0:_0x11ddaf?es(_0x371115,_0x222b93):_0x371115,_0x189be6=_0x2b3fab[_0x2bbf59(0x1ce)]-0x1,_0x36a385;_0x189be6>=0x0;_0x189be6--)(_0x36a385=_0x2b3fab[_0x189be6])&&(_0x23c424=_0x36a385(_0x23c424)||_0x23c424);return _0x23c424;},ue=(_0xdd004f,_0x1e5d3e)=>(_0x200f79,_0x1a6337)=>_0x1e5d3e(_0x200f79,_0x1a6337,_0xdd004f);let Ee=class extends a[_0x322940(0x1d6)]{constructor(_0x2d0c4f,_0xa1a8d7,_0x280711){const _0x263f2e=_0x322940;super(),_(this,_0x263f2e(0x36c),new Map()),_(this,_0x263f2e(0x1f3),new Map()),_(this,_0x263f2e(0x2f9),!0x1),(this[_0x263f2e(0x3c0)]=_0x2d0c4f,this[_0x263f2e(0x181)]=_0xa1a8d7,this['_revisionService']=_0x280711);}['disableLocalCache'](){const _0x3a768b=_0x322940;this[_0x3a768b(0x2f9)]=!0x0;}[_0x322940(0x1ff)](){const _0x3ee3b8=_0x322940;this[_0x3ee3b8(0x2f9)]=!0x1;}get[_0x322940(0x1ed)](){return this['_saveTaskMap'];}[_0x322940(0x198)](){const _0x50434b=_0x322940;this[_0x50434b(0x195)]()[_0x50434b(0x358)](()=>super['dispose']());}async[_0x322940(0x2de)](_0x1abb55){const _0x20f252=_0x322940;return this[_0x20f252(0x2f9)]?null:this[_0x20f252(0x181)][_0x20f252(0x279)](u['getLocalCacheKey'](_0x1abb55));}async[_0x322940(0x19e)](_0x29d46a,_0x55a96a){const _0x346dd1=_0x322940;return!!this[_0x346dd1(0x181)][_0x346dd1(0x16d)](_0x29d46a,_0x55a96a);}[_0x322940(0x3c4)](_0x47e7d5,_0xcee02c,_0xcefb53,_0x8046a7){const _0x3e9bfa=_0x322940,_0x232355=this[_0x3e9bfa(0x2bb)]['getCurrentRevOfUnit'](_0x47e7d5);this['_cachedData'][_0x3e9bfa(0x269)](_0x47e7d5,{'unitID':_0x47e7d5,'type':_0xcee02c,'awaitingChangeset':_0xcefb53,'mutations':_0x8046a7,'rev':_0x232355}),this[_0x3e9bfa(0x1f3)]['has'](_0x47e7d5)||this[_0x3e9bfa(0x3be)](_0x47e7d5);}[_0x322940(0x3be)](_0x11f8fd){const _0x28ad92=_0x322940,_0x433a82=this['_getSaveTimeout']();_0x433a82===0x0?this[_0x28ad92(0x2b8)](_0x11f8fd):this['_saveTaskMap'][_0x28ad92(0x269)](_0x11f8fd,setTimeout(()=>this[_0x28ad92(0x2b8)](_0x11f8fd),_0x433a82));}['_getSaveTimeout'](){var _0x44c8c8;return(_0x44c8c8=this['_configService']['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x44c8c8:u['LOCAL_CACHE_INTERVAL'];}[_0x322940(0x2b8)](_0x5f0852){const _0x1376fe=_0x322940,_0x20037c=this[_0x1376fe(0x1f3)][_0x1376fe(0x38c)](_0x5f0852);return _0x20037c!==void 0x0&&window['clearTimeout'](_0x20037c),this[_0x1376fe(0x181)][_0x1376fe(0x16d)](u[_0x1376fe(0x299)](_0x5f0852),this['_cachedData'][_0x1376fe(0x38c)](_0x5f0852))[_0x1376fe(0x358)](()=>this[_0x1376fe(0x1f3)]['delete'](_0x5f0852));}async[_0x322940(0x195)](){const _0x51b378=_0x322940,_0x4a54e1=[];this[_0x51b378(0x1f3)]['forEach']((_0x500745,_0x1a27cb)=>{const _0x519fa0=_0x51b378;window['clearTimeout'](_0x500745),_0x4a54e1[_0x519fa0(0x32d)](this['_saveCache'](_0x1a27cb)['then'](()=>{const _0x30cc41=_0x519fa0;this[_0x30cc41(0x1f3)][_0x30cc41(0x3b4)](_0x1a27cb);}));}),await Promise[_0x51b378(0x253)](_0x4a54e1);}};Ee=ts([ue(0x0,a['IConfigService']),ue(0x1,a[_0x322940(0x17a)]),ue(0x2,a[_0x322940(0x1da)](v[_0x322940(0x375)]))],Ee);class Fe extends a[_0x322940(0x310)]{constructor(){const _0x1ac49a=_0x322940;super(),_(this,_0x1ac49a(0x321)),this[_0x1ac49a(0x321)]=I['fromEvent'](window,_0x1ac49a(0x176))['pipe'](I[_0x1ac49a(0x1e9)](this['dispose$']),I[_0x1ac49a(0x26a)](0x1),I[_0x1ac49a(0x213)](void 0x0));}['setParam'](_0x44bbbc,_0x2b51d7,_0x2e7629=!0x1){const _0x19eaa0=_0x322940,_0x87af84=new URL(window[_0x19eaa0(0x1ec)][_0x19eaa0(0x312)]);_0x87af84[_0x19eaa0(0x22e)][_0x19eaa0(0x269)](_0x44bbbc,_0x2b51d7),_0x2e7629?window['history']['replaceState']('','',_0x87af84[_0x19eaa0(0x324)]()):window[_0x19eaa0(0x24f)][_0x19eaa0(0x178)]('','',_0x87af84[_0x19eaa0(0x324)]());}[_0x322940(0x2f5)](_0x1b7179,_0x3cb1d5=!0x1){const _0x4df9be=_0x322940,_0x31bff1=new URL(window[_0x4df9be(0x1ec)][_0x4df9be(0x312)]);_0x31bff1[_0x4df9be(0x22e)][_0x4df9be(0x3b4)](_0x1b7179),_0x3cb1d5?window[_0x4df9be(0x24f)][_0x4df9be(0x162)]('','',_0x31bff1[_0x4df9be(0x324)]()):window[_0x4df9be(0x24f)]['pushState']('','',_0x31bff1['toString']());}[_0x322940(0x185)](_0x1f4702){const _0x4a01b5=_0x322940;var _0x47544c;return(_0x47544c=new URL(window['location']['href'])['searchParams'][_0x4a01b5(0x38c)](_0x1f4702))!=null?_0x47544c:void 0x0;}}var ss=Object['defineProperty'],is=Object[_0x322940(0x27e)],ns=(_0x3b4a15,_0x43f8e9,_0x44eabc)=>_0x43f8e9 in _0x3b4a15?ss(_0x3b4a15,_0x43f8e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44eabc}):_0x3b4a15[_0x43f8e9]=_0x44eabc,rs=(_0x57cef7,_0x538eae,_0x16333f,_0x26f9e2)=>{for(var _0x503b38=_0x26f9e2>0x1?void 0x0:_0x26f9e2?is(_0x538eae,_0x16333f):_0x538eae,_0x72c881=_0x57cef7['length']-0x1,_0x36eda2;_0x72c881>=0x0;_0x72c881--)(_0x36eda2=_0x57cef7[_0x72c881])&&(_0x503b38=_0x36eda2(_0x503b38)||_0x503b38);return _0x503b38;},Ie=(_0x461b97,_0x2cddbc)=>(_0x163d5e,_0x36d982)=>_0x2cddbc(_0x163d5e,_0x36d982,_0x461b97),os=(_0x41d71d,_0x5b098d,_0x46df01)=>ns(_0x41d71d,_0x5b098d+'',_0x46df01);const as=_0x322940(0x3a6);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x322940(0x35a)]{constructor(_0x1fa900=Ue,_0x841a0,_0x5a3f1b,_0x2aa93a){const _0x2aeb6e=_0x322940;super(),this['_config']=_0x1fa900,this[_0x2aeb6e(0x290)]=_0x841a0,this[_0x2aeb6e(0x3aa)]=_0x5a3f1b,this[_0x2aeb6e(0x3c0)]=_0x2aa93a;const {..._0x32f629}=a[_0x2aeb6e(0x212)]({},Ue,this['_config']);this[_0x2aeb6e(0x3c0)]['setConfig'](Bt,_0x32f629);}[_0x322940(0x252)](){const _0x41e5ab=_0x322940;this[_0x41e5ab(0x35b)](),this['_initDependencies']();}[_0x322940(0x370)](){const _0x357a5b=_0x322940;this[_0x357a5b(0x3c5)]();}[_0x322940(0x35b)](){const _0x4e92f0=_0x322940;var _0x5e3953;const _0x385de5=[[pe],[se],[ee],[Z],[Q],[Oe],[Te,{'useClass':Fe}],[G[_0x4e92f0(0x3b3)],{'useClass':G['WebSocketService']}],[u[_0x4e92f0(0x18d)],{'useClass':Ee}],[exports[_0x4e92f0(0x355)]],[te],[J],[B],[de],[exports[_0x4e92f0(0x231)]]];a[_0x4e92f0(0x2ff)](this[_0x4e92f0(0x3aa)],a['mergeOverrideWithDependencies'](_0x385de5,(_0x5e3953=this[_0x4e92f0(0x18c)])==null?void 0x0:_0x5e3953[_0x4e92f0(0x1fc)]));}[_0x322940(0x3c5)](){const _0xa8a92e=_0x322940;this['disposeWithMe'](this[_0xa8a92e(0x290)][_0xa8a92e(0x2c5)](a[_0xa8a92e(0x247)][_0xa8a92e(0x3f4)],[ge])),this['disposeWithMe'](this[_0xa8a92e(0x290)][_0xa8a92e(0x2c5)](a[_0xa8a92e(0x247)]['UNIVER_SHEET'],[ve]));}[_0x322940(0x380)](){const _0x11294d=_0x322940;a[_0x11294d(0x374)](this[_0x11294d(0x3aa)],[[B],[exports[_0x11294d(0x355)]],[te],[J],[exports[_0x11294d(0x231)]],[se]]);}},os(exports['UniverCollaborationClientUIPlugin'],_0x322940(0x341),as),exports[_0x322940(0x1c6)]=rs([a[_0x322940(0x2c3)](u['UniverCollaborationClientPlugin']),Ie(0x1,C[_0x322940(0x2c6)]),Ie(0x2,a[_0x322940(0x1da)](a[_0x322940(0x273)])),Ie(0x3,a[_0x322940(0x3f8)])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x322940(0x27e)],ls=(_0xbe1b12,_0x243a5a,_0x174d8e,_0x5ed6c7)=>{for(var _0x1e56f1=_0x5ed6c7>0x1?void 0x0:_0x5ed6c7?cs(_0x243a5a,_0x174d8e):_0x243a5a,_0x19ad1f=_0xbe1b12['length']-0x1,_0x4afcbb;_0x19ad1f>=0x0;_0x19ad1f--)(_0x4afcbb=_0xbe1b12[_0x19ad1f])&&(_0x1e56f1=_0x4afcbb(_0x1e56f1)||_0x1e56f1);return _0x1e56f1;},H=(_0x36e328,_0x3ce872)=>(_0x22e636,_0x504311)=>_0x3ce872(_0x22e636,_0x504311,_0x36e328);exports['BrowserCollaborationSocketService']=class extends u[_0x322940(0x1ef)]{constructor(_0x482918,_0x1da4b6,_0x44d584,_0x2d7a45,_0x1d388d){super(_0x482918,_0x1da4b6,_0x44d584,_0x2d7a45,_0x1d388d);}async[_0x322940(0x209)](_0x21e413){const _0x59c998=_0x322940,_0x6bce8f=await this[_0x59c998(0x159)](),_0xfc7cc5=this['_createSocketURL'](_0x21e413,_0x6bce8f);return this[_0x59c998(0x349)](_0xfc7cc5);}[_0x322940(0x2c4)](_0x346173,_0xff8273){const _0xfa4c6c=_0x322940,_0x25308d=typeof window>'u'?new URL(_0x346173):new URL(_0x346173,window[_0xfa4c6c(0x1ec)]['origin']);_0x25308d[_0xfa4c6c(0x22e)][_0xfa4c6c(0x269)](_0xfa4c6c(0x39e),_0xff8273);const _0x2e437e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xfa4c6c(0x1ec)][_0xfa4c6c(0x248)]);return _0x2e437e['get'](_0xfa4c6c(0x1f2))&&_0x25308d[_0xfa4c6c(0x22e)][_0xfa4c6c(0x269)](_0xfa4c6c(0x1f2),_0x2e437e['get'](_0xfa4c6c(0x1f2))),_0x25308d['toString']();}async[_0x322940(0x159)](){const _0x10fc6f=_0x322940;var _0x506a67,_0x273a87,_0x146995;const _0x10f63f=this[_0x10fc6f(0x3c0)][_0x10fc6f(0x1d3)](u[_0x10fc6f(0x399)]),_0x33890d=(_0x506a67=_0x10f63f==null?void 0x0:_0x10f63f['wsSessionTicketUrl'])!=null?_0x506a67:u[_0x10fc6f(0x3b8)];return(_0x146995=(_0x273a87=(await this[_0x10fc6f(0x26b)][_0x10fc6f(0x38c)](_0x33890d,{'headers':{'Content-Type':_0x10fc6f(0x180)}}))[_0x10fc6f(0x337)])==null?void 0x0:_0x273a87['ticket'])!=null?_0x146995:'';}},exports['BrowserCollaborationSocketService']=ls([H(0x0,a[_0x322940(0x1da)](a[_0x322940(0x273)])),H(0x1,a[_0x322940(0x1da)](G[_0x322940(0x2d6)])),H(0x2,a['IConfigService']),H(0x3,a[_0x322940(0x19d)]),H(0x4,v[_0x322940(0x2c2)])],exports[_0x322940(0x1f6)]);var _s=Object[_0x322940(0x27e)],hs=(_0xab4771,_0x50efa5,_0x1f77e2,_0xa5d746)=>{const _0x4f0085=_0x322940;for(var _0x16941a=_0xa5d746>0x1?void 0x0:_0xa5d746?_s(_0x50efa5,_0x1f77e2):_0x50efa5,_0x339be0=_0xab4771[_0x4f0085(0x1ce)]-0x1,_0x115b7f;_0x339be0>=0x0;_0x339be0--)(_0x115b7f=_0xab4771[_0x339be0])&&(_0x16941a=_0x115b7f(_0x16941a)||_0x16941a);return _0x16941a;},Se=(_0x2a06ba,_0x3322ce)=>(_0x7608c6,_0x5ced30)=>_0x3322ce(_0x7608c6,_0x5ced30,_0x2a06ba);exports[_0x322940(0x175)]=class extends a[_0x322940(0x1d6)]{constructor(_0x51ae44,_0x2dc852,_0x7eec3d){const _0x131659=_0x322940;super(),this[_0x131659(0x18e)]=_0x51ae44,this['_httpService']=_0x2dc852,this['_configService']=_0x7eec3d;}async['runOnServer'](_0x3e9f5b,_0xd90a6,_0x4de2c4,..._0x3e8d13){const _0x4c842e=_0x322940;var _0x5761ef,_0x2ca118,_0x68f37d,_0x1c37db;const _0x495f30=this[_0x4c842e(0x18e)][_0x4c842e(0x27a)]();if(!_0x495f30)throw new Error(_0x4c842e(0x1d7));const _0x44b375=((_0x5761ef=this[_0x4c842e(0x3c0)][_0x4c842e(0x1d3)](u[_0x4c842e(0x364)]))!=null?_0x5761ef:u[_0x4c842e(0x33f)])+'/'+_0x3e9f5b+'/run/'+_0xd90a6,_0xe50e30=new URL(window[_0x4c842e(0x1ec)]['href']),_0x74899c={'scriptId':_0x3e9f5b,'runId':(_0x2ca118=_0xe50e30['searchParams']['get'](_0x4c842e(0x1f2)))!=null?_0x2ca118:'','function':_0xd90a6,'unitId':_0x495f30['getUnitId'](),'argsOfFunction':JSON[_0x4c842e(0x21b)](_0x3e8d13),'invokeId':(_0x68f37d=_0x4de2c4['invokeId'])!=null?_0x68f37d:'','executionId':(_0x1c37db=_0x4de2c4[_0x4c842e(0x23f)])!=null?_0x1c37db:''};try{const _0x3b6169=await this[_0x4c842e(0x26b)]['post'](_0x44b375,{'body':_0x74899c});return _0x3b6169[_0x4c842e(0x337)][_0x4c842e(0x21f)]&&_0x3b6169[_0x4c842e(0x337)]['error'][_0x4c842e(0x31f)]!==V['OK']?_0x4c842e(0x1c8):_0x3b6169[_0x4c842e(0x337)][_0x4c842e(0x30c)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=hs([Se(0x0,a[_0x322940(0x233)]),Se(0x1,a[_0x322940(0x1da)](G['HTTPService'])),Se(0x2,a[_0x322940(0x3f8)])],exports[_0x322940(0x175)]);const Ae=0x7530,Pe=_0x322940(0x3e1);class us extends a['Disposable']{constructor(){const _0x11163e=_0x322940;super(),_(this,'_id',a[_0x11163e(0x410)]()),_(this,_0x11163e(0x3d9),new Set()),_(this,_0x11163e(0x314),new Map()),_(this,_0x11163e(0x3e0),null),_(this,_0x11163e(0x1b9),new Map()),_(this,_0x11163e(0x27b),new Map()),this[_0x11163e(0x3a3)]();}['dispose'](){const _0x3971f7=_0x322940;super[_0x3971f7(0x198)](),this[_0x3971f7(0x1b9)]['forEach']((_0x2082ba,_0x42d785)=>this[_0x3971f7(0x360)](_0x42d785)),this[_0x3971f7(0x3e0)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x57b1c1){const _0x4e0c2f=_0x322940;return this['_ensureSubject'](_0x57b1c1)[_0x4e0c2f(0x396)](I[_0x4e0c2f(0x27f)]());}[_0x322940(0x17b)](_0x40ec01){const _0xe72976=_0x322940;this[_0xe72976(0x3d9)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0xe72976(0x3d9)]['add'](_0x40ec01),this[_0xe72976(0x29c)]({'type':0x0,'memberID':this[_0xe72976(0x170)],'unitIDs':[_0x40ec01],'isForwarded':!0x1});}[_0x322940(0x289)](_0x4425a1){const _0x112232=_0x322940;this['_selfUnitIDs'][_0x112232(0x3b4)](_0x4425a1),this[_0x112232(0x3d9)][_0x112232(0x1aa)]===0x0&&this[_0x112232(0x3e0)]&&window[_0x112232(0x32f)](this[_0x112232(0x3e0)]);}['_init'](){const _0x34bfcc=_0x322940;this[_0x34bfcc(0x192)](a[_0x34bfcc(0x411)](I['fromEvent'](window,_0x34bfcc(0x2c1))[_0x34bfcc(0x2e7)](_0x1b7ffc=>{const _0x5f1576=_0x34bfcc;if(_0x1b7ffc['key']!==Pe||!_0x1b7ffc[_0x5f1576(0x19f)])return;const _0x5552f3=JSON['parse'](_0x1b7ffc[_0x5f1576(0x19f)]);this[_0x5f1576(0x3e6)](_0x5552f3);}))),window[_0x34bfcc(0x1a2)](_0x34bfcc(0x29b),()=>this[_0x34bfcc(0x29c)]({'type':0x1,'memberID':this[_0x34bfcc(0x170)],'unitIDs':Array[_0x34bfcc(0x37e)](this['_selfUnitIDs'])}));}[_0x322940(0x3e6)](_0x55be36){const _0x4fecab=_0x322940;switch(_0x55be36[_0x4fecab(0x302)]){case 0x0:this[_0x4fecab(0x3ba)](_0x55be36);break;case 0x1:this[_0x4fecab(0x331)](_0x55be36);break;case 0x2:this['_handleHeartbeatEvent'](_0x55be36);break;}}['_handleJoinEvent'](_0x254dae){const _0x1bb1a6=_0x322940,{unitIDs:_0x210171,memberID:_0x2a850c,isForwarded:_0x2f5b7c}=_0x254dae;_0x210171[_0x1bb1a6(0x2c8)](_0x4313f7=>{const _0x1366ed=_0x1bb1a6;if(!_0x2f5b7c&&this[_0x1366ed(0x314)]['has'](_0x4313f7)&&this[_0x1366ed(0x249)](_0x4313f7)[_0x1366ed(0x255)](u[_0x1366ed(0x1ac)][_0x1366ed(0x34e)]),!this[_0x1366ed(0x314)][_0x1366ed(0x1a0)](_0x4313f7)||!this[_0x1366ed(0x314)]['get'](_0x4313f7)['has'](_0x2a850c)){const _0x108707=this[_0x1366ed(0x314)][_0x1366ed(0x38c)](_0x4313f7)||new Set();_0x108707['add'](_0x2a850c),this[_0x1366ed(0x314)]['set'](_0x4313f7,_0x108707),this[_0x1366ed(0x297)](_0x2a850c);}}),_0x2f5b7c||this[_0x1bb1a6(0x29c)]({'type':0x0,'memberID':this[_0x1bb1a6(0x170)],'unitIDs':[...this[_0x1bb1a6(0x3d9)]],'isForwarded':!0x0});}[_0x322940(0x297)](_0x34def9){const _0x1a2e75=_0x322940;this['_removeClearOtherTimer'](_0x34def9);const _0x595be0=window[_0x1a2e75(0x2fb)](()=>{const _0x584da3=_0x1a2e75;this[_0x584da3(0x314)][_0x584da3(0x2c8)](_0x1d03c7=>{_0x1d03c7['delete'](_0x34def9);});},Ae*0x2);this[_0x1a2e75(0x1b9)][_0x1a2e75(0x269)](_0x34def9,_0x595be0);}[_0x322940(0x360)](_0x452fb6){const _0x87f0b7=_0x322940;if(this[_0x87f0b7(0x1b9)][_0x87f0b7(0x1a0)](_0x452fb6)){const _0x49475f=this[_0x87f0b7(0x1b9)][_0x87f0b7(0x38c)](_0x452fb6);_0x49475f&&window[_0x87f0b7(0x29e)](_0x49475f),this[_0x87f0b7(0x1b9)][_0x87f0b7(0x269)](_0x452fb6,null);}}[_0x322940(0x331)](_0x4498c9){const {memberID:_0x5df362,unitIDs:_0x3be5fd}=_0x4498c9;_0x3be5fd['forEach'](_0x456fc5=>{const _0x4c8d53=_0x2b7c;var _0x3b471e;const _0x506f3d=this['_unitOnClients']['get'](_0x456fc5);_0x506f3d&&(_0x506f3d['delete'](_0x5df362),(_0x3b471e=this[_0x4c8d53(0x249)](_0x456fc5))==null||_0x3b471e[_0x4c8d53(0x255)](_0x506f3d[_0x4c8d53(0x1aa)]===0x0?u['UnitStatus'][_0x4c8d53(0x3ee)]:u[_0x4c8d53(0x1ac)][_0x4c8d53(0x34e)]));}),this['_removeClearOtherTimer'](_0x5df362);}[_0x322940(0x200)](_0x199429){const _0x37c313=_0x322940;this[_0x37c313(0x297)](_0x199429[_0x37c313(0x1c5)]);}[_0x322940(0x29c)](_0x336a7e){const _0x4572ab=_0x322940;localStorage[_0x4572ab(0x16d)](Pe,JSON[_0x4572ab(0x21b)](_0x336a7e));}['_scheduleHeartbeat'](){const _0x19d9f5=_0x322940;this[_0x19d9f5(0x3e0)]=window[_0x19d9f5(0x1fb)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Ae);}[_0x322940(0x249)](_0xd3ee77){const _0x3083fd=_0x322940;return this[_0x3083fd(0x27b)][_0x3083fd(0x1a0)](_0xd3ee77)||this[_0x3083fd(0x27b)][_0x3083fd(0x269)](_0xd3ee77,new I[(_0x3083fd(0x2cc))](u[_0x3083fd(0x1ac)][_0x3083fd(0x3ee)])),this['_unitStatus'][_0x3083fd(0x38c)](_0xd3ee77);}}exports[_0x322940(0x31c)]=Te,exports[_0x322940(0x285)]=Be,exports[_0x322940(0x226)]=us,exports[_0x322940(0x347)]=Fe;
1
+ 'use strict';const _0x13f674=_0x2045;(function(_0x41feb5,_0x504631){const _0x407333=_0x2045,_0x111541=_0x41feb5();while(!![]){try{const _0x198654=-parseInt(_0x407333(0x308))/0x1+parseInt(_0x407333(0xfb))/0x2+-parseInt(_0x407333(0x37a))/0x3+parseInt(_0x407333(0x179))/0x4+parseInt(_0x407333(0x369))/0x5*(parseInt(_0x407333(0x353))/0x6)+parseInt(_0x407333(0x29f))/0x7*(-parseInt(_0x407333(0xec))/0x8)+parseInt(_0x407333(0x133))/0x9;if(_0x198654===_0x504631)break;else _0x111541['push'](_0x111541['shift']());}catch(_0x14c35d){_0x111541['push'](_0x111541['shift']());}}}(_0x1295,0x65ef9));var Xe=Object[_0x13f674(0x180)],Ke=(_0x2a9976,_0x423ffd,_0x3e6ab6)=>_0x423ffd in _0x2a9976?Xe(_0x2a9976,_0x423ffd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e6ab6}):_0x2a9976[_0x423ffd]=_0x3e6ab6,_=(_0x43e180,_0x2d4459,_0x22269f)=>Ke(_0x43e180,typeof _0x2d4459!=_0x13f674(0x24f)?_0x2d4459+'':_0x2d4459,_0x22269f);Object['defineProperty'](exports,Symbol[_0x13f674(0x14f)],{'value':_0x13f674(0x199)});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'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x2913aa,..._0x5af0e5}){const _0x374713=_0x13f674,{icon:_0x5362f6,id:_0x516d02,className:_0x344ba4,extend:_0x281ff6,..._0x4d20a6}=_0x5af0e5,_0x1e68e2=(_0x374713(0x225)+_0x516d02+'\x20'+(_0x344ba4||''))['trim'](),_0x53a17f=A['useRef']('_'+Qe());return $e(_0x5362f6,''+_0x516d02,{'defIds':_0x5362f6['defIds'],'idSuffix':_0x53a17f[_0x374713(0x16b)]},{'ref':_0x2913aa,'className':_0x1e68e2,..._0x4d20a6},_0x281ff6);}function $e(_0x2af29b,_0x1e0b82,_0x2ff443,_0x14babb,_0x5f5536){const _0x40a2f0=_0x13f674;return A[_0x40a2f0(0x1a2)](_0x2af29b['tag'],{'key':_0x1e0b82,...Je(_0x2af29b,_0x2ff443,_0x5f5536),..._0x14babb},(Ze(_0x2af29b,_0x2ff443)[_0x40a2f0(0x344)]||[])[_0x40a2f0(0x10a)]((_0x30ba08,_0x5d6f76)=>$e(_0x30ba08,_0x1e0b82+'-'+_0x2af29b[_0x40a2f0(0x37b)]+'-'+_0x5d6f76,_0x2ff443,void 0x0,_0x5f5536)));}function Je(_0x7f9abe,_0xca0d37,_0x98a10a){const _0x358067=_0x13f674,_0x203df7={..._0x7f9abe[_0x358067(0x2bb)]};_0x98a10a!=null&&_0x98a10a[_0x358067(0x1f2)]&&_0x203df7[_0x358067(0x152)]===_0x358067(0x1f2)&&(_0x203df7[_0x358067(0x152)]=_0x98a10a[_0x358067(0x1f2)]),_0x7f9abe['tag']==='mask'&&_0x203df7['id']&&(_0x203df7['id']=_0x203df7['id']+_0xca0d37[_0x358067(0x31a)]),Object[_0x358067(0x34e)](_0x203df7)[_0x358067(0x234)](([_0x3d560a,_0x1ddab9])=>{const _0x13d09e=_0x358067;_0x3d560a===_0x13d09e(0x23e)&&typeof _0x1ddab9==_0x13d09e(0x2cb)&&(_0x203df7[_0x3d560a]=_0x1ddab9[_0x13d09e(0x1e9)](/url\(#(.*)\)/,'url(#$1'+_0xca0d37[_0x13d09e(0x31a)]+')'));});const {defIds:_0x59d94a}=_0xca0d37;return!_0x59d94a||_0x59d94a['length']===0x0||(_0x7f9abe[_0x358067(0x37b)]===_0x358067(0x368)&&_0x203df7[_0x358067(0x348)]&&(_0x203df7[_0x358067(0x348)]=_0x203df7['xlink:href']+_0xca0d37[_0x358067(0x31a)]),Object['entries'](_0x203df7)[_0x358067(0x234)](([_0x92238e,_0x301576])=>{const _0x9bbd63=_0x358067;typeof _0x301576==_0x9bbd63(0x2cb)&&(_0x203df7[_0x92238e]=_0x301576[_0x9bbd63(0x1e9)](/url\(#(.*)\)/,_0x9bbd63(0x3b7)+_0xca0d37[_0x9bbd63(0x31a)]+')'));})),_0x203df7;}function Ze(_0x23c4d4,_0x10c9c0){const _0x11c2a7=_0x13f674;var _0x256abd;const {defIds:_0x16c88c}=_0x10c9c0;return!_0x16c88c||_0x16c88c['length']===0x0?_0x23c4d4:_0x23c4d4[_0x11c2a7(0x37b)]===_0x11c2a7(0x2f5)&&((_0x256abd=_0x23c4d4['children'])!=null&&_0x256abd[_0x11c2a7(0x187)])?{..._0x23c4d4,'children':_0x23c4d4[_0x11c2a7(0x344)]['map'](_0xf063c9=>typeof _0xf063c9[_0x11c2a7(0x2bb)]['id']==_0x11c2a7(0x2cb)&&_0x16c88c&&_0x16c88c[_0x11c2a7(0x208)](_0xf063c9[_0x11c2a7(0x2bb)]['id'])?{..._0xf063c9,'attrs':{..._0xf063c9['attrs'],'id':_0xf063c9[_0x11c2a7(0x2bb)]['id']+_0x10c9c0[_0x11c2a7(0x31a)]}}:_0xf063c9)}:_0x23c4d4;}function Qe(){const _0x418d83=_0x13f674;return Math['random']()['toString'](0x24)[_0x418d83(0x14c)](0x2,0x8);}function _0x1295(){const _0x2c0aa0=['CollaborationUIEventId','_transformPreviousActiveRange','_id','_updateSubUnitFromURLParams','749KmbcRU','_transformUndoRedoStack','search','actions','getOwnPropertyDescriptor','PERMISSION_DENIED','ThemeService','VIEW_MAIN','_docTransformSelectionsService','getParam','loadUnit','exhaustSavingTask','getColor','_collabCursorController','save','_memberService','_initEvent','collabStatus.fetchMiss','getVpScrollXYInfoByPosToVp','_getSessionTicket','toDisposable','green.600','_disabled','LOCAL_CACHE_INTERVAL','_createSocketURL','_scheduleClearOtherTimer','unitId','_status$','attrs','combineLatest','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unload','ranges','IBeforeCloseService','path','_handleJoinEvent','_httpService','roomMembers','HEADER_MENU','transformStateCache','_currentUsage','LOGIN_FAILED','evenodd','split','string','Warning','pluginName','UNIVER_DOC','history','Inject','UNRECOGNIZED','ILogService','_updateCollabCursors','error','handleInsertRangeMoveDown','TOO_MANY_REQUESTS','getActiveSheet','_document','_session','_monkeyPatchLogService','getFocusedUnit','_unitOnClients','[CollaborationDataLoaderController]','body','currentSkeleton$','CommandType','selection','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_handleLeaveEvent','_initStatusComponent','some','findNodePositionByCharIndex','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_getAnchorBounding','executionId','_beforeCloseService','runId','cursorInfo','handleDeleteRangeMoveUp','_refreshCollabCursors','subscribeEvent','has','createIdentifier','ENTITLE_CHAT_LIMIT_EXCEED','RECT','_injector','defs','INTERNAL_ERROR','_cachedData','_renderManagerService','collaboration.single-unit.warning','Vector2','min','InsertRangeMoveDownCommandId','DisposableCollection','TEXT','...','Failed','saveTaskMap','getSheetId','ticket','YUUMI_ALL_TABLES_IS_INVALID','triggerDblclick','ENTITLE_DUP_SUBSCRIPTION','m2Prime','333377PwNVvx','_render','all','_send','OFFLINE','wsSessionTicketUrl','SessionStatus','session.collaboration-timeout','getCollabEntity$','_dataLoaderService','UniverCollaborationClientUIPlugin','_sheetSkeletonManagerService','transformIMECache','_shapes','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cursorShapes','_commandService','_taskIds','idSuffix','getCurrent','_range','blue.400','IRenderManagerService','IURLService','YUUMI_CONNECTOR_URL_NOT_FOUND','ENSURE_SNAPSHOT_EXECUTION','_removeClearOtherTimer','http://www.w3.org/2000/svg','Injector','getCurrentSelections','asObservable','restore','syncEditingCollabCursor','session.connection-failed','registerComponent','arc','INVALID_ARGUMENT','YUUMI_NO_CUBOID_FOR_QUESTION','url(#on-line-icon_clip0_910_349)','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DATA_SOURCE_TOO_LARGE','IDocClipboardService','_urlService','addObjects','connectInjector','Disposable','_hover','addEventListener','off-line-icon_clip0_910_343','newValue','_univerInstanceService','bind','APPLY_PERMISSION_DENIED','collabStatus.synced','switchMap','_memberID','size','RegularPolygon','_getSaveTimeout','INVALID_INVITE_CODE','children','getMergeData','colno','disposeWithMe','xlink:href','unit','Plugin','runOnServer','WebURLService','_startSheetCollabCursor','entries','off-line-icon','_initWindowErrorListener','post','LICENSE_IMPORT_SIZE_EXCEEDED','18TaChLM','ISocketService','makeDirty','assignAColorForMemberID','_syncEditingCollabCursorService','replaceDocRanges','getUnitStatus$','CollaborationController','closePath','unsubscribe','CollaborationUIEventService','_getFormulaLimitStatus','/universer-api/license/formula/limit/start','UPDATE_CURSOR','LOGIN_TOKEN_PROCESSING_FAILED','purple.300','unhandledrejection','MessageType','PENDING','toRgbString','isFormulaId','use','859965aximxT','_localeService','Rect','_saveCache','beginPath','NOT_COLLAB','_initCommandExecutedListener','formula.calculation.waiting','url(#off-line-icon_clip0_910_343)','collaboration-client.offline-data-not-saved','stack','CURRENT_STATUS_CANNOT_OPERATE','_collaborationUIEventService','_showGuardMessage','debug','USER_NOT_INVITED_CODE','_initUnhandledRejectionListener','1858284YXQRGl','tag','setInterval','_checkAndWaitForCalculationPermission','_messageService','_setFormulaLimitStatus','hide','getSheetObject','/universer-api/license/formula/limit/done','_docTransformIMECacheService','_lastPointer','InsertColCommandId','_onCursorDelete','send','add','_checkCalculationAvailable','saveImage','IMessageService','set','_assignedColors','collab-client.tooltip.reconnect','loadOfflineData','find','getMember','REDEMPTION_USER_NOT_ELIGIBLE','handleIRemoveRow','ColorKit','_imageIoService','then','DataLoaderService','fromEvent','_maxFormulaLimit','_transformService','svg','ICommandService','ALREADY_EXISTS','_hasFormulaInDirtyRanges','getCellPositionByOffset','result','_onRefRangeChange','invokeId','ERROR_AGAIN','RemoteUniscriptService','getUnit','DependentOn','onCommandExecuted','_textBubble','_lastResponseTimestamp','YUUMI_ASYNCIO_CANCELLED','_ensureSubject','YUUMI_RATE_OVER_LIMIT','WECHAT_HAS_BEEN_BOUND','getColorFromTheme','isTransformMutationFailure','_getSheetObject','DEFAULT_WS_SESSION_TICKET_URL','font','complete','next','WebBrowserSingleActiveUnitService','eventID','url(#$1','sessionTicket','COMPLETION_FINISHED','SUCCESS','18456DuDgRK','LICENSE_MAX_UNITS_EXCEEDED','subunit','collabStatus.notCollab','m1Prime','_revisionService','IUniverInstanceService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','resize','0\x200\x2017\x2016','NO_OTHER_CLIENTS_EDITING','getActiveRange','_updateLocalCursor','color','REDEMPTION_CODE_INACTIVE','31462vrhxNv','none','translate(.97)','IUIPartsService','AWAITING','transformByState','APPLY_REVISION_CONFILICT','CONFLICT','PY_RUNTIME_SCRIPT_ERROR','Shape','Tools','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','ISnapshotServerService','SetDocZoomRatioOperation','source','map','getStateCache','bottom','type','message','forwardRef','SOCKET_FAILED','_updateURLWithCurrentState','startsWith','_selfUnitIDs','_collabCursorState$','transformRemoteChangeset','permission.content','black','YUUMI_URL_COL_OUT_OF_RANGE','row','isTransformMutationsWithChangesetSuccess','_instanceService','origin','jsx','NOT_FOUND','_init','MOBILE_HAS_BEEN_BOUND','href','EMAIL_VERIFY_CODE_MISMATCH','unitID','lineTo','collabStatus.syncing','stage','Tooltip','_backgroundColor','enableLocalCache','INVITE_CODE_ALREADY_BOUND','_online','currentColor','#FFF','top','handleIRemoveCol','REDEMPTION_USER_REDEEM_TIMES_EXCEED','ILocalCacheService','skeleton','7530165utjorN','0\x200\x2016\x2016','dirtyRanges','on-line-icon_clip0_910_349','red.300','_entities','1em','_getMergeRange','clearInterval','UnitStatus','width','CollaborationDataLoaderController','toString','_pollingInterval','_handleHeartbeatEvent','permission.title','transformMutation','Loading','handleMoveRange','_heartbeatTimer','UNIVER_SHEET','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','fillStyle','?taskId=','_transformHistoryAndStateStack','substring','UniverInstanceType','getUndoRedoMutationParamsCache','toStringTag','sheetID','_color','fill','_unitStatus','MemberService','useObservable','_logService','urlChange$','onRendered','CollaborationSessionService','mapTo','AUTHORIZE_CODE_ILLEGAL','stringify','MOBILE_VERIFY_CODE_MISMATCH','getUnitId','LICENSE_DISTRO_REJECTED','_initCommandInterceptor','SUBMIT_CHANGESET_TIMEOUT','START_CALCULATION','dispose','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','cursorInfo$','_toggleOnline','subUnitId','HTTPService','push','textRanges','current','_clearOtherTimers','filter','_drawRectRange','debounce','SNAPSHOT_HAS_BEEN_REMOVED','SYNCED','_anchor','useDependency','_saveTaskMap','_roomMembers$','REDEMPTION_CODE_HAS_BEEN_CREATED','data','from','995152VeMOJb','CollaborationEvent','collabCursorState$','params','storage','column','_handleEvent','defineProperty','_colorAssignService','doc.mutation.rich-text-editing','div','INVITE_CODE_REQUIRED','_scene','createInstance','length','runRefRangeMutations','startRow','_cursor','with','height','APPLY_DUPLICATED','assign','CLOSE_ROOM','clearTimeout','getMemberID','disableLocalCache','getTypeOfUnitDisposed$','_collaborationController','_uploadLog','collaboration.closeRoom','generateRandomId','ONLINE','Module','max','getDocRanges','jiqing.500','RemoveRowCommandId','CanceledError','UNAUTHENTICATED','_setupBeforeClosingHandler','TRANSFORM_CHANGE_OBSERVABLE_TYPE','createElement','EffectRefRangId','location','_configService','RevisionService','removeEventListener','executeCommand','deepClone','UniverIcon','get','LOCAL_CACHE_INTERVAL_KEY','measureText','FormulaExecuteStageType','AWAITING_WITH_PENDING','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCurrentRevOfUnit','getformulaLimitStatusUrl','searchParams','show','selections','BrowserCollaborationSocketService','_colorIndex','endColumn','popstate','shareReplay','SetWorksheetActivateCommand','IConfigService','getValue','shift','SheetsSelectionsService','_releaseCalculationLimit','dispose$','PAYMENT_CHANNEL_NOT_SUPPORT','RxDisposable','_toggleOffline','REDEMPTION_CODE_NOT_STARTED','_docStateChangeManagerService','APPLY_NON_SEQUENTIAL_REVISION','getCoordByCell','moveTo','WebSocketService','DocSelectionManagerService','setAlpha','_getScale','CONNECTOR_DATA_TOO_LARGE','OffLineIcon','limitInfo','_drawTextRange','SetFormulaCalculationStartMutation','distinctUntilChanged','pushState','_docClipboardService','JOIN_ROOM_FAILED','getRenderById','EMAIL_HAS_BEEN_BOUND','LICENSE_EXPORT_SIZE_EXCEEDED','replaceState','_setupSubUnitSync','YUUMI_SUBSCRIPTION_NOT_FOUND','endRow','onPointerMove$','isEditing','IRemoteInstanceService','Unknown\x20user','_uiPartsService','clipPath','getCurrentUnitForType','_applyCommand','drawWith','setActiveRange','_initEntityListener','replace','_name','collabStatus.conflict','currentTheme$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DocSkeletonManagerService','BuiltInUIPart','_handleHover','setConfig','colorChannel1','ENTITLE_CAN_NOT_BUY_LOWER_OTP','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','collabStatus.offline','_initStatusListener','collab-text-range-','getItem','functionsExecutedState','_hovered','useCallback','_onCursorUpdate','_docSyncEditingCollabCursorService','enableFrontendLog','univer-flex\x20univer-items-center','BehaviorSubject','ENTITLE_REPORT_LIMIT_EXCEED','editingUnit','createSocket','OTHER_CLIENTS_EDITING','_themeService','DocStateChangeManagerService','session.will-retry','includes','_context','handleInsertRow','_draw','range','_localCacheService','totalFormulasToCalculate','TEXT_RANGE_LAYER_INDEX','setUndoRedoMutationParamsCache','Optional','INVITE_CODE_HAS_BEEN_UES','undoState','_refRangeService','imageSourceType','[Window\x20Error]:\x20','getTypeOfUnitAdded$','onPointerLeave$','unshift','_config','maxFormulaLimit','DeleteRangeMoveLeftCommandId','Workbook','_scheduleHeartbeat','COLORS','_scheduleSaving','/run/','M0\x200H16V16H0z','_eventUnsubscribe','reconnect','univerjs-icon\x20univerjs-icon-','Success','catch','redoState','_removeCollabCursors','isActive','mutations','handleInsertRangeMoveRight','_docTransformStateCacheService','getCollabCursors$','setStateCache','ACTIVE_UNIT_EVENT_CHANNEL','registerRenderModule','FETCH_MISS','_initResize','forEach','DesktopCollaborationStatusDisplayController','RichTextEditingMutation','handleInsertCol','USER_NOT_FOUND','setItem','getSheetBySheetId','code','init','fillRule','mask','_collaborationSessionService','RemoveColCommandId','_drawAnchor','onMouseMove','transformMutationsWithChangeset','getConfig','YUUMI_TABLE_NOT_FOUND_IN_UNIT','InsertRangeMoveRightCommandId','socket$','DocIMEInputManagerService','_cursorInfo$','_entityInit$','Error','_anchorDot','sessionStatus$','setShapeProps','symbol','docStateChange$','CHANGESET_REVISION_CONFILICT','delete','disposeUnit','memberID','startColumn','LocaleService','roomMembers$','takeUntil','Rectangle','deserializeRangeWithSheet','REDEMPTION_CODE_FULLY_REDEEMED','FromArray','_initDependencies','onPointerEnter$','lineno','SheetCollabCursorShape','_registerDependencies','startFormulaLimitUrl','addObject','_cursors','CollaborationStatus','_collabSessionService','getSkeleton','DOC_RANGE_TYPE','_startDocCollabCursor','white','name','_registerRenderDependencies','_docSkeletonManagerService','_startCalculationLimit','ITransformService','onStarting','subscribe','filename','SHEET_VIEWPORT_KEY','pipe','addClipboardHook','NodePositionConvertToCursor','collab-rect-range-','SOCKET_FAILED_RETRY','SetFormulaCalculationNotificationMutation','UNDEFINED','on-line-icon','_doCreateSocket','_clearPolling','serializeRangeWithSheet','isArray','text','_localStorageService','_labelPosition','transformSelections','getRangePointData','_initUserListener','YUUMI_UNABLE_LOAD_URL','transform','getOffsetConfig','REDEMPTION_INVALID_CODE','\x20at\x20','fillText','now','contains','values','round','addHandlerCallback','UniverCollaborationClientPlugin','collab-text-anchor-','SheetSkeletonManagerService','_notificationService','USER_IS_ANONYMOUS','CollaborationSocketService','jsxs','event$','_hideTimer','getAncestorScale'];_0x1295=function(){return _0x2c0aa0;};return _0x1295();}Te['displayName']=_0x13f674(0x1aa);const et={'tag':_0x13f674(0x39b),'attrs':{'xmlns':_0x13f674(0x323),'fill':_0x13f674(0xfc),'viewBox':_0x13f674(0x134),'width':_0x13f674(0x139),'height':_0x13f674(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x13f674(0x371)},'children':[{'tag':'path','attrs':{'stroke':_0x13f674(0x12c),'d':_0x13f674(0x148),'strokeLinecap':_0x13f674(0x28f),'strokeLinejoin':_0x13f674(0x28f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x13f674(0x1e3),'attrs':{'id':_0x13f674(0x338)},'children':[{'tag':_0x13f674(0x2c1),'attrs':{'fill':_0x13f674(0x26a),'d':_0x13f674(0x222)}}]}]}],'defIds':[_0x13f674(0x338)]},xe=A[_0x13f674(0x10f)](function(_0x2dcb94,_0x188ffa){const _0x2e5b75=_0x13f674;return A['createElement'](Te,Object[_0x2e5b75(0x18e)]({},_0x2dcb94,{'id':_0x2e5b75(0x34f),'ref':_0x188ffa,'icon':et}));});xe['displayName']=_0x13f674(0x1cf);const tt={'tag':_0x13f674(0x39b),'attrs':{'xmlns':_0x13f674(0x323),'fill':'none','viewBox':_0x13f674(0xf5),'width':_0x13f674(0x139),'height':_0x13f674(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x13f674(0x32e)},'children':[{'tag':_0x13f674(0x2c1),'attrs':{'stroke':_0x13f674(0x12c),'d':_0x13f674(0x1f4),'strokeLinecap':_0x13f674(0x28f),'strokeLinejoin':_0x13f674(0x28f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x13f674(0x136)},'children':[{'tag':_0x13f674(0x2c1),'attrs':{'fill':_0x13f674(0x26a),'d':_0x13f674(0x222),'transform':_0x13f674(0xfd)}}]}]}],'defIds':[_0x13f674(0x136)]},Be=A[_0x13f674(0x10f)](function(_0x1041fc,_0x3f847b){const _0x82b6d1=_0x13f674;return A[_0x82b6d1(0x1a2)](Te,Object[_0x82b6d1(0x18e)]({},_0x1041fc,{'id':_0x82b6d1(0x27b),'ref':_0x3f847b,'icon':tt}));});Be['displayName']='OnLineIcon';function st(_0x522e28){const _0x43bd93=_0x13f674;switch(_0x522e28){case u[_0x43bd93(0x265)][_0x43bd93(0x30c)]:return _0x43bd93(0x1f5);case u[_0x43bd93(0x265)][_0x43bd93(0x102)]:return _0x43bd93(0x1eb);case u[_0x43bd93(0x265)][_0x43bd93(0x232)]:return _0x43bd93(0x2b0);case u[_0x43bd93(0x265)][_0x43bd93(0x36e)]:return _0x43bd93(0xef);case u['CollaborationStatus'][_0x43bd93(0xff)]:case u[_0x43bd93(0x265)][_0x43bd93(0x1af)]:return _0x43bd93(0x125);case u['CollaborationStatus'][_0x43bd93(0x171)]:case u[_0x43bd93(0x265)][_0x43bd93(0x365)]:return _0x43bd93(0x33d);}}function it(_0x50e505){const _0x39dfc5=_0x13f674,{status$:_0x53f4ab}=_0x50e505,_0x1a7fc4=O[_0x39dfc5(0x155)](_0x53f4ab,u[_0x39dfc5(0x265)][_0x39dfc5(0x36e)]),_0xdb3fbd=O[_0x39dfc5(0x173)](a[_0x39dfc5(0x256)]),_0x581182=O[_0x39dfc5(0x173)](u['CollaborationSessionService']),_0x16c9a0=_0x1a7fc4!==u['CollaborationStatus'][_0x39dfc5(0x30c)],_0x5047c9=_0xdb3fbd['t'](st(_0x1a7fc4)),_0x5cf6ff=_0x16c9a0?M[_0x39dfc5(0x11d)](Be,{}):M[_0x39dfc5(0x11d)](xe,{}),_0xae488f=A[_0x39dfc5(0x1fb)](()=>{const _0x4775c6=_0x39dfc5;_0x16c9a0||_0x581182[_0x4775c6(0x224)]();},[_0x16c9a0,_0x581182]);function _0x51e10a(){const _0x2fd255=_0x39dfc5;return M[_0x2fd255(0x297)]('div',{'className':_0x2fd255(0x1ff),'onClick':_0xae488f,'children':[M[_0x2fd255(0x11d)](_0x2fd255(0x183),{'className':T['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x16c9a0,'univer-text-red-500':!_0x16c9a0}),'children':_0x5cf6ff}),M[_0x2fd255(0x11d)](_0x2fd255(0x183),{'className':_0x2fd255(0x2e7),'children':_0x5047c9})]});}return _0x16c9a0?_0x51e10a():M[_0x39dfc5(0x11d)](T[_0x39dfc5(0x127)],{'title':_0xdb3fbd['t'](_0x39dfc5(0x38e)),'children':_0x51e10a()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x5ea856,_0x178f9c,_0x2cd87a,_0x42db17)=>{const _0x39d6b0=_0x13f674;for(var _0x33298c=_0x42db17>0x1?void 0x0:_0x42db17?nt(_0x178f9c,_0x2cd87a):_0x178f9c,_0x169a7c=_0x5ea856[_0x39d6b0(0x187)]-0x1,_0x4ae955;_0x169a7c>=0x0;_0x169a7c--)(_0x4ae955=_0x5ea856[_0x169a7c])&&(_0x33298c=_0x4ae955(_0x33298c)||_0x33298c);return _0x33298c;},K=(_0xae94b3,_0x1bfdaa)=>(_0x15477b,_0x5d1be6)=>_0x1bfdaa(_0x15477b,_0x5d1be6,_0xae94b3);exports[_0x13f674(0x235)]=class extends a[_0x13f674(0x335)]{constructor(_0xcc869e,_0x1df399,_0x585b70,_0x4e6f8a){const _0x395d0a=_0x13f674;super(),_(this,_0x395d0a(0x2ba),new I[(_0x395d0a(0x200))](u[_0x395d0a(0x265)]['NOT_COLLAB'])),(this[_0x395d0a(0x33a)]=_0xcc869e,this[_0x395d0a(0x2f4)]=_0x1df399,this['_collaborationController']=_0x585b70,this['_uiPartsService']=_0x4e6f8a,this[_0x395d0a(0x2e4)](),this[_0x395d0a(0x1f6)]());}[_0x13f674(0x1f6)](){const _0x4c0d92=_0x13f674;this[_0x4c0d92(0x347)](this[_0x4c0d92(0x33a)]['focused$'][_0x4c0d92(0x274)](I['switchMap'](()=>{const _0x9f00b1=_0x4c0d92,_0x5bf4a8=this[_0x9f00b1(0x33a)][_0x9f00b1(0x2db)]();return _0x5bf4a8?this['_collaborationController'][_0x9f00b1(0x310)](_0x5bf4a8['getUnitId']()):I['of'](null);}),I[_0x4c0d92(0x33e)](_0x54f170=>_0x54f170?_0x54f170['status$']:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x4c0d92(0x271)](_0x90a8b3=>{const _0x41e5a6=_0x4c0d92;this[_0x41e5a6(0x2ba)][_0x41e5a6(0x3b4)](_0x90a8b3);}));}[_0x13f674(0x2e4)](){const _0xf89bd6=_0x13f674;this[_0xf89bd6(0x347)](this[_0xf89bd6(0x1e2)][_0xf89bd6(0x32a)](O[_0xf89bd6(0x1ef)][_0xf89bd6(0x2c5)],()=>O[_0xf89bd6(0x334)](ot({'status$':this[_0xf89bd6(0x2ba)][_0xf89bd6(0x326)]()}),this[_0xf89bd6(0x2f4)])));}},exports[_0x13f674(0x235)]=rt([K(0x0,a[_0x13f674(0xf2)]),K(0x1,a['Inject'](a[_0x13f674(0x324)])),K(0x2,a[_0x13f674(0x2d0)](u[_0x13f674(0x35a)])),K(0x3,O[_0x13f674(0xfe)])],exports[_0x13f674(0x235)]);function ot(_0x365161){const {status$:_0x462d80}=_0x365161;return function(){const _0x13d1e1=_0x2045;return M[_0x13d1e1(0x11d)](it,{'status$':_0x462d80});};}const Oe=a[_0x13f674(0x2f1)]('uni.network.url-service');var at=Object[_0x13f674(0x2a3)],ct=(_0x2935b4,_0x4d2fab,_0x62a9fb,_0x57f411)=>{const _0x237c31=_0x13f674;for(var _0x4dd0ac=_0x57f411>0x1?void 0x0:_0x57f411?at(_0x4d2fab,_0x62a9fb):_0x4d2fab,_0xfd8c3d=_0x2935b4[_0x237c31(0x187)]-0x1,_0x19ebda;_0xfd8c3d>=0x0;_0xfd8c3d--)(_0x19ebda=_0x2935b4[_0xfd8c3d])&&(_0x4dd0ac=_0x19ebda(_0x4dd0ac)||_0x4dd0ac);return _0x4dd0ac;},Y=(_0x56cea6,_0x4277e0)=>(_0x33a906,_0x327b24)=>_0x4277e0(_0x33a906,_0x327b24,_0x56cea6);exports[_0x13f674(0x13e)]=class extends a['RxDisposable']{constructor(_0x4165d1,_0x5b0349,_0x4429cd,_0x256e82,_0x238c95){const _0x76b868=_0x13f674;super(),this[_0x76b868(0x332)]=_0x4165d1,this[_0x76b868(0x156)]=_0x5b0349,this[_0x76b868(0x318)]=_0x4429cd,this[_0x76b868(0x311)]=_0x256e82,_0x238c95?_0x238c95==null||_0x238c95['whenReady']()[_0x76b868(0x396)](()=>this['_init']()):(this['_logService'][_0x76b868(0x377)](_0x76b868(0x2dd),_0x76b868(0x2bd)),this[_0x76b868(0x11f)]());}async[_0x13f674(0x11f)](){const _0x563e3f=_0x13f674,_0x330cc0=this[_0x563e3f(0x332)]['getParam']('unit'),_0x11ed3f=this[_0x563e3f(0x332)][_0x563e3f(0x2a8)](_0x563e3f(0x10d)),_0x1be87a=this['_urlService'][_0x563e3f(0x2a8)](_0x563e3f(0xee));if(!_0x330cc0||!_0x11ed3f){this[_0x563e3f(0x156)][_0x563e3f(0x377)](_0x563e3f(0x2dd),_0x563e3f(0x316));return;}const _0x5ca54c=await this[_0x563e3f(0x311)][_0x563e3f(0x2a9)](_0x330cc0,Number(_0x11ed3f),_0x1be87a);_0x5ca54c&&_0x5ca54c instanceof a[_0x563e3f(0x21d)]&&this[_0x563e3f(0x1db)](_0x5ca54c);}async[_0x13f674(0x1db)](_0x540bfe){const _0x205c64=_0x13f674;await this['_updateSubUnitFromURLParams'](_0x540bfe),_0x540bfe['activeSheet$'][_0x205c64(0x274)](I[_0x205c64(0x258)](this['dispose$']))['subscribe'](_0x7e99ee=>{const _0x51aa67=_0x205c64;_0x7e99ee&&this[_0x51aa67(0x111)](_0x7e99ee);}),this[_0x205c64(0x332)]['urlChange$'][_0x205c64(0x274)](I[_0x205c64(0x258)](this[_0x205c64(0x1c1)]))[_0x205c64(0x271)](()=>this[_0x205c64(0x29e)](_0x540bfe));}[_0x13f674(0x111)](_0x1e2fef,_0x3dddb7=!0x1){const _0x1bb179=_0x13f674,_0xc4b5c7=this[_0x1bb179(0x332)][_0x1bb179(0x2a8)](_0x1bb179(0xee));_0x1e2fef[_0x1bb179(0x302)]()!==_0xc4b5c7&&this[_0x1bb179(0x332)]['setParam'](_0x1bb179(0xee),_0x1e2fef['getSheetId'](),_0x3dddb7);}async[_0x13f674(0x29e)](_0x3a9b30){const _0x3890ab=_0x13f674;var _0x50d2a4;const _0x5ac7d0=this[_0x3890ab(0x332)]['getParam'](_0x3890ab(0xee));if(!_0x5ac7d0||!_0x3a9b30['getSheetBySheetId'](_0x5ac7d0)){const _0x51ec14=_0x3a9b30['getUnhiddenWorksheets']()[0x0],_0x3711fa=_0x3a9b30[_0x3890ab(0x23a)](_0x51ec14);if(!_0x3711fa)return;this[_0x3890ab(0x111)](_0x3711fa,!0x0),await this[_0x3890ab(0x318)][_0x3890ab(0x1a8)](v[_0x3890ab(0x1bb)]['id'],{'unitId':_0x3a9b30[_0x3890ab(0x15e)](),'subUnitId':_0x51ec14});return;}((_0x50d2a4=_0x3a9b30['getActiveSheet']())==null?void 0x0:_0x50d2a4[_0x3890ab(0x302)]())!==_0x5ac7d0&&await this[_0x3890ab(0x318)]['executeCommand'](v[_0x3890ab(0x1bb)]['id'],{'unitId':_0x3a9b30['getUnitId'](),'subUnitId':_0x5ac7d0});}},exports[_0x13f674(0x13e)]=ct([Y(0x0,Oe),Y(0x1,a[_0x13f674(0x2d2)]),Y(0x2,a[_0x13f674(0x39c)]),Y(0x3,a[_0x13f674(0x2d0)](u[_0x13f674(0x397)])),Y(0x4,a[_0x13f674(0x211)](qe[_0x13f674(0x1e0)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x13f674(0x2a3)],_t=(_0x352ec4,_0x3323dc,_0x21ec3a,_0x1908ef)=>{const _0x2f0f3e=_0x13f674;for(var _0x5bf162=_0x1908ef>0x1?void 0x0:_0x1908ef?lt(_0x3323dc,_0x21ec3a):_0x3323dc,_0x208eab=_0x352ec4[_0x2f0f3e(0x187)]-0x1,_0x1a89e7;_0x208eab>=0x0;_0x208eab--)(_0x1a89e7=_0x352ec4[_0x208eab])&&(_0x5bf162=_0x1a89e7(_0x5bf162)||_0x5bf162);return _0x5bf162;},De=(_0x4f11f8,_0x257132)=>(_0x1b5f0c,_0x3865f2)=>_0x257132(_0x1b5f0c,_0x3865f2,_0x4f11f8);let me=class extends a[_0x13f674(0x1c3)]{constructor(_0xebe7ac,_0x1ef478){const _0x5391ed=_0x13f674;super(),this[_0x5391ed(0x1d5)]=_0xebe7ac,this[_0x5391ed(0x395)]=_0x1ef478,this[_0x5391ed(0x11f)]();}[_0x13f674(0x11f)](){const _0x162648=_0x13f674,_0x5b800e=this;this[_0x162648(0x347)](this['_docClipboardService'][_0x162648(0x275)]({'onBeforePasteImage':async _0x3a6ac8=>{const _0x2c27b1=_0x162648,_0x3e4689=await _0x5b800e[_0x2c27b1(0x395)][_0x2c27b1(0x38a)](_0x3a6ac8);return _0x3e4689?{'source':_0x3e4689[_0x2c27b1(0x109)],'imageSourceType':_0x3e4689[_0x2c27b1(0x215)]}:null;}}));}};me=_t([De(0x0,p[_0x13f674(0x331)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x13f674(0x362),_0x13f674(0x19c),_0x13f674(0x2b4),_0x13f674(0x137),_0x13f674(0x31d),'yellow.400'];class Re extends a[_0x13f674(0x335)]{constructor(){const _0x1970f8=_0x13f674;super(...arguments),_(this,_0x1970f8(0x38d),new Map()),_(this,'_colorIndex',0x0);}[_0x13f674(0x356)](_0x1edbbd){const _0x532ca1=_0x13f674;if(this[_0x532ca1(0x38d)][_0x532ca1(0x2f0)](_0x1edbbd))return this['_assignedColors'][_0x532ca1(0x1ab)](_0x1edbbd);const _0x40bfba=Ne[this[_0x532ca1(0x1b7)]];return this[_0x532ca1(0x1b7)]=(this['_colorIndex']+0x1)%Ne['length'],this[_0x532ca1(0x38d)][_0x532ca1(0x38c)](_0x1edbbd,_0x40bfba),_0x40bfba;}}function Fe(_0x4dd6df){const _0x2beefa=_0x13f674;let _0x260203='';for(const _0xc47830 of _0x4dd6df){const {startOffset:_0x1a2b86,endOffset:_0x5654d5,isActive:_0x46744f,rangeType:_0x89cbbb,segmentId:_0x27670c,segmentPage:_0x117700}=_0xc47830;_0x260203[_0x2beefa(0x187)]&&(_0x260203+=','),_0x260203+=_0x1a2b86+':'+_0x5654d5+':'+(_0x46744f?'1':'0')+':'+_0x89cbbb+':'+_0x27670c+':'+_0x117700;}return _0x260203;}function ht(_0x2ec16f){const _0xd1d578=_0x13f674,_0x190e36=_0x2ec16f[_0xd1d578(0x2ca)](','),_0x4df354=[];for(const _0x383b76 of _0x190e36){const [_0x5dda28,_0x71400,_0x4ce514,_0x1e2c6a,_0x1d836a,_0x4a045d]=_0x383b76['split'](':');_0x4df354[_0xd1d578(0x169)]({'startOffset':Number(_0x5dda28),'endOffset':Number(_0x71400),'collapsed':_0x5dda28===_0x71400,'isActive':_0x4ce514==='1','rangeType':_0x1e2c6a===a[_0xd1d578(0x268)][_0xd1d578(0x2fe)]?a['DOC_RANGE_TYPE'][_0xd1d578(0x2fe)]:a[_0xd1d578(0x268)]['RECT'],'segmentId':typeof _0x1d836a==_0xd1d578(0x2cb)?String(_0x1d836a):'','segmentPage':Number(_0x4a045d!=null?_0x4a045d:-0x1)});}return _0x4df354[_0xd1d578(0x2e5)](_0x55c4a4=>_0x55c4a4['isActive'])||(_0x4df354[0x0][_0xd1d578(0x22a)]=!0x0),_0x4df354;}class be extends a[_0x13f674(0x1c3)]{constructor(){const _0x5801f7=_0x13f674;super(...arguments),_(this,_0x5801f7(0x114),new I[(_0x5801f7(0x200))](null)),_(this,_0x5801f7(0x17b),this['_collabCursorState$']['asObservable']());}[_0x13f674(0x328)](_0x22f635){const {unitID:_0x1f2a75,memberID:_0x1a9f41,textRanges:_0x3fad06}=_0x22f635,_0x30ae72=Fe(_0x3fad06);if(_0x30ae72==='')return;const _0x5825bf={'unitID':_0x1f2a75,'memberID':_0x1a9f41,'selection':_0x30ae72};this['_collabCursorState$']['next'](_0x5825bf);}}var ut=Object[_0x13f674(0x2a3)],It=(_0x5ab0b0,_0x1a10c4,_0x4f43ba,_0xd34c96)=>{for(var _0x8a9e8a=_0xd34c96>0x1?void 0x0:_0xd34c96?ut(_0x1a10c4,_0x4f43ba):_0x1a10c4,_0x255ee5=_0x5ab0b0['length']-0x1,_0x5a2216;_0x255ee5>=0x0;_0x255ee5--)(_0x5a2216=_0x5ab0b0[_0x255ee5])&&(_0x8a9e8a=_0x5a2216(_0x8a9e8a)||_0x8a9e8a);return _0x8a9e8a;},U=(_0x1a2b60,_0x20b5e9)=>(_0x39b4f8,_0x50ada7)=>_0x20b5e9(_0x39b4f8,_0x50ada7,_0x1a2b60);const dt=0x12c,St=0x64;let ve=class extends a['RxDisposable']{constructor(_0x30c312,_0x4d7ecf,_0x2e3f36,_0x575558,_0x4f6a06,_0x190340,_0x2cab09,_0x31d98b,_0x34cafb){const _0x515743=_0x13f674;super(),_(this,_0x515743(0x12b),!0x1),_(this,_0x515743(0x11f),!0x1),_(this,_0x515743(0x249),new I[(_0x515743(0x200))](new Map())),_(this,_0x515743(0x165),this[_0x515743(0x249)][_0x515743(0x326)]()),_(this,_0x515743(0x175),new I[(_0x515743(0x200))]([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](I['debounceTime'](dt))),_(this,_0x515743(0xf8),a[_0x515743(0x16f)](_0x34311f=>{const _0x599b8c=_0x515743,_0x3e04e8={'eventID':g[_0x599b8c(0x17a)][_0x599b8c(0x360)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x599b8c(0x191)](),'selection':Fe(_0x34311f)}};this[_0x599b8c(0x2d9)][_0x599b8c(0x387)](_0x3e04e8,this[_0x599b8c(0x123)]);},St)),(this['unitID']=_0x30c312,this[_0x515743(0x2d9)]=_0x4d7ecf,this[_0x515743(0x2f4)]=_0x2e3f36,this['_colorAssignService']=_0x575558,this['_memberService']=_0x4f6a06,this[_0x515743(0x357)]=_0x190340,this[_0x515743(0x39a)]=_0x2cab09,this[_0x515743(0x33a)]=_0x31d98b,this[_0x515743(0x318)]=_0x34cafb);}get[_0x13f674(0x2ec)](){const _0x3b39dd=_0x13f674;return this[_0x3b39dd(0x249)][_0x3b39dd(0x1bd)]();}get[_0x13f674(0x2c4)](){const _0x4cf1f7=_0x13f674;return this[_0x4cf1f7(0x175)][_0x4cf1f7(0x1bd)]();}[_0x13f674(0x163)](){const _0x50eed7=_0x13f674;super['dispose'](),this[_0x50eed7(0x249)]['next'](new Map()),this[_0x50eed7(0x249)]['complete'](),this[_0x50eed7(0x175)][_0x50eed7(0x3b4)]([]),this['_roomMembers$'][_0x50eed7(0x3b3)]();}[_0x13f674(0x23c)](){const _0x2c6ef5=_0x13f674;this[_0x2c6ef5(0x11f)]||(this[_0x2c6ef5(0x11f)]=!0x0,this['_session'][_0x2c6ef5(0x24d)][_0x2c6ef5(0x274)](I['takeUntil'](this[_0x2c6ef5(0x1c1)]))[_0x2c6ef5(0x271)](_0x3a77d9=>{const _0x5de7a5=_0x2c6ef5;_0x3a77d9===u[_0x5de7a5(0x30e)]['ONLINE']?this[_0x5de7a5(0x166)]():this[_0x5de7a5(0x1c4)]();}),this[_0x2c6ef5(0x2d9)][_0x2c6ef5(0x298)]['pipe'](I[_0x2c6ef5(0x258)](this[_0x2c6ef5(0x1c1)]))[_0x2c6ef5(0x271)](_0x37d185=>{const _0x16a0cb=_0x2c6ef5,_0x394f45=_0x37d185[_0x16a0cb(0x3b6)];_0x394f45===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x16a0cb(0x1fc)](_0x37d185),_0x394f45===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x16a0cb(0x386)](_0x37d185);}),this[_0x2c6ef5(0x347)](this[_0x2c6ef5(0x318)][_0x2c6ef5(0x3a7)](_0x2c2544=>{const _0x495a6f=_0x2c6ef5,_0x2b8bb2=_0x2c2544[_0x495a6f(0x17c)];_0x2b8bb2!=null&&this['_online']&&_0x2c2544['id']===V['SetTextSelectionsOperation']['id']&&_0x2b8bb2['unitId']===this['unitID']&&_0x2b8bb2[_0x495a6f(0x1df)]===!0x1&&_0x2b8bb2['ranges'][_0x495a6f(0x187)]>0x0&&this[_0x495a6f(0xf8)](_0x2b8bb2[_0x495a6f(0x2bf)]);})),this[_0x2c6ef5(0x357)][_0x2c6ef5(0x17b)][_0x2c6ef5(0x274)](I[_0x2c6ef5(0x258)](this[_0x2c6ef5(0x1c1)]))[_0x2c6ef5(0x271)](_0x137db7=>{const _0x597b6e=_0x2c6ef5;if((_0x137db7==null?void 0x0:_0x137db7[_0x597b6e(0x123)])!==this[_0x597b6e(0x123)])return;const _0x2cbf8d={'eventID':g[_0x597b6e(0x17a)][_0x597b6e(0x360)],'data':_0x137db7};this[_0x597b6e(0x1fc)](_0x2cbf8d);}),this['disposeWithMe'](this[_0x2c6ef5(0x318)]['onCommandExecuted'](_0x5f1b13=>{const _0x525edf=_0x2c6ef5;if(_0x5f1b13[_0x525edf(0x17c)]==null)return;const _0x4af04a=_0x5f1b13[_0x525edf(0x17c)];if(_0x5f1b13['id']!==V[_0x525edf(0x236)]['id']||_0x4af04a['unitId']!==this['unitID'])return;const _0x1d97f9={'id':_0x525edf(0x182),'params':_0x4af04a},_0x4271eb=this['cursorInfo'];for(const [_0xc2d30,_0x109586]of _0x4271eb){const _0x3718c9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x525edf(0x123)],'actions':null,'textRanges':_0x109586[_0x525edf(0x2bf)]}},_0x36b29c=this[_0x525edf(0x39a)][_0x525edf(0x143)](_0x1d97f9,_0x3718c9,!0x1);if(g[_0x525edf(0x3af)](_0x36b29c))throw _0x36b29c[_0x525edf(0x2d4)];_0x4271eb[_0x525edf(0x38c)](_0xc2d30,{..._0x109586,'ranges':_0x36b29c[_0x525edf(0x307)][_0x525edf(0x17c)][_0x525edf(0x16a)]});}queueMicrotask(()=>{const _0x53be46=_0x525edf;this[_0x53be46(0x249)][_0x53be46(0x3b4)](_0x4271eb);});})));}['_onCursorUpdate'](_0x58c8ee){const _0x20efd6=_0x13f674;var _0x13cf50,_0x81857d;const {memberID:_0x5da384,selection:_0x588a9e}=_0x58c8ee[_0x20efd6(0x177)],_0x157336=ht(_0x588a9e),_0x544538=(_0x81857d=(_0x13cf50=this[_0x20efd6(0x2ae)][_0x20efd6(0x391)](this['unitID'],_0x5da384))==null?void 0x0:_0x13cf50[_0x20efd6(0x26b)])!=null?_0x81857d:_0x20efd6(0x1e1),_0x430b0f={'color':this['_colorAssignService'][_0x20efd6(0x356)](_0x5da384),'name':_0x544538,'ranges':_0x157336},_0x2ef012=this[_0x20efd6(0x2ec)];_0x2ef012[_0x20efd6(0x38c)](_0x5da384,_0x430b0f),this[_0x20efd6(0x249)][_0x20efd6(0x3b4)](_0x2ef012);}[_0x13f674(0x386)](_0x47c3f4){const _0x57fd68=_0x13f674,{memberID:_0x42a897}=_0x47c3f4[_0x57fd68(0x177)],_0x5280c0=this[_0x57fd68(0x2ec)];_0x5280c0['delete'](_0x42a897),this[_0x57fd68(0x249)][_0x57fd68(0x3b4)](_0x5280c0);}[_0x13f674(0x166)](){const _0x12a9c3=_0x13f674;var _0x27a662;if(this[_0x12a9c3(0x12b)]=!0x0,((_0x27a662=this[_0x12a9c3(0x33a)]['getFocusedUnit']())==null?void 0x0:_0x27a662['getUnitId']())!==this[_0x12a9c3(0x123)])return;const _0x4c6286=this[_0x12a9c3(0x2f4)]['get'](V[_0x12a9c3(0x1cb)])[_0x12a9c3(0x19b)]();Array['isArray'](_0x4c6286)&&_0x4c6286[_0x12a9c3(0x187)]>0x0&&this[_0x12a9c3(0xf8)](_0x4c6286);}[_0x13f674(0x1c4)](){this['_online']=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x13f674(0x324)])),U(0x3,a[_0x13f674(0x2d0)](Re)),U(0x4,a[_0x13f674(0x2d0)](u['MemberService'])),U(0x5,a[_0x13f674(0x2d0)](be)),U(0x6,g[_0x13f674(0x26f)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x13f674(0x39c)])],ve);var ft=Object[_0x13f674(0x2a3)],mt=(_0x567746,_0x17d9a4,_0x199cec,_0x561bff)=>{const _0x1ec85e=_0x13f674;for(var _0x484b46=_0x561bff>0x1?void 0x0:_0x561bff?ft(_0x17d9a4,_0x199cec):_0x17d9a4,_0x5f454e=_0x567746[_0x1ec85e(0x187)]-0x1,_0x90d743;_0x5f454e>=0x0;_0x5f454e--)(_0x90d743=_0x567746[_0x5f454e])&&(_0x484b46=_0x90d743(_0x484b46)||_0x484b46);return _0x484b46;},w=(_0x2807ac,_0x314f63)=>(_0x264a96,_0x858cae)=>_0x314f63(_0x264a96,_0x858cae,_0x2807ac);const vt=0x12c,gt=0x64,Et=()=>{let _0x4376f2=[],_0x549879=!0x1;return _0x7e8c74=>{const _0x8a1d0=_0x2045;_0x4376f2[_0x8a1d0(0x169)](_0x7e8c74),_0x549879||(_0x549879=!0x0,setTimeout(()=>{const _0x342590=_0x8a1d0;_0x4376f2[_0x342590(0x234)](_0x26c818=>_0x26c818()),_0x4376f2=[],_0x549879=!0x1;}));};};let ge=class extends a[_0x13f674(0x1c3)]{constructor(_0x57d372,_0x59ede2,_0x1e5465,_0x2e3203,_0x742f39,_0x31fe23,_0x24ef3b,_0x3dee8f){const _0x487389=_0x13f674;super(),_(this,_0x487389(0x12b),!0x1),_(this,'_init',!0x1),_(this,_0x487389(0x249),new I[(_0x487389(0x200))](new Map())),_(this,_0x487389(0x165),this[_0x487389(0x249)]['asObservable']()),_(this,_0x487389(0x175),new I[(_0x487389(0x200))]([])),_(this,_0x487389(0x257),this[_0x487389(0x175)][_0x487389(0x274)](I['debounceTime'](vt))),_(this,_0x487389(0xf8),a[_0x487389(0x16f)]((_0x469012,_0x5c3072)=>{const _0x7c3443=_0x487389,_0x5941d2={'eventID':g['CollaborationEvent'][_0x7c3443(0x360)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':B[_0x7c3443(0x27e)](_0x469012,_0x5c3072[_0x7c3443(0x20c)])}};this[_0x7c3443(0x2d9)]['send'](_0x5941d2,this[_0x7c3443(0x123)]);},gt)),(this[_0x487389(0x123)]=_0x57d372,this[_0x487389(0x2d9)]=_0x59ede2,this[_0x487389(0x2f4)]=_0x1e5465,this[_0x487389(0x181)]=_0x2e3203,this['_memberService']=_0x742f39,this[_0x487389(0x33a)]=_0x31fe23,this[_0x487389(0x318)]=_0x24ef3b,this[_0x487389(0x214)]=_0x3dee8f);}get[_0x13f674(0x2ec)](){const _0x31c5c2=_0x13f674;return this['_cursorInfo$'][_0x31c5c2(0x1bd)]();}get[_0x13f674(0x2c4)](){const _0x25736e=_0x13f674;return this[_0x25736e(0x175)][_0x25736e(0x1bd)]();}['dispose'](){const _0x4dd443=_0x13f674;super['dispose'](),this[_0x4dd443(0x249)][_0x4dd443(0x3b4)](new Map()),this[_0x4dd443(0x249)][_0x4dd443(0x3b3)](),this[_0x4dd443(0x175)][_0x4dd443(0x3b4)]([]),this[_0x4dd443(0x175)]['complete']();}[_0x13f674(0x23c)](){const _0x1258ae=_0x13f674;this['_init']||(this[_0x1258ae(0x11f)]=!0x0,this[_0x1258ae(0x2d9)]['sessionStatus$'][_0x1258ae(0x274)](I[_0x1258ae(0x258)](this[_0x1258ae(0x1c1)]))[_0x1258ae(0x271)](_0x5eb894=>{const _0x530893=_0x1258ae;_0x5eb894===u[_0x530893(0x30e)][_0x530893(0x198)]?this['_toggleOnline']():this[_0x530893(0x1c4)]();}),this[_0x1258ae(0x2d9)]['event$']['pipe'](I[_0x1258ae(0x258)](this[_0x1258ae(0x1c1)]))['subscribe'](_0x4783bc=>{const _0x536a53=_0x1258ae,_0x4b1240=_0x4783bc[_0x536a53(0x3b6)];_0x4b1240===g['CollaborationEvent'][_0x536a53(0x360)]&&this[_0x536a53(0x1fc)](_0x4783bc),_0x4b1240===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x536a53(0x386)](_0x4783bc);}),this[_0x1258ae(0x3a1)](),this[_0x1258ae(0x347)](this[_0x1258ae(0x318)]['onCommandExecuted'](_0x4708f5=>{const _0x7c97f9=_0x1258ae;if(this[_0x7c97f9(0x12b)]&&_0x4708f5['id']===v['SetSelectionsOperation']['id']&&_0x4708f5[_0x7c97f9(0x17c)][_0x7c97f9(0x2b9)]===this[_0x7c97f9(0x123)]){const _0xf7aedc=_0x4708f5['params'];this[_0x7c97f9(0xf8)](_0xf7aedc[_0x7c97f9(0x167)],_0xf7aedc[_0x7c97f9(0x1b5)][0x0]);}})));}[_0x13f674(0x1fc)](_0xc9220f){const _0x43d7b5=_0x13f674;var _0x2350c1,_0x12dfbf;const {memberID:_0x38cb8f,selection:_0x29e359}=_0xc9220f[_0x43d7b5(0x177)],{sheetName:_0x5c43b8,range:_0x89dd7e}=B[_0x43d7b5(0x25a)](_0x29e359),_0x2fba04={'name':(_0x12dfbf=(_0x2350c1=this[_0x43d7b5(0x2ae)][_0x43d7b5(0x391)](this[_0x43d7b5(0x123)],_0x38cb8f))==null?void 0x0:_0x2350c1[_0x43d7b5(0x26b)])!=null?_0x12dfbf:_0x43d7b5(0x1e1),'range':this['_getMergeRange'](_0x5c43b8,_0x89dd7e),'sheetID':_0x5c43b8,'color':this[_0x43d7b5(0x181)][_0x43d7b5(0x356)](_0x38cb8f),'selection':_0x29e359},_0x5f37e1=this[_0x43d7b5(0x2ec)];_0x5f37e1[_0x43d7b5(0x38c)](_0x38cb8f,_0x2fba04),this[_0x43d7b5(0x249)]['next'](_0x5f37e1);}[_0x13f674(0x386)](_0x168054){const _0x248d9d=_0x13f674,{memberID:_0x8b9ca1}=_0x168054[_0x248d9d(0x177)],_0x1fed9e=this[_0x248d9d(0x2ec)];_0x1fed9e[_0x248d9d(0x252)](_0x8b9ca1),this['_cursorInfo$'][_0x248d9d(0x3b4)](_0x1fed9e);}[_0x13f674(0x13a)](_0x5d8bea,_0x555dd8){const _0x318aeb=_0x13f674;var _0x4471b1,_0x2c733d;const _0xa3d87e=(_0x2c733d=(_0x4471b1=this[_0x318aeb(0x33a)]['getUniverSheetInstance'](this[_0x318aeb(0x123)]))==null?void 0x0:_0x4471b1[_0x318aeb(0x23a)](_0x5d8bea))==null?void 0x0:_0x2c733d[_0x318aeb(0x345)]();return(_0xa3d87e==null?void 0x0:_0xa3d87e[_0x318aeb(0x390)](_0x2cc43d=>a[_0x318aeb(0x259)][_0x318aeb(0x28d)](_0x2cc43d,_0x555dd8)))||_0x555dd8;}[_0x13f674(0x3a1)](){const _0x471beb=_0x13f674,_0x160c92=new a[(_0x471beb(0x2fd))](),_0x18ab92=Et(),_0x3884b0=()=>{const _0x5cc855=_0x471beb;_0x160c92[_0x5cc855(0x163)]();const _0x3d584d=(_0x460026,_0x119ee8,_0x40d978,_0x34927c)=>{const _0x190a53=_0x5cc855;let _0x49acf2=[];switch(_0x460026['id']){case v[_0x190a53(0x1a3)][_0x190a53(0x21c)]:{_0x49acf2=v['handleDeleteRangeMoveLeft'](_0x460026,_0x34927c);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x49acf2=v[_0x190a53(0x2ed)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x385)]:{_0x49acf2=v[_0x190a53(0x237)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x2fc)]:{_0x49acf2=v[_0x190a53(0x2d5)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x246)]:{_0x49acf2=v[_0x190a53(0x22c)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)]['InsertRowCommandId']:{_0x49acf2=v[_0x190a53(0x20a)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)]['MoveRangeCommandId']:{_0x49acf2=v[_0x190a53(0x145)](_0x460026,_0x34927c);break;}case v['EffectRefRangId'][_0x190a53(0x240)]:{_0x49acf2=v[_0x190a53(0x12f)](_0x460026,_0x34927c);break;}case v[_0x190a53(0x1a3)][_0x190a53(0x19d)]:{_0x49acf2=v[_0x190a53(0x393)](_0x460026,_0x34927c);break;}}const _0x10f7cd=v[_0x190a53(0x188)](_0x49acf2,_0x34927c),_0x5a2538=this[_0x190a53(0x2ec)][_0x190a53(0x1ab)](_0x119ee8);if(_0x5a2538&&_0x10f7cd){const _0x598e56={..._0x5a2538,'range':_0x10f7cd};this[_0x190a53(0x2ec)][_0x190a53(0x38c)](_0x119ee8,_0x598e56),_0x18ab92(()=>{const _0x2a7ddd=_0x190a53,_0x2e9174=this['_refRangeService']['registerRefRange'](_0x10f7cd,_0x41ca1a=>(_0x2e9174[_0x2a7ddd(0x163)](),_0x3d584d(_0x41ca1a,_0x119ee8,_0x40d978,_0x10f7cd)));_0x160c92[_0x2a7ddd(0x388)](_0x2e9174);});}return{'redos':[],'undos':[]};};this[_0x5cc855(0x2ec)][_0x5cc855(0x234)]((_0x1e5089,_0x109658)=>{const _0x1e1487=_0x5cc855,{range:_0x133494,sheetID:_0x57dfcc}=_0x1e5089,_0x22b843=this[_0x1e1487(0x214)]['registerRefRange'](_0x133494,_0x344f05=>(_0x22b843['dispose'](),_0x3d584d(_0x344f05,_0x109658,_0x57dfcc,_0x133494)));_0x160c92[_0x1e1487(0x388)](_0x22b843);});};this['disposeWithMe'](a[_0x471beb(0x2b3)](this[_0x471beb(0x249)][_0x471beb(0x271)](()=>{_0x3884b0();})));}[_0x13f674(0x166)](){const _0x1c80a6=_0x13f674;var _0x1f6f41,_0x2f51a1;if(this[_0x1c80a6(0x12b)]=!0x0,((_0x1f6f41=this[_0x1c80a6(0x33a)][_0x1c80a6(0x2db)]())==null?void 0x0:_0x1f6f41[_0x1c80a6(0x15e)]())!==this[_0x1c80a6(0x123)])return;const _0x5c4097=(_0x2f51a1=this[_0x1c80a6(0x2f4)][_0x1c80a6(0x1ab)](v[_0x1c80a6(0x1bf)])[_0x1c80a6(0x325)]())==null?void 0x0:_0x2f51a1[0x0],_0x55a54a=this['_univerInstanceService'][_0x1c80a6(0x1e4)](a['UniverInstanceType'][_0x1c80a6(0x147)])[_0x1c80a6(0x2d7)]();_0x5c4097&&_0x55a54a&&this[_0x1c80a6(0xf8)](_0x55a54a['getSheetId'](),_0x5c4097);}[_0x13f674(0x1c4)](){const _0xa59ce4=_0x13f674;this[_0xa59ce4(0x12b)]=!0x1;}};ge=mt([w(0x2,a[_0x13f674(0x2d0)](a['Injector'])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x13f674(0x2d0)](u[_0x13f674(0x154)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x13f674(0x39c)]),w(0x7,a[_0x13f674(0x2d0)](v['RefRangeService']))],ge);var Ct=Object[_0x13f674(0x2a3)],pt=(_0x3079b8,_0x42808b,_0x4440b4,_0x3b62e0)=>{const _0x3faeec=_0x13f674;for(var _0xad1c3e=_0x3b62e0>0x1?void 0x0:_0x3b62e0?Ct(_0x42808b,_0x4440b4):_0x42808b,_0xe7b469=_0x3079b8[_0x3faeec(0x187)]-0x1,_0x3b24eb;_0xe7b469>=0x0;_0xe7b469--)(_0x3b24eb=_0x3079b8[_0xe7b469])&&(_0xad1c3e=_0x3b24eb(_0xad1c3e)||_0xad1c3e);return _0xad1c3e;},ce=(_0x4076dd,_0x23e30f)=>(_0x234f6c,_0x4d0d48)=>_0x23e30f(_0x234f6c,_0x4d0d48,_0x4076dd);let F=class extends a['RxDisposable']{constructor(_0x110be9,_0x4ecb6c,_0x526022){const _0x49b84b=_0x13f674;super(),_(this,'_entities',new Map()),_(this,_0x49b84b(0x24a),new I['Subject']()),(this['_univerInstanceService']=_0x110be9,this['_injector']=_0x4ecb6c,this['_collabSessionService']=_0x526022,this[_0x49b84b(0x11f)]());}[_0x13f674(0x163)](){const _0x5e0058=_0x13f674;super[_0x5e0058(0x163)](),this['_entityInit$'][_0x5e0058(0x3b3)](),this[_0x5e0058(0x138)][_0x5e0058(0x234)](_0x36dc69=>_0x36dc69[_0x5e0058(0x163)]());}[_0x13f674(0x22e)](_0x3331ad){const _0x399402=_0x13f674;return this['_entities'][_0x399402(0x2f0)](_0x3331ad)?this[_0x399402(0x138)][_0x399402(0x1ab)](_0x3331ad)[_0x399402(0x165)]:this[_0x399402(0x24a)][_0x399402(0x274)](I[_0x399402(0x16d)](_0x36073b=>_0x36073b[_0x399402(0x123)]===_0x3331ad),I[_0x399402(0x33e)](_0x3b9d35=>_0x3b9d35['cursorInfo$']));}[_0x13f674(0x11f)](){const _0x7b7f24=_0x13f674;this[_0x7b7f24(0x33a)]['getTypeOfUnitAdded$'](a[_0x7b7f24(0x14d)][_0x7b7f24(0x147)])['pipe'](I[_0x7b7f24(0x258)](this[_0x7b7f24(0x1c1)]))[_0x7b7f24(0x271)](async _0x31527c=>{const _0x56423f=_0x7b7f24,_0x5ca0f4=_0x31527c[_0x56423f(0x15e)](),_0x38d11f=await this['_startSheetCollabCursor'](_0x5ca0f4);this[_0x56423f(0x24a)][_0x56423f(0x3b4)](_0x38d11f),this[_0x56423f(0x138)]['set'](_0x5ca0f4,_0x38d11f);}),this[_0x7b7f24(0x33a)][_0x7b7f24(0x217)](a['UniverInstanceType'][_0x7b7f24(0x2ce)])[_0x7b7f24(0x274)](I[_0x7b7f24(0x258)](this[_0x7b7f24(0x1c1)]))[_0x7b7f24(0x274)](I[_0x7b7f24(0x16d)](_0x1f730f=>!_0x1f730f[_0x7b7f24(0x15e)]()[_0x7b7f24(0x112)]('__')))['subscribe'](async _0x2632dc=>{const _0x1f6b7c=_0x7b7f24,_0x35f606=_0x2632dc[_0x1f6b7c(0x15e)](),_0x4cd1b9=await this[_0x1f6b7c(0x269)](_0x35f606);this[_0x1f6b7c(0x24a)][_0x1f6b7c(0x3b4)](_0x4cd1b9),this[_0x1f6b7c(0x138)][_0x1f6b7c(0x38c)](_0x35f606,_0x4cd1b9);}),I['merge'](this[_0x7b7f24(0x33a)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x7b7f24(0x2ce)]),this['_univerInstanceService'][_0x7b7f24(0x193)](a['UniverInstanceType'][_0x7b7f24(0x147)]))[_0x7b7f24(0x274)](I[_0x7b7f24(0x258)](this['dispose$']))[_0x7b7f24(0x271)](_0x494464=>{const _0x1d0b3c=_0x7b7f24,_0x3c9356=_0x494464[_0x1d0b3c(0x15e)](),_0x4f5065=this[_0x1d0b3c(0x138)][_0x1d0b3c(0x1ab)](_0x3c9356);_0x4f5065&&(_0x4f5065[_0x1d0b3c(0x163)](),this[_0x1d0b3c(0x138)][_0x1d0b3c(0x252)](_0x3c9356));});}async[_0x13f674(0x34d)](_0x353048){const _0xd8391f=_0x13f674,_0x1bf877=await this[_0xd8391f(0x266)]['requireSession'](_0x353048),_0x3a0a3a=this[_0xd8391f(0x2f4)][_0xd8391f(0x186)](ge,_0x353048,_0x1bf877);return _0x3a0a3a[_0xd8391f(0x23c)](),_0x3a0a3a;}async[_0x13f674(0x269)](_0x57c542){const _0x5f2f7a=_0x13f674,_0x3833df=await this[_0x5f2f7a(0x266)]['requireSession'](_0x57c542),_0x590cfa=this[_0x5f2f7a(0x2f4)][_0x5f2f7a(0x186)](ve,_0x57c542,_0x3833df);return _0x590cfa['init'](),_0x590cfa;}};F=pt([ce(0x0,a[_0x13f674(0xf2)]),ce(0x1,a[_0x13f674(0x2d0)](a['Injector'])),ce(0x2,a['Inject'](u[_0x13f674(0x159)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x262199,_0x142b01){const _0x12c918=_0x13f674;let {radius:_0x5c48bc,width:_0x31a58a,height:_0x4f3ad9}=_0x142b01;_0x5c48bc=_0x5c48bc!=null?_0x5c48bc:0x0,_0x31a58a=_0x31a58a!=null?_0x31a58a:0x1e,_0x4f3ad9=_0x4f3ad9!=null?_0x4f3ad9:0x1e;let _0x593372=0x0,_0x551a7f=0x0,_0x5031ea=0x0;_0x593372=_0x551a7f=_0x5031ea=Math['min'](_0x5c48bc,_0x31a58a/0x2,_0x4f3ad9/0x2),_0x262199[_0x12c918(0x36d)](),_0x262199[_0x12c918(0x1c9)](_0x593372,0x0),_0x262199[_0x12c918(0x124)](_0x31a58a-_0x551a7f,0x0),_0x262199[_0x12c918(0x32b)](_0x31a58a-_0x551a7f,_0x551a7f,_0x551a7f,Math['PI']*0x3/0x2,0x0,!0x1),_0x262199[_0x12c918(0x124)](_0x31a58a,_0x4f3ad9-_0x5031ea),_0x262199[_0x12c918(0x32b)](_0x31a58a-_0x5031ea,_0x4f3ad9-_0x5031ea,_0x5031ea,0x0,Math['PI']/0x2,!0x1),_0x262199[_0x12c918(0x124)](0x0,_0x4f3ad9),_0x262199['lineTo'](0x0,_0x593372),_0x262199[_0x12c918(0x32b)](_0x593372,_0x593372,_0x593372,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x262199[_0x12c918(0x35b)](),_0x142b01[_0x12c918(0x152)]&&(_0x262199['save'](),_0x262199[_0x12c918(0x149)]=_0x142b01[_0x12c918(0x152)],_0x142b01[_0x12c918(0x23d)]==='evenodd'?_0x262199[_0x12c918(0x152)](_0x12c918(0x2c9)):_0x262199[_0x12c918(0x152)](),_0x262199[_0x12c918(0x327)]());}class re extends C[_0x13f674(0x104)]{constructor(_0x48f49f,_0x382d70){const _0x29a700=_0x13f674;super(_0x48f49f,_0x382d70),_(this,_0x29a700(0xf9)),_(this,_0x29a700(0x280)),(this[_0x29a700(0xf9)]=_0x382d70==null?void 0x0:_0x382d70[_0x29a700(0xf9)],this[_0x29a700(0x280)]=_0x382d70==null?void 0x0:_0x382d70[_0x29a700(0x280)]);}static[_0x13f674(0x1e6)](_0x2305e2,_0x3f8197){const _0x337119=_0x13f674,{text:_0x1732df,color:_0xcd71f0}=_0x3f8197;_0x2305e2[_0x337119(0x2ad)](),_0x2305e2[_0x337119(0x3b2)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x64085=_0x2305e2[_0x337119(0x1ad)](_0x1732df)['width'],_0x33965a=Math[_0x337119(0x2fb)](_0x64085+0x2*le,Ue);Ot(_0x2305e2,{'height':X,'radius':0x4,'width':_0x33965a,'fill':_0xcd71f0}),_0x2305e2[_0x337119(0x149)]=_0x337119(0x12d);const _0x21e53f=le,_0x59feeb=X-Tt,_0xaf7d7=Ue-0x2*le;if(_0x64085>_0xaf7d7){let _0x550565='',_0x3438dc=0x0;for(const _0x4afe64 of _0x1732df){const _0x3ebf03=_0x2305e2[_0x337119(0x1ad)](_0x4afe64)['width'];if(_0x3438dc+_0x3ebf03<=_0xaf7d7-_0x2305e2[_0x337119(0x1ad)](_0x337119(0x2ff))[_0x337119(0x13d)])_0x550565+=_0x4afe64,_0x3438dc+=_0x3ebf03;else{_0x550565+=_0x337119(0x2ff);break;}}_0x2305e2[_0x337119(0x28b)](_0x550565,_0x21e53f,_0x59feeb);}else _0x2305e2[_0x337119(0x28b)](_0x1732df,_0x21e53f,_0x59feeb);_0x2305e2[_0x337119(0x327)]();}[_0x13f674(0x20b)](_0x5328c5){const _0x2ee12f=_0x13f674;re[_0x2ee12f(0x1e6)](_0x5328c5,this);}}const _e=_0x13f674(0x292),Rt=_0x13f674(0x1f7),bt=_0x13f674(0x277),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x2d56c1,_0x13b47a,_0x4f79ff,_0x2dacdf){const _0x5abed2=_0x13f674;_(this,_0x5abed2(0x315),[]),_(this,'_anchor',null),_(this,_0x5abed2(0x3a8),null),_(this,_0x5abed2(0x24c),null),_(this,_0x5abed2(0x299),null),_(this,_0x5abed2(0x223),null),(this[_0x5abed2(0x18a)]=_0x2d56c1,this[_0x5abed2(0x185)]=_0x13b47a,this['_docSkeleton']=_0x4f79ff,this[_0x5abed2(0x2d8)]=_0x2dacdf,this[_0x5abed2(0x309)]());}set[_0x13f674(0x336)](_0x5cded9){const _0x4aeaf9=_0x13f674;_0x5cded9?(this[_0x4aeaf9(0x24c)]&&this[_0x4aeaf9(0x24c)][_0x4aeaf9(0x380)](),this[_0x4aeaf9(0x3a8)]&&this[_0x4aeaf9(0x3a8)]['show']()):(this['_anchorDot']&&this[_0x4aeaf9(0x24c)][_0x4aeaf9(0x1b4)](),this[_0x4aeaf9(0x3a8)]&&this[_0x4aeaf9(0x3a8)][_0x4aeaf9(0x380)]());}[_0x13f674(0x163)](){const _0x1ddbcf=_0x13f674;for(const _0x1b0411 of this[_0x1ddbcf(0x315)])_0x1b0411['dispose']();this[_0x1ddbcf(0x3a8)]&&this[_0x1ddbcf(0x3a8)][_0x1ddbcf(0x163)](),this[_0x1ddbcf(0x24c)]&&this['_anchorDot'][_0x1ddbcf(0x163)](),this[_0x1ddbcf(0x172)]&&this[_0x1ddbcf(0x172)][_0x1ddbcf(0x163)](),this['_eventUnsubscribe']&&this[_0x1ddbcf(0x223)]();}['_render'](){const _0xf19d74=_0x13f674;var _0x29b1b0;const {_docSkeleton:_0x30b131,_document:_0x17c639}=this,{color:_0x4ef409,name:_0x2ea294,ranges:_0xe9e700}=this[_0xf19d74(0x18a)],_0x37fede=_0x17c639[_0xf19d74(0x288)](),{docsLeft:_0x34de2b,docsTop:_0x340303}=_0x37fede,_0x6b00e1=new p[(_0xf19d74(0x276))](_0x37fede,_0x30b131);for(const {startOffset:_0x41cab0,endOffset:_0x554c6a,rangeType:_0x95a231,segmentId:_0x407a17,segmentPage:_0x2190e0,collapsed:_0x26f814,isActive:_0x5b1d79}of _0xe9e700){const _0x54bd9a=_0x30b131[_0xf19d74(0x2e6)](_0x41cab0,!0x0,_0x407a17,_0x2190e0);let _0x115d00=_0x30b131[_0xf19d74(0x2e6)](_0x554c6a,!0x0,_0x407a17,_0x2190e0);if(_0x115d00==null&&(_0x115d00=_0x30b131[_0xf19d74(0x2e6)](_0x554c6a-0x1,!0x1,_0x407a17,_0x2190e0)),_0x5b1d79){const {contentBoxPointGroup:_0x3e3653}=_0x6b00e1['getRangePointData'](_0x115d00,_0x115d00);if(_0x3e3653[_0xf19d74(0x187)]===0x0)continue;this[_0xf19d74(0x241)](_0x4ef409,_0x3e3653,_0x34de2b,_0x340303,_0x2ea294),this[_0xf19d74(0x223)]=this[_0xf19d74(0x1f0)]();}if(_0x54bd9a&&_0x115d00){if(_0x95a231===a[_0xf19d74(0x268)][_0xf19d74(0x2f3)]){const _0x5a43b3=new p['NodePositionConvertToRectRange'](_0x37fede,_0x30b131),{pointGroup:_0x549c54}=(_0x29b1b0=_0x5a43b3[_0xf19d74(0x284)](_0x54bd9a,_0x115d00))!=null?_0x29b1b0:{};if(_0x549c54==null||_0x549c54['length']===0x0)continue;this[_0xf19d74(0x16e)](_0x4ef409,_0x549c54,_0x34de2b,_0x340303);}else{if(!_0x26f814){const {borderBoxPointGroup:_0x597474}=_0x6b00e1[_0xf19d74(0x284)](_0x54bd9a,_0x115d00);if(_0x597474[_0xf19d74(0x187)]===0x0)continue;this[_0xf19d74(0x1d1)](_0x4ef409,_0x597474,_0x34de2b,_0x340303);}}}}}['_drawAnchor'](_0x15822c,_0x3ede21,_0x1dcf12,_0x3e72a6,_0x574bb2){const _0x1ced4c=_0x13f674,_0x129a30=this[_0x1ced4c(0x2e8)](_0x3ede21),{left:_0x2761f2,top:_0x51d697,height:_0x4ba4e0}=_0x129a30,_0x5c6df1=this[_0x1ced4c(0x1cd)](),_0x48a971=Nt/_0x5c6df1,_0x3d9140=new C[(_0x1ced4c(0x36b))](_e+a[_0x1ced4c(0x197)](H),{'left':_0x2761f2+_0x1dcf12-_0x48a971,'top':_0x51d697+_0x3e72a6,'height':_0x4ba4e0,'width':Dt,'fill':_0x15822c||C['getColor'](a[_0x1ced4c(0x21f)][_0x1ced4c(0x117)],0x0),'strokeWidth':_0x48a971,'stroke':Ut,'evented':!0x0});this[_0x1ced4c(0x172)]=_0x3d9140,this['_scene'][_0x1ced4c(0x263)](_0x3d9140,p[_0x1ced4c(0x20f)]);const _0x2dc416=new C[(_0x1ced4c(0x36b))](_e+a[_0x1ced4c(0x197)](H),{'left':_0x2761f2+_0x1dcf12-_0x48a971,'top':_0x51d697+_0x3e72a6-he/0x2,'height':he,'width':he,'fill':_0x15822c||C['getColor'](a[_0x1ced4c(0x21f)][_0x1ced4c(0x117)],0x0),'strokeWidth':0x0,'stroke':_0x15822c||C[_0x1ced4c(0x2ab)](a[_0x1ced4c(0x21f)][_0x1ced4c(0x117)],0x0),'evented':!0x1});this[_0x1ced4c(0x24c)]=_0x2dc416,this['_scene'][_0x1ced4c(0x263)](_0x2dc416,p[_0x1ced4c(0x20f)]);const _0x1188b3=new re(_e+a[_0x1ced4c(0x197)](H),{'left':_0x2761f2+_0x1dcf12-_0x48a971,'top':_0x51d697+_0x3e72a6-X,'text':_0x574bb2,'color':_0x15822c});this['_textBubble']=_0x1188b3,this[_0x1ced4c(0x185)]['addObject'](_0x1188b3,p[_0x1ced4c(0x20f)]),this[_0x1ced4c(0x336)]=!0x1;}[_0x13f674(0x1f0)](){const _0x96218e=_0x13f674,_0x346b90=this['_anchor'][_0x96218e(0x25e)][_0x96218e(0x2ef)](()=>{const _0x53a99d=_0x96218e;this[_0x53a99d(0x336)]=!0x0;}),_0x41d4fd=this[_0x96218e(0x172)][_0x96218e(0x218)]['subscribeEvent'](()=>{const _0x108da1=_0x96218e;this[_0x108da1(0x299)]&&clearTimeout(this[_0x108da1(0x299)]),this[_0x108da1(0x299)]=setTimeout(()=>{const _0x35172f=_0x108da1;this[_0x35172f(0x336)]=!0x1;},0x7d0);});return()=>{const _0x3ada8f=_0x96218e;_0x346b90[_0x3ada8f(0x35c)](),_0x41d4fd[_0x3ada8f(0x35c)]();};}[_0x13f674(0x1d1)](_0x499f28,_0x21ebae,_0x4c40b6,_0x1883e7){const _0x4d3e1f=_0x13f674,_0x3ed881=new a[(_0x4d3e1f(0x394))](_0x499f28)[_0x4d3e1f(0x1cc)](0.2)['toRgbString'](),_0x63a6d9=new C['RegularPolygon'](Rt+a[_0x4d3e1f(0x197)](H),{'pointsGroup':_0x21ebae,'fill':_0x3ed881||C[_0x4d3e1f(0x2ab)](a[_0x4d3e1f(0x21f)]['black'],0.2),'left':_0x4c40b6,'top':_0x1883e7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4d3e1f(0x315)][_0x4d3e1f(0x169)](_0x63a6d9),this['_scene']['addObject'](_0x63a6d9,p[_0x4d3e1f(0x20f)]);}['_drawRectRange'](_0x50faa0,_0xa59dce,_0x7afc3,_0xf75c82){const _0x1be1a8=_0x13f674,_0x445853=new a['ColorKit'](_0x50faa0)[_0x1be1a8(0x1cc)](0.2)[_0x1be1a8(0x366)](),_0xfe62ca=new C[(_0x1be1a8(0x341))](bt+a[_0x1be1a8(0x197)](H),{'pointsGroup':_0xa59dce,'fill':_0x445853||C[_0x1be1a8(0x2ab)](a[_0x1be1a8(0x21f)][_0x1be1a8(0x117)],0.2),'left':_0x7afc3,'top':_0xf75c82,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1be1a8(0x315)][_0x1be1a8(0x169)](_0xfe62ca),this['_scene'][_0x1be1a8(0x263)](_0xfe62ca,p[_0x1be1a8(0x20f)]);}['_getAnchorBounding'](_0x31cd12){const _0x4e4c6e=_0x31cd12[0x0],_0x4e5088=_0x4e4c6e[0x0],_0x2a4988=_0x4e4c6e[0x2],{x:_0x19196f,y:_0x5f3d6f}=_0x4e5088,{x:_0x31e339,y:_0x24f09e}=_0x2a4988;return{'left':_0x19196f,'top':_0x5f3d6f,'width':_0x31e339-_0x19196f,'height':_0x24f09e-_0x5f3d6f};}[_0x13f674(0x1cd)](){const _0x483985=_0x13f674,{scaleX:_0x3b36c1,scaleY:_0xaa3351}=this['_scene'][_0x483985(0x29a)]();return Math[_0x483985(0x19a)](_0x3b36c1,_0xaa3351);}}var Lt=Object[_0x13f674(0x2a3)],Mt=(_0x475132,_0x40a5e9,_0x32558a,_0x1ffa35)=>{const _0x1e8d61=_0x13f674;for(var _0x52708b=_0x1ffa35>0x1?void 0x0:_0x1ffa35?Lt(_0x40a5e9,_0x32558a):_0x40a5e9,_0x50c213=_0x475132[_0x1e8d61(0x187)]-0x1,_0x36ba57;_0x50c213>=0x0;_0x50c213--)(_0x36ba57=_0x475132[_0x50c213])&&(_0x52708b=_0x36ba57(_0x52708b)||_0x52708b);return _0x52708b;},q=(_0x33f8ab,_0x119530)=>(_0x184ea8,_0x124e5c)=>_0x119530(_0x184ea8,_0x124e5c,_0x33f8ab);let Ee=class extends a[_0x13f674(0x1c3)]{constructor(_0x51bbd0,_0x442402,_0x435cbe,_0x33ed0d,_0x4a2ce1){const _0x510b0d=_0x13f674;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x510b0d(0x209)]=_0x51bbd0,this[_0x510b0d(0x26d)]=_0x442402,this[_0x510b0d(0x2ac)]=_0x435cbe,this[_0x510b0d(0x318)]=_0x33ed0d,this[_0x510b0d(0x205)]=_0x4a2ce1,this[_0x510b0d(0x11f)]());}[_0x13f674(0x11f)](){const _0x43f7f7=_0x13f674,_0x35140f=this['_context'][_0x43f7f7(0x2b9)],_0x121824=this[_0x43f7f7(0x26d)];this[_0x43f7f7(0x347)](I[_0x43f7f7(0x2bc)]([this[_0x43f7f7(0x2ac)][_0x43f7f7(0x22e)](_0x35140f),this[_0x43f7f7(0x205)]['currentTheme$']])[_0x43f7f7(0x274)]($[_0x43f7f7(0x10a)](([_0x37a8d9,_0x98a72b])=>({'skeleton':_0x121824[_0x43f7f7(0x267)](),'cursors':[..._0x37a8d9[_0x43f7f7(0x28e)]()]['flatMap'](_0x2f6521=>({..._0x2f6521,'color':this[_0x43f7f7(0x205)][_0x43f7f7(0x3ae)](_0x2f6521[_0x43f7f7(0xf9)])}))})))[_0x43f7f7(0x271)](_0x57b2ff=>{const _0x394d04=_0x43f7f7;if(this[_0x394d04(0x229)](),_0x57b2ff){const {skeleton:_0x5ae68d,cursors:_0x45b662}=_0x57b2ff;this[_0x394d04(0x2d3)](_0x5ae68d,_0x45b662);}})),this['_initResize'](),this[_0x43f7f7(0x36f)]();}[_0x13f674(0x2d3)](_0x66bae0,_0x362251){const _0x3029ac=_0x13f674,{scene:_0x50d49c,mainComponent:_0x17813e}=this[_0x3029ac(0x209)],_0x5e6b64=_0x362251[_0x3029ac(0x10a)](_0x2e63b8=>new Le(_0x2e63b8,_0x50d49c,_0x66bae0,_0x17813e));this[_0x3029ac(0x317)]=_0x5e6b64,this[_0x3029ac(0x264)]=_0x362251;}['_refreshCollabCursors'](){const _0x2ae643=_0x13f674;this[_0x2ae643(0x229)]();const {scene:_0x26b778,mainComponent:_0x24bcbf}=this['_context'],_0x3a60ba=this[_0x2ae643(0x26d)]['getSkeleton'](),_0x8a22e3=this[_0x2ae643(0x264)][_0x2ae643(0x10a)](_0x57b691=>new Le(_0x57b691,_0x26b778,_0x3a60ba,_0x24bcbf));this['_cursorShapes']=_0x8a22e3;}[_0x13f674(0x229)](){const _0x5d3eed=_0x13f674;this[_0x5d3eed(0x317)][_0x5d3eed(0x234)](_0x1bad93=>_0x1bad93[_0x5d3eed(0x163)]()),this[_0x5d3eed(0x317)]=[];}[_0x13f674(0x36f)](){const _0x246c57=_0x13f674,_0x335f92=[p[_0x246c57(0x108)]['id']];this[_0x246c57(0x347)](this[_0x246c57(0x318)][_0x246c57(0x3a7)](_0x2089d4=>{const _0x30cafb=_0x246c57;_0x335f92['includes'](_0x2089d4['id'])&&_0x2089d4[_0x30cafb(0x17c)]['unitId']===this[_0x30cafb(0x209)][_0x30cafb(0x2b9)]&&this[_0x30cafb(0x2ee)]();}));}[_0x13f674(0x233)](){const _0x28726d=_0x13f674;this[_0x28726d(0x347)](a['fromEventSubject'](this['_context']['engine']['onTransformChange$'])['pipe']($[_0x28726d(0x16d)](_0xd895ea=>_0xd895ea[_0x28726d(0x10d)]===C[_0x28726d(0x1a1)][_0x28726d(0xf4)]),$['throttleTime'](0x10))[_0x28726d(0x271)](()=>{const _0x1c6dd8=_0x28726d;this[_0x1c6dd8(0x2ee)]();}));}};Ee=Mt([q(0x1,a['Inject'](V[_0x13f674(0x1ee)])),q(0x2,a[_0x13f674(0x2d0)](F)),q(0x3,a[_0x13f674(0x39c)]),q(0x4,a[_0x13f674(0x2d0)](a[_0x13f674(0x2a5)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x13f674(0x104)]{constructor(_0x19591c,_0x441c74){const _0x2c5bf8=_0x13f674;super(_0x19591c,_0x441c74),_(this,_0x2c5bf8(0x151)),_(this,'_hovered',!0x1),_(this,_0x2c5bf8(0x31c)),_(this,_0x2c5bf8(0x1ea),''),_(this,'_labelPosition','top'),_(this,_0x2c5bf8(0x128)),(_0x441c74&&this['setShapeProps'](_0x441c74),this[_0x2c5bf8(0x25e)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2c5bf8(0x218)][_0x2c5bf8(0x2ef)](()=>this[_0x2c5bf8(0x24e)]({'hovered':!0x1})));}[_0x13f674(0x24e)](_0x2d4c08){const _0x5c0eb1=_0x13f674;var _0x487b7c,_0x1d6897,_0x1ba88d,_0x695ca1,_0x11b701,_0x39493c;this['_color']=(_0x487b7c=_0x2d4c08['color'])!=null?_0x487b7c:this[_0x5c0eb1(0x151)],this['_hovered']=(_0x1d6897=_0x2d4c08['hovered'])!=null?_0x1d6897:this[_0x5c0eb1(0x1fa)],this[_0x5c0eb1(0x31c)]=(_0x1ba88d=_0x2d4c08['range'])!=null?_0x1ba88d:this[_0x5c0eb1(0x31c)],this['_name']=(_0x695ca1=_0x2d4c08[_0x5c0eb1(0x26b)])!=null?_0x695ca1:this['_name'],this[_0x5c0eb1(0x282)]=(_0x11b701=_0x2d4c08['labelPosition'])!=null?_0x11b701:this[_0x5c0eb1(0x282)],this[_0x5c0eb1(0x128)]=(_0x39493c=_0x2d4c08['backgroundColor'])!=null?_0x39493c:this[_0x5c0eb1(0x128)],this[_0x5c0eb1(0x100)]({'width':_0x2d4c08[_0x5c0eb1(0x13d)],'height':_0x2d4c08[_0x5c0eb1(0x18c)]});}[_0x13f674(0x242)](_0x583398){const _0x26db8c=_0x13f674,{row:_0x4a4ec1,column:_0xa43d09}=_0x583398;if(_0x4a4ec1>=this[_0x26db8c(0x31c)][_0x26db8c(0x189)]&&_0x4a4ec1<=this['_range'][_0x26db8c(0x1dd)]&&_0xa43d09>=this[_0x26db8c(0x31c)][_0x26db8c(0x255)]&&_0xa43d09<=this['_range'][_0x26db8c(0x1b8)]){this[_0x26db8c(0x24e)]({'hovered':!0x0});return;}this[_0x26db8c(0x24e)]({'hovered':!0x1});}[_0x13f674(0x305)](_0x514d40){return!0x1;}[_0x13f674(0x20b)](_0x1633ca){const _0x506997=_0x13f674;C[_0x506997(0x36b)][_0x506997(0x1e6)](_0x1633ca,{'width':this[_0x506997(0x13d)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x506997(0x151)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x506997(0x1fa)]&&(_0x1633ca['save'](),_0x1633ca[_0x506997(0x287)](0x1,0x0,0x0,0x1,this[_0x506997(0x13d)],this[_0x506997(0x282)]===_0x506997(0x10c)?0x0:-X),re[_0x506997(0x1e6)](_0x1633ca,{'text':this[_0x506997(0x1ea)],'color':this[_0x506997(0x151)]}),_0x1633ca[_0x506997(0x327)]());}}var wt=Object[_0x13f674(0x2a3)],yt=(_0x4717f5,_0x396351,_0x22594d,_0x51b57e)=>{for(var _0x91b696=_0x51b57e>0x1?void 0x0:_0x51b57e?wt(_0x396351,_0x22594d):_0x396351,_0x29a760=_0x4717f5['length']-0x1,_0x4c7c40;_0x29a760>=0x0;_0x29a760--)(_0x4c7c40=_0x4717f5[_0x29a760])&&(_0x91b696=_0x4c7c40(_0x91b696)||_0x91b696);return _0x91b696;},ue=(_0x42e76e,_0x5c1f2a)=>(_0x4d7ef2,_0x179d6a)=>_0x5c1f2a(_0x4d7ef2,_0x179d6a,_0x42e76e);const $t=0x1389;let Ce=class extends a[_0x13f674(0x1c3)]{constructor(_0x51fc65,_0x5a50bb,_0xf81ab7,_0x51e829){const _0x2ffa8c=_0x13f674;super(),_(this,_0x2ffa8c(0x264),new Set()),_(this,'_lastPointer',null),(this[_0x2ffa8c(0x209)]=_0x51fc65,this[_0x2ffa8c(0x313)]=_0x5a50bb,this['_collabCursorController']=_0xf81ab7,this[_0x2ffa8c(0x205)]=_0x51e829,this[_0x2ffa8c(0x11f)]());}[_0x13f674(0x11f)](){const _0x27cd19=_0x13f674;this[_0x27cd19(0x313)][_0x27cd19(0x2df)]['pipe']($[_0x27cd19(0x258)](this['dispose$']),$['switchMap'](_0x272870=>{const _0x40d630=_0x27cd19;if(_0x272870){const _0x4ef369=_0x272870['sheetId'];return I['combineLatest'](this[_0x40d630(0x2ac)]['getCollabCursors$'](this[_0x40d630(0x209)][_0x40d630(0x2b9)]),this[_0x40d630(0x205)][_0x40d630(0x1ec)])[_0x40d630(0x274)]($['map'](([_0x590de0,_0x44a5f2])=>{const _0x429d0b=_0x40d630,_0xf8402c=new Map();return _0x590de0[_0x429d0b(0x234)]((_0x1740f9,_0x21405f)=>{const _0x17d96e=_0x429d0b;if(_0x1740f9[_0x17d96e(0x150)]===_0x4ef369){const _0x1d500e={..._0x1740f9};_0x1d500e[_0x17d96e(0xf9)]=this[_0x17d96e(0x205)][_0x17d96e(0x3ae)](_0x1740f9[_0x17d96e(0xf9)]),_0xf8402c[_0x17d96e(0x38c)](_0x21405f,_0x1d500e);}}),{'skeleton':_0x272870,'cursors':_0xf8402c};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x27cd19(0x271)](({skeleton:_0x14fca2,cursors:_0x24c2e0})=>{const _0x386fe2=_0x27cd19;this[_0x386fe2(0x229)](),_0x14fca2&&this[_0x386fe2(0x2d3)](_0x14fca2,_0x24c2e0);}),this[_0x27cd19(0x313)][_0x27cd19(0x2df)][_0x27cd19(0x271)](_0x21ce9c=>{const _0x3e9521=_0x27cd19;if(_0x21ce9c==null)return;const {skeleton:_0x323714}=_0x21ce9c,{scene:_0x2b751b}=this[_0x3e9521(0x209)];_0x2b751b[_0x3e9521(0x1de)][_0x3e9521(0x2ef)](a[_0x3e9521(0x16f)](_0x1f0cd9=>{const _0x117e2b=_0x3e9521;var _0x1f56a9,_0x2ae044;const {offsetX:_0xd53d08,offsetY:_0x136e82}=_0x1f0cd9,{x:_0x4803cc,y:_0x481ccd}=_0x2b751b['getRelativeToViewportCoord'](C[_0x117e2b(0x2fa)][_0x117e2b(0x25c)]([_0xd53d08,_0x136e82])),{scaleX:_0x595e16,scaleY:_0x360a94}=_0x2b751b['getAncestorScale'](),_0x1f7ea9=_0x2b751b['getViewport'](C[_0x117e2b(0x273)][_0x117e2b(0x2a6)]),_0x5f12cc=_0x2b751b[_0x117e2b(0x2b1)](C[_0x117e2b(0x2fa)][_0x117e2b(0x25c)]([_0x4803cc,_0x481ccd]),_0x1f7ea9),_0xd396cd=_0x323714[_0x117e2b(0x39f)](_0xd53d08,_0x136e82,_0x595e16,_0x360a94,_0x5f12cc);((_0x1f56a9=this[_0x117e2b(0x384)])==null?void 0x0:_0x1f56a9[_0x117e2b(0x17e)])===_0xd396cd['column']&&((_0x2ae044=this[_0x117e2b(0x384)])==null?void 0x0:_0x2ae044[_0x117e2b(0x119)])===_0xd396cd['row']||this[_0x117e2b(0x264)]['forEach'](_0x3e7ca0=>{const _0x4c7c03=_0x117e2b;_0x3e7ca0[_0x4c7c03(0x242)](_0xd396cd);});},0x64));});}[_0x13f674(0x2d3)](_0xee261e,_0x3b0700){const _0x66724e=_0x13f674;var _0x567424;const _0x5ed8e3=(_0x567424=this[_0x66724e(0x313)][_0x66724e(0x31b)]())==null?void 0x0:_0x567424[_0x66724e(0x132)];if(!_0x5ed8e3)return;const _0x54c3cb=this['_getSheetObject']();if(!_0x54c3cb)return;this[_0x66724e(0x264)][_0x66724e(0x234)](_0x454eb1=>{const _0x5540ae=_0x66724e;_0x454eb1[_0x5540ae(0x355)]();});const {scene:_0x3958fb}=_0x54c3cb,_0x2f6ac2=xt(Array[_0x66724e(0x178)](_0x3b0700[_0x66724e(0x28e)]()))[_0x66724e(0x10a)](_0x2c1bb4=>{const _0x2ce087=_0x66724e,{color:_0x268ce7,range:_0x5cdfdd,name:_0x374c95,selection:_0x43c085,sheetID:_0x2ded8e}=_0x2c1bb4,{startColumn:_0x24de3e,startRow:_0x51cde8,endColumn:_0x2e2ecc,endRow:_0x31a951}=_0x5cdfdd,_0x4c1044=J['getCoordByCell'](_0x51cde8,_0x24de3e,_0x3958fb,_0x5ed8e3),_0x74682=J[_0x2ce087(0x1c8)](_0x31a951,_0x2e2ecc,_0x3958fb,_0x5ed8e3),{columnHeaderHeightAndMarginTop:_0x2f0510}=_0x5ed8e3,{startX:_0x5202d6,startY:_0x4a3ea0}=_0x4c1044,{endX:_0x150b2d,endY:_0x4b67a9}=_0x74682,_0x481afb=_0x150b2d-_0x5202d6,_0x4fba04=_0x4b67a9-_0x4a3ea0,_0x33713a={'labelPosition':_0x4a3ea0-_0x2f0510>=X?_0x2ce087(0x12e):_0x2ce087(0x10c),'sheetID':_0x2ded8e,'range':_0x5cdfdd,'color':_0x268ce7,'name':_0x374c95,'selection':_0x43c085,'left':_0x5202d6,'top':_0x4a3ea0,'width':_0x481afb,'height':_0x4fba04,'evented':!0x1,'zIndex':$t};return new je(_0x374c95,_0x33713a);});_0x3958fb[_0x66724e(0x333)](_0x2f6ac2,At),this[_0x66724e(0x264)]=new Set(_0x2f6ac2);}[_0x13f674(0x229)](){const _0x5648df=_0x13f674;var _0x414dbb;(_0x414dbb=this['_cursors'])==null||_0x414dbb[_0x5648df(0x234)](_0x10d175=>_0x10d175[_0x5648df(0x163)]());}[_0x13f674(0x3b0)](){const _0x297122=_0x13f674;return J[_0x297122(0x381)](this[_0x297122(0x209)][_0x297122(0x349)],this[_0x297122(0x209)]);}};Ce=yt([ue(0x1,a[_0x13f674(0x2d0)](J[_0x13f674(0x293)])),ue(0x2,a[_0x13f674(0x2d0)](F)),ue(0x3,a['Inject'](a['ThemeService']))],Ce);function _0x2045(_0x284d54,_0x40f79e){const _0x129525=_0x1295();return _0x2045=function(_0x204547,_0x3fd44f){_0x204547=_0x204547-0xe9;let _0x51dc73=_0x129525[_0x204547];return _0x51dc73;},_0x2045(_0x284d54,_0x40f79e);}function xt(_0x4213a6){const _0x42af39=_0x13f674,_0x29f7e2=new Map();return _0x4213a6[_0x42af39(0x234)](_0x41a4d1=>{const _0x1fb1f2=_0x42af39;if(_0x29f7e2[_0x1fb1f2(0x2f0)](_0x41a4d1[_0x1fb1f2(0x2e1)])){const _0x2563c1=_0x29f7e2[_0x1fb1f2(0x1ab)](_0x41a4d1[_0x1fb1f2(0x2e1)]);_0x2563c1[_0x1fb1f2(0x26b)]+=',\x20'+_0x41a4d1[_0x1fb1f2(0x26b)];}else _0x29f7e2[_0x1fb1f2(0x38c)](_0x41a4d1[_0x1fb1f2(0x2e1)],_0x41a4d1);}),Array[_0x42af39(0x178)](_0x29f7e2['values']());}var Bt=Object[_0x13f674(0x2a3)],Ft=(_0x3c6ecf,_0x40fbb8,_0x7a9fdc,_0x9ea0a5)=>{const _0x3deb9d=_0x13f674;for(var _0x6dd7a4=_0x9ea0a5>0x1?void 0x0:_0x9ea0a5?Bt(_0x40fbb8,_0x7a9fdc):_0x40fbb8,_0x3d2da7=_0x3c6ecf[_0x3deb9d(0x187)]-0x1,_0x1ef38e;_0x3d2da7>=0x0;_0x3d2da7--)(_0x1ef38e=_0x3c6ecf[_0x3d2da7])&&(_0x6dd7a4=_0x1ef38e(_0x6dd7a4)||_0x6dd7a4);return _0x6dd7a4;},y=(_0x293b53,_0x6038ea)=>(_0x57bc8e,_0x222695)=>_0x6038ea(_0x57bc8e,_0x222695,_0x293b53);let Z=class extends a[_0x13f674(0x335)]{constructor(_0x562050,_0x2e8aec,_0x2c33c6,_0x4a15fe,_0x398d2d,_0x930139){const _0x5970c1=_0x13f674;super(),this[_0x5970c1(0x2ea)]=_0x562050,this[_0x5970c1(0x20d)]=_0x2e8aec,this[_0x5970c1(0x375)]=_0x2c33c6,this[_0x5970c1(0x37e)]=_0x4a15fe,this['_notificationService']=_0x398d2d,this['_localeService']=_0x930139,this['_setupBeforeClosingHandler'](),this[_0x5970c1(0x2af)]();}[_0x13f674(0x1a0)](){const _0x4755f9=_0x13f674;this[_0x4755f9(0x347)](this[_0x4755f9(0x2ea)]['registerBeforeClose'](()=>{const _0x487c2e=_0x4755f9;if(this['_localCacheService'][_0x487c2e(0x301)][_0x487c2e(0x340)])return this['_localeService']['t'](_0x487c2e(0x372));}));}[_0x13f674(0x2af)](){const _0x483c29=_0x13f674;this[_0x483c29(0x347)](this['_collaborationUIEventService']['event$'][_0x483c29(0x271)](_0x33336d=>{const _0x5b8e9c=_0x483c29;_0x33336d['id']===u[_0x5b8e9c(0x29b)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x5b8e9c(0x1b4)]({'type':T['MessageType'][_0x5b8e9c(0x2cc)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x2f9))}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x18f)]&&this['_messageService']['show']({'type':T[_0x5b8e9c(0x364)]['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x33336d['id']===u[_0x5b8e9c(0x29b)]['PERMISSION_DENIED']&&this[_0x5b8e9c(0x294)]['show']({'title':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x142)),'content':this['_localeService']['t'](_0x5b8e9c(0x116)),'type':_0x5b8e9c(0x2d4),'duration':0x0}),_0x33336d['id']===u['CollaborationUIEventId'][_0x5b8e9c(0x102)]&&this[_0x5b8e9c(0x37e)]['show']({'type':T[_0x5b8e9c(0x364)][_0x5b8e9c(0x24b)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x196))+'('+_0x33336d[_0x5b8e9c(0x177)]+')'}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x1d6)]&&this['_messageService'][_0x5b8e9c(0x1b4)]({'type':T['MessageType'][_0x5b8e9c(0x2cc)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x33336d['data']||'')}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x278)]&&this[_0x5b8e9c(0x37e)][_0x5b8e9c(0x1b4)]({'type':T[_0x5b8e9c(0x364)][_0x5b8e9c(0x2cc)],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x207))}),_0x33336d['id']===u[_0x5b8e9c(0x29b)][_0x5b8e9c(0x110)]&&this[_0x5b8e9c(0x37e)][_0x5b8e9c(0x1b4)]({'type':T[_0x5b8e9c(0x364)]['Error'],'content':this[_0x5b8e9c(0x36a)]['t'](_0x5b8e9c(0x329))}),_0x33336d['id']===u['CollaborationUIEventId'][_0x5b8e9c(0x161)]&&this[_0x5b8e9c(0x37e)][_0x5b8e9c(0x1b4)]({'type':T[_0x5b8e9c(0x364)]['Error'],'content':this['_localeService']['t'](_0x5b8e9c(0x30f))});}));}};Z=Ft([y(0x0,O[_0x13f674(0x2c0)]),y(0x1,u[_0x13f674(0x131)]),y(0x2,a[_0x13f674(0x2d0)](u[_0x13f674(0x35d)])),y(0x3,O[_0x13f674(0x38b)]),y(0x4,O['INotificationService']),y(0x5,a[_0x13f674(0x2d0)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x5208d8,_0x55dcaf,_0x2c13ad,_0x1c1c10)=>{const _0x558722=_0x13f674;for(var _0x18b782=_0x1c1c10>0x1?void 0x0:_0x1c1c10?jt(_0x55dcaf,_0x2c13ad):_0x55dcaf,_0x1c5368=_0x5208d8[_0x558722(0x187)]-0x1,_0x5ec59b;_0x1c5368>=0x0;_0x1c5368--)(_0x5ec59b=_0x5208d8[_0x1c5368])&&(_0x18b782=_0x5ec59b(_0x18b782)||_0x18b782);return _0x18b782;},z=(_0x2c2985,_0x58456e)=>(_0x29f208,_0x405a6e)=>_0x58456e(_0x29f208,_0x405a6e,_0x2c2985);let Q=class extends a[_0x13f674(0x335)]{constructor(_0x4b16d5,_0x26576b,_0x42651e,_0x2cf883){const _0xc8c4c=_0x13f674;super(),_(this,_0xc8c4c(0x33f)),(this['_injector']=_0x4b16d5,this[_0xc8c4c(0x2c3)]=_0x26576b,this[_0xc8c4c(0x156)]=_0x42651e,this[_0xc8c4c(0x23f)]=_0x2cf883,this['_init']());}[_0x13f674(0x11f)](){const _0x26c415=_0x13f674;this[_0x26c415(0x350)](),this['_initUnhandledRejectionListener'](),this[_0x26c415(0x2da)](),this[_0x26c415(0x285)]();}['_initUserListener'](){const _0x56bc28=_0x13f674;this[_0x56bc28(0x347)](this[_0x56bc28(0x23f)][_0x56bc28(0x247)]['subscribe'](_0x4f4f6c=>{const _0x4878b6=_0x56bc28;this[_0x4878b6(0x33f)]=_0x4f4f6c==null?void 0x0:_0x4f4f6c[_0x4878b6(0x254)];}));}[_0x13f674(0x350)](){const _0x357b27=_0x13f674,_0x19386e=_0x571d6a=>{const _0x1d8a5d=_0x2045;var _0x4d1f42;this[_0x1d8a5d(0x195)]('error',_0x1d8a5d(0x216)+_0x571d6a[_0x1d8a5d(0x10e)]+_0x1d8a5d(0x28a)+_0x571d6a[_0x1d8a5d(0x272)]+':'+_0x571d6a[_0x1d8a5d(0x25f)]+':'+_0x571d6a[_0x1d8a5d(0x346)]+'\x0a'+(((_0x4d1f42=_0x571d6a[_0x1d8a5d(0x2d4)])==null?void 0x0:_0x4d1f42[_0x1d8a5d(0x373)])||''));};window[_0x357b27(0x337)](_0x357b27(0x2d4),_0x19386e),this[_0x357b27(0x347)](()=>{const _0x1adca1=_0x357b27;window[_0x1adca1(0x1a7)](_0x1adca1(0x2d4),_0x19386e);});}[_0x13f674(0x379)](){const _0x3e9a3e=_0x13f674,_0x16cae9=_0x4886d8=>{const _0x59ae90=_0x2045;this['_uploadLog'](_0x59ae90(0x2d4),'[Unhandled\x20Rejection]:\x20'+_0x4886d8['reason']);};window[_0x3e9a3e(0x337)](_0x3e9a3e(0x363),_0x16cae9),this['disposeWithMe'](()=>{const _0x7c0285=_0x3e9a3e;window[_0x7c0285(0x1a7)](_0x7c0285(0x363),_0x16cae9);});}[_0x13f674(0x2da)](){const _0x4a8b53=_0x13f674,_0x1bc2e2=this[_0x4a8b53(0x156)][_0x4a8b53(0x2d4)][_0x4a8b53(0x33b)](this[_0x4a8b53(0x156)]);this['_logService']['error']=(..._0xf07c84)=>{const _0x4b6344=_0x4a8b53,_0x1facfd=_0xf07c84[_0x4b6344(0x10a)](_0x68f366=>_0x68f366 instanceof Error?_0x68f366[_0x4b6344(0x10e)]+'\x0a'+_0x68f366[_0x4b6344(0x373)]:String(_0x68f366))['join']('\x20');this['_uploadLog'](_0x4b6344(0x2d4),'[LogService\x20Error]:\x20'+_0x1facfd),_0x1bc2e2(..._0xf07c84);},this[_0x4a8b53(0x347)](()=>{const _0x2b70c5=_0x4a8b53;this[_0x2b70c5(0x156)][_0x2b70c5(0x2d4)]=_0x1bc2e2;});}[_0x13f674(0x195)](_0x124580,_0x26ddd1){const _0x2f6931=_0x13f674;try{const _0x35687d={'userId':this[_0x2f6931(0x33f)],'logLabel':_0x124580,'content':_0x26ddd1};this[_0x2f6931(0x2c3)][_0x2f6931(0x351)]('/universer-api/frontend/logs',{'body':_0x35687d})[_0x2f6931(0x227)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),z(0x1,a[_0x13f674(0x2d0)](x[_0x13f674(0x168)])),z(0x2,a['ILogService']),z(0x3,a[_0x13f674(0x2d0)](u['CollaborationSessionService']))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x13f674(0x2a3)],Wt=(_0x2acc91,_0x17ca94,_0x2edfb1,_0x4c0ae9)=>{for(var _0x537dfd=_0x4c0ae9>0x1?void 0x0:_0x4c0ae9?Ht(_0x17ca94,_0x2edfb1):_0x17ca94,_0x4c1549=_0x2acc91['length']-0x1,_0x5edc5f;_0x4c1549>=0x0;_0x4c1549--)(_0x5edc5f=_0x2acc91[_0x4c1549])&&(_0x537dfd=_0x5edc5f(_0x537dfd)||_0x537dfd);return _0x537dfd;},Ae=(_0x55fb3d,_0x109928)=>(_0x322ecd,_0x4e7723)=>_0x109928(_0x322ecd,_0x4e7723,_0x55fb3d);let ee=class{constructor(_0x53925d,_0x5df3cd){this['_transformService']=_0x53925d,this['_renderManagerService']=_0x5df3cd;}[_0x13f674(0x314)](_0x5ba6da){const _0x203130=_0x13f674;this[_0x203130(0x2a0)](_0x5ba6da),this[_0x203130(0x29c)](_0x5ba6da);}[_0x13f674(0x115)](_0x32d5e2){const _0x2b19a4=_0x13f674,{unitID:_0x5295fb}=_0x32d5e2,_0x339650=this[_0x2b19a4(0x2f8)][_0x2b19a4(0x1d7)](_0x5295fb)[_0x2b19a4(0x18b)](p[_0x2b19a4(0x248)]),{redoCache:_0x548c76}=_0x339650[_0x2b19a4(0x14e)]();if(_0x548c76[_0x2b19a4(0x187)]===0x0)return _0x32d5e2;let _0x4afb68=a[_0x2b19a4(0x105)]['deepClone'](_0x32d5e2[_0x2b19a4(0x22b)][0x0]);for(let _0x3607f5=0x0;_0x3607f5<_0x548c76[_0x2b19a4(0x187)];_0x3607f5++){const _0x42ae71={'id':_0x2b19a4(0x182),'params':{..._0x548c76[_0x3607f5]}},_0x25e6e7=this[_0x2b19a4(0x39a)]['transformMutation'](_0x4afb68,_0x42ae71,!0x1);if(g['isTransformMutationFailure'](_0x25e6e7))throw _0x25e6e7[_0x2b19a4(0x2d4)];_0x4afb68=_0x25e6e7[_0x2b19a4(0xf0)];}return{...a[_0x2b19a4(0x105)][_0x2b19a4(0x1a9)](_0x32d5e2),'mutations':[_0x4afb68]};}['_transformUndoRedoStack'](_0x26ec13){const _0x3ad0ec=_0x13f674,{unitID:_0xd7187b}=_0x26ec13,_0x7c0e12=this['_renderManagerService'][_0x3ad0ec(0x1d7)](_0xd7187b)[_0x3ad0ec(0x18b)](p[_0x3ad0ec(0x248)]),{undoCache:_0x2225b9,redoCache:_0x580ba7}=_0x7c0e12[_0x3ad0ec(0x14e)]();if(_0x2225b9[_0x3ad0ec(0x187)]===0x0||_0x580ba7['length']===0x0)return;const _0x5cce78=[],_0xe13e90=[];let _0x35b6f9=a[_0x3ad0ec(0x105)]['deepClone'](_0x26ec13[_0x3ad0ec(0x22b)][0x0]),_0x51b7fe=a[_0x3ad0ec(0x105)][_0x3ad0ec(0x1a9)](_0x26ec13[_0x3ad0ec(0x22b)][0x0]);for(let _0x476d2e=_0x2225b9[_0x3ad0ec(0x187)]-0x1;_0x476d2e>=0x0;_0x476d2e--){const _0x4d6316={'id':'doc.mutation.rich-text-editing','params':{..._0x2225b9[_0x476d2e]}},_0x45b0dd={'id':_0x3ad0ec(0x182),'params':{..._0x580ba7[_0x476d2e]}},_0x45bd8e=this['_transformService'][_0x3ad0ec(0x143)](_0x35b6f9,_0x4d6316,!0x1),_0x2a77bf=this[_0x3ad0ec(0x39a)][_0x3ad0ec(0x143)](_0x51b7fe,_0x45b0dd,!0x1);if(g[_0x3ad0ec(0x3af)](_0x45bd8e))throw _0x45bd8e['error'];if(g[_0x3ad0ec(0x3af)](_0x2a77bf))throw _0x2a77bf[_0x3ad0ec(0x2d4)];_0x5cce78['unshift'](_0x45bd8e[_0x3ad0ec(0x307)][_0x3ad0ec(0x17c)]),_0xe13e90['unshift'](_0x2a77bf[_0x3ad0ec(0x307)][_0x3ad0ec(0x17c)]),_0x35b6f9=_0x45bd8e[_0x3ad0ec(0xf0)],_0x51b7fe=_0x2a77bf[_0x3ad0ec(0xf0)];}_0x7c0e12[_0x3ad0ec(0x210)]({'undoCache':_0x5cce78,'redoCache':_0xe13e90});}['_transformPreviousActiveRange'](_0x3c8e41){const _0x187ac7=_0x13f674,{unitID:_0x4c07d2}=_0x3c8e41,_0x1012ff=this[_0x187ac7(0x2f8)]['getRenderById'](_0x4c07d2)[_0x187ac7(0x18b)](p[_0x187ac7(0x248)]),_0x151461=_0x1012ff[_0x187ac7(0xf7)]();if(_0x151461==null)return;const _0x34af0a=[{'id':_0x187ac7(0x182),'params':{'unitId':_0x3c8e41[_0x187ac7(0x123)],'actions':null,'textRanges':[_0x151461]}}],_0x28221c=this[_0x187ac7(0x39a)]['transformMutationsWithChangeset'](_0x3c8e41,_0x34af0a);if(!g[_0x187ac7(0x11a)](_0x28221c))throw _0x28221c[_0x187ac7(0x2d4)];const _0x258ec1=_0x28221c[_0x187ac7(0x307)][0x0][_0x187ac7(0x17c)]['textRanges'];Array[_0x187ac7(0x27f)](_0x258ec1)&&_0x258ec1[_0x187ac7(0x187)]&&_0x1012ff[_0x187ac7(0x1e7)](_0x258ec1[0x0]);}};ee=Wt([Ae(0x0,g[_0x13f674(0x26f)]),Ae(0x1,C[_0x13f674(0x31e)])],ee);var Vt=Object[_0x13f674(0x2a3)],Gt=(_0x47357e,_0x2d15a1,_0x378925,_0xb63610)=>{for(var _0x4ea596=_0xb63610>0x1?void 0x0:_0xb63610?Vt(_0x2d15a1,_0x378925):_0x2d15a1,_0x1fde96=_0x47357e['length']-0x1,_0x2f8516;_0x1fde96>=0x0;_0x1fde96--)(_0x2f8516=_0x47357e[_0x1fde96])&&(_0x4ea596=_0x2f8516(_0x4ea596)||_0x4ea596);return _0x4ea596;},Ie=(_0x200c9a,_0xcdfd9b)=>(_0x4d7d4f,_0x5be58d)=>_0xcdfd9b(_0x4d7d4f,_0x5be58d,_0x200c9a);let te=class{constructor(_0x29cde2,_0x4c14ac,_0x2b7a3b){const _0x2d3da3=_0x13f674;this[_0x2d3da3(0x2f4)]=_0x29cde2,this['_transformService']=_0x4c14ac,this[_0x2d3da3(0x1c6)]=_0x2b7a3b;}[_0x13f674(0x2c6)](_0x792e00){const _0x22b1b3=_0x13f674;this[_0x22b1b3(0x14b)](_0x792e00);}[_0x13f674(0x115)](_0x3eea27){const _0x3ab253=_0x13f674,{unitID:_0x2bd0fe}=_0x3eea27,{collaboration:_0xbb4678}=this[_0x3ab253(0x1c6)][_0x3ab253(0x10b)](_0x2bd0fe);if(_0xbb4678[_0x3ab253(0x187)]===0x0)return _0x3eea27;let _0x118c1f=a[_0x3ab253(0x105)][_0x3ab253(0x1a9)](_0x3eea27['mutations'][0x0]);for(let _0x5eb677=0x0;_0x5eb677<_0xbb4678[_0x3ab253(0x187)];_0x5eb677++){const _0xfc1619={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbb4678[_0x5eb677][_0x3ab253(0x2b9)],..._0xbb4678[_0x5eb677][_0x3ab253(0x228)]}},_0x3fb642=this[_0x3ab253(0x39a)][_0x3ab253(0x143)](_0x118c1f,_0xfc1619,!0x1);if(g[_0x3ab253(0x3af)](_0x3fb642))throw _0x3fb642[_0x3ab253(0x2d4)];_0x118c1f=_0x3fb642[_0x3ab253(0xf0)];}return{...a['Tools'][_0x3ab253(0x1a9)](_0x3eea27),'mutations':[_0x118c1f]};}[_0x13f674(0x14b)](_0x2271f0){const _0x4fe7eb=_0x13f674,{unitID:_0xa3cfae}=_0x2271f0,{history:_0x202cfb,collaboration:_0x472779}=this[_0x4fe7eb(0x1c6)][_0x4fe7eb(0x10b)](_0xa3cfae);if(_0x202cfb['length']===0x0&&_0x472779[_0x4fe7eb(0x187)]===0x0)return;const _0x8a38c7=[],_0x24eaf1=[];let _0x14258d=a[_0x4fe7eb(0x105)]['deepClone'](_0x2271f0[_0x4fe7eb(0x22b)][0x0]),_0x22cc69=a[_0x4fe7eb(0x105)][_0x4fe7eb(0x1a9)](_0x2271f0[_0x4fe7eb(0x22b)][0x0]);for(let _0xc93cd6=_0x202cfb['length']-0x1;_0xc93cd6>=0x0;_0xc93cd6--){const _0x130753={'id':_0x4fe7eb(0x182),'params':{'unitId':_0x202cfb[_0xc93cd6][_0x4fe7eb(0x2b9)],..._0x202cfb[_0xc93cd6][_0x4fe7eb(0x213)]}},_0x36f1be={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x202cfb[_0xc93cd6][_0x4fe7eb(0x2b9)],..._0x202cfb[_0xc93cd6][_0x4fe7eb(0x228)]}},_0x401b77=this[_0x4fe7eb(0x39a)]['transformMutation'](_0x14258d,_0x130753,!0x1),_0x113978=this[_0x4fe7eb(0x39a)][_0x4fe7eb(0x143)](_0x22cc69,_0x36f1be,!0x1);if(g[_0x4fe7eb(0x3af)](_0x401b77))throw _0x401b77[_0x4fe7eb(0x2d4)];if(g[_0x4fe7eb(0x3af)](_0x113978))throw _0x113978[_0x4fe7eb(0x2d4)];_0x8a38c7[_0x4fe7eb(0x219)]({..._0x202cfb[_0xc93cd6],'undoState':_0x401b77[_0x4fe7eb(0x307)][_0x4fe7eb(0x17c)],'redoState':_0x113978[_0x4fe7eb(0x307)][_0x4fe7eb(0x17c)]}),_0x14258d=_0x401b77[_0x4fe7eb(0xf0)],_0x22cc69=_0x113978['m1Prime'];}_0x14258d=a[_0x4fe7eb(0x105)]['deepClone'](_0x2271f0[_0x4fe7eb(0x22b)][0x0]),_0x22cc69=a[_0x4fe7eb(0x105)][_0x4fe7eb(0x1a9)](_0x2271f0[_0x4fe7eb(0x22b)][0x0]);for(let _0xe0cde1=_0x472779[_0x4fe7eb(0x187)]-0x1;_0xe0cde1>=0x0;_0xe0cde1--){const _0x1345e3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x472779[_0xe0cde1][_0x4fe7eb(0x2b9)],..._0x472779[_0xe0cde1][_0x4fe7eb(0x213)]}},_0x5ca19f={'id':_0x4fe7eb(0x182),'params':{'unitId':_0x472779[_0xe0cde1][_0x4fe7eb(0x2b9)],..._0x472779[_0xe0cde1][_0x4fe7eb(0x228)]}},_0x335535=this['_transformService']['transformMutation'](_0x14258d,_0x1345e3,!0x1),_0x385c97=this['_transformService'][_0x4fe7eb(0x143)](_0x22cc69,_0x5ca19f,!0x1);if(g[_0x4fe7eb(0x3af)](_0x335535))throw _0x335535['error'];if(g[_0x4fe7eb(0x3af)](_0x385c97))throw _0x385c97['error'];_0x24eaf1['unshift']({..._0x472779[_0xe0cde1],'undoState':_0x335535['m2Prime'][_0x4fe7eb(0x17c)],'redoState':_0x385c97[_0x4fe7eb(0x307)][_0x4fe7eb(0x17c)]}),_0x14258d=_0x335535[_0x4fe7eb(0xf0)],_0x22cc69=_0x385c97['m1Prime'];}this['_docStateChangeManagerService'][_0x4fe7eb(0x22f)](_0xa3cfae,{'history':_0x8a38c7,'collaboration':_0x24eaf1});}};te=Gt([Ie(0x0,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),Ie(0x1,g['ITransformService']),Ie(0x2,a['Inject'](p[_0x13f674(0x206)]))],te);var Xt=Object[_0x13f674(0x2a3)],Kt=(_0x2c4981,_0x4ef4c4,_0x39d665,_0x16a1ba)=>{const _0x4af471=_0x13f674;for(var _0x2046d6=_0x16a1ba>0x1?void 0x0:_0x16a1ba?Xt(_0x4ef4c4,_0x39d665):_0x4ef4c4,_0x46c6f4=_0x2c4981[_0x4af471(0x187)]-0x1,_0x1e9e2f;_0x46c6f4>=0x0;_0x46c6f4--)(_0x1e9e2f=_0x2c4981[_0x46c6f4])&&(_0x2046d6=_0x1e9e2f(_0x2046d6)||_0x2046d6);return _0x2046d6;},Pe=(_0x230408,_0x25ff48)=>(_0x43ac6b,_0x45a094)=>_0x25ff48(_0x43ac6b,_0x45a094,_0x230408);let se=class{constructor(_0x3de428,_0x29326e){const _0x53de84=_0x13f674;this[_0x53de84(0x2f4)]=_0x3de428,this[_0x53de84(0x39a)]=_0x29326e;}[_0x13f674(0x283)](_0x335406){const _0x39d96b=_0x13f674;var _0x227d86;const _0x4b6703=this[_0x39d96b(0x2f4)][_0x39d96b(0x1ab)](V[_0x39d96b(0x1cb)]),_0xd21636=(_0x227d86=_0x4b6703['getDocRanges']())!=null?_0x227d86:[];if(_0xd21636[_0x39d96b(0x187)]===0x0)return;const _0x19a9e3=_0x335406[_0x39d96b(0x123)],_0x2e8cb8=[{'id':_0x39d96b(0x182),'params':{'unitId':_0x19a9e3,'actions':null,'textRanges':_0xd21636}}],_0x385c24=this['_transformService'][_0x39d96b(0x243)](_0x335406,_0x2e8cb8);if(!g[_0x39d96b(0x11a)](_0x385c24))throw _0x385c24['error'];const _0x164c3f=_0x385c24[_0x39d96b(0x307)][0x0][_0x39d96b(0x17c)]['textRanges'];Array[_0x39d96b(0x27f)](_0x164c3f)&&_0x164c3f['length']&&_0x4b6703[_0x39d96b(0x358)](_0x164c3f,{'unitId':_0x19a9e3,'subUnitId':_0x19a9e3},!0x1);}};se=Kt([Pe(0x0,a[_0x13f674(0x2d0)](a['Injector'])),Pe(0x1,g[_0x13f674(0x26f)])],se);var qt=Object[_0x13f674(0x2a3)],zt=(_0x5e723c,_0x500f85,_0xd59271,_0x1e8095)=>{const _0x195c5f=_0x13f674;for(var _0x336873=_0x1e8095>0x1?void 0x0:_0x1e8095?qt(_0x500f85,_0xd59271):_0x500f85,_0x2ad9d3=_0x5e723c[_0x195c5f(0x187)]-0x1,_0x17d551;_0x2ad9d3>=0x0;_0x2ad9d3--)(_0x17d551=_0x5e723c[_0x2ad9d3])&&(_0x336873=_0x17d551(_0x336873)||_0x336873);return _0x336873;},N=(_0xfce057,_0x25a1a0)=>(_0x46bade,_0x1e7e68)=>_0x25a1a0(_0x46bade,_0x1e7e68,_0xfce057);let ie=class extends a[_0x13f674(0x335)]{constructor(_0x613a58,_0xca4819,_0x56ef14,_0x19e53d,_0x2fff8a,_0x260421,_0x205550,_0x3a5a61){const _0x117b30=_0x13f674;super(),_(this,_0x117b30(0x2ba),new I[(_0x117b30(0x200))](u[_0x117b30(0x265)][_0x117b30(0x36e)])),(this[_0x117b30(0x1c6)]=_0x613a58,this[_0x117b30(0x194)]=_0xca4819,this[_0x117b30(0x383)]=_0x56ef14,this[_0x117b30(0x22d)]=_0x19e53d,this[_0x117b30(0x2a7)]=_0x2fff8a,this['_docSyncEditingCollabCursorService']=_0x260421,this[_0x117b30(0x37e)]=_0x205550,this[_0x117b30(0x36a)]=_0x3a5a61,this[_0x117b30(0x1e8)]());}[_0x13f674(0x1e8)](){const _0x689e09=_0x13f674;this[_0x689e09(0x347)](this[_0x689e09(0x194)]['entityInit$']['subscribe'](_0x3ebffb=>{const _0x2fc7b1=_0x689e09,_0x5d3566=this[_0x2fc7b1(0x1c6)][_0x2fc7b1(0x250)][_0x2fc7b1(0x271)](_0x932415=>{const _0x38c083=_0x2fc7b1;if(_0x932415==null)return;const {unitId:_0x321842,redoState:_0x18d460,commandId:_0x31eb41}=_0x932415;if(_0x321842!==_0x3ebffb[_0x38c083(0x123)])return;const _0x3224b2={'id':_0x31eb41,'type':a[_0x38c083(0x2e0)]['MUTATION'],'params':{'unitId':_0x321842,'actions':_0x18d460[_0x38c083(0x2a2)],'textRanges':null}};_0x3ebffb['onLocalMutation'](_0x3224b2);});if(_0x3ebffb[_0x2fc7b1(0x347)](_0x5d3566),_0x3ebffb instanceof u['DocCollaborationEntity']){const _0x4c6516={'onTransformIME':_0x234912=>this[_0x2fc7b1(0x383)]['transformIMECache'](_0x234912),'onTransformState':_0xb1ccb1=>this[_0x2fc7b1(0x22d)]['transformStateCache'](_0xb1ccb1),'onTransformSelections':_0x12ff4=>this[_0x2fc7b1(0x2a7)][_0x2fc7b1(0x283)](_0x12ff4),'onSyncEditingCollabCursor':_0x301c91=>this[_0x2fc7b1(0x1fd)][_0x2fc7b1(0x328)](_0x301c91),'onTransformRemoteChangesetByIMECache':_0x4bdeb6=>this[_0x2fc7b1(0x383)][_0x2fc7b1(0x115)](_0x4bdeb6),'onTransformRemoteChangesetByStateCache':_0x4a5909=>this[_0x2fc7b1(0x22d)][_0x2fc7b1(0x115)](_0x4a5909)};_0x3ebffb[_0x2fc7b1(0x290)](_0x4c6516);}}));}};ie=zt([N(0x0,a['Inject'](p['DocStateChangeManagerService'])),N(0x1,a[_0x13f674(0x2d0)](u[_0x13f674(0x35a)])),N(0x2,a['Inject'](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x13f674(0x2d0)](se)),N(0x5,a[_0x13f674(0x2d0)](be)),N(0x6,O[_0x13f674(0x38b)]),N(0x7,a[_0x13f674(0x2d0)](a[_0x13f674(0x256)]))],ie);var G=(_0xafc522=>(_0xafc522[_0xafc522[_0x13f674(0x27a)]=0x0]='UNDEFINED',_0xafc522[_0xafc522['OK']=0x1]='OK',_0xafc522[_0xafc522['INTERNAL_ERROR']=0x2]=_0x13f674(0x2f6),_0xafc522[_0xafc522[_0x13f674(0x2a4)]=0x3]='PERMISSION_DENIED',_0xafc522[_0xafc522[_0x13f674(0x11e)]=0x4]=_0x13f674(0x11e),_0xafc522[_0xafc522[_0x13f674(0x19f)]=0x5]='UNAUTHENTICATED',_0xafc522[_0xafc522[_0x13f674(0x39d)]=0x6]=_0x13f674(0x39d),_0xafc522[_0xafc522[_0x13f674(0x32c)]=0x7]=_0x13f674(0x32c),_0xafc522[_0xafc522['TOO_MANY_REQUESTS']=0x8]=_0x13f674(0x2d6),_0xafc522[_0xafc522[_0x13f674(0xea)]=0x9]=_0x13f674(0xea),_0xafc522[_0xafc522['LOGIN_FAILED']=0xa]=_0x13f674(0x2c8),_0xafc522[_0xafc522[_0x13f674(0x15d)]=0xb]=_0x13f674(0x15d),_0xafc522[_0xafc522[_0x13f674(0x1b0)]=0xc]=_0x13f674(0x1b0),_0xafc522[_0xafc522[_0x13f674(0x122)]=0xd]=_0x13f674(0x122),_0xafc522[_0xafc522[_0x13f674(0x1ed)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xafc522[_0xafc522[_0x13f674(0x15b)]=0xf]=_0x13f674(0x15b),_0xafc522[_0xafc522[_0x13f674(0x361)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0xafc522[_0xafc522['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x13f674(0x374),_0xafc522[_0xafc522[_0x13f674(0x3a3)]=0x65]=_0x13f674(0x3a3),_0xafc522[_0xafc522[_0x13f674(0x238)]=0xc9]=_0x13f674(0x238),_0xafc522[_0xafc522[_0x13f674(0x295)]=0xca]=_0x13f674(0x295),_0xafc522[_0xafc522[_0x13f674(0x251)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xafc522[_0xafc522['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xafc522[_0xafc522['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x13f674(0x170),_0xafc522[_0xafc522[_0x13f674(0x321)]=0x1773]=_0x13f674(0x321),_0xafc522[_0xafc522['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0xafc522[_0xafc522['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x13f674(0x1c7),_0xafc522[_0xafc522['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x13f674(0x101),_0xafc522[_0xafc522[_0x13f674(0x33c)]=0x1b5c]=_0x13f674(0x33c),_0xafc522[_0xafc522[_0x13f674(0x18d)]=0x1b5d]=_0x13f674(0x18d),_0xafc522[_0xafc522['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x13f674(0x1ce),_0xafc522[_0xafc522[_0x13f674(0xed)]=0x2329]=_0x13f674(0xed),_0xafc522[_0xafc522[_0x13f674(0x2e2)]=0x232a]=_0x13f674(0x2e2),_0xafc522[_0xafc522[_0x13f674(0x352)]=0x232b]=_0x13f674(0x352),_0xafc522[_0xafc522[_0x13f674(0x1d9)]=0x232c]=_0x13f674(0x1d9),_0xafc522[_0xafc522['LICENSE_DISTRO_REJECTED']=0x232d]=_0x13f674(0x15f),_0xafc522[_0xafc522['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x13f674(0x286),_0xafc522[_0xafc522[_0x13f674(0x118)]=0x2712]=_0x13f674(0x118),_0xafc522[_0xafc522[_0x13f674(0x3ac)]=0x2713]=_0x13f674(0x3ac),_0xafc522[_0xafc522[_0x13f674(0x1dc)]=0x2714]=_0x13f674(0x1dc),_0xafc522[_0xafc522[_0x13f674(0x32d)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xafc522[_0xafc522[_0x13f674(0x3aa)]=0x271b]=_0x13f674(0x3aa),_0xafc522[_0xafc522[_0x13f674(0x245)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xafc522[_0xafc522[_0x13f674(0x304)]=0x271d]=_0x13f674(0x304),_0xafc522[_0xafc522['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xafc522[_0xafc522['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xafc522[_0xafc522[_0x13f674(0x320)]=0x2720]=_0x13f674(0x320),_0xafc522[_0xafc522[_0x13f674(0x103)]=0x2af9]=_0x13f674(0x103),_0xafc522[_0xafc522[_0x13f674(0x212)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xafc522[_0xafc522[_0x13f674(0x343)]=0x2ee2]=_0x13f674(0x343),_0xafc522[_0xafc522[_0x13f674(0x184)]=0x2ee3]=_0x13f674(0x184),_0xafc522[_0xafc522[_0x13f674(0x378)]=0x2ee4]=_0x13f674(0x378),_0xafc522[_0xafc522[_0x13f674(0x12a)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0xafc522[_0xafc522[_0x13f674(0x3ad)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xafc522[_0xafc522['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x13f674(0x120),_0xafc522[_0xafc522[_0x13f674(0x1d8)]=0x32cb]=_0x13f674(0x1d8),_0xafc522[_0xafc522['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x13f674(0x1f3),_0xafc522[_0xafc522['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0xafc522[_0xafc522[_0x13f674(0x306)]=0x36b3]=_0x13f674(0x306),_0xafc522[_0xafc522[_0x13f674(0x1c2)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0xafc522[_0xafc522['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x13f674(0x2f2),_0xafc522[_0xafc522[_0x13f674(0x201)]=0x3716]=_0x13f674(0x201),_0xafc522[_0xafc522['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xafc522[_0xafc522['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0xafc522[_0xafc522[_0x13f674(0x289)]=0x3a99]='REDEMPTION_INVALID_CODE',_0xafc522[_0xafc522[_0x13f674(0xfa)]=0x3a9a]=_0x13f674(0xfa),_0xafc522[_0xafc522['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x13f674(0x25b),_0xafc522[_0xafc522[_0x13f674(0x1c5)]=0x3a9c]=_0x13f674(0x1c5),_0xafc522[_0xafc522[_0x13f674(0x392)]=0x3a9d]=_0x13f674(0x392),_0xafc522[_0xafc522[_0x13f674(0x130)]=0x3a9e]=_0x13f674(0x130),_0xafc522[_0xafc522[_0x13f674(0x176)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0xafc522[_0xafc522[_0x13f674(0x330)]=0x3e81]=_0x13f674(0x330),_0xafc522[_0xafc522[_0x13f674(0x2d1)]=-0x1]=_0x13f674(0x2d1),_0xafc522))(G||{});function Jt(_0x1fd89e){const _0x1cd293=_0x13f674;var _0xbd578e,_0x49e089;const _0x3ebc69=(_0xbd578e=_0x1fd89e['stageInfo'])==null?void 0x0:_0xbd578e[_0x1cd293(0x126)],_0x1a06d8=((_0x49e089=_0x1fd89e['stageInfo'])==null?void 0x0:_0x49e089[_0x1cd293(0x20e)])||0x0;return _0x3ebc69===B[_0x1cd293(0x1ae)][_0x1cd293(0x162)]&&_0x1a06d8>0x0;}function Zt(_0x2453eb){const _0x1ba2be=_0x13f674;return _0x2453eb[_0x1ba2be(0x1f9)]===B['FormulaExecutedStateType'][_0x1ba2be(0xeb)];}var Qt=Object[_0x13f674(0x2a3)],es=(_0x356f48,_0x811624,_0x200399,_0x2abd8f)=>{for(var _0x22401c=_0x2abd8f>0x1?void 0x0:_0x2abd8f?Qt(_0x811624,_0x200399):_0x811624,_0x11bab0=_0x356f48['length']-0x1,_0x2aa238;_0x11bab0>=0x0;_0x11bab0--)(_0x2aa238=_0x356f48[_0x11bab0])&&(_0x22401c=_0x2aa238(_0x22401c)||_0x22401c);return _0x22401c;},L=(_0x2d411e,_0x29835f)=>(_0x1c8e8c,_0x4e05a2)=>_0x29835f(_0x1c8e8c,_0x4e05a2,_0x2d411e);const ts='/universer-api/license/formula/limit/status',ss=_0x13f674(0x35f),is=_0x13f674(0x382);let ne=class extends a[_0x13f674(0x335)]{constructor(_0x5e85f8,_0x205a9a,_0x5e114c,_0x1ce6fe,_0x116589,_0x15e4b3,_0x3450be){const _0xef871f=_0x13f674;super(),_(this,_0xef871f(0x140),null),_(this,_0xef871f(0x399),0x0),_(this,_0xef871f(0x2c7),0x0),_(this,'_taskIds',[]),_(this,_0xef871f(0x3a9),0x0),(this[_0xef871f(0x37e)]=_0x5e85f8,this['_commandService']=_0x205a9a,this[_0xef871f(0x1a5)]=_0x5e114c,this[_0xef871f(0x2c3)]=_0x1ce6fe,this[_0xef871f(0x33a)]=_0x116589,this[_0xef871f(0x156)]=_0x15e4b3,this['_localeService']=_0x3450be,this[_0xef871f(0x160)]());}['_initCommandInterceptor'](){const _0x4dcf9f=_0x13f674;this['disposeWithMe'](this['_commandService']['beforeCommandExecuted']((_0x1a6d6b,_0x371804)=>{const _0x227a0e=_0x2045;var _0x522ec9;if(_0x1a6d6b['id']!==B[_0x227a0e(0x1d2)]['id'])return;const _0x4a5799=_0x1a6d6b[_0x227a0e(0x17c)];if(!this[_0x227a0e(0x39e)]((_0x522ec9=_0x4a5799[_0x227a0e(0x135)])!=null?_0x522ec9:[]))return;if(!this[_0x227a0e(0x389)]())throw this[_0x227a0e(0x37d)](_0x1a6d6b,_0x371804),this[_0x227a0e(0x376)](),new a[(_0x227a0e(0x19e))]();})),this[_0x4dcf9f(0x347)](this[_0x4dcf9f(0x318)][_0x4dcf9f(0x3a7)]((_0x202fef,_0x6c640c)=>{const _0x17da50=_0x4dcf9f;if(_0x202fef['id']!==B[_0x17da50(0x279)]['id'])return;const _0x2874e6=_0x202fef[_0x17da50(0x17c)];if(Jt(_0x2874e6)){const _0x3d9c16=a['generateRandomId']();this[_0x17da50(0x319)][_0x17da50(0x169)](_0x3d9c16),this['_startCalculationLimit'](_0x3d9c16);}else{if(Zt(_0x2874e6)&&this['_taskIds'][_0x17da50(0x187)]>0x0){const _0x173bed=this[_0x17da50(0x319)][_0x17da50(0x1be)]();this['_releaseCalculationLimit'](_0x173bed);}}}));}['dispose'](){const _0x21bc4e=_0x13f674;super[_0x21bc4e(0x163)](),this[_0x21bc4e(0x27d)](),this[_0x21bc4e(0x319)]=[],this[_0x21bc4e(0x2c7)]=0x0,this[_0x21bc4e(0x399)]=0x0,this[_0x21bc4e(0x3a9)]=0x0;}async[_0x13f674(0x37d)](_0x5ebbf3,_0x424ee7){const _0x279557=_0x13f674;for(let _0x344e44=0x0;_0x344e44<0x1e;_0x344e44++)try{if(await this[_0x279557(0x35e)](),this[_0x279557(0x389)]()){this['_applyCommand'](_0x5ebbf3,_0x424ee7),this['_messageService'][_0x279557(0x1b4)]({'content':this[_0x279557(0x36a)]['t']('formula.calculation.started'),'type':T[_0x279557(0x364)][_0x279557(0x226)]});return;}await new Promise(_0x59d1d0=>{const _0x35cdea=_0x279557;this[_0x35cdea(0x140)]=window['setTimeout'](_0x59d1d0,0x3e8);});}catch(_0x5cb197){this[_0x279557(0x156)][_0x279557(0x2d4)](_0x5cb197);}this[_0x279557(0x37e)][_0x279557(0x1b4)]({'content':this[_0x279557(0x36a)]['t']('formula.calculation.unable'),'type':T[_0x279557(0x364)]['Error']});}[_0x13f674(0x1e5)](_0x426119,_0x4a2585){const _0x5ba2bd=_0x13f674;try{this['_commandService'][_0x5ba2bd(0x1a8)](_0x426119['id'],_0x426119[_0x5ba2bd(0x17c)],_0x4a2585);}catch(_0x1c99dd){this['_logService'][_0x5ba2bd(0x2d4)](_0x1c99dd);}}[_0x13f674(0x37f)](_0xb93795,_0x50ab9e){const _0x41f86f=_0x13f674;_0x50ab9e<this[_0x41f86f(0x3a9)]||(this['_lastResponseTimestamp']=_0x50ab9e,this[_0x41f86f(0x399)]=Number['parseInt'](_0xb93795[_0x41f86f(0x21b)]),this[_0x41f86f(0x2c7)]=Number['parseInt'](_0xb93795['currentUsage']));}async[_0x13f674(0x26e)](_0x135485){const _0x5b34ff=_0x13f674;var _0x513249,_0x47c297;const _0x3c9310=Date[_0x5b34ff(0x28c)]();try{const _0x4ab066=((_0x513249=this[_0x5b34ff(0x1a5)][_0x5b34ff(0x244)](u[_0x5b34ff(0xf3)]))==null?void 0x0:_0x513249[_0x5b34ff(0x262)])||ss,_0x376b21=(await this[_0x5b34ff(0x2c3)][_0x5b34ff(0x351)](_0x4ab066,{'body':JSON['stringify']({'taskId':_0x135485})}))['body'];if(((_0x47c297=_0x376b21['error'])==null?void 0x0:_0x47c297[_0x5b34ff(0x23b)])!==G['OK'])return;this[_0x5b34ff(0x37f)](_0x376b21[_0x5b34ff(0x1d0)],_0x3c9310);}catch(_0x2ffd40){this['_logService'][_0x5b34ff(0x2d4)](_0x2ffd40);}}async['_getFormulaLimitStatus'](_0xaaa2f6){const _0x47639b=_0x13f674;var _0x3df58c,_0x404eee;const _0x3c9849=Date[_0x47639b(0x28c)]();try{const _0x1e74af=((_0x3df58c=this[_0x47639b(0x1a5)]['getConfig'](u[_0x47639b(0xf3)]))==null?void 0x0:_0x3df58c[_0x47639b(0x1b2)])||ts,_0x4e4d63=_0xaaa2f6?_0x1e74af+_0x47639b(0x14a)+encodeURIComponent(_0xaaa2f6):_0x1e74af,_0x1d41f7=(await this[_0x47639b(0x2c3)][_0x47639b(0x1ab)](_0x4e4d63))['body'];if(((_0x404eee=_0x1d41f7['error'])==null?void 0x0:_0x404eee['code'])!==G['OK'])return;this[_0x47639b(0x37f)](_0x1d41f7[_0x47639b(0x1d0)],_0x3c9849);}catch(_0x6516b7){this[_0x47639b(0x156)][_0x47639b(0x2d4)](_0x6516b7);}}async[_0x13f674(0x1c0)](_0x440a2b){const _0x2b9d5a=_0x13f674;var _0x55ec25,_0x5d2c5b;const _0x1b049b=Date[_0x2b9d5a(0x28c)]();try{const _0x12b390=((_0x55ec25=this[_0x2b9d5a(0x1a5)]['getConfig'](u[_0x2b9d5a(0xf3)]))==null?void 0x0:_0x55ec25['releaseFormulaLimitUrl'])||is,_0x4f1f53=(await this[_0x2b9d5a(0x2c3)][_0x2b9d5a(0x351)](_0x12b390,{'body':JSON[_0x2b9d5a(0x15c)]({'taskId':_0x440a2b})}))[_0x2b9d5a(0x2de)];if(((_0x5d2c5b=_0x4f1f53[_0x2b9d5a(0x2d4)])==null?void 0x0:_0x5d2c5b[_0x2b9d5a(0x23b)])!==G['OK'])return;this[_0x2b9d5a(0x37f)](_0x4f1f53['limitInfo'],_0x1b049b);}catch(_0x2e9324){this[_0x2b9d5a(0x156)][_0x2b9d5a(0x2d4)](_0x2e9324);}}[_0x13f674(0x389)](){const _0x16f663=_0x13f674;return this[_0x16f663(0x399)]===0x0?!0x0:this[_0x16f663(0x399)]-this[_0x16f663(0x2c7)]>0x0;}['_clearPolling'](){const _0x445bf7=_0x13f674;this[_0x445bf7(0x140)]&&(clearTimeout(this[_0x445bf7(0x140)]),this[_0x445bf7(0x140)]=null);}['_showGuardMessage'](){const _0x411799=_0x13f674;this['_messageService'][_0x411799(0x1b4)]({'content':this[_0x411799(0x36a)]['t'](_0x411799(0x370)),'type':T[_0x411799(0x364)][_0x411799(0x144)]});}[_0x13f674(0x39e)](_0x1d395f){const _0x207634=_0x13f674;for(const _0x44137b of _0x1d395f){const {unitId:_0x14037e,sheetId:_0x4afe96,range:_0x51ab33}=_0x44137b,_0x8e4e05=this[_0x207634(0x33a)][_0x207634(0x3a5)](_0x14037e);if(!_0x8e4e05)continue;const _0x1cce49=_0x8e4e05[_0x207634(0x23a)](_0x4afe96);if(!_0x1cce49)continue;const _0x88153d=_0x1cce49['getCellMatrix']();for(let _0x28fddb=_0x51ab33[_0x207634(0x189)];_0x28fddb<=_0x51ab33[_0x207634(0x1dd)];_0x28fddb++)for(let _0x15e8e0=_0x51ab33[_0x207634(0x255)];_0x15e8e0<=_0x51ab33[_0x207634(0x1b8)];_0x15e8e0++){const _0x1ae1a5=_0x88153d[_0x207634(0x1bd)](_0x28fddb,_0x15e8e0);if(_0x1ae1a5&&(a['isFormulaString'](_0x1ae1a5['f'])||a[_0x207634(0x367)](_0x1ae1a5['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x13f674(0x38b)])),L(0x1,a[_0x13f674(0x39c)]),L(0x2,a['IConfigService']),L(0x3,a[_0x13f674(0x2d0)](x[_0x13f674(0x168)])),L(0x4,a[_0x13f674(0xf2)]),L(0x5,a[_0x13f674(0x2d2)]),L(0x6,a['Inject'](a['LocaleService']))],ne);var ns=Object[_0x13f674(0x2a3)],rs=(_0x23cd7e,_0x1a2d8d,_0x22637a,_0x5e5602)=>{const _0x1f5665=_0x13f674;for(var _0x2708b3=_0x5e5602>0x1?void 0x0:_0x5e5602?ns(_0x1a2d8d,_0x22637a):_0x1a2d8d,_0x24360d=_0x23cd7e[_0x1f5665(0x187)]-0x1,_0x565abb;_0x24360d>=0x0;_0x24360d--)(_0x565abb=_0x23cd7e[_0x24360d])&&(_0x2708b3=_0x565abb(_0x2708b3)||_0x2708b3);return _0x2708b3;},de=(_0x51d9f9,_0x5d9062)=>(_0x5de3fe,_0x32192f)=>_0x5d9062(_0x5de3fe,_0x32192f,_0x51d9f9);let pe=class extends a[_0x13f674(0x335)]{constructor(_0x171b13,_0x58141f,_0x436542){const _0x30b702=_0x13f674;super(),_(this,_0x30b702(0x2f7),new Map()),_(this,_0x30b702(0x174),new Map()),_(this,'_disabled',!0x1),(this[_0x30b702(0x1a5)]=_0x171b13,this[_0x30b702(0x281)]=_0x58141f,this[_0x30b702(0xf1)]=_0x436542);}[_0x13f674(0x192)](){const _0x367406=_0x13f674;this[_0x367406(0x2b5)]=!0x0;}[_0x13f674(0x129)](){const _0x584b5e=_0x13f674;this[_0x584b5e(0x2b5)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x13f674(0x163)](){const _0x38efb4=_0x13f674;this[_0x38efb4(0x2aa)]()['then'](()=>super[_0x38efb4(0x163)]());}async[_0x13f674(0x38f)](_0x1dbb72){const _0x4fe9b4=_0x13f674;return this[_0x4fe9b4(0x2b5)]?null:this['_localStorageService'][_0x4fe9b4(0x1f8)](u['getLocalCacheKey'](_0x1dbb72));}async['saveOfflineData'](_0x27d5ab,_0x8ec93e){const _0x29a0e4=_0x13f674;return!!this['_localStorageService'][_0x29a0e4(0x239)](_0x27d5ab,_0x8ec93e);}['updateOfflineData'](_0xf16bb4,_0x26b810,_0x5d45d6,_0x16c4e4){const _0x4c202f=_0x13f674,_0x265843=this[_0x4c202f(0xf1)][_0x4c202f(0x1b1)](_0xf16bb4);this[_0x4c202f(0x2f7)][_0x4c202f(0x38c)](_0xf16bb4,{'unitID':_0xf16bb4,'type':_0x26b810,'awaitingChangeset':_0x5d45d6,'mutations':_0x16c4e4,'rev':_0x265843}),this[_0x4c202f(0x174)][_0x4c202f(0x2f0)](_0xf16bb4)||this['_scheduleSaving'](_0xf16bb4);}[_0x13f674(0x220)](_0x1f231e){const _0x1702f5=_0x13f674,_0x55150d=this[_0x1702f5(0x342)]();_0x55150d===0x0?this['_saveCache'](_0x1f231e):this[_0x1702f5(0x174)]['set'](_0x1f231e,setTimeout(()=>this[_0x1702f5(0x36c)](_0x1f231e),_0x55150d));}[_0x13f674(0x342)](){const _0x44bebd=_0x13f674;var _0x39d101;return(_0x39d101=this[_0x44bebd(0x1a5)][_0x44bebd(0x244)](u[_0x44bebd(0x1ac)]))!=null?_0x39d101:u[_0x44bebd(0x2b6)];}[_0x13f674(0x36c)](_0x5f587d){const _0x21bcac=_0x13f674,_0x589e40=this['_saveTaskMap'][_0x21bcac(0x1ab)](_0x5f587d);return _0x589e40!==void 0x0&&window[_0x21bcac(0x190)](_0x589e40),this[_0x21bcac(0x281)][_0x21bcac(0x239)](u['getLocalCacheKey'](_0x5f587d),this['_cachedData'][_0x21bcac(0x1ab)](_0x5f587d))[_0x21bcac(0x396)](()=>this[_0x21bcac(0x174)]['delete'](_0x5f587d));}async['exhaustSavingTask'](){const _0xf38e19=_0x13f674,_0x5ac4d4=[];this[_0xf38e19(0x174)]['forEach']((_0x3a037a,_0x1f0e8a)=>{const _0x3e07fb=_0xf38e19;window[_0x3e07fb(0x190)](_0x3a037a),_0x5ac4d4['push'](this[_0x3e07fb(0x36c)](_0x1f0e8a)[_0x3e07fb(0x396)](()=>{const _0x3f2df4=_0x3e07fb;this[_0x3f2df4(0x174)][_0x3f2df4(0x252)](_0x1f0e8a);}));}),await Promise[_0xf38e19(0x30a)](_0x5ac4d4);}};pe=rs([de(0x0,a[_0x13f674(0x1bc)]),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x13f674(0x2d0)](g[_0x13f674(0x1a6)]))],pe);class ke extends a['RxDisposable']{constructor(){const _0x116605=_0x13f674;super(),_(this,'urlChange$'),this[_0x116605(0x157)]=I[_0x116605(0x398)](window,_0x116605(0x1b9))[_0x116605(0x274)](I['takeUntil'](this['dispose$']),I[_0x116605(0x1ba)](0x1),I[_0x116605(0x15a)](void 0x0));}['setParam'](_0xcc8a55,_0x48abf4,_0x5303e4=!0x1){const _0x452897=_0x13f674,_0x558021=new URL(window['location'][_0x452897(0x121)]);_0x558021[_0x452897(0x1b3)][_0x452897(0x38c)](_0xcc8a55,_0x48abf4),_0x5303e4?window[_0x452897(0x2cf)][_0x452897(0x1da)]('','',_0x558021[_0x452897(0x13f)]()):window['history'][_0x452897(0x1d4)]('','',_0x558021[_0x452897(0x13f)]());}['removeParam'](_0x36e5f0,_0x3f5afb=!0x1){const _0x43c2bb=_0x13f674,_0x7f486a=new URL(window['location'][_0x43c2bb(0x121)]);_0x7f486a['searchParams'][_0x43c2bb(0x252)](_0x36e5f0),_0x3f5afb?window['history'][_0x43c2bb(0x1da)]('','',_0x7f486a[_0x43c2bb(0x13f)]()):window[_0x43c2bb(0x2cf)][_0x43c2bb(0x1d4)]('','',_0x7f486a['toString']());}[_0x13f674(0x2a8)](_0x5cbfd7){const _0x3c6a8f=_0x13f674;var _0x360a3a;return(_0x360a3a=new URL(window[_0x3c6a8f(0x1a4)][_0x3c6a8f(0x121)])[_0x3c6a8f(0x1b3)][_0x3c6a8f(0x1ab)](_0x5cbfd7))!=null?_0x360a3a:void 0x0;}}var os=Object[_0x13f674(0x180)],as=Object['getOwnPropertyDescriptor'],cs=(_0x53ac6d,_0x3268c0,_0x5596f0)=>_0x3268c0 in _0x53ac6d?os(_0x53ac6d,_0x3268c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5596f0}):_0x53ac6d[_0x3268c0]=_0x5596f0,ls=(_0x509a9e,_0x4dea35,_0x515a43,_0x289640)=>{for(var _0x2ba26f=_0x289640>0x1?void 0x0:_0x289640?as(_0x4dea35,_0x515a43):_0x4dea35,_0x5e0efa=_0x509a9e['length']-0x1,_0x11b767;_0x5e0efa>=0x0;_0x5e0efa--)(_0x11b767=_0x509a9e[_0x5e0efa])&&(_0x2ba26f=_0x11b767(_0x2ba26f)||_0x2ba26f);return _0x2ba26f;},Se=(_0x20b359,_0x28e783)=>(_0x910cd,_0x24ee38)=>_0x28e783(_0x910cd,_0x24ee38,_0x20b359),_s=(_0xdde35e,_0x4cb11f,_0x2ec6bd)=>cs(_0xdde35e,_0x4cb11f+'',_0x2ec6bd);const hs=_0x13f674(0x32f);exports[_0x13f674(0x312)]=class extends a[_0x13f674(0x34a)]{constructor(_0x420b58=Me,_0x440d81,_0x42b221,_0x1f46b1){const _0x4d73f7=_0x13f674;super(),this['_config']=_0x420b58,this[_0x4d73f7(0x2f8)]=_0x440d81,this[_0x4d73f7(0x2f4)]=_0x42b221,this[_0x4d73f7(0x1a5)]=_0x1f46b1;const {..._0x41caab}=a['merge']({},Me,this[_0x4d73f7(0x21a)]);this[_0x4d73f7(0x1a5)][_0x4d73f7(0x1f1)](Yt,_0x41caab);}[_0x13f674(0x270)](){const _0x258533=_0x13f674;this[_0x258533(0x261)](),this[_0x258533(0x25d)]();}[_0x13f674(0x158)](){const _0x41b25f=_0x13f674;this[_0x41b25f(0x26c)]();}[_0x13f674(0x261)](){const _0xf4c515=_0x13f674;var _0x269d52;const _0x1aa71c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0xf4c515(0x354)],{'useClass':x[_0xf4c515(0x1ca)]}],[u[_0xf4c515(0x131)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this['_config'][_0xf4c515(0x1fe)]&&_0x1aa71c[_0xf4c515(0x169)]([Q]),a['registerDependencies'](this[_0xf4c515(0x2f4)],a['mergeOverrideWithDependencies'](_0x1aa71c,(_0x269d52=this[_0xf4c515(0x21a)])==null?void 0x0:_0x269d52['override']));}[_0x13f674(0x26c)](){const _0xd39aa5=_0x13f674;this[_0xd39aa5(0x347)](this[_0xd39aa5(0x2f8)][_0xd39aa5(0x231)](a[_0xd39aa5(0x14d)][_0xd39aa5(0x2ce)],[Ee])),this[_0xd39aa5(0x347)](this[_0xd39aa5(0x2f8)][_0xd39aa5(0x231)](a[_0xd39aa5(0x14d)]['UNIVER_SHEET'],[Ce]));}[_0x13f674(0x25d)](){const _0x212ecc=_0x13f674;a['touchDependencies'](this['_injector'],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x212ecc(0x13e)]],[ne]]),this[_0x212ecc(0x21a)][_0x212ecc(0x1fe)]&&a['touchDependencies'](this[_0x212ecc(0x2f4)],[[Q]]);}},_s(exports[_0x13f674(0x312)],_0x13f674(0x2cd),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x13f674(0x3a6)](u[_0x13f674(0x291)]),Se(0x1,C[_0x13f674(0x31e)]),Se(0x2,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),Se(0x3,a[_0x13f674(0x1bc)])],exports[_0x13f674(0x312)]);var us=Object[_0x13f674(0x2a3)],Is=(_0x4e0982,_0x354ff3,_0x45a28e,_0x117aa6)=>{const _0xe93303=_0x13f674;for(var _0x1773f9=_0x117aa6>0x1?void 0x0:_0x117aa6?us(_0x354ff3,_0x45a28e):_0x354ff3,_0x261709=_0x4e0982[_0xe93303(0x187)]-0x1,_0x3f3287;_0x261709>=0x0;_0x261709--)(_0x3f3287=_0x4e0982[_0x261709])&&(_0x1773f9=_0x3f3287(_0x1773f9)||_0x1773f9);return _0x1773f9;},W=(_0x4f5a3b,_0x4332fe)=>(_0x4b9d26,_0x59fa33)=>_0x4332fe(_0x4b9d26,_0x59fa33,_0x4f5a3b);exports['BrowserCollaborationSocketService']=class extends u[_0x13f674(0x296)]{constructor(_0x42b6d9,_0x385be0,_0x15a733,_0x1e33f2,_0x4ffa21){super(_0x42b6d9,_0x385be0,_0x15a733,_0x1e33f2,_0x4ffa21);}async[_0x13f674(0x203)](_0x29c578){const _0x396166=_0x13f674,_0x376f45=await this[_0x396166(0x2b2)](),_0x590666=this[_0x396166(0x2b7)](_0x29c578,_0x376f45);return this[_0x396166(0x27c)](_0x590666);}[_0x13f674(0x2b7)](_0xc985c6,_0xdc6b26){const _0x2f582a=_0x13f674,_0x1b8f91=typeof window>'u'?new URL(_0xc985c6):new URL(_0xc985c6,window[_0x2f582a(0x1a4)][_0x2f582a(0x11c)]);_0x1b8f91[_0x2f582a(0x1b3)]['set'](_0x2f582a(0xe9),_0xdc6b26);const _0x2537b8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2f582a(0x1a4)][_0x2f582a(0x2a1)]);return _0x2537b8[_0x2f582a(0x1ab)](_0x2f582a(0x2eb))&&_0x1b8f91[_0x2f582a(0x1b3)]['set'](_0x2f582a(0x2eb),_0x2537b8['get']('runId')),_0x1b8f91[_0x2f582a(0x13f)]();}async['_getSessionTicket'](){const _0x27236b=_0x13f674;var _0x2a7646,_0x2f253e,_0x50fcc0;const _0x2b0833=this[_0x27236b(0x1a5)]['getConfig'](u[_0x27236b(0xf3)]),_0xf0feab=(_0x2a7646=_0x2b0833==null?void 0x0:_0x2b0833[_0x27236b(0x30d)])!=null?_0x2a7646:u[_0x27236b(0x3b1)];return(_0x50fcc0=(_0x2f253e=(await this[_0x27236b(0x2c3)][_0x27236b(0x1ab)](_0xf0feab,{'headers':{'Content-Type':'application/json'}}))[_0x27236b(0x2de)])==null?void 0x0:_0x2f253e[_0x27236b(0x303)])!=null?_0x50fcc0:'';}},exports[_0x13f674(0x1b6)]=Is([W(0x0,a[_0x13f674(0x2d0)](a[_0x13f674(0x324)])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x13f674(0x1bc)]),W(0x3,a[_0x13f674(0x2d2)]),W(0x4,g[_0x13f674(0x107)])],exports[_0x13f674(0x1b6)]);var ds=Object[_0x13f674(0x2a3)],Ss=(_0x36e9e0,_0x5d61e0,_0x4602b4,_0x5e8564)=>{for(var _0x2acbbd=_0x5e8564>0x1?void 0x0:_0x5e8564?ds(_0x5d61e0,_0x4602b4):_0x5d61e0,_0x4743bc=_0x36e9e0['length']-0x1,_0x43d0f4;_0x4743bc>=0x0;_0x4743bc--)(_0x43d0f4=_0x36e9e0[_0x4743bc])&&(_0x2acbbd=_0x43d0f4(_0x2acbbd)||_0x2acbbd);return _0x2acbbd;},fe=(_0x57e55f,_0x53f4d0)=>(_0x1e5dc8,_0xc17546)=>_0x53f4d0(_0x1e5dc8,_0xc17546,_0x57e55f);exports[_0x13f674(0x3a4)]=class extends a[_0x13f674(0x335)]{constructor(_0x5a6439,_0x163486,_0x1bac20){const _0x133658=_0x13f674;super(),this[_0x133658(0x11b)]=_0x5a6439,this[_0x133658(0x2c3)]=_0x163486,this[_0x133658(0x1a5)]=_0x1bac20;}async[_0x13f674(0x34b)](_0x2db1e2,_0x37334e,_0x36c348,..._0x588d7e){const _0x4a923e=_0x13f674;var _0x44cf6c,_0x96d370,_0x2acb88,_0x34b500;const _0x5c328d=this['_instanceService'][_0x4a923e(0x2db)]();if(!_0x5c328d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x241cd8=((_0x44cf6c=this['_configService']['getConfig'](u[_0x4a923e(0x106)]))!=null?_0x44cf6c:u[_0x4a923e(0x164)])+'/'+_0x2db1e2+_0x4a923e(0x221)+_0x37334e,_0x5c0697=new URL(window[_0x4a923e(0x1a4)][_0x4a923e(0x121)]),_0x5043d6={'scriptId':_0x2db1e2,'runId':(_0x96d370=_0x5c0697[_0x4a923e(0x1b3)][_0x4a923e(0x1ab)]('runId'))!=null?_0x96d370:'','function':_0x37334e,'unitId':_0x5c328d[_0x4a923e(0x15e)](),'argsOfFunction':JSON[_0x4a923e(0x15c)](_0x588d7e),'invokeId':(_0x2acb88=_0x36c348[_0x4a923e(0x3a2)])!=null?_0x2acb88:'','executionId':(_0x34b500=_0x36c348[_0x4a923e(0x2e9)])!=null?_0x34b500:''};try{const _0x20db6d=await this[_0x4a923e(0x2c3)]['post'](_0x241cd8,{'body':_0x5043d6});return _0x20db6d['body']['error']&&_0x20db6d['body']['error']['code']!==G['OK']?'Failed':_0x20db6d[_0x4a923e(0x2de)][_0x4a923e(0x3a0)];}catch{return _0x4a923e(0x300);}}},exports[_0x13f674(0x3a4)]=Ss([fe(0x0,a[_0x13f674(0xf2)]),fe(0x1,a[_0x13f674(0x2d0)](x[_0x13f674(0x168)])),fe(0x2,a[_0x13f674(0x1bc)])],exports[_0x13f674(0x3a4)]);const we=0x7530,ye=_0x13f674(0x230);class fs extends a[_0x13f674(0x335)]{constructor(){const _0x43b77c=_0x13f674;super(),_(this,_0x43b77c(0x29d),a[_0x43b77c(0x197)]()),_(this,_0x43b77c(0x113),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,_0x43b77c(0x16c),new Map()),_(this,_0x43b77c(0x153),new Map()),this[_0x43b77c(0x11f)]();}['dispose'](){const _0xef2a5e=_0x13f674;super[_0xef2a5e(0x163)](),this['_clearOtherTimers'][_0xef2a5e(0x234)]((_0x4b9aca,_0x42eff6)=>this[_0xef2a5e(0x322)](_0x42eff6)),this[_0xef2a5e(0x146)]&&window[_0xef2a5e(0x13b)](this[_0xef2a5e(0x146)]);}[_0x13f674(0x359)](_0x152576){const _0x1c81f4=_0x13f674;return this[_0x1c81f4(0x3ab)](_0x152576)[_0x1c81f4(0x274)](I[_0x1c81f4(0x1d3)]());}[_0x13f674(0x202)](_0x2a4d92){const _0x172fc3=_0x13f674;this[_0x172fc3(0x113)][_0x172fc3(0x340)]===0x0&&this['_scheduleHeartbeat'](),this[_0x172fc3(0x113)]['add'](_0x2a4d92),this['_send']({'type':0x0,'memberID':this[_0x172fc3(0x29d)],'unitIDs':[_0x2a4d92],'isForwarded':!0x1});}[_0x13f674(0x253)](_0x17bdfe){const _0x32634d=_0x13f674;this[_0x32634d(0x113)][_0x32634d(0x252)](_0x17bdfe),this['_selfUnitIDs'][_0x32634d(0x340)]===0x0&&this[_0x32634d(0x146)]&&window[_0x32634d(0x13b)](this['_heartbeatTimer']);}['_init'](){const _0x2526a6=_0x13f674;this[_0x2526a6(0x347)](a['toDisposable'](I[_0x2526a6(0x398)](window,_0x2526a6(0x17d))[_0x2526a6(0x271)](_0x20756a=>{const _0x1f6449=_0x2526a6;if(_0x20756a['key']!==ye||!_0x20756a[_0x1f6449(0x339)])return;const _0x2914d1=JSON['parse'](_0x20756a[_0x1f6449(0x339)]);this[_0x1f6449(0x17f)](_0x2914d1);}))),window[_0x2526a6(0x337)](_0x2526a6(0x2be),()=>this[_0x2526a6(0x30b)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2526a6(0x178)](this[_0x2526a6(0x113)])}));}[_0x13f674(0x17f)](_0x3ee80a){const _0x2c4eca=_0x13f674;switch(_0x3ee80a['type']){case 0x0:this[_0x2c4eca(0x2c2)](_0x3ee80a);break;case 0x1:this['_handleLeaveEvent'](_0x3ee80a);break;case 0x2:this[_0x2c4eca(0x141)](_0x3ee80a);break;}}[_0x13f674(0x2c2)](_0x3fc9e6){const _0x5484f4=_0x13f674,{unitIDs:_0x3fcc45,memberID:_0x10baba,isForwarded:_0x7932fa}=_0x3fc9e6;_0x3fcc45[_0x5484f4(0x234)](_0x4aedc8=>{const _0xa72cb2=_0x5484f4;if(!_0x7932fa&&this[_0xa72cb2(0x2dc)][_0xa72cb2(0x2f0)](_0x4aedc8)&&this[_0xa72cb2(0x3ab)](_0x4aedc8)[_0xa72cb2(0x3b4)](u[_0xa72cb2(0x13c)][_0xa72cb2(0x204)]),!this[_0xa72cb2(0x2dc)][_0xa72cb2(0x2f0)](_0x4aedc8)||!this['_unitOnClients'][_0xa72cb2(0x1ab)](_0x4aedc8)[_0xa72cb2(0x2f0)](_0x10baba)){const _0x20d36b=this[_0xa72cb2(0x2dc)][_0xa72cb2(0x1ab)](_0x4aedc8)||new Set();_0x20d36b[_0xa72cb2(0x388)](_0x10baba),this[_0xa72cb2(0x2dc)][_0xa72cb2(0x38c)](_0x4aedc8,_0x20d36b),this[_0xa72cb2(0x2b8)](_0x10baba);}}),_0x7932fa||this[_0x5484f4(0x30b)]({'type':0x0,'memberID':this[_0x5484f4(0x29d)],'unitIDs':[...this[_0x5484f4(0x113)]],'isForwarded':!0x0});}[_0x13f674(0x2b8)](_0x439a06){const _0xc0e443=_0x13f674;this[_0xc0e443(0x322)](_0x439a06);const _0x1907e6=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x2b04ce=>{_0x2b04ce['delete'](_0x439a06);});},we*0x2);this['_clearOtherTimers'][_0xc0e443(0x38c)](_0x439a06,_0x1907e6);}['_removeClearOtherTimer'](_0x1eaf97){const _0xdfd765=_0x13f674;if(this[_0xdfd765(0x16c)]['has'](_0x1eaf97)){const _0x84b807=this[_0xdfd765(0x16c)][_0xdfd765(0x1ab)](_0x1eaf97);_0x84b807&&window['clearTimeout'](_0x84b807),this[_0xdfd765(0x16c)][_0xdfd765(0x38c)](_0x1eaf97,null);}}[_0x13f674(0x2e3)](_0x31dd1a){const _0x432923=_0x13f674,{memberID:_0x5d5063,unitIDs:_0xc5e113}=_0x31dd1a;_0xc5e113[_0x432923(0x234)](_0x11bba4=>{const _0x4e558e=_0x432923;var _0x2e9db7;const _0x329ac3=this['_unitOnClients'][_0x4e558e(0x1ab)](_0x11bba4);_0x329ac3&&(_0x329ac3[_0x4e558e(0x252)](_0x5d5063),(_0x2e9db7=this[_0x4e558e(0x3ab)](_0x11bba4))==null||_0x2e9db7[_0x4e558e(0x3b4)](_0x329ac3['size']===0x0?u[_0x4e558e(0x13c)][_0x4e558e(0xf6)]:u[_0x4e558e(0x13c)]['OTHER_CLIENTS_EDITING']));}),this[_0x432923(0x322)](_0x5d5063);}['_handleHeartbeatEvent'](_0x2c8cca){const _0x3b80ec=_0x13f674;this[_0x3b80ec(0x2b8)](_0x2c8cca['memberID']);}[_0x13f674(0x30b)](_0x2e60ac){const _0x195971=_0x13f674;localStorage[_0x195971(0x239)](ye,JSON[_0x195971(0x15c)](_0x2e60ac));}[_0x13f674(0x21e)](){const _0x893ff=_0x13f674;this[_0x893ff(0x146)]=window[_0x893ff(0x37c)](()=>{const _0xc5a535=_0x893ff;this[_0xc5a535(0x30b)]({'type':0x2,'memberID':this[_0xc5a535(0x29d)]});},we);}[_0x13f674(0x3ab)](_0x455a37){const _0x54c7ea=_0x13f674;return this[_0x54c7ea(0x153)][_0x54c7ea(0x2f0)](_0x455a37)||this['_unitStatus'][_0x54c7ea(0x38c)](_0x455a37,new I[(_0x54c7ea(0x200))](u[_0x54c7ea(0x13c)][_0x54c7ea(0xf6)])),this['_unitStatus'][_0x54c7ea(0x1ab)](_0x455a37);}}exports[_0x13f674(0x31f)]=Oe,exports[_0x13f674(0x260)]=je,exports[_0x13f674(0x3b5)]=fs,exports[_0x13f674(0x34c)]=ke;