@univerjs-pro/collaboration-client-ui 0.10.12-nightly.202510221114 → 0.10.12-nightly.202510251119
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xa5554e=_0x3f8c;(function(_0x1a6ec6,_0x116471){const _0x51d590=_0x3f8c,_0x297049=_0x1a6ec6();while(!![]){try{const _0x2f6666=-parseInt(_0x51d590(0x28e))/0x1*(parseInt(_0x51d590(0x2c6))/0x2)+parseInt(_0x51d590(0x32e))/0x3*(-parseInt(_0x51d590(0x27a))/0x4)+-parseInt(_0x51d590(0x1d6))/0x5+-parseInt(_0x51d590(0x1e5))/0x6+-parseInt(_0x51d590(0x3c2))/0x7+-parseInt(_0x51d590(0x2ed))/0x8*(-parseInt(_0x51d590(0x302))/0x9)+-parseInt(_0x51d590(0x22e))/0xa*(-parseInt(_0x51d590(0x363))/0xb);if(_0x2f6666===_0x116471)break;else _0x297049['push'](_0x297049['shift']());}catch(_0x3d8f23){_0x297049['push'](_0x297049['shift']());}}}(_0x3a82,0x1a466));var Ge=Object[_0xa5554e(0x384)],Xe=(_0x157e81,_0x37f519,_0x2aa362)=>_0x37f519 in _0x157e81?Ge(_0x157e81,_0x37f519,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aa362}):_0x157e81[_0x37f519]=_0x2aa362,_=(_0x3d821c,_0x4a0cbd,_0x1a0d4d)=>Xe(_0x3d821c,typeof _0x4a0cbd!='symbol'?_0x4a0cbd+'':_0x4a0cbd,_0x1a0d4d);Object[_0xa5554e(0x384)](exports,Symbol[_0xa5554e(0x300)],{'value':'Module'});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){return O=Object['assign']||function(_0x443674){const _0x54a184=_0x3f8c;for(var _0xbf03e1,_0x50c91c=0x1,_0x2491bb=arguments[_0x54a184(0x322)];_0x50c91c<_0x2491bb;_0x50c91c++){_0xbf03e1=arguments[_0x50c91c];for(var _0x3b47d7 in _0xbf03e1)Object['prototype']['hasOwnProperty']['call'](_0xbf03e1,_0x3b47d7)&&(_0x443674[_0x3b47d7]=_0xbf03e1[_0x3b47d7]);}return _0x443674;},O['apply'](this,arguments);},ze=function(_0x5bffc6,_0x4b7942){const _0x125c02=_0xa5554e;var _0x3de050={};for(var _0x227fe2 in _0x5bffc6)Object[_0x125c02(0x25c)]['hasOwnProperty'][_0x125c02(0x1d5)](_0x5bffc6,_0x227fe2)&&_0x4b7942[_0x125c02(0x2b8)](_0x227fe2)<0x0&&(_0x3de050[_0x227fe2]=_0x5bffc6[_0x227fe2]);if(_0x5bffc6!=null&&typeof Object['getOwnPropertySymbols']==_0x125c02(0x37c)){for(var _0x41cb1a=0x0,_0x227fe2=Object[_0x125c02(0x232)](_0x5bffc6);_0x41cb1a<_0x227fe2[_0x125c02(0x322)];_0x41cb1a++)_0x4b7942[_0x125c02(0x2b8)](_0x227fe2[_0x41cb1a])<0x0&&Object[_0x125c02(0x25c)][_0x125c02(0x270)][_0x125c02(0x1d5)](_0x5bffc6,_0x227fe2[_0x41cb1a])&&(_0x3de050[_0x227fe2[_0x41cb1a]]=_0x5bffc6[_0x227fe2[_0x41cb1a]]);}return _0x3de050;},pe=L['forwardRef'](function(_0x48acab,_0x3a4bf7){const _0x18329e=_0xa5554e;var _0x507cc3=_0x48acab['icon'],_0xeb19c8=_0x48acab['id'],_0x62499b=_0x48acab[_0x18329e(0x35b)],_0x53f16e=_0x48acab[_0x18329e(0x195)],_0x205dfa=ze(_0x48acab,[_0x18329e(0x2ea),'id',_0x18329e(0x35b),_0x18329e(0x195)]),_0x318ea5='univerjs-icon\x20univerjs-icon-'[_0x18329e(0x3b6)](_0xeb19c8,'\x20')[_0x18329e(0x3b6)](_0x62499b||'')['trim'](),_0x29283e=L[_0x18329e(0x396)]('_'[_0x18329e(0x3b6)](Qe()));return ye(_0x507cc3,''[_0x18329e(0x3b6)](_0xeb19c8),{'defIds':_0x507cc3[_0x18329e(0x1fb)],'idSuffix':_0x29283e[_0x18329e(0x339)]},O({'ref':_0x3a4bf7,'className':_0x318ea5},_0x205dfa),_0x53f16e);});function ye(_0x5696cc,_0x32c963,_0x4d3869,_0x359277,_0x31fde1){const _0x40b841=_0xa5554e;return L[_0x40b841(0x1cd)](_0x5696cc[_0x40b841(0x250)],O(O({'key':_0x32c963},Je(_0x5696cc,_0x4d3869,_0x31fde1)),_0x359277),(Ze(_0x5696cc,_0x4d3869)['children']||[])[_0x40b841(0x324)](function(_0x25029a,_0x8907eb){const _0x5baddc=_0x40b841;return ye(_0x25029a,''[_0x5baddc(0x3b6)](_0x32c963,'-')[_0x5baddc(0x3b6)](_0x5696cc[_0x5baddc(0x250)],'-')[_0x5baddc(0x3b6)](_0x8907eb),_0x4d3869,void 0x0,_0x31fde1);}));}function Je(_0x11182f,_0x6b9e4f,_0x2c023a){const _0x10147e=_0xa5554e;var _0x3d9ed9=O({},_0x11182f[_0x10147e(0x18c)]);_0x2c023a!=null&&_0x2c023a[_0x10147e(0x23a)]&&_0x3d9ed9[_0x10147e(0x2bf)]==='colorChannel1'&&(_0x3d9ed9[_0x10147e(0x2bf)]=_0x2c023a['colorChannel1']),_0x11182f['tag']==='mask'&&_0x3d9ed9['id']&&(_0x3d9ed9['id']=_0x3d9ed9['id']+_0x6b9e4f[_0x10147e(0x2d1)]),Object[_0x10147e(0x355)](_0x3d9ed9)[_0x10147e(0x338)](function(_0x2db190){const _0x51983f=_0x10147e;var _0x4dbee5=_0x2db190[0x0],_0x14b261=_0x2db190[0x1];_0x4dbee5===_0x51983f(0x2e2)&&typeof _0x14b261=='string'&&(_0x3d9ed9[_0x4dbee5]=_0x14b261['replace'](/url\(#(.*)\)/,'url(#$1'[_0x51983f(0x3b6)](_0x6b9e4f[_0x51983f(0x2d1)],')')));});var _0x2927e6=_0x6b9e4f[_0x10147e(0x1fb)];return!_0x2927e6||_0x2927e6[_0x10147e(0x322)]===0x0||(_0x11182f[_0x10147e(0x250)]===_0x10147e(0x378)&&_0x3d9ed9[_0x10147e(0x266)]&&(_0x3d9ed9[_0x10147e(0x266)]=_0x3d9ed9[_0x10147e(0x266)]+_0x6b9e4f[_0x10147e(0x2d1)]),Object[_0x10147e(0x355)](_0x3d9ed9)['forEach'](function(_0x3bc64e){const _0x3f0099=_0x10147e;var _0x15c6ff=_0x3bc64e[0x0],_0x5d31eb=_0x3bc64e[0x1];typeof _0x5d31eb==_0x3f0099(0x293)&&(_0x3d9ed9[_0x15c6ff]=_0x5d31eb[_0x3f0099(0x2d7)](/url\(#(.*)\)/,_0x3f0099(0x1bd)[_0x3f0099(0x3b6)](_0x6b9e4f['idSuffix'],')')));})),_0x3d9ed9;}function Ze(_0x3afd94,_0x309c92){const _0x3f5da4=_0xa5554e;var _0x2c9ae0,_0x3e5404=_0x309c92[_0x3f5da4(0x1fb)];return!_0x3e5404||_0x3e5404['length']===0x0?_0x3afd94:_0x3afd94[_0x3f5da4(0x250)]===_0x3f5da4(0x17e)&&(!((_0x2c9ae0=_0x3afd94[_0x3f5da4(0x1f9)])===null||_0x2c9ae0===void 0x0)&&_0x2c9ae0[_0x3f5da4(0x322)])?O(O({},_0x3afd94),{'children':_0x3afd94[_0x3f5da4(0x1f9)][_0x3f5da4(0x324)](function(_0x3e9532){const _0x97e8f5=_0x3f5da4;return typeof _0x3e9532[_0x97e8f5(0x18c)]['id']==_0x97e8f5(0x293)&&_0x3e5404&&_0x3e5404['includes'](_0x3e9532[_0x97e8f5(0x18c)]['id'])?O(O({},_0x3e9532),{'attrs':O(O({},_0x3e9532['attrs']),{'id':_0x3e9532['attrs']['id']+_0x309c92['idSuffix']})}):_0x3e9532;})}):_0x3afd94;}function Qe(){const _0x3f3937=_0xa5554e;return Math[_0x3f3937(0x2b4)]()['toString'](0x24)[_0x3f3937(0x236)](0x2,0x8);}pe['displayName']=_0xa5554e(0x36b);var et={'tag':'svg','attrs':{'xmlns':_0xa5554e(0x3d3),'fill':_0xa5554e(0x1ca),'viewBox':_0xa5554e(0x194),'width':'1em','height':_0xa5554e(0x1a5)},'children':[{'tag':'g','attrs':{'clipPath':_0xa5554e(0x317)},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'stroke':_0xa5554e(0x244),'d':_0xa5554e(0x3f9),'strokeLinecap':'round','strokeLinejoin':_0xa5554e(0x15a),'strokeWidth':1.2}}]},{'tag':_0xa5554e(0x17e),'attrs':{},'children':[{'tag':_0xa5554e(0x37e),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'fill':_0xa5554e(0x20a),'d':_0xa5554e(0x2d3)}}]}]}],'defIds':[_0xa5554e(0x281)]},xe=L[_0xa5554e(0x29c)](function(_0x22fc1c,_0x273e11){const _0x3ed12c=_0xa5554e;return L[_0x3ed12c(0x1cd)](pe,Object[_0x3ed12c(0x277)]({},_0x22fc1c,{'id':_0x3ed12c(0x2c3),'ref':_0x273e11,'icon':et}));});xe[_0xa5554e(0x25e)]=_0xa5554e(0x231);var tt={'tag':_0xa5554e(0x188),'attrs':{'xmlns':_0xa5554e(0x3d3),'fill':'none','viewBox':_0xa5554e(0x267),'width':_0xa5554e(0x1a5),'height':_0xa5554e(0x1a5)},'children':[{'tag':'g','attrs':{'clipPath':_0xa5554e(0x1b1)},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'stroke':_0xa5554e(0x244),'d':_0xa5554e(0x154),'strokeLinecap':'round','strokeLinejoin':_0xa5554e(0x15a),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xa5554e(0x37e),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xa5554e(0x2a4),'attrs':{'fill':'white','d':_0xa5554e(0x2d3),'transform':_0xa5554e(0x1ad)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=L[_0xa5554e(0x29c)](function(_0x383ef6,_0x3828de){const _0x430fd3=_0xa5554e;return L[_0x430fd3(0x1cd)](pe,Object[_0x430fd3(0x277)]({},_0x383ef6,{'id':_0x430fd3(0x19a),'ref':_0x3828de,'icon':tt}));});$e['displayName']='OnLineIcon';function st(_0x2c256a){const _0x14462c=_0xa5554e;switch(_0x2c256a){case u[_0x14462c(0x2b1)][_0x14462c(0x2e6)]:return'collabStatus.offline';case u[_0x14462c(0x2b1)][_0x14462c(0x2e7)]:return'collabStatus.conflict';case u[_0x14462c(0x2b1)]['FETCH_MISS']:return _0x14462c(0x3a9);case u[_0x14462c(0x2b1)]['NOT_COLLAB']:return _0x14462c(0x1c8);case u[_0x14462c(0x2b1)][_0x14462c(0x160)]:case u[_0x14462c(0x2b1)][_0x14462c(0x3bd)]:return'collabStatus.syncing';case u[_0x14462c(0x2b1)][_0x14462c(0x298)]:case u[_0x14462c(0x2b1)]['PENDING']:return'collabStatus.synced';}}function it(_0x181d97){const _0x50610e=_0xa5554e,{status$:_0x26b94f}=_0x181d97,_0x51cd18=R['useObservable'](_0x26b94f,u['CollaborationStatus'][_0x50610e(0x2cf)]),_0x22987e=R[_0x50610e(0x1bb)](a[_0x50610e(0x326)]),_0x7f2c54=R[_0x50610e(0x1bb)](u[_0x50610e(0x39a)]),_0x3c5f0b=_0x51cd18!==u[_0x50610e(0x2b1)][_0x50610e(0x2e6)],_0xeb24d9=_0x22987e['t'](st(_0x51cd18)),_0x2c9b05=_0x3c5f0b?P['jsx']($e,{}):P['jsx'](xe,{}),_0x3fe8cc=L[_0x50610e(0x1a7)](()=>{const _0x5ef067=_0x50610e;_0x3c5f0b||_0x7f2c54[_0x5ef067(0x360)]();},[_0x3c5f0b,_0x7f2c54]);function _0x405df4(){const _0xc64c5c=_0x50610e;return P[_0xc64c5c(0x17c)](_0xc64c5c(0x2f5),{'className':'univer-flex\x20univer-items-center','onClick':_0x3fe8cc,'children':[P[_0xc64c5c(0x3c9)](_0xc64c5c(0x2f5),{'className':T['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x3c5f0b,'univer-text-red-500':!_0x3c5f0b}),'children':_0x2c9b05}),P[_0xc64c5c(0x3c9)](_0xc64c5c(0x2f5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xeb24d9})]});}return _0x3c5f0b?_0x405df4():P['jsx'](T['Tooltip'],{'title':_0x22987e['t']('collab-client.tooltip.reconnect'),'children':_0x405df4()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x5a82c1,_0x1a9406,_0x3f209b,_0x19c492)=>{for(var _0x2f106b=_0x19c492>0x1?void 0x0:_0x19c492?nt(_0x1a9406,_0x3f209b):_0x1a9406,_0x291f91=_0x5a82c1['length']-0x1,_0x34e83e;_0x291f91>=0x0;_0x291f91--)(_0x34e83e=_0x5a82c1[_0x291f91])&&(_0x2f106b=_0x34e83e(_0x2f106b)||_0x2f106b);return _0x2f106b;},q=(_0x2c5a46,_0x439555)=>(_0x1f4888,_0x1ff5e7)=>_0x439555(_0x1f4888,_0x1ff5e7,_0x2c5a46);exports[_0xa5554e(0x372)]=class extends a[_0xa5554e(0x249)]{constructor(_0x63052b,_0x4d27df,_0x58dcbc,_0x28362d){const _0x37881d=_0xa5554e;super(),_(this,_0x37881d(0x27e),new I[(_0x37881d(0x189))](u[_0x37881d(0x2b1)][_0x37881d(0x2cf)])),(this[_0x37881d(0x2b3)]=_0x63052b,this['_injector']=_0x4d27df,this[_0x37881d(0x329)]=_0x58dcbc,this[_0x37881d(0x1f2)]=_0x28362d,this['_initStatusComponent'](),this[_0x37881d(0x24f)]());}[_0xa5554e(0x24f)](){const _0x19b42c=_0xa5554e;this[_0x19b42c(0x1c2)](this[_0x19b42c(0x2b3)][_0x19b42c(0x20b)]['pipe'](I[_0x19b42c(0x2e1)](()=>{const _0xdec596=_0x19b42c,_0x1cdda9=this[_0xdec596(0x2b3)]['getFocusedUnit']();return _0x1cdda9?this['_collaborationController'][_0xdec596(0x162)](_0x1cdda9[_0xdec596(0x2bb)]()):I['of'](null);}),I[_0x19b42c(0x2e1)](_0x106e50=>_0x106e50?_0x106e50[_0x19b42c(0x327)]:I['of'](u[_0x19b42c(0x2b1)][_0x19b42c(0x2cf)])))['subscribe'](_0x54c316=>{const _0x3003e6=_0x19b42c;this[_0x3003e6(0x27e)]['next'](_0x54c316);}));}[_0xa5554e(0x15b)](){const _0xd3aea2=_0xa5554e;this[_0xd3aea2(0x1c2)](this[_0xd3aea2(0x1f2)]['registerComponent'](R[_0xd3aea2(0x24d)][_0xd3aea2(0x374)],()=>R['connectInjector'](ot({'status$':this[_0xd3aea2(0x27e)][_0xd3aea2(0x3b2)]()}),this['_injector'])));}},exports[_0xa5554e(0x372)]=rt([q(0x0,a[_0xa5554e(0x204)]),q(0x1,a['Inject'](a[_0xa5554e(0x36a)])),q(0x2,a[_0xa5554e(0x212)](u['CollaborationController'])),q(0x3,R[_0xa5554e(0x332)])],exports[_0xa5554e(0x372)]);function ot(_0x4ce91e){const {status$:_0x3b6da4}=_0x4ce91e;return function(){const _0xc0fafc=_0x3f8c;return P[_0xc0fafc(0x3c9)](it,{'status$':_0x3b6da4});};}const Te=a[_0xa5554e(0x30b)]('uni.network.url-service');var at=Object['getOwnPropertyDescriptor'],ct=(_0x192ce5,_0x11a363,_0x2bcd31,_0x59bbfa)=>{const _0x5d5ca0=_0xa5554e;for(var _0x1f54e7=_0x59bbfa>0x1?void 0x0:_0x59bbfa?at(_0x11a363,_0x2bcd31):_0x11a363,_0x364be6=_0x192ce5[_0x5d5ca0(0x322)]-0x1,_0x4cb6d5;_0x364be6>=0x0;_0x364be6--)(_0x4cb6d5=_0x192ce5[_0x364be6])&&(_0x1f54e7=_0x4cb6d5(_0x1f54e7)||_0x1f54e7);return _0x1f54e7;},Y=(_0x32d3e2,_0x381f56)=>(_0x553514,_0x55f00e)=>_0x381f56(_0x553514,_0x55f00e,_0x32d3e2);exports[_0xa5554e(0x403)]=class extends a[_0xa5554e(0x264)]{constructor(_0x1ce297,_0x554a07,_0x3b5c20,_0x191e93,_0x2d75e0){const _0xda6008=_0xa5554e;super(),this[_0xda6008(0x2c7)]=_0x1ce297,this[_0xda6008(0x318)]=_0x554a07,this['_commandService']=_0x3b5c20,this[_0xda6008(0x3fe)]=_0x191e93,_0x2d75e0?_0x2d75e0==null||_0x2d75e0[_0xda6008(0x1e9)]()[_0xda6008(0x28f)](()=>this[_0xda6008(0x269)]()):(this[_0xda6008(0x318)][_0xda6008(0x3b8)]('[CollaborationDataLoaderController]',_0xda6008(0x228)),this['_init']());}async['_init'](){const _0x50a9f5=_0xa5554e,_0x3a421d=this[_0x50a9f5(0x2c7)][_0x50a9f5(0x163)](_0x50a9f5(0x2a1)),_0x2ff8ce=this['_urlService']['getParam'](_0x50a9f5(0x2d9)),_0x3d9feb=this[_0x50a9f5(0x2c7)][_0x50a9f5(0x163)](_0x50a9f5(0x243));if(!_0x3a421d||!_0x2ff8ce){this[_0x50a9f5(0x318)]['debug'](_0x50a9f5(0x349),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x305dc8=await this[_0x50a9f5(0x3fe)][_0x50a9f5(0x23d)](_0x3a421d,Number(_0x2ff8ce),_0x3d9feb);_0x305dc8&&_0x305dc8 instanceof a[_0x50a9f5(0x29e)]&&this[_0x50a9f5(0x263)](_0x305dc8);}async['_setupSubUnitSync'](_0x533da9){const _0x141c00=_0xa5554e;await this[_0x141c00(0x3b4)](_0x533da9),_0x533da9[_0x141c00(0x1f8)][_0x141c00(0x2be)](I[_0x141c00(0x2a6)](this['dispose$']))['subscribe'](_0x4e7f69=>{const _0x3b1d93=_0x141c00;_0x4e7f69&&this[_0x3b1d93(0x1cf)](_0x4e7f69);}),this[_0x141c00(0x2c7)][_0x141c00(0x261)][_0x141c00(0x2be)](I['takeUntil'](this[_0x141c00(0x197)]))[_0x141c00(0x3cb)](()=>this[_0x141c00(0x3b4)](_0x533da9));}[_0xa5554e(0x1cf)](_0x3d2251,_0x5c798c=!0x1){const _0x190ae4=_0xa5554e,_0x320221=this[_0x190ae4(0x2c7)][_0x190ae4(0x163)]('subunit');_0x3d2251['getSheetId']()!==_0x320221&&this[_0x190ae4(0x2c7)][_0x190ae4(0x301)](_0x190ae4(0x243),_0x3d2251[_0x190ae4(0x1b2)](),_0x5c798c);}async[_0xa5554e(0x3b4)](_0x433c5c){const _0x3c5e72=_0xa5554e;var _0x792c65;const _0x50867b=this['_urlService'][_0x3c5e72(0x163)](_0x3c5e72(0x243));if(!_0x50867b||!_0x433c5c[_0x3c5e72(0x404)](_0x50867b)){const _0x5ebf4e=_0x433c5c[_0x3c5e72(0x33f)]()[0x0],_0x4943ed=_0x433c5c['getSheetBySheetId'](_0x5ebf4e);if(!_0x4943ed)return;this['_updateURLWithCurrentState'](_0x4943ed,!0x0),await this[_0x3c5e72(0x2a7)][_0x3c5e72(0x3d1)](v[_0x3c5e72(0x257)]['id'],{'unitId':_0x433c5c[_0x3c5e72(0x2bb)](),'subUnitId':_0x5ebf4e});return;}((_0x792c65=_0x433c5c[_0x3c5e72(0x36c)]())==null?void 0x0:_0x792c65[_0x3c5e72(0x1b2)]())!==_0x50867b&&await this['_commandService'][_0x3c5e72(0x3d1)](v[_0x3c5e72(0x257)]['id'],{'unitId':_0x433c5c[_0x3c5e72(0x2bb)](),'subUnitId':_0x50867b});}},exports[_0xa5554e(0x403)]=ct([Y(0x0,Te),Y(0x1,a['ILogService']),Y(0x2,a[_0xa5554e(0x38d)]),Y(0x3,a[_0xa5554e(0x212)](u['DataLoaderService'])),Y(0x4,a[_0xa5554e(0x19c)](Ke['IRemoteInstanceService']))],exports[_0xa5554e(0x403)]);var lt=Object[_0xa5554e(0x1fa)],_t=(_0x5ae22d,_0x49b5ff,_0x4d7950,_0x504a62)=>{for(var _0x3138a3=_0x504a62>0x1?void 0x0:_0x504a62?lt(_0x49b5ff,_0x4d7950):_0x49b5ff,_0x4677d7=_0x5ae22d['length']-0x1,_0x50383c;_0x4677d7>=0x0;_0x4677d7--)(_0x50383c=_0x5ae22d[_0x4677d7])&&(_0x3138a3=_0x50383c(_0x3138a3)||_0x3138a3);return _0x3138a3;},be=(_0x55c97e,_0x2ee151)=>(_0x4c3136,_0x3b4cab)=>_0x2ee151(_0x4c3136,_0x3b4cab,_0x55c97e);let fe=class extends a[_0xa5554e(0x264)]{constructor(_0x6d38b5,_0x47dbbd){const _0x5cd541=_0xa5554e;super(),this[_0x5cd541(0x193)]=_0x6d38b5,this[_0x5cd541(0x3f5)]=_0x47dbbd,this[_0x5cd541(0x269)]();}['_init'](){const _0x5246bf=_0xa5554e,_0x1f874e=this;this[_0x5246bf(0x1c2)](this[_0x5246bf(0x193)]['addClipboardHook']({'onBeforePasteImage':async _0x259fe5=>{const _0x2c010b=_0x5246bf,_0x247fd9=await _0x1f874e['_imageIoService'][_0x2c010b(0x305)](_0x259fe5);return _0x247fd9?{'source':_0x247fd9[_0x2c010b(0x402)],'imageSourceType':_0x247fd9[_0x2c010b(0x280)]}:null;}}));}};fe=_t([be(0x0,p[_0xa5554e(0x173)]),be(0x1,qe['IImageIoService'])],fe);const De=[_0xa5554e(0x295),_0xa5554e(0x39d),_0xa5554e(0x389),'red.300','blue.400',_0xa5554e(0x31d)];class Oe extends a[_0xa5554e(0x249)]{constructor(){const _0x9607a8=_0xa5554e;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x9607a8(0x226),0x0);}['assignAColorForMemberID'](_0x3dba6d){const _0xa19a58=_0xa5554e;if(this['_assignedColors']['has'](_0x3dba6d))return this['_assignedColors'][_0xa19a58(0x23e)](_0x3dba6d);const _0x102a19=De[this[_0xa19a58(0x226)]];return this[_0xa19a58(0x226)]=(this['_colorIndex']+0x1)%De[_0xa19a58(0x322)],this[_0xa19a58(0x38b)]['set'](_0x3dba6d,_0x102a19),_0x102a19;}}function Be(_0x43e3a2){const _0x3c10b7=_0xa5554e;let _0xbddc74='';for(const _0x51bcd4 of _0x43e3a2){const {startOffset:_0x563c51,endOffset:_0x3a782b,isActive:_0x2cb371,rangeType:_0x2c73bb,segmentId:_0x5975c6,segmentPage:_0x235171}=_0x51bcd4;_0xbddc74[_0x3c10b7(0x322)]&&(_0xbddc74+=','),_0xbddc74+=_0x563c51+':'+_0x3a782b+':'+(_0x2cb371?'1':'0')+':'+_0x2c73bb+':'+_0x5975c6+':'+_0x235171;}return _0xbddc74;}function ht(_0x18147d){const _0x1f0c50=_0xa5554e,_0x50c177=_0x18147d['split'](','),_0x597724=[];for(const _0x19ac10 of _0x50c177){const [_0x513534,_0x1a1668,_0x15c689,_0x321e9d,_0x1a944c,_0x12d843]=_0x19ac10['split'](':');_0x597724[_0x1f0c50(0x3a6)]({'startOffset':Number(_0x513534),'endOffset':Number(_0x1a1668),'collapsed':_0x513534===_0x1a1668,'isActive':_0x15c689==='1','rangeType':_0x321e9d===a['DOC_RANGE_TYPE'][_0x1f0c50(0x37b)]?a[_0x1f0c50(0x34b)][_0x1f0c50(0x37b)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x1a944c==_0x1f0c50(0x293)?String(_0x1a944c):'','segmentPage':Number(_0x12d843!=null?_0x12d843:-0x1)});}return _0x597724['some'](_0x1c1601=>_0x1c1601[_0x1f0c50(0x205)])||(_0x597724[0x0][_0x1f0c50(0x205)]=!0x0),_0x597724;}class Re extends a[_0xa5554e(0x264)]{constructor(){const _0x803d0d=_0xa5554e;super(...arguments),_(this,_0x803d0d(0x2da),new I['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x803d0d(0x2da)][_0x803d0d(0x3b2)]());}['syncEditingCollabCursor'](_0x4b5f82){const _0x427b93=_0xa5554e,{unitID:_0x492b8e,memberID:_0x5135c4,textRanges:_0x489fe5}=_0x4b5f82,_0x14254b=Be(_0x489fe5);if(_0x14254b==='')return;const _0x27c044={'unitID':_0x492b8e,'memberID':_0x5135c4,'selection':_0x14254b};this[_0x427b93(0x2da)][_0x427b93(0x3d5)](_0x27c044);}}var ut=Object[_0xa5554e(0x1fa)],It=(_0x2bd3f4,_0x42ca8a,_0xf109a4,_0x576fe4)=>{const _0x1ce26e=_0xa5554e;for(var _0x10890b=_0x576fe4>0x1?void 0x0:_0x576fe4?ut(_0x42ca8a,_0xf109a4):_0x42ca8a,_0x511ba3=_0x2bd3f4[_0x1ce26e(0x322)]-0x1,_0x3a47fb;_0x511ba3>=0x0;_0x511ba3--)(_0x3a47fb=_0x2bd3f4[_0x511ba3])&&(_0x10890b=_0x3a47fb(_0x10890b)||_0x10890b);return _0x10890b;},M=(_0x2589e3,_0x84690e)=>(_0x55cc5b,_0x1294d1)=>_0x84690e(_0x55cc5b,_0x1294d1,_0x2589e3);const dt=0x12c,St=0x64;let me=class extends a['RxDisposable']{constructor(_0x3463aa,_0x4e8770,_0x450343,_0x57a2f9,_0x25eed3,_0x512fa8,_0x1330c1,_0xf557a3,_0x251944){const _0x3d756c=_0xa5554e;super(),_(this,_0x3d756c(0x215),!0x1),_(this,_0x3d756c(0x269),!0x1),_(this,_0x3d756c(0x299),new I['BehaviorSubject'](new Map())),_(this,_0x3d756c(0x30f),this['_cursorInfo$'][_0x3d756c(0x3b2)]()),_(this,_0x3d756c(0x39f),new I[(_0x3d756c(0x189))]([])),_(this,_0x3d756c(0x1a3),this[_0x3d756c(0x39f)][_0x3d756c(0x2be)](I[_0x3d756c(0x1f3)](dt))),_(this,_0x3d756c(0x3b7),a[_0x3d756c(0x341)](_0x58d21b=>{const _0x111591=_0x3d756c,_0x5b9036={'eventID':g[_0x111591(0x15e)][_0x111591(0x37d)],'data':{'unitID':this[_0x111591(0x3bf)],'memberID':this[_0x111591(0x3c8)][_0x111591(0x1ab)](),'selection':Be(_0x58d21b)}};this[_0x111591(0x3c8)]['send'](_0x5b9036,this[_0x111591(0x3bf)]);},St)),(this[_0x3d756c(0x3bf)]=_0x3463aa,this[_0x3d756c(0x3c8)]=_0x4e8770,this[_0x3d756c(0x2c1)]=_0x450343,this[_0x3d756c(0x353)]=_0x57a2f9,this[_0x3d756c(0x348)]=_0x25eed3,this[_0x3d756c(0x3e2)]=_0x512fa8,this[_0x3d756c(0x33b)]=_0x1330c1,this[_0x3d756c(0x2b3)]=_0xf557a3,this[_0x3d756c(0x2a7)]=_0x251944);}get[_0xa5554e(0x21f)](){const _0x4f6a2e=_0xa5554e;return this[_0x4f6a2e(0x299)][_0x4f6a2e(0x32b)]();}get[_0xa5554e(0x16d)](){const _0x4b8c84=_0xa5554e;return this[_0x4b8c84(0x39f)][_0x4b8c84(0x32b)]();}[_0xa5554e(0x336)](){const _0x19ea55=_0xa5554e;super[_0x19ea55(0x336)](),this[_0x19ea55(0x299)]['next'](new Map()),this[_0x19ea55(0x299)][_0x19ea55(0x278)](),this['_roomMembers$'][_0x19ea55(0x3d5)]([]),this[_0x19ea55(0x39f)]['complete']();}[_0xa5554e(0x1aa)](){const _0x40f50b=_0xa5554e;this[_0x40f50b(0x269)]||(this[_0x40f50b(0x269)]=!0x0,this[_0x40f50b(0x3c8)][_0x40f50b(0x3fd)][_0x40f50b(0x2be)](I[_0x40f50b(0x2a6)](this[_0x40f50b(0x197)]))[_0x40f50b(0x3cb)](_0x3d4f62=>{const _0x538503=_0x40f50b;_0x3d4f62===u[_0x538503(0x2f7)][_0x538503(0x3d6)]?this[_0x538503(0x380)]():this['_toggleOffline']();}),this[_0x40f50b(0x3c8)][_0x40f50b(0x1a0)][_0x40f50b(0x2be)](I['takeUntil'](this[_0x40f50b(0x197)]))[_0x40f50b(0x3cb)](_0x59d39e=>{const _0x31cea0=_0x40f50b,_0x1e2172=_0x59d39e[_0x31cea0(0x34d)];_0x1e2172===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x31cea0(0x297)](_0x59d39e),_0x1e2172===g[_0x31cea0(0x15e)][_0x31cea0(0x199)]&&this[_0x31cea0(0x229)](_0x59d39e);}),this['disposeWithMe'](this[_0x40f50b(0x2a7)][_0x40f50b(0x180)](_0x4bf51a=>{const _0x1c35be=_0x40f50b,_0x3991f5=_0x4bf51a[_0x1c35be(0x161)];_0x3991f5!=null&&this['_online']&&_0x4bf51a['id']===V['SetTextSelectionsOperation']['id']&&_0x3991f5['unitId']===this[_0x1c35be(0x3bf)]&&_0x3991f5['isEditing']===!0x1&&_0x3991f5[_0x1c35be(0x3d0)][_0x1c35be(0x322)]>0x0&&this[_0x1c35be(0x3b7)](_0x3991f5[_0x1c35be(0x3d0)]);})),this['_syncEditingCollabCursorService'][_0x40f50b(0x2f8)][_0x40f50b(0x2be)](I[_0x40f50b(0x2a6)](this[_0x40f50b(0x197)]))['subscribe'](_0x3708de=>{const _0x288ee2=_0x40f50b;if((_0x3708de==null?void 0x0:_0x3708de[_0x288ee2(0x3bf)])!==this['unitID'])return;const _0x28ad0c={'eventID':g['CollaborationEvent'][_0x288ee2(0x37d)],'data':_0x3708de};this['_onCursorUpdate'](_0x28ad0c);}),this[_0x40f50b(0x1c2)](this[_0x40f50b(0x2a7)][_0x40f50b(0x180)](_0x5ee6b8=>{const _0x42cdb2=_0x40f50b;if(_0x5ee6b8[_0x42cdb2(0x161)]==null)return;const _0x4086d1=_0x5ee6b8[_0x42cdb2(0x161)];if(_0x5ee6b8['id']!==V[_0x42cdb2(0x1d4)]['id']||_0x4086d1[_0x42cdb2(0x401)]!==this[_0x42cdb2(0x3bf)])return;const _0x8182f9={'id':'doc.mutation.rich-text-editing','params':_0x4086d1},_0x540db3=this['cursorInfo'];for(const [_0x431036,_0x2ac6af]of _0x540db3){const _0x14eb61={'id':_0x42cdb2(0x224),'params':{'unitId':this[_0x42cdb2(0x3bf)],'actions':null,'textRanges':_0x2ac6af[_0x42cdb2(0x3d0)]}},_0x411199=this[_0x42cdb2(0x33b)]['transformMutation'](_0x8182f9,_0x14eb61,!0x1);if(g[_0x42cdb2(0x28a)](_0x411199))throw _0x411199[_0x42cdb2(0x21a)];_0x540db3[_0x42cdb2(0x2eb)](_0x431036,{..._0x2ac6af,'ranges':_0x411199[_0x42cdb2(0x258)][_0x42cdb2(0x161)][_0x42cdb2(0x185)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x540db3);});})));}[_0xa5554e(0x297)](_0x3c6192){const _0x1cc445=_0xa5554e;var _0x1023c9,_0xcc4411;const {memberID:_0x19ec72,selection:_0x155ef5}=_0x3c6192[_0x1cc445(0x3ad)],_0x81ff1=ht(_0x155ef5),_0x3c93fc=(_0xcc4411=(_0x1023c9=this[_0x1cc445(0x348)][_0x1cc445(0x347)](this[_0x1cc445(0x3bf)],_0x19ec72))==null?void 0x0:_0x1023c9[_0x1cc445(0x388)])!=null?_0xcc4411:_0x1cc445(0x1d1),_0x21d7ea={'color':this['_colorAssignService'][_0x1cc445(0x2db)](_0x19ec72),'name':_0x3c93fc,'ranges':_0x81ff1},_0x5155f0=this[_0x1cc445(0x21f)];_0x5155f0['set'](_0x19ec72,_0x21d7ea),this[_0x1cc445(0x299)]['next'](_0x5155f0);}[_0xa5554e(0x229)](_0x3166c1){const _0x5f5c39=_0xa5554e,{memberID:_0x11c5d0}=_0x3166c1[_0x5f5c39(0x3ad)],_0x17622d=this[_0x5f5c39(0x21f)];_0x17622d['delete'](_0x11c5d0),this['_cursorInfo$'][_0x5f5c39(0x3d5)](_0x17622d);}[_0xa5554e(0x380)](){const _0x3b973c=_0xa5554e;var _0xf46d7e;if(this[_0x3b973c(0x215)]=!0x0,((_0xf46d7e=this['_univerInstanceService'][_0x3b973c(0x2ec)]())==null?void 0x0:_0xf46d7e['getUnitId']())!==this[_0x3b973c(0x3bf)])return;const _0x1bec0a=this[_0x3b973c(0x2c1)][_0x3b973c(0x23e)](V[_0x3b973c(0x3f6)])[_0x3b973c(0x214)]();Array[_0x3b973c(0x3ba)](_0x1bec0a)&&_0x1bec0a[_0x3b973c(0x322)]>0x0&&this[_0x3b973c(0x3b7)](_0x1bec0a);}[_0xa5554e(0x1ef)](){this['_online']=!0x1;}};me=It([M(0x2,a[_0xa5554e(0x212)](a['Injector'])),M(0x3,a[_0xa5554e(0x212)](Oe)),M(0x4,a[_0xa5554e(0x212)](u[_0xa5554e(0x285)])),M(0x5,a['Inject'](Re)),M(0x6,g[_0xa5554e(0x26f)]),M(0x7,a[_0xa5554e(0x204)]),M(0x8,a[_0xa5554e(0x38d)])],me);var ft=Object[_0xa5554e(0x1fa)],mt=(_0x2c459e,_0x4e49d5,_0x397e95,_0x430895)=>{const _0x1ac5e4=_0xa5554e;for(var _0x1d8960=_0x430895>0x1?void 0x0:_0x430895?ft(_0x4e49d5,_0x397e95):_0x4e49d5,_0x2b132a=_0x2c459e[_0x1ac5e4(0x322)]-0x1,_0xba1316;_0x2b132a>=0x0;_0x2b132a--)(_0xba1316=_0x2c459e[_0x2b132a])&&(_0x1d8960=_0xba1316(_0x1d8960)||_0x1d8960);return _0x1d8960;},y=(_0x37cd4,_0x4f31d8)=>(_0x1e0d92,_0x4ac9e4)=>_0x4f31d8(_0x1e0d92,_0x4ac9e4,_0x37cd4);const vt=0x12c,gt=0x64,Et=()=>{let _0x150f1d=[],_0x18fac6=!0x1;return _0x1d2d3e=>{const _0x4198f6=_0x3f8c;_0x150f1d[_0x4198f6(0x3a6)](_0x1d2d3e),_0x18fac6||(_0x18fac6=!0x0,setTimeout(()=>{const _0x1dfd80=_0x4198f6;_0x150f1d[_0x1dfd80(0x338)](_0xb50aac=>_0xb50aac()),_0x150f1d=[],_0x18fac6=!0x1;}));};};let ve=class extends a[_0xa5554e(0x264)]{constructor(_0x11600d,_0x2540f2,_0x1e3ca0,_0x2c9da0,_0x3220c3,_0x788eb5,_0x4b0009,_0xa04a2e){const _0x412495=_0xa5554e;super(),_(this,_0x412495(0x215),!0x1),_(this,_0x412495(0x269),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x412495(0x30f),this[_0x412495(0x299)][_0x412495(0x3b2)]()),_(this,_0x412495(0x39f),new I['BehaviorSubject']([])),_(this,_0x412495(0x1a3),this[_0x412495(0x39f)]['pipe'](I['debounceTime'](vt))),_(this,'_updateLocalCursor',a[_0x412495(0x341)]((_0x39d3ee,_0x4c0489)=>{const _0x500783=_0x412495,_0x29b979={'eventID':g[_0x500783(0x15e)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x500783(0x3bf)],'memberID':this[_0x500783(0x3c8)][_0x500783(0x1ab)](),'selection':B[_0x500783(0x376)](_0x39d3ee,_0x4c0489[_0x500783(0x3bb)])}};this[_0x500783(0x3c8)][_0x500783(0x33a)](_0x29b979,this['unitID']);},gt)),(this[_0x412495(0x3bf)]=_0x11600d,this[_0x412495(0x3c8)]=_0x2540f2,this[_0x412495(0x2c1)]=_0x1e3ca0,this[_0x412495(0x353)]=_0x2c9da0,this[_0x412495(0x348)]=_0x3220c3,this[_0x412495(0x2b3)]=_0x788eb5,this['_commandService']=_0x4b0009,this[_0x412495(0x2b2)]=_0xa04a2e);}get[_0xa5554e(0x21f)](){const _0x39e378=_0xa5554e;return this[_0x39e378(0x299)]['getValue']();}get[_0xa5554e(0x16d)](){const _0x33e4be=_0xa5554e;return this[_0x33e4be(0x39f)][_0x33e4be(0x32b)]();}[_0xa5554e(0x336)](){const _0x47771d=_0xa5554e;super['dispose'](),this[_0x47771d(0x299)][_0x47771d(0x3d5)](new Map()),this[_0x47771d(0x299)][_0x47771d(0x278)](),this['_roomMembers$']['next']([]),this[_0x47771d(0x39f)][_0x47771d(0x278)]();}[_0xa5554e(0x1aa)](){const _0x32ff9b=_0xa5554e;this[_0x32ff9b(0x269)]||(this[_0x32ff9b(0x269)]=!0x0,this[_0x32ff9b(0x3c8)][_0x32ff9b(0x3fd)][_0x32ff9b(0x2be)](I[_0x32ff9b(0x2a6)](this[_0x32ff9b(0x197)]))[_0x32ff9b(0x3cb)](_0x593198=>{const _0x4ff166=_0x32ff9b;_0x593198===u[_0x4ff166(0x2f7)][_0x4ff166(0x3d6)]?this[_0x4ff166(0x380)]():this[_0x4ff166(0x1ef)]();}),this[_0x32ff9b(0x3c8)][_0x32ff9b(0x1a0)][_0x32ff9b(0x2be)](I[_0x32ff9b(0x2a6)](this[_0x32ff9b(0x197)]))['subscribe'](_0x52a4d5=>{const _0x190bc5=_0x32ff9b,_0xe37360=_0x52a4d5[_0x190bc5(0x34d)];_0xe37360===g[_0x190bc5(0x15e)]['UPDATE_CURSOR']&&this[_0x190bc5(0x297)](_0x52a4d5),_0xe37360===g[_0x190bc5(0x15e)][_0x190bc5(0x199)]&&this[_0x190bc5(0x229)](_0x52a4d5);}),this['_onRefRangeChange'](),this[_0x32ff9b(0x1c2)](this[_0x32ff9b(0x2a7)][_0x32ff9b(0x180)](_0x3677e1=>{const _0x10a74b=_0x32ff9b;if(this[_0x10a74b(0x215)]&&_0x3677e1['id']===v[_0x10a74b(0x393)]['id']&&_0x3677e1['params'][_0x10a74b(0x401)]===this[_0x10a74b(0x3bf)]){const _0x3e6e43=_0x3677e1[_0x10a74b(0x161)];this[_0x10a74b(0x3b7)](_0x3e6e43[_0x10a74b(0x382)],_0x3e6e43[_0x10a74b(0x2ff)][0x0]);}})));}[_0xa5554e(0x297)](_0x56ac8a){const _0x101fd8=_0xa5554e;var _0x58a47d,_0x58516d;const {memberID:_0x18b708,selection:_0x11eec6}=_0x56ac8a['data'],{sheetName:_0x2085fb,range:_0x1e5afd}=B['deserializeRangeWithSheet'](_0x11eec6),_0x212eb1={'name':(_0x58516d=(_0x58a47d=this['_memberService']['getMember'](this[_0x101fd8(0x3bf)],_0x18b708))==null?void 0x0:_0x58a47d['name'])!=null?_0x58516d:_0x101fd8(0x1d1),'range':this['_getMergeRange'](_0x2085fb,_0x1e5afd),'sheetID':_0x2085fb,'color':this[_0x101fd8(0x353)]['assignAColorForMemberID'](_0x18b708),'selection':_0x11eec6},_0x311a43=this[_0x101fd8(0x21f)];_0x311a43[_0x101fd8(0x2eb)](_0x18b708,_0x212eb1),this['_cursorInfo$']['next'](_0x311a43);}[_0xa5554e(0x229)](_0x4107c0){const _0x553060=_0xa5554e,{memberID:_0x1cf041}=_0x4107c0[_0x553060(0x3ad)],_0x4f5cc7=this[_0x553060(0x21f)];_0x4f5cc7[_0x553060(0x18a)](_0x1cf041),this[_0x553060(0x299)][_0x553060(0x3d5)](_0x4f5cc7);}[_0xa5554e(0x220)](_0x1e34b0,_0x48bc6f){const _0x3c53db=_0xa5554e;var _0x54ff58,_0xf5af62;const _0x32badc=(_0xf5af62=(_0x54ff58=this[_0x3c53db(0x2b3)][_0x3c53db(0x311)](this[_0x3c53db(0x3bf)]))==null?void 0x0:_0x54ff58[_0x3c53db(0x404)](_0x1e34b0))==null?void 0x0:_0xf5af62[_0x3c53db(0x331)]();return(_0x32badc==null?void 0x0:_0x32badc[_0x3c53db(0x276)](_0x182f1a=>a[_0x3c53db(0x3c4)][_0x3c53db(0x203)](_0x182f1a,_0x48bc6f)))||_0x48bc6f;}['_onRefRangeChange'](){const _0x1f2093=_0xa5554e,_0x29d4de=new a[(_0x1f2093(0x2d6))](),_0xcee823=Et(),_0x38502d=()=>{const _0x59f7cf=_0x1f2093;_0x29d4de['dispose']();const _0x18db76=(_0x240ef3,_0xa3434b,_0x384a66,_0x4379f1)=>{const _0x3ffbfc=_0x3f8c;let _0x3e2ee4=[];switch(_0x240ef3['id']){case v['EffectRefRangId'][_0x3ffbfc(0x268)]:{_0x3e2ee4=v['handleDeleteRangeMoveLeft'](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x1f0)]:{_0x3e2ee4=v[_0x3ffbfc(0x175)](_0x240ef3,_0x4379f1);break;}case v['EffectRefRangId'][_0x3ffbfc(0x2d8)]:{_0x3e2ee4=v[_0x3ffbfc(0x241)](_0x240ef3,_0x4379f1);break;}case v['EffectRefRangId'][_0x3ffbfc(0x222)]:{_0x3e2ee4=v[_0x3ffbfc(0x2cd)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)]['InsertRangeMoveRightCommandId']:{_0x3e2ee4=v[_0x3ffbfc(0x275)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x3f8)]:{_0x3e2ee4=v[_0x3ffbfc(0x22c)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)]['MoveRangeCommandId']:{_0x3e2ee4=v[_0x3ffbfc(0x2df)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x3ce)]:{_0x3e2ee4=v[_0x3ffbfc(0x371)](_0x240ef3,_0x4379f1);break;}case v[_0x3ffbfc(0x25d)][_0x3ffbfc(0x1f7)]:{_0x3e2ee4=v['handleIRemoveRow'](_0x240ef3,_0x4379f1);break;}}const _0xa22c4e=v[_0x3ffbfc(0x2aa)](_0x3e2ee4,_0x4379f1),_0x173911=this[_0x3ffbfc(0x21f)][_0x3ffbfc(0x23e)](_0xa3434b);if(_0x173911&&_0xa22c4e){const _0x17b6f3={..._0x173911,'range':_0xa22c4e};this[_0x3ffbfc(0x21f)][_0x3ffbfc(0x2eb)](_0xa3434b,_0x17b6f3),_0xcee823(()=>{const _0x2cc8c6=_0x3ffbfc,_0x3165ac=this[_0x2cc8c6(0x2b2)][_0x2cc8c6(0x1dc)](_0xa22c4e,_0x5ae9ff=>(_0x3165ac[_0x2cc8c6(0x336)](),_0x18db76(_0x5ae9ff,_0xa3434b,_0x384a66,_0xa22c4e)));_0x29d4de[_0x2cc8c6(0x235)](_0x3165ac);});}return{'redos':[],'undos':[]};};this[_0x59f7cf(0x21f)][_0x59f7cf(0x338)]((_0x314def,_0x34b1c3)=>{const _0x41255a=_0x59f7cf,{range:_0x581adc,sheetID:_0x397c0b}=_0x314def,_0x1e5824=this[_0x41255a(0x2b2)][_0x41255a(0x1dc)](_0x581adc,_0x34d0a3=>(_0x1e5824['dispose'](),_0x18db76(_0x34d0a3,_0x34b1c3,_0x397c0b,_0x581adc)));_0x29d4de[_0x41255a(0x235)](_0x1e5824);});};this[_0x1f2093(0x1c2)](a[_0x1f2093(0x2f4)](this[_0x1f2093(0x299)][_0x1f2093(0x3cb)](()=>{_0x38502d();})));}['_toggleOnline'](){const _0xc873e5=_0xa5554e;var _0x2e9f9c,_0x1fcf8b;if(this[_0xc873e5(0x215)]=!0x0,((_0x2e9f9c=this[_0xc873e5(0x2b3)][_0xc873e5(0x2ec)]())==null?void 0x0:_0x2e9f9c['getUnitId']())!==this[_0xc873e5(0x3bf)])return;const _0x50fef9=(_0x1fcf8b=this['_injector'][_0xc873e5(0x23e)](v[_0xc873e5(0x16a)])[_0xc873e5(0x1b7)]())==null?void 0x0:_0x1fcf8b[0x0],_0x4fba4a=this[_0xc873e5(0x2b3)][_0xc873e5(0x2e9)](a['UniverInstanceType'][_0xc873e5(0x2c9)])[_0xc873e5(0x36c)]();_0x50fef9&&_0x4fba4a&&this[_0xc873e5(0x3b7)](_0x4fba4a[_0xc873e5(0x1b2)](),_0x50fef9);}[_0xa5554e(0x1ef)](){const _0x50f745=_0xa5554e;this[_0x50f745(0x215)]=!0x1;}};ve=mt([y(0x2,a[_0xa5554e(0x212)](a[_0xa5554e(0x36a)])),y(0x3,a[_0xa5554e(0x212)](Oe)),y(0x4,a[_0xa5554e(0x212)](u['MemberService'])),y(0x5,a['IUniverInstanceService']),y(0x6,a[_0xa5554e(0x38d)]),y(0x7,a[_0xa5554e(0x212)](v[_0xa5554e(0x217)]))],ve);var Ct=Object[_0xa5554e(0x1fa)],pt=(_0x4be9fc,_0x60a94c,_0x59caad,_0x428f98)=>{const _0x3639be=_0xa5554e;for(var _0x2ea83a=_0x428f98>0x1?void 0x0:_0x428f98?Ct(_0x60a94c,_0x59caad):_0x60a94c,_0xf0c36a=_0x4be9fc[_0x3639be(0x322)]-0x1,_0x442b58;_0xf0c36a>=0x0;_0xf0c36a--)(_0x442b58=_0x4be9fc[_0xf0c36a])&&(_0x2ea83a=_0x442b58(_0x2ea83a)||_0x2ea83a);return _0x2ea83a;},ae=(_0x1f76fa,_0x5c984a)=>(_0x4e4fd0,_0x5d589)=>_0x5c984a(_0x4e4fd0,_0x5d589,_0x1f76fa);let F=class extends a[_0xa5554e(0x264)]{constructor(_0x33c6b2,_0x5835b4,_0x597f5f){const _0x28aa65=_0xa5554e;super(),_(this,'_entities',new Map()),_(this,_0x28aa65(0x219),new I['Subject']()),(this[_0x28aa65(0x2b3)]=_0x33c6b2,this[_0x28aa65(0x2c1)]=_0x5835b4,this['_collabSessionService']=_0x597f5f,this[_0x28aa65(0x269)]());}[_0xa5554e(0x336)](){const _0x568b07=_0xa5554e;super[_0x568b07(0x336)](),this[_0x568b07(0x219)]['complete'](),this[_0x568b07(0x370)][_0x568b07(0x338)](_0x28098a=>_0x28098a[_0x568b07(0x336)]());}[_0xa5554e(0x2fb)](_0x47c532){const _0x305282=_0xa5554e;return this[_0x305282(0x370)][_0x305282(0x2c8)](_0x47c532)?this['_entities'][_0x305282(0x23e)](_0x47c532)[_0x305282(0x30f)]:this[_0x305282(0x219)]['pipe'](I[_0x305282(0x2e8)](_0x25bc6b=>_0x25bc6b[_0x305282(0x3bf)]===_0x47c532),I[_0x305282(0x2e1)](_0x2270c1=>_0x2270c1[_0x305282(0x30f)]));}[_0xa5554e(0x269)](){const _0x8ec5e9=_0xa5554e;this[_0x8ec5e9(0x2b3)][_0x8ec5e9(0x2c4)](a[_0x8ec5e9(0x1a1)][_0x8ec5e9(0x2c9)])[_0x8ec5e9(0x2be)](I[_0x8ec5e9(0x2a6)](this[_0x8ec5e9(0x197)]))[_0x8ec5e9(0x3cb)](async _0x47549c=>{const _0x4523ff=_0x8ec5e9,_0x1e714a=_0x47549c['getUnitId'](),_0x16e82f=await this[_0x4523ff(0x3b9)](_0x1e714a);this[_0x4523ff(0x219)]['next'](_0x16e82f),this[_0x4523ff(0x370)][_0x4523ff(0x2eb)](_0x1e714a,_0x16e82f);}),this[_0x8ec5e9(0x2b3)][_0x8ec5e9(0x2c4)](a[_0x8ec5e9(0x1a1)]['UNIVER_DOC'])[_0x8ec5e9(0x2be)](I[_0x8ec5e9(0x2a6)](this['dispose$']))['pipe'](I[_0x8ec5e9(0x2e8)](_0x26d43c=>!_0x26d43c[_0x8ec5e9(0x2bb)]()[_0x8ec5e9(0x3a2)]('__')))[_0x8ec5e9(0x3cb)](async _0x19a59a=>{const _0x5e78f2=_0x8ec5e9,_0x3f5023=_0x19a59a[_0x5e78f2(0x2bb)](),_0x3bcbb9=await this[_0x5e78f2(0x206)](_0x3f5023);this[_0x5e78f2(0x219)]['next'](_0x3bcbb9),this[_0x5e78f2(0x370)][_0x5e78f2(0x2eb)](_0x3f5023,_0x3bcbb9);}),I[_0x8ec5e9(0x25b)](this[_0x8ec5e9(0x2b3)][_0x8ec5e9(0x2a2)](a[_0x8ec5e9(0x1a1)][_0x8ec5e9(0x3fb)]),this['_univerInstanceService'][_0x8ec5e9(0x2a2)](a[_0x8ec5e9(0x1a1)][_0x8ec5e9(0x2c9)]))[_0x8ec5e9(0x2be)](I['takeUntil'](this['dispose$']))[_0x8ec5e9(0x3cb)](_0x79602=>{const _0x15ccee=_0x8ec5e9,_0x46d399=_0x79602[_0x15ccee(0x2bb)](),_0x5d0920=this[_0x15ccee(0x370)][_0x15ccee(0x23e)](_0x46d399);_0x5d0920&&(_0x5d0920[_0x15ccee(0x336)](),this[_0x15ccee(0x370)][_0x15ccee(0x18a)](_0x46d399));});}async[_0xa5554e(0x3b9)](_0x17aa6b){const _0xccff93=_0xa5554e,_0x301cd6=await this[_0xccff93(0x1fd)][_0xccff93(0x20e)](_0x17aa6b),_0x2fbc21=this[_0xccff93(0x2c1)][_0xccff93(0x3c0)](ve,_0x17aa6b,_0x301cd6);return _0x2fbc21['init'](),_0x2fbc21;}async[_0xa5554e(0x206)](_0x524c67){const _0x421623=_0xa5554e,_0x357dff=await this[_0x421623(0x1fd)][_0x421623(0x20e)](_0x524c67),_0x4e1c9d=this[_0x421623(0x2c1)]['createInstance'](me,_0x524c67,_0x357dff);return _0x4e1c9d['init'](),_0x4e1c9d;}};function _0x3f8c(_0x6a7c06,_0x20a590){const _0x3a8200=_0x3a82();return _0x3f8c=function(_0x3f8c81,_0x502256){_0x3f8c81=_0x3f8c81-0x154;let _0xddb32c=_0x3a8200[_0x3f8c81];return _0xddb32c;},_0x3f8c(_0x6a7c06,_0x20a590);}F=pt([ae(0x0,a[_0xa5554e(0x204)]),ae(0x1,a['Inject'](a['Injector'])),ae(0x2,a[_0xa5554e(0x212)](u[_0xa5554e(0x39a)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x4795c7,_0x2a998e){const _0x416398=_0xa5554e;let {radius:_0x5b1619,width:_0x3b9eaf,height:_0x42376a}=_0x2a998e;_0x5b1619=_0x5b1619!=null?_0x5b1619:0x0,_0x3b9eaf=_0x3b9eaf!=null?_0x3b9eaf:0x1e,_0x42376a=_0x42376a!=null?_0x42376a:0x1e;let _0x40be84=0x0,_0x445f52=0x0,_0x1446d6=0x0;_0x40be84=_0x445f52=_0x1446d6=Math['min'](_0x5b1619,_0x3b9eaf/0x2,_0x42376a/0x2),_0x4795c7[_0x416398(0x362)](),_0x4795c7[_0x416398(0x385)](_0x40be84,0x0),_0x4795c7[_0x416398(0x38a)](_0x3b9eaf-_0x445f52,0x0),_0x4795c7[_0x416398(0x20d)](_0x3b9eaf-_0x445f52,_0x445f52,_0x445f52,Math['PI']*0x3/0x2,0x0,!0x1),_0x4795c7[_0x416398(0x38a)](_0x3b9eaf,_0x42376a-_0x1446d6),_0x4795c7[_0x416398(0x20d)](_0x3b9eaf-_0x1446d6,_0x42376a-_0x1446d6,_0x1446d6,0x0,Math['PI']/0x2,!0x1),_0x4795c7[_0x416398(0x38a)](0x0,_0x42376a),_0x4795c7[_0x416398(0x38a)](0x0,_0x40be84),_0x4795c7[_0x416398(0x20d)](_0x40be84,_0x40be84,_0x40be84,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4795c7['closePath'](),_0x2a998e[_0x416398(0x2bf)]&&(_0x4795c7[_0x416398(0x394)](),_0x4795c7[_0x416398(0x3a8)]=_0x2a998e[_0x416398(0x2bf)],_0x2a998e['fillRule']===_0x416398(0x1c4)?_0x4795c7[_0x416398(0x2bf)](_0x416398(0x1c4)):_0x4795c7[_0x416398(0x2bf)](),_0x4795c7[_0x416398(0x37a)]());}class ne extends C[_0xa5554e(0x3c7)]{constructor(_0x555dc5,_0x545b4d){const _0x83bc17=_0xa5554e;super(_0x555dc5,_0x545b4d),_(this,_0x83bc17(0x3df)),_(this,_0x83bc17(0x319)),(this['color']=_0x545b4d==null?void 0x0:_0x545b4d[_0x83bc17(0x3df)],this[_0x83bc17(0x319)]=_0x545b4d==null?void 0x0:_0x545b4d[_0x83bc17(0x319)]);}static['drawWith'](_0x4fc2fc,_0x5e629d){const _0x4ba300=_0xa5554e,{text:_0x3f0aaf,color:_0x221619}=_0x5e629d;_0x4fc2fc[_0x4ba300(0x394)](),_0x4fc2fc[_0x4ba300(0x1ea)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x9f192e=_0x4fc2fc['measureText'](_0x3f0aaf)[_0x4ba300(0x1cc)],_0xf71ebd=Math['min'](_0x9f192e+0x2*ce,Ne);Ot(_0x4fc2fc,{'height':K,'radius':0x4,'width':_0xf71ebd,'fill':_0x221619}),_0x4fc2fc[_0x4ba300(0x3a8)]=_0x4ba300(0x242);const _0x3af96b=ce,_0x74af89=K-Tt,_0x34c0ef=Ne-0x2*ce;if(_0x9f192e>_0x34c0ef){let _0x57a35e='',_0x269600=0x0;for(const _0x2e9603 of _0x3f0aaf){const _0x551974=_0x4fc2fc[_0x4ba300(0x27c)](_0x2e9603)[_0x4ba300(0x1cc)];if(_0x269600+_0x551974<=_0x34c0ef-_0x4fc2fc['measureText'](_0x4ba300(0x29b))[_0x4ba300(0x1cc)])_0x57a35e+=_0x2e9603,_0x269600+=_0x551974;else{_0x57a35e+='...';break;}}_0x4fc2fc[_0x4ba300(0x3c6)](_0x57a35e,_0x3af96b,_0x74af89);}else _0x4fc2fc[_0x4ba300(0x3c6)](_0x3f0aaf,_0x3af96b,_0x74af89);_0x4fc2fc[_0x4ba300(0x37a)]();}[_0xa5554e(0x23b)](_0x1ed9f0){const _0x260a30=_0xa5554e;ne[_0x260a30(0x3e5)](_0x1ed9f0,this);}}const le=_0xa5554e(0x230),Rt=_0xa5554e(0x3a3),bt='collab-rect-range-',H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0xa5554e(0x1fc);class Ue{constructor(_0x2fb6b8,_0x485a63,_0x59c7cf,_0x1c20e3){const _0x40c2a2=_0xa5554e;_(this,_0x40c2a2(0x26c),[]),_(this,_0x40c2a2(0x273),null),_(this,'_textBubble',null),_(this,_0x40c2a2(0x369),null),_(this,_0x40c2a2(0x3c5),null),_(this,_0x40c2a2(0x290),null),(this[_0x40c2a2(0x3a0)]=_0x2fb6b8,this['_scene']=_0x485a63,this[_0x40c2a2(0x1ed)]=_0x59c7cf,this[_0x40c2a2(0x1c7)]=_0x1c20e3,this[_0x40c2a2(0x2e0)]());}set[_0xa5554e(0x398)](_0x3ddd76){const _0x1ed7f5=_0xa5554e;_0x3ddd76?(this[_0x1ed7f5(0x369)]&&this['_anchorDot'][_0x1ed7f5(0x3ae)](),this[_0x1ed7f5(0x315)]&&this['_textBubble'][_0x1ed7f5(0x383)]()):(this[_0x1ed7f5(0x369)]&&this['_anchorDot'][_0x1ed7f5(0x383)](),this['_textBubble']&&this['_textBubble'][_0x1ed7f5(0x3ae)]());}['dispose'](){const _0x45b346=_0xa5554e;for(const _0x442db9 of this[_0x45b346(0x26c)])_0x442db9['dispose']();this['_textBubble']&&this[_0x45b346(0x315)][_0x45b346(0x336)](),this['_anchorDot']&&this[_0x45b346(0x369)][_0x45b346(0x336)](),this[_0x45b346(0x273)]&&this[_0x45b346(0x273)][_0x45b346(0x336)](),this[_0x45b346(0x290)]&&this[_0x45b346(0x290)]();}[_0xa5554e(0x2e0)](){const _0x1a4da9=_0xa5554e;var _0x3841c8;const {_docSkeleton:_0x1e4d59,_document:_0x108712}=this,{color:_0x3e15ec,name:_0x2134bd,ranges:_0xc666f2}=this[_0x1a4da9(0x3a0)],_0x4638d5=_0x108712[_0x1a4da9(0x365)](),{docsLeft:_0x46571e,docsTop:_0x2f35df}=_0x4638d5,_0x5d46ed=new p['NodePositionConvertToCursor'](_0x4638d5,_0x1e4d59);for(const {startOffset:_0x3489b7,endOffset:_0x59073d,rangeType:_0x498fb6,segmentId:_0x12be91,segmentPage:_0x4675e1,collapsed:_0x2ef8c5,isActive:_0x84cf90}of _0xc666f2){const _0x2c8d44=_0x1e4d59[_0x1a4da9(0x1c0)](_0x3489b7,!0x0,_0x12be91,_0x4675e1);let _0x211e90=_0x1e4d59[_0x1a4da9(0x1c0)](_0x59073d,!0x0,_0x12be91,_0x4675e1);if(_0x211e90==null&&(_0x211e90=_0x1e4d59[_0x1a4da9(0x1c0)](_0x59073d-0x1,!0x1,_0x12be91,_0x4675e1)),_0x84cf90){const {contentBoxPointGroup:_0x17deec}=_0x5d46ed[_0x1a4da9(0x2fd)](_0x211e90,_0x211e90);if(_0x17deec[_0x1a4da9(0x322)]===0x0)continue;this[_0x1a4da9(0x21e)](_0x3e15ec,_0x17deec,_0x46571e,_0x2f35df,_0x2134bd),this[_0x1a4da9(0x290)]=this['_handleHover']();}if(_0x2c8d44&&_0x211e90){if(_0x498fb6===a[_0x1a4da9(0x34b)][_0x1a4da9(0x213)]){const _0x2dfce6=new p['NodePositionConvertToRectRange'](_0x4638d5,_0x1e4d59),{pointGroup:_0x1b87e2}=(_0x3841c8=_0x2dfce6[_0x1a4da9(0x2fd)](_0x2c8d44,_0x211e90))!=null?_0x3841c8:{};if(_0x1b87e2==null||_0x1b87e2['length']===0x0)continue;this['_drawRectRange'](_0x3e15ec,_0x1b87e2,_0x46571e,_0x2f35df);}else{if(!_0x2ef8c5){const {borderBoxPointGroup:_0x2c6d8e}=_0x5d46ed[_0x1a4da9(0x2fd)](_0x2c8d44,_0x211e90);if(_0x2c6d8e[_0x1a4da9(0x322)]===0x0)continue;this['_drawTextRange'](_0x3e15ec,_0x2c6d8e,_0x46571e,_0x2f35df);}}}}}[_0xa5554e(0x21e)](_0x17961d,_0x30538f,_0xc7c4ac,_0x10230e,_0x2944a5){const _0x215a4c=_0xa5554e,_0xcc28f=this[_0x215a4c(0x320)](_0x30538f),{left:_0x1b2f6f,top:_0x271f49,height:_0x3e30ef}=_0xcc28f,_0x3a2474=this['_getScale'](),_0x2c8e35=Nt/_0x3a2474,_0x3ab39e=new C['Rect'](le+a['generateRandomId'](H),{'left':_0x1b2f6f+_0xc7c4ac-_0x2c8e35,'top':_0x271f49+_0x10230e,'height':_0x3e30ef,'width':Dt,'fill':_0x17961d||C[_0x215a4c(0x21b)](a[_0x215a4c(0x3db)][_0x215a4c(0x1d7)],0x0),'strokeWidth':_0x2c8e35,'stroke':Ut,'evented':!0x0});this[_0x215a4c(0x273)]=_0x3ab39e,this[_0x215a4c(0x34f)][_0x215a4c(0x3ef)](_0x3ab39e,p[_0x215a4c(0x38e)]);const _0x11ab26=new C['Rect'](le+a[_0x215a4c(0x174)](H),{'left':_0x1b2f6f+_0xc7c4ac-_0x2c8e35,'top':_0x271f49+_0x10230e-_e/0x2,'height':_e,'width':_e,'fill':_0x17961d||C['getColor'](a['COLORS'][_0x215a4c(0x1d7)],0x0),'strokeWidth':0x0,'stroke':_0x17961d||C[_0x215a4c(0x21b)](a[_0x215a4c(0x3db)]['black'],0x0),'evented':!0x1});this[_0x215a4c(0x369)]=_0x11ab26,this[_0x215a4c(0x34f)][_0x215a4c(0x3ef)](_0x11ab26,p[_0x215a4c(0x38e)]);const _0x724555=new ne(le+a[_0x215a4c(0x174)](H),{'left':_0x1b2f6f+_0xc7c4ac-_0x2c8e35,'top':_0x271f49+_0x10230e-K,'text':_0x2944a5,'color':_0x17961d});this[_0x215a4c(0x315)]=_0x724555,this[_0x215a4c(0x34f)][_0x215a4c(0x3ef)](_0x724555,p['TEXT_RANGE_LAYER_INDEX']),this[_0x215a4c(0x398)]=!0x1;}[_0xa5554e(0x248)](){const _0x8337f6=_0xa5554e,_0x4a883c=this[_0x8337f6(0x273)][_0x8337f6(0x1f5)]['subscribeEvent'](()=>{const _0x566028=_0x8337f6;this[_0x566028(0x398)]=!0x0;}),_0x13619e=this[_0x8337f6(0x273)][_0x8337f6(0x334)][_0x8337f6(0x3ff)](()=>{const _0x36f245=_0x8337f6;this[_0x36f245(0x3c5)]&&clearTimeout(this['_hideTimer']),this[_0x36f245(0x3c5)]=setTimeout(()=>{const _0x11eb60=_0x36f245;this[_0x11eb60(0x398)]=!0x1;},0x7d0);});return()=>{const _0x50fcc5=_0x8337f6;_0x4a883c['unsubscribe'](),_0x13619e[_0x50fcc5(0x251)]();};}[_0xa5554e(0x342)](_0x174115,_0x4a1038,_0x28bc4b,_0x31b95c){const _0x304b5e=_0xa5554e,_0x1a8e67=new a[(_0x304b5e(0x233))](_0x174115)[_0x304b5e(0x2fa)](0.2)['toRgbString'](),_0x1c7eab=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x4a1038,'fill':_0x1a8e67||C[_0x304b5e(0x21b)](a[_0x304b5e(0x3db)][_0x304b5e(0x1d7)],0.2),'left':_0x28bc4b,'top':_0x31b95c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x304b5e(0x26c)][_0x304b5e(0x3a6)](_0x1c7eab),this[_0x304b5e(0x34f)]['addObject'](_0x1c7eab,p[_0x304b5e(0x38e)]);}[_0xa5554e(0x255)](_0x2041e7,_0x2d830f,_0x1738e2,_0x4edd69){const _0x63fa63=_0xa5554e,_0x365a6c=new a[(_0x63fa63(0x233))](_0x2041e7)[_0x63fa63(0x2fa)](0.2)[_0x63fa63(0x2a8)](),_0x50799d=new C[(_0x63fa63(0x15d))](bt+a[_0x63fa63(0x174)](H),{'pointsGroup':_0x2d830f,'fill':_0x365a6c||C[_0x63fa63(0x21b)](a['COLORS']['black'],0.2),'left':_0x1738e2,'top':_0x4edd69,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x63fa63(0x3a6)](_0x50799d),this[_0x63fa63(0x34f)][_0x63fa63(0x3ef)](_0x50799d,p[_0x63fa63(0x38e)]);}[_0xa5554e(0x320)](_0x5f1ae0){const _0x159421=_0x5f1ae0[0x0],_0x373528=_0x159421[0x0],_0x4ad1a1=_0x159421[0x2],{x:_0x43d047,y:_0x54f561}=_0x373528,{x:_0x1c57a6,y:_0x2fa1f6}=_0x4ad1a1;return{'left':_0x43d047,'top':_0x54f561,'width':_0x1c57a6-_0x43d047,'height':_0x2fa1f6-_0x54f561};}[_0xa5554e(0x1ac)](){const _0x169c0f=_0xa5554e,{scaleX:_0x479455,scaleY:_0x543af5}=this[_0x169c0f(0x34f)][_0x169c0f(0x2d0)]();return Math['max'](_0x479455,_0x543af5);}}var Lt=Object[_0xa5554e(0x1fa)],Mt=(_0x52e7df,_0x57e7ac,_0x14f5ae,_0xd433d8)=>{const _0x529360=_0xa5554e;for(var _0x25c09f=_0xd433d8>0x1?void 0x0:_0xd433d8?Lt(_0x57e7ac,_0x14f5ae):_0x57e7ac,_0x1ecbd7=_0x52e7df[_0x529360(0x322)]-0x1,_0x252c45;_0x1ecbd7>=0x0;_0x1ecbd7--)(_0x252c45=_0x52e7df[_0x1ecbd7])&&(_0x25c09f=_0x252c45(_0x25c09f)||_0x25c09f);return _0x25c09f;},z=(_0x4fe266,_0x428887)=>(_0x5e77a9,_0x2093d5)=>_0x428887(_0x5e77a9,_0x2093d5,_0x4fe266);let ge=class extends a[_0xa5554e(0x264)]{constructor(_0x180c36,_0x461211,_0x57b70d,_0x4b09ac,_0x14e3a9){const _0x5a97f3=_0xa5554e;super(),_(this,'_cursorShapes',[]),_(this,_0x5a97f3(0x238),[]),(this[_0x5a97f3(0x358)]=_0x180c36,this['_docSkeletonManagerService']=_0x461211,this[_0x5a97f3(0x2b9)]=_0x57b70d,this[_0x5a97f3(0x2a7)]=_0x4b09ac,this[_0x5a97f3(0x406)]=_0x14e3a9,this['_init']());}[_0xa5554e(0x269)](){const _0x487ad9=_0xa5554e,_0x1af5af=this['_context'][_0x487ad9(0x401)],_0x1e874d=this[_0x487ad9(0x307)];this['disposeWithMe'](I[_0x487ad9(0x1ff)]([this[_0x487ad9(0x2b9)]['getCollabCursors$'](_0x1af5af),this[_0x487ad9(0x406)][_0x487ad9(0x177)]])[_0x487ad9(0x2be)]($[_0x487ad9(0x324)](([_0x2bceb4,_0x266594])=>({'skeleton':_0x1e874d[_0x487ad9(0x39e)](),'cursors':[..._0x2bceb4[_0x487ad9(0x344)]()][_0x487ad9(0x400)](_0x427d0e=>({..._0x427d0e,'color':this[_0x487ad9(0x406)][_0x487ad9(0x1c1)](_0x427d0e[_0x487ad9(0x3df)])}))})))[_0x487ad9(0x3cb)](_0x20388b=>{const _0x5b02f6=_0x487ad9;if(this['_removeCollabCursors'](),_0x20388b){const {skeleton:_0x4db7cf,cursors:_0x28fa1a}=_0x20388b;this[_0x5b02f6(0x1b4)](_0x4db7cf,_0x28fa1a);}})),this[_0x487ad9(0x3f2)](),this['_initCommandExecutedListener']();}[_0xa5554e(0x1b4)](_0x4b6bd4,_0x49ccea){const _0x53b476=_0xa5554e,{scene:_0x4da12f,mainComponent:_0x178c1c}=this['_context'],_0xdf44f8=_0x49ccea['map'](_0x189cfa=>new Ue(_0x189cfa,_0x4da12f,_0x4b6bd4,_0x178c1c));this['_cursorShapes']=_0xdf44f8,this[_0x53b476(0x238)]=_0x49ccea;}['_refreshCollabCursors'](){const _0x549d3c=_0xa5554e;this[_0x549d3c(0x1c3)]();const {scene:_0x4108cc,mainComponent:_0x99fa47}=this[_0x549d3c(0x358)],_0x5ccb28=this['_docSkeletonManagerService'][_0x549d3c(0x39e)](),_0x2adac9=this['_cursors']['map'](_0x4cdf4a=>new Ue(_0x4cdf4a,_0x4108cc,_0x5ccb28,_0x99fa47));this[_0x549d3c(0x2d2)]=_0x2adac9;}[_0xa5554e(0x1c3)](){const _0x5e2f85=_0xa5554e;this['_cursorShapes'][_0x5e2f85(0x338)](_0x5c830f=>_0x5c830f[_0x5e2f85(0x336)]()),this[_0x5e2f85(0x2d2)]=[];}['_initCommandExecutedListener'](){const _0x360476=_0xa5554e,_0x369fe3=[p[_0x360476(0x2e5)]['id']];this[_0x360476(0x1c2)](this['_commandService']['onCommandExecuted'](_0x2b00fe=>{const _0x48d564=_0x360476;_0x369fe3[_0x48d564(0x198)](_0x2b00fe['id'])&&_0x2b00fe[_0x48d564(0x161)][_0x48d564(0x401)]===this[_0x48d564(0x358)][_0x48d564(0x401)]&&this['_refreshCollabCursors']();}));}[_0xa5554e(0x3f2)](){const _0x47fe94=_0xa5554e;this[_0x47fe94(0x1c2)](a[_0x47fe94(0x1f4)](this[_0x47fe94(0x358)][_0x47fe94(0x2b5)][_0x47fe94(0x287)])['pipe']($[_0x47fe94(0x2e8)](_0x5698b6=>_0x5698b6['type']===C[_0x47fe94(0x3cc)]['resize']),$['throttleTime'](0x10))[_0x47fe94(0x3cb)](()=>{const _0x5c9f90=_0x47fe94;this[_0x5c9f90(0x36d)]();}));}};ge=Mt([z(0x1,a[_0xa5554e(0x212)](V[_0xa5554e(0x16f)])),z(0x2,a[_0xa5554e(0x212)](F)),z(0x3,a['ICommandService']),z(0x4,a[_0xa5554e(0x212)](a[_0xa5554e(0x22a)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0xa5554e(0x3c7)]{constructor(_0x1f3d5b,_0x3b2f35){const _0x2f0ba7=_0xa5554e;super(_0x1f3d5b,_0x3b2f35),_(this,_0x2f0ba7(0x3ed)),_(this,'_hovered',!0x1),_(this,_0x2f0ba7(0x167)),_(this,'_name',''),_(this,'_labelPosition',_0x2f0ba7(0x1d0)),_(this,_0x2f0ba7(0x3f4)),(_0x3b2f35&&this['setShapeProps'](_0x3b2f35),this[_0x2f0ba7(0x1f5)][_0x2f0ba7(0x3ff)](()=>this[_0x2f0ba7(0x183)]({'hovered':!0x0})),this[_0x2f0ba7(0x334)][_0x2f0ba7(0x3ff)](()=>this[_0x2f0ba7(0x183)]({'hovered':!0x1})));}[_0xa5554e(0x183)](_0x1866fb){const _0x28df01=_0xa5554e;var _0x467ca9,_0x4ceaa7,_0x35a566,_0x598f9a,_0x57949f,_0x12d345;this['_color']=(_0x467ca9=_0x1866fb[_0x28df01(0x3df)])!=null?_0x467ca9:this['_color'],this[_0x28df01(0x38f)]=(_0x4ceaa7=_0x1866fb[_0x28df01(0x2c0)])!=null?_0x4ceaa7:this[_0x28df01(0x38f)],this[_0x28df01(0x167)]=(_0x35a566=_0x1866fb[_0x28df01(0x3bb)])!=null?_0x35a566:this['_range'],this[_0x28df01(0x1e2)]=(_0x598f9a=_0x1866fb[_0x28df01(0x388)])!=null?_0x598f9a:this[_0x28df01(0x1e2)],this['_labelPosition']=(_0x57949f=_0x1866fb['labelPosition'])!=null?_0x57949f:this[_0x28df01(0x1ee)],this[_0x28df01(0x3f4)]=(_0x12d345=_0x1866fb[_0x28df01(0x208)])!=null?_0x12d345:this[_0x28df01(0x3f4)],this[_0x28df01(0x2ae)]({'width':_0x1866fb['width'],'height':_0x1866fb[_0x28df01(0x1b6)]});}['onMouseMove'](_0x13ba36){const _0x5e5408=_0xa5554e,{row:_0x543b4a,column:_0x15e782}=_0x13ba36;if(_0x543b4a>=this[_0x5e5408(0x167)][_0x5e5408(0x19d)]&&_0x543b4a<=this['_range'][_0x5e5408(0x186)]&&_0x15e782>=this[_0x5e5408(0x167)][_0x5e5408(0x3a7)]&&_0x15e782<=this[_0x5e5408(0x167)][_0x5e5408(0x240)]){this[_0x5e5408(0x183)]({'hovered':!0x0});return;}this[_0x5e5408(0x183)]({'hovered':!0x1});}['triggerDblclick'](_0x20238a){return!0x1;}['_draw'](_0x1d5039){const _0x30416c=_0xa5554e;C[_0x30416c(0x2ab)][_0x30416c(0x3e5)](_0x1d5039,{'width':this[_0x30416c(0x1cc)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x30416c(0x3ed)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x30416c(0x38f)]&&(_0x1d5039['save'](),_0x1d5039[_0x30416c(0x1d3)](0x1,0x0,0x0,0x1,this['width'],this[_0x30416c(0x1ee)]===_0x30416c(0x323)?0x0:-K),ne[_0x30416c(0x3e5)](_0x1d5039,{'text':this['_name'],'color':this[_0x30416c(0x3ed)]}),_0x1d5039['restore']());}}var wt=Object[_0xa5554e(0x1fa)],yt=(_0x507366,_0x1c3a7c,_0x2f9c5b,_0x3b10f1)=>{const _0x28c00f=_0xa5554e;for(var _0x2438b3=_0x3b10f1>0x1?void 0x0:_0x3b10f1?wt(_0x1c3a7c,_0x2f9c5b):_0x1c3a7c,_0x5da9ca=_0x507366[_0x28c00f(0x322)]-0x1,_0x29c594;_0x5da9ca>=0x0;_0x5da9ca--)(_0x29c594=_0x507366[_0x5da9ca])&&(_0x2438b3=_0x29c594(_0x2438b3)||_0x2438b3);return _0x2438b3;},he=(_0x66b85e,_0x478b74)=>(_0x257432,_0x3d8c98)=>_0x478b74(_0x257432,_0x3d8c98,_0x66b85e);const xt=0x1389;let Ee=class extends a[_0xa5554e(0x264)]{constructor(_0x3e0f6b,_0x24ff76,_0x1c7888,_0x5a93d2){const _0x4922e1=_0xa5554e;super(),_(this,_0x4922e1(0x238),new Set()),_(this,_0x4922e1(0x2af),null),(this[_0x4922e1(0x358)]=_0x3e0f6b,this[_0x4922e1(0x26a)]=_0x24ff76,this[_0x4922e1(0x2b9)]=_0x1c7888,this[_0x4922e1(0x406)]=_0x5a93d2,this[_0x4922e1(0x269)]());}[_0xa5554e(0x269)](){const _0x39a05f=_0xa5554e;this[_0x39a05f(0x26a)][_0x39a05f(0x2ba)][_0x39a05f(0x2be)]($[_0x39a05f(0x2a6)](this[_0x39a05f(0x197)]),$[_0x39a05f(0x2e1)](_0x450017=>{const _0x4c18e1=_0x39a05f;if(_0x450017){const _0x14f783=_0x450017['sheetId'];return I[_0x4c18e1(0x1ff)](this[_0x4c18e1(0x2b9)]['getCollabCursors$'](this[_0x4c18e1(0x358)]['unitId']),this[_0x4c18e1(0x406)][_0x4c18e1(0x177)])['pipe']($[_0x4c18e1(0x324)](([_0x311b4d,_0x2b3b4c])=>{const _0x470691=new Map();return _0x311b4d['forEach']((_0x38da1c,_0x5afe32)=>{const _0x119cc7=_0x3f8c;if(_0x38da1c['sheetID']===_0x14f783){const _0x14d56d={..._0x38da1c};_0x14d56d['color']=this[_0x119cc7(0x406)][_0x119cc7(0x1c1)](_0x38da1c[_0x119cc7(0x3df)]),_0x470691['set'](_0x5afe32,_0x14d56d);}}),{'skeleton':_0x450017,'cursors':_0x470691};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x39a05f(0x3cb)](({skeleton:_0x30f518,cursors:_0x4b9d85})=>{const _0x4c15a6=_0x39a05f;this[_0x4c15a6(0x1c3)](),_0x30f518&&this[_0x4c15a6(0x1b4)](_0x30f518,_0x4b9d85);}),this[_0x39a05f(0x26a)][_0x39a05f(0x2ba)][_0x39a05f(0x3cb)](_0x411c19=>{const _0xbe30ad=_0x39a05f;if(_0x411c19==null)return;const {skeleton:_0x28c8df}=_0x411c19,{scene:_0x325273}=this[_0xbe30ad(0x358)];_0x325273[_0xbe30ad(0x2ef)][_0xbe30ad(0x3ff)](a[_0xbe30ad(0x341)](_0x2dafee=>{const _0x14372f=_0xbe30ad;var _0x329e59,_0x555e22;const {offsetX:_0x3dbc71,offsetY:_0x2a2935}=_0x2dafee,{x:_0x540f49,y:_0x347864}=_0x325273[_0x14372f(0x27b)](C[_0x14372f(0x2f6)][_0x14372f(0x3fa)]([_0x3dbc71,_0x2a2935])),{scaleX:_0x22dea7,scaleY:_0x4a73d6}=_0x325273[_0x14372f(0x2d0)](),_0x58a960=_0x325273['getViewport'](C[_0x14372f(0x246)]['VIEW_MAIN']),_0x2b2c41=_0x325273[_0x14372f(0x2b7)](C[_0x14372f(0x2f6)][_0x14372f(0x3fa)]([_0x540f49,_0x347864]),_0x58a960),_0x3f34a3=_0x28c8df[_0x14372f(0x22d)](_0x3dbc71,_0x2a2935,_0x22dea7,_0x4a73d6,_0x2b2c41);((_0x329e59=this[_0x14372f(0x2af)])==null?void 0x0:_0x329e59['column'])===_0x3f34a3['column']&&((_0x555e22=this[_0x14372f(0x2af)])==null?void 0x0:_0x555e22[_0x14372f(0x24a)])===_0x3f34a3[_0x14372f(0x24a)]||this[_0x14372f(0x238)][_0x14372f(0x338)](_0x1b972d=>{const _0x4336d9=_0x14372f;_0x1b972d[_0x4336d9(0x26d)](_0x3f34a3);});},0x64));});}['_updateCollabCursors'](_0x16d87e,_0x4df555){const _0x4298c1=_0xa5554e;var _0xeb9d1e;const _0x59c030=(_0xeb9d1e=this[_0x4298c1(0x26a)]['getCurrent']())==null?void 0x0:_0xeb9d1e['skeleton'];if(!_0x59c030)return;const _0x466674=this[_0x4298c1(0x1ba)]();if(!_0x466674)return;this[_0x4298c1(0x238)][_0x4298c1(0x338)](_0x409a83=>{const _0x510dce=_0x4298c1;_0x409a83[_0x510dce(0x1e1)]();});const {scene:_0x1f61eb}=_0x466674,_0x108a6a=$t(Array[_0x4298c1(0x26b)](_0x4df555[_0x4298c1(0x344)]()))[_0x4298c1(0x324)](_0x5acde2=>{const _0x493555=_0x4298c1,{color:_0x786c87,range:_0x3bf5bf,name:_0x5f2b9d,selection:_0x1aad93,sheetID:_0x29ef85}=_0x5acde2,{startColumn:_0x3a1b9c,startRow:_0x5b2e02,endColumn:_0x25707d,endRow:_0x4521b4}=_0x3bf5bf,_0x3c2588=J[_0x493555(0x2d5)](_0x5b2e02,_0x3a1b9c,_0x1f61eb,_0x59c030),_0x494b1c=J[_0x493555(0x2d5)](_0x4521b4,_0x25707d,_0x1f61eb,_0x59c030),{columnHeaderHeightAndMarginTop:_0x487c5b}=_0x59c030,{startX:_0x42a9ba,startY:_0xa5d51a}=_0x3c2588,{endX:_0x3374b2,endY:_0x231b76}=_0x494b1c,_0x3a0db6=_0x3374b2-_0x42a9ba,_0x186087=_0x231b76-_0xa5d51a,_0x107da4={'labelPosition':_0xa5d51a-_0x487c5b>=K?_0x493555(0x1d0):_0x493555(0x323),'sheetID':_0x29ef85,'range':_0x3bf5bf,'color':_0x786c87,'name':_0x5f2b9d,'selection':_0x1aad93,'left':_0x42a9ba,'top':_0xa5d51a,'width':_0x3a0db6,'height':_0x186087,'evented':!0x1,'zIndex':xt};return new Fe(_0x5f2b9d,_0x107da4);});_0x1f61eb[_0x4298c1(0x1f1)](_0x108a6a,At),this['_cursors']=new Set(_0x108a6a);}[_0xa5554e(0x1c3)](){const _0x133d4b=_0xa5554e;var _0x548a70;(_0x548a70=this[_0x133d4b(0x238)])==null||_0x548a70[_0x133d4b(0x338)](_0x3bc12c=>_0x3bc12c[_0x133d4b(0x336)]());}['_getSheetObject'](){const _0x1dfbbe=_0xa5554e;return J['getSheetObject'](this[_0x1dfbbe(0x358)]['unit'],this[_0x1dfbbe(0x358)]);}};Ee=yt([he(0x1,a['Inject'](J[_0xa5554e(0x3ea)])),he(0x2,a[_0xa5554e(0x212)](F)),he(0x3,a['Inject'](a[_0xa5554e(0x22a)]))],Ee);function $t(_0x165ca1){const _0x6244df=_0xa5554e,_0x48cb33=new Map();return _0x165ca1['forEach'](_0x1610eb=>{const _0x1f2feb=_0x3f8c;if(_0x48cb33['has'](_0x1610eb[_0x1f2feb(0x3ec)])){const _0x5bbc6a=_0x48cb33[_0x1f2feb(0x23e)](_0x1610eb[_0x1f2feb(0x3ec)]);_0x5bbc6a[_0x1f2feb(0x388)]+=',\x20'+_0x1610eb[_0x1f2feb(0x388)];}else _0x48cb33['set'](_0x1610eb[_0x1f2feb(0x3ec)],_0x1610eb);}),Array[_0x6244df(0x26b)](_0x48cb33[_0x6244df(0x344)]());}var Bt=Object[_0xa5554e(0x1fa)],Ft=(_0x25e543,_0x54f419,_0x1f5639,_0x5505a1)=>{for(var _0x50a56b=_0x5505a1>0x1?void 0x0:_0x5505a1?Bt(_0x54f419,_0x1f5639):_0x54f419,_0x1671d8=_0x25e543['length']-0x1,_0x2de9b8;_0x1671d8>=0x0;_0x1671d8--)(_0x2de9b8=_0x25e543[_0x1671d8])&&(_0x50a56b=_0x2de9b8(_0x50a56b)||_0x50a56b);return _0x50a56b;},x=(_0x22a9b9,_0x159462)=>(_0x3a5754,_0x1732c6)=>_0x159462(_0x3a5754,_0x1732c6,_0x22a9b9);function _0x3a82(){const _0x2a0fc6=['_scene','UNAUTHENTICATED','YUUMI_ALL_TABLES_IS_INVALID','ticket','_colorAssignService','_showGuardMessage','entries','IBeforeCloseService','_saveCache','_context','formula.calculation.waiting','history','className','START_CALCULATION','loadOfflineData','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_localCacheService','reconnect','onRendered','beginPath','1199rsAnnp','_getSessionTicket','getOffsetConfig','TOO_MANY_REQUESTS','permission.content','FormulaExecutedStateType','_anchorDot','Injector','UniverIcon','getActiveSheet','_refreshCollabCursors','deepClone','_send','_entities','handleIRemoveCol','DesktopCollaborationStatusDisplayController','_hasFormulaInDirtyRanges','HEADER_MENU','WebSocketService','serializeRangeWithSheet','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','use','APPLY_REVISION_CONFILICT','restore','TEXT','function','UPDATE_CURSOR','clipPath','setItem','_toggleOnline','YUUMI_CONNECTOR_URL_NOT_FOUND','subUnitId','show','defineProperty','moveTo','LOGIN_FAILED','NOT_FOUND','name','green.600','lineTo','_assignedColors','stage','ICommandService','TEXT_RANGE_LAYER_INDEX','_hovered','ALREADY_EXISTS','_localStorageService','pushState','SetSelectionsOperation','save','SOCKET_FAILED_RETRY','useRef','IRenderManagerService','_hover','_cachedData','CollaborationSessionService','_checkCalculationAvailable','_saveTaskMap','jiqing.500','getSkeleton','_roomMembers$','_cursor','Plugin','startsWith','collab-text-range-','setActiveRange','removeParam','push','startColumn','fillStyle','collabStatus.fetchMiss','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INTERNAL_ERROR','isFormulaString','data','hide','YUUMI_TABLE_NOT_FOUND_IN_UNIT','LICENSE_IMPORT_SIZE_EXCEEDED','clearInterval','asObservable','/universer-api/license/formula/limit/status','_updateSubUnitFromURLParams','m1Prime','concat','_updateLocalCursor','debug','_startSheetCollabCursor','isArray','range','_transformHistoryAndStateStack','AWAITING_WITH_PENDING','OTHER_CLIENTS_EDITING','unitID','createInstance','RevisionService','1473178HKNWYe','REDEMPTION_CODE_FULLY_REDEEMED','Rectangle','_hideTimer','fillText','Shape','_session','jsx','getConfig','subscribe','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_maxFormulaLimit','RemoveColCommandId','_localeService','ranges','executeCommand','YUUMI_AI_RUN_FAILED','http://www.w3.org/2000/svg','onLocalMutation','next','ONLINE','_doCreateSocket','CollaborationController','Failed','fromEvent','COLORS','totalFormulasToCalculate','DocIMEInputManagerService','UNRECOGNIZED','color','SNAPSHOT_INVALID_SNAPSHOT','_ensureSubject','_syncEditingCollabCursorService','_httpService','INVALID_ARGUMENT','drawWith','shareReplay','INVITE_CODE_REQUIRED','BrowserCollaborationSocketService','override','SheetSkeletonManagerService','collaboration.single-unit.warning','selection','_color','_selfUnitIDs','addObject','ILogService','REDEMPTION_CODE_INACTIVE','_initResize','INVITE_CODE_HAS_BEEN_UES','_backgroundColor','_imageIoService','DocSelectionManagerService','popstate','InsertRowCommandId','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','FromArray','UNIVER_DOC','docStateChange$','sessionStatus$','_dataLoaderService','subscribeEvent','flatMap','unitId','source','CollaborationDataLoaderController','getSheetBySheetId','touchDependencies','_themeService','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','CHANGESET_REVISION_CONFILICT','ENTITLE_DUP_SUBSCRIPTION','origin','_beforeCloseService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','round','_initStatusComponent','transformStateCache','RegularPolygon','CollaborationEvent','_registerDependencies','AWAITING','params','getCollabEntity$','getParam','_initCommandInterceptor','_currentUsage','newValue','_range','parse','DocStateChangeManagerService','SheetsSelectionsService','collaboration-client-ui.config','disposeUnit','roomMembers','_checkAndWaitForCalculationPermission','DocSkeletonManagerService','transformRemoteChangeset','CONNECTOR_DATA_TOO_LARGE','onStarting','IDocClipboardService','generateRandomId','handleDeleteRangeMoveUp','stageInfo','currentTheme$','REDEMPTION_CODE_HAS_BEEN_CREATED','executionId','now','_heartbeatTimer','jsxs','result','defs','isFormulaId','onCommandExecuted','SUCCESS','UniverCollaborationClientUIPlugin','setShapeProps','_instanceService','textRanges','endRow','_scheduleClearOtherTimer','svg','BehaviorSubject','delete','unshift','attrs','SUBMIT_CHANGESET_TIMEOUT','mutations','CollaborationUIEventService','JOIN_ROOM_FAILED','IMessageService','_clearOtherTimers','_docClipboardService','0\x200\x2016\x2016','extend','ISocketService','dispose$','includes','USERS_LEAVE','on-line-icon','PAYMENT_CHANNEL_NOT_SUPPORT','Optional','startRow','Success','IConfigService','event$','UniverInstanceType','_notificationService','roomMembers$','_getFormulaLimitStatus','1em','ENTITLE_NEED_BILLING_ADDRESS','useCallback','_unitStatus','USER_IS_ANONYMOUS','init','getMemberID','_getScale','translate(.97)','CanceledError','registerDependencies','session.collaboration-timeout','url(#on-line-icon_clip0_910_349)','getSheetId','with','_updateCollabCursors','PERMISSION_DENIED','height','getCurrentSelections','_handleJoinEvent','invokeId','_getSheetObject','useDependency','AUTHORIZE_CODE_ILLEGAL','url(#$1','_setFormulaLimitStatus','size','findNodePositionByCharIndex','getColorFromTheme','disposeWithMe','_removeCollabCursors','evenodd','SOCKET_FAILED','?taskId=','_document','collabStatus.notCollab','_id','none','_lastResponseTimestamp','width','createElement','storage','_updateURLWithCurrentState','top','Unknown\x20user','SheetCollabCursorShape','transform','RichTextEditingMutation','call','762010gPZTbS','black','INVALID_INVITE_CODE','UniverCollaborationClientPlugin','getLocalCacheKey','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','registerRefRange','_pollingInterval','enableLocalCache','setInterval','_config','makeDirty','_name','WECHAT_HAS_BEEN_BOUND','COMPLETION_FINISHED','1251756OzWvTg','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_DISTRO_REJECTED','all','whenReady','font','stringify','_docSyncEditingCollabCursorService','_docSkeleton','_labelPosition','_toggleOffline','DeleteRangeMoveUpCommandId','addObjects','_uiPartsService','debounceTime','fromEventSubject','onPointerEnter$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RemoveRowCommandId','activeSheet$','children','getOwnPropertyDescriptor','defIds','rgba(255,\x20255,\x20255,\x200.01)','_collabSessionService','location','combineLatest','_unitOnClients','NO_OTHER_CLIENTS_EDITING','CommandType','contains','IUniverInstanceService','isActive','_startDocCollabCursor','LOGIN_TOKEN_PROCESSING_FAILED','backgroundColor','_collaborationUIEventService','white','focused$','body','arc','requireSession','CollaborationUIEventId','getUnit','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','Inject','RECT','getDocRanges','_online','MOBILE_HAS_BEEN_BOUND','RefRangeService','getActiveRange','_entityInit$','error','getColor','YUUMI_ASYNCIO_CANCELLED','PY_RUNTIME_SCRIPT_ERROR','_drawAnchor','cursorInfo','_getMergeRange','_getSaveTimeout','InsertRangeMoveDownCommandId','_removeClearOtherTimer','doc.mutation.rich-text-editing','_revisionService','_colorIndex','APPLY_DUPLICATED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onCursorDelete','ThemeService','/universer-api/license/formula/limit/start','handleInsertRow','getCellPositionByOffset','61630OZDJye','addEventListener','collab-text-anchor-','OffLineIcon','getOwnPropertySymbols','ColorKit','MUTATION','add','substring','Tools','_cursors','EMAIL_VERIFY_CODE_MISMATCH','colorChannel1','_draw','_startCalculationLimit','loadUnit','get','isTransformMutationsWithChangesetSuccess','endColumn','handleInsertCol','#FFF','subunit','currentColor','_initEntityListener','SHEET_VIEWPORT_KEY','HTTPService','_handleHover','Disposable','row','ISnapshotServerService','saveTaskMap','BuiltInUIPart','registerRenderModule','_initStatusListener','tag','unsubscribe','Error','YUUMI_NO_CUBOID_FOR_QUESTION','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_drawRectRange','disableLocalCache','SetWorksheetActivateCommand','m2Prime','clearTimeout','/run/','merge','prototype','EffectRefRangId','displayName','YUUMI_UNABLE_LOAD_URL','_initDependencies','urlChange$','SetFormulaCalculationStartMutation','_setupSubUnitSync','RxDisposable','session.connection-failed','xlink:href','0\x200\x2017\x2016','DeleteRangeMoveLeftCommandId','_init','_sheetSkeletonManagerService','from','_shapes','onMouseMove','updateOfflineData','ITransformService','propertyIsEnumerable','getRenderById','releaseFormulaLimitUrl','_anchor','_handleLeaveEvent','handleInsertRangeMoveRight','find','assign','complete','ERROR_AGAIN','116CvrcTG','getRelativeToViewportCoord','measureText','transformMutation','_status$','ENTITLE_REPORT_LIMIT_EXCEED','imageSourceType','off-line-icon_clip0_910_343','getCurrentRevOfUnit','LICENSE_EXPORT_SIZE_EXCEEDED','_docStateChangeManagerService','MemberService','_handleEvent','onTransformChange$','transformMutationsWithChangeset','ENTITLE_CHAT_LIMIT_EXCEED','isTransformMutationFailure','_docTransformStateCacheService','transformSelections','startFormulaLimitUrl','6132usnccU','then','_eventUnsubscribe','_renderManagerService','OTHER_CLIENT_EDITING','string','_transformPreviousActiveRange','purple.300','REDEMPTION_INVALID_CODE','_onCursorUpdate','SYNCED','_cursorInfo$','_applyCommand','...','forwardRef','getUnitStatus$','Workbook','_docTransformIMECacheService','DependentOn','unit','getTypeOfUnitDisposed$','distinctUntilChanged','path','CLOSE_ROOM','takeUntil','_commandService','toRgbString','exhaustSavingTask','runRefRangeMutations','Rect','_releaseCalculationLimit','beforeCommandExecuted','transformByState','_lastPointer','_messageService','CollaborationStatus','_refRangeService','_univerInstanceService','random','engine','_transformUndoRedoStack','getVpScrollXYInfoByPosToVp','indexOf','_collabCursorController','currentSkeleton$','getUnitId','collaboration.closeRoom','registerBeforeClose','pipe','fill','hovered','_injector','formula.calculation.unable','off-line-icon','getTypeOfUnitAdded$','LOCAL_CACHE_INTERVAL','26HAdYaE','_urlService','has','UNIVER_SHEET','searchParams','pluginName','undoState','handleInsertRangeMoveDown','UnitStatus','NOT_COLLAB','getAncestorScale','idSuffix','_cursorShapes','M0\x200H16V16H0z','_docTransformSelectionsService','getCoordByCell','DisposableCollection','replace','InsertColCommandId','type','_collabCursorState$','assignAColorForMemberID','redoState','CollaborationSocketService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','handleMoveRange','_render','switchMap','mask','YUUMI_URL_COL_OUT_OF_RANGE','_registerRenderDependencies','SetDocZoomRatioOperation','OFFLINE','CONFLICT','filter','getCurrentUnitForType','icon','set','getFocusedUnit','199448ZoKFqK','_scheduleHeartbeat','onPointerMove$','toString','_initEvent','MessageType','href','toDisposable','div','Vector2','SessionStatus','collabCursorState$','_scheduleSaving','setAlpha','getCollabCursors$','runOnServer','getRangePointData','_createSocketURL','selections','toStringTag','setParam','63AmwFJK','_clearPolling','UNDEFINED','saveImage','ACTIVE_UNIT_EVENT_CHANNEL','_docSkeletonManagerService','_handleHeartbeatEvent','REDEMPTION_USER_NOT_ELIGIBLE','SetFormulaCalculationNotificationMutation','createIdentifier','code','dirtyRanges','maxFormulaLimit','cursorInfo$','_setupBeforeClosingHandler','getUniverSheetInstance','runId','Warning','_disabled','_textBubble','FormulaExecuteStageType','url(#off-line-icon_clip0_910_343)','_logService','text','setUndoRedoMutationParamsCache','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','RemoteUniscriptService','yellow.400','post','replaceState','_getAnchorBounding','ILocalCacheService','length','bottom','map','YUUMI_RATE_OVER_LIMIT','LocaleService','status$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_collaborationController','getCellMatrix','getValue','USER_NOT_INVITED_CODE','DocCollaborationEntity','9048kVcdNW','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_taskIds','getMergeData','IUIPartsService','_configService','onPointerLeave$','getStateCache','dispose','APPLY_PERMISSION_DENIED','forEach','current','send','_transformService','INVITE_CODE_ALREADY_BOUND','EMAIL_HAS_BEEN_BOUND','REDEMPTION_CODE_NOT_STARTED','getUnhiddenWorksheets','parseInt','debounce','_drawTextRange','setStateCache','values','permission.title','YUUMI_SUBSCRIPTION_NOT_FOUND','getMember','_memberService','[CollaborationDataLoaderController]','wsSessionTicketUrl','DOC_RANGE_TYPE','setConfig','eventID','currentUsage'];_0x3a82=function(){return _0x2a0fc6;};return _0x3a82();}let Z=class extends a[_0xa5554e(0x249)]{constructor(_0x287e29,_0x4b870c,_0x264a34,_0x155b7d,_0x2ef474,_0x4a0766){const _0x123a44=_0xa5554e;super(),this[_0x123a44(0x158)]=_0x287e29,this[_0x123a44(0x35f)]=_0x4b870c,this[_0x123a44(0x209)]=_0x264a34,this['_messageService']=_0x155b7d,this[_0x123a44(0x1a2)]=_0x2ef474,this['_localeService']=_0x4a0766,this[_0x123a44(0x310)](),this[_0x123a44(0x2f1)]();}[_0xa5554e(0x310)](){const _0x270b3f=_0xa5554e;this[_0x270b3f(0x1c2)](this[_0x270b3f(0x158)][_0x270b3f(0x2bd)](()=>{const _0x4cede0=_0x270b3f;if(this[_0x4cede0(0x35f)][_0x4cede0(0x24c)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xa5554e(0x2f1)](){const _0x68b379=_0xa5554e;this[_0x68b379(0x1c2)](this[_0x68b379(0x209)][_0x68b379(0x1a0)][_0x68b379(0x3cb)](_0x1b1214=>{const _0xe7a3b4=_0x68b379;_0x1b1214['id']===u['CollaborationUIEventId'][_0xe7a3b4(0x292)]&&this[_0xe7a3b4(0x2b0)][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x3eb))}),_0x1b1214['id']===u['CollaborationUIEventId'][_0xe7a3b4(0x2a5)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this['_localeService']['t'](_0xe7a3b4(0x2bc))}),_0x1b1214['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0xe7a3b4(0x1a2)][_0xe7a3b4(0x383)]({'title':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x345)),'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x367)),'type':'error','duration':0x0}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x2e7)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x252)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x2bc))+'('+_0x1b1214[_0xe7a3b4(0x3ad)]+')'}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x190)]&&this[_0xe7a3b4(0x2b0)][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0x1b1214[_0xe7a3b4(0x3ad)]||'')}),_0x1b1214['id']===u['CollaborationUIEventId'][_0xe7a3b4(0x395)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x313)],'content':this[_0xe7a3b4(0x3cf)]['t']('session.will-retry')}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x1c5)]&&this[_0xe7a3b4(0x2b0)][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x252)],'content':this[_0xe7a3b4(0x3cf)]['t'](_0xe7a3b4(0x265))}),_0x1b1214['id']===u[_0xe7a3b4(0x20f)][_0xe7a3b4(0x18d)]&&this['_messageService'][_0xe7a3b4(0x383)]({'type':T[_0xe7a3b4(0x2f2)][_0xe7a3b4(0x252)],'content':this['_localeService']['t'](_0xe7a3b4(0x1b0))});}));}};Z=Ft([x(0x0,R[_0xa5554e(0x356)]),x(0x1,u[_0xa5554e(0x321)]),x(0x2,a[_0xa5554e(0x212)](u[_0xa5554e(0x18f)])),x(0x3,R[_0xa5554e(0x191)]),x(0x4,R['INotificationService']),x(0x5,a[_0xa5554e(0x212)](a[_0xa5554e(0x326)]))],Z);const kt=_0xa5554e(0x16b),Le={};var jt=Object[_0xa5554e(0x1fa)],Yt=(_0x4b3767,_0x4b1325,_0x34c158,_0x570871)=>{for(var _0x2565c1=_0x570871>0x1?void 0x0:_0x570871?jt(_0x4b1325,_0x34c158):_0x4b1325,_0x49c3c0=_0x4b3767['length']-0x1,_0x2edd4a;_0x49c3c0>=0x0;_0x49c3c0--)(_0x2edd4a=_0x4b3767[_0x49c3c0])&&(_0x2565c1=_0x2edd4a(_0x2565c1)||_0x2565c1);return _0x2565c1;},Me=(_0x47422e,_0x1c4e30)=>(_0x28adfa,_0x5125fa)=>_0x1c4e30(_0x28adfa,_0x5125fa,_0x47422e);let Q=class{constructor(_0x594587,_0x2158bc){const _0x46d445=_0xa5554e;this['_transformService']=_0x594587,this[_0x46d445(0x291)]=_0x2158bc;}['transformIMECache'](_0x499ae0){const _0x2491f8=_0xa5554e;this[_0x2491f8(0x2b6)](_0x499ae0),this[_0x2491f8(0x294)](_0x499ae0);}[_0xa5554e(0x170)](_0x203d95){const _0xe04b31=_0xa5554e,{unitID:_0x346d28}=_0x203d95,_0x1e8554=this[_0xe04b31(0x291)][_0xe04b31(0x271)](_0x346d28)[_0xe04b31(0x1b3)](p['DocIMEInputManagerService']),{redoCache:_0x230b71}=_0x1e8554['getUndoRedoMutationParamsCache']();if(_0x230b71[_0xe04b31(0x322)]===0x0)return _0x203d95;let _0x50d311=a[_0xe04b31(0x237)]['deepClone'](_0x203d95[_0xe04b31(0x18e)][0x0]);for(let _0x125eaf=0x0;_0x125eaf<_0x230b71[_0xe04b31(0x322)];_0x125eaf++){const _0x59e91d={'id':_0xe04b31(0x224),'params':{..._0x230b71[_0x125eaf]}},_0x121bfd=this[_0xe04b31(0x33b)]['transformMutation'](_0x50d311,_0x59e91d,!0x1);if(g[_0xe04b31(0x28a)](_0x121bfd))throw _0x121bfd[_0xe04b31(0x21a)];_0x50d311=_0x121bfd[_0xe04b31(0x3b5)];}return{...a[_0xe04b31(0x237)][_0xe04b31(0x36e)](_0x203d95),'mutations':[_0x50d311]};}[_0xa5554e(0x2b6)](_0x25a76e){const _0x4b97fc=_0xa5554e,{unitID:_0x38b3f7}=_0x25a76e,_0x5f360f=this[_0x4b97fc(0x291)]['getRenderById'](_0x38b3f7)[_0x4b97fc(0x1b3)](p[_0x4b97fc(0x3dd)]),{undoCache:_0x287de1,redoCache:_0x17269f}=_0x5f360f['getUndoRedoMutationParamsCache']();if(_0x287de1[_0x4b97fc(0x322)]===0x0||_0x17269f[_0x4b97fc(0x322)]===0x0)return;const _0x123959=[],_0x27de8e=[];let _0x4f354d=a[_0x4b97fc(0x237)][_0x4b97fc(0x36e)](_0x25a76e['mutations'][0x0]),_0x3aec41=a['Tools']['deepClone'](_0x25a76e[_0x4b97fc(0x18e)][0x0]);for(let _0x5637db=_0x287de1[_0x4b97fc(0x322)]-0x1;_0x5637db>=0x0;_0x5637db--){const _0x2eb849={'id':_0x4b97fc(0x224),'params':{..._0x287de1[_0x5637db]}},_0x27af3a={'id':_0x4b97fc(0x224),'params':{..._0x17269f[_0x5637db]}},_0x44884a=this['_transformService']['transformMutation'](_0x4f354d,_0x2eb849,!0x1),_0x271c7c=this['_transformService'][_0x4b97fc(0x27d)](_0x3aec41,_0x27af3a,!0x1);if(g[_0x4b97fc(0x28a)](_0x44884a))throw _0x44884a[_0x4b97fc(0x21a)];if(g[_0x4b97fc(0x28a)](_0x271c7c))throw _0x271c7c[_0x4b97fc(0x21a)];_0x123959[_0x4b97fc(0x18b)](_0x44884a[_0x4b97fc(0x258)][_0x4b97fc(0x161)]),_0x27de8e[_0x4b97fc(0x18b)](_0x271c7c[_0x4b97fc(0x258)]['params']),_0x4f354d=_0x44884a[_0x4b97fc(0x3b5)],_0x3aec41=_0x271c7c[_0x4b97fc(0x3b5)];}_0x5f360f[_0x4b97fc(0x31a)]({'undoCache':_0x123959,'redoCache':_0x27de8e});}[_0xa5554e(0x294)](_0x266184){const _0x262743=_0xa5554e,{unitID:_0x1ffa4e}=_0x266184,_0x1041da=this[_0x262743(0x291)][_0x262743(0x271)](_0x1ffa4e)['with'](p[_0x262743(0x3dd)]),_0x328941=_0x1041da[_0x262743(0x218)]();if(_0x328941==null)return;const _0x23be1e=[{'id':_0x262743(0x224),'params':{'unitId':_0x266184[_0x262743(0x3bf)],'actions':null,'textRanges':[_0x328941]}}],_0x31fc7f=this['_transformService'][_0x262743(0x288)](_0x266184,_0x23be1e);if(!g[_0x262743(0x23f)](_0x31fc7f))throw _0x31fc7f[_0x262743(0x21a)];const _0x430426=_0x31fc7f['m2Prime'][0x0]['params']['textRanges'];Array[_0x262743(0x3ba)](_0x430426)&&_0x430426[_0x262743(0x322)]&&_0x1041da[_0x262743(0x3a4)](_0x430426[0x0]);}};Q=Yt([Me(0x0,g[_0xa5554e(0x26f)]),Me(0x1,C['IRenderManagerService'])],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x1b9c71,_0x3b82aa,_0x4823bc,_0x1b4482)=>{const _0x2382e3=_0xa5554e;for(var _0x2d631f=_0x1b4482>0x1?void 0x0:_0x1b4482?Ht(_0x3b82aa,_0x4823bc):_0x3b82aa,_0x2c77fd=_0x1b9c71[_0x2382e3(0x322)]-0x1,_0x63f20;_0x2c77fd>=0x0;_0x2c77fd--)(_0x63f20=_0x1b9c71[_0x2c77fd])&&(_0x2d631f=_0x63f20(_0x2d631f)||_0x2d631f);return _0x2d631f;},ue=(_0x584a6e,_0x5d73c2)=>(_0x561596,_0x433da4)=>_0x5d73c2(_0x561596,_0x433da4,_0x584a6e);let ee=class{constructor(_0x1a689a,_0x5a6b0a,_0xf36d1f){const _0x549733=_0xa5554e;this[_0x549733(0x2c1)]=_0x1a689a,this[_0x549733(0x33b)]=_0x5a6b0a,this[_0x549733(0x284)]=_0xf36d1f;}[_0xa5554e(0x15c)](_0x1f14dd){const _0x5acff0=_0xa5554e;this[_0x5acff0(0x3bc)](_0x1f14dd);}[_0xa5554e(0x170)](_0x5b6369){const _0x2a74d6=_0xa5554e,{unitID:_0x14095c}=_0x5b6369,{collaboration:_0xf180d5}=this['_docStateChangeManagerService'][_0x2a74d6(0x335)](_0x14095c);if(_0xf180d5['length']===0x0)return _0x5b6369;let _0x3ca08b=a[_0x2a74d6(0x237)][_0x2a74d6(0x36e)](_0x5b6369['mutations'][0x0]);for(let _0x36ab73=0x0;_0x36ab73<_0xf180d5[_0x2a74d6(0x322)];_0x36ab73++){const _0x5565f5={'id':_0x2a74d6(0x224),'params':{'unitId':_0xf180d5[_0x36ab73][_0x2a74d6(0x401)],..._0xf180d5[_0x36ab73][_0x2a74d6(0x2dc)]}},_0x10192b=this[_0x2a74d6(0x33b)]['transformMutation'](_0x3ca08b,_0x5565f5,!0x1);if(g['isTransformMutationFailure'](_0x10192b))throw _0x10192b[_0x2a74d6(0x21a)];_0x3ca08b=_0x10192b[_0x2a74d6(0x3b5)];}return{...a[_0x2a74d6(0x237)][_0x2a74d6(0x36e)](_0x5b6369),'mutations':[_0x3ca08b]};}[_0xa5554e(0x3bc)](_0x388324){const _0x5e733c=_0xa5554e,{unitID:_0x2c13ae}=_0x388324,{history:_0x4b5792,collaboration:_0x23452f}=this[_0x5e733c(0x284)]['getStateCache'](_0x2c13ae);if(_0x4b5792[_0x5e733c(0x322)]===0x0&&_0x23452f[_0x5e733c(0x322)]===0x0)return;const _0x34a665=[],_0x23195a=[];let _0x5e06f8=a[_0x5e733c(0x237)][_0x5e733c(0x36e)](_0x388324['mutations'][0x0]),_0x28c813=a['Tools'][_0x5e733c(0x36e)](_0x388324[_0x5e733c(0x18e)][0x0]);for(let _0x22e8d6=_0x4b5792[_0x5e733c(0x322)]-0x1;_0x22e8d6>=0x0;_0x22e8d6--){const _0xf738a9={'id':_0x5e733c(0x224),'params':{'unitId':_0x4b5792[_0x22e8d6][_0x5e733c(0x401)],..._0x4b5792[_0x22e8d6][_0x5e733c(0x2cc)]}},_0x522822={'id':_0x5e733c(0x224),'params':{'unitId':_0x4b5792[_0x22e8d6]['unitId'],..._0x4b5792[_0x22e8d6][_0x5e733c(0x2dc)]}},_0x392062=this[_0x5e733c(0x33b)][_0x5e733c(0x27d)](_0x5e06f8,_0xf738a9,!0x1),_0x182584=this[_0x5e733c(0x33b)]['transformMutation'](_0x28c813,_0x522822,!0x1);if(g['isTransformMutationFailure'](_0x392062))throw _0x392062[_0x5e733c(0x21a)];if(g[_0x5e733c(0x28a)](_0x182584))throw _0x182584[_0x5e733c(0x21a)];_0x34a665[_0x5e733c(0x18b)]({..._0x4b5792[_0x22e8d6],'undoState':_0x392062['m2Prime'][_0x5e733c(0x161)],'redoState':_0x182584[_0x5e733c(0x258)]['params']}),_0x5e06f8=_0x392062[_0x5e733c(0x3b5)],_0x28c813=_0x182584[_0x5e733c(0x3b5)];}_0x5e06f8=a[_0x5e733c(0x237)]['deepClone'](_0x388324['mutations'][0x0]),_0x28c813=a[_0x5e733c(0x237)]['deepClone'](_0x388324[_0x5e733c(0x18e)][0x0]);for(let _0x21aa6f=_0x23452f[_0x5e733c(0x322)]-0x1;_0x21aa6f>=0x0;_0x21aa6f--){const _0x32455a={'id':_0x5e733c(0x224),'params':{'unitId':_0x23452f[_0x21aa6f]['unitId'],..._0x23452f[_0x21aa6f][_0x5e733c(0x2cc)]}},_0x5412fa={'id':_0x5e733c(0x224),'params':{'unitId':_0x23452f[_0x21aa6f][_0x5e733c(0x401)],..._0x23452f[_0x21aa6f][_0x5e733c(0x2dc)]}},_0x5cc2a0=this[_0x5e733c(0x33b)][_0x5e733c(0x27d)](_0x5e06f8,_0x32455a,!0x1),_0x3a4275=this[_0x5e733c(0x33b)][_0x5e733c(0x27d)](_0x28c813,_0x5412fa,!0x1);if(g[_0x5e733c(0x28a)](_0x5cc2a0))throw _0x5cc2a0[_0x5e733c(0x21a)];if(g[_0x5e733c(0x28a)](_0x3a4275))throw _0x3a4275[_0x5e733c(0x21a)];_0x23195a[_0x5e733c(0x18b)]({..._0x23452f[_0x21aa6f],'undoState':_0x5cc2a0['m2Prime'][_0x5e733c(0x161)],'redoState':_0x3a4275[_0x5e733c(0x258)][_0x5e733c(0x161)]}),_0x5e06f8=_0x5cc2a0[_0x5e733c(0x3b5)],_0x28c813=_0x3a4275[_0x5e733c(0x3b5)];}this[_0x5e733c(0x284)][_0x5e733c(0x343)](_0x2c13ae,{'history':_0x34a665,'collaboration':_0x23195a});}};ee=Wt([ue(0x0,a[_0xa5554e(0x212)](a['Injector'])),ue(0x1,g[_0xa5554e(0x26f)]),ue(0x2,a[_0xa5554e(0x212)](p[_0xa5554e(0x169)]))],ee);var Vt=Object[_0xa5554e(0x1fa)],Gt=(_0x5b367f,_0x562af3,_0x2db37f,_0xdb844d)=>{const _0x3c0037=_0xa5554e;for(var _0x5a74ec=_0xdb844d>0x1?void 0x0:_0xdb844d?Vt(_0x562af3,_0x2db37f):_0x562af3,_0x384c0f=_0x5b367f[_0x3c0037(0x322)]-0x1,_0x119629;_0x384c0f>=0x0;_0x384c0f--)(_0x119629=_0x5b367f[_0x384c0f])&&(_0x5a74ec=_0x119629(_0x5a74ec)||_0x5a74ec);return _0x5a74ec;},Ae=(_0x1764d8,_0xca3bf9)=>(_0x3bbd0c,_0x196f80)=>_0xca3bf9(_0x3bbd0c,_0x196f80,_0x1764d8);let te=class{constructor(_0x3d76de,_0x4acb4c){const _0x50309e=_0xa5554e;this[_0x50309e(0x2c1)]=_0x3d76de,this[_0x50309e(0x33b)]=_0x4acb4c;}['transformSelections'](_0x3847fb){const _0x52643e=_0xa5554e;var _0x5ed4a1;const _0x44adce=this['_injector'][_0x52643e(0x23e)](V[_0x52643e(0x3f6)]),_0x3a344c=(_0x5ed4a1=_0x44adce[_0x52643e(0x214)]())!=null?_0x5ed4a1:[];if(_0x3a344c[_0x52643e(0x322)]===0x0)return;const _0x36eafb=_0x3847fb[_0x52643e(0x3bf)],_0x9845f8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36eafb,'actions':null,'textRanges':_0x3a344c}}],_0x196067=this['_transformService']['transformMutationsWithChangeset'](_0x3847fb,_0x9845f8);if(!g[_0x52643e(0x23f)](_0x196067))throw _0x196067[_0x52643e(0x21a)];const _0x3d80ab=_0x196067[_0x52643e(0x258)][0x0][_0x52643e(0x161)][_0x52643e(0x185)];Array[_0x52643e(0x3ba)](_0x3d80ab)&&_0x3d80ab[_0x52643e(0x322)]&&_0x44adce['replaceDocRanges'](_0x3d80ab,{'unitId':_0x36eafb,'subUnitId':_0x36eafb},!0x1);}};te=Gt([Ae(0x0,a[_0xa5554e(0x212)](a['Injector'])),Ae(0x1,g[_0xa5554e(0x26f)])],te);var Xt=Object[_0xa5554e(0x1fa)],Kt=(_0x2106d4,_0x27e30e,_0x8130e8,_0x50f009)=>{for(var _0x39e756=_0x50f009>0x1?void 0x0:_0x50f009?Xt(_0x27e30e,_0x8130e8):_0x27e30e,_0x1f5c1f=_0x2106d4['length']-0x1,_0x2013a2;_0x1f5c1f>=0x0;_0x1f5c1f--)(_0x2013a2=_0x2106d4[_0x1f5c1f])&&(_0x39e756=_0x2013a2(_0x39e756)||_0x39e756);return _0x39e756;},U=(_0x14c7ca,_0xea5590)=>(_0x50dbab,_0x2dcd6e)=>_0xea5590(_0x50dbab,_0x2dcd6e,_0x14c7ca);let se=class extends a['Disposable']{constructor(_0x5225f7,_0x4cc28f,_0x3b5e90,_0x12a17c,_0x2ae3be,_0x9776c0,_0x48849b,_0x4de042){const _0x377656=_0xa5554e;super(),_(this,_0x377656(0x27e),new I[(_0x377656(0x189))](u[_0x377656(0x2b1)][_0x377656(0x2cf)])),(this[_0x377656(0x284)]=_0x5225f7,this[_0x377656(0x329)]=_0x4cc28f,this[_0x377656(0x29f)]=_0x3b5e90,this['_docTransformStateCacheService']=_0x12a17c,this['_docTransformSelectionsService']=_0x2ae3be,this[_0x377656(0x1ec)]=_0x9776c0,this['_messageService']=_0x48849b,this[_0x377656(0x3cf)]=_0x4de042,this[_0x377656(0x245)]());}[_0xa5554e(0x245)](){const _0x53f911=_0xa5554e;this[_0x53f911(0x1c2)](this[_0x53f911(0x329)]['entityInit$'][_0x53f911(0x3cb)](_0x514eed=>{const _0x333d43=_0x53f911,_0x4a053a=this[_0x333d43(0x284)][_0x333d43(0x3fc)][_0x333d43(0x3cb)](_0x1fbffe=>{const _0x8c78b5=_0x333d43;if(_0x1fbffe==null)return;const {unitId:_0x592acd,redoState:_0xa76a41,commandId:_0x389261}=_0x1fbffe;if(_0x592acd!==_0x514eed[_0x8c78b5(0x3bf)])return;const _0x40279c={'id':_0x389261,'type':a[_0x8c78b5(0x202)][_0x8c78b5(0x234)],'params':{'unitId':_0x592acd,'actions':_0xa76a41['actions'],'textRanges':null}};_0x514eed[_0x8c78b5(0x3d4)](_0x40279c);});if(_0x514eed[_0x333d43(0x1c2)](_0x4a053a),_0x514eed instanceof u[_0x333d43(0x32d)]){const _0x36b2b1={'onTransformIME':_0x3e1d06=>this['_docTransformIMECacheService']['transformIMECache'](_0x3e1d06),'onTransformState':_0x261f6a=>this[_0x333d43(0x28b)][_0x333d43(0x15c)](_0x261f6a),'onTransformSelections':_0x5d4df7=>this[_0x333d43(0x2d4)][_0x333d43(0x28c)](_0x5d4df7),'onSyncEditingCollabCursor':_0x128aaf=>this[_0x333d43(0x1ec)]['syncEditingCollabCursor'](_0x128aaf),'onTransformRemoteChangesetByIMECache':_0xdde3c1=>this['_docTransformIMECacheService'][_0x333d43(0x170)](_0xdde3c1),'onTransformRemoteChangesetByStateCache':_0x3061cb=>this[_0x333d43(0x28b)][_0x333d43(0x170)](_0x3061cb)};_0x514eed['addHandlerCallback'](_0x36b2b1);}}));}};se=Kt([U(0x0,a[_0xa5554e(0x212)](p[_0xa5554e(0x169)])),U(0x1,a[_0xa5554e(0x212)](u[_0xa5554e(0x3d8)])),U(0x2,a['Inject'](Q)),U(0x3,a[_0xa5554e(0x212)](ee)),U(0x4,a[_0xa5554e(0x212)](te)),U(0x5,a[_0xa5554e(0x212)](Re)),U(0x6,R[_0xa5554e(0x191)]),U(0x7,a[_0xa5554e(0x212)](a[_0xa5554e(0x326)]))],se);var G=(_0xe0b053=>(_0xe0b053[_0xe0b053[_0xa5554e(0x304)]=0x0]=_0xa5554e(0x304),_0xe0b053[_0xe0b053['OK']=0x1]='OK',_0xe0b053[_0xe0b053[_0xa5554e(0x3ab)]=0x2]=_0xa5554e(0x3ab),_0xe0b053[_0xe0b053[_0xa5554e(0x1b5)]=0x3]='PERMISSION_DENIED',_0xe0b053[_0xe0b053[_0xa5554e(0x387)]=0x4]=_0xa5554e(0x387),_0xe0b053[_0xe0b053[_0xa5554e(0x350)]=0x5]=_0xa5554e(0x350),_0xe0b053[_0xe0b053[_0xa5554e(0x390)]=0x6]=_0xa5554e(0x390),_0xe0b053[_0xe0b053[_0xa5554e(0x3e4)]=0x7]=_0xa5554e(0x3e4),_0xe0b053[_0xe0b053[_0xa5554e(0x366)]=0x8]=_0xa5554e(0x366),_0xe0b053[_0xe0b053[_0xa5554e(0x1e4)]=0x9]=_0xa5554e(0x1e4),_0xe0b053[_0xe0b053['LOGIN_FAILED']=0xa]=_0xa5554e(0x386),_0xe0b053[_0xe0b053['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0xe0b053[_0xe0b053[_0xa5554e(0x35e)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xe0b053[_0xe0b053[_0xa5554e(0x239)]=0xd]=_0xa5554e(0x239),_0xe0b053[_0xe0b053[_0xa5554e(0x159)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xe0b053[_0xe0b053[_0xa5554e(0x1bc)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0xe0b053[_0xe0b053[_0xa5554e(0x207)]=0x10]=_0xa5554e(0x207),_0xe0b053[_0xe0b053['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xe0b053[_0xe0b053[_0xa5554e(0x279)]=0x65]='ERROR_AGAIN',_0xe0b053[_0xe0b053['USER_NOT_FOUND']=0xc9]='USER_NOT_FOUND',_0xe0b053[_0xe0b053[_0xa5554e(0x1a9)]=0xca]=_0xa5554e(0x1a9),_0xe0b053[_0xe0b053['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa5554e(0x155),_0xe0b053[_0xe0b053['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0xa5554e(0x3e0),_0xe0b053[_0xe0b053[_0xa5554e(0x1e6)]=0x1772]=_0xa5554e(0x1e6),_0xe0b053[_0xe0b053['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0xe0b053[_0xe0b053['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0xe0b053[_0xe0b053['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xe0b053[_0xe0b053[_0xa5554e(0x379)]=0x1b5b]=_0xa5554e(0x379),_0xe0b053[_0xe0b053[_0xa5554e(0x337)]=0x1b5c]=_0xa5554e(0x337),_0xe0b053[_0xe0b053[_0xa5554e(0x227)]=0x1b5d]=_0xa5554e(0x227),_0xe0b053[_0xe0b053[_0xa5554e(0x171)]=0x1f41]=_0xa5554e(0x171),_0xe0b053[_0xe0b053['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xe0b053[_0xe0b053['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xa5554e(0x377),_0xe0b053[_0xe0b053[_0xa5554e(0x3b0)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xe0b053[_0xe0b053[_0xa5554e(0x283)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xe0b053[_0xe0b053[_0xa5554e(0x1e7)]=0x232d]=_0xa5554e(0x1e7),_0xe0b053[_0xe0b053[_0xa5554e(0x25f)]=0x2711]=_0xa5554e(0x25f),_0xe0b053[_0xe0b053[_0xa5554e(0x2e3)]=0x2712]=_0xa5554e(0x2e3),_0xe0b053[_0xe0b053[_0xa5554e(0x325)]=0x2713]=_0xa5554e(0x325),_0xe0b053[_0xe0b053['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0xa5554e(0x346),_0xe0b053[_0xe0b053[_0xa5554e(0x253)]=0x271a]=_0xa5554e(0x253),_0xe0b053[_0xe0b053[_0xa5554e(0x21c)]=0x271b]=_0xa5554e(0x21c),_0xe0b053[_0xe0b053[_0xa5554e(0x3af)]=0x271c]=_0xa5554e(0x3af),_0xe0b053[_0xe0b053[_0xa5554e(0x351)]=0x271d]=_0xa5554e(0x351),_0xe0b053[_0xe0b053[_0xa5554e(0x1db)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xe0b053[_0xe0b053[_0xa5554e(0x3d2)]=0x271f]=_0xa5554e(0x3d2),_0xe0b053[_0xe0b053[_0xa5554e(0x381)]=0x2720]=_0xa5554e(0x381),_0xe0b053[_0xe0b053['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0xa5554e(0x21d),_0xe0b053[_0xe0b053['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xa5554e(0x3f3),_0xe0b053[_0xe0b053['INVALID_INVITE_CODE']=0x2ee2]=_0xa5554e(0x1d8),_0xe0b053[_0xe0b053[_0xa5554e(0x3e7)]=0x2ee3]=_0xa5554e(0x3e7),_0xe0b053[_0xe0b053[_0xa5554e(0x32c)]=0x2ee4]=_0xa5554e(0x32c),_0xe0b053[_0xe0b053[_0xa5554e(0x33c)]=0x2ee5]=_0xa5554e(0x33c),_0xe0b053[_0xe0b053[_0xa5554e(0x1e3)]=0x32c9]=_0xa5554e(0x1e3),_0xe0b053[_0xe0b053[_0xa5554e(0x216)]=0x32ca]=_0xa5554e(0x216),_0xe0b053[_0xe0b053[_0xa5554e(0x33d)]=0x32cb]=_0xa5554e(0x33d),_0xe0b053[_0xe0b053[_0xa5554e(0x328)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0xe0b053[_0xe0b053[_0xa5554e(0x211)]=0x36b2]=_0xa5554e(0x211),_0xe0b053[_0xe0b053[_0xa5554e(0x156)]=0x36b3]=_0xa5554e(0x156),_0xe0b053[_0xe0b053['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0xa5554e(0x19b),_0xe0b053[_0xe0b053[_0xa5554e(0x289)]=0x3715]=_0xa5554e(0x289),_0xe0b053[_0xe0b053['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0xa5554e(0x27f),_0xe0b053[_0xe0b053[_0xa5554e(0x1a6)]=0x37dd]=_0xa5554e(0x1a6),_0xe0b053[_0xe0b053[_0xa5554e(0x296)]=0x3a99]=_0xa5554e(0x296),_0xe0b053[_0xe0b053[_0xa5554e(0x3f1)]=0x3a9a]=_0xa5554e(0x3f1),_0xe0b053[_0xe0b053[_0xa5554e(0x3c3)]=0x3a9b]=_0xa5554e(0x3c3),_0xe0b053[_0xe0b053[_0xa5554e(0x33e)]=0x3a9c]=_0xa5554e(0x33e),_0xe0b053[_0xe0b053['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0xa5554e(0x309),_0xe0b053[_0xe0b053[_0xa5554e(0x254)]=0x3a9e]=_0xa5554e(0x254),_0xe0b053[_0xe0b053[_0xa5554e(0x178)]=0x3a9f]=_0xa5554e(0x178),_0xe0b053[_0xe0b053['UNRECOGNIZED']=-0x1]=_0xa5554e(0x3de),_0xe0b053))(G||{});function qt(_0x4358db){const _0x5a7ea3=_0xa5554e;var _0x30e8ea,_0x3dc829;const _0x40554b=(_0x30e8ea=_0x4358db[_0x5a7ea3(0x176)])==null?void 0x0:_0x30e8ea[_0x5a7ea3(0x38c)],_0x5d5a8d=((_0x3dc829=_0x4358db[_0x5a7ea3(0x176)])==null?void 0x0:_0x3dc829[_0x5a7ea3(0x3dc)])||0x0;return _0x40554b===B[_0x5a7ea3(0x316)][_0x5a7ea3(0x35c)]&&_0x5d5a8d>0x0;}function zt(_0x5f3f26){const _0x1b5176=_0xa5554e;return _0x5f3f26['functionsExecutedState']===B[_0x1b5176(0x368)][_0x1b5176(0x181)];}var Jt=Object[_0xa5554e(0x1fa)],Zt=(_0x419d6b,_0x5b24ee,_0x2e4fa9,_0x467d02)=>{for(var _0x56ed75=_0x467d02>0x1?void 0x0:_0x467d02?Jt(_0x5b24ee,_0x2e4fa9):_0x5b24ee,_0x1f903d=_0x419d6b['length']-0x1,_0x4646e7;_0x1f903d>=0x0;_0x1f903d--)(_0x4646e7=_0x419d6b[_0x1f903d])&&(_0x56ed75=_0x4646e7(_0x56ed75)||_0x56ed75);return _0x56ed75;},A=(_0x3ce085,_0x3fc5c4)=>(_0x249de1,_0x475c5b)=>_0x3fc5c4(_0x249de1,_0x475c5b,_0x3ce085);const Qt=_0xa5554e(0x3b3),es=_0xa5554e(0x22b),ts='/universer-api/license/formula/limit/done';let ie=class extends a[_0xa5554e(0x249)]{constructor(_0xca47d,_0x5597eb,_0xe1d1a9,_0x463c32,_0x41914f,_0x207b8d,_0x1cea19){const _0x347e9c=_0xa5554e;super(),_(this,_0x347e9c(0x1dd),null),_(this,_0x347e9c(0x3cd),0x0),_(this,_0x347e9c(0x165),0x0),_(this,_0x347e9c(0x330),[]),_(this,_0x347e9c(0x1cb),0x0),(this[_0x347e9c(0x2b0)]=_0xca47d,this['_commandService']=_0x5597eb,this[_0x347e9c(0x333)]=_0xe1d1a9,this[_0x347e9c(0x3e3)]=_0x463c32,this[_0x347e9c(0x2b3)]=_0x41914f,this['_logService']=_0x207b8d,this['_localeService']=_0x1cea19,this[_0x347e9c(0x164)]());}[_0xa5554e(0x164)](){const _0x13e257=_0xa5554e;this[_0x13e257(0x1c2)](this[_0x13e257(0x2a7)][_0x13e257(0x2ad)]((_0x21f312,_0x354f4a)=>{const _0x1a6a35=_0x13e257;if(_0x21f312['id']!==B[_0x1a6a35(0x262)]['id'])return;const _0x2b0b68=_0x21f312[_0x1a6a35(0x161)];if(!this[_0x1a6a35(0x373)](_0x2b0b68[_0x1a6a35(0x30d)]))return;if(!this[_0x1a6a35(0x39b)]())throw this[_0x1a6a35(0x16e)](_0x21f312,_0x354f4a),this[_0x1a6a35(0x354)](),new a[(_0x1a6a35(0x1ae))]();})),this[_0x13e257(0x1c2)](this[_0x13e257(0x2a7)]['onCommandExecuted']((_0x51a45a,_0x414b7c)=>{const _0x23ea70=_0x13e257;if(_0x51a45a['id']!==B[_0x23ea70(0x30a)]['id'])return;const _0x378df2=_0x51a45a[_0x23ea70(0x161)];if(qt(_0x378df2)){const _0x5b36fe=a['generateRandomId']();this[_0x23ea70(0x330)][_0x23ea70(0x3a6)](_0x5b36fe),this[_0x23ea70(0x23c)](_0x5b36fe);}else{if(zt(_0x378df2)&&this['_taskIds'][_0x23ea70(0x322)]>0x0){const _0x4e0d6c=this[_0x23ea70(0x330)]['shift']();this[_0x23ea70(0x2ac)](_0x4e0d6c);}}}));}[_0xa5554e(0x336)](){const _0x319bfd=_0xa5554e;super[_0x319bfd(0x336)](),this['_clearPolling'](),this[_0x319bfd(0x330)]=[],this[_0x319bfd(0x165)]=0x0,this[_0x319bfd(0x3cd)]=0x0,this[_0x319bfd(0x1cb)]=0x0;}async[_0xa5554e(0x16e)](_0x3110ac,_0x2d476f){const _0x4516f1=_0xa5554e;for(let _0x4e6796=0x0;_0x4e6796<0x1e;_0x4e6796++)try{if(await this[_0x4516f1(0x1a4)](),this[_0x4516f1(0x39b)]()){this['_applyCommand'](_0x3110ac,_0x2d476f),this[_0x4516f1(0x2b0)][_0x4516f1(0x383)]({'content':this[_0x4516f1(0x3cf)]['t']('formula.calculation.started'),'type':T[_0x4516f1(0x2f2)][_0x4516f1(0x19e)]});return;}await new Promise(_0x25d4c2=>{const _0x483a8b=_0x4516f1;this[_0x483a8b(0x1dd)]=window['setTimeout'](_0x25d4c2,0x3e8);});}catch(_0x5a8892){this[_0x4516f1(0x318)][_0x4516f1(0x21a)](_0x5a8892);}this[_0x4516f1(0x2b0)][_0x4516f1(0x383)]({'content':this['_localeService']['t'](_0x4516f1(0x2c2)),'type':T[_0x4516f1(0x2f2)][_0x4516f1(0x252)]});}[_0xa5554e(0x29a)](_0x179b2e,_0x1f8c1e){const _0x5966c9=_0xa5554e;try{this[_0x5966c9(0x2a7)][_0x5966c9(0x3d1)](_0x179b2e['id'],_0x179b2e['params'],_0x1f8c1e);}catch(_0x4530b8){this[_0x5966c9(0x318)][_0x5966c9(0x21a)](_0x4530b8);}}[_0xa5554e(0x1be)](_0x1cc327,_0x4bedfc){const _0x3a3486=_0xa5554e;_0x4bedfc<this[_0x3a3486(0x1cb)]||(this['_lastResponseTimestamp']=_0x4bedfc,this['_maxFormulaLimit']=Number[_0x3a3486(0x340)](_0x1cc327[_0x3a3486(0x30e)]),this[_0x3a3486(0x165)]=Number[_0x3a3486(0x340)](_0x1cc327[_0x3a3486(0x34e)]));}async[_0xa5554e(0x23c)](_0x30eff8){const _0x39373d=_0xa5554e;var _0x4f69f4,_0x5c4fa2;const _0x2633d4=Date[_0x39373d(0x17a)]();try{const _0x5029e1=((_0x4f69f4=this[_0x39373d(0x333)][_0x39373d(0x3ca)](u[_0x39373d(0x32f)]))==null?void 0x0:_0x4f69f4[_0x39373d(0x28d)])||es,_0x5c5ab1=(await this['_httpService'][_0x39373d(0x31e)](_0x5029e1,{'body':JSON[_0x39373d(0x1eb)]({'taskId':_0x30eff8})}))[_0x39373d(0x20c)];if(((_0x5c4fa2=_0x5c5ab1[_0x39373d(0x21a)])==null?void 0x0:_0x5c4fa2['code'])!==G['OK'])return;this[_0x39373d(0x1be)](_0x5c5ab1['limitInfo'],_0x2633d4);}catch(_0x9feef9){this[_0x39373d(0x318)][_0x39373d(0x21a)](_0x9feef9);}}async[_0xa5554e(0x1a4)](_0x2c7ea5){const _0x43734e=_0xa5554e;var _0x43a178,_0x5f3eb9;const _0x578b85=Date['now']();try{const _0x59fadf=((_0x43a178=this[_0x43734e(0x333)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x43a178['getformulaLimitStatusUrl'])||Qt,_0x14e952=_0x2c7ea5?_0x59fadf+_0x43734e(0x1c6)+encodeURIComponent(_0x2c7ea5):_0x59fadf,_0x3a007d=(await this[_0x43734e(0x3e3)][_0x43734e(0x23e)](_0x14e952))[_0x43734e(0x20c)];if(((_0x5f3eb9=_0x3a007d[_0x43734e(0x21a)])==null?void 0x0:_0x5f3eb9[_0x43734e(0x30c)])!==G['OK'])return;this[_0x43734e(0x1be)](_0x3a007d['limitInfo'],_0x578b85);}catch(_0x2393da){this[_0x43734e(0x318)]['error'](_0x2393da);}}async[_0xa5554e(0x2ac)](_0x12133f){const _0x5667d7=_0xa5554e;var _0xad8785,_0x4d34f3;const _0x3da921=Date[_0x5667d7(0x17a)]();try{const _0x2d8ae4=((_0xad8785=this['_configService'][_0x5667d7(0x3ca)](u[_0x5667d7(0x32f)]))==null?void 0x0:_0xad8785[_0x5667d7(0x272)])||ts,_0x1c5709=(await this[_0x5667d7(0x3e3)][_0x5667d7(0x31e)](_0x2d8ae4,{'body':JSON[_0x5667d7(0x1eb)]({'taskId':_0x12133f})}))[_0x5667d7(0x20c)];if(((_0x4d34f3=_0x1c5709[_0x5667d7(0x21a)])==null?void 0x0:_0x4d34f3[_0x5667d7(0x30c)])!==G['OK'])return;this[_0x5667d7(0x1be)](_0x1c5709['limitInfo'],_0x3da921);}catch(_0x50b7f7){this[_0x5667d7(0x318)][_0x5667d7(0x21a)](_0x50b7f7);}}['_checkCalculationAvailable'](){const _0x525563=_0xa5554e;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x525563(0x3cd)]-this['_currentUsage']>0x0;}[_0xa5554e(0x303)](){const _0x1d44aa=_0xa5554e;this[_0x1d44aa(0x1dd)]&&(clearTimeout(this[_0x1d44aa(0x1dd)]),this[_0x1d44aa(0x1dd)]=null);}['_showGuardMessage'](){const _0x61b928=_0xa5554e;this[_0x61b928(0x2b0)][_0x61b928(0x383)]({'content':this['_localeService']['t'](_0x61b928(0x359)),'type':T[_0x61b928(0x2f2)]['Loading']});}[_0xa5554e(0x373)](_0x5708b7){const _0x313a6d=_0xa5554e;for(const _0x29f2a2 of _0x5708b7){const {unitId:_0x37010a,sheetId:_0x57f276,range:_0x69f8b8}=_0x29f2a2,_0x436b1a=this[_0x313a6d(0x2b3)][_0x313a6d(0x210)](_0x37010a);if(!_0x436b1a)continue;const _0x12c6a5=_0x436b1a['getSheetBySheetId'](_0x57f276);if(!_0x12c6a5)continue;const _0x45f55d=_0x12c6a5[_0x313a6d(0x32a)]();for(let _0x2d7f65=_0x69f8b8[_0x313a6d(0x19d)];_0x2d7f65<=_0x69f8b8[_0x313a6d(0x186)];_0x2d7f65++)for(let _0x46cdef=_0x69f8b8[_0x313a6d(0x3a7)];_0x46cdef<=_0x69f8b8['endColumn'];_0x46cdef++){const _0x5470da=_0x45f55d[_0x313a6d(0x32b)](_0x2d7f65,_0x46cdef);if(_0x5470da&&(a[_0x313a6d(0x3ac)](_0x5470da['f'])||a[_0x313a6d(0x17f)](_0x5470da['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0xa5554e(0x212)](R['IMessageService'])),A(0x1,a[_0xa5554e(0x38d)]),A(0x2,a[_0xa5554e(0x19f)]),A(0x3,a['Inject'](X['HTTPService'])),A(0x4,a[_0xa5554e(0x204)]),A(0x5,a[_0xa5554e(0x3f0)]),A(0x6,a[_0xa5554e(0x212)](a[_0xa5554e(0x326)]))],ie);var ss=Object[_0xa5554e(0x1fa)],is=(_0x2f1726,_0x295b56,_0x3eeaf8,_0x3f9090)=>{const _0x9177eb=_0xa5554e;for(var _0x60b509=_0x3f9090>0x1?void 0x0:_0x3f9090?ss(_0x295b56,_0x3eeaf8):_0x295b56,_0xf4d019=_0x2f1726[_0x9177eb(0x322)]-0x1,_0x5c3386;_0xf4d019>=0x0;_0xf4d019--)(_0x5c3386=_0x2f1726[_0xf4d019])&&(_0x60b509=_0x5c3386(_0x60b509)||_0x60b509);return _0x60b509;},Ie=(_0x47c634,_0x125638)=>(_0x4c59e9,_0x38961b)=>_0x125638(_0x4c59e9,_0x38961b,_0x47c634);let Ce=class extends a[_0xa5554e(0x249)]{constructor(_0x196197,_0x297565,_0x5a2318){const _0x3d53e4=_0xa5554e;super(),_(this,_0x3d53e4(0x399),new Map()),_(this,_0x3d53e4(0x39c),new Map()),_(this,_0x3d53e4(0x314),!0x1),(this[_0x3d53e4(0x333)]=_0x196197,this[_0x3d53e4(0x391)]=_0x297565,this[_0x3d53e4(0x225)]=_0x5a2318);}[_0xa5554e(0x256)](){const _0x3e5b84=_0xa5554e;this[_0x3e5b84(0x314)]=!0x0;}[_0xa5554e(0x1de)](){const _0x4d5e0f=_0xa5554e;this[_0x4d5e0f(0x314)]=!0x1;}get['saveTaskMap'](){const _0x5a4596=_0xa5554e;return this[_0x5a4596(0x39c)];}[_0xa5554e(0x336)](){const _0x26721f=_0xa5554e;this[_0x26721f(0x2a9)]()['then'](()=>super[_0x26721f(0x336)]());}async[_0xa5554e(0x35d)](_0xa48668){const _0xc99e6a=_0xa5554e;return this[_0xc99e6a(0x314)]?null:this[_0xc99e6a(0x391)]['getItem'](u[_0xc99e6a(0x1da)](_0xa48668));}async['saveOfflineData'](_0x4f2c08,_0xa2a329){const _0xddb104=_0xa5554e;return!!this[_0xddb104(0x391)][_0xddb104(0x37f)](_0x4f2c08,_0xa2a329);}[_0xa5554e(0x26e)](_0x41c802,_0x377388,_0x6ca7be,_0x33fbab){const _0x15dc91=_0xa5554e,_0x4b148c=this[_0x15dc91(0x225)][_0x15dc91(0x282)](_0x41c802);this[_0x15dc91(0x399)][_0x15dc91(0x2eb)](_0x41c802,{'unitID':_0x41c802,'type':_0x377388,'awaitingChangeset':_0x6ca7be,'mutations':_0x33fbab,'rev':_0x4b148c}),this[_0x15dc91(0x39c)][_0x15dc91(0x2c8)](_0x41c802)||this[_0x15dc91(0x2f9)](_0x41c802);}[_0xa5554e(0x2f9)](_0x33e1de){const _0x685c51=_0xa5554e,_0x5d33f1=this[_0x685c51(0x221)]();_0x5d33f1===0x0?this[_0x685c51(0x357)](_0x33e1de):this[_0x685c51(0x39c)]['set'](_0x33e1de,setTimeout(()=>this[_0x685c51(0x357)](_0x33e1de),_0x5d33f1));}[_0xa5554e(0x221)](){const _0x26830f=_0xa5554e;var _0x43bc8b;return(_0x43bc8b=this[_0x26830f(0x333)][_0x26830f(0x3ca)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x43bc8b:u[_0x26830f(0x2c5)];}[_0xa5554e(0x357)](_0x1c8dfc){const _0x5f0f66=_0xa5554e,_0x4eb0b1=this['_saveTaskMap'][_0x5f0f66(0x23e)](_0x1c8dfc);return _0x4eb0b1!==void 0x0&&window[_0x5f0f66(0x259)](_0x4eb0b1),this[_0x5f0f66(0x391)][_0x5f0f66(0x37f)](u[_0x5f0f66(0x1da)](_0x1c8dfc),this[_0x5f0f66(0x399)][_0x5f0f66(0x23e)](_0x1c8dfc))[_0x5f0f66(0x28f)](()=>this[_0x5f0f66(0x39c)][_0x5f0f66(0x18a)](_0x1c8dfc));}async['exhaustSavingTask'](){const _0x4e4b0f=_0xa5554e,_0x2edcdb=[];this[_0x4e4b0f(0x39c)][_0x4e4b0f(0x338)]((_0x36c056,_0x4db51d)=>{const _0x631a2b=_0x4e4b0f;window[_0x631a2b(0x259)](_0x36c056),_0x2edcdb[_0x631a2b(0x3a6)](this[_0x631a2b(0x357)](_0x4db51d)['then'](()=>{const _0x3d9f2f=_0x631a2b;this[_0x3d9f2f(0x39c)][_0x3d9f2f(0x18a)](_0x4db51d);}));}),await Promise[_0x4e4b0f(0x1e8)](_0x2edcdb);}};Ce=is([Ie(0x0,a[_0xa5554e(0x19f)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a['Inject'](g[_0xa5554e(0x3c1)]))],Ce);class ke extends a[_0xa5554e(0x264)]{constructor(){const _0x18c0d6=_0xa5554e;super(),_(this,'urlChange$'),this[_0x18c0d6(0x261)]=I[_0x18c0d6(0x3da)](window,_0x18c0d6(0x3f7))[_0x18c0d6(0x2be)](I['takeUntil'](this[_0x18c0d6(0x197)]),I[_0x18c0d6(0x3e6)](0x1),I['mapTo'](void 0x0));}[_0xa5554e(0x301)](_0x3601b6,_0x52250e,_0x18ba16=!0x1){const _0x4256f2=_0xa5554e,_0x209767=new URL(window['location'][_0x4256f2(0x2f3)]);_0x209767[_0x4256f2(0x2ca)][_0x4256f2(0x2eb)](_0x3601b6,_0x52250e),_0x18ba16?window[_0x4256f2(0x35a)][_0x4256f2(0x31f)]('','',_0x209767[_0x4256f2(0x2f0)]()):window[_0x4256f2(0x35a)][_0x4256f2(0x392)]('','',_0x209767['toString']());}[_0xa5554e(0x3a5)](_0x3e10e7,_0xf83855=!0x1){const _0x17d097=_0xa5554e,_0x413b28=new URL(window[_0x17d097(0x1fe)][_0x17d097(0x2f3)]);_0x413b28[_0x17d097(0x2ca)][_0x17d097(0x18a)](_0x3e10e7),_0xf83855?window[_0x17d097(0x35a)][_0x17d097(0x31f)]('','',_0x413b28[_0x17d097(0x2f0)]()):window[_0x17d097(0x35a)][_0x17d097(0x392)]('','',_0x413b28[_0x17d097(0x2f0)]());}[_0xa5554e(0x163)](_0x2c30e5){const _0x4190f0=_0xa5554e;var _0xf02d0a;return(_0xf02d0a=new URL(window[_0x4190f0(0x1fe)][_0x4190f0(0x2f3)])['searchParams'][_0x4190f0(0x23e)](_0x2c30e5))!=null?_0xf02d0a:void 0x0;}}var ns=Object[_0xa5554e(0x384)],rs=Object['getOwnPropertyDescriptor'],os=(_0x343e19,_0x283e3f,_0x33196c)=>_0x283e3f in _0x343e19?ns(_0x343e19,_0x283e3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33196c}):_0x343e19[_0x283e3f]=_0x33196c,as=(_0x409e0f,_0x385cfc,_0x133847,_0x553af2)=>{const _0xdea4d9=_0xa5554e;for(var _0x88bfed=_0x553af2>0x1?void 0x0:_0x553af2?rs(_0x385cfc,_0x133847):_0x385cfc,_0x597f67=_0x409e0f[_0xdea4d9(0x322)]-0x1,_0x9f003f;_0x597f67>=0x0;_0x597f67--)(_0x9f003f=_0x409e0f[_0x597f67])&&(_0x88bfed=_0x9f003f(_0x88bfed)||_0x88bfed);return _0x88bfed;},de=(_0x4146b9,_0xad75e5)=>(_0x3d8c60,_0x50126c)=>_0xad75e5(_0x3d8c60,_0x50126c,_0x4146b9),cs=(_0x9b609c,_0x37936b,_0x149764)=>os(_0x9b609c,_0x37936b+'',_0x149764);const ls=_0xa5554e(0x31b);exports[_0xa5554e(0x182)]=class extends a[_0xa5554e(0x3a1)]{constructor(_0x4d0217=Le,_0x4f05fe,_0x5d6cc0,_0x3d6be8){const _0x4725fc=_0xa5554e;super(),this[_0x4725fc(0x1e0)]=_0x4d0217,this['_renderManagerService']=_0x4f05fe,this[_0x4725fc(0x2c1)]=_0x5d6cc0,this[_0x4725fc(0x333)]=_0x3d6be8;const {..._0x2ae317}=a[_0x4725fc(0x25b)]({},Le,this['_config']);this['_configService'][_0x4725fc(0x34c)](kt,_0x2ae317);}[_0xa5554e(0x172)](){const _0x4a46ff=_0xa5554e;this[_0x4a46ff(0x15f)](),this[_0x4a46ff(0x260)]();}[_0xa5554e(0x361)](){const _0x55cb9f=_0xa5554e;this[_0x55cb9f(0x2e4)]();}['_registerDependencies'](){const _0x5a57bc=_0xa5554e;var _0x34579a;const _0x168791=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x5a57bc(0x196)],{'useClass':X[_0x5a57bc(0x375)]}],[u[_0x5a57bc(0x321)],{'useClass':Ce}],[exports[_0x5a57bc(0x372)]],[se],[Z],[F],[fe],[exports[_0x5a57bc(0x403)]]];a[_0x5a57bc(0x1af)](this[_0x5a57bc(0x2c1)],a['mergeOverrideWithDependencies'](_0x168791,(_0x34579a=this[_0x5a57bc(0x1e0)])==null?void 0x0:_0x34579a[_0x5a57bc(0x3e9)]));}['_registerRenderDependencies'](){const _0x130dfe=_0xa5554e;this[_0x130dfe(0x1c2)](this[_0x130dfe(0x291)][_0x130dfe(0x24e)](a['UniverInstanceType'][_0x130dfe(0x3fb)],[ge])),this[_0x130dfe(0x1c2)](this[_0x130dfe(0x291)]['registerRenderModule'](a['UniverInstanceType'][_0x130dfe(0x2c9)],[Ee]));}[_0xa5554e(0x260)](){const _0x1f5730=_0xa5554e;a[_0x1f5730(0x405)](this[_0x1f5730(0x2c1)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[se],[Z],[exports[_0x1f5730(0x403)]],[ie]]);}},cs(exports['UniverCollaborationClientUIPlugin'],_0xa5554e(0x2cb),ls),exports[_0xa5554e(0x182)]=as([a[_0xa5554e(0x2a0)](u[_0xa5554e(0x1d9)]),de(0x1,C[_0xa5554e(0x397)]),de(0x2,a[_0xa5554e(0x212)](a[_0xa5554e(0x36a)])),de(0x3,a['IConfigService'])],exports[_0xa5554e(0x182)]);var _s=Object[_0xa5554e(0x1fa)],hs=(_0x5cb366,_0x493f06,_0x4fe047,_0x1d93b1)=>{const _0x2c509f=_0xa5554e;for(var _0x4f0b64=_0x1d93b1>0x1?void 0x0:_0x1d93b1?_s(_0x493f06,_0x4fe047):_0x493f06,_0x2d457b=_0x5cb366[_0x2c509f(0x322)]-0x1,_0x31e75a;_0x2d457b>=0x0;_0x2d457b--)(_0x31e75a=_0x5cb366[_0x2d457b])&&(_0x4f0b64=_0x31e75a(_0x4f0b64)||_0x4f0b64);return _0x4f0b64;},W=(_0x77e32c,_0xd8d91f)=>(_0x14bd48,_0x252061)=>_0xd8d91f(_0x14bd48,_0x252061,_0x77e32c);exports[_0xa5554e(0x3e8)]=class extends u[_0xa5554e(0x2dd)]{constructor(_0x232215,_0x346bfd,_0x48ad4f,_0x2f8f57,_0x3128a0){super(_0x232215,_0x346bfd,_0x48ad4f,_0x2f8f57,_0x3128a0);}async['createSocket'](_0x4f55c7){const _0x4128ea=_0xa5554e,_0x2818d0=await this[_0x4128ea(0x364)](),_0x3e33e8=this[_0x4128ea(0x2fe)](_0x4f55c7,_0x2818d0);return this[_0x4128ea(0x3d7)](_0x3e33e8);}[_0xa5554e(0x2fe)](_0x538408,_0x530552){const _0x4eb4e3=_0xa5554e,_0x51f31c=typeof window>'u'?new URL(_0x538408):new URL(_0x538408,window['location'][_0x4eb4e3(0x157)]);_0x51f31c[_0x4eb4e3(0x2ca)]['set']('sessionTicket',_0x530552);const _0x303a61=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4eb4e3(0x1fe)]['search']);return _0x303a61[_0x4eb4e3(0x23e)](_0x4eb4e3(0x312))&&_0x51f31c[_0x4eb4e3(0x2ca)]['set'](_0x4eb4e3(0x312),_0x303a61[_0x4eb4e3(0x23e)]('runId')),_0x51f31c['toString']();}async[_0xa5554e(0x364)](){const _0xda4ae9=_0xa5554e;var _0x2e42a1,_0x871d6a,_0x4e3eb1;const _0x54a037=this[_0xda4ae9(0x333)][_0xda4ae9(0x3ca)](u[_0xda4ae9(0x32f)]),_0x294a03=(_0x2e42a1=_0x54a037==null?void 0x0:_0x54a037[_0xda4ae9(0x34a)])!=null?_0x2e42a1:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4e3eb1=(_0x871d6a=(await this[_0xda4ae9(0x3e3)]['get'](_0x294a03,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x871d6a[_0xda4ae9(0x352)])!=null?_0x4e3eb1:'';}},exports[_0xa5554e(0x3e8)]=hs([W(0x0,a[_0xa5554e(0x212)](a['Injector'])),W(0x1,a[_0xa5554e(0x212)](X[_0xa5554e(0x247)])),W(0x2,a[_0xa5554e(0x19f)]),W(0x3,a[_0xa5554e(0x3f0)]),W(0x4,g[_0xa5554e(0x24b)])],exports[_0xa5554e(0x3e8)]);var us=Object[_0xa5554e(0x1fa)],Is=(_0x2100c1,_0xd65553,_0x6d10e1,_0x5a7e77)=>{const _0x20bb5d=_0xa5554e;for(var _0xdc7721=_0x5a7e77>0x1?void 0x0:_0x5a7e77?us(_0xd65553,_0x6d10e1):_0xd65553,_0x5592d4=_0x2100c1[_0x20bb5d(0x322)]-0x1,_0x27b92f;_0x5592d4>=0x0;_0x5592d4--)(_0x27b92f=_0x2100c1[_0x5592d4])&&(_0xdc7721=_0x27b92f(_0xdc7721)||_0xdc7721);return _0xdc7721;},Se=(_0x2085ae,_0x56af8a)=>(_0x2f18f9,_0x5d2ff2)=>_0x56af8a(_0x2f18f9,_0x5d2ff2,_0x2085ae);exports['RemoteUniscriptService']=class extends a[_0xa5554e(0x249)]{constructor(_0x5185f9,_0xa9bb3e,_0x2aed44){const _0x52daea=_0xa5554e;super(),this['_instanceService']=_0x5185f9,this['_httpService']=_0xa9bb3e,this[_0x52daea(0x333)]=_0x2aed44;}async[_0xa5554e(0x2fc)](_0xd34a73,_0x4cacce,_0x2ab5a3,..._0x298991){const _0x4e3b0a=_0xa5554e;var _0x307a42,_0x35d525,_0x208125,_0x280baa;const _0x356f81=this[_0x4e3b0a(0x184)][_0x4e3b0a(0x2ec)]();if(!_0x356f81)throw new Error(_0x4e3b0a(0x1f6));const _0x1cc5f0=((_0x307a42=this[_0x4e3b0a(0x333)]['getConfig'](u[_0x4e3b0a(0x2de)]))!=null?_0x307a42:u[_0x4e3b0a(0x3aa)])+'/'+_0xd34a73+_0x4e3b0a(0x25a)+_0x4cacce,_0x2e8761=new URL(window['location']['href']),_0x4b106e={'scriptId':_0xd34a73,'runId':(_0x35d525=_0x2e8761[_0x4e3b0a(0x2ca)][_0x4e3b0a(0x23e)](_0x4e3b0a(0x312)))!=null?_0x35d525:'','function':_0x4cacce,'unitId':_0x356f81[_0x4e3b0a(0x2bb)](),'argsOfFunction':JSON['stringify'](_0x298991),'invokeId':(_0x208125=_0x2ab5a3[_0x4e3b0a(0x1b9)])!=null?_0x208125:'','executionId':(_0x280baa=_0x2ab5a3[_0x4e3b0a(0x179)])!=null?_0x280baa:''};try{const _0xc4ac89=await this[_0x4e3b0a(0x3e3)][_0x4e3b0a(0x31e)](_0x1cc5f0,{'body':_0x4b106e});return _0xc4ac89['body'][_0x4e3b0a(0x21a)]&&_0xc4ac89[_0x4e3b0a(0x20c)]['error']['code']!==G['OK']?'Failed':_0xc4ac89[_0x4e3b0a(0x20c)][_0x4e3b0a(0x17d)];}catch{return _0x4e3b0a(0x3d9);}}},exports[_0xa5554e(0x31c)]=Is([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0xa5554e(0x212)](X[_0xa5554e(0x247)])),Se(0x2,a['IConfigService'])],exports[_0xa5554e(0x31c)]);const Pe=0x7530,we=_0xa5554e(0x306);class ds extends a[_0xa5554e(0x249)]{constructor(){const _0x22a813=_0xa5554e;super(),_(this,_0x22a813(0x1c9),a['generateRandomId']()),_(this,_0x22a813(0x3ee),new Set()),_(this,_0x22a813(0x200),new Map()),_(this,_0x22a813(0x17b),null),_(this,_0x22a813(0x192),new Map()),_(this,_0x22a813(0x1a8),new Map()),this[_0x22a813(0x269)]();}['dispose'](){const _0x470aa8=_0xa5554e;super[_0x470aa8(0x336)](),this[_0x470aa8(0x192)][_0x470aa8(0x338)]((_0xa8b256,_0xe824f9)=>this[_0x470aa8(0x223)](_0xe824f9)),this['_heartbeatTimer']&&window[_0x470aa8(0x3b1)](this[_0x470aa8(0x17b)]);}[_0xa5554e(0x29d)](_0x155942){const _0xb09641=_0xa5554e;return this[_0xb09641(0x3e1)](_0x155942)[_0xb09641(0x2be)](I[_0xb09641(0x2a3)]());}['editingUnit'](_0xe57f70){const _0x14f315=_0xa5554e;this[_0x14f315(0x3ee)]['size']===0x0&&this[_0x14f315(0x2ee)](),this[_0x14f315(0x3ee)][_0x14f315(0x235)](_0xe57f70),this[_0x14f315(0x36f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xe57f70],'isForwarded':!0x1});}[_0xa5554e(0x16c)](_0x4e70c9){const _0xfac20d=_0xa5554e;this[_0xfac20d(0x3ee)][_0xfac20d(0x18a)](_0x4e70c9),this[_0xfac20d(0x3ee)][_0xfac20d(0x1bf)]===0x0&&this['_heartbeatTimer']&&window[_0xfac20d(0x3b1)](this[_0xfac20d(0x17b)]);}[_0xa5554e(0x269)](){const _0x2ec7d4=_0xa5554e;this['disposeWithMe'](a[_0x2ec7d4(0x2f4)](I[_0x2ec7d4(0x3da)](window,_0x2ec7d4(0x1ce))[_0x2ec7d4(0x3cb)](_0x4ebac0=>{const _0x380513=_0x2ec7d4;if(_0x4ebac0['key']!==we||!_0x4ebac0[_0x380513(0x166)])return;const _0x3f2f7a=JSON[_0x380513(0x168)](_0x4ebac0[_0x380513(0x166)]);this[_0x380513(0x286)](_0x3f2f7a);}))),window[_0x2ec7d4(0x22f)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2ec7d4(0x1c9)],'unitIDs':Array[_0x2ec7d4(0x26b)](this[_0x2ec7d4(0x3ee)])}));}[_0xa5554e(0x286)](_0x4c4676){const _0x4f0faf=_0xa5554e;switch(_0x4c4676['type']){case 0x0:this[_0x4f0faf(0x1b8)](_0x4c4676);break;case 0x1:this[_0x4f0faf(0x274)](_0x4c4676);break;case 0x2:this['_handleHeartbeatEvent'](_0x4c4676);break;}}['_handleJoinEvent'](_0x1cd32e){const _0x2dc598=_0xa5554e,{unitIDs:_0x23321d,memberID:_0x5f06c0,isForwarded:_0x38c542}=_0x1cd32e;_0x23321d[_0x2dc598(0x338)](_0x294fa2=>{const _0x284eb4=_0x2dc598;if(!_0x38c542&&this[_0x284eb4(0x200)][_0x284eb4(0x2c8)](_0x294fa2)&&this[_0x284eb4(0x3e1)](_0x294fa2)[_0x284eb4(0x3d5)](u[_0x284eb4(0x2ce)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x294fa2)||!this[_0x284eb4(0x200)]['get'](_0x294fa2)[_0x284eb4(0x2c8)](_0x5f06c0)){const _0x319275=this[_0x284eb4(0x200)][_0x284eb4(0x23e)](_0x294fa2)||new Set();_0x319275[_0x284eb4(0x235)](_0x5f06c0),this[_0x284eb4(0x200)][_0x284eb4(0x2eb)](_0x294fa2,_0x319275),this[_0x284eb4(0x187)](_0x5f06c0);}}),_0x38c542||this[_0x2dc598(0x36f)]({'type':0x0,'memberID':this[_0x2dc598(0x1c9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58e12e){const _0x7709a0=_0xa5554e;this[_0x7709a0(0x223)](_0x58e12e);const _0x1ab939=window['setTimeout'](()=>{const _0x33c9c5=_0x7709a0;this['_unitOnClients'][_0x33c9c5(0x338)](_0x203647=>{const _0x2c0954=_0x33c9c5;_0x203647[_0x2c0954(0x18a)](_0x58e12e);});},Pe*0x2);this[_0x7709a0(0x192)][_0x7709a0(0x2eb)](_0x58e12e,_0x1ab939);}[_0xa5554e(0x223)](_0x5a54f5){const _0x5b7b96=_0xa5554e;if(this['_clearOtherTimers'][_0x5b7b96(0x2c8)](_0x5a54f5)){const _0x115d14=this[_0x5b7b96(0x192)][_0x5b7b96(0x23e)](_0x5a54f5);_0x115d14&&window[_0x5b7b96(0x259)](_0x115d14),this[_0x5b7b96(0x192)][_0x5b7b96(0x2eb)](_0x5a54f5,null);}}['_handleLeaveEvent'](_0x3397f9){const _0x3510bb=_0xa5554e,{memberID:_0x5a836b,unitIDs:_0x4d31d5}=_0x3397f9;_0x4d31d5[_0x3510bb(0x338)](_0x29784b=>{const _0xa79722=_0x3510bb;var _0x53370e;const _0xe7a647=this[_0xa79722(0x200)]['get'](_0x29784b);_0xe7a647&&(_0xe7a647[_0xa79722(0x18a)](_0x5a836b),(_0x53370e=this['_ensureSubject'](_0x29784b))==null||_0x53370e['next'](_0xe7a647[_0xa79722(0x1bf)]===0x0?u['UnitStatus'][_0xa79722(0x201)]:u[_0xa79722(0x2ce)][_0xa79722(0x3be)]));}),this[_0x3510bb(0x223)](_0x5a836b);}[_0xa5554e(0x308)](_0x235d6c){const _0x3cff13=_0xa5554e;this[_0x3cff13(0x187)](_0x235d6c['memberID']);}[_0xa5554e(0x36f)](_0x1d03ba){const _0x2c3576=_0xa5554e;localStorage[_0x2c3576(0x37f)](we,JSON[_0x2c3576(0x1eb)](_0x1d03ba));}[_0xa5554e(0x2ee)](){const _0x3d21bf=_0xa5554e;this[_0x3d21bf(0x17b)]=window[_0x3d21bf(0x1df)](()=>{const _0x33b28d=_0x3d21bf;this[_0x33b28d(0x36f)]({'type':0x2,'memberID':this[_0x33b28d(0x1c9)]});},Pe);}['_ensureSubject'](_0x2d9057){const _0x38998e=_0xa5554e;return this[_0x38998e(0x1a8)][_0x38998e(0x2c8)](_0x2d9057)||this['_unitStatus'][_0x38998e(0x2eb)](_0x2d9057,new I[(_0x38998e(0x189))](u[_0x38998e(0x2ce)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x38998e(0x23e)](_0x2d9057);}}exports['IURLService']=Te,exports[_0xa5554e(0x1d2)]=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports['WebURLService']=ke;
|
|
1
|
+
'use strict';const _0x1a3ccb=_0x1c99;(function(_0x4dd07d,_0x541ead){const _0x5dd375=_0x1c99,_0xf55185=_0x4dd07d();while(!![]){try{const _0x5d2aa6=-parseInt(_0x5dd375(0x31d))/0x1+-parseInt(_0x5dd375(0x263))/0x2+-parseInt(_0x5dd375(0x232))/0x3*(parseInt(_0x5dd375(0x16f))/0x4)+-parseInt(_0x5dd375(0x11d))/0x5+parseInt(_0x5dd375(0x237))/0x6*(-parseInt(_0x5dd375(0x108))/0x7)+-parseInt(_0x5dd375(0x327))/0x8*(-parseInt(_0x5dd375(0x22c))/0x9)+-parseInt(_0x5dd375(0x14f))/0xa*(-parseInt(_0x5dd375(0x1e8))/0xb);if(_0x5d2aa6===_0x541ead)break;else _0xf55185['push'](_0xf55185['shift']());}catch(_0x3f16fe){_0xf55185['push'](_0xf55185['shift']());}}}(_0x2448,0x68802));var Ve=Object['defineProperty'],Ge=(_0x5994dc,_0x3b3440,_0x280292)=>_0x3b3440 in _0x5994dc?Ve(_0x5994dc,_0x3b3440,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x280292}):_0x5994dc[_0x3b3440]=_0x280292,_=(_0x563ab0,_0x3135d3,_0x15f193)=>Ge(_0x563ab0,typeof _0x3135d3!=_0x1a3ccb(0x11e)?_0x3135d3+'':_0x3135d3,_0x15f193);Object[_0x1a3ccb(0x2d7)](exports,Symbol['toStringTag'],{'value':_0x1a3ccb(0x3ae)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),p=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x1c6f14,..._0x335c50}){const _0x4b2e16=_0x1a3ccb,{icon:_0x4c66c3,id:_0x5000d7,className:_0x57316c,extend:_0x3b2f15,..._0x193224}=_0x335c50,_0x542d68=(_0x4b2e16(0x201)+_0x5000d7+'\x20'+(_0x57316c||''))[_0x4b2e16(0x1d4)](),_0x4779ea=A[_0x4b2e16(0x24b)]('_'+Je());return we(_0x4c66c3,''+_0x5000d7,{'defIds':_0x4c66c3[_0x4b2e16(0x26c)],'idSuffix':_0x4779ea[_0x4b2e16(0x260)]},{'ref':_0x1c6f14,'className':_0x542d68,..._0x193224},_0x3b2f15);}function we(_0x3fb4e1,_0x49b213,_0x28302d,_0x140cbc,_0x1a65c5){const _0xda32b8=_0x1a3ccb;return A[_0xda32b8(0x30a)](_0x3fb4e1[_0xda32b8(0x37c)],{'key':_0x49b213,...qe(_0x3fb4e1,_0x28302d,_0x1a65c5),..._0x140cbc},(ze(_0x3fb4e1,_0x28302d)[_0xda32b8(0x296)]||[])[_0xda32b8(0x38f)]((_0x525130,_0x4469a4)=>we(_0x525130,_0x49b213+'-'+_0x3fb4e1['tag']+'-'+_0x4469a4,_0x28302d,void 0x0,_0x1a65c5)));}function qe(_0x5f569e,_0x55aa60,_0xfc0bf5){const _0x8e14a2=_0x1a3ccb,_0x566c08={..._0x5f569e[_0x8e14a2(0x223)]};_0xfc0bf5!=null&&_0xfc0bf5[_0x8e14a2(0x196)]&&_0x566c08[_0x8e14a2(0x150)]==='colorChannel1'&&(_0x566c08[_0x8e14a2(0x150)]=_0xfc0bf5[_0x8e14a2(0x196)]),_0x5f569e[_0x8e14a2(0x37c)]===_0x8e14a2(0x1fe)&&_0x566c08['id']&&(_0x566c08['id']=_0x566c08['id']+_0x55aa60['idSuffix']),Object['entries'](_0x566c08)[_0x8e14a2(0x32f)](([_0x1c3119,_0x9028a8])=>{const _0x113d87=_0x8e14a2;_0x1c3119==='mask'&&typeof _0x9028a8==_0x113d87(0x299)&&(_0x566c08[_0x1c3119]=_0x9028a8[_0x113d87(0x16c)](/url\(#(.*)\)/,'url(#$1'+_0x55aa60[_0x113d87(0x324)]+')'));});const {defIds:_0x54bdc7}=_0x55aa60;return!_0x54bdc7||_0x54bdc7[_0x8e14a2(0x370)]===0x0||(_0x5f569e[_0x8e14a2(0x37c)]==='use'&&_0x566c08['xlink:href']&&(_0x566c08[_0x8e14a2(0x33a)]=_0x566c08[_0x8e14a2(0x33a)]+_0x55aa60[_0x8e14a2(0x324)]),Object[_0x8e14a2(0x22b)](_0x566c08)[_0x8e14a2(0x32f)](([_0x5d169b,_0x20a7b9])=>{const _0x409427=_0x8e14a2;typeof _0x20a7b9=='string'&&(_0x566c08[_0x5d169b]=_0x20a7b9[_0x409427(0x16c)](/url\(#(.*)\)/,'url(#$1'+_0x55aa60['idSuffix']+')'));})),_0x566c08;}function ze(_0x2da659,_0x356024){const _0x5473b1=_0x1a3ccb;var _0x3e5919;const {defIds:_0x5df54f}=_0x356024;return!_0x5df54f||_0x5df54f[_0x5473b1(0x370)]===0x0?_0x2da659:_0x2da659[_0x5473b1(0x37c)]==='defs'&&((_0x3e5919=_0x2da659['children'])!=null&&_0x3e5919['length'])?{..._0x2da659,'children':_0x2da659[_0x5473b1(0x296)][_0x5473b1(0x38f)](_0x35a463=>typeof _0x35a463[_0x5473b1(0x223)]['id']=='string'&&_0x5df54f&&_0x5df54f[_0x5473b1(0x189)](_0x35a463['attrs']['id'])?{..._0x35a463,'attrs':{..._0x35a463[_0x5473b1(0x223)],'id':_0x35a463[_0x5473b1(0x223)]['id']+_0x356024[_0x5473b1(0x324)]}}:_0x35a463)}:_0x2da659;}function Je(){const _0x524b11=_0x1a3ccb;return Math[_0x524b11(0x2ae)]()['toString'](0x24)[_0x524b11(0x3bc)](0x2,0x8);}Ce['displayName']=_0x1a3ccb(0x220);const Ze={'tag':_0x1a3ccb(0x303),'attrs':{'xmlns':_0x1a3ccb(0x11c),'fill':'none','viewBox':_0x1a3ccb(0x309),'width':'1em','height':_0x1a3ccb(0x345)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1a3ccb(0x1f7),'attrs':{'stroke':_0x1a3ccb(0x2a9),'d':_0x1a3ccb(0x3a5),'strokeLinecap':_0x1a3ccb(0x239),'strokeLinejoin':_0x1a3ccb(0x239),'strokeWidth':1.2}}]},{'tag':_0x1a3ccb(0x249),'attrs':{},'children':[{'tag':_0x1a3ccb(0x352),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1a3ccb(0x1f7),'attrs':{'fill':'white','d':_0x1a3ccb(0x3b1)}}]}]}],'defIds':[_0x1a3ccb(0x2df)]},ye=A[_0x1a3ccb(0x226)](function(_0x5669c0,_0x1f280d){const _0xfeb017=_0x1a3ccb;return A[_0xfeb017(0x30a)](Ce,Object[_0xfeb017(0x110)]({},_0x5669c0,{'id':'off-line-icon','ref':_0x1f280d,'icon':Ze}));});ye[_0x1a3ccb(0x1f3)]=_0x1a3ccb(0x334);const Qe={'tag':_0x1a3ccb(0x303),'attrs':{'xmlns':_0x1a3ccb(0x11c),'fill':_0x1a3ccb(0x13b),'viewBox':_0x1a3ccb(0x1de),'width':_0x1a3ccb(0x345),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1a3ccb(0x2e7)},'children':[{'tag':_0x1a3ccb(0x1f7),'attrs':{'stroke':_0x1a3ccb(0x2a9),'d':_0x1a3ccb(0x2e6),'strokeLinecap':'round','strokeLinejoin':_0x1a3ccb(0x239),'strokeWidth':1.2}}]},{'tag':_0x1a3ccb(0x249),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1a3ccb(0x1e5)},'children':[{'tag':_0x1a3ccb(0x1f7),'attrs':{'fill':_0x1a3ccb(0x1c3),'d':_0x1a3ccb(0x3b1),'transform':'translate(.97)'}}]}]}],'defIds':[_0x1a3ccb(0x1e5)]},$e=A[_0x1a3ccb(0x226)](function(_0x28f8ff,_0x3f1a45){const _0x3339e4=_0x1a3ccb;return A[_0x3339e4(0x30a)](Ce,Object['assign']({},_0x28f8ff,{'id':_0x3339e4(0x217),'ref':_0x3f1a45,'icon':Qe}));});$e[_0x1a3ccb(0x1f3)]=_0x1a3ccb(0x166);function et(_0x3f2aa3){const _0x441a4c=_0x1a3ccb;switch(_0x3f2aa3){case u[_0x441a4c(0x24e)][_0x441a4c(0x374)]:return _0x441a4c(0x338);case u[_0x441a4c(0x24e)][_0x441a4c(0x1fd)]:return _0x441a4c(0x3ab);case u['CollaborationStatus'][_0x441a4c(0x320)]:return'collabStatus.fetchMiss';case u[_0x441a4c(0x24e)]['NOT_COLLAB']:return _0x441a4c(0x307);case u[_0x441a4c(0x24e)][_0x441a4c(0x2ca)]:case u[_0x441a4c(0x24e)][_0x441a4c(0x293)]:return _0x441a4c(0x291);case u[_0x441a4c(0x24e)][_0x441a4c(0x15e)]:case u[_0x441a4c(0x24e)][_0x441a4c(0x322)]:return _0x441a4c(0x1b6);}}function tt(_0x328986){const _0x2630d5=_0x1a3ccb,{status$:_0x4056b3}=_0x328986,_0x1c2229=O['useObservable'](_0x4056b3,u['CollaborationStatus'][_0x2630d5(0x3b8)]),_0x33ef12=O[_0x2630d5(0x229)](a[_0x2630d5(0x28b)]),_0x19b5c8=O[_0x2630d5(0x229)](u[_0x2630d5(0x147)]),_0x181746=_0x1c2229!==u[_0x2630d5(0x24e)][_0x2630d5(0x374)],_0x5d3502=_0x33ef12['t'](et(_0x1c2229)),_0x4d7b2e=_0x181746?M['jsx']($e,{}):M[_0x2630d5(0x1f0)](ye,{}),_0x53be18=A[_0x2630d5(0x169)](()=>{const _0x17eeac=_0x2630d5;_0x181746||_0x19b5c8[_0x17eeac(0x2bc)]();},[_0x181746,_0x19b5c8]);function _0x39f2f6(){const _0x4cad42=_0x2630d5;return M[_0x4cad42(0x20c)](_0x4cad42(0x177),{'className':_0x4cad42(0x176),'onClick':_0x53be18,'children':[M['jsx'](_0x4cad42(0x177),{'className':T[_0x4cad42(0x218)](_0x4cad42(0x1dc),{'univer-text-green-500':_0x181746,'univer-text-red-500':!_0x181746}),'children':_0x4d7b2e}),M[_0x4cad42(0x1f0)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5d3502})]});}return _0x181746?_0x39f2f6():M['jsx'](T[_0x2630d5(0x2a0)],{'title':_0x33ef12['t'](_0x2630d5(0x1fc)),'children':_0x39f2f6()});}var st=Object[_0x1a3ccb(0x26f)],it=(_0x5efa01,_0x432e60,_0xeb5b69,_0x19cbdd)=>{const _0x870b26=_0x1a3ccb;for(var _0x1e73e3=_0x19cbdd>0x1?void 0x0:_0x19cbdd?st(_0x432e60,_0xeb5b69):_0x432e60,_0x5f0392=_0x5efa01[_0x870b26(0x370)]-0x1,_0x5564c7;_0x5f0392>=0x0;_0x5f0392--)(_0x5564c7=_0x5efa01[_0x5f0392])&&(_0x1e73e3=_0x5564c7(_0x1e73e3)||_0x1e73e3);return _0x1e73e3;},K=(_0xf2e65b,_0xf17659)=>(_0x27d2cb,_0x29597b)=>_0xf17659(_0x27d2cb,_0x29597b,_0xf2e65b);exports[_0x1a3ccb(0x2d1)]=class extends a[_0x1a3ccb(0x2da)]{constructor(_0x2c973b,_0x16bf75,_0x497a42,_0x4e5ff0){const _0x1e3cd2=_0x1a3ccb;super(),_(this,'_status$',new I[(_0x1e3cd2(0x39e))](u['CollaborationStatus'][_0x1e3cd2(0x3b8)])),(this[_0x1e3cd2(0x2b0)]=_0x2c973b,this[_0x1e3cd2(0x21e)]=_0x16bf75,this[_0x1e3cd2(0x351)]=_0x497a42,this[_0x1e3cd2(0x321)]=_0x4e5ff0,this[_0x1e3cd2(0x3ba)](),this[_0x1e3cd2(0x16e)]());}[_0x1a3ccb(0x16e)](){const _0x473a52=_0x1a3ccb;this[_0x473a52(0x3a3)](this[_0x473a52(0x2b0)]['focused$'][_0x473a52(0x245)](I['switchMap'](()=>{const _0x4e9732=_0x473a52,_0x5ebf73=this[_0x4e9732(0x2b0)]['getFocusedUnit']();return _0x5ebf73?this['_collaborationController'][_0x4e9732(0x340)](_0x5ebf73[_0x4e9732(0x2dd)]()):I['of'](null);}),I[_0x473a52(0x3a9)](_0x1b9ecc=>_0x1b9ecc?_0x1b9ecc['status$']:I['of'](u[_0x473a52(0x24e)][_0x473a52(0x3b8)])))[_0x473a52(0x35c)](_0x5323fb=>{const _0x8384dd=_0x473a52;this[_0x8384dd(0x248)][_0x8384dd(0x38d)](_0x5323fb);}));}[_0x1a3ccb(0x3ba)](){const _0x151933=_0x1a3ccb;this[_0x151933(0x3a3)](this['_uiPartsService'][_0x151933(0x2fa)](O[_0x151933(0x171)][_0x151933(0x130)],()=>O[_0x151933(0x1df)](nt({'status$':this[_0x151933(0x248)][_0x151933(0x1a5)]()}),this[_0x151933(0x21e)])));}},exports[_0x1a3ccb(0x2d1)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x19e)])),K(0x2,a['Inject'](u[_0x1a3ccb(0x2f2)])),K(0x3,O[_0x1a3ccb(0x23c)])],exports[_0x1a3ccb(0x2d1)]);function nt(_0x537044){const {status$:_0x200485}=_0x537044;return function(){return M['jsx'](tt,{'status$':_0x200485});};}const pe=a['createIdentifier'](_0x1a3ccb(0x212));var rt=Object[_0x1a3ccb(0x26f)],ot=(_0x4e9343,_0x31a536,_0x4f439a,_0x3aacf4)=>{const _0x2401f0=_0x1a3ccb;for(var _0x55b878=_0x3aacf4>0x1?void 0x0:_0x3aacf4?rt(_0x31a536,_0x4f439a):_0x31a536,_0x48e386=_0x4e9343[_0x2401f0(0x370)]-0x1,_0x57a297;_0x48e386>=0x0;_0x48e386--)(_0x57a297=_0x4e9343[_0x48e386])&&(_0x55b878=_0x57a297(_0x55b878)||_0x55b878);return _0x55b878;},j=(_0x33d193,_0x557a05)=>(_0x1a9918,_0x427fcc)=>_0x557a05(_0x1a9918,_0x427fcc,_0x33d193);exports[_0x1a3ccb(0x372)]=class extends a['RxDisposable']{constructor(_0x255951,_0x146730,_0xb1c14d,_0xbb1d5f,_0x88a0ad){const _0x2a7e74=_0x1a3ccb;super(),this[_0x2a7e74(0x133)]=_0x255951,this['_logService']=_0x146730,this[_0x2a7e74(0x1a6)]=_0xb1c14d,this[_0x2a7e74(0x29d)]=_0xbb1d5f,_0x88a0ad?_0x88a0ad==null||_0x88a0ad[_0x2a7e74(0x2ec)]()[_0x2a7e74(0x3b6)](()=>this[_0x2a7e74(0x358)]()):(this[_0x2a7e74(0x316)]['debug'](_0x2a7e74(0x20d),_0x2a7e74(0x167)),this[_0x2a7e74(0x358)]());}async[_0x1a3ccb(0x358)](){const _0x45452e=_0x1a3ccb,_0x15aa48=this[_0x45452e(0x133)][_0x45452e(0x234)](_0x45452e(0x298)),_0x523337=this['_urlService'][_0x45452e(0x234)]('type'),_0xbe6e54=this[_0x45452e(0x133)][_0x45452e(0x234)](_0x45452e(0x35a));if(!_0x15aa48||!_0x523337){this[_0x45452e(0x316)]['debug'](_0x45452e(0x20d),_0x45452e(0x38a));return;}const _0x36dd35=await this[_0x45452e(0x29d)][_0x45452e(0x254)](_0x15aa48,Number(_0x523337),_0xbe6e54);_0x36dd35&&_0x36dd35 instanceof a[_0x45452e(0x2c2)]&&this['_setupSubUnitSync'](_0x36dd35);}async[_0x1a3ccb(0x1b2)](_0x118d6f){const _0x3194a1=_0x1a3ccb;await this[_0x3194a1(0x2c3)](_0x118d6f),_0x118d6f[_0x3194a1(0x10f)]['pipe'](I[_0x3194a1(0x1e6)](this[_0x3194a1(0x331)]))[_0x3194a1(0x35c)](_0x48d840=>{_0x48d840&&this['_updateURLWithCurrentState'](_0x48d840);}),this[_0x3194a1(0x133)]['urlChange$'][_0x3194a1(0x245)](I['takeUntil'](this[_0x3194a1(0x331)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x118d6f));}[_0x1a3ccb(0x2db)](_0x15c209,_0x393940=!0x1){const _0xc745e=_0x1a3ccb,_0x173477=this['_urlService'][_0xc745e(0x234)](_0xc745e(0x35a));_0x15c209[_0xc745e(0x1f4)]()!==_0x173477&&this[_0xc745e(0x133)][_0xc745e(0x36c)](_0xc745e(0x35a),_0x15c209[_0xc745e(0x1f4)](),_0x393940);}async[_0x1a3ccb(0x2c3)](_0x42373c){const _0x1d7091=_0x1a3ccb;var _0x583ece;const _0x5889c9=this[_0x1d7091(0x133)][_0x1d7091(0x234)](_0x1d7091(0x35a));if(!_0x5889c9||!_0x42373c[_0x1d7091(0x18a)](_0x5889c9)){const _0x3a5a4b=_0x42373c[_0x1d7091(0x1c8)]()[0x0],_0x13d6f3=_0x42373c['getSheetBySheetId'](_0x3a5a4b);if(!_0x13d6f3)return;this[_0x1d7091(0x2db)](_0x13d6f3,!0x0),await this['_commandService'][_0x1d7091(0x173)](g[_0x1d7091(0x389)]['id'],{'unitId':_0x42373c['getUnitId'](),'subUnitId':_0x3a5a4b});return;}((_0x583ece=_0x42373c['getActiveSheet']())==null?void 0x0:_0x583ece[_0x1d7091(0x1f4)]())!==_0x5889c9&&await this['_commandService'][_0x1d7091(0x173)](g[_0x1d7091(0x389)]['id'],{'unitId':_0x42373c['getUnitId'](),'subUnitId':_0x5889c9});}},exports[_0x1a3ccb(0x372)]=ot([j(0x0,pe),j(0x1,a[_0x1a3ccb(0x2c5)]),j(0x2,a[_0x1a3ccb(0x18e)]),j(0x3,a['Inject'](u[_0x1a3ccb(0x27d)])),j(0x4,a[_0x1a3ccb(0x1ac)](Xe[_0x1a3ccb(0x3b4)]))],exports[_0x1a3ccb(0x372)]);var at=Object[_0x1a3ccb(0x26f)],ct=(_0x3598f8,_0x5551ea,_0x328a9d,_0x4a3076)=>{const _0x5aa04e=_0x1a3ccb;for(var _0x90f82e=_0x4a3076>0x1?void 0x0:_0x4a3076?at(_0x5551ea,_0x328a9d):_0x5551ea,_0x1470fd=_0x3598f8[_0x5aa04e(0x370)]-0x1,_0x52af64;_0x1470fd>=0x0;_0x1470fd--)(_0x52af64=_0x3598f8[_0x1470fd])&&(_0x90f82e=_0x52af64(_0x90f82e)||_0x90f82e);return _0x90f82e;},Re=(_0x518fb6,_0x2ca056)=>(_0x2d9e13,_0x16711f)=>_0x2ca056(_0x2d9e13,_0x16711f,_0x518fb6);let de=class extends a['RxDisposable']{constructor(_0x5d3bd3,_0x48089c){const _0xce3c54=_0x1a3ccb;super(),this[_0xce3c54(0x284)]=_0x5d3bd3,this[_0xce3c54(0x2fd)]=_0x48089c,this['_init']();}['_init'](){const _0x3ab5ab=_0x1a3ccb,_0x45340e=this;this[_0x3ab5ab(0x3a3)](this['_docClipboardService'][_0x3ab5ab(0x22f)]({'onBeforePasteImage':async _0x501349=>{const _0x27f68e=_0x3ab5ab,_0x5db565=await _0x45340e[_0x27f68e(0x2fd)]['saveImage'](_0x501349);return _0x5db565?{'source':_0x5db565['source'],'imageSourceType':_0x5db565[_0x27f68e(0x228)]}:null;}}));}};de=ct([Re(0x0,p[_0x1a3ccb(0x3a2)]),Re(0x1,Ke[_0x1a3ccb(0x1a3)])],de);const be=[_0x1a3ccb(0x209),_0x1a3ccb(0x280),_0x1a3ccb(0x295),_0x1a3ccb(0x11a),_0x1a3ccb(0x18d),_0x1a3ccb(0x1c0)];class Te extends a[_0x1a3ccb(0x2da)]{constructor(){const _0x53954f=_0x1a3ccb;super(...arguments),_(this,_0x53954f(0x200),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x3c85c7){const _0x5c6de1=_0x1a3ccb;if(this['_assignedColors']['has'](_0x3c85c7))return this[_0x5c6de1(0x200)][_0x5c6de1(0x153)](_0x3c85c7);const _0x3865a4=be[this[_0x5c6de1(0x12b)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%be[_0x5c6de1(0x370)],this[_0x5c6de1(0x200)]['set'](_0x3c85c7,_0x3865a4),_0x3865a4;}}function xe(_0x4dd9d9){let _0x5750cf='';for(const _0x4d9d0a of _0x4dd9d9){const {startOffset:_0x2b62e1,endOffset:_0x2c83d2,isActive:_0x392001,rangeType:_0x29e604,segmentId:_0x49cbf0,segmentPage:_0x8e3df7}=_0x4d9d0a;_0x5750cf['length']&&(_0x5750cf+=','),_0x5750cf+=_0x2b62e1+':'+_0x2c83d2+':'+(_0x392001?'1':'0')+':'+_0x29e604+':'+_0x49cbf0+':'+_0x8e3df7;}return _0x5750cf;}function lt(_0x5c80d5){const _0x103976=_0x1a3ccb,_0xc709b3=_0x5c80d5[_0x103976(0x16b)](','),_0x3ab23d=[];for(const _0x2959f3 of _0xc709b3){const [_0x14d699,_0x53e6a1,_0x228404,_0x3751e3,_0x42d7a6,_0x34f2d5]=_0x2959f3[_0x103976(0x16b)](':');_0x3ab23d[_0x103976(0x18c)]({'startOffset':Number(_0x14d699),'endOffset':Number(_0x53e6a1),'collapsed':_0x14d699===_0x53e6a1,'isActive':_0x228404==='1','rangeType':_0x3751e3===a[_0x103976(0x2b3)][_0x103976(0x168)]?a[_0x103976(0x2b3)][_0x103976(0x168)]:a[_0x103976(0x2b3)]['RECT'],'segmentId':typeof _0x42d7a6=='string'?String(_0x42d7a6):'','segmentPage':Number(_0x34f2d5!=null?_0x34f2d5:-0x1)});}return _0x3ab23d[_0x103976(0x160)](_0x32f2c9=>_0x32f2c9[_0x103976(0x36e)])||(_0x3ab23d[0x0][_0x103976(0x36e)]=!0x0),_0x3ab23d;}function _0x1c99(_0x3eadf9,_0x56bb77){const _0x2448e3=_0x2448();return _0x1c99=function(_0x1c9920,_0x490a92){_0x1c9920=_0x1c9920-0x108;let _0x1f4440=_0x2448e3[_0x1c9920];return _0x1f4440;},_0x1c99(_0x3eadf9,_0x56bb77);}class Oe extends a[_0x1a3ccb(0x136)]{constructor(){const _0x2bfef8=_0x1a3ccb;super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,_0x2bfef8(0x31a),this[_0x2bfef8(0x33e)]['asObservable']());}[_0x1a3ccb(0x2f3)](_0x8c8a00){const _0x3f1200=_0x1a3ccb,{unitID:_0x2352d0,memberID:_0x369d34,textRanges:_0x427eae}=_0x8c8a00,_0x3a05cb=xe(_0x427eae);if(_0x3a05cb==='')return;const _0xec015e={'unitID':_0x2352d0,'memberID':_0x369d34,'selection':_0x3a05cb};this[_0x3f1200(0x33e)][_0x3f1200(0x38d)](_0xec015e);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0xc06c80,_0x10d912,_0x57a673,_0x56ff20)=>{for(var _0x1daa14=_0x56ff20>0x1?void 0x0:_0x56ff20?_t(_0x10d912,_0x57a673):_0x10d912,_0x342a46=_0xc06c80['length']-0x1,_0x24d852;_0x342a46>=0x0;_0x342a46--)(_0x24d852=_0xc06c80[_0x342a46])&&(_0x1daa14=_0x24d852(_0x1daa14)||_0x1daa14);return _0x1daa14;},U=(_0x2a8425,_0x425aec)=>(_0x2406f4,_0x4e3b7f)=>_0x425aec(_0x2406f4,_0x4e3b7f,_0x2a8425);const ut=0x12c,It=0x64;let fe=class extends a[_0x1a3ccb(0x136)]{constructor(_0x591730,_0x68b153,_0xb745f9,_0xd86d43,_0x227a85,_0x4aa5b5,_0x6df886,_0x2a333d,_0x5cca2d){const _0x1d6e6d=_0x1a3ccb;super(),_(this,_0x1d6e6d(0x36a),!0x1),_(this,_0x1d6e6d(0x358),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x1d6e6d(0x22e),this[_0x1d6e6d(0x143)][_0x1d6e6d(0x1a5)]()),_(this,'_roomMembers$',new I[(_0x1d6e6d(0x39e))]([])),_(this,_0x1d6e6d(0x22d),this[_0x1d6e6d(0x359)][_0x1d6e6d(0x245)](I[_0x1d6e6d(0x286)](ut))),_(this,_0x1d6e6d(0x117),a[_0x1d6e6d(0x36b)](_0x493961=>{const _0x38e654=_0x1d6e6d,_0xb6138b={'eventID':v[_0x38e654(0x1b4)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x38e654(0x13c)],'memberID':this[_0x38e654(0x148)]['getMemberID'](),'selection':xe(_0x493961)}};this[_0x38e654(0x148)][_0x38e654(0x251)](_0xb6138b,this[_0x38e654(0x13c)]);},It)),(this['unitID']=_0x591730,this['_session']=_0x68b153,this[_0x1d6e6d(0x21e)]=_0xb745f9,this[_0x1d6e6d(0x184)]=_0xd86d43,this[_0x1d6e6d(0x318)]=_0x227a85,this['_syncEditingCollabCursorService']=_0x4aa5b5,this[_0x1d6e6d(0x181)]=_0x6df886,this['_univerInstanceService']=_0x2a333d,this[_0x1d6e6d(0x1a6)]=_0x5cca2d);}get['cursorInfo'](){const _0x58f654=_0x1a3ccb;return this[_0x58f654(0x143)][_0x58f654(0x399)]();}get[_0x1a3ccb(0x16a)](){const _0x434925=_0x1a3ccb;return this[_0x434925(0x359)][_0x434925(0x399)]();}[_0x1a3ccb(0x39f)](){const _0x5eefba=_0x1a3ccb;super[_0x5eefba(0x39f)](),this[_0x5eefba(0x143)]['next'](new Map()),this[_0x5eefba(0x143)][_0x5eefba(0x236)](),this[_0x5eefba(0x359)]['next']([]),this[_0x5eefba(0x359)][_0x5eefba(0x236)]();}[_0x1a3ccb(0x373)](){const _0x57c1c2=_0x1a3ccb;this[_0x57c1c2(0x358)]||(this[_0x57c1c2(0x358)]=!0x0,this[_0x57c1c2(0x148)][_0x57c1c2(0x1e7)][_0x57c1c2(0x245)](I[_0x57c1c2(0x1e6)](this[_0x57c1c2(0x331)]))['subscribe'](_0x2b617c=>{const _0x326ad6=_0x57c1c2;_0x2b617c===u[_0x326ad6(0x14a)]['ONLINE']?this[_0x326ad6(0x2e9)]():this[_0x326ad6(0x261)]();}),this[_0x57c1c2(0x148)][_0x57c1c2(0x20b)][_0x57c1c2(0x245)](I[_0x57c1c2(0x1e6)](this[_0x57c1c2(0x331)]))['subscribe'](_0xe87a23=>{const _0x522202=_0x57c1c2,_0xe7bbcb=_0xe87a23[_0x522202(0x1e1)];_0xe7bbcb===v[_0x522202(0x1b4)][_0x522202(0x214)]&&this[_0x522202(0x1bf)](_0xe87a23),_0xe7bbcb===v['CollaborationEvent'][_0x522202(0x265)]&&this[_0x522202(0x2de)](_0xe87a23);}),this['disposeWithMe'](this[_0x57c1c2(0x1a6)][_0x57c1c2(0x2ce)](_0x48f41c=>{const _0x10cc9c=_0x57c1c2,_0x488e35=_0x48f41c['params'];_0x488e35!=null&&this[_0x10cc9c(0x36a)]&&_0x48f41c['id']===W[_0x10cc9c(0x31b)]['id']&&_0x488e35['unitId']===this[_0x10cc9c(0x13c)]&&_0x488e35['isEditing']===!0x1&&_0x488e35[_0x10cc9c(0x26e)]['length']>0x0&&this[_0x10cc9c(0x117)](_0x488e35['ranges']);})),this[_0x57c1c2(0x1e3)][_0x57c1c2(0x31a)]['pipe'](I[_0x57c1c2(0x1e6)](this[_0x57c1c2(0x331)]))[_0x57c1c2(0x35c)](_0xb21dd6=>{const _0x51de4f=_0x57c1c2;if((_0xb21dd6==null?void 0x0:_0xb21dd6['unitID'])!==this['unitID'])return;const _0x5b3185={'eventID':v[_0x51de4f(0x1b4)]['UPDATE_CURSOR'],'data':_0xb21dd6};this['_onCursorUpdate'](_0x5b3185);}),this[_0x57c1c2(0x3a3)](this[_0x57c1c2(0x1a6)][_0x57c1c2(0x2ce)](_0x14b8c9=>{const _0x39faf4=_0x57c1c2;if(_0x14b8c9[_0x39faf4(0x1ff)]==null)return;const _0x2b2c14=_0x14b8c9[_0x39faf4(0x1ff)];if(_0x14b8c9['id']!==W['RichTextEditingMutation']['id']||_0x2b2c14[_0x39faf4(0x17b)]!==this[_0x39faf4(0x13c)])return;const _0x143b85={'id':_0x39faf4(0x170),'params':_0x2b2c14},_0x3fb7c2=this[_0x39faf4(0x1d0)];for(const [_0x25d419,_0x595f7c]of _0x3fb7c2){const _0x331bdf={'id':_0x39faf4(0x170),'params':{'unitId':this[_0x39faf4(0x13c)],'actions':null,'textRanges':_0x595f7c[_0x39faf4(0x26e)]}},_0x2c388e=this[_0x39faf4(0x181)]['transformMutation'](_0x143b85,_0x331bdf,!0x1);if(v[_0x39faf4(0x383)](_0x2c388e))throw _0x2c388e[_0x39faf4(0x13a)];_0x3fb7c2[_0x39faf4(0x163)](_0x25d419,{..._0x595f7c,'ranges':_0x2c388e[_0x39faf4(0x1a1)][_0x39faf4(0x1ff)][_0x39faf4(0x186)]});}queueMicrotask(()=>{const _0x3f4fb3=_0x39faf4;this[_0x3f4fb3(0x143)]['next'](_0x3fb7c2);});})));}[_0x1a3ccb(0x1bf)](_0x33e576){const _0x4287b7=_0x1a3ccb;var _0x3708f8,_0x5ee12a;const {memberID:_0x1f9456,selection:_0x23296c}=_0x33e576[_0x4287b7(0x2b9)],_0xbd149=lt(_0x23296c),_0x1c2a27=(_0x5ee12a=(_0x3708f8=this[_0x4287b7(0x318)]['getMember'](this[_0x4287b7(0x13c)],_0x1f9456))==null?void 0x0:_0x3708f8[_0x4287b7(0x304)])!=null?_0x5ee12a:_0x4287b7(0x1d1),_0x601c8e={'color':this[_0x4287b7(0x184)][_0x4287b7(0x179)](_0x1f9456),'name':_0x1c2a27,'ranges':_0xbd149},_0x306b44=this[_0x4287b7(0x1d0)];_0x306b44[_0x4287b7(0x163)](_0x1f9456,_0x601c8e),this[_0x4287b7(0x143)][_0x4287b7(0x38d)](_0x306b44);}['_onCursorDelete'](_0x130f38){const _0x4be938=_0x1a3ccb,{memberID:_0x380dda}=_0x130f38[_0x4be938(0x2b9)],_0x31e70e=this['cursorInfo'];_0x31e70e[_0x4be938(0x2cc)](_0x380dda),this[_0x4be938(0x143)][_0x4be938(0x38d)](_0x31e70e);}[_0x1a3ccb(0x2e9)](){const _0x897efd=_0x1a3ccb;var _0x3f6b7f;if(this[_0x897efd(0x36a)]=!0x0,((_0x3f6b7f=this[_0x897efd(0x2b0)][_0x897efd(0x355)]())==null?void 0x0:_0x3f6b7f['getUnitId']())!==this[_0x897efd(0x13c)])return;const _0xf6ebec=this[_0x897efd(0x21e)][_0x897efd(0x153)](W['DocSelectionManagerService'])[_0x897efd(0x1d5)]();Array[_0x897efd(0x27c)](_0xf6ebec)&&_0xf6ebec[_0x897efd(0x370)]>0x0&&this[_0x897efd(0x117)](_0xf6ebec);}[_0x1a3ccb(0x261)](){const _0x550570=_0x1a3ccb;this[_0x550570(0x36a)]=!0x1;}};fe=ht([U(0x2,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x19e)])),U(0x3,a[_0x1a3ccb(0x204)](Te)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a['Inject'](Oe)),U(0x6,v[_0x1a3ccb(0x281)]),U(0x7,a[_0x1a3ccb(0x15f)]),U(0x8,a['ICommandService'])],fe);var St=Object[_0x1a3ccb(0x26f)],dt=(_0x56e396,_0x29c707,_0x1ea19d,_0x439dd3)=>{for(var _0xfe203f=_0x439dd3>0x1?void 0x0:_0x439dd3?St(_0x29c707,_0x1ea19d):_0x29c707,_0x4c8bad=_0x56e396['length']-0x1,_0x53711d;_0x4c8bad>=0x0;_0x4c8bad--)(_0x53711d=_0x56e396[_0x4c8bad])&&(_0xfe203f=_0x53711d(_0xfe203f)||_0xfe203f);return _0xfe203f;},w=(_0x339b80,_0x36240a)=>(_0x3b5a97,_0x5e62f4)=>_0x36240a(_0x3b5a97,_0x5e62f4,_0x339b80);const ft=0x12c,mt=0x64,gt=()=>{let _0x12b210=[],_0x264df3=!0x1;return _0x4d7975=>{const _0x13b0c0=_0x1c99;_0x12b210[_0x13b0c0(0x18c)](_0x4d7975),_0x264df3||(_0x264df3=!0x0,setTimeout(()=>{const _0x37d5fd=_0x13b0c0;_0x12b210[_0x37d5fd(0x32f)](_0x18c89e=>_0x18c89e()),_0x12b210=[],_0x264df3=!0x1;}));};};let me=class extends a[_0x1a3ccb(0x136)]{constructor(_0x311b38,_0x390840,_0x53017e,_0x1e22a6,_0x11aea4,_0x49dab8,_0x4ad36d,_0x1a1e05){const _0x14c60f=_0x1a3ccb;super(),_(this,_0x14c60f(0x36a),!0x1),_(this,_0x14c60f(0x358),!0x1),_(this,'_cursorInfo$',new I[(_0x14c60f(0x39e))](new Map())),_(this,_0x14c60f(0x22e),this[_0x14c60f(0x143)][_0x14c60f(0x1a5)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x14c60f(0x22d),this[_0x14c60f(0x359)][_0x14c60f(0x245)](I[_0x14c60f(0x286)](ft))),_(this,_0x14c60f(0x117),a[_0x14c60f(0x36b)]((_0x2cb05a,_0x7817e)=>{const _0x20de48=_0x14c60f,_0x3e6940={'eventID':v['CollaborationEvent'][_0x20de48(0x214)],'data':{'unitID':this[_0x20de48(0x13c)],'memberID':this[_0x20de48(0x148)]['getMemberID'](),'selection':x[_0x20de48(0x2d4)](_0x2cb05a,_0x7817e['range'])}};this['_session'][_0x20de48(0x251)](_0x3e6940,this[_0x20de48(0x13c)]);},mt)),(this[_0x14c60f(0x13c)]=_0x311b38,this[_0x14c60f(0x148)]=_0x390840,this['_injector']=_0x53017e,this[_0x14c60f(0x184)]=_0x1e22a6,this[_0x14c60f(0x318)]=_0x11aea4,this[_0x14c60f(0x2b0)]=_0x49dab8,this[_0x14c60f(0x1a6)]=_0x4ad36d,this[_0x14c60f(0x1fa)]=_0x1a1e05);}get[_0x1a3ccb(0x1d0)](){return this['_cursorInfo$']['getValue']();}get[_0x1a3ccb(0x16a)](){const _0x411e59=_0x1a3ccb;return this[_0x411e59(0x359)][_0x411e59(0x399)]();}[_0x1a3ccb(0x39f)](){const _0x5658bf=_0x1a3ccb;super[_0x5658bf(0x39f)](),this[_0x5658bf(0x143)][_0x5658bf(0x38d)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x5658bf(0x38d)]([]),this[_0x5658bf(0x359)][_0x5658bf(0x236)]();}[_0x1a3ccb(0x373)](){const _0x3f2209=_0x1a3ccb;this[_0x3f2209(0x358)]||(this[_0x3f2209(0x358)]=!0x0,this[_0x3f2209(0x148)][_0x3f2209(0x1e7)][_0x3f2209(0x245)](I[_0x3f2209(0x1e6)](this[_0x3f2209(0x331)]))[_0x3f2209(0x35c)](_0xa8581=>{const _0x1284b5=_0x3f2209;_0xa8581===u[_0x1284b5(0x14a)][_0x1284b5(0x255)]?this[_0x1284b5(0x2e9)]():this['_toggleOffline']();}),this[_0x3f2209(0x148)]['event$'][_0x3f2209(0x245)](I[_0x3f2209(0x1e6)](this[_0x3f2209(0x331)]))[_0x3f2209(0x35c)](_0x154845=>{const _0xfeb058=_0x3f2209,_0x4574a4=_0x154845['eventID'];_0x4574a4===v[_0xfeb058(0x1b4)][_0xfeb058(0x214)]&&this[_0xfeb058(0x1bf)](_0x154845),_0x4574a4===v[_0xfeb058(0x1b4)][_0xfeb058(0x265)]&&this[_0xfeb058(0x2de)](_0x154845);}),this[_0x3f2209(0x35f)](),this[_0x3f2209(0x3a3)](this['_commandService'][_0x3f2209(0x2ce)](_0x2db573=>{const _0x3e8769=_0x3f2209;if(this[_0x3e8769(0x36a)]&&_0x2db573['id']===g['SetSelectionsOperation']['id']&&_0x2db573[_0x3e8769(0x1ff)]['unitId']===this[_0x3e8769(0x13c)]){const _0x176675=_0x2db573[_0x3e8769(0x1ff)];this[_0x3e8769(0x117)](_0x176675[_0x3e8769(0x26a)],_0x176675[_0x3e8769(0x398)][0x0]);}})));}[_0x1a3ccb(0x1bf)](_0x2e3b30){const _0x45be13=_0x1a3ccb;var _0x27e691,_0x562f2b;const {memberID:_0xac514,selection:_0x75ff61}=_0x2e3b30[_0x45be13(0x2b9)],{sheetName:_0x501aab,range:_0xe8f1f6}=x[_0x45be13(0x1cd)](_0x75ff61),_0x45fc64={'name':(_0x562f2b=(_0x27e691=this['_memberService'][_0x45be13(0x20e)](this['unitID'],_0xac514))==null?void 0x0:_0x27e691['name'])!=null?_0x562f2b:_0x45be13(0x1d1),'range':this[_0x45be13(0x213)](_0x501aab,_0xe8f1f6),'sheetID':_0x501aab,'color':this[_0x45be13(0x184)][_0x45be13(0x179)](_0xac514),'selection':_0x75ff61},_0x3ca968=this[_0x45be13(0x1d0)];_0x3ca968[_0x45be13(0x163)](_0xac514,_0x45fc64),this[_0x45be13(0x143)][_0x45be13(0x38d)](_0x3ca968);}[_0x1a3ccb(0x2de)](_0x503f70){const _0x126eca=_0x1a3ccb,{memberID:_0x20aeeb}=_0x503f70[_0x126eca(0x2b9)],_0x2d09de=this[_0x126eca(0x1d0)];_0x2d09de[_0x126eca(0x2cc)](_0x20aeeb),this[_0x126eca(0x143)][_0x126eca(0x38d)](_0x2d09de);}[_0x1a3ccb(0x213)](_0x3817d7,_0x46e94c){const _0x32d419=_0x1a3ccb;var _0x54bb96,_0x56397d;const _0x4793ed=(_0x56397d=(_0x54bb96=this[_0x32d419(0x2b0)][_0x32d419(0x1c5)](this[_0x32d419(0x13c)]))==null?void 0x0:_0x54bb96[_0x32d419(0x18a)](_0x3817d7))==null?void 0x0:_0x56397d[_0x32d419(0x219)]();return(_0x4793ed==null?void 0x0:_0x4793ed['find'](_0x23f0c4=>a[_0x32d419(0x178)]['contains'](_0x23f0c4,_0x46e94c)))||_0x46e94c;}[_0x1a3ccb(0x35f)](){const _0x324de2=_0x1a3ccb,_0x2e7d97=new a['DisposableCollection'](),_0x1a2b69=gt(),_0x340107=()=>{const _0x5a1f37=_0x1c99;_0x2e7d97[_0x5a1f37(0x39f)]();const _0x4eae90=(_0x5dd956,_0x5aaa20,_0x24490a,_0x52cf93)=>{const _0x5a5b16=_0x5a1f37;let _0x12a26d=[];switch(_0x5dd956['id']){case g['EffectRefRangId'][_0x5a5b16(0x230)]:{_0x12a26d=g[_0x5a5b16(0x2e8)](_0x5dd956,_0x52cf93);break;}case g[_0x5a5b16(0x1a7)][_0x5a5b16(0x24a)]:{_0x12a26d=g[_0x5a5b16(0x35b)](_0x5dd956,_0x52cf93);break;}case g['EffectRefRangId'][_0x5a5b16(0x2f8)]:{_0x12a26d=g[_0x5a5b16(0x37d)](_0x5dd956,_0x52cf93);break;}case g[_0x5a5b16(0x1a7)][_0x5a5b16(0x15a)]:{_0x12a26d=g[_0x5a5b16(0x235)](_0x5dd956,_0x52cf93);break;}case g[_0x5a5b16(0x1a7)]['InsertRangeMoveRightCommandId']:{_0x12a26d=g[_0x5a5b16(0x119)](_0x5dd956,_0x52cf93);break;}case g[_0x5a5b16(0x1a7)][_0x5a5b16(0x12c)]:{_0x12a26d=g['handleInsertRow'](_0x5dd956,_0x52cf93);break;}case g[_0x5a5b16(0x1a7)]['MoveRangeCommandId']:{_0x12a26d=g[_0x5a5b16(0x339)](_0x5dd956,_0x52cf93);break;}case g[_0x5a5b16(0x1a7)]['RemoveColCommandId']:{_0x12a26d=g[_0x5a5b16(0x1c9)](_0x5dd956,_0x52cf93);break;}case g[_0x5a5b16(0x1a7)][_0x5a5b16(0x252)]:{_0x12a26d=g['handleIRemoveRow'](_0x5dd956,_0x52cf93);break;}}const _0x2f09fc=g[_0x5a5b16(0x1f1)](_0x12a26d,_0x52cf93),_0x1f6284=this['cursorInfo'][_0x5a5b16(0x153)](_0x5aaa20);if(_0x1f6284&&_0x2f09fc){const _0x4682bf={..._0x1f6284,'range':_0x2f09fc};this['cursorInfo'][_0x5a5b16(0x163)](_0x5aaa20,_0x4682bf),_0x1a2b69(()=>{const _0x387698=_0x5a5b16,_0x288639=this[_0x387698(0x1fa)][_0x387698(0x283)](_0x2f09fc,_0x7f1fac=>(_0x288639[_0x387698(0x39f)](),_0x4eae90(_0x7f1fac,_0x5aaa20,_0x24490a,_0x2f09fc)));_0x2e7d97['add'](_0x288639);});}return{'redos':[],'undos':[]};};this[_0x5a1f37(0x1d0)][_0x5a1f37(0x32f)]((_0x24c20e,_0x154360)=>{const _0x4a48dc=_0x5a1f37,{range:_0x4b488e,sheetID:_0x47df80}=_0x24c20e,_0x1214b9=this[_0x4a48dc(0x1fa)][_0x4a48dc(0x283)](_0x4b488e,_0xf039dc=>(_0x1214b9[_0x4a48dc(0x39f)](),_0x4eae90(_0xf039dc,_0x154360,_0x47df80,_0x4b488e)));_0x2e7d97[_0x4a48dc(0x32b)](_0x1214b9);});};this[_0x324de2(0x3a3)](a[_0x324de2(0x397)](this[_0x324de2(0x143)]['subscribe'](()=>{_0x340107();})));}[_0x1a3ccb(0x2e9)](){const _0x75b45c=_0x1a3ccb;var _0x94393f,_0x122ff6;if(this[_0x75b45c(0x36a)]=!0x0,((_0x94393f=this[_0x75b45c(0x2b0)][_0x75b45c(0x355)]())==null?void 0x0:_0x94393f[_0x75b45c(0x2dd)]())!==this[_0x75b45c(0x13c)])return;const _0x588f4a=(_0x122ff6=this[_0x75b45c(0x21e)]['get'](g[_0x75b45c(0x30d)])['getCurrentSelections']())==null?void 0x0:_0x122ff6[0x0],_0x161e1a=this[_0x75b45c(0x2b0)]['getCurrentUnitForType'](a[_0x75b45c(0x360)]['UNIVER_SHEET'])[_0x75b45c(0x246)]();_0x588f4a&&_0x161e1a&&this[_0x75b45c(0x117)](_0x161e1a['getSheetId'](),_0x588f4a);}[_0x1a3ccb(0x261)](){const _0x8d810f=_0x1a3ccb;this[_0x8d810f(0x36a)]=!0x1;}};function _0x2448(){const _0x2fde2b=['Tools','lineTo','onStarting','_entityInit$','random','_docStateChangeManagerService','_univerInstanceService','UNRECOGNIZED','INVITE_CODE_HAS_BEEN_UES','DOC_RANGE_TYPE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','YUUMI_SUBSCRIPTION_NOT_FOUND','EMAIL_HAS_BEEN_BOUND','Loading','mutations','data','parseInt','VIEW_MAIN','reconnect','_drawRectRange','restore','_unitStatus','collab-text-range-','UNIVER_DOC','Workbook','_updateSubUnitFromURLParams','editingUnit','ILogService','onPointerMove$','shareReplay','_removeCollabCursors','getViewport','AWAITING','NO_OTHER_CLIENTS_EDITING','delete','has','onCommandExecuted','_getSaveTimeout','wsSessionTicketUrl','DesktopCollaborationStatusDisplayController','/run/','_docSkeleton','serializeRangeWithSheet','ColorKit','_collabSessionService','defineProperty','_heartbeatTimer','getLocalCacheKey','Disposable','_updateURLWithCurrentState','top','getUnitId','_onCursorDelete','off-line-icon_clip0_910_343','RemoteUniscriptService','findNodePositionByCharIndex','_scheduleHeartbeat','getUndoRedoMutationParamsCache','_hovered','_lastPointer','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','url(#on-line-icon_clip0_910_349)','handleDeleteRangeMoveLeft','_toggleOnline','YUUMI_AI_RUN_FAILED','UniverCollaborationClientPlugin','whenReady','CLOSE_ROOM','CommandType','onPointerEnter$','result','max','CollaborationController','syncEditingCollabCursor','measureText','with','CollaborationUIEventService','_cursorShapes','InsertColCommandId','getUnit','registerComponent','WECHAT_HAS_BEEN_BOUND','ENSURE_SNAPSHOT_EXECUTION','_imageIoService','_getFormulaLimitStatus','COLORS','column','_initDependencies','beforeCommandExecuted','svg','name','_ensureSubject','isTransformMutationsWithChangesetSuccess','collabStatus.notCollab','collaboration-client.offline-data-not-saved','0\x200\x2016\x2016','createElement','_drawAnchor','setItem','SheetsSelectionsService','onTransformChange$','_cursor','DependentOn','MOBILE_HAS_BEEN_BOUND','_localStorageService','_name','_scene','_lastResponseTimestamp','_logService','LICENSE_MAX_UNITS_EXCEEDED','_memberService','LOGIN_TOKEN_PROCESSING_FAILED','collabCursorState$','SetTextSelectionsOperation','_releaseCalculationLimit','525097DaPvWT','_refreshCollabCursors','DocStateChangeManagerService','FETCH_MISS','_uiPartsService','PENDING','_shapes','idSuffix','range','backgroundColor','80DRhklF','INVALID_INVITE_CODE','getColor','code','add','YUUMI_NO_CUBOID_FOR_QUESTION','_checkCalculationAvailable','ENTITLE_REPORT_LIMIT_EXCEED','forEach','createInstance','dispose$','_scheduleSaving','SHEET_VIEWPORT_KEY','OffLineIcon','getRelativeToViewportCoord','getItem','_pollingInterval','collabStatus.offline','handleMoveRange','xlink:href','_clearOtherTimers','moveTo','INVITE_CODE_ALREADY_BOUND','_collabCursorState$','from','getCollabEntity$','_backgroundColor','getAncestorScale','skeleton','session.will-retry','1em','width','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getRangePointData','shift','COMPLETION_FINISHED','_themeService','_hasFormulaInDirtyRanges','setShapeProps','onLocalMutation','labelPosition','formula.calculation.waiting','_collaborationController','clipPath','Vector2','_scheduleClearOtherTimer','getFocusedUnit','parse','_drawTextRange','_init','_roomMembers$','subunit','handleDeleteRangeMoveUp','subscribe','_hideTimer','_hover','_onRefRangeChange','UniverInstanceType','_localeService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','TRANSFORM_CHANGE_OBSERVABLE_TYPE','dirtyRanges','fillRule','ILocalCacheService','MessageType','pushState','getRenderById','_online','debounce','setParam','body','isActive','_handleHover','length','saveTaskMap','CollaborationDataLoaderController','init','OFFLINE','fillText','getOffsetConfig','ERROR_AGAIN','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INTERNAL_ERROR','IURLService','collaboration.closeRoom','tag','handleInsertCol','height','removeParam','_anchorDot','getSkeleton','application/json','isTransformMutationFailure','APPLY_REVISION_CONFILICT','ACTIVE_UNIT_EVENT_CHANNEL','Failed','DocSkeletonManagerService','REDEMPTION_INVALID_CODE','SetWorksheetActivateCommand','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cursors','getCellPositionByOffset','next','exhaustSavingTask','map','_clearPolling','SNAPSHOT_INVALID_SNAPSHOT','startRow','replaceState','...','getConfig','onPointerLeave$','toDisposable','selections','getValue','startColumn','SheetSkeletonManagerService','transform','ISocketService','BehaviorSubject','dispose','_handleHeartbeatEvent','IBeforeCloseService','IDocClipboardService','disposeWithMe','CONNECTOR_DATA_TOO_LARGE','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','_transformPreviousActiveRange','fromEventSubject','actions','switchMap','toString','collabStatus.conflict','formula.calculation.started','selection','Module','USER_IS_ANONYMOUS','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','M0\x200H16V16H0z','limitInfo','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','IRemoteInstanceService','PAYMENT_CHANNEL_NOT_SUPPORT','then','href','NOT_COLLAB','transformMutation','_initStatusComponent','LICENSE_DISTRO_REJECTED','substring','31591cOBfSC','_renderManagerService','_initCommandExecutedListener','UNIVER_SHEET','deepClone','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','collab-text-anchor-','activeSheet$','assign','LOCAL_CACHE_INTERVAL','_docSkeletonManagerService','_disabled','_handleEvent','_removeClearOtherTimer','_document','_updateLocalCursor','_beforeCloseService','handleInsertRangeMoveRight','red.300','_render','http://www.w3.org/2000/svg','632665tBFNQv','symbol','search','_currentUsage','RevisionService','rgba(255,\x20255,\x20255,\x200.01)','LICENSE_IMPORT_SIZE_EXCEEDED','transformIMECache','hovered','NodePositionConvertToRectRange','_transformHistoryAndStateStack','PY_RUNTIME_SCRIPT_ERROR','transformStateCache','CURRENT_STATUS_CANNOT_OPERATE','_colorIndex','InsertRowCommandId','evenodd','size','_eventUnsubscribe','HEADER_MENU','disposeUnit','_textBubble','_urlService','APPLY_REJECT','?taskId=','RxDisposable','Rect','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','REDEMPTION_CODE_INACTIVE','error','none','unitID','BrowserCollaborationSocketService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','_saveCache','fromEvent','_startSheetCollabCursor','_cursorInfo$','_unitOnClients','_checkAndWaitForCalculationPermission','LOGIN_FAILED','CollaborationSessionService','_session','FromArray','SessionStatus','registerDependencies','newValue','m1Prime','throttleTime','4870Kswvkt','fill','SetFormulaCalculationStartMutation','YUUMI_ALL_TABLES_IS_INVALID','get','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','USER_NOT_FOUND','RefRangeService','_color','collaboration-client-ui.config','_setupBeforeClosingHandler','InsertRangeMoveDownCommandId','closePath','isFormulaString','TEXT_RANGE_LAYER_INDEX','SYNCED','IUniverInstanceService','some','REDEMPTION_CODE_HAS_BEEN_CREATED','_id','set','drawWith','location','OnLineIcon','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','TEXT','useCallback','roomMembers','split','replace','_cachedData','_initStatusListener','151228EqliQD','doc.mutation.rich-text-editing','BuiltInUIPart','UNDEFINED','executeCommand','endColumn','transformRemoteChangeset','univer-flex\x20univer-items-center','div','Rectangle','assignAColorForMemberID','filter','unitId','REDEMPTION_CODE_NOT_STARTED','UnitStatus','ThemeService','all','urlChange$','_transformService','setAlpha','ENTITLE_DUP_SUBSCRIPTION','_colorAssignService','permission.content','textRanges','IMessageService','invokeId','includes','getSheetBySheetId','YUUMI_ASYNCIO_CANCELLED','push','blue.400','ICommandService','min','_docTransformIMECacheService','values','_instanceService','_saveTaskMap','save','USER_NOT_INVITED_CODE','colorChannel1','transformSelections','getCellMatrix','_showGuardMessage','AUTHORIZE_CODE_ILLEGAL','_initEvent','saveOfflineData','_notificationService','Injector','undoState','RegularPolygon','m2Prime','_draw','IImageIoService','storage','asObservable','_commandService','EffectRefRangId','loadOfflineData','SNAPSHOT_HAS_BEEN_REMOVED','memberID','_httpService','Optional','_initEntityListener','setTimeout','_getSessionTicket','SOCKET_FAILED_RETRY','_config','_setupSubUnitSync','show','CollaborationEvent','pluginName','collabStatus.synced','post','history','_docTransformSelectionsService','replaceDocRanges','_startCalculationLimit','getCurrent','flatMap','registerRenderModule','_onCursorUpdate','yellow.400','YUUMI_RATE_OVER_LIMIT','/universer-api/license/formula/limit/done','white','ENTITLE_NEED_BILLING_ADDRESS','getUniverSheetInstance','triggerDblclick','Warning','getUnhiddenWorksheets','handleIRemoveCol','WebBrowserSingleActiveUnitService','CHANGESET_REVISION_CONFILICT','YUUMI_URL_COL_OUT_OF_RANGE','deserializeRangeWithSheet','_configService','popstate','cursorInfo','Unknown\x20user','clearInterval','EMAIL_VERIFY_CODE_MISMATCH','trim','getDocRanges','INotificationService','_registerRenderDependencies','maxFormulaLimit','entityInit$','MUTATION','startsWith','univer-mr-2\x20univer-flex\x20univer-text-xl','hide','0\x200\x2017\x2016','connectInjector','YUUMI_TABLE_NOT_FOUND_IN_UNIT','eventID','Success','_syncEditingCollabCursorService','OTHER_CLIENT_EDITING','on-line-icon_clip0_910_349','takeUntil','sessionStatus$','65791TGowuK','_context','_messageService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','disableLocalCache','getCollabCursors$','YUUMI_CONNECTOR_URL_NOT_FOUND','mapTo','jsx','runRefRangeMutations','unsubscribe','displayName','getSheetId','INVALID_ARGUMENT','formula.calculation.unable','path','black','HTTPService','_refRangeService','RECT','collab-client.tooltip.reconnect','CONFLICT','mask','params','_assignedColors','univerjs-icon\x20univerjs-icon-','runOnServer','transformMutationsWithChangeset','Inject','APPLY_PERMISSION_DENIED','Shape','_docTransformStateCacheService','now','purple.300','APPLY_NON_SEQUENTIAL_REVISION','event$','jsxs','[CollaborationDataLoaderController]','getMember','_setFormulaLimitStatus','toRgbString','merge','uni.network.url-service','_getMergeRange','UPDATE_CURSOR','getformulaLimitStatusUrl','getVpScrollXYInfoByPosToVp','on-line-icon','clsx','getMergeData','LOCAL_CACHE_INTERVAL_KEY','sheetId','SUCCESS','_handleLeaveEvent','_injector','Subject','UniverIcon','override','_startDocCollabCursor','attrs','bottom','OTHER_CLIENTS_EDITING','forwardRef','setUndoRedoMutationParamsCache','imageSourceType','useDependency','enableLocalCache','entries','294183wUphQH','roomMembers$','cursorInfo$','addClipboardHook','DeleteRangeMoveLeftCommandId','unload','63VRiLAK','requireSession','getParam','handleInsertRangeMoveDown','complete','1074tpQvNQ','_revisionService','round','_sheetSkeletonManagerService','_maxFormulaLimit','IUIPartsService','SheetCollabCursorShape','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_entities','setActiveRange','addObject','LICENSE_EXPORT_SIZE_EXCEEDED','docStateChange$','createSocket','pipe','getActiveSheet','ALREADY_EXISTS','_status$','defs','DeleteRangeMoveUpCommandId','useRef','key','Error','CollaborationStatus','_getScale','_anchor','send','RemoveRowCommandId','stringify','loadUnit','ONLINE','onMouseMove','collab-rect-range-','unshift','currentSkeleton$','stageInfo','REDEMPTION_USER_NOT_ELIGIBLE','resize','getCurrentRevOfUnit','INVITE_CODE_REQUIRED','_collaborationUIEventService','current','_toggleOffline','ISnapshotServerService','1116358jrhhgu','_send','USERS_LEAVE','runId','UNAUTHENTICATED','totalFormulasToCalculate','isFormulaId','subUnitId','_getSheetObject','defIds','arc','ranges','getOwnPropertyDescriptor','fillStyle','_applyCommand','DocIMEInputManagerService','_registerDependencies','clearTimeout','PERMISSION_DENIED','CanceledError','session.collaboration-timeout','WebURLService','getCoordByCell','_initCommandInterceptor','_labelPosition','isArray','DataLoaderService','subscribeEvent','_selfUnitIDs','jiqing.500','ITransformService','APPLY_DUPLICATED','registerRefRange','_docClipboardService','TOO_MANY_REQUESTS','debounceTime','collaboration.single-unit.warning','text','redoState','IConfigService','LocaleService','_docSyncEditingCollabCursorService','generateRandomId','_updateCollabCursors','_transformUndoRedoStack','CollaborationUIEventId','collabStatus.syncing','_initResize','AWAITING_WITH_PENDING','_range','green.600','children','row','unit','string','_getAnchorBounding','SUBMIT_CHANGESET_TIMEOUT','FormulaExecuteStageType','_dataLoaderService','ENTITLE_CHAT_LIMIT_EXCEED','color','Tooltip','touchDependencies','searchParams','combineLatest','_createSocketURL','_taskIds','UniverCollaborationClientUIPlugin','IRenderManagerService','getTypeOfUnitAdded$','currentColor'];_0x2448=function(){return _0x2fde2b;};return _0x2448();}me=dt([w(0x2,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x19e)])),w(0x3,a['Inject'](Te)),w(0x4,a[_0x1a3ccb(0x204)](u['MemberService'])),w(0x5,a[_0x1a3ccb(0x15f)]),w(0x6,a['ICommandService']),w(0x7,a[_0x1a3ccb(0x204)](g[_0x1a3ccb(0x156)]))],me);var vt=Object[_0x1a3ccb(0x26f)],Et=(_0x10aeee,_0x10bf46,_0x28e1b6,_0x4f077d)=>{const _0x536097=_0x1a3ccb;for(var _0x21b297=_0x4f077d>0x1?void 0x0:_0x4f077d?vt(_0x10bf46,_0x28e1b6):_0x10bf46,_0x3700e5=_0x10aeee[_0x536097(0x370)]-0x1,_0x18c7c2;_0x3700e5>=0x0;_0x3700e5--)(_0x18c7c2=_0x10aeee[_0x3700e5])&&(_0x21b297=_0x18c7c2(_0x21b297)||_0x21b297);return _0x21b297;},oe=(_0x206686,_0x474d5b)=>(_0x42427e,_0x342272)=>_0x474d5b(_0x42427e,_0x342272,_0x206686);let B=class extends a['RxDisposable']{constructor(_0x2a219e,_0x3febbb,_0x3b93c9){const _0x2db7f8=_0x1a3ccb;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new I[(_0x2db7f8(0x21f))]()),(this[_0x2db7f8(0x2b0)]=_0x2a219e,this[_0x2db7f8(0x21e)]=_0x3febbb,this[_0x2db7f8(0x2d6)]=_0x3b93c9,this[_0x2db7f8(0x358)]());}[_0x1a3ccb(0x39f)](){const _0x9c05de=_0x1a3ccb;super[_0x9c05de(0x39f)](),this['_entityInit$'][_0x9c05de(0x236)](),this[_0x9c05de(0x23f)]['forEach'](_0x594866=>_0x594866[_0x9c05de(0x39f)]());}['getCollabCursors$'](_0x5ab15b){const _0x38f81f=_0x1a3ccb;return this[_0x38f81f(0x23f)][_0x38f81f(0x2cd)](_0x5ab15b)?this['_entities'][_0x38f81f(0x153)](_0x5ab15b)[_0x38f81f(0x22e)]:this['_entityInit$']['pipe'](I[_0x38f81f(0x17a)](_0x41fd72=>_0x41fd72[_0x38f81f(0x13c)]===_0x5ab15b),I[_0x38f81f(0x3a9)](_0x30de39=>_0x30de39['cursorInfo$']));}[_0x1a3ccb(0x358)](){const _0x3b29cc=_0x1a3ccb;this[_0x3b29cc(0x2b0)][_0x3b29cc(0x2a8)](a[_0x3b29cc(0x360)][_0x3b29cc(0x10b)])[_0x3b29cc(0x245)](I[_0x3b29cc(0x1e6)](this[_0x3b29cc(0x331)]))[_0x3b29cc(0x35c)](async _0x2cea01=>{const _0x3c4da9=_0x3b29cc,_0x5ecde4=_0x2cea01[_0x3c4da9(0x2dd)](),_0x4b2ae1=await this[_0x3c4da9(0x142)](_0x5ecde4);this[_0x3c4da9(0x2ad)][_0x3c4da9(0x38d)](_0x4b2ae1),this['_entities'][_0x3c4da9(0x163)](_0x5ecde4,_0x4b2ae1);}),this['_univerInstanceService'][_0x3b29cc(0x2a8)](a['UniverInstanceType'][_0x3b29cc(0x2c1)])['pipe'](I['takeUntil'](this[_0x3b29cc(0x331)]))['pipe'](I[_0x3b29cc(0x17a)](_0x37406e=>!_0x37406e['getUnitId']()[_0x3b29cc(0x1db)]('__')))['subscribe'](async _0x5f31d8=>{const _0x1d4fe9=_0x3b29cc,_0x120368=_0x5f31d8[_0x1d4fe9(0x2dd)](),_0x2a5425=await this[_0x1d4fe9(0x222)](_0x120368);this[_0x1d4fe9(0x2ad)]['next'](_0x2a5425),this[_0x1d4fe9(0x23f)][_0x1d4fe9(0x163)](_0x120368,_0x2a5425);}),I[_0x3b29cc(0x211)](this[_0x3b29cc(0x2b0)]['getTypeOfUnitDisposed$'](a[_0x3b29cc(0x360)][_0x3b29cc(0x2c1)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3b29cc(0x360)][_0x3b29cc(0x10b)]))[_0x3b29cc(0x245)](I[_0x3b29cc(0x1e6)](this['dispose$']))['subscribe'](_0x3af7a7=>{const _0x23ceea=_0x3b29cc,_0x3a5d1e=_0x3af7a7[_0x23ceea(0x2dd)](),_0x5f3406=this[_0x23ceea(0x23f)][_0x23ceea(0x153)](_0x3a5d1e);_0x5f3406&&(_0x5f3406[_0x23ceea(0x39f)](),this[_0x23ceea(0x23f)]['delete'](_0x3a5d1e));});}async['_startSheetCollabCursor'](_0x172c62){const _0x249b7a=_0x1a3ccb,_0x4b208c=await this['_collabSessionService']['requireSession'](_0x172c62),_0x55090b=this['_injector'][_0x249b7a(0x330)](me,_0x172c62,_0x4b208c);return _0x55090b[_0x249b7a(0x373)](),_0x55090b;}async['_startDocCollabCursor'](_0x41405b){const _0x10e8d5=_0x1a3ccb,_0x18aee9=await this[_0x10e8d5(0x2d6)][_0x10e8d5(0x233)](_0x41405b),_0x2d0f99=this[_0x10e8d5(0x21e)]['createInstance'](fe,_0x41405b,_0x18aee9);return _0x2d0f99[_0x10e8d5(0x373)](),_0x2d0f99;}};B=Et([oe(0x0,a[_0x1a3ccb(0x15f)]),oe(0x1,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x19e)])),oe(0x2,a[_0x1a3ccb(0x204)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function pt(_0x5a5e95,_0x4c860f){const _0x24f961=_0x1a3ccb;let {radius:_0x1daf0a,width:_0x379df4,height:_0x3a7f4b}=_0x4c860f;_0x1daf0a=_0x1daf0a!=null?_0x1daf0a:0x0,_0x379df4=_0x379df4!=null?_0x379df4:0x1e,_0x3a7f4b=_0x3a7f4b!=null?_0x3a7f4b:0x1e;let _0x3a7a8b=0x0,_0x4d9e77=0x0,_0x52d413=0x0;_0x3a7a8b=_0x4d9e77=_0x52d413=Math['min'](_0x1daf0a,_0x379df4/0x2,_0x3a7f4b/0x2),_0x5a5e95['beginPath'](),_0x5a5e95[_0x24f961(0x33c)](_0x3a7a8b,0x0),_0x5a5e95[_0x24f961(0x2ab)](_0x379df4-_0x4d9e77,0x0),_0x5a5e95[_0x24f961(0x26d)](_0x379df4-_0x4d9e77,_0x4d9e77,_0x4d9e77,Math['PI']*0x3/0x2,0x0,!0x1),_0x5a5e95[_0x24f961(0x2ab)](_0x379df4,_0x3a7f4b-_0x52d413),_0x5a5e95[_0x24f961(0x26d)](_0x379df4-_0x52d413,_0x3a7f4b-_0x52d413,_0x52d413,0x0,Math['PI']/0x2,!0x1),_0x5a5e95['lineTo'](0x0,_0x3a7f4b),_0x5a5e95[_0x24f961(0x2ab)](0x0,_0x3a7a8b),_0x5a5e95[_0x24f961(0x26d)](_0x3a7a8b,_0x3a7a8b,_0x3a7a8b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5a5e95[_0x24f961(0x15b)](),_0x4c860f[_0x24f961(0x150)]&&(_0x5a5e95[_0x24f961(0x194)](),_0x5a5e95[_0x24f961(0x270)]=_0x4c860f['fill'],_0x4c860f[_0x24f961(0x365)]===_0x24f961(0x12d)?_0x5a5e95[_0x24f961(0x150)](_0x24f961(0x12d)):_0x5a5e95[_0x24f961(0x150)](),_0x5a5e95[_0x24f961(0x2be)]());}class ie extends C[_0x1a3ccb(0x206)]{constructor(_0x53ddc4,_0x8f5396){const _0x1da739=_0x1a3ccb;super(_0x53ddc4,_0x8f5396),_(this,_0x1da739(0x29f)),_(this,_0x1da739(0x288)),(this[_0x1da739(0x29f)]=_0x8f5396==null?void 0x0:_0x8f5396['color'],this[_0x1da739(0x288)]=_0x8f5396==null?void 0x0:_0x8f5396[_0x1da739(0x288)]);}static[_0x1a3ccb(0x164)](_0x3f94bb,_0x3b1730){const _0xbb1da4=_0x1a3ccb,{text:_0x6a471e,color:_0x4f2c21}=_0x3b1730;_0x3f94bb[_0xbb1da4(0x194)](),_0x3f94bb['font']=_0xbb1da4(0x154);const _0x411385=_0x3f94bb[_0xbb1da4(0x2f4)](_0x6a471e)[_0xbb1da4(0x346)],_0x36491e=Math[_0xbb1da4(0x18f)](_0x411385+0x2*ae,De);pt(_0x3f94bb,{'height':X,'radius':0x4,'width':_0x36491e,'fill':_0x4f2c21}),_0x3f94bb[_0xbb1da4(0x270)]='#FFF';const _0x546458=ae,_0x1f150d=X-Ct,_0x1af674=De-0x2*ae;if(_0x411385>_0x1af674){let _0x37379c='',_0x5b7c5c=0x0;for(const _0x2c7834 of _0x6a471e){const _0x1b3204=_0x3f94bb[_0xbb1da4(0x2f4)](_0x2c7834)[_0xbb1da4(0x346)];if(_0x5b7c5c+_0x1b3204<=_0x1af674-_0x3f94bb[_0xbb1da4(0x2f4)]('...')[_0xbb1da4(0x346)])_0x37379c+=_0x2c7834,_0x5b7c5c+=_0x1b3204;else{_0x37379c+=_0xbb1da4(0x394);break;}}_0x3f94bb['fillText'](_0x37379c,_0x546458,_0x1f150d);}else _0x3f94bb[_0xbb1da4(0x375)](_0x6a471e,_0x546458,_0x1f150d);_0x3f94bb['restore']();}[_0x1a3ccb(0x1a2)](_0x3b708e){const _0x34b228=_0x1a3ccb;ie[_0x34b228(0x164)](_0x3b708e,this);}}const ce=_0x1a3ccb(0x10e),Tt=_0x1a3ccb(0x2c0),Ot=_0x1a3ccb(0x257),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x1a3ccb(0x122);class Ne{constructor(_0x1b5937,_0x269496,_0x3fe71b,_0x149d18){const _0x603efe=_0x1a3ccb;_(this,_0x603efe(0x323),[]),_(this,_0x603efe(0x250),null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,_0x603efe(0x35d),null),_(this,_0x603efe(0x12f),null),(this[_0x603efe(0x30f)]=_0x1b5937,this[_0x603efe(0x314)]=_0x269496,this[_0x603efe(0x2d3)]=_0x3fe71b,this[_0x603efe(0x116)]=_0x149d18,this['_render']());}set['_hover'](_0x16405d){const _0x44eb44=_0x1a3ccb;_0x16405d?(this['_anchorDot']&&this[_0x44eb44(0x380)][_0x44eb44(0x1dd)](),this[_0x44eb44(0x132)]&&this[_0x44eb44(0x132)][_0x44eb44(0x1b3)]()):(this[_0x44eb44(0x380)]&&this['_anchorDot'][_0x44eb44(0x1b3)](),this[_0x44eb44(0x132)]&&this[_0x44eb44(0x132)][_0x44eb44(0x1dd)]());}['dispose'](){const _0x5a6347=_0x1a3ccb;for(const _0x219707 of this[_0x5a6347(0x323)])_0x219707['dispose']();this[_0x5a6347(0x132)]&&this[_0x5a6347(0x132)][_0x5a6347(0x39f)](),this[_0x5a6347(0x380)]&&this[_0x5a6347(0x380)]['dispose'](),this[_0x5a6347(0x250)]&&this[_0x5a6347(0x250)][_0x5a6347(0x39f)](),this[_0x5a6347(0x12f)]&&this[_0x5a6347(0x12f)]();}[_0x1a3ccb(0x11b)](){const _0x1ed9e4=_0x1a3ccb;var _0x754b85;const {_docSkeleton:_0x50795e,_document:_0x3251dd}=this,{color:_0x481e13,name:_0x5b713a,ranges:_0x386c1f}=this[_0x1ed9e4(0x30f)],_0x56a757=_0x3251dd[_0x1ed9e4(0x376)](),{docsLeft:_0x22ccc9,docsTop:_0x467cfb}=_0x56a757,_0x28dbef=new p['NodePositionConvertToCursor'](_0x56a757,_0x50795e);for(const {startOffset:_0x4192fb,endOffset:_0x4b4f14,rangeType:_0x5b0259,segmentId:_0x40ddab,segmentPage:_0x327b0f,collapsed:_0x9b86b1,isActive:_0x34891d}of _0x386c1f){const _0x5650cf=_0x50795e[_0x1ed9e4(0x2e1)](_0x4192fb,!0x0,_0x40ddab,_0x327b0f);let _0x16b9ad=_0x50795e[_0x1ed9e4(0x2e1)](_0x4b4f14,!0x0,_0x40ddab,_0x327b0f);if(_0x16b9ad==null&&(_0x16b9ad=_0x50795e[_0x1ed9e4(0x2e1)](_0x4b4f14-0x1,!0x1,_0x40ddab,_0x327b0f)),_0x34891d){const {contentBoxPointGroup:_0x5e5df6}=_0x28dbef[_0x1ed9e4(0x348)](_0x16b9ad,_0x16b9ad);if(_0x5e5df6[_0x1ed9e4(0x370)]===0x0)continue;this[_0x1ed9e4(0x30b)](_0x481e13,_0x5e5df6,_0x22ccc9,_0x467cfb,_0x5b713a),this[_0x1ed9e4(0x12f)]=this['_handleHover']();}if(_0x5650cf&&_0x16b9ad){if(_0x5b0259===a[_0x1ed9e4(0x2b3)][_0x1ed9e4(0x1fb)]){const _0x7b4442=new p[(_0x1ed9e4(0x126))](_0x56a757,_0x50795e),{pointGroup:_0x44f41c}=(_0x754b85=_0x7b4442[_0x1ed9e4(0x348)](_0x5650cf,_0x16b9ad))!=null?_0x754b85:{};if(_0x44f41c==null||_0x44f41c[_0x1ed9e4(0x370)]===0x0)continue;this[_0x1ed9e4(0x2bd)](_0x481e13,_0x44f41c,_0x22ccc9,_0x467cfb);}else{if(!_0x9b86b1){const {borderBoxPointGroup:_0x43625a}=_0x28dbef['getRangePointData'](_0x5650cf,_0x16b9ad);if(_0x43625a[_0x1ed9e4(0x370)]===0x0)continue;this[_0x1ed9e4(0x357)](_0x481e13,_0x43625a,_0x22ccc9,_0x467cfb);}}}}}[_0x1a3ccb(0x30b)](_0x4c8b81,_0x3896ca,_0x42ae37,_0x4d8448,_0x5d4558){const _0x391a9f=_0x1a3ccb,_0x16edea=this[_0x391a9f(0x29a)](_0x3896ca),{left:_0x2ae423,top:_0xc8b404,height:_0x1f2999}=_0x16edea,_0x8beda1=this[_0x391a9f(0x24f)](),_0x2489d0=bt/_0x8beda1,_0x24c023=new C[(_0x391a9f(0x137))](ce+a[_0x391a9f(0x28d)](Y),{'left':_0x2ae423+_0x42ae37-_0x2489d0,'top':_0xc8b404+_0x4d8448,'height':_0x1f2999,'width':Rt,'fill':_0x4c8b81||C[_0x391a9f(0x329)](a[_0x391a9f(0x2ff)][_0x391a9f(0x1f8)],0x0),'strokeWidth':_0x2489d0,'stroke':Dt,'evented':!0x0});this[_0x391a9f(0x250)]=_0x24c023,this['_scene'][_0x391a9f(0x241)](_0x24c023,p[_0x391a9f(0x15d)]);const _0x4771fd=new C['Rect'](ce+a[_0x391a9f(0x28d)](Y),{'left':_0x2ae423+_0x42ae37-_0x2489d0,'top':_0xc8b404+_0x4d8448-le/0x2,'height':le,'width':le,'fill':_0x4c8b81||C[_0x391a9f(0x329)](a['COLORS'][_0x391a9f(0x1f8)],0x0),'strokeWidth':0x0,'stroke':_0x4c8b81||C['getColor'](a['COLORS'][_0x391a9f(0x1f8)],0x0),'evented':!0x1});this[_0x391a9f(0x380)]=_0x4771fd,this[_0x391a9f(0x314)][_0x391a9f(0x241)](_0x4771fd,p[_0x391a9f(0x15d)]);const _0xb5e10d=new ie(ce+a[_0x391a9f(0x28d)](Y),{'left':_0x2ae423+_0x42ae37-_0x2489d0,'top':_0xc8b404+_0x4d8448-X,'text':_0x5d4558,'color':_0x4c8b81});this[_0x391a9f(0x132)]=_0xb5e10d,this[_0x391a9f(0x314)][_0x391a9f(0x241)](_0xb5e10d,p['TEXT_RANGE_LAYER_INDEX']),this[_0x391a9f(0x35e)]=!0x1;}[_0x1a3ccb(0x36f)](){const _0x47fed5=_0x1a3ccb,_0x18eafa=this[_0x47fed5(0x250)]['onPointerEnter$'][_0x47fed5(0x27e)](()=>{const _0x577d7d=_0x47fed5;this[_0x577d7d(0x35e)]=!0x0;}),_0x595049=this[_0x47fed5(0x250)]['onPointerLeave$'][_0x47fed5(0x27e)](()=>{const _0x3569b8=_0x47fed5;this[_0x3569b8(0x35d)]&&clearTimeout(this[_0x3569b8(0x35d)]),this[_0x3569b8(0x35d)]=setTimeout(()=>{const _0x20fa19=_0x3569b8;this[_0x20fa19(0x35e)]=!0x1;},0x7d0);});return()=>{const _0xbc9549=_0x47fed5;_0x18eafa['unsubscribe'](),_0x595049[_0xbc9549(0x1f2)]();};}[_0x1a3ccb(0x357)](_0x2b933b,_0x11eb2b,_0x1fcc90,_0x2f50e9){const _0x5c6871=_0x1a3ccb,_0x52bb98=new a[(_0x5c6871(0x2d5))](_0x2b933b)[_0x5c6871(0x182)](0.2)[_0x5c6871(0x210)](),_0xd1f2b8=new C[(_0x5c6871(0x1a0))](Tt+a[_0x5c6871(0x28d)](Y),{'pointsGroup':_0x11eb2b,'fill':_0x52bb98||C[_0x5c6871(0x329)](a[_0x5c6871(0x2ff)][_0x5c6871(0x1f8)],0.2),'left':_0x1fcc90,'top':_0x2f50e9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5c6871(0x18c)](_0xd1f2b8),this[_0x5c6871(0x314)][_0x5c6871(0x241)](_0xd1f2b8,p['TEXT_RANGE_LAYER_INDEX']);}[_0x1a3ccb(0x2bd)](_0x27b623,_0x3d27b5,_0x4f5043,_0x37201f){const _0x1f41b2=_0x1a3ccb,_0x3d7d99=new a[(_0x1f41b2(0x2d5))](_0x27b623)[_0x1f41b2(0x182)](0.2)[_0x1f41b2(0x210)](),_0x3a8a1b=new C[(_0x1f41b2(0x1a0))](Ot+a[_0x1f41b2(0x28d)](Y),{'pointsGroup':_0x3d27b5,'fill':_0x3d7d99||C['getColor'](a[_0x1f41b2(0x2ff)][_0x1f41b2(0x1f8)],0.2),'left':_0x4f5043,'top':_0x37201f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1f41b2(0x323)][_0x1f41b2(0x18c)](_0x3a8a1b),this[_0x1f41b2(0x314)][_0x1f41b2(0x241)](_0x3a8a1b,p[_0x1f41b2(0x15d)]);}[_0x1a3ccb(0x29a)](_0x2a2bb4){const _0x55845b=_0x2a2bb4[0x0],_0x335a4f=_0x55845b[0x0],_0x5e360b=_0x55845b[0x2],{x:_0x244146,y:_0x4225e8}=_0x335a4f,{x:_0x3fda37,y:_0x31e9db}=_0x5e360b;return{'left':_0x244146,'top':_0x4225e8,'width':_0x3fda37-_0x244146,'height':_0x31e9db-_0x4225e8};}[_0x1a3ccb(0x24f)](){const _0x12d17c=_0x1a3ccb,{scaleX:_0x371247,scaleY:_0x31f759}=this[_0x12d17c(0x314)][_0x12d17c(0x342)]();return Math[_0x12d17c(0x2f1)](_0x371247,_0x31f759);}}var Nt=Object[_0x1a3ccb(0x26f)],Ut=(_0x10e4e3,_0x5c59af,_0x3fa131,_0x71632e)=>{for(var _0x355de5=_0x71632e>0x1?void 0x0:_0x71632e?Nt(_0x5c59af,_0x3fa131):_0x5c59af,_0x3dd4c6=_0x10e4e3['length']-0x1,_0x21b461;_0x3dd4c6>=0x0;_0x3dd4c6--)(_0x21b461=_0x10e4e3[_0x3dd4c6])&&(_0x355de5=_0x21b461(_0x355de5)||_0x355de5);return _0x355de5;},q=(_0x36035d,_0x2e85a7)=>(_0x31f5cb,_0x491168)=>_0x2e85a7(_0x31f5cb,_0x491168,_0x36035d);let ge=class extends a[_0x1a3ccb(0x136)]{constructor(_0x55ed17,_0x43ed09,_0x207ec5,_0x48878c,_0x286aee){const _0x39a27d=_0x1a3ccb;super(),_(this,_0x39a27d(0x2f7),[]),_(this,_0x39a27d(0x38b),[]),(this[_0x39a27d(0x1e9)]=_0x55ed17,this['_docSkeletonManagerService']=_0x43ed09,this[_0x39a27d(0x13f)]=_0x207ec5,this[_0x39a27d(0x1a6)]=_0x48878c,this[_0x39a27d(0x34b)]=_0x286aee,this[_0x39a27d(0x358)]());}[_0x1a3ccb(0x358)](){const _0xed080e=_0x1a3ccb,_0x32448f=this['_context']['unitId'],_0x4962e0=this[_0xed080e(0x112)];this['disposeWithMe'](I[_0xed080e(0x2a3)]([this[_0xed080e(0x13f)][_0xed080e(0x1ed)](_0x32448f),this['_themeService']['currentTheme$']])['pipe']($['map'](([_0x4d435c,_0x45f925])=>({'skeleton':_0x4962e0[_0xed080e(0x381)](),'cursors':[..._0x4d435c[_0xed080e(0x191)]()][_0xed080e(0x1bd)](_0x569d42=>({..._0x569d42,'color':this[_0xed080e(0x34b)]['getColorFromTheme'](_0x569d42[_0xed080e(0x29f)])}))})))[_0xed080e(0x35c)](_0x2d65e6=>{const _0x5d43a8=_0xed080e;if(this[_0x5d43a8(0x2c8)](),_0x2d65e6){const {skeleton:_0x2ab3d7,cursors:_0x1f54c9}=_0x2d65e6;this[_0x5d43a8(0x28e)](_0x2ab3d7,_0x1f54c9);}})),this[_0xed080e(0x292)](),this[_0xed080e(0x10a)]();}[_0x1a3ccb(0x28e)](_0x4ff613,_0x1947f2){const _0x59f92e=_0x1a3ccb,{scene:_0x23c0c8,mainComponent:_0x5ec76a}=this[_0x59f92e(0x1e9)],_0x1f8548=_0x1947f2[_0x59f92e(0x38f)](_0x480082=>new Ne(_0x480082,_0x23c0c8,_0x4ff613,_0x5ec76a));this[_0x59f92e(0x2f7)]=_0x1f8548,this[_0x59f92e(0x38b)]=_0x1947f2;}[_0x1a3ccb(0x31e)](){const _0x262f46=_0x1a3ccb;this[_0x262f46(0x2c8)]();const {scene:_0x13b6e5,mainComponent:_0x111253}=this[_0x262f46(0x1e9)],_0x40e4a8=this[_0x262f46(0x112)]['getSkeleton'](),_0x21c97a=this[_0x262f46(0x38b)]['map'](_0x3f35e0=>new Ne(_0x3f35e0,_0x13b6e5,_0x40e4a8,_0x111253));this['_cursorShapes']=_0x21c97a;}[_0x1a3ccb(0x2c8)](){const _0x40cd0b=_0x1a3ccb;this[_0x40cd0b(0x2f7)][_0x40cd0b(0x32f)](_0x3be4c0=>_0x3be4c0[_0x40cd0b(0x39f)]()),this[_0x40cd0b(0x2f7)]=[];}[_0x1a3ccb(0x10a)](){const _0x48474b=_0x1a3ccb,_0x3493b4=[p['SetDocZoomRatioOperation']['id']];this[_0x48474b(0x3a3)](this[_0x48474b(0x1a6)][_0x48474b(0x2ce)](_0x5e2a33=>{const _0x4f35df=_0x48474b;_0x3493b4[_0x4f35df(0x189)](_0x5e2a33['id'])&&_0x5e2a33[_0x4f35df(0x1ff)][_0x4f35df(0x17b)]===this[_0x4f35df(0x1e9)][_0x4f35df(0x17b)]&&this[_0x4f35df(0x31e)]();}));}[_0x1a3ccb(0x292)](){const _0x12902f=_0x1a3ccb;this[_0x12902f(0x3a3)](a[_0x12902f(0x3a7)](this[_0x12902f(0x1e9)]['engine'][_0x12902f(0x30e)])[_0x12902f(0x245)]($[_0x12902f(0x17a)](_0x4646bf=>_0x4646bf['type']===C[_0x12902f(0x363)][_0x12902f(0x25c)]),$[_0x12902f(0x14e)](0x10))[_0x12902f(0x35c)](()=>{const _0x561fc6=_0x12902f;this[_0x561fc6(0x31e)]();}));}};ge=Ut([q(0x1,a['Inject'](W[_0x1a3ccb(0x387)])),q(0x2,a['Inject'](B)),q(0x3,a['ICommandService']),q(0x4,a[_0x1a3ccb(0x204)](a['ThemeService']))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x1a3ccb(0x206)]{constructor(_0x2edb32,_0x345963){const _0x41b132=_0x1a3ccb;super(_0x2edb32,_0x345963),_(this,_0x41b132(0x157)),_(this,_0x41b132(0x2e4),!0x1),_(this,_0x41b132(0x294)),_(this,_0x41b132(0x313),''),_(this,_0x41b132(0x27b),_0x41b132(0x2dc)),_(this,_0x41b132(0x341)),(_0x345963&&this[_0x41b132(0x34d)](_0x345963),this[_0x41b132(0x2ef)]['subscribeEvent'](()=>this[_0x41b132(0x34d)]({'hovered':!0x0})),this[_0x41b132(0x396)][_0x41b132(0x27e)](()=>this[_0x41b132(0x34d)]({'hovered':!0x1})));}[_0x1a3ccb(0x34d)](_0x38dbc8){const _0x1ec113=_0x1a3ccb;var _0x3c446c,_0xfa3d91,_0x318e69,_0x5cd4c3,_0x9d2356,_0x27eedc;this[_0x1ec113(0x157)]=(_0x3c446c=_0x38dbc8[_0x1ec113(0x29f)])!=null?_0x3c446c:this['_color'],this[_0x1ec113(0x2e4)]=(_0xfa3d91=_0x38dbc8[_0x1ec113(0x125)])!=null?_0xfa3d91:this[_0x1ec113(0x2e4)],this['_range']=(_0x318e69=_0x38dbc8[_0x1ec113(0x325)])!=null?_0x318e69:this[_0x1ec113(0x294)],this['_name']=(_0x5cd4c3=_0x38dbc8['name'])!=null?_0x5cd4c3:this[_0x1ec113(0x313)],this[_0x1ec113(0x27b)]=(_0x9d2356=_0x38dbc8[_0x1ec113(0x34f)])!=null?_0x9d2356:this['_labelPosition'],this[_0x1ec113(0x341)]=(_0x27eedc=_0x38dbc8[_0x1ec113(0x326)])!=null?_0x27eedc:this['_backgroundColor'],this['transformByState']({'width':_0x38dbc8[_0x1ec113(0x346)],'height':_0x38dbc8[_0x1ec113(0x37e)]});}[_0x1a3ccb(0x256)](_0x3c4712){const _0x53cf67=_0x1a3ccb,{row:_0x389207,column:_0x5ca2c3}=_0x3c4712;if(_0x389207>=this[_0x53cf67(0x294)][_0x53cf67(0x392)]&&_0x389207<=this[_0x53cf67(0x294)]['endRow']&&_0x5ca2c3>=this[_0x53cf67(0x294)][_0x53cf67(0x39a)]&&_0x5ca2c3<=this[_0x53cf67(0x294)][_0x53cf67(0x174)]){this[_0x53cf67(0x34d)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1a3ccb(0x1c6)](_0x5962c3){return!0x1;}[_0x1a3ccb(0x1a2)](_0x26f169){const _0x2cb6b9=_0x1a3ccb;C[_0x2cb6b9(0x137)]['drawWith'](_0x26f169,{'width':this['width'],'height':this[_0x2cb6b9(0x37e)],'strokeWidth':Mt,'stroke':this[_0x2cb6b9(0x157)],'evented':!0x1,'fill':this[_0x2cb6b9(0x341)]}),this[_0x2cb6b9(0x2e4)]&&(_0x26f169[_0x2cb6b9(0x194)](),_0x26f169[_0x2cb6b9(0x39c)](0x1,0x0,0x0,0x1,this[_0x2cb6b9(0x346)],this['_labelPosition']===_0x2cb6b9(0x224)?0x0:-X),ie['drawWith'](_0x26f169,{'text':this[_0x2cb6b9(0x313)],'color':this['_color']}),_0x26f169[_0x2cb6b9(0x2be)]());}}var At=Object[_0x1a3ccb(0x26f)],Pt=(_0x1b8cf2,_0x2f4f4c,_0x105793,_0x18e85d)=>{const _0x5e5481=_0x1a3ccb;for(var _0x1f284b=_0x18e85d>0x1?void 0x0:_0x18e85d?At(_0x2f4f4c,_0x105793):_0x2f4f4c,_0x21cad6=_0x1b8cf2[_0x5e5481(0x370)]-0x1,_0x2942bb;_0x21cad6>=0x0;_0x21cad6--)(_0x2942bb=_0x1b8cf2[_0x21cad6])&&(_0x1f284b=_0x2942bb(_0x1f284b)||_0x1f284b);return _0x1f284b;},_e=(_0x3a1268,_0x3c92b0)=>(_0x2baea2,_0x9f6413)=>_0x3c92b0(_0x2baea2,_0x9f6413,_0x3a1268);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x53a0a6,_0x362abf,_0x2a626f,_0x51da03){const _0x56b6d9=_0x1a3ccb;super(),_(this,_0x56b6d9(0x38b),new Set()),_(this,_0x56b6d9(0x2e5),null),(this[_0x56b6d9(0x1e9)]=_0x53a0a6,this[_0x56b6d9(0x23a)]=_0x362abf,this[_0x56b6d9(0x13f)]=_0x2a626f,this['_themeService']=_0x51da03,this[_0x56b6d9(0x358)]());}[_0x1a3ccb(0x358)](){const _0x15d856=_0x1a3ccb;this['_sheetSkeletonManagerService'][_0x15d856(0x259)]['pipe']($[_0x15d856(0x1e6)](this[_0x15d856(0x331)]),$[_0x15d856(0x3a9)](_0x2dee6d=>{const _0x590985=_0x15d856;if(_0x2dee6d){const _0x4e6cf5=_0x2dee6d[_0x590985(0x21b)];return I[_0x590985(0x2a3)](this[_0x590985(0x13f)]['getCollabCursors$'](this[_0x590985(0x1e9)]['unitId']),this[_0x590985(0x34b)]['currentTheme$'])[_0x590985(0x245)]($['map'](([_0x520f7d,_0x2ee5fc])=>{const _0x3b31d7=_0x590985,_0xde3059=new Map();return _0x520f7d[_0x3b31d7(0x32f)]((_0x214b65,_0x49a35d)=>{const _0x122eea=_0x3b31d7;if(_0x214b65['sheetID']===_0x4e6cf5){const _0x270c4f={..._0x214b65};_0x270c4f[_0x122eea(0x29f)]=this['_themeService']['getColorFromTheme'](_0x214b65[_0x122eea(0x29f)]),_0xde3059[_0x122eea(0x163)](_0x49a35d,_0x270c4f);}}),{'skeleton':_0x2dee6d,'cursors':_0xde3059};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x15d856(0x35c)](({skeleton:_0x213678,cursors:_0xecfc36})=>{this['_removeCollabCursors'](),_0x213678&&this['_updateCollabCursors'](_0x213678,_0xecfc36);}),this[_0x15d856(0x23a)][_0x15d856(0x259)]['subscribe'](_0xd3adec=>{const _0x23c8c3=_0x15d856;if(_0xd3adec==null)return;const {skeleton:_0x30ef84}=_0xd3adec,{scene:_0x4d7ff4}=this[_0x23c8c3(0x1e9)];_0x4d7ff4[_0x23c8c3(0x2c6)][_0x23c8c3(0x27e)](a[_0x23c8c3(0x36b)](_0x3db128=>{const _0x3dc372=_0x23c8c3;var _0x16466e,_0x5c75f7;const {offsetX:_0x295520,offsetY:_0x2174ca}=_0x3db128,{x:_0x5352a6,y:_0x247546}=_0x4d7ff4[_0x3dc372(0x335)](C[_0x3dc372(0x353)][_0x3dc372(0x149)]([_0x295520,_0x2174ca])),{scaleX:_0x13de83,scaleY:_0x5ca120}=_0x4d7ff4[_0x3dc372(0x342)](),_0x4014c0=_0x4d7ff4[_0x3dc372(0x2c9)](C[_0x3dc372(0x333)][_0x3dc372(0x2bb)]),_0x349638=_0x4d7ff4[_0x3dc372(0x216)](C[_0x3dc372(0x353)][_0x3dc372(0x149)]([_0x5352a6,_0x247546]),_0x4014c0),_0x163b1c=_0x30ef84[_0x3dc372(0x38c)](_0x295520,_0x2174ca,_0x13de83,_0x5ca120,_0x349638);((_0x16466e=this[_0x3dc372(0x2e5)])==null?void 0x0:_0x16466e[_0x3dc372(0x300)])===_0x163b1c[_0x3dc372(0x300)]&&((_0x5c75f7=this[_0x3dc372(0x2e5)])==null?void 0x0:_0x5c75f7['row'])===_0x163b1c[_0x3dc372(0x297)]||this[_0x3dc372(0x38b)]['forEach'](_0x4f8fb9=>{_0x4f8fb9['onMouseMove'](_0x163b1c);});},0x64));});}[_0x1a3ccb(0x28e)](_0x23cd9d,_0x1c8771){const _0x2d0c6a=_0x1a3ccb;var _0x162726;const _0x3ba565=(_0x162726=this['_sheetSkeletonManagerService'][_0x2d0c6a(0x1bc)]())==null?void 0x0:_0x162726[_0x2d0c6a(0x343)];if(!_0x3ba565)return;const _0x5bb2a1=this[_0x2d0c6a(0x26b)]();if(!_0x5bb2a1)return;this[_0x2d0c6a(0x38b)][_0x2d0c6a(0x32f)](_0x3b2907=>{_0x3b2907['makeDirty']();});const {scene:_0x50a790}=_0x5bb2a1,_0x5ab4b9=yt(Array[_0x2d0c6a(0x33f)](_0x1c8771[_0x2d0c6a(0x191)]()))[_0x2d0c6a(0x38f)](_0x24d2b2=>{const _0x48e601=_0x2d0c6a,{color:_0x5a61bd,range:_0x83de56,name:_0x2a9144,selection:_0xa2ef62,sheetID:_0x234d62}=_0x24d2b2,{startColumn:_0x864df0,startRow:_0x422efd,endColumn:_0x5546e1,endRow:_0x1811f0}=_0x83de56,_0xf13a45=z[_0x48e601(0x279)](_0x422efd,_0x864df0,_0x50a790,_0x3ba565),_0x4d0143=z[_0x48e601(0x279)](_0x1811f0,_0x5546e1,_0x50a790,_0x3ba565),{columnHeaderHeightAndMarginTop:_0x49d741}=_0x3ba565,{startX:_0x2248fc,startY:_0x175d2b}=_0xf13a45,{endX:_0x9a0a4a,endY:_0x5d1106}=_0x4d0143,_0x32188c=_0x9a0a4a-_0x2248fc,_0x5575d8=_0x5d1106-_0x175d2b,_0x19226e={'labelPosition':_0x175d2b-_0x49d741>=X?_0x48e601(0x2dc):'bottom','sheetID':_0x234d62,'range':_0x83de56,'color':_0x5a61bd,'name':_0x2a9144,'selection':_0xa2ef62,'left':_0x2248fc,'top':_0x175d2b,'width':_0x32188c,'height':_0x5575d8,'evented':!0x1,'zIndex':wt};return new Be(_0x2a9144,_0x19226e);});_0x50a790['addObjects'](_0x5ab4b9,Lt),this[_0x2d0c6a(0x38b)]=new Set(_0x5ab4b9);}[_0x1a3ccb(0x2c8)](){const _0x28de8c=_0x1a3ccb;var _0x36123e;(_0x36123e=this[_0x28de8c(0x38b)])==null||_0x36123e['forEach'](_0x470d5b=>_0x470d5b['dispose']());}['_getSheetObject'](){const _0x5735e7=_0x1a3ccb;return z['getSheetObject'](this[_0x5735e7(0x1e9)]['unit'],this[_0x5735e7(0x1e9)]);}};ve=Pt([_e(0x1,a[_0x1a3ccb(0x204)](z[_0x1a3ccb(0x39b)])),_e(0x2,a[_0x1a3ccb(0x204)](B)),_e(0x3,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x17e)]))],ve);function yt(_0x4f4fa2){const _0x5d43aa=_0x1a3ccb,_0x2b70b9=new Map();return _0x4f4fa2[_0x5d43aa(0x32f)](_0x252dca=>{const _0x34520d=_0x5d43aa;if(_0x2b70b9['has'](_0x252dca['selection'])){const _0x5f554e=_0x2b70b9[_0x34520d(0x153)](_0x252dca['selection']);_0x5f554e[_0x34520d(0x304)]+=',\x20'+_0x252dca[_0x34520d(0x304)];}else _0x2b70b9[_0x34520d(0x163)](_0x252dca[_0x34520d(0x3ad)],_0x252dca);}),Array[_0x5d43aa(0x33f)](_0x2b70b9['values']());}var $t=Object[_0x1a3ccb(0x26f)],xt=(_0x3e25e7,_0x1471f3,_0x4168bf,_0x26c3a1)=>{for(var _0x2d2233=_0x26c3a1>0x1?void 0x0:_0x26c3a1?$t(_0x1471f3,_0x4168bf):_0x1471f3,_0x441aff=_0x3e25e7['length']-0x1,_0x23aa62;_0x441aff>=0x0;_0x441aff--)(_0x23aa62=_0x3e25e7[_0x441aff])&&(_0x2d2233=_0x23aa62(_0x2d2233)||_0x2d2233);return _0x2d2233;},y=(_0x14a16f,_0x13a277)=>(_0xe320de,_0x2cb32b)=>_0x13a277(_0xe320de,_0x2cb32b,_0x14a16f);let J=class extends a[_0x1a3ccb(0x2da)]{constructor(_0x5edd48,_0x4fbccb,_0xbf81e8,_0x41701a,_0x24aaf2,_0x489387){const _0x38dfc4=_0x1a3ccb;super(),this[_0x38dfc4(0x118)]=_0x5edd48,this['_localCacheService']=_0x4fbccb,this[_0x38dfc4(0x25f)]=_0xbf81e8,this[_0x38dfc4(0x1ea)]=_0x41701a,this[_0x38dfc4(0x19d)]=_0x24aaf2,this[_0x38dfc4(0x361)]=_0x489387,this[_0x38dfc4(0x159)](),this[_0x38dfc4(0x19b)]();}[_0x1a3ccb(0x159)](){const _0x1e5501=_0x1a3ccb;this[_0x1e5501(0x3a3)](this[_0x1e5501(0x118)]['registerBeforeClose'](()=>{const _0x5102bb=_0x1e5501;if(this['_localCacheService'][_0x5102bb(0x371)]['size'])return this['_localeService']['t'](_0x5102bb(0x308));}));}[_0x1a3ccb(0x19b)](){const _0x395b09=_0x1a3ccb;this[_0x395b09(0x3a3)](this['_collaborationUIEventService']['event$'][_0x395b09(0x35c)](_0x25830a=>{const _0xd2afa0=_0x395b09;_0x25830a['id']===u[_0xd2afa0(0x290)][_0xd2afa0(0x1e4)]&&this[_0xd2afa0(0x1ea)][_0xd2afa0(0x1b3)]({'type':T[_0xd2afa0(0x367)]['Warning'],'content':this['_localeService']['t'](_0xd2afa0(0x287))}),_0x25830a['id']===u[_0xd2afa0(0x290)][_0xd2afa0(0x2ed)]&&this[_0xd2afa0(0x1ea)][_0xd2afa0(0x1b3)]({'type':T[_0xd2afa0(0x367)][_0xd2afa0(0x1c7)],'content':this[_0xd2afa0(0x361)]['t'](_0xd2afa0(0x37b))}),_0x25830a['id']===u['CollaborationUIEventId'][_0xd2afa0(0x275)]&&this[_0xd2afa0(0x19d)][_0xd2afa0(0x1b3)]({'title':this[_0xd2afa0(0x361)]['t']('permission.title'),'content':this[_0xd2afa0(0x361)]['t'](_0xd2afa0(0x185)),'type':'error','duration':0x0}),_0x25830a['id']===u[_0xd2afa0(0x290)]['CONFLICT']&&this['_messageService'][_0xd2afa0(0x1b3)]({'type':T[_0xd2afa0(0x367)][_0xd2afa0(0x24d)],'content':this[_0xd2afa0(0x361)]['t']('collaboration.closeRoom')+'('+_0x25830a[_0xd2afa0(0x2b9)]+')'}),_0x25830a['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this['_messageService'][_0xd2afa0(0x1b3)]({'type':T['MessageType'][_0xd2afa0(0x1c7)],'content':this[_0xd2afa0(0x361)]['t'](_0x25830a[_0xd2afa0(0x2b9)]||'')}),_0x25830a['id']===u['CollaborationUIEventId'][_0xd2afa0(0x1b0)]&&this[_0xd2afa0(0x1ea)][_0xd2afa0(0x1b3)]({'type':T['MessageType']['Warning'],'content':this['_localeService']['t'](_0xd2afa0(0x344))}),_0x25830a['id']===u[_0xd2afa0(0x290)]['SOCKET_FAILED']&&this[_0xd2afa0(0x1ea)][_0xd2afa0(0x1b3)]({'type':T[_0xd2afa0(0x367)][_0xd2afa0(0x24d)],'content':this[_0xd2afa0(0x361)]['t']('session.connection-failed')}),_0x25830a['id']===u['CollaborationUIEventId'][_0xd2afa0(0x29b)]&&this[_0xd2afa0(0x1ea)][_0xd2afa0(0x1b3)]({'type':T[_0xd2afa0(0x367)][_0xd2afa0(0x24d)],'content':this['_localeService']['t'](_0xd2afa0(0x277))});}));}};J=xt([y(0x0,O[_0x1a3ccb(0x3a1)]),y(0x1,u[_0x1a3ccb(0x366)]),y(0x2,a[_0x1a3ccb(0x204)](u[_0x1a3ccb(0x2f6)])),y(0x3,O[_0x1a3ccb(0x187)]),y(0x4,O[_0x1a3ccb(0x1d6)]),y(0x5,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x28b)]))],J);const Bt=_0x1a3ccb(0x158),Ue={};var Ft=Object['getOwnPropertyDescriptor'],kt=(_0x5ba5cd,_0x5180a0,_0x8b7d39,_0xf3d761)=>{const _0x5ac820=_0x1a3ccb;for(var _0x5d0cea=_0xf3d761>0x1?void 0x0:_0xf3d761?Ft(_0x5180a0,_0x8b7d39):_0x5180a0,_0x4e082f=_0x5ba5cd[_0x5ac820(0x370)]-0x1,_0x505bcd;_0x4e082f>=0x0;_0x4e082f--)(_0x505bcd=_0x5ba5cd[_0x4e082f])&&(_0x5d0cea=_0x505bcd(_0x5d0cea)||_0x5d0cea);return _0x5d0cea;},Le=(_0xb1468e,_0x39aee4)=>(_0x4180f2,_0x1b602f)=>_0x39aee4(_0x4180f2,_0x1b602f,_0xb1468e);let Z=class{constructor(_0xa3ae31,_0x5e65c2){const _0x240d71=_0x1a3ccb;this[_0x240d71(0x181)]=_0xa3ae31,this[_0x240d71(0x109)]=_0x5e65c2;}[_0x1a3ccb(0x124)](_0x24f45e){const _0x17622c=_0x1a3ccb;this[_0x17622c(0x28f)](_0x24f45e),this[_0x17622c(0x3a6)](_0x24f45e);}[_0x1a3ccb(0x175)](_0x19ad34){const _0x2746f8=_0x1a3ccb,{unitID:_0x36f3e6}=_0x19ad34,_0x46958b=this[_0x2746f8(0x109)][_0x2746f8(0x369)](_0x36f3e6)[_0x2746f8(0x2f5)](p[_0x2746f8(0x272)]),{redoCache:_0x1a9b8e}=_0x46958b[_0x2746f8(0x2e3)]();if(_0x1a9b8e[_0x2746f8(0x370)]===0x0)return _0x19ad34;let _0x28774d=a[_0x2746f8(0x2aa)][_0x2746f8(0x10c)](_0x19ad34[_0x2746f8(0x2b8)][0x0]);for(let _0x5b1a4e=0x0;_0x5b1a4e<_0x1a9b8e[_0x2746f8(0x370)];_0x5b1a4e++){const _0x30de6c={'id':_0x2746f8(0x170),'params':{..._0x1a9b8e[_0x5b1a4e]}},_0x57c529=this[_0x2746f8(0x181)][_0x2746f8(0x3b9)](_0x28774d,_0x30de6c,!0x1);if(v['isTransformMutationFailure'](_0x57c529))throw _0x57c529[_0x2746f8(0x13a)];_0x28774d=_0x57c529['m1Prime'];}return{...a[_0x2746f8(0x2aa)][_0x2746f8(0x10c)](_0x19ad34),'mutations':[_0x28774d]};}[_0x1a3ccb(0x28f)](_0x42b5bf){const _0x17ccd7=_0x1a3ccb,{unitID:_0x5572f5}=_0x42b5bf,_0xede9f7=this[_0x17ccd7(0x109)][_0x17ccd7(0x369)](_0x5572f5)[_0x17ccd7(0x2f5)](p['DocIMEInputManagerService']),{undoCache:_0x4f817b,redoCache:_0x2648de}=_0xede9f7[_0x17ccd7(0x2e3)]();if(_0x4f817b[_0x17ccd7(0x370)]===0x0||_0x2648de[_0x17ccd7(0x370)]===0x0)return;const _0x48ab00=[],_0x479141=[];let _0x3c2490=a[_0x17ccd7(0x2aa)][_0x17ccd7(0x10c)](_0x42b5bf[_0x17ccd7(0x2b8)][0x0]),_0x2ebc5b=a[_0x17ccd7(0x2aa)][_0x17ccd7(0x10c)](_0x42b5bf[_0x17ccd7(0x2b8)][0x0]);for(let _0x256fd4=_0x4f817b[_0x17ccd7(0x370)]-0x1;_0x256fd4>=0x0;_0x256fd4--){const _0x2a31db={'id':_0x17ccd7(0x170),'params':{..._0x4f817b[_0x256fd4]}},_0x171ce3={'id':_0x17ccd7(0x170),'params':{..._0x2648de[_0x256fd4]}},_0xb657c6=this[_0x17ccd7(0x181)]['transformMutation'](_0x3c2490,_0x2a31db,!0x1),_0x28395a=this[_0x17ccd7(0x181)][_0x17ccd7(0x3b9)](_0x2ebc5b,_0x171ce3,!0x1);if(v['isTransformMutationFailure'](_0xb657c6))throw _0xb657c6[_0x17ccd7(0x13a)];if(v['isTransformMutationFailure'](_0x28395a))throw _0x28395a[_0x17ccd7(0x13a)];_0x48ab00[_0x17ccd7(0x258)](_0xb657c6[_0x17ccd7(0x1a1)]['params']),_0x479141[_0x17ccd7(0x258)](_0x28395a[_0x17ccd7(0x1a1)][_0x17ccd7(0x1ff)]),_0x3c2490=_0xb657c6[_0x17ccd7(0x14d)],_0x2ebc5b=_0x28395a[_0x17ccd7(0x14d)];}_0xede9f7[_0x17ccd7(0x227)]({'undoCache':_0x48ab00,'redoCache':_0x479141});}[_0x1a3ccb(0x3a6)](_0x5452fa){const _0x1de101=_0x1a3ccb,{unitID:_0x461177}=_0x5452fa,_0x574405=this[_0x1de101(0x109)][_0x1de101(0x369)](_0x461177)[_0x1de101(0x2f5)](p[_0x1de101(0x272)]),_0x2bf086=_0x574405['getActiveRange']();if(_0x2bf086==null)return;const _0x22f75e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5452fa[_0x1de101(0x13c)],'actions':null,'textRanges':[_0x2bf086]}}],_0x4f6c22=this['_transformService'][_0x1de101(0x203)](_0x5452fa,_0x22f75e);if(!v['isTransformMutationsWithChangesetSuccess'](_0x4f6c22))throw _0x4f6c22[_0x1de101(0x13a)];const _0x792f58=_0x4f6c22[_0x1de101(0x1a1)][0x0][_0x1de101(0x1ff)][_0x1de101(0x186)];Array['isArray'](_0x792f58)&&_0x792f58[_0x1de101(0x370)]&&_0x574405[_0x1de101(0x240)](_0x792f58[0x0]);}};Z=kt([Le(0x0,v['ITransformService']),Le(0x1,C[_0x1a3ccb(0x2a7)])],Z);var jt=Object[_0x1a3ccb(0x26f)],Yt=(_0x44e2ee,_0x11a5bc,_0x143348,_0x11160e)=>{const _0x47624c=_0x1a3ccb;for(var _0x88e0d8=_0x11160e>0x1?void 0x0:_0x11160e?jt(_0x11a5bc,_0x143348):_0x11a5bc,_0x919e66=_0x44e2ee[_0x47624c(0x370)]-0x1,_0x572047;_0x919e66>=0x0;_0x919e66--)(_0x572047=_0x44e2ee[_0x919e66])&&(_0x88e0d8=_0x572047(_0x88e0d8)||_0x88e0d8);return _0x88e0d8;},he=(_0x24eefe,_0x511b2e)=>(_0x50d764,_0x138720)=>_0x511b2e(_0x50d764,_0x138720,_0x24eefe);let Q=class{constructor(_0x4e23e7,_0x365990,_0x56f033){const _0x3ca0e6=_0x1a3ccb;this[_0x3ca0e6(0x21e)]=_0x4e23e7,this[_0x3ca0e6(0x181)]=_0x365990,this[_0x3ca0e6(0x2af)]=_0x56f033;}[_0x1a3ccb(0x129)](_0x38ff85){this['_transformHistoryAndStateStack'](_0x38ff85);}[_0x1a3ccb(0x175)](_0x13869b){const _0x23ed64=_0x1a3ccb,{unitID:_0x549708}=_0x13869b,{collaboration:_0xff4a32}=this['_docStateChangeManagerService']['getStateCache'](_0x549708);if(_0xff4a32[_0x23ed64(0x370)]===0x0)return _0x13869b;let _0x594bc0=a[_0x23ed64(0x2aa)]['deepClone'](_0x13869b[_0x23ed64(0x2b8)][0x0]);for(let _0x21ffee=0x0;_0x21ffee<_0xff4a32[_0x23ed64(0x370)];_0x21ffee++){const _0x59ab48={'id':_0x23ed64(0x170),'params':{'unitId':_0xff4a32[_0x21ffee]['unitId'],..._0xff4a32[_0x21ffee][_0x23ed64(0x289)]}},_0x59e4b4=this['_transformService'][_0x23ed64(0x3b9)](_0x594bc0,_0x59ab48,!0x1);if(v['isTransformMutationFailure'](_0x59e4b4))throw _0x59e4b4[_0x23ed64(0x13a)];_0x594bc0=_0x59e4b4['m1Prime'];}return{...a[_0x23ed64(0x2aa)]['deepClone'](_0x13869b),'mutations':[_0x594bc0]};}[_0x1a3ccb(0x127)](_0x39c018){const _0x12378b=_0x1a3ccb,{unitID:_0x1f0c5d}=_0x39c018,{history:_0x3de3b0,collaboration:_0x4e785c}=this['_docStateChangeManagerService']['getStateCache'](_0x1f0c5d);if(_0x3de3b0[_0x12378b(0x370)]===0x0&&_0x4e785c[_0x12378b(0x370)]===0x0)return;const _0x1bdd7d=[],_0x277e33=[];let _0x31f6ed=a['Tools'][_0x12378b(0x10c)](_0x39c018['mutations'][0x0]),_0x24903b=a[_0x12378b(0x2aa)]['deepClone'](_0x39c018[_0x12378b(0x2b8)][0x0]);for(let _0x5ebb65=_0x3de3b0[_0x12378b(0x370)]-0x1;_0x5ebb65>=0x0;_0x5ebb65--){const _0x44d0ba={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3de3b0[_0x5ebb65][_0x12378b(0x17b)],..._0x3de3b0[_0x5ebb65][_0x12378b(0x19f)]}},_0x40efd1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3de3b0[_0x5ebb65][_0x12378b(0x17b)],..._0x3de3b0[_0x5ebb65][_0x12378b(0x289)]}},_0x2b9368=this[_0x12378b(0x181)][_0x12378b(0x3b9)](_0x31f6ed,_0x44d0ba,!0x1),_0x941897=this[_0x12378b(0x181)][_0x12378b(0x3b9)](_0x24903b,_0x40efd1,!0x1);if(v[_0x12378b(0x383)](_0x2b9368))throw _0x2b9368['error'];if(v[_0x12378b(0x383)](_0x941897))throw _0x941897[_0x12378b(0x13a)];_0x1bdd7d[_0x12378b(0x258)]({..._0x3de3b0[_0x5ebb65],'undoState':_0x2b9368['m2Prime'][_0x12378b(0x1ff)],'redoState':_0x941897['m2Prime'][_0x12378b(0x1ff)]}),_0x31f6ed=_0x2b9368[_0x12378b(0x14d)],_0x24903b=_0x941897[_0x12378b(0x14d)];}_0x31f6ed=a[_0x12378b(0x2aa)][_0x12378b(0x10c)](_0x39c018[_0x12378b(0x2b8)][0x0]),_0x24903b=a['Tools'][_0x12378b(0x10c)](_0x39c018['mutations'][0x0]);for(let _0x5a7fcd=_0x4e785c[_0x12378b(0x370)]-0x1;_0x5a7fcd>=0x0;_0x5a7fcd--){const _0x36c0af={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e785c[_0x5a7fcd][_0x12378b(0x17b)],..._0x4e785c[_0x5a7fcd]['undoState']}},_0x267f01={'id':_0x12378b(0x170),'params':{'unitId':_0x4e785c[_0x5a7fcd]['unitId'],..._0x4e785c[_0x5a7fcd][_0x12378b(0x289)]}},_0x4eb01c=this[_0x12378b(0x181)][_0x12378b(0x3b9)](_0x31f6ed,_0x36c0af,!0x1),_0xc3431d=this['_transformService'][_0x12378b(0x3b9)](_0x24903b,_0x267f01,!0x1);if(v[_0x12378b(0x383)](_0x4eb01c))throw _0x4eb01c['error'];if(v[_0x12378b(0x383)](_0xc3431d))throw _0xc3431d['error'];_0x277e33[_0x12378b(0x258)]({..._0x4e785c[_0x5a7fcd],'undoState':_0x4eb01c[_0x12378b(0x1a1)][_0x12378b(0x1ff)],'redoState':_0xc3431d[_0x12378b(0x1a1)][_0x12378b(0x1ff)]}),_0x31f6ed=_0x4eb01c[_0x12378b(0x14d)],_0x24903b=_0xc3431d['m1Prime'];}this[_0x12378b(0x2af)]['setStateCache'](_0x1f0c5d,{'history':_0x1bdd7d,'collaboration':_0x277e33});}};Q=Yt([he(0x0,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x19e)])),he(0x1,v[_0x1a3ccb(0x281)]),he(0x2,a['Inject'](p[_0x1a3ccb(0x31f)]))],Q);var Ht=Object[_0x1a3ccb(0x26f)],Wt=(_0x2da32f,_0x5760c7,_0x51c47e,_0x534c02)=>{const _0x427927=_0x1a3ccb;for(var _0x506a0a=_0x534c02>0x1?void 0x0:_0x534c02?Ht(_0x5760c7,_0x51c47e):_0x5760c7,_0x30673f=_0x2da32f[_0x427927(0x370)]-0x1,_0x4ca632;_0x30673f>=0x0;_0x30673f--)(_0x4ca632=_0x2da32f[_0x30673f])&&(_0x506a0a=_0x4ca632(_0x506a0a)||_0x506a0a);return _0x506a0a;},Me=(_0x5ba4ab,_0x56915e)=>(_0x49008f,_0x11b194)=>_0x56915e(_0x49008f,_0x11b194,_0x5ba4ab);let ee=class{constructor(_0x372ae2,_0x1b193b){this['_injector']=_0x372ae2,this['_transformService']=_0x1b193b;}[_0x1a3ccb(0x197)](_0x4bf428){const _0x138150=_0x1a3ccb;var _0xec3412;const _0x5d8388=this['_injector'][_0x138150(0x153)](W['DocSelectionManagerService']),_0x4ad759=(_0xec3412=_0x5d8388[_0x138150(0x1d5)]())!=null?_0xec3412:[];if(_0x4ad759['length']===0x0)return;const _0x3bab89=_0x4bf428[_0x138150(0x13c)],_0x79157d=[{'id':_0x138150(0x170),'params':{'unitId':_0x3bab89,'actions':null,'textRanges':_0x4ad759}}],_0x469977=this[_0x138150(0x181)]['transformMutationsWithChangeset'](_0x4bf428,_0x79157d);if(!v[_0x138150(0x306)](_0x469977))throw _0x469977[_0x138150(0x13a)];const _0x156a80=_0x469977[_0x138150(0x1a1)][0x0][_0x138150(0x1ff)]['textRanges'];Array['isArray'](_0x156a80)&&_0x156a80['length']&&_0x5d8388[_0x138150(0x1ba)](_0x156a80,{'unitId':_0x3bab89,'subUnitId':_0x3bab89},!0x1);}};ee=Wt([Me(0x0,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x19e)])),Me(0x1,v[_0x1a3ccb(0x281)])],ee);var Vt=Object[_0x1a3ccb(0x26f)],Gt=(_0x4e698f,_0x1ce6b1,_0x454838,_0x51fbd1)=>{const _0x2aea1d=_0x1a3ccb;for(var _0x31d28e=_0x51fbd1>0x1?void 0x0:_0x51fbd1?Vt(_0x1ce6b1,_0x454838):_0x1ce6b1,_0x269ddd=_0x4e698f[_0x2aea1d(0x370)]-0x1,_0x340c86;_0x269ddd>=0x0;_0x269ddd--)(_0x340c86=_0x4e698f[_0x269ddd])&&(_0x31d28e=_0x340c86(_0x31d28e)||_0x31d28e);return _0x31d28e;},N=(_0x199cc9,_0x393b9a)=>(_0x24e4bb,_0x6d2794)=>_0x393b9a(_0x24e4bb,_0x6d2794,_0x199cc9);let te=class extends a[_0x1a3ccb(0x2da)]{constructor(_0x4ac5e1,_0x2ae1e0,_0x2386c8,_0x14873b,_0x3e7b35,_0x379065,_0x34eab5,_0x29a37c){const _0x183e7c=_0x1a3ccb;super(),_(this,'_status$',new I[(_0x183e7c(0x39e))](u[_0x183e7c(0x24e)]['NOT_COLLAB'])),(this[_0x183e7c(0x2af)]=_0x4ac5e1,this[_0x183e7c(0x351)]=_0x2ae1e0,this['_docTransformIMECacheService']=_0x2386c8,this['_docTransformStateCacheService']=_0x14873b,this[_0x183e7c(0x1b9)]=_0x3e7b35,this['_docSyncEditingCollabCursorService']=_0x379065,this[_0x183e7c(0x1ea)]=_0x34eab5,this[_0x183e7c(0x361)]=_0x29a37c,this[_0x183e7c(0x1ad)]());}[_0x1a3ccb(0x1ad)](){const _0x482e3d=_0x1a3ccb;this['disposeWithMe'](this[_0x482e3d(0x351)][_0x482e3d(0x1d9)]['subscribe'](_0x1159fd=>{const _0x5a4dca=_0x482e3d,_0x2b091f=this[_0x5a4dca(0x2af)][_0x5a4dca(0x243)][_0x5a4dca(0x35c)](_0x3f4e54=>{const _0x5b8afc=_0x5a4dca;if(_0x3f4e54==null)return;const {unitId:_0x47372b,redoState:_0x3f4407,commandId:_0x97ea22}=_0x3f4e54;if(_0x47372b!==_0x1159fd[_0x5b8afc(0x13c)])return;const _0x1dd336={'id':_0x97ea22,'type':a[_0x5b8afc(0x2ee)][_0x5b8afc(0x1da)],'params':{'unitId':_0x47372b,'actions':_0x3f4407[_0x5b8afc(0x3a8)],'textRanges':null}};_0x1159fd[_0x5b8afc(0x34e)](_0x1dd336);});if(_0x1159fd['disposeWithMe'](_0x2b091f),_0x1159fd instanceof u['DocCollaborationEntity']){const _0x4ab648={'onTransformIME':_0x43df0d=>this[_0x5a4dca(0x190)][_0x5a4dca(0x124)](_0x43df0d),'onTransformState':_0x2149d7=>this[_0x5a4dca(0x207)][_0x5a4dca(0x129)](_0x2149d7),'onTransformSelections':_0x5a76be=>this['_docTransformSelectionsService']['transformSelections'](_0x5a76be),'onSyncEditingCollabCursor':_0x21a3dc=>this[_0x5a4dca(0x28c)][_0x5a4dca(0x2f3)](_0x21a3dc),'onTransformRemoteChangesetByIMECache':_0x546634=>this[_0x5a4dca(0x190)]['transformRemoteChangeset'](_0x546634),'onTransformRemoteChangesetByStateCache':_0x21fac2=>this['_docTransformStateCacheService'][_0x5a4dca(0x175)](_0x21fac2)};_0x1159fd['addHandlerCallback'](_0x4ab648);}}));}};te=Gt([N(0x0,a[_0x1a3ccb(0x204)](p[_0x1a3ccb(0x31f)])),N(0x1,a[_0x1a3ccb(0x204)](u[_0x1a3ccb(0x2f2)])),N(0x2,a[_0x1a3ccb(0x204)](Z)),N(0x3,a[_0x1a3ccb(0x204)](Q)),N(0x4,a['Inject'](ee)),N(0x5,a['Inject'](Oe)),N(0x6,O[_0x1a3ccb(0x187)]),N(0x7,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x28b)]))],te);var V=(_0x4420d5=>(_0x4420d5[_0x4420d5[_0x1a3ccb(0x172)]=0x0]=_0x1a3ccb(0x172),_0x4420d5[_0x4420d5['OK']=0x1]='OK',_0x4420d5[_0x4420d5[_0x1a3ccb(0x379)]=0x2]=_0x1a3ccb(0x379),_0x4420d5[_0x4420d5[_0x1a3ccb(0x275)]=0x3]=_0x1a3ccb(0x275),_0x4420d5[_0x4420d5['NOT_FOUND']=0x4]='NOT_FOUND',_0x4420d5[_0x4420d5[_0x1a3ccb(0x267)]=0x5]=_0x1a3ccb(0x267),_0x4420d5[_0x4420d5[_0x1a3ccb(0x247)]=0x6]=_0x1a3ccb(0x247),_0x4420d5[_0x4420d5[_0x1a3ccb(0x1f5)]=0x7]=_0x1a3ccb(0x1f5),_0x4420d5[_0x4420d5[_0x1a3ccb(0x285)]=0x8]=_0x1a3ccb(0x285),_0x4420d5[_0x4420d5['COMPLETION_FINISHED']=0x9]=_0x1a3ccb(0x34a),_0x4420d5[_0x4420d5[_0x1a3ccb(0x146)]=0xa]=_0x1a3ccb(0x146),_0x4420d5[_0x4420d5['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x4420d5[_0x4420d5['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4420d5[_0x4420d5[_0x1a3ccb(0x1d3)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x4420d5[_0x4420d5[_0x1a3ccb(0x378)]=0xe]=_0x1a3ccb(0x378),_0x4420d5[_0x4420d5[_0x1a3ccb(0x19a)]=0xf]=_0x1a3ccb(0x19a),_0x4420d5[_0x4420d5['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x1a3ccb(0x319),_0x4420d5[_0x4420d5[_0x1a3ccb(0x12a)]=0x64]=_0x1a3ccb(0x12a),_0x4420d5[_0x4420d5[_0x1a3ccb(0x377)]=0x65]='ERROR_AGAIN',_0x4420d5[_0x4420d5[_0x1a3ccb(0x155)]=0xc9]='USER_NOT_FOUND',_0x4420d5[_0x4420d5[_0x1a3ccb(0x3af)]=0xca]=_0x1a3ccb(0x3af),_0x4420d5[_0x4420d5[_0x1a3ccb(0x1cb)]=0x1389]=_0x1a3ccb(0x1cb),_0x4420d5[_0x4420d5[_0x1a3ccb(0x391)]=0x1771]=_0x1a3ccb(0x391),_0x4420d5[_0x4420d5['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x1a3ccb(0x1a9),_0x4420d5[_0x4420d5[_0x1a3ccb(0x2fc)]=0x1773]=_0x1a3ccb(0x2fc),_0x4420d5[_0x4420d5[_0x1a3ccb(0x134)]=0x1b59]='APPLY_REJECT',_0x4420d5[_0x4420d5[_0x1a3ccb(0x20a)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4420d5[_0x4420d5[_0x1a3ccb(0x384)]=0x1b5b]=_0x1a3ccb(0x384),_0x4420d5[_0x4420d5[_0x1a3ccb(0x205)]=0x1b5c]=_0x1a3ccb(0x205),_0x4420d5[_0x4420d5['APPLY_DUPLICATED']=0x1b5d]=_0x1a3ccb(0x282),_0x4420d5[_0x4420d5[_0x1a3ccb(0x3a4)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4420d5[_0x4420d5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x1a3ccb(0x317),_0x4420d5[_0x4420d5[_0x1a3ccb(0x3b3)]=0x232a]=_0x1a3ccb(0x3b3),_0x4420d5[_0x4420d5[_0x1a3ccb(0x123)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4420d5[_0x4420d5[_0x1a3ccb(0x242)]=0x232c]=_0x1a3ccb(0x242),_0x4420d5[_0x4420d5[_0x1a3ccb(0x3bb)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4420d5[_0x4420d5['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4420d5[_0x4420d5['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1a3ccb(0x1cc),_0x4420d5[_0x4420d5[_0x1a3ccb(0x1c1)]=0x2713]=_0x1a3ccb(0x1c1),_0x4420d5[_0x4420d5[_0x1a3ccb(0x2b5)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4420d5[_0x4420d5[_0x1a3ccb(0x32c)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x4420d5[_0x4420d5[_0x1a3ccb(0x18b)]=0x271b]=_0x1a3ccb(0x18b),_0x4420d5[_0x4420d5[_0x1a3ccb(0x1e0)]=0x271c]=_0x1a3ccb(0x1e0),_0x4420d5[_0x4420d5['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x1a3ccb(0x152),_0x4420d5[_0x4420d5[_0x1a3ccb(0x138)]=0x271e]=_0x1a3ccb(0x138),_0x4420d5[_0x4420d5['YUUMI_AI_RUN_FAILED']=0x271f]=_0x1a3ccb(0x2ea),_0x4420d5[_0x4420d5[_0x1a3ccb(0x1ee)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4420d5[_0x4420d5[_0x1a3ccb(0x128)]=0x2af9]=_0x1a3ccb(0x128),_0x4420d5[_0x4420d5[_0x1a3ccb(0x2b2)]=0x2ee1]=_0x1a3ccb(0x2b2),_0x4420d5[_0x4420d5[_0x1a3ccb(0x328)]=0x2ee2]=_0x1a3ccb(0x328),_0x4420d5[_0x4420d5[_0x1a3ccb(0x25e)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4420d5[_0x4420d5[_0x1a3ccb(0x195)]=0x2ee4]=_0x1a3ccb(0x195),_0x4420d5[_0x4420d5[_0x1a3ccb(0x33d)]=0x2ee5]=_0x1a3ccb(0x33d),_0x4420d5[_0x4420d5[_0x1a3ccb(0x2fb)]=0x32c9]=_0x1a3ccb(0x2fb),_0x4420d5[_0x4420d5[_0x1a3ccb(0x311)]=0x32ca]=_0x1a3ccb(0x311),_0x4420d5[_0x4420d5[_0x1a3ccb(0x2b6)]=0x32cb]=_0x1a3ccb(0x2b6),_0x4420d5[_0x4420d5['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x1a3ccb(0x362),_0x4420d5[_0x4420d5[_0x1a3ccb(0x10d)]=0x36b2]=_0x1a3ccb(0x10d),_0x4420d5[_0x4420d5['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x1a3ccb(0x183),_0x4420d5[_0x4420d5[_0x1a3ccb(0x3b5)]=0x36b4]=_0x1a3ccb(0x3b5),_0x4420d5[_0x4420d5['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x1a3ccb(0x29e),_0x4420d5[_0x4420d5[_0x1a3ccb(0x32e)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4420d5[_0x4420d5[_0x1a3ccb(0x1c4)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x4420d5[_0x4420d5[_0x1a3ccb(0x388)]=0x3a99]=_0x1a3ccb(0x388),_0x4420d5[_0x4420d5[_0x1a3ccb(0x139)]=0x3a9a]=_0x1a3ccb(0x139),_0x4420d5[_0x4420d5['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x4420d5[_0x4420d5['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x1a3ccb(0x17c),_0x4420d5[_0x4420d5[_0x1a3ccb(0x25b)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4420d5[_0x4420d5[_0x1a3ccb(0x1eb)]=0x3a9e]=_0x1a3ccb(0x1eb),_0x4420d5[_0x4420d5[_0x1a3ccb(0x161)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x4420d5[_0x4420d5[_0x1a3ccb(0x2b1)]=-0x1]=_0x1a3ccb(0x2b1),_0x4420d5))(V||{});function Xt(_0xdb3800){const _0x38486e=_0x1a3ccb;var _0x4727df,_0x4a4839;const _0x5bc672=(_0x4727df=_0xdb3800[_0x38486e(0x25a)])==null?void 0x0:_0x4727df['stage'],_0x3df13e=((_0x4a4839=_0xdb3800['stageInfo'])==null?void 0x0:_0x4a4839[_0x38486e(0x268)])||0x0;return _0x5bc672===x[_0x38486e(0x29c)]['START_CALCULATION']&&_0x3df13e>0x0;}function Kt(_0x7932d0){const _0x15414d=_0x1a3ccb;return _0x7932d0['functionsExecutedState']===x['FormulaExecutedStateType'][_0x15414d(0x21c)];}var qt=Object['getOwnPropertyDescriptor'],zt=(_0x1c8d75,_0x12d490,_0x17576b,_0x1ff908)=>{const _0x5110ab=_0x1a3ccb;for(var _0x1f384a=_0x1ff908>0x1?void 0x0:_0x1ff908?qt(_0x12d490,_0x17576b):_0x12d490,_0x53efea=_0x1c8d75[_0x5110ab(0x370)]-0x1,_0x1170cc;_0x53efea>=0x0;_0x53efea--)(_0x1170cc=_0x1c8d75[_0x53efea])&&(_0x1f384a=_0x1170cc(_0x1f384a)||_0x1f384a);return _0x1f384a;},L=(_0x4644e7,_0x53a653)=>(_0x2b9aa3,_0x15bc53)=>_0x53a653(_0x2b9aa3,_0x15bc53,_0x4644e7);const Jt='/universer-api/license/formula/limit/status',Zt='/universer-api/license/formula/limit/start',Qt=_0x1a3ccb(0x1c2);let se=class extends a['Disposable']{constructor(_0x59bc1b,_0x4d72b9,_0x9428d3,_0x2ebb57,_0x489764,_0x1eba8b,_0x3563dc){const _0x5279b8=_0x1a3ccb;super(),_(this,_0x5279b8(0x337),null),_(this,_0x5279b8(0x23b),0x0),_(this,'_currentUsage',0x0),_(this,_0x5279b8(0x2a5),[]),_(this,_0x5279b8(0x315),0x0),(this['_messageService']=_0x59bc1b,this[_0x5279b8(0x1a6)]=_0x4d72b9,this['_configService']=_0x9428d3,this[_0x5279b8(0x1ab)]=_0x2ebb57,this[_0x5279b8(0x2b0)]=_0x489764,this[_0x5279b8(0x316)]=_0x1eba8b,this[_0x5279b8(0x361)]=_0x3563dc,this[_0x5279b8(0x27a)]());}[_0x1a3ccb(0x27a)](){const _0x5319da=_0x1a3ccb;this[_0x5319da(0x3a3)](this[_0x5319da(0x1a6)][_0x5319da(0x302)]((_0x33340e,_0x3637c6)=>{const _0x397800=_0x5319da;if(_0x33340e['id']!==x[_0x397800(0x151)]['id'])return;const _0x243cca=_0x33340e[_0x397800(0x1ff)];if(!this[_0x397800(0x34c)](_0x243cca[_0x397800(0x364)]))return;if(!this['_checkCalculationAvailable']())throw this[_0x397800(0x145)](_0x33340e,_0x3637c6),this[_0x397800(0x199)](),new a[(_0x397800(0x276))]();})),this[_0x5319da(0x3a3)](this[_0x5319da(0x1a6)][_0x5319da(0x2ce)]((_0xbfb3a8,_0x4f3e74)=>{const _0x6dde82=_0x5319da;if(_0xbfb3a8['id']!==x['SetFormulaCalculationNotificationMutation']['id'])return;const _0x36af49=_0xbfb3a8[_0x6dde82(0x1ff)];if(Xt(_0x36af49)){const _0x75a51a=a['generateRandomId']();this[_0x6dde82(0x2a5)][_0x6dde82(0x18c)](_0x75a51a),this[_0x6dde82(0x1bb)](_0x75a51a);}else{if(Kt(_0x36af49)&&this[_0x6dde82(0x2a5)][_0x6dde82(0x370)]>0x0){const _0x49a704=this[_0x6dde82(0x2a5)][_0x6dde82(0x349)]();this['_releaseCalculationLimit'](_0x49a704);}}}));}[_0x1a3ccb(0x39f)](){const _0x7b1179=_0x1a3ccb;super['dispose'](),this[_0x7b1179(0x390)](),this[_0x7b1179(0x2a5)]=[],this[_0x7b1179(0x120)]=0x0,this[_0x7b1179(0x23b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x1a3ccb(0x145)](_0x4e22b4,_0x3d1cb0){const _0x1d2c81=_0x1a3ccb;for(let _0x418a91=0x0;_0x418a91<0x1e;_0x418a91++)try{if(await this[_0x1d2c81(0x2fe)](),this['_checkCalculationAvailable']()){this[_0x1d2c81(0x271)](_0x4e22b4,_0x3d1cb0),this['_messageService'][_0x1d2c81(0x1b3)]({'content':this['_localeService']['t'](_0x1d2c81(0x3ac)),'type':T[_0x1d2c81(0x367)][_0x1d2c81(0x1e2)]});return;}await new Promise(_0x16dec1=>{const _0x1d78c2=_0x1d2c81;this[_0x1d78c2(0x337)]=window[_0x1d78c2(0x1ae)](_0x16dec1,0x3e8);});}catch(_0x41f0a8){this['_logService'][_0x1d2c81(0x13a)](_0x41f0a8);}this[_0x1d2c81(0x1ea)][_0x1d2c81(0x1b3)]({'content':this[_0x1d2c81(0x361)]['t'](_0x1d2c81(0x1f6)),'type':T['MessageType']['Error']});}['_applyCommand'](_0x5ee2fc,_0x11153c){const _0x412fbb=_0x1a3ccb;try{this[_0x412fbb(0x1a6)][_0x412fbb(0x173)](_0x5ee2fc['id'],_0x5ee2fc[_0x412fbb(0x1ff)],_0x11153c);}catch(_0x13b53b){this['_logService']['error'](_0x13b53b);}}[_0x1a3ccb(0x20f)](_0x39f9ea,_0x1cb6d1){const _0x386b62=_0x1a3ccb;_0x1cb6d1<this['_lastResponseTimestamp']||(this[_0x386b62(0x315)]=_0x1cb6d1,this[_0x386b62(0x23b)]=Number[_0x386b62(0x2ba)](_0x39f9ea[_0x386b62(0x1d8)]),this[_0x386b62(0x120)]=Number['parseInt'](_0x39f9ea['currentUsage']));}async[_0x1a3ccb(0x1bb)](_0x35e6b1){const _0x3cd3da=_0x1a3ccb;var _0x2f99d1,_0x7c4c1e;const _0x8cd723=Date[_0x3cd3da(0x208)]();try{const _0x30214a=((_0x2f99d1=this['_configService'][_0x3cd3da(0x395)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x2f99d1['startFormulaLimitUrl'])||Zt,_0x921d48=(await this[_0x3cd3da(0x1ab)][_0x3cd3da(0x1b7)](_0x30214a,{'body':JSON[_0x3cd3da(0x253)]({'taskId':_0x35e6b1})}))[_0x3cd3da(0x36d)];if(((_0x7c4c1e=_0x921d48[_0x3cd3da(0x13a)])==null?void 0x0:_0x7c4c1e[_0x3cd3da(0x32a)])!==V['OK'])return;this[_0x3cd3da(0x20f)](_0x921d48[_0x3cd3da(0x3b2)],_0x8cd723);}catch(_0x4d3257){this[_0x3cd3da(0x316)][_0x3cd3da(0x13a)](_0x4d3257);}}async[_0x1a3ccb(0x2fe)](_0x52e1d7){const _0xfb7d95=_0x1a3ccb;var _0x5bfa6a,_0x58a3e5;const _0xb27cfb=Date[_0xfb7d95(0x208)]();try{const _0x381a7a=((_0x5bfa6a=this['_configService'][_0xfb7d95(0x395)](u[_0xfb7d95(0x2b4)]))==null?void 0x0:_0x5bfa6a[_0xfb7d95(0x215)])||Jt,_0x1da862=_0x52e1d7?_0x381a7a+_0xfb7d95(0x135)+encodeURIComponent(_0x52e1d7):_0x381a7a,_0x57ff75=(await this[_0xfb7d95(0x1ab)][_0xfb7d95(0x153)](_0x1da862))[_0xfb7d95(0x36d)];if(((_0x58a3e5=_0x57ff75[_0xfb7d95(0x13a)])==null?void 0x0:_0x58a3e5['code'])!==V['OK'])return;this[_0xfb7d95(0x20f)](_0x57ff75[_0xfb7d95(0x3b2)],_0xb27cfb);}catch(_0x218d7e){this[_0xfb7d95(0x316)][_0xfb7d95(0x13a)](_0x218d7e);}}async[_0x1a3ccb(0x31c)](_0x373d89){const _0xb3866=_0x1a3ccb;var _0x1d7244,_0x571614;const _0x1862f8=Date[_0xb3866(0x208)]();try{const _0x220027=((_0x1d7244=this['_configService'][_0xb3866(0x395)](u[_0xb3866(0x2b4)]))==null?void 0x0:_0x1d7244['releaseFormulaLimitUrl'])||Qt,_0x4d0ea5=(await this[_0xb3866(0x1ab)][_0xb3866(0x1b7)](_0x220027,{'body':JSON[_0xb3866(0x253)]({'taskId':_0x373d89})}))[_0xb3866(0x36d)];if(((_0x571614=_0x4d0ea5[_0xb3866(0x13a)])==null?void 0x0:_0x571614[_0xb3866(0x32a)])!==V['OK'])return;this[_0xb3866(0x20f)](_0x4d0ea5['limitInfo'],_0x1862f8);}catch(_0xce938f){this[_0xb3866(0x316)][_0xb3866(0x13a)](_0xce938f);}}[_0x1a3ccb(0x32d)](){const _0x3fcc17=_0x1a3ccb;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x3fcc17(0x120)]>0x0;}[_0x1a3ccb(0x390)](){const _0x1ff0d2=_0x1a3ccb;this[_0x1ff0d2(0x337)]&&(clearTimeout(this['_pollingInterval']),this[_0x1ff0d2(0x337)]=null);}[_0x1a3ccb(0x199)](){const _0x174fb9=_0x1a3ccb;this['_messageService'][_0x174fb9(0x1b3)]({'content':this[_0x174fb9(0x361)]['t'](_0x174fb9(0x350)),'type':T['MessageType'][_0x174fb9(0x2b7)]});}[_0x1a3ccb(0x34c)](_0x55b732){const _0x3dfaf1=_0x1a3ccb;for(const _0x2ed101 of _0x55b732){const {unitId:_0x58021a,sheetId:_0x2917bc,range:_0x1f2ab0}=_0x2ed101,_0x8287ff=this[_0x3dfaf1(0x2b0)][_0x3dfaf1(0x2f9)](_0x58021a);if(!_0x8287ff)continue;const _0x47ec5d=_0x8287ff[_0x3dfaf1(0x18a)](_0x2917bc);if(!_0x47ec5d)continue;const _0x24e778=_0x47ec5d[_0x3dfaf1(0x198)]();for(let _0x40e111=_0x1f2ab0[_0x3dfaf1(0x392)];_0x40e111<=_0x1f2ab0['endRow'];_0x40e111++)for(let _0x51be1d=_0x1f2ab0[_0x3dfaf1(0x39a)];_0x51be1d<=_0x1f2ab0[_0x3dfaf1(0x174)];_0x51be1d++){const _0x1962f7=_0x24e778['getValue'](_0x40e111,_0x51be1d);if(_0x1962f7&&(a[_0x3dfaf1(0x15c)](_0x1962f7['f'])||a[_0x3dfaf1(0x269)](_0x1962f7['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x1a3ccb(0x204)](O[_0x1a3ccb(0x187)])),L(0x1,a[_0x1a3ccb(0x18e)]),L(0x2,a[_0x1a3ccb(0x28a)]),L(0x3,a['Inject'](G[_0x1a3ccb(0x1f9)])),L(0x4,a[_0x1a3ccb(0x15f)]),L(0x5,a['ILogService']),L(0x6,a['Inject'](a[_0x1a3ccb(0x28b)]))],se);var es=Object[_0x1a3ccb(0x26f)],ts=(_0x1927b5,_0x4ada30,_0x3881d7,_0x974273)=>{const _0x460244=_0x1a3ccb;for(var _0x3a47f0=_0x974273>0x1?void 0x0:_0x974273?es(_0x4ada30,_0x3881d7):_0x4ada30,_0x2ee4ff=_0x1927b5[_0x460244(0x370)]-0x1,_0x31fdfd;_0x2ee4ff>=0x0;_0x2ee4ff--)(_0x31fdfd=_0x1927b5[_0x2ee4ff])&&(_0x3a47f0=_0x31fdfd(_0x3a47f0)||_0x3a47f0);return _0x3a47f0;},ue=(_0x17a81b,_0x150d29)=>(_0x98d786,_0x4440e0)=>_0x150d29(_0x98d786,_0x4440e0,_0x17a81b);let Ee=class extends a['Disposable']{constructor(_0x420ab8,_0x3876d4,_0x53ff8d){const _0x5879e0=_0x1a3ccb;super(),_(this,_0x5879e0(0x16d),new Map()),_(this,_0x5879e0(0x193),new Map()),_(this,_0x5879e0(0x113),!0x1),(this[_0x5879e0(0x1ce)]=_0x420ab8,this[_0x5879e0(0x312)]=_0x3876d4,this[_0x5879e0(0x238)]=_0x53ff8d);}[_0x1a3ccb(0x1ec)](){const _0x50a080=_0x1a3ccb;this[_0x50a080(0x113)]=!0x0;}[_0x1a3ccb(0x22a)](){this['_disabled']=!0x1;}get[_0x1a3ccb(0x371)](){const _0x24869d=_0x1a3ccb;return this[_0x24869d(0x193)];}[_0x1a3ccb(0x39f)](){const _0x3071d5=_0x1a3ccb;this[_0x3071d5(0x38e)]()[_0x3071d5(0x3b6)](()=>super[_0x3071d5(0x39f)]());}async[_0x1a3ccb(0x1a8)](_0x438310){const _0x35adbb=_0x1a3ccb;return this['_disabled']?null:this[_0x35adbb(0x312)][_0x35adbb(0x336)](u[_0x35adbb(0x2d9)](_0x438310));}async[_0x1a3ccb(0x19c)](_0x4d2586,_0x40a567){const _0x270584=_0x1a3ccb;return!!this[_0x270584(0x312)][_0x270584(0x30c)](_0x4d2586,_0x40a567);}['updateOfflineData'](_0x1952a7,_0x366406,_0x8e60c6,_0x27e556){const _0x3b47ad=_0x1a3ccb,_0x39d406=this['_revisionService'][_0x3b47ad(0x25d)](_0x1952a7);this[_0x3b47ad(0x16d)][_0x3b47ad(0x163)](_0x1952a7,{'unitID':_0x1952a7,'type':_0x366406,'awaitingChangeset':_0x8e60c6,'mutations':_0x27e556,'rev':_0x39d406}),this[_0x3b47ad(0x193)][_0x3b47ad(0x2cd)](_0x1952a7)||this[_0x3b47ad(0x332)](_0x1952a7);}['_scheduleSaving'](_0x102a2c){const _0x1129c3=_0x1a3ccb,_0x157135=this['_getSaveTimeout']();_0x157135===0x0?this[_0x1129c3(0x140)](_0x102a2c):this[_0x1129c3(0x193)][_0x1129c3(0x163)](_0x102a2c,setTimeout(()=>this[_0x1129c3(0x140)](_0x102a2c),_0x157135));}[_0x1a3ccb(0x2cf)](){const _0x44006f=_0x1a3ccb;var _0x5891fc;return(_0x5891fc=this['_configService']['getConfig'](u[_0x44006f(0x21a)]))!=null?_0x5891fc:u[_0x44006f(0x111)];}[_0x1a3ccb(0x140)](_0x558002){const _0x4584de=_0x1a3ccb,_0x278ed2=this[_0x4584de(0x193)]['get'](_0x558002);return _0x278ed2!==void 0x0&&window['clearTimeout'](_0x278ed2),this['_localStorageService'][_0x4584de(0x30c)](u[_0x4584de(0x2d9)](_0x558002),this[_0x4584de(0x16d)][_0x4584de(0x153)](_0x558002))[_0x4584de(0x3b6)](()=>this[_0x4584de(0x193)][_0x4584de(0x2cc)](_0x558002));}async[_0x1a3ccb(0x38e)](){const _0x5917ac=_0x1a3ccb,_0x56acfa=[];this[_0x5917ac(0x193)][_0x5917ac(0x32f)]((_0x2ba581,_0x9d28ba)=>{const _0x129566=_0x5917ac;window[_0x129566(0x274)](_0x2ba581),_0x56acfa[_0x129566(0x18c)](this['_saveCache'](_0x9d28ba)[_0x129566(0x3b6)](()=>{const _0x431251=_0x129566;this[_0x431251(0x193)][_0x431251(0x2cc)](_0x9d28ba);}));}),await Promise[_0x5917ac(0x17f)](_0x56acfa);}};Ee=ts([ue(0x0,a[_0x1a3ccb(0x28a)]),ue(0x1,a['ILocalStorageService']),ue(0x2,a[_0x1a3ccb(0x204)](v[_0x1a3ccb(0x121)]))],Ee);class Fe extends a[_0x1a3ccb(0x136)]{constructor(){const _0x3dfa93=_0x1a3ccb;super(),_(this,_0x3dfa93(0x180)),this[_0x3dfa93(0x180)]=I[_0x3dfa93(0x141)](window,_0x3dfa93(0x1cf))['pipe'](I[_0x3dfa93(0x1e6)](this[_0x3dfa93(0x331)]),I[_0x3dfa93(0x2c7)](0x1),I[_0x3dfa93(0x1ef)](void 0x0));}['setParam'](_0x36c825,_0x288299,_0x5adb0c=!0x1){const _0x86ea3a=_0x1a3ccb,_0x2e9e9d=new URL(window[_0x86ea3a(0x165)]['href']);_0x2e9e9d[_0x86ea3a(0x2a2)]['set'](_0x36c825,_0x288299),_0x5adb0c?window[_0x86ea3a(0x1b8)][_0x86ea3a(0x393)]('','',_0x2e9e9d[_0x86ea3a(0x3aa)]()):window[_0x86ea3a(0x1b8)][_0x86ea3a(0x368)]('','',_0x2e9e9d[_0x86ea3a(0x3aa)]());}[_0x1a3ccb(0x37f)](_0x15635b,_0xf48b76=!0x1){const _0x543538=_0x1a3ccb,_0x153896=new URL(window[_0x543538(0x165)][_0x543538(0x3b7)]);_0x153896[_0x543538(0x2a2)][_0x543538(0x2cc)](_0x15635b),_0xf48b76?window['history']['replaceState']('','',_0x153896[_0x543538(0x3aa)]()):window[_0x543538(0x1b8)][_0x543538(0x368)]('','',_0x153896[_0x543538(0x3aa)]());}[_0x1a3ccb(0x234)](_0x35e54b){const _0xe950f7=_0x1a3ccb;var _0x5c0be0;return(_0x5c0be0=new URL(window[_0xe950f7(0x165)]['href'])[_0xe950f7(0x2a2)][_0xe950f7(0x153)](_0x35e54b))!=null?_0x5c0be0:void 0x0;}}var ss=Object[_0x1a3ccb(0x2d7)],is=Object[_0x1a3ccb(0x26f)],ns=(_0xaf037e,_0x229b16,_0x12a09f)=>_0x229b16 in _0xaf037e?ss(_0xaf037e,_0x229b16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12a09f}):_0xaf037e[_0x229b16]=_0x12a09f,rs=(_0x3c4135,_0x3925ee,_0x9efdb1,_0x44eafa)=>{const _0x32c272=_0x1a3ccb;for(var _0x19cfcb=_0x44eafa>0x1?void 0x0:_0x44eafa?is(_0x3925ee,_0x9efdb1):_0x3925ee,_0x3e5726=_0x3c4135[_0x32c272(0x370)]-0x1,_0xe2aa9;_0x3e5726>=0x0;_0x3e5726--)(_0xe2aa9=_0x3c4135[_0x3e5726])&&(_0x19cfcb=_0xe2aa9(_0x19cfcb)||_0x19cfcb);return _0x19cfcb;},Ie=(_0x60aba1,_0x1891ba)=>(_0x1292d6,_0x58e2d2)=>_0x1891ba(_0x1292d6,_0x58e2d2,_0x60aba1),os=(_0x554cef,_0x51e491,_0x1452f1)=>ns(_0x554cef,_0x51e491+'',_0x1452f1);const as=_0x1a3ccb(0x3b0);exports[_0x1a3ccb(0x2a6)]=class extends a['Plugin']{constructor(_0x1a55de=Ue,_0x3de2a8,_0x5d2095,_0x158687){const _0x75116=_0x1a3ccb;super(),this[_0x75116(0x1b1)]=_0x1a55de,this[_0x75116(0x109)]=_0x3de2a8,this[_0x75116(0x21e)]=_0x5d2095,this[_0x75116(0x1ce)]=_0x158687;const {..._0xc23641}=a['merge']({},Ue,this[_0x75116(0x1b1)]);this[_0x75116(0x1ce)]['setConfig'](Bt,_0xc23641);}[_0x1a3ccb(0x2ac)](){const _0x3c3446=_0x1a3ccb;this[_0x3c3446(0x273)](),this[_0x3c3446(0x301)]();}['onRendered'](){const _0x554bbf=_0x1a3ccb;this[_0x554bbf(0x1d7)]();}[_0x1a3ccb(0x273)](){const _0x133182=_0x1a3ccb;var _0x55ca23;const _0x2ebfb8=[[Te],[se],[ee],[Z],[Q],[Oe],[pe,{'useClass':Fe}],[G[_0x133182(0x39d)],{'useClass':G['WebSocketService']}],[u[_0x133182(0x366)],{'useClass':Ee}],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[B],[de],[exports[_0x133182(0x372)]]];a[_0x133182(0x14b)](this[_0x133182(0x21e)],a['mergeOverrideWithDependencies'](_0x2ebfb8,(_0x55ca23=this[_0x133182(0x1b1)])==null?void 0x0:_0x55ca23[_0x133182(0x221)]));}[_0x1a3ccb(0x1d7)](){const _0x5d8192=_0x1a3ccb;this['disposeWithMe'](this[_0x5d8192(0x109)][_0x5d8192(0x1be)](a[_0x5d8192(0x360)]['UNIVER_DOC'],[ge])),this[_0x5d8192(0x3a3)](this['_renderManagerService'][_0x5d8192(0x1be)](a[_0x5d8192(0x360)][_0x5d8192(0x10b)],[ve]));}['_initDependencies'](){const _0x2f67a2=_0x1a3ccb;a[_0x2f67a2(0x2a1)](this['_injector'],[[B],[exports[_0x2f67a2(0x2d1)]],[te],[J],[exports[_0x2f67a2(0x372)]],[se]]);}},os(exports[_0x1a3ccb(0x2a6)],_0x1a3ccb(0x1b5),as),exports[_0x1a3ccb(0x2a6)]=rs([a[_0x1a3ccb(0x310)](u[_0x1a3ccb(0x2eb)]),Ie(0x1,C['IRenderManagerService']),Ie(0x2,a[_0x1a3ccb(0x204)](a[_0x1a3ccb(0x19e)])),Ie(0x3,a[_0x1a3ccb(0x28a)])],exports[_0x1a3ccb(0x2a6)]);var cs=Object['getOwnPropertyDescriptor'],ls=(_0x451670,_0x510088,_0x2f4a55,_0x4a55c6)=>{const _0x56f836=_0x1a3ccb;for(var _0x5f0f57=_0x4a55c6>0x1?void 0x0:_0x4a55c6?cs(_0x510088,_0x2f4a55):_0x510088,_0x120a15=_0x451670[_0x56f836(0x370)]-0x1,_0x498428;_0x120a15>=0x0;_0x120a15--)(_0x498428=_0x451670[_0x120a15])&&(_0x5f0f57=_0x498428(_0x5f0f57)||_0x5f0f57);return _0x5f0f57;},H=(_0x262dbf,_0x56f462)=>(_0x52ead1,_0x370685)=>_0x56f462(_0x52ead1,_0x370685,_0x262dbf);exports[_0x1a3ccb(0x13d)]=class extends u['CollaborationSocketService']{constructor(_0x5dabee,_0x4c4763,_0xaa4585,_0x4e3322,_0x3dbe16){super(_0x5dabee,_0x4c4763,_0xaa4585,_0x4e3322,_0x3dbe16);}async[_0x1a3ccb(0x244)](_0x4d4f57){const _0x3c1073=_0x1a3ccb,_0x588518=await this[_0x3c1073(0x1af)](),_0x47ac4c=this[_0x3c1073(0x2a4)](_0x4d4f57,_0x588518);return this['_doCreateSocket'](_0x47ac4c);}[_0x1a3ccb(0x2a4)](_0x5e9b50,_0x4943a6){const _0x2638d2=_0x1a3ccb,_0x34b26b=typeof window>'u'?new URL(_0x5e9b50):new URL(_0x5e9b50,window[_0x2638d2(0x165)]['origin']);_0x34b26b[_0x2638d2(0x2a2)][_0x2638d2(0x163)]('sessionTicket',_0x4943a6);const _0x534d68=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2638d2(0x165)][_0x2638d2(0x11f)]);return _0x534d68[_0x2638d2(0x153)](_0x2638d2(0x266))&&_0x34b26b['searchParams'][_0x2638d2(0x163)](_0x2638d2(0x266),_0x534d68[_0x2638d2(0x153)]('runId')),_0x34b26b['toString']();}async[_0x1a3ccb(0x1af)](){const _0x33aecc=_0x1a3ccb;var _0x4f2936,_0x3d88d7,_0x3500e7;const _0x14ab91=this[_0x33aecc(0x1ce)][_0x33aecc(0x395)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3f039f=(_0x4f2936=_0x14ab91==null?void 0x0:_0x14ab91[_0x33aecc(0x2d0)])!=null?_0x4f2936:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3500e7=(_0x3d88d7=(await this[_0x33aecc(0x1ab)]['get'](_0x3f039f,{'headers':{'Content-Type':_0x33aecc(0x382)}}))[_0x33aecc(0x36d)])==null?void 0x0:_0x3d88d7['ticket'])!=null?_0x3500e7:'';}},exports[_0x1a3ccb(0x13d)]=ls([H(0x0,a[_0x1a3ccb(0x204)](a['Injector'])),H(0x1,a[_0x1a3ccb(0x204)](G[_0x1a3ccb(0x1f9)])),H(0x2,a[_0x1a3ccb(0x28a)]),H(0x3,a['ILogService']),H(0x4,v[_0x1a3ccb(0x262)])],exports['BrowserCollaborationSocketService']);var _s=Object[_0x1a3ccb(0x26f)],hs=(_0x11629a,_0x2eb233,_0xe5cb54,_0x3794c0)=>{const _0x52c39e=_0x1a3ccb;for(var _0x335394=_0x3794c0>0x1?void 0x0:_0x3794c0?_s(_0x2eb233,_0xe5cb54):_0x2eb233,_0x4f7957=_0x11629a[_0x52c39e(0x370)]-0x1,_0x21f145;_0x4f7957>=0x0;_0x4f7957--)(_0x21f145=_0x11629a[_0x4f7957])&&(_0x335394=_0x21f145(_0x335394)||_0x335394);return _0x335394;},Se=(_0x2b7b40,_0x276989)=>(_0x4c9826,_0x3ec82b)=>_0x276989(_0x4c9826,_0x3ec82b,_0x2b7b40);exports[_0x1a3ccb(0x2e0)]=class extends a[_0x1a3ccb(0x2da)]{constructor(_0x5a190a,_0x26067a,_0x466bc5){const _0x220fc4=_0x1a3ccb;super(),this[_0x220fc4(0x192)]=_0x5a190a,this['_httpService']=_0x26067a,this['_configService']=_0x466bc5;}async[_0x1a3ccb(0x202)](_0x686dfa,_0x4f7491,_0x1b5050,..._0x76b3b1){const _0x1e64e1=_0x1a3ccb;var _0x28802b,_0x4dd2cb,_0x300c35,_0xfe5697;const _0x4b58be=this[_0x1e64e1(0x192)][_0x1e64e1(0x355)]();if(!_0x4b58be)throw new Error(_0x1e64e1(0x13e));const _0xf1249e=((_0x28802b=this[_0x1e64e1(0x1ce)][_0x1e64e1(0x395)](u[_0x1e64e1(0x347)]))!=null?_0x28802b:u[_0x1e64e1(0x23e)])+'/'+_0x686dfa+_0x1e64e1(0x2d2)+_0x4f7491,_0x41a239=new URL(window[_0x1e64e1(0x165)]['href']),_0x290fd6={'scriptId':_0x686dfa,'runId':(_0x4dd2cb=_0x41a239[_0x1e64e1(0x2a2)][_0x1e64e1(0x153)](_0x1e64e1(0x266)))!=null?_0x4dd2cb:'','function':_0x4f7491,'unitId':_0x4b58be[_0x1e64e1(0x2dd)](),'argsOfFunction':JSON['stringify'](_0x76b3b1),'invokeId':(_0x300c35=_0x1b5050[_0x1e64e1(0x188)])!=null?_0x300c35:'','executionId':(_0xfe5697=_0x1b5050['executionId'])!=null?_0xfe5697:''};try{const _0x162b0c=await this[_0x1e64e1(0x1ab)]['post'](_0xf1249e,{'body':_0x290fd6});return _0x162b0c['body'][_0x1e64e1(0x13a)]&&_0x162b0c['body'][_0x1e64e1(0x13a)][_0x1e64e1(0x32a)]!==V['OK']?_0x1e64e1(0x386):_0x162b0c[_0x1e64e1(0x36d)][_0x1e64e1(0x2f0)];}catch{return _0x1e64e1(0x386);}}},exports[_0x1a3ccb(0x2e0)]=hs([Se(0x0,a[_0x1a3ccb(0x15f)]),Se(0x1,a[_0x1a3ccb(0x204)](G['HTTPService'])),Se(0x2,a[_0x1a3ccb(0x28a)])],exports[_0x1a3ccb(0x2e0)]);const Ae=0x7530,Pe=_0x1a3ccb(0x385);class us extends a[_0x1a3ccb(0x2da)]{constructor(){const _0x1626ae=_0x1a3ccb;super(),_(this,'_id',a[_0x1626ae(0x28d)]()),_(this,_0x1626ae(0x27f),new Set()),_(this,_0x1626ae(0x144),new Map()),_(this,_0x1626ae(0x2d8),null),_(this,_0x1626ae(0x33b),new Map()),_(this,_0x1626ae(0x2bf),new Map()),this['_init']();}['dispose'](){const _0x208dbb=_0x1a3ccb;super[_0x208dbb(0x39f)](),this[_0x208dbb(0x33b)][_0x208dbb(0x32f)]((_0x10bd02,_0x4afd6e)=>this[_0x208dbb(0x115)](_0x4afd6e)),this[_0x208dbb(0x2d8)]&&window['clearInterval'](this[_0x208dbb(0x2d8)]);}['getUnitStatus$'](_0xd6440e){const _0x5b7b74=_0x1a3ccb;return this[_0x5b7b74(0x305)](_0xd6440e)['pipe'](I['distinctUntilChanged']());}[_0x1a3ccb(0x2c4)](_0x396f38){const _0x3a3ff5=_0x1a3ccb;this[_0x3a3ff5(0x27f)][_0x3a3ff5(0x12e)]===0x0&&this[_0x3a3ff5(0x2e2)](),this[_0x3a3ff5(0x27f)]['add'](_0x396f38),this[_0x3a3ff5(0x264)]({'type':0x0,'memberID':this[_0x3a3ff5(0x162)],'unitIDs':[_0x396f38],'isForwarded':!0x1});}[_0x1a3ccb(0x131)](_0x7aeb18){const _0x1802a=_0x1a3ccb;this[_0x1802a(0x27f)][_0x1802a(0x2cc)](_0x7aeb18),this['_selfUnitIDs'][_0x1802a(0x12e)]===0x0&&this[_0x1802a(0x2d8)]&&window[_0x1802a(0x1d2)](this[_0x1802a(0x2d8)]);}[_0x1a3ccb(0x358)](){const _0xe00061=_0x1a3ccb;this[_0xe00061(0x3a3)](a['toDisposable'](I[_0xe00061(0x141)](window,_0xe00061(0x1a4))[_0xe00061(0x35c)](_0x4c2f91=>{const _0x58e325=_0xe00061;if(_0x4c2f91[_0x58e325(0x24c)]!==Pe||!_0x4c2f91[_0x58e325(0x14c)])return;const _0x190289=JSON[_0x58e325(0x356)](_0x4c2f91[_0x58e325(0x14c)]);this[_0x58e325(0x114)](_0x190289);}))),window['addEventListener'](_0xe00061(0x231),()=>this[_0xe00061(0x264)]({'type':0x1,'memberID':this[_0xe00061(0x162)],'unitIDs':Array[_0xe00061(0x33f)](this[_0xe00061(0x27f)])}));}['_handleEvent'](_0x245275){const _0xd9f08=_0x1a3ccb;switch(_0x245275['type']){case 0x0:this['_handleJoinEvent'](_0x245275);break;case 0x1:this[_0xd9f08(0x21d)](_0x245275);break;case 0x2:this['_handleHeartbeatEvent'](_0x245275);break;}}['_handleJoinEvent'](_0x5f309a){const _0x208ba3=_0x1a3ccb,{unitIDs:_0x2dc263,memberID:_0x19d46f,isForwarded:_0x4846e4}=_0x5f309a;_0x2dc263[_0x208ba3(0x32f)](_0x25b7ce=>{const _0x4ba00c=_0x208ba3;if(!_0x4846e4&&this[_0x4ba00c(0x144)][_0x4ba00c(0x2cd)](_0x25b7ce)&&this['_ensureSubject'](_0x25b7ce)[_0x4ba00c(0x38d)](u[_0x4ba00c(0x17d)][_0x4ba00c(0x225)]),!this[_0x4ba00c(0x144)][_0x4ba00c(0x2cd)](_0x25b7ce)||!this[_0x4ba00c(0x144)][_0x4ba00c(0x153)](_0x25b7ce)[_0x4ba00c(0x2cd)](_0x19d46f)){const _0x335d33=this['_unitOnClients'][_0x4ba00c(0x153)](_0x25b7ce)||new Set();_0x335d33['add'](_0x19d46f),this['_unitOnClients'][_0x4ba00c(0x163)](_0x25b7ce,_0x335d33),this[_0x4ba00c(0x354)](_0x19d46f);}}),_0x4846e4||this[_0x208ba3(0x264)]({'type':0x0,'memberID':this[_0x208ba3(0x162)],'unitIDs':[...this[_0x208ba3(0x27f)]],'isForwarded':!0x0});}[_0x1a3ccb(0x354)](_0x512d0f){const _0x93c9f=_0x1a3ccb;this[_0x93c9f(0x115)](_0x512d0f);const _0x41bb48=window['setTimeout'](()=>{const _0x5413f3=_0x93c9f;this[_0x5413f3(0x144)]['forEach'](_0x2d1b63=>{const _0x42ee02=_0x5413f3;_0x2d1b63[_0x42ee02(0x2cc)](_0x512d0f);});},Ae*0x2);this[_0x93c9f(0x33b)][_0x93c9f(0x163)](_0x512d0f,_0x41bb48);}[_0x1a3ccb(0x115)](_0x5f2694){const _0x503285=_0x1a3ccb;if(this[_0x503285(0x33b)][_0x503285(0x2cd)](_0x5f2694)){const _0x4b0143=this[_0x503285(0x33b)][_0x503285(0x153)](_0x5f2694);_0x4b0143&&window[_0x503285(0x274)](_0x4b0143),this['_clearOtherTimers']['set'](_0x5f2694,null);}}[_0x1a3ccb(0x21d)](_0x3a0b4b){const _0x266dc1=_0x1a3ccb,{memberID:_0x33bc8d,unitIDs:_0xfb6bc5}=_0x3a0b4b;_0xfb6bc5['forEach'](_0xb7c1d3=>{const _0xb1b255=_0x1c99;var _0x147675;const _0x26020a=this['_unitOnClients'][_0xb1b255(0x153)](_0xb7c1d3);_0x26020a&&(_0x26020a[_0xb1b255(0x2cc)](_0x33bc8d),(_0x147675=this['_ensureSubject'](_0xb7c1d3))==null||_0x147675[_0xb1b255(0x38d)](_0x26020a[_0xb1b255(0x12e)]===0x0?u[_0xb1b255(0x17d)][_0xb1b255(0x2cb)]:u[_0xb1b255(0x17d)][_0xb1b255(0x225)]));}),this[_0x266dc1(0x115)](_0x33bc8d);}[_0x1a3ccb(0x3a0)](_0x35a56e){const _0x1a375e=_0x1a3ccb;this[_0x1a375e(0x354)](_0x35a56e[_0x1a375e(0x1aa)]);}[_0x1a3ccb(0x264)](_0x3c2771){const _0x3d17ca=_0x1a3ccb;localStorage[_0x3d17ca(0x30c)](Pe,JSON[_0x3d17ca(0x253)](_0x3c2771));}[_0x1a3ccb(0x2e2)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x53fb6a=_0x1c99;this[_0x53fb6a(0x264)]({'type':0x2,'memberID':this['_id']});},Ae);}[_0x1a3ccb(0x305)](_0x26225d){const _0x16ff07=_0x1a3ccb;return this[_0x16ff07(0x2bf)][_0x16ff07(0x2cd)](_0x26225d)||this['_unitStatus']['set'](_0x26225d,new I['BehaviorSubject'](u[_0x16ff07(0x17d)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x16ff07(0x153)](_0x26225d);}}exports[_0x1a3ccb(0x37a)]=pe,exports[_0x1a3ccb(0x23d)]=Be,exports[_0x1a3ccb(0x1ca)]=us,exports[_0x1a3ccb(0x278)]=Fe;
|