@univerjs-pro/collaboration-client-ui 0.12.1 → 0.12.2-nightly.202511290732

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 (53) 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 -1
  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 -1
  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 -1
  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/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +18 -18
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4885bf=_0x30e5;(function(_0x3fc461,_0xda0c53){const _0x24e182=_0x30e5,_0x41cc5f=_0x3fc461();while(!![]){try{const _0x4a2458=parseInt(_0x24e182(0x330))/0x1+-parseInt(_0x24e182(0x289))/0x2*(-parseInt(_0x24e182(0x246))/0x3)+-parseInt(_0x24e182(0xd7))/0x4*(-parseInt(_0x24e182(0x11e))/0x5)+parseInt(_0x24e182(0x1bd))/0x6+-parseInt(_0x24e182(0x123))/0x7+parseInt(_0x24e182(0x2d5))/0x8+-parseInt(_0x24e182(0x118))/0x9;if(_0x4a2458===_0xda0c53)break;else _0x41cc5f['push'](_0x41cc5f['shift']());}catch(_0x110fec){_0x41cc5f['push'](_0x41cc5f['shift']());}}}(_0x7782,0xe349b));var Xe=Object[_0x4885bf(0x1a3)],Ke=(_0x3543cf,_0xe4abd1,_0x5c82ad)=>_0xe4abd1 in _0x3543cf?Xe(_0x3543cf,_0xe4abd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c82ad}):_0x3543cf[_0xe4abd1]=_0x5c82ad,_=(_0x1553ce,_0x125197,_0x3b8170)=>Ke(_0x1553ce,typeof _0x125197!=_0x4885bf(0x1f1)?_0x125197+'':_0x125197,_0x3b8170);Object['defineProperty'](exports,Symbol[_0x4885bf(0x2f3)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),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:_0x189620,..._0x555e44}){const _0x3ef5f6=_0x4885bf,{icon:_0xc017b9,id:_0x5889c7,className:_0x15169e,extend:_0x5e8ef3,..._0x5a2bff}=_0x555e44,_0x5efc5f=(_0x3ef5f6(0xd0)+_0x5889c7+'\x20'+(_0x15169e||''))['trim'](),_0x4429dd=A[_0x3ef5f6(0x273)]('_'+Qe());return $e(_0xc017b9,''+_0x5889c7,{'defIds':_0xc017b9[_0x3ef5f6(0x13a)],'idSuffix':_0x4429dd[_0x3ef5f6(0x20f)]},{'ref':_0x189620,'className':_0x5efc5f,..._0x5a2bff},_0x5e8ef3);}function $e(_0x4f770a,_0x5eabde,_0x10e99c,_0x49bf6d,_0xdb0303){const _0xb26ad=_0x4885bf;return A['createElement'](_0x4f770a[_0xb26ad(0xfc)],{'key':_0x5eabde,...Je(_0x4f770a,_0x10e99c,_0xdb0303),..._0x49bf6d},(Ze(_0x4f770a,_0x10e99c)['children']||[])['map']((_0x47cff7,_0x1ff66e)=>$e(_0x47cff7,_0x5eabde+'-'+_0x4f770a[_0xb26ad(0xfc)]+'-'+_0x1ff66e,_0x10e99c,void 0x0,_0xdb0303)));}function Je(_0x510a6a,_0x8e9360,_0x2902f6){const _0x2deec2=_0x4885bf,_0x109d00={..._0x510a6a[_0x2deec2(0x323)]};_0x2902f6!=null&&_0x2902f6[_0x2deec2(0x362)]&&_0x109d00[_0x2deec2(0x15b)]===_0x2deec2(0x362)&&(_0x109d00[_0x2deec2(0x15b)]=_0x2902f6['colorChannel1']),_0x510a6a['tag']===_0x2deec2(0x1f5)&&_0x109d00['id']&&(_0x109d00['id']=_0x109d00['id']+_0x8e9360[_0x2deec2(0x1a6)]),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x49105d,_0xd14ecc])=>{const _0x4c1591=_0x2deec2;_0x49105d===_0x4c1591(0x1f5)&&typeof _0xd14ecc==_0x4c1591(0xdf)&&(_0x109d00[_0x49105d]=_0xd14ecc[_0x4c1591(0x15c)](/url\(#(.*)\)/,_0x4c1591(0x2eb)+_0x8e9360['idSuffix']+')'));});const {defIds:_0x2442bf}=_0x8e9360;return!_0x2442bf||_0x2442bf[_0x2deec2(0x12a)]===0x0||(_0x510a6a[_0x2deec2(0xfc)]===_0x2deec2(0x2c2)&&_0x109d00[_0x2deec2(0xd3)]&&(_0x109d00[_0x2deec2(0xd3)]=_0x109d00[_0x2deec2(0xd3)]+_0x8e9360['idSuffix']),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x75caea,_0x441cda])=>{const _0x553765=_0x2deec2;typeof _0x441cda==_0x553765(0xdf)&&(_0x109d00[_0x75caea]=_0x441cda[_0x553765(0x15c)](/url\(#(.*)\)/,_0x553765(0x2eb)+_0x8e9360[_0x553765(0x1a6)]+')'));})),_0x109d00;}function Ze(_0x3a4179,_0x22aeeb){const _0xaec302=_0x4885bf;var _0x215a26;const {defIds:_0x315598}=_0x22aeeb;return!_0x315598||_0x315598['length']===0x0?_0x3a4179:_0x3a4179[_0xaec302(0xfc)]===_0xaec302(0x325)&&((_0x215a26=_0x3a4179[_0xaec302(0x2ae)])!=null&&_0x215a26[_0xaec302(0x12a)])?{..._0x3a4179,'children':_0x3a4179[_0xaec302(0x2ae)][_0xaec302(0x2d7)](_0x296bb4=>typeof _0x296bb4[_0xaec302(0x323)]['id']==_0xaec302(0xdf)&&_0x315598&&_0x315598[_0xaec302(0x26b)](_0x296bb4[_0xaec302(0x323)]['id'])?{..._0x296bb4,'attrs':{..._0x296bb4[_0xaec302(0x323)],'id':_0x296bb4[_0xaec302(0x323)]['id']+_0x22aeeb[_0xaec302(0x1a6)]}}:_0x296bb4)}:_0x3a4179;}function Qe(){const _0x8999a=_0x4885bf;return Math['random']()['toString'](0x24)[_0x8999a(0x301)](0x2,0x8);}Te[_0x4885bf(0x1b9)]=_0x4885bf(0x19b);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4885bf(0x95),'viewBox':_0x4885bf(0x217),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x265)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x121),'strokeLinecap':_0x4885bf(0x2b5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':_0x4885bf(0x238)},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x4885bf(0x14e)](function(_0x1817ed,_0x570def){const _0x5dd070=_0x4885bf;return A['createElement'](Te,Object['assign']({},_0x1817ed,{'id':_0x5dd070(0x1b4),'ref':_0x570def,'icon':et}));});xe[_0x4885bf(0x1b9)]='OffLineIcon';const tt={'tag':_0x4885bf(0x19e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4885bf(0x35d),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x2da)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x33f),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4),'transform':_0x4885bf(0x1d3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A['forwardRef'](function(_0x36b1aa,_0x55dc12){const _0x39e107=_0x4885bf;return A[_0x39e107(0x28f)](Te,Object[_0x39e107(0x2fd)]({},_0x36b1aa,{'id':_0x39e107(0x2e1),'ref':_0x55dc12,'icon':tt}));});Be['displayName']=_0x4885bf(0xae);function st(_0x2278c7){const _0xe96a31=_0x4885bf;switch(_0x2278c7){case u[_0xe96a31(0x30d)][_0xe96a31(0x14b)]:return _0xe96a31(0x169);case u[_0xe96a31(0x30d)][_0xe96a31(0x2f5)]:return'collabStatus.conflict';case u[_0xe96a31(0x30d)][_0xe96a31(0x26c)]:return _0xe96a31(0x1e3);case u[_0xe96a31(0x30d)][_0xe96a31(0x333)]:return _0xe96a31(0xb5);case u[_0xe96a31(0x30d)][_0xe96a31(0x1bb)]:case u['CollaborationStatus'][_0xe96a31(0x150)]:return _0xe96a31(0x348);case u[_0xe96a31(0x30d)][_0xe96a31(0x11c)]:case u[_0xe96a31(0x30d)][_0xe96a31(0x256)]:return _0xe96a31(0x350);}}function it(_0x5c4e0a){const _0x13cabb=_0x4885bf,{status$:_0x13ad74}=_0x5c4e0a,_0x41482f=O[_0x13cabb(0x164)](_0x13ad74,u[_0x13cabb(0x30d)][_0x13cabb(0x333)]),_0x1d9131=O['useDependency'](a['LocaleService']),_0x42b504=O['useDependency'](u[_0x13cabb(0x307)]),_0x4a7a58=_0x41482f!==u['CollaborationStatus']['OFFLINE'],_0x2f54b1=_0x1d9131['t'](st(_0x41482f)),_0x37d8d6=_0x4a7a58?M['jsx'](Be,{}):M[_0x13cabb(0x1c0)](xe,{}),_0x37a081=A['useCallback'](()=>{const _0x50643f=_0x13cabb;_0x4a7a58||_0x42b504[_0x50643f(0x2f2)]();},[_0x4a7a58,_0x42b504]);function _0x100f61(){const _0x23b7ab=_0x13cabb;return M['jsxs'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x22b),'onClick':_0x37a081,'children':[M[_0x23b7ab(0x1c0)](_0x23b7ab(0x1b3),{'className':T['clsx'](_0x23b7ab(0x2e0),{'univer-text-green-500':_0x4a7a58,'univer-text-red-500':!_0x4a7a58}),'children':_0x37d8d6}),M['jsx'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x125),'children':_0x2f54b1})]});}return _0x4a7a58?_0x100f61():M['jsx'](T['Tooltip'],{'title':_0x1d9131['t'](_0x13cabb(0x14a)),'children':_0x100f61()});}var nt=Object[_0x4885bf(0xee)],rt=(_0x32e89f,_0x44c546,_0x5db335,_0x1247e7)=>{const _0x18970d=_0x4885bf;for(var _0x2480fa=_0x1247e7>0x1?void 0x0:_0x1247e7?nt(_0x44c546,_0x5db335):_0x44c546,_0x18d3e1=_0x32e89f[_0x18970d(0x12a)]-0x1,_0x56a540;_0x18d3e1>=0x0;_0x18d3e1--)(_0x56a540=_0x32e89f[_0x18d3e1])&&(_0x2480fa=_0x56a540(_0x2480fa)||_0x2480fa);return _0x2480fa;},K=(_0x1c4470,_0x2f0304)=>(_0x549941,_0x390658)=>_0x2f0304(_0x549941,_0x390658,_0x1c4470);exports[_0x4885bf(0x197)]=class extends a['Disposable']{constructor(_0x5be5a7,_0xc4a4a1,_0x385483,_0x12912e){const _0x28db3e=_0x4885bf;super(),_(this,_0x28db3e(0x14d),new I[(_0x28db3e(0x2cb))](u[_0x28db3e(0x30d)][_0x28db3e(0x333)])),(this[_0x28db3e(0x189)]=_0x5be5a7,this['_injector']=_0xc4a4a1,this['_collaborationController']=_0x385483,this['_uiPartsService']=_0x12912e,this[_0x28db3e(0x252)](),this[_0x28db3e(0x1d0)]());}['_initStatusListener'](){const _0x242cad=_0x4885bf;this['disposeWithMe'](this[_0x242cad(0x189)][_0x242cad(0x9b)][_0x242cad(0x153)](I[_0x242cad(0xea)](()=>{const _0x211b8c=_0x242cad,_0x15d9b5=this[_0x211b8c(0x189)][_0x211b8c(0x277)]();return _0x15d9b5?this['_collaborationController']['getCollabEntity$'](_0x15d9b5[_0x211b8c(0x2fb)]()):I['of'](null);}),I[_0x242cad(0xea)](_0x364133=>_0x364133?_0x364133['status$']:I['of'](u[_0x242cad(0x30d)][_0x242cad(0x333)])))['subscribe'](_0x4b9420=>{const _0x77785c=_0x242cad;this[_0x77785c(0x14d)]['next'](_0x4b9420);}));}[_0x4885bf(0x252)](){const _0x5a9755=_0x4885bf;this[_0x5a9755(0x354)](this[_0x5a9755(0x284)][_0x5a9755(0x34d)](O[_0x5a9755(0x2d9)][_0x5a9755(0x320)],()=>O['connectInjector'](ot({'status$':this[_0x5a9755(0x14d)][_0x5a9755(0x251)]()}),this[_0x5a9755(0x17e)])));}},exports[_0x4885bf(0x197)]=rt([K(0x0,a[_0x4885bf(0x2b8)]),K(0x1,a['Inject'](a[_0x4885bf(0x199)])),K(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),K(0x3,O[_0x4885bf(0xa8)])],exports[_0x4885bf(0x197)]);function ot(_0x3c1a3c){const {status$:_0x286375}=_0x3c1a3c;return function(){const _0x3925c1=_0x30e5;return M[_0x3925c1(0x1c0)](it,{'status$':_0x286375});};}const Oe=a[_0x4885bf(0xaa)](_0x4885bf(0x2ee));var at=Object['getOwnPropertyDescriptor'],ct=(_0x43f067,_0x1d1f40,_0x1a35ed,_0x245719)=>{for(var _0x2757fa=_0x245719>0x1?void 0x0:_0x245719?at(_0x1d1f40,_0x1a35ed):_0x1d1f40,_0x4d5e8d=_0x43f067['length']-0x1,_0x423ae1;_0x4d5e8d>=0x0;_0x4d5e8d--)(_0x423ae1=_0x43f067[_0x4d5e8d])&&(_0x2757fa=_0x423ae1(_0x2757fa)||_0x2757fa);return _0x2757fa;},Y=(_0x26bd51,_0x4891dc)=>(_0x539137,_0x32d04a)=>_0x4891dc(_0x539137,_0x32d04a,_0x26bd51);exports[_0x4885bf(0x161)]=class extends a[_0x4885bf(0x1aa)]{constructor(_0x31d480,_0x4c54a2,_0x191646,_0x435d17,_0x4cadc3){const _0x3c8926=_0x4885bf;super(),this[_0x3c8926(0x316)]=_0x31d480,this[_0x3c8926(0x1ed)]=_0x4c54a2,this[_0x3c8926(0x26a)]=_0x191646,this[_0x3c8926(0x14c)]=_0x435d17,_0x4cadc3?_0x4cadc3==null||_0x4cadc3[_0x3c8926(0x30e)]()[_0x3c8926(0x180)](()=>this['_init']()):(this[_0x3c8926(0x1ed)]['debug'](_0x3c8926(0x2c8),_0x3c8926(0x1c5)),this['_init']());}async[_0x4885bf(0x2a5)](){const _0x322354=_0x4885bf,_0x298bcb=this['_urlService'][_0x322354(0x313)](_0x322354(0x27c)),_0x56ed4e=this[_0x322354(0x316)][_0x322354(0x313)](_0x322354(0x360)),_0xf3c22e=this[_0x322354(0x316)][_0x322354(0x313)]('subunit');if(!_0x298bcb||!_0x56ed4e){this['_logService'][_0x322354(0x2e9)](_0x322354(0x2c8),_0x322354(0x321));return;}const _0x3f0086=await this[_0x322354(0x14c)][_0x322354(0x319)](_0x298bcb,Number(_0x56ed4e),_0xf3c22e);_0x3f0086&&_0x3f0086 instanceof a['Workbook']&&this[_0x322354(0x250)](_0x3f0086);}async[_0x4885bf(0x250)](_0x236a5c){const _0x20860f=_0x4885bf;await this[_0x20860f(0xc9)](_0x236a5c),_0x236a5c[_0x20860f(0x339)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))['subscribe'](_0x17183d=>{const _0x3dacb7=_0x20860f;_0x17183d&&this[_0x3dacb7(0x1f9)](_0x17183d);}),this[_0x20860f(0x316)][_0x20860f(0xd8)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))[_0x20860f(0x22c)](()=>this['_updateSubUnitFromURLParams'](_0x236a5c));}[_0x4885bf(0x1f9)](_0x41c713,_0x5d8947=!0x1){const _0xc1629a=_0x4885bf,_0x285617=this[_0xc1629a(0x316)][_0xc1629a(0x313)](_0xc1629a(0x111));_0x41c713['getSheetId']()!==_0x285617&&this[_0xc1629a(0x316)][_0xc1629a(0x185)](_0xc1629a(0x111),_0x41c713[_0xc1629a(0xb9)](),_0x5d8947);}async[_0x4885bf(0xc9)](_0x4ea57f){const _0x1deebe=_0x4885bf;var _0x18326b;const _0x1a6a03=this[_0x1deebe(0x316)][_0x1deebe(0x313)](_0x1deebe(0x111));if(!_0x1a6a03||!_0x4ea57f[_0x1deebe(0x2e2)](_0x1a6a03)){const _0x25981b=_0x4ea57f[_0x1deebe(0x21e)]()[0x0],_0x284694=_0x4ea57f[_0x1deebe(0x2e2)](_0x25981b);if(!_0x284694)return;this[_0x1deebe(0x1f9)](_0x284694,!0x0),await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f[_0x1deebe(0x2fb)](),'subUnitId':_0x25981b});return;}((_0x18326b=_0x4ea57f[_0x1deebe(0x30c)]())==null?void 0x0:_0x18326b[_0x1deebe(0xb9)]())!==_0x1a6a03&&await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f['getUnitId'](),'subUnitId':_0x1a6a03});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x4885bf(0x15f)]),Y(0x2,a[_0x4885bf(0x2a2)]),Y(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x2db)])),Y(0x4,a['Optional'](qe[_0x4885bf(0x2d4)]))],exports[_0x4885bf(0x161)]);var lt=Object[_0x4885bf(0xee)],_t=(_0x32b53c,_0x49fe27,_0x557a1d,_0x4a7c84)=>{const _0x390edb=_0x4885bf;for(var _0x5b33d2=_0x4a7c84>0x1?void 0x0:_0x4a7c84?lt(_0x49fe27,_0x557a1d):_0x49fe27,_0x354f38=_0x32b53c[_0x390edb(0x12a)]-0x1,_0x584914;_0x354f38>=0x0;_0x354f38--)(_0x584914=_0x32b53c[_0x354f38])&&(_0x5b33d2=_0x584914(_0x5b33d2)||_0x5b33d2);return _0x5b33d2;},De=(_0x295639,_0x17ebe2)=>(_0x22970,_0x39b62e)=>_0x17ebe2(_0x22970,_0x39b62e,_0x295639);let me=class extends a[_0x4885bf(0x1aa)]{constructor(_0x47335a,_0x2e6847){const _0x858b1=_0x4885bf;super(),this[_0x858b1(0xd4)]=_0x47335a,this[_0x858b1(0x1e8)]=_0x2e6847,this[_0x858b1(0x2a5)]();}[_0x4885bf(0x2a5)](){const _0x237d97=_0x4885bf,_0x7e433=this;this['disposeWithMe'](this[_0x237d97(0xd4)][_0x237d97(0x184)]({'onBeforePasteImage':async _0x5b21c2=>{const _0x53a2ad=_0x237d97,_0x122d71=await _0x7e433[_0x53a2ad(0x1e8)][_0x53a2ad(0x317)](_0x5b21c2);return _0x122d71?{'source':_0x122d71[_0x53a2ad(0x2aa)],'imageSourceType':_0x122d71[_0x53a2ad(0x2ce)]}:null;}}));}};me=_t([De(0x0,p[_0x4885bf(0x209)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4885bf(0x2c9),_0x4885bf(0xc6),_0x4885bf(0x2f6),'red.300',_0x4885bf(0xdd),'yellow.400'];class Re extends a[_0x4885bf(0x1b2)]{constructor(){const _0x5a741f=_0x4885bf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5a741f(0xa6),0x0);}['assignAColorForMemberID'](_0x5eee88){const _0x24ae50=_0x4885bf;if(this[_0x24ae50(0x228)][_0x24ae50(0x11b)](_0x5eee88))return this[_0x24ae50(0x228)][_0x24ae50(0x1b8)](_0x5eee88);const _0x2a4996=Ne[this[_0x24ae50(0xa6)]];return this[_0x24ae50(0xa6)]=(this[_0x24ae50(0xa6)]+0x1)%Ne['length'],this[_0x24ae50(0x228)][_0x24ae50(0x219)](_0x5eee88,_0x2a4996),_0x2a4996;}}function Fe(_0x3e0214){const _0x3b75cf=_0x4885bf;let _0x4b1c35='';for(const _0x44f2fc of _0x3e0214){const {startOffset:_0x2fa18b,endOffset:_0x58ba1f,isActive:_0x221d38,rangeType:_0x5a5954,segmentId:_0x3babf5,segmentPage:_0x2cbc3a}=_0x44f2fc;_0x4b1c35[_0x3b75cf(0x12a)]&&(_0x4b1c35+=','),_0x4b1c35+=_0x2fa18b+':'+_0x58ba1f+':'+(_0x221d38?'1':'0')+':'+_0x5a5954+':'+_0x3babf5+':'+_0x2cbc3a;}return _0x4b1c35;}function ht(_0xb0d81b){const _0x318cad=_0x4885bf,_0x226e93=_0xb0d81b[_0x318cad(0x1ce)](','),_0x255518=[];for(const _0x2dc7d6 of _0x226e93){const [_0x460a20,_0x3248aa,_0x3925eb,_0x32b16b,_0x2b8f1c,_0x4775dc]=_0x2dc7d6[_0x318cad(0x1ce)](':');_0x255518['push']({'startOffset':Number(_0x460a20),'endOffset':Number(_0x3248aa),'collapsed':_0x460a20===_0x3248aa,'isActive':_0x3925eb==='1','rangeType':_0x32b16b===a[_0x318cad(0x1f7)][_0x318cad(0x1a8)]?a['DOC_RANGE_TYPE'][_0x318cad(0x1a8)]:a[_0x318cad(0x1f7)][_0x318cad(0x2ea)],'segmentId':typeof _0x2b8f1c==_0x318cad(0xdf)?String(_0x2b8f1c):'','segmentPage':Number(_0x4775dc!=null?_0x4775dc:-0x1)});}return _0x255518[_0x318cad(0xff)](_0x487531=>_0x487531[_0x318cad(0x18c)])||(_0x255518[0x0][_0x318cad(0x18c)]=!0x0),_0x255518;}class be extends a['RxDisposable']{constructor(){const _0x5bfd7d=_0x4885bf;super(...arguments),_(this,_0x5bfd7d(0x297),new I[(_0x5bfd7d(0x2cb))](null)),_(this,'collabCursorState$',this[_0x5bfd7d(0x297)][_0x5bfd7d(0x251)]());}[_0x4885bf(0x285)](_0x4359ad){const _0xee5cde=_0x4885bf,{unitID:_0x76c7d2,memberID:_0x3e89f9,textRanges:_0x5dabe1}=_0x4359ad,_0x554a5d=Fe(_0x5dabe1);if(_0x554a5d==='')return;const _0x4b95ab={'unitID':_0x76c7d2,'memberID':_0x3e89f9,'selection':_0x554a5d};this['_collabCursorState$'][_0xee5cde(0x1a7)](_0x4b95ab);}}var ut=Object[_0x4885bf(0xee)],It=(_0x4be61d,_0x476a7a,_0x3ab041,_0x408726)=>{const _0x18c33f=_0x4885bf;for(var _0x1c752d=_0x408726>0x1?void 0x0:_0x408726?ut(_0x476a7a,_0x3ab041):_0x476a7a,_0x74dcb0=_0x4be61d[_0x18c33f(0x12a)]-0x1,_0x53c38c;_0x74dcb0>=0x0;_0x74dcb0--)(_0x53c38c=_0x4be61d[_0x74dcb0])&&(_0x1c752d=_0x53c38c(_0x1c752d)||_0x1c752d);return _0x1c752d;},U=(_0x484418,_0x763a2c)=>(_0xdc31f5,_0x3d8dd6)=>_0x763a2c(_0xdc31f5,_0x3d8dd6,_0x484418);const dt=0x12c,St=0x64;let ve=class extends a[_0x4885bf(0x1aa)]{constructor(_0x502a0d,_0x3535b3,_0x497379,_0x1bdedf,_0x4d3373,_0xb0f3ec,_0xd2d55e,_0x5c4880,_0x4f3796){const _0x47d485=_0x4885bf;super(),_(this,_0x47d485(0xb8),!0x1),_(this,_0x47d485(0x2a5),!0x1),_(this,'_cursorInfo$',new I[(_0x47d485(0x2cb))](new Map())),_(this,_0x47d485(0x35c),this[_0x47d485(0x1f3)]['asObservable']()),_(this,_0x47d485(0x34f),new I['BehaviorSubject']([])),_(this,_0x47d485(0x10f),this[_0x47d485(0x34f)][_0x47d485(0x153)](I[_0x47d485(0x1cd)](dt))),_(this,_0x47d485(0x2df),a[_0x47d485(0xf6)](_0x5e80a2=>{const _0x580aa0=_0x47d485,_0x1b6899={'eventID':g[_0x580aa0(0x2b2)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x580aa0(0x143)],'memberID':this[_0x580aa0(0x2a3)][_0x580aa0(0x35f)](),'selection':Fe(_0x5e80a2)}};this[_0x580aa0(0x2a3)]['send'](_0x1b6899,this[_0x580aa0(0x143)]);},St)),(this[_0x47d485(0x143)]=_0x502a0d,this[_0x47d485(0x2a3)]=_0x3535b3,this[_0x47d485(0x17e)]=_0x497379,this[_0x47d485(0x335)]=_0x1bdedf,this[_0x47d485(0x290)]=_0x4d3373,this[_0x47d485(0x21c)]=_0xb0f3ec,this[_0x47d485(0x148)]=_0xd2d55e,this[_0x47d485(0x189)]=_0x5c4880,this[_0x47d485(0x26a)]=_0x4f3796);}get[_0x4885bf(0x31d)](){return this['_cursorInfo$']['getValue']();}get[_0x4885bf(0x98)](){const _0x23f26e=_0x4885bf;return this[_0x23f26e(0x34f)][_0x23f26e(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x19f638=_0x4885bf;super[_0x19f638(0xcf)](),this[_0x19f638(0x1f3)][_0x19f638(0x1a7)](new Map()),this[_0x19f638(0x1f3)]['complete'](),this[_0x19f638(0x34f)][_0x19f638(0x1a7)]([]),this[_0x19f638(0x34f)]['complete']();}['init'](){const _0x2289d2=_0x4885bf;this['_init']||(this[_0x2289d2(0x2a5)]=!0x0,this['_session'][_0x2289d2(0x2e8)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this['dispose$']))[_0x2289d2(0x22c)](_0x1473c4=>{const _0x3a5a4c=_0x2289d2;_0x1473c4===u[_0x3a5a4c(0x10d)][_0x3a5a4c(0x269)]?this[_0x3a5a4c(0x29e)]():this[_0x3a5a4c(0x27d)]();}),this[_0x2289d2(0x2a3)]['event$'][_0x2289d2(0x153)](I['takeUntil'](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x146a11=>{const _0x17bddc=_0x2289d2,_0x1021b6=_0x146a11[_0x17bddc(0x183)];_0x1021b6===g['CollaborationEvent'][_0x17bddc(0x2c4)]&&this[_0x17bddc(0x188)](_0x146a11),_0x1021b6===g[_0x17bddc(0x2b2)]['USERS_LEAVE']&&this[_0x17bddc(0x8e)](_0x146a11);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)]['onCommandExecuted'](_0x289571=>{const _0x157c55=_0x2289d2,_0x15ecd0=_0x289571['params'];_0x15ecd0!=null&&this[_0x157c55(0xb8)]&&_0x289571['id']===V[_0x157c55(0x220)]['id']&&_0x15ecd0['unitId']===this['unitID']&&_0x15ecd0[_0x157c55(0x33e)]===!0x1&&_0x15ecd0[_0x157c55(0x128)]['length']>0x0&&this[_0x157c55(0x2df)](_0x15ecd0[_0x157c55(0x128)]);})),this['_syncEditingCollabCursorService'][_0x2289d2(0x21d)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x51f816=>{const _0x20f0a6=_0x2289d2;if((_0x51f816==null?void 0x0:_0x51f816[_0x20f0a6(0x143)])!==this[_0x20f0a6(0x143)])return;const _0x50ddd2={'eventID':g[_0x20f0a6(0x2b2)][_0x20f0a6(0x2c4)],'data':_0x51f816};this[_0x20f0a6(0x188)](_0x50ddd2);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)][_0x2289d2(0x258)](_0xb75277=>{const _0x582089=_0x2289d2;if(_0xb75277[_0x582089(0x215)]==null)return;const _0x316ef0=_0xb75277[_0x582089(0x215)];if(_0xb75277['id']!==V[_0x582089(0x1f4)]['id']||_0x316ef0[_0x582089(0x276)]!==this[_0x582089(0x143)])return;const _0x1a3afc={'id':'doc.mutation.rich-text-editing','params':_0x316ef0},_0x519c72=this[_0x582089(0x31d)];for(const [_0x3b89f2,_0x284bd7]of _0x519c72){const _0x47034c={'id':_0x582089(0x2d0),'params':{'unitId':this[_0x582089(0x143)],'actions':null,'textRanges':_0x284bd7[_0x582089(0x128)]}},_0x51495d=this[_0x582089(0x148)][_0x582089(0x293)](_0x1a3afc,_0x47034c,!0x1);if(g[_0x582089(0x2b6)](_0x51495d))throw _0x51495d[_0x582089(0x1d5)];_0x519c72[_0x582089(0x219)](_0x3b89f2,{..._0x284bd7,'ranges':_0x51495d[_0x582089(0x2c5)][_0x582089(0x215)][_0x582089(0x122)]});}queueMicrotask(()=>{const _0x4ad8ac=_0x582089;this[_0x4ad8ac(0x1f3)][_0x4ad8ac(0x1a7)](_0x519c72);});})));}[_0x4885bf(0x188)](_0x4d272b){const _0x4751e6=_0x4885bf;var _0x3f2cba,_0x52dd52;const {memberID:_0x42097d,selection:_0x237162}=_0x4d272b[_0x4751e6(0x259)],_0xa691ab=ht(_0x237162),_0x5cf50c=(_0x52dd52=(_0x3f2cba=this[_0x4751e6(0x290)][_0x4751e6(0x300)](this[_0x4751e6(0x143)],_0x42097d))==null?void 0x0:_0x3f2cba['name'])!=null?_0x52dd52:_0x4751e6(0xe5),_0x5a4752={'color':this['_colorAssignService'][_0x4751e6(0x31f)](_0x42097d),'name':_0x5cf50c,'ranges':_0xa691ab},_0x22aa7c=this[_0x4751e6(0x31d)];_0x22aa7c[_0x4751e6(0x219)](_0x42097d,_0x5a4752),this['_cursorInfo$'][_0x4751e6(0x1a7)](_0x22aa7c);}['_onCursorDelete'](_0x448b45){const _0x3fb7ef=_0x4885bf,{memberID:_0x38a2cd}=_0x448b45[_0x3fb7ef(0x259)],_0x2710c3=this[_0x3fb7ef(0x31d)];_0x2710c3[_0x3fb7ef(0x2a1)](_0x38a2cd),this[_0x3fb7ef(0x1f3)][_0x3fb7ef(0x1a7)](_0x2710c3);}[_0x4885bf(0x29e)](){const _0x1404d0=_0x4885bf;var _0x4218d1;if(this['_online']=!0x0,((_0x4218d1=this[_0x1404d0(0x189)][_0x1404d0(0x277)]())==null?void 0x0:_0x4218d1['getUnitId']())!==this[_0x1404d0(0x143)])return;const _0x174633=this['_injector'][_0x1404d0(0x1b8)](V[_0x1404d0(0xe6)])[_0x1404d0(0x263)]();Array[_0x1404d0(0x2cd)](_0x174633)&&_0x174633[_0x1404d0(0x12a)]>0x0&&this['_updateLocalCursor'](_0x174633);}[_0x4885bf(0x27d)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),U(0x3,a[_0x4885bf(0xe0)](Re)),U(0x4,a[_0x4885bf(0xe0)](u[_0x4885bf(0x235)])),U(0x5,a[_0x4885bf(0xe0)](be)),U(0x6,g[_0x4885bf(0x29a)]),U(0x7,a[_0x4885bf(0x2b8)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x4885bf(0xee)],mt=(_0x543ea2,_0xed488b,_0x42ea64,_0x35c8f8)=>{const _0x2dbdfe=_0x4885bf;for(var _0x195f42=_0x35c8f8>0x1?void 0x0:_0x35c8f8?ft(_0xed488b,_0x42ea64):_0xed488b,_0x15cfb4=_0x543ea2[_0x2dbdfe(0x12a)]-0x1,_0x2dbb07;_0x15cfb4>=0x0;_0x15cfb4--)(_0x2dbb07=_0x543ea2[_0x15cfb4])&&(_0x195f42=_0x2dbb07(_0x195f42)||_0x195f42);return _0x195f42;},w=(_0x31a2cb,_0x51e04e)=>(_0x28944e,_0x15cdec)=>_0x51e04e(_0x28944e,_0x15cdec,_0x31a2cb);const vt=0x12c,gt=0x64,Et=()=>{let _0xeb0beb=[],_0x551418=!0x1;return _0x5ef5b7=>{_0xeb0beb['push'](_0x5ef5b7),_0x551418||(_0x551418=!0x0,setTimeout(()=>{const _0xcf7b86=_0x30e5;_0xeb0beb[_0xcf7b86(0x28d)](_0x497c74=>_0x497c74()),_0xeb0beb=[],_0x551418=!0x1;}));};};let ge=class extends a[_0x4885bf(0x1aa)]{constructor(_0x5553a6,_0x12833b,_0x3a108e,_0x33436d,_0x4d6599,_0xc0387b,_0x1ffc48,_0x4d262d){const _0x18a3c1=_0x4885bf;super(),_(this,'_online',!0x1),_(this,_0x18a3c1(0x2a5),!0x1),_(this,_0x18a3c1(0x1f3),new I[(_0x18a3c1(0x2cb))](new Map())),_(this,_0x18a3c1(0x35c),this[_0x18a3c1(0x1f3)]['asObservable']()),_(this,'_roomMembers$',new I[(_0x18a3c1(0x2cb))]([])),_(this,_0x18a3c1(0x10f),this[_0x18a3c1(0x34f)][_0x18a3c1(0x153)](I[_0x18a3c1(0x1cd)](vt))),_(this,_0x18a3c1(0x2df),a[_0x18a3c1(0xf6)]((_0x44a399,_0xa0324e)=>{const _0x5bd71f=_0x18a3c1,_0x1eaac5={'eventID':g[_0x5bd71f(0x2b2)][_0x5bd71f(0x2c4)],'data':{'unitID':this[_0x5bd71f(0x143)],'memberID':this[_0x5bd71f(0x2a3)][_0x5bd71f(0x35f)](),'selection':B[_0x5bd71f(0x2fc)](_0x44a399,_0xa0324e[_0x5bd71f(0xbb)])}};this[_0x5bd71f(0x2a3)]['send'](_0x1eaac5,this['unitID']);},gt)),(this['unitID']=_0x5553a6,this['_session']=_0x12833b,this[_0x18a3c1(0x17e)]=_0x3a108e,this['_colorAssignService']=_0x33436d,this[_0x18a3c1(0x290)]=_0x4d6599,this[_0x18a3c1(0x189)]=_0xc0387b,this[_0x18a3c1(0x26a)]=_0x1ffc48,this[_0x18a3c1(0x2c1)]=_0x4d262d);}get[_0x4885bf(0x31d)](){const _0x124014=_0x4885bf;return this[_0x124014(0x1f3)][_0x124014(0x1cf)]();}get[_0x4885bf(0x98)](){const _0x67a5f0=_0x4885bf;return this['_roomMembers$'][_0x67a5f0(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x175f30=_0x4885bf;super[_0x175f30(0xcf)](),this['_cursorInfo$'][_0x175f30(0x1a7)](new Map()),this[_0x175f30(0x1f3)][_0x175f30(0x90)](),this[_0x175f30(0x34f)]['next']([]),this[_0x175f30(0x34f)]['complete']();}['init'](){const _0x4f399c=_0x4885bf;this[_0x4f399c(0x2a5)]||(this[_0x4f399c(0x2a5)]=!0x0,this[_0x4f399c(0x2a3)][_0x4f399c(0x2e8)][_0x4f399c(0x153)](I['takeUntil'](this[_0x4f399c(0x30f)]))[_0x4f399c(0x22c)](_0x581cb3=>{const _0x2420ba=_0x4f399c;_0x581cb3===u['SessionStatus'][_0x2420ba(0x269)]?this[_0x2420ba(0x29e)]():this['_toggleOffline']();}),this['_session'][_0x4f399c(0x31c)][_0x4f399c(0x153)](I[_0x4f399c(0x268)](this['dispose$']))[_0x4f399c(0x22c)](_0x4996d0=>{const _0x1dce65=_0x4f399c,_0x201269=_0x4996d0['eventID'];_0x201269===g[_0x1dce65(0x2b2)][_0x1dce65(0x2c4)]&&this[_0x1dce65(0x188)](_0x4996d0),_0x201269===g[_0x1dce65(0x2b2)]['USERS_LEAVE']&&this[_0x1dce65(0x8e)](_0x4996d0);}),this[_0x4f399c(0x2ac)](),this['disposeWithMe'](this[_0x4f399c(0x26a)][_0x4f399c(0x258)](_0x3dcc0f=>{const _0x5b2dbd=_0x4f399c;if(this[_0x5b2dbd(0xb8)]&&_0x3dcc0f['id']===v[_0x5b2dbd(0xde)]['id']&&_0x3dcc0f['params'][_0x5b2dbd(0x276)]===this['unitID']){const _0x51e406=_0x3dcc0f[_0x5b2dbd(0x215)];this[_0x5b2dbd(0x2df)](_0x51e406[_0x5b2dbd(0x2ba)],_0x51e406[_0x5b2dbd(0x1df)][0x0]);}})));}['_onCursorUpdate'](_0x16b680){const _0x25a8f9=_0x4885bf;var _0x365ed9,_0x27f4a1;const {memberID:_0x3aeec0,selection:_0x1ede50}=_0x16b680['data'],{sheetName:_0x5b9d73,range:_0x3a9d12}=B[_0x25a8f9(0xeb)](_0x1ede50),_0x31c49d={'name':(_0x27f4a1=(_0x365ed9=this['_memberService']['getMember'](this[_0x25a8f9(0x143)],_0x3aeec0))==null?void 0x0:_0x365ed9[_0x25a8f9(0x30b)])!=null?_0x27f4a1:_0x25a8f9(0xe5),'range':this[_0x25a8f9(0x2dd)](_0x5b9d73,_0x3a9d12),'sheetID':_0x5b9d73,'color':this[_0x25a8f9(0x335)]['assignAColorForMemberID'](_0x3aeec0),'selection':_0x1ede50},_0x56b952=this['cursorInfo'];_0x56b952['set'](_0x3aeec0,_0x31c49d),this[_0x25a8f9(0x1f3)][_0x25a8f9(0x1a7)](_0x56b952);}[_0x4885bf(0x8e)](_0x3cb290){const _0x15d6a0=_0x4885bf,{memberID:_0x67041c}=_0x3cb290['data'],_0x318ddd=this[_0x15d6a0(0x31d)];_0x318ddd[_0x15d6a0(0x2a1)](_0x67041c),this[_0x15d6a0(0x1f3)][_0x15d6a0(0x1a7)](_0x318ddd);}['_getMergeRange'](_0x36edcc,_0x20aa62){const _0x1a333b=_0x4885bf;var _0x276b5d,_0x1bbf44;const _0x54854d=(_0x1bbf44=(_0x276b5d=this['_univerInstanceService'][_0x1a333b(0x18e)](this['unitID']))==null?void 0x0:_0x276b5d[_0x1a333b(0x2e2)](_0x36edcc))==null?void 0x0:_0x1bbf44[_0x1a333b(0x27e)]();return(_0x54854d==null?void 0x0:_0x54854d[_0x1a333b(0x23a)](_0x518983=>a['Rectangle'][_0x1a333b(0x210)](_0x518983,_0x20aa62)))||_0x20aa62;}['_onRefRangeChange'](){const _0x5ddeb9=_0x4885bf,_0x495932=new a[(_0x5ddeb9(0x25b))](),_0xdf1eaa=Et(),_0x15fe4e=()=>{const _0x49321d=_0x5ddeb9;_0x495932['dispose']();const _0x37829=(_0x4c6e5b,_0xfe7fe2,_0x5bce6a,_0x528433)=>{const _0xa0bfc0=_0x30e5;let _0x1caaf1=[];switch(_0x4c6e5b['id']){case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x308)]:{_0x1caaf1=v[_0xa0bfc0(0x129)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)]['DeleteRangeMoveUpCommandId']:{_0x1caaf1=v[_0xa0bfc0(0xe4)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x35e)]:{_0x1caaf1=v[_0xa0bfc0(0x105)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x1fa)]:{_0x1caaf1=v[_0xa0bfc0(0x32e)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x29d)]:{_0x1caaf1=v[_0xa0bfc0(0x212)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x271)]:{_0x1caaf1=v['handleInsertRow'](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0xcd)]:{_0x1caaf1=v[_0xa0bfc0(0x229)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x166)]:{_0x1caaf1=v[_0xa0bfc0(0x155)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId']['RemoveRowCommandId']:{_0x1caaf1=v[_0xa0bfc0(0x25a)](_0x4c6e5b,_0x528433);break;}}const _0x47e827=v['runRefRangeMutations'](_0x1caaf1,_0x528433),_0x29a6bd=this[_0xa0bfc0(0x31d)]['get'](_0xfe7fe2);if(_0x29a6bd&&_0x47e827){const _0x3f4ffa={..._0x29a6bd,'range':_0x47e827};this[_0xa0bfc0(0x31d)][_0xa0bfc0(0x219)](_0xfe7fe2,_0x3f4ffa),_0xdf1eaa(()=>{const _0x2e61bc=_0xa0bfc0,_0x414a39=this[_0x2e61bc(0x2c1)]['registerRefRange'](_0x47e827,_0x5d3ce1=>(_0x414a39[_0x2e61bc(0xcf)](),_0x37829(_0x5d3ce1,_0xfe7fe2,_0x5bce6a,_0x47e827)));_0x495932[_0x2e61bc(0xf1)](_0x414a39);});}return{'redos':[],'undos':[]};};this[_0x49321d(0x31d)][_0x49321d(0x28d)]((_0x44ab7e,_0x4288e7)=>{const _0x47ffc2=_0x49321d,{range:_0x2baf5f,sheetID:_0x29fd2d}=_0x44ab7e,_0x4180f9=this['_refRangeService'][_0x47ffc2(0x12e)](_0x2baf5f,_0x51ef80=>(_0x4180f9[_0x47ffc2(0xcf)](),_0x37829(_0x51ef80,_0x4288e7,_0x29fd2d,_0x2baf5f)));_0x495932['add'](_0x4180f9);});};this[_0x5ddeb9(0x354)](a['toDisposable'](this[_0x5ddeb9(0x1f3)][_0x5ddeb9(0x22c)](()=>{_0x15fe4e();})));}[_0x4885bf(0x29e)](){const _0x4aff92=_0x4885bf;var _0x3df352,_0x352584;if(this[_0x4aff92(0xb8)]=!0x0,((_0x3df352=this[_0x4aff92(0x189)][_0x4aff92(0x277)]())==null?void 0x0:_0x3df352[_0x4aff92(0x2fb)]())!==this[_0x4aff92(0x143)])return;const _0x5f4745=(_0x352584=this['_injector'][_0x4aff92(0x1b8)](v[_0x4aff92(0xce)])['getCurrentSelections']())==null?void 0x0:_0x352584[0x0],_0x46c605=this['_univerInstanceService'][_0x4aff92(0x1fb)](a[_0x4aff92(0x311)][_0x4aff92(0x28c)])['getActiveSheet']();_0x5f4745&&_0x46c605&&this['_updateLocalCursor'](_0x46c605[_0x4aff92(0xb9)](),_0x5f4745);}[_0x4885bf(0x27d)](){const _0x4fd1e1=_0x4885bf;this[_0x4fd1e1(0xb8)]=!0x1;}};ge=mt([w(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),w(0x3,a[_0x4885bf(0xe0)](Re)),w(0x4,a[_0x4885bf(0xe0)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x4885bf(0x2a2)]),w(0x7,a['Inject'](v[_0x4885bf(0x174)]))],ge);var Ct=Object[_0x4885bf(0xee)],pt=(_0x3ee7d5,_0x291204,_0x316a1c,_0x3a67d6)=>{const _0x412231=_0x4885bf;for(var _0x4c0584=_0x3a67d6>0x1?void 0x0:_0x3a67d6?Ct(_0x291204,_0x316a1c):_0x291204,_0x7969a0=_0x3ee7d5[_0x412231(0x12a)]-0x1,_0x41c397;_0x7969a0>=0x0;_0x7969a0--)(_0x41c397=_0x3ee7d5[_0x7969a0])&&(_0x4c0584=_0x41c397(_0x4c0584)||_0x4c0584);return _0x4c0584;},ce=(_0x3d0aa7,_0x261e55)=>(_0xd92991,_0x3aaf74)=>_0x261e55(_0xd92991,_0x3aaf74,_0x3d0aa7);let F=class extends a[_0x4885bf(0x1aa)]{constructor(_0x545a34,_0x587e98,_0x1dd3b2){const _0x3bb335=_0x4885bf;super(),_(this,_0x3bb335(0x23f),new Map()),_(this,_0x3bb335(0x239),new I[(_0x3bb335(0x207))]()),(this[_0x3bb335(0x189)]=_0x545a34,this[_0x3bb335(0x17e)]=_0x587e98,this[_0x3bb335(0x32a)]=_0x1dd3b2,this[_0x3bb335(0x2a5)]());}[_0x4885bf(0xcf)](){const _0x1fab47=_0x4885bf;super[_0x1fab47(0xcf)](),this[_0x1fab47(0x239)][_0x1fab47(0x90)](),this['_entities']['forEach'](_0x1f15d9=>_0x1f15d9[_0x1fab47(0xcf)]());}[_0x4885bf(0x232)](_0x22d36c){const _0x14e53c=_0x4885bf;return this[_0x14e53c(0x23f)][_0x14e53c(0x11b)](_0x22d36c)?this[_0x14e53c(0x23f)][_0x14e53c(0x1b8)](_0x22d36c)[_0x14e53c(0x35c)]:this['_entityInit$']['pipe'](I[_0x14e53c(0x1db)](_0x393208=>_0x393208[_0x14e53c(0x143)]===_0x22d36c),I[_0x14e53c(0xea)](_0x1b2659=>_0x1b2659[_0x14e53c(0x35c)]));}['_init'](){const _0x1199fd=_0x4885bf;this['_univerInstanceService'][_0x1199fd(0x33d)](a['UniverInstanceType'][_0x1199fd(0x28c)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this['dispose$']))[_0x1199fd(0x22c)](async _0x54ec1f=>{const _0x191484=_0x1199fd,_0x4bae04=_0x54ec1f[_0x191484(0x2fb)](),_0x26be81=await this['_startSheetCollabCursor'](_0x4bae04);this[_0x191484(0x239)][_0x191484(0x1a7)](_0x26be81),this['_entities']['set'](_0x4bae04,_0x26be81);}),this['_univerInstanceService'][_0x1199fd(0x33d)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this[_0x1199fd(0x30f)]))[_0x1199fd(0x153)](I['filter'](_0x5e8573=>!_0x5e8573[_0x1199fd(0x2fb)]()[_0x1199fd(0x191)]('__')))[_0x1199fd(0x22c)](async _0x2ef073=>{const _0x20f7f9=_0x1199fd,_0x568f54=_0x2ef073[_0x20f7f9(0x2fb)](),_0x4430ca=await this['_startDocCollabCursor'](_0x568f54);this[_0x20f7f9(0x239)][_0x20f7f9(0x1a7)](_0x4430ca),this['_entities'][_0x20f7f9(0x219)](_0x568f54,_0x4430ca);}),I[_0x1199fd(0x1cb)](this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)]),this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0x28c)]))[_0x1199fd(0x153)](I['takeUntil'](this[_0x1199fd(0x30f)]))[_0x1199fd(0x22c)](_0x3cc000=>{const _0x31b871=_0x1199fd,_0x5827f4=_0x3cc000['getUnitId'](),_0xa8acf7=this[_0x31b871(0x23f)][_0x31b871(0x1b8)](_0x5827f4);_0xa8acf7&&(_0xa8acf7[_0x31b871(0xcf)](),this['_entities'][_0x31b871(0x2a1)](_0x5827f4));});}async[_0x4885bf(0x101)](_0x2252b7){const _0x1a55a8=_0x4885bf,_0x4f7c34=await this[_0x1a55a8(0x32a)][_0x1a55a8(0x16a)](_0x2252b7),_0x4e17be=this[_0x1a55a8(0x17e)][_0x1a55a8(0x144)](ge,_0x2252b7,_0x4f7c34);return _0x4e17be['init'](),_0x4e17be;}async[_0x4885bf(0x104)](_0x38531c){const _0x7396ce=_0x4885bf,_0x28c1b9=await this[_0x7396ce(0x32a)][_0x7396ce(0x16a)](_0x38531c),_0x42b1a5=this['_injector']['createInstance'](ve,_0x38531c,_0x28c1b9);return _0x42b1a5[_0x7396ce(0x288)](),_0x42b1a5;}};function _0x7782(){const _0x41cc85=['LICENSE_DISTRO_REJECTED','_getScale','/run/','_taskIds','_getSessionTicket','transformSelections','_range','_initUnhandledRejectionListener','RevisionService','_releaseCalculationLimit','Subject','pluginName','IDocClipboardService','Vector2','stageInfo','text','NodePositionConvertToCursor','ENTITLE_INSUFFICIENT_QUOTA','current','contains','JOIN_ROOM_FAILED','handleInsertRangeMoveRight','onPointerEnter$','_updateCollabCursors','params','arc','0\x200\x2016\x2016','_transformHistoryAndStateStack','set','lineTo','lineno','_syncEditingCollabCursorService','collabCursorState$','getUnhiddenWorksheets','TRANSFORM_CHANGE_OBSERVABLE_TYPE','SetTextSelectionsOperation','NodePositionConvertToRectRange','combineLatest','catch','_cachedData','LOGIN_FAILED','code','getformulaLimitStatusUrl','_assignedColors','handleMoveRange','YUUMI_RATE_OVER_LIMIT','univer-flex\x20univer-items-center','subscribe','_collaborationUIEventService','evenodd','stack','path','REDEMPTION_CODE_HAS_BEEN_CREATED','getCollabCursors$','setStateCache','YUUMI_URL_COL_OUT_OF_RANGE','MemberService','onStarting','_initCommandInterceptor','off-line-icon_clip0_910_343','_entityInit$','find','href','collaboration-client-ui.config','resize','ENTITLE_DUP_SUBSCRIPTION','_entities','getRangePointData','WebBrowserSingleActiveUnitService','limitInfo','search','DocStateChangeManagerService','WECHAT_HAS_BEEN_BOUND','110949luqNvG','_eventUnsubscribe','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_currentUsage','stage','_docStateChangeManagerService','actions','REDEMPTION_USER_NOT_ELIGIBLE','YUUMI_UNABLE_LOAD_URL','_initWindowErrorListener','_setupSubUnitSync','asObservable','_initStatusComponent','UNAUTHENTICATED','_removeCollabCursors','IMessageService','PENDING','Shape','onCommandExecuted','data','handleIRemoveRow','DisposableCollection','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','measureText','endRow','ticket','_textBubble','startRow','PAYMENT_CHANNEL_NOT_SUPPORT','getDocRanges','_ensureSubject','url(#off-line-icon_clip0_910_343)','OTHER_CLIENTS_EDITING','SOCKET_FAILED_RETRY','takeUntil','ONLINE','_commandService','includes','FETCH_MISS','_name','body','currentUsage','font','InsertRowCommandId','ENTITLE_CHAT_LIMIT_EXCEED','useRef','_draw','replaceDocRanges','unitId','getFocusedUnit','SNAPSHOT_HAS_BEEN_REMOVED','_pollingInterval','_docTransformStateCacheService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unit','_toggleOffline','getMergeData','unsubscribe','YUUMI_CONNECTOR_URL_NOT_FOUND','ILocalCacheService','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_uiPartsService','syncEditingCollabCursor','_initResize','UniverCollaborationClientPlugin','init','88MLGKEX','_document','Rect','UNIVER_SHEET','forEach','_memberID','createElement','_memberService','ALREADY_EXISTS','MUTATION','transformMutation','socket$','clearInterval','_initEvent','_collabCursorState$','AUTHORIZE_CODE_ILLEGAL','_saveTaskMap','ITransformService','black','addEventListener','InsertRangeMoveRightCommandId','_toggleOnline','_config','toString','delete','ICommandService','_session','_scheduleHeartbeat','_init','_handleLeaveEvent','endColumn','removeEventListener','getSkeleton','source','RegularPolygon','_onRefRangeChange','height','children','_monkeyPatchLogService','unhandledrejection','addObject','CollaborationEvent','USER_NOT_INVITED_CODE','Plugin','round','isTransformMutationFailure','REDEMPTION_USER_REDEEM_TIMES_EXCEED','IUniverInstanceService','ThemeService','subUnitId','_getSheetObject','SetFormulaCalculationNotificationMutation','popstate','LICENSE_IMPORT_SIZE_EXCEEDED','redoState','totalFormulasToCalculate','_refRangeService','use','registerDependencies','UPDATE_CURSOR','m2Prime','distinctUntilChanged','getConfig','[CollaborationDataLoaderController]','purple.300','shareReplay','BehaviorSubject','clearTimeout','isArray','imageSourceType','entries','doc.mutation.rich-text-editing','labelPosition','_initDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','IRemoteInstanceService','2816744BWWTHH','transformRemoteChangeset','map','EMAIL_VERIFY_CODE_MISMATCH','BuiltInUIPart','url(#on-line-icon_clip0_910_349)','DataLoaderService','SHEET_VIEWPORT_KEY','_getMergeRange','_transformPreviousActiveRange','_updateLocalCursor','univer-mr-2\x20univer-flex\x20univer-text-xl','on-line-icon','getSheetBySheetId','_lastPointer','Loading','_configService','_docTransformSelectionsService','_cursorShapes','sessionStatus$','debug','RECT','url(#$1','_hideTimer','findNodePositionByCharIndex','uni.network.url-service','size','generateRandomId','toRgbString','reconnect','toStringTag','M0\x200H16V16H0z','CONFLICT','green.600','setTimeout','SUCCESS','DATA_SOURCE_TOO_LARGE','collaboration.single-unit.warning','getUnitId','serializeRangeWithSheet','assign','REDEMPTION_CODE_NOT_STARTED','FormulaExecutedStateType','getMember','substring','_context','getCurrentRevOfUnit','column','collab-text-range-','executeCommand','CollaborationSessionService','DeleteRangeMoveLeftCommandId','NOT_FOUND','_scheduleSaving','name','getActiveSheet','CollaborationStatus','whenReady','dispose$','selection','UniverInstanceType','_showGuardMessage','getParam','UNDEFINED','_docTransformIMECacheService','_urlService','saveImage','registerBeforeClose','loadUnit','_checkCalculationAvailable','_cursors','event$','cursorInfo','_docSkeletonManagerService','assignAColorForMemberID','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','invokeId','attrs','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','defs','ISocketService','_sheetSkeletonManagerService','getAncestorScale','CHANGESET_REVISION_CONFILICT','_collabSessionService','\x20at\x20','onLocalMutation','_lastResponseTimestamp','handleInsertRangeMoveDown','_handleEvent','824316oXaSxF','color','_cursor','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','_colorAssignService','_themeService','_applyCommand','getUnitStatus$','activeSheet$','push','APPLY_DUPLICATED','INVALID_ARGUMENT','getTypeOfUnitAdded$','isEditing','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','saveOfflineData','_startCalculationLimit','_renderManagerService','RemoteUniscriptService','getLocalCacheKey','_shapes','REDEMPTION_CODE_INACTIVE','/universer-api/frontend/logs','collabStatus.syncing','getUndoRedoMutationParamsCache','clipPath','CollaborationUIEventService','addObjects','registerComponent','parseInt','_roomMembers$','collabStatus.synced','replaceState','UNRECOGNIZED','_uploadLog','disposeWithMe','WebURLService','functionsExecutedState','CollaborationController','HTTPService','_initUserListener','_hasFormulaInDirtyRanges','restore','cursorInfo$','0\x200\x2017\x2016','InsertColCommandId','getMemberID','type','getUnit','colorChannel1','_onCursorDelete','INVALID_INVITE_CODE','complete','USER_IS_ANONYMOUS','_render','CONNECTOR_DATA_TOO_LARGE','parse','none','throttleTime','registerRenderModule','roomMembers','UniverCollaborationClientUIPlugin','MOBILE_HAS_BEEN_BOUND','focused$','Warning','getRelativeToViewportCoord','LICENSE_EXPORT_SIZE_EXCEEDED','show','_docSkeleton','_revisionService','newValue','onPointerLeave$','SOCKET_FAILED','REDEMPTION_CODE_FULLY_REDEEMED','_colorIndex','_removeClearOtherTimer','IUIPartsService','min','createIdentifier','PERMISSION_DENIED','USER_NOT_FOUND','_getAnchorBounding','OnLineIcon','top','getCellPositionByOffset','key','DocIMEInputManagerService','entityInit$','getCurrent','collabStatus.notCollab','setAlpha','reason','_online','getSheetId','_backgroundColor','range','getActiveRange','ACTIVE_UNIT_EVENT_CHANNEL','_anchor','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Failed','_beforeCloseService','_setupBeforeClosingHandler','#FFF','backgroundColor','_scene','jiqing.500','wsSessionTicketUrl','rgba(255,\x20255,\x20255,\x200.01)','_updateSubUnitFromURLParams','START_CALCULATION','LocaleService','CURRENT_STATUS_CANNOT_OPERATE','MoveRangeCommandId','SheetsSelectionsService','dispose','univerjs-icon\x20univerjs-icon-','_selfUnitIDs','COLORS','xlink:href','_docClipboardService','_unitStatus','_anchorDot','74996FXoKtl','urlChange$','_initCommandExecutedListener','subscribeEvent','message','_color','blue.400','SetSelectionsOperation','string','Inject','pushState','history','Tools','handleDeleteRangeMoveUp','Unknown\x20user','DocSelectionManagerService','_unitOnClients','1em','TEXT_RANGE_LAYER_INDEX','switchMap','deserializeRangeWithSheet','all','startFormulaLimitUrl','getOwnPropertyDescriptor','APPLY_REJECT','_localCacheService','add','origin','sheetID','UNIVER_DOC','collab-rect-range-','debounce','Error','INTERNAL_ERROR','white','APPLY_REVISION_CONFILICT','_maxFormulaLimit','tag','ENTITLE_CAN_NOT_BUY_LOWER_OTP','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','some','_handleHeartbeatEvent','_startSheetCollabCursor','application/json','collaboration.closeRoom','_startDocCollabCursor','handleInsertCol','IURLService','session.collaboration-timeout','LOCAL_CACHE_INTERVAL_KEY','getColor','CanceledError','formula.calculation.started','transformStateCache','SessionStatus','getItem','roomMembers$','mutations','subunit','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INVITE_CODE_HAS_BEEN_UES','SheetCollabCursorShape','now','fillText','isTransformMutationsWithChangesetSuccess','41983623AFvQts','_setFormulaLimitStatus','[Unhandled\x20Rejection]:\x20','has','SYNCED','_handleJoinEvent','380wIFfuI','ENTITLE_REPORT_LIMIT_EXCEED','getVpScrollXYInfoByPosToVp','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','textRanges','2974559aVElHo','session.will-retry','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_hovered','_checkAndWaitForCalculationPermission','ranges','handleDeleteRangeMoveLeft','length','filename','INotificationService','_collabCursorController','registerRefRange','closePath','YUUMI_NO_CUBOID_FOR_QUESTION','ENSURE_SNAPSHOT_EXECUTION','width','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_notificationService','fillRule','_collaborationController','_drawRectRange','disableLocalCache','_heartbeatTimer','defIds','createSocket','result','colno','getTypeOfUnitDisposed$','enableLocalCache','EffectRefRangId','CollaborationUIEventId','_registerRenderDependencies','unitID','createInstance','_clearPolling','join','DocSkeletonManagerService','_transformService','deepClone','collab-client.tooltip.reconnect','OFFLINE','_dataLoaderService','_status$','forwardRef','bind','AWAITING_WITH_PENDING','DEFAULT_WS_SESSION_TICKET_URL','exhaustSavingTask','pipe','INVITE_CODE_REQUIRED','handleIRemoveCol','SetFormulaCalculationStartMutation','BrowserCollaborationSocketService','ERROR_AGAIN','_refreshCollabCursors','executionId','fill','replace','_disabled','from','ILogService','fillStyle','CollaborationDataLoaderController','/universer-api/license/formula/limit/start','setActiveRange','useObservable','/universer-api/license/formula/limit/status','RemoveColCommandId','max','IBeforeCloseService','collabStatus.offline','requireSession','m1Prime','_transformUndoRedoStack','NO_OTHER_CLIENTS_EDITING','_scheduleClearOtherTimer','currentSkeleton$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','runId','[LogService\x20Error]:\x20','drawWith','RefRangeService','SUBMIT_CHANGESET_TIMEOUT','SNAPSHOT_INVALID_SNAPSHOT','beginPath','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleHover','currentTheme$','startColumn','post','_saveCache','_injector','searchParams','then','getStateCache','currentColor','eventID','addClipboardHook','setParam','DependentOn','memberID','_onCursorUpdate','_univerInstanceService','FormulaExecuteStageType','getSheetObject','isActive','beforeCommandExecuted','getUniverSheetInstance','unshift','_docSyncEditingCollabCursorService','startsWith','stringify','location','values','_httpService','_localStorageService','DesktopCollaborationStatusDisplayController','_drawTextRange','Injector','_messageService','UniverIcon','_initEntityListener','UnitStatus','svg','with','removeParam','_id','_getSaveTimeout','defineProperty','IRenderManagerService','getCoordByCell','idSuffix','next','TEXT','maxFormulaLimit','RxDisposable','CollaborationSocketService','_localeService','APPLY_PERMISSION_DENIED','_send','getOffsetConfig','setItem','row','Disposable','div','off-line-icon','_getFormulaLimitStatus','YUUMI_AI_RUN_FAILED','_labelPosition','get','displayName','LOGIN_TOKEN_PROCESSING_FAILED','AWAITING','docStateChange$','10753020aSyWLD','onMouseMove','ColorKit','jsx','_clearOtherTimers','TOO_MANY_REQUESTS','setShapeProps','getRenderById','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','getColorFromTheme','isFormulaString','disposeUnit','SetDocZoomRatioOperation','merge','_registerDependencies','debounceTime','split','getValue','_initStatusListener','REDEMPTION_INVALID_CODE','engine','translate(.97)','skeleton','error','YUUMI_ASYNCIO_CANCELLED','bottom','MessageType','save','_drawAnchor','filter','undoState','override','enableFrontendLog','selections','transformByState','_hover','loadOfflineData','collabStatus.fetchMiss','fromEventSubject','fromEvent','/universer-api/license/formula/limit/done','editingUnit','_imageIoService','ENTITLE_NEED_BILLING_ADDRESS','_createSocketURL','dirtyRanges','onRendered','_logService','EMAIL_HAS_BEEN_BOUND','session.connection-failed','mapTo','symbol','IConfigService','_cursorInfo$','RichTextEditingMutation','mask','...','DOC_RANGE_TYPE','transformMutationsWithChangeset','_updateURLWithCurrentState','InsertRangeMoveDownCommandId','getCurrentUnitForType','OTHER_CLIENT_EDITING'];_0x7782=function(){return _0x41cc85;};return _0x7782();}F=pt([ce(0x0,a[_0x4885bf(0x2b8)]),ce(0x1,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),ce(0x2,a['Inject'](u[_0x4885bf(0x307)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x27355b,_0x35b216){const _0x3773f8=_0x4885bf;let {radius:_0x20860b,width:_0xd7a10d,height:_0x524d39}=_0x35b216;_0x20860b=_0x20860b!=null?_0x20860b:0x0,_0xd7a10d=_0xd7a10d!=null?_0xd7a10d:0x1e,_0x524d39=_0x524d39!=null?_0x524d39:0x1e;let _0x5193c7=0x0,_0x1a96c4=0x0,_0x5fd8a1=0x0;_0x5193c7=_0x1a96c4=_0x5fd8a1=Math[_0x3773f8(0xa9)](_0x20860b,_0xd7a10d/0x2,_0x524d39/0x2),_0x27355b[_0x3773f8(0x177)](),_0x27355b['moveTo'](_0x5193c7,0x0),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d-_0x1a96c4,0x0),_0x27355b[_0x3773f8(0x216)](_0xd7a10d-_0x1a96c4,_0x1a96c4,_0x1a96c4,Math['PI']*0x3/0x2,0x0,!0x1),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d,_0x524d39-_0x5fd8a1),_0x27355b['arc'](_0xd7a10d-_0x5fd8a1,_0x524d39-_0x5fd8a1,_0x5fd8a1,0x0,Math['PI']/0x2,!0x1),_0x27355b['lineTo'](0x0,_0x524d39),_0x27355b['lineTo'](0x0,_0x5193c7),_0x27355b[_0x3773f8(0x216)](_0x5193c7,_0x5193c7,_0x5193c7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x27355b[_0x3773f8(0x12f)](),_0x35b216[_0x3773f8(0x15b)]&&(_0x27355b[_0x3773f8(0x1d9)](),_0x27355b[_0x3773f8(0x160)]=_0x35b216[_0x3773f8(0x15b)],_0x35b216[_0x3773f8(0x135)]===_0x3773f8(0x22e)?_0x27355b[_0x3773f8(0x15b)](_0x3773f8(0x22e)):_0x27355b[_0x3773f8(0x15b)](),_0x27355b['restore']());}class re extends C[_0x4885bf(0x257)]{constructor(_0x57f920,_0x115368){const _0x558165=_0x4885bf;super(_0x57f920,_0x115368),_(this,'color'),_(this,_0x558165(0x20c)),(this[_0x558165(0x331)]=_0x115368==null?void 0x0:_0x115368[_0x558165(0x331)],this['text']=_0x115368==null?void 0x0:_0x115368[_0x558165(0x20c)]);}static['drawWith'](_0x2aa97e,_0x131c48){const _0x1fbe93=_0x4885bf,{text:_0x272fad,color:_0x1afdb6}=_0x131c48;_0x2aa97e[_0x1fbe93(0x1d9)](),_0x2aa97e[_0x1fbe93(0x270)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x32c5d6=_0x2aa97e[_0x1fbe93(0x25d)](_0x272fad)['width'],_0x3e6ffc=Math[_0x1fbe93(0xa9)](_0x32c5d6+0x2*le,Ue);Ot(_0x2aa97e,{'height':X,'radius':0x4,'width':_0x3e6ffc,'fill':_0x1afdb6}),_0x2aa97e[_0x1fbe93(0x160)]=_0x1fbe93(0xc3);const _0x55adb2=le,_0x3bb0a3=X-Tt,_0x40291d=Ue-0x2*le;if(_0x32c5d6>_0x40291d){let _0x128a43='',_0x22a269=0x0;for(const _0x3eabe5 of _0x272fad){const _0xe9751b=_0x2aa97e[_0x1fbe93(0x25d)](_0x3eabe5)[_0x1fbe93(0x132)];if(_0x22a269+_0xe9751b<=_0x40291d-_0x2aa97e[_0x1fbe93(0x25d)](_0x1fbe93(0x1f6))[_0x1fbe93(0x132)])_0x128a43+=_0x3eabe5,_0x22a269+=_0xe9751b;else{_0x128a43+=_0x1fbe93(0x1f6);break;}}_0x2aa97e[_0x1fbe93(0x116)](_0x128a43,_0x55adb2,_0x3bb0a3);}else _0x2aa97e['fillText'](_0x272fad,_0x55adb2,_0x3bb0a3);_0x2aa97e[_0x1fbe93(0x35b)]();}[_0x4885bf(0x274)](_0xf4f1d7){const _0x5aa5f1=_0x4885bf;re[_0x5aa5f1(0x173)](_0xf4f1d7,this);}}const _e='collab-text-anchor-',Rt=_0x4885bf(0x305),bt=_0x4885bf(0xf5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4885bf(0xc8);class Le{constructor(_0x229d11,_0x5d03c4,_0x2e5f93,_0x27d07f){const _0x34fef1=_0x4885bf;_(this,'_shapes',[]),_(this,_0x34fef1(0xbe),null),_(this,_0x34fef1(0x260),null),_(this,'_anchorDot',null),_(this,_0x34fef1(0x2ec),null),_(this,_0x34fef1(0x247),null),(this[_0x34fef1(0x332)]=_0x229d11,this[_0x34fef1(0xc5)]=_0x5d03c4,this[_0x34fef1(0xa0)]=_0x2e5f93,this[_0x34fef1(0x28a)]=_0x27d07f,this[_0x34fef1(0x92)]());}set[_0x4885bf(0x1e1)](_0x341e68){const _0x41e0b8=_0x4885bf;_0x341e68?(this[_0x41e0b8(0xd6)]&&this[_0x41e0b8(0xd6)]['hide'](),this[_0x41e0b8(0x260)]&&this[_0x41e0b8(0x260)][_0x41e0b8(0x9f)]()):(this['_anchorDot']&&this['_anchorDot'][_0x41e0b8(0x9f)](),this['_textBubble']&&this[_0x41e0b8(0x260)]['hide']());}[_0x4885bf(0xcf)](){const _0x192eaa=_0x4885bf;for(const _0x5085c1 of this['_shapes'])_0x5085c1[_0x192eaa(0xcf)]();this['_textBubble']&&this[_0x192eaa(0x260)][_0x192eaa(0xcf)](),this['_anchorDot']&&this['_anchorDot'][_0x192eaa(0xcf)](),this[_0x192eaa(0xbe)]&&this[_0x192eaa(0xbe)][_0x192eaa(0xcf)](),this[_0x192eaa(0x247)]&&this[_0x192eaa(0x247)]();}[_0x4885bf(0x92)](){const _0x26bb59=_0x4885bf;var _0x42282d;const {_docSkeleton:_0x3c87d5,_document:_0x2686e4}=this,{color:_0x22881d,name:_0x121260,ranges:_0x315594}=this[_0x26bb59(0x332)],_0x297239=_0x2686e4[_0x26bb59(0x1af)](),{docsLeft:_0xf908d,docsTop:_0x22c484}=_0x297239,_0x32d1cd=new p[(_0x26bb59(0x20d))](_0x297239,_0x3c87d5);for(const {startOffset:_0x2c5c5d,endOffset:_0x28417f,rangeType:_0x58f548,segmentId:_0x124a5c,segmentPage:_0x2d7d0f,collapsed:_0x2127cd,isActive:_0x2a670a}of _0x315594){const _0x5265f6=_0x3c87d5['findNodePositionByCharIndex'](_0x2c5c5d,!0x0,_0x124a5c,_0x2d7d0f);let _0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f,!0x0,_0x124a5c,_0x2d7d0f);if(_0x13f2fe==null&&(_0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f-0x1,!0x1,_0x124a5c,_0x2d7d0f)),_0x2a670a){const {contentBoxPointGroup:_0x37e876}=_0x32d1cd[_0x26bb59(0x240)](_0x13f2fe,_0x13f2fe);if(_0x37e876[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x1da)](_0x22881d,_0x37e876,_0xf908d,_0x22c484,_0x121260),this[_0x26bb59(0x247)]=this[_0x26bb59(0x179)]();}if(_0x5265f6&&_0x13f2fe){if(_0x58f548===a['DOC_RANGE_TYPE'][_0x26bb59(0x2ea)]){const _0x4e844c=new p[(_0x26bb59(0x221))](_0x297239,_0x3c87d5),{pointGroup:_0x274cad}=(_0x42282d=_0x4e844c[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe))!=null?_0x42282d:{};if(_0x274cad==null||_0x274cad['length']===0x0)continue;this['_drawRectRange'](_0x22881d,_0x274cad,_0xf908d,_0x22c484);}else{if(!_0x2127cd){const {borderBoxPointGroup:_0xa574d3}=_0x32d1cd[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe);if(_0xa574d3[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x198)](_0x22881d,_0xa574d3,_0xf908d,_0x22c484);}}}}}[_0x4885bf(0x1da)](_0x5c9c67,_0x16ee81,_0x3f260f,_0x4aa023,_0x3b18dd){const _0x5a74cd=_0x4885bf,_0x52dbc8=this[_0x5a74cd(0xad)](_0x16ee81),{left:_0x4436b5,top:_0x5c295a,height:_0x1f7e4a}=_0x52dbc8,_0x41a59b=this[_0x5a74cd(0x1fe)](),_0x28f708=Nt/_0x41a59b,_0x13e6f1=new C[(_0x5a74cd(0x28b))](_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023,'height':_0x1f7e4a,'width':Dt,'fill':_0x5c9c67||C[_0x5a74cd(0x109)](a[_0x5a74cd(0xd2)][_0x5a74cd(0x29b)],0x0),'strokeWidth':_0x28f708,'stroke':Ut,'evented':!0x0});this[_0x5a74cd(0xbe)]=_0x13e6f1,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x13e6f1,p[_0x5a74cd(0xe9)]);const _0x1520a0=new C[(_0x5a74cd(0x28b))](_e+a['generateRandomId'](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-he/0x2,'height':he,'width':he,'fill':_0x5c9c67||C['getColor'](a[_0x5a74cd(0xd2)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5c9c67||C[_0x5a74cd(0x109)](a['COLORS'][_0x5a74cd(0x29b)],0x0),'evented':!0x1});this[_0x5a74cd(0xd6)]=_0x1520a0,this[_0x5a74cd(0xc5)]['addObject'](_0x1520a0,p[_0x5a74cd(0xe9)]);const _0x256d15=new re(_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-X,'text':_0x3b18dd,'color':_0x5c9c67});this[_0x5a74cd(0x260)]=_0x256d15,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x256d15,p[_0x5a74cd(0xe9)]),this[_0x5a74cd(0x1e1)]=!0x1;}[_0x4885bf(0x179)](){const _0x50c41d=_0x4885bf,_0x589d1e=this['_anchor'][_0x50c41d(0x213)][_0x50c41d(0xda)](()=>{const _0x4e9bdd=_0x50c41d;this[_0x4e9bdd(0x1e1)]=!0x0;}),_0x272825=this['_anchor'][_0x50c41d(0xa3)][_0x50c41d(0xda)](()=>{const _0x1a1d16=_0x50c41d;this[_0x1a1d16(0x2ec)]&&clearTimeout(this['_hideTimer']),this[_0x1a1d16(0x2ec)]=setTimeout(()=>{const _0xe8c776=_0x1a1d16;this[_0xe8c776(0x1e1)]=!0x1;},0x7d0);});return()=>{const _0x1b938c=_0x50c41d;_0x589d1e[_0x1b938c(0x27f)](),_0x272825[_0x1b938c(0x27f)]();};}[_0x4885bf(0x198)](_0xa0540,_0x9d10fe,_0x520cab,_0x1cbd26){const _0x15c36d=_0x4885bf,_0x32a4ed=new a[(_0x15c36d(0x1bf))](_0xa0540)[_0x15c36d(0xb6)](0.2)[_0x15c36d(0x2f1)](),_0x413588=new C[(_0x15c36d(0x2ab))](Rt+a[_0x15c36d(0x2f0)](H),{'pointsGroup':_0x9d10fe,'fill':_0x32a4ed||C[_0x15c36d(0x109)](a[_0x15c36d(0xd2)][_0x15c36d(0x29b)],0.2),'left':_0x520cab,'top':_0x1cbd26,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15c36d(0x345)]['push'](_0x413588),this[_0x15c36d(0xc5)]['addObject'](_0x413588,p['TEXT_RANGE_LAYER_INDEX']);}[_0x4885bf(0x137)](_0x2a7b5d,_0x563cf2,_0x1f9ec4,_0x5d950a){const _0x1fc037=_0x4885bf,_0x11f728=new a[(_0x1fc037(0x1bf))](_0x2a7b5d)['setAlpha'](0.2)[_0x1fc037(0x2f1)](),_0x25532b=new C['RegularPolygon'](bt+a[_0x1fc037(0x2f0)](H),{'pointsGroup':_0x563cf2,'fill':_0x11f728||C[_0x1fc037(0x109)](a['COLORS'][_0x1fc037(0x29b)],0.2),'left':_0x1f9ec4,'top':_0x5d950a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1fc037(0x33a)](_0x25532b),this['_scene'][_0x1fc037(0x2b1)](_0x25532b,p[_0x1fc037(0xe9)]);}[_0x4885bf(0xad)](_0x469f92){const _0x4b8cbf=_0x469f92[0x0],_0x555fe6=_0x4b8cbf[0x0],_0x12669d=_0x4b8cbf[0x2],{x:_0xb4cb24,y:_0x47f795}=_0x555fe6,{x:_0x135894,y:_0x1635cb}=_0x12669d;return{'left':_0xb4cb24,'top':_0x47f795,'width':_0x135894-_0xb4cb24,'height':_0x1635cb-_0x47f795};}['_getScale'](){const _0xa3cd24=_0x4885bf,{scaleX:_0x3a2a3e,scaleY:_0x579335}=this[_0xa3cd24(0xc5)][_0xa3cd24(0x328)]();return Math[_0xa3cd24(0x167)](_0x3a2a3e,_0x579335);}}var Lt=Object[_0x4885bf(0xee)],Mt=(_0x2c268b,_0x5303dc,_0x4169ae,_0x47c554)=>{const _0x328503=_0x4885bf;for(var _0x211839=_0x47c554>0x1?void 0x0:_0x47c554?Lt(_0x5303dc,_0x4169ae):_0x5303dc,_0x565326=_0x2c268b[_0x328503(0x12a)]-0x1,_0x214e08;_0x565326>=0x0;_0x565326--)(_0x214e08=_0x2c268b[_0x565326])&&(_0x211839=_0x214e08(_0x211839)||_0x211839);return _0x211839;},q=(_0x22823c,_0x12abfa)=>(_0x5bd6d3,_0x11f832)=>_0x12abfa(_0x5bd6d3,_0x11f832,_0x22823c);let Ee=class extends a[_0x4885bf(0x1aa)]{constructor(_0x15e321,_0x4516df,_0x5e39de,_0x554514,_0x1ce664){const _0x262ca1=_0x4885bf;super(),_(this,'_cursorShapes',[]),_(this,_0x262ca1(0x31b),[]),(this[_0x262ca1(0x302)]=_0x15e321,this[_0x262ca1(0x31e)]=_0x4516df,this[_0x262ca1(0x12d)]=_0x5e39de,this['_commandService']=_0x554514,this[_0x262ca1(0x336)]=_0x1ce664,this[_0x262ca1(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3614d0=_0x4885bf,_0x588e26=this[_0x3614d0(0x302)][_0x3614d0(0x276)],_0x1efded=this[_0x3614d0(0x31e)];this[_0x3614d0(0x354)](I[_0x3614d0(0x222)]([this[_0x3614d0(0x12d)][_0x3614d0(0x232)](_0x588e26),this[_0x3614d0(0x336)][_0x3614d0(0x17a)]])[_0x3614d0(0x153)]($[_0x3614d0(0x2d7)](([_0x7abc8b,_0x541ade])=>({'skeleton':_0x1efded[_0x3614d0(0x2a9)](),'cursors':[..._0x7abc8b[_0x3614d0(0x194)]()]['flatMap'](_0xa2bf39=>({..._0xa2bf39,'color':this[_0x3614d0(0x336)][_0x3614d0(0x1c7)](_0xa2bf39[_0x3614d0(0x331)])}))})))[_0x3614d0(0x22c)](_0xbf3028=>{const _0x2b0fd3=_0x3614d0;if(this[_0x2b0fd3(0x254)](),_0xbf3028){const {skeleton:_0x1b092a,cursors:_0x32dde2}=_0xbf3028;this[_0x2b0fd3(0x214)](_0x1b092a,_0x32dde2);}})),this[_0x3614d0(0x286)](),this[_0x3614d0(0xd9)]();}[_0x4885bf(0x214)](_0x26e487,_0x26a54d){const _0x11197e=_0x4885bf,{scene:_0x406a99,mainComponent:_0x19b373}=this[_0x11197e(0x302)],_0x201b20=_0x26a54d[_0x11197e(0x2d7)](_0x5f4db5=>new Le(_0x5f4db5,_0x406a99,_0x26e487,_0x19b373));this[_0x11197e(0x2e7)]=_0x201b20,this[_0x11197e(0x31b)]=_0x26a54d;}[_0x4885bf(0x159)](){const _0x153396=_0x4885bf;this[_0x153396(0x254)]();const {scene:_0x59ae6d,mainComponent:_0x148c39}=this[_0x153396(0x302)],_0x4d68a8=this[_0x153396(0x31e)][_0x153396(0x2a9)](),_0x7e49f4=this[_0x153396(0x31b)][_0x153396(0x2d7)](_0x59c1b4=>new Le(_0x59c1b4,_0x59ae6d,_0x4d68a8,_0x148c39));this[_0x153396(0x2e7)]=_0x7e49f4;}[_0x4885bf(0x254)](){const _0x395671=_0x4885bf;this[_0x395671(0x2e7)][_0x395671(0x28d)](_0x2b4877=>_0x2b4877[_0x395671(0xcf)]()),this[_0x395671(0x2e7)]=[];}[_0x4885bf(0xd9)](){const _0x4c9a1e=_0x4885bf,_0x1ddeea=[p[_0x4c9a1e(0x1ca)]['id']];this[_0x4c9a1e(0x354)](this[_0x4c9a1e(0x26a)][_0x4c9a1e(0x258)](_0x1f8579=>{const _0x52b3f9=_0x4c9a1e;_0x1ddeea[_0x52b3f9(0x26b)](_0x1f8579['id'])&&_0x1f8579['params'][_0x52b3f9(0x276)]===this[_0x52b3f9(0x302)]['unitId']&&this[_0x52b3f9(0x159)]();}));}[_0x4885bf(0x286)](){const _0x2d883b=_0x4885bf;this[_0x2d883b(0x354)](a[_0x2d883b(0x1e4)](this[_0x2d883b(0x302)][_0x2d883b(0x1d2)]['onTransformChange$'])[_0x2d883b(0x153)]($['filter'](_0x4fceaf=>_0x4fceaf['type']===C[_0x2d883b(0x21f)][_0x2d883b(0x23d)]),$[_0x2d883b(0x96)](0x10))['subscribe'](()=>{const _0x18f09f=_0x2d883b;this[_0x18f09f(0x159)]();}));}};Ee=Mt([q(0x1,a[_0x4885bf(0xe0)](V[_0x4885bf(0x147)])),q(0x2,a['Inject'](F)),q(0x3,a[_0x4885bf(0x2a2)]),q(0x4,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4885bf(0x257)]{constructor(_0x15b957,_0x4458b8){const _0x1659c5=_0x4885bf;super(_0x15b957,_0x4458b8),_(this,_0x1659c5(0xdc)),_(this,_0x1659c5(0x126),!0x1),_(this,_0x1659c5(0x203)),_(this,_0x1659c5(0x26d),''),_(this,_0x1659c5(0x1b7),_0x1659c5(0xaf)),_(this,_0x1659c5(0xba)),(_0x4458b8&&this[_0x1659c5(0x1c3)](_0x4458b8),this[_0x1659c5(0x213)][_0x1659c5(0xda)](()=>this[_0x1659c5(0x1c3)]({'hovered':!0x0})),this[_0x1659c5(0xa3)][_0x1659c5(0xda)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4885bf(0x1c3)](_0x426870){const _0x58f34b=_0x4885bf;var _0x3b21dd,_0x2cd4b8,_0xc6fb43,_0x41f1ce,_0xfb5951,_0x75ac33;this[_0x58f34b(0xdc)]=(_0x3b21dd=_0x426870[_0x58f34b(0x331)])!=null?_0x3b21dd:this[_0x58f34b(0xdc)],this[_0x58f34b(0x126)]=(_0x2cd4b8=_0x426870[_0x58f34b(0x1c6)])!=null?_0x2cd4b8:this[_0x58f34b(0x126)],this[_0x58f34b(0x203)]=(_0xc6fb43=_0x426870['range'])!=null?_0xc6fb43:this[_0x58f34b(0x203)],this[_0x58f34b(0x26d)]=(_0x41f1ce=_0x426870[_0x58f34b(0x30b)])!=null?_0x41f1ce:this[_0x58f34b(0x26d)],this[_0x58f34b(0x1b7)]=(_0xfb5951=_0x426870[_0x58f34b(0x2d1)])!=null?_0xfb5951:this[_0x58f34b(0x1b7)],this[_0x58f34b(0xba)]=(_0x75ac33=_0x426870[_0x58f34b(0xc4)])!=null?_0x75ac33:this[_0x58f34b(0xba)],this[_0x58f34b(0x1e0)]({'width':_0x426870[_0x58f34b(0x132)],'height':_0x426870[_0x58f34b(0x2ad)]});}['onMouseMove'](_0x5e773b){const _0x1febe9=_0x4885bf,{row:_0x44e591,column:_0x31e7e6}=_0x5e773b;if(_0x44e591>=this[_0x1febe9(0x203)]['startRow']&&_0x44e591<=this[_0x1febe9(0x203)][_0x1febe9(0x25e)]&&_0x31e7e6>=this['_range'][_0x1febe9(0x17b)]&&_0x31e7e6<=this[_0x1febe9(0x203)][_0x1febe9(0x2a7)]){this[_0x1febe9(0x1c3)]({'hovered':!0x0});return;}this[_0x1febe9(0x1c3)]({'hovered':!0x1});}['triggerDblclick'](_0x4c06b4){return!0x1;}[_0x4885bf(0x274)](_0xae37e9){const _0x12138c=_0x4885bf;C[_0x12138c(0x28b)]['drawWith'](_0xae37e9,{'width':this[_0x12138c(0x132)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x12138c(0xdc)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x12138c(0x126)]&&(_0xae37e9[_0x12138c(0x1d9)](),_0xae37e9['transform'](0x1,0x0,0x0,0x1,this[_0x12138c(0x132)],this[_0x12138c(0x1b7)]===_0x12138c(0x1d7)?0x0:-X),re[_0x12138c(0x173)](_0xae37e9,{'text':this[_0x12138c(0x26d)],'color':this[_0x12138c(0xdc)]}),_0xae37e9[_0x12138c(0x35b)]());}}var wt=Object[_0x4885bf(0xee)],yt=(_0x21de19,_0x1f8ecc,_0x122ae3,_0x11456a)=>{const _0x54d335=_0x4885bf;for(var _0x244630=_0x11456a>0x1?void 0x0:_0x11456a?wt(_0x1f8ecc,_0x122ae3):_0x1f8ecc,_0x238890=_0x21de19[_0x54d335(0x12a)]-0x1,_0x4ec455;_0x238890>=0x0;_0x238890--)(_0x4ec455=_0x21de19[_0x238890])&&(_0x244630=_0x4ec455(_0x244630)||_0x244630);return _0x244630;},ue=(_0x8e9d25,_0x21e8d0)=>(_0x6db396,_0x15d778)=>_0x21e8d0(_0x6db396,_0x15d778,_0x8e9d25);const $t=0x1389;let Ce=class extends a[_0x4885bf(0x1aa)]{constructor(_0x127c2f,_0x335159,_0x537926,_0x4de698){const _0x5f0507=_0x4885bf;super(),_(this,_0x5f0507(0x31b),new Set()),_(this,_0x5f0507(0x2e3),null),(this[_0x5f0507(0x302)]=_0x127c2f,this[_0x5f0507(0x327)]=_0x335159,this[_0x5f0507(0x12d)]=_0x537926,this[_0x5f0507(0x336)]=_0x4de698,this[_0x5f0507(0x2a5)]());}['_init'](){const _0x459be0=_0x4885bf;this[_0x459be0(0x327)][_0x459be0(0x16f)][_0x459be0(0x153)]($[_0x459be0(0x268)](this[_0x459be0(0x30f)]),$[_0x459be0(0xea)](_0xf62b16=>{const _0x51b9bf=_0x459be0;if(_0xf62b16){const _0x1c8a44=_0xf62b16['sheetId'];return I[_0x51b9bf(0x222)](this[_0x51b9bf(0x12d)][_0x51b9bf(0x232)](this['_context'][_0x51b9bf(0x276)]),this[_0x51b9bf(0x336)]['currentTheme$'])['pipe']($[_0x51b9bf(0x2d7)](([_0x1dea43,_0x2dfa99])=>{const _0x392840=new Map();return _0x1dea43['forEach']((_0x4c4e28,_0x767a86)=>{const _0x548aec=_0x30e5;if(_0x4c4e28[_0x548aec(0xf3)]===_0x1c8a44){const _0x4a6010={..._0x4c4e28};_0x4a6010['color']=this[_0x548aec(0x336)][_0x548aec(0x1c7)](_0x4c4e28[_0x548aec(0x331)]),_0x392840[_0x548aec(0x219)](_0x767a86,_0x4a6010);}}),{'skeleton':_0xf62b16,'cursors':_0x392840};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5079ac,cursors:_0x1e8ac2})=>{const _0x10600a=_0x459be0;this['_removeCollabCursors'](),_0x5079ac&&this[_0x10600a(0x214)](_0x5079ac,_0x1e8ac2);}),this[_0x459be0(0x327)][_0x459be0(0x16f)]['subscribe'](_0x41f0c4=>{const _0x51c058=_0x459be0;if(_0x41f0c4==null)return;const {skeleton:_0x3560e8}=_0x41f0c4,{scene:_0x13975b}=this[_0x51c058(0x302)];_0x13975b['onPointerMove$']['subscribeEvent'](a[_0x51c058(0xf6)](_0x1935a8=>{const _0x1d3efe=_0x51c058;var _0x5a105a,_0x208914;const {offsetX:_0x5f467d,offsetY:_0x458165}=_0x1935a8,{x:_0x219656,y:_0x420aba}=_0x13975b[_0x1d3efe(0x9d)](C[_0x1d3efe(0x20a)]['FromArray']([_0x5f467d,_0x458165])),{scaleX:_0x3f9cd8,scaleY:_0x17a834}=_0x13975b[_0x1d3efe(0x328)](),_0x343934=_0x13975b['getViewport'](C[_0x1d3efe(0x2dc)]['VIEW_MAIN']),_0x120588=_0x13975b[_0x1d3efe(0x120)](C[_0x1d3efe(0x20a)]['FromArray']([_0x219656,_0x420aba]),_0x343934),_0x7e3ae1=_0x3560e8[_0x1d3efe(0xb0)](_0x5f467d,_0x458165,_0x3f9cd8,_0x17a834,_0x120588);((_0x5a105a=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x5a105a[_0x1d3efe(0x304)])===_0x7e3ae1['column']&&((_0x208914=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x208914[_0x1d3efe(0x1b1)])===_0x7e3ae1[_0x1d3efe(0x1b1)]||this[_0x1d3efe(0x31b)][_0x1d3efe(0x28d)](_0x4ae97=>{const _0x42b17b=_0x1d3efe;_0x4ae97[_0x42b17b(0x1be)](_0x7e3ae1);});},0x64));});}[_0x4885bf(0x214)](_0x11425b,_0x380f85){const _0x5e6446=_0x4885bf;var _0x4bc2bc;const _0xae843a=(_0x4bc2bc=this[_0x5e6446(0x327)][_0x5e6446(0xb4)]())==null?void 0x0:_0x4bc2bc[_0x5e6446(0x1d4)];if(!_0xae843a)return;const _0x344803=this[_0x5e6446(0x2bb)]();if(!_0x344803)return;this[_0x5e6446(0x31b)][_0x5e6446(0x28d)](_0x1f5c05=>{_0x1f5c05['makeDirty']();});const {scene:_0xf211e7}=_0x344803,_0x522b27=xt(Array['from'](_0x380f85[_0x5e6446(0x194)]()))[_0x5e6446(0x2d7)](_0x5f00b0=>{const _0x5b8088=_0x5e6446,{color:_0x42f83a,range:_0x1738cc,name:_0x2c8f47,selection:_0x137cef,sheetID:_0x35e01a}=_0x5f00b0,{startColumn:_0x1fcb37,startRow:_0x22febe,endColumn:_0x4e486b,endRow:_0x41d552}=_0x1738cc,_0x1690d0=J[_0x5b8088(0x1a5)](_0x22febe,_0x1fcb37,_0xf211e7,_0xae843a),_0x3ced20=J[_0x5b8088(0x1a5)](_0x41d552,_0x4e486b,_0xf211e7,_0xae843a),{columnHeaderHeightAndMarginTop:_0x4d1990}=_0xae843a,{startX:_0x226d38,startY:_0x4c6604}=_0x1690d0,{endX:_0x175e65,endY:_0x3e15dc}=_0x3ced20,_0x25bfd9=_0x175e65-_0x226d38,_0x283fcd=_0x3e15dc-_0x4c6604,_0x3a9279={'labelPosition':_0x4c6604-_0x4d1990>=X?'top':_0x5b8088(0x1d7),'sheetID':_0x35e01a,'range':_0x1738cc,'color':_0x42f83a,'name':_0x2c8f47,'selection':_0x137cef,'left':_0x226d38,'top':_0x4c6604,'width':_0x25bfd9,'height':_0x283fcd,'evented':!0x1,'zIndex':$t};return new je(_0x2c8f47,_0x3a9279);});_0xf211e7[_0x5e6446(0x34c)](_0x522b27,At),this[_0x5e6446(0x31b)]=new Set(_0x522b27);}[_0x4885bf(0x254)](){const _0x3175dc=_0x4885bf;var _0x5c520f;(_0x5c520f=this[_0x3175dc(0x31b)])==null||_0x5c520f[_0x3175dc(0x28d)](_0x400486=>_0x400486['dispose']());}[_0x4885bf(0x2bb)](){const _0x36d1f9=_0x4885bf;return J[_0x36d1f9(0x18b)](this['_context']['unit'],this[_0x36d1f9(0x302)]);}};Ce=yt([ue(0x1,a[_0x4885bf(0xe0)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4885bf(0xe0)](F)),ue(0x3,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ce);function xt(_0x5bb7b5){const _0x54bf5c=_0x4885bf,_0x5b392d=new Map();return _0x5bb7b5['forEach'](_0x2cf05b=>{const _0x19cbaf=_0x30e5;if(_0x5b392d[_0x19cbaf(0x11b)](_0x2cf05b['selection'])){const _0x1c4b23=_0x5b392d[_0x19cbaf(0x1b8)](_0x2cf05b[_0x19cbaf(0x310)]);_0x1c4b23[_0x19cbaf(0x30b)]+=',\x20'+_0x2cf05b['name'];}else _0x5b392d[_0x19cbaf(0x219)](_0x2cf05b[_0x19cbaf(0x310)],_0x2cf05b);}),Array[_0x54bf5c(0x15e)](_0x5b392d[_0x54bf5c(0x194)]());}var Bt=Object[_0x4885bf(0xee)],Ft=(_0x45c182,_0x2c70ff,_0x5cbe98,_0xa1628e)=>{const _0x2253eb=_0x4885bf;for(var _0x21f192=_0xa1628e>0x1?void 0x0:_0xa1628e?Bt(_0x2c70ff,_0x5cbe98):_0x2c70ff,_0x424b3d=_0x45c182[_0x2253eb(0x12a)]-0x1,_0x1bf42d;_0x424b3d>=0x0;_0x424b3d--)(_0x1bf42d=_0x45c182[_0x424b3d])&&(_0x21f192=_0x1bf42d(_0x21f192)||_0x21f192);return _0x21f192;},y=(_0x4bfdcf,_0x3c9146)=>(_0x18ae6d,_0x524895)=>_0x3c9146(_0x18ae6d,_0x524895,_0x4bfdcf);let Z=class extends a['Disposable']{constructor(_0x5cc113,_0x1c1bb1,_0x5da883,_0x199eb4,_0x4e1522,_0x210ab5){const _0x3e07b2=_0x4885bf;super(),this[_0x3e07b2(0xc1)]=_0x5cc113,this[_0x3e07b2(0xf0)]=_0x1c1bb1,this[_0x3e07b2(0x22d)]=_0x5da883,this['_messageService']=_0x199eb4,this[_0x3e07b2(0x134)]=_0x4e1522,this['_localeService']=_0x210ab5,this['_setupBeforeClosingHandler'](),this[_0x3e07b2(0x296)]();}[_0x4885bf(0xc2)](){const _0x265e2f=_0x4885bf;this[_0x265e2f(0x354)](this['_beforeCloseService'][_0x265e2f(0x318)](()=>{const _0x3716b1=_0x265e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x3716b1(0x1ac)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x4885bf(0x296)](){const _0x5c26fa=_0x4885bf;this[_0x5c26fa(0x354)](this[_0x5c26fa(0x22d)][_0x5c26fa(0x31c)][_0x5c26fa(0x22c)](_0x8cb3b4=>{const _0x1396b1=_0x5c26fa;_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x1fc)]&&this[_0x1396b1(0x19a)]['show']({'type':T[_0x1396b1(0x1d8)]['Warning'],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x2fa))}),_0x8cb3b4['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x103))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xab)]&&this[_0x1396b1(0x134)][_0x1396b1(0x9f)]({'title':this[_0x1396b1(0x1ac)]['t']('permission.title'),'content':this[_0x1396b1(0x1ac)]['t']('permission.content'),'type':_0x1396b1(0x1d5),'duration':0x0}),_0x8cb3b4['id']===u['CollaborationUIEventId'][_0x1396b1(0x2f5)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this['_localeService']['t'](_0x1396b1(0x103))+'('+_0x8cb3b4['data']+')'}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x211)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x8cb3b4['data']||'')}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x267)]&&this['_messageService']['show']({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x124))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xa4)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x1ef))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x175)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x107))});}));}};function _0x30e5(_0x15d732,_0x132a4d){const _0x77824c=_0x7782();return _0x30e5=function(_0x30e529,_0x446923){_0x30e529=_0x30e529-0x8e;let _0x692666=_0x77824c[_0x30e529];return _0x692666;},_0x30e5(_0x15d732,_0x132a4d);}Z=Ft([y(0x0,O[_0x4885bf(0x168)]),y(0x1,u[_0x4885bf(0x281)]),y(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x34b)])),y(0x3,O[_0x4885bf(0x255)]),y(0x4,O[_0x4885bf(0x12c)]),y(0x5,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],Z);var jt=Object[_0x4885bf(0xee)],kt=(_0x5b00ff,_0x846123,_0x9a1993,_0x26e088)=>{const _0x52b99d=_0x4885bf;for(var _0x31600f=_0x26e088>0x1?void 0x0:_0x26e088?jt(_0x846123,_0x9a1993):_0x846123,_0x18dd42=_0x5b00ff[_0x52b99d(0x12a)]-0x1,_0x4d8ec1;_0x18dd42>=0x0;_0x18dd42--)(_0x4d8ec1=_0x5b00ff[_0x18dd42])&&(_0x31600f=_0x4d8ec1(_0x31600f)||_0x31600f);return _0x31600f;},z=(_0x528c83,_0x4f92aa)=>(_0x20ba6a,_0xc8dd71)=>_0x4f92aa(_0x20ba6a,_0xc8dd71,_0x528c83);let Q=class extends a['Disposable']{constructor(_0x3587b0,_0x3f9d39,_0x23f212,_0x5916b8){const _0x89991f=_0x4885bf;super(),_(this,_0x89991f(0x28e)),(this[_0x89991f(0x17e)]=_0x3587b0,this[_0x89991f(0x195)]=_0x3f9d39,this['_logService']=_0x23f212,this['_collaborationSessionService']=_0x5916b8,this[_0x89991f(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3d744d=_0x4885bf;this[_0x3d744d(0x24f)](),this[_0x3d744d(0x204)](),this[_0x3d744d(0x2af)](),this['_initUserListener']();}[_0x4885bf(0x359)](){const _0x2daa03=_0x4885bf;this[_0x2daa03(0x354)](this['_collaborationSessionService'][_0x2daa03(0x294)][_0x2daa03(0x22c)](_0x45e5f1=>{const _0x5eca73=_0x2daa03;this[_0x5eca73(0x28e)]=_0x45e5f1==null?void 0x0:_0x45e5f1[_0x5eca73(0x187)];}));}[_0x4885bf(0x24f)](){const _0x2e5769=_0x4885bf,_0xfa2439=_0x20b589=>{const _0x10da87=_0x30e5;var _0x4069c8;this[_0x10da87(0x353)]('error','[Window\x20Error]:\x20'+_0x20b589['message']+_0x10da87(0x32b)+_0x20b589[_0x10da87(0x12b)]+':'+_0x20b589[_0x10da87(0x21b)]+':'+_0x20b589[_0x10da87(0x13d)]+'\x0a'+(((_0x4069c8=_0x20b589[_0x10da87(0x1d5)])==null?void 0x0:_0x4069c8[_0x10da87(0x22f)])||''));};window['addEventListener'](_0x2e5769(0x1d5),_0xfa2439),this[_0x2e5769(0x354)](()=>{const _0x5d13b7=_0x2e5769;window[_0x5d13b7(0x2a8)](_0x5d13b7(0x1d5),_0xfa2439);});}[_0x4885bf(0x204)](){const _0x59bb0e=_0x4885bf,_0x4cc34a=_0x194d2f=>{const _0x130b52=_0x30e5;this[_0x130b52(0x353)]('error',_0x130b52(0x11a)+_0x194d2f[_0x130b52(0xb7)]);};window[_0x59bb0e(0x29c)]('unhandledrejection',_0x4cc34a),this[_0x59bb0e(0x354)](()=>{const _0x334a4c=_0x59bb0e;window[_0x334a4c(0x2a8)](_0x334a4c(0x2b0),_0x4cc34a);});}[_0x4885bf(0x2af)](){const _0x445ad7=_0x4885bf,_0x5e7d4f=this[_0x445ad7(0x1ed)]['error'][_0x445ad7(0x14f)](this['_logService']);this['_logService']['error']=(..._0x3ab552)=>{const _0x337094=_0x445ad7,_0x502f20=_0x3ab552[_0x337094(0x2d7)](_0x5e0ea8=>_0x5e0ea8 instanceof Error?_0x5e0ea8[_0x337094(0xdb)]+'\x0a'+_0x5e0ea8[_0x337094(0x22f)]:String(_0x5e0ea8))[_0x337094(0x146)]('\x20');this['_uploadLog'](_0x337094(0x1d5),_0x337094(0x172)+_0x502f20),_0x5e7d4f(..._0x3ab552);},this['disposeWithMe'](()=>{const _0x75a5ce=_0x445ad7;this[_0x75a5ce(0x1ed)]['error']=_0x5e7d4f;});}[_0x4885bf(0x353)](_0x26d1f5,_0x1b0131){const _0xaa9a85=_0x4885bf;try{const _0x391c9f={'userId':this['_memberID'],'logLabel':_0x26d1f5,'content':_0x1b0131};this['_httpService'][_0xaa9a85(0x17c)](_0xaa9a85(0x347),{'body':_0x391c9f})[_0xaa9a85(0x223)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),z(0x1,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),z(0x2,a['ILogService']),z(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x307)]))],Q);const Yt=_0x4885bf(0x23c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x20fbf5,_0x214c11,_0x2c2b98,_0x34bf3c)=>{const _0x2264ec=_0x4885bf;for(var _0x590db9=_0x34bf3c>0x1?void 0x0:_0x34bf3c?Ht(_0x214c11,_0x2c2b98):_0x214c11,_0x152c14=_0x20fbf5[_0x2264ec(0x12a)]-0x1,_0xcf2a9;_0x152c14>=0x0;_0x152c14--)(_0xcf2a9=_0x20fbf5[_0x152c14])&&(_0x590db9=_0xcf2a9(_0x590db9)||_0x590db9);return _0x590db9;},Ae=(_0x7be90d,_0x2f394f)=>(_0x390bb3,_0x29cfa4)=>_0x2f394f(_0x390bb3,_0x29cfa4,_0x7be90d);let ee=class{constructor(_0xfb6b4e,_0x22d3ca){const _0x52ad87=_0x4885bf;this[_0x52ad87(0x148)]=_0xfb6b4e,this[_0x52ad87(0x342)]=_0x22d3ca;}['transformIMECache'](_0x40401b){const _0x4b78ec=_0x4885bf;this['_transformUndoRedoStack'](_0x40401b),this[_0x4b78ec(0x2de)](_0x40401b);}[_0x4885bf(0x2d6)](_0x89e1aa){const _0x4a769c=_0x4885bf,{unitID:_0x100e67}=_0x89e1aa,_0x1ed4ab=this[_0x4a769c(0x342)]['getRenderById'](_0x100e67)['with'](p[_0x4a769c(0xb2)]),{redoCache:_0x33e993}=_0x1ed4ab['getUndoRedoMutationParamsCache']();if(_0x33e993[_0x4a769c(0x12a)]===0x0)return _0x89e1aa;let _0x505d01=a['Tools'][_0x4a769c(0x149)](_0x89e1aa[_0x4a769c(0x110)][0x0]);for(let _0x1fc781=0x0;_0x1fc781<_0x33e993[_0x4a769c(0x12a)];_0x1fc781++){const _0x4c9dde={'id':_0x4a769c(0x2d0),'params':{..._0x33e993[_0x1fc781]}},_0x171cbd=this[_0x4a769c(0x148)]['transformMutation'](_0x505d01,_0x4c9dde,!0x1);if(g[_0x4a769c(0x2b6)](_0x171cbd))throw _0x171cbd[_0x4a769c(0x1d5)];_0x505d01=_0x171cbd[_0x4a769c(0x16b)];}return{...a[_0x4a769c(0xe3)]['deepClone'](_0x89e1aa),'mutations':[_0x505d01]};}[_0x4885bf(0x16c)](_0x132a6b){const _0x13227c=_0x4885bf,{unitID:_0x5566e3}=_0x132a6b,_0x144cb0=this['_renderManagerService'][_0x13227c(0x1c4)](_0x5566e3)[_0x13227c(0x19f)](p[_0x13227c(0xb2)]),{undoCache:_0x1c843e,redoCache:_0x5cd801}=_0x144cb0[_0x13227c(0x349)]();if(_0x1c843e[_0x13227c(0x12a)]===0x0||_0x5cd801[_0x13227c(0x12a)]===0x0)return;const _0x2dda96=[],_0x1be4e9=[];let _0x46b575=a['Tools'][_0x13227c(0x149)](_0x132a6b['mutations'][0x0]),_0xcff5ce=a[_0x13227c(0xe3)][_0x13227c(0x149)](_0x132a6b[_0x13227c(0x110)][0x0]);for(let _0x44cef7=_0x1c843e[_0x13227c(0x12a)]-0x1;_0x44cef7>=0x0;_0x44cef7--){const _0x5c7b3d={'id':'doc.mutation.rich-text-editing','params':{..._0x1c843e[_0x44cef7]}},_0xf89245={'id':'doc.mutation.rich-text-editing','params':{..._0x5cd801[_0x44cef7]}},_0x1134f0=this[_0x13227c(0x148)][_0x13227c(0x293)](_0x46b575,_0x5c7b3d,!0x1),_0x2282b0=this[_0x13227c(0x148)]['transformMutation'](_0xcff5ce,_0xf89245,!0x1);if(g[_0x13227c(0x2b6)](_0x1134f0))throw _0x1134f0['error'];if(g[_0x13227c(0x2b6)](_0x2282b0))throw _0x2282b0[_0x13227c(0x1d5)];_0x2dda96[_0x13227c(0x18f)](_0x1134f0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x1be4e9[_0x13227c(0x18f)](_0x2282b0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x46b575=_0x1134f0[_0x13227c(0x16b)],_0xcff5ce=_0x2282b0[_0x13227c(0x16b)];}_0x144cb0['setUndoRedoMutationParamsCache']({'undoCache':_0x2dda96,'redoCache':_0x1be4e9});}[_0x4885bf(0x2de)](_0x1e99cc){const _0x265279=_0x4885bf,{unitID:_0x5cbe50}=_0x1e99cc,_0x470b2e=this[_0x265279(0x342)][_0x265279(0x1c4)](_0x5cbe50)['with'](p[_0x265279(0xb2)]),_0x2deb81=_0x470b2e[_0x265279(0xbc)]();if(_0x2deb81==null)return;const _0x37a406=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e99cc[_0x265279(0x143)],'actions':null,'textRanges':[_0x2deb81]}}],_0x4b3b62=this[_0x265279(0x148)][_0x265279(0x1f8)](_0x1e99cc,_0x37a406);if(!g[_0x265279(0x117)](_0x4b3b62))throw _0x4b3b62[_0x265279(0x1d5)];const _0x99c3e6=_0x4b3b62[_0x265279(0x2c5)][0x0]['params'][_0x265279(0x122)];Array[_0x265279(0x2cd)](_0x99c3e6)&&_0x99c3e6[_0x265279(0x12a)]&&_0x470b2e[_0x265279(0x163)](_0x99c3e6[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x4885bf(0xee)],Gt=(_0x21ce5b,_0x543a1b,_0x3c9d57,_0x4a3244)=>{const _0x479f3b=_0x4885bf;for(var _0x5a01db=_0x4a3244>0x1?void 0x0:_0x4a3244?Vt(_0x543a1b,_0x3c9d57):_0x543a1b,_0x677d8c=_0x21ce5b[_0x479f3b(0x12a)]-0x1,_0x453ebc;_0x677d8c>=0x0;_0x677d8c--)(_0x453ebc=_0x21ce5b[_0x677d8c])&&(_0x5a01db=_0x453ebc(_0x5a01db)||_0x5a01db);return _0x5a01db;},Ie=(_0x5c4d1d,_0xbefc05)=>(_0x103719,_0x1212a2)=>_0xbefc05(_0x103719,_0x1212a2,_0x5c4d1d);let te=class{constructor(_0x18ea12,_0x394b16,_0x35d377){const _0xe6f19=_0x4885bf;this[_0xe6f19(0x17e)]=_0x18ea12,this['_transformService']=_0x394b16,this[_0xe6f19(0x24b)]=_0x35d377;}[_0x4885bf(0x10c)](_0x3eb7ac){const _0x245bdb=_0x4885bf;this[_0x245bdb(0x218)](_0x3eb7ac);}[_0x4885bf(0x2d6)](_0x48721e){const _0x5c210a=_0x4885bf,{unitID:_0x30f9ee}=_0x48721e,{collaboration:_0x6195f4}=this[_0x5c210a(0x24b)][_0x5c210a(0x181)](_0x30f9ee);if(_0x6195f4[_0x5c210a(0x12a)]===0x0)return _0x48721e;let _0xe0d423=a[_0x5c210a(0xe3)][_0x5c210a(0x149)](_0x48721e[_0x5c210a(0x110)][0x0]);for(let _0x2691b8=0x0;_0x2691b8<_0x6195f4['length'];_0x2691b8++){const _0x57fbc6={'id':_0x5c210a(0x2d0),'params':{'unitId':_0x6195f4[_0x2691b8][_0x5c210a(0x276)],..._0x6195f4[_0x2691b8][_0x5c210a(0x2bf)]}},_0x6071c6=this[_0x5c210a(0x148)][_0x5c210a(0x293)](_0xe0d423,_0x57fbc6,!0x1);if(g['isTransformMutationFailure'](_0x6071c6))throw _0x6071c6[_0x5c210a(0x1d5)];_0xe0d423=_0x6071c6[_0x5c210a(0x16b)];}return{...a[_0x5c210a(0xe3)]['deepClone'](_0x48721e),'mutations':[_0xe0d423]};}[_0x4885bf(0x218)](_0x2e1401){const _0x35afc0=_0x4885bf,{unitID:_0x1aee32}=_0x2e1401,{history:_0x485f00,collaboration:_0x57d5df}=this[_0x35afc0(0x24b)][_0x35afc0(0x181)](_0x1aee32);if(_0x485f00['length']===0x0&&_0x57d5df['length']===0x0)return;const _0x567774=[],_0x1af50b=[];let _0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x1477a2=_0x485f00[_0x35afc0(0x12a)]-0x1;_0x1477a2>=0x0;_0x1477a2--){const _0x23094b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2][_0x35afc0(0x1dc)]}},_0x45531a={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2]['redoState']}},_0x26023c=this['_transformService'][_0x35afc0(0x293)](_0xf9bcf8,_0x23094b,!0x1),_0x26af69=this[_0x35afc0(0x148)]['transformMutation'](_0x256ad1,_0x45531a,!0x1);if(g['isTransformMutationFailure'](_0x26023c))throw _0x26023c[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x26af69))throw _0x26af69['error'];_0x567774[_0x35afc0(0x18f)]({..._0x485f00[_0x1477a2],'undoState':_0x26023c[_0x35afc0(0x2c5)][_0x35afc0(0x215)],'redoState':_0x26af69[_0x35afc0(0x2c5)]['params']}),_0xf9bcf8=_0x26023c['m1Prime'],_0x256ad1=_0x26af69[_0x35afc0(0x16b)];}_0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)]['deepClone'](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x37130e=_0x57d5df[_0x35afc0(0x12a)]-0x1;_0x37130e>=0x0;_0x37130e--){const _0x1a70e3={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x57d5df[_0x37130e]['unitId'],..._0x57d5df[_0x37130e][_0x35afc0(0x1dc)]}},_0x3f5789={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57d5df[_0x37130e][_0x35afc0(0x276)],..._0x57d5df[_0x37130e]['redoState']}},_0x25f400=this[_0x35afc0(0x148)][_0x35afc0(0x293)](_0xf9bcf8,_0x1a70e3,!0x1),_0x1be746=this['_transformService'][_0x35afc0(0x293)](_0x256ad1,_0x3f5789,!0x1);if(g[_0x35afc0(0x2b6)](_0x25f400))throw _0x25f400[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x1be746))throw _0x1be746['error'];_0x1af50b[_0x35afc0(0x18f)]({..._0x57d5df[_0x37130e],'undoState':_0x25f400['m2Prime'][_0x35afc0(0x215)],'redoState':_0x1be746[_0x35afc0(0x2c5)][_0x35afc0(0x215)]}),_0xf9bcf8=_0x25f400[_0x35afc0(0x16b)],_0x256ad1=_0x1be746[_0x35afc0(0x16b)];}this[_0x35afc0(0x24b)][_0x35afc0(0x233)](_0x1aee32,{'history':_0x567774,'collaboration':_0x1af50b});}};te=Gt([Ie(0x0,a['Inject'](a[_0x4885bf(0x199)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x4885bf(0xe0)](p[_0x4885bf(0x244)]))],te);var Xt=Object[_0x4885bf(0xee)],Kt=(_0x45a734,_0x1b0554,_0x3ff6c9,_0x5981ef)=>{const _0x172a03=_0x4885bf;for(var _0x486065=_0x5981ef>0x1?void 0x0:_0x5981ef?Xt(_0x1b0554,_0x3ff6c9):_0x1b0554,_0x27c4d1=_0x45a734[_0x172a03(0x12a)]-0x1,_0x149925;_0x27c4d1>=0x0;_0x27c4d1--)(_0x149925=_0x45a734[_0x27c4d1])&&(_0x486065=_0x149925(_0x486065)||_0x486065);return _0x486065;},Pe=(_0x145db4,_0x55698a)=>(_0x26c816,_0x368a58)=>_0x55698a(_0x26c816,_0x368a58,_0x145db4);let se=class{constructor(_0x43d244,_0x6cbeb){const _0x2834b0=_0x4885bf;this[_0x2834b0(0x17e)]=_0x43d244,this[_0x2834b0(0x148)]=_0x6cbeb;}[_0x4885bf(0x202)](_0xb59212){const _0x56f5ca=_0x4885bf;var _0x220248;const _0x7ee17a=this[_0x56f5ca(0x17e)][_0x56f5ca(0x1b8)](V[_0x56f5ca(0xe6)]),_0x513a68=(_0x220248=_0x7ee17a[_0x56f5ca(0x263)]())!=null?_0x220248:[];if(_0x513a68[_0x56f5ca(0x12a)]===0x0)return;const _0x5b8d62=_0xb59212[_0x56f5ca(0x143)],_0x39b64c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b8d62,'actions':null,'textRanges':_0x513a68}}],_0x59fee2=this[_0x56f5ca(0x148)][_0x56f5ca(0x1f8)](_0xb59212,_0x39b64c);if(!g['isTransformMutationsWithChangesetSuccess'](_0x59fee2))throw _0x59fee2[_0x56f5ca(0x1d5)];const _0x54b3f2=_0x59fee2[_0x56f5ca(0x2c5)][0x0][_0x56f5ca(0x215)][_0x56f5ca(0x122)];Array[_0x56f5ca(0x2cd)](_0x54b3f2)&&_0x54b3f2[_0x56f5ca(0x12a)]&&_0x7ee17a[_0x56f5ca(0x275)](_0x54b3f2,{'unitId':_0x5b8d62,'subUnitId':_0x5b8d62},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4885bf(0x199)])),Pe(0x1,g[_0x4885bf(0x29a)])],se);var qt=Object[_0x4885bf(0xee)],zt=(_0x4bd1e2,_0x41b40c,_0x14db13,_0xae68d6)=>{const _0x405299=_0x4885bf;for(var _0x11fdfb=_0xae68d6>0x1?void 0x0:_0xae68d6?qt(_0x41b40c,_0x14db13):_0x41b40c,_0x5162cf=_0x4bd1e2[_0x405299(0x12a)]-0x1,_0x50ad8d;_0x5162cf>=0x0;_0x5162cf--)(_0x50ad8d=_0x4bd1e2[_0x5162cf])&&(_0x11fdfb=_0x50ad8d(_0x11fdfb)||_0x11fdfb);return _0x11fdfb;},N=(_0xe471ae,_0x4c5f01)=>(_0x2d4a00,_0x1260c4)=>_0x4c5f01(_0x2d4a00,_0x1260c4,_0xe471ae);let ie=class extends a['Disposable']{constructor(_0x5c8103,_0x24092b,_0x220d8a,_0x448a24,_0x52dafe,_0xae90e4,_0x28c7a4,_0x4c3389){const _0x2199ba=_0x4885bf;super(),_(this,_0x2199ba(0x14d),new I['BehaviorSubject'](u[_0x2199ba(0x30d)][_0x2199ba(0x333)])),(this[_0x2199ba(0x24b)]=_0x5c8103,this[_0x2199ba(0x136)]=_0x24092b,this['_docTransformIMECacheService']=_0x220d8a,this[_0x2199ba(0x27a)]=_0x448a24,this['_docTransformSelectionsService']=_0x52dafe,this[_0x2199ba(0x190)]=_0xae90e4,this[_0x2199ba(0x19a)]=_0x28c7a4,this[_0x2199ba(0x1ac)]=_0x4c3389,this[_0x2199ba(0x19c)]());}[_0x4885bf(0x19c)](){const _0x135742=_0x4885bf;this[_0x135742(0x354)](this[_0x135742(0x136)][_0x135742(0xb3)][_0x135742(0x22c)](_0x24db24=>{const _0x5aecc4=_0x135742,_0x468f68=this[_0x5aecc4(0x24b)][_0x5aecc4(0x1bc)][_0x5aecc4(0x22c)](_0x3c78de=>{const _0x293bde=_0x5aecc4;if(_0x3c78de==null)return;const {unitId:_0x4a706f,redoState:_0x3e7f67,commandId:_0x54e81a}=_0x3c78de;if(_0x4a706f!==_0x24db24['unitID'])return;const _0x5b9b58={'id':_0x54e81a,'type':a['CommandType'][_0x293bde(0x292)],'params':{'unitId':_0x4a706f,'actions':_0x3e7f67[_0x293bde(0x24c)],'textRanges':null}};_0x24db24[_0x293bde(0x32c)](_0x5b9b58);});if(_0x24db24['disposeWithMe'](_0x468f68),_0x24db24 instanceof u['DocCollaborationEntity']){const _0x5c2a61={'onTransformIME':_0x36b0f5=>this[_0x5aecc4(0x315)]['transformIMECache'](_0x36b0f5),'onTransformState':_0x52b611=>this['_docTransformStateCacheService'][_0x5aecc4(0x10c)](_0x52b611),'onTransformSelections':_0x26aa09=>this[_0x5aecc4(0x2e6)][_0x5aecc4(0x202)](_0x26aa09),'onSyncEditingCollabCursor':_0x2cfd77=>this[_0x5aecc4(0x190)][_0x5aecc4(0x285)](_0x2cfd77),'onTransformRemoteChangesetByIMECache':_0x1f9a40=>this['_docTransformIMECacheService'][_0x5aecc4(0x2d6)](_0x1f9a40),'onTransformRemoteChangesetByStateCache':_0x2d4051=>this[_0x5aecc4(0x27a)][_0x5aecc4(0x2d6)](_0x2d4051)};_0x24db24['addHandlerCallback'](_0x5c2a61);}}));}};ie=zt([N(0x0,a['Inject'](p[_0x4885bf(0x244)])),N(0x1,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),N(0x2,a[_0x4885bf(0xe0)](ee)),N(0x3,a[_0x4885bf(0xe0)](te)),N(0x4,a[_0x4885bf(0xe0)](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],ie);var G=(_0x12104e=>(_0x12104e[_0x12104e[_0x4885bf(0x314)]=0x0]=_0x4885bf(0x314),_0x12104e[_0x12104e['OK']=0x1]='OK',_0x12104e[_0x12104e[_0x4885bf(0xf8)]=0x2]=_0x4885bf(0xf8),_0x12104e[_0x12104e[_0x4885bf(0xab)]=0x3]=_0x4885bf(0xab),_0x12104e[_0x12104e[_0x4885bf(0x309)]=0x4]=_0x4885bf(0x309),_0x12104e[_0x12104e[_0x4885bf(0x253)]=0x5]=_0x4885bf(0x253),_0x12104e[_0x12104e[_0x4885bf(0x291)]=0x6]=_0x4885bf(0x291),_0x12104e[_0x12104e['INVALID_ARGUMENT']=0x7]=_0x4885bf(0x33c),_0x12104e[_0x12104e[_0x4885bf(0x1c2)]=0x8]='TOO_MANY_REQUESTS',_0x12104e[_0x12104e['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x12104e[_0x12104e[_0x4885bf(0x225)]=0xa]=_0x4885bf(0x225),_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4885bf(0x178),_0x12104e[_0x12104e[_0x4885bf(0x2d8)]=0xd]=_0x4885bf(0x2d8),_0x12104e[_0x12104e[_0x4885bf(0xfe)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x12104e[_0x12104e[_0x4885bf(0x298)]=0xf]=_0x4885bf(0x298),_0x12104e[_0x12104e[_0x4885bf(0x1ba)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x12104e[_0x12104e[_0x4885bf(0xcc)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x12104e[_0x12104e['ERROR_AGAIN']=0x65]=_0x4885bf(0x158),_0x12104e[_0x12104e[_0x4885bf(0xac)]=0xc9]=_0x4885bf(0xac),_0x12104e[_0x12104e[_0x4885bf(0x91)]=0xca]='USER_IS_ANONYMOUS',_0x12104e[_0x12104e[_0x4885bf(0x329)]=0x1389]=_0x4885bf(0x329),_0x12104e[_0x12104e[_0x4885bf(0x176)]=0x1771]=_0x4885bf(0x176),_0x12104e[_0x12104e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4885bf(0x278),_0x12104e[_0x12104e[_0x4885bf(0x131)]=0x1773]=_0x4885bf(0x131),_0x12104e[_0x12104e['APPLY_REJECT']=0x1b59]=_0x4885bf(0xef),_0x12104e[_0x12104e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4885bf(0x334),_0x12104e[_0x12104e[_0x4885bf(0xfa)]=0x1b5b]=_0x4885bf(0xfa),_0x12104e[_0x12104e[_0x4885bf(0x1ad)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x12104e[_0x12104e[_0x4885bf(0x33b)]=0x1b5d]='APPLY_DUPLICATED',_0x12104e[_0x12104e[_0x4885bf(0x93)]=0x1f41]=_0x4885bf(0x93),_0x12104e[_0x12104e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x12104e[_0x12104e[_0x4885bf(0x25c)]=0x232a]=_0x4885bf(0x25c),_0x12104e[_0x12104e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4885bf(0x2be),_0x12104e[_0x12104e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4885bf(0x9e),_0x12104e[_0x12104e[_0x4885bf(0x1fd)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x12104e[_0x12104e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4885bf(0x24e),_0x12104e[_0x12104e[_0x4885bf(0x234)]=0x2712]=_0x4885bf(0x234),_0x12104e[_0x12104e[_0x4885bf(0x22a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x12104e[_0x12104e[_0x4885bf(0x2d3)]=0x2714]=_0x4885bf(0x2d3),_0x12104e[_0x12104e[_0x4885bf(0x130)]=0x271a]=_0x4885bf(0x130),_0x12104e[_0x12104e[_0x4885bf(0x1d6)]=0x271b]=_0x4885bf(0x1d6),_0x12104e[_0x12104e[_0x4885bf(0x248)]=0x271c]=_0x4885bf(0x248),_0x12104e[_0x12104e['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4885bf(0x282),_0x12104e[_0x12104e[_0x4885bf(0xbf)]=0x271e]=_0x4885bf(0xbf),_0x12104e[_0x12104e[_0x4885bf(0x1b6)]=0x271f]=_0x4885bf(0x1b6),_0x12104e[_0x12104e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4885bf(0x280),_0x12104e[_0x12104e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x12104e[_0x12104e[_0x4885bf(0x113)]=0x2ee1]=_0x4885bf(0x113),_0x12104e[_0x12104e[_0x4885bf(0x8f)]=0x2ee2]=_0x4885bf(0x8f),_0x12104e[_0x12104e[_0x4885bf(0x154)]=0x2ee3]=_0x4885bf(0x154),_0x12104e[_0x12104e[_0x4885bf(0x2b3)]=0x2ee4]=_0x4885bf(0x2b3),_0x12104e[_0x12104e['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x12104e[_0x12104e[_0x4885bf(0x245)]=0x32c9]=_0x4885bf(0x245),_0x12104e[_0x12104e[_0x4885bf(0x9a)]=0x32ca]=_0x4885bf(0x9a),_0x12104e[_0x12104e[_0x4885bf(0x1ee)]=0x32cb]=_0x4885bf(0x1ee),_0x12104e[_0x12104e['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4885bf(0xfd),_0x12104e[_0x12104e[_0x4885bf(0x170)]=0x36b2]=_0x4885bf(0x170),_0x12104e[_0x12104e[_0x4885bf(0x23e)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x12104e[_0x12104e['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x4885bf(0x262),_0x12104e[_0x12104e[_0x4885bf(0x272)]=0x3715]=_0x4885bf(0x272),_0x12104e[_0x12104e[_0x4885bf(0x11f)]=0x3716]=_0x4885bf(0x11f),_0x12104e[_0x12104e[_0x4885bf(0x20e)]=0x3717]=_0x4885bf(0x20e),_0x12104e[_0x12104e[_0x4885bf(0x1e9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x12104e[_0x12104e['REDEMPTION_INVALID_CODE']=0x3a99]=_0x4885bf(0x1d1),_0x12104e[_0x12104e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4885bf(0x346),_0x12104e[_0x12104e[_0x4885bf(0xa5)]=0x3a9b]=_0x4885bf(0xa5),_0x12104e[_0x12104e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4885bf(0x2fe),_0x12104e[_0x12104e[_0x4885bf(0x24d)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x12104e[_0x12104e[_0x4885bf(0x2b7)]=0x3a9e]=_0x4885bf(0x2b7),_0x12104e[_0x12104e[_0x4885bf(0x231)]=0x3a9f]=_0x4885bf(0x231),_0x12104e[_0x12104e[_0x4885bf(0x2f9)]=0x3e81]=_0x4885bf(0x2f9),_0x12104e[_0x12104e[_0x4885bf(0x352)]=-0x1]=_0x4885bf(0x352),_0x12104e))(G||{});function Jt(_0x59a988){const _0x587a7a=_0x4885bf;var _0xeca54c,_0x18009d;const _0x3a9040=(_0xeca54c=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0xeca54c[_0x587a7a(0x24a)],_0x375b93=((_0x18009d=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0x18009d[_0x587a7a(0x2c0)])||0x0;return _0x3a9040===B[_0x587a7a(0x18a)][_0x587a7a(0xca)]&&_0x375b93>0x0;}function Zt(_0x591010){const _0x2e38eb=_0x4885bf;return _0x591010[_0x2e38eb(0x356)]===B[_0x2e38eb(0x2ff)][_0x2e38eb(0x2f8)];}var Qt=Object[_0x4885bf(0xee)],es=(_0x40e0ac,_0x317692,_0x35023b,_0x50a8c2)=>{for(var _0x2e937e=_0x50a8c2>0x1?void 0x0:_0x50a8c2?Qt(_0x317692,_0x35023b):_0x317692,_0xab1f23=_0x40e0ac['length']-0x1,_0x2329c0;_0xab1f23>=0x0;_0xab1f23--)(_0x2329c0=_0x40e0ac[_0xab1f23])&&(_0x2e937e=_0x2329c0(_0x2e937e)||_0x2e937e);return _0x2e937e;},L=(_0x5221bc,_0x5676a1)=>(_0x52cc13,_0x5b4a12)=>_0x5676a1(_0x52cc13,_0x5b4a12,_0x5221bc);const ts=_0x4885bf(0x165),ss=_0x4885bf(0x162),is=_0x4885bf(0x1e6);let ne=class extends a[_0x4885bf(0x1b2)]{constructor(_0x410271,_0x409da3,_0x33b8b2,_0x47f0b5,_0x210489,_0x5193ec,_0xbec6c6){const _0x12ee15=_0x4885bf;super(),_(this,_0x12ee15(0x279),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x12ee15(0x249),0x0),_(this,_0x12ee15(0x200),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x12ee15(0x19a)]=_0x410271,this['_commandService']=_0x409da3,this['_configService']=_0x33b8b2,this[_0x12ee15(0x195)]=_0x47f0b5,this['_univerInstanceService']=_0x210489,this[_0x12ee15(0x1ed)]=_0x5193ec,this['_localeService']=_0xbec6c6,this[_0x12ee15(0x237)]());}[_0x4885bf(0x237)](){const _0x5e7823=_0x4885bf;this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)][_0x5e7823(0x18d)]((_0x51e24a,_0x12bd61)=>{const _0x22ff3b=_0x5e7823;var _0x12410a;if(_0x51e24a['id']!==B[_0x22ff3b(0x156)]['id'])return;const _0x2c260c=_0x51e24a[_0x22ff3b(0x215)];if(!this['_hasFormulaInDirtyRanges']((_0x12410a=_0x2c260c[_0x22ff3b(0x1eb)])!=null?_0x12410a:[]))return;if(!this[_0x22ff3b(0x31a)]())throw this[_0x22ff3b(0x127)](_0x51e24a,_0x12bd61),this[_0x22ff3b(0x312)](),new a[(_0x22ff3b(0x10a))]();})),this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)]['onCommandExecuted']((_0x4289b7,_0x53510a)=>{const _0x27e012=_0x5e7823;if(_0x4289b7['id']!==B[_0x27e012(0x2bc)]['id'])return;const _0x7367bd=_0x4289b7[_0x27e012(0x215)];if(Jt(_0x7367bd)){const _0x48a5e2=a[_0x27e012(0x2f0)]();this[_0x27e012(0x200)][_0x27e012(0x33a)](_0x48a5e2),this[_0x27e012(0x341)](_0x48a5e2);}else{if(Zt(_0x7367bd)&&this[_0x27e012(0x200)][_0x27e012(0x12a)]>0x0){const _0x12af93=this['_taskIds']['shift']();this[_0x27e012(0x206)](_0x12af93);}}}));}[_0x4885bf(0xcf)](){const _0x422101=_0x4885bf;super[_0x422101(0xcf)](),this[_0x422101(0x145)](),this[_0x422101(0x200)]=[],this[_0x422101(0x249)]=0x0,this[_0x422101(0xfb)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x318813,_0x6f08e4){const _0x524a62=_0x4885bf;for(let _0x3f4fb7=0x0;_0x3f4fb7<0x1e;_0x3f4fb7++)try{if(await this['_getFormulaLimitStatus'](),this[_0x524a62(0x31a)]()){this[_0x524a62(0x337)](_0x318813,_0x6f08e4),this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t'](_0x524a62(0x10b)),'type':T[_0x524a62(0x1d8)]['Success']});return;}await new Promise(_0x10804a=>{const _0x318dc8=_0x524a62;this[_0x318dc8(0x279)]=window[_0x318dc8(0x2f7)](_0x10804a,0x3e8);});}catch(_0x5d24a0){this[_0x524a62(0x1ed)]['error'](_0x5d24a0);}this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t']('formula.calculation.unable'),'type':T[_0x524a62(0x1d8)][_0x524a62(0xf7)]});}[_0x4885bf(0x337)](_0xd1a25c,_0x3887d3){const _0x385f1d=_0x4885bf;try{this[_0x385f1d(0x26a)][_0x385f1d(0x306)](_0xd1a25c['id'],_0xd1a25c[_0x385f1d(0x215)],_0x3887d3);}catch(_0x1af75a){this['_logService'][_0x385f1d(0x1d5)](_0x1af75a);}}[_0x4885bf(0x119)](_0x174927,_0x28d817){const _0x4a6529=_0x4885bf;_0x28d817<this[_0x4a6529(0x32d)]||(this[_0x4a6529(0x32d)]=_0x28d817,this[_0x4a6529(0xfb)]=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x1a9)]),this['_currentUsage']=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x26f)]));}async['_startCalculationLimit'](_0x17f0d3){const _0x3be1c0=_0x4885bf;var _0x22bd09,_0x3396e5;const _0xd72d08=Date[_0x3be1c0(0x115)]();try{const _0x201ed5=((_0x22bd09=this['_configService'][_0x3be1c0(0x2c7)](u[_0x3be1c0(0x324)]))==null?void 0x0:_0x22bd09[_0x3be1c0(0xed)])||ss,_0x1e5594=(await this['_httpService'][_0x3be1c0(0x17c)](_0x201ed5,{'body':JSON[_0x3be1c0(0x192)]({'taskId':_0x17f0d3})}))[_0x3be1c0(0x26e)];if(((_0x3396e5=_0x1e5594[_0x3be1c0(0x1d5)])==null?void 0x0:_0x3396e5[_0x3be1c0(0x226)])!==G['OK'])return;this[_0x3be1c0(0x119)](_0x1e5594[_0x3be1c0(0x242)],_0xd72d08);}catch(_0x69a948){this[_0x3be1c0(0x1ed)][_0x3be1c0(0x1d5)](_0x69a948);}}async[_0x4885bf(0x1b5)](_0x3b4fdd){const _0x128a72=_0x4885bf;var _0x4c1010,_0x170384;const _0x5018ac=Date[_0x128a72(0x115)]();try{const _0x9dcd3b=((_0x4c1010=this[_0x128a72(0x2e5)][_0x128a72(0x2c7)](u[_0x128a72(0x324)]))==null?void 0x0:_0x4c1010[_0x128a72(0x227)])||ts,_0x30d94a=_0x3b4fdd?_0x9dcd3b+'?taskId='+encodeURIComponent(_0x3b4fdd):_0x9dcd3b,_0x5c5cc3=(await this[_0x128a72(0x195)][_0x128a72(0x1b8)](_0x30d94a))['body'];if(((_0x170384=_0x5c5cc3[_0x128a72(0x1d5)])==null?void 0x0:_0x170384[_0x128a72(0x226)])!==G['OK'])return;this[_0x128a72(0x119)](_0x5c5cc3[_0x128a72(0x242)],_0x5018ac);}catch(_0x3890d2){this[_0x128a72(0x1ed)][_0x128a72(0x1d5)](_0x3890d2);}}async['_releaseCalculationLimit'](_0x3a255f){const _0x26b3f0=_0x4885bf;var _0x2d0845,_0x243206;const _0x43c54d=Date[_0x26b3f0(0x115)]();try{const _0x277af3=((_0x2d0845=this['_configService'][_0x26b3f0(0x2c7)](u[_0x26b3f0(0x324)]))==null?void 0x0:_0x2d0845['releaseFormulaLimitUrl'])||is,_0x6f935b=(await this['_httpService'][_0x26b3f0(0x17c)](_0x277af3,{'body':JSON[_0x26b3f0(0x192)]({'taskId':_0x3a255f})}))[_0x26b3f0(0x26e)];if(((_0x243206=_0x6f935b[_0x26b3f0(0x1d5)])==null?void 0x0:_0x243206[_0x26b3f0(0x226)])!==G['OK'])return;this[_0x26b3f0(0x119)](_0x6f935b[_0x26b3f0(0x242)],_0x43c54d);}catch(_0x453e85){this[_0x26b3f0(0x1ed)][_0x26b3f0(0x1d5)](_0x453e85);}}['_checkCalculationAvailable'](){const _0x518a35=_0x4885bf;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x518a35(0xfb)]-this['_currentUsage']>0x0;}[_0x4885bf(0x145)](){const _0x4b9856=_0x4885bf;this[_0x4b9856(0x279)]&&(clearTimeout(this[_0x4b9856(0x279)]),this[_0x4b9856(0x279)]=null);}[_0x4885bf(0x312)](){const _0x4d8ad5=_0x4885bf;this[_0x4d8ad5(0x19a)][_0x4d8ad5(0x9f)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T['MessageType'][_0x4d8ad5(0x2e4)]});}[_0x4885bf(0x35a)](_0x2a5a10){const _0x2a9317=_0x4885bf;for(const _0x4d3f81 of _0x2a5a10){const {unitId:_0x5117b9,sheetId:_0x6819f4,range:_0x2596aa}=_0x4d3f81,_0x1bf162=this['_univerInstanceService'][_0x2a9317(0x361)](_0x5117b9);if(!_0x1bf162)continue;const _0x2f59b2=_0x1bf162[_0x2a9317(0x2e2)](_0x6819f4);if(!_0x2f59b2)continue;const _0x5e4fc9=_0x2f59b2['getCellMatrix']();for(let _0x3d9a7c=_0x2596aa[_0x2a9317(0x261)];_0x3d9a7c<=_0x2596aa['endRow'];_0x3d9a7c++)for(let _0x5798c2=_0x2596aa[_0x2a9317(0x17b)];_0x5798c2<=_0x2596aa[_0x2a9317(0x2a7)];_0x5798c2++){const _0x492a7c=_0x5e4fc9[_0x2a9317(0x1cf)](_0x3d9a7c,_0x5798c2);if(_0x492a7c&&(a[_0x2a9317(0x1c8)](_0x492a7c['f'])||a['isFormulaId'](_0x492a7c['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4885bf(0xe0)](O[_0x4885bf(0x255)])),L(0x1,a[_0x4885bf(0x2a2)]),L(0x2,a[_0x4885bf(0x1f2)]),L(0x3,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),L(0x4,a[_0x4885bf(0x2b8)]),L(0x5,a[_0x4885bf(0x15f)]),L(0x6,a[_0x4885bf(0xe0)](a['LocaleService']))],ne);var ns=Object[_0x4885bf(0xee)],rs=(_0x41833a,_0x11a070,_0xfce2c3,_0x3cdf3d)=>{const _0x36ce85=_0x4885bf;for(var _0x1c49f2=_0x3cdf3d>0x1?void 0x0:_0x3cdf3d?ns(_0x11a070,_0xfce2c3):_0x11a070,_0x16650e=_0x41833a[_0x36ce85(0x12a)]-0x1,_0x2aa722;_0x16650e>=0x0;_0x16650e--)(_0x2aa722=_0x41833a[_0x16650e])&&(_0x1c49f2=_0x2aa722(_0x1c49f2)||_0x1c49f2);return _0x1c49f2;},de=(_0x30fa77,_0x2137c9)=>(_0x2e548c,_0x7ee117)=>_0x2137c9(_0x2e548c,_0x7ee117,_0x30fa77);let pe=class extends a[_0x4885bf(0x1b2)]{constructor(_0x74df3a,_0x2f9593,_0x55d2cb){const _0x22b5f4=_0x4885bf;super(),_(this,_0x22b5f4(0x224),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x22b5f4(0x2e5)]=_0x74df3a,this[_0x22b5f4(0x196)]=_0x2f9593,this[_0x22b5f4(0xa1)]=_0x55d2cb);}[_0x4885bf(0x138)](){this['_disabled']=!0x0;}[_0x4885bf(0x13f)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x5d8dee=_0x4885bf;return this[_0x5d8dee(0x299)];}[_0x4885bf(0xcf)](){const _0x383c3e=_0x4885bf;this[_0x383c3e(0x152)]()[_0x383c3e(0x180)](()=>super[_0x383c3e(0xcf)]());}async[_0x4885bf(0x1e2)](_0x2a1f45){const _0x4350eb=_0x4885bf;return this[_0x4350eb(0x15d)]?null:this['_localStorageService'][_0x4350eb(0x10e)](u[_0x4350eb(0x344)](_0x2a1f45));}async[_0x4885bf(0x340)](_0x51dcfe,_0x5bedd3){const _0x5ba1a5=_0x4885bf;return!!this[_0x5ba1a5(0x196)][_0x5ba1a5(0x1b0)](_0x51dcfe,_0x5bedd3);}['updateOfflineData'](_0x2db197,_0x4d0f06,_0xe5b814,_0x116057){const _0x3fc0a2=_0x4885bf,_0x40ddc4=this[_0x3fc0a2(0xa1)][_0x3fc0a2(0x303)](_0x2db197);this[_0x3fc0a2(0x224)][_0x3fc0a2(0x219)](_0x2db197,{'unitID':_0x2db197,'type':_0x4d0f06,'awaitingChangeset':_0xe5b814,'mutations':_0x116057,'rev':_0x40ddc4}),this[_0x3fc0a2(0x299)][_0x3fc0a2(0x11b)](_0x2db197)||this[_0x3fc0a2(0x30a)](_0x2db197);}[_0x4885bf(0x30a)](_0x19d8e6){const _0x13e57f=_0x4885bf,_0x591634=this[_0x13e57f(0x1a2)]();_0x591634===0x0?this['_saveCache'](_0x19d8e6):this['_saveTaskMap'][_0x13e57f(0x219)](_0x19d8e6,setTimeout(()=>this[_0x13e57f(0x17d)](_0x19d8e6),_0x591634));}['_getSaveTimeout'](){const _0x168a02=_0x4885bf;var _0x40cd6b;return(_0x40cd6b=this[_0x168a02(0x2e5)]['getConfig'](u[_0x168a02(0x108)]))!=null?_0x40cd6b:u['LOCAL_CACHE_INTERVAL'];}[_0x4885bf(0x17d)](_0x12f76c){const _0xf8c1a1=_0x4885bf,_0x151e1d=this['_saveTaskMap'][_0xf8c1a1(0x1b8)](_0x12f76c);return _0x151e1d!==void 0x0&&window[_0xf8c1a1(0x2cc)](_0x151e1d),this['_localStorageService']['setItem'](u['getLocalCacheKey'](_0x12f76c),this[_0xf8c1a1(0x224)][_0xf8c1a1(0x1b8)](_0x12f76c))[_0xf8c1a1(0x180)](()=>this[_0xf8c1a1(0x299)]['delete'](_0x12f76c));}async[_0x4885bf(0x152)](){const _0x38a20b=_0x4885bf,_0x4c3e94=[];this[_0x38a20b(0x299)][_0x38a20b(0x28d)]((_0x3153e6,_0x1f5364)=>{const _0x13d381=_0x38a20b;window['clearTimeout'](_0x3153e6),_0x4c3e94[_0x13d381(0x33a)](this[_0x13d381(0x17d)](_0x1f5364)[_0x13d381(0x180)](()=>{const _0x1163c7=_0x13d381;this[_0x1163c7(0x299)][_0x1163c7(0x2a1)](_0x1f5364);}));}),await Promise[_0x38a20b(0xec)](_0x4c3e94);}};pe=rs([de(0x0,a['IConfigService']),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x4885bf(0xe0)](g[_0x4885bf(0x205)]))],pe);class ke extends a[_0x4885bf(0x1aa)]{constructor(){const _0x99e350=_0x4885bf;super(),_(this,'urlChange$'),this[_0x99e350(0xd8)]=I['fromEvent'](window,_0x99e350(0x2bd))[_0x99e350(0x153)](I[_0x99e350(0x268)](this['dispose$']),I[_0x99e350(0x2ca)](0x1),I[_0x99e350(0x1f0)](void 0x0));}[_0x4885bf(0x185)](_0xa6d63e,_0x3dd023,_0x7a6405=!0x1){const _0x2580a5=_0x4885bf,_0x434541=new URL(window[_0x2580a5(0x193)]['href']);_0x434541[_0x2580a5(0x17f)][_0x2580a5(0x219)](_0xa6d63e,_0x3dd023),_0x7a6405?window['history']['replaceState']('','',_0x434541[_0x2580a5(0x2a0)]()):window[_0x2580a5(0xe2)][_0x2580a5(0xe1)]('','',_0x434541[_0x2580a5(0x2a0)]());}[_0x4885bf(0x1a0)](_0x5e9398,_0x581764=!0x1){const _0x4c5b65=_0x4885bf,_0x4d1dea=new URL(window['location'][_0x4c5b65(0x23b)]);_0x4d1dea[_0x4c5b65(0x17f)][_0x4c5b65(0x2a1)](_0x5e9398),_0x581764?window[_0x4c5b65(0xe2)][_0x4c5b65(0x351)]('','',_0x4d1dea[_0x4c5b65(0x2a0)]()):window[_0x4c5b65(0xe2)][_0x4c5b65(0xe1)]('','',_0x4d1dea['toString']());}['getParam'](_0x1afde7){const _0x987a12=_0x4885bf;var _0x4f2299;return(_0x4f2299=new URL(window[_0x987a12(0x193)][_0x987a12(0x23b)])[_0x987a12(0x17f)][_0x987a12(0x1b8)](_0x1afde7))!=null?_0x4f2299:void 0x0;}}var os=Object[_0x4885bf(0x1a3)],as=Object[_0x4885bf(0xee)],cs=(_0xd3348e,_0x63a818,_0x4fe204)=>_0x63a818 in _0xd3348e?os(_0xd3348e,_0x63a818,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fe204}):_0xd3348e[_0x63a818]=_0x4fe204,ls=(_0x552987,_0x7007b4,_0x32aaf1,_0x182126)=>{const _0xf0f613=_0x4885bf;for(var _0x45d7cd=_0x182126>0x1?void 0x0:_0x182126?as(_0x7007b4,_0x32aaf1):_0x7007b4,_0x4210c9=_0x552987[_0xf0f613(0x12a)]-0x1,_0x137da4;_0x4210c9>=0x0;_0x4210c9--)(_0x137da4=_0x552987[_0x4210c9])&&(_0x45d7cd=_0x137da4(_0x45d7cd)||_0x45d7cd);return _0x45d7cd;},Se=(_0x5357aa,_0x44ecd0)=>(_0x2db922,_0x3e26c6)=>_0x44ecd0(_0x2db922,_0x3e26c6,_0x5357aa),_s=(_0x16d1de,_0x38ef1e,_0x4928c9)=>cs(_0x16d1de,_0x38ef1e+'',_0x4928c9);const hs=_0x4885bf(0x283);exports[_0x4885bf(0x99)]=class extends a[_0x4885bf(0x2b4)]{constructor(_0x4e55d8=Me,_0xbbde2,_0x392b53,_0xa3252e){const _0x3a4297=_0x4885bf;super(),this['_config']=_0x4e55d8,this[_0x3a4297(0x342)]=_0xbbde2,this[_0x3a4297(0x17e)]=_0x392b53,this[_0x3a4297(0x2e5)]=_0xa3252e;const {..._0xf72047}=a['merge']({},Me,this[_0x3a4297(0x29f)]);this[_0x3a4297(0x2e5)]['setConfig'](Yt,_0xf72047);}[_0x4885bf(0x236)](){const _0x363f87=_0x4885bf;this['_registerDependencies'](),this[_0x363f87(0x2d2)]();}[_0x4885bf(0x1ec)](){const _0xc2f44=_0x4885bf;this[_0xc2f44(0x142)]();}[_0x4885bf(0x1cc)](){const _0x3b8262=_0x4885bf;var _0x105445;const _0x4755b5=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x3b8262(0x326)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':pe}],[exports[_0x3b8262(0x197)]],[ie],[Z],[F],[me],[exports[_0x3b8262(0x161)]]];this['_config'][_0x3b8262(0x1de)]&&_0x4755b5[_0x3b8262(0x33a)]([Q]),a[_0x3b8262(0x2c3)](this[_0x3b8262(0x17e)],a['mergeOverrideWithDependencies'](_0x4755b5,(_0x105445=this[_0x3b8262(0x29f)])==null?void 0x0:_0x105445[_0x3b8262(0x1dd)]));}[_0x4885bf(0x142)](){const _0x2465a8=_0x4885bf;this[_0x2465a8(0x354)](this[_0x2465a8(0x342)]['registerRenderModule'](a[_0x2465a8(0x311)]['UNIVER_DOC'],[Ee])),this[_0x2465a8(0x354)](this[_0x2465a8(0x342)][_0x2465a8(0x97)](a['UniverInstanceType'][_0x2465a8(0x28c)],[Ce]));}[_0x4885bf(0x2d2)](){const _0x1930b2=_0x4885bf;a['touchDependencies'](this[_0x1930b2(0x17e)],[[F],[exports[_0x1930b2(0x197)]],[ie],[Z],[exports[_0x1930b2(0x161)]],[ne]]),this['_config'][_0x1930b2(0x1de)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4885bf(0x208),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x4885bf(0x186)](u[_0x4885bf(0x287)]),Se(0x1,C[_0x4885bf(0x1a4)]),Se(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),Se(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x4885bf(0xee)],Is=(_0x273a17,_0x257e2c,_0x2889d7,_0x305b5d)=>{const _0x41bd53=_0x4885bf;for(var _0x3ab5f4=_0x305b5d>0x1?void 0x0:_0x305b5d?us(_0x257e2c,_0x2889d7):_0x257e2c,_0x2958aa=_0x273a17[_0x41bd53(0x12a)]-0x1,_0x239cf6;_0x2958aa>=0x0;_0x2958aa--)(_0x239cf6=_0x273a17[_0x2958aa])&&(_0x3ab5f4=_0x239cf6(_0x3ab5f4)||_0x3ab5f4);return _0x3ab5f4;},W=(_0x530bfb,_0x23d69f)=>(_0xab5ae2,_0x1feed4)=>_0x23d69f(_0xab5ae2,_0x1feed4,_0x530bfb);exports[_0x4885bf(0x157)]=class extends u[_0x4885bf(0x1ab)]{constructor(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a){super(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a);}async[_0x4885bf(0x13b)](_0x4d174b){const _0x4b4147=_0x4885bf,_0x4d6a63=await this[_0x4b4147(0x201)](),_0x43860f=this[_0x4b4147(0x1ea)](_0x4d174b,_0x4d6a63);return this['_doCreateSocket'](_0x43860f);}[_0x4885bf(0x1ea)](_0x3fb81e,_0xf0f27d){const _0x4c116c=_0x4885bf,_0x508559=typeof window>'u'?new URL(_0x3fb81e):new URL(_0x3fb81e,window['location'][_0x4c116c(0xf2)]);_0x508559['searchParams'][_0x4c116c(0x219)]('sessionTicket',_0xf0f27d);const _0x3ee56d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4c116c(0x193)][_0x4c116c(0x243)]);return _0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))&&_0x508559[_0x4c116c(0x17f)][_0x4c116c(0x219)](_0x4c116c(0x171),_0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))),_0x508559[_0x4c116c(0x2a0)]();}async[_0x4885bf(0x201)](){const _0xf85f=_0x4885bf;var _0x18f849,_0x3e9bc2,_0x102102;const _0x5c93ba=this[_0xf85f(0x2e5)][_0xf85f(0x2c7)](u[_0xf85f(0x324)]),_0x4f05b3=(_0x18f849=_0x5c93ba==null?void 0x0:_0x5c93ba[_0xf85f(0xc7)])!=null?_0x18f849:u[_0xf85f(0x151)];return(_0x102102=(_0x3e9bc2=(await this[_0xf85f(0x195)][_0xf85f(0x1b8)](_0x4f05b3,{'headers':{'Content-Type':_0xf85f(0x102)}}))['body'])==null?void 0x0:_0x3e9bc2[_0xf85f(0x25f)])!=null?_0x102102:'';}},exports[_0x4885bf(0x157)]=Is([W(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x4885bf(0x1f2)]),W(0x3,a[_0x4885bf(0x15f)]),W(0x4,g['ISnapshotServerService'])],exports[_0x4885bf(0x157)]);var ds=Object[_0x4885bf(0xee)],Ss=(_0xeb4680,_0x220c80,_0x5431e7,_0xc98825)=>{const _0x17dda0=_0x4885bf;for(var _0x22d254=_0xc98825>0x1?void 0x0:_0xc98825?ds(_0x220c80,_0x5431e7):_0x220c80,_0x5449e9=_0xeb4680[_0x17dda0(0x12a)]-0x1,_0x16fb42;_0x5449e9>=0x0;_0x5449e9--)(_0x16fb42=_0xeb4680[_0x5449e9])&&(_0x22d254=_0x16fb42(_0x22d254)||_0x22d254);return _0x22d254;},fe=(_0x317971,_0x2e0681)=>(_0x51cbc6,_0x3b2504)=>_0x2e0681(_0x51cbc6,_0x3b2504,_0x317971);exports[_0x4885bf(0x343)]=class extends a['Disposable']{constructor(_0x23e02a,_0x31bd5e,_0x2e3d9b){const _0x12db6b=_0x4885bf;super(),this['_instanceService']=_0x23e02a,this['_httpService']=_0x31bd5e,this[_0x12db6b(0x2e5)]=_0x2e3d9b;}async['runOnServer'](_0x4e1bef,_0x56aec8,_0x5e9199,..._0x3d853d){const _0x310a43=_0x4885bf;var _0x1a4ae0,_0x39d8d3,_0x5db95f,_0xffd0f4;const _0x3e2a4a=this['_instanceService'][_0x310a43(0x277)]();if(!_0x3e2a4a)throw new Error(_0x310a43(0x27b));const _0x241cb1=((_0x1a4ae0=this['_configService'][_0x310a43(0x2c7)](u[_0x310a43(0x133)]))!=null?_0x1a4ae0:u[_0x310a43(0x112)])+'/'+_0x4e1bef+_0x310a43(0x1ff)+_0x56aec8,_0xcfc94c=new URL(window[_0x310a43(0x193)][_0x310a43(0x23b)]),_0x21eaf7={'scriptId':_0x4e1bef,'runId':(_0x39d8d3=_0xcfc94c[_0x310a43(0x17f)][_0x310a43(0x1b8)](_0x310a43(0x171)))!=null?_0x39d8d3:'','function':_0x56aec8,'unitId':_0x3e2a4a['getUnitId'](),'argsOfFunction':JSON[_0x310a43(0x192)](_0x3d853d),'invokeId':(_0x5db95f=_0x5e9199[_0x310a43(0x322)])!=null?_0x5db95f:'','executionId':(_0xffd0f4=_0x5e9199[_0x310a43(0x15a)])!=null?_0xffd0f4:''};try{const _0xbf3658=await this[_0x310a43(0x195)]['post'](_0x241cb1,{'body':_0x21eaf7});return _0xbf3658[_0x310a43(0x26e)][_0x310a43(0x1d5)]&&_0xbf3658['body']['error'][_0x310a43(0x226)]!==G['OK']?_0x310a43(0xc0):_0xbf3658[_0x310a43(0x26e)][_0x310a43(0x13c)];}catch{return _0x310a43(0xc0);}}},exports[_0x4885bf(0x343)]=Ss([fe(0x0,a[_0x4885bf(0x2b8)]),fe(0x1,a[_0x4885bf(0xe0)](x['HTTPService'])),fe(0x2,a[_0x4885bf(0x1f2)])],exports[_0x4885bf(0x343)]);const we=0x7530,ye=_0x4885bf(0xbd);class fs extends a['Disposable']{constructor(){const _0x12b11d=_0x4885bf;super(),_(this,_0x12b11d(0x1a1),a[_0x12b11d(0x2f0)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x12b11d(0xe7),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x12b11d(0x1c1),new Map()),_(this,_0x12b11d(0xd5),new Map()),this[_0x12b11d(0x2a5)]();}[_0x4885bf(0xcf)](){const _0x2e2f37=_0x4885bf;super[_0x2e2f37(0xcf)](),this[_0x2e2f37(0x1c1)][_0x2e2f37(0x28d)]((_0x56de1b,_0xf54403)=>this['_removeClearOtherTimer'](_0xf54403)),this[_0x2e2f37(0x139)]&&window[_0x2e2f37(0x295)](this[_0x2e2f37(0x139)]);}[_0x4885bf(0x338)](_0x333b94){const _0x2f1f84=_0x4885bf;return this[_0x2f1f84(0x264)](_0x333b94)[_0x2f1f84(0x153)](I[_0x2f1f84(0x2c6)]());}[_0x4885bf(0x1e7)](_0x37e580){const _0x2c7bc4=_0x4885bf;this[_0x2c7bc4(0xd1)]['size']===0x0&&this[_0x2c7bc4(0x2a4)](),this[_0x2c7bc4(0xd1)][_0x2c7bc4(0xf1)](_0x37e580),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37e580],'isForwarded':!0x1});}[_0x4885bf(0x1c9)](_0x79e8c9){const _0x11a83f=_0x4885bf;this[_0x11a83f(0xd1)][_0x11a83f(0x2a1)](_0x79e8c9),this[_0x11a83f(0xd1)][_0x11a83f(0x2ef)]===0x0&&this[_0x11a83f(0x139)]&&window[_0x11a83f(0x295)](this['_heartbeatTimer']);}['_init'](){const _0x55e67b=_0x4885bf;this[_0x55e67b(0x354)](a['toDisposable'](I[_0x55e67b(0x1e5)](window,'storage')[_0x55e67b(0x22c)](_0x573f79=>{const _0x5c34e6=_0x55e67b;if(_0x573f79[_0x5c34e6(0xb1)]!==ye||!_0x573f79[_0x5c34e6(0xa2)])return;const _0x1a5a99=JSON[_0x5c34e6(0x94)](_0x573f79['newValue']);this[_0x5c34e6(0x32f)](_0x1a5a99);}))),window[_0x55e67b(0x29c)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x55e67b(0xd1)])}));}[_0x4885bf(0x32f)](_0x372f6b){const _0xce6df8=_0x4885bf;switch(_0x372f6b[_0xce6df8(0x360)]){case 0x0:this[_0xce6df8(0x11d)](_0x372f6b);break;case 0x1:this[_0xce6df8(0x2a6)](_0x372f6b);break;case 0x2:this[_0xce6df8(0x100)](_0x372f6b);break;}}[_0x4885bf(0x11d)](_0x340af4){const _0x36489c=_0x4885bf,{unitIDs:_0x4a8a1a,memberID:_0x12c92b,isForwarded:_0x48b00d}=_0x340af4;_0x4a8a1a['forEach'](_0xc6758d=>{const _0x3799b0=_0x30e5;if(!_0x48b00d&&this['_unitOnClients']['has'](_0xc6758d)&&this[_0x3799b0(0x264)](_0xc6758d)[_0x3799b0(0x1a7)](u[_0x3799b0(0x19d)][_0x3799b0(0x266)]),!this[_0x3799b0(0xe7)][_0x3799b0(0x11b)](_0xc6758d)||!this['_unitOnClients'][_0x3799b0(0x1b8)](_0xc6758d)['has'](_0x12c92b)){const _0x310695=this[_0x3799b0(0xe7)]['get'](_0xc6758d)||new Set();_0x310695[_0x3799b0(0xf1)](_0x12c92b),this[_0x3799b0(0xe7)]['set'](_0xc6758d,_0x310695),this[_0x3799b0(0x16e)](_0x12c92b);}}),_0x48b00d||this[_0x36489c(0x1ae)]({'type':0x0,'memberID':this[_0x36489c(0x1a1)],'unitIDs':[...this[_0x36489c(0xd1)]],'isForwarded':!0x0});}[_0x4885bf(0x16e)](_0x56181a){const _0x364d20=_0x4885bf;this[_0x364d20(0xa7)](_0x56181a);const _0xcd73ad=window['setTimeout'](()=>{const _0x2944da=_0x364d20;this[_0x2944da(0xe7)][_0x2944da(0x28d)](_0x5d83da=>{_0x5d83da['delete'](_0x56181a);});},we*0x2);this[_0x364d20(0x1c1)][_0x364d20(0x219)](_0x56181a,_0xcd73ad);}[_0x4885bf(0xa7)](_0x444405){const _0x2ae62a=_0x4885bf;if(this[_0x2ae62a(0x1c1)]['has'](_0x444405)){const _0x401f05=this[_0x2ae62a(0x1c1)][_0x2ae62a(0x1b8)](_0x444405);_0x401f05&&window[_0x2ae62a(0x2cc)](_0x401f05),this['_clearOtherTimers'][_0x2ae62a(0x219)](_0x444405,null);}}['_handleLeaveEvent'](_0x4b5d86){const _0xedcd54=_0x4885bf,{memberID:_0x3878db,unitIDs:_0x51525b}=_0x4b5d86;_0x51525b[_0xedcd54(0x28d)](_0x2fbc00=>{const _0x1c8dc7=_0xedcd54;var _0x440aad;const _0x40072d=this[_0x1c8dc7(0xe7)][_0x1c8dc7(0x1b8)](_0x2fbc00);_0x40072d&&(_0x40072d[_0x1c8dc7(0x2a1)](_0x3878db),(_0x440aad=this[_0x1c8dc7(0x264)](_0x2fbc00))==null||_0x440aad[_0x1c8dc7(0x1a7)](_0x40072d[_0x1c8dc7(0x2ef)]===0x0?u['UnitStatus'][_0x1c8dc7(0x16d)]:u[_0x1c8dc7(0x19d)][_0x1c8dc7(0x266)]));}),this[_0xedcd54(0xa7)](_0x3878db);}[_0x4885bf(0x100)](_0x5089ab){const _0x125471=_0x4885bf;this[_0x125471(0x16e)](_0x5089ab[_0x125471(0x187)]);}[_0x4885bf(0x1ae)](_0x485851){const _0x3d6991=_0x4885bf;localStorage[_0x3d6991(0x1b0)](ye,JSON[_0x3d6991(0x192)](_0x485851));}[_0x4885bf(0x2a4)](){const _0x1888e2=_0x4885bf;this[_0x1888e2(0x139)]=window['setInterval'](()=>{const _0x42e6fe=_0x1888e2;this['_send']({'type':0x2,'memberID':this[_0x42e6fe(0x1a1)]});},we);}['_ensureSubject'](_0x38d8ce){const _0xce93e7=_0x4885bf;return this[_0xce93e7(0xd5)][_0xce93e7(0x11b)](_0x38d8ce)||this[_0xce93e7(0xd5)][_0xce93e7(0x219)](_0x38d8ce,new I['BehaviorSubject'](u[_0xce93e7(0x19d)][_0xce93e7(0x16d)])),this[_0xce93e7(0xd5)]['get'](_0x38d8ce);}}exports[_0x4885bf(0x106)]=Oe,exports[_0x4885bf(0x114)]=je,exports[_0x4885bf(0x241)]=fs,exports[_0x4885bf(0x355)]=ke;
1
+ 'use strict';const _0x351cc3=_0xf8a9;(function(_0x15b72a,_0xb8f6e){const _0x51ba3f=_0xf8a9,_0x3d8f03=_0x15b72a();while(!![]){try{const _0x4e6f8a=-parseInt(_0x51ba3f(0x2fc))/0x1+parseInt(_0x51ba3f(0x309))/0x2*(parseInt(_0x51ba3f(0x285))/0x3)+-parseInt(_0x51ba3f(0x49a))/0x4+-parseInt(_0x51ba3f(0x327))/0x5+parseInt(_0x51ba3f(0x44e))/0x6+parseInt(_0x51ba3f(0x2ee))/0x7*(-parseInt(_0x51ba3f(0x353))/0x8)+parseInt(_0x51ba3f(0x3e5))/0x9;if(_0x4e6f8a===_0xb8f6e)break;else _0x3d8f03['push'](_0x3d8f03['shift']());}catch(_0x5b249b){_0x3d8f03['push'](_0x3d8f03['shift']());}}}(_0x3013,0x23b83));var Xe=Object[_0x351cc3(0x344)],Ke=(_0x393984,_0x5be483,_0x131aa5)=>_0x5be483 in _0x393984?Xe(_0x393984,_0x5be483,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131aa5}):_0x393984[_0x5be483]=_0x131aa5,_=(_0x3ab7b5,_0x1a20b4,_0x41fecc)=>Ke(_0x3ab7b5,typeof _0x1a20b4!='symbol'?_0x1a20b4+'':_0x1a20b4,_0x41fecc);Object[_0x351cc3(0x344)](exports,Symbol[_0x351cc3(0x2e9)],{'value':_0x351cc3(0x1f2)});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:_0xb9fd16,..._0x3ba0af}){const _0x21b6bc=_0x351cc3,{icon:_0x3d5b90,id:_0x5951d6,className:_0x22f591,extend:_0x51c5b0,..._0x396cd6}=_0x3ba0af,_0x28517b=(_0x21b6bc(0x3c9)+_0x5951d6+'\x20'+(_0x22f591||''))[_0x21b6bc(0x45b)](),_0x37f103=A['useRef']('_'+Qe());return $e(_0x3d5b90,''+_0x5951d6,{'defIds':_0x3d5b90[_0x21b6bc(0x27e)],'idSuffix':_0x37f103[_0x21b6bc(0x239)]},{'ref':_0xb9fd16,'className':_0x28517b,..._0x396cd6},_0x51c5b0);}function $e(_0x2498f8,_0x2b4410,_0x432656,_0x2bca81,_0x1b6f07){const _0x2b3980=_0x351cc3;return A[_0x2b3980(0x278)](_0x2498f8[_0x2b3980(0x2fa)],{'key':_0x2b4410,...Je(_0x2498f8,_0x432656,_0x1b6f07),..._0x2bca81},(Ze(_0x2498f8,_0x432656)[_0x2b3980(0x39e)]||[])[_0x2b3980(0x246)]((_0x5b28bb,_0x2edffc)=>$e(_0x5b28bb,_0x2b4410+'-'+_0x2498f8[_0x2b3980(0x2fa)]+'-'+_0x2edffc,_0x432656,void 0x0,_0x1b6f07)));}function Je(_0x16aad5,_0x3c832e,_0x2f744f){const _0x5dec67=_0x351cc3,_0x53c748={..._0x16aad5[_0x5dec67(0x3f0)]};_0x2f744f!=null&&_0x2f744f['colorChannel1']&&_0x53c748['fill']===_0x5dec67(0x214)&&(_0x53c748['fill']=_0x2f744f['colorChannel1']),_0x16aad5[_0x5dec67(0x2fa)]===_0x5dec67(0x406)&&_0x53c748['id']&&(_0x53c748['id']=_0x53c748['id']+_0x3c832e[_0x5dec67(0x3db)]),Object[_0x5dec67(0x3fc)](_0x53c748)['forEach'](([_0x23a901,_0x1bffbe])=>{const _0x4e768d=_0x5dec67;_0x23a901===_0x4e768d(0x406)&&typeof _0x1bffbe==_0x4e768d(0x3e9)&&(_0x53c748[_0x23a901]=_0x1bffbe[_0x4e768d(0x41c)](/url\(#(.*)\)/,_0x4e768d(0x295)+_0x3c832e[_0x4e768d(0x3db)]+')'));});const {defIds:_0x4b3725}=_0x3c832e;return!_0x4b3725||_0x4b3725['length']===0x0||(_0x16aad5[_0x5dec67(0x2fa)]===_0x5dec67(0x2b5)&&_0x53c748[_0x5dec67(0x4b5)]&&(_0x53c748[_0x5dec67(0x4b5)]=_0x53c748[_0x5dec67(0x4b5)]+_0x3c832e[_0x5dec67(0x3db)]),Object[_0x5dec67(0x3fc)](_0x53c748)[_0x5dec67(0x264)](([_0x56fb6e,_0x29741e])=>{const _0x3911de=_0x5dec67;typeof _0x29741e==_0x3911de(0x3e9)&&(_0x53c748[_0x56fb6e]=_0x29741e[_0x3911de(0x41c)](/url\(#(.*)\)/,_0x3911de(0x295)+_0x3c832e[_0x3911de(0x3db)]+')'));})),_0x53c748;}function Ze(_0x19511d,_0x1d14e3){const _0x3aa473=_0x351cc3;var _0x7f60be;const {defIds:_0x5cb77b}=_0x1d14e3;return!_0x5cb77b||_0x5cb77b[_0x3aa473(0x241)]===0x0?_0x19511d:_0x19511d['tag']===_0x3aa473(0x1f1)&&((_0x7f60be=_0x19511d[_0x3aa473(0x39e)])!=null&&_0x7f60be[_0x3aa473(0x241)])?{..._0x19511d,'children':_0x19511d['children']['map'](_0x3728d2=>typeof _0x3728d2['attrs']['id']==_0x3aa473(0x3e9)&&_0x5cb77b&&_0x5cb77b[_0x3aa473(0x400)](_0x3728d2[_0x3aa473(0x3f0)]['id'])?{..._0x3728d2,'attrs':{..._0x3728d2['attrs'],'id':_0x3728d2[_0x3aa473(0x3f0)]['id']+_0x1d14e3['idSuffix']}}:_0x3728d2)}:_0x19511d;}function Qe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Te['displayName']=_0x351cc3(0x2af);const et={'tag':_0x351cc3(0x422),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x351cc3(0x3e7),'width':_0x351cc3(0x3b5),'height':_0x351cc3(0x3b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x351cc3(0x3e1)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'stroke':'currentColor','d':_0x351cc3(0x224),'strokeLinecap':_0x351cc3(0x24e),'strokeLinejoin':_0x351cc3(0x24e),'strokeWidth':1.2}}]},{'tag':_0x351cc3(0x1f1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x351cc3(0x3c5)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'fill':'white','d':_0x351cc3(0x205)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x351cc3(0x289)](function(_0x1c1daa,_0x560511){const _0x5208e8=_0x351cc3;return A[_0x5208e8(0x278)](Te,Object[_0x5208e8(0x2b0)]({},_0x1c1daa,{'id':_0x5208e8(0x2d8),'ref':_0x560511,'icon':et}));});xe[_0x351cc3(0x3e6)]=_0x351cc3(0x41e);const tt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x351cc3(0x28d),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x351cc3(0x3b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x351cc3(0x480)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'stroke':_0x351cc3(0x2a4),'d':_0x351cc3(0x3af),'strokeLinecap':'round','strokeLinejoin':_0x351cc3(0x24e),'strokeWidth':1.2}}]},{'tag':_0x351cc3(0x1f1),'attrs':{},'children':[{'tag':_0x351cc3(0x34c),'attrs':{'id':_0x351cc3(0x3ab)},'children':[{'tag':'path','attrs':{'fill':_0x351cc3(0x31c),'d':'M0\x200H16V16H0z','transform':_0x351cc3(0x24a)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x351cc3(0x289)](function(_0x5786db,_0x14e4e5){const _0x8dd73a=_0x351cc3;return A[_0x8dd73a(0x278)](Te,Object[_0x8dd73a(0x2b0)]({},_0x5786db,{'id':_0x8dd73a(0x402),'ref':_0x14e4e5,'icon':tt}));});Be[_0x351cc3(0x3e6)]=_0x351cc3(0x221);function st(_0x2ee364){const _0x35c2d9=_0x351cc3;switch(_0x2ee364){case u['CollaborationStatus']['OFFLINE']:return _0x35c2d9(0x376);case u['CollaborationStatus']['CONFLICT']:return _0x35c2d9(0x312);case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x249)]:return'collabStatus.fetchMiss';case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x434)]:return _0x35c2d9(0x3ff);case u[_0x35c2d9(0x3d9)]['AWAITING']:case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x21c)]:return _0x35c2d9(0x303);case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x41b)]:case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x395)]:return _0x35c2d9(0x359);}}function it(_0x1c7f5f){const _0x33c1ac=_0x351cc3,{status$:_0x63d289}=_0x1c7f5f,_0x224654=O[_0x33c1ac(0x33e)](_0x63d289,u[_0x33c1ac(0x3d9)]['NOT_COLLAB']),_0xe07b38=O[_0x33c1ac(0x298)](a[_0x33c1ac(0x2bb)]),_0x285a3d=O[_0x33c1ac(0x298)](u[_0x33c1ac(0x3e0)]),_0x5446a1=_0x224654!==u[_0x33c1ac(0x3d9)][_0x33c1ac(0x40b)],_0x4cb866=_0xe07b38['t'](st(_0x224654)),_0x39d2e9=_0x5446a1?M['jsx'](Be,{}):M[_0x33c1ac(0x26d)](xe,{}),_0x1c02d3=A[_0x33c1ac(0x351)](()=>{const _0x1d288b=_0x33c1ac;_0x5446a1||_0x285a3d[_0x1d288b(0x36f)]();},[_0x5446a1,_0x285a3d]);function _0x41b72c(){const _0x3b364c=_0x33c1ac;return M[_0x3b364c(0x233)](_0x3b364c(0x3d5),{'className':'univer-flex\x20univer-items-center','onClick':_0x1c02d3,'children':[M[_0x3b364c(0x26d)]('div',{'className':T[_0x3b364c(0x3d7)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x5446a1,'univer-text-red-500':!_0x5446a1}),'children':_0x39d2e9}),M[_0x3b364c(0x26d)](_0x3b364c(0x3d5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4cb866})]});}return _0x5446a1?_0x41b72c():M['jsx'](T[_0x33c1ac(0x36e)],{'title':_0xe07b38['t'](_0x33c1ac(0x20d)),'children':_0x41b72c()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0xf31aed,_0x9dcef5,_0x31aa7f,_0x1f1b94)=>{for(var _0x1f320f=_0x1f1b94>0x1?void 0x0:_0x1f1b94?nt(_0x9dcef5,_0x31aa7f):_0x9dcef5,_0x37d728=_0xf31aed['length']-0x1,_0xcd0943;_0x37d728>=0x0;_0x37d728--)(_0xcd0943=_0xf31aed[_0x37d728])&&(_0x1f320f=_0xcd0943(_0x1f320f)||_0x1f320f);return _0x1f320f;},K=(_0x262fc4,_0x5dfb63)=>(_0x35da50,_0x249337)=>_0x5dfb63(_0x35da50,_0x249337,_0x262fc4);exports[_0x351cc3(0x475)]=class extends a[_0x351cc3(0x37b)]{constructor(_0x35c52d,_0x3272e0,_0x9a42f,_0x2cbf5e){const _0xe8de88=_0x351cc3;super(),_(this,_0xe8de88(0x293),new I['BehaviorSubject'](u['CollaborationStatus'][_0xe8de88(0x434)])),(this['_univerInstanceService']=_0x35c52d,this[_0xe8de88(0x37f)]=_0x3272e0,this[_0xe8de88(0x31f)]=_0x9a42f,this[_0xe8de88(0x2d6)]=_0x2cbf5e,this[_0xe8de88(0x41f)](),this['_initStatusListener']());}[_0x351cc3(0x237)](){const _0x65ef85=_0x351cc3;this[_0x65ef85(0x248)](this[_0x65ef85(0x2bf)][_0x65ef85(0x2db)][_0x65ef85(0x38b)](I[_0x65ef85(0x424)](()=>{const _0x53cb8d=_0x65ef85,_0x3793e9=this[_0x53cb8d(0x2bf)][_0x53cb8d(0x22e)]();return _0x3793e9?this[_0x53cb8d(0x31f)][_0x53cb8d(0x21e)](_0x3793e9[_0x53cb8d(0x3b1)]()):I['of'](null);}),I[_0x65ef85(0x424)](_0x59805e=>_0x59805e?_0x59805e['status$']:I['of'](u[_0x65ef85(0x3d9)][_0x65ef85(0x434)])))['subscribe'](_0x49b26a=>{const _0x1b5883=_0x65ef85;this[_0x1b5883(0x293)]['next'](_0x49b26a);}));}[_0x351cc3(0x41f)](){const _0x12bf72=_0x351cc3;this[_0x12bf72(0x248)](this['_uiPartsService']['registerComponent'](O[_0x12bf72(0x336)][_0x12bf72(0x372)],()=>O[_0x12bf72(0x401)](ot({'status$':this['_status$']['asObservable']()}),this[_0x12bf72(0x37f)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x351cc3(0x314)]),K(0x1,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),K(0x2,a[_0x351cc3(0x257)](u[_0x351cc3(0x397)])),K(0x3,O[_0x351cc3(0x2e8)])],exports[_0x351cc3(0x475)]);function ot(_0x3556e0){const {status$:_0x37e290}=_0x3556e0;return function(){const _0x3904f0=_0xf8a9;return M[_0x3904f0(0x26d)](it,{'status$':_0x37e290});};}const Oe=a['createIdentifier']('uni.network.url-service');var at=Object[_0x351cc3(0x343)],ct=(_0x2258df,_0x2d4ed8,_0xb714b9,_0x16ea34)=>{const _0x118d29=_0x351cc3;for(var _0x5b4876=_0x16ea34>0x1?void 0x0:_0x16ea34?at(_0x2d4ed8,_0xb714b9):_0x2d4ed8,_0x37fd70=_0x2258df[_0x118d29(0x241)]-0x1,_0x4868d7;_0x37fd70>=0x0;_0x37fd70--)(_0x4868d7=_0x2258df[_0x37fd70])&&(_0x5b4876=_0x4868d7(_0x5b4876)||_0x5b4876);return _0x5b4876;},Y=(_0x41df15,_0x1c087d)=>(_0x3e4faa,_0x2498e8)=>_0x1c087d(_0x3e4faa,_0x2498e8,_0x41df15);exports[_0x351cc3(0x29d)]=class extends a[_0x351cc3(0x487)]{constructor(_0x20af14,_0x3efc37,_0x1e664b,_0x379474,_0x1d1ebf){const _0x252b2c=_0x351cc3;super(),this['_urlService']=_0x20af14,this['_logService']=_0x3efc37,this[_0x252b2c(0x3f2)]=_0x1e664b,this[_0x252b2c(0x3c8)]=_0x379474,_0x1d1ebf?_0x1d1ebf==null||_0x1d1ebf['whenReady']()['then'](()=>this[_0x252b2c(0x331)]()):(this['_logService'][_0x252b2c(0x276)]('[CollaborationDataLoaderController]',_0x252b2c(0x3b6)),this['_init']());}async[_0x351cc3(0x331)](){const _0x242dcc=_0x351cc3,_0x214ed4=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x268)),_0x417ebd=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x3d4)),_0x1edf7d=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x3c0));if(!_0x214ed4||!_0x417ebd){this['_logService'][_0x242dcc(0x276)](_0x242dcc(0x461),_0x242dcc(0x2cd));return;}const _0x23f31c=await this[_0x242dcc(0x3c8)][_0x242dcc(0x45e)](_0x214ed4,Number(_0x417ebd),_0x1edf7d);_0x23f31c&&_0x23f31c instanceof a[_0x242dcc(0x419)]&&this[_0x242dcc(0x3f9)](_0x23f31c);}async[_0x351cc3(0x3f9)](_0x57bcc1){const _0x49366d=_0x351cc3;await this[_0x49366d(0x44b)](_0x57bcc1),_0x57bcc1['activeSheet$'][_0x49366d(0x38b)](I[_0x49366d(0x3f1)](this[_0x49366d(0x40d)]))[_0x49366d(0x3b4)](_0x327c8e=>{_0x327c8e&&this['_updateURLWithCurrentState'](_0x327c8e);}),this[_0x49366d(0x202)][_0x49366d(0x2f9)][_0x49366d(0x38b)](I[_0x49366d(0x3f1)](this[_0x49366d(0x40d)]))[_0x49366d(0x3b4)](()=>this[_0x49366d(0x44b)](_0x57bcc1));}[_0x351cc3(0x291)](_0x5a65c8,_0x2956e4=!0x1){const _0x5b68e1=_0x351cc3,_0x10162b=this['_urlService'][_0x5b68e1(0x2d2)](_0x5b68e1(0x3c0));_0x5a65c8[_0x5b68e1(0x45d)]()!==_0x10162b&&this[_0x5b68e1(0x202)][_0x5b68e1(0x1f8)]('subunit',_0x5a65c8[_0x5b68e1(0x45d)](),_0x2956e4);}async[_0x351cc3(0x44b)](_0x22b8c5){const _0x32ad69=_0x351cc3;var _0x6a8f23;const _0x453fff=this[_0x32ad69(0x202)][_0x32ad69(0x2d2)](_0x32ad69(0x3c0));if(!_0x453fff||!_0x22b8c5[_0x32ad69(0x42b)](_0x453fff)){const _0x3bf9fc=_0x22b8c5[_0x32ad69(0x4a8)]()[0x0],_0x5d44f3=_0x22b8c5[_0x32ad69(0x42b)](_0x3bf9fc);if(!_0x5d44f3)return;this[_0x32ad69(0x291)](_0x5d44f3,!0x0),await this[_0x32ad69(0x3f2)][_0x32ad69(0x222)](v[_0x32ad69(0x3cf)]['id'],{'unitId':_0x22b8c5[_0x32ad69(0x3b1)](),'subUnitId':_0x3bf9fc});return;}((_0x6a8f23=_0x22b8c5[_0x32ad69(0x207)]())==null?void 0x0:_0x6a8f23[_0x32ad69(0x45d)]())!==_0x453fff&&await this[_0x32ad69(0x3f2)][_0x32ad69(0x222)](v[_0x32ad69(0x3cf)]['id'],{'unitId':_0x22b8c5['getUnitId'](),'subUnitId':_0x453fff});}},exports[_0x351cc3(0x29d)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x351cc3(0x43d)])),Y(0x4,a[_0x351cc3(0x35f)](qe[_0x351cc3(0x2c8)]))],exports[_0x351cc3(0x29d)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x1a87df,_0x332d3f,_0x59c7e6,_0x1ba9c4)=>{const _0x120f8e=_0x351cc3;for(var _0x3c9683=_0x1ba9c4>0x1?void 0x0:_0x1ba9c4?lt(_0x332d3f,_0x59c7e6):_0x332d3f,_0x1386d4=_0x1a87df[_0x120f8e(0x241)]-0x1,_0x5f443c;_0x1386d4>=0x0;_0x1386d4--)(_0x5f443c=_0x1a87df[_0x1386d4])&&(_0x3c9683=_0x5f443c(_0x3c9683)||_0x3c9683);return _0x3c9683;},De=(_0x5da143,_0x3419e0)=>(_0x2b4eb1,_0x1c4237)=>_0x3419e0(_0x2b4eb1,_0x1c4237,_0x5da143);let me=class extends a['RxDisposable']{constructor(_0xa9bda6,_0x57d2a4){const _0xf9e9b6=_0x351cc3;super(),this[_0xf9e9b6(0x4bb)]=_0xa9bda6,this[_0xf9e9b6(0x2e4)]=_0x57d2a4,this[_0xf9e9b6(0x331)]();}[_0x351cc3(0x331)](){const _0x43a272=_0x351cc3,_0x472ce7=this;this[_0x43a272(0x248)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0xe6f916=>{const _0x45724b=_0x43a272,_0x219c42=await _0x472ce7[_0x45724b(0x2e4)][_0x45724b(0x35b)](_0xe6f916);return _0x219c42?{'source':_0x219c42['source'],'imageSourceType':_0x219c42[_0x45724b(0x43c)]}:null;}}));}};me=_t([De(0x0,p[_0x351cc3(0x2e1)]),De(0x1,ze[_0x351cc3(0x2a7)])],me);const Ne=[_0x351cc3(0x2a6),_0x351cc3(0x21b),'green.600','red.300','blue.400',_0x351cc3(0x267)];class Re extends a[_0x351cc3(0x37b)]{constructor(){const _0x110352=_0x351cc3;super(...arguments),_(this,_0x110352(0x2e6),new Map()),_(this,_0x110352(0x3d3),0x0);}[_0x351cc3(0x33a)](_0x13febe){const _0x55d495=_0x351cc3;if(this[_0x55d495(0x2e6)][_0x55d495(0x370)](_0x13febe))return this[_0x55d495(0x2e6)][_0x55d495(0x3d0)](_0x13febe);const _0x187a7d=Ne[this[_0x55d495(0x3d3)]];return this[_0x55d495(0x3d3)]=(this[_0x55d495(0x3d3)]+0x1)%Ne['length'],this[_0x55d495(0x2e6)][_0x55d495(0x305)](_0x13febe,_0x187a7d),_0x187a7d;}}function Fe(_0x5700ac){const _0x149c4b=_0x351cc3;let _0x1864d4='';for(const _0x15cb8e of _0x5700ac){const {startOffset:_0x25ae31,endOffset:_0x1d43df,isActive:_0x3dec26,rangeType:_0x1ece5b,segmentId:_0x3ba621,segmentPage:_0x45dc37}=_0x15cb8e;_0x1864d4[_0x149c4b(0x241)]&&(_0x1864d4+=','),_0x1864d4+=_0x25ae31+':'+_0x1d43df+':'+(_0x3dec26?'1':'0')+':'+_0x1ece5b+':'+_0x3ba621+':'+_0x45dc37;}return _0x1864d4;}function ht(_0x29a5e5){const _0x40521b=_0x351cc3,_0x2401c2=_0x29a5e5['split'](','),_0x3fb343=[];for(const _0x2f39bf of _0x2401c2){const [_0x3d22ca,_0xaa2876,_0x38aa31,_0x25b88,_0x2f9b6a,_0x515e99]=_0x2f39bf['split'](':');_0x3fb343['push']({'startOffset':Number(_0x3d22ca),'endOffset':Number(_0xaa2876),'collapsed':_0x3d22ca===_0xaa2876,'isActive':_0x38aa31==='1','rangeType':_0x25b88===a[_0x40521b(0x375)][_0x40521b(0x476)]?a[_0x40521b(0x375)][_0x40521b(0x476)]:a[_0x40521b(0x375)][_0x40521b(0x3dd)],'segmentId':typeof _0x2f9b6a==_0x40521b(0x3e9)?String(_0x2f9b6a):'','segmentPage':Number(_0x515e99!=null?_0x515e99:-0x1)});}return _0x3fb343[_0x40521b(0x459)](_0x480ef9=>_0x480ef9[_0x40521b(0x36a)])||(_0x3fb343[0x0]['isActive']=!0x0),_0x3fb343;}class be extends a[_0x351cc3(0x487)]{constructor(){const _0x67520c=_0x351cc3;super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,_0x67520c(0x324),this[_0x67520c(0x300)]['asObservable']());}[_0x351cc3(0x1f0)](_0x10b762){const _0x44fb1c=_0x351cc3,{unitID:_0x58d356,memberID:_0x313b9c,textRanges:_0x2f54fa}=_0x10b762,_0x56569e=Fe(_0x2f54fa);if(_0x56569e==='')return;const _0x5e838a={'unitID':_0x58d356,'memberID':_0x313b9c,'selection':_0x56569e};this['_collabCursorState$'][_0x44fb1c(0x380)](_0x5e838a);}}var ut=Object[_0x351cc3(0x343)],It=(_0x10623e,_0x4a22df,_0x1ea19d,_0x5a96a7)=>{const _0x3e59de=_0x351cc3;for(var _0xc852ff=_0x5a96a7>0x1?void 0x0:_0x5a96a7?ut(_0x4a22df,_0x1ea19d):_0x4a22df,_0x23a5d9=_0x10623e[_0x3e59de(0x241)]-0x1,_0x4c1fad;_0x23a5d9>=0x0;_0x23a5d9--)(_0x4c1fad=_0x10623e[_0x23a5d9])&&(_0xc852ff=_0x4c1fad(_0xc852ff)||_0xc852ff);return _0xc852ff;},U=(_0x5e44f9,_0x215b50)=>(_0x186006,_0x14282c)=>_0x215b50(_0x186006,_0x14282c,_0x5e44f9);const dt=0x12c,St=0x64;let ve=class extends a['RxDisposable']{constructor(_0x4bb219,_0x3c5fc5,_0x1dbd7d,_0x39ceb3,_0x42d3a6,_0x4237bb,_0x55dec3,_0x1a7d1c,_0x2c9d8e){const _0x5767af=_0x351cc3;super(),_(this,_0x5767af(0x1f6),!0x1),_(this,'_init',!0x1),_(this,_0x5767af(0x26b),new I[(_0x5767af(0x263))](new Map())),_(this,_0x5767af(0x35d),this[_0x5767af(0x26b)]['asObservable']()),_(this,_0x5767af(0x499),new I[(_0x5767af(0x263))]([])),_(this,'roomMembers$',this[_0x5767af(0x499)][_0x5767af(0x38b)](I[_0x5767af(0x46e)](dt))),_(this,_0x5767af(0x32e),a[_0x5767af(0x2aa)](_0x1973bd=>{const _0x1069b7=_0x5767af,_0x8f7e89={'eventID':g[_0x1069b7(0x234)][_0x1069b7(0x292)],'data':{'unitID':this[_0x1069b7(0x437)],'memberID':this[_0x1069b7(0x4a2)][_0x1069b7(0x355)](),'selection':Fe(_0x1973bd)}};this[_0x1069b7(0x4a2)][_0x1069b7(0x40f)](_0x8f7e89,this['unitID']);},St)),(this['unitID']=_0x4bb219,this[_0x5767af(0x4a2)]=_0x3c5fc5,this['_injector']=_0x1dbd7d,this[_0x5767af(0x296)]=_0x39ceb3,this['_memberService']=_0x42d3a6,this['_syncEditingCollabCursorService']=_0x4237bb,this['_transformService']=_0x55dec3,this[_0x5767af(0x2bf)]=_0x1a7d1c,this[_0x5767af(0x3f2)]=_0x2c9d8e);}get[_0x351cc3(0x470)](){const _0x313a9f=_0x351cc3;return this[_0x313a9f(0x26b)]['getValue']();}get[_0x351cc3(0x3fb)](){return this['_roomMembers$']['getValue']();}[_0x351cc3(0x469)](){const _0x5ce304=_0x351cc3;super[_0x5ce304(0x469)](),this[_0x5ce304(0x26b)][_0x5ce304(0x380)](new Map()),this[_0x5ce304(0x26b)][_0x5ce304(0x279)](),this[_0x5ce304(0x499)][_0x5ce304(0x380)]([]),this[_0x5ce304(0x499)][_0x5ce304(0x279)]();}['init'](){const _0x39fd93=_0x351cc3;this[_0x39fd93(0x331)]||(this[_0x39fd93(0x331)]=!0x0,this['_session'][_0x39fd93(0x45a)][_0x39fd93(0x38b)](I[_0x39fd93(0x3f1)](this['dispose$']))[_0x39fd93(0x3b4)](_0x5ae1fc=>{const _0x3b03d0=_0x39fd93;_0x5ae1fc===u['SessionStatus']['ONLINE']?this[_0x3b03d0(0x47b)]():this[_0x3b03d0(0x447)]();}),this[_0x39fd93(0x4a2)][_0x39fd93(0x363)][_0x39fd93(0x38b)](I['takeUntil'](this['dispose$']))['subscribe'](_0x21ebb5=>{const _0x41054c=_0x39fd93,_0x4ab286=_0x21ebb5[_0x41054c(0x3ec)];_0x4ab286===g[_0x41054c(0x234)][_0x41054c(0x292)]&&this[_0x41054c(0x460)](_0x21ebb5),_0x4ab286===g[_0x41054c(0x234)][_0x41054c(0x48c)]&&this[_0x41054c(0x30a)](_0x21ebb5);}),this[_0x39fd93(0x248)](this[_0x39fd93(0x3f2)]['onCommandExecuted'](_0x4c5ebd=>{const _0x243823=_0x39fd93,_0x3f28dd=_0x4c5ebd[_0x243823(0x3d6)];_0x3f28dd!=null&&this['_online']&&_0x4c5ebd['id']===V[_0x243823(0x40e)]['id']&&_0x3f28dd[_0x243823(0x338)]===this[_0x243823(0x437)]&&_0x3f28dd['isEditing']===!0x1&&_0x3f28dd[_0x243823(0x2cc)][_0x243823(0x241)]>0x0&&this[_0x243823(0x32e)](_0x3f28dd[_0x243823(0x2cc)]);})),this[_0x39fd93(0x334)][_0x39fd93(0x324)]['pipe'](I[_0x39fd93(0x3f1)](this[_0x39fd93(0x40d)]))[_0x39fd93(0x3b4)](_0x4e4d7f=>{const _0x55e84e=_0x39fd93;if((_0x4e4d7f==null?void 0x0:_0x4e4d7f['unitID'])!==this[_0x55e84e(0x437)])return;const _0x11f5b0={'eventID':g[_0x55e84e(0x234)]['UPDATE_CURSOR'],'data':_0x4e4d7f};this[_0x55e84e(0x460)](_0x11f5b0);}),this['disposeWithMe'](this[_0x39fd93(0x3f2)][_0x39fd93(0x29a)](_0x354bc2=>{const _0x1caee9=_0x39fd93;if(_0x354bc2[_0x1caee9(0x3d6)]==null)return;const _0x5d96ca=_0x354bc2[_0x1caee9(0x3d6)];if(_0x354bc2['id']!==V[_0x1caee9(0x3bd)]['id']||_0x5d96ca[_0x1caee9(0x338)]!==this[_0x1caee9(0x437)])return;const _0x45efc9={'id':_0x1caee9(0x483),'params':_0x5d96ca},_0x413321=this[_0x1caee9(0x470)];for(const [_0x450271,_0x2ab762]of _0x413321){const _0x18ef10={'id':_0x1caee9(0x483),'params':{'unitId':this[_0x1caee9(0x437)],'actions':null,'textRanges':_0x2ab762['ranges']}},_0x37f8db=this['_transformService'][_0x1caee9(0x2dd)](_0x45efc9,_0x18ef10,!0x1);if(g['isTransformMutationFailure'](_0x37f8db))throw _0x37f8db[_0x1caee9(0x423)];_0x413321['set'](_0x450271,{..._0x2ab762,'ranges':_0x37f8db[_0x1caee9(0x274)][_0x1caee9(0x3d6)][_0x1caee9(0x48f)]});}queueMicrotask(()=>{const _0x24bd6d=_0x1caee9;this[_0x24bd6d(0x26b)][_0x24bd6d(0x380)](_0x413321);});})));}[_0x351cc3(0x460)](_0x1efd2f){const _0x1622e9=_0x351cc3;var _0x42bf3b,_0x38b4a0;const {memberID:_0x5374e5,selection:_0x51b3c6}=_0x1efd2f[_0x1622e9(0x49d)],_0x39fa98=ht(_0x51b3c6),_0x3aca5a=(_0x38b4a0=(_0x42bf3b=this[_0x1622e9(0x3cb)][_0x1622e9(0x3f4)](this[_0x1622e9(0x437)],_0x5374e5))==null?void 0x0:_0x42bf3b[_0x1622e9(0x3a6)])!=null?_0x38b4a0:_0x1622e9(0x253),_0x4799d3={'color':this[_0x1622e9(0x296)][_0x1622e9(0x33a)](_0x5374e5),'name':_0x3aca5a,'ranges':_0x39fa98},_0x5c4b48=this[_0x1622e9(0x470)];_0x5c4b48[_0x1622e9(0x305)](_0x5374e5,_0x4799d3),this[_0x1622e9(0x26b)][_0x1622e9(0x380)](_0x5c4b48);}[_0x351cc3(0x30a)](_0x20505c){const _0xf529ab=_0x351cc3,{memberID:_0x4743bb}=_0x20505c[_0xf529ab(0x49d)],_0x3fd514=this[_0xf529ab(0x470)];_0x3fd514['delete'](_0x4743bb),this[_0xf529ab(0x26b)][_0xf529ab(0x380)](_0x3fd514);}['_toggleOnline'](){const _0xfa6b77=_0x351cc3;var _0x4d040c;if(this[_0xfa6b77(0x1f6)]=!0x0,((_0x4d040c=this[_0xfa6b77(0x2bf)][_0xfa6b77(0x22e)]())==null?void 0x0:_0x4d040c['getUnitId']())!==this['unitID'])return;const _0x33b65f=this['_injector']['get'](V[_0xfa6b77(0x3a9)])[_0xfa6b77(0x381)]();Array[_0xfa6b77(0x330)](_0x33b65f)&&_0x33b65f[_0xfa6b77(0x241)]>0x0&&this['_updateLocalCursor'](_0x33b65f);}[_0x351cc3(0x447)](){this['_online']=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x351cc3(0x2d1)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x351cc3(0x257)](u[_0x351cc3(0x427)])),U(0x5,a[_0x351cc3(0x257)](be)),U(0x6,g[_0x351cc3(0x362)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x351cc3(0x30d)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x39a8f6,_0x6a7652,_0x611ea3,_0x5f59f7)=>{for(var _0x2e624e=_0x5f59f7>0x1?void 0x0:_0x5f59f7?ft(_0x6a7652,_0x611ea3):_0x6a7652,_0x4494cc=_0x39a8f6['length']-0x1,_0x349361;_0x4494cc>=0x0;_0x4494cc--)(_0x349361=_0x39a8f6[_0x4494cc])&&(_0x2e624e=_0x349361(_0x2e624e)||_0x2e624e);return _0x2e624e;},w=(_0x4f2e79,_0x4eebd5)=>(_0x535b46,_0xe312cf)=>_0x4eebd5(_0x535b46,_0xe312cf,_0x4f2e79);const vt=0x12c,gt=0x64,Et=()=>{let _0x1829c8=[],_0x4b60ae=!0x1;return _0xfd2a36=>{const _0x5efced=_0xf8a9;_0x1829c8[_0x5efced(0x455)](_0xfd2a36),_0x4b60ae||(_0x4b60ae=!0x0,setTimeout(()=>{_0x1829c8['forEach'](_0x327f80=>_0x327f80()),_0x1829c8=[],_0x4b60ae=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x2c709f,_0x5a429d,_0x3d545b,_0x2eaf1e,_0x4d8ee9,_0x24a3c1,_0x1ff152,_0x2d85b6){const _0x3b8012=_0x351cc3;super(),_(this,_0x3b8012(0x1f6),!0x1),_(this,_0x3b8012(0x331),!0x1),_(this,_0x3b8012(0x26b),new I[(_0x3b8012(0x263))](new Map())),_(this,_0x3b8012(0x35d),this[_0x3b8012(0x26b)]['asObservable']()),_(this,_0x3b8012(0x499),new I['BehaviorSubject']([])),_(this,_0x3b8012(0x2d7),this[_0x3b8012(0x499)][_0x3b8012(0x38b)](I[_0x3b8012(0x46e)](vt))),_(this,_0x3b8012(0x32e),a['debounce']((_0x1ab825,_0x40e4e3)=>{const _0x357c08=_0x3b8012,_0x102351={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x357c08(0x4a2)]['getMemberID'](),'selection':B['serializeRangeWithSheet'](_0x1ab825,_0x40e4e3[_0x357c08(0x31b)])}};this[_0x357c08(0x4a2)][_0x357c08(0x40f)](_0x102351,this[_0x357c08(0x437)]);},gt)),(this[_0x3b8012(0x437)]=_0x2c709f,this[_0x3b8012(0x4a2)]=_0x5a429d,this[_0x3b8012(0x37f)]=_0x3d545b,this['_colorAssignService']=_0x2eaf1e,this[_0x3b8012(0x3cb)]=_0x4d8ee9,this[_0x3b8012(0x2bf)]=_0x24a3c1,this[_0x3b8012(0x3f2)]=_0x1ff152,this[_0x3b8012(0x218)]=_0x2d85b6);}get[_0x351cc3(0x470)](){const _0x1c8916=_0x351cc3;return this[_0x1c8916(0x26b)][_0x1c8916(0x24d)]();}get['roomMembers'](){const _0x2c5220=_0x351cc3;return this[_0x2c5220(0x499)][_0x2c5220(0x24d)]();}[_0x351cc3(0x469)](){const _0x3452d1=_0x351cc3;super['dispose'](),this[_0x3452d1(0x26b)][_0x3452d1(0x380)](new Map()),this[_0x3452d1(0x26b)]['complete'](),this[_0x3452d1(0x499)]['next']([]),this[_0x3452d1(0x499)][_0x3452d1(0x279)]();}[_0x351cc3(0x211)](){const _0x2799be=_0x351cc3;this[_0x2799be(0x331)]||(this[_0x2799be(0x331)]=!0x0,this['_session']['sessionStatus$'][_0x2799be(0x38b)](I[_0x2799be(0x3f1)](this[_0x2799be(0x40d)]))['subscribe'](_0x17f933=>{const _0x59e05c=_0x2799be;_0x17f933===u['SessionStatus'][_0x59e05c(0x22c)]?this['_toggleOnline']():this[_0x59e05c(0x447)]();}),this['_session'][_0x2799be(0x363)]['pipe'](I[_0x2799be(0x3f1)](this[_0x2799be(0x40d)]))[_0x2799be(0x3b4)](_0x32d82a=>{const _0x12f90c=_0x2799be,_0x58f3e8=_0x32d82a[_0x12f90c(0x3ec)];_0x58f3e8===g['CollaborationEvent'][_0x12f90c(0x292)]&&this['_onCursorUpdate'](_0x32d82a),_0x58f3e8===g['CollaborationEvent'][_0x12f90c(0x48c)]&&this[_0x12f90c(0x30a)](_0x32d82a);}),this[_0x2799be(0x223)](),this[_0x2799be(0x248)](this[_0x2799be(0x3f2)]['onCommandExecuted'](_0x187347=>{const _0x62c0c1=_0x2799be;if(this['_online']&&_0x187347['id']===v['SetSelectionsOperation']['id']&&_0x187347[_0x62c0c1(0x3d6)][_0x62c0c1(0x338)]===this['unitID']){const _0x265c74=_0x187347['params'];this[_0x62c0c1(0x32e)](_0x265c74[_0x62c0c1(0x3b2)],_0x265c74[_0x62c0c1(0x38f)][0x0]);}})));}[_0x351cc3(0x460)](_0x205902){const _0x21b853=_0x351cc3;var _0x228336,_0x52a77d;const {memberID:_0x354f2f,selection:_0x28e002}=_0x205902['data'],{sheetName:_0x293602,range:_0x5cac9d}=B[_0x21b853(0x4b8)](_0x28e002),_0x431fd7={'name':(_0x52a77d=(_0x228336=this[_0x21b853(0x3cb)][_0x21b853(0x3f4)](this['unitID'],_0x354f2f))==null?void 0x0:_0x228336['name'])!=null?_0x52a77d:_0x21b853(0x253),'range':this[_0x21b853(0x3a2)](_0x293602,_0x5cac9d),'sheetID':_0x293602,'color':this[_0x21b853(0x296)]['assignAColorForMemberID'](_0x354f2f),'selection':_0x28e002},_0xed964b=this['cursorInfo'];_0xed964b[_0x21b853(0x305)](_0x354f2f,_0x431fd7),this['_cursorInfo$'][_0x21b853(0x380)](_0xed964b);}[_0x351cc3(0x30a)](_0x1b06c1){const _0x9fa8ca=_0x351cc3,{memberID:_0x206af1}=_0x1b06c1['data'],_0x2d28bf=this[_0x9fa8ca(0x470)];_0x2d28bf[_0x9fa8ca(0x4a9)](_0x206af1),this[_0x9fa8ca(0x26b)][_0x9fa8ca(0x380)](_0x2d28bf);}[_0x351cc3(0x3a2)](_0x58f1c4,_0x3b3a55){const _0x3d277f=_0x351cc3;var _0x445e81,_0x81896a;const _0x3f7406=(_0x81896a=(_0x445e81=this[_0x3d277f(0x2bf)][_0x3d277f(0x230)](this[_0x3d277f(0x437)]))==null?void 0x0:_0x445e81['getSheetBySheetId'](_0x58f1c4))==null?void 0x0:_0x81896a[_0x3d277f(0x403)]();return(_0x3f7406==null?void 0x0:_0x3f7406[_0x3d277f(0x2de)](_0x1b5572=>a[_0x3d277f(0x33c)][_0x3d277f(0x22d)](_0x1b5572,_0x3b3a55)))||_0x3b3a55;}[_0x351cc3(0x223)](){const _0x1f47fd=_0x351cc3,_0x624901=new a[(_0x1f47fd(0x260))](),_0xa4dc0d=Et(),_0x39d9e2=()=>{const _0x4da55a=_0x1f47fd;_0x624901[_0x4da55a(0x469)]();const _0x57b5a9=(_0x520331,_0x317c83,_0x1d2bea,_0x239944)=>{const _0x5113fd=_0x4da55a;let _0x409633=[];switch(_0x520331['id']){case v['EffectRefRangId'][_0x5113fd(0x43a)]:{_0x409633=v[_0x5113fd(0x2f1)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x413)]:{_0x409633=v[_0x5113fd(0x325)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x416)]:{_0x409633=v['handleInsertCol'](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x250)]:{_0x409633=v[_0x5113fd(0x485)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x3b3)]:{_0x409633=v['handleInsertRangeMoveRight'](_0x520331,_0x239944);break;}case v['EffectRefRangId'][_0x5113fd(0x41a)]:{_0x409633=v[_0x5113fd(0x420)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x3c1)]:{_0x409633=v[_0x5113fd(0x4ad)](_0x520331,_0x239944);break;}case v['EffectRefRangId'][_0x5113fd(0x26a)]:{_0x409633=v[_0x5113fd(0x3ea)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)]['RemoveRowCommandId']:{_0x409633=v['handleIRemoveRow'](_0x520331,_0x239944);break;}}const _0x446628=v[_0x5113fd(0x277)](_0x409633,_0x239944),_0x489755=this[_0x5113fd(0x470)]['get'](_0x317c83);if(_0x489755&&_0x446628){const _0x1c6491={..._0x489755,'range':_0x446628};this['cursorInfo'][_0x5113fd(0x305)](_0x317c83,_0x1c6491),_0xa4dc0d(()=>{const _0x2db161=_0x5113fd,_0x48efb8=this['_refRangeService']['registerRefRange'](_0x446628,_0x5376e3=>(_0x48efb8[_0x2db161(0x469)](),_0x57b5a9(_0x5376e3,_0x317c83,_0x1d2bea,_0x446628)));_0x624901[_0x2db161(0x251)](_0x48efb8);});}return{'redos':[],'undos':[]};};this[_0x4da55a(0x470)][_0x4da55a(0x264)]((_0x1f5cbd,_0x55622d)=>{const _0x2ee6a7=_0x4da55a,{range:_0x53c58f,sheetID:_0x356af9}=_0x1f5cbd,_0x40324a=this[_0x2ee6a7(0x218)]['registerRefRange'](_0x53c58f,_0x23eac2=>(_0x40324a[_0x2ee6a7(0x469)](),_0x57b5a9(_0x23eac2,_0x55622d,_0x356af9,_0x53c58f)));_0x624901[_0x2ee6a7(0x251)](_0x40324a);});};this[_0x1f47fd(0x248)](a[_0x1f47fd(0x30f)](this[_0x1f47fd(0x26b)][_0x1f47fd(0x3b4)](()=>{_0x39d9e2();})));}['_toggleOnline'](){const _0x4bc513=_0x351cc3;var _0x2e423c,_0x4859a3;if(this[_0x4bc513(0x1f6)]=!0x0,((_0x2e423c=this[_0x4bc513(0x2bf)]['getFocusedUnit']())==null?void 0x0:_0x2e423c['getUnitId']())!==this['unitID'])return;const _0x36dfbc=(_0x4859a3=this[_0x4bc513(0x37f)][_0x4bc513(0x3d0)](v[_0x4bc513(0x444)])[_0x4bc513(0x392)]())==null?void 0x0:_0x4859a3[0x0],_0x11bb35=this[_0x4bc513(0x2bf)]['getCurrentUnitForType'](a[_0x4bc513(0x2ab)]['UNIVER_SHEET'])[_0x4bc513(0x207)]();_0x36dfbc&&_0x11bb35&&this[_0x4bc513(0x32e)](_0x11bb35[_0x4bc513(0x45d)](),_0x36dfbc);}[_0x351cc3(0x447)](){const _0x1f6421=_0x351cc3;this[_0x1f6421(0x1f6)]=!0x1;}};ge=mt([w(0x2,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),w(0x3,a[_0x351cc3(0x257)](Re)),w(0x4,a['Inject'](u[_0x351cc3(0x427)])),w(0x5,a[_0x351cc3(0x314)]),w(0x6,a['ICommandService']),w(0x7,a[_0x351cc3(0x257)](v[_0x351cc3(0x2a0)]))],ge);var Ct=Object[_0x351cc3(0x343)],pt=(_0x226259,_0x389b8,_0x23e166,_0x28ffab)=>{const _0x467013=_0x351cc3;for(var _0x5cec53=_0x28ffab>0x1?void 0x0:_0x28ffab?Ct(_0x389b8,_0x23e166):_0x389b8,_0x1b2a9e=_0x226259[_0x467013(0x241)]-0x1,_0x305742;_0x1b2a9e>=0x0;_0x1b2a9e--)(_0x305742=_0x226259[_0x1b2a9e])&&(_0x5cec53=_0x305742(_0x5cec53)||_0x5cec53);return _0x5cec53;},ce=(_0x23e60f,_0x984e40)=>(_0x57ddb0,_0x247cb8)=>_0x984e40(_0x57ddb0,_0x247cb8,_0x23e60f);let F=class extends a['RxDisposable']{constructor(_0x361db3,_0x5e2946,_0x598c73){const _0x3754d6=_0x351cc3;super(),_(this,_0x3754d6(0x29e),new Map()),_(this,_0x3754d6(0x3a8),new I[(_0x3754d6(0x458))]()),(this[_0x3754d6(0x2bf)]=_0x361db3,this[_0x3754d6(0x37f)]=_0x5e2946,this[_0x3754d6(0x4ba)]=_0x598c73,this[_0x3754d6(0x331)]());}[_0x351cc3(0x469)](){const _0x9fbefc=_0x351cc3;super[_0x9fbefc(0x469)](),this[_0x9fbefc(0x3a8)]['complete'](),this[_0x9fbefc(0x29e)][_0x9fbefc(0x264)](_0x5f5b32=>_0x5f5b32['dispose']());}[_0x351cc3(0x23b)](_0x1bf904){const _0x59d275=_0x351cc3;return this[_0x59d275(0x29e)][_0x59d275(0x370)](_0x1bf904)?this[_0x59d275(0x29e)][_0x59d275(0x3d0)](_0x1bf904)['cursorInfo$']:this[_0x59d275(0x3a8)][_0x59d275(0x38b)](I['filter'](_0x478c25=>_0x478c25['unitID']===_0x1bf904),I[_0x59d275(0x424)](_0x4a32a3=>_0x4a32a3[_0x59d275(0x35d)]));}['_init'](){const _0x51383f=_0x351cc3;this[_0x51383f(0x2bf)][_0x51383f(0x429)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x51383f(0x40d)]))['subscribe'](async _0x5bc519=>{const _0x3f9797=_0x51383f,_0x45ea9b=_0x5bc519[_0x3f9797(0x3b1)](),_0x270450=await this[_0x3f9797(0x3cd)](_0x45ea9b);this[_0x3f9797(0x3a8)][_0x3f9797(0x380)](_0x270450),this[_0x3f9797(0x29e)]['set'](_0x45ea9b,_0x270450);}),this['_univerInstanceService'][_0x51383f(0x429)](a[_0x51383f(0x2ab)][_0x51383f(0x345)])['pipe'](I[_0x51383f(0x3f1)](this[_0x51383f(0x40d)]))[_0x51383f(0x38b)](I[_0x51383f(0x354)](_0x408cc4=>!_0x408cc4[_0x51383f(0x3b1)]()[_0x51383f(0x328)]('__')))[_0x51383f(0x3b4)](async _0x3710e7=>{const _0x45eba0=_0x51383f,_0x270080=_0x3710e7[_0x45eba0(0x3b1)](),_0x4650fc=await this[_0x45eba0(0x20c)](_0x270080);this['_entityInit$'][_0x45eba0(0x380)](_0x4650fc),this[_0x45eba0(0x29e)]['set'](_0x270080,_0x4650fc);}),I[_0x51383f(0x216)](this[_0x51383f(0x2bf)][_0x51383f(0x4b3)](a[_0x51383f(0x2ab)][_0x51383f(0x345)]),this[_0x51383f(0x2bf)]['getTypeOfUnitDisposed$'](a[_0x51383f(0x2ab)][_0x51383f(0x34b)]))[_0x51383f(0x38b)](I[_0x51383f(0x3f1)](this[_0x51383f(0x40d)]))[_0x51383f(0x3b4)](_0x4a6568=>{const _0xb5e74d=_0x51383f,_0x2170ab=_0x4a6568[_0xb5e74d(0x3b1)](),_0x1ceaac=this[_0xb5e74d(0x29e)][_0xb5e74d(0x3d0)](_0x2170ab);_0x1ceaac&&(_0x1ceaac[_0xb5e74d(0x469)](),this[_0xb5e74d(0x29e)][_0xb5e74d(0x4a9)](_0x2170ab));});}async[_0x351cc3(0x3cd)](_0x5904cf){const _0x330c0d=_0x351cc3,_0xc401cb=await this['_collabSessionService'][_0x330c0d(0x25f)](_0x5904cf),_0x48914b=this['_injector']['createInstance'](ge,_0x5904cf,_0xc401cb);return _0x48914b[_0x330c0d(0x211)](),_0x48914b;}async['_startDocCollabCursor'](_0x53c128){const _0x5d4913=_0x351cc3,_0x735c87=await this[_0x5d4913(0x4ba)][_0x5d4913(0x25f)](_0x53c128),_0x253bc6=this[_0x5d4913(0x37f)][_0x5d4913(0x20a)](ve,_0x53c128,_0x735c87);return _0x253bc6[_0x5d4913(0x211)](),_0x253bc6;}};F=pt([ce(0x0,a[_0x351cc3(0x314)]),ce(0x1,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),ce(0x2,a[_0x351cc3(0x257)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x22dc10,_0x5385b2){const _0x3b13ac=_0x351cc3;let {radius:_0x593c09,width:_0x12e077,height:_0x3d71cd}=_0x5385b2;_0x593c09=_0x593c09!=null?_0x593c09:0x0,_0x12e077=_0x12e077!=null?_0x12e077:0x1e,_0x3d71cd=_0x3d71cd!=null?_0x3d71cd:0x1e;let _0x2f2b79=0x0,_0x49d353=0x0,_0x2726ee=0x0;_0x2f2b79=_0x49d353=_0x2726ee=Math[_0x3b13ac(0x2e0)](_0x593c09,_0x12e077/0x2,_0x3d71cd/0x2),_0x22dc10[_0x3b13ac(0x46a)](),_0x22dc10[_0x3b13ac(0x2ff)](_0x2f2b79,0x0),_0x22dc10[_0x3b13ac(0x322)](_0x12e077-_0x49d353,0x0),_0x22dc10[_0x3b13ac(0x3ae)](_0x12e077-_0x49d353,_0x49d353,_0x49d353,Math['PI']*0x3/0x2,0x0,!0x1),_0x22dc10[_0x3b13ac(0x322)](_0x12e077,_0x3d71cd-_0x2726ee),_0x22dc10[_0x3b13ac(0x3ae)](_0x12e077-_0x2726ee,_0x3d71cd-_0x2726ee,_0x2726ee,0x0,Math['PI']/0x2,!0x1),_0x22dc10['lineTo'](0x0,_0x3d71cd),_0x22dc10['lineTo'](0x0,_0x2f2b79),_0x22dc10['arc'](_0x2f2b79,_0x2f2b79,_0x2f2b79,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22dc10[_0x3b13ac(0x32b)](),_0x5385b2[_0x3b13ac(0x265)]&&(_0x22dc10[_0x3b13ac(0x1fd)](),_0x22dc10[_0x3b13ac(0x2a9)]=_0x5385b2[_0x3b13ac(0x265)],_0x5385b2[_0x3b13ac(0x3b9)]===_0x3b13ac(0x451)?_0x22dc10[_0x3b13ac(0x265)]('evenodd'):_0x22dc10['fill'](),_0x22dc10['restore']());}class re extends C['Shape']{constructor(_0x31114b,_0x2975e3){const _0x1ad703=_0x351cc3;super(_0x31114b,_0x2975e3),_(this,'color'),_(this,'text'),(this[_0x1ad703(0x37c)]=_0x2975e3==null?void 0x0:_0x2975e3[_0x1ad703(0x37c)],this[_0x1ad703(0x418)]=_0x2975e3==null?void 0x0:_0x2975e3[_0x1ad703(0x418)]);}static[_0x351cc3(0x2f8)](_0x44842d,_0x547803){const _0x10a19d=_0x351cc3,{text:_0xf15a41,color:_0x496279}=_0x547803;_0x44842d[_0x10a19d(0x1fd)](),_0x44842d['font']=_0x10a19d(0x210);const _0x2721fc=_0x44842d['measureText'](_0xf15a41)[_0x10a19d(0x220)],_0x52d3a1=Math[_0x10a19d(0x2e0)](_0x2721fc+0x2*le,Ue);Ot(_0x44842d,{'height':X,'radius':0x4,'width':_0x52d3a1,'fill':_0x496279}),_0x44842d['fillStyle']=_0x10a19d(0x2ba);const _0xdf97b=le,_0x5048b4=X-Tt,_0xbf7b29=Ue-0x2*le;if(_0x2721fc>_0xbf7b29){let _0x8bfef3='',_0xc47fcd=0x0;for(const _0x5422a0 of _0xf15a41){const _0x23ec3e=_0x44842d[_0x10a19d(0x269)](_0x5422a0)[_0x10a19d(0x220)];if(_0xc47fcd+_0x23ec3e<=_0xbf7b29-_0x44842d['measureText'](_0x10a19d(0x262))[_0x10a19d(0x220)])_0x8bfef3+=_0x5422a0,_0xc47fcd+=_0x23ec3e;else{_0x8bfef3+=_0x10a19d(0x262);break;}}_0x44842d[_0x10a19d(0x25d)](_0x8bfef3,_0xdf97b,_0x5048b4);}else _0x44842d['fillText'](_0xf15a41,_0xdf97b,_0x5048b4);_0x44842d['restore']();}[_0x351cc3(0x21f)](_0x5cf84e){const _0xe4aa02=_0x351cc3;re[_0xe4aa02(0x2f8)](_0x5cf84e,this);}}const _e=_0x351cc3(0x349),Rt=_0x351cc3(0x384),bt=_0x351cc3(0x1f5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x351cc3(0x477);class Le{constructor(_0x31e37b,_0x1efa67,_0x3de2c1,_0x54a16f){const _0x1e0bb3=_0x351cc3;_(this,'_shapes',[]),_(this,_0x1e0bb3(0x232),null),_(this,_0x1e0bb3(0x3aa),null),_(this,'_anchorDot',null),_(this,_0x1e0bb3(0x39b),null),_(this,'_eventUnsubscribe',null),(this[_0x1e0bb3(0x347)]=_0x31e37b,this[_0x1e0bb3(0x350)]=_0x1efa67,this[_0x1e0bb3(0x315)]=_0x3de2c1,this['_document']=_0x54a16f,this[_0x1e0bb3(0x367)]());}set[_0x351cc3(0x341)](_0xe6a19d){const _0x575028=_0x351cc3;_0xe6a19d?(this[_0x575028(0x2ae)]&&this['_anchorDot'][_0x575028(0x38e)](),this[_0x575028(0x3aa)]&&this['_textBubble']['show']()):(this[_0x575028(0x2ae)]&&this[_0x575028(0x2ae)][_0x575028(0x431)](),this['_textBubble']&&this[_0x575028(0x3aa)][_0x575028(0x38e)]());}[_0x351cc3(0x469)](){const _0xaa289=_0x351cc3;for(const _0x44e04c of this[_0xaa289(0x1fb)])_0x44e04c[_0xaa289(0x469)]();this[_0xaa289(0x3aa)]&&this[_0xaa289(0x3aa)][_0xaa289(0x469)](),this[_0xaa289(0x2ae)]&&this[_0xaa289(0x2ae)][_0xaa289(0x469)](),this['_anchor']&&this['_anchor'][_0xaa289(0x469)](),this[_0xaa289(0x49e)]&&this[_0xaa289(0x49e)]();}[_0x351cc3(0x367)](){const _0x190e17=_0x351cc3;var _0x4edf2;const {_docSkeleton:_0x40eadc,_document:_0x447a57}=this,{color:_0x8a75ba,name:_0x3a791b,ranges:_0x47ca93}=this[_0x190e17(0x347)],_0x160896=_0x447a57[_0x190e17(0x34a)](),{docsLeft:_0x4dbb87,docsTop:_0x2689c7}=_0x160896,_0x1b16b6=new p[(_0x190e17(0x435))](_0x160896,_0x40eadc);for(const {startOffset:_0x52255b,endOffset:_0x9207cc,rangeType:_0xef133f,segmentId:_0x3e0c46,segmentPage:_0x139f1d,collapsed:_0x115605,isActive:_0x3cade1}of _0x47ca93){const _0x3ff7f=_0x40eadc['findNodePositionByCharIndex'](_0x52255b,!0x0,_0x3e0c46,_0x139f1d);let _0x6eea3b=_0x40eadc[_0x190e17(0x2a5)](_0x9207cc,!0x0,_0x3e0c46,_0x139f1d);if(_0x6eea3b==null&&(_0x6eea3b=_0x40eadc['findNodePositionByCharIndex'](_0x9207cc-0x1,!0x1,_0x3e0c46,_0x139f1d)),_0x3cade1){const {contentBoxPointGroup:_0x36cf91}=_0x1b16b6['getRangePointData'](_0x6eea3b,_0x6eea3b);if(_0x36cf91[_0x190e17(0x241)]===0x0)continue;this['_drawAnchor'](_0x8a75ba,_0x36cf91,_0x4dbb87,_0x2689c7,_0x3a791b),this[_0x190e17(0x49e)]=this[_0x190e17(0x2fd)]();}if(_0x3ff7f&&_0x6eea3b){if(_0xef133f===a[_0x190e17(0x375)][_0x190e17(0x3dd)]){const _0x32c978=new p[(_0x190e17(0x215))](_0x160896,_0x40eadc),{pointGroup:_0x29a972}=(_0x4edf2=_0x32c978[_0x190e17(0x411)](_0x3ff7f,_0x6eea3b))!=null?_0x4edf2:{};if(_0x29a972==null||_0x29a972[_0x190e17(0x241)]===0x0)continue;this[_0x190e17(0x22f)](_0x8a75ba,_0x29a972,_0x4dbb87,_0x2689c7);}else{if(!_0x115605){const {borderBoxPointGroup:_0x45cb7c}=_0x1b16b6[_0x190e17(0x411)](_0x3ff7f,_0x6eea3b);if(_0x45cb7c[_0x190e17(0x241)]===0x0)continue;this[_0x190e17(0x280)](_0x8a75ba,_0x45cb7c,_0x4dbb87,_0x2689c7);}}}}}[_0x351cc3(0x388)](_0x5bed43,_0x5c1ad3,_0x167d78,_0x5f0079,_0x10e08b){const _0x30736a=_0x351cc3,_0x2641c1=this[_0x30736a(0x45f)](_0x5c1ad3),{left:_0x515658,top:_0x49d8fd,height:_0x203adc}=_0x2641c1,_0x251701=this['_getScale'](),_0x69122c=Nt/_0x251701,_0x439ae0=new C['Rect'](_e+a[_0x30736a(0x204)](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079,'height':_0x203adc,'width':Dt,'fill':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)][_0x30736a(0x379)],0x0),'strokeWidth':_0x69122c,'stroke':Ut,'evented':!0x0});this[_0x30736a(0x232)]=_0x439ae0,this[_0x30736a(0x350)][_0x30736a(0x49f)](_0x439ae0,p[_0x30736a(0x360)]);const _0x2a8ff1=new C['Rect'](_e+a[_0x30736a(0x204)](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079-he/0x2,'height':he,'width':he,'fill':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)][_0x30736a(0x379)],0x0),'evented':!0x1});this[_0x30736a(0x2ae)]=_0x2a8ff1,this[_0x30736a(0x350)][_0x30736a(0x49f)](_0x2a8ff1,p[_0x30736a(0x360)]);const _0x4e8253=new re(_e+a['generateRandomId'](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079-X,'text':_0x10e08b,'color':_0x5bed43});this['_textBubble']=_0x4e8253,this['_scene'][_0x30736a(0x49f)](_0x4e8253,p[_0x30736a(0x360)]),this[_0x30736a(0x341)]=!0x1;}['_handleHover'](){const _0x3afea3=_0x351cc3,_0x27569f=this[_0x3afea3(0x232)][_0x3afea3(0x465)][_0x3afea3(0x32c)](()=>{const _0x40b5d0=_0x3afea3;this[_0x40b5d0(0x341)]=!0x0;}),_0x987a79=this['_anchor'][_0x3afea3(0x4a4)][_0x3afea3(0x32c)](()=>{const _0x34403e=_0x3afea3;this[_0x34403e(0x39b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2a8752=_0x34403e;this[_0x2a8752(0x341)]=!0x1;},0x7d0);});return()=>{_0x27569f['unsubscribe'](),_0x987a79['unsubscribe']();};}['_drawTextRange'](_0x4ffe53,_0x4b7ab2,_0x5d790,_0x4c5f6a){const _0x4803d9=_0x351cc3,_0x1e55ae=new a[(_0x4803d9(0x203))](_0x4ffe53)[_0x4803d9(0x421)](0.2)[_0x4803d9(0x28e)](),_0x918f5f=new C['RegularPolygon'](Rt+a[_0x4803d9(0x204)](H),{'pointsGroup':_0x4b7ab2,'fill':_0x1e55ae||C[_0x4803d9(0x361)](a['COLORS'][_0x4803d9(0x379)],0.2),'left':_0x5d790,'top':_0x4c5f6a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4803d9(0x1fb)]['push'](_0x918f5f),this[_0x4803d9(0x350)][_0x4803d9(0x49f)](_0x918f5f,p[_0x4803d9(0x360)]);}[_0x351cc3(0x22f)](_0x2729be,_0x3ed662,_0x3d0662,_0x4dbea3){const _0x39f5c8=_0x351cc3,_0x18414e=new a['ColorKit'](_0x2729be)[_0x39f5c8(0x421)](0.2)['toRgbString'](),_0x59c7f7=new C[(_0x39f5c8(0x3cc))](bt+a['generateRandomId'](H),{'pointsGroup':_0x3ed662,'fill':_0x18414e||C[_0x39f5c8(0x361)](a[_0x39f5c8(0x2c1)]['black'],0.2),'left':_0x3d0662,'top':_0x4dbea3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x39f5c8(0x1fb)]['push'](_0x59c7f7),this[_0x39f5c8(0x350)][_0x39f5c8(0x49f)](_0x59c7f7,p[_0x39f5c8(0x360)]);}[_0x351cc3(0x45f)](_0x33bc31){const _0x33535f=_0x33bc31[0x0],_0x2865f8=_0x33535f[0x0],_0x25e3f7=_0x33535f[0x2],{x:_0x41984a,y:_0x289037}=_0x2865f8,{x:_0x105e1c,y:_0x2a581c}=_0x25e3f7;return{'left':_0x41984a,'top':_0x289037,'width':_0x105e1c-_0x41984a,'height':_0x2a581c-_0x289037};}[_0x351cc3(0x3dc)](){const _0x392942=_0x351cc3,{scaleX:_0x42e80d,scaleY:_0x59f6aa}=this[_0x392942(0x350)]['getAncestorScale']();return Math[_0x392942(0x3bf)](_0x42e80d,_0x59f6aa);}}var Lt=Object[_0x351cc3(0x343)],Mt=(_0x2524f0,_0x77975,_0x36c854,_0x2929dd)=>{const _0x46e5fa=_0x351cc3;for(var _0x364c8c=_0x2929dd>0x1?void 0x0:_0x2929dd?Lt(_0x77975,_0x36c854):_0x77975,_0x457908=_0x2524f0[_0x46e5fa(0x241)]-0x1,_0x2a9f26;_0x457908>=0x0;_0x457908--)(_0x2a9f26=_0x2524f0[_0x457908])&&(_0x364c8c=_0x2a9f26(_0x364c8c)||_0x364c8c);return _0x364c8c;},q=(_0x38e4dc,_0x593bd4)=>(_0x4c1200,_0x5a7b51)=>_0x593bd4(_0x4c1200,_0x5a7b51,_0x38e4dc);let Ee=class extends a['RxDisposable']{constructor(_0x47296f,_0x3ebce1,_0xe47060,_0x3838cf,_0x14c15d){const _0x4bd138=_0x351cc3;super(),_(this,_0x4bd138(0x481),[]),_(this,_0x4bd138(0x3a5),[]),(this[_0x4bd138(0x404)]=_0x47296f,this[_0x4bd138(0x474)]=_0x3ebce1,this['_collabCursorController']=_0xe47060,this[_0x4bd138(0x3f2)]=_0x3838cf,this['_themeService']=_0x14c15d,this[_0x4bd138(0x331)]());}[_0x351cc3(0x331)](){const _0x51b28b=_0x351cc3,_0x271124=this[_0x51b28b(0x404)][_0x51b28b(0x338)],_0x339cb0=this['_docSkeletonManagerService'];this[_0x51b28b(0x248)](I[_0x51b28b(0x4b7)]([this[_0x51b28b(0x494)]['getCollabCursors$'](_0x271124),this[_0x51b28b(0x24f)][_0x51b28b(0x41d)]])[_0x51b28b(0x38b)]($[_0x51b28b(0x246)](([_0x430091,_0x16165d])=>({'skeleton':_0x339cb0[_0x51b28b(0x3ad)](),'cursors':[..._0x430091[_0x51b28b(0x319)]()][_0x51b28b(0x39d)](_0xc1b692=>({..._0xc1b692,'color':this[_0x51b28b(0x24f)]['getColorFromTheme'](_0xc1b692['color'])}))})))['subscribe'](_0x304143=>{const _0x37b540=_0x51b28b;if(this[_0x37b540(0x4b9)](),_0x304143){const {skeleton:_0x306434,cursors:_0x34413d}=_0x304143;this[_0x37b540(0x491)](_0x306434,_0x34413d);}})),this['_initResize'](),this[_0x51b28b(0x23e)]();}['_updateCollabCursors'](_0x268ef0,_0x3289f1){const _0x363d93=_0x351cc3,{scene:_0x21dea0,mainComponent:_0x10933e}=this[_0x363d93(0x404)],_0x17b999=_0x3289f1['map'](_0x15d7de=>new Le(_0x15d7de,_0x21dea0,_0x268ef0,_0x10933e));this[_0x363d93(0x481)]=_0x17b999,this[_0x363d93(0x3a5)]=_0x3289f1;}[_0x351cc3(0x414)](){const _0x1be779=_0x351cc3;this[_0x1be779(0x4b9)]();const {scene:_0xa518c,mainComponent:_0x69f6dd}=this[_0x1be779(0x404)],_0x39117f=this[_0x1be779(0x474)][_0x1be779(0x3ad)](),_0x52eec8=this[_0x1be779(0x3a5)][_0x1be779(0x246)](_0x1f7cf2=>new Le(_0x1f7cf2,_0xa518c,_0x39117f,_0x69f6dd));this['_cursorShapes']=_0x52eec8;}[_0x351cc3(0x4b9)](){const _0x134cc1=_0x351cc3;this[_0x134cc1(0x481)][_0x134cc1(0x264)](_0x35a6bb=>_0x35a6bb['dispose']()),this['_cursorShapes']=[];}[_0x351cc3(0x23e)](){const _0xd2df5d=_0x351cc3,_0x42b956=[p[_0xd2df5d(0x484)]['id']];this[_0xd2df5d(0x248)](this['_commandService'][_0xd2df5d(0x29a)](_0x142c5c=>{const _0x3060fa=_0xd2df5d;_0x42b956[_0x3060fa(0x400)](_0x142c5c['id'])&&_0x142c5c['params']['unitId']===this['_context'][_0x3060fa(0x338)]&&this[_0x3060fa(0x414)]();}));}['_initResize'](){const _0x7164f1=_0x351cc3;this[_0x7164f1(0x248)](a['fromEventSubject'](this[_0x7164f1(0x404)][_0x7164f1(0x3bc)][_0x7164f1(0x38a)])[_0x7164f1(0x38b)]($[_0x7164f1(0x354)](_0x220bae=>_0x220bae['type']===C[_0x7164f1(0x446)][_0x7164f1(0x45c)]),$[_0x7164f1(0x27c)](0x10))[_0x7164f1(0x3b4)](()=>{const _0x1bac4e=_0x7164f1;this[_0x1bac4e(0x414)]();}));}};Ee=Mt([q(0x1,a[_0x351cc3(0x257)](V['DocSkeletonManagerService'])),q(0x2,a['Inject'](F)),q(0x3,a[_0x351cc3(0x30d)]),q(0x4,a[_0x351cc3(0x257)](a[_0x351cc3(0x282)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x351cc3(0x3fe)]{constructor(_0x58f4fe,_0xd85ea5){const _0x4a3ed2=_0x351cc3;super(_0x58f4fe,_0xd85ea5),_(this,_0x4a3ed2(0x490)),_(this,_0x4a3ed2(0x4b6),!0x1),_(this,_0x4a3ed2(0x297)),_(this,_0x4a3ed2(0x323),''),_(this,'_labelPosition',_0x4a3ed2(0x428)),_(this,_0x4a3ed2(0x47a)),(_0xd85ea5&&this['setShapeProps'](_0xd85ea5),this[_0x4a3ed2(0x465)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4a3ed2(0x4a4)][_0x4a3ed2(0x32c)](()=>this[_0x4a3ed2(0x378)]({'hovered':!0x1})));}[_0x351cc3(0x378)](_0x14b3c8){const _0xf73288=_0x351cc3;var _0x5dd860,_0x29d94d,_0x34a59c,_0x1c2f3a,_0x2d1940,_0x5c55a8;this['_color']=(_0x5dd860=_0x14b3c8[_0xf73288(0x37c)])!=null?_0x5dd860:this[_0xf73288(0x490)],this['_hovered']=(_0x29d94d=_0x14b3c8[_0xf73288(0x236)])!=null?_0x29d94d:this[_0xf73288(0x4b6)],this['_range']=(_0x34a59c=_0x14b3c8[_0xf73288(0x31b)])!=null?_0x34a59c:this['_range'],this[_0xf73288(0x323)]=(_0x1c2f3a=_0x14b3c8[_0xf73288(0x3a6)])!=null?_0x1c2f3a:this[_0xf73288(0x323)],this[_0xf73288(0x387)]=(_0x2d1940=_0x14b3c8[_0xf73288(0x36d)])!=null?_0x2d1940:this[_0xf73288(0x387)],this[_0xf73288(0x47a)]=(_0x5c55a8=_0x14b3c8[_0xf73288(0x47d)])!=null?_0x5c55a8:this['_backgroundColor'],this[_0xf73288(0x329)]({'width':_0x14b3c8[_0xf73288(0x220)],'height':_0x14b3c8[_0xf73288(0x3ac)]});}[_0x351cc3(0x2f7)](_0x1100b2){const _0x58908d=_0x351cc3,{row:_0x3fcf9d,column:_0x443bf9}=_0x1100b2;if(_0x3fcf9d>=this[_0x58908d(0x297)][_0x58908d(0x333)]&&_0x3fcf9d<=this[_0x58908d(0x297)]['endRow']&&_0x443bf9>=this[_0x58908d(0x297)][_0x58908d(0x49b)]&&_0x443bf9<=this[_0x58908d(0x297)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x58908d(0x378)]({'hovered':!0x1});}[_0x351cc3(0x226)](_0x8b50be){return!0x1;}[_0x351cc3(0x21f)](_0x15fd0b){const _0xc42ca=_0x351cc3;C['Rect']['drawWith'](_0x15fd0b,{'width':this[_0xc42ca(0x220)],'height':this[_0xc42ca(0x3ac)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc42ca(0x47a)]}),this['_hovered']&&(_0x15fd0b[_0xc42ca(0x1fd)](),_0x15fd0b[_0xc42ca(0x42a)](0x1,0x0,0x0,0x1,this[_0xc42ca(0x220)],this[_0xc42ca(0x387)]===_0xc42ca(0x394)?0x0:-X),re[_0xc42ca(0x2f8)](_0x15fd0b,{'text':this[_0xc42ca(0x323)],'color':this[_0xc42ca(0x490)]}),_0x15fd0b['restore']());}}var wt=Object[_0x351cc3(0x343)],yt=(_0x5d3a0a,_0x47d5b8,_0x286fc9,_0x378b11)=>{const _0x57f428=_0x351cc3;for(var _0x3b6716=_0x378b11>0x1?void 0x0:_0x378b11?wt(_0x47d5b8,_0x286fc9):_0x47d5b8,_0x3c97e2=_0x5d3a0a[_0x57f428(0x241)]-0x1,_0x11c17e;_0x3c97e2>=0x0;_0x3c97e2--)(_0x11c17e=_0x5d3a0a[_0x3c97e2])&&(_0x3b6716=_0x11c17e(_0x3b6716)||_0x3b6716);return _0x3b6716;},ue=(_0xe3d64a,_0x410781)=>(_0x2b3f43,_0x2bff57)=>_0x410781(_0x2b3f43,_0x2bff57,_0xe3d64a);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x1c18be,_0x181b6e,_0x11a4a0,_0x26ef27){const _0x2c8947=_0x351cc3;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x1c18be,this['_sheetSkeletonManagerService']=_0x181b6e,this[_0x2c8947(0x494)]=_0x11a4a0,this['_themeService']=_0x26ef27,this[_0x2c8947(0x331)]());}[_0x351cc3(0x331)](){const _0x276acf=_0x351cc3;this[_0x276acf(0x468)][_0x276acf(0x229)][_0x276acf(0x38b)]($[_0x276acf(0x3f1)](this[_0x276acf(0x40d)]),$[_0x276acf(0x424)](_0x38f7ad=>{const _0x5659fe=_0x276acf;if(_0x38f7ad){const _0x596222=_0x38f7ad[_0x5659fe(0x2ed)];return I[_0x5659fe(0x4b7)](this[_0x5659fe(0x494)][_0x5659fe(0x23b)](this[_0x5659fe(0x404)][_0x5659fe(0x338)]),this[_0x5659fe(0x24f)]['currentTheme$'])[_0x5659fe(0x38b)]($[_0x5659fe(0x246)](([_0x4dffaa,_0x45abf8])=>{const _0x77d509=new Map();return _0x4dffaa['forEach']((_0x2ca2aa,_0x51004a)=>{const _0x3f7bc4=_0xf8a9;if(_0x2ca2aa[_0x3f7bc4(0x33b)]===_0x596222){const _0x8583bf={..._0x2ca2aa};_0x8583bf['color']=this[_0x3f7bc4(0x24f)]['getColorFromTheme'](_0x2ca2aa['color']),_0x77d509[_0x3f7bc4(0x305)](_0x51004a,_0x8583bf);}}),{'skeleton':_0x38f7ad,'cursors':_0x77d509};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x276acf(0x3b4)](({skeleton:_0x22b143,cursors:_0x40c841})=>{const _0x3fb5d3=_0x276acf;this['_removeCollabCursors'](),_0x22b143&&this[_0x3fb5d3(0x491)](_0x22b143,_0x40c841);}),this[_0x276acf(0x468)][_0x276acf(0x229)][_0x276acf(0x3b4)](_0x50cb73=>{const _0x19c9cf=_0x276acf;if(_0x50cb73==null)return;const {skeleton:_0x2e0623}=_0x50cb73,{scene:_0x3522cb}=this[_0x19c9cf(0x404)];_0x3522cb[_0x19c9cf(0x48b)][_0x19c9cf(0x32c)](a[_0x19c9cf(0x2aa)](_0x44cbe9=>{const _0x435f8b=_0x19c9cf;var _0x1a14b5,_0x41196f;const {offsetX:_0x11b97e,offsetY:_0x12f789}=_0x44cbe9,{x:_0x5394b5,y:_0x74aa1c}=_0x3522cb[_0x435f8b(0x2f3)](C[_0x435f8b(0x284)][_0x435f8b(0x2ec)]([_0x11b97e,_0x12f789])),{scaleX:_0x258ef7,scaleY:_0x59a24f}=_0x3522cb['getAncestorScale'](),_0x1c4669=_0x3522cb['getViewport'](C['SHEET_VIEWPORT_KEY'][_0x435f8b(0x3ce)]),_0x34c220=_0x3522cb['getVpScrollXYInfoByPosToVp'](C[_0x435f8b(0x284)][_0x435f8b(0x2ec)]([_0x5394b5,_0x74aa1c]),_0x1c4669),_0x2d6ff8=_0x2e0623[_0x435f8b(0x32a)](_0x11b97e,_0x12f789,_0x258ef7,_0x59a24f,_0x34c220);((_0x1a14b5=this['_lastPointer'])==null?void 0x0:_0x1a14b5['column'])===_0x2d6ff8['column']&&((_0x41196f=this[_0x435f8b(0x299)])==null?void 0x0:_0x41196f[_0x435f8b(0x318)])===_0x2d6ff8[_0x435f8b(0x318)]||this[_0x435f8b(0x3a5)][_0x435f8b(0x264)](_0x2c2589=>{const _0x438956=_0x435f8b;_0x2c2589[_0x438956(0x2f7)](_0x2d6ff8);});},0x64));});}[_0x351cc3(0x491)](_0x4f18f5,_0x20b85f){const _0x200c55=_0x351cc3;var _0xa8fb67;const _0xdb5d18=(_0xa8fb67=this[_0x200c55(0x468)][_0x200c55(0x3f6)]())==null?void 0x0:_0xa8fb67[_0x200c55(0x482)];if(!_0xdb5d18)return;const _0x467ba7=this[_0x200c55(0x2b8)]();if(!_0x467ba7)return;this[_0x200c55(0x3a5)][_0x200c55(0x264)](_0x3dca6b=>{_0x3dca6b['makeDirty']();});const {scene:_0x10b1d6}=_0x467ba7,_0x2942b9=xt(Array[_0x200c55(0x301)](_0x20b85f[_0x200c55(0x319)]()))[_0x200c55(0x246)](_0x40d243=>{const _0x203393=_0x200c55,{color:_0x3019a3,range:_0x15842c,name:_0x4a5383,selection:_0x483ed0,sheetID:_0x265dfe}=_0x40d243,{startColumn:_0x37cf18,startRow:_0x259367,endColumn:_0x48bb6a,endRow:_0x2f94a1}=_0x15842c,_0x51e869=J['getCoordByCell'](_0x259367,_0x37cf18,_0x10b1d6,_0xdb5d18),_0x1f97fc=J[_0x203393(0x25a)](_0x2f94a1,_0x48bb6a,_0x10b1d6,_0xdb5d18),{columnHeaderHeightAndMarginTop:_0x1ebe36}=_0xdb5d18,{startX:_0x3cfa6a,startY:_0x1981d7}=_0x51e869,{endX:_0x49046a,endY:_0x2fc4a8}=_0x1f97fc,_0x568291=_0x49046a-_0x3cfa6a,_0x53d6c9=_0x2fc4a8-_0x1981d7,_0x24ec94={'labelPosition':_0x1981d7-_0x1ebe36>=X?'top':'bottom','sheetID':_0x265dfe,'range':_0x15842c,'color':_0x3019a3,'name':_0x4a5383,'selection':_0x483ed0,'left':_0x3cfa6a,'top':_0x1981d7,'width':_0x568291,'height':_0x53d6c9,'evented':!0x1,'zIndex':$t};return new je(_0x4a5383,_0x24ec94);});_0x10b1d6[_0x200c55(0x245)](_0x2942b9,At),this['_cursors']=new Set(_0x2942b9);}[_0x351cc3(0x4b9)](){const _0x6dd84c=_0x351cc3;var _0x4f9fb8;(_0x4f9fb8=this[_0x6dd84c(0x3a5)])==null||_0x4f9fb8['forEach'](_0x35f823=>_0x35f823[_0x6dd84c(0x469)]());}[_0x351cc3(0x2b8)](){const _0x100a11=_0x351cc3;return J[_0x100a11(0x489)](this[_0x100a11(0x404)][_0x100a11(0x268)],this[_0x100a11(0x404)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x351cc3(0x3a4)])),ue(0x2,a[_0x351cc3(0x257)](F)),ue(0x3,a[_0x351cc3(0x257)](a['ThemeService']))],Ce);function xt(_0x3cb5d5){const _0x4c8dba=_0x351cc3,_0xb4b7fb=new Map();return _0x3cb5d5['forEach'](_0xd0a5d9=>{const _0x2d0f2c=_0xf8a9;if(_0xb4b7fb['has'](_0xd0a5d9[_0x2d0f2c(0x3d2)])){const _0x1a79ea=_0xb4b7fb[_0x2d0f2c(0x3d0)](_0xd0a5d9[_0x2d0f2c(0x3d2)]);_0x1a79ea['name']+=',\x20'+_0xd0a5d9[_0x2d0f2c(0x3a6)];}else _0xb4b7fb['set'](_0xd0a5d9[_0x2d0f2c(0x3d2)],_0xd0a5d9);}),Array[_0x4c8dba(0x301)](_0xb4b7fb[_0x4c8dba(0x319)]());}var Bt=Object[_0x351cc3(0x343)],Ft=(_0x968ad3,_0x1be33c,_0x54c967,_0x109000)=>{const _0x3eada1=_0x351cc3;for(var _0x5b666a=_0x109000>0x1?void 0x0:_0x109000?Bt(_0x1be33c,_0x54c967):_0x1be33c,_0x170c0b=_0x968ad3[_0x3eada1(0x241)]-0x1,_0x347222;_0x170c0b>=0x0;_0x170c0b--)(_0x347222=_0x968ad3[_0x170c0b])&&(_0x5b666a=_0x347222(_0x5b666a)||_0x5b666a);return _0x5b666a;},y=(_0x37793e,_0xa1595b)=>(_0x273fe3,_0x1dce99)=>_0xa1595b(_0x273fe3,_0x1dce99,_0x37793e);let Z=class extends a[_0x351cc3(0x37b)]{constructor(_0x5038c3,_0x20d1e1,_0x2ec710,_0x44fc6d,_0x2e07e6,_0x45598e){const _0x32d3b7=_0x351cc3;super(),this[_0x32d3b7(0x4a3)]=_0x5038c3,this['_localCacheService']=_0x20d1e1,this[_0x32d3b7(0x2b1)]=_0x2ec710,this[_0x32d3b7(0x2ac)]=_0x44fc6d,this[_0x32d3b7(0x316)]=_0x2e07e6,this[_0x32d3b7(0x3e8)]=_0x45598e,this[_0x32d3b7(0x3ca)](),this[_0x32d3b7(0x231)]();}[_0x351cc3(0x3ca)](){const _0x3b926e=_0x351cc3;this[_0x3b926e(0x248)](this[_0x3b926e(0x4a3)][_0x3b926e(0x2c3)](()=>{const _0x83e37d=_0x3b926e;if(this['_localCacheService'][_0x83e37d(0x42e)]['size'])return this[_0x83e37d(0x3e8)]['t'](_0x83e37d(0x4b2));}));}[_0x351cc3(0x231)](){const _0x1dd78d=_0x351cc3;this[_0x1dd78d(0x248)](this[_0x1dd78d(0x2b1)][_0x1dd78d(0x363)][_0x1dd78d(0x3b4)](_0x4f8169=>{const _0xbe2a24=_0x1dd78d;_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x48a)]&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this['_localeService']['t'](_0xbe2a24(0x2a3))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x478)]&&this['_messageService'][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x479))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x2c0)]&&this[_0xbe2a24(0x316)][_0xbe2a24(0x431)]({'title':this['_localeService']['t'](_0xbe2a24(0x2b3)),'content':this['_localeService']['t'](_0xbe2a24(0x2cf)),'type':'error','duration':0x0}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x46c)]&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x479))+'('+_0x4f8169['data']+')'}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x386)]&&this[_0xbe2a24(0x2ac)]['show']({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0x4f8169[_0xbe2a24(0x49d)]||'')}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)]['SOCKET_FAILED_RETRY']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x440))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)]['SOCKET_FAILED']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x432))}),_0x4f8169['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T['MessageType'][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x317))});}));}};Z=Ft([y(0x0,O[_0x351cc3(0x366)]),y(0x1,u[_0x351cc3(0x453)]),y(0x2,a['Inject'](u[_0x351cc3(0x2c6)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x351cc3(0x257)](a[_0x351cc3(0x2bb)]))],Z);var jt=Object[_0x351cc3(0x343)],kt=(_0x26658e,_0x4a3532,_0x5784d1,_0x162fd4)=>{const _0x49c2c2=_0x351cc3;for(var _0x249623=_0x162fd4>0x1?void 0x0:_0x162fd4?jt(_0x4a3532,_0x5784d1):_0x4a3532,_0x143b98=_0x26658e[_0x49c2c2(0x241)]-0x1,_0x140ed9;_0x143b98>=0x0;_0x143b98--)(_0x140ed9=_0x26658e[_0x143b98])&&(_0x249623=_0x140ed9(_0x249623)||_0x249623);return _0x249623;},z=(_0x134b75,_0x4f77d8)=>(_0xa8cc6,_0x1b7506)=>_0x4f77d8(_0xa8cc6,_0x1b7506,_0x134b75);let Q=class extends a[_0x351cc3(0x37b)]{constructor(_0xf50770,_0x4764f5,_0x3608de,_0x39b967){const _0x5532d3=_0x351cc3;super(),_(this,'_memberID'),(this['_injector']=_0xf50770,this['_httpService']=_0x4764f5,this[_0x5532d3(0x3de)]=_0x3608de,this['_collaborationSessionService']=_0x39b967,this[_0x5532d3(0x331)]());}[_0x351cc3(0x331)](){const _0x2fd67a=_0x351cc3;this[_0x2fd67a(0x244)](),this['_initUnhandledRejectionListener'](),this[_0x2fd67a(0x340)](),this[_0x2fd67a(0x3c6)]();}[_0x351cc3(0x3c6)](){const _0x290484=_0x351cc3;this[_0x290484(0x248)](this[_0x290484(0x495)][_0x290484(0x4ab)][_0x290484(0x3b4)](_0xb50870=>{const _0x159262=_0x290484;this[_0x159262(0x498)]=_0xb50870==null?void 0x0:_0xb50870[_0x159262(0x306)];}));}[_0x351cc3(0x244)](){const _0x4fe4b1=_0x351cc3,_0xeb317b=_0x299888=>{const _0x147641=_0xf8a9;var _0x58b9fd;this[_0x147641(0x34d)]('error',_0x147641(0x473)+_0x299888[_0x147641(0x30c)]+'\x20at\x20'+_0x299888[_0x147641(0x35c)]+':'+_0x299888[_0x147641(0x28b)]+':'+_0x299888[_0x147641(0x2b2)]+'\x0a'+(((_0x58b9fd=_0x299888[_0x147641(0x423)])==null?void 0x0:_0x58b9fd[_0x147641(0x450)])||''));};window[_0x4fe4b1(0x472)](_0x4fe4b1(0x423),_0xeb317b),this[_0x4fe4b1(0x248)](()=>{const _0xe5ba16=_0x4fe4b1;window[_0xe5ba16(0x4b4)](_0xe5ba16(0x423),_0xeb317b);});}[_0x351cc3(0x3e4)](){const _0x206e5a=_0x351cc3,_0x48450f=_0x328c54=>{const _0x48e79f=_0xf8a9;this[_0x48e79f(0x34d)]('error',_0x48e79f(0x2b4)+_0x328c54[_0x48e79f(0x38d)]);};window[_0x206e5a(0x472)](_0x206e5a(0x310),_0x48450f),this[_0x206e5a(0x248)](()=>{const _0x422ed7=_0x206e5a;window[_0x422ed7(0x4b4)](_0x422ed7(0x310),_0x48450f);});}[_0x351cc3(0x340)](){const _0x1b8184=_0x351cc3,_0x4e60ce=this['_logService'][_0x1b8184(0x423)]['bind'](this['_logService']);this[_0x1b8184(0x3de)][_0x1b8184(0x423)]=(..._0x42b576)=>{const _0x27cf93=_0x1b8184,_0x3b5ce6=_0x42b576['map'](_0x441dd4=>_0x441dd4 instanceof Error?_0x441dd4[_0x27cf93(0x30c)]+'\x0a'+_0x441dd4['stack']:String(_0x441dd4))[_0x27cf93(0x243)]('\x20');this[_0x27cf93(0x34d)](_0x27cf93(0x423),_0x27cf93(0x2ea)+_0x3b5ce6),_0x4e60ce(..._0x42b576);},this[_0x1b8184(0x248)](()=>{const _0x31b5ad=_0x1b8184;this['_logService'][_0x31b5ad(0x423)]=_0x4e60ce;});}['_uploadLog'](_0xa4ab92,_0x1b9b59){const _0x3cd8c7=_0x351cc3;try{const _0x91fea4={'userId':this[_0x3cd8c7(0x498)],'logLabel':_0xa4ab92,'content':_0x1b9b59};this['_httpService'][_0x3cd8c7(0x261)](_0x3cd8c7(0x3ee),{'body':_0x91fea4})[_0x3cd8c7(0x2dc)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),z(0x1,a[_0x351cc3(0x257)](x[_0x351cc3(0x242)])),z(0x2,a[_0x351cc3(0x31d)]),z(0x3,a[_0x351cc3(0x257)](u[_0x351cc3(0x3e0)]))],Q);function _0x3013(){const _0x21015b=['clipPath','_uploadLog','INVALID_ARGUMENT','SNAPSHOT_INVALID_SNAPSHOT','_scene','useCallback','CHANGESET_REVISION_CONFILICT','5544wbiihA','filter','getMemberID','disableLocalCache','actions','UnitStatus','collabStatus.synced','getUnitStatus$','saveImage','filename','cursorInfo$','size','Optional','TEXT_RANGE_LAYER_INDEX','getColor','ITransformService','event$','REDEMPTION_CODE_HAS_BEEN_CREATED','entityInit$','IBeforeCloseService','_render','runOnServer','LICENSE_IMPORT_SIZE_EXCEEDED','isActive','isTransformMutationFailure','getCurrentRevOfUnit','labelPosition','Tooltip','reconnect','has','APPLY_REVISION_CONFILICT','HEADER_MENU','getStateCache','_localStorageService','DOC_RANGE_TYPE','collabStatus.offline','/universer-api/license/formula/limit/done','setShapeProps','black','DocStateChangeManagerService','Disposable','color','EffectRefRangId','ACTIVE_UNIT_EVENT_CHANNEL','_injector','next','getDocRanges','IRenderManagerService','RevisionService','collab-text-range-','YUUMI_AI_RUN_FAILED','JOIN_ROOM_FAILED','_labelPosition','_drawAnchor','setTimeout','onTransformChange$','pipe','onStarting','reason','hide','selections','setItem','ILocalStorageService','getCurrentSelections','_releaseCalculationLimit','bottom','PENDING','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationController','_renderManagerService','MessageType','now','_hideTimer','unload','flatMap','children','REDEMPTION_CODE_NOT_STARTED','ENSURE_SNAPSHOT_EXECUTION','LICENSE_DISTRO_REJECTED','_getMergeRange','href','SheetSkeletonManagerService','_cursors','name','INVITE_CODE_HAS_BEEN_UES','_entityInit$','DocSelectionManagerService','_textBubble','on-line-icon_clip0_910_349','height','getSkeleton','arc','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','_instanceService','getUnitId','subUnitId','InsertRangeMoveRightCommandId','subscribe','1em','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','redoState','_pollingInterval','fillRule','LOCAL_CACHE_INTERVAL','SetFormulaCalculationStartMutation','engine','RichTextEditingMutation','LOGIN_FAILED','max','subunit','MoveRangeCommandId','releaseFormulaLimitUrl','_ensureSubject','wsSessionTicketUrl','off-line-icon_clip0_910_343','_initUserListener','docStateChange$','_dataLoaderService','univerjs-icon\x20univerjs-icon-','_setupBeforeClosingHandler','_memberService','RegularPolygon','_startSheetCollabCursor','VIEW_MAIN','SetWorksheetActivateCommand','get','_disabled','selection','_colorIndex','type','div','params','clsx','saveOfflineData','CollaborationStatus','_unitOnClients','idSuffix','_getScale','RECT','_logService','_revisionService','CollaborationSessionService','url(#off-line-icon_clip0_910_343)','PY_RUNTIME_SCRIPT_ERROR','DEFAULT_WS_SESSION_TICKET_URL','_initUnhandledRejectionListener','7667235TXSnaD','displayName','0\x200\x2016\x2016','_localeService','string','handleIRemoveCol','_saveTaskMap','eventID','REDEMPTION_USER_REDEEM_TIMES_EXCEED','/universer-api/frontend/logs','SetFormulaCalculationNotificationMutation','attrs','takeUntil','_commandService','beforeCommandExecuted','getMember','_docStateChangeManagerService','getCurrent','formula.calculation.waiting','clearInterval','_setupSubUnitSync','ISocketService','roomMembers','entries','LOGIN_TOKEN_PROCESSING_FAILED','Shape','collabStatus.notCollab','includes','connectInjector','on-line-icon','getMergeData','_context','endRow','mask','_handleHeartbeatEvent','registerRenderModule','Failed','_scheduleSaving','OFFLINE','parse','dispose$','SetTextSelectionsOperation','send','_docTransformIMECacheService','getRangePointData','disposeUnit','DeleteRangeMoveUpCommandId','_refreshCollabCursors','MUTATION','InsertColCommandId','mutations','text','Workbook','InsertRowCommandId','SYNCED','replace','currentTheme$','OffLineIcon','_initStatusComponent','handleInsertRow','setAlpha','svg','error','switchMap','OTHER_CLIENTS_EDITING','FormulaExecutedStateType','MemberService','top','getTypeOfUnitAdded$','transform','getSheetBySheetId','functionsExecutedState','SheetCollabCursorShape','saveTaskMap','isTransformMutationsWithChangesetSuccess','Warning','show','session.connection-failed','EMAIL_VERIFY_CODE_MISMATCH','NOT_COLLAB','NodePositionConvertToCursor','_currentUsage','unitID','_maxFormulaLimit','CanceledError','DeleteRangeMoveLeftCommandId','_docSyncEditingCollabCursorService','imageSourceType','DataLoaderService','transformIMECache','YUUMI_RATE_OVER_LIMIT','session.will-retry','parseInt','setUndoRedoMutationParamsCache','_saveCache','SheetsSelectionsService','YUUMI_UNABLE_LOAD_URL','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_toggleOffline','_scheduleHeartbeat','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_getFormulaLimitStatus','_updateSubUnitFromURLParams','UNAUTHENTICATED','IURLService','491004CQUTgV','CURRENT_STATUS_CANNOT_OPERATE','stack','evenodd','EMAIL_HAS_BEEN_BOUND','ILocalCacheService','YUUMI_ALL_TABLES_IS_INVALID','push','IConfigService','Success','Subject','some','sessionStatus$','trim','resize','getSheetId','loadUnit','_getAnchorBounding','_onCursorUpdate','[CollaborationDataLoaderController]','mergeOverrideWithDependencies','getLocalCacheKey','DependentOn','onPointerEnter$','ALREADY_EXISTS','pushState','_sheetSkeletonManagerService','dispose','beginPath','_initDependencies','CONFLICT','_showGuardMessage','debounceTime','CollaborationSocketService','cursorInfo','RemoteUniscriptService','addEventListener','[Window\x20Error]:\x20','_docSkeletonManagerService','DesktopCollaborationStatusDisplayController','TEXT','rgba(255,\x20255,\x20255,\x200.01)','CLOSE_ROOM','collaboration.closeRoom','_backgroundColor','_toggleOnline','shift','backgroundColor','UniverCollaborationClientUIPlugin','_cachedData','url(#on-line-icon_clip0_910_349)','_cursorShapes','skeleton','doc.mutation.rich-text-editing','SetDocZoomRatioOperation','handleInsertRangeMoveDown','Plugin','RxDisposable','_removeClearOtherTimer','getSheetObject','OTHER_CLIENT_EDITING','onPointerMove$','USERS_LEAVE','YUUMI_TABLE_NOT_FOUND_IN_UNIT','stageInfo','textRanges','_color','_updateCollabCursors','USER_NOT_FOUND','BrowserCollaborationSocketService','_collabCursorController','_collaborationSessionService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','mapTo','_memberID','_roomMembers$','410460SpxbKk','startColumn','getRenderById','data','_eventUnsubscribe','addObject','then','body','_session','_beforeCloseService','onPointerLeave$','_handleJoinEvent','Tools','touchDependencies','getUnhiddenWorksheets','delete','USER_NOT_INVITED_CODE','socket$','_transformUndoRedoStack','handleMoveRange','IMessageService','_registerDependencies','SNAPSHOT_HAS_BEEN_REMOVED','Error','collaboration-client.offline-data-not-saved','getTypeOfUnitDisposed$','removeEventListener','xlink:href','_hovered','combineLatest','deserializeRangeWithSheet','_removeCollabCursors','_collabSessionService','_docClipboardService','_id','/universer-api/license/formula/limit/status','syncEditingCollabCursor','defs','Module','invokeId','getActiveRange','collab-rect-range-','_online','transformMutationsWithChangeset','setParam','_setFormulaLimitStatus','AUTHORIZE_CODE_ILLEGAL','_shapes','YUUMI_NO_CUBOID_FOR_QUESTION','save','transformSelections','_taskIds','WebBrowserSingleActiveUnitService','REDEMPTION_INVALID_CODE','_urlService','ColorKit','generateRandomId','M0\x200H16V16H0z','INVITE_CODE_REQUIRED','getActiveSheet','CONNECTOR_DATA_TOO_LARGE','m1Prime','createInstance','_startCalculationLimit','_startDocCollabCursor','collab-client.tooltip.reconnect','history','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','init','deepClone','pluginName','colorChannel1','NodePositionConvertToRectRange','merge','COMPLETION_FINISHED','_refRangeService','onRendered','with','jiqing.500','AWAITING_WITH_PENDING','_docTransformStateCacheService','getCollabEntity$','_draw','width','OnLineIcon','executeCommand','_onRefRangeChange','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','ISnapshotServerService','triggerDblclick','endColumn','_applyCommand','currentSkeleton$','_doCreateSocket','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ONLINE','contains','getFocusedUnit','_drawRectRange','getUniverSheetInstance','_initEvent','_anchor','jsxs','CollaborationEvent','_transformPreviousActiveRange','hovered','_initStatusListener','collaboration-client-ui.config','current','undoState','getCollabCursors$','replaceState','setInterval','_initCommandExecutedListener','enableFrontendLog','WECHAT_HAS_BEEN_BOUND','length','HTTPService','join','_initWindowErrorListener','addObjects','map','formula.calculation.unable','disposeWithMe','FETCH_MISS','translate(.97)','INVITE_CODE_ALREADY_BOUND','_handleEvent','getValue','round','_themeService','InsertRangeMoveDownCommandId','add','_initCommandInterceptor','Unknown\x20user','_initEntityListener','_send','getformulaLimitStatusUrl','Inject','ERROR_AGAIN','INTERNAL_ERROR','getCoordByCell','_unitStatus','CommandType','fillText','override','requireSession','DisposableCollection','post','...','BehaviorSubject','forEach','fill','enableLocalCache','yellow.400','unit','measureText','RemoveColCommandId','_cursorInfo$','YUUMI_SUBSCRIPTION_NOT_FOUND','jsx','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_clearOtherTimers','exhaustSavingTask','createSocket','_config','loadOfflineData','m2Prime','onLocalMutation','debug','runRefRangeMutations','createElement','complete','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','throttleTime','_transformService','defIds','getUndoRedoMutationParamsCache','_drawTextRange','_checkAndWaitForCalculationPermission','ThemeService','setStateCache','Vector2','3XcosaT','sessionTicket','NO_OTHER_CLIENTS_EDITING','_heartbeatTimer','forwardRef','_transformHistoryAndStateStack','lineno','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','none','toRgbString','registerDependencies','APPLY_PERMISSION_DENIED','_updateURLWithCurrentState','UPDATE_CURSOR','_status$','_docTransformSelectionsService','url(#$1','_colorAssignService','_range','useDependency','_lastPointer','onCommandExecuted','YUUMI_ASYNCIO_CANCELLED','addHandlerCallback','CollaborationDataLoaderController','_entities','USER_IS_ANONYMOUS','RefRangeService','SUCCESS','currentUsage','collaboration.single-unit.warning','currentColor','findNodePositionByCharIndex','purple.300','IImageIoService','?taskId=','fillStyle','debounce','UniverInstanceType','_messageService','shareReplay','_anchorDot','UniverIcon','assign','_collaborationUIEventService','colno','permission.title','[Unhandled\x20Rejection]:\x20','use','YUUMI_CONNECTOR_URL_NOT_FOUND','popstate','_getSheetObject','PAYMENT_CHANNEL_NOT_SUPPORT','#FFF','LocaleService','_getSessionTicket','TOO_MANY_REQUESTS','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_univerInstanceService','PERMISSION_DENIED','COLORS','limitInfo','registerBeforeClose','REDEMPTION_CODE_FULLY_REDEEMED','UNRECOGNIZED','CollaborationUIEventService','isFormulaId','IRemoteInstanceService','location','_registerRenderDependencies','APPLY_REJECT','ranges','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_configService','permission.content','/universer-api/license/formula/limit/start','Injector','getParam','_getSaveTimeout','runId','LICENSE_EXPORT_SIZE_EXCEEDED','_uiPartsService','roomMembers$','off-line-icon','_lastResponseTimestamp','/run/','focused$','catch','transformMutation','find','MOBILE_HAS_BEEN_BOUND','min','IDocClipboardService','_scheduleClearOtherTimer','_httpService','_imageIoService','searchParams','_assignedColors','toString','IUIPartsService','toStringTag','[LogService\x20Error]:\x20','getConfig','FromArray','sheetId','2667eznTDZ','stringify','_createSocketURL','handleDeleteRangeMoveLeft','path','getRelativeToViewportCoord','ENTITLE_REPORT_LIMIT_EXCEED','CollaborationUIEventId','unshift','onMouseMove','drawWith','urlChange$','tag','_hasFormulaInDirtyRanges','289691ZEcJEo','_handleHover','_checkCalculationAvailable','moveTo','_collabCursorState$','from','result','collabStatus.syncing','_selfUnitIDs','set','memberID','UNDEFINED','APPLY_NON_SEQUENTIAL_REVISION','217010SqBRih','_onCursorDelete','search','message','ICommandService','formula.calculation.started','toDisposable','unhandledrejection','maxFormulaLimit','collabStatus.conflict','INVALID_INVITE_CODE','IUniverInstanceService','_docSkeleton','_notificationService','session.collaboration-timeout','row','values','START_CALCULATION','range','white','ILogService','NOT_FOUND','_collaborationController','ticket','REDEMPTION_CODE_INACTIVE','lineTo','_name','collabCursorState$','handleDeleteRangeMoveUp','clearTimeout','1198040XUEQQc','startsWith','transformByState','getCellPositionByOffset','closePath','subscribeEvent','setActiveRange','_updateLocalCursor','DocIMEInputManagerService','isArray','_init','getUnit','startRow','_syncEditingCollabCursorService','WebURLService','BuiltInUIPart','code','unitId','fromEvent','assignAColorForMemberID','sheetID','Rectangle','transformRemoteChangeset','useObservable','key','_monkeyPatchLogService','_hover','executionId','getOwnPropertyDescriptor','defineProperty','UNIVER_DOC','stage','_cursor','replaceDocRanges','collab-text-anchor-','getOffsetConfig','UNIVER_SHEET'];_0x3013=function(){return _0x21015b;};return _0x3013();}const Yt=_0x351cc3(0x238),Me={};var Ht=Object[_0x351cc3(0x343)],Wt=(_0x58fed6,_0x4c2cff,_0x1fc362,_0x2e480f)=>{const _0x368ad4=_0x351cc3;for(var _0x1d6fb9=_0x2e480f>0x1?void 0x0:_0x2e480f?Ht(_0x4c2cff,_0x1fc362):_0x4c2cff,_0x399ccf=_0x58fed6[_0x368ad4(0x241)]-0x1,_0x38cc11;_0x399ccf>=0x0;_0x399ccf--)(_0x38cc11=_0x58fed6[_0x399ccf])&&(_0x1d6fb9=_0x38cc11(_0x1d6fb9)||_0x1d6fb9);return _0x1d6fb9;},Ae=(_0x52df51,_0xb24721)=>(_0x5bcff2,_0x7c946b)=>_0xb24721(_0x5bcff2,_0x7c946b,_0x52df51);let ee=class{constructor(_0x3051d7,_0x18e511){const _0x284a93=_0x351cc3;this['_transformService']=_0x3051d7,this[_0x284a93(0x398)]=_0x18e511;}[_0x351cc3(0x43e)](_0x5bbf68){const _0x179151=_0x351cc3;this[_0x179151(0x4ac)](_0x5bbf68),this[_0x179151(0x235)](_0x5bbf68);}[_0x351cc3(0x33d)](_0x29183a){const _0x43238c=_0x351cc3,{unitID:_0x5d828c}=_0x29183a,_0x3db9e3=this[_0x43238c(0x398)][_0x43238c(0x49c)](_0x5d828c)[_0x43238c(0x21a)](p[_0x43238c(0x32f)]),{redoCache:_0x490504}=_0x3db9e3[_0x43238c(0x27f)]();if(_0x490504[_0x43238c(0x241)]===0x0)return _0x29183a;let _0x58564f=a[_0x43238c(0x4a6)][_0x43238c(0x212)](_0x29183a[_0x43238c(0x417)][0x0]);for(let _0x23b290=0x0;_0x23b290<_0x490504[_0x43238c(0x241)];_0x23b290++){const _0x4a566e={'id':_0x43238c(0x483),'params':{..._0x490504[_0x23b290]}},_0x3821de=this['_transformService'][_0x43238c(0x2dd)](_0x58564f,_0x4a566e,!0x1);if(g['isTransformMutationFailure'](_0x3821de))throw _0x3821de[_0x43238c(0x423)];_0x58564f=_0x3821de[_0x43238c(0x209)];}return{...a[_0x43238c(0x4a6)][_0x43238c(0x212)](_0x29183a),'mutations':[_0x58564f]};}[_0x351cc3(0x4ac)](_0x3437a9){const _0x42ec51=_0x351cc3,{unitID:_0x2ced3a}=_0x3437a9,_0x1b1a1a=this['_renderManagerService'][_0x42ec51(0x49c)](_0x2ced3a)[_0x42ec51(0x21a)](p[_0x42ec51(0x32f)]),{undoCache:_0x410953,redoCache:_0x212951}=_0x1b1a1a[_0x42ec51(0x27f)]();if(_0x410953[_0x42ec51(0x241)]===0x0||_0x212951[_0x42ec51(0x241)]===0x0)return;const _0x4418e2=[],_0x3915b2=[];let _0x3084bf=a[_0x42ec51(0x4a6)][_0x42ec51(0x212)](_0x3437a9[_0x42ec51(0x417)][0x0]),_0x33258f=a[_0x42ec51(0x4a6)]['deepClone'](_0x3437a9[_0x42ec51(0x417)][0x0]);for(let _0x5d9c6f=_0x410953[_0x42ec51(0x241)]-0x1;_0x5d9c6f>=0x0;_0x5d9c6f--){const _0x5e0d22={'id':_0x42ec51(0x483),'params':{..._0x410953[_0x5d9c6f]}},_0x1d43f1={'id':'doc.mutation.rich-text-editing','params':{..._0x212951[_0x5d9c6f]}},_0x2da0d6=this['_transformService'][_0x42ec51(0x2dd)](_0x3084bf,_0x5e0d22,!0x1),_0x55f303=this['_transformService'][_0x42ec51(0x2dd)](_0x33258f,_0x1d43f1,!0x1);if(g[_0x42ec51(0x36b)](_0x2da0d6))throw _0x2da0d6['error'];if(g[_0x42ec51(0x36b)](_0x55f303))throw _0x55f303[_0x42ec51(0x423)];_0x4418e2[_0x42ec51(0x2f6)](_0x2da0d6[_0x42ec51(0x274)][_0x42ec51(0x3d6)]),_0x3915b2['unshift'](_0x55f303[_0x42ec51(0x274)][_0x42ec51(0x3d6)]),_0x3084bf=_0x2da0d6[_0x42ec51(0x209)],_0x33258f=_0x55f303['m1Prime'];}_0x1b1a1a[_0x42ec51(0x442)]({'undoCache':_0x4418e2,'redoCache':_0x3915b2});}[_0x351cc3(0x235)](_0x20b8b3){const _0x140639=_0x351cc3,{unitID:_0x24c938}=_0x20b8b3,_0x382550=this[_0x140639(0x398)][_0x140639(0x49c)](_0x24c938)[_0x140639(0x21a)](p[_0x140639(0x32f)]),_0x14db53=_0x382550[_0x140639(0x1f4)]();if(_0x14db53==null)return;const _0xefde8d=[{'id':_0x140639(0x483),'params':{'unitId':_0x20b8b3[_0x140639(0x437)],'actions':null,'textRanges':[_0x14db53]}}],_0x229028=this[_0x140639(0x27d)]['transformMutationsWithChangeset'](_0x20b8b3,_0xefde8d);if(!g[_0x140639(0x42f)](_0x229028))throw _0x229028[_0x140639(0x423)];const _0x407895=_0x229028[_0x140639(0x274)][0x0][_0x140639(0x3d6)]['textRanges'];Array[_0x140639(0x330)](_0x407895)&&_0x407895['length']&&_0x382550[_0x140639(0x32d)](_0x407895[0x0]);}};ee=Wt([Ae(0x0,g[_0x351cc3(0x362)]),Ae(0x1,C['IRenderManagerService'])],ee);function _0xf8a9(_0x5d4a7e,_0x34232f){const _0x30138a=_0x3013();return _0xf8a9=function(_0xf8a9f5,_0x5dcb0c){_0xf8a9f5=_0xf8a9f5-0x1ef;let _0x29cbea=_0x30138a[_0xf8a9f5];return _0x29cbea;},_0xf8a9(_0x5d4a7e,_0x34232f);}var Vt=Object[_0x351cc3(0x343)],Gt=(_0x431837,_0x31cc47,_0x201c4d,_0x113ef7)=>{const _0x2a84c6=_0x351cc3;for(var _0x179f54=_0x113ef7>0x1?void 0x0:_0x113ef7?Vt(_0x31cc47,_0x201c4d):_0x31cc47,_0x1d20f0=_0x431837[_0x2a84c6(0x241)]-0x1,_0x328303;_0x1d20f0>=0x0;_0x1d20f0--)(_0x328303=_0x431837[_0x1d20f0])&&(_0x179f54=_0x328303(_0x179f54)||_0x179f54);return _0x179f54;},Ie=(_0x1b995a,_0x3fb9fb)=>(_0x92d6ca,_0x3e4260)=>_0x3fb9fb(_0x92d6ca,_0x3e4260,_0x1b995a);let te=class{constructor(_0x6c17f2,_0x2bc18a,_0x5c2161){const _0x4e6bef=_0x351cc3;this['_injector']=_0x6c17f2,this['_transformService']=_0x2bc18a,this[_0x4e6bef(0x3f5)]=_0x5c2161;}['transformStateCache'](_0x34eefe){const _0x374899=_0x351cc3;this[_0x374899(0x28a)](_0x34eefe);}['transformRemoteChangeset'](_0x56689c){const _0x2c019b=_0x351cc3,{unitID:_0x3d525b}=_0x56689c,{collaboration:_0x4dada3}=this[_0x2c019b(0x3f5)][_0x2c019b(0x373)](_0x3d525b);if(_0x4dada3[_0x2c019b(0x241)]===0x0)return _0x56689c;let _0x265555=a[_0x2c019b(0x4a6)][_0x2c019b(0x212)](_0x56689c[_0x2c019b(0x417)][0x0]);for(let _0x672113=0x0;_0x672113<_0x4dada3[_0x2c019b(0x241)];_0x672113++){const _0x2d5b06={'id':_0x2c019b(0x483),'params':{'unitId':_0x4dada3[_0x672113][_0x2c019b(0x338)],..._0x4dada3[_0x672113][_0x2c019b(0x3b7)]}},_0x1bd5d3=this[_0x2c019b(0x27d)][_0x2c019b(0x2dd)](_0x265555,_0x2d5b06,!0x1);if(g[_0x2c019b(0x36b)](_0x1bd5d3))throw _0x1bd5d3[_0x2c019b(0x423)];_0x265555=_0x1bd5d3[_0x2c019b(0x209)];}return{...a[_0x2c019b(0x4a6)]['deepClone'](_0x56689c),'mutations':[_0x265555]};}[_0x351cc3(0x28a)](_0x1b4ff6){const _0x5e8f37=_0x351cc3,{unitID:_0x517e42}=_0x1b4ff6,{history:_0x3480d8,collaboration:_0x221c3e}=this[_0x5e8f37(0x3f5)][_0x5e8f37(0x373)](_0x517e42);if(_0x3480d8['length']===0x0&&_0x221c3e[_0x5e8f37(0x241)]===0x0)return;const _0x5d5041=[],_0x19d763=[];let _0x2e54d7=a[_0x5e8f37(0x4a6)]['deepClone'](_0x1b4ff6[_0x5e8f37(0x417)][0x0]),_0x296cc6=a[_0x5e8f37(0x4a6)][_0x5e8f37(0x212)](_0x1b4ff6[_0x5e8f37(0x417)][0x0]);for(let _0x277381=_0x3480d8[_0x5e8f37(0x241)]-0x1;_0x277381>=0x0;_0x277381--){const _0x1ea1c1={'id':_0x5e8f37(0x483),'params':{'unitId':_0x3480d8[_0x277381][_0x5e8f37(0x338)],..._0x3480d8[_0x277381][_0x5e8f37(0x23a)]}},_0x2e18eb={'id':_0x5e8f37(0x483),'params':{'unitId':_0x3480d8[_0x277381][_0x5e8f37(0x338)],..._0x3480d8[_0x277381]['redoState']}},_0x3e19d4=this[_0x5e8f37(0x27d)][_0x5e8f37(0x2dd)](_0x2e54d7,_0x1ea1c1,!0x1),_0xda32d8=this[_0x5e8f37(0x27d)][_0x5e8f37(0x2dd)](_0x296cc6,_0x2e18eb,!0x1);if(g['isTransformMutationFailure'](_0x3e19d4))throw _0x3e19d4[_0x5e8f37(0x423)];if(g['isTransformMutationFailure'](_0xda32d8))throw _0xda32d8['error'];_0x5d5041[_0x5e8f37(0x2f6)]({..._0x3480d8[_0x277381],'undoState':_0x3e19d4[_0x5e8f37(0x274)]['params'],'redoState':_0xda32d8[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)]}),_0x2e54d7=_0x3e19d4[_0x5e8f37(0x209)],_0x296cc6=_0xda32d8[_0x5e8f37(0x209)];}_0x2e54d7=a['Tools'][_0x5e8f37(0x212)](_0x1b4ff6['mutations'][0x0]),_0x296cc6=a['Tools']['deepClone'](_0x1b4ff6[_0x5e8f37(0x417)][0x0]);for(let _0x49c1f9=_0x221c3e['length']-0x1;_0x49c1f9>=0x0;_0x49c1f9--){const _0xaf6cb3={'id':_0x5e8f37(0x483),'params':{'unitId':_0x221c3e[_0x49c1f9][_0x5e8f37(0x338)],..._0x221c3e[_0x49c1f9][_0x5e8f37(0x23a)]}},_0x4f27b5={'id':_0x5e8f37(0x483),'params':{'unitId':_0x221c3e[_0x49c1f9][_0x5e8f37(0x338)],..._0x221c3e[_0x49c1f9][_0x5e8f37(0x3b7)]}},_0x2d40c6=this[_0x5e8f37(0x27d)]['transformMutation'](_0x2e54d7,_0xaf6cb3,!0x1),_0x54517f=this[_0x5e8f37(0x27d)]['transformMutation'](_0x296cc6,_0x4f27b5,!0x1);if(g[_0x5e8f37(0x36b)](_0x2d40c6))throw _0x2d40c6['error'];if(g[_0x5e8f37(0x36b)](_0x54517f))throw _0x54517f[_0x5e8f37(0x423)];_0x19d763[_0x5e8f37(0x2f6)]({..._0x221c3e[_0x49c1f9],'undoState':_0x2d40c6[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)],'redoState':_0x54517f[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)]}),_0x2e54d7=_0x2d40c6['m1Prime'],_0x296cc6=_0x54517f[_0x5e8f37(0x209)];}this[_0x5e8f37(0x3f5)][_0x5e8f37(0x283)](_0x517e42,{'history':_0x5d5041,'collaboration':_0x19d763});}};te=Gt([Ie(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Ie(0x1,g[_0x351cc3(0x362)]),Ie(0x2,a['Inject'](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x351cc3(0x343)],Kt=(_0x39b32b,_0x5bb2d9,_0x3e88d6,_0x4c14c5)=>{const _0x1c2bce=_0x351cc3;for(var _0x4d9e21=_0x4c14c5>0x1?void 0x0:_0x4c14c5?Xt(_0x5bb2d9,_0x3e88d6):_0x5bb2d9,_0x4ee7ce=_0x39b32b[_0x1c2bce(0x241)]-0x1,_0x119003;_0x4ee7ce>=0x0;_0x4ee7ce--)(_0x119003=_0x39b32b[_0x4ee7ce])&&(_0x4d9e21=_0x119003(_0x4d9e21)||_0x4d9e21);return _0x4d9e21;},Pe=(_0x5c2a9f,_0x14835f)=>(_0x254139,_0x23638b)=>_0x14835f(_0x254139,_0x23638b,_0x5c2a9f);let se=class{constructor(_0x1bcb69,_0x13f997){this['_injector']=_0x1bcb69,this['_transformService']=_0x13f997;}[_0x351cc3(0x1fe)](_0x588858){const _0x41da7f=_0x351cc3;var _0x369120;const _0x4191d2=this[_0x41da7f(0x37f)][_0x41da7f(0x3d0)](V['DocSelectionManagerService']),_0x489d18=(_0x369120=_0x4191d2[_0x41da7f(0x381)]())!=null?_0x369120:[];if(_0x489d18['length']===0x0)return;const _0x39570e=_0x588858['unitID'],_0x4ed232=[{'id':_0x41da7f(0x483),'params':{'unitId':_0x39570e,'actions':null,'textRanges':_0x489d18}}],_0x31a747=this[_0x41da7f(0x27d)][_0x41da7f(0x1f7)](_0x588858,_0x4ed232);if(!g[_0x41da7f(0x42f)](_0x31a747))throw _0x31a747[_0x41da7f(0x423)];const _0x53eafb=_0x31a747['m2Prime'][0x0][_0x41da7f(0x3d6)][_0x41da7f(0x48f)];Array['isArray'](_0x53eafb)&&_0x53eafb[_0x41da7f(0x241)]&&_0x4191d2[_0x41da7f(0x348)](_0x53eafb,{'unitId':_0x39570e,'subUnitId':_0x39570e},!0x1);}};se=Kt([Pe(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Pe(0x1,g[_0x351cc3(0x362)])],se);var qt=Object[_0x351cc3(0x343)],zt=(_0x3376fb,_0x3e4668,_0x1c89a0,_0x56ea0b)=>{for(var _0x3001c6=_0x56ea0b>0x1?void 0x0:_0x56ea0b?qt(_0x3e4668,_0x1c89a0):_0x3e4668,_0x2d6c5e=_0x3376fb['length']-0x1,_0x2a138e;_0x2d6c5e>=0x0;_0x2d6c5e--)(_0x2a138e=_0x3376fb[_0x2d6c5e])&&(_0x3001c6=_0x2a138e(_0x3001c6)||_0x3001c6);return _0x3001c6;},N=(_0x87b291,_0x1b9990)=>(_0x4f5f43,_0x15a339)=>_0x1b9990(_0x4f5f43,_0x15a339,_0x87b291);let ie=class extends a[_0x351cc3(0x37b)]{constructor(_0x2f42e7,_0x2cd485,_0x37cea4,_0x545e44,_0x107cf8,_0x311b7e,_0x27ab44,_0x307a54){const _0x11ed0f=_0x351cc3;super(),_(this,_0x11ed0f(0x293),new I[(_0x11ed0f(0x263))](u['CollaborationStatus'][_0x11ed0f(0x434)])),(this['_docStateChangeManagerService']=_0x2f42e7,this[_0x11ed0f(0x31f)]=_0x2cd485,this['_docTransformIMECacheService']=_0x37cea4,this[_0x11ed0f(0x21d)]=_0x545e44,this[_0x11ed0f(0x294)]=_0x107cf8,this[_0x11ed0f(0x43b)]=_0x311b7e,this[_0x11ed0f(0x2ac)]=_0x27ab44,this[_0x11ed0f(0x3e8)]=_0x307a54,this[_0x11ed0f(0x254)]());}[_0x351cc3(0x254)](){const _0x22fe2e=_0x351cc3;this[_0x22fe2e(0x248)](this[_0x22fe2e(0x31f)][_0x22fe2e(0x365)]['subscribe'](_0x5ed670=>{const _0xd22507=_0x22fe2e,_0x582d48=this[_0xd22507(0x3f5)][_0xd22507(0x3c7)][_0xd22507(0x3b4)](_0x4fefee=>{const _0x2636b5=_0xd22507;if(_0x4fefee==null)return;const {unitId:_0x198f20,redoState:_0x1f1034,commandId:_0x349ad4}=_0x4fefee;if(_0x198f20!==_0x5ed670[_0x2636b5(0x437)])return;const _0x571fb7={'id':_0x349ad4,'type':a[_0x2636b5(0x25c)][_0x2636b5(0x415)],'params':{'unitId':_0x198f20,'actions':_0x1f1034[_0x2636b5(0x357)],'textRanges':null}};_0x5ed670[_0x2636b5(0x275)](_0x571fb7);});if(_0x5ed670[_0xd22507(0x248)](_0x582d48),_0x5ed670 instanceof u['DocCollaborationEntity']){const _0xf5cb7b={'onTransformIME':_0xdc3572=>this[_0xd22507(0x410)]['transformIMECache'](_0xdc3572),'onTransformState':_0x1aee0d=>this['_docTransformStateCacheService']['transformStateCache'](_0x1aee0d),'onTransformSelections':_0x2cd514=>this[_0xd22507(0x294)][_0xd22507(0x1fe)](_0x2cd514),'onSyncEditingCollabCursor':_0x29b099=>this[_0xd22507(0x43b)][_0xd22507(0x1f0)](_0x29b099),'onTransformRemoteChangesetByIMECache':_0x3c25aa=>this[_0xd22507(0x410)][_0xd22507(0x33d)](_0x3c25aa),'onTransformRemoteChangesetByStateCache':_0x358a35=>this[_0xd22507(0x21d)][_0xd22507(0x33d)](_0x358a35)};_0x5ed670[_0xd22507(0x29c)](_0xf5cb7b);}}));}};ie=zt([N(0x0,a[_0x351cc3(0x257)](p[_0x351cc3(0x37a)])),N(0x1,a[_0x351cc3(0x257)](u[_0x351cc3(0x397)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x351cc3(0x257)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x351cc3(0x257)](be)),N(0x6,O[_0x351cc3(0x4ae)]),N(0x7,a[_0x351cc3(0x257)](a['LocaleService']))],ie);var G=(_0x2fc01a=>(_0x2fc01a[_0x2fc01a[_0x351cc3(0x307)]=0x0]=_0x351cc3(0x307),_0x2fc01a[_0x2fc01a['OK']=0x1]='OK',_0x2fc01a[_0x2fc01a[_0x351cc3(0x259)]=0x2]=_0x351cc3(0x259),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c0)]=0x3]='PERMISSION_DENIED',_0x2fc01a[_0x2fc01a['NOT_FOUND']=0x4]=_0x351cc3(0x31e),_0x2fc01a[_0x2fc01a[_0x351cc3(0x44c)]=0x5]='UNAUTHENTICATED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x466)]=0x6]=_0x351cc3(0x466),_0x2fc01a[_0x2fc01a[_0x351cc3(0x34e)]=0x7]=_0x351cc3(0x34e),_0x2fc01a[_0x2fc01a['TOO_MANY_REQUESTS']=0x8]=_0x351cc3(0x2bd),_0x2fc01a[_0x2fc01a[_0x351cc3(0x217)]=0x9]='COMPLETION_FINISHED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x3be)]=0xa]=_0x351cc3(0x3be),_0x2fc01a[_0x2fc01a['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2fc01a[_0x2fc01a[_0x351cc3(0x396)]=0xc]=_0x351cc3(0x396),_0x2fc01a[_0x2fc01a[_0x351cc3(0x433)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x2fc01a[_0x2fc01a[_0x351cc3(0x449)]=0xe]=_0x351cc3(0x449),_0x2fc01a[_0x2fc01a['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x351cc3(0x1fa),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3fd)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x2fc01a[_0x2fc01a['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x351cc3(0x44f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x258)]=0x65]=_0x351cc3(0x258),_0x2fc01a[_0x2fc01a[_0x351cc3(0x492)]=0xc9]='USER_NOT_FOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x29f)]=0xca]=_0x351cc3(0x29f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x352)]=0x1389]=_0x351cc3(0x352),_0x2fc01a[_0x2fc01a[_0x351cc3(0x34f)]=0x1771]=_0x351cc3(0x34f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x4b0)]=0x1772]=_0x351cc3(0x4b0),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3a0)]=0x1773]=_0x351cc3(0x3a0),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2cb)]=0x1b59]=_0x351cc3(0x2cb),_0x2fc01a[_0x2fc01a[_0x351cc3(0x308)]=0x1b5a]=_0x351cc3(0x308),_0x2fc01a[_0x2fc01a[_0x351cc3(0x371)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2fc01a[_0x2fc01a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x351cc3(0x290),_0x2fc01a[_0x2fc01a['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x208)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2fc01a[_0x2fc01a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x27a)]=0x232a]=_0x351cc3(0x27a),_0x2fc01a[_0x2fc01a[_0x351cc3(0x369)]=0x232b]=_0x351cc3(0x369),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2d5)]=0x232c]=_0x351cc3(0x2d5),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3a1)]=0x232d]=_0x351cc3(0x3a1),_0x2fc01a[_0x2fc01a[_0x351cc3(0x445)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2fc01a[_0x2fc01a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x43f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2fc01a[_0x2fc01a[_0x351cc3(0x26c)]=0x2714]=_0x351cc3(0x26c),_0x2fc01a[_0x2fc01a[_0x351cc3(0x1fc)]=0x271a]=_0x351cc3(0x1fc),_0x2fc01a[_0x2fc01a[_0x351cc3(0x29b)]=0x271b]=_0x351cc3(0x29b),_0x2fc01a[_0x2fc01a['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x351cc3(0x48d),_0x2fc01a[_0x2fc01a[_0x351cc3(0x454)]=0x271d]=_0x351cc3(0x454),_0x2fc01a[_0x2fc01a[_0x351cc3(0x22b)]=0x271e]=_0x351cc3(0x22b),_0x2fc01a[_0x2fc01a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x351cc3(0x385),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2b6)]=0x2720]=_0x351cc3(0x2b6),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3e2)]=0x2af9]=_0x351cc3(0x3e2),_0x2fc01a[_0x2fc01a['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x351cc3(0x3a7),_0x2fc01a[_0x2fc01a[_0x351cc3(0x313)]=0x2ee2]='INVALID_INVITE_CODE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x206)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2fc01a[_0x2fc01a['USER_NOT_INVITED_CODE']=0x2ee4]=_0x351cc3(0x4aa),_0x2fc01a[_0x2fc01a[_0x351cc3(0x24b)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x240)]=0x32c9]=_0x351cc3(0x240),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2df)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x452)]=0x32cb]=_0x351cc3(0x452),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2be)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2fc01a[_0x2fc01a[_0x351cc3(0x27b)]=0x36b2]=_0x351cc3(0x27b),_0x2fc01a[_0x2fc01a['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2b9)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2fc01a[_0x2fc01a['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2f4)]=0x3716]=_0x351cc3(0x2f4),_0x2fc01a[_0x2fc01a['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2fc01a[_0x2fc01a['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x2fc01a[_0x2fc01a[_0x351cc3(0x201)]=0x3a99]=_0x351cc3(0x201),_0x2fc01a[_0x2fc01a[_0x351cc3(0x321)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c4)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x39f)]=0x3a9c]=_0x351cc3(0x39f),_0x2fc01a[_0x2fc01a['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x3ed)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x364)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2fc01a[_0x2fc01a['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c5)]=-0x1]=_0x351cc3(0x2c5),_0x2fc01a))(G||{});function Jt(_0x367f5c){const _0x2ceadd=_0x351cc3;var _0x10937d,_0xc26af9;const _0x912cb7=(_0x10937d=_0x367f5c[_0x2ceadd(0x48e)])==null?void 0x0:_0x10937d[_0x2ceadd(0x346)],_0x1700e=((_0xc26af9=_0x367f5c[_0x2ceadd(0x48e)])==null?void 0x0:_0xc26af9['totalFormulasToCalculate'])||0x0;return _0x912cb7===B['FormulaExecuteStageType'][_0x2ceadd(0x31a)]&&_0x1700e>0x0;}function Zt(_0x201ea6){const _0x9487c4=_0x351cc3;return _0x201ea6[_0x9487c4(0x42c)]===B[_0x9487c4(0x426)][_0x9487c4(0x2a1)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x13a376,_0x400412,_0x234199,_0x4f9d12)=>{const _0x552fd9=_0x351cc3;for(var _0x26dc83=_0x4f9d12>0x1?void 0x0:_0x4f9d12?Qt(_0x400412,_0x234199):_0x400412,_0x355511=_0x13a376[_0x552fd9(0x241)]-0x1,_0x303e92;_0x355511>=0x0;_0x355511--)(_0x303e92=_0x13a376[_0x355511])&&(_0x26dc83=_0x303e92(_0x26dc83)||_0x26dc83);return _0x26dc83;},L=(_0x3bbec2,_0x273f01)=>(_0x2234d5,_0x3aab52)=>_0x273f01(_0x2234d5,_0x3aab52,_0x3bbec2);const ts=_0x351cc3(0x1ef),ss=_0x351cc3(0x2d0),is=_0x351cc3(0x377);let ne=class extends a['Disposable']{constructor(_0x47b0d0,_0x1be6b4,_0xf7bd5c,_0x7c1d38,_0x8892f7,_0x1391f7,_0x4eee2d){const _0x454fdc=_0x351cc3;super(),_(this,'_pollingInterval',null),_(this,_0x454fdc(0x438),0x0),_(this,_0x454fdc(0x436),0x0),_(this,'_taskIds',[]),_(this,_0x454fdc(0x2d9),0x0),(this[_0x454fdc(0x2ac)]=_0x47b0d0,this[_0x454fdc(0x3f2)]=_0x1be6b4,this[_0x454fdc(0x2ce)]=_0xf7bd5c,this['_httpService']=_0x7c1d38,this[_0x454fdc(0x2bf)]=_0x8892f7,this[_0x454fdc(0x3de)]=_0x1391f7,this['_localeService']=_0x4eee2d,this['_initCommandInterceptor']());}[_0x351cc3(0x252)](){const _0x1ffb0a=_0x351cc3;this[_0x1ffb0a(0x248)](this[_0x1ffb0a(0x3f2)][_0x1ffb0a(0x3f3)]((_0x23d374,_0x4744cc)=>{const _0x26f0f3=_0x1ffb0a;var _0xa0ea84;if(_0x23d374['id']!==B[_0x26f0f3(0x3bb)]['id'])return;const _0x54c42a=_0x23d374['params'];if(!this[_0x26f0f3(0x2fb)]((_0xa0ea84=_0x54c42a['dirtyRanges'])!=null?_0xa0ea84:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x26f0f3(0x281)](_0x23d374,_0x4744cc),this['_showGuardMessage'](),new a[(_0x26f0f3(0x439))]();})),this[_0x1ffb0a(0x248)](this[_0x1ffb0a(0x3f2)][_0x1ffb0a(0x29a)]((_0x1367ee,_0x57bcf9)=>{const _0x4731d3=_0x1ffb0a;if(_0x1367ee['id']!==B[_0x4731d3(0x3ef)]['id'])return;const _0x480dc3=_0x1367ee['params'];if(Jt(_0x480dc3)){const _0x29155d=a[_0x4731d3(0x204)]();this[_0x4731d3(0x1ff)][_0x4731d3(0x455)](_0x29155d),this[_0x4731d3(0x20b)](_0x29155d);}else{if(Zt(_0x480dc3)&&this['_taskIds']['length']>0x0){const _0x4af3fc=this[_0x4731d3(0x1ff)][_0x4731d3(0x47c)]();this[_0x4731d3(0x393)](_0x4af3fc);}}}));}['dispose'](){const _0x958699=_0x351cc3;super[_0x958699(0x469)](),this['_clearPolling'](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x958699(0x438)]=0x0,this[_0x958699(0x2d9)]=0x0;}async[_0x351cc3(0x281)](_0x39d938,_0x2f3350){const _0x1e4375=_0x351cc3;for(let _0x54aa92=0x0;_0x54aa92<0x1e;_0x54aa92++)try{if(await this[_0x1e4375(0x44a)](),this['_checkCalculationAvailable']()){this[_0x1e4375(0x228)](_0x39d938,_0x2f3350),this[_0x1e4375(0x2ac)][_0x1e4375(0x431)]({'content':this[_0x1e4375(0x3e8)]['t'](_0x1e4375(0x30e)),'type':T['MessageType'][_0x1e4375(0x457)]});return;}await new Promise(_0x596f67=>{const _0x264ae9=_0x1e4375;this[_0x264ae9(0x3b8)]=window[_0x264ae9(0x389)](_0x596f67,0x3e8);});}catch(_0x2656ae){this[_0x1e4375(0x3de)][_0x1e4375(0x423)](_0x2656ae);}this[_0x1e4375(0x2ac)]['show']({'content':this[_0x1e4375(0x3e8)]['t'](_0x1e4375(0x247)),'type':T[_0x1e4375(0x399)]['Error']});}[_0x351cc3(0x228)](_0x4ec019,_0xa36330){const _0x5602de=_0x351cc3;try{this[_0x5602de(0x3f2)][_0x5602de(0x222)](_0x4ec019['id'],_0x4ec019[_0x5602de(0x3d6)],_0xa36330);}catch(_0x402376){this[_0x5602de(0x3de)][_0x5602de(0x423)](_0x402376);}}[_0x351cc3(0x1f9)](_0x15390e,_0x18348d){const _0x4622c1=_0x351cc3;_0x18348d<this['_lastResponseTimestamp']||(this[_0x4622c1(0x2d9)]=_0x18348d,this[_0x4622c1(0x438)]=Number[_0x4622c1(0x441)](_0x15390e[_0x4622c1(0x311)]),this[_0x4622c1(0x436)]=Number[_0x4622c1(0x441)](_0x15390e[_0x4622c1(0x2a2)]));}async['_startCalculationLimit'](_0x29b27a){const _0x57997f=_0x351cc3;var _0xd5b2cb,_0x2076e0;const _0x2e3dd5=Date[_0x57997f(0x39a)]();try{const _0x5cef47=((_0xd5b2cb=this[_0x57997f(0x2ce)][_0x57997f(0x2eb)](u[_0x57997f(0x28c)]))==null?void 0x0:_0xd5b2cb['startFormulaLimitUrl'])||ss,_0x255530=(await this[_0x57997f(0x2e3)][_0x57997f(0x261)](_0x5cef47,{'body':JSON[_0x57997f(0x2ef)]({'taskId':_0x29b27a})}))[_0x57997f(0x4a1)];if(((_0x2076e0=_0x255530['error'])==null?void 0x0:_0x2076e0[_0x57997f(0x337)])!==G['OK'])return;this[_0x57997f(0x1f9)](_0x255530[_0x57997f(0x2c2)],_0x2e3dd5);}catch(_0x326d97){this[_0x57997f(0x3de)]['error'](_0x326d97);}}async['_getFormulaLimitStatus'](_0x22710d){const _0xb28820=_0x351cc3;var _0x54c9d8,_0x13341b;const _0xbd69c8=Date['now']();try{const _0x30e673=((_0x54c9d8=this[_0xb28820(0x2ce)][_0xb28820(0x2eb)](u[_0xb28820(0x28c)]))==null?void 0x0:_0x54c9d8[_0xb28820(0x256)])||ts,_0x301ff2=_0x22710d?_0x30e673+_0xb28820(0x2a8)+encodeURIComponent(_0x22710d):_0x30e673,_0x464e76=(await this[_0xb28820(0x2e3)]['get'](_0x301ff2))['body'];if(((_0x13341b=_0x464e76[_0xb28820(0x423)])==null?void 0x0:_0x13341b[_0xb28820(0x337)])!==G['OK'])return;this[_0xb28820(0x1f9)](_0x464e76[_0xb28820(0x2c2)],_0xbd69c8);}catch(_0x26203f){this[_0xb28820(0x3de)][_0xb28820(0x423)](_0x26203f);}}async[_0x351cc3(0x393)](_0x48b1cc){const _0x4075ec=_0x351cc3;var _0x243382,_0x2fde63;const _0x345729=Date[_0x4075ec(0x39a)]();try{const _0x1c4701=((_0x243382=this[_0x4075ec(0x2ce)][_0x4075ec(0x2eb)](u[_0x4075ec(0x28c)]))==null?void 0x0:_0x243382[_0x4075ec(0x3c2)])||is,_0x578375=(await this[_0x4075ec(0x2e3)][_0x4075ec(0x261)](_0x1c4701,{'body':JSON[_0x4075ec(0x2ef)]({'taskId':_0x48b1cc})}))['body'];if(((_0x2fde63=_0x578375[_0x4075ec(0x423)])==null?void 0x0:_0x2fde63[_0x4075ec(0x337)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x578375[_0x4075ec(0x2c2)],_0x345729);}catch(_0x373043){this['_logService'][_0x4075ec(0x423)](_0x373043);}}[_0x351cc3(0x2fe)](){const _0x55ce33=_0x351cc3;return this[_0x55ce33(0x438)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x55ce33(0x436)]>0x0;}['_clearPolling'](){const _0x350625=_0x351cc3;this[_0x350625(0x3b8)]&&(clearTimeout(this[_0x350625(0x3b8)]),this[_0x350625(0x3b8)]=null);}[_0x351cc3(0x46d)](){const _0x4abc75=_0x351cc3;this[_0x4abc75(0x2ac)][_0x4abc75(0x431)]({'content':this['_localeService']['t'](_0x4abc75(0x3f7)),'type':T[_0x4abc75(0x399)]['Loading']});}[_0x351cc3(0x2fb)](_0x2568cf){const _0x28464f=_0x351cc3;for(const _0x4dca24 of _0x2568cf){const {unitId:_0x5fc2e9,sheetId:_0x4b86b8,range:_0xf52339}=_0x4dca24,_0x2f721a=this[_0x28464f(0x2bf)][_0x28464f(0x332)](_0x5fc2e9);if(!_0x2f721a)continue;const _0x23973e=_0x2f721a['getSheetBySheetId'](_0x4b86b8);if(!_0x23973e)continue;const _0x1e6ae6=_0x23973e['getCellMatrix']();for(let _0x3cc74a=_0xf52339[_0x28464f(0x333)];_0x3cc74a<=_0xf52339[_0x28464f(0x405)];_0x3cc74a++)for(let _0x5e557d=_0xf52339[_0x28464f(0x49b)];_0x5e557d<=_0xf52339[_0x28464f(0x227)];_0x5e557d++){const _0x4b41dd=_0x1e6ae6[_0x28464f(0x24d)](_0x3cc74a,_0x5e557d);if(_0x4b41dd&&(a['isFormulaString'](_0x4b41dd['f'])||a[_0x28464f(0x2c7)](_0x4b41dd['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x351cc3(0x4ae)])),L(0x1,a[_0x351cc3(0x30d)]),L(0x2,a[_0x351cc3(0x456)]),L(0x3,a[_0x351cc3(0x257)](x['HTTPService'])),L(0x4,a[_0x351cc3(0x314)]),L(0x5,a['ILogService']),L(0x6,a[_0x351cc3(0x257)](a[_0x351cc3(0x2bb)]))],ne);var ns=Object[_0x351cc3(0x343)],rs=(_0x3f0f3c,_0x12a48f,_0x19c37b,_0x57e2d9)=>{const _0x1f4e7e=_0x351cc3;for(var _0x1973ec=_0x57e2d9>0x1?void 0x0:_0x57e2d9?ns(_0x12a48f,_0x19c37b):_0x12a48f,_0x21f818=_0x3f0f3c[_0x1f4e7e(0x241)]-0x1,_0x562cc0;_0x21f818>=0x0;_0x21f818--)(_0x562cc0=_0x3f0f3c[_0x21f818])&&(_0x1973ec=_0x562cc0(_0x1973ec)||_0x1973ec);return _0x1973ec;},de=(_0x4c36d4,_0x2eea48)=>(_0x1c456a,_0x225f83)=>_0x2eea48(_0x1c456a,_0x225f83,_0x4c36d4);let pe=class extends a[_0x351cc3(0x37b)]{constructor(_0x11b884,_0x1cf35d,_0x502648){const _0x5cabeb=_0x351cc3;super(),_(this,'_cachedData',new Map()),_(this,_0x5cabeb(0x3eb),new Map()),_(this,_0x5cabeb(0x3d1),!0x1),(this['_configService']=_0x11b884,this[_0x5cabeb(0x374)]=_0x1cf35d,this[_0x5cabeb(0x3df)]=_0x502648);}[_0x351cc3(0x356)](){this['_disabled']=!0x0;}[_0x351cc3(0x266)](){const _0x14e3b3=_0x351cc3;this[_0x14e3b3(0x3d1)]=!0x1;}get[_0x351cc3(0x42e)](){return this['_saveTaskMap'];}[_0x351cc3(0x469)](){const _0x422c36=_0x351cc3;this[_0x422c36(0x270)]()['then'](()=>super[_0x422c36(0x469)]());}async[_0x351cc3(0x273)](_0x45b552){const _0x1fd603=_0x351cc3;return this[_0x1fd603(0x3d1)]?null:this['_localStorageService']['getItem'](u[_0x1fd603(0x463)](_0x45b552));}async[_0x351cc3(0x3d8)](_0x36c4fe,_0x502647){const _0x28cd27=_0x351cc3;return!!this[_0x28cd27(0x374)][_0x28cd27(0x390)](_0x36c4fe,_0x502647);}['updateOfflineData'](_0x4ee7ef,_0x28fe00,_0x128d6f,_0x584378){const _0x46690b=_0x351cc3,_0x597935=this[_0x46690b(0x3df)][_0x46690b(0x36c)](_0x4ee7ef);this[_0x46690b(0x47f)][_0x46690b(0x305)](_0x4ee7ef,{'unitID':_0x4ee7ef,'type':_0x28fe00,'awaitingChangeset':_0x128d6f,'mutations':_0x584378,'rev':_0x597935}),this[_0x46690b(0x3eb)][_0x46690b(0x370)](_0x4ee7ef)||this[_0x46690b(0x40a)](_0x4ee7ef);}[_0x351cc3(0x40a)](_0x15ab60){const _0x2b02f3=_0x351cc3,_0x266106=this[_0x2b02f3(0x2d3)]();_0x266106===0x0?this['_saveCache'](_0x15ab60):this[_0x2b02f3(0x3eb)][_0x2b02f3(0x305)](_0x15ab60,setTimeout(()=>this['_saveCache'](_0x15ab60),_0x266106));}['_getSaveTimeout'](){const _0x55a78f=_0x351cc3;var _0x36677a;return(_0x36677a=this[_0x55a78f(0x2ce)][_0x55a78f(0x2eb)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x36677a:u[_0x55a78f(0x3ba)];}[_0x351cc3(0x443)](_0x5ac349){const _0x2d4a5e=_0x351cc3,_0x2949b3=this[_0x2d4a5e(0x3eb)][_0x2d4a5e(0x3d0)](_0x5ac349);return _0x2949b3!==void 0x0&&window[_0x2d4a5e(0x326)](_0x2949b3),this[_0x2d4a5e(0x374)][_0x2d4a5e(0x390)](u[_0x2d4a5e(0x463)](_0x5ac349),this[_0x2d4a5e(0x47f)][_0x2d4a5e(0x3d0)](_0x5ac349))[_0x2d4a5e(0x4a0)](()=>this[_0x2d4a5e(0x3eb)]['delete'](_0x5ac349));}async[_0x351cc3(0x270)](){const _0x2fefe2=_0x351cc3,_0x51a9e9=[];this[_0x2fefe2(0x3eb)][_0x2fefe2(0x264)]((_0x501a45,_0x2a8366)=>{const _0x1a4962=_0x2fefe2;window['clearTimeout'](_0x501a45),_0x51a9e9[_0x1a4962(0x455)](this[_0x1a4962(0x443)](_0x2a8366)['then'](()=>{const _0xc63f94=_0x1a4962;this[_0xc63f94(0x3eb)][_0xc63f94(0x4a9)](_0x2a8366);}));}),await Promise['all'](_0x51a9e9);}};pe=rs([de(0x0,a[_0x351cc3(0x456)]),de(0x1,a[_0x351cc3(0x391)]),de(0x2,a[_0x351cc3(0x257)](g[_0x351cc3(0x383)]))],pe);class ke extends a[_0x351cc3(0x487)]{constructor(){const _0x162fd8=_0x351cc3;super(),_(this,_0x162fd8(0x2f9)),this[_0x162fd8(0x2f9)]=I[_0x162fd8(0x339)](window,_0x162fd8(0x2b7))[_0x162fd8(0x38b)](I['takeUntil'](this['dispose$']),I[_0x162fd8(0x2ad)](0x1),I[_0x162fd8(0x497)](void 0x0));}[_0x351cc3(0x1f8)](_0xdf204e,_0x375498,_0x1d404f=!0x1){const _0x4c32e1=_0x351cc3,_0x3d57b5=new URL(window['location'][_0x4c32e1(0x3a3)]);_0x3d57b5['searchParams'][_0x4c32e1(0x305)](_0xdf204e,_0x375498),_0x1d404f?window[_0x4c32e1(0x20e)][_0x4c32e1(0x23c)]('','',_0x3d57b5['toString']()):window[_0x4c32e1(0x20e)][_0x4c32e1(0x467)]('','',_0x3d57b5[_0x4c32e1(0x2e7)]());}['removeParam'](_0x2ca017,_0x39594d=!0x1){const _0x193679=_0x351cc3,_0x535c6a=new URL(window['location'][_0x193679(0x3a3)]);_0x535c6a[_0x193679(0x2e5)][_0x193679(0x4a9)](_0x2ca017),_0x39594d?window['history'][_0x193679(0x23c)]('','',_0x535c6a[_0x193679(0x2e7)]()):window['history'][_0x193679(0x467)]('','',_0x535c6a['toString']());}[_0x351cc3(0x2d2)](_0x5af2b9){const _0x31542e=_0x351cc3;var _0x346896;return(_0x346896=new URL(window[_0x31542e(0x2c9)][_0x31542e(0x3a3)])[_0x31542e(0x2e5)][_0x31542e(0x3d0)](_0x5af2b9))!=null?_0x346896:void 0x0;}}var os=Object[_0x351cc3(0x344)],as=Object['getOwnPropertyDescriptor'],cs=(_0x55bce9,_0x18a23f,_0x377824)=>_0x18a23f in _0x55bce9?os(_0x55bce9,_0x18a23f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377824}):_0x55bce9[_0x18a23f]=_0x377824,ls=(_0x2c1832,_0x596206,_0x56db3e,_0x44f237)=>{const _0x119b9a=_0x351cc3;for(var _0x24d1ea=_0x44f237>0x1?void 0x0:_0x44f237?as(_0x596206,_0x56db3e):_0x596206,_0x128e7b=_0x2c1832[_0x119b9a(0x241)]-0x1,_0x5a6b41;_0x128e7b>=0x0;_0x128e7b--)(_0x5a6b41=_0x2c1832[_0x128e7b])&&(_0x24d1ea=_0x5a6b41(_0x24d1ea)||_0x24d1ea);return _0x24d1ea;},Se=(_0x49e4bb,_0x40d0f7)=>(_0x2364b6,_0x593e61)=>_0x40d0f7(_0x2364b6,_0x593e61,_0x49e4bb),_s=(_0x13b179,_0xe47eff,_0x2c4b1c)=>cs(_0x13b179,_0xe47eff+'',_0x2c4b1c);const hs=_0x351cc3(0x26e);exports[_0x351cc3(0x47e)]=class extends a[_0x351cc3(0x486)]{constructor(_0x23578a=Me,_0x4da0a2,_0x50dff1,_0x4ce95b){const _0x5ee71f=_0x351cc3;super(),this['_config']=_0x23578a,this[_0x5ee71f(0x398)]=_0x4da0a2,this[_0x5ee71f(0x37f)]=_0x50dff1,this[_0x5ee71f(0x2ce)]=_0x4ce95b;const {..._0x246321}=a['merge']({},Me,this[_0x5ee71f(0x272)]);this[_0x5ee71f(0x2ce)]['setConfig'](Yt,_0x246321);}[_0x351cc3(0x38c)](){const _0x32d2c8=_0x351cc3;this['_registerDependencies'](),this[_0x32d2c8(0x46b)]();}[_0x351cc3(0x219)](){const _0x3ffc32=_0x351cc3;this[_0x3ffc32(0x2ca)]();}[_0x351cc3(0x4af)](){const _0x9e79d0=_0x351cc3;var _0x4129f6;const _0x22f481=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x9e79d0(0x3fa)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x9e79d0(0x29d)]]];this[_0x9e79d0(0x272)][_0x9e79d0(0x23f)]&&_0x22f481[_0x9e79d0(0x455)]([Q]),a[_0x9e79d0(0x28f)](this['_injector'],a[_0x9e79d0(0x462)](_0x22f481,(_0x4129f6=this[_0x9e79d0(0x272)])==null?void 0x0:_0x4129f6[_0x9e79d0(0x25e)]));}[_0x351cc3(0x2ca)](){const _0x44a3c3=_0x351cc3;this['disposeWithMe'](this['_renderManagerService'][_0x44a3c3(0x408)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this['disposeWithMe'](this[_0x44a3c3(0x398)][_0x44a3c3(0x408)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}[_0x351cc3(0x46b)](){const _0x4cf176=_0x351cc3;a[_0x4cf176(0x4a7)](this[_0x4cf176(0x37f)],[[F],[exports[_0x4cf176(0x475)]],[ie],[Z],[exports[_0x4cf176(0x29d)]],[ne]]),this[_0x4cf176(0x272)][_0x4cf176(0x23f)]&&a[_0x4cf176(0x4a7)](this[_0x4cf176(0x37f)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x351cc3(0x213),hs),exports[_0x351cc3(0x47e)]=ls([a[_0x351cc3(0x464)](u['UniverCollaborationClientPlugin']),Se(0x1,C[_0x351cc3(0x382)]),Se(0x2,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Se(0x3,a[_0x351cc3(0x456)])],exports[_0x351cc3(0x47e)]);var us=Object[_0x351cc3(0x343)],Is=(_0x2308a8,_0x178d12,_0x16fea6,_0x12f932)=>{const _0x376f5f=_0x351cc3;for(var _0x5dddad=_0x12f932>0x1?void 0x0:_0x12f932?us(_0x178d12,_0x16fea6):_0x178d12,_0x37951b=_0x2308a8[_0x376f5f(0x241)]-0x1,_0x33e454;_0x37951b>=0x0;_0x37951b--)(_0x33e454=_0x2308a8[_0x37951b])&&(_0x5dddad=_0x33e454(_0x5dddad)||_0x5dddad);return _0x5dddad;},W=(_0x4ccfa6,_0x363c0f)=>(_0x45826d,_0x48ee7c)=>_0x363c0f(_0x45826d,_0x48ee7c,_0x4ccfa6);exports['BrowserCollaborationSocketService']=class extends u[_0x351cc3(0x46f)]{constructor(_0x568368,_0x1c79c1,_0x2be100,_0x4d77e4,_0x2e70e2){super(_0x568368,_0x1c79c1,_0x2be100,_0x4d77e4,_0x2e70e2);}async[_0x351cc3(0x271)](_0x1d342e){const _0x446bd0=_0x351cc3,_0x284d8d=await this['_getSessionTicket'](),_0x559199=this[_0x446bd0(0x2f0)](_0x1d342e,_0x284d8d);return this[_0x446bd0(0x22a)](_0x559199);}[_0x351cc3(0x2f0)](_0x5bcc1e,_0x3790b2){const _0x3a3149=_0x351cc3,_0x32abd3=typeof window>'u'?new URL(_0x5bcc1e):new URL(_0x5bcc1e,window[_0x3a3149(0x2c9)]['origin']);_0x32abd3['searchParams'][_0x3a3149(0x305)](_0x3a3149(0x286),_0x3790b2);const _0x2e8818=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a3149(0x2c9)][_0x3a3149(0x30b)]);return _0x2e8818[_0x3a3149(0x3d0)](_0x3a3149(0x2d4))&&_0x32abd3[_0x3a3149(0x2e5)][_0x3a3149(0x305)](_0x3a3149(0x2d4),_0x2e8818[_0x3a3149(0x3d0)](_0x3a3149(0x2d4))),_0x32abd3[_0x3a3149(0x2e7)]();}async[_0x351cc3(0x2bc)](){const _0x23ccd1=_0x351cc3;var _0xaefde8,_0x242aba,_0x3a6199;const _0x187c8b=this[_0x23ccd1(0x2ce)]['getConfig'](u[_0x23ccd1(0x28c)]),_0x1690fd=(_0xaefde8=_0x187c8b==null?void 0x0:_0x187c8b[_0x23ccd1(0x3c4)])!=null?_0xaefde8:u[_0x23ccd1(0x3e3)];return(_0x3a6199=(_0x242aba=(await this[_0x23ccd1(0x2e3)]['get'](_0x1690fd,{'headers':{'Content-Type':'application/json'}}))[_0x23ccd1(0x4a1)])==null?void 0x0:_0x242aba[_0x23ccd1(0x320)])!=null?_0x3a6199:'';}},exports[_0x351cc3(0x493)]=Is([W(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),W(0x1,a[_0x351cc3(0x257)](x[_0x351cc3(0x242)])),W(0x2,a['IConfigService']),W(0x3,a[_0x351cc3(0x31d)]),W(0x4,g[_0x351cc3(0x225)])],exports['BrowserCollaborationSocketService']);var ds=Object['getOwnPropertyDescriptor'],Ss=(_0x2c2795,_0x369c0d,_0x2d64c6,_0x3b91e7)=>{const _0x354578=_0x351cc3;for(var _0x498e32=_0x3b91e7>0x1?void 0x0:_0x3b91e7?ds(_0x369c0d,_0x2d64c6):_0x369c0d,_0x5c9f00=_0x2c2795[_0x354578(0x241)]-0x1,_0x5ea678;_0x5c9f00>=0x0;_0x5c9f00--)(_0x5ea678=_0x2c2795[_0x5c9f00])&&(_0x498e32=_0x5ea678(_0x498e32)||_0x498e32);return _0x498e32;},fe=(_0x5a7fef,_0x2542fa)=>(_0x28403e,_0x2f9e22)=>_0x2542fa(_0x28403e,_0x2f9e22,_0x5a7fef);exports[_0x351cc3(0x471)]=class extends a[_0x351cc3(0x37b)]{constructor(_0x2993a3,_0xb58ef7,_0x3685b5){const _0x38ab84=_0x351cc3;super(),this[_0x38ab84(0x3b0)]=_0x2993a3,this[_0x38ab84(0x2e3)]=_0xb58ef7,this[_0x38ab84(0x2ce)]=_0x3685b5;}async[_0x351cc3(0x368)](_0x23f75e,_0x3e6089,_0x33a065,..._0x38fa96){const _0x1d1a3b=_0x351cc3;var _0x16f58c,_0xce99c,_0xd6dcc9,_0x19062e;const _0x5410b6=this[_0x1d1a3b(0x3b0)][_0x1d1a3b(0x22e)]();if(!_0x5410b6)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x44b445=((_0x16f58c=this[_0x1d1a3b(0x2ce)][_0x1d1a3b(0x2eb)](u[_0x1d1a3b(0x496)]))!=null?_0x16f58c:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x23f75e+_0x1d1a3b(0x2da)+_0x3e6089,_0x5b49a7=new URL(window['location'][_0x1d1a3b(0x3a3)]),_0x3b131c={'scriptId':_0x23f75e,'runId':(_0xce99c=_0x5b49a7[_0x1d1a3b(0x2e5)]['get'](_0x1d1a3b(0x2d4)))!=null?_0xce99c:'','function':_0x3e6089,'unitId':_0x5410b6[_0x1d1a3b(0x3b1)](),'argsOfFunction':JSON['stringify'](_0x38fa96),'invokeId':(_0xd6dcc9=_0x33a065[_0x1d1a3b(0x1f3)])!=null?_0xd6dcc9:'','executionId':(_0x19062e=_0x33a065[_0x1d1a3b(0x342)])!=null?_0x19062e:''};try{const _0x596c5c=await this['_httpService'][_0x1d1a3b(0x261)](_0x44b445,{'body':_0x3b131c});return _0x596c5c[_0x1d1a3b(0x4a1)][_0x1d1a3b(0x423)]&&_0x596c5c[_0x1d1a3b(0x4a1)]['error'][_0x1d1a3b(0x337)]!==G['OK']?'Failed':_0x596c5c['body'][_0x1d1a3b(0x302)];}catch{return _0x1d1a3b(0x409);}}},exports[_0x351cc3(0x471)]=Ss([fe(0x0,a[_0x351cc3(0x314)]),fe(0x1,a['Inject'](x[_0x351cc3(0x242)])),fe(0x2,a['IConfigService'])],exports[_0x351cc3(0x471)]);const we=0x7530,ye=_0x351cc3(0x37e);class fs extends a['Disposable']{constructor(){const _0x3a9d4f=_0x351cc3;super(),_(this,'_id',a[_0x3a9d4f(0x204)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x3a9d4f(0x288),null),_(this,_0x3a9d4f(0x26f),new Map()),_(this,_0x3a9d4f(0x25b),new Map()),this[_0x3a9d4f(0x331)]();}[_0x351cc3(0x469)](){const _0x1363a2=_0x351cc3;super['dispose'](),this[_0x1363a2(0x26f)][_0x1363a2(0x264)]((_0x5374db,_0x204434)=>this[_0x1363a2(0x488)](_0x204434)),this['_heartbeatTimer']&&window[_0x1363a2(0x3f8)](this[_0x1363a2(0x288)]);}[_0x351cc3(0x35a)](_0x57ee06){const _0x23e9f1=_0x351cc3;return this[_0x23e9f1(0x3c3)](_0x57ee06)[_0x23e9f1(0x38b)](I['distinctUntilChanged']());}['editingUnit'](_0x47f478){const _0x38e6ac=_0x351cc3;this[_0x38e6ac(0x304)][_0x38e6ac(0x35e)]===0x0&&this[_0x38e6ac(0x448)](),this[_0x38e6ac(0x304)]['add'](_0x47f478),this[_0x38e6ac(0x255)]({'type':0x0,'memberID':this[_0x38e6ac(0x4bc)],'unitIDs':[_0x47f478],'isForwarded':!0x1});}[_0x351cc3(0x412)](_0x44e0a4){const _0x3d9153=_0x351cc3;this[_0x3d9153(0x304)][_0x3d9153(0x4a9)](_0x44e0a4),this[_0x3d9153(0x304)][_0x3d9153(0x35e)]===0x0&&this[_0x3d9153(0x288)]&&window['clearInterval'](this[_0x3d9153(0x288)]);}[_0x351cc3(0x331)](){const _0x3b53b3=_0x351cc3;this['disposeWithMe'](a[_0x3b53b3(0x30f)](I[_0x3b53b3(0x339)](window,'storage')[_0x3b53b3(0x3b4)](_0x52dc18=>{const _0x1bfcd7=_0x3b53b3;if(_0x52dc18[_0x1bfcd7(0x33f)]!==ye||!_0x52dc18['newValue'])return;const _0x36f709=JSON[_0x1bfcd7(0x40c)](_0x52dc18['newValue']);this[_0x1bfcd7(0x24c)](_0x36f709);}))),window[_0x3b53b3(0x472)](_0x3b53b3(0x39c),()=>this['_send']({'type':0x1,'memberID':this[_0x3b53b3(0x4bc)],'unitIDs':Array[_0x3b53b3(0x301)](this[_0x3b53b3(0x304)])}));}[_0x351cc3(0x24c)](_0x1626f3){const _0x5969d8=_0x351cc3;switch(_0x1626f3['type']){case 0x0:this['_handleJoinEvent'](_0x1626f3);break;case 0x1:this[_0x5969d8(0x20f)](_0x1626f3);break;case 0x2:this[_0x5969d8(0x407)](_0x1626f3);break;}}[_0x351cc3(0x4a5)](_0x13d5da){const _0x26b034=_0x351cc3,{unitIDs:_0x2a791c,memberID:_0x2d16e8,isForwarded:_0xa39850}=_0x13d5da;_0x2a791c[_0x26b034(0x264)](_0x55a3c8=>{const _0x9ccab6=_0x26b034;if(!_0xa39850&&this[_0x9ccab6(0x3da)][_0x9ccab6(0x370)](_0x55a3c8)&&this[_0x9ccab6(0x3c3)](_0x55a3c8)[_0x9ccab6(0x380)](u[_0x9ccab6(0x358)][_0x9ccab6(0x425)]),!this[_0x9ccab6(0x3da)][_0x9ccab6(0x370)](_0x55a3c8)||!this['_unitOnClients']['get'](_0x55a3c8)['has'](_0x2d16e8)){const _0x3b7bf3=this[_0x9ccab6(0x3da)][_0x9ccab6(0x3d0)](_0x55a3c8)||new Set();_0x3b7bf3[_0x9ccab6(0x251)](_0x2d16e8),this[_0x9ccab6(0x3da)][_0x9ccab6(0x305)](_0x55a3c8,_0x3b7bf3),this[_0x9ccab6(0x2e2)](_0x2d16e8);}}),_0xa39850||this[_0x26b034(0x255)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x26b034(0x304)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5cd82c){const _0x3a84c8=_0x351cc3;this[_0x3a84c8(0x488)](_0x5cd82c);const _0x500eb3=window[_0x3a84c8(0x389)](()=>{const _0x1aac11=_0x3a84c8;this[_0x1aac11(0x3da)][_0x1aac11(0x264)](_0x4db836=>{_0x4db836['delete'](_0x5cd82c);});},we*0x2);this['_clearOtherTimers'][_0x3a84c8(0x305)](_0x5cd82c,_0x500eb3);}[_0x351cc3(0x488)](_0x374d07){const _0x5efc92=_0x351cc3;if(this[_0x5efc92(0x26f)]['has'](_0x374d07)){const _0x202ab8=this[_0x5efc92(0x26f)][_0x5efc92(0x3d0)](_0x374d07);_0x202ab8&&window[_0x5efc92(0x326)](_0x202ab8),this['_clearOtherTimers'][_0x5efc92(0x305)](_0x374d07,null);}}['_handleLeaveEvent'](_0x22b2f3){const {memberID:_0x73f488,unitIDs:_0x1713b6}=_0x22b2f3;_0x1713b6['forEach'](_0x5e388f=>{const _0x2f2f81=_0xf8a9;var _0x9f460a;const _0x44112e=this['_unitOnClients'][_0x2f2f81(0x3d0)](_0x5e388f);_0x44112e&&(_0x44112e[_0x2f2f81(0x4a9)](_0x73f488),(_0x9f460a=this[_0x2f2f81(0x3c3)](_0x5e388f))==null||_0x9f460a['next'](_0x44112e[_0x2f2f81(0x35e)]===0x0?u[_0x2f2f81(0x358)][_0x2f2f81(0x287)]:u[_0x2f2f81(0x358)][_0x2f2f81(0x425)]));}),this['_removeClearOtherTimer'](_0x73f488);}[_0x351cc3(0x407)](_0x436cb5){const _0xf2de5b=_0x351cc3;this[_0xf2de5b(0x2e2)](_0x436cb5['memberID']);}[_0x351cc3(0x255)](_0x2542aa){const _0x2239dd=_0x351cc3;localStorage[_0x2239dd(0x390)](ye,JSON[_0x2239dd(0x2ef)](_0x2542aa));}[_0x351cc3(0x448)](){const _0x1dd135=_0x351cc3;this[_0x1dd135(0x288)]=window[_0x1dd135(0x23d)](()=>{const _0x204e5d=_0x1dd135;this[_0x204e5d(0x255)]({'type':0x2,'memberID':this[_0x204e5d(0x4bc)]});},we);}[_0x351cc3(0x3c3)](_0xe42f3){const _0x4703f5=_0x351cc3;return this[_0x4703f5(0x25b)][_0x4703f5(0x370)](_0xe42f3)||this[_0x4703f5(0x25b)][_0x4703f5(0x305)](_0xe42f3,new I[(_0x4703f5(0x263))](u['UnitStatus'][_0x4703f5(0x287)])),this[_0x4703f5(0x25b)][_0x4703f5(0x3d0)](_0xe42f3);}}exports[_0x351cc3(0x44d)]=Oe,exports[_0x351cc3(0x42d)]=je,exports[_0x351cc3(0x200)]=fs,exports[_0x351cc3(0x335)]=ke;