@univerjs-pro/collaboration-client-ui 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251212-6c41730

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 +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x37525a=_0x415c;(function(_0x280de2,_0x302f18){const _0x4abcea=_0x415c,_0x503524=_0x280de2();while(!![]){try{const _0x180716=-parseInt(_0x4abcea(0x22f))/0x1+-parseInt(_0x4abcea(0x379))/0x2*(parseInt(_0x4abcea(0x354))/0x3)+-parseInt(_0x4abcea(0x3aa))/0x4+parseInt(_0x4abcea(0x1d8))/0x5*(-parseInt(_0x4abcea(0x33e))/0x6)+parseInt(_0x4abcea(0x223))/0x7*(-parseInt(_0x4abcea(0x2ce))/0x8)+parseInt(_0x4abcea(0x1e9))/0x9*(-parseInt(_0x4abcea(0x32f))/0xa)+parseInt(_0x4abcea(0x39e))/0xb;if(_0x180716===_0x302f18)break;else _0x503524['push'](_0x503524['shift']());}catch(_0x36eee){_0x503524['push'](_0x503524['shift']());}}}(_0x5977,0x3c71e));var Xe=Object['defineProperty'],Ke=(_0x4d4164,_0x1ac913,_0x148c6b)=>_0x1ac913 in _0x4d4164?Xe(_0x4d4164,_0x1ac913,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x148c6b}):_0x4d4164[_0x1ac913]=_0x148c6b,_=(_0x52a1c1,_0x591fb7,_0x3b3a07)=>Ke(_0x52a1c1,typeof _0x591fb7!=_0x37525a(0x311)?_0x591fb7+'':_0x591fb7,_0x3b3a07);Object[_0x37525a(0x3ae)](exports,Symbol['toStringTag'],{'value':_0x37525a(0x394)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=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 pe({ref:_0x29afe1,..._0x1e6952}){const _0x48df80=_0x37525a,{icon:_0x56818a,id:_0x4913ff,className:_0x34f6e6,extend:_0x18b2a9,..._0x3c9560}=_0x1e6952,_0x800307=(_0x48df80(0x288)+_0x4913ff+'\x20'+(_0x34f6e6||''))['trim'](),_0x1427db=A[_0x48df80(0x1c2)]('_'+Qe());return $e(_0x56818a,''+_0x4913ff,{'defIds':_0x56818a['defIds'],'idSuffix':_0x1427db[_0x48df80(0x21a)]},{'ref':_0x29afe1,'className':_0x800307,..._0x3c9560},_0x18b2a9);}function $e(_0x1f8608,_0x3b4df5,_0x26cf9f,_0x5f5431,_0x2609e7){const _0x5adbe6=_0x37525a;return A[_0x5adbe6(0x426)](_0x1f8608[_0x5adbe6(0x1bf)],{'key':_0x3b4df5,...Je(_0x1f8608,_0x26cf9f,_0x2609e7),..._0x5f5431},(Ze(_0x1f8608,_0x26cf9f)['children']||[])['map']((_0x39b38e,_0x2e811f)=>$e(_0x39b38e,_0x3b4df5+'-'+_0x1f8608[_0x5adbe6(0x1bf)]+'-'+_0x2e811f,_0x26cf9f,void 0x0,_0x2609e7)));}function Je(_0x175a41,_0x588593,_0x59d491){const _0x2d4061=_0x37525a,_0x12a6d7={..._0x175a41[_0x2d4061(0x40d)]};_0x59d491!=null&&_0x59d491[_0x2d4061(0x2d0)]&&_0x12a6d7[_0x2d4061(0x401)]===_0x2d4061(0x2d0)&&(_0x12a6d7['fill']=_0x59d491[_0x2d4061(0x2d0)]),_0x175a41['tag']===_0x2d4061(0x334)&&_0x12a6d7['id']&&(_0x12a6d7['id']=_0x12a6d7['id']+_0x588593['idSuffix']),Object[_0x2d4061(0x1cf)](_0x12a6d7)[_0x2d4061(0x34f)](([_0x5adb7d,_0x4cc314])=>{const _0x5b6d2e=_0x2d4061;_0x5adb7d===_0x5b6d2e(0x334)&&typeof _0x4cc314==_0x5b6d2e(0x211)&&(_0x12a6d7[_0x5adb7d]=_0x4cc314[_0x5b6d2e(0x2c4)](/url\(#(.*)\)/,_0x5b6d2e(0x2e8)+_0x588593[_0x5b6d2e(0x336)]+')'));});const {defIds:_0x452f6b}=_0x588593;return!_0x452f6b||_0x452f6b[_0x2d4061(0x1cd)]===0x0||(_0x175a41[_0x2d4061(0x1bf)]===_0x2d4061(0x1b4)&&_0x12a6d7['xlink:href']&&(_0x12a6d7[_0x2d4061(0x1e2)]=_0x12a6d7[_0x2d4061(0x1e2)]+_0x588593[_0x2d4061(0x336)]),Object['entries'](_0x12a6d7)['forEach'](([_0x95c177,_0x344df2])=>{const _0x28f4ee=_0x2d4061;typeof _0x344df2==_0x28f4ee(0x211)&&(_0x12a6d7[_0x95c177]=_0x344df2[_0x28f4ee(0x2c4)](/url\(#(.*)\)/,_0x28f4ee(0x2e8)+_0x588593[_0x28f4ee(0x336)]+')'));})),_0x12a6d7;}function Ze(_0x3341ee,_0x4e1359){const _0x136073=_0x37525a;var _0x2dfe35;const {defIds:_0x5a8ac5}=_0x4e1359;return!_0x5a8ac5||_0x5a8ac5[_0x136073(0x1cd)]===0x0?_0x3341ee:_0x3341ee['tag']===_0x136073(0x2c0)&&((_0x2dfe35=_0x3341ee[_0x136073(0x289)])!=null&&_0x2dfe35[_0x136073(0x1cd)])?{..._0x3341ee,'children':_0x3341ee[_0x136073(0x289)][_0x136073(0x372)](_0x12bf7e=>typeof _0x12bf7e[_0x136073(0x40d)]['id']=='string'&&_0x5a8ac5&&_0x5a8ac5[_0x136073(0x252)](_0x12bf7e['attrs']['id'])?{..._0x12bf7e,'attrs':{..._0x12bf7e[_0x136073(0x40d)],'id':_0x12bf7e[_0x136073(0x40d)]['id']+_0x4e1359[_0x136073(0x336)]}}:_0x12bf7e)}:_0x3341ee;}function Qe(){const _0x563b7f=_0x37525a;return Math[_0x563b7f(0x385)]()[_0x563b7f(0x38d)](0x24)[_0x563b7f(0x388)](0x2,0x8);}pe[_0x37525a(0x24b)]='UniverIcon';const et={'tag':_0x37525a(0x31c),'attrs':{'xmlns':_0x37525a(0x1b7),'fill':_0x37525a(0x3a2),'viewBox':_0x37525a(0x1de),'width':_0x37525a(0x411),'height':_0x37525a(0x411)},'children':[{'tag':'g','attrs':{'clipPath':_0x37525a(0x2ac)},'children':[{'tag':_0x37525a(0x285),'attrs':{'stroke':_0x37525a(0x314),'d':_0x37525a(0x2ca),'strokeLinecap':_0x37525a(0x37d),'strokeLinejoin':_0x37525a(0x37d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x37525a(0x1fe),'attrs':{'id':_0x37525a(0x319)},'children':[{'tag':'path','attrs':{'fill':_0x37525a(0x273),'d':_0x37525a(0x340)}}]}]}],'defIds':[_0x37525a(0x319)]},xe=A[_0x37525a(0x2f9)](function(_0x229271,_0x1e81a0){const _0x2a486b=_0x37525a;return A[_0x2a486b(0x426)](pe,Object[_0x2a486b(0x20a)]({},_0x229271,{'id':_0x2a486b(0x357),'ref':_0x1e81a0,'icon':et}));});xe['displayName']=_0x37525a(0x244);const tt={'tag':_0x37525a(0x31c),'attrs':{'xmlns':_0x37525a(0x1b7),'fill':_0x37525a(0x3a2),'viewBox':_0x37525a(0x2b3),'width':_0x37525a(0x411),'height':_0x37525a(0x411)},'children':[{'tag':'g','attrs':{'clipPath':_0x37525a(0x2c5)},'children':[{'tag':_0x37525a(0x285),'attrs':{'stroke':_0x37525a(0x314),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x37525a(0x37d),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x37525a(0x2c0),'attrs':{},'children':[{'tag':_0x37525a(0x1fe),'attrs':{'id':_0x37525a(0x383)},'children':[{'tag':_0x37525a(0x285),'attrs':{'fill':'white','d':_0x37525a(0x340),'transform':_0x37525a(0x42d)}}]}]}],'defIds':[_0x37525a(0x383)]},Be=A[_0x37525a(0x2f9)](function(_0x17466a,_0x407758){const _0x3ead7e=_0x37525a;return A[_0x3ead7e(0x426)](pe,Object['assign']({},_0x17466a,{'id':_0x3ead7e(0x2e2),'ref':_0x407758,'icon':tt}));});Be[_0x37525a(0x24b)]=_0x37525a(0x1af);function st(_0x377e79){const _0x1a131f=_0x37525a;switch(_0x377e79){case u['CollaborationStatus'][_0x1a131f(0x455)]:return'collabStatus.offline';case u[_0x1a131f(0x348)][_0x1a131f(0x298)]:return _0x1a131f(0x2e1);case u[_0x1a131f(0x348)][_0x1a131f(0x24d)]:return _0x1a131f(0x430);case u[_0x1a131f(0x348)]['NOT_COLLAB']:return _0x1a131f(0x37f);case u[_0x1a131f(0x348)][_0x1a131f(0x416)]:case u[_0x1a131f(0x348)][_0x1a131f(0x1a7)]:return'collabStatus.syncing';case u[_0x1a131f(0x348)]['SYNCED']:case u[_0x1a131f(0x348)][_0x1a131f(0x3b4)]:return'collabStatus.synced';}}function it(_0x126098){const _0x310fd7=_0x37525a,{status$:_0x318b43}=_0x126098,_0x5cbcd3=O[_0x310fd7(0x23b)](_0x318b43,u[_0x310fd7(0x348)][_0x310fd7(0x245)]),_0x443dc8=O[_0x310fd7(0x428)](a[_0x310fd7(0x1fb)]),_0x5026d3=O[_0x310fd7(0x428)](u[_0x310fd7(0x2f2)]),_0x4c7f64=_0x5cbcd3!==u[_0x310fd7(0x348)][_0x310fd7(0x455)],_0x4b5de3=_0x443dc8['t'](st(_0x5cbcd3)),_0x2e5d11=_0x4c7f64?M['jsx'](Be,{}):M[_0x310fd7(0x26f)](xe,{}),_0x349de8=A[_0x310fd7(0x238)](()=>{const _0x3ee7fe=_0x310fd7;_0x4c7f64||_0x5026d3[_0x3ee7fe(0x1dd)]();},[_0x4c7f64,_0x5026d3]);function _0x21f474(){const _0x30d80e=_0x310fd7;return M[_0x30d80e(0x1ac)](_0x30d80e(0x3e3),{'className':_0x30d80e(0x3b3),'onClick':_0x349de8,'children':[M[_0x30d80e(0x26f)]('div',{'className':p[_0x30d80e(0x327)](_0x30d80e(0x2bc),{'univer-text-green-500':_0x4c7f64,'univer-text-red-500':!_0x4c7f64}),'children':_0x2e5d11}),M[_0x30d80e(0x26f)]('div',{'className':_0x30d80e(0x1b1),'children':_0x4b5de3})]});}return _0x4c7f64?_0x21f474():M[_0x310fd7(0x26f)](p[_0x310fd7(0x33c)],{'title':_0x443dc8['t']('collab-client.tooltip.reconnect'),'children':_0x21f474()});}var nt=Object[_0x37525a(0x268)],rt=(_0x3166e0,_0x1b4b74,_0x16000e,_0x273d7e)=>{const _0xd26704=_0x37525a;for(var _0x5ee4d3=_0x273d7e>0x1?void 0x0:_0x273d7e?nt(_0x1b4b74,_0x16000e):_0x1b4b74,_0x44d155=_0x3166e0[_0xd26704(0x1cd)]-0x1,_0x2a13a7;_0x44d155>=0x0;_0x44d155--)(_0x2a13a7=_0x3166e0[_0x44d155])&&(_0x5ee4d3=_0x2a13a7(_0x5ee4d3)||_0x5ee4d3);return _0x5ee4d3;},K=(_0x4122a4,_0x91f2b7)=>(_0x500488,_0x65cbcc)=>_0x91f2b7(_0x500488,_0x65cbcc,_0x4122a4);exports[_0x37525a(0x3bf)]=class extends a[_0x37525a(0x3cb)]{constructor(_0x294f6b,_0x81d8c1,_0x5dd9ab,_0x3c334e){const _0x2646a3=_0x37525a;super(),_(this,_0x2646a3(0x380),new I[(_0x2646a3(0x40f))](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0x2646a3(0x3cf)]=_0x294f6b,this[_0x2646a3(0x277)]=_0x81d8c1,this[_0x2646a3(0x3c9)]=_0x5dd9ab,this['_uiPartsService']=_0x3c334e,this[_0x2646a3(0x43a)](),this[_0x2646a3(0x259)]());}[_0x37525a(0x259)](){const _0x29bc2c=_0x37525a;this[_0x29bc2c(0x1ad)](this[_0x29bc2c(0x3cf)]['focused$']['pipe'](I['switchMap'](()=>{const _0x3316da=_0x29bc2c,_0x207143=this[_0x3316da(0x3cf)][_0x3316da(0x3c5)]();return _0x207143?this[_0x3316da(0x3c9)][_0x3316da(0x363)](_0x207143[_0x3316da(0x212)]()):I['of'](null);}),I['switchMap'](_0x101602=>_0x101602?_0x101602['status$']:I['of'](u[_0x29bc2c(0x348)][_0x29bc2c(0x245)])))[_0x29bc2c(0x375)](_0x45128f=>{const _0x15791b=_0x29bc2c;this[_0x15791b(0x380)][_0x15791b(0x19d)](_0x45128f);}));}[_0x37525a(0x43a)](){const _0x5eab06=_0x37525a;this['disposeWithMe'](this[_0x5eab06(0x2c3)][_0x5eab06(0x1a6)](O['BuiltInUIPart'][_0x5eab06(0x229)],()=>O['connectInjector'](ot({'status$':this[_0x5eab06(0x380)][_0x5eab06(0x255)]()}),this[_0x5eab06(0x277)])));}},exports[_0x37525a(0x3bf)]=rt([K(0x0,a[_0x37525a(0x2d4)]),K(0x1,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),K(0x2,a[_0x37525a(0x221)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x37525a(0x3bf)]);function ot(_0x18f4f2){const {status$:_0x9f0c88}=_0x18f4f2;return function(){return M['jsx'](it,{'status$':_0x9f0c88});};}const Oe=a[_0x37525a(0x234)](_0x37525a(0x26b));var at=Object[_0x37525a(0x268)],ct=(_0x53606f,_0x5d245b,_0x22d1e3,_0x56204e)=>{const _0x45e876=_0x37525a;for(var _0x21444f=_0x56204e>0x1?void 0x0:_0x56204e?at(_0x5d245b,_0x22d1e3):_0x5d245b,_0x205247=_0x53606f[_0x45e876(0x1cd)]-0x1,_0x331bd4;_0x205247>=0x0;_0x205247--)(_0x331bd4=_0x53606f[_0x205247])&&(_0x21444f=_0x331bd4(_0x21444f)||_0x21444f);return _0x21444f;},Y=(_0x5cbe4c,_0x29092c)=>(_0x2a15ed,_0xfa0e1b)=>_0x29092c(_0x2a15ed,_0xfa0e1b,_0x5cbe4c);exports[_0x37525a(0x31b)]=class extends a['RxDisposable']{constructor(_0x108bb7,_0x58778f,_0x2937a4,_0x5bcf41,_0x464b44){const _0x12dfdd=_0x37525a;super(),this[_0x12dfdd(0x31e)]=_0x108bb7,this['_logService']=_0x58778f,this['_commandService']=_0x2937a4,this[_0x12dfdd(0x2de)]=_0x5bcf41,_0x464b44?_0x464b44==null||_0x464b44['whenReady']()[_0x12dfdd(0x213)](()=>this[_0x12dfdd(0x41c)]()):(this[_0x12dfdd(0x1ae)]['debug'](_0x12dfdd(0x355),_0x12dfdd(0x264)),this[_0x12dfdd(0x41c)]());}async[_0x37525a(0x41c)](){const _0x3c2907=_0x37525a,_0x40ddcf=this[_0x3c2907(0x31e)][_0x3c2907(0x29f)](_0x3c2907(0x1e1)),_0x5c5545=this[_0x3c2907(0x31e)][_0x3c2907(0x29f)](_0x3c2907(0x236)),_0x5a4132=this[_0x3c2907(0x31e)][_0x3c2907(0x29f)](_0x3c2907(0x30c));if(!_0x40ddcf||!_0x5c5545){this[_0x3c2907(0x1ae)][_0x3c2907(0x413)](_0x3c2907(0x355),_0x3c2907(0x41d));return;}const _0xaf74aa=await this[_0x3c2907(0x2de)][_0x3c2907(0x36f)](_0x40ddcf,Number(_0x5c5545),_0x5a4132);_0xaf74aa&&_0xaf74aa instanceof a[_0x3c2907(0x33b)]&&this[_0x3c2907(0x25a)](_0xaf74aa);}async[_0x37525a(0x25a)](_0x16ad61){const _0x19a1c2=_0x37525a;await this[_0x19a1c2(0x3f3)](_0x16ad61),_0x16ad61[_0x19a1c2(0x2a8)][_0x19a1c2(0x1a0)](I[_0x19a1c2(0x382)](this[_0x19a1c2(0x3b6)]))['subscribe'](_0x3e4049=>{const _0x541ba9=_0x19a1c2;_0x3e4049&&this[_0x541ba9(0x417)](_0x3e4049);}),this[_0x19a1c2(0x31e)][_0x19a1c2(0x233)][_0x19a1c2(0x1a0)](I['takeUntil'](this[_0x19a1c2(0x3b6)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x16ad61));}[_0x37525a(0x417)](_0x37e8bd,_0x35b07b=!0x1){const _0x21d232=_0x37525a,_0x367780=this[_0x21d232(0x31e)][_0x21d232(0x29f)]('subunit');_0x37e8bd[_0x21d232(0x3ec)]()!==_0x367780&&this['_urlService']['setParam'](_0x21d232(0x30c),_0x37e8bd[_0x21d232(0x3ec)](),_0x35b07b);}async[_0x37525a(0x3f3)](_0x429d22){const _0x5bafec=_0x37525a;var _0x301f58;const _0x28efa9=this[_0x5bafec(0x31e)][_0x5bafec(0x29f)](_0x5bafec(0x30c));if(!_0x28efa9||!_0x429d22['getSheetBySheetId'](_0x28efa9)){const _0x3fe148=_0x429d22[_0x5bafec(0x1fd)]()[0x0],_0x4e9423=_0x429d22['getSheetBySheetId'](_0x3fe148);if(!_0x4e9423)return;this[_0x5bafec(0x417)](_0x4e9423,!0x0),await this[_0x5bafec(0x40e)]['executeCommand'](v[_0x5bafec(0x295)]['id'],{'unitId':_0x429d22[_0x5bafec(0x212)](),'subUnitId':_0x3fe148});return;}((_0x301f58=_0x429d22[_0x5bafec(0x3fc)]())==null?void 0x0:_0x301f58[_0x5bafec(0x3ec)]())!==_0x28efa9&&await this[_0x5bafec(0x40e)]['executeCommand'](v[_0x5bafec(0x295)]['id'],{'unitId':_0x429d22['getUnitId'](),'subUnitId':_0x28efa9});}},exports[_0x37525a(0x31b)]=ct([Y(0x0,Oe),Y(0x1,a[_0x37525a(0x1a3)]),Y(0x2,a[_0x37525a(0x37b)]),Y(0x3,a[_0x37525a(0x221)](u[_0x37525a(0x2ef)])),Y(0x4,a[_0x37525a(0x291)](qe[_0x37525a(0x3f0)]))],exports[_0x37525a(0x31b)]);var lt=Object[_0x37525a(0x268)],_t=(_0x277838,_0x24fd2d,_0x395b37,_0x3ffa4e)=>{const _0x1ca8f6=_0x37525a;for(var _0x247967=_0x3ffa4e>0x1?void 0x0:_0x3ffa4e?lt(_0x24fd2d,_0x395b37):_0x24fd2d,_0x34647a=_0x277838[_0x1ca8f6(0x1cd)]-0x1,_0x5b05d6;_0x34647a>=0x0;_0x34647a--)(_0x5b05d6=_0x277838[_0x34647a])&&(_0x247967=_0x5b05d6(_0x247967)||_0x247967);return _0x247967;},De=(_0x2d1fc5,_0x35b576)=>(_0x2c780f,_0x1f34b7)=>_0x35b576(_0x2c780f,_0x1f34b7,_0x2d1fc5);let me=class extends a[_0x37525a(0x38a)]{constructor(_0x14f0e9,_0x281c89){const _0x35fea5=_0x37525a;super(),this['_docClipboardService']=_0x14f0e9,this[_0x35fea5(0x282)]=_0x281c89,this['_init']();}[_0x37525a(0x41c)](){const _0x56e894=_0x37525a,_0x837a63=this;this['disposeWithMe'](this[_0x56e894(0x369)][_0x56e894(0x43e)]({'onBeforePasteImage':async _0x56e619=>{const _0x344bcb=_0x56e894,_0x466516=await _0x837a63[_0x344bcb(0x282)][_0x344bcb(0x2bb)](_0x56e619);return _0x466516?{'source':_0x466516[_0x344bcb(0x359)],'imageSourceType':_0x466516[_0x344bcb(0x192)]}:null;}}));}};me=_t([De(0x0,T[_0x37525a(0x3db)]),De(0x1,ze[_0x37525a(0x20d)])],me);const Ne=['purple.300',_0x37525a(0x347),'green.600','red.300',_0x37525a(0x1ff),'yellow.400'];class Re extends a[_0x37525a(0x3cb)]{constructor(){const _0x4022a4=_0x37525a;super(...arguments),_(this,_0x4022a4(0x25d),new Map()),_(this,_0x4022a4(0x3ef),0x0);}['assignAColorForMemberID'](_0x3a1e76){const _0x363e85=_0x37525a;if(this[_0x363e85(0x25d)][_0x363e85(0x3fa)](_0x3a1e76))return this[_0x363e85(0x25d)][_0x363e85(0x2e7)](_0x3a1e76);const _0x4878fe=Ne[this[_0x363e85(0x3ef)]];return this['_colorIndex']=(this[_0x363e85(0x3ef)]+0x1)%Ne[_0x363e85(0x1cd)],this[_0x363e85(0x25d)]['set'](_0x3a1e76,_0x4878fe),_0x4878fe;}}function Fe(_0x1f7acb){let _0x5e1299='';for(const _0x1374b1 of _0x1f7acb){const {startOffset:_0x36d72f,endOffset:_0x5cf125,isActive:_0x3a6b35,rangeType:_0x35f5d7,segmentId:_0x202c54,segmentPage:_0x1be4a4}=_0x1374b1;_0x5e1299['length']&&(_0x5e1299+=','),_0x5e1299+=_0x36d72f+':'+_0x5cf125+':'+(_0x3a6b35?'1':'0')+':'+_0x35f5d7+':'+_0x202c54+':'+_0x1be4a4;}return _0x5e1299;}function ht(_0x4fd39c){const _0x42b479=_0x37525a,_0x553f8c=_0x4fd39c[_0x42b479(0x1d3)](','),_0x511c8f=[];for(const _0x599f87 of _0x553f8c){const [_0x25ff4d,_0x1fab2b,_0xc9f29,_0x2dd56b,_0x43e7e0,_0x28de77]=_0x599f87[_0x42b479(0x1d3)](':');_0x511c8f[_0x42b479(0x2b7)]({'startOffset':Number(_0x25ff4d),'endOffset':Number(_0x1fab2b),'collapsed':_0x25ff4d===_0x1fab2b,'isActive':_0xc9f29==='1','rangeType':_0x2dd56b===a['DOC_RANGE_TYPE'][_0x42b479(0x20f)]?a['DOC_RANGE_TYPE'][_0x42b479(0x20f)]:a[_0x42b479(0x2ff)][_0x42b479(0x374)],'segmentId':typeof _0x43e7e0==_0x42b479(0x211)?String(_0x43e7e0):'','segmentPage':Number(_0x28de77!=null?_0x28de77:-0x1)});}return _0x511c8f['some'](_0x5bc78f=>_0x5bc78f['isActive'])||(_0x511c8f[0x0][_0x42b479(0x389)]=!0x0),_0x511c8f;}class be extends a[_0x37525a(0x38a)]{constructor(){const _0x2799a8=_0x37525a;super(...arguments),_(this,_0x2799a8(0x41a),new I[(_0x2799a8(0x40f))](null)),_(this,'collabCursorState$',this[_0x2799a8(0x41a)][_0x2799a8(0x255)]());}[_0x37525a(0x294)](_0xbd7b3b){const _0x556f50=_0x37525a,{unitID:_0x2a1434,memberID:_0x37fe1e,textRanges:_0x29cdaf}=_0xbd7b3b,_0x2017d9=Fe(_0x29cdaf);if(_0x2017d9==='')return;const _0xe2f718={'unitID':_0x2a1434,'memberID':_0x37fe1e,'selection':_0x2017d9};this[_0x556f50(0x41a)][_0x556f50(0x19d)](_0xe2f718);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x38bd88,_0xf059d7,_0x3d5dea,_0x25d5bb)=>{const _0x57747a=_0x37525a;for(var _0x7c7e2f=_0x25d5bb>0x1?void 0x0:_0x25d5bb?ut(_0xf059d7,_0x3d5dea):_0xf059d7,_0x1d938f=_0x38bd88[_0x57747a(0x1cd)]-0x1,_0x2d6b86;_0x1d938f>=0x0;_0x1d938f--)(_0x2d6b86=_0x38bd88[_0x1d938f])&&(_0x7c7e2f=_0x2d6b86(_0x7c7e2f)||_0x7c7e2f);return _0x7c7e2f;},U=(_0x1f2c87,_0x50fe8f)=>(_0x48d783,_0x230079)=>_0x50fe8f(_0x48d783,_0x230079,_0x1f2c87);const St=0x12c,dt=0x64;let ve=class extends a[_0x37525a(0x38a)]{constructor(_0x210663,_0x605bf3,_0x19d9e6,_0x566f69,_0x484553,_0xa195b9,_0x5d2ddb,_0x25953c,_0x22f4cd){const _0x4eccfa=_0x37525a;super(),_(this,'_online',!0x1),_(this,_0x4eccfa(0x41c),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x4eccfa(0x422)][_0x4eccfa(0x255)]()),_(this,_0x4eccfa(0x1ca),new I[(_0x4eccfa(0x40f))]([])),_(this,_0x4eccfa(0x222),this[_0x4eccfa(0x1ca)][_0x4eccfa(0x1a0)](I['debounceTime'](St))),_(this,_0x4eccfa(0x365),a[_0x4eccfa(0x3f6)](_0x5822fa=>{const _0x210f64=_0x4eccfa,_0x2034d8={'eventID':g[_0x210f64(0x1b5)][_0x210f64(0x3c0)],'data':{'unitID':this[_0x210f64(0x42f)],'memberID':this[_0x210f64(0x3ac)][_0x210f64(0x30d)](),'selection':Fe(_0x5822fa)}};this[_0x210f64(0x3ac)]['send'](_0x2034d8,this[_0x210f64(0x42f)]);},dt)),(this[_0x4eccfa(0x42f)]=_0x210663,this['_session']=_0x605bf3,this[_0x4eccfa(0x277)]=_0x19d9e6,this[_0x4eccfa(0x393)]=_0x566f69,this['_memberService']=_0x484553,this[_0x4eccfa(0x263)]=_0xa195b9,this['_transformService']=_0x5d2ddb,this[_0x4eccfa(0x3cf)]=_0x25953c,this[_0x4eccfa(0x40e)]=_0x22f4cd);}get[_0x37525a(0x34a)](){const _0x5bc85d=_0x37525a;return this[_0x5bc85d(0x422)]['getValue']();}get['roomMembers'](){const _0x570150=_0x37525a;return this[_0x570150(0x1ca)][_0x570150(0x243)]();}['dispose'](){const _0x2939a3=_0x37525a;super['dispose'](),this[_0x2939a3(0x422)][_0x2939a3(0x19d)](new Map()),this[_0x2939a3(0x422)][_0x2939a3(0x24f)](),this[_0x2939a3(0x1ca)]['next']([]),this['_roomMembers$'][_0x2939a3(0x24f)]();}[_0x37525a(0x3b8)](){const _0x4a4418=_0x37525a;this[_0x4a4418(0x41c)]||(this[_0x4a4418(0x41c)]=!0x0,this['_session'][_0x4a4418(0x2a9)][_0x4a4418(0x1a0)](I[_0x4a4418(0x382)](this[_0x4a4418(0x3b6)]))[_0x4a4418(0x375)](_0x44e111=>{const _0x5d6cac=_0x4a4418;_0x44e111===u[_0x5d6cac(0x302)][_0x5d6cac(0x281)]?this[_0x5d6cac(0x3d7)]():this[_0x5d6cac(0x454)]();}),this['_session'][_0x4a4418(0x2f5)][_0x4a4418(0x1a0)](I[_0x4a4418(0x382)](this['dispose$']))[_0x4a4418(0x375)](_0x164af7=>{const _0x576df7=_0x4a4418,_0x5124de=_0x164af7[_0x576df7(0x30f)];_0x5124de===g[_0x576df7(0x1b5)][_0x576df7(0x3c0)]&&this['_onCursorUpdate'](_0x164af7),_0x5124de===g[_0x576df7(0x1b5)][_0x576df7(0x2f1)]&&this[_0x576df7(0x18c)](_0x164af7);}),this['disposeWithMe'](this['_commandService'][_0x4a4418(0x1ba)](_0x88f14b=>{const _0x4db939=_0x4a4418,_0x577e90=_0x88f14b[_0x4db939(0x1db)];_0x577e90!=null&&this[_0x4db939(0x360)]&&_0x88f14b['id']===V[_0x4db939(0x250)]['id']&&_0x577e90['unitId']===this[_0x4db939(0x42f)]&&_0x577e90[_0x4db939(0x18b)]===!0x1&&_0x577e90[_0x4db939(0x299)][_0x4db939(0x1cd)]>0x0&&this['_updateLocalCursor'](_0x577e90[_0x4db939(0x299)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x4a4418(0x1a0)](I['takeUntil'](this[_0x4a4418(0x3b6)]))[_0x4a4418(0x375)](_0x330a2e=>{const _0x7fe610=_0x4a4418;if((_0x330a2e==null?void 0x0:_0x330a2e['unitID'])!==this['unitID'])return;const _0x109975={'eventID':g[_0x7fe610(0x1b5)][_0x7fe610(0x3c0)],'data':_0x330a2e};this['_onCursorUpdate'](_0x109975);}),this[_0x4a4418(0x1ad)](this['_commandService']['onCommandExecuted'](_0x35a927=>{const _0x407b2b=_0x4a4418;if(_0x35a927['params']==null)return;const _0x14b281=_0x35a927[_0x407b2b(0x1db)];if(_0x35a927['id']!==V['RichTextEditingMutation']['id']||_0x14b281[_0x407b2b(0x1c7)]!==this['unitID'])return;const _0x4b2215={'id':'doc.mutation.rich-text-editing','params':_0x14b281},_0x2c8989=this[_0x407b2b(0x34a)];for(const [_0x5ef6cf,_0x474fa9]of _0x2c8989){const _0x391ac8={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x407b2b(0x42f)],'actions':null,'textRanges':_0x474fa9[_0x407b2b(0x299)]}},_0x20bf0e=this[_0x407b2b(0x1fa)][_0x407b2b(0x225)](_0x4b2215,_0x391ac8,!0x1);if(g[_0x407b2b(0x308)](_0x20bf0e))throw _0x20bf0e[_0x407b2b(0x262)];_0x2c8989['set'](_0x5ef6cf,{..._0x474fa9,'ranges':_0x20bf0e['m2Prime'][_0x407b2b(0x1db)][_0x407b2b(0x349)]});}queueMicrotask(()=>{const _0x233659=_0x407b2b;this[_0x233659(0x422)][_0x233659(0x19d)](_0x2c8989);});})));}[_0x37525a(0x3ca)](_0x27711d){const _0x46add2=_0x37525a;var _0x130ab,_0x35a2ef;const {memberID:_0xe465e9,selection:_0x6f41c4}=_0x27711d[_0x46add2(0x284)],_0x3a4a32=ht(_0x6f41c4),_0x2332f1=(_0x35a2ef=(_0x130ab=this[_0x46add2(0x242)][_0x46add2(0x2d5)](this[_0x46add2(0x42f)],_0xe465e9))==null?void 0x0:_0x130ab[_0x46add2(0x358)])!=null?_0x35a2ef:'Unknown\x20user',_0x24459b={'color':this[_0x46add2(0x393)][_0x46add2(0x19e)](_0xe465e9),'name':_0x2332f1,'ranges':_0x3a4a32},_0x2829d5=this[_0x46add2(0x34a)];_0x2829d5[_0x46add2(0x3d1)](_0xe465e9,_0x24459b),this[_0x46add2(0x422)][_0x46add2(0x19d)](_0x2829d5);}[_0x37525a(0x18c)](_0x40b152){const _0x3efb5d=_0x37525a,{memberID:_0x15ac6e}=_0x40b152['data'],_0x2ba300=this['cursorInfo'];_0x2ba300[_0x3efb5d(0x3ed)](_0x15ac6e),this[_0x3efb5d(0x422)]['next'](_0x2ba300);}[_0x37525a(0x3d7)](){const _0x28269e=_0x37525a;var _0x16cb22;if(this[_0x28269e(0x360)]=!0x0,((_0x16cb22=this['_univerInstanceService'][_0x28269e(0x3c5)]())==null?void 0x0:_0x16cb22[_0x28269e(0x212)]())!==this['unitID'])return;const _0x1d93b3=this[_0x28269e(0x277)][_0x28269e(0x2e7)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x28269e(0x412)](_0x1d93b3)&&_0x1d93b3[_0x28269e(0x1cd)]>0x0&&this['_updateLocalCursor'](_0x1d93b3);}['_toggleOffline'](){const _0x1a0e41=_0x37525a;this[_0x1a0e41(0x360)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x37525a(0x300)])),U(0x3,a[_0x37525a(0x221)](Re)),U(0x4,a[_0x37525a(0x221)](u['MemberService'])),U(0x5,a[_0x37525a(0x221)](be)),U(0x6,g['ITransformService']),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x37525a(0x37b)])],ve);var ft=Object[_0x37525a(0x268)],mt=(_0x563701,_0x5ef1c9,_0x225f5e,_0x3e01ae)=>{for(var _0x35b776=_0x3e01ae>0x1?void 0x0:_0x3e01ae?ft(_0x5ef1c9,_0x225f5e):_0x5ef1c9,_0x3f187a=_0x563701['length']-0x1,_0xfedc09;_0x3f187a>=0x0;_0x3f187a--)(_0xfedc09=_0x563701[_0x3f187a])&&(_0x35b776=_0xfedc09(_0x35b776)||_0x35b776);return _0x35b776;},w=(_0x24c892,_0x4df508)=>(_0x2b7749,_0xccac64)=>_0x4df508(_0x2b7749,_0xccac64,_0x24c892);const vt=0x12c,gt=0x64,Et=()=>{let _0x23d70a=[],_0x5b23d2=!0x1;return _0x37f986=>{const _0x112f90=_0x415c;_0x23d70a[_0x112f90(0x2b7)](_0x37f986),_0x5b23d2||(_0x5b23d2=!0x0,setTimeout(()=>{const _0x7ee10a=_0x112f90;_0x23d70a[_0x7ee10a(0x34f)](_0x17c67b=>_0x17c67b()),_0x23d70a=[],_0x5b23d2=!0x1;}));};};function _0x415c(_0x3c8c58,_0x54dda3){_0x3c8c58=_0x3c8c58-0x189;const _0x5977a8=_0x5977();let _0x415c72=_0x5977a8[_0x3c8c58];return _0x415c72;}let ge=class extends a[_0x37525a(0x38a)]{constructor(_0x94fa7,_0x27f377,_0x190505,_0x139089,_0x261139,_0x4c67c9,_0x341345,_0x18ca0f){const _0x7e7bb8=_0x37525a;super(),_(this,'_online',!0x1),_(this,_0x7e7bb8(0x41c),!0x1),_(this,'_cursorInfo$',new I[(_0x7e7bb8(0x40f))](new Map())),_(this,'cursorInfo$',this[_0x7e7bb8(0x422)]['asObservable']()),_(this,_0x7e7bb8(0x1ca),new I[(_0x7e7bb8(0x40f))]([])),_(this,_0x7e7bb8(0x222),this[_0x7e7bb8(0x1ca)][_0x7e7bb8(0x1a0)](I[_0x7e7bb8(0x3ad)](vt))),_(this,_0x7e7bb8(0x365),a[_0x7e7bb8(0x3f6)]((_0x54d963,_0xe17fc2)=>{const _0x1799cb=_0x7e7bb8,_0x25f003={'eventID':g[_0x1799cb(0x1b5)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1799cb(0x42f)],'memberID':this['_session'][_0x1799cb(0x30d)](),'selection':B[_0x1799cb(0x3e4)](_0x54d963,_0xe17fc2['range'])}};this['_session'][_0x1799cb(0x267)](_0x25f003,this[_0x1799cb(0x42f)]);},gt)),(this[_0x7e7bb8(0x42f)]=_0x94fa7,this[_0x7e7bb8(0x3ac)]=_0x27f377,this[_0x7e7bb8(0x277)]=_0x190505,this['_colorAssignService']=_0x139089,this[_0x7e7bb8(0x242)]=_0x261139,this[_0x7e7bb8(0x3cf)]=_0x4c67c9,this[_0x7e7bb8(0x40e)]=_0x341345,this[_0x7e7bb8(0x2b9)]=_0x18ca0f);}get[_0x37525a(0x34a)](){const _0x21c034=_0x37525a;return this[_0x21c034(0x422)][_0x21c034(0x243)]();}get[_0x37525a(0x21b)](){const _0x1c7666=_0x37525a;return this[_0x1c7666(0x1ca)][_0x1c7666(0x243)]();}[_0x37525a(0x37c)](){const _0x4e5624=_0x37525a;super[_0x4e5624(0x37c)](),this[_0x4e5624(0x422)][_0x4e5624(0x19d)](new Map()),this[_0x4e5624(0x422)][_0x4e5624(0x24f)](),this[_0x4e5624(0x1ca)]['next']([]),this[_0x4e5624(0x1ca)][_0x4e5624(0x24f)]();}[_0x37525a(0x3b8)](){const _0x22b8a=_0x37525a;this[_0x22b8a(0x41c)]||(this[_0x22b8a(0x41c)]=!0x0,this['_session'][_0x22b8a(0x2a9)][_0x22b8a(0x1a0)](I[_0x22b8a(0x382)](this[_0x22b8a(0x3b6)]))['subscribe'](_0x45a9a6=>{const _0x55b37a=_0x22b8a;_0x45a9a6===u[_0x55b37a(0x302)]['ONLINE']?this['_toggleOnline']():this[_0x55b37a(0x454)]();}),this[_0x22b8a(0x3ac)]['event$'][_0x22b8a(0x1a0)](I[_0x22b8a(0x382)](this[_0x22b8a(0x3b6)]))[_0x22b8a(0x375)](_0x13ad3c=>{const _0x5cc2e7=_0x22b8a,_0x2f703b=_0x13ad3c['eventID'];_0x2f703b===g[_0x5cc2e7(0x1b5)][_0x5cc2e7(0x3c0)]&&this[_0x5cc2e7(0x3ca)](_0x13ad3c),_0x2f703b===g[_0x5cc2e7(0x1b5)][_0x5cc2e7(0x2f1)]&&this['_onCursorDelete'](_0x13ad3c);}),this[_0x22b8a(0x2a1)](),this[_0x22b8a(0x1ad)](this['_commandService'][_0x22b8a(0x1ba)](_0x34de5f=>{const _0x533fca=_0x22b8a;if(this[_0x533fca(0x360)]&&_0x34de5f['id']===v[_0x533fca(0x1e7)]['id']&&_0x34de5f['params'][_0x533fca(0x1c7)]===this['unitID']){const _0x3faf1b=_0x34de5f[_0x533fca(0x1db)];this[_0x533fca(0x365)](_0x3faf1b[_0x533fca(0x405)],_0x3faf1b[_0x533fca(0x3ce)][0x0]);}})));}['_onCursorUpdate'](_0x2bf38e){const _0x34534f=_0x37525a;var _0x3dd103,_0x179b48;const {memberID:_0x3c5f74,selection:_0x1ba7c1}=_0x2bf38e[_0x34534f(0x284)],{sheetName:_0x1f1ece,range:_0x1a2a68}=B[_0x34534f(0x42b)](_0x1ba7c1),_0x9a2d13={'name':(_0x179b48=(_0x3dd103=this[_0x34534f(0x242)]['getMember'](this[_0x34534f(0x42f)],_0x3c5f74))==null?void 0x0:_0x3dd103[_0x34534f(0x358)])!=null?_0x179b48:_0x34534f(0x36c),'range':this[_0x34534f(0x384)](_0x1f1ece,_0x1a2a68),'sheetID':_0x1f1ece,'color':this[_0x34534f(0x393)][_0x34534f(0x19e)](_0x3c5f74),'selection':_0x1ba7c1},_0xaa0c6c=this['cursorInfo'];_0xaa0c6c[_0x34534f(0x3d1)](_0x3c5f74,_0x9a2d13),this[_0x34534f(0x422)][_0x34534f(0x19d)](_0xaa0c6c);}[_0x37525a(0x18c)](_0x25a00b){const _0x4b2a53=_0x37525a,{memberID:_0x5ed0bc}=_0x25a00b[_0x4b2a53(0x284)],_0x18d8ea=this[_0x4b2a53(0x34a)];_0x18d8ea[_0x4b2a53(0x3ed)](_0x5ed0bc),this[_0x4b2a53(0x422)][_0x4b2a53(0x19d)](_0x18d8ea);}[_0x37525a(0x384)](_0x4ac0bc,_0x253a0d){const _0x826dbd=_0x37525a;var _0x1a714f,_0xf064e2;const _0x587dfb=(_0xf064e2=(_0x1a714f=this['_univerInstanceService'][_0x826dbd(0x32b)](this[_0x826dbd(0x42f)]))==null?void 0x0:_0x1a714f[_0x826dbd(0x333)](_0x4ac0bc))==null?void 0x0:_0xf064e2[_0x826dbd(0x35e)]();return(_0x587dfb==null?void 0x0:_0x587dfb[_0x826dbd(0x414)](_0x21c2fe=>a[_0x826dbd(0x304)][_0x826dbd(0x3d8)](_0x21c2fe,_0x253a0d)))||_0x253a0d;}[_0x37525a(0x2a1)](){const _0x5a914a=_0x37525a,_0x55fb3b=new a[(_0x5a914a(0x283))](),_0x539da1=Et(),_0x3cd634=()=>{const _0x25728=_0x5a914a;_0x55fb3b[_0x25728(0x37c)]();const _0x8fff0a=(_0x5ead4e,_0x891534,_0x27fcd0,_0x2aae8d)=>{const _0x325722=_0x25728;let _0x13e9d3=[];switch(_0x5ead4e['id']){case v[_0x325722(0x3ee)][_0x325722(0x1c9)]:{_0x13e9d3=v[_0x325722(0x27f)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x3d2)]:{_0x13e9d3=v[_0x325722(0x421)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)]['InsertColCommandId']:{_0x13e9d3=v[_0x325722(0x215)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x1be)]:{_0x13e9d3=v[_0x325722(0x3a6)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x214)]:{_0x13e9d3=v[_0x325722(0x256)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x1e8)]:{_0x13e9d3=v[_0x325722(0x2d2)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x3cc)]:{_0x13e9d3=v[_0x325722(0x2fe)](_0x5ead4e,_0x2aae8d);break;}case v[_0x325722(0x3ee)][_0x325722(0x3ff)]:{_0x13e9d3=v['handleIRemoveCol'](_0x5ead4e,_0x2aae8d);break;}case v['EffectRefRangId'][_0x325722(0x39a)]:{_0x13e9d3=v['handleIRemoveRow'](_0x5ead4e,_0x2aae8d);break;}}const _0x5e158c=v['runRefRangeMutations'](_0x13e9d3,_0x2aae8d),_0x1d6e1b=this[_0x325722(0x34a)]['get'](_0x891534);if(_0x1d6e1b&&_0x5e158c){const _0x3e14e7={..._0x1d6e1b,'range':_0x5e158c};this[_0x325722(0x34a)][_0x325722(0x3d1)](_0x891534,_0x3e14e7),_0x539da1(()=>{const _0x49e07a=_0x325722,_0x2d3b42=this[_0x49e07a(0x2b9)][_0x49e07a(0x3c1)](_0x5e158c,_0x3e5914=>(_0x2d3b42[_0x49e07a(0x37c)](),_0x8fff0a(_0x3e5914,_0x891534,_0x27fcd0,_0x5e158c)));_0x55fb3b[_0x49e07a(0x276)](_0x2d3b42);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x25728(0x34f)]((_0x570cba,_0x2b9863)=>{const _0x289366=_0x25728,{range:_0x4688ab,sheetID:_0x4046f1}=_0x570cba,_0x26cccf=this[_0x289366(0x2b9)][_0x289366(0x3c1)](_0x4688ab,_0x220752=>(_0x26cccf[_0x289366(0x37c)](),_0x8fff0a(_0x220752,_0x2b9863,_0x4046f1,_0x4688ab)));_0x55fb3b['add'](_0x26cccf);});};this['disposeWithMe'](a[_0x5a914a(0x1cb)](this['_cursorInfo$']['subscribe'](()=>{_0x3cd634();})));}['_toggleOnline'](){const _0x57a2ac=_0x37525a;var _0x106b34,_0x450bfd;if(this[_0x57a2ac(0x360)]=!0x0,((_0x106b34=this[_0x57a2ac(0x3cf)][_0x57a2ac(0x3c5)]())==null?void 0x0:_0x106b34[_0x57a2ac(0x212)]())!==this['unitID'])return;const _0x29a8c2=(_0x450bfd=this[_0x57a2ac(0x277)][_0x57a2ac(0x2e7)](v['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x450bfd[0x0],_0x1e25ee=this['_univerInstanceService'][_0x57a2ac(0x1ed)](a['UniverInstanceType'][_0x57a2ac(0x22d)])[_0x57a2ac(0x3fc)]();_0x29a8c2&&_0x1e25ee&&this[_0x57a2ac(0x365)](_0x1e25ee[_0x57a2ac(0x3ec)](),_0x29a8c2);}[_0x37525a(0x454)](){const _0x350b76=_0x37525a;this[_0x350b76(0x360)]=!0x1;}};ge=mt([w(0x2,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),w(0x3,a[_0x37525a(0x221)](Re)),w(0x4,a[_0x37525a(0x221)](u[_0x37525a(0x1b9)])),w(0x5,a[_0x37525a(0x2d4)]),w(0x6,a[_0x37525a(0x37b)]),w(0x7,a[_0x37525a(0x221)](v[_0x37525a(0x191)]))],ge);var Ct=Object[_0x37525a(0x268)],Tt=(_0x15c7c0,_0x50c2d5,_0x8a92b6,_0x2abf82)=>{const _0x4cfa2d=_0x37525a;for(var _0x25bf86=_0x2abf82>0x1?void 0x0:_0x2abf82?Ct(_0x50c2d5,_0x8a92b6):_0x50c2d5,_0x11d7eb=_0x15c7c0[_0x4cfa2d(0x1cd)]-0x1,_0x248589;_0x11d7eb>=0x0;_0x11d7eb--)(_0x248589=_0x15c7c0[_0x11d7eb])&&(_0x25bf86=_0x248589(_0x25bf86)||_0x25bf86);return _0x25bf86;},ce=(_0x2b18fd,_0x5c4f22)=>(_0x571852,_0x1895f7)=>_0x5c4f22(_0x571852,_0x1895f7,_0x2b18fd);let F=class extends a['RxDisposable']{constructor(_0x46b271,_0x520a77,_0x32153f){const _0x332db9=_0x37525a;super(),_(this,_0x332db9(0x23a),new Map()),_(this,_0x332db9(0x34d),new I[(_0x332db9(0x397))]()),(this[_0x332db9(0x3cf)]=_0x46b271,this['_injector']=_0x520a77,this[_0x332db9(0x246)]=_0x32153f,this[_0x332db9(0x41c)]());}['dispose'](){const _0x5ce422=_0x37525a;super[_0x5ce422(0x37c)](),this[_0x5ce422(0x34d)][_0x5ce422(0x24f)](),this[_0x5ce422(0x23a)][_0x5ce422(0x34f)](_0x4a3f7e=>_0x4a3f7e['dispose']());}[_0x37525a(0x3c6)](_0x2d703d){const _0x46ba8c=_0x37525a;return this[_0x46ba8c(0x23a)]['has'](_0x2d703d)?this['_entities']['get'](_0x2d703d)['cursorInfo$']:this[_0x46ba8c(0x34d)][_0x46ba8c(0x1a0)](I[_0x46ba8c(0x307)](_0x2bf9e5=>_0x2bf9e5[_0x46ba8c(0x42f)]===_0x2d703d),I[_0x46ba8c(0x3dc)](_0x3a8e6c=>_0x3a8e6c['cursorInfo$']));}[_0x37525a(0x41c)](){const _0x3228ce=_0x37525a;this['_univerInstanceService'][_0x3228ce(0x248)](a[_0x3228ce(0x409)]['UNIVER_SHEET'])[_0x3228ce(0x1a0)](I[_0x3228ce(0x382)](this['dispose$']))[_0x3228ce(0x375)](async _0x1f720e=>{const _0x824662=_0x3228ce,_0x349893=_0x1f720e[_0x824662(0x212)](),_0x2ad450=await this['_startSheetCollabCursor'](_0x349893);this[_0x824662(0x34d)][_0x824662(0x19d)](_0x2ad450),this['_entities']['set'](_0x349893,_0x2ad450);}),this[_0x3228ce(0x3cf)][_0x3228ce(0x248)](a[_0x3228ce(0x409)]['UNIVER_DOC'])['pipe'](I[_0x3228ce(0x382)](this[_0x3228ce(0x3b6)]))[_0x3228ce(0x1a0)](I['filter'](_0x3b4a01=>!_0x3b4a01[_0x3228ce(0x212)]()['startsWith']('__')))[_0x3228ce(0x375)](async _0x35d97d=>{const _0x48935c=_0x3228ce,_0x3a9201=_0x35d97d[_0x48935c(0x212)](),_0x2e1969=await this['_startDocCollabCursor'](_0x3a9201);this[_0x48935c(0x34d)][_0x48935c(0x19d)](_0x2e1969),this['_entities'][_0x48935c(0x3d1)](_0x3a9201,_0x2e1969);}),I[_0x3228ce(0x270)](this['_univerInstanceService'][_0x3228ce(0x353)](a[_0x3228ce(0x409)][_0x3228ce(0x279)]),this[_0x3228ce(0x3cf)][_0x3228ce(0x353)](a[_0x3228ce(0x409)]['UNIVER_SHEET']))[_0x3228ce(0x1a0)](I[_0x3228ce(0x382)](this[_0x3228ce(0x3b6)]))[_0x3228ce(0x375)](_0x3ebda5=>{const _0x641482=_0x3228ce,_0x2ac63f=_0x3ebda5['getUnitId'](),_0x19d4cd=this['_entities'][_0x641482(0x2e7)](_0x2ac63f);_0x19d4cd&&(_0x19d4cd['dispose'](),this[_0x641482(0x23a)][_0x641482(0x3ed)](_0x2ac63f));});}async[_0x37525a(0x1b0)](_0xc24040){const _0xc3e5cf=_0x37525a,_0x3c5751=await this[_0xc3e5cf(0x246)][_0xc3e5cf(0x32d)](_0xc24040),_0x253788=this[_0xc3e5cf(0x277)]['createInstance'](ge,_0xc24040,_0x3c5751);return _0x253788[_0xc3e5cf(0x3b8)](),_0x253788;}async['_startDocCollabCursor'](_0x185a90){const _0x4f9628=_0x37525a,_0x395596=await this[_0x4f9628(0x246)][_0x4f9628(0x32d)](_0x185a90),_0x486038=this[_0x4f9628(0x277)][_0x4f9628(0x447)](ve,_0x185a90,_0x395596);return _0x486038[_0x4f9628(0x3b8)](),_0x486038;}};F=Tt([ce(0x0,a[_0x37525a(0x2d4)]),ce(0x1,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),ce(0x2,a['Inject'](u[_0x37525a(0x2f2)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x1c17d6,_0x2cc56e){const _0x1cb406=_0x37525a;let {radius:_0xcb8c91,width:_0x972596,height:_0x219a37}=_0x2cc56e;_0xcb8c91=_0xcb8c91!=null?_0xcb8c91:0x0,_0x972596=_0x972596!=null?_0x972596:0x1e,_0x219a37=_0x219a37!=null?_0x219a37:0x1e;let _0x4c6f17=0x0,_0x27247d=0x0,_0x56e505=0x0;_0x4c6f17=_0x27247d=_0x56e505=Math[_0x1cb406(0x351)](_0xcb8c91,_0x972596/0x2,_0x219a37/0x2),_0x1c17d6[_0x1cb406(0x292)](),_0x1c17d6[_0x1cb406(0x3d5)](_0x4c6f17,0x0),_0x1c17d6['lineTo'](_0x972596-_0x27247d,0x0),_0x1c17d6[_0x1cb406(0x356)](_0x972596-_0x27247d,_0x27247d,_0x27247d,Math['PI']*0x3/0x2,0x0,!0x1),_0x1c17d6['lineTo'](_0x972596,_0x219a37-_0x56e505),_0x1c17d6[_0x1cb406(0x356)](_0x972596-_0x56e505,_0x219a37-_0x56e505,_0x56e505,0x0,Math['PI']/0x2,!0x1),_0x1c17d6[_0x1cb406(0x2f6)](0x0,_0x219a37),_0x1c17d6[_0x1cb406(0x2f6)](0x0,_0x4c6f17),_0x1c17d6[_0x1cb406(0x356)](_0x4c6f17,_0x4c6f17,_0x4c6f17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1c17d6[_0x1cb406(0x38f)](),_0x2cc56e[_0x1cb406(0x401)]&&(_0x1c17d6[_0x1cb406(0x193)](),_0x1c17d6[_0x1cb406(0x445)]=_0x2cc56e[_0x1cb406(0x401)],_0x2cc56e[_0x1cb406(0x21e)]==='evenodd'?_0x1c17d6['fill'](_0x1cb406(0x366)):_0x1c17d6[_0x1cb406(0x401)](),_0x1c17d6[_0x1cb406(0x440)]());}class re extends C['Shape']{constructor(_0x13c7c8,_0x435d72){const _0x1ecc11=_0x37525a;super(_0x13c7c8,_0x435d72),_(this,_0x1ecc11(0x23c)),_(this,_0x1ecc11(0x437)),(this[_0x1ecc11(0x23c)]=_0x435d72==null?void 0x0:_0x435d72[_0x1ecc11(0x23c)],this['text']=_0x435d72==null?void 0x0:_0x435d72[_0x1ecc11(0x437)]);}static['drawWith'](_0x473f50,_0x12ea36){const _0x3552f0=_0x37525a,{text:_0x17876a,color:_0x2aba2f}=_0x12ea36;_0x473f50[_0x3552f0(0x193)](),_0x473f50['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1b9463=_0x473f50[_0x3552f0(0x361)](_0x17876a)[_0x3552f0(0x24a)],_0x5d2ec6=Math['min'](_0x1b9463+0x2*le,Ue);Ot(_0x473f50,{'height':X,'radius':0x4,'width':_0x5d2ec6,'fill':_0x2aba2f}),_0x473f50['fillStyle']=_0x3552f0(0x23d);const _0x5ab6c3=le,_0x5475d7=X-pt,_0x5750eb=Ue-0x2*le;if(_0x1b9463>_0x5750eb){let _0x72d774='',_0x4b4e24=0x0;for(const _0x5ebeea of _0x17876a){const _0x528547=_0x473f50[_0x3552f0(0x361)](_0x5ebeea)[_0x3552f0(0x24a)];if(_0x4b4e24+_0x528547<=_0x5750eb-_0x473f50[_0x3552f0(0x361)]('...')['width'])_0x72d774+=_0x5ebeea,_0x4b4e24+=_0x528547;else{_0x72d774+=_0x3552f0(0x2e9);break;}}_0x473f50[_0x3552f0(0x2e5)](_0x72d774,_0x5ab6c3,_0x5475d7);}else _0x473f50[_0x3552f0(0x2e5)](_0x17876a,_0x5ab6c3,_0x5475d7);_0x473f50['restore']();}[_0x37525a(0x3a3)](_0x1f7e71){re['drawWith'](_0x1f7e71,this);}}const _e=_0x37525a(0x1f1),Rt='collab-text-range-',bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x37525a(0x438);class Le{constructor(_0x40ca13,_0x5cb355,_0x3f8f9d,_0x45ada0){const _0x45e8b9=_0x37525a;_(this,_0x45e8b9(0x3d6),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x45e8b9(0x44a),null),_(this,'_hideTimer',null),_(this,_0x45e8b9(0x439),null),(this[_0x45e8b9(0x345)]=_0x40ca13,this['_scene']=_0x5cb355,this[_0x45e8b9(0x19a)]=_0x3f8f9d,this[_0x45e8b9(0x3d0)]=_0x45ada0,this[_0x45e8b9(0x429)]());}set[_0x37525a(0x3f4)](_0x16e6fd){const _0xdca589=_0x37525a;_0x16e6fd?(this['_anchorDot']&&this[_0xdca589(0x44a)][_0xdca589(0x42e)](),this['_textBubble']&&this[_0xdca589(0x404)][_0xdca589(0x1f0)]()):(this[_0xdca589(0x44a)]&&this['_anchorDot'][_0xdca589(0x1f0)](),this['_textBubble']&&this[_0xdca589(0x404)]['hide']());}[_0x37525a(0x37c)](){const _0xcc5126=_0x37525a;for(const _0x5494b8 of this[_0xcc5126(0x3d6)])_0x5494b8[_0xcc5126(0x37c)]();this['_textBubble']&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0xcc5126(0x1d2)]&&this['_anchor'][_0xcc5126(0x37c)](),this[_0xcc5126(0x439)]&&this[_0xcc5126(0x439)]();}[_0x37525a(0x429)](){const _0x281f12=_0x37525a;var _0x3f813c;const {_docSkeleton:_0x16be20,_document:_0x428c11}=this,{color:_0x90a0ad,name:_0x3b6f20,ranges:_0x4d6b93}=this['_cursor'],_0x1cb62c=_0x428c11[_0x281f12(0x231)](),{docsLeft:_0x173e19,docsTop:_0x1f4a1f}=_0x1cb62c,_0x500ddb=new T[(_0x281f12(0x418))](_0x1cb62c,_0x16be20);for(const {startOffset:_0x541582,endOffset:_0x983536,rangeType:_0x9e02e8,segmentId:_0x4f6e8e,segmentPage:_0x16e592,collapsed:_0x18858d,isActive:_0x3430f9}of _0x4d6b93){const _0x39b479=_0x16be20[_0x281f12(0x2f7)](_0x541582,!0x0,_0x4f6e8e,_0x16e592);let _0x30f914=_0x16be20[_0x281f12(0x2f7)](_0x983536,!0x0,_0x4f6e8e,_0x16e592);if(_0x30f914==null&&(_0x30f914=_0x16be20[_0x281f12(0x2f7)](_0x983536-0x1,!0x1,_0x4f6e8e,_0x16e592)),_0x3430f9){const {contentBoxPointGroup:_0x53a820}=_0x500ddb['getRangePointData'](_0x30f914,_0x30f914);if(_0x53a820[_0x281f12(0x1cd)]===0x0)continue;this[_0x281f12(0x362)](_0x90a0ad,_0x53a820,_0x173e19,_0x1f4a1f,_0x3b6f20),this[_0x281f12(0x439)]=this[_0x281f12(0x21f)]();}if(_0x39b479&&_0x30f914){if(_0x9e02e8===a[_0x281f12(0x2ff)][_0x281f12(0x374)]){const _0x5c8113=new T['NodePositionConvertToRectRange'](_0x1cb62c,_0x16be20),{pointGroup:_0x4e3bbf}=(_0x3f813c=_0x5c8113[_0x281f12(0x330)](_0x39b479,_0x30f914))!=null?_0x3f813c:{};if(_0x4e3bbf==null||_0x4e3bbf[_0x281f12(0x1cd)]===0x0)continue;this[_0x281f12(0x2f4)](_0x90a0ad,_0x4e3bbf,_0x173e19,_0x1f4a1f);}else{if(!_0x18858d){const {borderBoxPointGroup:_0x4a4c9f}=_0x500ddb[_0x281f12(0x330)](_0x39b479,_0x30f914);if(_0x4a4c9f[_0x281f12(0x1cd)]===0x0)continue;this['_drawTextRange'](_0x90a0ad,_0x4a4c9f,_0x173e19,_0x1f4a1f);}}}}}[_0x37525a(0x362)](_0x835e11,_0x4969d9,_0x2428a2,_0x48f004,_0xeb4ddb){const _0x21ec8d=_0x37525a,_0x47b923=this[_0x21ec8d(0x338)](_0x4969d9),{left:_0x15f379,top:_0x20998e,height:_0x532324}=_0x47b923,_0x13b4b3=this['_getScale'](),_0x42b138=Nt/_0x13b4b3,_0x5138d9=new C['Rect'](_e+a[_0x21ec8d(0x198)](H),{'left':_0x15f379+_0x2428a2-_0x42b138,'top':_0x20998e+_0x48f004,'height':_0x532324,'width':Dt,'fill':_0x835e11||C['getColor'](a[_0x21ec8d(0x29c)][_0x21ec8d(0x2cf)],0x0),'strokeWidth':_0x42b138,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5138d9,this[_0x21ec8d(0x2bf)][_0x21ec8d(0x30a)](_0x5138d9,T[_0x21ec8d(0x239)]);const _0x4489a0=new C[(_0x21ec8d(0x2b8))](_e+a[_0x21ec8d(0x198)](H),{'left':_0x15f379+_0x2428a2-_0x42b138,'top':_0x20998e+_0x48f004-he/0x2,'height':he,'width':he,'fill':_0x835e11||C[_0x21ec8d(0x1c4)](a[_0x21ec8d(0x29c)][_0x21ec8d(0x2cf)],0x0),'strokeWidth':0x0,'stroke':_0x835e11||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x21ec8d(0x44a)]=_0x4489a0,this[_0x21ec8d(0x2bf)][_0x21ec8d(0x30a)](_0x4489a0,T[_0x21ec8d(0x239)]);const _0x32d574=new re(_e+a[_0x21ec8d(0x198)](H),{'left':_0x15f379+_0x2428a2-_0x42b138,'top':_0x20998e+_0x48f004-X,'text':_0xeb4ddb,'color':_0x835e11});this[_0x21ec8d(0x404)]=_0x32d574,this['_scene'][_0x21ec8d(0x30a)](_0x32d574,T[_0x21ec8d(0x239)]),this[_0x21ec8d(0x3f4)]=!0x1;}[_0x37525a(0x21f)](){const _0x25d2c0=_0x37525a,_0x55582d=this['_anchor'][_0x25d2c0(0x3a9)][_0x25d2c0(0x441)](()=>{const _0x987790=_0x25d2c0;this[_0x987790(0x3f4)]=!0x0;}),_0x539e53=this[_0x25d2c0(0x1d2)][_0x25d2c0(0x40c)]['subscribeEvent'](()=>{const _0x10b29f=_0x25d2c0;this[_0x10b29f(0x425)]&&clearTimeout(this[_0x10b29f(0x425)]),this[_0x10b29f(0x425)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x2f5eb4=_0x25d2c0;_0x55582d[_0x2f5eb4(0x2ab)](),_0x539e53[_0x2f5eb4(0x2ab)]();};}[_0x37525a(0x207)](_0x109bef,_0x7ae132,_0x5b5fa1,_0x431f29){const _0x5f0ff9=_0x37525a,_0x35e8d8=new a['ColorKit'](_0x109bef)[_0x5f0ff9(0x274)](0.2)[_0x5f0ff9(0x1f6)](),_0x5c00ac=new C['RegularPolygon'](Rt+a[_0x5f0ff9(0x198)](H),{'pointsGroup':_0x7ae132,'fill':_0x35e8d8||C[_0x5f0ff9(0x1c4)](a[_0x5f0ff9(0x29c)][_0x5f0ff9(0x2cf)],0.2),'left':_0x5b5fa1,'top':_0x431f29,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f0ff9(0x3d6)]['push'](_0x5c00ac),this[_0x5f0ff9(0x2bf)][_0x5f0ff9(0x30a)](_0x5c00ac,T['TEXT_RANGE_LAYER_INDEX']);}[_0x37525a(0x2f4)](_0x6bc36e,_0x116069,_0x5eca70,_0x4a0755){const _0x101b7f=_0x37525a,_0x2a351b=new a['ColorKit'](_0x6bc36e)[_0x101b7f(0x274)](0.2)['toRgbString'](),_0x77a966=new C['RegularPolygon'](bt+a[_0x101b7f(0x198)](H),{'pointsGroup':_0x116069,'fill':_0x2a351b||C[_0x101b7f(0x1c4)](a['COLORS'][_0x101b7f(0x2cf)],0.2),'left':_0x5eca70,'top':_0x4a0755,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x101b7f(0x3d6)]['push'](_0x77a966),this[_0x101b7f(0x2bf)][_0x101b7f(0x30a)](_0x77a966,T['TEXT_RANGE_LAYER_INDEX']);}[_0x37525a(0x338)](_0x488da1){const _0x3eeacc=_0x488da1[0x0],_0x2824e4=_0x3eeacc[0x0],_0x4a6c08=_0x3eeacc[0x2],{x:_0x343522,y:_0x2efc4f}=_0x2824e4,{x:_0x302e55,y:_0x2abcef}=_0x4a6c08;return{'left':_0x343522,'top':_0x2efc4f,'width':_0x302e55-_0x343522,'height':_0x2abcef-_0x2efc4f};}[_0x37525a(0x1a2)](){const _0x1ade69=_0x37525a,{scaleX:_0x48d6e1,scaleY:_0x2b1ceb}=this[_0x1ade69(0x2bf)]['getAncestorScale']();return Math['max'](_0x48d6e1,_0x2b1ceb);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x43058d,_0x1001f3,_0x3d9bbc,_0x399455)=>{for(var _0x54c817=_0x399455>0x1?void 0x0:_0x399455?Lt(_0x1001f3,_0x3d9bbc):_0x1001f3,_0x3795ce=_0x43058d['length']-0x1,_0x3591dc;_0x3795ce>=0x0;_0x3795ce--)(_0x3591dc=_0x43058d[_0x3795ce])&&(_0x54c817=_0x3591dc(_0x54c817)||_0x54c817);return _0x54c817;},q=(_0x47caa8,_0x584f23)=>(_0x547c87,_0x510601)=>_0x584f23(_0x547c87,_0x510601,_0x47caa8);let Ee=class extends a[_0x37525a(0x38a)]{constructor(_0x591dad,_0x1c9d29,_0x320261,_0x2d315a,_0x28b697){const _0x11fc0b=_0x37525a;super(),_(this,_0x11fc0b(0x1eb),[]),_(this,_0x11fc0b(0x247),[]),(this[_0x11fc0b(0x1e6)]=_0x591dad,this[_0x11fc0b(0x3e2)]=_0x1c9d29,this['_collabCursorController']=_0x320261,this[_0x11fc0b(0x40e)]=_0x2d315a,this['_themeService']=_0x28b697,this[_0x11fc0b(0x41c)]());}[_0x37525a(0x41c)](){const _0x27a986=_0x37525a,_0x3a2bd3=this[_0x27a986(0x1e6)][_0x27a986(0x1c7)],_0x127ebe=this[_0x27a986(0x3e2)];this[_0x27a986(0x1ad)](I[_0x27a986(0x2f8)]([this[_0x27a986(0x217)]['getCollabCursors$'](_0x3a2bd3),this['_themeService']['currentTheme$']])['pipe']($[_0x27a986(0x372)](([_0x37e0cd,_0x74fd45])=>({'skeleton':_0x127ebe[_0x27a986(0x1b2)](),'cursors':[..._0x37e0cd[_0x27a986(0x3ab)]()][_0x27a986(0x36e)](_0x518ee8=>({..._0x518ee8,'color':this[_0x27a986(0x371)]['getColorFromTheme'](_0x518ee8[_0x27a986(0x23c)])}))})))[_0x27a986(0x375)](_0x386b8c=>{const _0x5687e0=_0x27a986;if(this['_removeCollabCursors'](),_0x386b8c){const {skeleton:_0x45e7b1,cursors:_0x493455}=_0x386b8c;this[_0x5687e0(0x377)](_0x45e7b1,_0x493455);}})),this[_0x27a986(0x410)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x43896d,_0x48751f){const _0x246df8=_0x37525a,{scene:_0xd9676e,mainComponent:_0x3bbd0e}=this[_0x246df8(0x1e6)],_0x56429e=_0x48751f['map'](_0x1a8ac1=>new Le(_0x1a8ac1,_0xd9676e,_0x43896d,_0x3bbd0e));this['_cursorShapes']=_0x56429e,this[_0x246df8(0x247)]=_0x48751f;}[_0x37525a(0x1bb)](){const _0x2293ab=_0x37525a;this['_removeCollabCursors']();const {scene:_0x1a6458,mainComponent:_0x25298c}=this['_context'],_0x19e98b=this['_docSkeletonManagerService'][_0x2293ab(0x1b2)](),_0x58829c=this[_0x2293ab(0x247)][_0x2293ab(0x372)](_0x3eae43=>new Le(_0x3eae43,_0x1a6458,_0x19e98b,_0x25298c));this[_0x2293ab(0x1eb)]=_0x58829c;}[_0x37525a(0x28c)](){const _0x306eef=_0x37525a;this[_0x306eef(0x1eb)][_0x306eef(0x34f)](_0x29525c=>_0x29525c[_0x306eef(0x37c)]()),this['_cursorShapes']=[];}[_0x37525a(0x2a6)](){const _0x561ebe=_0x37525a,_0x3c754e=[T[_0x561ebe(0x364)]['id']];this[_0x561ebe(0x1ad)](this[_0x561ebe(0x40e)][_0x561ebe(0x1ba)](_0x1cce59=>{const _0x4142d9=_0x561ebe;_0x3c754e['includes'](_0x1cce59['id'])&&_0x1cce59[_0x4142d9(0x1db)][_0x4142d9(0x1c7)]===this[_0x4142d9(0x1e6)][_0x4142d9(0x1c7)]&&this['_refreshCollabCursors']();}));}[_0x37525a(0x410)](){const _0x48915d=_0x37525a;this[_0x48915d(0x1ad)](a[_0x48915d(0x3bc)](this[_0x48915d(0x1e6)]['engine']['onTransformChange$'])[_0x48915d(0x1a0)]($[_0x48915d(0x307)](_0x3b9365=>_0x3b9365[_0x48915d(0x236)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x48915d(0x309)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x37525a(0x221)](V[_0x37525a(0x2be)])),q(0x2,a[_0x37525a(0x221)](F)),q(0x3,a[_0x37525a(0x37b)]),q(0x4,a[_0x37525a(0x221)](a[_0x37525a(0x312)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x37525a(0x29d)]{constructor(_0xf5c5ca,_0x31ee6c){const _0x5f6c0=_0x37525a;super(_0xf5c5ca,_0x31ee6c),_(this,_0x5f6c0(0x237)),_(this,_0x5f6c0(0x33d),!0x1),_(this,_0x5f6c0(0x1cc)),_(this,_0x5f6c0(0x2b4),''),_(this,_0x5f6c0(0x22b),_0x5f6c0(0x280)),_(this,'_backgroundColor'),(_0x31ee6c&&this[_0x5f6c0(0x3f5)](_0x31ee6c),this['onPointerEnter$'][_0x5f6c0(0x441)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5f6c0(0x40c)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x37525a(0x3f5)](_0x5d8e31){const _0x1cf414=_0x37525a;var _0x445e1d,_0xd586db,_0x58ab7d,_0x3c4de5,_0x520c1e,_0x147169;this['_color']=(_0x445e1d=_0x5d8e31[_0x1cf414(0x23c)])!=null?_0x445e1d:this[_0x1cf414(0x237)],this[_0x1cf414(0x33d)]=(_0xd586db=_0x5d8e31[_0x1cf414(0x433)])!=null?_0xd586db:this[_0x1cf414(0x33d)],this[_0x1cf414(0x1cc)]=(_0x58ab7d=_0x5d8e31[_0x1cf414(0x2aa)])!=null?_0x58ab7d:this[_0x1cf414(0x1cc)],this[_0x1cf414(0x2b4)]=(_0x3c4de5=_0x5d8e31[_0x1cf414(0x358)])!=null?_0x3c4de5:this[_0x1cf414(0x2b4)],this['_labelPosition']=(_0x520c1e=_0x5d8e31[_0x1cf414(0x395)])!=null?_0x520c1e:this[_0x1cf414(0x22b)],this['_backgroundColor']=(_0x147169=_0x5d8e31['backgroundColor'])!=null?_0x147169:this['_backgroundColor'],this[_0x1cf414(0x442)]({'width':_0x5d8e31[_0x1cf414(0x24a)],'height':_0x5d8e31['height']});}[_0x37525a(0x2f0)](_0x4f8fe6){const _0xce91a4=_0x37525a,{row:_0x2e5f92,column:_0x5cfac6}=_0x4f8fe6;if(_0x2e5f92>=this[_0xce91a4(0x1cc)][_0xce91a4(0x20e)]&&_0x2e5f92<=this[_0xce91a4(0x1cc)]['endRow']&&_0x5cfac6>=this[_0xce91a4(0x1cc)][_0xce91a4(0x2c7)]&&_0x5cfac6<=this[_0xce91a4(0x1cc)][_0xce91a4(0x3e9)]){this[_0xce91a4(0x3f5)]({'hovered':!0x0});return;}this[_0xce91a4(0x3f5)]({'hovered':!0x1});}[_0x37525a(0x3e0)](_0x19f748){return!0x1;}[_0x37525a(0x3a3)](_0x1680bc){const _0x51cbab=_0x37525a;C['Rect'][_0x51cbab(0x392)](_0x1680bc,{'width':this[_0x51cbab(0x24a)],'height':this[_0x51cbab(0x205)],'strokeWidth':Pt,'stroke':this[_0x51cbab(0x237)],'evented':!0x1,'fill':this[_0x51cbab(0x189)]}),this['_hovered']&&(_0x1680bc[_0x51cbab(0x193)](),_0x1680bc[_0x51cbab(0x194)](0x1,0x0,0x0,0x1,this[_0x51cbab(0x24a)],this[_0x51cbab(0x22b)]===_0x51cbab(0x28b)?0x0:-X),re[_0x51cbab(0x392)](_0x1680bc,{'text':this[_0x51cbab(0x2b4)],'color':this[_0x51cbab(0x237)]}),_0x1680bc[_0x51cbab(0x440)]());}}var wt=Object[_0x37525a(0x268)],yt=(_0x28f369,_0x280fd1,_0xff0d39,_0x3b84b0)=>{const _0x3ee433=_0x37525a;for(var _0x27e1f7=_0x3b84b0>0x1?void 0x0:_0x3b84b0?wt(_0x280fd1,_0xff0d39):_0x280fd1,_0x2962ea=_0x28f369[_0x3ee433(0x1cd)]-0x1,_0x543b2b;_0x2962ea>=0x0;_0x2962ea--)(_0x543b2b=_0x28f369[_0x2962ea])&&(_0x27e1f7=_0x543b2b(_0x27e1f7)||_0x27e1f7);return _0x27e1f7;},ue=(_0x5e76c4,_0x4cb0ff)=>(_0x7cbbd9,_0x57e68b)=>_0x4cb0ff(_0x7cbbd9,_0x57e68b,_0x5e76c4);const $t=0x1389;let Ce=class extends a[_0x37525a(0x38a)]{constructor(_0x56e747,_0xb8b70b,_0x4a4053,_0x3cffc4){const _0x4d0c9c=_0x37525a;super(),_(this,_0x4d0c9c(0x247),new Set()),_(this,_0x4d0c9c(0x2db),null),(this['_context']=_0x56e747,this[_0x4d0c9c(0x18a)]=_0xb8b70b,this[_0x4d0c9c(0x217)]=_0x4a4053,this[_0x4d0c9c(0x371)]=_0x3cffc4,this[_0x4d0c9c(0x41c)]());}[_0x37525a(0x41c)](){const _0x44b492=_0x37525a;this[_0x44b492(0x18a)][_0x44b492(0x1bc)][_0x44b492(0x1a0)]($[_0x44b492(0x382)](this[_0x44b492(0x3b6)]),$[_0x44b492(0x3dc)](_0x59618e=>{const _0x27e320=_0x44b492;if(_0x59618e){const _0x532539=_0x59618e[_0x27e320(0x18f)];return I[_0x27e320(0x2f8)](this[_0x27e320(0x217)][_0x27e320(0x3c6)](this[_0x27e320(0x1e6)][_0x27e320(0x1c7)]),this[_0x27e320(0x371)][_0x27e320(0x2e3)])['pipe']($['map'](([_0x3fce27,_0x17db92])=>{const _0x18bf25=_0x27e320,_0x30f8fa=new Map();return _0x3fce27[_0x18bf25(0x34f)]((_0x44950f,_0x234c4f)=>{const _0x5ce60e=_0x18bf25;if(_0x44950f[_0x5ce60e(0x2f3)]===_0x532539){const _0x353365={..._0x44950f};_0x353365[_0x5ce60e(0x23c)]=this[_0x5ce60e(0x371)][_0x5ce60e(0x2ae)](_0x44950f['color']),_0x30f8fa[_0x5ce60e(0x3d1)](_0x234c4f,_0x353365);}}),{'skeleton':_0x59618e,'cursors':_0x30f8fa};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x44b492(0x375)](({skeleton:_0x45a8e8,cursors:_0x296886})=>{const _0x509735=_0x44b492;this[_0x509735(0x28c)](),_0x45a8e8&&this[_0x509735(0x377)](_0x45a8e8,_0x296886);}),this['_sheetSkeletonManagerService'][_0x44b492(0x1bc)][_0x44b492(0x375)](_0xfc8dfe=>{const _0x365e6c=_0x44b492;if(_0xfc8dfe==null)return;const {skeleton:_0x1cc708}=_0xfc8dfe,{scene:_0x2c84c0}=this['_context'];_0x2c84c0[_0x365e6c(0x41e)]['subscribeEvent'](a[_0x365e6c(0x3f6)](_0x3575e1=>{const _0x36da49=_0x365e6c;var _0x598445,_0x4c5ab5;const {offsetX:_0x2f9f71,offsetY:_0x2436de}=_0x3575e1,{x:_0x44072f,y:_0x5d4736}=_0x2c84c0[_0x36da49(0x451)](C[_0x36da49(0x1f9)][_0x36da49(0x321)]([_0x2f9f71,_0x2436de])),{scaleX:_0x548288,scaleY:_0x2a36fc}=_0x2c84c0[_0x36da49(0x1ce)](),_0x42b9ca=_0x2c84c0[_0x36da49(0x39b)](C['SHEET_VIEWPORT_KEY'][_0x36da49(0x43f)]),_0x5d5c4d=_0x2c84c0['getVpScrollXYInfoByPosToVp'](C[_0x36da49(0x1f9)][_0x36da49(0x321)]([_0x44072f,_0x5d4736]),_0x42b9ca),_0x2775fd=_0x1cc708[_0x36da49(0x443)](_0x2f9f71,_0x2436de,_0x548288,_0x2a36fc,_0x5d5c4d);((_0x598445=this[_0x36da49(0x2db)])==null?void 0x0:_0x598445[_0x36da49(0x286)])===_0x2775fd[_0x36da49(0x286)]&&((_0x4c5ab5=this['_lastPointer'])==null?void 0x0:_0x4c5ab5[_0x36da49(0x34b)])===_0x2775fd[_0x36da49(0x34b)]||this['_cursors'][_0x36da49(0x34f)](_0x195892=>{const _0x560a24=_0x36da49;_0x195892[_0x560a24(0x2f0)](_0x2775fd);});},0x64));});}[_0x37525a(0x377)](_0x56bab2,_0x26bffc){const _0x160a2b=_0x37525a;var _0x2d773b;const _0x2cc1c8=(_0x2d773b=this['_sheetSkeletonManagerService'][_0x160a2b(0x32c)]())==null?void 0x0:_0x2d773b[_0x160a2b(0x42a)];if(!_0x2cc1c8)return;const _0x25b5e0=this['_getSheetObject']();if(!_0x25b5e0)return;this[_0x160a2b(0x247)][_0x160a2b(0x34f)](_0x1d0c12=>{const _0x40eafa=_0x160a2b;_0x1d0c12[_0x40eafa(0x3d4)]();});const {scene:_0x59e1a6}=_0x25b5e0,_0x45e332=xt(Array[_0x160a2b(0x3a7)](_0x26bffc[_0x160a2b(0x3ab)]()))['map'](_0x58eb16=>{const _0x3f10a8=_0x160a2b,{color:_0xc705ed,range:_0x44d5e4,name:_0x1246ec,selection:_0x46d8c4,sheetID:_0x40afe6}=_0x58eb16,{startColumn:_0xce91ca,startRow:_0x9ab2ae,endColumn:_0x2dcf3d,endRow:_0x51be99}=_0x44d5e4,_0x15f08b=J[_0x3f10a8(0x2ea)](_0x9ab2ae,_0xce91ca,_0x59e1a6,_0x2cc1c8),_0x1210ef=J[_0x3f10a8(0x2ea)](_0x51be99,_0x2dcf3d,_0x59e1a6,_0x2cc1c8),{columnHeaderHeightAndMarginTop:_0xf603a0}=_0x2cc1c8,{startX:_0x2f2ee3,startY:_0x38f188}=_0x15f08b,{endX:_0x2f7df2,endY:_0x4e4e54}=_0x1210ef,_0x5111f3=_0x2f7df2-_0x2f2ee3,_0x31cb03=_0x4e4e54-_0x38f188,_0x41a22c={'labelPosition':_0x38f188-_0xf603a0>=X?_0x3f10a8(0x280):'bottom','sheetID':_0x40afe6,'range':_0x44d5e4,'color':_0xc705ed,'name':_0x1246ec,'selection':_0x46d8c4,'left':_0x2f2ee3,'top':_0x38f188,'width':_0x5111f3,'height':_0x31cb03,'evented':!0x1,'zIndex':$t};return new je(_0x1246ec,_0x41a22c);});_0x59e1a6[_0x160a2b(0x2c9)](_0x45e332,At),this[_0x160a2b(0x247)]=new Set(_0x45e332);}['_removeCollabCursors'](){const _0x2c187a=_0x37525a;var _0x4d1ffd;(_0x4d1ffd=this[_0x2c187a(0x247)])==null||_0x4d1ffd[_0x2c187a(0x34f)](_0x439bc9=>_0x439bc9[_0x2c187a(0x37c)]());}[_0x37525a(0x444)](){const _0x4f78c9=_0x37525a;return J['getSheetObject'](this[_0x4f78c9(0x1e6)][_0x4f78c9(0x1e1)],this['_context']);}};Ce=yt([ue(0x1,a[_0x37525a(0x221)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x37525a(0x221)](F)),ue(0x3,a[_0x37525a(0x221)](a[_0x37525a(0x312)]))],Ce);function xt(_0x304e89){const _0x3f1658=_0x37525a,_0x274a02=new Map();return _0x304e89[_0x3f1658(0x34f)](_0x5b3c82=>{const _0x43b635=_0x3f1658;if(_0x274a02[_0x43b635(0x3fa)](_0x5b3c82[_0x43b635(0x3cd)])){const _0xca059b=_0x274a02[_0x43b635(0x2e7)](_0x5b3c82[_0x43b635(0x3cd)]);_0xca059b[_0x43b635(0x358)]+=',\x20'+_0x5b3c82[_0x43b635(0x358)];}else _0x274a02[_0x43b635(0x3d1)](_0x5b3c82[_0x43b635(0x3cd)],_0x5b3c82);}),Array[_0x3f1658(0x3a7)](_0x274a02['values']());}var Bt=Object[_0x37525a(0x268)],Ft=(_0x12b0a5,_0x9eeeb,_0x49418e,_0x3a965e)=>{const _0x46dea3=_0x37525a;for(var _0x356778=_0x3a965e>0x1?void 0x0:_0x3a965e?Bt(_0x9eeeb,_0x49418e):_0x9eeeb,_0x3f4867=_0x12b0a5[_0x46dea3(0x1cd)]-0x1,_0x5056ff;_0x3f4867>=0x0;_0x3f4867--)(_0x5056ff=_0x12b0a5[_0x3f4867])&&(_0x356778=_0x5056ff(_0x356778)||_0x356778);return _0x356778;},y=(_0x415d15,_0x1ffd75)=>(_0x587db8,_0x168989)=>_0x1ffd75(_0x587db8,_0x168989,_0x415d15);let Z=class extends a[_0x37525a(0x3cb)]{constructor(_0x585f1d,_0x169ab9,_0x4c232d,_0x14d24d,_0x55bc38,_0x4bdab2){const _0xa5b23f=_0x37525a;super(),this[_0xa5b23f(0x33f)]=_0x585f1d,this['_localCacheService']=_0x169ab9,this[_0xa5b23f(0x2ba)]=_0x4c232d,this[_0xa5b23f(0x44b)]=_0x14d24d,this['_notificationService']=_0x55bc38,this['_localeService']=_0x4bdab2,this['_setupBeforeClosingHandler'](),this[_0xa5b23f(0x316)]();}[_0x37525a(0x310)](){const _0x434643=_0x37525a;this['disposeWithMe'](this[_0x434643(0x33f)][_0x434643(0x2fc)](()=>{const _0x289265=_0x434643;if(this[_0x289265(0x3a1)][_0x289265(0x38e)][_0x289265(0x227)])return this[_0x289265(0x43c)]['t'](_0x289265(0x204));}));}[_0x37525a(0x316)](){const _0x2c68cc=_0x37525a;this[_0x2c68cc(0x1ad)](this[_0x2c68cc(0x2ba)][_0x2c68cc(0x2f5)][_0x2c68cc(0x375)](_0x285977=>{const _0x4c914a=_0x2c68cc;_0x285977['id']===u['CollaborationUIEventId'][_0x4c914a(0x43b)]&&this[_0x4c914a(0x44b)][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x41b)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x2fd))}),_0x285977['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x4c914a(0x44b)][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x41b)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x3f1))}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x34e)]&&this[_0x4c914a(0x315)][_0x4c914a(0x1f0)]({'title':this['_localeService']['t'](_0x4c914a(0x220)),'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x2ec)),'type':'error','duration':0x0}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x298)]&&this[_0x4c914a(0x44b)]['show']({'type':p[_0x4c914a(0x224)][_0x4c914a(0x3df)],'content':this[_0x4c914a(0x43c)]['t']('collaboration.closeRoom')+'('+_0x285977[_0x4c914a(0x284)]+')'}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x209)]&&this[_0x4c914a(0x44b)]['show']({'type':p[_0x4c914a(0x224)]['Warning'],'content':this[_0x4c914a(0x43c)]['t'](_0x285977[_0x4c914a(0x284)]||'')}),_0x285977['id']===u[_0x4c914a(0x3a5)][_0x4c914a(0x326)]&&this['_messageService'][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x41b)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x23e))}),_0x285977['id']===u[_0x4c914a(0x3a5)]['SOCKET_FAILED']&&this['_messageService']['show']({'type':p['MessageType']['Error'],'content':this[_0x4c914a(0x43c)]['t']('session.connection-failed')}),_0x285977['id']===u[_0x4c914a(0x3a5)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4c914a(0x44b)][_0x4c914a(0x1f0)]({'type':p[_0x4c914a(0x224)][_0x4c914a(0x3df)],'content':this[_0x4c914a(0x43c)]['t'](_0x4c914a(0x44c))});}));}};Z=Ft([y(0x0,O[_0x37525a(0x27b)]),y(0x1,u[_0x37525a(0x1ab)]),y(0x2,a['Inject'](u[_0x37525a(0x2cd)])),y(0x3,O[_0x37525a(0x2b2)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x37525a(0x1fb)]))],Z);var jt=Object[_0x37525a(0x268)],kt=(_0x6ce135,_0x4ca09f,_0x2251b5,_0x1a3fda)=>{const _0x554519=_0x37525a;for(var _0xb2b31a=_0x1a3fda>0x1?void 0x0:_0x1a3fda?jt(_0x4ca09f,_0x2251b5):_0x4ca09f,_0x50865a=_0x6ce135[_0x554519(0x1cd)]-0x1,_0x148693;_0x50865a>=0x0;_0x50865a--)(_0x148693=_0x6ce135[_0x50865a])&&(_0xb2b31a=_0x148693(_0xb2b31a)||_0xb2b31a);return _0xb2b31a;},z=(_0xbe9405,_0x50b959)=>(_0x3f9604,_0x4cf8ea)=>_0x50b959(_0x3f9604,_0x4cf8ea,_0xbe9405);let Q=class extends a[_0x37525a(0x3cb)]{constructor(_0x5a4ce6,_0x182221,_0x35da2b,_0x4bda3b){const _0x2a7084=_0x37525a;super(),_(this,_0x2a7084(0x2d8)),(this['_injector']=_0x5a4ce6,this[_0x2a7084(0x1c1)]=_0x182221,this[_0x2a7084(0x1ae)]=_0x35da2b,this[_0x2a7084(0x3b2)]=_0x4bda3b,this[_0x2a7084(0x41c)]());}[_0x37525a(0x41c)](){const _0x1d4238=_0x37525a;this[_0x1d4238(0x1f3)](),this[_0x1d4238(0x24e)](),this[_0x1d4238(0x2d9)](),this[_0x1d4238(0x19c)]();}['_initUserListener'](){const _0x2dc8e8=_0x37525a;this[_0x2dc8e8(0x1ad)](this[_0x2dc8e8(0x3b2)]['socket$'][_0x2dc8e8(0x375)](_0x727c61=>{const _0x2a793c=_0x2dc8e8;this['_memberID']=_0x727c61==null?void 0x0:_0x727c61[_0x2a793c(0x1b6)];}));}['_initWindowErrorListener'](){const _0x4dcd04=_0x37525a,_0x10d4a2=_0x22f3c8=>{const _0x9061dc=_0x415c;var _0x507817;this[_0x9061dc(0x1c8)](_0x9061dc(0x262),'[Window\x20Error]:\x20'+_0x22f3c8[_0x9061dc(0x1d7)]+_0x9061dc(0x344)+_0x22f3c8[_0x9061dc(0x1a1)]+':'+_0x22f3c8[_0x9061dc(0x2a5)]+':'+_0x22f3c8[_0x9061dc(0x2a0)]+'\x0a'+(((_0x507817=_0x22f3c8[_0x9061dc(0x262)])==null?void 0x0:_0x507817[_0x9061dc(0x2e6)])||''));};window['addEventListener'](_0x4dcd04(0x262),_0x10d4a2),this[_0x4dcd04(0x1ad)](()=>{const _0x4327e3=_0x4dcd04;window[_0x4327e3(0x3fb)](_0x4327e3(0x262),_0x10d4a2);});}[_0x37525a(0x24e)](){const _0x148242=_0x37525a,_0x3a8fb=_0x3cce8c=>{const _0x594098=_0x415c;this[_0x594098(0x1c8)](_0x594098(0x262),_0x594098(0x424)+_0x3cce8c['reason']);};window['addEventListener'](_0x148242(0x376),_0x3a8fb),this['disposeWithMe'](()=>{const _0x2217ab=_0x148242;window['removeEventListener'](_0x2217ab(0x376),_0x3a8fb);});}[_0x37525a(0x2d9)](){const _0x2cb977=_0x37525a,_0x48b56a=this[_0x2cb977(0x1ae)][_0x2cb977(0x262)]['bind'](this[_0x2cb977(0x1ae)]);this[_0x2cb977(0x1ae)][_0x2cb977(0x262)]=(..._0x387a78)=>{const _0x1cf9a7=_0x2cb977,_0xef5979=_0x387a78['map'](_0x46de8b=>_0x46de8b instanceof Error?_0x46de8b[_0x1cf9a7(0x1d7)]+'\x0a'+_0x46de8b[_0x1cf9a7(0x2e6)]:String(_0x46de8b))[_0x1cf9a7(0x28d)]('\x20');this[_0x1cf9a7(0x1c8)]('error',_0x1cf9a7(0x290)+_0xef5979),_0x48b56a(..._0x387a78);},this['disposeWithMe'](()=>{const _0x37bcd9=_0x2cb977;this['_logService'][_0x37bcd9(0x262)]=_0x48b56a;});}[_0x37525a(0x1c8)](_0x1fa7b4,_0x2b0cee){const _0x1a33be=_0x37525a;try{const _0x1d2bee={'userId':this[_0x1a33be(0x2d8)],'logLabel':_0x1fa7b4,'content':_0x2b0cee};this['_httpService']['post'](_0x1a33be(0x323),{'body':_0x1d2bee})[_0x1a33be(0x201)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),z(0x1,a[_0x37525a(0x221)](x[_0x37525a(0x2d7)])),z(0x2,a[_0x37525a(0x1a3)]),z(0x3,a[_0x37525a(0x221)](u[_0x37525a(0x2f2)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x37525a(0x268)],Wt=(_0x11ae83,_0x2d9004,_0x30d596,_0x18ebf7)=>{for(var _0x3bc8eb=_0x18ebf7>0x1?void 0x0:_0x18ebf7?Ht(_0x2d9004,_0x30d596):_0x2d9004,_0x4b2940=_0x11ae83['length']-0x1,_0x42f682;_0x4b2940>=0x0;_0x4b2940--)(_0x42f682=_0x11ae83[_0x4b2940])&&(_0x3bc8eb=_0x42f682(_0x3bc8eb)||_0x3bc8eb);return _0x3bc8eb;},Ae=(_0x22a71a,_0x16ef7d)=>(_0x20b699,_0x56823a)=>_0x16ef7d(_0x20b699,_0x56823a,_0x22a71a);let ee=class{constructor(_0xd37807,_0x57eaed){const _0xd999f1=_0x37525a;this[_0xd999f1(0x1fa)]=_0xd37807,this[_0xd999f1(0x339)]=_0x57eaed;}[_0x37525a(0x38c)](_0x3b5420){const _0x1a567b=_0x37525a;this[_0x1a567b(0x44d)](_0x3b5420),this[_0x1a567b(0x2b1)](_0x3b5420);}[_0x37525a(0x303)](_0x416f4b){const _0x54216a=_0x37525a,{unitID:_0x46a150}=_0x416f4b,_0x1ee9ac=this[_0x54216a(0x339)][_0x54216a(0x434)](_0x46a150)['with'](T[_0x54216a(0x208)]),{redoCache:_0x274083}=_0x1ee9ac[_0x54216a(0x449)]();if(_0x274083[_0x54216a(0x1cd)]===0x0)return _0x416f4b;let _0x11cd37=a[_0x54216a(0x346)][_0x54216a(0x22a)](_0x416f4b['mutations'][0x0]);for(let _0x3addd0=0x0;_0x3addd0<_0x274083[_0x54216a(0x1cd)];_0x3addd0++){const _0x1b4447={'id':_0x54216a(0x2d6),'params':{..._0x274083[_0x3addd0]}},_0x131ab5=this[_0x54216a(0x1fa)][_0x54216a(0x225)](_0x11cd37,_0x1b4447,!0x1);if(g[_0x54216a(0x308)](_0x131ab5))throw _0x131ab5['error'];_0x11cd37=_0x131ab5[_0x54216a(0x3fd)];}return{...a[_0x54216a(0x346)][_0x54216a(0x22a)](_0x416f4b),'mutations':[_0x11cd37]};}[_0x37525a(0x44d)](_0x3b6db3){const _0x7dda50=_0x37525a,{unitID:_0x3ec353}=_0x3b6db3,_0xef8f5e=this[_0x7dda50(0x339)][_0x7dda50(0x434)](_0x3ec353)['with'](T[_0x7dda50(0x208)]),{undoCache:_0x1fa943,redoCache:_0x2f42ee}=_0xef8f5e[_0x7dda50(0x449)]();if(_0x1fa943[_0x7dda50(0x1cd)]===0x0||_0x2f42ee[_0x7dda50(0x1cd)]===0x0)return;const _0x5c816c=[],_0x4ed219=[];let _0x3ff296=a[_0x7dda50(0x346)][_0x7dda50(0x22a)](_0x3b6db3[_0x7dda50(0x3a0)][0x0]),_0xdb5c64=a[_0x7dda50(0x346)][_0x7dda50(0x22a)](_0x3b6db3[_0x7dda50(0x3a0)][0x0]);for(let _0x46637b=_0x1fa943[_0x7dda50(0x1cd)]-0x1;_0x46637b>=0x0;_0x46637b--){const _0x5acbb4={'id':_0x7dda50(0x2d6),'params':{..._0x1fa943[_0x46637b]}},_0x191655={'id':'doc.mutation.rich-text-editing','params':{..._0x2f42ee[_0x46637b]}},_0x27b57b=this['_transformService'][_0x7dda50(0x225)](_0x3ff296,_0x5acbb4,!0x1),_0x2e4bf0=this['_transformService']['transformMutation'](_0xdb5c64,_0x191655,!0x1);if(g[_0x7dda50(0x308)](_0x27b57b))throw _0x27b57b[_0x7dda50(0x262)];if(g['isTransformMutationFailure'](_0x2e4bf0))throw _0x2e4bf0['error'];_0x5c816c[_0x7dda50(0x1c5)](_0x27b57b['m2Prime']['params']),_0x4ed219[_0x7dda50(0x1c5)](_0x2e4bf0['m2Prime'][_0x7dda50(0x1db)]),_0x3ff296=_0x27b57b[_0x7dda50(0x3fd)],_0xdb5c64=_0x2e4bf0[_0x7dda50(0x3fd)];}_0xef8f5e[_0x7dda50(0x352)]({'undoCache':_0x5c816c,'redoCache':_0x4ed219});}[_0x37525a(0x2b1)](_0x24b64b){const _0x1219ba=_0x37525a,{unitID:_0x512d3e}=_0x24b64b,_0x4f2837=this[_0x1219ba(0x339)]['getRenderById'](_0x512d3e)[_0x1219ba(0x29b)](T[_0x1219ba(0x208)]),_0x433346=_0x4f2837['getActiveRange']();if(_0x433346==null)return;const _0x3c4004=[{'id':_0x1219ba(0x2d6),'params':{'unitId':_0x24b64b['unitID'],'actions':null,'textRanges':[_0x433346]}}],_0x46d991=this['_transformService'][_0x1219ba(0x2da)](_0x24b64b,_0x3c4004);if(!g[_0x1219ba(0x296)](_0x46d991))throw _0x46d991[_0x1219ba(0x262)];const _0x4bdd2c=_0x46d991[_0x1219ba(0x423)][0x0][_0x1219ba(0x1db)]['textRanges'];Array['isArray'](_0x4bdd2c)&&_0x4bdd2c[_0x1219ba(0x1cd)]&&_0x4f2837[_0x1219ba(0x1bd)](_0x4bdd2c[0x0]);}};function _0x5977(){const _0x100158=['Tooltip','_hovered','9186CoIdFC','_beforeCloseService','M0\x200H16V16H0z','removeParam','INVITE_CODE_HAS_BEEN_UES','key','\x20at\x20','_cursor','Tools','jiqing.500','CollaborationStatus','textRanges','cursorInfo','row','_removeClearOtherTimer','_entityInit$','PERMISSION_DENIED','forEach','registerRenderModule','min','setUndoRedoMutationParamsCache','getTypeOfUnitDisposed$','1277163AMtDXx','[CollaborationDataLoaderController]','arc','off-line-icon','name','source','mergeOverrideWithDependencies','_getSaveTimeout','_docTransformIMECacheService','currentUsage','getMergeData','getUnitStatus$','_online','measureText','_drawAnchor','getCollabEntity$','SetDocZoomRatioOperation','_updateLocalCursor','evenodd','_localStorageService','getItem','_docClipboardService','YUUMI_ASYNCIO_CANCELLED','_handleJoinEvent','Unknown\x20user','YUUMI_UNABLE_LOAD_URL','flatMap','loadUnit','ENTITLE_CHAT_LIMIT_EXCEED','_themeService','map','USER_IS_ANONYMOUS','RECT','subscribe','unhandledrejection','_updateCollabCursors','FormulaExecutedStateType','2WFsCjE','DEFAULT_WS_SESSION_TICKET_URL','ICommandService','dispose','round','_initEntityListener','collabStatus.notCollab','_status$','application/json','takeUntil','on-line-icon_clip0_910_349','_getMergeRange','random','setConfig','_getFormulaLimitStatus','substring','isActive','RxDisposable','_initCommandInterceptor','transformIMECache','toString','saveTaskMap','closePath','INTERNAL_ERROR','Success','drawWith','_colorAssignService','Module','labelPosition','_currentUsage','Subject','_pollingInterval','EMAIL_HAS_BEEN_BOUND','RemoveRowCommandId','getViewport','_cachedData','WebURLService','21670451SVoTQm','WECHAT_HAS_BEEN_BOUND','mutations','_localCacheService','none','_draw','ENTITLE_INSUFFICIENT_QUOTA','CollaborationUIEventId','handleInsertRangeMoveDown','from','USER_NOT_FOUND','onPointerEnter$','1280848gQMbdX','values','_session','debounceTime','defineProperty','DocSelectionManagerService','_transformHistoryAndStateStack','YUUMI_NO_CUBOID_FOR_QUESTION','_collaborationSessionService','univer-flex\x20univer-items-center','PENDING','popstate','dispose$','PY_RUNTIME_SCRIPT_ERROR','init','getDocRanges','INVITE_CODE_REQUIRED','executeCommand','fromEventSubject','SNAPSHOT_INVALID_SNAPSHOT','ITransformService','DesktopCollaborationStatusDisplayController','UPDATE_CURSOR','registerRefRange','maxFormulaLimit','wsSessionTicketUrl','runId','getFocusedUnit','getCollabCursors$','INVALID_ARGUMENT','dirtyRanges','_collaborationController','_onCursorUpdate','Disposable','MoveRangeCommandId','selection','selections','_univerInstanceService','_document','set','DeleteRangeMoveUpCommandId','location','makeDirty','moveTo','_shapes','_toggleOnline','contains','REDEMPTION_USER_NOT_ELIGIBLE','CollaborationSocketService','IDocClipboardService','switchMap','all','ENTITLE_USE_COUPON_NOT_1ST_TRADE','Error','triggerDblclick','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_docSkeletonManagerService','div','serializeRangeWithSheet','clearTimeout','storage','setItem','_scheduleSaving','endColumn','YUUMI_ALL_TABLES_IS_INVALID','YUUMI_RATE_OVER_LIMIT','getSheetId','delete','EffectRefRangId','_colorIndex','IRemoteInstanceService','collaboration.closeRoom','BrowserCollaborationSocketService','_updateSubUnitFromURLParams','_hover','setShapeProps','debounce','LICENSE_MAX_UNITS_EXCEEDED','sessionTicket','IConfigService','has','removeEventListener','getActiveSheet','m1Prime','NOT_FOUND','RemoveColCommandId','clearInterval','fill','IRenderManagerService','_disabled','_textBubble','subUnitId','stage','_scheduleHeartbeat','_releaseCalculationLimit','UniverInstanceType','LOCAL_CACHE_INTERVAL_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','onPointerLeave$','attrs','_commandService','BehaviorSubject','_initResize','1em','isArray','debug','find','CanceledError','AWAITING','_updateURLWithCurrentState','NodePositionConvertToCursor','UNRECOGNIZED','_collabCursorState$','Warning','_init','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onPointerMove$','newValue','ENSURE_SNAPSHOT_EXECUTION','handleDeleteRangeMoveUp','_cursorInfo$','m2Prime','[Unhandled\x20Rejection]:\x20','_hideTimer','createElement','replaceState','useDependency','_render','skeleton','deserializeRangeWithSheet','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','translate(.97)','hide','unitID','collabStatus.fetchMiss','docStateChange$','code','hovered','getRenderById','_heartbeatTimer','onStarting','text','rgba(255,\x20255,\x20255,\x200.01)','_eventUnsubscribe','_initStatusComponent','OTHER_CLIENT_EDITING','_localeService','setTimeout','addClipboardHook','VIEW_MAIN','restore','subscribeEvent','transformByState','getCellPositionByOffset','_getSheetObject','fillStyle','parse','createInstance','UniverCollaborationClientPlugin','getUndoRedoMutationParamsCache','_anchorDot','_messageService','session.collaboration-timeout','_transformUndoRedoStack','saveOfflineData','YUUMI_CONNECTOR_URL_NOT_FOUND','/universer-api/license/formula/limit/status','getRelativeToViewportCoord','UnitStatus','ACTIVE_UNIT_EVENT_CHANNEL','_toggleOffline','OFFLINE','APPLY_DUPLICATED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_backgroundColor','_sheetSkeletonManagerService','isEditing','_onCursorDelete','ENTITLE_DUP_SUBSCRIPTION','getCurrentRevOfUnit','sheetId','YUUMI_TABLE_NOT_FOUND_IN_UNIT','RefRangeService','imageSourceType','save','transform','post','ISnapshotServerService','origin','generateRandomId','DependentOn','_docSkeleton','_clearPolling','_initUserListener','next','assignAColorForMemberID','search','pipe','filename','_getScale','ILogService','_applyCommand','UNDEFINED','registerComponent','AWAITING_WITH_PENDING','EMAIL_VERIFY_CODE_MISMATCH','now','UniverCollaborationClientUIPlugin','ILocalCacheService','jsxs','disposeWithMe','_logService','OnLineIcon','_startSheetCollabCursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getSkeleton','LICENSE_EXPORT_SIZE_EXCEEDED','use','CollaborationEvent','memberID','http://www.w3.org/2000/svg','setStateCache','MemberService','onCommandExecuted','_refreshCollabCursors','currentSkeleton$','setActiveRange','InsertRangeMoveDownCommandId','tag','_doCreateSocket','_httpService','useRef','ALREADY_EXISTS','getColor','unshift','_showGuardMessage','unitId','_uploadLog','DeleteRangeMoveLeftCommandId','_roomMembers$','toDisposable','_range','length','getAncestorScale','entries','CURRENT_STATUS_CANNOT_OPERATE','result','_anchor','split','RemoteUniscriptService','_handleLeaveEvent','_unitStatus','message','1245UCadAV','parseInt','SNAPSHOT_HAS_BEEN_REMOVED','params','updateOfflineData','reconnect','0\x200\x2016\x2016','limitInfo','REDEMPTION_USER_REDEEM_TIMES_EXCEED','unit','xlink:href','_scheduleClearOtherTimer','ticket','SheetCollabCursorShape','_context','SetSelectionsOperation','InsertRowCommandId','306Xiohkw','addEventListener','_cursorShapes','entityInit$','getCurrentUnitForType','_revisionService','transformStateCache','show','collab-text-anchor-','WebSocketService','_initWindowErrorListener','disableLocalCache','_registerDependencies','toRgbString','LICENSE_IMPORT_SIZE_EXCEEDED','body','Vector2','_transformService','LocaleService','_createSocketURL','getUnhiddenWorksheets','clipPath','blue.400','_saveTaskMap','catch','invokeId','OTHER_CLIENTS_EDITING','collaboration.offline-data-not-saved','height','getStateCache','_drawTextRange','DocIMEInputManagerService','JOIN_ROOM_FAILED','assign','_instanceService','_docSyncEditingCollabCursorService','IImageIoService','startRow','TEXT','START_CALCULATION','string','getUnitId','then','InsertRangeMoveRightCommandId','handleInsertCol','replaceDocRanges','_collabCursorController','APPLY_PERMISSION_DENIED','PAYMENT_CHANNEL_NOT_SUPPORT','current','roomMembers','addHandlerCallback','ILocalStorageService','fillRule','_handleHover','permission.title','Inject','roomMembers$','7TjSpPN','MessageType','transformMutation','enableLocalCache','size','_handleHeartbeatEvent','HEADER_MENU','deepClone','_labelPosition','DocStateChangeManagerService','UNIVER_SHEET','_configService','317421uwHmwP','formula.calculation.waiting','getOffsetConfig','distinctUntilChanged','urlChange$','createIdentifier','pluginName','type','_color','useCallback','TEXT_RANGE_LAYER_INDEX','_entities','useObservable','color','#FFF','session.will-retry','_lastResponseTimestamp','LICENSE_DISTRO_REJECTED','_config','_memberService','getValue','OffLineIcon','NOT_COLLAB','_collabSessionService','_cursors','getTypeOfUnitAdded$','redoState','width','displayName','NO_OTHER_CLIENTS_EDITING','FETCH_MISS','_initUnhandledRejectionListener','complete','SetTextSelectionsOperation','touchDependencies','includes','history','UNAUTHENTICATED','asObservable','handleInsertRangeMoveRight','ERROR_AGAIN','INVALID_INVITE_CODE','_initStatusListener','_setupSubUnitSync','beforeCommandExecuted','undoState','_assignedColors','APPLY_REJECT','FormulaExecuteStageType','_docTransformStateCacheService','registerDependencies','error','_syncEditingCollabCursorService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_clearOtherTimers','REDEMPTION_INVALID_CODE','send','getOwnPropertyDescriptor','REDEMPTION_CODE_FULLY_REDEEMED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','uni.network.url-service','?taskId=','DATA_SOURCE_TOO_LARGE','SetFormulaCalculationStartMutation','jsx','merge','CHANGESET_REVISION_CONFILICT','_maxFormulaLimit','white','setAlpha','isFormulaId','add','_injector','ENTITLE_COUPON_EXPIRED','UNIVER_DOC','releaseFormulaLimitUrl','IBeforeCloseService','_startCalculationLimit','_docStateChangeManagerService','searchParams','handleDeleteRangeMoveLeft','top','ONLINE','_imageIoService','DisposableCollection','data','path','column','YUUMI_AI_RUN_FAILED','univerjs-icon\x20univerjs-icon-','children','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','bottom','_removeCollabCursors','join','exhaustSavingTask','transformSelections','[LogService\x20Error]:\x20','Optional','beginPath','_registerRenderDependencies','syncEditingCollabCursor','SetWorksheetActivateCommand','isTransformMutationsWithChangesetSuccess','_getSessionTicket','CONFLICT','ranges','getformulaLimitStatusUrl','with','COLORS','Shape','/universer-api/license/formula/limit/done','getParam','colno','_onRefRangeChange','REDEMPTION_CODE_HAS_BEEN_CREATED','setInterval','href','lineno','_initCommandExecutedListener','enableFrontendLog','activeSheet$','sessionStatus$','range','unsubscribe','url(#off-line-icon_clip0_910_343)','actions','getColorFromTheme','ENTITLE_INVALID_COUPON_CODE','ENTITLE_COUPON_USED_UP','_transformPreviousActiveRange','IMessageService','0\x200\x2017\x2016','_name','_taskIds','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','push','Rect','_refRangeService','_collaborationUIEventService','saveImage','univer-mr-2\x20univer-flex\x20univer-text-xl','_setFormulaLimitStatus','DocSkeletonManagerService','_scene','defs','_ensureSubject','_send','_uiPartsService','replace','url(#on-line-icon_clip0_910_349)','LOCAL_CACHE_INTERVAL','startColumn','fromEvent','addObjects','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','_saveCache','onLocalMutation','CollaborationUIEventService','683024OCIDib','black','colorChannel1','_handleEvent','handleInsertRow','functionsExecutedState','IUniverInstanceService','getMember','doc.mutation.rich-text-editing','HTTPService','_memberID','_monkeyPatchLogService','transformMutationsWithChangeset','_lastPointer','_unitOnClients','IURLService','_dataLoaderService','MOBILE_HAS_BEEN_BOUND','MOBILE_VERIFY_CODE_MISMATCH','collabStatus.conflict','on-line-icon','currentTheme$','_checkAndWaitForCalculationPermission','fillText','stack','get','url(#$1','...','getCoordByCell','TOO_MANY_REQUESTS','permission.content','CONNECTOR_DATA_TOO_LARGE','_checkCalculationAvailable','DataLoaderService','onMouseMove','USERS_LEAVE','CollaborationSessionService','sheetID','_drawRectRange','event$','lineTo','findNodePositionByCharIndex','combineLatest','forwardRef','COMPLETION_FINISHED','formula.calculation.unable','registerBeforeClose','collaboration.single-unit.warning','handleMoveRange','DOC_RANGE_TYPE','Injector','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SessionStatus','transformRemoteChangeset','Rectangle','shareReplay','stageInfo','filter','isTransformMutationFailure','resize','addObject','LOGIN_TOKEN_PROCESSING_FAILED','subunit','getMemberID','_id','eventID','_setupBeforeClosingHandler','symbol','ThemeService','_initDependencies','currentColor','_notificationService','_initEvent','pushState','loadOfflineData','off-line-icon_clip0_910_343','AUTHORIZE_CODE_ILLEGAL','CollaborationDataLoaderController','svg','getLocalCacheKey','_urlService','_hasFormulaInDirtyRanges','YUUMI_URL_COL_OUT_OF_RANGE','FromArray','_selfUnitIDs','/universer-api/frontend/logs','APPLY_REVISION_CONFILICT','SUCCESS','SOCKET_FAILED_RETRY','clsx','YUUMI_SUBSCRIPTION_NOT_FOUND','_docTransformSelectionsService','SetFormulaCalculationNotificationMutation','getUniverSheetInstance','getCurrent','requireSession','createSocket','56620eLEqZe','getRangePointData','REDEMPTION_CODE_INACTIVE','getConfig','getSheetBySheetId','mask','stringify','idSuffix','ENTITLE_REPORT_LIMIT_EXCEED','_getAnchorBounding','_renderManagerService','USER_NOT_INVITED_CODE','Workbook'];_0x5977=function(){return _0x100158;};return _0x5977();}ee=Wt([Ae(0x0,g[_0x37525a(0x3be)]),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x37525a(0x268)],Gt=(_0x4ea5d1,_0xb1d138,_0x1b34d7,_0x345747)=>{const _0x27787a=_0x37525a;for(var _0x46b563=_0x345747>0x1?void 0x0:_0x345747?Vt(_0xb1d138,_0x1b34d7):_0xb1d138,_0x16d9b5=_0x4ea5d1[_0x27787a(0x1cd)]-0x1,_0x42b480;_0x16d9b5>=0x0;_0x16d9b5--)(_0x42b480=_0x4ea5d1[_0x16d9b5])&&(_0x46b563=_0x42b480(_0x46b563)||_0x46b563);return _0x46b563;},Ie=(_0x445320,_0x7c6340)=>(_0x43c97f,_0x12f1b2)=>_0x7c6340(_0x43c97f,_0x12f1b2,_0x445320);let te=class{constructor(_0x5e2e02,_0x1f8256,_0x5b7ebe){const _0x406adb=_0x37525a;this[_0x406adb(0x277)]=_0x5e2e02,this[_0x406adb(0x1fa)]=_0x1f8256,this['_docStateChangeManagerService']=_0x5b7ebe;}['transformStateCache'](_0x489446){const _0x4c3853=_0x37525a;this[_0x4c3853(0x3b0)](_0x489446);}[_0x37525a(0x303)](_0x41d1df){const _0x15af55=_0x37525a,{unitID:_0x997943}=_0x41d1df,{collaboration:_0x49dc00}=this[_0x15af55(0x27d)][_0x15af55(0x206)](_0x997943);if(_0x49dc00[_0x15af55(0x1cd)]===0x0)return _0x41d1df;let _0x178daf=a[_0x15af55(0x346)][_0x15af55(0x22a)](_0x41d1df[_0x15af55(0x3a0)][0x0]);for(let _0x11b39c=0x0;_0x11b39c<_0x49dc00['length'];_0x11b39c++){const _0x888d72={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x49dc00[_0x11b39c][_0x15af55(0x1c7)],..._0x49dc00[_0x11b39c]['redoState']}},_0xe60b80=this[_0x15af55(0x1fa)][_0x15af55(0x225)](_0x178daf,_0x888d72,!0x1);if(g[_0x15af55(0x308)](_0xe60b80))throw _0xe60b80[_0x15af55(0x262)];_0x178daf=_0xe60b80[_0x15af55(0x3fd)];}return{...a[_0x15af55(0x346)]['deepClone'](_0x41d1df),'mutations':[_0x178daf]};}[_0x37525a(0x3b0)](_0x230526){const _0x5e7dad=_0x37525a,{unitID:_0x2cd86a}=_0x230526,{history:_0x4a1760,collaboration:_0x22b179}=this[_0x5e7dad(0x27d)][_0x5e7dad(0x206)](_0x2cd86a);if(_0x4a1760[_0x5e7dad(0x1cd)]===0x0&&_0x22b179[_0x5e7dad(0x1cd)]===0x0)return;const _0x2e09f1=[],_0x273444=[];let _0xc3eaf3=a['Tools']['deepClone'](_0x230526[_0x5e7dad(0x3a0)][0x0]),_0x3ff9b1=a[_0x5e7dad(0x346)][_0x5e7dad(0x22a)](_0x230526[_0x5e7dad(0x3a0)][0x0]);for(let _0x4a8a2b=_0x4a1760[_0x5e7dad(0x1cd)]-0x1;_0x4a8a2b>=0x0;_0x4a8a2b--){const _0x10b673={'id':_0x5e7dad(0x2d6),'params':{'unitId':_0x4a1760[_0x4a8a2b][_0x5e7dad(0x1c7)],..._0x4a1760[_0x4a8a2b][_0x5e7dad(0x25c)]}},_0x59fbf9={'id':_0x5e7dad(0x2d6),'params':{'unitId':_0x4a1760[_0x4a8a2b][_0x5e7dad(0x1c7)],..._0x4a1760[_0x4a8a2b][_0x5e7dad(0x249)]}},_0x92f5c8=this['_transformService']['transformMutation'](_0xc3eaf3,_0x10b673,!0x1),_0x5aeb46=this[_0x5e7dad(0x1fa)][_0x5e7dad(0x225)](_0x3ff9b1,_0x59fbf9,!0x1);if(g['isTransformMutationFailure'](_0x92f5c8))throw _0x92f5c8[_0x5e7dad(0x262)];if(g[_0x5e7dad(0x308)](_0x5aeb46))throw _0x5aeb46[_0x5e7dad(0x262)];_0x2e09f1['unshift']({..._0x4a1760[_0x4a8a2b],'undoState':_0x92f5c8[_0x5e7dad(0x423)][_0x5e7dad(0x1db)],'redoState':_0x5aeb46[_0x5e7dad(0x423)][_0x5e7dad(0x1db)]}),_0xc3eaf3=_0x92f5c8[_0x5e7dad(0x3fd)],_0x3ff9b1=_0x5aeb46[_0x5e7dad(0x3fd)];}_0xc3eaf3=a[_0x5e7dad(0x346)][_0x5e7dad(0x22a)](_0x230526['mutations'][0x0]),_0x3ff9b1=a[_0x5e7dad(0x346)][_0x5e7dad(0x22a)](_0x230526[_0x5e7dad(0x3a0)][0x0]);for(let _0x1f406c=_0x22b179[_0x5e7dad(0x1cd)]-0x1;_0x1f406c>=0x0;_0x1f406c--){const _0x538118={'id':_0x5e7dad(0x2d6),'params':{'unitId':_0x22b179[_0x1f406c][_0x5e7dad(0x1c7)],..._0x22b179[_0x1f406c]['undoState']}},_0x308545={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x22b179[_0x1f406c][_0x5e7dad(0x1c7)],..._0x22b179[_0x1f406c]['redoState']}},_0x57bff5=this[_0x5e7dad(0x1fa)][_0x5e7dad(0x225)](_0xc3eaf3,_0x538118,!0x1),_0x24a0bf=this[_0x5e7dad(0x1fa)][_0x5e7dad(0x225)](_0x3ff9b1,_0x308545,!0x1);if(g[_0x5e7dad(0x308)](_0x57bff5))throw _0x57bff5[_0x5e7dad(0x262)];if(g[_0x5e7dad(0x308)](_0x24a0bf))throw _0x24a0bf[_0x5e7dad(0x262)];_0x273444[_0x5e7dad(0x1c5)]({..._0x22b179[_0x1f406c],'undoState':_0x57bff5[_0x5e7dad(0x423)][_0x5e7dad(0x1db)],'redoState':_0x24a0bf['m2Prime'][_0x5e7dad(0x1db)]}),_0xc3eaf3=_0x57bff5[_0x5e7dad(0x3fd)],_0x3ff9b1=_0x24a0bf[_0x5e7dad(0x3fd)];}this[_0x5e7dad(0x27d)][_0x5e7dad(0x1b8)](_0x2cd86a,{'history':_0x2e09f1,'collaboration':_0x273444});}};te=Gt([Ie(0x0,a[_0x37525a(0x221)](a['Injector'])),Ie(0x1,g[_0x37525a(0x3be)]),Ie(0x2,a[_0x37525a(0x221)](T[_0x37525a(0x22c)]))],te);var Xt=Object[_0x37525a(0x268)],Kt=(_0x23aba5,_0x27d325,_0x187382,_0x49bd4b)=>{const _0x1bf4a8=_0x37525a;for(var _0x56a1da=_0x49bd4b>0x1?void 0x0:_0x49bd4b?Xt(_0x27d325,_0x187382):_0x27d325,_0x443d4a=_0x23aba5[_0x1bf4a8(0x1cd)]-0x1,_0x58a41c;_0x443d4a>=0x0;_0x443d4a--)(_0x58a41c=_0x23aba5[_0x443d4a])&&(_0x56a1da=_0x58a41c(_0x56a1da)||_0x56a1da);return _0x56a1da;},Pe=(_0x302624,_0x4b8085)=>(_0x404fa6,_0xd0ef20)=>_0x4b8085(_0x404fa6,_0xd0ef20,_0x302624);let se=class{constructor(_0x3f5398,_0x492622){const _0x55c901=_0x37525a;this[_0x55c901(0x277)]=_0x3f5398,this[_0x55c901(0x1fa)]=_0x492622;}[_0x37525a(0x28f)](_0x20cfb1){const _0x1942c0=_0x37525a;var _0x4fb77b;const _0x2b00f7=this[_0x1942c0(0x277)]['get'](V[_0x1942c0(0x3af)]),_0x25a4e2=(_0x4fb77b=_0x2b00f7[_0x1942c0(0x3b9)]())!=null?_0x4fb77b:[];if(_0x25a4e2[_0x1942c0(0x1cd)]===0x0)return;const _0x104bbf=_0x20cfb1[_0x1942c0(0x42f)],_0x5dd6a1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x104bbf,'actions':null,'textRanges':_0x25a4e2}}],_0x30d607=this[_0x1942c0(0x1fa)][_0x1942c0(0x2da)](_0x20cfb1,_0x5dd6a1);if(!g[_0x1942c0(0x296)](_0x30d607))throw _0x30d607[_0x1942c0(0x262)];const _0xeca9fe=_0x30d607[_0x1942c0(0x423)][0x0]['params'][_0x1942c0(0x349)];Array[_0x1942c0(0x412)](_0xeca9fe)&&_0xeca9fe['length']&&_0x2b00f7[_0x1942c0(0x216)](_0xeca9fe,{'unitId':_0x104bbf,'subUnitId':_0x104bbf},!0x1);}};se=Kt([Pe(0x0,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),Pe(0x1,g[_0x37525a(0x3be)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x1509e3,_0x1b2db9,_0x99ad89,_0x3696f9)=>{const _0x286861=_0x37525a;for(var _0x49663a=_0x3696f9>0x1?void 0x0:_0x3696f9?qt(_0x1b2db9,_0x99ad89):_0x1b2db9,_0x4218fb=_0x1509e3[_0x286861(0x1cd)]-0x1,_0x341593;_0x4218fb>=0x0;_0x4218fb--)(_0x341593=_0x1509e3[_0x4218fb])&&(_0x49663a=_0x341593(_0x49663a)||_0x49663a);return _0x49663a;},N=(_0x168d69,_0x565f8b)=>(_0x124a32,_0x4fffdf)=>_0x565f8b(_0x124a32,_0x4fffdf,_0x168d69);let ie=class extends a[_0x37525a(0x3cb)]{constructor(_0xa0eca6,_0x506045,_0x313118,_0x31fed1,_0x305ebd,_0xa506b4,_0x2918e3,_0x359cb3){const _0x154efd=_0x37525a;super(),_(this,_0x154efd(0x380),new I[(_0x154efd(0x40f))](u[_0x154efd(0x348)][_0x154efd(0x245)])),(this[_0x154efd(0x27d)]=_0xa0eca6,this['_collaborationController']=_0x506045,this[_0x154efd(0x35c)]=_0x313118,this['_docTransformStateCacheService']=_0x31fed1,this['_docTransformSelectionsService']=_0x305ebd,this[_0x154efd(0x20c)]=_0xa506b4,this['_messageService']=_0x2918e3,this['_localeService']=_0x359cb3,this[_0x154efd(0x37e)]());}['_initEntityListener'](){const _0x154e60=_0x37525a;this['disposeWithMe'](this['_collaborationController'][_0x154e60(0x1ec)][_0x154e60(0x375)](_0x4ca89b=>{const _0x4d16b8=_0x154e60,_0xaacb14=this[_0x4d16b8(0x27d)][_0x4d16b8(0x431)][_0x4d16b8(0x375)](_0x44728a=>{const _0x426411=_0x4d16b8;if(_0x44728a==null)return;const {unitId:_0x1e3056,redoState:_0x2f7d85,commandId:_0x3ae1a3}=_0x44728a;if(_0x1e3056!==_0x4ca89b[_0x426411(0x42f)])return;const _0x2ce847={'id':_0x3ae1a3,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x1e3056,'actions':_0x2f7d85[_0x426411(0x2ad)],'textRanges':null}};_0x4ca89b[_0x426411(0x2cc)](_0x2ce847);});if(_0x4ca89b['disposeWithMe'](_0xaacb14),_0x4ca89b instanceof u['DocCollaborationEntity']){const _0x341003={'onTransformIME':_0x531e28=>this[_0x4d16b8(0x35c)][_0x4d16b8(0x38c)](_0x531e28),'onTransformState':_0x5a7640=>this[_0x4d16b8(0x260)][_0x4d16b8(0x1ef)](_0x5a7640),'onTransformSelections':_0xdcf4d9=>this[_0x4d16b8(0x329)][_0x4d16b8(0x28f)](_0xdcf4d9),'onSyncEditingCollabCursor':_0x4cce7d=>this['_docSyncEditingCollabCursorService'][_0x4d16b8(0x294)](_0x4cce7d),'onTransformRemoteChangesetByIMECache':_0x21b121=>this[_0x4d16b8(0x35c)][_0x4d16b8(0x303)](_0x21b121),'onTransformRemoteChangesetByStateCache':_0x57a549=>this[_0x4d16b8(0x260)][_0x4d16b8(0x303)](_0x57a549)};_0x4ca89b[_0x4d16b8(0x21c)](_0x341003);}}));}};ie=zt([N(0x0,a[_0x37525a(0x221)](T[_0x37525a(0x22c)])),N(0x1,a[_0x37525a(0x221)](u['CollaborationController'])),N(0x2,a['Inject'](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x37525a(0x221)](se)),N(0x5,a[_0x37525a(0x221)](be)),N(0x6,O[_0x37525a(0x2b2)]),N(0x7,a[_0x37525a(0x221)](a[_0x37525a(0x1fb)]))],ie);var G=(_0x5e571a=>(_0x5e571a[_0x5e571a[_0x37525a(0x1a5)]=0x0]=_0x37525a(0x1a5),_0x5e571a[_0x5e571a['OK']=0x1]='OK',_0x5e571a[_0x5e571a[_0x37525a(0x390)]=0x2]=_0x37525a(0x390),_0x5e571a[_0x5e571a[_0x37525a(0x34e)]=0x3]=_0x37525a(0x34e),_0x5e571a[_0x5e571a[_0x37525a(0x3fe)]=0x4]=_0x37525a(0x3fe),_0x5e571a[_0x5e571a[_0x37525a(0x254)]=0x5]=_0x37525a(0x254),_0x5e571a[_0x5e571a[_0x37525a(0x1c3)]=0x6]=_0x37525a(0x1c3),_0x5e571a[_0x5e571a[_0x37525a(0x3c7)]=0x7]=_0x37525a(0x3c7),_0x5e571a[_0x5e571a[_0x37525a(0x2eb)]=0x8]=_0x37525a(0x2eb),_0x5e571a[_0x5e571a[_0x37525a(0x2fa)]=0x9]=_0x37525a(0x2fa),_0x5e571a[_0x5e571a['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5e571a[_0x5e571a[_0x37525a(0x2e0)]=0xb]=_0x37525a(0x2e0),_0x5e571a[_0x5e571a[_0x37525a(0x3e1)]=0xc]=_0x37525a(0x3e1),_0x5e571a[_0x5e571a[_0x37525a(0x1a8)]=0xd]=_0x37525a(0x1a8),_0x5e571a[_0x5e571a[_0x37525a(0x28a)]=0xe]=_0x37525a(0x28a),_0x5e571a[_0x5e571a[_0x37525a(0x31a)]=0xf]=_0x37525a(0x31a),_0x5e571a[_0x5e571a[_0x37525a(0x30b)]=0x10]=_0x37525a(0x30b),_0x5e571a[_0x5e571a[_0x37525a(0x1d0)]=0x64]=_0x37525a(0x1d0),_0x5e571a[_0x5e571a[_0x37525a(0x257)]=0x65]=_0x37525a(0x257),_0x5e571a[_0x5e571a[_0x37525a(0x3a8)]=0xc9]='USER_NOT_FOUND',_0x5e571a[_0x5e571a[_0x37525a(0x373)]=0xca]='USER_IS_ANONYMOUS',_0x5e571a[_0x5e571a['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x37525a(0x271),_0x5e571a[_0x5e571a[_0x37525a(0x3bd)]=0x1771]=_0x37525a(0x3bd),_0x5e571a[_0x5e571a[_0x37525a(0x1da)]=0x1772]=_0x37525a(0x1da),_0x5e571a[_0x5e571a['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x37525a(0x420),_0x5e571a[_0x5e571a['APPLY_REJECT']=0x1b59]=_0x37525a(0x25e),_0x5e571a[_0x5e571a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5e571a[_0x5e571a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x37525a(0x324),_0x5e571a[_0x5e571a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x37525a(0x218),_0x5e571a[_0x5e571a[_0x37525a(0x456)]=0x1b5d]='APPLY_DUPLICATED',_0x5e571a[_0x5e571a[_0x37525a(0x2ed)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5e571a[_0x5e571a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x37525a(0x3f7),_0x5e571a[_0x5e571a[_0x37525a(0x301)]=0x232a]=_0x37525a(0x301),_0x5e571a[_0x5e571a[_0x37525a(0x1f7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5e571a[_0x5e571a[_0x37525a(0x1b3)]=0x232c]=_0x37525a(0x1b3),_0x5e571a[_0x5e571a[_0x37525a(0x240)]=0x232d]=_0x37525a(0x240),_0x5e571a[_0x5e571a[_0x37525a(0x36d)]=0x2711]=_0x37525a(0x36d),_0x5e571a[_0x5e571a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x37525a(0x320),_0x5e571a[_0x5e571a[_0x37525a(0x3eb)]=0x2713]=_0x37525a(0x3eb),_0x5e571a[_0x5e571a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x37525a(0x328),_0x5e571a[_0x5e571a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x37525a(0x3b1),_0x5e571a[_0x5e571a[_0x37525a(0x36a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5e571a[_0x5e571a[_0x37525a(0x190)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x5e571a[_0x5e571a[_0x37525a(0x3ea)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5e571a[_0x5e571a[_0x37525a(0x2b6)]=0x271e]=_0x37525a(0x2b6),_0x5e571a[_0x5e571a[_0x37525a(0x287)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x5e571a[_0x5e571a[_0x37525a(0x44f)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5e571a[_0x5e571a['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x37525a(0x3b7),_0x5e571a[_0x5e571a[_0x37525a(0x342)]=0x2ee1]=_0x37525a(0x342),_0x5e571a[_0x5e571a[_0x37525a(0x258)]=0x2ee2]='INVALID_INVITE_CODE',_0x5e571a[_0x5e571a[_0x37525a(0x3ba)]=0x2ee3]=_0x37525a(0x3ba),_0x5e571a[_0x5e571a['USER_NOT_INVITED_CODE']=0x2ee4]=_0x37525a(0x33a),_0x5e571a[_0x5e571a['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5e571a[_0x5e571a['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x37525a(0x39f),_0x5e571a[_0x5e571a['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x37525a(0x2df),_0x5e571a[_0x5e571a[_0x37525a(0x399)]=0x32cb]=_0x37525a(0x399),_0x5e571a[_0x5e571a[_0x37525a(0x457)]=0x36b1]=_0x37525a(0x457),_0x5e571a[_0x5e571a['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x5e571a[_0x5e571a['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x37525a(0x18d),_0x5e571a[_0x5e571a['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x37525a(0x219),_0x5e571a[_0x5e571a[_0x37525a(0x2af)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x5e571a[_0x5e571a[_0x37525a(0x278)]=0x36b6]=_0x37525a(0x278),_0x5e571a[_0x5e571a[_0x37525a(0x2b0)]=0x36b7]=_0x37525a(0x2b0),_0x5e571a[_0x5e571a[_0x37525a(0x3de)]=0x36b8]=_0x37525a(0x3de),_0x5e571a[_0x5e571a['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x37525a(0x370),_0x5e571a[_0x5e571a[_0x37525a(0x337)]=0x3716]=_0x37525a(0x337),_0x5e571a[_0x5e571a['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x37525a(0x3a4),_0x5e571a[_0x5e571a['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5e571a[_0x5e571a[_0x37525a(0x266)]=0x3a99]=_0x37525a(0x266),_0x5e571a[_0x5e571a['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x37525a(0x331),_0x5e571a[_0x5e571a['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x37525a(0x269),_0x5e571a[_0x5e571a['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5e571a[_0x5e571a[_0x37525a(0x3d9)]=0x3a9d]=_0x37525a(0x3d9),_0x5e571a[_0x5e571a[_0x37525a(0x1e0)]=0x3a9e]=_0x37525a(0x1e0),_0x5e571a[_0x5e571a[_0x37525a(0x2a2)]=0x3a9f]=_0x37525a(0x2a2),_0x5e571a[_0x5e571a['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x37525a(0x26d),_0x5e571a[_0x5e571a[_0x37525a(0x419)]=-0x1]='UNRECOGNIZED',_0x5e571a))(G||{});function Jt(_0x2a7090){const _0x911566=_0x37525a;var _0x5c0fcd,_0x1d498f;const _0x10ba83=(_0x5c0fcd=_0x2a7090[_0x911566(0x306)])==null?void 0x0:_0x5c0fcd[_0x911566(0x406)],_0x465c88=((_0x1d498f=_0x2a7090[_0x911566(0x306)])==null?void 0x0:_0x1d498f['totalFormulasToCalculate'])||0x0;return _0x10ba83===B[_0x911566(0x25f)][_0x911566(0x210)]&&_0x465c88>0x0;}function Zt(_0x9aada6){const _0x3dfa86=_0x37525a;return _0x9aada6[_0x3dfa86(0x2d3)]===B[_0x3dfa86(0x378)][_0x3dfa86(0x325)];}var Qt=Object[_0x37525a(0x268)],es=(_0x31af90,_0x9ad093,_0x58b5a9,_0x3f1979)=>{const _0x2e6ff3=_0x37525a;for(var _0x459b5b=_0x3f1979>0x1?void 0x0:_0x3f1979?Qt(_0x9ad093,_0x58b5a9):_0x9ad093,_0x4b1330=_0x31af90[_0x2e6ff3(0x1cd)]-0x1,_0x3e328c;_0x4b1330>=0x0;_0x4b1330--)(_0x3e328c=_0x31af90[_0x4b1330])&&(_0x459b5b=_0x3e328c(_0x459b5b)||_0x459b5b);return _0x459b5b;},L=(_0x901e35,_0x4bf09)=>(_0x368b43,_0x143b15)=>_0x4bf09(_0x368b43,_0x143b15,_0x901e35);const ts=_0x37525a(0x450),ss='/universer-api/license/formula/limit/start',is=_0x37525a(0x29e);let ne=class extends a[_0x37525a(0x3cb)]{constructor(_0x5e5dbb,_0x5c283b,_0x42eafb,_0x5bfa62,_0x3dc16b,_0x5045c2,_0x572f5d){const _0x3af3aa=_0x37525a;super(),_(this,_0x3af3aa(0x398),null),_(this,_0x3af3aa(0x272),0x0),_(this,_0x3af3aa(0x396),0x0),_(this,_0x3af3aa(0x2b5),[]),_(this,_0x3af3aa(0x23f),0x0),(this[_0x3af3aa(0x44b)]=_0x5e5dbb,this['_commandService']=_0x5c283b,this[_0x3af3aa(0x22e)]=_0x42eafb,this[_0x3af3aa(0x1c1)]=_0x5bfa62,this[_0x3af3aa(0x3cf)]=_0x3dc16b,this['_logService']=_0x5045c2,this[_0x3af3aa(0x43c)]=_0x572f5d,this[_0x3af3aa(0x38b)]());}['_initCommandInterceptor'](){const _0x48e411=_0x37525a;this['disposeWithMe'](this[_0x48e411(0x40e)][_0x48e411(0x25b)]((_0x1242eb,_0x2cc877)=>{const _0xd29114=_0x48e411;var _0x1376f8;if(_0x1242eb['id']!==B[_0xd29114(0x26e)]['id'])return;const _0x2274aa=_0x1242eb['params'];if(!this[_0xd29114(0x31f)]((_0x1376f8=_0x2274aa[_0xd29114(0x3c8)])!=null?_0x1376f8:[]))return;if(!this[_0xd29114(0x2ee)]())throw this[_0xd29114(0x2e4)](_0x1242eb,_0x2cc877),this[_0xd29114(0x1c6)](),new a[(_0xd29114(0x415))]();})),this[_0x48e411(0x1ad)](this[_0x48e411(0x40e)][_0x48e411(0x1ba)]((_0x25b164,_0x4fecbc)=>{const _0x632242=_0x48e411;if(_0x25b164['id']!==B[_0x632242(0x32a)]['id'])return;const _0x10a8dd=_0x25b164['params'];if(Jt(_0x10a8dd)){const _0x359eda=a['generateRandomId']();this[_0x632242(0x2b5)][_0x632242(0x2b7)](_0x359eda),this[_0x632242(0x27c)](_0x359eda);}else{if(Zt(_0x10a8dd)&&this[_0x632242(0x2b5)][_0x632242(0x1cd)]>0x0){const _0x2f0c1f=this[_0x632242(0x2b5)]['shift']();this['_releaseCalculationLimit'](_0x2f0c1f);}}}));}[_0x37525a(0x37c)](){const _0x339d87=_0x37525a;super[_0x339d87(0x37c)](),this[_0x339d87(0x19b)](),this['_taskIds']=[],this[_0x339d87(0x396)]=0x0,this[_0x339d87(0x272)]=0x0,this[_0x339d87(0x23f)]=0x0;}async[_0x37525a(0x2e4)](_0xe83df4,_0x454862){const _0x1420ea=_0x37525a;for(let _0x1493b7=0x0;_0x1493b7<0x1e;_0x1493b7++)try{if(await this['_getFormulaLimitStatus'](),this[_0x1420ea(0x2ee)]()){this[_0x1420ea(0x1a4)](_0xe83df4,_0x454862),this[_0x1420ea(0x44b)][_0x1420ea(0x1f0)]({'content':this[_0x1420ea(0x43c)]['t']('formula.calculation.started'),'type':p[_0x1420ea(0x224)][_0x1420ea(0x391)]});return;}await new Promise(_0x913bf3=>{const _0x4c2cd5=_0x1420ea;this[_0x4c2cd5(0x398)]=window[_0x4c2cd5(0x43d)](_0x913bf3,0x3e8);});}catch(_0x2acb08){this[_0x1420ea(0x1ae)][_0x1420ea(0x262)](_0x2acb08);}this['_messageService'][_0x1420ea(0x1f0)]({'content':this[_0x1420ea(0x43c)]['t'](_0x1420ea(0x2fb)),'type':p[_0x1420ea(0x224)][_0x1420ea(0x3df)]});}[_0x37525a(0x1a4)](_0x4112ad,_0x491ba0){const _0x185f31=_0x37525a;try{this[_0x185f31(0x40e)][_0x185f31(0x3bb)](_0x4112ad['id'],_0x4112ad[_0x185f31(0x1db)],_0x491ba0);}catch(_0x2f3120){this['_logService'][_0x185f31(0x262)](_0x2f3120);}}[_0x37525a(0x2bd)](_0x39fec3,_0x364c68){const _0x50c52d=_0x37525a;_0x364c68<this[_0x50c52d(0x23f)]||(this[_0x50c52d(0x23f)]=_0x364c68,this['_maxFormulaLimit']=Number[_0x50c52d(0x1d9)](_0x39fec3[_0x50c52d(0x3c2)]),this[_0x50c52d(0x396)]=Number[_0x50c52d(0x1d9)](_0x39fec3[_0x50c52d(0x35d)]));}async[_0x37525a(0x27c)](_0x1ebda7){const _0x455d6f=_0x37525a;var _0x1f7567,_0xe887ca;const _0x462d06=Date[_0x455d6f(0x1a9)]();try{const _0xe04a40=((_0x1f7567=this['_configService'][_0x455d6f(0x332)](u[_0x455d6f(0x40b)]))==null?void 0x0:_0x1f7567['startFormulaLimitUrl'])||ss,_0x21ff13=(await this[_0x455d6f(0x1c1)][_0x455d6f(0x195)](_0xe04a40,{'body':JSON[_0x455d6f(0x335)]({'taskId':_0x1ebda7})}))['body'];if(((_0xe887ca=_0x21ff13[_0x455d6f(0x262)])==null?void 0x0:_0xe887ca[_0x455d6f(0x432)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x21ff13[_0x455d6f(0x1df)],_0x462d06);}catch(_0x2facdd){this['_logService'][_0x455d6f(0x262)](_0x2facdd);}}async[_0x37525a(0x387)](_0x2f2744){const _0x2032d6=_0x37525a;var _0x279a37,_0x2653d3;const _0xc964c7=Date[_0x2032d6(0x1a9)]();try{const _0x12e1ae=((_0x279a37=this[_0x2032d6(0x22e)][_0x2032d6(0x332)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x279a37[_0x2032d6(0x29a)])||ts,_0x3946a7=_0x2f2744?_0x12e1ae+_0x2032d6(0x26c)+encodeURIComponent(_0x2f2744):_0x12e1ae,_0x15ad18=(await this['_httpService'][_0x2032d6(0x2e7)](_0x3946a7))[_0x2032d6(0x1f8)];if(((_0x2653d3=_0x15ad18['error'])==null?void 0x0:_0x2653d3[_0x2032d6(0x432)])!==G['OK'])return;this[_0x2032d6(0x2bd)](_0x15ad18[_0x2032d6(0x1df)],_0xc964c7);}catch(_0x355b59){this[_0x2032d6(0x1ae)][_0x2032d6(0x262)](_0x355b59);}}async[_0x37525a(0x408)](_0xa9f890){const _0x4ac6ea=_0x37525a;var _0x432047,_0x4cbd3b;const _0x3af812=Date[_0x4ac6ea(0x1a9)]();try{const _0x11d105=((_0x432047=this[_0x4ac6ea(0x22e)][_0x4ac6ea(0x332)](u[_0x4ac6ea(0x40b)]))==null?void 0x0:_0x432047[_0x4ac6ea(0x27a)])||is,_0x21ab63=(await this['_httpService'][_0x4ac6ea(0x195)](_0x11d105,{'body':JSON[_0x4ac6ea(0x335)]({'taskId':_0xa9f890})}))[_0x4ac6ea(0x1f8)];if(((_0x4cbd3b=_0x21ab63[_0x4ac6ea(0x262)])==null?void 0x0:_0x4cbd3b[_0x4ac6ea(0x432)])!==G['OK'])return;this[_0x4ac6ea(0x2bd)](_0x21ab63[_0x4ac6ea(0x1df)],_0x3af812);}catch(_0x4f1b13){this[_0x4ac6ea(0x1ae)][_0x4ac6ea(0x262)](_0x4f1b13);}}[_0x37525a(0x2ee)](){const _0x1d9ce7=_0x37525a;return this[_0x1d9ce7(0x272)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x1d9ce7(0x396)]>0x0;}[_0x37525a(0x19b)](){const _0x4dd312=_0x37525a;this[_0x4dd312(0x398)]&&(clearTimeout(this[_0x4dd312(0x398)]),this[_0x4dd312(0x398)]=null);}[_0x37525a(0x1c6)](){const _0xa2aa71=_0x37525a;this[_0xa2aa71(0x44b)]['show']({'content':this[_0xa2aa71(0x43c)]['t'](_0xa2aa71(0x230)),'type':p[_0xa2aa71(0x224)]['Loading']});}['_hasFormulaInDirtyRanges'](_0x5e696b){const _0x320bdd=_0x37525a;for(const _0x4ce1ed of _0x5e696b){const {unitId:_0x25a254,sheetId:_0x1776c5,range:_0x8fb33f}=_0x4ce1ed,_0x211d9c=this[_0x320bdd(0x3cf)]['getUnit'](_0x25a254);if(!_0x211d9c)continue;const _0x571b0c=_0x211d9c[_0x320bdd(0x333)](_0x1776c5);if(!_0x571b0c)continue;const _0xacd8f8=_0x571b0c['getCellMatrix']();for(let _0x59332a=_0x8fb33f[_0x320bdd(0x20e)];_0x59332a<=_0x8fb33f['endRow'];_0x59332a++)for(let _0x2909ef=_0x8fb33f[_0x320bdd(0x2c7)];_0x2909ef<=_0x8fb33f['endColumn'];_0x2909ef++){const _0x296304=_0xacd8f8[_0x320bdd(0x243)](_0x59332a,_0x2909ef);if(_0x296304&&(a['isFormulaString'](_0x296304['f'])||a[_0x320bdd(0x275)](_0x296304['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x37525a(0x221)](O[_0x37525a(0x2b2)])),L(0x1,a['ICommandService']),L(0x2,a[_0x37525a(0x3f9)]),L(0x3,a[_0x37525a(0x221)](x['HTTPService'])),L(0x4,a[_0x37525a(0x2d4)]),L(0x5,a['ILogService']),L(0x6,a[_0x37525a(0x221)](a[_0x37525a(0x1fb)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x5cbe89,_0x4bf6af,_0x14f1e1,_0x51e76c)=>{const _0x45a613=_0x37525a;for(var _0x31d60d=_0x51e76c>0x1?void 0x0:_0x51e76c?ns(_0x4bf6af,_0x14f1e1):_0x4bf6af,_0x181262=_0x5cbe89[_0x45a613(0x1cd)]-0x1,_0x13d04f;_0x181262>=0x0;_0x181262--)(_0x13d04f=_0x5cbe89[_0x181262])&&(_0x31d60d=_0x13d04f(_0x31d60d)||_0x31d60d);return _0x31d60d;},Se=(_0x5091f7,_0x121b05)=>(_0x39d602,_0x285e17)=>_0x121b05(_0x39d602,_0x285e17,_0x5091f7);let Te=class extends a[_0x37525a(0x3cb)]{constructor(_0x28a4ec,_0x4fb214,_0x477119){const _0x1f4f11=_0x37525a;super(),_(this,_0x1f4f11(0x39c),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x1f4f11(0x403),!0x1),(this[_0x1f4f11(0x22e)]=_0x28a4ec,this[_0x1f4f11(0x367)]=_0x4fb214,this[_0x1f4f11(0x1ee)]=_0x477119);}[_0x37525a(0x1f4)](){this['_disabled']=!0x0;}[_0x37525a(0x226)](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x37525a(0x37c)](){const _0x4ed106=_0x37525a;this[_0x4ed106(0x28e)]()[_0x4ed106(0x213)](()=>super['dispose']());}async[_0x37525a(0x318)](_0xc62251){const _0x484e5a=_0x37525a;return this[_0x484e5a(0x403)]?null:this[_0x484e5a(0x367)][_0x484e5a(0x368)](u[_0x484e5a(0x31d)](_0xc62251));}async[_0x37525a(0x44e)](_0xc84b6d,_0x5a7a99){const _0x4b2668=_0x37525a;return!!this[_0x4b2668(0x367)][_0x4b2668(0x3e7)](_0xc84b6d,_0x5a7a99);}[_0x37525a(0x1dc)](_0x1a93e6,_0x1fe9ea,_0x523449,_0x3583ec){const _0x55de24=_0x37525a,_0x49f22a=this[_0x55de24(0x1ee)][_0x55de24(0x18e)](_0x1a93e6);this[_0x55de24(0x39c)]['set'](_0x1a93e6,{'unitID':_0x1a93e6,'type':_0x1fe9ea,'awaitingChangeset':_0x523449,'mutations':_0x3583ec,'rev':_0x49f22a}),this['_saveTaskMap'][_0x55de24(0x3fa)](_0x1a93e6)||this[_0x55de24(0x3e8)](_0x1a93e6);}[_0x37525a(0x3e8)](_0x488419){const _0x1275ce=_0x37525a,_0x4050a1=this['_getSaveTimeout']();_0x4050a1===0x0?this['_saveCache'](_0x488419):this[_0x1275ce(0x200)][_0x1275ce(0x3d1)](_0x488419,setTimeout(()=>this['_saveCache'](_0x488419),_0x4050a1));}[_0x37525a(0x35b)](){const _0x4cd066=_0x37525a;var _0x32a428;return(_0x32a428=this[_0x4cd066(0x22e)][_0x4cd066(0x332)](u[_0x4cd066(0x40a)]))!=null?_0x32a428:u[_0x4cd066(0x2c6)];}[_0x37525a(0x2cb)](_0x47cbbe){const _0x5ebc96=_0x37525a,_0x5a870f=this['_saveTaskMap'][_0x5ebc96(0x2e7)](_0x47cbbe);return _0x5a870f!==void 0x0&&window[_0x5ebc96(0x3e5)](_0x5a870f),this[_0x5ebc96(0x367)][_0x5ebc96(0x3e7)](u['getLocalCacheKey'](_0x47cbbe),this[_0x5ebc96(0x39c)][_0x5ebc96(0x2e7)](_0x47cbbe))[_0x5ebc96(0x213)](()=>this['_saveTaskMap'][_0x5ebc96(0x3ed)](_0x47cbbe));}async[_0x37525a(0x28e)](){const _0x5556de=_0x37525a,_0x217ebb=[];this[_0x5556de(0x200)][_0x5556de(0x34f)]((_0x2de8ec,_0x5f292c)=>{const _0x187297=_0x5556de;window[_0x187297(0x3e5)](_0x2de8ec),_0x217ebb[_0x187297(0x2b7)](this[_0x187297(0x2cb)](_0x5f292c)[_0x187297(0x213)](()=>{const _0x2acef5=_0x187297;this['_saveTaskMap'][_0x2acef5(0x3ed)](_0x5f292c);}));}),await Promise[_0x5556de(0x3dd)](_0x217ebb);}};Te=rs([Se(0x0,a[_0x37525a(0x3f9)]),Se(0x1,a[_0x37525a(0x21d)]),Se(0x2,a['Inject'](g['RevisionService']))],Te);class ke extends a[_0x37525a(0x38a)]{constructor(){const _0x3da702=_0x37525a;super(),_(this,_0x3da702(0x233)),this[_0x3da702(0x233)]=I[_0x3da702(0x2c8)](window,_0x3da702(0x3b5))[_0x3da702(0x1a0)](I[_0x3da702(0x382)](this[_0x3da702(0x3b6)]),I[_0x3da702(0x305)](0x1),I['mapTo'](void 0x0));}['setParam'](_0x4e2ba0,_0x164546,_0x185ced=!0x1){const _0x387a1f=_0x37525a,_0x54b2ee=new URL(window['location'][_0x387a1f(0x2a4)]);_0x54b2ee[_0x387a1f(0x27e)][_0x387a1f(0x3d1)](_0x4e2ba0,_0x164546),_0x185ced?window['history'][_0x387a1f(0x427)]('','',_0x54b2ee['toString']()):window[_0x387a1f(0x253)]['pushState']('','',_0x54b2ee[_0x387a1f(0x38d)]());}[_0x37525a(0x341)](_0x678e49,_0x4615fc=!0x1){const _0x5ee676=_0x37525a,_0x592154=new URL(window['location'][_0x5ee676(0x2a4)]);_0x592154[_0x5ee676(0x27e)]['delete'](_0x678e49),_0x4615fc?window[_0x5ee676(0x253)][_0x5ee676(0x427)]('','',_0x592154[_0x5ee676(0x38d)]()):window['history'][_0x5ee676(0x317)]('','',_0x592154['toString']());}[_0x37525a(0x29f)](_0xc23746){const _0xa8bd8e=_0x37525a;var _0x17ce13;return(_0x17ce13=new URL(window[_0xa8bd8e(0x3d3)]['href'])[_0xa8bd8e(0x27e)][_0xa8bd8e(0x2e7)](_0xc23746))!=null?_0x17ce13:void 0x0;}}var os=Object[_0x37525a(0x3ae)],as=Object[_0x37525a(0x268)],cs=(_0x5e4440,_0x4f02e8,_0x3db1ae)=>_0x4f02e8 in _0x5e4440?os(_0x5e4440,_0x4f02e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3db1ae}):_0x5e4440[_0x4f02e8]=_0x3db1ae,ls=(_0x2ce15e,_0x3a3e68,_0x1b41af,_0x2785a5)=>{const _0x29eb39=_0x37525a;for(var _0x5e5616=_0x2785a5>0x1?void 0x0:_0x2785a5?as(_0x3a3e68,_0x1b41af):_0x3a3e68,_0x4845cd=_0x2ce15e[_0x29eb39(0x1cd)]-0x1,_0x9c3483;_0x4845cd>=0x0;_0x4845cd--)(_0x9c3483=_0x2ce15e[_0x4845cd])&&(_0x5e5616=_0x9c3483(_0x5e5616)||_0x5e5616);return _0x5e5616;},de=(_0x1d106f,_0x3631fb)=>(_0x21e6bb,_0x34e45d)=>_0x3631fb(_0x21e6bb,_0x34e45d,_0x1d106f),_s=(_0x12670d,_0x46356d,_0x4ef6ea)=>cs(_0x12670d,_0x46356d+'',_0x4ef6ea);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x424250=Me,_0x341a99,_0x4573bc,_0x14cba1){const _0x380002=_0x37525a;super(),this[_0x380002(0x241)]=_0x424250,this[_0x380002(0x339)]=_0x341a99,this[_0x380002(0x277)]=_0x4573bc,this[_0x380002(0x22e)]=_0x14cba1;const {..._0x525ffe}=a[_0x380002(0x270)]({},Me,this[_0x380002(0x241)]);this[_0x380002(0x22e)][_0x380002(0x386)](Yt,_0x525ffe);}[_0x37525a(0x436)](){const _0x17a46f=_0x37525a;this[_0x17a46f(0x1f5)](),this[_0x17a46f(0x313)]();}['onRendered'](){const _0x1a358e=_0x37525a;this[_0x1a358e(0x293)]();}['_registerDependencies'](){const _0x1431b1=_0x37525a;var _0x3b5a90;const _0x45f1dd=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x1431b1(0x1f2)]}],[u[_0x1431b1(0x1ab)],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x1431b1(0x31b)]]];this[_0x1431b1(0x241)][_0x1431b1(0x2a7)]&&_0x45f1dd[_0x1431b1(0x2b7)]([Q]),a[_0x1431b1(0x261)](this['_injector'],a[_0x1431b1(0x35a)](_0x45f1dd,(_0x3b5a90=this['_config'])==null?void 0x0:_0x3b5a90['override']));}[_0x37525a(0x293)](){const _0x533645=_0x37525a;this[_0x533645(0x1ad)](this[_0x533645(0x339)][_0x533645(0x350)](a['UniverInstanceType'][_0x533645(0x279)],[Ee])),this[_0x533645(0x1ad)](this[_0x533645(0x339)][_0x533645(0x350)](a[_0x533645(0x409)]['UNIVER_SHEET'],[Ce]));}[_0x37525a(0x313)](){const _0x3ac9f0=_0x37525a;a[_0x3ac9f0(0x251)](this[_0x3ac9f0(0x277)],[[F],[exports[_0x3ac9f0(0x3bf)]],[ie],[Z],[exports[_0x3ac9f0(0x31b)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x3ac9f0(0x251)](this[_0x3ac9f0(0x277)],[[Q]]);}},_s(exports[_0x37525a(0x1aa)],_0x37525a(0x235),hs),exports[_0x37525a(0x1aa)]=ls([a[_0x37525a(0x199)](u[_0x37525a(0x448)]),de(0x1,C[_0x37525a(0x402)]),de(0x2,a[_0x37525a(0x221)](a[_0x37525a(0x300)])),de(0x3,a[_0x37525a(0x3f9)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x37525a(0x268)],Is=(_0xe5cb79,_0x5e80f1,_0x4bf071,_0x48f84b)=>{const _0x4d4727=_0x37525a;for(var _0x2b367a=_0x48f84b>0x1?void 0x0:_0x48f84b?us(_0x5e80f1,_0x4bf071):_0x5e80f1,_0x3b1fd8=_0xe5cb79[_0x4d4727(0x1cd)]-0x1,_0x13c148;_0x3b1fd8>=0x0;_0x3b1fd8--)(_0x13c148=_0xe5cb79[_0x3b1fd8])&&(_0x2b367a=_0x13c148(_0x2b367a)||_0x2b367a);return _0x2b367a;},W=(_0x31242e,_0x14d6f0)=>(_0x4f44b4,_0x10645e)=>_0x14d6f0(_0x4f44b4,_0x10645e,_0x31242e);exports['BrowserCollaborationSocketService']=class extends u[_0x37525a(0x3da)]{constructor(_0x58abb4,_0x850268,_0x168dfc,_0x4ccb45,_0x47977d){super(_0x58abb4,_0x850268,_0x168dfc,_0x4ccb45,_0x47977d);}async[_0x37525a(0x32e)](_0x14cd41){const _0x23e195=_0x37525a,_0x5e8583=await this[_0x23e195(0x297)](),_0x586b5d=this[_0x23e195(0x1fc)](_0x14cd41,_0x5e8583);return this[_0x23e195(0x1c0)](_0x586b5d);}[_0x37525a(0x1fc)](_0x5047d3,_0x1f8163){const _0x4d9947=_0x37525a,_0x11d3a5=typeof window>'u'?new URL(_0x5047d3):new URL(_0x5047d3,window[_0x4d9947(0x3d3)][_0x4d9947(0x197)]);_0x11d3a5[_0x4d9947(0x27e)][_0x4d9947(0x3d1)](_0x4d9947(0x3f8),_0x1f8163);const _0x499dc2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4d9947(0x3d3)][_0x4d9947(0x19f)]);return _0x499dc2[_0x4d9947(0x2e7)](_0x4d9947(0x3c4))&&_0x11d3a5[_0x4d9947(0x27e)][_0x4d9947(0x3d1)](_0x4d9947(0x3c4),_0x499dc2[_0x4d9947(0x2e7)](_0x4d9947(0x3c4))),_0x11d3a5[_0x4d9947(0x38d)]();}async['_getSessionTicket'](){const _0x26b9e4=_0x37525a;var _0x1353fb,_0xde3826,_0x1653aa;const _0x256e25=this[_0x26b9e4(0x22e)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x101325=(_0x1353fb=_0x256e25==null?void 0x0:_0x256e25[_0x26b9e4(0x3c3)])!=null?_0x1353fb:u[_0x26b9e4(0x37a)];return(_0x1653aa=(_0xde3826=(await this[_0x26b9e4(0x1c1)]['get'](_0x101325,{'headers':{'Content-Type':_0x26b9e4(0x381)}}))[_0x26b9e4(0x1f8)])==null?void 0x0:_0xde3826[_0x26b9e4(0x1e4)])!=null?_0x1653aa:'';}},exports[_0x37525a(0x3f2)]=Is([W(0x0,a['Inject'](a['Injector'])),W(0x1,a[_0x37525a(0x221)](x[_0x37525a(0x2d7)])),W(0x2,a[_0x37525a(0x3f9)]),W(0x3,a[_0x37525a(0x1a3)]),W(0x4,g[_0x37525a(0x196)])],exports[_0x37525a(0x3f2)]);var Ss=Object[_0x37525a(0x268)],ds=(_0x255a12,_0x19c346,_0x2b43cf,_0x1e68ac)=>{for(var _0x4e0c68=_0x1e68ac>0x1?void 0x0:_0x1e68ac?Ss(_0x19c346,_0x2b43cf):_0x19c346,_0x40850f=_0x255a12['length']-0x1,_0x3c638b;_0x40850f>=0x0;_0x40850f--)(_0x3c638b=_0x255a12[_0x40850f])&&(_0x4e0c68=_0x3c638b(_0x4e0c68)||_0x4e0c68);return _0x4e0c68;},fe=(_0x24087d,_0x5a0639)=>(_0x271435,_0x54d0dd)=>_0x5a0639(_0x271435,_0x54d0dd,_0x24087d);exports[_0x37525a(0x1d4)]=class extends a[_0x37525a(0x3cb)]{constructor(_0x50b210,_0x1e6595,_0x4ea723){const _0x2b4e65=_0x37525a;super(),this['_instanceService']=_0x50b210,this['_httpService']=_0x1e6595,this[_0x2b4e65(0x22e)]=_0x4ea723;}async['runOnServer'](_0x3c69d8,_0x2c7f25,_0x520ee1,..._0x117808){const _0x21a83f=_0x37525a;var _0x4e791b,_0x2a81a2,_0x2aaa61,_0x52e02b;const _0x4be222=this[_0x21a83f(0x20b)][_0x21a83f(0x3c5)]();if(!_0x4be222)throw new Error(_0x21a83f(0x26a));const _0x433f95=((_0x4e791b=this[_0x21a83f(0x22e)][_0x21a83f(0x332)](u[_0x21a83f(0x42c)]))!=null?_0x4e791b:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x3c69d8+'/run/'+_0x2c7f25,_0x27ea46=new URL(window['location'][_0x21a83f(0x2a4)]),_0x33ae93={'scriptId':_0x3c69d8,'runId':(_0x2a81a2=_0x27ea46[_0x21a83f(0x27e)][_0x21a83f(0x2e7)](_0x21a83f(0x3c4)))!=null?_0x2a81a2:'','function':_0x2c7f25,'unitId':_0x4be222[_0x21a83f(0x212)](),'argsOfFunction':JSON[_0x21a83f(0x335)](_0x117808),'invokeId':(_0x2aaa61=_0x520ee1[_0x21a83f(0x202)])!=null?_0x2aaa61:'','executionId':(_0x52e02b=_0x520ee1['executionId'])!=null?_0x52e02b:''};try{const _0x56eab1=await this[_0x21a83f(0x1c1)][_0x21a83f(0x195)](_0x433f95,{'body':_0x33ae93});return _0x56eab1[_0x21a83f(0x1f8)]['error']&&_0x56eab1[_0x21a83f(0x1f8)][_0x21a83f(0x262)]['code']!==G['OK']?'Failed':_0x56eab1[_0x21a83f(0x1f8)][_0x21a83f(0x1d1)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x37525a(0x2d4)]),fe(0x1,a[_0x37525a(0x221)](x['HTTPService'])),fe(0x2,a[_0x37525a(0x3f9)])],exports[_0x37525a(0x1d4)]);const we=0x7530,ye=_0x37525a(0x453);class fs extends a['Disposable']{constructor(){const _0x377c9f=_0x37525a;super(),_(this,_0x377c9f(0x30e),a['generateRandomId']()),_(this,_0x377c9f(0x322),new Set()),_(this,_0x377c9f(0x2dc),new Map()),_(this,_0x377c9f(0x435),null),_(this,_0x377c9f(0x265),new Map()),_(this,_0x377c9f(0x1d6),new Map()),this[_0x377c9f(0x41c)]();}['dispose'](){const _0x467ee0=_0x37525a;super['dispose'](),this[_0x467ee0(0x265)][_0x467ee0(0x34f)]((_0x415f76,_0x55347d)=>this[_0x467ee0(0x34c)](_0x55347d)),this[_0x467ee0(0x435)]&&window[_0x467ee0(0x400)](this['_heartbeatTimer']);}[_0x37525a(0x35f)](_0x2b37dd){const _0x2e808a=_0x37525a;return this[_0x2e808a(0x2c1)](_0x2b37dd)['pipe'](I[_0x2e808a(0x232)]());}['editingUnit'](_0x338b45){const _0x100868=_0x37525a;this[_0x100868(0x322)][_0x100868(0x227)]===0x0&&this['_scheduleHeartbeat'](),this[_0x100868(0x322)][_0x100868(0x276)](_0x338b45),this[_0x100868(0x2c2)]({'type':0x0,'memberID':this[_0x100868(0x30e)],'unitIDs':[_0x338b45],'isForwarded':!0x1});}['disposeUnit'](_0x554b7e){const _0x584a3c=_0x37525a;this[_0x584a3c(0x322)]['delete'](_0x554b7e),this[_0x584a3c(0x322)][_0x584a3c(0x227)]===0x0&&this['_heartbeatTimer']&&window[_0x584a3c(0x400)](this['_heartbeatTimer']);}[_0x37525a(0x41c)](){const _0x372574=_0x37525a;this['disposeWithMe'](a['toDisposable'](I[_0x372574(0x2c8)](window,_0x372574(0x3e6))[_0x372574(0x375)](_0x3ef02e=>{const _0x43f48e=_0x372574;if(_0x3ef02e[_0x43f48e(0x343)]!==ye||!_0x3ef02e[_0x43f48e(0x41f)])return;const _0x170777=JSON[_0x43f48e(0x446)](_0x3ef02e['newValue']);this['_handleEvent'](_0x170777);}))),window[_0x372574(0x1ea)]('unload',()=>this[_0x372574(0x2c2)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x372574(0x3a7)](this['_selfUnitIDs'])}));}[_0x37525a(0x2d1)](_0x2c819e){const _0x51f3fa=_0x37525a;switch(_0x2c819e['type']){case 0x0:this[_0x51f3fa(0x36b)](_0x2c819e);break;case 0x1:this['_handleLeaveEvent'](_0x2c819e);break;case 0x2:this[_0x51f3fa(0x228)](_0x2c819e);break;}}[_0x37525a(0x36b)](_0x4245a8){const _0x1dd4a0=_0x37525a,{unitIDs:_0x4b388a,memberID:_0x2cb488,isForwarded:_0x8009c3}=_0x4245a8;_0x4b388a[_0x1dd4a0(0x34f)](_0xae5e95=>{const _0x165574=_0x1dd4a0;if(!_0x8009c3&&this['_unitOnClients'][_0x165574(0x3fa)](_0xae5e95)&&this['_ensureSubject'](_0xae5e95)[_0x165574(0x19d)](u[_0x165574(0x452)][_0x165574(0x203)]),!this[_0x165574(0x2dc)]['has'](_0xae5e95)||!this[_0x165574(0x2dc)][_0x165574(0x2e7)](_0xae5e95)[_0x165574(0x3fa)](_0x2cb488)){const _0x3ad8ef=this[_0x165574(0x2dc)]['get'](_0xae5e95)||new Set();_0x3ad8ef[_0x165574(0x276)](_0x2cb488),this[_0x165574(0x2dc)][_0x165574(0x3d1)](_0xae5e95,_0x3ad8ef),this[_0x165574(0x1e3)](_0x2cb488);}}),_0x8009c3||this['_send']({'type':0x0,'memberID':this[_0x1dd4a0(0x30e)],'unitIDs':[...this[_0x1dd4a0(0x322)]],'isForwarded':!0x0});}[_0x37525a(0x1e3)](_0x2b323c){const _0x1fdf4b=_0x37525a;this[_0x1fdf4b(0x34c)](_0x2b323c);const _0x60d108=window['setTimeout'](()=>{const _0x258828=_0x1fdf4b;this['_unitOnClients'][_0x258828(0x34f)](_0x178c3a=>{const _0x97229=_0x258828;_0x178c3a[_0x97229(0x3ed)](_0x2b323c);});},we*0x2);this[_0x1fdf4b(0x265)]['set'](_0x2b323c,_0x60d108);}[_0x37525a(0x34c)](_0x2e50cf){const _0x321bef=_0x37525a;if(this[_0x321bef(0x265)]['has'](_0x2e50cf)){const _0x3e3721=this[_0x321bef(0x265)][_0x321bef(0x2e7)](_0x2e50cf);_0x3e3721&&window[_0x321bef(0x3e5)](_0x3e3721),this[_0x321bef(0x265)][_0x321bef(0x3d1)](_0x2e50cf,null);}}[_0x37525a(0x1d5)](_0x4067a7){const _0x4d1fb0=_0x37525a,{memberID:_0x59e151,unitIDs:_0x30b704}=_0x4067a7;_0x30b704[_0x4d1fb0(0x34f)](_0x5dcdd8=>{const _0x341249=_0x4d1fb0;var _0x4ccc1c;const _0x1ca1a9=this[_0x341249(0x2dc)]['get'](_0x5dcdd8);_0x1ca1a9&&(_0x1ca1a9[_0x341249(0x3ed)](_0x59e151),(_0x4ccc1c=this[_0x341249(0x2c1)](_0x5dcdd8))==null||_0x4ccc1c[_0x341249(0x19d)](_0x1ca1a9['size']===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x341249(0x452)][_0x341249(0x203)]));}),this['_removeClearOtherTimer'](_0x59e151);}['_handleHeartbeatEvent'](_0x92dc43){const _0x3a0df7=_0x37525a;this[_0x3a0df7(0x1e3)](_0x92dc43[_0x3a0df7(0x1b6)]);}[_0x37525a(0x2c2)](_0x13cb98){const _0x50ebc8=_0x37525a;localStorage[_0x50ebc8(0x3e7)](ye,JSON['stringify'](_0x13cb98));}[_0x37525a(0x407)](){const _0x3b4e69=_0x37525a;this['_heartbeatTimer']=window[_0x3b4e69(0x2a3)](()=>{const _0x493714=_0x3b4e69;this['_send']({'type':0x2,'memberID':this[_0x493714(0x30e)]});},we);}[_0x37525a(0x2c1)](_0x645e85){const _0xd1e1d9=_0x37525a;return this[_0xd1e1d9(0x1d6)][_0xd1e1d9(0x3fa)](_0x645e85)||this[_0xd1e1d9(0x1d6)][_0xd1e1d9(0x3d1)](_0x645e85,new I[(_0xd1e1d9(0x40f))](u['UnitStatus'][_0xd1e1d9(0x24c)])),this[_0xd1e1d9(0x1d6)][_0xd1e1d9(0x2e7)](_0x645e85);}}exports[_0x37525a(0x2dd)]=Oe,exports[_0x37525a(0x1e5)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x37525a(0x39d)]=ke;
1
+ 'use strict';const _0x5f4c13=_0x1124;(function(_0x211d30,_0x1b3ad4){const _0x356d71=_0x1124,_0x77f8ed=_0x211d30();while(!![]){try{const _0x48607a=-parseInt(_0x356d71(0x187))/0x1+-parseInt(_0x356d71(0x15a))/0x2*(parseInt(_0x356d71(0x1fc))/0x3)+-parseInt(_0x356d71(0x379))/0x4*(parseInt(_0x356d71(0x2db))/0x5)+-parseInt(_0x356d71(0x32a))/0x6+-parseInt(_0x356d71(0x3ce))/0x7*(parseInt(_0x356d71(0x30f))/0x8)+-parseInt(_0x356d71(0x2de))/0x9+-parseInt(_0x356d71(0x1a6))/0xa*(-parseInt(_0x356d71(0x212))/0xb);if(_0x48607a===_0x1b3ad4)break;else _0x77f8ed['push'](_0x77f8ed['shift']());}catch(_0xedd025){_0x77f8ed['push'](_0x77f8ed['shift']());}}}(_0x38fa,0x79abd));var Xe=Object[_0x5f4c13(0x214)],Ke=(_0x368558,_0x53bb82,_0x37a5ce)=>_0x53bb82 in _0x368558?Xe(_0x368558,_0x53bb82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37a5ce}):_0x368558[_0x53bb82]=_0x37a5ce,_=(_0x4e492d,_0x353606,_0x520e5b)=>Ke(_0x4e492d,typeof _0x353606!=_0x5f4c13(0x172)?_0x353606+'':_0x353606,_0x520e5b);Object[_0x5f4c13(0x214)](exports,Symbol['toStringTag'],{'value':_0x5f4c13(0x258)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=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 pe({ref:_0xad38a3,..._0x2641a3}){const _0x5b3305=_0x5f4c13,{icon:_0x5b1cfb,id:_0x1e1b04,className:_0x39f2a8,extend:_0x4546e2,..._0x27efca}=_0x2641a3,_0x3a3ac2=(_0x5b3305(0x2cc)+_0x1e1b04+'\x20'+(_0x39f2a8||''))[_0x5b3305(0x15e)](),_0x1cb52b=A[_0x5b3305(0x23b)]('_'+Qe());return $e(_0x5b1cfb,''+_0x1e1b04,{'defIds':_0x5b1cfb['defIds'],'idSuffix':_0x1cb52b['current']},{'ref':_0xad38a3,'className':_0x3a3ac2,..._0x27efca},_0x4546e2);}function $e(_0x52df74,_0x161966,_0x533c9a,_0x14257e,_0x5cdb96){const _0x2e2a5e=_0x5f4c13;return A[_0x2e2a5e(0x208)](_0x52df74['tag'],{'key':_0x161966,...Je(_0x52df74,_0x533c9a,_0x5cdb96),..._0x14257e},(Ze(_0x52df74,_0x533c9a)[_0x2e2a5e(0x3ab)]||[])[_0x2e2a5e(0x13c)]((_0x14aba9,_0x33552f)=>$e(_0x14aba9,_0x161966+'-'+_0x52df74[_0x2e2a5e(0x32b)]+'-'+_0x33552f,_0x533c9a,void 0x0,_0x5cdb96)));}function Je(_0x46afc5,_0x2d99ff,_0x386136){const _0x414d54=_0x5f4c13,_0x18de96={..._0x46afc5['attrs']};_0x386136!=null&&_0x386136[_0x414d54(0x321)]&&_0x18de96[_0x414d54(0x233)]===_0x414d54(0x321)&&(_0x18de96['fill']=_0x386136[_0x414d54(0x321)]),_0x46afc5['tag']===_0x414d54(0x268)&&_0x18de96['id']&&(_0x18de96['id']=_0x18de96['id']+_0x2d99ff[_0x414d54(0x232)]),Object[_0x414d54(0x362)](_0x18de96)[_0x414d54(0x3ac)](([_0x372225,_0x53bcae])=>{const _0x58bbfc=_0x414d54;_0x372225===_0x58bbfc(0x268)&&typeof _0x53bcae==_0x58bbfc(0x260)&&(_0x18de96[_0x372225]=_0x53bcae[_0x58bbfc(0x246)](/url\(#(.*)\)/,_0x58bbfc(0x20a)+_0x2d99ff[_0x58bbfc(0x232)]+')'));});const {defIds:_0x2ccb5a}=_0x2d99ff;return!_0x2ccb5a||_0x2ccb5a[_0x414d54(0x231)]===0x0||(_0x46afc5[_0x414d54(0x32b)]==='use'&&_0x18de96[_0x414d54(0x395)]&&(_0x18de96[_0x414d54(0x395)]=_0x18de96[_0x414d54(0x395)]+_0x2d99ff['idSuffix']),Object['entries'](_0x18de96)['forEach'](([_0xb251f,_0x30eca7])=>{const _0x58e025=_0x414d54;typeof _0x30eca7=='string'&&(_0x18de96[_0xb251f]=_0x30eca7['replace'](/url\(#(.*)\)/,_0x58e025(0x20a)+_0x2d99ff['idSuffix']+')'));})),_0x18de96;}function Ze(_0x9724cb,_0x56d01d){const _0x186b57=_0x5f4c13;var _0x233a34;const {defIds:_0x1b906b}=_0x56d01d;return!_0x1b906b||_0x1b906b[_0x186b57(0x231)]===0x0?_0x9724cb:_0x9724cb[_0x186b57(0x32b)]===_0x186b57(0x27c)&&((_0x233a34=_0x9724cb['children'])!=null&&_0x233a34[_0x186b57(0x231)])?{..._0x9724cb,'children':_0x9724cb[_0x186b57(0x3ab)][_0x186b57(0x13c)](_0x3fd7cc=>typeof _0x3fd7cc[_0x186b57(0x1db)]['id']==_0x186b57(0x260)&&_0x1b906b&&_0x1b906b['includes'](_0x3fd7cc[_0x186b57(0x1db)]['id'])?{..._0x3fd7cc,'attrs':{..._0x3fd7cc['attrs'],'id':_0x3fd7cc[_0x186b57(0x1db)]['id']+_0x56d01d[_0x186b57(0x232)]}}:_0x3fd7cc)}:_0x9724cb;}function Qe(){const _0x14fbb4=_0x5f4c13;return Math[_0x14fbb4(0x1b2)]()[_0x14fbb4(0x327)](0x24)[_0x14fbb4(0x137)](0x2,0x8);}pe[_0x5f4c13(0x30a)]='UniverIcon';const et={'tag':_0x5f4c13(0x2f0),'attrs':{'xmlns':_0x5f4c13(0x3b0),'fill':_0x5f4c13(0x130),'viewBox':_0x5f4c13(0x2b6),'width':_0x5f4c13(0x2d7),'height':_0x5f4c13(0x2d7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'stroke':_0x5f4c13(0x33a),'d':_0x5f4c13(0x33c),'strokeLinecap':'round','strokeLinejoin':_0x5f4c13(0x2df),'strokeWidth':1.2}}]},{'tag':_0x5f4c13(0x27c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'fill':'white','d':_0x5f4c13(0x2cd)}}]}]}],'defIds':[_0x5f4c13(0x398)]},xe=A[_0x5f4c13(0x225)](function(_0x5ff3be,_0x4c5313){const _0x583cac=_0x5f4c13;return A['createElement'](pe,Object['assign']({},_0x5ff3be,{'id':_0x583cac(0x2f3),'ref':_0x4c5313,'icon':et}));});xe[_0x5f4c13(0x30a)]=_0x5f4c13(0x306);const tt={'tag':_0x5f4c13(0x2f0),'attrs':{'xmlns':_0x5f4c13(0x3b0),'fill':'none','viewBox':_0x5f4c13(0x1b3),'width':'1em','height':_0x5f4c13(0x2d7)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f4c13(0x2aa)},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'stroke':_0x5f4c13(0x33a),'d':_0x5f4c13(0x287),'strokeLinecap':'round','strokeLinejoin':_0x5f4c13(0x2df),'strokeWidth':1.2}}]},{'tag':_0x5f4c13(0x27c),'attrs':{},'children':[{'tag':_0x5f4c13(0x18b),'attrs':{'id':_0x5f4c13(0x12c)},'children':[{'tag':'path','attrs':{'fill':_0x5f4c13(0x3de),'d':_0x5f4c13(0x2cd),'transform':_0x5f4c13(0x3bb)}}]}]}],'defIds':[_0x5f4c13(0x12c)]},Be=A[_0x5f4c13(0x225)](function(_0x6fbfea,_0x519f70){const _0x2f8304=_0x5f4c13;return A[_0x2f8304(0x208)](pe,Object[_0x2f8304(0x2ca)]({},_0x6fbfea,{'id':'on-line-icon','ref':_0x519f70,'icon':tt}));});Be[_0x5f4c13(0x30a)]=_0x5f4c13(0x37c);function st(_0x2c8d18){const _0x2d94b2=_0x5f4c13;switch(_0x2c8d18){case u[_0x2d94b2(0x376)][_0x2d94b2(0x177)]:return'collabStatus.offline';case u[_0x2d94b2(0x376)][_0x2d94b2(0x3b5)]:return'collabStatus.conflict';case u[_0x2d94b2(0x376)][_0x2d94b2(0x34e)]:return _0x2d94b2(0x144);case u[_0x2d94b2(0x376)]['NOT_COLLAB']:return _0x2d94b2(0x284);case u[_0x2d94b2(0x376)]['AWAITING']:case u[_0x2d94b2(0x376)][_0x2d94b2(0x365)]:return _0x2d94b2(0x2e5);case u['CollaborationStatus']['SYNCED']:case u[_0x2d94b2(0x376)]['PENDING']:return _0x2d94b2(0x3dd);}}function it(_0xdfbced){const _0xb6ea8b=_0x5f4c13,{status$:_0x245d2b}=_0xdfbced,_0x51af9d=O[_0xb6ea8b(0x298)](_0x245d2b,u[_0xb6ea8b(0x376)][_0xb6ea8b(0x347)]),_0x318408=O[_0xb6ea8b(0x15d)](a[_0xb6ea8b(0x2b2)]),_0x3aa45a=O['useDependency'](u[_0xb6ea8b(0x38f)]),_0x56afd3=_0x51af9d!==u[_0xb6ea8b(0x376)]['OFFLINE'],_0x5d981f=_0x318408['t'](st(_0x51af9d)),_0x50dc47=_0x56afd3?M[_0xb6ea8b(0x392)](Be,{}):M['jsx'](xe,{}),_0x300925=A['useCallback'](()=>{const _0x2b37b1=_0xb6ea8b;_0x56afd3||_0x3aa45a[_0x2b37b1(0x1ce)]();},[_0x56afd3,_0x3aa45a]);function _0x2a2471(){const _0xe816c0=_0xb6ea8b;return M['jsxs'](_0xe816c0(0x2a9),{'className':'univer-flex\x20univer-items-center','onClick':_0x300925,'children':[M[_0xe816c0(0x392)](_0xe816c0(0x2a9),{'className':p[_0xe816c0(0x176)](_0xe816c0(0x2bb),{'univer-text-green-500':_0x56afd3,'univer-text-red-500':!_0x56afd3}),'children':_0x50dc47}),M[_0xe816c0(0x392)]('div',{'className':_0xe816c0(0x126),'children':_0x5d981f})]});}return _0x56afd3?_0x2a2471():M[_0xb6ea8b(0x392)](p[_0xb6ea8b(0x167)],{'title':_0x318408['t'](_0xb6ea8b(0x2b1)),'children':_0x2a2471()});}var nt=Object[_0x5f4c13(0x1ee)],rt=(_0x22ea4f,_0x46b4af,_0x584bdb,_0x45ff7f)=>{const _0x2a3426=_0x5f4c13;for(var _0x5eef31=_0x45ff7f>0x1?void 0x0:_0x45ff7f?nt(_0x46b4af,_0x584bdb):_0x46b4af,_0x25a710=_0x22ea4f[_0x2a3426(0x231)]-0x1,_0x26f5c7;_0x25a710>=0x0;_0x25a710--)(_0x26f5c7=_0x22ea4f[_0x25a710])&&(_0x5eef31=_0x26f5c7(_0x5eef31)||_0x5eef31);return _0x5eef31;},K=(_0x4db39c,_0x12eb0a)=>(_0x140324,_0x1e537e)=>_0x12eb0a(_0x140324,_0x1e537e,_0x4db39c);exports[_0x5f4c13(0x386)]=class extends a[_0x5f4c13(0x28f)]{constructor(_0x1ecfa9,_0x23aa2e,_0x44211d,_0x32dcee){const _0x26a593=_0x5f4c13;super(),_(this,_0x26a593(0x16b),new I['BehaviorSubject'](u[_0x26a593(0x376)][_0x26a593(0x347)])),(this[_0x26a593(0x1fe)]=_0x1ecfa9,this[_0x26a593(0x1fd)]=_0x23aa2e,this[_0x26a593(0x217)]=_0x44211d,this[_0x26a593(0x12e)]=_0x32dcee,this[_0x26a593(0x1ff)](),this['_initStatusListener']());}[_0x5f4c13(0x1e9)](){const _0x1c87c3=_0x5f4c13;this[_0x1c87c3(0x3da)](this[_0x1c87c3(0x1fe)][_0x1c87c3(0x1c8)][_0x1c87c3(0x336)](I[_0x1c87c3(0x12d)](()=>{const _0x462cb1=_0x1c87c3,_0x2ab65f=this[_0x462cb1(0x1fe)][_0x462cb1(0x337)]();return _0x2ab65f?this[_0x462cb1(0x217)][_0x462cb1(0x23f)](_0x2ab65f[_0x462cb1(0x272)]()):I['of'](null);}),I[_0x1c87c3(0x12d)](_0x38ae2f=>_0x38ae2f?_0x38ae2f[_0x1c87c3(0x2fd)]:I['of'](u[_0x1c87c3(0x376)][_0x1c87c3(0x347)])))['subscribe'](_0x1ab59c=>{this['_status$']['next'](_0x1ab59c);}));}[_0x5f4c13(0x1ff)](){const _0x488041=_0x5f4c13;this[_0x488041(0x3da)](this[_0x488041(0x12e)][_0x488041(0x17d)](O[_0x488041(0x3a7)][_0x488041(0x3af)],()=>O[_0x488041(0x1e6)](ot({'status$':this[_0x488041(0x16b)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x5f4c13(0x12a)]),K(0x1,a['Inject'](a[_0x5f4c13(0x349)])),K(0x2,a[_0x5f4c13(0x21b)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x5f4c13(0x386)]);function ot(_0x375dbd){const {status$:_0x2a8811}=_0x375dbd;return function(){const _0x2d85df=_0x1124;return M[_0x2d85df(0x392)](it,{'status$':_0x2a8811});};}const Oe=a[_0x5f4c13(0x34f)](_0x5f4c13(0x359));var at=Object[_0x5f4c13(0x1ee)],ct=(_0x1354ea,_0x53db52,_0x10bb40,_0x115be1)=>{const _0x2926e7=_0x5f4c13;for(var _0x57c0e5=_0x115be1>0x1?void 0x0:_0x115be1?at(_0x53db52,_0x10bb40):_0x53db52,_0x14be76=_0x1354ea[_0x2926e7(0x231)]-0x1,_0x15a58d;_0x14be76>=0x0;_0x14be76--)(_0x15a58d=_0x1354ea[_0x14be76])&&(_0x57c0e5=_0x15a58d(_0x57c0e5)||_0x57c0e5);return _0x57c0e5;},Y=(_0x554583,_0x5c4207)=>(_0x442187,_0x4ab954)=>_0x5c4207(_0x442187,_0x4ab954,_0x554583);exports[_0x5f4c13(0x24c)]=class extends a['RxDisposable']{constructor(_0x359c7a,_0x1f4da9,_0x58078a,_0x36a823,_0x1d78bc){const _0x59d2a5=_0x5f4c13;super(),this[_0x59d2a5(0x13a)]=_0x359c7a,this['_logService']=_0x1f4da9,this[_0x59d2a5(0x274)]=_0x58078a,this[_0x59d2a5(0x2a7)]=_0x36a823,_0x1d78bc?_0x1d78bc==null||_0x1d78bc[_0x59d2a5(0x354)]()[_0x59d2a5(0x314)](()=>this[_0x59d2a5(0x335)]()):(this['_logService'][_0x59d2a5(0x222)](_0x59d2a5(0x149),_0x59d2a5(0x1e7)),this[_0x59d2a5(0x335)]());}async['_init'](){const _0xceea70=_0x5f4c13,_0x4bf0af=this[_0xceea70(0x13a)][_0xceea70(0x269)](_0xceea70(0x352)),_0x5472db=this[_0xceea70(0x13a)][_0xceea70(0x269)]('type'),_0x5188d5=this[_0xceea70(0x13a)]['getParam'](_0xceea70(0x257));if(!_0x4bf0af||!_0x5472db){this[_0xceea70(0x277)][_0xceea70(0x222)](_0xceea70(0x149),_0xceea70(0x13d));return;}const _0x2bd857=await this[_0xceea70(0x2a7)][_0xceea70(0x2f5)](_0x4bf0af,Number(_0x5472db),_0x5188d5);_0x2bd857&&_0x2bd857 instanceof a[_0xceea70(0x30e)]&&this[_0xceea70(0x2c7)](_0x2bd857);}async[_0x5f4c13(0x2c7)](_0x398146){const _0x1acfc7=_0x5f4c13;await this[_0x1acfc7(0x39e)](_0x398146),_0x398146[_0x1acfc7(0x316)]['pipe'](I['takeUntil'](this['dispose$']))[_0x1acfc7(0x154)](_0x5e400=>{_0x5e400&&this['_updateURLWithCurrentState'](_0x5e400);}),this[_0x1acfc7(0x13a)][_0x1acfc7(0x396)]['pipe'](I[_0x1acfc7(0x3c7)](this['dispose$']))[_0x1acfc7(0x154)](()=>this[_0x1acfc7(0x39e)](_0x398146));}[_0x5f4c13(0x387)](_0x59833e,_0x13d7fa=!0x1){const _0x2f04b2=_0x5f4c13,_0x5710be=this[_0x2f04b2(0x13a)][_0x2f04b2(0x269)]('subunit');_0x59833e[_0x2f04b2(0x2d6)]()!==_0x5710be&&this['_urlService'][_0x2f04b2(0x201)](_0x2f04b2(0x257),_0x59833e[_0x2f04b2(0x2d6)](),_0x13d7fa);}async[_0x5f4c13(0x39e)](_0xd7b762){const _0x4179ba=_0x5f4c13;var _0x1407e5;const _0x2f1364=this[_0x4179ba(0x13a)][_0x4179ba(0x269)](_0x4179ba(0x257));if(!_0x2f1364||!_0xd7b762[_0x4179ba(0x2b9)](_0x2f1364)){const _0x28d8f3=_0xd7b762[_0x4179ba(0x202)]()[0x0],_0x488a3a=_0xd7b762['getSheetBySheetId'](_0x28d8f3);if(!_0x488a3a)return;this[_0x4179ba(0x387)](_0x488a3a,!0x0),await this[_0x4179ba(0x274)][_0x4179ba(0x2a0)](v[_0x4179ba(0x370)]['id'],{'unitId':_0xd7b762[_0x4179ba(0x272)](),'subUnitId':_0x28d8f3});return;}((_0x1407e5=_0xd7b762[_0x4179ba(0x373)]())==null?void 0x0:_0x1407e5[_0x4179ba(0x2d6)]())!==_0x2f1364&&await this[_0x4179ba(0x274)][_0x4179ba(0x2a0)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0xd7b762[_0x4179ba(0x272)](),'subUnitId':_0x2f1364});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x5f4c13(0x1f4)]),Y(0x3,a[_0x5f4c13(0x21b)](u[_0x5f4c13(0x164)])),Y(0x4,a[_0x5f4c13(0x1da)](qe[_0x5f4c13(0x282)]))],exports[_0x5f4c13(0x24c)]);var lt=Object[_0x5f4c13(0x1ee)],_t=(_0x363793,_0x2bfad3,_0x179b9f,_0x296e50)=>{const _0x3d400d=_0x5f4c13;for(var _0x2cce1e=_0x296e50>0x1?void 0x0:_0x296e50?lt(_0x2bfad3,_0x179b9f):_0x2bfad3,_0x122ead=_0x363793[_0x3d400d(0x231)]-0x1,_0x3fcca1;_0x122ead>=0x0;_0x122ead--)(_0x3fcca1=_0x363793[_0x122ead])&&(_0x2cce1e=_0x3fcca1(_0x2cce1e)||_0x2cce1e);return _0x2cce1e;},De=(_0x44d753,_0x1f326a)=>(_0x28dee2,_0x582433)=>_0x1f326a(_0x28dee2,_0x582433,_0x44d753);let me=class extends a['RxDisposable']{constructor(_0x1ef203,_0x1995f3){const _0x3d0dc2=_0x5f4c13;super(),this['_docClipboardService']=_0x1ef203,this[_0x3d0dc2(0x31c)]=_0x1995f3,this[_0x3d0dc2(0x335)]();}['_init'](){const _0x5643ff=_0x5f4c13,_0x2cae76=this;this['disposeWithMe'](this[_0x5643ff(0x1cd)]['addClipboardHook']({'onBeforePasteImage':async _0x30694a=>{const _0x311471=_0x5643ff,_0x2cb767=await _0x2cae76[_0x311471(0x31c)][_0x311471(0x357)](_0x30694a);return _0x2cb767?{'source':_0x2cb767[_0x311471(0x1b9)],'imageSourceType':_0x2cb767[_0x311471(0x22a)]}:null;}}));}};me=_t([De(0x0,T[_0x5f4c13(0x12b)]),De(0x1,ze[_0x5f4c13(0x3b1)])],me);const Ne=[_0x5f4c13(0x3ae),_0x5f4c13(0x292),'green.600',_0x5f4c13(0x383),_0x5f4c13(0x364),_0x5f4c13(0x19e)];class Re extends a['Disposable']{constructor(){const _0xbcd07c=_0x5f4c13;super(...arguments),_(this,_0xbcd07c(0x198),new Map()),_(this,_0xbcd07c(0x299),0x0);}[_0x5f4c13(0x39f)](_0x430d8c){const _0x183fff=_0x5f4c13;if(this[_0x183fff(0x198)][_0x183fff(0x17f)](_0x430d8c))return this['_assignedColors'][_0x183fff(0x389)](_0x430d8c);const _0x400f63=Ne[this[_0x183fff(0x299)]];return this[_0x183fff(0x299)]=(this['_colorIndex']+0x1)%Ne[_0x183fff(0x231)],this[_0x183fff(0x198)][_0x183fff(0x310)](_0x430d8c,_0x400f63),_0x400f63;}}function Fe(_0x4d2e81){const _0x3dcf5f=_0x5f4c13;let _0x12312f='';for(const _0x5fb033 of _0x4d2e81){const {startOffset:_0xd4aa53,endOffset:_0x2b8d57,isActive:_0x159c79,rangeType:_0x409e38,segmentId:_0x281089,segmentPage:_0x5e6de1}=_0x5fb033;_0x12312f[_0x3dcf5f(0x231)]&&(_0x12312f+=','),_0x12312f+=_0xd4aa53+':'+_0x2b8d57+':'+(_0x159c79?'1':'0')+':'+_0x409e38+':'+_0x281089+':'+_0x5e6de1;}return _0x12312f;}function ht(_0x5c27b7){const _0x12a4b2=_0x5f4c13,_0x56cfee=_0x5c27b7[_0x12a4b2(0x289)](','),_0x4fabc2=[];for(const _0x35a784 of _0x56cfee){const [_0x25844b,_0x4c5f45,_0x46f08a,_0x4bb133,_0x4e3c1b,_0x153375]=_0x35a784['split'](':');_0x4fabc2[_0x12a4b2(0x261)]({'startOffset':Number(_0x25844b),'endOffset':Number(_0x4c5f45),'collapsed':_0x25844b===_0x4c5f45,'isActive':_0x46f08a==='1','rangeType':_0x4bb133===a[_0x12a4b2(0x16d)][_0x12a4b2(0x148)]?a[_0x12a4b2(0x16d)][_0x12a4b2(0x148)]:a[_0x12a4b2(0x16d)]['RECT'],'segmentId':typeof _0x4e3c1b==_0x12a4b2(0x260)?String(_0x4e3c1b):'','segmentPage':Number(_0x153375!=null?_0x153375:-0x1)});}return _0x4fabc2[_0x12a4b2(0x1b8)](_0x13fead=>_0x13fead['isActive'])||(_0x4fabc2[0x0]['isActive']=!0x0),_0x4fabc2;}class be extends a[_0x5f4c13(0x1f7)]{constructor(){const _0x27d681=_0x5f4c13;super(...arguments),_(this,_0x27d681(0x2ee),new I[(_0x27d681(0x2ed))](null)),_(this,'collabCursorState$',this[_0x27d681(0x2ee)][_0x27d681(0x1dc)]());}[_0x5f4c13(0x3c1)](_0x41e9ed){const _0x5ee3f8=_0x5f4c13,{unitID:_0x424bc6,memberID:_0x3b64da,textRanges:_0x460de0}=_0x41e9ed,_0x364334=Fe(_0x460de0);if(_0x364334==='')return;const _0x1952f7={'unitID':_0x424bc6,'memberID':_0x3b64da,'selection':_0x364334};this['_collabCursorState$'][_0x5ee3f8(0x302)](_0x1952f7);}}var ut=Object[_0x5f4c13(0x1ee)],It=(_0x35ecd5,_0x270819,_0x2209ec,_0x331aac)=>{const _0x256cab=_0x5f4c13;for(var _0x315d35=_0x331aac>0x1?void 0x0:_0x331aac?ut(_0x270819,_0x2209ec):_0x270819,_0x2fec73=_0x35ecd5[_0x256cab(0x231)]-0x1,_0x5d4a3b;_0x2fec73>=0x0;_0x2fec73--)(_0x5d4a3b=_0x35ecd5[_0x2fec73])&&(_0x315d35=_0x5d4a3b(_0x315d35)||_0x315d35);return _0x315d35;},U=(_0x3bc4fb,_0x2d5a2d)=>(_0x4ce27a,_0x4a8da9)=>_0x2d5a2d(_0x4ce27a,_0x4a8da9,_0x3bc4fb);const St=0x12c,dt=0x64;let ve=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x18ec84,_0x283063,_0x35d439,_0x116259,_0x5c1779,_0x5c825d,_0x21a6c7,_0x1b9fc8,_0x1d14ce){const _0x3bdc57=_0x5f4c13;super(),_(this,_0x3bdc57(0x20f),!0x1),_(this,_0x3bdc57(0x335),!0x1),_(this,_0x3bdc57(0x1df),new I[(_0x3bdc57(0x2ed))](new Map())),_(this,_0x3bdc57(0x23c),this[_0x3bdc57(0x1df)]['asObservable']()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x3bdc57(0x155),this['_roomMembers$'][_0x3bdc57(0x336)](I['debounceTime'](St))),_(this,_0x3bdc57(0x331),a['debounce'](_0x57c1cb=>{const _0x2fd12b=_0x3bdc57,_0x19b7c5={'eventID':g[_0x2fd12b(0x30d)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x57c1cb)}};this['_session'][_0x2fd12b(0x19f)](_0x19b7c5,this[_0x2fd12b(0x26a)]);},dt)),(this[_0x3bdc57(0x26a)]=_0x18ec84,this[_0x3bdc57(0x263)]=_0x283063,this['_injector']=_0x35d439,this['_colorAssignService']=_0x116259,this['_memberService']=_0x5c1779,this[_0x3bdc57(0x2f4)]=_0x5c825d,this['_transformService']=_0x21a6c7,this[_0x3bdc57(0x1fe)]=_0x1b9fc8,this[_0x3bdc57(0x274)]=_0x1d14ce);}get['cursorInfo'](){const _0x1c20c1=_0x5f4c13;return this[_0x1c20c1(0x1df)][_0x1c20c1(0x2cf)]();}get[_0x5f4c13(0x34c)](){const _0x5c10df=_0x5f4c13;return this['_roomMembers$'][_0x5c10df(0x2cf)]();}['dispose'](){const _0x37c814=_0x5f4c13;super[_0x37c814(0x18f)](),this[_0x37c814(0x1df)][_0x37c814(0x302)](new Map()),this['_cursorInfo$'][_0x37c814(0x382)](),this['_roomMembers$'][_0x37c814(0x302)]([]),this[_0x37c814(0x22d)]['complete']();}[_0x5f4c13(0x353)](){const _0x3a866a=_0x5f4c13;this[_0x3a866a(0x335)]||(this['_init']=!0x0,this[_0x3a866a(0x263)][_0x3a866a(0x3e0)][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this[_0x3a866a(0x2ce)]))[_0x3a866a(0x154)](_0x28d3f6=>{const _0x52c285=_0x3a866a;_0x28d3f6===u['SessionStatus'][_0x52c285(0x210)]?this['_toggleOnline']():this[_0x52c285(0x3d1)]();}),this[_0x3a866a(0x263)][_0x3a866a(0x38b)][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this[_0x3a866a(0x2ce)]))['subscribe'](_0x41c5dc=>{const _0x2c5b83=_0x3a866a,_0x1a4c3c=_0x41c5dc[_0x2c5b83(0x2c0)];_0x1a4c3c===g['CollaborationEvent'][_0x2c5b83(0x2a3)]&&this[_0x2c5b83(0x3ad)](_0x41c5dc),_0x1a4c3c===g[_0x2c5b83(0x30d)][_0x2c5b83(0x139)]&&this[_0x2c5b83(0x319)](_0x41c5dc);}),this[_0x3a866a(0x3da)](this[_0x3a866a(0x274)][_0x3a866a(0x3d8)](_0x1fd3f2=>{const _0x3ed44d=_0x3a866a,_0x54e18a=_0x1fd3f2[_0x3ed44d(0x346)];_0x54e18a!=null&&this[_0x3ed44d(0x20f)]&&_0x1fd3f2['id']===V[_0x3ed44d(0x2ab)]['id']&&_0x54e18a[_0x3ed44d(0x34a)]===this[_0x3ed44d(0x26a)]&&_0x54e18a['isEditing']===!0x1&&_0x54e18a['ranges'][_0x3ed44d(0x231)]>0x0&&this[_0x3ed44d(0x331)](_0x54e18a[_0x3ed44d(0x36e)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this['dispose$']))[_0x3a866a(0x154)](_0x4a4984=>{const _0x462216=_0x3a866a;if((_0x4a4984==null?void 0x0:_0x4a4984[_0x462216(0x26a)])!==this[_0x462216(0x26a)])return;const _0x35fdcf={'eventID':g[_0x462216(0x30d)][_0x462216(0x2a3)],'data':_0x4a4984};this[_0x462216(0x3ad)](_0x35fdcf);}),this[_0x3a866a(0x3da)](this[_0x3a866a(0x274)]['onCommandExecuted'](_0x1540a3=>{const _0x985c48=_0x3a866a;if(_0x1540a3['params']==null)return;const _0x4fbeeb=_0x1540a3['params'];if(_0x1540a3['id']!==V[_0x985c48(0x24e)]['id']||_0x4fbeeb[_0x985c48(0x34a)]!==this[_0x985c48(0x26a)])return;const _0x3862e2={'id':_0x985c48(0x209),'params':_0x4fbeeb},_0xf2e6bc=this[_0x985c48(0x1c5)];for(const [_0x458ba6,_0x3e15d6]of _0xf2e6bc){const _0x1b3362={'id':_0x985c48(0x209),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3e15d6['ranges']}},_0x4307a9=this['_transformService'][_0x985c48(0x31d)](_0x3862e2,_0x1b3362,!0x1);if(g[_0x985c48(0x140)](_0x4307a9))throw _0x4307a9[_0x985c48(0x1dd)];_0xf2e6bc[_0x985c48(0x310)](_0x458ba6,{..._0x3e15d6,'ranges':_0x4307a9[_0x985c48(0x3c4)]['params'][_0x985c48(0x304)]});}queueMicrotask(()=>{const _0x249a29=_0x985c48;this[_0x249a29(0x1df)][_0x249a29(0x302)](_0xf2e6bc);});})));}[_0x5f4c13(0x3ad)](_0x4e3ebc){const _0x5ae3ea=_0x5f4c13;var _0x53a9d9,_0x2fc61d;const {memberID:_0x1957a2,selection:_0x4d4a43}=_0x4e3ebc[_0x5ae3ea(0x31f)],_0x4cca04=ht(_0x4d4a43),_0x2ab69d=(_0x2fc61d=(_0x53a9d9=this[_0x5ae3ea(0x22c)][_0x5ae3ea(0x1bc)](this[_0x5ae3ea(0x26a)],_0x1957a2))==null?void 0x0:_0x53a9d9[_0x5ae3ea(0x25c)])!=null?_0x2fc61d:_0x5ae3ea(0x14c),_0xd9ac7a={'color':this[_0x5ae3ea(0x324)][_0x5ae3ea(0x39f)](_0x1957a2),'name':_0x2ab69d,'ranges':_0x4cca04},_0x371b92=this[_0x5ae3ea(0x1c5)];_0x371b92[_0x5ae3ea(0x310)](_0x1957a2,_0xd9ac7a),this[_0x5ae3ea(0x1df)][_0x5ae3ea(0x302)](_0x371b92);}[_0x5f4c13(0x319)](_0x1d60a0){const _0x2c0d34=_0x5f4c13,{memberID:_0x290b04}=_0x1d60a0[_0x2c0d34(0x31f)],_0x571d06=this[_0x2c0d34(0x1c5)];_0x571d06[_0x2c0d34(0x1aa)](_0x290b04),this['_cursorInfo$']['next'](_0x571d06);}[_0x5f4c13(0x3a0)](){const _0x3b63c2=_0x5f4c13;var _0x18ede9;if(this[_0x3b63c2(0x20f)]=!0x0,((_0x18ede9=this['_univerInstanceService'][_0x3b63c2(0x337)]())==null?void 0x0:_0x18ede9[_0x3b63c2(0x272)]())!==this[_0x3b63c2(0x26a)])return;const _0x3d6c4d=this[_0x3b63c2(0x1fd)]['get'](V[_0x3b63c2(0x345)])[_0x3b63c2(0x192)]();Array['isArray'](_0x3d6c4d)&&_0x3d6c4d[_0x3b63c2(0x231)]>0x0&&this[_0x3b63c2(0x331)](_0x3d6c4d);}['_toggleOffline'](){const _0x204599=_0x5f4c13;this[_0x204599(0x20f)]=!0x1;}};ve=It([U(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),U(0x3,a[_0x5f4c13(0x21b)](Re)),U(0x4,a[_0x5f4c13(0x21b)](u['MemberService'])),U(0x5,a[_0x5f4c13(0x21b)](be)),U(0x6,g[_0x5f4c13(0x2e7)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x5f4c13(0x1f4)])],ve);var ft=Object[_0x5f4c13(0x1ee)],mt=(_0x359d86,_0x5c8946,_0x5ef26b,_0x45aab2)=>{const _0x3b38a0=_0x5f4c13;for(var _0x1c7b67=_0x45aab2>0x1?void 0x0:_0x45aab2?ft(_0x5c8946,_0x5ef26b):_0x5c8946,_0x3a23a2=_0x359d86[_0x3b38a0(0x231)]-0x1,_0xdc02c8;_0x3a23a2>=0x0;_0x3a23a2--)(_0xdc02c8=_0x359d86[_0x3a23a2])&&(_0x1c7b67=_0xdc02c8(_0x1c7b67)||_0x1c7b67);return _0x1c7b67;},w=(_0x2d53b8,_0x178e4c)=>(_0x468778,_0x4341f7)=>_0x178e4c(_0x468778,_0x4341f7,_0x2d53b8);const vt=0x12c,gt=0x64,Et=()=>{let _0x18c29a=[],_0x64da93=!0x1;return _0x599b8b=>{_0x18c29a['push'](_0x599b8b),_0x64da93||(_0x64da93=!0x0,setTimeout(()=>{const _0xc2482c=_0x1124;_0x18c29a[_0xc2482c(0x3ac)](_0x1fd010=>_0x1fd010()),_0x18c29a=[],_0x64da93=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x59267c,_0x14988f,_0x2f9cf0,_0x147449,_0x2e09a6,_0x12d359,_0x51d980,_0x1f9428){const _0x164b5d=_0x5f4c13;super(),_(this,_0x164b5d(0x20f),!0x1),_(this,_0x164b5d(0x335),!0x1),_(this,'_cursorInfo$',new I[(_0x164b5d(0x2ed))](new Map())),_(this,_0x164b5d(0x23c),this[_0x164b5d(0x1df)]['asObservable']()),_(this,_0x164b5d(0x22d),new I[(_0x164b5d(0x2ed))]([])),_(this,'roomMembers$',this[_0x164b5d(0x22d)][_0x164b5d(0x336)](I[_0x164b5d(0x2a8)](vt))),_(this,'_updateLocalCursor',a[_0x164b5d(0x163)]((_0x41a85e,_0x4d6789)=>{const _0x6e622e=_0x164b5d,_0x595106={'eventID':g[_0x6e622e(0x30d)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x6e622e(0x26a)],'memberID':this[_0x6e622e(0x263)][_0x6e622e(0x13e)](),'selection':B[_0x6e622e(0x3cf)](_0x41a85e,_0x4d6789[_0x6e622e(0x342)])}};this[_0x6e622e(0x263)][_0x6e622e(0x19f)](_0x595106,this[_0x6e622e(0x26a)]);},gt)),(this['unitID']=_0x59267c,this[_0x164b5d(0x263)]=_0x14988f,this[_0x164b5d(0x1fd)]=_0x2f9cf0,this[_0x164b5d(0x324)]=_0x147449,this[_0x164b5d(0x22c)]=_0x2e09a6,this[_0x164b5d(0x1fe)]=_0x12d359,this[_0x164b5d(0x274)]=_0x51d980,this[_0x164b5d(0x3e2)]=_0x1f9428);}get[_0x5f4c13(0x1c5)](){const _0x3989eb=_0x5f4c13;return this[_0x3989eb(0x1df)][_0x3989eb(0x2cf)]();}get[_0x5f4c13(0x34c)](){const _0x5de91b=_0x5f4c13;return this[_0x5de91b(0x22d)][_0x5de91b(0x2cf)]();}[_0x5f4c13(0x18f)](){const _0x22f95d=_0x5f4c13;super['dispose'](),this[_0x22f95d(0x1df)][_0x22f95d(0x302)](new Map()),this['_cursorInfo$'][_0x22f95d(0x382)](),this['_roomMembers$'][_0x22f95d(0x302)]([]),this['_roomMembers$'][_0x22f95d(0x382)]();}[_0x5f4c13(0x353)](){const _0x22dacd=_0x5f4c13;this[_0x22dacd(0x335)]||(this['_init']=!0x0,this[_0x22dacd(0x263)][_0x22dacd(0x3e0)][_0x22dacd(0x336)](I[_0x22dacd(0x3c7)](this[_0x22dacd(0x2ce)]))[_0x22dacd(0x154)](_0x1b9717=>{const _0x43a150=_0x22dacd;_0x1b9717===u[_0x43a150(0x378)]['ONLINE']?this[_0x43a150(0x3a0)]():this[_0x43a150(0x3d1)]();}),this[_0x22dacd(0x263)][_0x22dacd(0x38b)][_0x22dacd(0x336)](I[_0x22dacd(0x3c7)](this[_0x22dacd(0x2ce)]))['subscribe'](_0x68ff4d=>{const _0x55755e=_0x22dacd,_0x17e826=_0x68ff4d['eventID'];_0x17e826===g[_0x55755e(0x30d)][_0x55755e(0x2a3)]&&this[_0x55755e(0x3ad)](_0x68ff4d),_0x17e826===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x55755e(0x319)](_0x68ff4d);}),this['_onRefRangeChange'](),this[_0x22dacd(0x3da)](this[_0x22dacd(0x274)][_0x22dacd(0x3d8)](_0x5dc585=>{const _0x302f73=_0x22dacd;if(this[_0x302f73(0x20f)]&&_0x5dc585['id']===v[_0x302f73(0x307)]['id']&&_0x5dc585[_0x302f73(0x346)][_0x302f73(0x34a)]===this['unitID']){const _0x20da38=_0x5dc585[_0x302f73(0x346)];this[_0x302f73(0x331)](_0x20da38[_0x302f73(0x283)],_0x20da38[_0x302f73(0x2d0)][0x0]);}})));}['_onCursorUpdate'](_0x2ec254){const _0x2243d2=_0x5f4c13;var _0x27f2e4,_0x36993d;const {memberID:_0x2b5225,selection:_0xd1a963}=_0x2ec254[_0x2243d2(0x31f)],{sheetName:_0x982153,range:_0x33fab1}=B[_0x2243d2(0x195)](_0xd1a963),_0x27c26b={'name':(_0x36993d=(_0x27f2e4=this[_0x2243d2(0x22c)][_0x2243d2(0x1bc)](this['unitID'],_0x2b5225))==null?void 0x0:_0x27f2e4[_0x2243d2(0x25c)])!=null?_0x36993d:'Unknown\x20user','range':this[_0x2243d2(0x1a8)](_0x982153,_0x33fab1),'sheetID':_0x982153,'color':this[_0x2243d2(0x324)][_0x2243d2(0x39f)](_0x2b5225),'selection':_0xd1a963},_0x518e44=this['cursorInfo'];_0x518e44[_0x2243d2(0x310)](_0x2b5225,_0x27c26b),this[_0x2243d2(0x1df)][_0x2243d2(0x302)](_0x518e44);}[_0x5f4c13(0x319)](_0x3bc8f2){const _0x2e1e87=_0x5f4c13,{memberID:_0x2c8288}=_0x3bc8f2[_0x2e1e87(0x31f)],_0x10b90b=this[_0x2e1e87(0x1c5)];_0x10b90b[_0x2e1e87(0x1aa)](_0x2c8288),this[_0x2e1e87(0x1df)][_0x2e1e87(0x302)](_0x10b90b);}[_0x5f4c13(0x1a8)](_0x5591e8,_0x3116c0){const _0x3368ae=_0x5f4c13;var _0x52681c,_0x5b20c9;const _0x5d36a2=(_0x5b20c9=(_0x52681c=this[_0x3368ae(0x1fe)]['getUniverSheetInstance'](this[_0x3368ae(0x26a)]))==null?void 0x0:_0x52681c[_0x3368ae(0x2b9)](_0x5591e8))==null?void 0x0:_0x5b20c9['getMergeData']();return(_0x5d36a2==null?void 0x0:_0x5d36a2[_0x3368ae(0x295)](_0x122c6c=>a[_0x3368ae(0x293)][_0x3368ae(0x229)](_0x122c6c,_0x3116c0)))||_0x3116c0;}[_0x5f4c13(0x224)](){const _0x790519=_0x5f4c13,_0x53779a=new a[(_0x790519(0x36d))](),_0x14afac=Et(),_0x24036d=()=>{const _0x3044a1=_0x790519;_0x53779a['dispose']();const _0x4013be=(_0x5202b5,_0x3dd9b3,_0x5ed125,_0x270732)=>{const _0x2f8417=_0x1124;let _0x1acae0=[];switch(_0x5202b5['id']){case v[_0x2f8417(0x1cf)]['DeleteRangeMoveLeftCommandId']:{_0x1acae0=v['handleDeleteRangeMoveLeft'](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x17b)]:{_0x1acae0=v[_0x2f8417(0x15f)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x264)]:{_0x1acae0=v[_0x2f8417(0x37f)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)]['InsertRangeMoveDownCommandId']:{_0x1acae0=v['handleInsertRangeMoveDown'](_0x5202b5,_0x270732);break;}case v['EffectRefRangId'][_0x2f8417(0x162)]:{_0x1acae0=v['handleInsertRangeMoveRight'](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x27b)]:{_0x1acae0=v['handleInsertRow'](_0x5202b5,_0x270732);break;}case v['EffectRefRangId'][_0x2f8417(0x254)]:{_0x1acae0=v[_0x2f8417(0x3b4)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x16e)]:{_0x1acae0=v[_0x2f8417(0x3db)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)]['RemoveRowCommandId']:{_0x1acae0=v[_0x2f8417(0x2c1)](_0x5202b5,_0x270732);break;}}const _0x186931=v[_0x2f8417(0x32e)](_0x1acae0,_0x270732),_0x1a63c6=this[_0x2f8417(0x1c5)][_0x2f8417(0x389)](_0x3dd9b3);if(_0x1a63c6&&_0x186931){const _0x5345f4={..._0x1a63c6,'range':_0x186931};this['cursorInfo']['set'](_0x3dd9b3,_0x5345f4),_0x14afac(()=>{const _0x454036=_0x2f8417,_0x1f85b0=this[_0x454036(0x3e2)][_0x454036(0x329)](_0x186931,_0xef98bc=>(_0x1f85b0[_0x454036(0x18f)](),_0x4013be(_0xef98bc,_0x3dd9b3,_0x5ed125,_0x186931)));_0x53779a['add'](_0x1f85b0);});}return{'redos':[],'undos':[]};};this[_0x3044a1(0x1c5)][_0x3044a1(0x3ac)]((_0x371c43,_0x308470)=>{const _0x56d00f=_0x3044a1,{range:_0x25d552,sheetID:_0x5cd087}=_0x371c43,_0x5ee91f=this['_refRangeService'][_0x56d00f(0x329)](_0x25d552,_0xc913b1=>(_0x5ee91f[_0x56d00f(0x18f)](),_0x4013be(_0xc913b1,_0x308470,_0x5cd087,_0x25d552)));_0x53779a['add'](_0x5ee91f);});};this[_0x790519(0x3da)](a[_0x790519(0x11e)](this[_0x790519(0x1df)][_0x790519(0x154)](()=>{_0x24036d();})));}[_0x5f4c13(0x3a0)](){const _0x3d2f03=_0x5f4c13;var _0x14723a,_0x40d6e9;if(this[_0x3d2f03(0x20f)]=!0x0,((_0x14723a=this[_0x3d2f03(0x1fe)][_0x3d2f03(0x337)]())==null?void 0x0:_0x14723a[_0x3d2f03(0x272)]())!==this[_0x3d2f03(0x26a)])return;const _0x3a5b47=(_0x40d6e9=this[_0x3d2f03(0x1fd)][_0x3d2f03(0x389)](v['SheetsSelectionsService'])[_0x3d2f03(0x14a)]())==null?void 0x0:_0x40d6e9[0x0],_0xf8137d=this['_univerInstanceService'][_0x3d2f03(0x3b3)](a[_0x3d2f03(0x1ea)]['UNIVER_SHEET'])[_0x3d2f03(0x373)]();_0x3a5b47&&_0xf8137d&&this[_0x3d2f03(0x331)](_0xf8137d['getSheetId'](),_0x3a5b47);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),w(0x3,a[_0x5f4c13(0x21b)](Re)),w(0x4,a[_0x5f4c13(0x21b)](u[_0x5f4c13(0x1d0)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x5f4c13(0x1f4)]),w(0x7,a[_0x5f4c13(0x21b)](v[_0x5f4c13(0x21f)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x226ce1,_0x2cca2c,_0x33a60d,_0x34e044)=>{const _0x4cc3a3=_0x5f4c13;for(var _0x1d359e=_0x34e044>0x1?void 0x0:_0x34e044?Ct(_0x2cca2c,_0x33a60d):_0x2cca2c,_0x2f4eab=_0x226ce1[_0x4cc3a3(0x231)]-0x1,_0x25337d;_0x2f4eab>=0x0;_0x2f4eab--)(_0x25337d=_0x226ce1[_0x2f4eab])&&(_0x1d359e=_0x25337d(_0x1d359e)||_0x1d359e);return _0x1d359e;},ce=(_0x2e52cc,_0x6ad805)=>(_0x17bb69,_0xe43149)=>_0x6ad805(_0x17bb69,_0xe43149,_0x2e52cc);let F=class extends a['RxDisposable']{constructor(_0x3af97e,_0x5e07ec,_0xc12fb0){const _0x3ccbb5=_0x5f4c13;super(),_(this,_0x3ccbb5(0x25b),new Map()),_(this,'_entityInit$',new I[(_0x3ccbb5(0x1e3))]()),(this['_univerInstanceService']=_0x3af97e,this[_0x3ccbb5(0x1fd)]=_0x5e07ec,this[_0x3ccbb5(0x363)]=_0xc12fb0,this['_init']());}[_0x5f4c13(0x18f)](){const _0x527638=_0x5f4c13;super[_0x527638(0x18f)](),this[_0x527638(0x350)][_0x527638(0x382)](),this[_0x527638(0x25b)][_0x527638(0x3ac)](_0x254745=>_0x254745['dispose']());}[_0x5f4c13(0x174)](_0x326b5b){const _0x4df667=_0x5f4c13;return this[_0x4df667(0x25b)][_0x4df667(0x17f)](_0x326b5b)?this['_entities'][_0x4df667(0x389)](_0x326b5b)[_0x4df667(0x23c)]:this[_0x4df667(0x350)]['pipe'](I['filter'](_0x88b812=>_0x88b812[_0x4df667(0x26a)]===_0x326b5b),I['switchMap'](_0x5ea81f=>_0x5ea81f[_0x4df667(0x23c)]));}[_0x5f4c13(0x335)](){const _0x45cf05=_0x5f4c13;this[_0x45cf05(0x1fe)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x45cf05(0x235)])['pipe'](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x154)](async _0x219775=>{const _0x572117=_0x45cf05,_0x10f740=_0x219775[_0x572117(0x272)](),_0x26e782=await this[_0x572117(0x391)](_0x10f740);this['_entityInit$'][_0x572117(0x302)](_0x26e782),this[_0x572117(0x25b)][_0x572117(0x310)](_0x10f740,_0x26e782);}),this[_0x45cf05(0x1fe)][_0x45cf05(0x296)](a[_0x45cf05(0x1ea)][_0x45cf05(0x340)])[_0x45cf05(0x336)](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x336)](I[_0x45cf05(0x33b)](_0x1df7a9=>!_0x1df7a9[_0x45cf05(0x272)]()[_0x45cf05(0x317)]('__')))['subscribe'](async _0x4a2ad2=>{const _0x43c969=_0x45cf05,_0x585441=_0x4a2ad2['getUnitId'](),_0x3ce635=await this[_0x43c969(0x200)](_0x585441);this[_0x43c969(0x350)][_0x43c969(0x302)](_0x3ce635),this['_entities'][_0x43c969(0x310)](_0x585441,_0x3ce635);}),I[_0x45cf05(0x1e2)](this['_univerInstanceService'][_0x45cf05(0x2d3)](a[_0x45cf05(0x1ea)][_0x45cf05(0x340)]),this['_univerInstanceService'][_0x45cf05(0x2d3)](a[_0x45cf05(0x1ea)]['UNIVER_SHEET']))[_0x45cf05(0x336)](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x154)](_0x328047=>{const _0x1cc528=_0x45cf05,_0x31c489=_0x328047[_0x1cc528(0x272)](),_0x48c6e9=this[_0x1cc528(0x25b)][_0x1cc528(0x389)](_0x31c489);_0x48c6e9&&(_0x48c6e9['dispose'](),this[_0x1cc528(0x25b)]['delete'](_0x31c489));});}async['_startSheetCollabCursor'](_0x12f475){const _0x336212=_0x5f4c13,_0x2ac6a3=await this[_0x336212(0x363)]['requireSession'](_0x12f475),_0x297eaa=this[_0x336212(0x1fd)][_0x336212(0x21c)](ge,_0x12f475,_0x2ac6a3);return _0x297eaa['init'](),_0x297eaa;}async[_0x5f4c13(0x200)](_0x500ba0){const _0x14c40f=_0x5f4c13,_0xc62d10=await this[_0x14c40f(0x363)][_0x14c40f(0x3a8)](_0x500ba0),_0x3a47ef=this[_0x14c40f(0x1fd)][_0x14c40f(0x21c)](ve,_0x500ba0,_0xc62d10);return _0x3a47ef['init'](),_0x3a47ef;}};F=Tt([ce(0x0,a[_0x5f4c13(0x12a)]),ce(0x1,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),ce(0x2,a[_0x5f4c13(0x21b)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xb56f2f,_0x2b5927){const _0xd606d2=_0x5f4c13;let {radius:_0x123a32,width:_0x20a15a,height:_0x340692}=_0x2b5927;_0x123a32=_0x123a32!=null?_0x123a32:0x0,_0x20a15a=_0x20a15a!=null?_0x20a15a:0x1e,_0x340692=_0x340692!=null?_0x340692:0x1e;let _0x359428=0x0,_0x12e774=0x0,_0x42ff54=0x0;_0x359428=_0x12e774=_0x42ff54=Math[_0xd606d2(0x1d5)](_0x123a32,_0x20a15a/0x2,_0x340692/0x2),_0xb56f2f[_0xd606d2(0x175)](),_0xb56f2f['moveTo'](_0x359428,0x0),_0xb56f2f[_0xd606d2(0x309)](_0x20a15a-_0x12e774,0x0),_0xb56f2f[_0xd606d2(0x196)](_0x20a15a-_0x12e774,_0x12e774,_0x12e774,Math['PI']*0x3/0x2,0x0,!0x1),_0xb56f2f[_0xd606d2(0x309)](_0x20a15a,_0x340692-_0x42ff54),_0xb56f2f[_0xd606d2(0x196)](_0x20a15a-_0x42ff54,_0x340692-_0x42ff54,_0x42ff54,0x0,Math['PI']/0x2,!0x1),_0xb56f2f[_0xd606d2(0x309)](0x0,_0x340692),_0xb56f2f[_0xd606d2(0x309)](0x0,_0x359428),_0xb56f2f[_0xd606d2(0x196)](_0x359428,_0x359428,_0x359428,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb56f2f[_0xd606d2(0x199)](),_0x2b5927[_0xd606d2(0x233)]&&(_0xb56f2f[_0xd606d2(0x247)](),_0xb56f2f[_0xd606d2(0x291)]=_0x2b5927['fill'],_0x2b5927[_0xd606d2(0x2e6)]==='evenodd'?_0xb56f2f[_0xd606d2(0x233)](_0xd606d2(0x20e)):_0xb56f2f[_0xd606d2(0x233)](),_0xb56f2f[_0xd606d2(0x146)]());}class re extends C['Shape']{constructor(_0x14d916,_0x4c1caf){const _0x5ce37b=_0x5f4c13;super(_0x14d916,_0x4c1caf),_(this,_0x5ce37b(0x3d5)),_(this,_0x5ce37b(0x339)),(this[_0x5ce37b(0x3d5)]=_0x4c1caf==null?void 0x0:_0x4c1caf['color'],this[_0x5ce37b(0x339)]=_0x4c1caf==null?void 0x0:_0x4c1caf[_0x5ce37b(0x339)]);}static[_0x5f4c13(0x3e6)](_0x197a14,_0x3ccbfb){const _0x1059df=_0x5f4c13,{text:_0x57ae38,color:_0x1b1b2e}=_0x3ccbfb;_0x197a14[_0x1059df(0x247)](),_0x197a14[_0x1059df(0x29e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x17534b=_0x197a14['measureText'](_0x57ae38)[_0x1059df(0x1a9)],_0x390d11=Math[_0x1059df(0x1d5)](_0x17534b+0x2*le,Ue);Ot(_0x197a14,{'height':X,'radius':0x4,'width':_0x390d11,'fill':_0x1b1b2e}),_0x197a14['fillStyle']='#FFF';const _0xb0cb93=le,_0x1d5778=X-pt,_0x249c68=Ue-0x2*le;if(_0x17534b>_0x249c68){let _0x5c5e82='',_0x77be12=0x0;for(const _0x119932 of _0x57ae38){const _0x252da2=_0x197a14[_0x1059df(0x16c)](_0x119932)['width'];if(_0x77be12+_0x252da2<=_0x249c68-_0x197a14[_0x1059df(0x16c)]('...')[_0x1059df(0x1a9)])_0x5c5e82+=_0x119932,_0x77be12+=_0x252da2;else{_0x5c5e82+=_0x1059df(0x2da);break;}}_0x197a14['fillText'](_0x5c5e82,_0xb0cb93,_0x1d5778);}else _0x197a14[_0x1059df(0x390)](_0x57ae38,_0xb0cb93,_0x1d5778);_0x197a14[_0x1059df(0x146)]();}[_0x5f4c13(0x305)](_0x85e1d2){const _0x55a4b4=_0x5f4c13;re[_0x55a4b4(0x3e6)](_0x85e1d2,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt=_0x5f4c13(0x341),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5f4c13(0x3bf);class Le{constructor(_0x1251cf,_0xac1d40,_0x4ac58d,_0x2000bf){const _0x536408=_0x5f4c13;_(this,_0x536408(0x11c),[]),_(this,_0x536408(0x141),null),_(this,_0x536408(0x3b9),null),_(this,_0x536408(0x3e3),null),_(this,_0x536408(0x207),null),_(this,_0x536408(0x2b8),null),(this[_0x536408(0x3cd)]=_0x1251cf,this[_0x536408(0x22e)]=_0xac1d40,this[_0x536408(0x33f)]=_0x4ac58d,this['_document']=_0x2000bf,this[_0x536408(0x15c)]());}set[_0x5f4c13(0x371)](_0x3cca63){const _0x33f8ce=_0x5f4c13;_0x3cca63?(this[_0x33f8ce(0x3e3)]&&this[_0x33f8ce(0x3e3)][_0x33f8ce(0x150)](),this[_0x33f8ce(0x3b9)]&&this[_0x33f8ce(0x3b9)][_0x33f8ce(0x3b8)]()):(this[_0x33f8ce(0x3e3)]&&this[_0x33f8ce(0x3e3)][_0x33f8ce(0x3b8)](),this[_0x33f8ce(0x3b9)]&&this[_0x33f8ce(0x3b9)]['hide']());}[_0x5f4c13(0x18f)](){const _0x18f32c=_0x5f4c13;for(const _0x482cf5 of this['_shapes'])_0x482cf5[_0x18f32c(0x18f)]();this[_0x18f32c(0x3b9)]&&this[_0x18f32c(0x3b9)]['dispose'](),this[_0x18f32c(0x3e3)]&&this[_0x18f32c(0x3e3)][_0x18f32c(0x18f)](),this['_anchor']&&this[_0x18f32c(0x141)][_0x18f32c(0x18f)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x13fbd5=_0x5f4c13;var _0x4901e6;const {_docSkeleton:_0x360d69,_document:_0x58fdd6}=this,{color:_0x4e7fa1,name:_0x1c5b3c,ranges:_0x420954}=this[_0x13fbd5(0x3cd)],_0x3d6b4a=_0x58fdd6[_0x13fbd5(0x1e1)](),{docsLeft:_0x289993,docsTop:_0x28fb40}=_0x3d6b4a,_0x4896e8=new T[(_0x13fbd5(0x3e5))](_0x3d6b4a,_0x360d69);for(const {startOffset:_0x351ae5,endOffset:_0x1c1d75,rangeType:_0x58e128,segmentId:_0x3d3dab,segmentPage:_0x5d10ac,collapsed:_0x54d474,isActive:_0x59d790}of _0x420954){const _0x130aa3=_0x360d69[_0x13fbd5(0x29c)](_0x351ae5,!0x0,_0x3d3dab,_0x5d10ac);let _0x3e17e3=_0x360d69['findNodePositionByCharIndex'](_0x1c1d75,!0x0,_0x3d3dab,_0x5d10ac);if(_0x3e17e3==null&&(_0x3e17e3=_0x360d69[_0x13fbd5(0x29c)](_0x1c1d75-0x1,!0x1,_0x3d3dab,_0x5d10ac)),_0x59d790){const {contentBoxPointGroup:_0x3badd2}=_0x4896e8['getRangePointData'](_0x3e17e3,_0x3e17e3);if(_0x3badd2[_0x13fbd5(0x231)]===0x0)continue;this[_0x13fbd5(0x3e4)](_0x4e7fa1,_0x3badd2,_0x289993,_0x28fb40,_0x1c5b3c),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x130aa3&&_0x3e17e3){if(_0x58e128===a[_0x13fbd5(0x16d)][_0x13fbd5(0x1cc)]){const _0x12bc44=new T['NodePositionConvertToRectRange'](_0x3d6b4a,_0x360d69),{pointGroup:_0x4b7ae8}=(_0x4901e6=_0x12bc44[_0x13fbd5(0x185)](_0x130aa3,_0x3e17e3))!=null?_0x4901e6:{};if(_0x4b7ae8==null||_0x4b7ae8[_0x13fbd5(0x231)]===0x0)continue;this[_0x13fbd5(0x288)](_0x4e7fa1,_0x4b7ae8,_0x289993,_0x28fb40);}else{if(!_0x54d474){const {borderBoxPointGroup:_0x45a646}=_0x4896e8[_0x13fbd5(0x185)](_0x130aa3,_0x3e17e3);if(_0x45a646[_0x13fbd5(0x231)]===0x0)continue;this['_drawTextRange'](_0x4e7fa1,_0x45a646,_0x289993,_0x28fb40);}}}}}[_0x5f4c13(0x3e4)](_0x274ce3,_0x2af668,_0x17c5c3,_0x586edb,_0x13e7fd){const _0x247707=_0x5f4c13,_0x187b71=this[_0x247707(0x2ea)](_0x2af668),{left:_0x57b3bb,top:_0x2fb376,height:_0x1601a4}=_0x187b71,_0x4a0140=this['_getScale'](),_0x50d6ea=Nt/_0x4a0140,_0x45fbd7=new C[(_0x247707(0x124))](_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb,'height':_0x1601a4,'width':Dt,'fill':_0x274ce3||C['getColor'](a['COLORS'][_0x247707(0x133)],0x0),'strokeWidth':_0x50d6ea,'stroke':Ut,'evented':!0x0});this[_0x247707(0x141)]=_0x45fbd7,this['_scene'][_0x247707(0x23d)](_0x45fbd7,T[_0x247707(0x1ed)]);const _0x372435=new C[(_0x247707(0x124))](_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb-he/0x2,'height':he,'width':he,'fill':_0x274ce3||C[_0x247707(0x29a)](a['COLORS'][_0x247707(0x133)],0x0),'strokeWidth':0x0,'stroke':_0x274ce3||C[_0x247707(0x29a)](a[_0x247707(0x1b4)][_0x247707(0x133)],0x0),'evented':!0x1});this[_0x247707(0x3e3)]=_0x372435,this[_0x247707(0x22e)]['addObject'](_0x372435,T[_0x247707(0x1ed)]);const _0x26d3e4=new re(_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb-X,'text':_0x13e7fd,'color':_0x274ce3});this[_0x247707(0x3b9)]=_0x26d3e4,this[_0x247707(0x22e)][_0x247707(0x23d)](_0x26d3e4,T[_0x247707(0x1ed)]),this[_0x247707(0x371)]=!0x1;}[_0x5f4c13(0x3dc)](){const _0xa88612=_0x5f4c13,_0x332fdc=this[_0xa88612(0x141)]['onPointerEnter$'][_0xa88612(0x377)](()=>{this['_hover']=!0x0;}),_0x275e1c=this['_anchor']['onPointerLeave$'][_0xa88612(0x377)](()=>{const _0x2091a6=_0xa88612;this[_0x2091a6(0x207)]&&clearTimeout(this['_hideTimer']),this[_0x2091a6(0x207)]=setTimeout(()=>{const _0x4d494b=_0x2091a6;this[_0x4d494b(0x371)]=!0x1;},0x7d0);});return()=>{const _0x3b207a=_0xa88612;_0x332fdc[_0x3b207a(0x35e)](),_0x275e1c[_0x3b207a(0x35e)]();};}['_drawTextRange'](_0xecaee5,_0x27d30d,_0xc10c11,_0x3dea8e){const _0x430bf1=_0x5f4c13,_0x23cba9=new a[(_0x430bf1(0x1b5))](_0xecaee5)[_0x430bf1(0x244)](0.2)[_0x430bf1(0x351)](),_0x5ac6b5=new C[(_0x430bf1(0x2e2))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x27d30d,'fill':_0x23cba9||C['getColor'](a[_0x430bf1(0x1b4)][_0x430bf1(0x133)],0.2),'left':_0xc10c11,'top':_0x3dea8e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x430bf1(0x11c)][_0x430bf1(0x261)](_0x5ac6b5),this[_0x430bf1(0x22e)]['addObject'](_0x5ac6b5,T['TEXT_RANGE_LAYER_INDEX']);}[_0x5f4c13(0x288)](_0x348eae,_0x574c78,_0x247b96,_0x40e30a){const _0x981c16=_0x5f4c13,_0x2d853a=new a['ColorKit'](_0x348eae)[_0x981c16(0x244)](0.2)[_0x981c16(0x351)](),_0x337736=new C['RegularPolygon'](bt+a[_0x981c16(0x1c6)](H),{'pointsGroup':_0x574c78,'fill':_0x2d853a||C['getColor'](a[_0x981c16(0x1b4)][_0x981c16(0x133)],0.2),'left':_0x247b96,'top':_0x40e30a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x981c16(0x11c)][_0x981c16(0x261)](_0x337736),this['_scene']['addObject'](_0x337736,T[_0x981c16(0x1ed)]);}[_0x5f4c13(0x2ea)](_0x4d930a){const _0x1f325c=_0x4d930a[0x0],_0x30dbde=_0x1f325c[0x0],_0x39f6d9=_0x1f325c[0x2],{x:_0xf9939e,y:_0x15818c}=_0x30dbde,{x:_0x59b346,y:_0x56560a}=_0x39f6d9;return{'left':_0xf9939e,'top':_0x15818c,'width':_0x59b346-_0xf9939e,'height':_0x56560a-_0x15818c};}['_getScale'](){const _0x4716fa=_0x5f4c13,{scaleX:_0x165e77,scaleY:_0x23aa05}=this[_0x4716fa(0x22e)]['getAncestorScale']();return Math['max'](_0x165e77,_0x23aa05);}}var Lt=Object[_0x5f4c13(0x1ee)],Mt=(_0x2767f4,_0x4d1163,_0x40b907,_0x3677b6)=>{for(var _0x6c4d30=_0x3677b6>0x1?void 0x0:_0x3677b6?Lt(_0x4d1163,_0x40b907):_0x4d1163,_0x35cba8=_0x2767f4['length']-0x1,_0x33a828;_0x35cba8>=0x0;_0x35cba8--)(_0x33a828=_0x2767f4[_0x35cba8])&&(_0x6c4d30=_0x33a828(_0x6c4d30)||_0x6c4d30);return _0x6c4d30;},q=(_0x19108b,_0x51222a)=>(_0x44829c,_0x83bd7e)=>_0x51222a(_0x44829c,_0x83bd7e,_0x19108b);let Ee=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x19ea0c,_0x1d5771,_0x36b5e1,_0x41597c,_0x37bf98){const _0x4fd501=_0x5f4c13;super(),_(this,_0x4fd501(0x2f8),[]),_(this,_0x4fd501(0x3d7),[]),(this['_context']=_0x19ea0c,this[_0x4fd501(0x28c)]=_0x1d5771,this[_0x4fd501(0x205)]=_0x36b5e1,this[_0x4fd501(0x274)]=_0x41597c,this[_0x4fd501(0x3a9)]=_0x37bf98,this[_0x4fd501(0x335)]());}[_0x5f4c13(0x335)](){const _0x56d194=_0x5f4c13,_0x197658=this[_0x56d194(0x3a1)]['unitId'],_0x2d6bc3=this[_0x56d194(0x28c)];this[_0x56d194(0x3da)](I['combineLatest']([this[_0x56d194(0x205)][_0x56d194(0x174)](_0x197658),this[_0x56d194(0x3a9)][_0x56d194(0x1eb)]])[_0x56d194(0x336)]($['map'](([_0xe4aa35,_0x45470b])=>({'skeleton':_0x2d6bc3[_0x56d194(0x179)](),'cursors':[..._0xe4aa35[_0x56d194(0x18c)]()][_0x56d194(0x308)](_0x524904=>({..._0x524904,'color':this[_0x56d194(0x3a9)][_0x56d194(0x2c6)](_0x524904['color'])}))})))['subscribe'](_0x12ae84=>{const _0x5b9f6a=_0x56d194;if(this[_0x5b9f6a(0x2f6)](),_0x12ae84){const {skeleton:_0xf3adcc,cursors:_0x18162e}=_0x12ae84;this[_0x5b9f6a(0x2fe)](_0xf3adcc,_0x18162e);}})),this['_initResize'](),this[_0x56d194(0x1d6)]();}[_0x5f4c13(0x2fe)](_0x257383,_0x4ca6b2){const _0x30355c=_0x5f4c13,{scene:_0x330f4a,mainComponent:_0x48aa23}=this[_0x30355c(0x3a1)],_0x204cc5=_0x4ca6b2[_0x30355c(0x13c)](_0x55f806=>new Le(_0x55f806,_0x330f4a,_0x257383,_0x48aa23));this[_0x30355c(0x2f8)]=_0x204cc5,this[_0x30355c(0x3d7)]=_0x4ca6b2;}[_0x5f4c13(0x2c4)](){const _0x1c99e9=_0x5f4c13;this[_0x1c99e9(0x2f6)]();const {scene:_0xe0fe71,mainComponent:_0x355a0a}=this[_0x1c99e9(0x3a1)],_0xb9d842=this[_0x1c99e9(0x28c)][_0x1c99e9(0x179)](),_0x15e8a5=this[_0x1c99e9(0x3d7)][_0x1c99e9(0x13c)](_0x7dfd9=>new Le(_0x7dfd9,_0xe0fe71,_0xb9d842,_0x355a0a));this[_0x1c99e9(0x2f8)]=_0x15e8a5;}[_0x5f4c13(0x2f6)](){const _0x56a979=_0x5f4c13;this[_0x56a979(0x2f8)][_0x56a979(0x3ac)](_0x23774f=>_0x23774f[_0x56a979(0x18f)]()),this[_0x56a979(0x2f8)]=[];}[_0x5f4c13(0x1d6)](){const _0xbbedfa=_0x5f4c13,_0x7b985=[T[_0xbbedfa(0x2ba)]['id']];this[_0xbbedfa(0x3da)](this[_0xbbedfa(0x274)][_0xbbedfa(0x3d8)](_0x385d8c=>{const _0x1f52e0=_0xbbedfa;_0x7b985[_0x1f52e0(0x31e)](_0x385d8c['id'])&&_0x385d8c[_0x1f52e0(0x346)][_0x1f52e0(0x34a)]===this[_0x1f52e0(0x3a1)][_0x1f52e0(0x34a)]&&this[_0x1f52e0(0x2c4)]();}));}[_0x5f4c13(0x26f)](){const _0x1028c5=_0x5f4c13;this[_0x1028c5(0x3da)](a[_0x1028c5(0x2a5)](this[_0x1028c5(0x3a1)][_0x1028c5(0x3c0)]['onTransformChange$'])['pipe']($[_0x1028c5(0x33b)](_0x206df3=>_0x206df3[_0x1028c5(0x1c4)]===C[_0x1028c5(0x3d9)][_0x1028c5(0x33e)]),$[_0x1028c5(0x21e)](0x10))[_0x1028c5(0x154)](()=>{const _0x3a19af=_0x1028c5;this[_0x3a19af(0x2c4)]();}));}};Ee=Mt([q(0x1,a[_0x5f4c13(0x21b)](V['DocSkeletonManagerService'])),q(0x2,a[_0x5f4c13(0x21b)](F)),q(0x3,a[_0x5f4c13(0x1f4)]),q(0x4,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x328)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x5f4c13(0x19d)]{constructor(_0x1a7e33,_0x19e35a){const _0x26acdb=_0x5f4c13;super(_0x1a7e33,_0x19e35a),_(this,_0x26acdb(0x1ca)),_(this,_0x26acdb(0x151),!0x1),_(this,_0x26acdb(0x27e)),_(this,_0x26acdb(0x181),''),_(this,_0x26acdb(0x262),_0x26acdb(0x320)),_(this,_0x26acdb(0x3bd)),(_0x19e35a&&this[_0x26acdb(0x250)](_0x19e35a),this['onPointerEnter$'][_0x26acdb(0x377)](()=>this[_0x26acdb(0x250)]({'hovered':!0x0})),this[_0x26acdb(0x240)][_0x26acdb(0x377)](()=>this[_0x26acdb(0x250)]({'hovered':!0x1})));}[_0x5f4c13(0x250)](_0x2cd84b){const _0x344b34=_0x5f4c13;var _0x1149dc,_0x258db1,_0x34a000,_0x3e5af0,_0x2b8242,_0xb8db62;this['_color']=(_0x1149dc=_0x2cd84b[_0x344b34(0x3d5)])!=null?_0x1149dc:this[_0x344b34(0x1ca)],this[_0x344b34(0x151)]=(_0x258db1=_0x2cd84b['hovered'])!=null?_0x258db1:this['_hovered'],this['_range']=(_0x34a000=_0x2cd84b['range'])!=null?_0x34a000:this['_range'],this['_name']=(_0x3e5af0=_0x2cd84b[_0x344b34(0x25c)])!=null?_0x3e5af0:this[_0x344b34(0x181)],this[_0x344b34(0x262)]=(_0x2b8242=_0x2cd84b[_0x344b34(0x14e)])!=null?_0x2b8242:this[_0x344b34(0x262)],this[_0x344b34(0x3bd)]=(_0xb8db62=_0x2cd84b[_0x344b34(0x294)])!=null?_0xb8db62:this[_0x344b34(0x3bd)],this[_0x344b34(0x243)]({'width':_0x2cd84b[_0x344b34(0x1a9)],'height':_0x2cd84b[_0x344b34(0x14f)]});}[_0x5f4c13(0x204)](_0x53a7d0){const _0x7f71b7=_0x5f4c13,{row:_0x237ed9,column:_0x2adc7f}=_0x53a7d0;if(_0x237ed9>=this['_range'][_0x7f71b7(0x1a7)]&&_0x237ed9<=this['_range'][_0x7f71b7(0x1d1)]&&_0x2adc7f>=this[_0x7f71b7(0x27e)]['startColumn']&&_0x2adc7f<=this[_0x7f71b7(0x27e)][_0x7f71b7(0x1ba)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x7f71b7(0x250)]({'hovered':!0x1});}[_0x5f4c13(0x36f)](_0x55193b){return!0x1;}[_0x5f4c13(0x305)](_0x53823f){const _0x30928f=_0x5f4c13;C[_0x30928f(0x124)]['drawWith'](_0x53823f,{'width':this[_0x30928f(0x1a9)],'height':this[_0x30928f(0x14f)],'strokeWidth':Pt,'stroke':this[_0x30928f(0x1ca)],'evented':!0x1,'fill':this[_0x30928f(0x3bd)]}),this['_hovered']&&(_0x53823f[_0x30928f(0x247)](),_0x53823f[_0x30928f(0x193)](0x1,0x0,0x0,0x1,this[_0x30928f(0x1a9)],this[_0x30928f(0x262)]===_0x30928f(0x2ff)?0x0:-X),re[_0x30928f(0x3e6)](_0x53823f,{'text':this['_name'],'color':this['_color']}),_0x53823f[_0x30928f(0x146)]());}}var wt=Object[_0x5f4c13(0x1ee)],yt=(_0x1ac4e1,_0x47915c,_0x7b3b90,_0x5d9674)=>{const _0x17cb2b=_0x5f4c13;for(var _0x2bf50f=_0x5d9674>0x1?void 0x0:_0x5d9674?wt(_0x47915c,_0x7b3b90):_0x47915c,_0x241552=_0x1ac4e1[_0x17cb2b(0x231)]-0x1,_0x177027;_0x241552>=0x0;_0x241552--)(_0x177027=_0x1ac4e1[_0x241552])&&(_0x2bf50f=_0x177027(_0x2bf50f)||_0x2bf50f);return _0x2bf50f;},ue=(_0x581fd6,_0x38efe3)=>(_0x4eae19,_0x362ffd)=>_0x38efe3(_0x4eae19,_0x362ffd,_0x581fd6);const $t=0x1389;let Ce=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x2582d0,_0x256bfe,_0x55dfe0,_0x50369c){const _0x24fbcf=_0x5f4c13;super(),_(this,_0x24fbcf(0x3d7),new Set()),_(this,_0x24fbcf(0x186),null),(this[_0x24fbcf(0x3a1)]=_0x2582d0,this[_0x24fbcf(0x129)]=_0x256bfe,this[_0x24fbcf(0x205)]=_0x55dfe0,this[_0x24fbcf(0x3a9)]=_0x50369c,this['_init']());}[_0x5f4c13(0x335)](){const _0x2e199a=_0x5f4c13;this['_sheetSkeletonManagerService'][_0x2e199a(0x156)][_0x2e199a(0x336)]($[_0x2e199a(0x3c7)](this[_0x2e199a(0x2ce)]),$['switchMap'](_0x593699=>{const _0x2a2f92=_0x2e199a;if(_0x593699){const _0x2c4a84=_0x593699[_0x2a2f92(0x12f)];return I[_0x2a2f92(0x18d)](this[_0x2a2f92(0x205)][_0x2a2f92(0x174)](this[_0x2a2f92(0x3a1)][_0x2a2f92(0x34a)]),this[_0x2a2f92(0x3a9)]['currentTheme$'])[_0x2a2f92(0x336)]($[_0x2a2f92(0x13c)](([_0x1542c5,_0x5cca96])=>{const _0x56e6f2=new Map();return _0x1542c5['forEach']((_0x25d556,_0x2de047)=>{const _0x6b3ea7=_0x1124;if(_0x25d556[_0x6b3ea7(0x2bd)]===_0x2c4a84){const _0x18f5f5={..._0x25d556};_0x18f5f5[_0x6b3ea7(0x3d5)]=this[_0x6b3ea7(0x3a9)][_0x6b3ea7(0x2c6)](_0x25d556['color']),_0x56e6f2[_0x6b3ea7(0x310)](_0x2de047,_0x18f5f5);}}),{'skeleton':_0x593699,'cursors':_0x56e6f2};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x2e199a(0x154)](({skeleton:_0x4cc95f,cursors:_0x16dcfa})=>{const _0x364f95=_0x2e199a;this['_removeCollabCursors'](),_0x4cc95f&&this[_0x364f95(0x2fe)](_0x4cc95f,_0x16dcfa);}),this[_0x2e199a(0x129)]['currentSkeleton$'][_0x2e199a(0x154)](_0x3208b1=>{const _0x4d2c4e=_0x2e199a;if(_0x3208b1==null)return;const {skeleton:_0x18b46a}=_0x3208b1,{scene:_0x1cc7e1}=this[_0x4d2c4e(0x3a1)];_0x1cc7e1[_0x4d2c4e(0x32d)][_0x4d2c4e(0x377)](a[_0x4d2c4e(0x163)](_0x3165f5=>{const _0x1c452b=_0x4d2c4e;var _0x5848b3,_0xe56812;const {offsetX:_0x13379a,offsetY:_0x27c754}=_0x3165f5,{x:_0x58f981,y:_0x1969d9}=_0x1cc7e1[_0x1c452b(0x356)](C[_0x1c452b(0x270)][_0x1c452b(0x2d4)]([_0x13379a,_0x27c754])),{scaleX:_0x369abd,scaleY:_0x320052}=_0x1cc7e1[_0x1c452b(0x16a)](),_0x1392bf=_0x1cc7e1['getViewport'](C[_0x1c452b(0x120)]['VIEW_MAIN']),_0x275e26=_0x1cc7e1[_0x1c452b(0x32c)](C[_0x1c452b(0x270)][_0x1c452b(0x2d4)]([_0x58f981,_0x1969d9]),_0x1392bf),_0x5cc3ea=_0x18b46a[_0x1c452b(0x236)](_0x13379a,_0x27c754,_0x369abd,_0x320052,_0x275e26);((_0x5848b3=this['_lastPointer'])==null?void 0x0:_0x5848b3[_0x1c452b(0x248)])===_0x5cc3ea[_0x1c452b(0x248)]&&((_0xe56812=this[_0x1c452b(0x186)])==null?void 0x0:_0xe56812['row'])===_0x5cc3ea[_0x1c452b(0x1b7)]||this[_0x1c452b(0x3d7)][_0x1c452b(0x3ac)](_0x5a6ec6=>{const _0x4c842d=_0x1c452b;_0x5a6ec6[_0x4c842d(0x204)](_0x5cc3ea);});},0x64));});}[_0x5f4c13(0x2fe)](_0x5b2c10,_0x8ddf23){const _0x53e760=_0x5f4c13;var _0x1fae01;const _0x2dfe83=(_0x1fae01=this[_0x53e760(0x129)][_0x53e760(0x2f9)]())==null?void 0x0:_0x1fae01[_0x53e760(0x2a1)];if(!_0x2dfe83)return;const _0x2c09b8=this['_getSheetObject']();if(!_0x2c09b8)return;this[_0x53e760(0x3d7)][_0x53e760(0x3ac)](_0x4c97c0=>{const _0x4f25d6=_0x53e760;_0x4c97c0[_0x4f25d6(0x23e)]();});const {scene:_0x36bb47}=_0x2c09b8,_0x391e14=xt(Array[_0x53e760(0x25d)](_0x8ddf23['values']()))['map'](_0x4faee8=>{const _0x45f711=_0x53e760,{color:_0x4e8ed0,range:_0x3f8277,name:_0x5f2ab7,selection:_0x23389e,sheetID:_0x3bdd1f}=_0x4faee8,{startColumn:_0x3449ff,startRow:_0x14d5f8,endColumn:_0x6357eb,endRow:_0x4b7010}=_0x3f8277,_0x15df49=J[_0x45f711(0x15b)](_0x14d5f8,_0x3449ff,_0x36bb47,_0x2dfe83),_0x4350c5=J[_0x45f711(0x15b)](_0x4b7010,_0x6357eb,_0x36bb47,_0x2dfe83),{columnHeaderHeightAndMarginTop:_0x1cbed8}=_0x2dfe83,{startX:_0x28714b,startY:_0x436f38}=_0x15df49,{endX:_0x565fa1,endY:_0x117823}=_0x4350c5,_0xdf5a0e=_0x565fa1-_0x28714b,_0x313b16=_0x117823-_0x436f38,_0x5d2d3c={'labelPosition':_0x436f38-_0x1cbed8>=X?_0x45f711(0x320):_0x45f711(0x2ff),'sheetID':_0x3bdd1f,'range':_0x3f8277,'color':_0x4e8ed0,'name':_0x5f2ab7,'selection':_0x23389e,'left':_0x28714b,'top':_0x436f38,'width':_0xdf5a0e,'height':_0x313b16,'evented':!0x1,'zIndex':$t};return new je(_0x5f2ab7,_0x5d2d3c);});_0x36bb47[_0x53e760(0x22b)](_0x391e14,At),this['_cursors']=new Set(_0x391e14);}[_0x5f4c13(0x2f6)](){const _0xcbccc5=_0x5f4c13;var _0x4e4523;(_0x4e4523=this[_0xcbccc5(0x3d7)])==null||_0x4e4523['forEach'](_0x5c1837=>_0x5c1837[_0xcbccc5(0x18f)]());}[_0x5f4c13(0x368)](){const _0x1f7ef9=_0x5f4c13;return J[_0x1f7ef9(0x3bc)](this[_0x1f7ef9(0x3a1)]['unit'],this[_0x1f7ef9(0x3a1)]);}};Ce=yt([ue(0x1,a[_0x5f4c13(0x21b)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x5f4c13(0x21b)](F)),ue(0x3,a[_0x5f4c13(0x21b)](a['ThemeService']))],Ce);function xt(_0x5b1d65){const _0x5d91b5=_0x5f4c13,_0x32cd56=new Map();return _0x5b1d65['forEach'](_0x4612c1=>{const _0xa66938=_0x1124;if(_0x32cd56[_0xa66938(0x17f)](_0x4612c1[_0xa66938(0x29d)])){const _0xfa9583=_0x32cd56[_0xa66938(0x389)](_0x4612c1[_0xa66938(0x29d)]);_0xfa9583['name']+=',\x20'+_0x4612c1[_0xa66938(0x25c)];}else _0x32cd56[_0xa66938(0x310)](_0x4612c1[_0xa66938(0x29d)],_0x4612c1);}),Array[_0x5d91b5(0x25d)](_0x32cd56[_0x5d91b5(0x18c)]());}var Bt=Object[_0x5f4c13(0x1ee)],Ft=(_0x5ca936,_0x194353,_0x3edb2d,_0x27a719)=>{const _0x23e5e4=_0x5f4c13;for(var _0x48c3df=_0x27a719>0x1?void 0x0:_0x27a719?Bt(_0x194353,_0x3edb2d):_0x194353,_0x325f9c=_0x5ca936[_0x23e5e4(0x231)]-0x1,_0x5cc1ce;_0x325f9c>=0x0;_0x325f9c--)(_0x5cc1ce=_0x5ca936[_0x325f9c])&&(_0x48c3df=_0x5cc1ce(_0x48c3df)||_0x48c3df);return _0x48c3df;},y=(_0x59f3f9,_0x61b16a)=>(_0x1dfb25,_0x2b9c41)=>_0x61b16a(_0x1dfb25,_0x2b9c41,_0x59f3f9);let Z=class extends a[_0x5f4c13(0x28f)]{constructor(_0x284d45,_0x4de98a,_0x32d260,_0x5dee29,_0x1e4da4,_0x5b93d7){const _0x3bc978=_0x5f4c13;super(),this[_0x3bc978(0x19c)]=_0x284d45,this[_0x3bc978(0x239)]=_0x4de98a,this[_0x3bc978(0x3c6)]=_0x32d260,this['_messageService']=_0x5dee29,this[_0x3bc978(0x1d4)]=_0x1e4da4,this[_0x3bc978(0x2f1)]=_0x5b93d7,this[_0x3bc978(0x1c0)](),this[_0x3bc978(0x3ba)]();}[_0x5f4c13(0x1c0)](){const _0x1997b6=_0x5f4c13;this[_0x1997b6(0x3da)](this[_0x1997b6(0x19c)]['registerBeforeClose'](()=>{const _0x19be37=_0x1997b6;if(this[_0x19be37(0x239)]['saveTaskMap']['size'])return this[_0x19be37(0x2f1)]['t'](_0x19be37(0x2ac));}));}[_0x5f4c13(0x3ba)](){const _0x54af07=_0x5f4c13;this[_0x54af07(0x3da)](this['_collaborationUIEventService']['event$'][_0x54af07(0x154)](_0x3810f6=>{const _0x4acc38=_0x54af07;_0x3810f6['id']===u[_0x4acc38(0x145)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t']('collaboration.single-unit.warning')}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x1c7)]&&this[_0x4acc38(0x266)]['show']({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x388))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x39b)]&&this[_0x4acc38(0x1d4)][_0x4acc38(0x3b8)]({'title':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x1c1)),'content':this['_localeService']['t'](_0x4acc38(0x275)),'type':_0x4acc38(0x1dd),'duration':0x0}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x3b5)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this['_localeService']['t'](_0x4acc38(0x388))+'('+_0x3810f6['data']+')'}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x1a2)]&&this[_0x4acc38(0x266)][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x3810f6[_0x4acc38(0x31f)]||'')}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x30c)]&&this[_0x4acc38(0x266)][_0x4acc38(0x3b8)]({'type':p['MessageType'][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x1d2))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x281)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x2e0))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x3c2)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x14b))});}));}};Z=Ft([y(0x0,O[_0x5f4c13(0x32f)]),y(0x1,u[_0x5f4c13(0x2e3)]),y(0x2,a[_0x5f4c13(0x21b)](u['CollaborationUIEventService'])),y(0x3,O[_0x5f4c13(0x117)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x5f4c13(0x2b2)]))],Z);var jt=Object[_0x5f4c13(0x1ee)],kt=(_0x1629fd,_0xa9cf9d,_0x37e2ba,_0x1f9e3c)=>{const _0x233d44=_0x5f4c13;for(var _0x112311=_0x1f9e3c>0x1?void 0x0:_0x1f9e3c?jt(_0xa9cf9d,_0x37e2ba):_0xa9cf9d,_0x1a9998=_0x1629fd[_0x233d44(0x231)]-0x1,_0x85c6cd;_0x1a9998>=0x0;_0x1a9998--)(_0x85c6cd=_0x1629fd[_0x1a9998])&&(_0x112311=_0x85c6cd(_0x112311)||_0x112311);return _0x112311;},z=(_0x56332e,_0x2413d2)=>(_0x2906fb,_0x53b2d5)=>_0x2413d2(_0x2906fb,_0x53b2d5,_0x56332e);let Q=class extends a[_0x5f4c13(0x28f)]{constructor(_0x2b3f92,_0x33175b,_0x31fc08,_0x42ee19){const _0x22db24=_0x5f4c13;super(),_(this,_0x22db24(0x1e4)),(this[_0x22db24(0x1fd)]=_0x2b3f92,this[_0x22db24(0x381)]=_0x33175b,this[_0x22db24(0x277)]=_0x31fc08,this[_0x22db24(0x3c5)]=_0x42ee19,this['_init']());}[_0x5f4c13(0x335)](){const _0x3297d7=_0x5f4c13;this['_initWindowErrorListener'](),this[_0x3297d7(0x348)](),this[_0x3297d7(0x28d)](),this[_0x3297d7(0x372)]();}['_initUserListener'](){const _0x588b87=_0x5f4c13;this[_0x588b87(0x3da)](this[_0x588b87(0x3c5)][_0x588b87(0x1fa)][_0x588b87(0x154)](_0x2a8e0f=>{const _0x203320=_0x588b87;this[_0x203320(0x1e4)]=_0x2a8e0f==null?void 0x0:_0x2a8e0f[_0x203320(0x26d)];}));}['_initWindowErrorListener'](){const _0x2231df=_0x5f4c13,_0x144644=_0x3c8396=>{const _0x25a568=_0x1124;var _0x329a30;this['_uploadLog']('error',_0x25a568(0x2ec)+_0x3c8396[_0x25a568(0x17c)]+_0x25a568(0x37d)+_0x3c8396['filename']+':'+_0x3c8396['lineno']+':'+_0x3c8396[_0x25a568(0x227)]+'\x0a'+(((_0x329a30=_0x3c8396['error'])==null?void 0x0:_0x329a30[_0x25a568(0x355)])||''));};window[_0x2231df(0x2ae)](_0x2231df(0x1dd),_0x144644),this[_0x2231df(0x3da)](()=>{const _0x16c1ef=_0x2231df;window[_0x16c1ef(0x1ab)](_0x16c1ef(0x1dd),_0x144644);});}['_initUnhandledRejectionListener'](){const _0x14cefc=_0x5f4c13,_0x476d73=_0x2c6401=>{const _0x49b1cf=_0x1124;this[_0x49b1cf(0x1f3)]('error',_0x49b1cf(0x119)+_0x2c6401['reason']);};window[_0x14cefc(0x2ae)](_0x14cefc(0x2a2),_0x476d73),this['disposeWithMe'](()=>{const _0x53d8c2=_0x14cefc;window[_0x53d8c2(0x1ab)](_0x53d8c2(0x2a2),_0x476d73);});}['_monkeyPatchLogService'](){const _0x121626=_0x5f4c13,_0x530ab2=this[_0x121626(0x277)][_0x121626(0x1dd)][_0x121626(0x300)](this[_0x121626(0x277)]);this[_0x121626(0x277)][_0x121626(0x1dd)]=(..._0x51b972)=>{const _0x32f0b8=_0x121626,_0x336616=_0x51b972[_0x32f0b8(0x13c)](_0x5e064e=>_0x5e064e instanceof Error?_0x5e064e[_0x32f0b8(0x17c)]+'\x0a'+_0x5e064e[_0x32f0b8(0x355)]:String(_0x5e064e))[_0x32f0b8(0x343)]('\x20');this[_0x32f0b8(0x1f3)](_0x32f0b8(0x1dd),'[LogService\x20Error]:\x20'+_0x336616),_0x530ab2(..._0x51b972);},this['disposeWithMe'](()=>{const _0x4a9ca1=_0x121626;this[_0x4a9ca1(0x277)][_0x4a9ca1(0x1dd)]=_0x530ab2;});}[_0x5f4c13(0x1f3)](_0x180934,_0x36bc87){const _0x241a57=_0x5f4c13;try{const _0x3b2ded={'userId':this[_0x241a57(0x1e4)],'logLabel':_0x180934,'content':_0x36bc87};this[_0x241a57(0x381)][_0x241a57(0x35a)](_0x241a57(0x1bf),{'body':_0x3b2ded})[_0x241a57(0x1b0)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x5f4c13(0x349)])),z(0x1,a[_0x5f4c13(0x21b)](x[_0x5f4c13(0x166)])),z(0x2,a[_0x5f4c13(0x1c9)]),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0x5f4c13(0x361),Me={};var Ht=Object[_0x5f4c13(0x1ee)],Wt=(_0x21dd2c,_0x359e20,_0xda0319,_0x313781)=>{for(var _0x4a0bf6=_0x313781>0x1?void 0x0:_0x313781?Ht(_0x359e20,_0xda0319):_0x359e20,_0x14e44a=_0x21dd2c['length']-0x1,_0x9bc4ca;_0x14e44a>=0x0;_0x14e44a--)(_0x9bc4ca=_0x21dd2c[_0x14e44a])&&(_0x4a0bf6=_0x9bc4ca(_0x4a0bf6)||_0x4a0bf6);return _0x4a0bf6;},Ae=(_0x6cbee3,_0xa634e8)=>(_0x1eeb08,_0x47a568)=>_0xa634e8(_0x1eeb08,_0x47a568,_0x6cbee3);let ee=class{constructor(_0x5ca068,_0x10aced){const _0x1183fd=_0x5f4c13;this[_0x1183fd(0x301)]=_0x5ca068,this['_renderManagerService']=_0x10aced;}['transformIMECache'](_0x36e7b8){const _0x1825cf=_0x5f4c13;this['_transformUndoRedoStack'](_0x36e7b8),this[_0x1825cf(0x153)](_0x36e7b8);}[_0x5f4c13(0x184)](_0x184398){const _0x38c6f0=_0x5f4c13,{unitID:_0x4fb255}=_0x184398,_0x6f1020=this[_0x38c6f0(0x3be)]['getRenderById'](_0x4fb255)[_0x38c6f0(0x158)](T[_0x38c6f0(0x125)]),{redoCache:_0x38c9d4}=_0x6f1020[_0x38c6f0(0x194)]();if(_0x38c9d4[_0x38c6f0(0x231)]===0x0)return _0x184398;let _0x5adeac=a['Tools']['deepClone'](_0x184398[_0x38c6f0(0x165)][0x0]);for(let _0x492fff=0x0;_0x492fff<_0x38c9d4[_0x38c6f0(0x231)];_0x492fff++){const _0x49a384={'id':_0x38c6f0(0x209),'params':{..._0x38c9d4[_0x492fff]}},_0x5969fb=this[_0x38c6f0(0x301)][_0x38c6f0(0x31d)](_0x5adeac,_0x49a384,!0x1);if(g[_0x38c6f0(0x140)](_0x5969fb))throw _0x5969fb[_0x38c6f0(0x1dd)];_0x5adeac=_0x5969fb[_0x38c6f0(0x219)];}return{...a[_0x38c6f0(0x17a)][_0x38c6f0(0x230)](_0x184398),'mutations':[_0x5adeac]};}[_0x5f4c13(0x318)](_0x59c8ee){const _0x3f19d9=_0x5f4c13,{unitID:_0x1e8d59}=_0x59c8ee,_0x5f10a3=this[_0x3f19d9(0x3be)][_0x3f19d9(0x39c)](_0x1e8d59)[_0x3f19d9(0x158)](T['DocIMEInputManagerService']),{undoCache:_0x586c15,redoCache:_0x2d1b45}=_0x5f10a3['getUndoRedoMutationParamsCache']();if(_0x586c15[_0x3f19d9(0x231)]===0x0||_0x2d1b45[_0x3f19d9(0x231)]===0x0)return;const _0x49bb85=[],_0x5ca3fc=[];let _0xf401d5=a[_0x3f19d9(0x17a)][_0x3f19d9(0x230)](_0x59c8ee[_0x3f19d9(0x165)][0x0]),_0x50ccfc=a[_0x3f19d9(0x17a)][_0x3f19d9(0x230)](_0x59c8ee['mutations'][0x0]);for(let _0x144d43=_0x586c15['length']-0x1;_0x144d43>=0x0;_0x144d43--){const _0x1ecf85={'id':_0x3f19d9(0x209),'params':{..._0x586c15[_0x144d43]}},_0x1f261c={'id':_0x3f19d9(0x209),'params':{..._0x2d1b45[_0x144d43]}},_0x497353=this[_0x3f19d9(0x301)][_0x3f19d9(0x31d)](_0xf401d5,_0x1ecf85,!0x1),_0x4c8f5d=this['_transformService'][_0x3f19d9(0x31d)](_0x50ccfc,_0x1f261c,!0x1);if(g[_0x3f19d9(0x140)](_0x497353))throw _0x497353[_0x3f19d9(0x1dd)];if(g[_0x3f19d9(0x140)](_0x4c8f5d))throw _0x4c8f5d[_0x3f19d9(0x1dd)];_0x49bb85['unshift'](_0x497353[_0x3f19d9(0x3c4)][_0x3f19d9(0x346)]),_0x5ca3fc['unshift'](_0x4c8f5d['m2Prime']['params']),_0xf401d5=_0x497353[_0x3f19d9(0x219)],_0x50ccfc=_0x4c8f5d[_0x3f19d9(0x219)];}_0x5f10a3['setUndoRedoMutationParamsCache']({'undoCache':_0x49bb85,'redoCache':_0x5ca3fc});}[_0x5f4c13(0x153)](_0x257fb0){const _0x2bce4e=_0x5f4c13,{unitID:_0x51330c}=_0x257fb0,_0xd592cf=this[_0x2bce4e(0x3be)][_0x2bce4e(0x39c)](_0x51330c)[_0x2bce4e(0x158)](T[_0x2bce4e(0x125)]),_0x344970=_0xd592cf['getActiveRange']();if(_0x344970==null)return;const _0x348b9c=[{'id':_0x2bce4e(0x209),'params':{'unitId':_0x257fb0['unitID'],'actions':null,'textRanges':[_0x344970]}}],_0x31c850=this['_transformService'][_0x2bce4e(0x2b5)](_0x257fb0,_0x348b9c);if(!g[_0x2bce4e(0x36c)](_0x31c850))throw _0x31c850['error'];const _0x2f0a4e=_0x31c850['m2Prime'][0x0][_0x2bce4e(0x346)]['textRanges'];Array[_0x2bce4e(0x180)](_0x2f0a4e)&&_0x2f0a4e[_0x2bce4e(0x231)]&&_0xd592cf['setActiveRange'](_0x2f0a4e[0x0]);}};ee=Wt([Ae(0x0,g[_0x5f4c13(0x2e7)]),Ae(0x1,C[_0x5f4c13(0x18a)])],ee);var Vt=Object[_0x5f4c13(0x1ee)],Gt=(_0x464ff2,_0x517e50,_0x1d00d4,_0x2f7cda)=>{const _0x31cae0=_0x5f4c13;for(var _0x22802c=_0x2f7cda>0x1?void 0x0:_0x2f7cda?Vt(_0x517e50,_0x1d00d4):_0x517e50,_0x4414bf=_0x464ff2[_0x31cae0(0x231)]-0x1,_0xe018f2;_0x4414bf>=0x0;_0x4414bf--)(_0xe018f2=_0x464ff2[_0x4414bf])&&(_0x22802c=_0xe018f2(_0x22802c)||_0x22802c);return _0x22802c;},Ie=(_0x24a403,_0x49e420)=>(_0x15a378,_0x52f2e1)=>_0x49e420(_0x15a378,_0x52f2e1,_0x24a403);let te=class{constructor(_0x5f21ac,_0x1179a0,_0x179d83){const _0x42676a=_0x5f4c13;this[_0x42676a(0x1fd)]=_0x5f21ac,this['_transformService']=_0x1179a0,this['_docStateChangeManagerService']=_0x179d83;}[_0x5f4c13(0x2be)](_0x3759bb){const _0x3febeb=_0x5f4c13;this[_0x3febeb(0x3cc)](_0x3759bb);}[_0x5f4c13(0x184)](_0xd56b22){const _0xcb7f73=_0x5f4c13,{unitID:_0xb6d38}=_0xd56b22,{collaboration:_0x3a4817}=this[_0xcb7f73(0x322)]['getStateCache'](_0xb6d38);if(_0x3a4817[_0xcb7f73(0x231)]===0x0)return _0xd56b22;let _0x402586=a[_0xcb7f73(0x17a)][_0xcb7f73(0x230)](_0xd56b22['mutations'][0x0]);for(let _0x13a4b7=0x0;_0x13a4b7<_0x3a4817[_0xcb7f73(0x231)];_0x13a4b7++){const _0x878e2d={'id':_0xcb7f73(0x209),'params':{'unitId':_0x3a4817[_0x13a4b7]['unitId'],..._0x3a4817[_0x13a4b7][_0xcb7f73(0x213)]}},_0x353cad=this['_transformService']['transformMutation'](_0x402586,_0x878e2d,!0x1);if(g[_0xcb7f73(0x140)](_0x353cad))throw _0x353cad[_0xcb7f73(0x1dd)];_0x402586=_0x353cad[_0xcb7f73(0x219)];}return{...a['Tools'][_0xcb7f73(0x230)](_0xd56b22),'mutations':[_0x402586]};}[_0x5f4c13(0x3cc)](_0x98b3a2){const _0x20b463=_0x5f4c13,{unitID:_0x4a0fa3}=_0x98b3a2,{history:_0x28929e,collaboration:_0x116c12}=this[_0x20b463(0x322)][_0x20b463(0x265)](_0x4a0fa3);if(_0x28929e['length']===0x0&&_0x116c12['length']===0x0)return;const _0x1d16c9=[],_0xe60ff8=[];let _0x404a0e=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2[_0x20b463(0x165)][0x0]),_0x241633=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2[_0x20b463(0x165)][0x0]);for(let _0x788cd6=_0x28929e[_0x20b463(0x231)]-0x1;_0x788cd6>=0x0;_0x788cd6--){const _0x479855={'id':_0x20b463(0x209),'params':{'unitId':_0x28929e[_0x788cd6][_0x20b463(0x34a)],..._0x28929e[_0x788cd6][_0x20b463(0x2f2)]}},_0x1cd71b={'id':_0x20b463(0x209),'params':{'unitId':_0x28929e[_0x788cd6]['unitId'],..._0x28929e[_0x788cd6]['redoState']}},_0x490061=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x404a0e,_0x479855,!0x1),_0x91123c=this[_0x20b463(0x301)]['transformMutation'](_0x241633,_0x1cd71b,!0x1);if(g[_0x20b463(0x140)](_0x490061))throw _0x490061[_0x20b463(0x1dd)];if(g[_0x20b463(0x140)](_0x91123c))throw _0x91123c['error'];_0x1d16c9['unshift']({..._0x28929e[_0x788cd6],'undoState':_0x490061[_0x20b463(0x3c4)][_0x20b463(0x346)],'redoState':_0x91123c['m2Prime'][_0x20b463(0x346)]}),_0x404a0e=_0x490061['m1Prime'],_0x241633=_0x91123c[_0x20b463(0x219)];}_0x404a0e=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2['mutations'][0x0]),_0x241633=a[_0x20b463(0x17a)]['deepClone'](_0x98b3a2[_0x20b463(0x165)][0x0]);for(let _0x1de79a=_0x116c12['length']-0x1;_0x1de79a>=0x0;_0x1de79a--){const _0x58577e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x116c12[_0x1de79a]['unitId'],..._0x116c12[_0x1de79a][_0x20b463(0x2f2)]}},_0x1bbac3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x116c12[_0x1de79a][_0x20b463(0x34a)],..._0x116c12[_0x1de79a]['redoState']}},_0x59e72f=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x404a0e,_0x58577e,!0x1),_0x3021c3=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x241633,_0x1bbac3,!0x1);if(g[_0x20b463(0x140)](_0x59e72f))throw _0x59e72f[_0x20b463(0x1dd)];if(g[_0x20b463(0x140)](_0x3021c3))throw _0x3021c3[_0x20b463(0x1dd)];_0xe60ff8[_0x20b463(0x2cb)]({..._0x116c12[_0x1de79a],'undoState':_0x59e72f[_0x20b463(0x3c4)][_0x20b463(0x346)],'redoState':_0x3021c3['m2Prime'][_0x20b463(0x346)]}),_0x404a0e=_0x59e72f[_0x20b463(0x219)],_0x241633=_0x3021c3['m1Prime'];}this[_0x20b463(0x322)][_0x20b463(0x21a)](_0x4a0fa3,{'history':_0x1d16c9,'collaboration':_0xe60ff8});}};te=Gt([Ie(0x0,a['Inject'](a[_0x5f4c13(0x349)])),Ie(0x1,g[_0x5f4c13(0x2e7)]),Ie(0x2,a['Inject'](T[_0x5f4c13(0x2bf)]))],te);var Xt=Object[_0x5f4c13(0x1ee)],Kt=(_0xc47d4e,_0x5d74cb,_0x5abea4,_0x478af8)=>{for(var _0x1c08d1=_0x478af8>0x1?void 0x0:_0x478af8?Xt(_0x5d74cb,_0x5abea4):_0x5d74cb,_0x3a25ed=_0xc47d4e['length']-0x1,_0x3b50de;_0x3a25ed>=0x0;_0x3a25ed--)(_0x3b50de=_0xc47d4e[_0x3a25ed])&&(_0x1c08d1=_0x3b50de(_0x1c08d1)||_0x1c08d1);return _0x1c08d1;},Pe=(_0x117300,_0x358384)=>(_0x3768a8,_0x401b12)=>_0x358384(_0x3768a8,_0x401b12,_0x117300);let se=class{constructor(_0x490725,_0xbf3034){const _0x242b40=_0x5f4c13;this[_0x242b40(0x1fd)]=_0x490725,this['_transformService']=_0xbf3034;}['transformSelections'](_0x2be1f2){const _0x13f95f=_0x5f4c13;var _0x28312f;const _0x1d8254=this[_0x13f95f(0x1fd)][_0x13f95f(0x389)](V[_0x13f95f(0x345)]),_0x14fead=(_0x28312f=_0x1d8254[_0x13f95f(0x192)]())!=null?_0x28312f:[];if(_0x14fead[_0x13f95f(0x231)]===0x0)return;const _0x224af6=_0x2be1f2[_0x13f95f(0x26a)],_0x448e0d=[{'id':_0x13f95f(0x209),'params':{'unitId':_0x224af6,'actions':null,'textRanges':_0x14fead}}],_0x150ad7=this[_0x13f95f(0x301)][_0x13f95f(0x2b5)](_0x2be1f2,_0x448e0d);if(!g[_0x13f95f(0x36c)](_0x150ad7))throw _0x150ad7[_0x13f95f(0x1dd)];const _0x4f4b66=_0x150ad7['m2Prime'][0x0]['params'][_0x13f95f(0x304)];Array[_0x13f95f(0x180)](_0x4f4b66)&&_0x4f4b66[_0x13f95f(0x231)]&&_0x1d8254['replaceDocRanges'](_0x4f4b66,{'unitId':_0x224af6,'subUnitId':_0x224af6},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x5f4c13(0x349)])),Pe(0x1,g[_0x5f4c13(0x2e7)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x10ae08,_0x4adc77,_0x124af8,_0x532b77)=>{const _0x281c59=_0x5f4c13;for(var _0x5a3b1e=_0x532b77>0x1?void 0x0:_0x532b77?qt(_0x4adc77,_0x124af8):_0x4adc77,_0x384a87=_0x10ae08[_0x281c59(0x231)]-0x1,_0x31ac85;_0x384a87>=0x0;_0x384a87--)(_0x31ac85=_0x10ae08[_0x384a87])&&(_0x5a3b1e=_0x31ac85(_0x5a3b1e)||_0x5a3b1e);return _0x5a3b1e;},N=(_0x71a510,_0x141bd0)=>(_0x209062,_0x2a4274)=>_0x141bd0(_0x209062,_0x2a4274,_0x71a510);let ie=class extends a[_0x5f4c13(0x28f)]{constructor(_0x5c2e45,_0x4d84ee,_0x21c0f2,_0x12061e,_0x19e7e2,_0x249d74,_0x131102,_0x43dd29){const _0x1fccdc=_0x5f4c13;super(),_(this,'_status$',new I[(_0x1fccdc(0x2ed))](u[_0x1fccdc(0x376)][_0x1fccdc(0x347)])),(this['_docStateChangeManagerService']=_0x5c2e45,this[_0x1fccdc(0x217)]=_0x4d84ee,this[_0x1fccdc(0x245)]=_0x21c0f2,this[_0x1fccdc(0x325)]=_0x12061e,this[_0x1fccdc(0x1a4)]=_0x19e7e2,this['_docSyncEditingCollabCursorService']=_0x249d74,this['_messageService']=_0x131102,this[_0x1fccdc(0x2f1)]=_0x43dd29,this[_0x1fccdc(0x26e)]());}[_0x5f4c13(0x26e)](){const _0x38e68e=_0x5f4c13;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x38e68e(0x154)](_0x2b8a2c=>{const _0x259de9=_0x38e68e,_0x195bd3=this[_0x259de9(0x322)][_0x259de9(0x332)][_0x259de9(0x154)](_0x3bb7a6=>{const _0x38f2b1=_0x259de9;if(_0x3bb7a6==null)return;const {unitId:_0x57fc40,redoState:_0x41369f,commandId:_0x2e66b1}=_0x3bb7a6;if(_0x57fc40!==_0x2b8a2c[_0x38f2b1(0x26a)])return;const _0x115b88={'id':_0x2e66b1,'type':a[_0x38f2b1(0x3d0)][_0x38f2b1(0x16f)],'params':{'unitId':_0x57fc40,'actions':_0x41369f[_0x38f2b1(0x2ef)],'textRanges':null}};_0x2b8a2c[_0x38f2b1(0x216)](_0x115b88);});if(_0x2b8a2c[_0x259de9(0x3da)](_0x195bd3),_0x2b8a2c instanceof u[_0x259de9(0x255)]){const _0x16f50b={'onTransformIME':_0x13696f=>this['_docTransformIMECacheService'][_0x259de9(0x369)](_0x13696f),'onTransformState':_0x3ed189=>this['_docTransformStateCacheService']['transformStateCache'](_0x3ed189),'onTransformSelections':_0x1e6f9a=>this[_0x259de9(0x1a4)][_0x259de9(0x1fb)](_0x1e6f9a),'onSyncEditingCollabCursor':_0x304f51=>this[_0x259de9(0x2ad)]['syncEditingCollabCursor'](_0x304f51),'onTransformRemoteChangesetByIMECache':_0x39e545=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x39e545),'onTransformRemoteChangesetByStateCache':_0x1b5597=>this[_0x259de9(0x325)]['transformRemoteChangeset'](_0x1b5597)};_0x2b8a2c[_0x259de9(0x2dc)](_0x16f50b);}}));}};ie=zt([N(0x0,a['Inject'](T[_0x5f4c13(0x2bf)])),N(0x1,a[_0x5f4c13(0x21b)](u['CollaborationController'])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x5f4c13(0x21b)](te)),N(0x4,a[_0x5f4c13(0x21b)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x5f4c13(0x117)]),N(0x7,a[_0x5f4c13(0x21b)](a['LocaleService']))],ie);var G=(_0x51631e=>(_0x51631e[_0x51631e[_0x5f4c13(0x128)]=0x0]=_0x5f4c13(0x128),_0x51631e[_0x51631e['OK']=0x1]='OK',_0x51631e[_0x51631e[_0x5f4c13(0x1af)]=0x2]='INTERNAL_ERROR',_0x51631e[_0x51631e[_0x5f4c13(0x39b)]=0x3]=_0x5f4c13(0x39b),_0x51631e[_0x51631e[_0x5f4c13(0x11a)]=0x4]=_0x5f4c13(0x11a),_0x51631e[_0x51631e[_0x5f4c13(0x27d)]=0x5]=_0x5f4c13(0x27d),_0x51631e[_0x51631e[_0x5f4c13(0x135)]=0x6]=_0x5f4c13(0x135),_0x51631e[_0x51631e[_0x5f4c13(0x190)]=0x7]=_0x5f4c13(0x190),_0x51631e[_0x51631e[_0x5f4c13(0x2c3)]=0x8]=_0x5f4c13(0x2c3),_0x51631e[_0x51631e[_0x5f4c13(0x303)]=0x9]=_0x5f4c13(0x303),_0x51631e[_0x51631e['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x51631e[_0x51631e[_0x5f4c13(0x3a6)]=0xb]=_0x5f4c13(0x3a6),_0x51631e[_0x51631e[_0x5f4c13(0x1d9)]=0xc]=_0x5f4c13(0x1d9),_0x51631e[_0x51631e['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x5f4c13(0x1cb),_0x51631e[_0x51631e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x51631e[_0x51631e[_0x5f4c13(0x1a3)]=0xf]=_0x5f4c13(0x1a3),_0x51631e[_0x51631e[_0x5f4c13(0x333)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x51631e[_0x51631e[_0x5f4c13(0x2b7)]=0x64]=_0x5f4c13(0x2b7),_0x51631e[_0x51631e['ERROR_AGAIN']=0x65]=_0x5f4c13(0x2d1),_0x51631e[_0x51631e['USER_NOT_FOUND']=0xc9]=_0x5f4c13(0x14d),_0x51631e[_0x51631e[_0x5f4c13(0x280)]=0xca]=_0x5f4c13(0x280),_0x51631e[_0x51631e[_0x5f4c13(0x218)]=0x1389]=_0x5f4c13(0x218),_0x51631e[_0x51631e[_0x5f4c13(0x344)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x51631e[_0x51631e[_0x5f4c13(0x286)]=0x1772]=_0x5f4c13(0x286),_0x51631e[_0x51631e[_0x5f4c13(0x3a5)]=0x1773]=_0x5f4c13(0x3a5),_0x51631e[_0x51631e[_0x5f4c13(0x20b)]=0x1b59]=_0x5f4c13(0x20b),_0x51631e[_0x51631e[_0x5f4c13(0x18e)]=0x1b5a]=_0x5f4c13(0x18e),_0x51631e[_0x51631e[_0x5f4c13(0x189)]=0x1b5b]=_0x5f4c13(0x189),_0x51631e[_0x51631e[_0x5f4c13(0x251)]=0x1b5c]=_0x5f4c13(0x251),_0x51631e[_0x51631e[_0x5f4c13(0x35f)]=0x1b5d]=_0x5f4c13(0x35f),_0x51631e[_0x51631e[_0x5f4c13(0x157)]=0x1f41]=_0x5f4c13(0x157),_0x51631e[_0x51631e[_0x5f4c13(0x394)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x51631e[_0x51631e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5f4c13(0x39d),_0x51631e[_0x51631e[_0x5f4c13(0x20c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x51631e[_0x51631e[_0x5f4c13(0x24b)]=0x232c]=_0x5f4c13(0x24b),_0x51631e[_0x51631e['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5f4c13(0x2a4),_0x51631e[_0x51631e[_0x5f4c13(0x26b)]=0x2711]=_0x5f4c13(0x26b),_0x51631e[_0x51631e[_0x5f4c13(0x285)]=0x2712]=_0x5f4c13(0x285),_0x51631e[_0x51631e[_0x5f4c13(0x215)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x51631e[_0x51631e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5f4c13(0x3cb),_0x51631e[_0x51631e[_0x5f4c13(0x1d7)]=0x271a]=_0x5f4c13(0x1d7),_0x51631e[_0x51631e[_0x5f4c13(0x31a)]=0x271b]=_0x5f4c13(0x31a),_0x51631e[_0x51631e[_0x5f4c13(0x1f2)]=0x271c]=_0x5f4c13(0x1f2),_0x51631e[_0x51631e[_0x5f4c13(0x234)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x51631e[_0x51631e[_0x5f4c13(0x38c)]=0x271e]=_0x5f4c13(0x38c),_0x51631e[_0x51631e[_0x5f4c13(0x19b)]=0x271f]=_0x5f4c13(0x19b),_0x51631e[_0x51631e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x51631e[_0x51631e[_0x5f4c13(0x211)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x51631e[_0x51631e[_0x5f4c13(0x276)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x51631e[_0x51631e[_0x5f4c13(0x13b)]=0x2ee2]=_0x5f4c13(0x13b),_0x51631e[_0x51631e[_0x5f4c13(0x1b6)]=0x2ee3]=_0x5f4c13(0x1b6),_0x51631e[_0x51631e['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x51631e[_0x51631e[_0x5f4c13(0x11d)]=0x2ee5]=_0x5f4c13(0x11d),_0x51631e[_0x51631e[_0x5f4c13(0x1ac)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x51631e[_0x51631e['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x51631e[_0x51631e[_0x5f4c13(0x2b4)]=0x32cb]=_0x5f4c13(0x2b4),_0x51631e[_0x51631e[_0x5f4c13(0x1ef)]=0x36b1]=_0x5f4c13(0x1ef),_0x51631e[_0x51631e[_0x5f4c13(0x37b)]=0x36b2]=_0x5f4c13(0x37b),_0x51631e[_0x51631e['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x5f4c13(0x24f),_0x51631e[_0x51631e[_0x5f4c13(0x3c8)]=0x36b4]=_0x5f4c13(0x3c8),_0x51631e[_0x51631e[_0x5f4c13(0x1a1)]=0x36b5]=_0x5f4c13(0x1a1),_0x51631e[_0x51631e[_0x5f4c13(0x367)]=0x36b6]=_0x5f4c13(0x367),_0x51631e[_0x51631e[_0x5f4c13(0x30b)]=0x36b7]=_0x5f4c13(0x30b),_0x51631e[_0x51631e['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x5f4c13(0x197),_0x51631e[_0x51631e[_0x5f4c13(0x237)]=0x3715]=_0x5f4c13(0x237),_0x51631e[_0x51631e[_0x5f4c13(0x1e8)]=0x3716]=_0x5f4c13(0x1e8),_0x51631e[_0x51631e[_0x5f4c13(0x271)]=0x3717]=_0x5f4c13(0x271),_0x51631e[_0x51631e[_0x5f4c13(0x161)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x51631e[_0x51631e[_0x5f4c13(0x24a)]=0x3a99]=_0x5f4c13(0x24a),_0x51631e[_0x51631e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x5f4c13(0x34d),_0x51631e[_0x51631e[_0x5f4c13(0x23a)]=0x3a9b]=_0x5f4c13(0x23a),_0x51631e[_0x51631e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x51631e[_0x51631e[_0x5f4c13(0x34b)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x51631e[_0x51631e[_0x5f4c13(0x188)]=0x3a9e]=_0x5f4c13(0x188),_0x51631e[_0x51631e[_0x5f4c13(0x223)]=0x3a9f]=_0x5f4c13(0x223),_0x51631e[_0x51631e[_0x5f4c13(0x249)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x51631e[_0x51631e[_0x5f4c13(0x226)]=-0x1]=_0x5f4c13(0x226),_0x51631e))(G||{});function Jt(_0x35f608){const _0x4b8e9b=_0x5f4c13;var _0x1aef9d,_0x303811;const _0x395f82=(_0x1aef9d=_0x35f608[_0x4b8e9b(0x37e)])==null?void 0x0:_0x1aef9d[_0x4b8e9b(0x1f6)],_0x4709b8=((_0x303811=_0x35f608[_0x4b8e9b(0x37e)])==null?void 0x0:_0x303811['totalFormulasToCalculate'])||0x0;return _0x395f82===B[_0x4b8e9b(0x375)][_0x4b8e9b(0x31b)]&&_0x4709b8>0x0;}function Zt(_0x120bc2){const _0x15a252=_0x5f4c13;return _0x120bc2['functionsExecutedState']===B[_0x15a252(0x123)][_0x15a252(0x2fc)];}var Qt=Object[_0x5f4c13(0x1ee)],es=(_0x4aa16a,_0x46485e,_0x18350d,_0x3e01c2)=>{const _0x83ba7d=_0x5f4c13;for(var _0x35e9db=_0x3e01c2>0x1?void 0x0:_0x3e01c2?Qt(_0x46485e,_0x18350d):_0x46485e,_0x17805a=_0x4aa16a[_0x83ba7d(0x231)]-0x1,_0x5c4e70;_0x17805a>=0x0;_0x17805a--)(_0x5c4e70=_0x4aa16a[_0x17805a])&&(_0x35e9db=_0x5c4e70(_0x35e9db)||_0x35e9db);return _0x35e9db;},L=(_0x5271c3,_0x1106b8)=>(_0x143c61,_0x251aaa)=>_0x1106b8(_0x143c61,_0x251aaa,_0x5271c3);const ts=_0x5f4c13(0x393),ss=_0x5f4c13(0x13f),is=_0x5f4c13(0x3a4);let ne=class extends a['Disposable']{constructor(_0x2b3b27,_0x5876ce,_0x35fd78,_0x221597,_0x8c4d9b,_0x499c38,_0x28bd03){const _0x348019=_0x5f4c13;super(),_(this,_0x348019(0x2af),null),_(this,_0x348019(0x3e1),0x0),_(this,_0x348019(0x259),0x0),_(this,'_taskIds',[]),_(this,_0x348019(0x399),0x0),(this['_messageService']=_0x2b3b27,this[_0x348019(0x274)]=_0x5876ce,this[_0x348019(0x29f)]=_0x35fd78,this['_httpService']=_0x221597,this[_0x348019(0x1fe)]=_0x8c4d9b,this[_0x348019(0x277)]=_0x499c38,this[_0x348019(0x2f1)]=_0x28bd03,this[_0x348019(0x1d3)]());}[_0x5f4c13(0x1d3)](){const _0x3de4e5=_0x5f4c13;this[_0x3de4e5(0x3da)](this[_0x3de4e5(0x274)][_0x3de4e5(0x1d8)]((_0x57f4a7,_0xbe681f)=>{const _0x26baca=_0x3de4e5;var _0x1cd23e;if(_0x57f4a7['id']!==B[_0x26baca(0x27a)]['id'])return;const _0x311893=_0x57f4a7['params'];if(!this[_0x26baca(0x26c)]((_0x1cd23e=_0x311893['dirtyRanges'])!=null?_0x1cd23e:[]))return;if(!this[_0x26baca(0x134)]())throw this[_0x26baca(0x1de)](_0x57f4a7,_0xbe681f),this[_0x26baca(0x315)](),new a[(_0x26baca(0x1f8))]();})),this[_0x3de4e5(0x3da)](this[_0x3de4e5(0x274)][_0x3de4e5(0x3d8)]((_0x323043,_0x46dfec)=>{const _0x15cec2=_0x3de4e5;if(_0x323043['id']!==B[_0x15cec2(0x297)]['id'])return;const _0x2a40b4=_0x323043[_0x15cec2(0x346)];if(Jt(_0x2a40b4)){const _0x564f67=a['generateRandomId']();this['_taskIds']['push'](_0x564f67),this[_0x15cec2(0x3d2)](_0x564f67);}else{if(Zt(_0x2a40b4)&&this[_0x15cec2(0x178)][_0x15cec2(0x231)]>0x0){const _0x10bb83=this[_0x15cec2(0x178)][_0x15cec2(0x2c9)]();this[_0x15cec2(0x182)](_0x10bb83);}}}));}['dispose'](){const _0x388cfa=_0x5f4c13;super[_0x388cfa(0x18f)](),this[_0x388cfa(0x25f)](),this[_0x388cfa(0x178)]=[],this[_0x388cfa(0x259)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x388cfa(0x399)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x4bb3a3,_0x193369){const _0x28258e=_0x5f4c13;for(let _0x5153ee=0x0;_0x5153ee<0x1e;_0x5153ee++)try{if(await this['_getFormulaLimitStatus'](),this[_0x28258e(0x134)]()){this[_0x28258e(0x334)](_0x4bb3a3,_0x193369),this['_messageService']['show']({'content':this[_0x28258e(0x2f1)]['t'](_0x28258e(0x267)),'type':p[_0x28258e(0x143)][_0x28258e(0x147)]});return;}await new Promise(_0x194104=>{const _0xc4b217=_0x28258e;this[_0xc4b217(0x2af)]=window[_0xc4b217(0x25e)](_0x194104,0x3e8);});}catch(_0x2fca3a){this[_0x28258e(0x277)][_0x28258e(0x1dd)](_0x2fca3a);}this['_messageService'][_0x28258e(0x3b8)]({'content':this[_0x28258e(0x2f1)]['t'](_0x28258e(0x2c8)),'type':p['MessageType'][_0x28258e(0x159)]});}[_0x5f4c13(0x334)](_0x7075fa,_0x272bd3){const _0x22a02b=_0x5f4c13;try{this['_commandService'][_0x22a02b(0x2a0)](_0x7075fa['id'],_0x7075fa[_0x22a02b(0x346)],_0x272bd3);}catch(_0x249a68){this['_logService'][_0x22a02b(0x1dd)](_0x249a68);}}[_0x5f4c13(0x1ad)](_0x2742e3,_0x1f10d1){const _0x50bc48=_0x5f4c13;_0x1f10d1<this[_0x50bc48(0x399)]||(this[_0x50bc48(0x399)]=_0x1f10d1,this[_0x50bc48(0x3e1)]=Number['parseInt'](_0x2742e3[_0x50bc48(0x138)]),this[_0x50bc48(0x259)]=Number['parseInt'](_0x2742e3[_0x50bc48(0x160)]));}async[_0x5f4c13(0x3d2)](_0x2ee553){const _0x669a6d=_0x5f4c13;var _0x53d8fe,_0x4caf83;const _0x36ffd2=Date[_0x669a6d(0x25a)]();try{const _0x5ed464=((_0x53d8fe=this[_0x669a6d(0x29f)][_0x669a6d(0x37a)](u[_0x669a6d(0x278)]))==null?void 0x0:_0x53d8fe[_0x669a6d(0x21d)])||ss,_0x41c0df=(await this[_0x669a6d(0x381)][_0x669a6d(0x35a)](_0x5ed464,{'body':JSON[_0x669a6d(0x241)]({'taskId':_0x2ee553})}))[_0x669a6d(0x136)];if(((_0x4caf83=_0x41c0df[_0x669a6d(0x1dd)])==null?void 0x0:_0x4caf83[_0x669a6d(0x2bc)])!==G['OK'])return;this[_0x669a6d(0x1ad)](_0x41c0df['limitInfo'],_0x36ffd2);}catch(_0x43c983){this['_logService']['error'](_0x43c983);}}async['_getFormulaLimitStatus'](_0x184a1f){const _0x51ae2f=_0x5f4c13;var _0x57909f,_0x3ebf37;const _0x16cb23=Date[_0x51ae2f(0x25a)]();try{const _0x5f380d=((_0x57909f=this[_0x51ae2f(0x29f)][_0x51ae2f(0x37a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x57909f[_0x51ae2f(0x366)])||ts,_0x5e7709=_0x184a1f?_0x5f380d+_0x51ae2f(0x313)+encodeURIComponent(_0x184a1f):_0x5f380d,_0x4caee9=(await this[_0x51ae2f(0x381)][_0x51ae2f(0x389)](_0x5e7709))[_0x51ae2f(0x136)];if(((_0x3ebf37=_0x4caee9[_0x51ae2f(0x1dd)])==null?void 0x0:_0x3ebf37[_0x51ae2f(0x2bc)])!==G['OK'])return;this[_0x51ae2f(0x1ad)](_0x4caee9[_0x51ae2f(0x2eb)],_0x16cb23);}catch(_0x23d4ce){this['_logService'][_0x51ae2f(0x1dd)](_0x23d4ce);}}async['_releaseCalculationLimit'](_0x3e156e){const _0x7e78cb=_0x5f4c13;var _0x2fb262,_0x54de4f;const _0x1afa05=Date[_0x7e78cb(0x25a)]();try{const _0x8df14f=((_0x2fb262=this[_0x7e78cb(0x29f)]['getConfig'](u[_0x7e78cb(0x278)]))==null?void 0x0:_0x2fb262[_0x7e78cb(0x142)])||is,_0x38c75c=(await this[_0x7e78cb(0x381)][_0x7e78cb(0x35a)](_0x8df14f,{'body':JSON['stringify']({'taskId':_0x3e156e})}))['body'];if(((_0x54de4f=_0x38c75c[_0x7e78cb(0x1dd)])==null?void 0x0:_0x54de4f[_0x7e78cb(0x2bc)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x38c75c[_0x7e78cb(0x2eb)],_0x1afa05);}catch(_0x1d9e4b){this[_0x7e78cb(0x277)][_0x7e78cb(0x1dd)](_0x1d9e4b);}}[_0x5f4c13(0x134)](){const _0x31d177=_0x5f4c13;return this[_0x31d177(0x3e1)]===0x0?!0x0:this[_0x31d177(0x3e1)]-this[_0x31d177(0x259)]>0x0;}[_0x5f4c13(0x25f)](){const _0x177729=_0x5f4c13;this[_0x177729(0x2af)]&&(clearTimeout(this[_0x177729(0x2af)]),this[_0x177729(0x2af)]=null);}['_showGuardMessage'](){const _0x908450=_0x5f4c13;this[_0x908450(0x266)][_0x908450(0x3b8)]({'content':this[_0x908450(0x2f1)]['t'](_0x908450(0x397)),'type':p['MessageType'][_0x908450(0x242)]});}['_hasFormulaInDirtyRanges'](_0x836b45){const _0x60d3ae=_0x5f4c13;for(const _0x34b12d of _0x836b45){const {unitId:_0x947efe,sheetId:_0x5f25c5,range:_0x5a84d5}=_0x34b12d,_0x2d5e21=this[_0x60d3ae(0x1fe)][_0x60d3ae(0x19a)](_0x947efe);if(!_0x2d5e21)continue;const _0x430566=_0x2d5e21[_0x60d3ae(0x2b9)](_0x5f25c5);if(!_0x430566)continue;const _0x5425ad=_0x430566['getCellMatrix']();for(let _0x410c03=_0x5a84d5[_0x60d3ae(0x1a7)];_0x410c03<=_0x5a84d5[_0x60d3ae(0x1d1)];_0x410c03++)for(let _0x4893d5=_0x5a84d5[_0x60d3ae(0x170)];_0x4893d5<=_0x5a84d5[_0x60d3ae(0x1ba)];_0x4893d5++){const _0x1b1e75=_0x5425ad[_0x60d3ae(0x2cf)](_0x410c03,_0x4893d5);if(_0x1b1e75&&(a[_0x60d3ae(0x221)](_0x1b1e75['f'])||a[_0x60d3ae(0x1bd)](_0x1b1e75['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x5f4c13(0x21b)](O[_0x5f4c13(0x117)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x5f4c13(0x21b)](x[_0x5f4c13(0x166)])),L(0x4,a[_0x5f4c13(0x12a)]),L(0x5,a[_0x5f4c13(0x1c9)]),L(0x6,a['Inject'](a[_0x5f4c13(0x2b2)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x14fc27,_0x5b229b,_0x4bfdc0,_0x20c9d5)=>{const _0x399f74=_0x5f4c13;for(var _0x575ef5=_0x20c9d5>0x1?void 0x0:_0x20c9d5?ns(_0x5b229b,_0x4bfdc0):_0x5b229b,_0x53a0ae=_0x14fc27[_0x399f74(0x231)]-0x1,_0x320b31;_0x53a0ae>=0x0;_0x53a0ae--)(_0x320b31=_0x14fc27[_0x53a0ae])&&(_0x575ef5=_0x320b31(_0x575ef5)||_0x575ef5);return _0x575ef5;},Se=(_0x4c48be,_0x297506)=>(_0x4a0082,_0x5d9395)=>_0x297506(_0x4a0082,_0x5d9395,_0x4c48be);let Te=class extends a[_0x5f4c13(0x28f)]{constructor(_0x30eeba,_0x108573,_0x164196){const _0x3e096e=_0x5f4c13;super(),_(this,_0x3e096e(0x24d),new Map()),_(this,_0x3e096e(0x169),new Map()),_(this,_0x3e096e(0x35b),!0x1),(this[_0x3e096e(0x29f)]=_0x30eeba,this['_localStorageService']=_0x108573,this[_0x3e096e(0x206)]=_0x164196);}[_0x5f4c13(0x2b3)](){const _0x5bbb5d=_0x5f4c13;this[_0x5bbb5d(0x35b)]=!0x0;}[_0x5f4c13(0x330)](){const _0x595235=_0x5f4c13;this[_0x595235(0x35b)]=!0x1;}get[_0x5f4c13(0x3b7)](){const _0x30611b=_0x5f4c13;return this[_0x30611b(0x169)];}[_0x5f4c13(0x18f)](){const _0x27b600=_0x5f4c13;this['exhaustSavingTask']()[_0x27b600(0x314)](()=>super['dispose']());}async[_0x5f4c13(0x38a)](_0x3fa261){const _0x4a5e1a=_0x5f4c13;return this[_0x4a5e1a(0x35b)]?null:this[_0x4a5e1a(0x311)][_0x4a5e1a(0x3b6)](u['getLocalCacheKey'](_0x3fa261));}async[_0x5f4c13(0x238)](_0x39bc73,_0x333efe){const _0x4c3726=_0x5f4c13;return!!this[_0x4c3726(0x311)][_0x4c3726(0x3df)](_0x39bc73,_0x333efe);}[_0x5f4c13(0x122)](_0x5adb0c,_0x2fe4e1,_0x2ade1b,_0x576756){const _0x49cbb6=_0x5f4c13,_0x14097b=this[_0x49cbb6(0x206)][_0x49cbb6(0x173)](_0x5adb0c);this[_0x49cbb6(0x24d)]['set'](_0x5adb0c,{'unitID':_0x5adb0c,'type':_0x2fe4e1,'awaitingChangeset':_0x2ade1b,'mutations':_0x576756,'rev':_0x14097b}),this['_saveTaskMap'][_0x49cbb6(0x17f)](_0x5adb0c)||this['_scheduleSaving'](_0x5adb0c);}[_0x5f4c13(0x380)](_0x5c5564){const _0x5607ed=_0x5f4c13,_0x14875c=this['_getSaveTimeout']();_0x14875c===0x0?this['_saveCache'](_0x5c5564):this[_0x5607ed(0x169)]['set'](_0x5c5564,setTimeout(()=>this[_0x5607ed(0x22f)](_0x5c5564),_0x14875c));}[_0x5f4c13(0x2d2)](){const _0x1e6518=_0x5f4c13;var _0x16a015;return(_0x16a015=this[_0x1e6518(0x29f)][_0x1e6518(0x37a)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x16a015:u[_0x1e6518(0x20d)];}[_0x5f4c13(0x22f)](_0x57ac00){const _0x50e62d=_0x5f4c13,_0x47b629=this[_0x50e62d(0x169)]['get'](_0x57ac00);return _0x47b629!==void 0x0&&window[_0x50e62d(0x127)](_0x47b629),this[_0x50e62d(0x311)][_0x50e62d(0x3df)](u[_0x50e62d(0x3b2)](_0x57ac00),this['_cachedData'][_0x50e62d(0x389)](_0x57ac00))['then'](()=>this[_0x50e62d(0x169)][_0x50e62d(0x1aa)](_0x57ac00));}async[_0x5f4c13(0x3a3)](){const _0x52f894=_0x5f4c13,_0x3ebc77=[];this[_0x52f894(0x169)][_0x52f894(0x3ac)]((_0x2f7de8,_0x27b18b)=>{const _0x19b823=_0x52f894;window['clearTimeout'](_0x2f7de8),_0x3ebc77[_0x19b823(0x261)](this[_0x19b823(0x22f)](_0x27b18b)[_0x19b823(0x314)](()=>{const _0x592454=_0x19b823;this[_0x592454(0x169)]['delete'](_0x27b18b);}));}),await Promise[_0x52f894(0x3d6)](_0x3ebc77);}};Te=rs([Se(0x0,a[_0x5f4c13(0x118)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a['Inject'](g[_0x5f4c13(0x17e)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x41cde1=_0x5f4c13;super(),_(this,_0x41cde1(0x396)),this[_0x41cde1(0x396)]=I[_0x41cde1(0x203)](window,'popstate')[_0x41cde1(0x336)](I[_0x41cde1(0x3c7)](this[_0x41cde1(0x2ce)]),I['shareReplay'](0x1),I['mapTo'](void 0x0));}['setParam'](_0x573b98,_0x1f57d4,_0x212255=!0x1){const _0x17f133=_0x5f4c13,_0x22eb7b=new URL(window[_0x17f133(0x2e1)][_0x17f133(0x36a)]);_0x22eb7b[_0x17f133(0x2e4)]['set'](_0x573b98,_0x1f57d4),_0x212255?window[_0x17f133(0x279)][_0x17f133(0x3d3)]('','',_0x22eb7b[_0x17f133(0x327)]()):window['history']['pushState']('','',_0x22eb7b[_0x17f133(0x327)]());}['removeParam'](_0x55de73,_0x2634c2=!0x1){const _0x15fbd5=_0x5f4c13,_0x58283c=new URL(window[_0x15fbd5(0x2e1)][_0x15fbd5(0x36a)]);_0x58283c[_0x15fbd5(0x2e4)][_0x15fbd5(0x1aa)](_0x55de73),_0x2634c2?window['history'][_0x15fbd5(0x3d3)]('','',_0x58283c[_0x15fbd5(0x327)]()):window[_0x15fbd5(0x279)][_0x15fbd5(0x28a)]('','',_0x58283c[_0x15fbd5(0x327)]());}['getParam'](_0x541776){const _0x291218=_0x5f4c13;var _0x4a22d1;return(_0x4a22d1=new URL(window['location'][_0x291218(0x36a)])[_0x291218(0x2e4)]['get'](_0x541776))!=null?_0x4a22d1:void 0x0;}}function _0x38fa(){const _0x48a9d3=['colorChannel1','_docStateChangeManagerService','_selfUnitIDs','_colorAssignService','_docTransformStateCacheService','ISnapshotServerService','toString','ThemeService','registerRefRange','2680356KXJMbC','tag','getVpScrollXYInfoByPosToVp','onPointerMove$','runRefRangeMutations','IBeforeCloseService','enableLocalCache','_updateLocalCursor','docStateChange$','LOGIN_TOKEN_PROCESSING_FAILED','_applyCommand','_init','pipe','getFocusedUnit','_clearOtherTimers','text','currentColor','filter','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','distinctUntilChanged','resize','_docSkeleton','UNIVER_DOC','collab-rect-range-','range','join','SNAPSHOT_INVALID_SNAPSHOT','DocSelectionManagerService','params','NOT_COLLAB','_initUnhandledRejectionListener','Injector','unitId','REDEMPTION_USER_NOT_ELIGIBLE','roomMembers','REDEMPTION_CODE_INACTIVE','FETCH_MISS','createIdentifier','_entityInit$','toRgbString','unit','init','whenReady','stack','getRelativeToViewportCoord','saveImage','Failed','uni.network.url-service','post','_disabled','size','DependentOn','unsubscribe','APPLY_DUPLICATED','ticket','collaboration-client-ui.config','entries','_collabSessionService','blue.400','AWAITING_WITH_PENDING','getformulaLimitStatusUrl','ENTITLE_COUPON_EXPIRED','_getSheetObject','transformIMECache','href','enableFrontendLog','isTransformMutationsWithChangesetSuccess','DisposableCollection','ranges','triggerDblclick','SetWorksheetActivateCommand','_hover','_initUserListener','getActiveSheet','invokeId','FormulaExecuteStageType','CollaborationStatus','subscribeEvent','SessionStatus','4YIzcJA','getConfig','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','OnLineIcon','\x20at\x20','stageInfo','handleInsertCol','_scheduleSaving','_httpService','complete','red.300','application/json','CollaborationSocketService','DesktopCollaborationStatusDisplayController','_updateURLWithCurrentState','collaboration.closeRoom','get','loadOfflineData','event$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','NO_OTHER_CLIENTS_EDITING','SheetCollabCursorShape','CollaborationSessionService','fillText','_startSheetCollabCursor','jsx','/universer-api/license/formula/limit/status','LICENSE_MAX_UNITS_EXCEEDED','xlink:href','urlChange$','formula.calculation.waiting','off-line-icon_clip0_910_343','_lastResponseTimestamp','key','PERMISSION_DENIED','getRenderById','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_updateSubUnitFromURLParams','assignAColorForMemberID','_toggleOnline','_context','_send','exhaustSavingTask','/universer-api/license/formula/limit/done','ENSURE_SNAPSHOT_EXECUTION','MOBILE_VERIFY_CODE_MISMATCH','BuiltInUIPart','requireSession','_themeService','_unitOnClients','children','forEach','_onCursorUpdate','purple.300','HEADER_MENU','http://www.w3.org/2000/svg','IImageIoService','getLocalCacheKey','getCurrentUnitForType','handleMoveRange','CONFLICT','getItem','saveTaskMap','show','_textBubble','_initEvent','translate(.97)','getSheetObject','_backgroundColor','_renderManagerService','rgba(255,\x20255,\x20255,\x200.01)','engine','syncEditingCollabCursor','SUBMIT_CHANGESET_TIMEOUT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','m2Prime','_collaborationSessionService','_collaborationUIEventService','takeUntil','PAYMENT_CHANNEL_NOT_SUPPORT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_registerDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformHistoryAndStateStack','_cursor','7ACOIMM','serializeRangeWithSheet','CommandType','_toggleOffline','_startCalculationLimit','replaceState','setConfig','color','all','_cursors','onCommandExecuted','TRANSFORM_CHANGE_OBSERVABLE_TYPE','disposeWithMe','handleIRemoveCol','_handleHover','collabStatus.synced','white','setItem','sessionStatus$','_maxFormulaLimit','_refRangeService','_anchorDot','_drawAnchor','NodePositionConvertToCursor','drawWith','IMessageService','IConfigService','[Unhandled\x20Rejection]:\x20','NOT_FOUND','_config','_shapes','INVITE_CODE_ALREADY_BOUND','toDisposable','RemoteUniscriptService','SHEET_VIEWPORT_KEY','_handleJoinEvent','updateOfflineData','FormulaExecutedStateType','Rect','DocIMEInputManagerService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','clearTimeout','UNDEFINED','_sheetSkeletonManagerService','IUniverInstanceService','IDocClipboardService','on-line-icon_clip0_910_349','switchMap','_uiPartsService','sheetId','none','unload','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','black','_checkCalculationAvailable','ALREADY_EXISTS','body','substring','maxFormulaLimit','USERS_LEAVE','_urlService','INVALID_INVITE_CODE','map','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMemberID','/universer-api/license/formula/limit/start','isTransformMutationFailure','_anchor','releaseFormulaLimitUrl','MessageType','collabStatus.fetchMiss','CollaborationUIEventId','restore','Success','TEXT','[CollaborationDataLoaderController]','getCurrentSelections','session.collaboration-timeout','Unknown\x20user','USER_NOT_FOUND','labelPosition','height','hide','_hovered','IURLService','_transformPreviousActiveRange','subscribe','roomMembers$','currentSkeleton$','CONNECTOR_DATA_TOO_LARGE','with','Error','2oGYxxd','getCoordByCell','_render','useDependency','trim','handleDeleteRangeMoveUp','currentUsage','ENTITLE_NEED_BILLING_ADDRESS','InsertRangeMoveRightCommandId','debounce','DataLoaderService','mutations','HTTPService','Tooltip','_ensureSubject','_saveTaskMap','getAncestorScale','_status$','measureText','DOC_RANGE_TYPE','RemoveColCommandId','MUTATION','startColumn','UnitStatus','symbol','getCurrentRevOfUnit','getCollabCursors$','beginPath','clsx','OFFLINE','_taskIds','getSkeleton','Tools','DeleteRangeMoveUpCommandId','message','registerComponent','RevisionService','has','isArray','_name','_releaseCalculationLimit','add','transformRemoteChangeset','getRangePointData','_lastPointer','774141HepIyK','REDEMPTION_USER_REDEEM_TIMES_EXCEED','APPLY_REVISION_CONFILICT','IRenderManagerService','clipPath','values','combineLatest','APPLY_NON_SEQUENTIAL_REVISION','dispose','INVALID_ARGUMENT','registerRenderModule','getDocRanges','transform','getUndoRedoMutationParamsCache','deserializeRangeWithSheet','arc','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_assignedColors','closePath','getUnit','YUUMI_AI_RUN_FAILED','_beforeCloseService','Shape','yellow.400','send','_removeClearOtherTimer','ENTITLE_INVALID_COUPON_CODE','JOIN_ROOM_FAILED','AUTHORIZE_CODE_ILLEGAL','_docTransformSelectionsService','_scheduleHeartbeat','643690MQXPlt','startRow','_getMergeRange','width','delete','removeEventListener','WECHAT_HAS_BEEN_BOUND','_setFormulaLimitStatus','_initDependencies','INTERNAL_ERROR','catch','_createSocketURL','random','0\x200\x2017\x2016','COLORS','ColorKit','INVITE_CODE_REQUIRED','row','some','source','endColumn','result','getMember','isFormulaId','runId','/universer-api/frontend/logs','_setupBeforeClosingHandler','permission.title','BrowserCollaborationSocketService','Warning','type','cursorInfo','generateRandomId','CLOSE_ROOM','focused$','ILogService','_color','EMAIL_VERIFY_CODE_MISMATCH','RECT','_docClipboardService','reconnect','EffectRefRangId','MemberService','endRow','session.will-retry','_initCommandInterceptor','_notificationService','min','_initCommandExecutedListener','YUUMI_NO_CUBOID_FOR_QUESTION','beforeCommandExecuted','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Optional','attrs','asObservable','error','_checkAndWaitForCalculationPermission','_cursorInfo$','newValue','getOffsetConfig','merge','Subject','_memberID','disposeUnit','connectInjector','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ENTITLE_REPORT_LIMIT_EXCEED','_initStatusListener','UniverInstanceType','currentTheme$','path','TEXT_RANGE_LAYER_INDEX','getOwnPropertyDescriptor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ISocketService','getUnitStatus$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_uploadLog','ICommandService','search','stage','RxDisposable','CanceledError','_handleLeaveEvent','socket$','transformSelections','2304309jMeHcW','_injector','_univerInstanceService','_initStatusComponent','_startDocCollabCursor','setParam','getUnhiddenWorksheets','fromEvent','onMouseMove','_collabCursorController','_revisionService','_hideTimer','createElement','doc.mutation.rich-text-editing','url(#$1','APPLY_REJECT','LICENSE_IMPORT_SIZE_EXCEEDED','LOCAL_CACHE_INTERVAL','evenodd','_online','ONLINE','PY_RUNTIME_SCRIPT_ERROR','748QRTgaK','redoState','defineProperty','YUUMI_RATE_OVER_LIMIT','onLocalMutation','_collaborationController','CHANGESET_REVISION_CONFILICT','m1Prime','setStateCache','Inject','createInstance','startFormulaLimitUrl','throttleTime','RefRangeService','_heartbeatTimer','isFormulaString','debug','REDEMPTION_CODE_HAS_BEEN_CREATED','_onRefRangeChange','forwardRef','UNRECOGNIZED','colno','_handleHeartbeatEvent','contains','imageSourceType','addObjects','_memberService','_roomMembers$','_scene','_saveCache','deepClone','length','idSuffix','fill','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_SHEET','getCellPositionByOffset','ENTITLE_CHAT_LIMIT_EXCEED','saveOfflineData','_localCacheService','REDEMPTION_CODE_FULLY_REDEEMED','useRef','cursorInfo$','addObject','makeDirty','getCollabEntity$','onPointerLeave$','stringify','Loading','transformByState','setAlpha','_docTransformIMECacheService','replace','save','column','DATA_SOURCE_TOO_LARGE','REDEMPTION_INVALID_CODE','LICENSE_EXPORT_SIZE_EXCEEDED','CollaborationDataLoaderController','_cachedData','RichTextEditingMutation','ENTITLE_DUP_SUBSCRIPTION','setShapeProps','APPLY_PERMISSION_DENIED','parse','_scheduleClearOtherTimer','MoveRangeCommandId','DocCollaborationEntity','UniverCollaborationClientUIPlugin','subunit','Module','_currentUsage','now','_entities','name','from','setTimeout','_clearPolling','string','push','_labelPosition','_session','InsertColCommandId','getStateCache','_messageService','formula.calculation.started','mask','getParam','unitID','YUUMI_UNABLE_LOAD_URL','_hasFormulaInDirtyRanges','memberID','_initEntityListener','_initResize','Vector2','ENTITLE_INSUFFICIENT_QUOTA','getUnitId','touchDependencies','_commandService','permission.content','INVITE_CODE_HAS_BEEN_UES','_logService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','history','SetFormulaCalculationStartMutation','InsertRowCommandId','defs','UNAUTHENTICATED','_range','ACTIVE_UNIT_EVENT_CHANNEL','USER_IS_ANONYMOUS','SOCKET_FAILED','IRemoteInstanceService','subUnitId','collabStatus.notCollab','YUUMI_URL_COL_OUT_OF_RANGE','SNAPSHOT_HAS_BEEN_REMOVED','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','_drawRectRange','split','pushState','onRendered','_docSkeletonManagerService','_monkeyPatchLogService','clearInterval','Disposable','runOnServer','fillStyle','jiqing.500','Rectangle','backgroundColor','find','getTypeOfUnitAdded$','SetFormulaCalculationNotificationMutation','useObservable','_colorIndex','getColor','DEFAULT_WS_SESSION_TICKET_URL','findNodePositionByCharIndex','selection','font','_configService','executeCommand','skeleton','unhandledrejection','UPDATE_CURSOR','LICENSE_DISTRO_REJECTED','fromEventSubject','_instanceService','_dataLoaderService','debounceTime','div','url(#on-line-icon_clip0_910_349)','SetTextSelectionsOperation','collaboration.offline-data-not-saved','_docSyncEditingCollabCursorService','addEventListener','_pollingInterval','_id','collab-client.tooltip.reconnect','LocaleService','disableLocalCache','EMAIL_HAS_BEEN_BOUND','transformMutationsWithChangeset','0\x200\x2016\x2016','CURRENT_STATUS_CANNOT_OPERATE','_eventUnsubscribe','getSheetBySheetId','SetDocZoomRatioOperation','univer-mr-2\x20univer-flex\x20univer-text-xl','code','sheetID','transformStateCache','DocStateChangeManagerService','eventID','handleIRemoveRow','pluginName','TOO_MANY_REQUESTS','_refreshCollabCursors','OTHER_CLIENTS_EDITING','getColorFromTheme','_setupSubUnitSync','formula.calculation.unable','shift','assign','unshift','univerjs-icon\x20univerjs-icon-','M0\x200H16V16H0z','dispose$','getValue','selections','ERROR_AGAIN','_getSaveTimeout','getTypeOfUnitDisposed$','FromArray','_registerRenderDependencies','getSheetId','1em','override','_handleEvent','...','3037505plIWKq','addHandlerCallback','origin','7219782bQSAyp','round','session.connection-failed','location','RegularPolygon','ILocalCacheService','searchParams','collabStatus.syncing','fillRule','ITransformService','WebURLService','_getSessionTicket','_getAnchorBounding','limitInfo','[Window\x20Error]:\x20','BehaviorSubject','_collabCursorState$','actions','svg','_localeService','undoState','off-line-icon','_syncEditingCollabCursorService','loadUnit','_removeCollabCursors','setInterval','_cursorShapes','getCurrent','storage','sessionTicket','SUCCESS','status$','_updateCollabCursors','bottom','bind','_transformService','next','COMPLETION_FINISHED','textRanges','_draw','OffLineIcon','SetSelectionsOperation','flatMap','lineTo','displayName','ENTITLE_COUPON_USED_UP','SOCKET_FAILED_RETRY','CollaborationEvent','Workbook','3840464TQvekF','set','_localStorageService','_unitStatus','?taskId=','then','_showGuardMessage','activeSheet$','startsWith','_transformUndoRedoStack','_onCursorDelete','YUUMI_ASYNCIO_CANCELLED','START_CALCULATION','_imageIoService','transformMutation','includes','data','top'];_0x38fa=function(){return _0x48a9d3;};return _0x38fa();}function _0x1124(_0x5417d4,_0x6553bb){_0x5417d4=_0x5417d4-0x117;const _0x38fa46=_0x38fa();let _0x112425=_0x38fa46[_0x5417d4];return _0x112425;}var os=Object[_0x5f4c13(0x214)],as=Object['getOwnPropertyDescriptor'],cs=(_0x1f6e45,_0x495c78,_0x12fd0b)=>_0x495c78 in _0x1f6e45?os(_0x1f6e45,_0x495c78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12fd0b}):_0x1f6e45[_0x495c78]=_0x12fd0b,ls=(_0x49278e,_0x4c2ab2,_0x357453,_0x16da87)=>{const _0x342f75=_0x5f4c13;for(var _0x33b971=_0x16da87>0x1?void 0x0:_0x16da87?as(_0x4c2ab2,_0x357453):_0x4c2ab2,_0x29589b=_0x49278e[_0x342f75(0x231)]-0x1,_0x12cce0;_0x29589b>=0x0;_0x29589b--)(_0x12cce0=_0x49278e[_0x29589b])&&(_0x33b971=_0x12cce0(_0x33b971)||_0x33b971);return _0x33b971;},de=(_0x4c285d,_0x3ebf7e)=>(_0x1f02ac,_0x1da275)=>_0x3ebf7e(_0x1f02ac,_0x1da275,_0x4c285d),_s=(_0x192820,_0x493d7e,_0x26e7c6)=>cs(_0x192820,_0x493d7e+'',_0x26e7c6);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x1020aa=Me,_0x3bc6ab,_0x419627,_0x390433){const _0x514ba5=_0x5f4c13;super(),this[_0x514ba5(0x11b)]=_0x1020aa,this[_0x514ba5(0x3be)]=_0x3bc6ab,this[_0x514ba5(0x1fd)]=_0x419627,this[_0x514ba5(0x29f)]=_0x390433;const {..._0x156cf4}=a[_0x514ba5(0x1e2)]({},Me,this[_0x514ba5(0x11b)]);this['_configService'][_0x514ba5(0x3d4)](Yt,_0x156cf4);}['onStarting'](){const _0x2fc145=_0x5f4c13;this['_registerDependencies'](),this[_0x2fc145(0x1ae)]();}[_0x5f4c13(0x28b)](){const _0x15a294=_0x5f4c13;this[_0x15a294(0x2d5)]();}[_0x5f4c13(0x3ca)](){const _0x528f01=_0x5f4c13;var _0x28348e;const _0x119004=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x528f01(0x1f0)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x528f01(0x11b)][_0x528f01(0x36b)]&&_0x119004['push']([Q]),a['registerDependencies'](this[_0x528f01(0x1fd)],a['mergeOverrideWithDependencies'](_0x119004,(_0x28348e=this['_config'])==null?void 0x0:_0x28348e[_0x528f01(0x2d8)]));}[_0x5f4c13(0x2d5)](){const _0x3e94bc=_0x5f4c13;this[_0x3e94bc(0x3da)](this[_0x3e94bc(0x3be)][_0x3e94bc(0x191)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this[_0x3e94bc(0x3da)](this['_renderManagerService'][_0x3e94bc(0x191)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}[_0x5f4c13(0x1ae)](){const _0x149c92=_0x5f4c13;a[_0x149c92(0x273)](this[_0x149c92(0x1fd)],[[F],[exports[_0x149c92(0x386)]],[ie],[Z],[exports[_0x149c92(0x24c)]],[ne]]),this[_0x149c92(0x11b)][_0x149c92(0x36b)]&&a[_0x149c92(0x273)](this[_0x149c92(0x1fd)],[[Q]]);}},_s(exports[_0x5f4c13(0x256)],_0x5f4c13(0x2c2),hs),exports[_0x5f4c13(0x256)]=ls([a[_0x5f4c13(0x35d)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x5f4c13(0x18a)]),de(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),de(0x3,a['IConfigService'])],exports[_0x5f4c13(0x256)]);var us=Object[_0x5f4c13(0x1ee)],Is=(_0xd54244,_0x17ebd4,_0x2123c1,_0x319503)=>{const _0x165077=_0x5f4c13;for(var _0x5c9f56=_0x319503>0x1?void 0x0:_0x319503?us(_0x17ebd4,_0x2123c1):_0x17ebd4,_0x5656d2=_0xd54244[_0x165077(0x231)]-0x1,_0xb4d356;_0x5656d2>=0x0;_0x5656d2--)(_0xb4d356=_0xd54244[_0x5656d2])&&(_0x5c9f56=_0xb4d356(_0x5c9f56)||_0x5c9f56);return _0x5c9f56;},W=(_0x2844bc,_0x4631f2)=>(_0x9d2b1c,_0x290977)=>_0x4631f2(_0x9d2b1c,_0x290977,_0x2844bc);exports[_0x5f4c13(0x1c2)]=class extends u[_0x5f4c13(0x385)]{constructor(_0x5911db,_0x4639dc,_0x454df8,_0x5e2928,_0x502cd9){super(_0x5911db,_0x4639dc,_0x454df8,_0x5e2928,_0x502cd9);}async['createSocket'](_0x3309e3){const _0x4421ad=_0x5f4c13,_0x39771f=await this['_getSessionTicket'](),_0xef7795=this[_0x4421ad(0x1b1)](_0x3309e3,_0x39771f);return this['_doCreateSocket'](_0xef7795);}[_0x5f4c13(0x1b1)](_0x58ecb5,_0x2ca527){const _0x1d974f=_0x5f4c13,_0x40d3ba=typeof window>'u'?new URL(_0x58ecb5):new URL(_0x58ecb5,window[_0x1d974f(0x2e1)][_0x1d974f(0x2dd)]);_0x40d3ba['searchParams'][_0x1d974f(0x310)](_0x1d974f(0x2fb),_0x2ca527);const _0x3948cf=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1d974f(0x1f5)]);return _0x3948cf[_0x1d974f(0x389)]('runId')&&_0x40d3ba[_0x1d974f(0x2e4)][_0x1d974f(0x310)](_0x1d974f(0x1be),_0x3948cf['get']('runId')),_0x40d3ba[_0x1d974f(0x327)]();}async[_0x5f4c13(0x2e9)](){const _0x5d28d6=_0x5f4c13;var _0x27d324,_0x1a4916,_0x1d4e62;const _0xbb415=this[_0x5d28d6(0x29f)]['getConfig'](u[_0x5d28d6(0x278)]),_0x1012b7=(_0x27d324=_0xbb415==null?void 0x0:_0xbb415['wsSessionTicketUrl'])!=null?_0x27d324:u[_0x5d28d6(0x29b)];return(_0x1d4e62=(_0x1a4916=(await this[_0x5d28d6(0x381)]['get'](_0x1012b7,{'headers':{'Content-Type':_0x5d28d6(0x384)}}))[_0x5d28d6(0x136)])==null?void 0x0:_0x1a4916[_0x5d28d6(0x360)])!=null?_0x1d4e62:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),W(0x1,a[_0x5f4c13(0x21b)](x['HTTPService'])),W(0x2,a[_0x5f4c13(0x118)]),W(0x3,a[_0x5f4c13(0x1c9)]),W(0x4,g[_0x5f4c13(0x326)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x5f4c13(0x1ee)],ds=(_0x538f46,_0x3107a2,_0x56d443,_0x2db13a)=>{for(var _0x3ae2de=_0x2db13a>0x1?void 0x0:_0x2db13a?Ss(_0x3107a2,_0x56d443):_0x3107a2,_0x45c3c2=_0x538f46['length']-0x1,_0x4c0d54;_0x45c3c2>=0x0;_0x45c3c2--)(_0x4c0d54=_0x538f46[_0x45c3c2])&&(_0x3ae2de=_0x4c0d54(_0x3ae2de)||_0x3ae2de);return _0x3ae2de;},fe=(_0x59377d,_0xaed835)=>(_0x136864,_0x2c7bb6)=>_0xaed835(_0x136864,_0x2c7bb6,_0x59377d);exports['RemoteUniscriptService']=class extends a[_0x5f4c13(0x28f)]{constructor(_0x3a01dd,_0x2a2ec4,_0x30d400){const _0x2aa58a=_0x5f4c13;super(),this['_instanceService']=_0x3a01dd,this[_0x2aa58a(0x381)]=_0x2a2ec4,this[_0x2aa58a(0x29f)]=_0x30d400;}async[_0x5f4c13(0x290)](_0x19e1d6,_0x47c5fc,_0xac8892,..._0x2afb22){const _0x70a1ca=_0x5f4c13;var _0x3adc55,_0x3271bd,_0x3e49a5,_0x3a5999;const _0x1496e0=this[_0x70a1ca(0x2a6)]['getFocusedUnit']();if(!_0x1496e0)throw new Error(_0x70a1ca(0x3c3));const _0x5157db=((_0x3adc55=this['_configService']['getConfig'](u[_0x70a1ca(0x3c9)]))!=null?_0x3adc55:u[_0x70a1ca(0x132)])+'/'+_0x19e1d6+'/run/'+_0x47c5fc,_0x359d77=new URL(window['location']['href']),_0x31c568={'scriptId':_0x19e1d6,'runId':(_0x3271bd=_0x359d77[_0x70a1ca(0x2e4)][_0x70a1ca(0x389)](_0x70a1ca(0x1be)))!=null?_0x3271bd:'','function':_0x47c5fc,'unitId':_0x1496e0[_0x70a1ca(0x272)](),'argsOfFunction':JSON[_0x70a1ca(0x241)](_0x2afb22),'invokeId':(_0x3e49a5=_0xac8892[_0x70a1ca(0x374)])!=null?_0x3e49a5:'','executionId':(_0x3a5999=_0xac8892['executionId'])!=null?_0x3a5999:''};try{const _0x19ce9a=await this[_0x70a1ca(0x381)]['post'](_0x5157db,{'body':_0x31c568});return _0x19ce9a[_0x70a1ca(0x136)]['error']&&_0x19ce9a[_0x70a1ca(0x136)][_0x70a1ca(0x1dd)][_0x70a1ca(0x2bc)]!==G['OK']?'Failed':_0x19ce9a['body'][_0x70a1ca(0x1bb)];}catch{return _0x70a1ca(0x358);}}},exports[_0x5f4c13(0x11f)]=ds([fe(0x0,a[_0x5f4c13(0x12a)]),fe(0x1,a[_0x5f4c13(0x21b)](x['HTTPService'])),fe(0x2,a[_0x5f4c13(0x118)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x5f4c13(0x27f);class fs extends a['Disposable']{constructor(){const _0x2ae517=_0x5f4c13;super(),_(this,_0x2ae517(0x2b0),a['generateRandomId']()),_(this,_0x2ae517(0x323),new Set()),_(this,_0x2ae517(0x3aa),new Map()),_(this,_0x2ae517(0x220),null),_(this,_0x2ae517(0x338),new Map()),_(this,_0x2ae517(0x312),new Map()),this['_init']();}[_0x5f4c13(0x18f)](){const _0x41ded5=_0x5f4c13;super[_0x41ded5(0x18f)](),this['_clearOtherTimers'][_0x41ded5(0x3ac)]((_0x4d5b2e,_0x2250f9)=>this[_0x41ded5(0x1a0)](_0x2250f9)),this[_0x41ded5(0x220)]&&window['clearInterval'](this[_0x41ded5(0x220)]);}[_0x5f4c13(0x1f1)](_0x4de2f8){const _0xdfb90e=_0x5f4c13;return this[_0xdfb90e(0x168)](_0x4de2f8)[_0xdfb90e(0x336)](I[_0xdfb90e(0x33d)]());}['editingUnit'](_0x3783e2){const _0x4353da=_0x5f4c13;this[_0x4353da(0x323)][_0x4353da(0x35c)]===0x0&&this[_0x4353da(0x1a5)](),this[_0x4353da(0x323)][_0x4353da(0x183)](_0x3783e2),this['_send']({'type':0x0,'memberID':this[_0x4353da(0x2b0)],'unitIDs':[_0x3783e2],'isForwarded':!0x1});}[_0x5f4c13(0x1e5)](_0x49921d){const _0x7c28aa=_0x5f4c13;this[_0x7c28aa(0x323)][_0x7c28aa(0x1aa)](_0x49921d),this['_selfUnitIDs']['size']===0x0&&this[_0x7c28aa(0x220)]&&window[_0x7c28aa(0x28e)](this[_0x7c28aa(0x220)]);}[_0x5f4c13(0x335)](){const _0x2a7180=_0x5f4c13;this[_0x2a7180(0x3da)](a[_0x2a7180(0x11e)](I[_0x2a7180(0x203)](window,_0x2a7180(0x2fa))[_0x2a7180(0x154)](_0x305976=>{const _0x8867ee=_0x2a7180;if(_0x305976[_0x8867ee(0x39a)]!==ye||!_0x305976[_0x8867ee(0x1e0)])return;const _0x489c7e=JSON[_0x8867ee(0x252)](_0x305976['newValue']);this[_0x8867ee(0x2d9)](_0x489c7e);}))),window[_0x2a7180(0x2ae)](_0x2a7180(0x131),()=>this[_0x2a7180(0x3a2)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2a7180(0x25d)](this[_0x2a7180(0x323)])}));}[_0x5f4c13(0x2d9)](_0x58b057){const _0x5ebe3c=_0x5f4c13;switch(_0x58b057[_0x5ebe3c(0x1c4)]){case 0x0:this[_0x5ebe3c(0x121)](_0x58b057);break;case 0x1:this[_0x5ebe3c(0x1f9)](_0x58b057);break;case 0x2:this['_handleHeartbeatEvent'](_0x58b057);break;}}['_handleJoinEvent'](_0x45a2fa){const _0xc6a88f=_0x5f4c13,{unitIDs:_0x43284f,memberID:_0x40a885,isForwarded:_0x3df383}=_0x45a2fa;_0x43284f[_0xc6a88f(0x3ac)](_0x16cb77=>{const _0x4ec61d=_0xc6a88f;if(!_0x3df383&&this[_0x4ec61d(0x3aa)][_0x4ec61d(0x17f)](_0x16cb77)&&this['_ensureSubject'](_0x16cb77)['next'](u[_0x4ec61d(0x171)][_0x4ec61d(0x2c5)]),!this[_0x4ec61d(0x3aa)][_0x4ec61d(0x17f)](_0x16cb77)||!this['_unitOnClients']['get'](_0x16cb77)[_0x4ec61d(0x17f)](_0x40a885)){const _0x21eeab=this['_unitOnClients']['get'](_0x16cb77)||new Set();_0x21eeab[_0x4ec61d(0x183)](_0x40a885),this[_0x4ec61d(0x3aa)]['set'](_0x16cb77,_0x21eeab),this[_0x4ec61d(0x253)](_0x40a885);}}),_0x3df383||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xc6a88f(0x323)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5cd849){const _0x34bfb6=_0x5f4c13;this['_removeClearOtherTimer'](_0x5cd849);const _0x3de51a=window[_0x34bfb6(0x25e)](()=>{const _0x175e27=_0x34bfb6;this[_0x175e27(0x3aa)]['forEach'](_0x5c4098=>{const _0x43a354=_0x175e27;_0x5c4098[_0x43a354(0x1aa)](_0x5cd849);});},we*0x2);this['_clearOtherTimers'][_0x34bfb6(0x310)](_0x5cd849,_0x3de51a);}[_0x5f4c13(0x1a0)](_0x11317f){const _0x13a086=_0x5f4c13;if(this[_0x13a086(0x338)][_0x13a086(0x17f)](_0x11317f)){const _0x3180ce=this[_0x13a086(0x338)][_0x13a086(0x389)](_0x11317f);_0x3180ce&&window[_0x13a086(0x127)](_0x3180ce),this['_clearOtherTimers'][_0x13a086(0x310)](_0x11317f,null);}}['_handleLeaveEvent'](_0x276c8a){const _0x10a920=_0x5f4c13,{memberID:_0x2215f2,unitIDs:_0x49375e}=_0x276c8a;_0x49375e[_0x10a920(0x3ac)](_0x2c403d=>{const _0x4514c9=_0x10a920;var _0x20a71f;const _0x48d5e3=this[_0x4514c9(0x3aa)][_0x4514c9(0x389)](_0x2c403d);_0x48d5e3&&(_0x48d5e3[_0x4514c9(0x1aa)](_0x2215f2),(_0x20a71f=this[_0x4514c9(0x168)](_0x2c403d))==null||_0x20a71f[_0x4514c9(0x302)](_0x48d5e3[_0x4514c9(0x35c)]===0x0?u[_0x4514c9(0x171)][_0x4514c9(0x38d)]:u['UnitStatus'][_0x4514c9(0x2c5)]));}),this[_0x10a920(0x1a0)](_0x2215f2);}[_0x5f4c13(0x228)](_0x210836){const _0x2d9dbc=_0x5f4c13;this['_scheduleClearOtherTimer'](_0x210836[_0x2d9dbc(0x26d)]);}[_0x5f4c13(0x3a2)](_0x35b4ea){const _0x149a4b=_0x5f4c13;localStorage[_0x149a4b(0x3df)](ye,JSON['stringify'](_0x35b4ea));}[_0x5f4c13(0x1a5)](){const _0x16307f=_0x5f4c13;this[_0x16307f(0x220)]=window[_0x16307f(0x2f7)](()=>{const _0x6aa876=_0x16307f;this[_0x6aa876(0x3a2)]({'type':0x2,'memberID':this[_0x6aa876(0x2b0)]});},we);}[_0x5f4c13(0x168)](_0x51242f){const _0x396891=_0x5f4c13;return this[_0x396891(0x312)][_0x396891(0x17f)](_0x51242f)||this['_unitStatus'][_0x396891(0x310)](_0x51242f,new I['BehaviorSubject'](u[_0x396891(0x171)][_0x396891(0x38d)])),this[_0x396891(0x312)][_0x396891(0x389)](_0x51242f);}}exports[_0x5f4c13(0x152)]=Oe,exports[_0x5f4c13(0x38e)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x5f4c13(0x2e8)]=ke;