@univerjs-pro/collaboration-client-ui 0.10.10-nightly.202510180327 → 0.10.11
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 _0xf8a214=_0x3a58;(function(_0x7d46b1,_0x376645){const _0x29ea44=_0x3a58,_0x584744=_0x7d46b1();while(!![]){try{const _0x10afb4=parseInt(_0x29ea44(0x224))/0x1*(-parseInt(_0x29ea44(0x26a))/0x2)+-parseInt(_0x29ea44(0x2af))/0x3+-parseInt(_0x29ea44(0x212))/0x4*(parseInt(_0x29ea44(0x403))/0x5)+parseInt(_0x29ea44(0x1d1))/0x6+parseInt(_0x29ea44(0x2b2))/0x7*(-parseInt(_0x29ea44(0x309))/0x8)+parseInt(_0x29ea44(0x2ca))/0x9*(parseInt(_0x29ea44(0x3e5))/0xa)+parseInt(_0x29ea44(0x1a6))/0xb*(parseInt(_0x29ea44(0x1bb))/0xc);if(_0x10afb4===_0x376645)break;else _0x584744['push'](_0x584744['shift']());}catch(_0x26d3f2){_0x584744['push'](_0x584744['shift']());}}}(_0x55eb,0xeb316));var Ge=Object['defineProperty'],Xe=(_0x50d416,_0x3671df,_0x5be88)=>_0x3671df in _0x50d416?Ge(_0x50d416,_0x3671df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5be88}):_0x50d416[_0x3671df]=_0x5be88,_=(_0x2bcfeb,_0x598652,_0x2f12f8)=>Xe(_0x2bcfeb,typeof _0x598652!='symbol'?_0x598652+'':_0x598652,_0x2f12f8);Object[_0xf8a214(0x1d3)](exports,Symbol[_0xf8a214(0x282)],{'value':_0xf8a214(0x226)});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(){const _0x2c7191=_0xf8a214;return O=Object['assign']||function(_0x2ffbd5){const _0x572a1f=_0x3a58;for(var _0x4d1ba7,_0x7dde3e=0x1,_0x489b3d=arguments[_0x572a1f(0x3b4)];_0x7dde3e<_0x489b3d;_0x7dde3e++){_0x4d1ba7=arguments[_0x7dde3e];for(var _0x3e0309 in _0x4d1ba7)Object['prototype'][_0x572a1f(0x366)][_0x572a1f(0x383)](_0x4d1ba7,_0x3e0309)&&(_0x2ffbd5[_0x3e0309]=_0x4d1ba7[_0x3e0309]);}return _0x2ffbd5;},O[_0x2c7191(0x369)](this,arguments);},ze=function(_0x10050e,_0x1d2614){const _0x300a52=_0xf8a214;var _0x586209={};for(var _0x2af30f in _0x10050e)Object[_0x300a52(0x324)]['hasOwnProperty'][_0x300a52(0x383)](_0x10050e,_0x2af30f)&&_0x1d2614[_0x300a52(0x2f6)](_0x2af30f)<0x0&&(_0x586209[_0x2af30f]=_0x10050e[_0x2af30f]);if(_0x10050e!=null&&typeof Object[_0x300a52(0x3e1)]=='function'){for(var _0xda0436=0x0,_0x2af30f=Object[_0x300a52(0x3e1)](_0x10050e);_0xda0436<_0x2af30f[_0x300a52(0x3b4)];_0xda0436++)_0x1d2614['indexOf'](_0x2af30f[_0xda0436])<0x0&&Object[_0x300a52(0x324)][_0x300a52(0x2c8)][_0x300a52(0x383)](_0x10050e,_0x2af30f[_0xda0436])&&(_0x586209[_0x2af30f[_0xda0436]]=_0x10050e[_0x2af30f[_0xda0436]]);}return _0x586209;},pe=L[_0xf8a214(0x1f3)](function(_0x5df914,_0x288786){const _0xa911d2=_0xf8a214;var _0x1782c1=_0x5df914[_0xa911d2(0x1e1)],_0x4ffe05=_0x5df914['id'],_0x2e4a1a=_0x5df914[_0xa911d2(0x21b)],_0x34bd83=_0x5df914[_0xa911d2(0x154)],_0x19d68d=ze(_0x5df914,[_0xa911d2(0x1e1),'id',_0xa911d2(0x21b),_0xa911d2(0x154)]),_0x32ef8d=_0xa911d2(0x356)['concat'](_0x4ffe05,'\x20')[_0xa911d2(0x401)](_0x2e4a1a||'')[_0xa911d2(0x25f)](),_0x1d4b1d=L[_0xa911d2(0x3c1)]('_'['concat'](Qe()));return ye(_0x1782c1,''[_0xa911d2(0x401)](_0x4ffe05),{'defIds':_0x1782c1[_0xa911d2(0x2c5)],'idSuffix':_0x1d4b1d[_0xa911d2(0x3ad)]},O({'ref':_0x288786,'className':_0x32ef8d},_0x19d68d),_0x34bd83);});function ye(_0x194e12,_0x2c11a6,_0x2670cb,_0x588e42,_0x1970c6){const _0x55566c=_0xf8a214;return L['createElement'](_0x194e12[_0x55566c(0x27e)],O(O({'key':_0x2c11a6},Je(_0x194e12,_0x2670cb,_0x1970c6)),_0x588e42),(Ze(_0x194e12,_0x2670cb)[_0x55566c(0x3ed)]||[])[_0x55566c(0x39a)](function(_0x7699ba,_0x1a8e69){const _0x523cf3=_0x55566c;return ye(_0x7699ba,''['concat'](_0x2c11a6,'-')[_0x523cf3(0x401)](_0x194e12['tag'],'-')['concat'](_0x1a8e69),_0x2670cb,void 0x0,_0x1970c6);}));}function Je(_0x372539,_0x13bfd1,_0x104d63){const _0x542b4f=_0xf8a214;var _0x571d5f=O({},_0x372539[_0x542b4f(0x32d)]);_0x104d63!=null&&_0x104d63['colorChannel1']&&_0x571d5f[_0x542b4f(0x36b)]===_0x542b4f(0x3c8)&&(_0x571d5f[_0x542b4f(0x36b)]=_0x104d63[_0x542b4f(0x3c8)]),_0x372539['tag']===_0x542b4f(0x157)&&_0x571d5f['id']&&(_0x571d5f['id']=_0x571d5f['id']+_0x13bfd1['idSuffix']),Object[_0x542b4f(0x350)](_0x571d5f)[_0x542b4f(0x1f2)](function(_0x22d543){const _0x593f63=_0x542b4f;var _0x5c39b9=_0x22d543[0x0],_0x5c25cc=_0x22d543[0x1];_0x5c39b9===_0x593f63(0x157)&&typeof _0x5c25cc==_0x593f63(0x25e)&&(_0x571d5f[_0x5c39b9]=_0x5c25cc[_0x593f63(0x29f)](/url\(#(.*)\)/,_0x593f63(0x33b)[_0x593f63(0x401)](_0x13bfd1[_0x593f63(0x370)],')')));});var _0x3ec379=_0x13bfd1['defIds'];return!_0x3ec379||_0x3ec379[_0x542b4f(0x3b4)]===0x0||(_0x372539[_0x542b4f(0x27e)]===_0x542b4f(0x371)&&_0x571d5f[_0x542b4f(0x3b6)]&&(_0x571d5f[_0x542b4f(0x3b6)]=_0x571d5f['xlink:href']+_0x13bfd1[_0x542b4f(0x370)]),Object[_0x542b4f(0x350)](_0x571d5f)[_0x542b4f(0x1f2)](function(_0x2f6b08){const _0x467cc7=_0x542b4f;var _0x3f8871=_0x2f6b08[0x0],_0xab251e=_0x2f6b08[0x1];typeof _0xab251e==_0x467cc7(0x25e)&&(_0x571d5f[_0x3f8871]=_0xab251e[_0x467cc7(0x29f)](/url\(#(.*)\)/,_0x467cc7(0x33b)['concat'](_0x13bfd1[_0x467cc7(0x370)],')')));})),_0x571d5f;}function Ze(_0x19a10f,_0x7679c5){const _0x2328ea=_0xf8a214;var _0x370f74,_0x11e498=_0x7679c5[_0x2328ea(0x2c5)];return!_0x11e498||_0x11e498['length']===0x0?_0x19a10f:_0x19a10f[_0x2328ea(0x27e)]==='defs'&&(!((_0x370f74=_0x19a10f[_0x2328ea(0x3ed)])===null||_0x370f74===void 0x0)&&_0x370f74['length'])?O(O({},_0x19a10f),{'children':_0x19a10f[_0x2328ea(0x3ed)][_0x2328ea(0x39a)](function(_0x184a1a){const _0x4b45cd=_0x2328ea;return typeof _0x184a1a[_0x4b45cd(0x32d)]['id']==_0x4b45cd(0x25e)&&_0x11e498&&_0x11e498[_0x4b45cd(0x40d)](_0x184a1a[_0x4b45cd(0x32d)]['id'])?O(O({},_0x184a1a),{'attrs':O(O({},_0x184a1a[_0x4b45cd(0x32d)]),{'id':_0x184a1a[_0x4b45cd(0x32d)]['id']+_0x7679c5[_0x4b45cd(0x370)]})}):_0x184a1a;})}):_0x19a10f;}function Qe(){const _0x1ffb39=_0xf8a214;return Math[_0x1ffb39(0x274)]()[_0x1ffb39(0x3b5)](0x24)[_0x1ffb39(0x359)](0x2,0x8);}pe['displayName']=_0xf8a214(0x24a);var et={'tag':_0xf8a214(0x303),'attrs':{'xmlns':_0xf8a214(0x1b5),'fill':'none','viewBox':_0xf8a214(0x1d2),'width':_0xf8a214(0x227),'height':_0xf8a214(0x227)},'children':[{'tag':'g','attrs':{'clipPath':_0xf8a214(0x17e)},'children':[{'tag':'path','attrs':{'stroke':_0xf8a214(0x320),'d':_0xf8a214(0x2d1),'strokeLinecap':_0xf8a214(0x2fa),'strokeLinejoin':_0xf8a214(0x2fa),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xf8a214(0x33e),'attrs':{'id':_0xf8a214(0x241)},'children':[{'tag':_0xf8a214(0x202),'attrs':{'fill':_0xf8a214(0x22d),'d':_0xf8a214(0x37e)}}]}]}],'defIds':[_0xf8a214(0x241)]},xe=L[_0xf8a214(0x1f3)](function(_0x5b9dac,_0x37a9c6){const _0x297dc9=_0xf8a214;return L[_0x297dc9(0x211)](pe,Object[_0x297dc9(0x3e9)]({},_0x5b9dac,{'id':'off-line-icon','ref':_0x37a9c6,'icon':et}));});xe[_0xf8a214(0x228)]=_0xf8a214(0x16c);var tt={'tag':_0xf8a214(0x303),'attrs':{'xmlns':_0xf8a214(0x1b5),'fill':'none','viewBox':_0xf8a214(0x1ed),'width':'1em','height':_0xf8a214(0x227)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xf8a214(0x202),'attrs':{'stroke':_0xf8a214(0x320),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xf8a214(0x2fa),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xf8a214(0x279),'attrs':{},'children':[{'tag':_0xf8a214(0x33e),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xf8a214(0x202),'attrs':{'fill':_0xf8a214(0x22d),'d':_0xf8a214(0x37e),'transform':_0xf8a214(0x1ad)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=L[_0xf8a214(0x1f3)](function(_0x5371d3,_0x41b233){const _0x403e22=_0xf8a214;return L['createElement'](pe,Object[_0x403e22(0x3e9)]({},_0x5371d3,{'id':_0x403e22(0x23c),'ref':_0x41b233,'icon':tt}));});$e['displayName']='OnLineIcon';function st(_0x24521e){const _0x50ef14=_0xf8a214;switch(_0x24521e){case u['CollaborationStatus']['OFFLINE']:return _0x50ef14(0x388);case u[_0x50ef14(0x232)][_0x50ef14(0x1d9)]:return _0x50ef14(0x215);case u[_0x50ef14(0x232)][_0x50ef14(0x165)]:return _0x50ef14(0x3be);case u[_0x50ef14(0x232)]['NOT_COLLAB']:return'collabStatus.notCollab';case u['CollaborationStatus']['AWAITING']:case u[_0x50ef14(0x232)][_0x50ef14(0x16b)]:return'collabStatus.syncing';case u[_0x50ef14(0x232)][_0x50ef14(0x174)]:case u[_0x50ef14(0x232)][_0x50ef14(0x353)]:return _0x50ef14(0x177);}}function it(_0xa6160a){const _0x243dac=_0xf8a214,{status$:_0x232603}=_0xa6160a,_0x279aee=R['useObservable'](_0x232603,u['CollaborationStatus'][_0x243dac(0x172)]),_0x50c1b0=R[_0x243dac(0x25b)](a[_0x243dac(0x19f)]),_0x42f72a=R[_0x243dac(0x25b)](u[_0x243dac(0x35c)]),_0x51de6d=_0x279aee!==u[_0x243dac(0x232)]['OFFLINE'],_0x44e22e=_0x50c1b0['t'](st(_0x279aee)),_0x4df435=_0x51de6d?P[_0x243dac(0x3f2)]($e,{}):P['jsx'](xe,{}),_0x2c385f=L[_0x243dac(0x2cc)](()=>{const _0x5a9198=_0x243dac;_0x51de6d||_0x42f72a[_0x5a9198(0x1b8)]();},[_0x51de6d,_0x42f72a]);function _0x308e32(){const _0x202ab7=_0x243dac;return P[_0x202ab7(0x20e)](_0x202ab7(0x3cc),{'className':_0x202ab7(0x290),'onClick':_0x2c385f,'children':[P[_0x202ab7(0x3f2)](_0x202ab7(0x3cc),{'className':T[_0x202ab7(0x2fb)](_0x202ab7(0x2e9),{'univer-text-green-500':_0x51de6d,'univer-text-red-500':!_0x51de6d}),'children':_0x4df435}),P[_0x202ab7(0x3f2)](_0x202ab7(0x3cc),{'className':_0x202ab7(0x20a),'children':_0x44e22e})]});}return _0x51de6d?_0x308e32():P[_0x243dac(0x3f2)](T[_0x243dac(0x355)],{'title':_0x50c1b0['t'](_0x243dac(0x3c6)),'children':_0x308e32()});}var nt=Object[_0xf8a214(0x3f6)],rt=(_0x1f3351,_0x5ba179,_0x24405d,_0x15ab07)=>{const _0x1b82e1=_0xf8a214;for(var _0x30e1aa=_0x15ab07>0x1?void 0x0:_0x15ab07?nt(_0x5ba179,_0x24405d):_0x5ba179,_0x4a918b=_0x1f3351[_0x1b82e1(0x3b4)]-0x1,_0x5547a2;_0x4a918b>=0x0;_0x4a918b--)(_0x5547a2=_0x1f3351[_0x4a918b])&&(_0x30e1aa=_0x5547a2(_0x30e1aa)||_0x30e1aa);return _0x30e1aa;},q=(_0x2298e5,_0x109dc7)=>(_0x32b3d2,_0xacc21e)=>_0x109dc7(_0x32b3d2,_0xacc21e,_0x2298e5);exports[_0xf8a214(0x3d9)]=class extends a[_0xf8a214(0x296)]{constructor(_0x106774,_0x58170e,_0x2dccb4,_0x486d77){const _0x19dbe0=_0xf8a214;super(),_(this,_0x19dbe0(0x328),new I[(_0x19dbe0(0x1e3))](u[_0x19dbe0(0x232)][_0x19dbe0(0x172)])),(this[_0x19dbe0(0x314)]=_0x106774,this['_injector']=_0x58170e,this[_0x19dbe0(0x1de)]=_0x2dccb4,this[_0x19dbe0(0x1e2)]=_0x486d77,this['_initStatusComponent'](),this[_0x19dbe0(0x244)]());}['_initStatusListener'](){const _0x2b0710=_0xf8a214;this['disposeWithMe'](this[_0x2b0710(0x314)]['focused$']['pipe'](I[_0x2b0710(0x1e4)](()=>{const _0x1a53b9=_0x2b0710,_0x448253=this['_univerInstanceService'][_0x1a53b9(0x322)]();return _0x448253?this['_collaborationController']['getCollabEntity$'](_0x448253[_0x1a53b9(0x365)]()):I['of'](null);}),I[_0x2b0710(0x1e4)](_0x4f0a1b=>_0x4f0a1b?_0x4f0a1b[_0x2b0710(0x289)]:I['of'](u['CollaborationStatus'][_0x2b0710(0x172)])))[_0x2b0710(0x1dd)](_0x81a59d=>{this['_status$']['next'](_0x81a59d);}));}[_0xf8a214(0x203)](){const _0x440f57=_0xf8a214;this['disposeWithMe'](this[_0x440f57(0x1e2)][_0x440f57(0x40c)](R['BuiltInUIPart'][_0x440f57(0x2d6)],()=>R['connectInjector'](ot({'status$':this['_status$'][_0x440f57(0x1c6)]()}),this[_0x440f57(0x3c4)])));}},exports[_0xf8a214(0x3d9)]=rt([q(0x0,a['IUniverInstanceService']),q(0x1,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),q(0x2,a[_0xf8a214(0x31a)](u[_0xf8a214(0x2c1)])),q(0x3,R[_0xf8a214(0x2b0)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x3495af){const {status$:_0xb3f481}=_0x3495af;return function(){const _0x33052e=_0x3a58;return P[_0x33052e(0x3f2)](it,{'status$':_0xb3f481});};}const Te=a[_0xf8a214(0x387)](_0xf8a214(0x21f));var at=Object[_0xf8a214(0x3f6)],ct=(_0x24d925,_0x4adc5f,_0x212d28,_0x5d41a1)=>{const _0x1510a8=_0xf8a214;for(var _0xa78938=_0x5d41a1>0x1?void 0x0:_0x5d41a1?at(_0x4adc5f,_0x212d28):_0x4adc5f,_0x108ac8=_0x24d925[_0x1510a8(0x3b4)]-0x1,_0xde0f89;_0x108ac8>=0x0;_0x108ac8--)(_0xde0f89=_0x24d925[_0x108ac8])&&(_0xa78938=_0xde0f89(_0xa78938)||_0xa78938);return _0xa78938;},Y=(_0x5a95e6,_0x5d8b15)=>(_0x11a1d3,_0x20df06)=>_0x5d8b15(_0x11a1d3,_0x20df06,_0x5a95e6);exports[_0xf8a214(0x2b6)]=class extends a[_0xf8a214(0x18e)]{constructor(_0x31c24c,_0x1bbd0c,_0x2365f9,_0x1eecc2,_0x23c4ce){const _0x2658d5=_0xf8a214;super(),this['_urlService']=_0x31c24c,this[_0x2658d5(0x231)]=_0x1bbd0c,this[_0x2658d5(0x265)]=_0x2365f9,this['_dataLoaderService']=_0x1eecc2,_0x23c4ce?_0x23c4ce==null||_0x23c4ce[_0x2658d5(0x19b)]()['then'](()=>this['_init']()):(this[_0x2658d5(0x231)][_0x2658d5(0x2d5)](_0x2658d5(0x3a1),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2658d5(0x3ff)]());}async[_0xf8a214(0x3ff)](){const _0x329e23=_0xf8a214,_0x2c90b2=this[_0x329e23(0x17a)][_0x329e23(0x24e)](_0x329e23(0x26c)),_0x3d8384=this[_0x329e23(0x17a)][_0x329e23(0x24e)](_0x329e23(0x351)),_0xdf2ceb=this['_urlService'][_0x329e23(0x24e)](_0x329e23(0x382));if(!_0x2c90b2||!_0x3d8384){this[_0x329e23(0x231)][_0x329e23(0x2d5)](_0x329e23(0x3a1),_0x329e23(0x188));return;}const _0x26d715=await this['_dataLoaderService'][_0x329e23(0x2f5)](_0x2c90b2,Number(_0x3d8384),_0xdf2ceb);_0x26d715&&_0x26d715 instanceof a[_0x329e23(0x1c5)]&&this[_0x329e23(0x2ed)](_0x26d715);}async['_setupSubUnitSync'](_0x3a6e46){const _0x249280=_0xf8a214;await this[_0x249280(0x275)](_0x3a6e46),_0x3a6e46[_0x249280(0x31c)][_0x249280(0x141)](I['takeUntil'](this[_0x249280(0x186)]))['subscribe'](_0x5ea4d7=>{const _0xa1cf2f=_0x249280;_0x5ea4d7&&this[_0xa1cf2f(0x3d0)](_0x5ea4d7);}),this['_urlService']['urlChange$'][_0x249280(0x141)](I[_0x249280(0x36f)](this[_0x249280(0x186)]))[_0x249280(0x1dd)](()=>this['_updateSubUnitFromURLParams'](_0x3a6e46));}['_updateURLWithCurrentState'](_0x47da34,_0x310790=!0x1){const _0x32d47a=_0xf8a214,_0x371bba=this['_urlService']['getParam'](_0x32d47a(0x382));_0x47da34[_0x32d47a(0x3bd)]()!==_0x371bba&&this[_0x32d47a(0x17a)][_0x32d47a(0x27f)](_0x32d47a(0x382),_0x47da34[_0x32d47a(0x3bd)](),_0x310790);}async['_updateSubUnitFromURLParams'](_0x30899b){const _0x33d665=_0xf8a214;var _0x39a5c3;const _0xeda943=this[_0x33d665(0x17a)]['getParam'](_0x33d665(0x382));if(!_0xeda943||!_0x30899b[_0x33d665(0x2a6)](_0xeda943)){const _0x4eced3=_0x30899b[_0x33d665(0x32a)]()[0x0],_0x1397d2=_0x30899b['getSheetBySheetId'](_0x4eced3);if(!_0x1397d2)return;this[_0x33d665(0x3d0)](_0x1397d2,!0x0),await this[_0x33d665(0x265)][_0x33d665(0x2c7)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x30899b[_0x33d665(0x365)](),'subUnitId':_0x4eced3});return;}((_0x39a5c3=_0x30899b[_0x33d665(0x345)]())==null?void 0x0:_0x39a5c3[_0x33d665(0x3bd)]())!==_0xeda943&&await this[_0x33d665(0x265)][_0x33d665(0x2c7)](v[_0x33d665(0x281)]['id'],{'unitId':_0x30899b[_0x33d665(0x365)](),'subUnitId':_0xeda943});}},exports[_0xf8a214(0x2b6)]=ct([Y(0x0,Te),Y(0x1,a[_0xf8a214(0x375)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0xf8a214(0x31a)](u[_0xf8a214(0x190)])),Y(0x4,a[_0xf8a214(0x173)](Ke[_0xf8a214(0x3bb)]))],exports[_0xf8a214(0x2b6)]);var lt=Object[_0xf8a214(0x3f6)],_t=(_0x101a8e,_0x774349,_0x574524,_0x35271c)=>{const _0x5ee153=_0xf8a214;for(var _0x5a0564=_0x35271c>0x1?void 0x0:_0x35271c?lt(_0x774349,_0x574524):_0x774349,_0x1c3ecf=_0x101a8e[_0x5ee153(0x3b4)]-0x1,_0x58eddb;_0x1c3ecf>=0x0;_0x1c3ecf--)(_0x58eddb=_0x101a8e[_0x1c3ecf])&&(_0x5a0564=_0x58eddb(_0x5a0564)||_0x5a0564);return _0x5a0564;},be=(_0x177f1e,_0x19d527)=>(_0x3d8aac,_0x4484b6)=>_0x19d527(_0x3d8aac,_0x4484b6,_0x177f1e);let fe=class extends a[_0xf8a214(0x18e)]{constructor(_0x5f1c0a,_0x1f3cdf){const _0x46b4dd=_0xf8a214;super(),this[_0x46b4dd(0x3d6)]=_0x5f1c0a,this['_imageIoService']=_0x1f3cdf,this[_0x46b4dd(0x3ff)]();}[_0xf8a214(0x3ff)](){const _0x4bfb9c=_0xf8a214,_0x307e25=this;this[_0x4bfb9c(0x297)](this['_docClipboardService'][_0x4bfb9c(0x1ff)]({'onBeforePasteImage':async _0x42e6a3=>{const _0x3758b4=_0x4bfb9c,_0x3b53c9=await _0x307e25['_imageIoService'][_0x3758b4(0x163)](_0x42e6a3);return _0x3b53c9?{'source':_0x3b53c9[_0x3758b4(0x300)],'imageSourceType':_0x3b53c9['imageSourceType']}:null;}}));}};fe=_t([be(0x0,p[_0xf8a214(0x2e7)]),be(0x1,qe[_0xf8a214(0x37a)])],fe);const De=['purple.300',_0xf8a214(0x31e),_0xf8a214(0x40a),_0xf8a214(0x23e),_0xf8a214(0x2b8),_0xf8a214(0x187)];class Oe extends a[_0xf8a214(0x296)]{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0xf8a214(0x36c)](_0x3ed424){const _0x4ab728=_0xf8a214;if(this[_0x4ab728(0x390)][_0x4ab728(0x342)](_0x3ed424))return this[_0x4ab728(0x390)][_0x4ab728(0x1d8)](_0x3ed424);const _0x3a8723=De[this['_colorIndex']];return this['_colorIndex']=(this[_0x4ab728(0x3ce)]+0x1)%De[_0x4ab728(0x3b4)],this[_0x4ab728(0x390)][_0x4ab728(0x3b2)](_0x3ed424,_0x3a8723),_0x3a8723;}}function Be(_0xdd374a){const _0x3af474=_0xf8a214;let _0x187c6e='';for(const _0x2633bc of _0xdd374a){const {startOffset:_0x44cc61,endOffset:_0x182d6e,isActive:_0x1db6e3,rangeType:_0x437b7f,segmentId:_0xf4cb81,segmentPage:_0x196e68}=_0x2633bc;_0x187c6e[_0x3af474(0x3b4)]&&(_0x187c6e+=','),_0x187c6e+=_0x44cc61+':'+_0x182d6e+':'+(_0x1db6e3?'1':'0')+':'+_0x437b7f+':'+_0xf4cb81+':'+_0x196e68;}return _0x187c6e;}function ht(_0x27c65e){const _0x48ea24=_0xf8a214,_0x488e7f=_0x27c65e[_0x48ea24(0x179)](','),_0x2e3d80=[];for(const _0x348758 of _0x488e7f){const [_0x29120d,_0x49482b,_0x4b8a58,_0x2b7e93,_0x245346,_0x211612]=_0x348758['split'](':');_0x2e3d80['push']({'startOffset':Number(_0x29120d),'endOffset':Number(_0x49482b),'collapsed':_0x29120d===_0x49482b,'isActive':_0x4b8a58==='1','rangeType':_0x2b7e93===a[_0x48ea24(0x2c3)]['TEXT']?a[_0x48ea24(0x2c3)][_0x48ea24(0x395)]:a['DOC_RANGE_TYPE'][_0x48ea24(0x280)],'segmentId':typeof _0x245346==_0x48ea24(0x25e)?String(_0x245346):'','segmentPage':Number(_0x211612!=null?_0x211612:-0x1)});}return _0x2e3d80[_0x48ea24(0x34a)](_0x24e96b=>_0x24e96b['isActive'])||(_0x2e3d80[0x0]['isActive']=!0x0),_0x2e3d80;}class Re extends a[_0xf8a214(0x18e)]{constructor(){const _0x529633=_0xf8a214;super(...arguments),_(this,'_collabCursorState$',new I[(_0x529633(0x1e3))](null)),_(this,_0x529633(0x214),this[_0x529633(0x3d3)]['asObservable']());}[_0xf8a214(0x2df)](_0x42597d){const _0x144c37=_0xf8a214,{unitID:_0xf78751,memberID:_0x147740,textRanges:_0x1fb0fa}=_0x42597d,_0x508705=Be(_0x1fb0fa);if(_0x508705==='')return;const _0xac88f2={'unitID':_0xf78751,'memberID':_0x147740,'selection':_0x508705};this[_0x144c37(0x3d3)][_0x144c37(0x2cd)](_0xac88f2);}}var ut=Object[_0xf8a214(0x3f6)],It=(_0xdadf15,_0x1b47f5,_0x20631f,_0x11dfa2)=>{const _0x280b65=_0xf8a214;for(var _0x343914=_0x11dfa2>0x1?void 0x0:_0x11dfa2?ut(_0x1b47f5,_0x20631f):_0x1b47f5,_0x3b1546=_0xdadf15[_0x280b65(0x3b4)]-0x1,_0x1d1f11;_0x3b1546>=0x0;_0x3b1546--)(_0x1d1f11=_0xdadf15[_0x3b1546])&&(_0x343914=_0x1d1f11(_0x343914)||_0x343914);return _0x343914;},M=(_0x3f8322,_0x5abe53)=>(_0x5221a1,_0x433e08)=>_0x5abe53(_0x5221a1,_0x433e08,_0x3f8322);const dt=0x12c,St=0x64;let me=class extends a[_0xf8a214(0x18e)]{constructor(_0x26775d,_0x220af6,_0x32fe0d,_0x5136ce,_0x2c5a0e,_0xdb5003,_0x108d35,_0x327733,_0x13a0cf){const _0x28f3ce=_0xf8a214;super(),_(this,_0x28f3ce(0x3f4),!0x1),_(this,_0x28f3ce(0x3ff),!0x1),_(this,_0x28f3ce(0x3e7),new I['BehaviorSubject'](new Map())),_(this,_0x28f3ce(0x36e),this[_0x28f3ce(0x3e7)]['asObservable']()),_(this,_0x28f3ce(0x23d),new I[(_0x28f3ce(0x1e3))]([])),_(this,_0x28f3ce(0x185),this[_0x28f3ce(0x23d)][_0x28f3ce(0x141)](I[_0x28f3ce(0x193)](dt))),_(this,_0x28f3ce(0x1b4),a['debounce'](_0x56d81d=>{const _0x1d0c38=_0x28f3ce,_0xc58666={'eventID':g[_0x1d0c38(0x3e2)][_0x1d0c38(0x405)],'data':{'unitID':this[_0x1d0c38(0x29a)],'memberID':this[_0x1d0c38(0x2a2)][_0x1d0c38(0x25c)](),'selection':Be(_0x56d81d)}};this['_session']['send'](_0xc58666,this['unitID']);},St)),(this[_0x28f3ce(0x29a)]=_0x26775d,this['_session']=_0x220af6,this[_0x28f3ce(0x3c4)]=_0x32fe0d,this[_0x28f3ce(0x1c7)]=_0x5136ce,this[_0x28f3ce(0x3b1)]=_0x2c5a0e,this['_syncEditingCollabCursorService']=_0xdb5003,this['_transformService']=_0x108d35,this['_univerInstanceService']=_0x327733,this[_0x28f3ce(0x265)]=_0x13a0cf);}get[_0xf8a214(0x344)](){const _0x32e904=_0xf8a214;return this['_cursorInfo$'][_0x32e904(0x207)]();}get[_0xf8a214(0x330)](){const _0x1b14d2=_0xf8a214;return this[_0x1b14d2(0x23d)][_0x1b14d2(0x207)]();}['dispose'](){const _0x385875=_0xf8a214;super['dispose'](),this['_cursorInfo$'][_0x385875(0x2cd)](new Map()),this[_0x385875(0x3e7)][_0x385875(0x15e)](),this['_roomMembers$'][_0x385875(0x2cd)]([]),this[_0x385875(0x23d)][_0x385875(0x15e)]();}[_0xf8a214(0x2cf)](){const _0x55cd96=_0xf8a214;this[_0x55cd96(0x3ff)]||(this[_0x55cd96(0x3ff)]=!0x0,this[_0x55cd96(0x2a2)][_0x55cd96(0x373)][_0x55cd96(0x141)](I[_0x55cd96(0x36f)](this[_0x55cd96(0x186)]))[_0x55cd96(0x1dd)](_0x3da50b=>{const _0x44894f=_0x55cd96;_0x3da50b===u['SessionStatus'][_0x44894f(0x1ef)]?this['_toggleOnline']():this[_0x44894f(0x30e)]();}),this[_0x55cd96(0x2a2)][_0x55cd96(0x1b9)][_0x55cd96(0x141)](I[_0x55cd96(0x36f)](this[_0x55cd96(0x186)]))[_0x55cd96(0x1dd)](_0x3e39f6=>{const _0xb2c160=_0x55cd96,_0x5c4a18=_0x3e39f6[_0xb2c160(0x1cd)];_0x5c4a18===g[_0xb2c160(0x3e2)][_0xb2c160(0x405)]&&this[_0xb2c160(0x1c9)](_0x3e39f6),_0x5c4a18===g[_0xb2c160(0x3e2)][_0xb2c160(0x151)]&&this[_0xb2c160(0x402)](_0x3e39f6);}),this[_0x55cd96(0x297)](this[_0x55cd96(0x265)][_0x55cd96(0x248)](_0x437562=>{const _0x3cf5b4=_0x55cd96,_0x19926f=_0x437562[_0x3cf5b4(0x18b)];_0x19926f!=null&&this['_online']&&_0x437562['id']===V[_0x3cf5b4(0x149)]['id']&&_0x19926f['unitId']===this[_0x3cf5b4(0x29a)]&&_0x19926f[_0x3cf5b4(0x1fa)]===!0x1&&_0x19926f[_0x3cf5b4(0x14f)][_0x3cf5b4(0x3b4)]>0x0&&this[_0x3cf5b4(0x1b4)](_0x19926f[_0x3cf5b4(0x14f)]);})),this[_0x55cd96(0x1fd)]['collabCursorState$'][_0x55cd96(0x141)](I[_0x55cd96(0x36f)](this[_0x55cd96(0x186)]))['subscribe'](_0x2fb89c=>{const _0x243cc6=_0x55cd96;if((_0x2fb89c==null?void 0x0:_0x2fb89c['unitID'])!==this['unitID'])return;const _0x323421={'eventID':g[_0x243cc6(0x3e2)][_0x243cc6(0x405)],'data':_0x2fb89c};this[_0x243cc6(0x1c9)](_0x323421);}),this[_0x55cd96(0x297)](this[_0x55cd96(0x265)][_0x55cd96(0x248)](_0x14cf3c=>{const _0x188ad8=_0x55cd96;if(_0x14cf3c[_0x188ad8(0x18b)]==null)return;const _0x33741c=_0x14cf3c[_0x188ad8(0x18b)];if(_0x14cf3c['id']!==V[_0x188ad8(0x250)]['id']||_0x33741c[_0x188ad8(0x22e)]!==this[_0x188ad8(0x29a)])return;const _0x59e53b={'id':_0x188ad8(0x14b),'params':_0x33741c},_0xcb2aca=this[_0x188ad8(0x344)];for(const [_0x10f972,_0x5e30c1]of _0xcb2aca){const _0x1f6811={'id':_0x188ad8(0x14b),'params':{'unitId':this[_0x188ad8(0x29a)],'actions':null,'textRanges':_0x5e30c1[_0x188ad8(0x14f)]}},_0x7593b=this[_0x188ad8(0x2d3)][_0x188ad8(0x2ae)](_0x59e53b,_0x1f6811,!0x1);if(g[_0x188ad8(0x3d8)](_0x7593b))throw _0x7593b[_0x188ad8(0x249)];_0xcb2aca[_0x188ad8(0x3b2)](_0x10f972,{..._0x5e30c1,'ranges':_0x7593b[_0x188ad8(0x28c)]['params'][_0x188ad8(0x3cb)]});}queueMicrotask(()=>{const _0x1f2857=_0x188ad8;this[_0x1f2857(0x3e7)][_0x1f2857(0x2cd)](_0xcb2aca);});})));}[_0xf8a214(0x1c9)](_0x24676d){const _0x842b6d=_0xf8a214;var _0x4485bd,_0x2d099b;const {memberID:_0x430ba9,selection:_0x3bf57e}=_0x24676d[_0x842b6d(0x2a3)],_0x355ee4=ht(_0x3bf57e),_0x10a15e=(_0x2d099b=(_0x4485bd=this[_0x842b6d(0x3b1)][_0x842b6d(0x237)](this[_0x842b6d(0x29a)],_0x430ba9))==null?void 0x0:_0x4485bd['name'])!=null?_0x2d099b:_0x842b6d(0x35a),_0x5c4f83={'color':this[_0x842b6d(0x1c7)][_0x842b6d(0x36c)](_0x430ba9),'name':_0x10a15e,'ranges':_0x355ee4},_0x458b5b=this[_0x842b6d(0x344)];_0x458b5b['set'](_0x430ba9,_0x5c4f83),this[_0x842b6d(0x3e7)][_0x842b6d(0x2cd)](_0x458b5b);}['_onCursorDelete'](_0x3bbde3){const _0x3cf71f=_0xf8a214,{memberID:_0x3f8331}=_0x3bbde3[_0x3cf71f(0x2a3)],_0x13efeb=this[_0x3cf71f(0x344)];_0x13efeb[_0x3cf71f(0x367)](_0x3f8331),this[_0x3cf71f(0x3e7)][_0x3cf71f(0x2cd)](_0x13efeb);}[_0xf8a214(0x3f7)](){const _0x3bbee8=_0xf8a214;var _0x3824ef;if(this[_0x3bbee8(0x3f4)]=!0x0,((_0x3824ef=this[_0x3bbee8(0x314)]['getFocusedUnit']())==null?void 0x0:_0x3824ef[_0x3bbee8(0x365)]())!==this[_0x3bbee8(0x29a)])return;const _0x44d566=this[_0x3bbee8(0x3c4)][_0x3bbee8(0x1d8)](V[_0x3bbee8(0x3c0)])[_0x3bbee8(0x3ae)]();Array[_0x3bbee8(0x3a6)](_0x44d566)&&_0x44d566[_0x3bbee8(0x3b4)]>0x0&&this[_0x3bbee8(0x1b4)](_0x44d566);}[_0xf8a214(0x30e)](){const _0x3942fa=_0xf8a214;this[_0x3942fa(0x3f4)]=!0x1;}};me=It([M(0x2,a[_0xf8a214(0x31a)](a['Injector'])),M(0x3,a[_0xf8a214(0x31a)](Oe)),M(0x4,a[_0xf8a214(0x31a)](u[_0xf8a214(0x258)])),M(0x5,a[_0xf8a214(0x31a)](Re)),M(0x6,g['ITransformService']),M(0x7,a['IUniverInstanceService']),M(0x8,a[_0xf8a214(0x39b)])],me);var ft=Object[_0xf8a214(0x3f6)],mt=(_0x5587df,_0x1008a7,_0x12e1e4,_0x412fbc)=>{for(var _0x2101d2=_0x412fbc>0x1?void 0x0:_0x412fbc?ft(_0x1008a7,_0x12e1e4):_0x1008a7,_0x3876af=_0x5587df['length']-0x1,_0x5c4e8a;_0x3876af>=0x0;_0x3876af--)(_0x5c4e8a=_0x5587df[_0x3876af])&&(_0x2101d2=_0x5c4e8a(_0x2101d2)||_0x2101d2);return _0x2101d2;},y=(_0xf39a80,_0x465b51)=>(_0x58cc16,_0x5db712)=>_0x465b51(_0x58cc16,_0x5db712,_0xf39a80);const vt=0x12c,gt=0x64,Et=()=>{let _0x54727b=[],_0x19c66b=!0x1;return _0x197dbc=>{const _0x5f6eaf=_0x3a58;_0x54727b[_0x5f6eaf(0x346)](_0x197dbc),_0x19c66b||(_0x19c66b=!0x0,setTimeout(()=>{const _0x42951e=_0x5f6eaf;_0x54727b[_0x42951e(0x1f2)](_0x58ad53=>_0x58ad53()),_0x54727b=[],_0x19c66b=!0x1;}));};};let ve=class extends a['RxDisposable']{constructor(_0x1635e4,_0x3f56bd,_0x4991f1,_0x552930,_0x1ab985,_0xf0f7f8,_0x4235ae,_0x4c2bdb){const _0x53693d=_0xf8a214;super(),_(this,_0x53693d(0x3f4),!0x1),_(this,_0x53693d(0x3ff),!0x1),_(this,_0x53693d(0x3e7),new I[(_0x53693d(0x1e3))](new Map())),_(this,_0x53693d(0x36e),this[_0x53693d(0x3e7)][_0x53693d(0x1c6)]()),_(this,_0x53693d(0x23d),new I[(_0x53693d(0x1e3))]([])),_(this,_0x53693d(0x185),this[_0x53693d(0x23d)][_0x53693d(0x141)](I['debounceTime'](vt))),_(this,_0x53693d(0x1b4),a[_0x53693d(0x321)]((_0x5989de,_0x4014e9)=>{const _0x2e620b=_0x53693d,_0x553a26={'eventID':g['CollaborationEvent'][_0x2e620b(0x405)],'data':{'unitID':this[_0x2e620b(0x29a)],'memberID':this[_0x2e620b(0x2a2)][_0x2e620b(0x25c)](),'selection':B['serializeRangeWithSheet'](_0x5989de,_0x4014e9['range'])}};this[_0x2e620b(0x2a2)][_0x2e620b(0x381)](_0x553a26,this['unitID']);},gt)),(this[_0x53693d(0x29a)]=_0x1635e4,this['_session']=_0x3f56bd,this[_0x53693d(0x3c4)]=_0x4991f1,this[_0x53693d(0x1c7)]=_0x552930,this[_0x53693d(0x3b1)]=_0x1ab985,this['_univerInstanceService']=_0xf0f7f8,this[_0x53693d(0x265)]=_0x4235ae,this[_0x53693d(0x2ab)]=_0x4c2bdb);}get[_0xf8a214(0x344)](){const _0x1b53d3=_0xf8a214;return this['_cursorInfo$'][_0x1b53d3(0x207)]();}get[_0xf8a214(0x330)](){const _0x39f932=_0xf8a214;return this[_0x39f932(0x23d)][_0x39f932(0x207)]();}['dispose'](){const _0x1f3b54=_0xf8a214;super[_0x1f3b54(0x2d7)](),this['_cursorInfo$'][_0x1f3b54(0x2cd)](new Map()),this[_0x1f3b54(0x3e7)][_0x1f3b54(0x15e)](),this[_0x1f3b54(0x23d)][_0x1f3b54(0x2cd)]([]),this['_roomMembers$']['complete']();}[_0xf8a214(0x2cf)](){const _0x422cf8=_0xf8a214;this['_init']||(this['_init']=!0x0,this[_0x422cf8(0x2a2)][_0x422cf8(0x373)][_0x422cf8(0x141)](I[_0x422cf8(0x36f)](this[_0x422cf8(0x186)]))[_0x422cf8(0x1dd)](_0x376bbd=>{const _0x38a041=_0x422cf8;_0x376bbd===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x38a041(0x30e)]();}),this[_0x422cf8(0x2a2)][_0x422cf8(0x1b9)][_0x422cf8(0x141)](I[_0x422cf8(0x36f)](this['dispose$']))[_0x422cf8(0x1dd)](_0x3b8c6a=>{const _0x1d1611=_0x422cf8,_0x9fc22d=_0x3b8c6a[_0x1d1611(0x1cd)];_0x9fc22d===g[_0x1d1611(0x3e2)]['UPDATE_CURSOR']&&this[_0x1d1611(0x1c9)](_0x3b8c6a),_0x9fc22d===g['CollaborationEvent'][_0x1d1611(0x151)]&&this[_0x1d1611(0x402)](_0x3b8c6a);}),this['_onRefRangeChange'](),this[_0x422cf8(0x297)](this[_0x422cf8(0x265)][_0x422cf8(0x248)](_0x917031=>{const _0x6de062=_0x422cf8;if(this[_0x6de062(0x3f4)]&&_0x917031['id']===v[_0x6de062(0x147)]['id']&&_0x917031[_0x6de062(0x18b)]['unitId']===this[_0x6de062(0x29a)]){const _0x46591d=_0x917031[_0x6de062(0x18b)];this[_0x6de062(0x1b4)](_0x46591d[_0x6de062(0x1df)],_0x46591d[_0x6de062(0x394)][0x0]);}})));}['_onCursorUpdate'](_0x289432){const _0x1fa4a1=_0xf8a214;var _0x24c217,_0x32e371;const {memberID:_0x210cc9,selection:_0x41a5e8}=_0x289432['data'],{sheetName:_0x99124c,range:_0x5cc2dc}=B['deserializeRangeWithSheet'](_0x41a5e8),_0x2f1921={'name':(_0x32e371=(_0x24c217=this[_0x1fa4a1(0x3b1)]['getMember'](this[_0x1fa4a1(0x29a)],_0x210cc9))==null?void 0x0:_0x24c217[_0x1fa4a1(0x2ff)])!=null?_0x32e371:'Unknown\x20user','range':this[_0x1fa4a1(0x18d)](_0x99124c,_0x5cc2dc),'sheetID':_0x99124c,'color':this[_0x1fa4a1(0x1c7)][_0x1fa4a1(0x36c)](_0x210cc9),'selection':_0x41a5e8},_0x2f0ef7=this['cursorInfo'];_0x2f0ef7[_0x1fa4a1(0x3b2)](_0x210cc9,_0x2f1921),this[_0x1fa4a1(0x3e7)][_0x1fa4a1(0x2cd)](_0x2f0ef7);}['_onCursorDelete'](_0x161dd6){const _0x66ea3b=_0xf8a214,{memberID:_0x1b8dc4}=_0x161dd6['data'],_0x1155ad=this[_0x66ea3b(0x344)];_0x1155ad[_0x66ea3b(0x367)](_0x1b8dc4),this[_0x66ea3b(0x3e7)][_0x66ea3b(0x2cd)](_0x1155ad);}['_getMergeRange'](_0x23526c,_0x50196e){const _0x3bf824=_0xf8a214;var _0x1350d8,_0x210ba2;const _0x46280d=(_0x210ba2=(_0x1350d8=this[_0x3bf824(0x314)][_0x3bf824(0x29b)](this['unitID']))==null?void 0x0:_0x1350d8[_0x3bf824(0x2a6)](_0x23526c))==null?void 0x0:_0x210ba2[_0x3bf824(0x1ba)]();return(_0x46280d==null?void 0x0:_0x46280d['find'](_0x4998b5=>a['Rectangle'][_0x3bf824(0x26f)](_0x4998b5,_0x50196e)))||_0x50196e;}[_0xf8a214(0x251)](){const _0x397053=_0xf8a214,_0x353c2b=new a[(_0x397053(0x33f))](),_0x4e2b14=Et(),_0x32595f=()=>{const _0x4e56e5=_0x397053;_0x353c2b[_0x4e56e5(0x2d7)]();const _0x2ee450=(_0x2fb492,_0x356c20,_0x310350,_0x147309)=>{const _0x31f7a6=_0x4e56e5;let _0x5cb833=[];switch(_0x2fb492['id']){case v['EffectRefRangId'][_0x31f7a6(0x2dc)]:{_0x5cb833=v[_0x31f7a6(0x1cc)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x246)]:{_0x5cb833=v[_0x31f7a6(0x3b7)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x333)]:{_0x5cb833=v[_0x31f7a6(0x311)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x37c)]:{_0x5cb833=v[_0x31f7a6(0x38f)](_0x2fb492,_0x147309);break;}case v['EffectRefRangId'][_0x31f7a6(0x176)]:{_0x5cb833=v['handleInsertRangeMoveRight'](_0x2fb492,_0x147309);break;}case v['EffectRefRangId'][_0x31f7a6(0x1cb)]:{_0x5cb833=v[_0x31f7a6(0x1a3)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x285)]:{_0x5cb833=v[_0x31f7a6(0x1c1)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x143)]:{_0x5cb833=v[_0x31f7a6(0x1c0)](_0x2fb492,_0x147309);break;}case v[_0x31f7a6(0x247)][_0x31f7a6(0x1d5)]:{_0x5cb833=v['handleIRemoveRow'](_0x2fb492,_0x147309);break;}}const _0x4d678d=v[_0x31f7a6(0x219)](_0x5cb833,_0x147309),_0x501192=this[_0x31f7a6(0x344)][_0x31f7a6(0x1d8)](_0x356c20);if(_0x501192&&_0x4d678d){const _0x436fbf={..._0x501192,'range':_0x4d678d};this['cursorInfo'][_0x31f7a6(0x3b2)](_0x356c20,_0x436fbf),_0x4e2b14(()=>{const _0x521e1d=_0x31f7a6,_0x4f4c3d=this[_0x521e1d(0x2ab)][_0x521e1d(0x3ef)](_0x4d678d,_0x24c266=>(_0x4f4c3d[_0x521e1d(0x2d7)](),_0x2ee450(_0x24c266,_0x356c20,_0x310350,_0x4d678d)));_0x353c2b[_0x521e1d(0x22f)](_0x4f4c3d);});}return{'redos':[],'undos':[]};};this[_0x4e56e5(0x344)][_0x4e56e5(0x1f2)]((_0x5e0559,_0x32b992)=>{const _0x5332a8=_0x4e56e5,{range:_0x97e494,sheetID:_0x21ff37}=_0x5e0559,_0x38e9e8=this['_refRangeService'][_0x5332a8(0x3ef)](_0x97e494,_0x359bea=>(_0x38e9e8[_0x5332a8(0x2d7)](),_0x2ee450(_0x359bea,_0x32b992,_0x21ff37,_0x97e494)));_0x353c2b[_0x5332a8(0x22f)](_0x38e9e8);});};this[_0x397053(0x297)](a[_0x397053(0x17d)](this[_0x397053(0x3e7)][_0x397053(0x1dd)](()=>{_0x32595f();})));}['_toggleOnline'](){const _0x447bf8=_0xf8a214;var _0x5831de,_0x4b24df;if(this[_0x447bf8(0x3f4)]=!0x0,((_0x5831de=this[_0x447bf8(0x314)]['getFocusedUnit']())==null?void 0x0:_0x5831de['getUnitId']())!==this[_0x447bf8(0x29a)])return;const _0x4a4dc5=(_0x4b24df=this[_0x447bf8(0x3c4)][_0x447bf8(0x1d8)](v[_0x447bf8(0x1e0)])['getCurrentSelections']())==null?void 0x0:_0x4b24df[0x0],_0x1a6b1d=this['_univerInstanceService'][_0x447bf8(0x1e9)](a[_0x447bf8(0x392)][_0x447bf8(0x225)])['getActiveSheet']();_0x4a4dc5&&_0x1a6b1d&&this[_0x447bf8(0x1b4)](_0x1a6b1d['getSheetId'](),_0x4a4dc5);}[_0xf8a214(0x30e)](){const _0x254679=_0xf8a214;this[_0x254679(0x3f4)]=!0x1;}};ve=mt([y(0x2,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),y(0x3,a[_0xf8a214(0x31a)](Oe)),y(0x4,a['Inject'](u[_0xf8a214(0x258)])),y(0x5,a[_0xf8a214(0x389)]),y(0x6,a[_0xf8a214(0x39b)]),y(0x7,a[_0xf8a214(0x31a)](v[_0xf8a214(0x377)]))],ve);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x1d4743,_0x1f081f,_0x3c185c,_0x1c70dd)=>{const _0x529584=_0xf8a214;for(var _0x411d9b=_0x1c70dd>0x1?void 0x0:_0x1c70dd?Ct(_0x1f081f,_0x3c185c):_0x1f081f,_0x5a2a66=_0x1d4743[_0x529584(0x3b4)]-0x1,_0x115566;_0x5a2a66>=0x0;_0x5a2a66--)(_0x115566=_0x1d4743[_0x5a2a66])&&(_0x411d9b=_0x115566(_0x411d9b)||_0x411d9b);return _0x411d9b;},ae=(_0x378ae1,_0xeaf835)=>(_0x1e2e5d,_0x5175fc)=>_0xeaf835(_0x1e2e5d,_0x5175fc,_0x378ae1);let F=class extends a['RxDisposable']{constructor(_0x1cd4f7,_0x2d1a13,_0x3ae789){const _0x5f1a5f=_0xf8a214;super(),_(this,_0x5f1a5f(0x2e4),new Map()),_(this,'_entityInit$',new I[(_0x5f1a5f(0x3f1))]()),(this[_0x5f1a5f(0x314)]=_0x1cd4f7,this['_injector']=_0x2d1a13,this[_0x5f1a5f(0x206)]=_0x3ae789,this[_0x5f1a5f(0x3ff)]());}['dispose'](){const _0x34d92a=_0xf8a214;super['dispose'](),this[_0x34d92a(0x213)]['complete'](),this['_entities'][_0x34d92a(0x1f2)](_0x550aa3=>_0x550aa3[_0x34d92a(0x2d7)]());}[_0xf8a214(0x325)](_0x26fa80){const _0xebeeb0=_0xf8a214;return this[_0xebeeb0(0x2e4)][_0xebeeb0(0x342)](_0x26fa80)?this[_0xebeeb0(0x2e4)]['get'](_0x26fa80)[_0xebeeb0(0x36e)]:this[_0xebeeb0(0x213)][_0xebeeb0(0x141)](I['filter'](_0xaedd37=>_0xaedd37[_0xebeeb0(0x29a)]===_0x26fa80),I[_0xebeeb0(0x1e4)](_0x189740=>_0x189740[_0xebeeb0(0x36e)]));}['_init'](){const _0x89a6c2=_0xf8a214;this[_0x89a6c2(0x314)][_0x89a6c2(0x3e6)](a[_0x89a6c2(0x392)][_0x89a6c2(0x225)])[_0x89a6c2(0x141)](I[_0x89a6c2(0x36f)](this['dispose$']))[_0x89a6c2(0x1dd)](async _0x4aaebe=>{const _0x10bed0=_0x89a6c2,_0xd0ce64=_0x4aaebe[_0x10bed0(0x365)](),_0x57f18f=await this[_0x10bed0(0x199)](_0xd0ce64);this[_0x10bed0(0x213)][_0x10bed0(0x2cd)](_0x57f18f),this['_entities'][_0x10bed0(0x3b2)](_0xd0ce64,_0x57f18f);}),this[_0x89a6c2(0x314)][_0x89a6c2(0x3e6)](a[_0x89a6c2(0x392)]['UNIVER_DOC'])['pipe'](I[_0x89a6c2(0x36f)](this[_0x89a6c2(0x186)]))[_0x89a6c2(0x141)](I[_0x89a6c2(0x217)](_0x548de8=>!_0x548de8[_0x89a6c2(0x365)]()['startsWith']('__')))['subscribe'](async _0x3c35c9=>{const _0x48adc1=_0x89a6c2,_0x48c5e2=_0x3c35c9['getUnitId'](),_0x2d20a0=await this[_0x48adc1(0x33a)](_0x48c5e2);this[_0x48adc1(0x213)][_0x48adc1(0x2cd)](_0x2d20a0),this['_entities'][_0x48adc1(0x3b2)](_0x48c5e2,_0x2d20a0);}),I['merge'](this['_univerInstanceService'][_0x89a6c2(0x31b)](a['UniverInstanceType'][_0x89a6c2(0x361)]),this[_0x89a6c2(0x314)][_0x89a6c2(0x31b)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x89a6c2(0x141)](I[_0x89a6c2(0x36f)](this[_0x89a6c2(0x186)]))[_0x89a6c2(0x1dd)](_0x16bea4=>{const _0x19ea7a=_0x89a6c2,_0x491de7=_0x16bea4[_0x19ea7a(0x365)](),_0x1f4b4a=this[_0x19ea7a(0x2e4)][_0x19ea7a(0x1d8)](_0x491de7);_0x1f4b4a&&(_0x1f4b4a['dispose'](),this[_0x19ea7a(0x2e4)][_0x19ea7a(0x367)](_0x491de7));});}async['_startSheetCollabCursor'](_0x1d6ce7){const _0xf0a726=_0xf8a214,_0x539611=await this[_0xf0a726(0x206)][_0xf0a726(0x332)](_0x1d6ce7),_0x5aaadc=this[_0xf0a726(0x3c4)][_0xf0a726(0x34f)](ve,_0x1d6ce7,_0x539611);return _0x5aaadc['init'](),_0x5aaadc;}async[_0xf8a214(0x33a)](_0x10d585){const _0x1e4a18=_0xf8a214,_0x2715b0=await this[_0x1e4a18(0x206)][_0x1e4a18(0x332)](_0x10d585),_0x4826cf=this[_0x1e4a18(0x3c4)][_0x1e4a18(0x34f)](me,_0x10d585,_0x2715b0);return _0x4826cf[_0x1e4a18(0x2cf)](),_0x4826cf;}};F=pt([ae(0x0,a['IUniverInstanceService']),ae(0x1,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),ae(0x2,a[_0xf8a214(0x31a)](u[_0xf8a214(0x35c)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x484107,_0x4b748e){const _0x267fc3=_0xf8a214;let {radius:_0x24df9f,width:_0x50cead,height:_0x57c8f0}=_0x4b748e;_0x24df9f=_0x24df9f!=null?_0x24df9f:0x0,_0x50cead=_0x50cead!=null?_0x50cead:0x1e,_0x57c8f0=_0x57c8f0!=null?_0x57c8f0:0x1e;let _0x4775e1=0x0,_0x2fa5ef=0x0,_0xdf729f=0x0;_0x4775e1=_0x2fa5ef=_0xdf729f=Math[_0x267fc3(0x398)](_0x24df9f,_0x50cead/0x2,_0x57c8f0/0x2),_0x484107[_0x267fc3(0x13f)](),_0x484107[_0x267fc3(0x1b2)](_0x4775e1,0x0),_0x484107[_0x267fc3(0x1a0)](_0x50cead-_0x2fa5ef,0x0),_0x484107['arc'](_0x50cead-_0x2fa5ef,_0x2fa5ef,_0x2fa5ef,Math['PI']*0x3/0x2,0x0,!0x1),_0x484107[_0x267fc3(0x1a0)](_0x50cead,_0x57c8f0-_0xdf729f),_0x484107[_0x267fc3(0x2ce)](_0x50cead-_0xdf729f,_0x57c8f0-_0xdf729f,_0xdf729f,0x0,Math['PI']/0x2,!0x1),_0x484107[_0x267fc3(0x1a0)](0x0,_0x57c8f0),_0x484107[_0x267fc3(0x1a0)](0x0,_0x4775e1),_0x484107['arc'](_0x4775e1,_0x4775e1,_0x4775e1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x484107[_0x267fc3(0x140)](),_0x4b748e['fill']&&(_0x484107[_0x267fc3(0x2c2)](),_0x484107[_0x267fc3(0x307)]=_0x4b748e[_0x267fc3(0x36b)],_0x4b748e[_0x267fc3(0x166)]==='evenodd'?_0x484107[_0x267fc3(0x36b)](_0x267fc3(0x3f5)):_0x484107[_0x267fc3(0x36b)](),_0x484107[_0x267fc3(0x257)]());}class ne extends C['Shape']{constructor(_0x2b7d35,_0x3f0675){const _0x51fd46=_0xf8a214;super(_0x2b7d35,_0x3f0675),_(this,_0x51fd46(0x2ee)),_(this,_0x51fd46(0x205)),(this[_0x51fd46(0x2ee)]=_0x3f0675==null?void 0x0:_0x3f0675[_0x51fd46(0x2ee)],this[_0x51fd46(0x205)]=_0x3f0675==null?void 0x0:_0x3f0675[_0x51fd46(0x205)]);}static['drawWith'](_0xe66866,_0x20f721){const _0x4b7b20=_0xf8a214,{text:_0x3626cc,color:_0x416a17}=_0x20f721;_0xe66866[_0x4b7b20(0x2c2)](),_0xe66866[_0x4b7b20(0x1d6)]=_0x4b7b20(0x276);const _0x2d89fe=_0xe66866[_0x4b7b20(0x329)](_0x3626cc)[_0x4b7b20(0x1d7)],_0x25c606=Math[_0x4b7b20(0x398)](_0x2d89fe+0x2*ce,Ne);Ot(_0xe66866,{'height':K,'radius':0x4,'width':_0x25c606,'fill':_0x416a17}),_0xe66866['fillStyle']=_0x4b7b20(0x363);const _0x434e2f=ce,_0xfb340d=K-Tt,_0x3924d2=Ne-0x2*ce;if(_0x2d89fe>_0x3924d2){let _0x585d68='',_0x4c901b=0x0;for(const _0x579f16 of _0x3626cc){const _0x26aa61=_0xe66866['measureText'](_0x579f16)[_0x4b7b20(0x1d7)];if(_0x4c901b+_0x26aa61<=_0x3924d2-_0xe66866[_0x4b7b20(0x329)](_0x4b7b20(0x24b))['width'])_0x585d68+=_0x579f16,_0x4c901b+=_0x26aa61;else{_0x585d68+=_0x4b7b20(0x24b);break;}}_0xe66866[_0x4b7b20(0x2ac)](_0x585d68,_0x434e2f,_0xfb340d);}else _0xe66866[_0x4b7b20(0x2ac)](_0x3626cc,_0x434e2f,_0xfb340d);_0xe66866['restore']();}['_draw'](_0x3fca06){ne['drawWith'](_0x3fca06,this);}}const le=_0xf8a214(0x2a8),Rt=_0xf8a214(0x2fd),bt=_0xf8a214(0x393),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0xf8a214(0x1fc);class Ue{constructor(_0x18034e,_0x3fdbea,_0x1ee2b5,_0x929d){const _0x30196b=_0xf8a214;_(this,'_shapes',[]),_(this,_0x30196b(0x34d),null),_(this,_0x30196b(0x3c2),null),_(this,_0x30196b(0x400),null),_(this,_0x30196b(0x18f),null),_(this,'_eventUnsubscribe',null),(this[_0x30196b(0x1ce)]=_0x18034e,this[_0x30196b(0x268)]=_0x3fdbea,this[_0x30196b(0x3db)]=_0x1ee2b5,this[_0x30196b(0x35e)]=_0x929d,this['_render']());}set[_0xf8a214(0x3a7)](_0x2d9b15){const _0x2330f2=_0xf8a214;_0x2d9b15?(this[_0x2330f2(0x400)]&&this[_0x2330f2(0x400)][_0x2330f2(0x25a)](),this[_0x2330f2(0x3c2)]&&this[_0x2330f2(0x3c2)]['show']()):(this[_0x2330f2(0x400)]&&this[_0x2330f2(0x400)][_0x2330f2(0x293)](),this[_0x2330f2(0x3c2)]&&this['_textBubble']['hide']());}[_0xf8a214(0x2d7)](){const _0x320497=_0xf8a214;for(const _0x5006e1 of this[_0x320497(0x1c2)])_0x5006e1['dispose']();this[_0x320497(0x3c2)]&&this[_0x320497(0x3c2)][_0x320497(0x2d7)](),this['_anchorDot']&&this[_0x320497(0x400)]['dispose'](),this[_0x320497(0x34d)]&&this[_0x320497(0x34d)][_0x320497(0x2d7)](),this['_eventUnsubscribe']&&this[_0x320497(0x2de)]();}[_0xf8a214(0x2c9)](){const _0x3de6f9=_0xf8a214;var _0x5aa0c5;const {_docSkeleton:_0x5be093,_document:_0x2ae023}=this,{color:_0x223314,name:_0x23707d,ranges:_0x48aeda}=this[_0x3de6f9(0x1ce)],_0x697e0b=_0x2ae023[_0x3de6f9(0x3d4)](),{docsLeft:_0x503ee7,docsTop:_0x329267}=_0x697e0b,_0x54a3db=new p[(_0x3de6f9(0x30c))](_0x697e0b,_0x5be093);for(const {startOffset:_0x56b8e6,endOffset:_0x404b6c,rangeType:_0x404319,segmentId:_0xc48ec9,segmentPage:_0x1a196b,collapsed:_0x5aaf6b,isActive:_0x3fd56e}of _0x48aeda){const _0x4135a6=_0x5be093['findNodePositionByCharIndex'](_0x56b8e6,!0x0,_0xc48ec9,_0x1a196b);let _0x5a8df1=_0x5be093[_0x3de6f9(0x255)](_0x404b6c,!0x0,_0xc48ec9,_0x1a196b);if(_0x5a8df1==null&&(_0x5a8df1=_0x5be093[_0x3de6f9(0x255)](_0x404b6c-0x1,!0x1,_0xc48ec9,_0x1a196b)),_0x3fd56e){const {contentBoxPointGroup:_0x5025f0}=_0x54a3db[_0x3de6f9(0x349)](_0x5a8df1,_0x5a8df1);if(_0x5025f0['length']===0x0)continue;this[_0x3de6f9(0x318)](_0x223314,_0x5025f0,_0x503ee7,_0x329267,_0x23707d),this[_0x3de6f9(0x2de)]=this[_0x3de6f9(0x299)]();}if(_0x4135a6&&_0x5a8df1){if(_0x404319===a[_0x3de6f9(0x2c3)][_0x3de6f9(0x280)]){const _0x245090=new p[(_0x3de6f9(0x3fc))](_0x697e0b,_0x5be093),{pointGroup:_0x12cb08}=(_0x5aa0c5=_0x245090[_0x3de6f9(0x349)](_0x4135a6,_0x5a8df1))!=null?_0x5aa0c5:{};if(_0x12cb08==null||_0x12cb08['length']===0x0)continue;this[_0x3de6f9(0x155)](_0x223314,_0x12cb08,_0x503ee7,_0x329267);}else{if(!_0x5aaf6b){const {borderBoxPointGroup:_0x2b7b94}=_0x54a3db[_0x3de6f9(0x349)](_0x4135a6,_0x5a8df1);if(_0x2b7b94[_0x3de6f9(0x3b4)]===0x0)continue;this[_0x3de6f9(0x164)](_0x223314,_0x2b7b94,_0x503ee7,_0x329267);}}}}}[_0xf8a214(0x318)](_0xe77877,_0x578167,_0x2c2a04,_0xfa3bc6,_0x772eba){const _0x1e6697=_0xf8a214,_0x1b9f60=this[_0x1e6697(0x404)](_0x578167),{left:_0x1dd00e,top:_0x4c9651,height:_0x555f7e}=_0x1b9f60,_0xe4fdb8=this[_0x1e6697(0x167)](),_0x3bb5ac=Nt/_0xe4fdb8,_0x8ce1d0=new C[(_0x1e6697(0x284))](le+a[_0x1e6697(0x16e)](H),{'left':_0x1dd00e+_0x2c2a04-_0x3bb5ac,'top':_0x4c9651+_0xfa3bc6,'height':_0x555f7e,'width':Dt,'fill':_0xe77877||C[_0x1e6697(0x1a2)](a[_0x1e6697(0x2c0)][_0x1e6697(0x169)],0x0),'strokeWidth':_0x3bb5ac,'stroke':Ut,'evented':!0x0});this[_0x1e6697(0x34d)]=_0x8ce1d0,this[_0x1e6697(0x268)]['addObject'](_0x8ce1d0,p[_0x1e6697(0x354)]);const _0x5a60c2=new C[(_0x1e6697(0x284))](le+a[_0x1e6697(0x16e)](H),{'left':_0x1dd00e+_0x2c2a04-_0x3bb5ac,'top':_0x4c9651+_0xfa3bc6-_e/0x2,'height':_e,'width':_e,'fill':_0xe77877||C[_0x1e6697(0x1a2)](a[_0x1e6697(0x2c0)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xe77877||C[_0x1e6697(0x1a2)](a[_0x1e6697(0x2c0)][_0x1e6697(0x169)],0x0),'evented':!0x1});this['_anchorDot']=_0x5a60c2,this[_0x1e6697(0x268)][_0x1e6697(0x233)](_0x5a60c2,p['TEXT_RANGE_LAYER_INDEX']);const _0x1438a6=new ne(le+a['generateRandomId'](H),{'left':_0x1dd00e+_0x2c2a04-_0x3bb5ac,'top':_0x4c9651+_0xfa3bc6-K,'text':_0x772eba,'color':_0xe77877});this[_0x1e6697(0x3c2)]=_0x1438a6,this[_0x1e6697(0x268)][_0x1e6697(0x233)](_0x1438a6,p[_0x1e6697(0x354)]),this[_0x1e6697(0x3a7)]=!0x1;}[_0xf8a214(0x299)](){const _0x2991e8=_0xf8a214,_0x5957ce=this[_0x2991e8(0x34d)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x21514c=_0x2991e8;this[_0x21514c(0x3a7)]=!0x0;}),_0x4094ea=this[_0x2991e8(0x34d)]['onPointerLeave$'][_0x2991e8(0x261)](()=>{const _0x128622=_0x2991e8;this[_0x128622(0x18f)]&&clearTimeout(this[_0x128622(0x18f)]),this[_0x128622(0x18f)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x628531=_0x2991e8;_0x5957ce['unsubscribe'](),_0x4094ea[_0x628531(0x407)]();};}[_0xf8a214(0x164)](_0x1609c1,_0x29d839,_0x4e255d,_0x4639a1){const _0x4353fc=_0xf8a214,_0x32d66c=new a[(_0x4353fc(0x3b3))](_0x1609c1)[_0x4353fc(0x1ec)](0.2)['toRgbString'](),_0xa6f649=new C['RegularPolygon'](Rt+a[_0x4353fc(0x16e)](H),{'pointsGroup':_0x29d839,'fill':_0x32d66c||C['getColor'](a['COLORS'][_0x4353fc(0x169)],0.2),'left':_0x4e255d,'top':_0x4639a1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4353fc(0x1c2)][_0x4353fc(0x346)](_0xa6f649),this[_0x4353fc(0x268)][_0x4353fc(0x233)](_0xa6f649,p[_0x4353fc(0x354)]);}[_0xf8a214(0x155)](_0x204c64,_0x2d1769,_0x45ff44,_0x1bc3f8){const _0x4302b6=_0xf8a214,_0x5010c8=new a[(_0x4302b6(0x3b3))](_0x204c64)[_0x4302b6(0x1ec)](0.2)[_0x4302b6(0x156)](),_0x2d0f7a=new C[(_0x4302b6(0x3dd))](bt+a[_0x4302b6(0x16e)](H),{'pointsGroup':_0x2d1769,'fill':_0x5010c8||C[_0x4302b6(0x1a2)](a[_0x4302b6(0x2c0)][_0x4302b6(0x169)],0.2),'left':_0x45ff44,'top':_0x1bc3f8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4302b6(0x346)](_0x2d0f7a),this['_scene']['addObject'](_0x2d0f7a,p[_0x4302b6(0x354)]);}[_0xf8a214(0x404)](_0x1ca567){const _0x32e18d=_0x1ca567[0x0],_0x5bb14a=_0x32e18d[0x0],_0x2f6bf0=_0x32e18d[0x2],{x:_0x4382d1,y:_0x4d2195}=_0x5bb14a,{x:_0x63f1f8,y:_0x523b6b}=_0x2f6bf0;return{'left':_0x4382d1,'top':_0x4d2195,'width':_0x63f1f8-_0x4382d1,'height':_0x523b6b-_0x4d2195};}[_0xf8a214(0x167)](){const _0xa3161e=_0xf8a214,{scaleX:_0x180776,scaleY:_0x4971e1}=this[_0xa3161e(0x268)][_0xa3161e(0x160)]();return Math[_0xa3161e(0x1e8)](_0x180776,_0x4971e1);}}var Lt=Object[_0xf8a214(0x3f6)],Mt=(_0x45d768,_0x2ed1f9,_0x4f370b,_0x34abaf)=>{const _0xa25376=_0xf8a214;for(var _0xa3a7cb=_0x34abaf>0x1?void 0x0:_0x34abaf?Lt(_0x2ed1f9,_0x4f370b):_0x2ed1f9,_0x82c25f=_0x45d768[_0xa25376(0x3b4)]-0x1,_0x28c510;_0x82c25f>=0x0;_0x82c25f--)(_0x28c510=_0x45d768[_0x82c25f])&&(_0xa3a7cb=_0x28c510(_0xa3a7cb)||_0xa3a7cb);return _0xa3a7cb;},z=(_0x106272,_0x1a27d3)=>(_0x24ec35,_0x4f9089)=>_0x1a27d3(_0x24ec35,_0x4f9089,_0x106272);let ge=class extends a['RxDisposable']{constructor(_0x2531a6,_0x4d2b85,_0x56b759,_0x5719eb,_0x40ea98){const _0x405092=_0xf8a214;super(),_(this,'_cursorShapes',[]),_(this,_0x405092(0x1f7),[]),(this[_0x405092(0x294)]=_0x2531a6,this[_0x405092(0x313)]=_0x4d2b85,this[_0x405092(0x175)]=_0x56b759,this[_0x405092(0x265)]=_0x5719eb,this[_0x405092(0x397)]=_0x40ea98,this[_0x405092(0x3ff)]());}[_0xf8a214(0x3ff)](){const _0x4254fc=_0xf8a214,_0x451b44=this[_0x4254fc(0x294)][_0x4254fc(0x22e)],_0x5a78f1=this[_0x4254fc(0x313)];this[_0x4254fc(0x297)](I[_0x4254fc(0x3f9)]([this['_collabCursorController'][_0x4254fc(0x325)](_0x451b44),this['_themeService'][_0x4254fc(0x1a5)]])['pipe']($[_0x4254fc(0x39a)](([_0x1f0831,_0x27ca89])=>({'skeleton':_0x5a78f1[_0x4254fc(0x2f8)](),'cursors':[..._0x1f0831[_0x4254fc(0x1dc)]()][_0x4254fc(0x273)](_0x165081=>({..._0x165081,'color':this[_0x4254fc(0x397)][_0x4254fc(0x2bd)](_0x165081['color'])}))})))[_0x4254fc(0x1dd)](_0x4e5574=>{const _0x2b0a83=_0x4254fc;if(this[_0x2b0a83(0x20b)](),_0x4e5574){const {skeleton:_0xf5851c,cursors:_0x225291}=_0x4e5574;this[_0x2b0a83(0x2f1)](_0xf5851c,_0x225291);}})),this['_initResize'](),this[_0x4254fc(0x334)]();}[_0xf8a214(0x2f1)](_0x1ff907,_0x54c7c6){const _0x3a1ab0=_0xf8a214,{scene:_0x1e16d7,mainComponent:_0x3930b0}=this['_context'],_0x967a59=_0x54c7c6[_0x3a1ab0(0x39a)](_0x15108c=>new Ue(_0x15108c,_0x1e16d7,_0x1ff907,_0x3930b0));this[_0x3a1ab0(0x343)]=_0x967a59,this[_0x3a1ab0(0x1f7)]=_0x54c7c6;}[_0xf8a214(0x1b7)](){const _0x3124e9=_0xf8a214;this[_0x3124e9(0x20b)]();const {scene:_0x628044,mainComponent:_0xcd572}=this[_0x3124e9(0x294)],_0x36d681=this[_0x3124e9(0x313)]['getSkeleton'](),_0x3b07a2=this[_0x3124e9(0x1f7)]['map'](_0x41d7c8=>new Ue(_0x41d7c8,_0x628044,_0x36d681,_0xcd572));this[_0x3124e9(0x343)]=_0x3b07a2;}[_0xf8a214(0x20b)](){const _0x287aea=_0xf8a214;this[_0x287aea(0x343)][_0x287aea(0x1f2)](_0x420919=>_0x420919['dispose']()),this[_0x287aea(0x343)]=[];}[_0xf8a214(0x334)](){const _0x2f9fd2=_0xf8a214,_0x12f808=[p['SetDocZoomRatioOperation']['id']];this[_0x2f9fd2(0x297)](this[_0x2f9fd2(0x265)][_0x2f9fd2(0x248)](_0xf9f71f=>{const _0x7cc7e6=_0x2f9fd2;_0x12f808[_0x7cc7e6(0x40d)](_0xf9f71f['id'])&&_0xf9f71f[_0x7cc7e6(0x18b)][_0x7cc7e6(0x22e)]===this[_0x7cc7e6(0x294)][_0x7cc7e6(0x22e)]&&this[_0x7cc7e6(0x1b7)]();}));}[_0xf8a214(0x3c5)](){const _0x18b624=_0xf8a214;this[_0x18b624(0x297)](a[_0x18b624(0x391)](this[_0x18b624(0x294)][_0x18b624(0x1be)][_0x18b624(0x35d)])[_0x18b624(0x141)]($[_0x18b624(0x217)](_0x3ca19e=>_0x3ca19e[_0x18b624(0x351)]===C[_0x18b624(0x286)][_0x18b624(0x253)]),$[_0x18b624(0x40e)](0x10))[_0x18b624(0x1dd)](()=>{const _0x39a58b=_0x18b624;this[_0x39a58b(0x1b7)]();}));}};ge=Mt([z(0x1,a[_0xf8a214(0x31a)](V[_0xf8a214(0x2aa)])),z(0x2,a[_0xf8a214(0x31a)](F)),z(0x3,a['ICommandService']),z(0x4,a[_0xf8a214(0x31a)](a[_0xf8a214(0x39d)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0xf8a214(0x146)]{constructor(_0x5b973a,_0x2c770b){const _0x300edd=_0xf8a214;super(_0x5b973a,_0x2c770b),_(this,_0x300edd(0x1bc)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x300edd(0x1f1),''),_(this,_0x300edd(0x3dc),_0x300edd(0x3a4)),_(this,_0x300edd(0x1ca)),(_0x2c770b&&this[_0x300edd(0x37d)](_0x2c770b),this['onPointerEnter$'][_0x300edd(0x261)](()=>this[_0x300edd(0x37d)]({'hovered':!0x0})),this[_0x300edd(0x298)][_0x300edd(0x261)](()=>this[_0x300edd(0x37d)]({'hovered':!0x1})));}[_0xf8a214(0x37d)](_0x2edd01){const _0x3cca47=_0xf8a214;var _0x25c935,_0x2b6df7,_0x3e6a83,_0xce5e46,_0x4fe8a4,_0x3255d9;this[_0x3cca47(0x1bc)]=(_0x25c935=_0x2edd01[_0x3cca47(0x2ee)])!=null?_0x25c935:this[_0x3cca47(0x1bc)],this['_hovered']=(_0x2b6df7=_0x2edd01[_0x3cca47(0x28a)])!=null?_0x2b6df7:this['_hovered'],this[_0x3cca47(0x288)]=(_0x3e6a83=_0x2edd01[_0x3cca47(0x39c)])!=null?_0x3e6a83:this[_0x3cca47(0x288)],this[_0x3cca47(0x1f1)]=(_0xce5e46=_0x2edd01[_0x3cca47(0x2ff)])!=null?_0xce5e46:this[_0x3cca47(0x1f1)],this['_labelPosition']=(_0x4fe8a4=_0x2edd01['labelPosition'])!=null?_0x4fe8a4:this[_0x3cca47(0x3dc)],this[_0x3cca47(0x1ca)]=(_0x3255d9=_0x2edd01[_0x3cca47(0x24d)])!=null?_0x3255d9:this['_backgroundColor'],this[_0x3cca47(0x1f0)]({'width':_0x2edd01[_0x3cca47(0x1d7)],'height':_0x2edd01[_0x3cca47(0x19c)]});}[_0xf8a214(0x38b)](_0x4f311e){const _0xf1bfb0=_0xf8a214,{row:_0x8f8bfa,column:_0x4cd284}=_0x4f311e;if(_0x8f8bfa>=this[_0xf1bfb0(0x288)][_0xf1bfb0(0x3af)]&&_0x8f8bfa<=this[_0xf1bfb0(0x288)]['endRow']&&_0x4cd284>=this[_0xf1bfb0(0x288)]['startColumn']&&_0x4cd284<=this[_0xf1bfb0(0x288)][_0xf1bfb0(0x16d)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0xf1bfb0(0x37d)]({'hovered':!0x1});}[_0xf8a214(0x21d)](_0xbfedab){return!0x1;}[_0xf8a214(0x243)](_0x3f36e5){const _0x5b545c=_0xf8a214;C[_0x5b545c(0x284)][_0x5b545c(0x1fe)](_0x3f36e5,{'width':this[_0x5b545c(0x1d7)],'height':this[_0x5b545c(0x19c)],'strokeWidth':Pt,'stroke':this[_0x5b545c(0x1bc)],'evented':!0x1,'fill':this[_0x5b545c(0x1ca)]}),this[_0x5b545c(0x2e0)]&&(_0x3f36e5['save'](),_0x3f36e5[_0x5b545c(0x30d)](0x1,0x0,0x0,0x1,this[_0x5b545c(0x1d7)],this['_labelPosition']===_0x5b545c(0x27c)?0x0:-K),ne[_0x5b545c(0x1fe)](_0x3f36e5,{'text':this[_0x5b545c(0x1f1)],'color':this[_0x5b545c(0x1bc)]}),_0x3f36e5[_0x5b545c(0x257)]());}}var wt=Object[_0xf8a214(0x3f6)],yt=(_0x3c37ca,_0x549b1f,_0x4c6fec,_0x45d385)=>{const _0x4b0342=_0xf8a214;for(var _0x9caab4=_0x45d385>0x1?void 0x0:_0x45d385?wt(_0x549b1f,_0x4c6fec):_0x549b1f,_0x256f30=_0x3c37ca[_0x4b0342(0x3b4)]-0x1,_0x25aa56;_0x256f30>=0x0;_0x256f30--)(_0x25aa56=_0x3c37ca[_0x256f30])&&(_0x9caab4=_0x25aa56(_0x9caab4)||_0x9caab4);return _0x9caab4;},he=(_0x167113,_0x27e68f)=>(_0x57d088,_0x368101)=>_0x27e68f(_0x57d088,_0x368101,_0x167113);const xt=0x1389;let Ee=class extends a[_0xf8a214(0x18e)]{constructor(_0x13183a,_0x52548b,_0x37ad91,_0x5a4ec1){const _0x2f62f3=_0xf8a214;super(),_(this,'_cursors',new Set()),_(this,_0x2f62f3(0x347),null),(this[_0x2f62f3(0x294)]=_0x13183a,this[_0x2f62f3(0x1e5)]=_0x52548b,this[_0x2f62f3(0x175)]=_0x37ad91,this[_0x2f62f3(0x397)]=_0x5a4ec1,this[_0x2f62f3(0x3ff)]());}[_0xf8a214(0x3ff)](){const _0x144adf=_0xf8a214;this[_0x144adf(0x1e5)][_0x144adf(0x148)][_0x144adf(0x141)]($[_0x144adf(0x36f)](this[_0x144adf(0x186)]),$[_0x144adf(0x1e4)](_0x4fae89=>{const _0x52622e=_0x144adf;if(_0x4fae89){const _0x3be9b7=_0x4fae89[_0x52622e(0x2d2)];return I[_0x52622e(0x3f9)](this['_collabCursorController'][_0x52622e(0x325)](this[_0x52622e(0x294)]['unitId']),this[_0x52622e(0x397)][_0x52622e(0x1a5)])[_0x52622e(0x141)]($['map'](([_0x3e171f,_0x3ecf30])=>{const _0x50eb87=_0x52622e,_0x4fd056=new Map();return _0x3e171f[_0x50eb87(0x1f2)]((_0x160218,_0x514a98)=>{const _0x39334d=_0x50eb87;if(_0x160218[_0x39334d(0x14d)]===_0x3be9b7){const _0x2c8fe7={..._0x160218};_0x2c8fe7[_0x39334d(0x2ee)]=this[_0x39334d(0x397)][_0x39334d(0x2bd)](_0x160218[_0x39334d(0x2ee)]),_0x4fd056['set'](_0x514a98,_0x2c8fe7);}}),{'skeleton':_0x4fae89,'cursors':_0x4fd056};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x144adf(0x1dd)](({skeleton:_0x1ce83b,cursors:_0x4616b1})=>{const _0x447a78=_0x144adf;this[_0x447a78(0x20b)](),_0x1ce83b&&this[_0x447a78(0x2f1)](_0x1ce83b,_0x4616b1);}),this[_0x144adf(0x1e5)]['currentSkeleton$'][_0x144adf(0x1dd)](_0x36d08d=>{const _0x366c31=_0x144adf;if(_0x36d08d==null)return;const {skeleton:_0xadc1ad}=_0x36d08d,{scene:_0x52964e}=this['_context'];_0x52964e[_0x366c31(0x3e4)]['subscribeEvent'](a[_0x366c31(0x321)](_0x3b29cf=>{const _0x2a852f=_0x366c31;var _0x48752c,_0x2fb9fb;const {offsetX:_0x40a934,offsetY:_0xc0c2d3}=_0x3b29cf,{x:_0x2c9be5,y:_0x246623}=_0x52964e[_0x2a852f(0x14c)](C[_0x2a852f(0x340)]['FromArray']([_0x40a934,_0xc0c2d3])),{scaleX:_0x43877a,scaleY:_0x5700e9}=_0x52964e['getAncestorScale'](),_0x365331=_0x52964e[_0x2a852f(0x19a)](C[_0x2a852f(0x209)][_0x2a852f(0x240)]),_0x339a01=_0x52964e[_0x2a852f(0x2be)](C[_0x2a852f(0x340)]['FromArray']([_0x2c9be5,_0x246623]),_0x365331),_0x1a5c51=_0xadc1ad[_0x2a852f(0x2f2)](_0x40a934,_0xc0c2d3,_0x43877a,_0x5700e9,_0x339a01);((_0x48752c=this[_0x2a852f(0x347)])==null?void 0x0:_0x48752c[_0x2a852f(0x1f6)])===_0x1a5c51[_0x2a852f(0x1f6)]&&((_0x2fb9fb=this[_0x2a852f(0x347)])==null?void 0x0:_0x2fb9fb[_0x2a852f(0x358)])===_0x1a5c51['row']||this[_0x2a852f(0x1f7)][_0x2a852f(0x1f2)](_0xe7878b=>{_0xe7878b['onMouseMove'](_0x1a5c51);});},0x64));});}[_0xf8a214(0x2f1)](_0x52068c,_0x4f9821){const _0x5c1194=_0xf8a214;var _0x10c87a;const _0x6e17eb=(_0x10c87a=this[_0x5c1194(0x1e5)][_0x5c1194(0x302)]())==null?void 0x0:_0x10c87a[_0x5c1194(0x239)];if(!_0x6e17eb)return;const _0x2e4e66=this[_0x5c1194(0x2b9)]();if(!_0x2e4e66)return;this[_0x5c1194(0x1f7)]['forEach'](_0x190307=>{const _0x557b28=_0x5c1194;_0x190307[_0x557b28(0x2ba)]();});const {scene:_0x2bba78}=_0x2e4e66,_0x48edc4=$t(Array[_0x5c1194(0x195)](_0x4f9821['values']()))[_0x5c1194(0x39a)](_0x55e6e3=>{const _0x3d6b2d=_0x5c1194,{color:_0xea79fa,range:_0x444a88,name:_0x1626ad,selection:_0x2d11fd,sheetID:_0x4aa80c}=_0x55e6e3,{startColumn:_0x2145f1,startRow:_0x253192,endColumn:_0x392c54,endRow:_0x1a90c1}=_0x444a88,_0x1586d9=J[_0x3d6b2d(0x1f5)](_0x253192,_0x2145f1,_0x2bba78,_0x6e17eb),_0x22ec40=J['getCoordByCell'](_0x1a90c1,_0x392c54,_0x2bba78,_0x6e17eb),{columnHeaderHeightAndMarginTop:_0x43fc15}=_0x6e17eb,{startX:_0x1ba20d,startY:_0x1a6162}=_0x1586d9,{endX:_0xedeb1f,endY:_0x592543}=_0x22ec40,_0x2d838e=_0xedeb1f-_0x1ba20d,_0xb3148d=_0x592543-_0x1a6162,_0x4965d3={'labelPosition':_0x1a6162-_0x43fc15>=K?_0x3d6b2d(0x3a4):_0x3d6b2d(0x27c),'sheetID':_0x4aa80c,'range':_0x444a88,'color':_0xea79fa,'name':_0x1626ad,'selection':_0x2d11fd,'left':_0x1ba20d,'top':_0x1a6162,'width':_0x2d838e,'height':_0xb3148d,'evented':!0x1,'zIndex':xt};return new Fe(_0x1626ad,_0x4965d3);});_0x2bba78[_0x5c1194(0x1bd)](_0x48edc4,At),this['_cursors']=new Set(_0x48edc4);}[_0xf8a214(0x20b)](){const _0x5a479c=_0xf8a214;var _0x32d49d;(_0x32d49d=this['_cursors'])==null||_0x32d49d['forEach'](_0x2fda6f=>_0x2fda6f[_0x5a479c(0x2d7)]());}[_0xf8a214(0x2b9)](){const _0x342849=_0xf8a214;return J[_0x342849(0x208)](this['_context'][_0x342849(0x26c)],this['_context']);}};Ee=yt([he(0x1,a['Inject'](J[_0xf8a214(0x256)])),he(0x2,a['Inject'](F)),he(0x3,a[_0xf8a214(0x31a)](a['ThemeService']))],Ee);function $t(_0x450d2d){const _0x576fae=_0xf8a214,_0xef270a=new Map();return _0x450d2d['forEach'](_0x5a50f2=>{const _0x49654c=_0x3a58;if(_0xef270a['has'](_0x5a50f2[_0x49654c(0x32b)])){const _0xc2e5d1=_0xef270a['get'](_0x5a50f2[_0x49654c(0x32b)]);_0xc2e5d1[_0x49654c(0x2ff)]+=',\x20'+_0x5a50f2[_0x49654c(0x2ff)];}else _0xef270a['set'](_0x5a50f2[_0x49654c(0x32b)],_0x5a50f2);}),Array[_0x576fae(0x195)](_0xef270a[_0x576fae(0x1dc)]());}var Bt=Object[_0xf8a214(0x3f6)],Ft=(_0x3221d0,_0x5cf089,_0x55a8a1,_0x2e13d6)=>{const _0x1c3812=_0xf8a214;for(var _0x11fd43=_0x2e13d6>0x1?void 0x0:_0x2e13d6?Bt(_0x5cf089,_0x55a8a1):_0x5cf089,_0x13e680=_0x3221d0[_0x1c3812(0x3b4)]-0x1,_0x1a3494;_0x13e680>=0x0;_0x13e680--)(_0x1a3494=_0x3221d0[_0x13e680])&&(_0x11fd43=_0x1a3494(_0x11fd43)||_0x11fd43);return _0x11fd43;},x=(_0x5d8df2,_0x609bf6)=>(_0x528a32,_0x56e2b5)=>_0x609bf6(_0x528a32,_0x56e2b5,_0x5d8df2);let Z=class extends a['Disposable']{constructor(_0x2136b9,_0x2e5fdc,_0x3ace33,_0x59f0a4,_0x43d3ec,_0x52c502){const _0x3fe51a=_0xf8a214;super(),this['_beforeCloseService']=_0x2136b9,this[_0x3fe51a(0x295)]=_0x2e5fdc,this[_0x3fe51a(0x2d4)]=_0x3ace33,this[_0x3fe51a(0x291)]=_0x59f0a4,this[_0x3fe51a(0x16f)]=_0x43d3ec,this[_0x3fe51a(0x336)]=_0x52c502,this[_0x3fe51a(0x161)](),this[_0x3fe51a(0x2eb)]();}[_0xf8a214(0x161)](){const _0x124a13=_0xf8a214;this[_0x124a13(0x297)](this[_0x124a13(0x3ec)][_0x124a13(0x15c)](()=>{const _0x27b4f0=_0x124a13;if(this[_0x27b4f0(0x295)][_0x27b4f0(0x3fb)]['size'])return this[_0x27b4f0(0x336)]['t'](_0x27b4f0(0x3bf));}));}[_0xf8a214(0x2eb)](){const _0xf2e495=_0xf8a214;this[_0xf2e495(0x297)](this[_0xf2e495(0x2d4)]['event$'][_0xf2e495(0x1dd)](_0x938c9f=>{const _0x4f6a88=_0xf2e495;_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x305)]&&this[_0x4f6a88(0x291)][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)]['Warning'],'content':this[_0x4f6a88(0x336)]['t']('collaboration.single-unit.warning')}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x272)]&&this[_0x4f6a88(0x291)][_0x4f6a88(0x293)]({'type':T['MessageType'][_0x4f6a88(0x242)],'content':this[_0x4f6a88(0x336)]['t'](_0x4f6a88(0x2a7))}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x32e)]&&this[_0x4f6a88(0x16f)][_0x4f6a88(0x293)]({'title':this[_0x4f6a88(0x336)]['t']('permission.title'),'content':this['_localeService']['t'](_0x4f6a88(0x1e7)),'type':_0x4f6a88(0x249),'duration':0x0}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)]['CONFLICT']&&this[_0x4f6a88(0x291)]['show']({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x235)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x938c9f[_0x4f6a88(0x2a3)]+')'}),_0x938c9f['id']===u['CollaborationUIEventId'][_0x4f6a88(0x3d2)]&&this['_messageService'][_0x4f6a88(0x293)]({'type':T['MessageType']['Warning'],'content':this[_0x4f6a88(0x336)]['t'](_0x938c9f[_0x4f6a88(0x2a3)]||'')}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x1c4)]&&this['_messageService'][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x242)],'content':this[_0x4f6a88(0x336)]['t']('session.will-retry')}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)][_0x4f6a88(0x3eb)]&&this['_messageService'][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x235)],'content':this['_localeService']['t'](_0x4f6a88(0x162))}),_0x938c9f['id']===u[_0x4f6a88(0x3ab)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4f6a88(0x291)][_0x4f6a88(0x293)]({'type':T[_0x4f6a88(0x39e)][_0x4f6a88(0x235)],'content':this['_localeService']['t'](_0x4f6a88(0x23f))});}));}};Z=Ft([x(0x0,R[_0xf8a214(0x230)]),x(0x1,u[_0xf8a214(0x204)]),x(0x2,a['Inject'](u[_0xf8a214(0x152)])),x(0x3,R[_0xf8a214(0x379)]),x(0x4,R[_0xf8a214(0x2f0)]),x(0x5,a[_0xf8a214(0x31a)](a[_0xf8a214(0x19f)]))],Z);const kt=_0xf8a214(0x37b),Le={};var jt=Object['getOwnPropertyDescriptor'],Yt=(_0x26b107,_0x3474ca,_0x23356f,_0x9ce3d4)=>{const _0x449591=_0xf8a214;for(var _0x54c1e7=_0x9ce3d4>0x1?void 0x0:_0x9ce3d4?jt(_0x3474ca,_0x23356f):_0x3474ca,_0x323a9f=_0x26b107[_0x449591(0x3b4)]-0x1,_0x211fec;_0x323a9f>=0x0;_0x323a9f--)(_0x211fec=_0x26b107[_0x323a9f])&&(_0x54c1e7=_0x211fec(_0x54c1e7)||_0x54c1e7);return _0x54c1e7;},Me=(_0x584bf4,_0x4d0518)=>(_0x8df12,_0x19e2ef)=>_0x4d0518(_0x8df12,_0x19e2ef,_0x584bf4);function _0x55eb(){const _0x2bf3bc=['subscribeEvent','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_docTransformIMECacheService','_registerDependencies','_commandService','setItem','isFormulaId','_scene','_revisionService','9586AYqaHI','_releaseCalculationLimit','unit','parse','_handleHeartbeatEvent','contains','sessionTicket','transformRemoteChangeset','CLOSE_ROOM','flatMap','random','_updateSubUnitFromURLParams','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','IRenderManagerService','application/json','defs','clearTimeout','_transformHistoryAndStateStack','bottom','_createSocketURL','tag','setParam','RECT','SetWorksheetActivateCommand','toStringTag','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Rect','MoveRangeCommandId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','actions','_range','status$','hovered','/universer-api/license/formula/limit/status','m2Prime','result','startColumn','ACTIVE_UNIT_EVENT_CHANNEL','univer-flex\x20univer-items-center','_messageService','APPLY_REJECT','show','_context','_localCacheService','Disposable','disposeWithMe','onPointerLeave$','_handleHover','unitID','getUniverSheetInstance','formula.calculation.waiting','/universer-api/license/formula/limit/done','LICENSE_IMPORT_SIZE_EXCEEDED','replace','REDEMPTION_CODE_NOT_STARTED','addHandlerCallback','_session','data','_docSyncEditingCollabCursorService','IConfigService','getSheetBySheetId','collaboration.closeRoom','collab-text-anchor-','newValue','DocSkeletonManagerService','_refRangeService','fillText','USER_NOT_FOUND','transformMutation','3417573IYVbMh','IUIPartsService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','42665CNehSA','post','touchDependencies','CHANGESET_REVISION_CONFILICT','CollaborationDataLoaderController','LOGIN_TOKEN_PROCESSING_FAILED','blue.400','_getSheetObject','makeDirty','getCurrentRevOfUnit','transformStateCache','getColorFromTheme','getVpScrollXYInfoByPosToVp','getLocalCacheKey','COLORS','CollaborationController','save','DOC_RANGE_TYPE','mergeOverrideWithDependencies','defIds','MUTATION','executeCommand','propertyIsEnumerable','_render','250218olXLXz','setInterval','useCallback','next','arc','init','stringify','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','sheetId','_transformService','_collaborationUIEventService','debug','HEADER_MENU','dispose','RemoteUniscriptService','DocIMEInputManagerService','editingUnit','WebSocketService','DeleteRangeMoveLeftCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_eventUnsubscribe','syncEditingCollabCursor','_hovered','MOBILE_HAS_BEEN_BOUND','_docTransformSelectionsService','shift','_entities','transformIMECache','INTERNAL_ERROR','IDocClipboardService','_handleEvent','univer-mr-2\x20univer-flex\x20univer-text-xl','_unitOnClients','_initEvent','then','_setupSubUnitSync','color','_docStateChangeManagerService','INotificationService','_updateCollabCursors','getCellPositionByOffset','Plugin','APPLY_PERMISSION_DENIED','loadUnit','indexOf','INVALID_ARGUMENT','getSkeleton','[RemoteUniscriptService]:\x20no\x20focused\x20unit','round','clsx','_removeClearOtherTimer','collab-text-range-','UNAUTHENTICATED','name','source','PY_RUNTIME_SCRIPT_ERROR','getCurrent','svg','setStateCache','OTHER_CLIENT_EDITING','addEventListener','fillStyle','ENTITLE_NEED_BILLING_ADDRESS','1648VMsiZt','NOT_FOUND','m1Prime','NodePositionConvertToCursor','transform','_toggleOffline','disableLocalCache','_clearOtherTimers','handleInsertCol','APPLY_NON_SEQUENTIAL_REVISION','_docSkeletonManagerService','_univerInstanceService','getRenderById','TOO_MANY_REQUESTS','getformulaLimitStatusUrl','_drawAnchor','distinctUntilChanged','Inject','getTypeOfUnitDisposed$','activeSheet$','INVITE_CODE_ALREADY_BOUND','jiqing.500','endRow','currentColor','debounce','getFocusedUnit','getUnit','prototype','getCollabCursors$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','LICENSE_DISTRO_REJECTED','_status$','measureText','getUnhiddenWorksheets','selection','Tools','attrs','PERMISSION_DENIED','SNAPSHOT_INVALID_SNAPSHOT','roomMembers','WECHAT_HAS_BEEN_BOUND','requireSession','InsertColCommandId','_initCommandExecutedListener','DocCollaborationEntity','_localeService','transformSelections','DEFAULT_WS_SESSION_TICKET_URL','currentUsage','_startDocCollabCursor','url(#$1','registerDependencies','REDEMPTION_INVALID_CODE','clipPath','DisposableCollection','Vector2','ENTITLE_REPORT_LIMIT_EXCEED','has','_cursorShapes','cursorInfo','getActiveSheet','push','_lastPointer','body','getRangePointData','some','searchParams','_showGuardMessage','_anchor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','createInstance','entries','type','HTTPService','PENDING','TEXT_RANGE_LAYER_INDEX','Tooltip','univerjs-icon\x20univerjs-icon-','functionsExecutedState','row','substring','Unknown\x20user','getStateCache','CollaborationSessionService','onTransformChange$','_document','_transformPreviousActiveRange','ISocketService','UNIVER_DOC','CURRENT_STATUS_CANNOT_OPERATE','#FFF','REDEMPTION_CODE_HAS_BEEN_CREATED','getUnitId','hasOwnProperty','delete','RevisionService','apply','?taskId=','fill','assignAColorForMemberID','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo$','takeUntil','idSuffix','use','CanceledError','sessionStatus$','_docTransformStateCacheService','ILogService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','RefRangeService','_configService','IMessageService','IImageIoService','collaboration-client-ui.config','InsertRangeMoveDownCommandId','setShapeProps','M0\x200H16V16H0z','now','APPLY_REVISION_CONFILICT','send','subunit','call','createSocket','size','UNDEFINED','createIdentifier','collabStatus.offline','IUniverInstanceService','isTransformMutationsWithChangesetSuccess','onMouseMove','INVITE_CODE_HAS_BEEN_UES','fromEvent','CONNECTOR_DATA_TOO_LARGE','handleInsertRangeMoveDown','_assignedColors','fromEventSubject','UniverInstanceType','collab-rect-range-','selections','TEXT','CommandType','_themeService','min','setUndoRedoMutationParamsCache','map','ICommandService','range','ThemeService','MessageType','YUUMI_CONNECTOR_URL_NOT_FOUND','_getSessionTicket','[CollaborationDataLoaderController]','REDEMPTION_USER_NOT_ELIGIBLE','_scheduleClearOtherTimer','top','_pollingInterval','isArray','_hover','_transformUndoRedoStack','_lastResponseTimestamp','UniverCollaborationClientUIPlugin','CollaborationUIEventId','popstate','current','getDocRanges','startRow','redoState','_memberService','set','ColorKit','length','toString','xlink:href','handleDeleteRangeMoveUp','LOCAL_CACHE_INTERVAL','/universer-api/license/formula/limit/start','replaceDocRanges','IRemoteInstanceService','getConfig','getSheetId','collabStatus.fetchMiss','collaboration-client.offline-data-not-saved','DocSelectionManagerService','useRef','_textBubble','_startCalculationLimit','_injector','_initResize','collab-client.tooltip.reconnect','SetFormulaCalculationStartMutation','colorChannel1','runOnServer','_clearPolling','textRanges','div','YUUMI_ASYNCIO_CANCELLED','_colorIndex','BrowserCollaborationSocketService','_updateURLWithCurrentState','limitInfo','JOIN_ROOM_FAILED','_collabCursorState$','getOffsetConfig','_scheduleHeartbeat','_docClipboardService','_id','isTransformMutationFailure','DesktopCollaborationStatusDisplayController','WebURLService','_docSkeleton','_labelPosition','RegularPolygon','setConfig','ILocalStorageService','updateOfflineData','getOwnPropertySymbols','CollaborationEvent','removeParam','onPointerMove$','170uunjjT','getTypeOfUnitAdded$','_cursorInfo$','_heartbeatTimer','assign','_ensureSubject','SOCKET_FAILED','_beforeCloseService','children','PAYMENT_CHANNEL_NOT_SUPPORT','registerRefRange','ENTITLE_CHAT_LIMIT_EXCEED','Subject','jsx','LICENSE_EXPORT_SIZE_EXCEEDED','_online','evenodd','getOwnPropertyDescriptor','_toggleOnline','location','combineLatest','maxFormulaLimit','saveTaskMap','NodePositionConvertToRectRange','_saveCache','FormulaExecuteStageType','_init','_anchorDot','concat','_onCursorDelete','4387170vbnGPz','_getAnchorBounding','UPDATE_CURSOR','onStarting','unsubscribe','OTHER_CLIENTS_EDITING','entityInit$','green.600','releaseFormulaLimitUrl','registerComponent','includes','throttleTime','EMAIL_HAS_BEEN_BOUND','beginPath','closePath','pipe','replaceState','RemoveColCommandId','_send','YUUMI_ALL_TABLES_IS_INVALID','Shape','SetSelectionsOperation','currentSkeleton$','SetTextSelectionsOperation','runId','doc.mutation.rich-text-editing','getRelativeToViewportCoord','sheetID','undoState','ranges','href','USERS_LEAVE','CollaborationUIEventService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','extend','_drawRectRange','toRgbString','mask','formula.calculation.started','getUndoRedoMutationParamsCache','history','UniverCollaborationClientPlugin','registerBeforeClose','stageInfo','complete','ITransformService','getAncestorScale','_setupBeforeClosingHandler','session.connection-failed','saveImage','_drawTextRange','FETCH_MISS','fillRule','_getScale','YUUMI_UNABLE_LOAD_URL','black','YUUMI_AI_RUN_FAILED','AWAITING_WITH_PENDING','OffLineIcon','endColumn','generateRandomId','_notificationService','code','YUUMI_RATE_OVER_LIMIT','NOT_COLLAB','Optional','SYNCED','_collabCursorController','InsertRangeMoveRightCommandId','collabStatus.synced','_maxFormulaLimit','split','_urlService','mapTo','_taskIds','toDisposable','url(#off-line-icon_clip0_910_343)','_localStorageService','exhaustSavingTask','LOGIN_FAILED','REDEMPTION_CODE_INACTIVE','setTimeout','SUCCESS','roomMembers$','dispose$','yellow.400','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_disabled','_initDependencies','params','_httpService','_getMergeRange','RxDisposable','_hideTimer','DataLoaderService','totalFormulasToCalculate','_getFormulaLimitStatus','debounceTime','Injector','from','USER_IS_ANONYMOUS','YUUMI_NO_CUBOID_FOR_QUESTION','FormulaExecutedStateType','_startSheetCollabCursor','getViewport','whenReady','height','merge','START_CALCULATION','LocaleService','lineTo','registerRenderModule','getColor','handleInsertRow','_initEntityListener','currentTheme$','33plceop','_setFormulaLimitStatus','onLocalMutation','mutations','_selfUnitIDs','ENSURE_SNAPSHOT_EXECUTION','_instanceService','translate(.97)','loadOfflineData','_checkCalculationAvailable','onRendered','ISnapshotServerService','moveTo','deepClone','_updateLocalCursor','http://www.w3.org/2000/svg','Success','_refreshCollabCursors','reconnect','event$','getMergeData','23775324gIgcWX','_color','addObjects','engine','isFormulaString','handleIRemoveCol','handleMoveRange','_shapes','override','SOCKET_FAILED_RETRY','Workbook','asObservable','_colorAssignService','getActiveRange','_onCursorUpdate','_backgroundColor','InsertRowCommandId','handleDeleteRangeMoveLeft','eventID','_cursor','_getSaveTimeout','Failed','2905818PumkNy','0\x200\x2016\x2016','defineProperty','AUTHORIZE_CODE_ILLEGAL','RemoveRowCommandId','font','width','get','CONFLICT','_cachedData','_registerRenderDependencies','values','subscribe','_collaborationController','subUnitId','SheetsSelectionsService','icon','_uiPartsService','BehaviorSubject','switchMap','_sheetSkeletonManagerService','_config','permission.content','max','getCurrentUnitForType','ALREADY_EXISTS','UnitStatus','setAlpha','0\x200\x2017\x2016','DocStateChangeManagerService','ONLINE','transformByState','_name','forEach','forwardRef','_unitStatus','getCoordByCell','column','_cursors','docStateChange$','INVITE_CODE_REQUIRED','isEditing','MOBILE_VERIFY_CODE_MISMATCH','rgba(255,\x20255,\x20255,\x200.01)','_syncEditingCollabCursorService','drawWith','addClipboardHook','ENTITLE_DUP_SUBSCRIPTION','transformMutationsWithChangeset','path','_initStatusComponent','ILocalCacheService','text','_collabSessionService','getValue','getSheetObject','SHEET_VIEWPORT_KEY','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_removeCollabCursors','pushState','getCellMatrix','jsxs','_saveTaskMap','YUUMI_URL_COL_OUT_OF_RANGE','createElement','8caMRJZ','_entityInit$','collabCursorState$','collabStatus.conflict','APPLY_DUPLICATED','filter','beforeCommandExecuted','runRefRangeMutations','_currentUsage','className','UNRECOGNIZED','triggerDblclick','parseInt','uni.network.url-service','_applyCommand','SNAPSHOT_HAS_BEEN_REMOVED','disposeUnit','enableLocalCache','373FVwvcz','UNIVER_SHEET','Module','1em','displayName','REDEMPTION_CODE_FULLY_REDEEMED','clearInterval','_renderManagerService','LOCAL_CACHE_INTERVAL_KEY','white','unitId','add','IBeforeCloseService','_logService','CollaborationStatus','addObject','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','Error','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getMember','YUUMI_SUBSCRIPTION_NOT_FOUND','skeleton','executionId','search','on-line-icon','_roomMembers$','red.300','session.collaboration-timeout','VIEW_MAIN','off-line-icon_clip0_910_343','Warning','_draw','_initStatusListener','unshift','DeleteRangeMoveUpCommandId','EffectRefRangId','onCommandExecuted','error','UniverIcon','...','_handleJoinEvent','backgroundColor','getParam','COMPLETION_FINISHED','RichTextEditingMutation','_onRefRangeChange','USER_NOT_INVITED_CODE','resize','_checkAndWaitForCalculationPermission','findNodePositionByCharIndex','SheetSkeletonManagerService','restore','MemberService','with','hide','useDependency','getMemberID','_initCommandInterceptor','string','trim','_hasFormulaInDirtyRanges'];_0x55eb=function(){return _0x2bf3bc;};return _0x55eb();}let Q=class{constructor(_0x3c5d1d,_0x4af6f9){const _0x38e74b=_0xf8a214;this[_0x38e74b(0x2d3)]=_0x3c5d1d,this['_renderManagerService']=_0x4af6f9;}[_0xf8a214(0x2e5)](_0x1ef8b9){const _0x4c1e0d=_0xf8a214;this['_transformUndoRedoStack'](_0x1ef8b9),this[_0x4c1e0d(0x35f)](_0x1ef8b9);}[_0xf8a214(0x271)](_0xf9899a){const _0x563d10=_0xf8a214,{unitID:_0x56aa20}=_0xf9899a,_0x30f4e0=this[_0x563d10(0x22b)][_0x563d10(0x315)](_0x56aa20)[_0x563d10(0x259)](p[_0x563d10(0x2d9)]),{redoCache:_0x574cb4}=_0x30f4e0['getUndoRedoMutationParamsCache']();if(_0x574cb4[_0x563d10(0x3b4)]===0x0)return _0xf9899a;let _0x4d49f5=a[_0x563d10(0x32c)]['deepClone'](_0xf9899a[_0x563d10(0x1a9)][0x0]);for(let _0x570fd6=0x0;_0x570fd6<_0x574cb4[_0x563d10(0x3b4)];_0x570fd6++){const _0x36b912={'id':_0x563d10(0x14b),'params':{..._0x574cb4[_0x570fd6]}},_0x5d86d0=this[_0x563d10(0x2d3)][_0x563d10(0x2ae)](_0x4d49f5,_0x36b912,!0x1);if(g[_0x563d10(0x3d8)](_0x5d86d0))throw _0x5d86d0[_0x563d10(0x249)];_0x4d49f5=_0x5d86d0[_0x563d10(0x30b)];}return{...a[_0x563d10(0x32c)]['deepClone'](_0xf9899a),'mutations':[_0x4d49f5]};}[_0xf8a214(0x3a8)](_0x35c641){const _0x2d5dea=_0xf8a214,{unitID:_0x42aee7}=_0x35c641,_0x14f2e3=this[_0x2d5dea(0x22b)]['getRenderById'](_0x42aee7)['with'](p[_0x2d5dea(0x2d9)]),{undoCache:_0x2d902c,redoCache:_0x5e6db4}=_0x14f2e3[_0x2d5dea(0x159)]();if(_0x2d902c[_0x2d5dea(0x3b4)]===0x0||_0x5e6db4[_0x2d5dea(0x3b4)]===0x0)return;const _0x21a13e=[],_0x10b833=[];let _0xba0764=a[_0x2d5dea(0x32c)][_0x2d5dea(0x1b3)](_0x35c641['mutations'][0x0]),_0x49b8b8=a['Tools'][_0x2d5dea(0x1b3)](_0x35c641['mutations'][0x0]);for(let _0x4af280=_0x2d902c[_0x2d5dea(0x3b4)]-0x1;_0x4af280>=0x0;_0x4af280--){const _0x320cd5={'id':_0x2d5dea(0x14b),'params':{..._0x2d902c[_0x4af280]}},_0x21bb1e={'id':'doc.mutation.rich-text-editing','params':{..._0x5e6db4[_0x4af280]}},_0x5d2438=this[_0x2d5dea(0x2d3)][_0x2d5dea(0x2ae)](_0xba0764,_0x320cd5,!0x1),_0x426450=this['_transformService'][_0x2d5dea(0x2ae)](_0x49b8b8,_0x21bb1e,!0x1);if(g[_0x2d5dea(0x3d8)](_0x5d2438))throw _0x5d2438[_0x2d5dea(0x249)];if(g[_0x2d5dea(0x3d8)](_0x426450))throw _0x426450[_0x2d5dea(0x249)];_0x21a13e[_0x2d5dea(0x245)](_0x5d2438[_0x2d5dea(0x28c)][_0x2d5dea(0x18b)]),_0x10b833['unshift'](_0x426450[_0x2d5dea(0x28c)][_0x2d5dea(0x18b)]),_0xba0764=_0x5d2438[_0x2d5dea(0x30b)],_0x49b8b8=_0x426450[_0x2d5dea(0x30b)];}_0x14f2e3[_0x2d5dea(0x399)]({'undoCache':_0x21a13e,'redoCache':_0x10b833});}[_0xf8a214(0x35f)](_0x32c8a0){const _0xcae86e=_0xf8a214,{unitID:_0x46bb9d}=_0x32c8a0,_0x36a93f=this[_0xcae86e(0x22b)][_0xcae86e(0x315)](_0x46bb9d)[_0xcae86e(0x259)](p[_0xcae86e(0x2d9)]),_0xca9203=_0x36a93f[_0xcae86e(0x1c8)]();if(_0xca9203==null)return;const _0x3fe3bc=[{'id':_0xcae86e(0x14b),'params':{'unitId':_0x32c8a0[_0xcae86e(0x29a)],'actions':null,'textRanges':[_0xca9203]}}],_0x3fc72e=this['_transformService'][_0xcae86e(0x201)](_0x32c8a0,_0x3fe3bc);if(!g[_0xcae86e(0x38a)](_0x3fc72e))throw _0x3fc72e[_0xcae86e(0x249)];const _0x457e02=_0x3fc72e[_0xcae86e(0x28c)][0x0][_0xcae86e(0x18b)][_0xcae86e(0x3cb)];Array[_0xcae86e(0x3a6)](_0x457e02)&&_0x457e02[_0xcae86e(0x3b4)]&&_0x36a93f['setActiveRange'](_0x457e02[0x0]);}};Q=Yt([Me(0x0,g[_0xf8a214(0x15f)]),Me(0x1,C['IRenderManagerService'])],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x22db53,_0x149754,_0x1eb144,_0x36984c)=>{for(var _0x3a54dd=_0x36984c>0x1?void 0x0:_0x36984c?Ht(_0x149754,_0x1eb144):_0x149754,_0x42faa0=_0x22db53['length']-0x1,_0x579a82;_0x42faa0>=0x0;_0x42faa0--)(_0x579a82=_0x22db53[_0x42faa0])&&(_0x3a54dd=_0x579a82(_0x3a54dd)||_0x3a54dd);return _0x3a54dd;},ue=(_0x804e7c,_0x14a44f)=>(_0xe8fc3b,_0x386184)=>_0x14a44f(_0xe8fc3b,_0x386184,_0x804e7c);function _0x3a58(_0x16cfc7,_0xedb69a){const _0x55ebb1=_0x55eb();return _0x3a58=function(_0x3a5834,_0x230637){_0x3a5834=_0x3a5834-0x13e;let _0x1da430=_0x55ebb1[_0x3a5834];return _0x1da430;},_0x3a58(_0x16cfc7,_0xedb69a);}let ee=class{constructor(_0x40a055,_0x501d93,_0x3774c9){const _0x31d8b8=_0xf8a214;this[_0x31d8b8(0x3c4)]=_0x40a055,this[_0x31d8b8(0x2d3)]=_0x501d93,this[_0x31d8b8(0x2ef)]=_0x3774c9;}[_0xf8a214(0x2bc)](_0x20fa2b){const _0x17cec3=_0xf8a214;this[_0x17cec3(0x27b)](_0x20fa2b);}[_0xf8a214(0x271)](_0x3d0dcc){const _0x59aebd=_0xf8a214,{unitID:_0x26982e}=_0x3d0dcc,{collaboration:_0x5c67a7}=this[_0x59aebd(0x2ef)][_0x59aebd(0x35b)](_0x26982e);if(_0x5c67a7[_0x59aebd(0x3b4)]===0x0)return _0x3d0dcc;let _0x3ea9fe=a[_0x59aebd(0x32c)][_0x59aebd(0x1b3)](_0x3d0dcc[_0x59aebd(0x1a9)][0x0]);for(let _0x58a3a9=0x0;_0x58a3a9<_0x5c67a7[_0x59aebd(0x3b4)];_0x58a3a9++){const _0x49a033={'id':_0x59aebd(0x14b),'params':{'unitId':_0x5c67a7[_0x58a3a9][_0x59aebd(0x22e)],..._0x5c67a7[_0x58a3a9][_0x59aebd(0x3b0)]}},_0x411187=this[_0x59aebd(0x2d3)][_0x59aebd(0x2ae)](_0x3ea9fe,_0x49a033,!0x1);if(g[_0x59aebd(0x3d8)](_0x411187))throw _0x411187[_0x59aebd(0x249)];_0x3ea9fe=_0x411187['m1Prime'];}return{...a[_0x59aebd(0x32c)]['deepClone'](_0x3d0dcc),'mutations':[_0x3ea9fe]};}[_0xf8a214(0x27b)](_0x2f1a42){const _0x68b1f6=_0xf8a214,{unitID:_0x7244de}=_0x2f1a42,{history:_0x2d94a3,collaboration:_0xea3458}=this[_0x68b1f6(0x2ef)]['getStateCache'](_0x7244de);if(_0x2d94a3[_0x68b1f6(0x3b4)]===0x0&&_0xea3458['length']===0x0)return;const _0x4793b7=[],_0x565735=[];let _0x39ed35=a['Tools'][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]),_0x234b02=a[_0x68b1f6(0x32c)][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]);for(let _0x185afe=_0x2d94a3['length']-0x1;_0x185afe>=0x0;_0x185afe--){const _0x504127={'id':_0x68b1f6(0x14b),'params':{'unitId':_0x2d94a3[_0x185afe][_0x68b1f6(0x22e)],..._0x2d94a3[_0x185afe]['undoState']}},_0x189e72={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d94a3[_0x185afe][_0x68b1f6(0x22e)],..._0x2d94a3[_0x185afe][_0x68b1f6(0x3b0)]}},_0x21f2fc=this['_transformService'][_0x68b1f6(0x2ae)](_0x39ed35,_0x504127,!0x1),_0x1b2ba3=this['_transformService'][_0x68b1f6(0x2ae)](_0x234b02,_0x189e72,!0x1);if(g[_0x68b1f6(0x3d8)](_0x21f2fc))throw _0x21f2fc[_0x68b1f6(0x249)];if(g[_0x68b1f6(0x3d8)](_0x1b2ba3))throw _0x1b2ba3[_0x68b1f6(0x249)];_0x4793b7['unshift']({..._0x2d94a3[_0x185afe],'undoState':_0x21f2fc[_0x68b1f6(0x28c)][_0x68b1f6(0x18b)],'redoState':_0x1b2ba3[_0x68b1f6(0x28c)]['params']}),_0x39ed35=_0x21f2fc['m1Prime'],_0x234b02=_0x1b2ba3[_0x68b1f6(0x30b)];}_0x39ed35=a['Tools'][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]),_0x234b02=a['Tools'][_0x68b1f6(0x1b3)](_0x2f1a42[_0x68b1f6(0x1a9)][0x0]);for(let _0xe851c2=_0xea3458[_0x68b1f6(0x3b4)]-0x1;_0xe851c2>=0x0;_0xe851c2--){const _0x384a19={'id':_0x68b1f6(0x14b),'params':{'unitId':_0xea3458[_0xe851c2][_0x68b1f6(0x22e)],..._0xea3458[_0xe851c2][_0x68b1f6(0x14e)]}},_0x1289ea={'id':_0x68b1f6(0x14b),'params':{'unitId':_0xea3458[_0xe851c2][_0x68b1f6(0x22e)],..._0xea3458[_0xe851c2]['redoState']}},_0x50523c=this[_0x68b1f6(0x2d3)][_0x68b1f6(0x2ae)](_0x39ed35,_0x384a19,!0x1),_0x5b4929=this['_transformService']['transformMutation'](_0x234b02,_0x1289ea,!0x1);if(g['isTransformMutationFailure'](_0x50523c))throw _0x50523c[_0x68b1f6(0x249)];if(g[_0x68b1f6(0x3d8)](_0x5b4929))throw _0x5b4929[_0x68b1f6(0x249)];_0x565735[_0x68b1f6(0x245)]({..._0xea3458[_0xe851c2],'undoState':_0x50523c[_0x68b1f6(0x28c)]['params'],'redoState':_0x5b4929[_0x68b1f6(0x28c)]['params']}),_0x39ed35=_0x50523c[_0x68b1f6(0x30b)],_0x234b02=_0x5b4929[_0x68b1f6(0x30b)];}this[_0x68b1f6(0x2ef)][_0x68b1f6(0x304)](_0x7244de,{'history':_0x4793b7,'collaboration':_0x565735});}};ee=Wt([ue(0x0,a['Inject'](a[_0xf8a214(0x194)])),ue(0x1,g[_0xf8a214(0x15f)]),ue(0x2,a[_0xf8a214(0x31a)](p[_0xf8a214(0x1ee)]))],ee);var Vt=Object[_0xf8a214(0x3f6)],Gt=(_0x530aa2,_0x26a2b5,_0x2d7246,_0xb113e4)=>{const _0x1a0ca3=_0xf8a214;for(var _0xc7e818=_0xb113e4>0x1?void 0x0:_0xb113e4?Vt(_0x26a2b5,_0x2d7246):_0x26a2b5,_0x266548=_0x530aa2[_0x1a0ca3(0x3b4)]-0x1,_0x51b4ac;_0x266548>=0x0;_0x266548--)(_0x51b4ac=_0x530aa2[_0x266548])&&(_0xc7e818=_0x51b4ac(_0xc7e818)||_0xc7e818);return _0xc7e818;},Ae=(_0x195022,_0xce509c)=>(_0x15e49f,_0x3d6b4f)=>_0xce509c(_0x15e49f,_0x3d6b4f,_0x195022);let te=class{constructor(_0x21a368,_0x17e152){const _0xa6d3d9=_0xf8a214;this[_0xa6d3d9(0x3c4)]=_0x21a368,this[_0xa6d3d9(0x2d3)]=_0x17e152;}['transformSelections'](_0x42272c){const _0x1a4322=_0xf8a214;var _0x5b1d54;const _0x1757c3=this[_0x1a4322(0x3c4)][_0x1a4322(0x1d8)](V[_0x1a4322(0x3c0)]),_0x4f3dc2=(_0x5b1d54=_0x1757c3[_0x1a4322(0x3ae)]())!=null?_0x5b1d54:[];if(_0x4f3dc2[_0x1a4322(0x3b4)]===0x0)return;const _0x43e021=_0x42272c['unitID'],_0x1c9278=[{'id':_0x1a4322(0x14b),'params':{'unitId':_0x43e021,'actions':null,'textRanges':_0x4f3dc2}}],_0x3785b3=this[_0x1a4322(0x2d3)][_0x1a4322(0x201)](_0x42272c,_0x1c9278);if(!g[_0x1a4322(0x38a)](_0x3785b3))throw _0x3785b3[_0x1a4322(0x249)];const _0x372b6e=_0x3785b3['m2Prime'][0x0]['params']['textRanges'];Array[_0x1a4322(0x3a6)](_0x372b6e)&&_0x372b6e[_0x1a4322(0x3b4)]&&_0x1757c3[_0x1a4322(0x3ba)](_0x372b6e,{'unitId':_0x43e021,'subUnitId':_0x43e021},!0x1);}};te=Gt([Ae(0x0,a['Inject'](a[_0xf8a214(0x194)])),Ae(0x1,g[_0xf8a214(0x15f)])],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x93f6f2,_0x25c8ff,_0x9cf20e,_0x5512be)=>{const _0x3be424=_0xf8a214;for(var _0x2a131d=_0x5512be>0x1?void 0x0:_0x5512be?Xt(_0x25c8ff,_0x9cf20e):_0x25c8ff,_0x3c28d0=_0x93f6f2[_0x3be424(0x3b4)]-0x1,_0xb36cd7;_0x3c28d0>=0x0;_0x3c28d0--)(_0xb36cd7=_0x93f6f2[_0x3c28d0])&&(_0x2a131d=_0xb36cd7(_0x2a131d)||_0x2a131d);return _0x2a131d;},U=(_0x5ee22e,_0x5e9266)=>(_0x151126,_0x382c75)=>_0x5e9266(_0x151126,_0x382c75,_0x5ee22e);let se=class extends a['Disposable']{constructor(_0x3ef340,_0x2e84f9,_0x39e859,_0x8e50c,_0x47ba4a,_0x55458f,_0xa5e63f,_0x354656){const _0x2bdb42=_0xf8a214;super(),_(this,_0x2bdb42(0x328),new I[(_0x2bdb42(0x1e3))](u[_0x2bdb42(0x232)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x3ef340,this['_collaborationController']=_0x2e84f9,this['_docTransformIMECacheService']=_0x39e859,this[_0x2bdb42(0x374)]=_0x8e50c,this['_docTransformSelectionsService']=_0x47ba4a,this[_0x2bdb42(0x2a4)]=_0x55458f,this['_messageService']=_0xa5e63f,this['_localeService']=_0x354656,this[_0x2bdb42(0x1a4)]());}[_0xf8a214(0x1a4)](){const _0x490435=_0xf8a214;this[_0x490435(0x297)](this[_0x490435(0x1de)][_0x490435(0x409)][_0x490435(0x1dd)](_0x420bce=>{const _0x3f760b=_0x490435,_0xe12fb9=this['_docStateChangeManagerService'][_0x3f760b(0x1f8)][_0x3f760b(0x1dd)](_0x2b63c0=>{const _0x420169=_0x3f760b;if(_0x2b63c0==null)return;const {unitId:_0x388643,redoState:_0x584e06,commandId:_0xd5810f}=_0x2b63c0;if(_0x388643!==_0x420bce['unitID'])return;const _0x368c6d={'id':_0xd5810f,'type':a[_0x420169(0x396)][_0x420169(0x2c6)],'params':{'unitId':_0x388643,'actions':_0x584e06[_0x420169(0x287)],'textRanges':null}};_0x420bce[_0x420169(0x1a8)](_0x368c6d);});if(_0x420bce[_0x3f760b(0x297)](_0xe12fb9),_0x420bce instanceof u[_0x3f760b(0x335)]){const _0x48e7f8={'onTransformIME':_0x57829f=>this['_docTransformIMECacheService']['transformIMECache'](_0x57829f),'onTransformState':_0x4233f5=>this[_0x3f760b(0x374)][_0x3f760b(0x2bc)](_0x4233f5),'onTransformSelections':_0x261743=>this[_0x3f760b(0x2e2)][_0x3f760b(0x337)](_0x261743),'onSyncEditingCollabCursor':_0x158ae8=>this['_docSyncEditingCollabCursorService'][_0x3f760b(0x2df)](_0x158ae8),'onTransformRemoteChangesetByIMECache':_0x2633a1=>this[_0x3f760b(0x263)][_0x3f760b(0x271)](_0x2633a1),'onTransformRemoteChangesetByStateCache':_0x32fd08=>this[_0x3f760b(0x374)][_0x3f760b(0x271)](_0x32fd08)};_0x420bce[_0x3f760b(0x2a1)](_0x48e7f8);}}));}};se=Kt([U(0x0,a[_0xf8a214(0x31a)](p[_0xf8a214(0x1ee)])),U(0x1,a[_0xf8a214(0x31a)](u[_0xf8a214(0x2c1)])),U(0x2,a[_0xf8a214(0x31a)](Q)),U(0x3,a[_0xf8a214(0x31a)](ee)),U(0x4,a[_0xf8a214(0x31a)](te)),U(0x5,a[_0xf8a214(0x31a)](Re)),U(0x6,R[_0xf8a214(0x379)]),U(0x7,a['Inject'](a[_0xf8a214(0x19f)]))],se);var G=(_0x341774=>(_0x341774[_0x341774[_0xf8a214(0x386)]=0x0]='UNDEFINED',_0x341774[_0x341774['OK']=0x1]='OK',_0x341774[_0x341774['INTERNAL_ERROR']=0x2]=_0xf8a214(0x2e6),_0x341774[_0x341774[_0xf8a214(0x32e)]=0x3]=_0xf8a214(0x32e),_0x341774[_0x341774['NOT_FOUND']=0x4]=_0xf8a214(0x30a),_0x341774[_0x341774[_0xf8a214(0x2fe)]=0x5]='UNAUTHENTICATED',_0x341774[_0x341774[_0xf8a214(0x1ea)]=0x6]='ALREADY_EXISTS',_0x341774[_0x341774[_0xf8a214(0x2f7)]=0x7]='INVALID_ARGUMENT',_0x341774[_0x341774[_0xf8a214(0x316)]=0x8]=_0xf8a214(0x316),_0x341774[_0x341774[_0xf8a214(0x24f)]=0x9]='COMPLETION_FINISHED',_0x341774[_0x341774[_0xf8a214(0x181)]=0xa]=_0xf8a214(0x181),_0x341774[_0x341774[_0xf8a214(0x1fb)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x341774[_0x341774[_0xf8a214(0x2b1)]=0xc]=_0xf8a214(0x2b1),_0x341774[_0x341774['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x341774[_0x341774[_0xf8a214(0x153)]=0xe]=_0xf8a214(0x153),_0x341774[_0x341774[_0xf8a214(0x1d4)]=0xf]=_0xf8a214(0x1d4),_0x341774[_0x341774[_0xf8a214(0x2b7)]=0x10]=_0xf8a214(0x2b7),_0x341774[_0x341774[_0xf8a214(0x362)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x341774[_0x341774['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x341774[_0x341774['USER_NOT_FOUND']=0xc9]=_0xf8a214(0x2ad),_0x341774[_0x341774[_0xf8a214(0x196)]=0xca]=_0xf8a214(0x196),_0x341774[_0x341774[_0xf8a214(0x2b5)]=0x1389]=_0xf8a214(0x2b5),_0x341774[_0x341774[_0xf8a214(0x32f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x341774[_0x341774[_0xf8a214(0x221)]=0x1772]=_0xf8a214(0x221),_0x341774[_0x341774['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xf8a214(0x1ab),_0x341774[_0x341774[_0xf8a214(0x292)]=0x1b59]=_0xf8a214(0x292),_0x341774[_0x341774[_0xf8a214(0x312)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x341774[_0x341774[_0xf8a214(0x380)]=0x1b5b]=_0xf8a214(0x380),_0x341774[_0x341774[_0xf8a214(0x2f4)]=0x1b5c]=_0xf8a214(0x2f4),_0x341774[_0x341774[_0xf8a214(0x216)]=0x1b5d]=_0xf8a214(0x216),_0x341774[_0x341774[_0xf8a214(0x38e)]=0x1f41]=_0xf8a214(0x38e),_0x341774[_0x341774[_0xf8a214(0x36d)]=0x2329]=_0xf8a214(0x36d),_0x341774[_0x341774['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xf8a214(0x376),_0x341774[_0x341774['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xf8a214(0x29e),_0x341774[_0x341774[_0xf8a214(0x3f3)]=0x232c]=_0xf8a214(0x3f3),_0x341774[_0x341774[_0xf8a214(0x327)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x341774[_0x341774[_0xf8a214(0x168)]=0x2711]=_0xf8a214(0x168),_0x341774[_0x341774[_0xf8a214(0x210)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x341774[_0x341774[_0xf8a214(0x171)]=0x2713]=_0xf8a214(0x171),_0x341774[_0x341774[_0xf8a214(0x238)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x341774[_0x341774[_0xf8a214(0x197)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x341774[_0x341774[_0xf8a214(0x3cd)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x341774[_0x341774[_0xf8a214(0x34e)]=0x271c]=_0xf8a214(0x34e),_0x341774[_0x341774['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0xf8a214(0x145),_0x341774[_0x341774[_0xf8a214(0x283)]=0x271e]=_0xf8a214(0x283),_0x341774[_0x341774[_0xf8a214(0x16a)]=0x271f]=_0xf8a214(0x16a),_0x341774[_0x341774[_0xf8a214(0x39f)]=0x2720]=_0xf8a214(0x39f),_0x341774[_0x341774[_0xf8a214(0x301)]=0x2af9]=_0xf8a214(0x301),_0x341774[_0x341774[_0xf8a214(0x38c)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x341774[_0x341774['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x341774[_0x341774[_0xf8a214(0x1f9)]=0x2ee3]=_0xf8a214(0x1f9),_0x341774[_0x341774[_0xf8a214(0x252)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x341774[_0x341774['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xf8a214(0x31d),_0x341774[_0x341774[_0xf8a214(0x331)]=0x32c9]=_0xf8a214(0x331),_0x341774[_0x341774[_0xf8a214(0x2e1)]=0x32ca]=_0xf8a214(0x2e1),_0x341774[_0x341774[_0xf8a214(0x13e)]=0x32cb]=_0xf8a214(0x13e),_0x341774[_0x341774[_0xf8a214(0x326)]=0x36b1]=_0xf8a214(0x326),_0x341774[_0x341774[_0xf8a214(0x2dd)]=0x36b2]=_0xf8a214(0x2dd),_0x341774[_0x341774[_0xf8a214(0x200)]=0x36b3]=_0xf8a214(0x200),_0x341774[_0x341774[_0xf8a214(0x3ee)]=0x36b4]=_0xf8a214(0x3ee),_0x341774[_0x341774[_0xf8a214(0x3f0)]=0x3715]=_0xf8a214(0x3f0),_0x341774[_0x341774[_0xf8a214(0x341)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x341774[_0x341774[_0xf8a214(0x308)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x341774[_0x341774[_0xf8a214(0x33d)]=0x3a99]=_0xf8a214(0x33d),_0x341774[_0x341774[_0xf8a214(0x182)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x341774[_0x341774[_0xf8a214(0x229)]=0x3a9b]=_0xf8a214(0x229),_0x341774[_0x341774[_0xf8a214(0x2a0)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x341774[_0x341774['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0xf8a214(0x3a2),_0x341774[_0x341774[_0xf8a214(0x236)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x341774[_0x341774['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0xf8a214(0x364),_0x341774[_0x341774[_0xf8a214(0x21c)]=-0x1]='UNRECOGNIZED',_0x341774))(G||{});function qt(_0x230174){const _0x4e641f=_0xf8a214;var _0xc58d18,_0x8db8a0;const _0x333e71=(_0xc58d18=_0x230174[_0x4e641f(0x15d)])==null?void 0x0:_0xc58d18['stage'],_0xcfe074=((_0x8db8a0=_0x230174[_0x4e641f(0x15d)])==null?void 0x0:_0x8db8a0[_0x4e641f(0x191)])||0x0;return _0x333e71===B[_0x4e641f(0x3fe)][_0x4e641f(0x19e)]&&_0xcfe074>0x0;}function zt(_0x1f8368){const _0x59e1d9=_0xf8a214;return _0x1f8368[_0x59e1d9(0x357)]===B[_0x59e1d9(0x198)][_0x59e1d9(0x184)];}var Jt=Object[_0xf8a214(0x3f6)],Zt=(_0x19b03e,_0x7d35ed,_0x25e64c,_0x5466c9)=>{const _0x11e90a=_0xf8a214;for(var _0x1d645e=_0x5466c9>0x1?void 0x0:_0x5466c9?Jt(_0x7d35ed,_0x25e64c):_0x7d35ed,_0x1319f2=_0x19b03e[_0x11e90a(0x3b4)]-0x1,_0x5ce9ca;_0x1319f2>=0x0;_0x1319f2--)(_0x5ce9ca=_0x19b03e[_0x1319f2])&&(_0x1d645e=_0x5ce9ca(_0x1d645e)||_0x1d645e);return _0x1d645e;},A=(_0x47ed51,_0x49c457)=>(_0x3061a3,_0x5425c5)=>_0x49c457(_0x3061a3,_0x5425c5,_0x47ed51);const Qt=_0xf8a214(0x28b),es=_0xf8a214(0x3b9),ts=_0xf8a214(0x29d);let ie=class extends a[_0xf8a214(0x296)]{constructor(_0x1645bc,_0x412041,_0x750f3a,_0x4ae29b,_0x3b60e2,_0xe0572c,_0xe1322){const _0x57014c=_0xf8a214;super(),_(this,_0x57014c(0x3a5),null),_(this,_0x57014c(0x178),0x0),_(this,_0x57014c(0x21a),0x0),_(this,_0x57014c(0x17c),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x57014c(0x291)]=_0x1645bc,this['_commandService']=_0x412041,this[_0x57014c(0x378)]=_0x750f3a,this[_0x57014c(0x18c)]=_0x4ae29b,this[_0x57014c(0x314)]=_0x3b60e2,this[_0x57014c(0x231)]=_0xe0572c,this['_localeService']=_0xe1322,this[_0x57014c(0x25d)]());}[_0xf8a214(0x25d)](){const _0x17c9ad=_0xf8a214;this[_0x17c9ad(0x297)](this[_0x17c9ad(0x265)][_0x17c9ad(0x218)]((_0x5bef6a,_0x1ba6c3)=>{const _0x2e6de1=_0x17c9ad;if(_0x5bef6a['id']!==B[_0x2e6de1(0x3c7)]['id'])return;const _0x288f00=_0x5bef6a['params'];if(!this['_hasFormulaInDirtyRanges'](_0x288f00['dirtyRanges']))return;if(!this[_0x2e6de1(0x1af)]())throw this[_0x2e6de1(0x254)](_0x5bef6a,_0x1ba6c3),this[_0x2e6de1(0x34c)](),new a[(_0x2e6de1(0x372))]();})),this[_0x17c9ad(0x297)](this[_0x17c9ad(0x265)][_0x17c9ad(0x248)]((_0x456b31,_0x49be43)=>{const _0x11ec92=_0x17c9ad;if(_0x456b31['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x583cc7=_0x456b31[_0x11ec92(0x18b)];if(qt(_0x583cc7)){const _0x5ac2a7=a[_0x11ec92(0x16e)]();this[_0x11ec92(0x17c)][_0x11ec92(0x346)](_0x5ac2a7),this[_0x11ec92(0x3c3)](_0x5ac2a7);}else{if(zt(_0x583cc7)&&this[_0x11ec92(0x17c)][_0x11ec92(0x3b4)]>0x0){const _0x43a914=this['_taskIds'][_0x11ec92(0x2e3)]();this['_releaseCalculationLimit'](_0x43a914);}}}));}['dispose'](){const _0xc8ab6e=_0xf8a214;super['dispose'](),this[_0xc8ab6e(0x3ca)](),this[_0xc8ab6e(0x17c)]=[],this[_0xc8ab6e(0x21a)]=0x0,this[_0xc8ab6e(0x178)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xf8a214(0x254)](_0xd13cde,_0x1bc8aa){const _0x337dcf=_0xf8a214;for(let _0xbd5f27=0x0;_0xbd5f27<0x1e;_0xbd5f27++)try{if(await this[_0x337dcf(0x192)](),this[_0x337dcf(0x1af)]()){this[_0x337dcf(0x220)](_0xd13cde,_0x1bc8aa),this[_0x337dcf(0x291)][_0x337dcf(0x293)]({'content':this['_localeService']['t'](_0x337dcf(0x158)),'type':T[_0x337dcf(0x39e)][_0x337dcf(0x1b6)]});return;}await new Promise(_0x91d20e=>{const _0x109c2b=_0x337dcf;this[_0x109c2b(0x3a5)]=window[_0x109c2b(0x183)](_0x91d20e,0x3e8);});}catch(_0x3e1c26){this[_0x337dcf(0x231)][_0x337dcf(0x249)](_0x3e1c26);}this[_0x337dcf(0x291)][_0x337dcf(0x293)]({'content':this[_0x337dcf(0x336)]['t']('formula.calculation.unable'),'type':T[_0x337dcf(0x39e)]['Error']});}[_0xf8a214(0x220)](_0x53e9e9,_0x12cb41){const _0x44091e=_0xf8a214;try{this['_commandService'][_0x44091e(0x2c7)](_0x53e9e9['id'],_0x53e9e9[_0x44091e(0x18b)],_0x12cb41);}catch(_0x532b0f){this[_0x44091e(0x231)][_0x44091e(0x249)](_0x532b0f);}}[_0xf8a214(0x1a7)](_0x159e30,_0x4497a4){const _0x46d84b=_0xf8a214;_0x4497a4<this[_0x46d84b(0x3a9)]||(this[_0x46d84b(0x3a9)]=_0x4497a4,this[_0x46d84b(0x178)]=Number[_0x46d84b(0x21e)](_0x159e30[_0x46d84b(0x3fa)]),this[_0x46d84b(0x21a)]=Number[_0x46d84b(0x21e)](_0x159e30[_0x46d84b(0x339)]));}async[_0xf8a214(0x3c3)](_0x46fa58){const _0x2605e1=_0xf8a214;var _0x25ee37,_0x40caec;const _0xa547c6=Date[_0x2605e1(0x37f)]();try{const _0x4773ea=((_0x25ee37=this[_0x2605e1(0x378)][_0x2605e1(0x3bc)](u[_0x2605e1(0x262)]))==null?void 0x0:_0x25ee37['startFormulaLimitUrl'])||es,_0x38a825=(await this[_0x2605e1(0x18c)][_0x2605e1(0x2b3)](_0x4773ea,{'body':JSON[_0x2605e1(0x2d0)]({'taskId':_0x46fa58})}))[_0x2605e1(0x348)];if(((_0x40caec=_0x38a825[_0x2605e1(0x249)])==null?void 0x0:_0x40caec[_0x2605e1(0x170)])!==G['OK'])return;this[_0x2605e1(0x1a7)](_0x38a825[_0x2605e1(0x3d1)],_0xa547c6);}catch(_0x44a09f){this[_0x2605e1(0x231)][_0x2605e1(0x249)](_0x44a09f);}}async[_0xf8a214(0x192)](_0x3117a6){const _0x231aeb=_0xf8a214;var _0x358813,_0x4a1010;const _0x2ed3c4=Date[_0x231aeb(0x37f)]();try{const _0x51ab16=((_0x358813=this[_0x231aeb(0x378)][_0x231aeb(0x3bc)](u[_0x231aeb(0x262)]))==null?void 0x0:_0x358813[_0x231aeb(0x317)])||Qt,_0x292f27=_0x3117a6?_0x51ab16+_0x231aeb(0x36a)+encodeURIComponent(_0x3117a6):_0x51ab16,_0x6a3a82=(await this[_0x231aeb(0x18c)][_0x231aeb(0x1d8)](_0x292f27))[_0x231aeb(0x348)];if(((_0x4a1010=_0x6a3a82['error'])==null?void 0x0:_0x4a1010[_0x231aeb(0x170)])!==G['OK'])return;this[_0x231aeb(0x1a7)](_0x6a3a82[_0x231aeb(0x3d1)],_0x2ed3c4);}catch(_0x321db3){this[_0x231aeb(0x231)]['error'](_0x321db3);}}async[_0xf8a214(0x26b)](_0x2747ec){const _0x4ff490=_0xf8a214;var _0xd3c70d,_0x32aef6;const _0x392c0e=Date[_0x4ff490(0x37f)]();try{const _0x3e939a=((_0xd3c70d=this[_0x4ff490(0x378)]['getConfig'](u[_0x4ff490(0x262)]))==null?void 0x0:_0xd3c70d[_0x4ff490(0x40b)])||ts,_0xe0aee7=(await this[_0x4ff490(0x18c)][_0x4ff490(0x2b3)](_0x3e939a,{'body':JSON[_0x4ff490(0x2d0)]({'taskId':_0x2747ec})}))[_0x4ff490(0x348)];if(((_0x32aef6=_0xe0aee7[_0x4ff490(0x249)])==null?void 0x0:_0x32aef6[_0x4ff490(0x170)])!==G['OK'])return;this[_0x4ff490(0x1a7)](_0xe0aee7['limitInfo'],_0x392c0e);}catch(_0x5176a3){this[_0x4ff490(0x231)][_0x4ff490(0x249)](_0x5176a3);}}[_0xf8a214(0x1af)](){const _0x3f09d8=_0xf8a214;return this[_0x3f09d8(0x178)]===0x0?!0x0:this[_0x3f09d8(0x178)]-this['_currentUsage']>0x0;}[_0xf8a214(0x3ca)](){const _0x37f2b5=_0xf8a214;this[_0x37f2b5(0x3a5)]&&(clearTimeout(this[_0x37f2b5(0x3a5)]),this[_0x37f2b5(0x3a5)]=null);}[_0xf8a214(0x34c)](){const _0x4423b6=_0xf8a214;this[_0x4423b6(0x291)]['show']({'content':this['_localeService']['t'](_0x4423b6(0x29c)),'type':T[_0x4423b6(0x39e)]['Loading']});}[_0xf8a214(0x260)](_0x5747fa){const _0xe3697e=_0xf8a214;for(const _0x2f33a2 of _0x5747fa){const {unitId:_0x2b97c1,sheetId:_0x421ffd,range:_0x39fb29}=_0x2f33a2,_0x2878c0=this[_0xe3697e(0x314)][_0xe3697e(0x323)](_0x2b97c1);if(!_0x2878c0)continue;const _0x4e626b=_0x2878c0[_0xe3697e(0x2a6)](_0x421ffd);if(!_0x4e626b)continue;const _0x15cc8d=_0x4e626b[_0xe3697e(0x20d)]();for(let _0x434693=_0x39fb29[_0xe3697e(0x3af)];_0x434693<=_0x39fb29[_0xe3697e(0x31f)];_0x434693++)for(let _0x27640e=_0x39fb29[_0xe3697e(0x28e)];_0x27640e<=_0x39fb29[_0xe3697e(0x16d)];_0x27640e++){const _0x564fd5=_0x15cc8d[_0xe3697e(0x207)](_0x434693,_0x27640e);if(_0x564fd5&&(a[_0xe3697e(0x1bf)](_0x564fd5['f'])||a[_0xe3697e(0x267)](_0x564fd5['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0xf8a214(0x31a)](R[_0xf8a214(0x379)])),A(0x1,a[_0xf8a214(0x39b)]),A(0x2,a[_0xf8a214(0x2a5)]),A(0x3,a[_0xf8a214(0x31a)](X[_0xf8a214(0x352)])),A(0x4,a[_0xf8a214(0x389)]),A(0x5,a[_0xf8a214(0x375)]),A(0x6,a[_0xf8a214(0x31a)](a[_0xf8a214(0x19f)]))],ie);var ss=Object[_0xf8a214(0x3f6)],is=(_0x55f962,_0x1d4d1f,_0x5623be,_0x5cc9ea)=>{for(var _0x3e81e4=_0x5cc9ea>0x1?void 0x0:_0x5cc9ea?ss(_0x1d4d1f,_0x5623be):_0x1d4d1f,_0x130108=_0x55f962['length']-0x1,_0x3620ca;_0x130108>=0x0;_0x130108--)(_0x3620ca=_0x55f962[_0x130108])&&(_0x3e81e4=_0x3620ca(_0x3e81e4)||_0x3e81e4);return _0x3e81e4;},Ie=(_0x137b27,_0x2c5b3b)=>(_0x56dec9,_0x2f754d)=>_0x2c5b3b(_0x56dec9,_0x2f754d,_0x137b27);let Ce=class extends a[_0xf8a214(0x296)]{constructor(_0x396561,_0x5cf09d,_0x5211e0){const _0x22f2d9=_0xf8a214;super(),_(this,_0x22f2d9(0x1da),new Map()),_(this,_0x22f2d9(0x20f),new Map()),_(this,'_disabled',!0x1),(this[_0x22f2d9(0x378)]=_0x396561,this[_0x22f2d9(0x17f)]=_0x5cf09d,this[_0x22f2d9(0x269)]=_0x5211e0);}[_0xf8a214(0x30f)](){const _0x16e7f3=_0xf8a214;this[_0x16e7f3(0x189)]=!0x0;}[_0xf8a214(0x223)](){const _0x1e3688=_0xf8a214;this[_0x1e3688(0x189)]=!0x1;}get[_0xf8a214(0x3fb)](){const _0x2145ca=_0xf8a214;return this[_0x2145ca(0x20f)];}[_0xf8a214(0x2d7)](){const _0x59b9a6=_0xf8a214;this[_0x59b9a6(0x180)]()[_0x59b9a6(0x2ec)](()=>super[_0x59b9a6(0x2d7)]());}async[_0xf8a214(0x1ae)](_0x381059){const _0x3c68e4=_0xf8a214;return this['_disabled']?null:this[_0x3c68e4(0x17f)]['getItem'](u[_0x3c68e4(0x2bf)](_0x381059));}async['saveOfflineData'](_0x396877,_0x51b4c4){const _0x4419fb=_0xf8a214;return!!this['_localStorageService'][_0x4419fb(0x266)](_0x396877,_0x51b4c4);}[_0xf8a214(0x3e0)](_0x1d87bc,_0x18b746,_0x30b210,_0x398d7e){const _0x1afabd=_0xf8a214,_0x29a78c=this[_0x1afabd(0x269)][_0x1afabd(0x2bb)](_0x1d87bc);this['_cachedData'][_0x1afabd(0x3b2)](_0x1d87bc,{'unitID':_0x1d87bc,'type':_0x18b746,'awaitingChangeset':_0x30b210,'mutations':_0x398d7e,'rev':_0x29a78c}),this[_0x1afabd(0x20f)][_0x1afabd(0x342)](_0x1d87bc)||this['_scheduleSaving'](_0x1d87bc);}['_scheduleSaving'](_0x12d331){const _0x181d3c=_0xf8a214,_0x2a6887=this[_0x181d3c(0x1cf)]();_0x2a6887===0x0?this[_0x181d3c(0x3fd)](_0x12d331):this['_saveTaskMap']['set'](_0x12d331,setTimeout(()=>this['_saveCache'](_0x12d331),_0x2a6887));}[_0xf8a214(0x1cf)](){const _0x41352b=_0xf8a214;var _0x446e74;return(_0x446e74=this[_0x41352b(0x378)][_0x41352b(0x3bc)](u[_0x41352b(0x22c)]))!=null?_0x446e74:u[_0x41352b(0x3b8)];}[_0xf8a214(0x3fd)](_0x52bb8a){const _0x1efebe=_0xf8a214,_0x331caf=this[_0x1efebe(0x20f)][_0x1efebe(0x1d8)](_0x52bb8a);return _0x331caf!==void 0x0&&window['clearTimeout'](_0x331caf),this[_0x1efebe(0x17f)][_0x1efebe(0x266)](u[_0x1efebe(0x2bf)](_0x52bb8a),this[_0x1efebe(0x1da)]['get'](_0x52bb8a))[_0x1efebe(0x2ec)](()=>this[_0x1efebe(0x20f)][_0x1efebe(0x367)](_0x52bb8a));}async[_0xf8a214(0x180)](){const _0xbddfb9=_0xf8a214,_0x2153d6=[];this[_0xbddfb9(0x20f)]['forEach']((_0x392171,_0x49df50)=>{const _0x3004b7=_0xbddfb9;window['clearTimeout'](_0x392171),_0x2153d6[_0x3004b7(0x346)](this[_0x3004b7(0x3fd)](_0x49df50)[_0x3004b7(0x2ec)](()=>{const _0x2686d0=_0x3004b7;this[_0x2686d0(0x20f)][_0x2686d0(0x367)](_0x49df50);}));}),await Promise['all'](_0x2153d6);}};Ce=is([Ie(0x0,a[_0xf8a214(0x2a5)]),Ie(0x1,a[_0xf8a214(0x3df)]),Ie(0x2,a['Inject'](g[_0xf8a214(0x368)]))],Ce);class ke extends a[_0xf8a214(0x18e)]{constructor(){const _0x381c2e=_0xf8a214;super(),_(this,'urlChange$'),this['urlChange$']=I['fromEvent'](window,_0x381c2e(0x3ac))[_0x381c2e(0x141)](I[_0x381c2e(0x36f)](this['dispose$']),I['shareReplay'](0x1),I[_0x381c2e(0x17b)](void 0x0));}[_0xf8a214(0x27f)](_0xc54658,_0x276d40,_0x371e3a=!0x1){const _0x16586d=_0xf8a214,_0x1233b7=new URL(window['location'][_0x16586d(0x150)]);_0x1233b7[_0x16586d(0x34b)]['set'](_0xc54658,_0x276d40),_0x371e3a?window['history'][_0x16586d(0x142)]('','',_0x1233b7[_0x16586d(0x3b5)]()):window['history'][_0x16586d(0x20c)]('','',_0x1233b7['toString']());}[_0xf8a214(0x3e3)](_0x54e05c,_0x5af06d=!0x1){const _0xec13a9=_0xf8a214,_0x53bd81=new URL(window[_0xec13a9(0x3f8)][_0xec13a9(0x150)]);_0x53bd81['searchParams']['delete'](_0x54e05c),_0x5af06d?window[_0xec13a9(0x15a)][_0xec13a9(0x142)]('','',_0x53bd81['toString']()):window['history'][_0xec13a9(0x20c)]('','',_0x53bd81[_0xec13a9(0x3b5)]());}[_0xf8a214(0x24e)](_0x1ba902){const _0x27f2e5=_0xf8a214;var _0x10e5ad;return(_0x10e5ad=new URL(window[_0x27f2e5(0x3f8)][_0x27f2e5(0x150)])[_0x27f2e5(0x34b)]['get'](_0x1ba902))!=null?_0x10e5ad:void 0x0;}}var ns=Object[_0xf8a214(0x1d3)],rs=Object[_0xf8a214(0x3f6)],os=(_0x13fa9e,_0x404d35,_0x15f197)=>_0x404d35 in _0x13fa9e?ns(_0x13fa9e,_0x404d35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15f197}):_0x13fa9e[_0x404d35]=_0x15f197,as=(_0xa087ef,_0x9b24a9,_0xb9039f,_0x4a95a7)=>{const _0x54702b=_0xf8a214;for(var _0x2b29d4=_0x4a95a7>0x1?void 0x0:_0x4a95a7?rs(_0x9b24a9,_0xb9039f):_0x9b24a9,_0x112cee=_0xa087ef[_0x54702b(0x3b4)]-0x1,_0x46e268;_0x112cee>=0x0;_0x112cee--)(_0x46e268=_0xa087ef[_0x112cee])&&(_0x2b29d4=_0x46e268(_0x2b29d4)||_0x2b29d4);return _0x2b29d4;},de=(_0x5a13f7,_0x1d4747)=>(_0x22f496,_0x4e2405)=>_0x1d4747(_0x22f496,_0x4e2405,_0x5a13f7),cs=(_0x3a0a11,_0x2a1936,_0x4e8fae)=>os(_0x3a0a11,_0x2a1936+'',_0x4e8fae);const ls='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0xf8a214(0x3aa)]=class extends a[_0xf8a214(0x2f3)]{constructor(_0x355564=Le,_0x3899d6,_0xef86bc,_0x5abeb9){const _0x2c1f65=_0xf8a214;super(),this[_0x2c1f65(0x1e6)]=_0x355564,this['_renderManagerService']=_0x3899d6,this[_0x2c1f65(0x3c4)]=_0xef86bc,this[_0x2c1f65(0x378)]=_0x5abeb9;const {..._0x1f9104}=a[_0x2c1f65(0x19d)]({},Le,this['_config']);this[_0x2c1f65(0x378)][_0x2c1f65(0x3de)](kt,_0x1f9104);}[_0xf8a214(0x406)](){const _0x3d1353=_0xf8a214;this[_0x3d1353(0x264)](),this[_0x3d1353(0x18a)]();}[_0xf8a214(0x1b0)](){const _0xeaa336=_0xf8a214;this[_0xeaa336(0x1db)]();}[_0xf8a214(0x264)](){const _0x380d03=_0xf8a214;var _0x5d1ea2;const _0xd94bcf=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x380d03(0x360)],{'useClass':X[_0x380d03(0x2db)]}],[u[_0x380d03(0x204)],{'useClass':Ce}],[exports[_0x380d03(0x3d9)]],[se],[Z],[F],[fe],[exports[_0x380d03(0x2b6)]]];a[_0x380d03(0x33c)](this['_injector'],a[_0x380d03(0x2c4)](_0xd94bcf,(_0x5d1ea2=this['_config'])==null?void 0x0:_0x5d1ea2[_0x380d03(0x1c3)]));}[_0xf8a214(0x1db)](){const _0x345c58=_0xf8a214;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x345c58(0x392)]['UNIVER_DOC'],[ge])),this[_0x345c58(0x297)](this[_0x345c58(0x22b)][_0x345c58(0x1a1)](a[_0x345c58(0x392)][_0x345c58(0x225)],[Ee]));}[_0xf8a214(0x18a)](){const _0x1491fd=_0xf8a214;a[_0x1491fd(0x2b4)](this[_0x1491fd(0x3c4)],[[F],[exports[_0x1491fd(0x3d9)]],[se],[Z],[exports[_0x1491fd(0x2b6)]],[ie]]);}},cs(exports['UniverCollaborationClientUIPlugin'],'pluginName',ls),exports[_0xf8a214(0x3aa)]=as([a['DependentOn'](u[_0xf8a214(0x15b)]),de(0x1,C[_0xf8a214(0x277)]),de(0x2,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),de(0x3,a[_0xf8a214(0x2a5)])],exports[_0xf8a214(0x3aa)]);var _s=Object[_0xf8a214(0x3f6)],hs=(_0x17b909,_0x4fcd2b,_0x259bc4,_0x3de0ad)=>{for(var _0x194515=_0x3de0ad>0x1?void 0x0:_0x3de0ad?_s(_0x4fcd2b,_0x259bc4):_0x4fcd2b,_0x5746c6=_0x17b909['length']-0x1,_0x480a47;_0x5746c6>=0x0;_0x5746c6--)(_0x480a47=_0x17b909[_0x5746c6])&&(_0x194515=_0x480a47(_0x194515)||_0x194515);return _0x194515;},W=(_0xf9468b,_0x299f11)=>(_0x224f1a,_0x435a53)=>_0x299f11(_0x224f1a,_0x435a53,_0xf9468b);exports[_0xf8a214(0x3cf)]=class extends u['CollaborationSocketService']{constructor(_0x595a48,_0x404f0f,_0x520ef3,_0x473512,_0x6b2893){super(_0x595a48,_0x404f0f,_0x520ef3,_0x473512,_0x6b2893);}async[_0xf8a214(0x384)](_0x2c9544){const _0xc694ce=_0xf8a214,_0x2701a3=await this[_0xc694ce(0x3a0)](),_0x3ee265=this[_0xc694ce(0x27d)](_0x2c9544,_0x2701a3);return this['_doCreateSocket'](_0x3ee265);}['_createSocketURL'](_0x49cbfb,_0x43a29e){const _0x5a1ec3=_0xf8a214,_0x7989d6=typeof window>'u'?new URL(_0x49cbfb):new URL(_0x49cbfb,window[_0x5a1ec3(0x3f8)]['origin']);_0x7989d6[_0x5a1ec3(0x34b)]['set'](_0x5a1ec3(0x270),_0x43a29e);const _0x431d03=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x5a1ec3(0x23b)]);return _0x431d03[_0x5a1ec3(0x1d8)](_0x5a1ec3(0x14a))&&_0x7989d6[_0x5a1ec3(0x34b)][_0x5a1ec3(0x3b2)](_0x5a1ec3(0x14a),_0x431d03[_0x5a1ec3(0x1d8)](_0x5a1ec3(0x14a))),_0x7989d6[_0x5a1ec3(0x3b5)]();}async[_0xf8a214(0x3a0)](){const _0x5a6f35=_0xf8a214;var _0x4c637b,_0x15c9af,_0x19053f;const _0x4e739b=this[_0x5a6f35(0x378)][_0x5a6f35(0x3bc)](u[_0x5a6f35(0x262)]),_0x522ead=(_0x4c637b=_0x4e739b==null?void 0x0:_0x4e739b['wsSessionTicketUrl'])!=null?_0x4c637b:u[_0x5a6f35(0x338)];return(_0x19053f=(_0x15c9af=(await this['_httpService'][_0x5a6f35(0x1d8)](_0x522ead,{'headers':{'Content-Type':_0x5a6f35(0x278)}}))[_0x5a6f35(0x348)])==null?void 0x0:_0x15c9af['ticket'])!=null?_0x19053f:'';}},exports[_0xf8a214(0x3cf)]=hs([W(0x0,a[_0xf8a214(0x31a)](a[_0xf8a214(0x194)])),W(0x1,a['Inject'](X['HTTPService'])),W(0x2,a[_0xf8a214(0x2a5)]),W(0x3,a[_0xf8a214(0x375)]),W(0x4,g[_0xf8a214(0x1b1)])],exports[_0xf8a214(0x3cf)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x3290b1,_0x1a64af,_0x1e75e8,_0x4d9693)=>{for(var _0x217ea9=_0x4d9693>0x1?void 0x0:_0x4d9693?us(_0x1a64af,_0x1e75e8):_0x1a64af,_0x5b6e92=_0x3290b1['length']-0x1,_0x359e4c;_0x5b6e92>=0x0;_0x5b6e92--)(_0x359e4c=_0x3290b1[_0x5b6e92])&&(_0x217ea9=_0x359e4c(_0x217ea9)||_0x217ea9);return _0x217ea9;},Se=(_0x43de29,_0x37aeb4)=>(_0x4e3f7e,_0x2fa50c)=>_0x37aeb4(_0x4e3f7e,_0x2fa50c,_0x43de29);exports[_0xf8a214(0x2d8)]=class extends a[_0xf8a214(0x296)]{constructor(_0x3ad0c1,_0x35761b,_0x4f79d6){const _0x1fef8c=_0xf8a214;super(),this[_0x1fef8c(0x1ac)]=_0x3ad0c1,this['_httpService']=_0x35761b,this[_0x1fef8c(0x378)]=_0x4f79d6;}async[_0xf8a214(0x3c9)](_0x30e5b8,_0xd65f3d,_0x3abd26,..._0x22647e){const _0xedc868=_0xf8a214;var _0x172dee,_0xbbdc0c,_0x49555c,_0x4fe7c7;const _0x395cc5=this[_0xedc868(0x1ac)][_0xedc868(0x322)]();if(!_0x395cc5)throw new Error(_0xedc868(0x2f9));const _0x1144e2=((_0x172dee=this[_0xedc868(0x378)]['getConfig'](u[_0xedc868(0x234)]))!=null?_0x172dee:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x30e5b8+'/run/'+_0xd65f3d,_0x39681f=new URL(window[_0xedc868(0x3f8)]['href']),_0x3e3736={'scriptId':_0x30e5b8,'runId':(_0xbbdc0c=_0x39681f['searchParams']['get'](_0xedc868(0x14a)))!=null?_0xbbdc0c:'','function':_0xd65f3d,'unitId':_0x395cc5['getUnitId'](),'argsOfFunction':JSON[_0xedc868(0x2d0)](_0x22647e),'invokeId':(_0x49555c=_0x3abd26['invokeId'])!=null?_0x49555c:'','executionId':(_0x4fe7c7=_0x3abd26[_0xedc868(0x23a)])!=null?_0x4fe7c7:''};try{const _0x5a4601=await this[_0xedc868(0x18c)][_0xedc868(0x2b3)](_0x1144e2,{'body':_0x3e3736});return _0x5a4601[_0xedc868(0x348)][_0xedc868(0x249)]&&_0x5a4601[_0xedc868(0x348)][_0xedc868(0x249)][_0xedc868(0x170)]!==G['OK']?'Failed':_0x5a4601['body'][_0xedc868(0x28d)];}catch{return _0xedc868(0x1d0);}}},exports[_0xf8a214(0x2d8)]=Is([Se(0x0,a[_0xf8a214(0x389)]),Se(0x1,a[_0xf8a214(0x31a)](X[_0xf8a214(0x352)])),Se(0x2,a['IConfigService'])],exports['RemoteUniscriptService']);const Pe=0x7530,we=_0xf8a214(0x28f);class ds extends a[_0xf8a214(0x296)]{constructor(){const _0x2a9532=_0xf8a214;super(),_(this,_0x2a9532(0x3d7),a[_0x2a9532(0x16e)]()),_(this,_0x2a9532(0x1aa),new Set()),_(this,_0x2a9532(0x2ea),new Map()),_(this,_0x2a9532(0x3e8),null),_(this,_0x2a9532(0x310),new Map()),_(this,'_unitStatus',new Map()),this[_0x2a9532(0x3ff)]();}[_0xf8a214(0x2d7)](){const _0x3a2077=_0xf8a214;super[_0x3a2077(0x2d7)](),this[_0x3a2077(0x310)]['forEach']((_0x2c0e9e,_0x30fcdd)=>this['_removeClearOtherTimer'](_0x30fcdd)),this['_heartbeatTimer']&&window[_0x3a2077(0x22a)](this[_0x3a2077(0x3e8)]);}['getUnitStatus$'](_0x442163){const _0x493e2a=_0xf8a214;return this[_0x493e2a(0x3ea)](_0x442163)[_0x493e2a(0x141)](I[_0x493e2a(0x319)]());}[_0xf8a214(0x2da)](_0x500e4d){const _0x5e6fea=_0xf8a214;this[_0x5e6fea(0x1aa)][_0x5e6fea(0x385)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5e6fea(0x1aa)][_0x5e6fea(0x22f)](_0x500e4d),this[_0x5e6fea(0x144)]({'type':0x0,'memberID':this[_0x5e6fea(0x3d7)],'unitIDs':[_0x500e4d],'isForwarded':!0x1});}[_0xf8a214(0x222)](_0x5d360f){const _0x4eb282=_0xf8a214;this[_0x4eb282(0x1aa)][_0x4eb282(0x367)](_0x5d360f),this['_selfUnitIDs'][_0x4eb282(0x385)]===0x0&&this[_0x4eb282(0x3e8)]&&window['clearInterval'](this[_0x4eb282(0x3e8)]);}[_0xf8a214(0x3ff)](){const _0x21ea0e=_0xf8a214;this['disposeWithMe'](a[_0x21ea0e(0x17d)](I[_0x21ea0e(0x38d)](window,'storage')[_0x21ea0e(0x1dd)](_0x55523c=>{const _0x27e394=_0x21ea0e;if(_0x55523c['key']!==we||!_0x55523c[_0x27e394(0x2a9)])return;const _0x200ee1=JSON[_0x27e394(0x26d)](_0x55523c[_0x27e394(0x2a9)]);this[_0x27e394(0x2e8)](_0x200ee1);}))),window[_0x21ea0e(0x306)]('unload',()=>this[_0x21ea0e(0x144)]({'type':0x1,'memberID':this[_0x21ea0e(0x3d7)],'unitIDs':Array[_0x21ea0e(0x195)](this[_0x21ea0e(0x1aa)])}));}[_0xf8a214(0x2e8)](_0x1b569e){const _0x1592ee=_0xf8a214;switch(_0x1b569e[_0x1592ee(0x351)]){case 0x0:this[_0x1592ee(0x24c)](_0x1b569e);break;case 0x1:this['_handleLeaveEvent'](_0x1b569e);break;case 0x2:this[_0x1592ee(0x26e)](_0x1b569e);break;}}[_0xf8a214(0x24c)](_0x1fcb6c){const _0x5701f1=_0xf8a214,{unitIDs:_0x48d702,memberID:_0x4e99b2,isForwarded:_0x52ace8}=_0x1fcb6c;_0x48d702[_0x5701f1(0x1f2)](_0x891c0=>{const _0x190504=_0x5701f1;if(!_0x52ace8&&this[_0x190504(0x2ea)][_0x190504(0x342)](_0x891c0)&&this[_0x190504(0x3ea)](_0x891c0)[_0x190504(0x2cd)](u['UnitStatus'][_0x190504(0x408)]),!this[_0x190504(0x2ea)][_0x190504(0x342)](_0x891c0)||!this[_0x190504(0x2ea)][_0x190504(0x1d8)](_0x891c0)[_0x190504(0x342)](_0x4e99b2)){const _0x2c3b39=this['_unitOnClients'][_0x190504(0x1d8)](_0x891c0)||new Set();_0x2c3b39[_0x190504(0x22f)](_0x4e99b2),this['_unitOnClients'][_0x190504(0x3b2)](_0x891c0,_0x2c3b39),this['_scheduleClearOtherTimer'](_0x4e99b2);}}),_0x52ace8||this['_send']({'type':0x0,'memberID':this[_0x5701f1(0x3d7)],'unitIDs':[...this[_0x5701f1(0x1aa)]],'isForwarded':!0x0});}[_0xf8a214(0x3a3)](_0x6dd33e){const _0xa0e238=_0xf8a214;this[_0xa0e238(0x2fc)](_0x6dd33e);const _0x4e423f=window['setTimeout'](()=>{const _0x1b8462=_0xa0e238;this['_unitOnClients'][_0x1b8462(0x1f2)](_0x28b629=>{const _0x553f77=_0x1b8462;_0x28b629[_0x553f77(0x367)](_0x6dd33e);});},Pe*0x2);this[_0xa0e238(0x310)][_0xa0e238(0x3b2)](_0x6dd33e,_0x4e423f);}[_0xf8a214(0x2fc)](_0x27a63d){const _0x4ba0e3=_0xf8a214;if(this[_0x4ba0e3(0x310)]['has'](_0x27a63d)){const _0x247257=this['_clearOtherTimers'][_0x4ba0e3(0x1d8)](_0x27a63d);_0x247257&&window[_0x4ba0e3(0x27a)](_0x247257),this[_0x4ba0e3(0x310)][_0x4ba0e3(0x3b2)](_0x27a63d,null);}}['_handleLeaveEvent'](_0x289830){const _0x1c5483=_0xf8a214,{memberID:_0xf36fd,unitIDs:_0x29ec3e}=_0x289830;_0x29ec3e[_0x1c5483(0x1f2)](_0x272dfe=>{const _0x4ffcfe=_0x1c5483;var _0x342389;const _0xa3694d=this['_unitOnClients'][_0x4ffcfe(0x1d8)](_0x272dfe);_0xa3694d&&(_0xa3694d['delete'](_0xf36fd),(_0x342389=this['_ensureSubject'](_0x272dfe))==null||_0x342389[_0x4ffcfe(0x2cd)](_0xa3694d[_0x4ffcfe(0x385)]===0x0?u[_0x4ffcfe(0x1eb)]['NO_OTHER_CLIENTS_EDITING']:u[_0x4ffcfe(0x1eb)][_0x4ffcfe(0x408)]));}),this[_0x1c5483(0x2fc)](_0xf36fd);}[_0xf8a214(0x26e)](_0x28d43f){const _0x12ca27=_0xf8a214;this[_0x12ca27(0x3a3)](_0x28d43f['memberID']);}[_0xf8a214(0x144)](_0x2f5608){const _0x2e4568=_0xf8a214;localStorage[_0x2e4568(0x266)](we,JSON[_0x2e4568(0x2d0)](_0x2f5608));}[_0xf8a214(0x3d5)](){const _0x258f8a=_0xf8a214;this[_0x258f8a(0x3e8)]=window[_0x258f8a(0x2cb)](()=>{const _0x2542e3=_0x258f8a;this['_send']({'type':0x2,'memberID':this[_0x2542e3(0x3d7)]});},Pe);}[_0xf8a214(0x3ea)](_0x39b231){const _0x16186a=_0xf8a214;return this[_0x16186a(0x1f4)][_0x16186a(0x342)](_0x39b231)||this['_unitStatus'][_0x16186a(0x3b2)](_0x39b231,new I['BehaviorSubject'](u[_0x16186a(0x1eb)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x16186a(0x1d8)](_0x39b231);}}exports['IURLService']=Te,exports['SheetCollabCursorShape']=Fe,exports['WebBrowserSingleActiveUnitService']=ds,exports[_0xf8a214(0x3da)]=ke;
|
|
1
|
+
'use strict';const _0x6c52c3=_0xc584;(function(_0x327732,_0x2f751f){const _0xcb2f1b=_0xc584,_0x2d1689=_0x327732();while(!![]){try{const _0x2e74d2=parseInt(_0xcb2f1b(0x3e0))/0x1+-parseInt(_0xcb2f1b(0x38e))/0x2+-parseInt(_0xcb2f1b(0x290))/0x3+parseInt(_0xcb2f1b(0x396))/0x4+-parseInt(_0xcb2f1b(0x3d1))/0x5+parseInt(_0xcb2f1b(0x229))/0x6+-parseInt(_0xcb2f1b(0x253))/0x7*(parseInt(_0xcb2f1b(0x1f9))/0x8);if(_0x2e74d2===_0x2f751f)break;else _0x2d1689['push'](_0x2d1689['shift']());}catch(_0x270373){_0x2d1689['push'](_0x2d1689['shift']());}}}(_0x4304,0xc31cd));var Ge=Object['defineProperty'],Xe=(_0x2b62d7,_0xfd420a,_0x28aa7d)=>_0xfd420a in _0x2b62d7?Ge(_0x2b62d7,_0xfd420a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28aa7d}):_0x2b62d7[_0xfd420a]=_0x28aa7d,_=(_0x205676,_0x3a0135,_0x40dc51)=>Xe(_0x205676,typeof _0x3a0135!=_0x6c52c3(0x3b3)?_0x3a0135+'':_0x3a0135,_0x40dc51);Object[_0x6c52c3(0x3d2)](exports,Symbol[_0x6c52c3(0x1d5)],{'value':_0x6c52c3(0x419)});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(){const _0xa68dd1=_0x6c52c3;return O=Object[_0xa68dd1(0x376)]||function(_0x938469){const _0x5dcc5d=_0xa68dd1;for(var _0x720c70,_0x514965=0x1,_0x28b781=arguments[_0x5dcc5d(0x1f0)];_0x514965<_0x28b781;_0x514965++){_0x720c70=arguments[_0x514965];for(var _0x5ef009 in _0x720c70)Object[_0x5dcc5d(0x418)][_0x5dcc5d(0x28f)][_0x5dcc5d(0x3c4)](_0x720c70,_0x5ef009)&&(_0x938469[_0x5ef009]=_0x720c70[_0x5ef009]);}return _0x938469;},O[_0xa68dd1(0x435)](this,arguments);},ze=function(_0x502f12,_0x5bb590){const _0x273215=_0x6c52c3;var _0x13ead3={};for(var _0x15db27 in _0x502f12)Object[_0x273215(0x418)][_0x273215(0x28f)]['call'](_0x502f12,_0x15db27)&&_0x5bb590[_0x273215(0x433)](_0x15db27)<0x0&&(_0x13ead3[_0x15db27]=_0x502f12[_0x15db27]);if(_0x502f12!=null&&typeof Object[_0x273215(0x3e2)]==_0x273215(0x3b2)){for(var _0x313c84=0x0,_0x15db27=Object[_0x273215(0x3e2)](_0x502f12);_0x313c84<_0x15db27[_0x273215(0x1f0)];_0x313c84++)_0x5bb590['indexOf'](_0x15db27[_0x313c84])<0x0&&Object[_0x273215(0x418)]['propertyIsEnumerable'][_0x273215(0x3c4)](_0x502f12,_0x15db27[_0x313c84])&&(_0x13ead3[_0x15db27[_0x313c84]]=_0x502f12[_0x15db27[_0x313c84]]);}return _0x13ead3;},pe=L[_0x6c52c3(0x232)](function(_0x31697e,_0x460e1a){const _0x80f5d7=_0x6c52c3;var _0x205fd3=_0x31697e[_0x80f5d7(0x2ee)],_0x22c656=_0x31697e['id'],_0x5b938b=_0x31697e['className'],_0x5a4861=_0x31697e[_0x80f5d7(0x37e)],_0x520907=ze(_0x31697e,[_0x80f5d7(0x2ee),'id',_0x80f5d7(0x383),_0x80f5d7(0x37e)]),_0x5cb134=_0x80f5d7(0x292)[_0x80f5d7(0x316)](_0x22c656,'\x20')[_0x80f5d7(0x316)](_0x5b938b||'')[_0x80f5d7(0x408)](),_0x43c74d=L[_0x80f5d7(0x2c2)]('_'['concat'](Qe()));return ye(_0x205fd3,''['concat'](_0x22c656),{'defIds':_0x205fd3[_0x80f5d7(0x320)],'idSuffix':_0x43c74d['current']},O({'ref':_0x460e1a,'className':_0x5cb134},_0x520907),_0x5a4861);});function ye(_0x59d600,_0x4164f4,_0x55895a,_0x37ecf3,_0x2ad7ae){const _0x383789=_0x6c52c3;return L[_0x383789(0x3ab)](_0x59d600[_0x383789(0x1c4)],O(O({'key':_0x4164f4},Je(_0x59d600,_0x55895a,_0x2ad7ae)),_0x37ecf3),(Ze(_0x59d600,_0x55895a)[_0x383789(0x269)]||[])[_0x383789(0x32a)](function(_0x5c0f94,_0x1da221){const _0x2d7f55=_0x383789;return ye(_0x5c0f94,''[_0x2d7f55(0x316)](_0x4164f4,'-')['concat'](_0x59d600[_0x2d7f55(0x1c4)],'-')[_0x2d7f55(0x316)](_0x1da221),_0x55895a,void 0x0,_0x2ad7ae);}));}function Je(_0x4061f9,_0x26ddd8,_0x308a8c){const _0x5464c6=_0x6c52c3;var _0x50d9e5=O({},_0x4061f9[_0x5464c6(0x3fc)]);_0x308a8c!=null&&_0x308a8c[_0x5464c6(0x261)]&&_0x50d9e5[_0x5464c6(0x2fb)]===_0x5464c6(0x261)&&(_0x50d9e5[_0x5464c6(0x2fb)]=_0x308a8c[_0x5464c6(0x261)]),_0x4061f9['tag']===_0x5464c6(0x31f)&&_0x50d9e5['id']&&(_0x50d9e5['id']=_0x50d9e5['id']+_0x26ddd8[_0x5464c6(0x1f2)]),Object['entries'](_0x50d9e5)[_0x5464c6(0x1b1)](function(_0x469ffa){const _0x5ea94a=_0x5464c6;var _0x29628c=_0x469ffa[0x0],_0x2e72ec=_0x469ffa[0x1];_0x29628c==='mask'&&typeof _0x2e72ec==_0x5ea94a(0x2a8)&&(_0x50d9e5[_0x29628c]=_0x2e72ec[_0x5ea94a(0x37a)](/url\(#(.*)\)/,_0x5ea94a(0x38f)['concat'](_0x26ddd8[_0x5ea94a(0x1f2)],')')));});var _0x550ac0=_0x26ddd8['defIds'];return!_0x550ac0||_0x550ac0[_0x5464c6(0x1f0)]===0x0||(_0x4061f9['tag']===_0x5464c6(0x30f)&&_0x50d9e5[_0x5464c6(0x283)]&&(_0x50d9e5[_0x5464c6(0x283)]=_0x50d9e5[_0x5464c6(0x283)]+_0x26ddd8[_0x5464c6(0x1f2)]),Object[_0x5464c6(0x2ff)](_0x50d9e5)[_0x5464c6(0x1b1)](function(_0x43634c){const _0x59960a=_0x5464c6;var _0x24cbe6=_0x43634c[0x0],_0xba7cf4=_0x43634c[0x1];typeof _0xba7cf4==_0x59960a(0x2a8)&&(_0x50d9e5[_0x24cbe6]=_0xba7cf4[_0x59960a(0x37a)](/url\(#(.*)\)/,_0x59960a(0x38f)['concat'](_0x26ddd8[_0x59960a(0x1f2)],')')));})),_0x50d9e5;}function Ze(_0x2f961f,_0x4074f1){const _0x5a56e6=_0x6c52c3;var _0x34ef36,_0x34a49f=_0x4074f1[_0x5a56e6(0x320)];return!_0x34a49f||_0x34a49f[_0x5a56e6(0x1f0)]===0x0?_0x2f961f:_0x2f961f[_0x5a56e6(0x1c4)]===_0x5a56e6(0x21e)&&(!((_0x34ef36=_0x2f961f['children'])===null||_0x34ef36===void 0x0)&&_0x34ef36[_0x5a56e6(0x1f0)])?O(O({},_0x2f961f),{'children':_0x2f961f[_0x5a56e6(0x269)][_0x5a56e6(0x32a)](function(_0x3cc663){const _0x4a6ec6=_0x5a56e6;return typeof _0x3cc663[_0x4a6ec6(0x3fc)]['id']==_0x4a6ec6(0x2a8)&&_0x34a49f&&_0x34a49f[_0x4a6ec6(0x238)](_0x3cc663[_0x4a6ec6(0x3fc)]['id'])?O(O({},_0x3cc663),{'attrs':O(O({},_0x3cc663[_0x4a6ec6(0x3fc)]),{'id':_0x3cc663[_0x4a6ec6(0x3fc)]['id']+_0x4074f1[_0x4a6ec6(0x1f2)]})}):_0x3cc663;})}):_0x2f961f;}function Qe(){const _0x28f411=_0x6c52c3;return Math[_0x28f411(0x3fb)]()['toString'](0x24)[_0x28f411(0x3ac)](0x2,0x8);}pe[_0x6c52c3(0x322)]=_0x6c52c3(0x2a7);var et={'tag':_0x6c52c3(0x432),'attrs':{'xmlns':_0x6c52c3(0x2b2),'fill':_0x6c52c3(0x3f3),'viewBox':'0\x200\x2016\x2016','width':_0x6c52c3(0x28b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x6c52c3(0x1ae)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'stroke':_0x6c52c3(0x414),'d':_0x6c52c3(0x2b3),'strokeLinecap':_0x6c52c3(0x22e),'strokeLinejoin':_0x6c52c3(0x22e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x6c52c3(0x3b6),'attrs':{'id':_0x6c52c3(0x405)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'fill':_0x6c52c3(0x3d5),'d':_0x6c52c3(0x426)}}]}]}],'defIds':[_0x6c52c3(0x405)]},xe=L[_0x6c52c3(0x232)](function(_0xb6f038,_0x35f5a2){const _0x5134f6=_0x6c52c3;return L[_0x5134f6(0x3ab)](pe,Object[_0x5134f6(0x376)]({},_0xb6f038,{'id':'off-line-icon','ref':_0x35f5a2,'icon':et}));});xe[_0x6c52c3(0x322)]=_0x6c52c3(0x30a);var tt={'tag':'svg','attrs':{'xmlns':_0x6c52c3(0x2b2),'fill':_0x6c52c3(0x3f3),'viewBox':_0x6c52c3(0x43b),'width':_0x6c52c3(0x28b),'height':_0x6c52c3(0x28b)},'children':[{'tag':'g','attrs':{'clipPath':_0x6c52c3(0x36e)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'stroke':_0x6c52c3(0x414),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x6c52c3(0x3a4)},'children':[{'tag':_0x6c52c3(0x1b5),'attrs':{'fill':_0x6c52c3(0x3d5),'d':_0x6c52c3(0x426),'transform':'translate(.97)'}}]}]}],'defIds':[_0x6c52c3(0x3a4)]},$e=L[_0x6c52c3(0x232)](function(_0xbd6205,_0x5f495f){const _0x1fdc16=_0x6c52c3;return L[_0x1fdc16(0x3ab)](pe,Object[_0x1fdc16(0x376)]({},_0xbd6205,{'id':'on-line-icon','ref':_0x5f495f,'icon':tt}));});$e[_0x6c52c3(0x322)]=_0x6c52c3(0x34e);function st(_0x419256){const _0x37f113=_0x6c52c3;switch(_0x419256){case u[_0x37f113(0x1e6)]['OFFLINE']:return _0x37f113(0x3a6);case u[_0x37f113(0x1e6)][_0x37f113(0x1f3)]:return _0x37f113(0x369);case u[_0x37f113(0x1e6)][_0x37f113(0x2e1)]:return _0x37f113(0x24c);case u[_0x37f113(0x1e6)][_0x37f113(0x340)]:return'collabStatus.notCollab';case u[_0x37f113(0x1e6)][_0x37f113(0x1a4)]:case u[_0x37f113(0x1e6)][_0x37f113(0x273)]:return _0x37f113(0x35a);case u[_0x37f113(0x1e6)][_0x37f113(0x3c2)]:case u[_0x37f113(0x1e6)][_0x37f113(0x3f5)]:return _0x37f113(0x3d7);}}function it(_0x1f4803){const _0x1bd012=_0x6c52c3,{status$:_0x36a747}=_0x1f4803,_0x4498db=R['useObservable'](_0x36a747,u[_0x1bd012(0x1e6)][_0x1bd012(0x340)]),_0x3baf40=R['useDependency'](a[_0x1bd012(0x225)]),_0x52232d=R[_0x1bd012(0x2e0)](u[_0x1bd012(0x417)]),_0x598292=_0x4498db!==u[_0x1bd012(0x1e6)][_0x1bd012(0x415)],_0x243e70=_0x3baf40['t'](st(_0x4498db)),_0x20105e=_0x598292?P['jsx']($e,{}):P[_0x1bd012(0x1e7)](xe,{}),_0x497c3f=L['useCallback'](()=>{const _0x56bd8e=_0x1bd012;_0x598292||_0x52232d[_0x56bd8e(0x2a6)]();},[_0x598292,_0x52232d]);function _0x450772(){const _0x3996ea=_0x1bd012;return P[_0x3996ea(0x22b)](_0x3996ea(0x3e3),{'className':_0x3996ea(0x27a),'onClick':_0x497c3f,'children':[P['jsx'](_0x3996ea(0x3e3),{'className':T['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x598292,'univer-text-red-500':!_0x598292}),'children':_0x20105e}),P[_0x3996ea(0x1e7)]('div',{'className':_0x3996ea(0x2d3),'children':_0x243e70})]});}return _0x598292?_0x450772():P['jsx'](T[_0x1bd012(0x39a)],{'title':_0x3baf40['t'](_0x1bd012(0x1d1)),'children':_0x450772()});}var nt=Object[_0x6c52c3(0x2ac)],rt=(_0x36e97b,_0x537fe4,_0x1443dd,_0x24c34e)=>{const _0x34d184=_0x6c52c3;for(var _0x4b414a=_0x24c34e>0x1?void 0x0:_0x24c34e?nt(_0x537fe4,_0x1443dd):_0x537fe4,_0x132522=_0x36e97b[_0x34d184(0x1f0)]-0x1,_0x2ac1a1;_0x132522>=0x0;_0x132522--)(_0x2ac1a1=_0x36e97b[_0x132522])&&(_0x4b414a=_0x2ac1a1(_0x4b414a)||_0x4b414a);return _0x4b414a;},q=(_0x2927e1,_0x321451)=>(_0x49024a,_0x29b6ef)=>_0x321451(_0x49024a,_0x29b6ef,_0x2927e1);exports[_0x6c52c3(0x2e9)]=class extends a['Disposable']{constructor(_0x5d0e62,_0x297ccd,_0x242b48,_0x3a01fe){const _0x283dec=_0x6c52c3;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x283dec(0x1e6)][_0x283dec(0x340)])),(this['_univerInstanceService']=_0x5d0e62,this[_0x283dec(0x3a1)]=_0x297ccd,this[_0x283dec(0x1de)]=_0x242b48,this[_0x283dec(0x3a9)]=_0x3a01fe,this[_0x283dec(0x3a0)](),this[_0x283dec(0x2b8)]());}['_initStatusListener'](){const _0x47b2e2=_0x6c52c3;this[_0x47b2e2(0x392)](this[_0x47b2e2(0x3dd)][_0x47b2e2(0x1d2)][_0x47b2e2(0x1b7)](I[_0x47b2e2(0x41c)](()=>{const _0x4f0630=_0x47b2e2,_0x2203f9=this[_0x4f0630(0x3dd)][_0x4f0630(0x279)]();return _0x2203f9?this[_0x4f0630(0x1de)][_0x4f0630(0x367)](_0x2203f9['getUnitId']()):I['of'](null);}),I[_0x47b2e2(0x41c)](_0x38a9ba=>_0x38a9ba?_0x38a9ba['status$']:I['of'](u['CollaborationStatus'][_0x47b2e2(0x340)])))[_0x47b2e2(0x403)](_0x53c2ad=>{const _0xc84374=_0x47b2e2;this[_0xc84374(0x3f8)][_0xc84374(0x2c9)](_0x53c2ad);}));}[_0x6c52c3(0x3a0)](){const _0x32a85e=_0x6c52c3;this[_0x32a85e(0x392)](this['_uiPartsService']['registerComponent'](R[_0x32a85e(0x3fa)][_0x32a85e(0x1c9)],()=>R[_0x32a85e(0x1ff)](ot({'status$':this[_0x32a85e(0x3f8)]['asObservable']()}),this[_0x32a85e(0x3a1)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([q(0x0,a['IUniverInstanceService']),q(0x1,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),q(0x2,a['Inject'](u[_0x6c52c3(0x3a5)])),q(0x3,R[_0x6c52c3(0x393)])],exports[_0x6c52c3(0x2e9)]);function ot(_0x392a1b){const {status$:_0x5571a1}=_0x392a1b;return function(){return P['jsx'](it,{'status$':_0x5571a1});};}const Te=a[_0x6c52c3(0x40a)](_0x6c52c3(0x318));var at=Object[_0x6c52c3(0x2ac)],ct=(_0x468c46,_0x5027e2,_0x14e9d9,_0x5dabd3)=>{const _0x3b724d=_0x6c52c3;for(var _0x54ca7d=_0x5dabd3>0x1?void 0x0:_0x5dabd3?at(_0x5027e2,_0x14e9d9):_0x5027e2,_0x212875=_0x468c46[_0x3b724d(0x1f0)]-0x1,_0x3d52d2;_0x212875>=0x0;_0x212875--)(_0x3d52d2=_0x468c46[_0x212875])&&(_0x54ca7d=_0x3d52d2(_0x54ca7d)||_0x54ca7d);return _0x54ca7d;},Y=(_0x410c1b,_0x1e052e)=>(_0x49db1f,_0x4d33bc)=>_0x1e052e(_0x49db1f,_0x4d33bc,_0x410c1b);exports[_0x6c52c3(0x3f2)]=class extends a[_0x6c52c3(0x358)]{constructor(_0xeee457,_0x3785a8,_0x4dddbf,_0x465e1a,_0x3c0a1){const _0x386b65=_0x6c52c3;super(),this['_urlService']=_0xeee457,this[_0x386b65(0x1db)]=_0x3785a8,this['_commandService']=_0x4dddbf,this[_0x386b65(0x2a4)]=_0x465e1a,_0x3c0a1?_0x3c0a1==null||_0x3c0a1[_0x386b65(0x360)]()[_0x386b65(0x1f1)](()=>this[_0x386b65(0x39e)]()):(this['_logService'][_0x386b65(0x21a)](_0x386b65(0x180),_0x386b65(0x3f6)),this['_init']());}async[_0x6c52c3(0x39e)](){const _0x19bd14=_0x6c52c3,_0x2f9695=this['_urlService'][_0x19bd14(0x23e)]('unit'),_0x313ba1=this[_0x19bd14(0x2e3)][_0x19bd14(0x23e)](_0x19bd14(0x333)),_0x350dd2=this['_urlService']['getParam'](_0x19bd14(0x3bf));if(!_0x2f9695||!_0x313ba1){this[_0x19bd14(0x1db)]['debug'](_0x19bd14(0x180),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x24442e=await this[_0x19bd14(0x2a4)][_0x19bd14(0x35d)](_0x2f9695,Number(_0x313ba1),_0x350dd2);_0x24442e&&_0x24442e instanceof a[_0x19bd14(0x23d)]&&this[_0x19bd14(0x33e)](_0x24442e);}async[_0x6c52c3(0x33e)](_0x2d4708){const _0xe5efe2=_0x6c52c3;await this[_0xe5efe2(0x388)](_0x2d4708),_0x2d4708[_0xe5efe2(0x270)]['pipe'](I[_0xe5efe2(0x3c3)](this[_0xe5efe2(0x359)]))['subscribe'](_0x387d1d=>{_0x387d1d&&this['_updateURLWithCurrentState'](_0x387d1d);}),this[_0xe5efe2(0x2e3)]['urlChange$'][_0xe5efe2(0x1b7)](I[_0xe5efe2(0x3c3)](this['dispose$']))[_0xe5efe2(0x403)](()=>this[_0xe5efe2(0x388)](_0x2d4708));}[_0x6c52c3(0x2be)](_0x402033,_0x472f2b=!0x1){const _0x41bfcc=_0x6c52c3,_0xc272b1=this['_urlService'][_0x41bfcc(0x23e)](_0x41bfcc(0x3bf));_0x402033[_0x41bfcc(0x2c6)]()!==_0xc272b1&&this[_0x41bfcc(0x2e3)][_0x41bfcc(0x329)](_0x41bfcc(0x3bf),_0x402033['getSheetId'](),_0x472f2b);}async[_0x6c52c3(0x388)](_0x116a03){const _0x37c10b=_0x6c52c3;var _0x4781a2;const _0x2c0f9d=this['_urlService'][_0x37c10b(0x23e)](_0x37c10b(0x3bf));if(!_0x2c0f9d||!_0x116a03[_0x37c10b(0x375)](_0x2c0f9d)){const _0x5829e8=_0x116a03['getUnhiddenWorksheets']()[0x0],_0x4ae30d=_0x116a03[_0x37c10b(0x375)](_0x5829e8);if(!_0x4ae30d)return;this[_0x37c10b(0x2be)](_0x4ae30d,!0x0),await this[_0x37c10b(0x25f)][_0x37c10b(0x319)](v[_0x37c10b(0x342)]['id'],{'unitId':_0x116a03['getUnitId'](),'subUnitId':_0x5829e8});return;}((_0x4781a2=_0x116a03['getActiveSheet']())==null?void 0x0:_0x4781a2[_0x37c10b(0x2c6)]())!==_0x2c0f9d&&await this[_0x37c10b(0x25f)][_0x37c10b(0x319)](v[_0x37c10b(0x342)]['id'],{'unitId':_0x116a03[_0x37c10b(0x411)](),'subUnitId':_0x2c0f9d});}},exports[_0x6c52c3(0x3f2)]=ct([Y(0x0,Te),Y(0x1,a[_0x6c52c3(0x2ca)]),Y(0x2,a[_0x6c52c3(0x391)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a[_0x6c52c3(0x1b6)](Ke[_0x6c52c3(0x1e5)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x6c52c3(0x2ac)],_t=(_0x427223,_0x5c32d5,_0x4a0b88,_0x1dc2e1)=>{const _0x30f383=_0x6c52c3;for(var _0x4dde01=_0x1dc2e1>0x1?void 0x0:_0x1dc2e1?lt(_0x5c32d5,_0x4a0b88):_0x5c32d5,_0x4050ec=_0x427223[_0x30f383(0x1f0)]-0x1,_0xbfa1f4;_0x4050ec>=0x0;_0x4050ec--)(_0xbfa1f4=_0x427223[_0x4050ec])&&(_0x4dde01=_0xbfa1f4(_0x4dde01)||_0x4dde01);return _0x4dde01;},be=(_0x3bca9f,_0x404bfe)=>(_0x113f2b,_0x1ef57c)=>_0x404bfe(_0x113f2b,_0x1ef57c,_0x3bca9f);let fe=class extends a['RxDisposable']{constructor(_0x901f71,_0x2233b1){const _0x190624=_0x6c52c3;super(),this[_0x190624(0x2f2)]=_0x901f71,this[_0x190624(0x25d)]=_0x2233b1,this['_init']();}[_0x6c52c3(0x39e)](){const _0x2d67e5=_0x6c52c3,_0x13be75=this;this[_0x2d67e5(0x392)](this[_0x2d67e5(0x2f2)][_0x2d67e5(0x348)]({'onBeforePasteImage':async _0x2cf500=>{const _0xfe82bc=_0x2d67e5,_0x33ae02=await _0x13be75[_0xfe82bc(0x25d)]['saveImage'](_0x2cf500);return _0x33ae02?{'source':_0x33ae02[_0xfe82bc(0x1ad)],'imageSourceType':_0x33ae02[_0xfe82bc(0x255)]}:null;}}));}};fe=_t([be(0x0,p[_0x6c52c3(0x188)]),be(0x1,qe[_0x6c52c3(0x30d)])],fe);const De=[_0x6c52c3(0x399),_0x6c52c3(0x1bf),_0x6c52c3(0x42d),_0x6c52c3(0x307),_0x6c52c3(0x3a8),'yellow.400'];class Oe extends a[_0x6c52c3(0x413)]{constructor(){const _0x127670=_0x6c52c3;super(...arguments),_(this,_0x127670(0x345),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x7a6688){const _0x17fba7=_0x6c52c3;if(this['_assignedColors'][_0x17fba7(0x27c)](_0x7a6688))return this[_0x17fba7(0x345)][_0x17fba7(0x285)](_0x7a6688);const _0x57d2c7=De[this['_colorIndex']];return this[_0x17fba7(0x309)]=(this[_0x17fba7(0x309)]+0x1)%De[_0x17fba7(0x1f0)],this['_assignedColors'][_0x17fba7(0x33f)](_0x7a6688,_0x57d2c7),_0x57d2c7;}}function Be(_0x592639){const _0x1f32a1=_0x6c52c3;let _0x4903d1='';for(const _0x14b420 of _0x592639){const {startOffset:_0x1626d1,endOffset:_0xe17052,isActive:_0x4b4c62,rangeType:_0x4f6df7,segmentId:_0x5623b7,segmentPage:_0x5a15dd}=_0x14b420;_0x4903d1[_0x1f32a1(0x1f0)]&&(_0x4903d1+=','),_0x4903d1+=_0x1626d1+':'+_0xe17052+':'+(_0x4b4c62?'1':'0')+':'+_0x4f6df7+':'+_0x5623b7+':'+_0x5a15dd;}return _0x4903d1;}function ht(_0x265472){const _0x3dbd5b=_0x6c52c3,_0x473a65=_0x265472[_0x3dbd5b(0x382)](','),_0x2fffbb=[];for(const _0x3d18f6 of _0x473a65){const [_0x285f45,_0x4a2e35,_0x39c56f,_0x17cf9e,_0x25a077,_0x1537c4]=_0x3d18f6[_0x3dbd5b(0x382)](':');_0x2fffbb[_0x3dbd5b(0x221)]({'startOffset':Number(_0x285f45),'endOffset':Number(_0x4a2e35),'collapsed':_0x285f45===_0x4a2e35,'isActive':_0x39c56f==='1','rangeType':_0x17cf9e===a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x206)]?a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x206)]:a[_0x3dbd5b(0x3f9)][_0x3dbd5b(0x3c9)],'segmentId':typeof _0x25a077==_0x3dbd5b(0x2a8)?String(_0x25a077):'','segmentPage':Number(_0x1537c4!=null?_0x1537c4:-0x1)});}return _0x2fffbb['some'](_0x3b6797=>_0x3b6797[_0x3dbd5b(0x310)])||(_0x2fffbb[0x0][_0x3dbd5b(0x310)]=!0x0),_0x2fffbb;}class Re extends a[_0x6c52c3(0x358)]{constructor(){const _0x5236da=_0x6c52c3;super(...arguments),_(this,_0x5236da(0x2cd),new I[(_0x5236da(0x22c))](null)),_(this,_0x5236da(0x1ea),this[_0x5236da(0x2cd)][_0x5236da(0x2f3)]());}[_0x6c52c3(0x420)](_0x4bd439){const _0x1a7971=_0x6c52c3,{unitID:_0x19e8f4,memberID:_0x2fd13c,textRanges:_0x211954}=_0x4bd439,_0x27a956=Be(_0x211954);if(_0x27a956==='')return;const _0x22d1e9={'unitID':_0x19e8f4,'memberID':_0x2fd13c,'selection':_0x27a956};this[_0x1a7971(0x2cd)][_0x1a7971(0x2c9)](_0x22d1e9);}}var ut=Object[_0x6c52c3(0x2ac)],It=(_0x5abe5c,_0x837874,_0xc7ec87,_0x12deb2)=>{const _0x5945e8=_0x6c52c3;for(var _0xc26621=_0x12deb2>0x1?void 0x0:_0x12deb2?ut(_0x837874,_0xc7ec87):_0x837874,_0xb4e469=_0x5abe5c[_0x5945e8(0x1f0)]-0x1,_0x31a6a0;_0xb4e469>=0x0;_0xb4e469--)(_0x31a6a0=_0x5abe5c[_0xb4e469])&&(_0xc26621=_0x31a6a0(_0xc26621)||_0xc26621);return _0xc26621;},M=(_0x144c45,_0x5ce4cf)=>(_0x4b2138,_0x4d4b76)=>_0x5ce4cf(_0x4b2138,_0x4d4b76,_0x144c45);const dt=0x12c,St=0x64;let me=class extends a[_0x6c52c3(0x358)]{constructor(_0x5cd5cd,_0x16c39e,_0x3531d4,_0x54c7c1,_0x7ceef2,_0x51e857,_0x2e4824,_0x2174d7,_0x221c1d){const _0x5d236f=_0x6c52c3;super(),_(this,_0x5d236f(0x3cc),!0x1),_(this,_0x5d236f(0x39e),!0x1),_(this,_0x5d236f(0x428),new I[(_0x5d236f(0x22c))](new Map())),_(this,_0x5d236f(0x1cc),this['_cursorInfo$'][_0x5d236f(0x2f3)]()),_(this,_0x5d236f(0x1a2),new I['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x5d236f(0x1a2)][_0x5d236f(0x1b7)](I['debounceTime'](dt))),_(this,_0x5d236f(0x3e6),a[_0x5d236f(0x3d3)](_0x2f2e63=>{const _0x3b4018=_0x5d236f,_0x4f6dbd={'eventID':g[_0x3b4018(0x3e1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x3b4018(0x2ec)],'memberID':this[_0x3b4018(0x354)][_0x3b4018(0x18a)](),'selection':Be(_0x2f2e63)}};this[_0x3b4018(0x354)][_0x3b4018(0x346)](_0x4f6dbd,this['unitID']);},St)),(this[_0x5d236f(0x2ec)]=_0x5cd5cd,this['_session']=_0x16c39e,this[_0x5d236f(0x3a1)]=_0x3531d4,this[_0x5d236f(0x2d9)]=_0x54c7c1,this['_memberService']=_0x7ceef2,this[_0x5d236f(0x3c5)]=_0x51e857,this[_0x5d236f(0x3ce)]=_0x2e4824,this[_0x5d236f(0x3dd)]=_0x2174d7,this[_0x5d236f(0x25f)]=_0x221c1d);}get[_0x6c52c3(0x2fa)](){const _0x8ce41b=_0x6c52c3;return this[_0x8ce41b(0x428)][_0x8ce41b(0x2fc)]();}get[_0x6c52c3(0x32e)](){const _0x47a61d=_0x6c52c3;return this[_0x47a61d(0x1a2)][_0x47a61d(0x2fc)]();}[_0x6c52c3(0x18d)](){const _0x4a2fdc=_0x6c52c3;super[_0x4a2fdc(0x18d)](),this[_0x4a2fdc(0x428)][_0x4a2fdc(0x2c9)](new Map()),this['_cursorInfo$'][_0x4a2fdc(0x401)](),this[_0x4a2fdc(0x1a2)][_0x4a2fdc(0x2c9)]([]),this[_0x4a2fdc(0x1a2)]['complete']();}[_0x6c52c3(0x1a3)](){const _0xeda5b=_0x6c52c3;this[_0xeda5b(0x39e)]||(this[_0xeda5b(0x39e)]=!0x0,this[_0xeda5b(0x354)]['sessionStatus$'][_0xeda5b(0x1b7)](I['takeUntil'](this[_0xeda5b(0x359)]))[_0xeda5b(0x403)](_0x16f4d3=>{const _0x23876d=_0xeda5b;_0x16f4d3===u[_0x23876d(0x3b5)]['ONLINE']?this[_0x23876d(0x3f4)]():this['_toggleOffline']();}),this['_session']['event$']['pipe'](I['takeUntil'](this['dispose$']))[_0xeda5b(0x403)](_0x544980=>{const _0x32d9c4=_0xeda5b,_0x4e093f=_0x544980[_0x32d9c4(0x21d)];_0x4e093f===g[_0x32d9c4(0x3e1)][_0x32d9c4(0x2b5)]&&this[_0x32d9c4(0x361)](_0x544980),_0x4e093f===g[_0x32d9c4(0x3e1)][_0x32d9c4(0x3ef)]&&this[_0x32d9c4(0x1a8)](_0x544980);}),this['disposeWithMe'](this['_commandService'][_0xeda5b(0x22f)](_0x4b6b22=>{const _0x19ec50=_0xeda5b,_0x1fa898=_0x4b6b22[_0x19ec50(0x2f4)];_0x1fa898!=null&&this[_0x19ec50(0x3cc)]&&_0x4b6b22['id']===V[_0x19ec50(0x3d0)]['id']&&_0x1fa898['unitId']===this[_0x19ec50(0x2ec)]&&_0x1fa898['isEditing']===!0x1&&_0x1fa898[_0x19ec50(0x1c2)][_0x19ec50(0x1f0)]>0x0&&this[_0x19ec50(0x3e6)](_0x1fa898['ranges']);})),this[_0xeda5b(0x3c5)]['collabCursorState$'][_0xeda5b(0x1b7)](I[_0xeda5b(0x3c3)](this['dispose$']))['subscribe'](_0x53273a=>{const _0x3df368=_0xeda5b;if((_0x53273a==null?void 0x0:_0x53273a[_0x3df368(0x2ec)])!==this[_0x3df368(0x2ec)])return;const _0x42d742={'eventID':g[_0x3df368(0x3e1)][_0x3df368(0x2b5)],'data':_0x53273a};this[_0x3df368(0x361)](_0x42d742);}),this[_0xeda5b(0x392)](this['_commandService'][_0xeda5b(0x22f)](_0x148664=>{const _0x248469=_0xeda5b;if(_0x148664[_0x248469(0x2f4)]==null)return;const _0x15a219=_0x148664[_0x248469(0x2f4)];if(_0x148664['id']!==V[_0x248469(0x381)]['id']||_0x15a219[_0x248469(0x2b7)]!==this[_0x248469(0x2ec)])return;const _0x4b5b35={'id':_0x248469(0x339),'params':_0x15a219},_0x1606fd=this[_0x248469(0x2fa)];for(const [_0x203237,_0x1964fd]of _0x1606fd){const _0x31c64b={'id':_0x248469(0x339),'params':{'unitId':this[_0x248469(0x2ec)],'actions':null,'textRanges':_0x1964fd[_0x248469(0x1c2)]}},_0x3f3b3f=this[_0x248469(0x3ce)][_0x248469(0x1a1)](_0x4b5b35,_0x31c64b,!0x1);if(g[_0x248469(0x294)](_0x3f3b3f))throw _0x3f3b3f[_0x248469(0x384)];_0x1606fd['set'](_0x203237,{..._0x1964fd,'ranges':_0x3f3b3f['m2Prime'][_0x248469(0x2f4)][_0x248469(0x350)]});}queueMicrotask(()=>{const _0x36468f=_0x248469;this[_0x36468f(0x428)][_0x36468f(0x2c9)](_0x1606fd);});})));}[_0x6c52c3(0x361)](_0x5d24f6){const _0x403953=_0x6c52c3;var _0x293275,_0x20bda0;const {memberID:_0x23b3ec,selection:_0xa0a730}=_0x5d24f6['data'],_0x343aed=ht(_0xa0a730),_0xe57414=(_0x20bda0=(_0x293275=this[_0x403953(0x18b)][_0x403953(0x335)](this[_0x403953(0x2ec)],_0x23b3ec))==null?void 0x0:_0x293275[_0x403953(0x402)])!=null?_0x20bda0:'Unknown\x20user',_0x29a2f5={'color':this[_0x403953(0x2d9)][_0x403953(0x230)](_0x23b3ec),'name':_0xe57414,'ranges':_0x343aed},_0x6658ec=this[_0x403953(0x2fa)];_0x6658ec[_0x403953(0x33f)](_0x23b3ec,_0x29a2f5),this[_0x403953(0x428)][_0x403953(0x2c9)](_0x6658ec);}['_onCursorDelete'](_0x58965b){const _0x1e3a12=_0x6c52c3,{memberID:_0x69e272}=_0x58965b[_0x1e3a12(0x219)],_0x1be2b6=this['cursorInfo'];_0x1be2b6[_0x1e3a12(0x41a)](_0x69e272),this[_0x1e3a12(0x428)][_0x1e3a12(0x2c9)](_0x1be2b6);}[_0x6c52c3(0x3f4)](){const _0x4a681e=_0x6c52c3;var _0x1113b6;if(this[_0x4a681e(0x3cc)]=!0x0,((_0x1113b6=this[_0x4a681e(0x3dd)][_0x4a681e(0x279)]())==null?void 0x0:_0x1113b6[_0x4a681e(0x411)]())!==this[_0x4a681e(0x2ec)])return;const _0x40fb70=this[_0x4a681e(0x3a1)][_0x4a681e(0x285)](V[_0x4a681e(0x343)])['getDocRanges']();Array[_0x4a681e(0x24b)](_0x40fb70)&&_0x40fb70['length']>0x0&&this[_0x4a681e(0x3e6)](_0x40fb70);}[_0x6c52c3(0x202)](){const _0x3376d9=_0x6c52c3;this[_0x3376d9(0x3cc)]=!0x1;}};me=It([M(0x2,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),M(0x3,a['Inject'](Oe)),M(0x4,a['Inject'](u['MemberService'])),M(0x5,a['Inject'](Re)),M(0x6,g[_0x6c52c3(0x24a)]),M(0x7,a[_0x6c52c3(0x40e)]),M(0x8,a[_0x6c52c3(0x391)])],me);var ft=Object[_0x6c52c3(0x2ac)],mt=(_0x34be9d,_0x118148,_0xb9271f,_0x1c68df)=>{for(var _0x72094e=_0x1c68df>0x1?void 0x0:_0x1c68df?ft(_0x118148,_0xb9271f):_0x118148,_0x3b4bfb=_0x34be9d['length']-0x1,_0x57864d;_0x3b4bfb>=0x0;_0x3b4bfb--)(_0x57864d=_0x34be9d[_0x3b4bfb])&&(_0x72094e=_0x57864d(_0x72094e)||_0x72094e);return _0x72094e;},y=(_0x47aa3e,_0x21fe08)=>(_0x268766,_0xfd0f9b)=>_0x21fe08(_0x268766,_0xfd0f9b,_0x47aa3e);const vt=0x12c,gt=0x64,Et=()=>{let _0x4d8378=[],_0x454b91=!0x1;return _0x4ed4b2=>{const _0x348d06=_0xc584;_0x4d8378[_0x348d06(0x221)](_0x4ed4b2),_0x454b91||(_0x454b91=!0x0,setTimeout(()=>{_0x4d8378['forEach'](_0x5d53fb=>_0x5d53fb()),_0x4d8378=[],_0x454b91=!0x1;}));};};let ve=class extends a[_0x6c52c3(0x358)]{constructor(_0x49cb13,_0x5489e7,_0x16c8c3,_0x517e82,_0x1e29af,_0x229f0a,_0x6d07fd,_0x3a15ea){const _0x402884=_0x6c52c3;super(),_(this,_0x402884(0x3cc),!0x1),_(this,_0x402884(0x39e),!0x1),_(this,_0x402884(0x428),new I[(_0x402884(0x22c))](new Map())),_(this,_0x402884(0x1cc),this['_cursorInfo$']['asObservable']()),_(this,_0x402884(0x1a2),new I[(_0x402884(0x22c))]([])),_(this,_0x402884(0x262),this[_0x402884(0x1a2)][_0x402884(0x1b7)](I['debounceTime'](vt))),_(this,_0x402884(0x3e6),a[_0x402884(0x3d3)]((_0x56e162,_0x1b06ef)=>{const _0x518812=_0x402884,_0x3f3b75={'eventID':g[_0x518812(0x3e1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x518812(0x2ec)],'memberID':this['_session'][_0x518812(0x18a)](),'selection':B[_0x518812(0x372)](_0x56e162,_0x1b06ef[_0x518812(0x404)])}};this['_session']['send'](_0x3f3b75,this[_0x518812(0x2ec)]);},gt)),(this[_0x402884(0x2ec)]=_0x49cb13,this[_0x402884(0x354)]=_0x5489e7,this[_0x402884(0x3a1)]=_0x16c8c3,this[_0x402884(0x2d9)]=_0x517e82,this[_0x402884(0x18b)]=_0x1e29af,this['_univerInstanceService']=_0x229f0a,this[_0x402884(0x25f)]=_0x6d07fd,this[_0x402884(0x228)]=_0x3a15ea);}get[_0x6c52c3(0x2fa)](){const _0x10bf4e=_0x6c52c3;return this[_0x10bf4e(0x428)][_0x10bf4e(0x2fc)]();}get['roomMembers'](){const _0x5ea693=_0x6c52c3;return this[_0x5ea693(0x1a2)][_0x5ea693(0x2fc)]();}[_0x6c52c3(0x18d)](){const _0x48a590=_0x6c52c3;super[_0x48a590(0x18d)](),this[_0x48a590(0x428)][_0x48a590(0x2c9)](new Map()),this['_cursorInfo$'][_0x48a590(0x401)](),this[_0x48a590(0x1a2)][_0x48a590(0x2c9)]([]),this[_0x48a590(0x1a2)][_0x48a590(0x401)]();}[_0x6c52c3(0x1a3)](){const _0x591134=_0x6c52c3;this[_0x591134(0x39e)]||(this['_init']=!0x0,this[_0x591134(0x354)][_0x591134(0x1cf)][_0x591134(0x1b7)](I['takeUntil'](this[_0x591134(0x359)]))[_0x591134(0x403)](_0x556eab=>{const _0x2df48f=_0x591134;_0x556eab===u[_0x2df48f(0x3b5)][_0x2df48f(0x406)]?this[_0x2df48f(0x3f4)]():this[_0x2df48f(0x202)]();}),this['_session']['event$']['pipe'](I[_0x591134(0x3c3)](this[_0x591134(0x359)]))[_0x591134(0x403)](_0xad9bbb=>{const _0x4ff613=_0x591134,_0x2bc03a=_0xad9bbb[_0x4ff613(0x21d)];_0x2bc03a===g['CollaborationEvent'][_0x4ff613(0x2b5)]&&this[_0x4ff613(0x361)](_0xad9bbb),_0x2bc03a===g[_0x4ff613(0x3e1)][_0x4ff613(0x3ef)]&&this[_0x4ff613(0x1a8)](_0xad9bbb);}),this[_0x591134(0x3d9)](),this[_0x591134(0x392)](this[_0x591134(0x25f)][_0x591134(0x22f)](_0x5653af=>{const _0x259224=_0x591134;if(this[_0x259224(0x3cc)]&&_0x5653af['id']===v[_0x259224(0x357)]['id']&&_0x5653af[_0x259224(0x2f4)]['unitId']===this[_0x259224(0x2ec)]){const _0x5b8d39=_0x5653af['params'];this[_0x259224(0x3e6)](_0x5b8d39[_0x259224(0x3ed)],_0x5b8d39[_0x259224(0x242)][0x0]);}})));}[_0x6c52c3(0x361)](_0x1f096b){const _0x58c3ea=_0x6c52c3;var _0xe18c4d,_0x11fb00;const {memberID:_0x526692,selection:_0x5a2769}=_0x1f096b['data'],{sheetName:_0x5145cd,range:_0x2eeac1}=B[_0x58c3ea(0x27d)](_0x5a2769),_0x24981a={'name':(_0x11fb00=(_0xe18c4d=this['_memberService'][_0x58c3ea(0x335)](this['unitID'],_0x526692))==null?void 0x0:_0xe18c4d['name'])!=null?_0x11fb00:'Unknown\x20user','range':this[_0x58c3ea(0x3da)](_0x5145cd,_0x2eeac1),'sheetID':_0x5145cd,'color':this[_0x58c3ea(0x2d9)]['assignAColorForMemberID'](_0x526692),'selection':_0x5a2769},_0x4bfc2e=this[_0x58c3ea(0x2fa)];_0x4bfc2e[_0x58c3ea(0x33f)](_0x526692,_0x24981a),this[_0x58c3ea(0x428)][_0x58c3ea(0x2c9)](_0x4bfc2e);}['_onCursorDelete'](_0x49435a){const _0x3399c1=_0x6c52c3,{memberID:_0x1254a5}=_0x49435a['data'],_0x4c7055=this[_0x3399c1(0x2fa)];_0x4c7055[_0x3399c1(0x41a)](_0x1254a5),this[_0x3399c1(0x428)]['next'](_0x4c7055);}[_0x6c52c3(0x3da)](_0x625402,_0x37e7cf){const _0x559775=_0x6c52c3;var _0x2ab6cd,_0xdb53c9;const _0x3cc341=(_0xdb53c9=(_0x2ab6cd=this[_0x559775(0x3dd)]['getUniverSheetInstance'](this[_0x559775(0x2ec)]))==null?void 0x0:_0x2ab6cd[_0x559775(0x375)](_0x625402))==null?void 0x0:_0xdb53c9[_0x559775(0x30b)]();return(_0x3cc341==null?void 0x0:_0x3cc341[_0x559775(0x2db)](_0x441b34=>a[_0x559775(0x3bc)][_0x559775(0x3cd)](_0x441b34,_0x37e7cf)))||_0x37e7cf;}[_0x6c52c3(0x3d9)](){const _0x291a33=_0x6c52c3,_0x33c7b7=new a[(_0x291a33(0x437))](),_0x227837=Et(),_0x22e3c2=()=>{const _0x53f63f=_0x291a33;_0x33c7b7[_0x53f63f(0x18d)]();const _0x204144=(_0xb916a7,_0x1d9dd5,_0x5e2fe2,_0x454956)=>{const _0x3ec64d=_0x53f63f;let _0x8d5ab9=[];switch(_0xb916a7['id']){case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x434)]:{_0x8d5ab9=v[_0x3ec64d(0x40c)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x3c8)]:{_0x8d5ab9=v[_0x3ec64d(0x1ca)](_0xb916a7,_0x454956);break;}case v['EffectRefRangId'][_0x3ec64d(0x3f1)]:{_0x8d5ab9=v[_0x3ec64d(0x3f0)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)]['InsertRangeMoveDownCommandId']:{_0x8d5ab9=v['handleInsertRangeMoveDown'](_0xb916a7,_0x454956);break;}case v['EffectRefRangId'][_0x3ec64d(0x3ba)]:{_0x8d5ab9=v[_0x3ec64d(0x1f4)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x36a)]:{_0x8d5ab9=v[_0x3ec64d(0x421)](_0xb916a7,_0x454956);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x8d5ab9=v[_0x3ec64d(0x3e8)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)][_0x3ec64d(0x1a6)]:{_0x8d5ab9=v[_0x3ec64d(0x311)](_0xb916a7,_0x454956);break;}case v[_0x3ec64d(0x3a7)]['RemoveRowCommandId']:{_0x8d5ab9=v['handleIRemoveRow'](_0xb916a7,_0x454956);break;}}const _0x16c3c4=v[_0x3ec64d(0x355)](_0x8d5ab9,_0x454956),_0x323bde=this['cursorInfo']['get'](_0x1d9dd5);if(_0x323bde&&_0x16c3c4){const _0x32cd87={..._0x323bde,'range':_0x16c3c4};this[_0x3ec64d(0x2fa)]['set'](_0x1d9dd5,_0x32cd87),_0x227837(()=>{const _0x19f8ad=_0x3ec64d,_0x4c249f=this['_refRangeService']['registerRefRange'](_0x16c3c4,_0x40e187=>(_0x4c249f[_0x19f8ad(0x18d)](),_0x204144(_0x40e187,_0x1d9dd5,_0x5e2fe2,_0x16c3c4)));_0x33c7b7['add'](_0x4c249f);});}return{'redos':[],'undos':[]};};this[_0x53f63f(0x2fa)][_0x53f63f(0x1b1)]((_0x40d1dd,_0x24f563)=>{const _0x42ed30=_0x53f63f,{range:_0x217951,sheetID:_0x47d2cd}=_0x40d1dd,_0x131d45=this[_0x42ed30(0x228)][_0x42ed30(0x239)](_0x217951,_0x1800de=>(_0x131d45['dispose'](),_0x204144(_0x1800de,_0x24f563,_0x47d2cd,_0x217951)));_0x33c7b7[_0x42ed30(0x194)](_0x131d45);});};this[_0x291a33(0x392)](a[_0x291a33(0x1aa)](this[_0x291a33(0x428)][_0x291a33(0x403)](()=>{_0x22e3c2();})));}[_0x6c52c3(0x3f4)](){const _0x34e094=_0x6c52c3;var _0x8885f1,_0x5efc13;if(this[_0x34e094(0x3cc)]=!0x0,((_0x8885f1=this['_univerInstanceService'][_0x34e094(0x279)]())==null?void 0x0:_0x8885f1[_0x34e094(0x411)]())!==this[_0x34e094(0x2ec)])return;const _0x31c659=(_0x5efc13=this[_0x34e094(0x3a1)][_0x34e094(0x285)](v[_0x34e094(0x1dd)])[_0x34e094(0x2da)]())==null?void 0x0:_0x5efc13[0x0],_0x5328d0=this[_0x34e094(0x3dd)][_0x34e094(0x363)](a[_0x34e094(0x3ec)][_0x34e094(0x24e)])['getActiveSheet']();_0x31c659&&_0x5328d0&&this[_0x34e094(0x3e6)](_0x5328d0[_0x34e094(0x2c6)](),_0x31c659);}[_0x6c52c3(0x202)](){this['_online']=!0x1;}};ve=mt([y(0x2,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),y(0x3,a[_0x6c52c3(0x1ee)](Oe)),y(0x4,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x248)])),y(0x5,a['IUniverInstanceService']),y(0x6,a[_0x6c52c3(0x391)]),y(0x7,a[_0x6c52c3(0x1ee)](v[_0x6c52c3(0x258)]))],ve);var Ct=Object[_0x6c52c3(0x2ac)],pt=(_0x37f076,_0x576f2e,_0xff3e2,_0x36de38)=>{const _0x760a10=_0x6c52c3;for(var _0x3f32fc=_0x36de38>0x1?void 0x0:_0x36de38?Ct(_0x576f2e,_0xff3e2):_0x576f2e,_0x470c24=_0x37f076[_0x760a10(0x1f0)]-0x1,_0xa0f315;_0x470c24>=0x0;_0x470c24--)(_0xa0f315=_0x37f076[_0x470c24])&&(_0x3f32fc=_0xa0f315(_0x3f32fc)||_0x3f32fc);return _0x3f32fc;},ae=(_0x56b3e6,_0x5df91c)=>(_0x54c8ab,_0x1140ff)=>_0x5df91c(_0x54c8ab,_0x1140ff,_0x56b3e6);let F=class extends a[_0x6c52c3(0x358)]{constructor(_0x39c5bb,_0x2cb034,_0x374684){const _0x5f0c48=_0x6c52c3;super(),_(this,_0x5f0c48(0x247),new Map()),_(this,_0x5f0c48(0x2b4),new I[(_0x5f0c48(0x1c1))]()),(this[_0x5f0c48(0x3dd)]=_0x39c5bb,this[_0x5f0c48(0x3a1)]=_0x2cb034,this[_0x5f0c48(0x324)]=_0x374684,this[_0x5f0c48(0x39e)]());}[_0x6c52c3(0x18d)](){const _0x50c0ec=_0x6c52c3;super[_0x50c0ec(0x18d)](),this[_0x50c0ec(0x2b4)][_0x50c0ec(0x401)](),this[_0x50c0ec(0x247)][_0x50c0ec(0x1b1)](_0x216851=>_0x216851[_0x50c0ec(0x18d)]());}[_0x6c52c3(0x430)](_0x35d48d){const _0x3bf615=_0x6c52c3;return this['_entities'][_0x3bf615(0x27c)](_0x35d48d)?this['_entities'][_0x3bf615(0x285)](_0x35d48d)[_0x3bf615(0x1cc)]:this[_0x3bf615(0x2b4)][_0x3bf615(0x1b7)](I['filter'](_0x49ceda=>_0x49ceda['unitID']===_0x35d48d),I['switchMap'](_0x3aa61e=>_0x3aa61e[_0x3bf615(0x1cc)]));}[_0x6c52c3(0x39e)](){const _0x5ae4ca=_0x6c52c3;this[_0x5ae4ca(0x3dd)]['getTypeOfUnitAdded$'](a[_0x5ae4ca(0x3ec)]['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x5ae4ca(0x359)]))['subscribe'](async _0x18e5fd=>{const _0x12ab15=_0x5ae4ca,_0x531278=_0x18e5fd[_0x12ab15(0x411)](),_0x55fe23=await this[_0x12ab15(0x1c5)](_0x531278);this[_0x12ab15(0x2b4)][_0x12ab15(0x2c9)](_0x55fe23),this[_0x12ab15(0x247)]['set'](_0x531278,_0x55fe23);}),this[_0x5ae4ca(0x3dd)][_0x5ae4ca(0x2f7)](a[_0x5ae4ca(0x3ec)]['UNIVER_DOC'])[_0x5ae4ca(0x1b7)](I[_0x5ae4ca(0x3c3)](this[_0x5ae4ca(0x359)]))[_0x5ae4ca(0x1b7)](I['filter'](_0x42c535=>!_0x42c535['getUnitId']()[_0x5ae4ca(0x326)]('__')))[_0x5ae4ca(0x403)](async _0x158084=>{const _0x5b1d6b=_0x5ae4ca,_0x167e7c=_0x158084[_0x5b1d6b(0x411)](),_0x4c79da=await this[_0x5b1d6b(0x379)](_0x167e7c);this['_entityInit$'][_0x5b1d6b(0x2c9)](_0x4c79da),this['_entities'][_0x5b1d6b(0x33f)](_0x167e7c,_0x4c79da);}),I[_0x5ae4ca(0x3ff)](this[_0x5ae4ca(0x3dd)][_0x5ae4ca(0x28c)](a[_0x5ae4ca(0x3ec)][_0x5ae4ca(0x231)]),this['_univerInstanceService'][_0x5ae4ca(0x28c)](a[_0x5ae4ca(0x3ec)][_0x5ae4ca(0x24e)]))[_0x5ae4ca(0x1b7)](I[_0x5ae4ca(0x3c3)](this['dispose$']))[_0x5ae4ca(0x403)](_0x151d26=>{const _0x3a937b=_0x5ae4ca,_0x50004d=_0x151d26[_0x3a937b(0x411)](),_0x1a1ded=this['_entities'][_0x3a937b(0x285)](_0x50004d);_0x1a1ded&&(_0x1a1ded[_0x3a937b(0x18d)](),this[_0x3a937b(0x247)]['delete'](_0x50004d));});}async['_startSheetCollabCursor'](_0xce4da5){const _0x459788=_0x6c52c3,_0x3fa18b=await this['_collabSessionService'][_0x459788(0x43e)](_0xce4da5),_0x537c4e=this[_0x459788(0x3a1)][_0x459788(0x20b)](ve,_0xce4da5,_0x3fa18b);return _0x537c4e[_0x459788(0x1a3)](),_0x537c4e;}async[_0x6c52c3(0x379)](_0x406e95){const _0x5c1e5b=_0x6c52c3,_0x54a6c1=await this[_0x5c1e5b(0x324)][_0x5c1e5b(0x43e)](_0x406e95),_0x23eccb=this[_0x5c1e5b(0x3a1)]['createInstance'](me,_0x406e95,_0x54a6c1);return _0x23eccb[_0x5c1e5b(0x1a3)](),_0x23eccb;}};F=pt([ae(0x0,a[_0x6c52c3(0x40e)]),ae(0x1,a['Inject'](a[_0x6c52c3(0x1f7)])),ae(0x2,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x417)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x1b5d9f,_0x2ecf56){const _0x45ecf3=_0x6c52c3;let {radius:_0x3708a5,width:_0x82dfe0,height:_0xcff00f}=_0x2ecf56;_0x3708a5=_0x3708a5!=null?_0x3708a5:0x0,_0x82dfe0=_0x82dfe0!=null?_0x82dfe0:0x1e,_0xcff00f=_0xcff00f!=null?_0xcff00f:0x1e;let _0x3ac00b=0x0,_0x4d6b4c=0x0,_0x224f98=0x0;_0x3ac00b=_0x4d6b4c=_0x224f98=Math['min'](_0x3708a5,_0x82dfe0/0x2,_0xcff00f/0x2),_0x1b5d9f[_0x45ecf3(0x192)](),_0x1b5d9f[_0x45ecf3(0x257)](_0x3ac00b,0x0),_0x1b5d9f[_0x45ecf3(0x3e5)](_0x82dfe0-_0x4d6b4c,0x0),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x82dfe0-_0x4d6b4c,_0x4d6b4c,_0x4d6b4c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b5d9f['lineTo'](_0x82dfe0,_0xcff00f-_0x224f98),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x82dfe0-_0x224f98,_0xcff00f-_0x224f98,_0x224f98,0x0,Math['PI']/0x2,!0x1),_0x1b5d9f[_0x45ecf3(0x3e5)](0x0,_0xcff00f),_0x1b5d9f['lineTo'](0x0,_0x3ac00b),_0x1b5d9f[_0x45ecf3(0x3cb)](_0x3ac00b,_0x3ac00b,_0x3ac00b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b5d9f[_0x45ecf3(0x422)](),_0x2ecf56[_0x45ecf3(0x2fb)]&&(_0x1b5d9f['save'](),_0x1b5d9f[_0x45ecf3(0x2f6)]=_0x2ecf56[_0x45ecf3(0x2fb)],_0x2ecf56[_0x45ecf3(0x2b6)]===_0x45ecf3(0x3b9)?_0x1b5d9f['fill'](_0x45ecf3(0x3b9)):_0x1b5d9f['fill'](),_0x1b5d9f[_0x45ecf3(0x39f)]());}class ne extends C[_0x6c52c3(0x265)]{constructor(_0x191a32,_0x57e2d6){const _0x17fe73=_0x6c52c3;super(_0x191a32,_0x57e2d6),_(this,_0x17fe73(0x2fe)),_(this,'text'),(this['color']=_0x57e2d6==null?void 0x0:_0x57e2d6[_0x17fe73(0x2fe)],this['text']=_0x57e2d6==null?void 0x0:_0x57e2d6[_0x17fe73(0x2d7)]);}static[_0x6c52c3(0x2c5)](_0x1842f,_0x34e02c){const _0x11f356=_0x6c52c3,{text:_0x528e5d,color:_0x1afc97}=_0x34e02c;_0x1842f[_0x11f356(0x314)](),_0x1842f['font']=_0x11f356(0x2b1);const _0x356e73=_0x1842f[_0x11f356(0x344)](_0x528e5d)[_0x11f356(0x37f)],_0x3fe5c4=Math['min'](_0x356e73+0x2*ce,Ne);Ot(_0x1842f,{'height':K,'radius':0x4,'width':_0x3fe5c4,'fill':_0x1afc97}),_0x1842f[_0x11f356(0x2f6)]=_0x11f356(0x226);const _0x4ee401=ce,_0xba8498=K-Tt,_0x38a3d6=Ne-0x2*ce;if(_0x356e73>_0x38a3d6){let _0x273222='',_0x26884d=0x0;for(const _0x22024e of _0x528e5d){const _0x3352c3=_0x1842f['measureText'](_0x22024e)['width'];if(_0x26884d+_0x3352c3<=_0x38a3d6-_0x1842f[_0x11f356(0x344)](_0x11f356(0x182))['width'])_0x273222+=_0x22024e,_0x26884d+=_0x3352c3;else{_0x273222+='...';break;}}_0x1842f[_0x11f356(0x18c)](_0x273222,_0x4ee401,_0xba8498);}else _0x1842f[_0x11f356(0x18c)](_0x528e5d,_0x4ee401,_0xba8498);_0x1842f[_0x11f356(0x39f)]();}[_0x6c52c3(0x2dc)](_0x363174){const _0x30f66e=_0x6c52c3;ne[_0x30f66e(0x2c5)](_0x363174,this);}}const le=_0x6c52c3(0x185),Rt=_0x6c52c3(0x1d9),bt=_0x6c52c3(0x334),H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0x6c52c3(0x33d);class Ue{constructor(_0x4ee993,_0x444c1b,_0x3bca80,_0x484656){const _0x2904c4=_0x6c52c3;_(this,_0x2904c4(0x268),[]),_(this,_0x2904c4(0x1ce),null),_(this,'_textBubble',null),_(this,_0x2904c4(0x20c),null),_(this,'_hideTimer',null),_(this,_0x2904c4(0x2d2),null),(this['_cursor']=_0x4ee993,this['_scene']=_0x444c1b,this['_docSkeleton']=_0x3bca80,this['_document']=_0x484656,this[_0x2904c4(0x3e7)]());}set[_0x6c52c3(0x38d)](_0x166e53){const _0x30e090=_0x6c52c3;_0x166e53?(this[_0x30e090(0x20c)]&&this[_0x30e090(0x20c)][_0x30e090(0x1ab)](),this['_textBubble']&&this[_0x30e090(0x2ae)][_0x30e090(0x1d3)]()):(this[_0x30e090(0x20c)]&&this[_0x30e090(0x20c)][_0x30e090(0x1d3)](),this[_0x30e090(0x2ae)]&&this['_textBubble'][_0x30e090(0x1ab)]());}[_0x6c52c3(0x18d)](){const _0x5c6699=_0x6c52c3;for(const _0x528d29 of this['_shapes'])_0x528d29[_0x5c6699(0x18d)]();this[_0x5c6699(0x2ae)]&&this['_textBubble'][_0x5c6699(0x18d)](),this[_0x5c6699(0x20c)]&&this[_0x5c6699(0x20c)]['dispose'](),this[_0x5c6699(0x1ce)]&&this[_0x5c6699(0x1ce)]['dispose'](),this[_0x5c6699(0x2d2)]&&this[_0x5c6699(0x2d2)]();}[_0x6c52c3(0x3e7)](){const _0xb04406=_0x6c52c3;var _0x1b501c;const {_docSkeleton:_0x4fe517,_document:_0x398696}=this,{color:_0x568f20,name:_0x11c0ad,ranges:_0x5c9f7f}=this['_cursor'],_0x30ba48=_0x398696[_0xb04406(0x35c)](),{docsLeft:_0x217f4e,docsTop:_0x368be5}=_0x30ba48,_0x4a0918=new p['NodePositionConvertToCursor'](_0x30ba48,_0x4fe517);for(const {startOffset:_0x296020,endOffset:_0x2ce6fd,rangeType:_0x57d7ae,segmentId:_0x245ad3,segmentPage:_0x4e2a81,collapsed:_0x242350,isActive:_0x441827}of _0x5c9f7f){const _0x590768=_0x4fe517[_0xb04406(0x2d5)](_0x296020,!0x0,_0x245ad3,_0x4e2a81);let _0x389c07=_0x4fe517[_0xb04406(0x2d5)](_0x2ce6fd,!0x0,_0x245ad3,_0x4e2a81);if(_0x389c07==null&&(_0x389c07=_0x4fe517[_0xb04406(0x2d5)](_0x2ce6fd-0x1,!0x1,_0x245ad3,_0x4e2a81)),_0x441827){const {contentBoxPointGroup:_0x2c7401}=_0x4a0918['getRangePointData'](_0x389c07,_0x389c07);if(_0x2c7401['length']===0x0)continue;this[_0xb04406(0x2f9)](_0x568f20,_0x2c7401,_0x217f4e,_0x368be5,_0x11c0ad),this[_0xb04406(0x2d2)]=this['_handleHover']();}if(_0x590768&&_0x389c07){if(_0x57d7ae===a[_0xb04406(0x3f9)][_0xb04406(0x3c9)]){const _0x1b05ec=new p[(_0xb04406(0x3f7))](_0x30ba48,_0x4fe517),{pointGroup:_0x32ffae}=(_0x1b501c=_0x1b05ec[_0xb04406(0x289)](_0x590768,_0x389c07))!=null?_0x1b501c:{};if(_0x32ffae==null||_0x32ffae[_0xb04406(0x1f0)]===0x0)continue;this[_0xb04406(0x184)](_0x568f20,_0x32ffae,_0x217f4e,_0x368be5);}else{if(!_0x242350){const {borderBoxPointGroup:_0x49ba19}=_0x4a0918[_0xb04406(0x289)](_0x590768,_0x389c07);if(_0x49ba19[_0xb04406(0x1f0)]===0x0)continue;this[_0xb04406(0x276)](_0x568f20,_0x49ba19,_0x217f4e,_0x368be5);}}}}}[_0x6c52c3(0x2f9)](_0x1f94c3,_0x1d105c,_0x41ec89,_0x36df61,_0x56727c){const _0x12d09e=_0x6c52c3,_0xf84657=this[_0x12d09e(0x286)](_0x1d105c),{left:_0xd07d05,top:_0x4fd14a,height:_0x353c80}=_0xf84657,_0x22a0fb=this[_0x12d09e(0x352)](),_0x53e490=Nt/_0x22a0fb,_0x329f02=new C['Rect'](le+a[_0x12d09e(0x254)](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61,'height':_0x353c80,'width':Dt,'fill':_0x1f94c3||C['getColor'](a[_0x12d09e(0x267)]['black'],0x0),'strokeWidth':_0x53e490,'stroke':Ut,'evented':!0x0});this[_0x12d09e(0x1ce)]=_0x329f02,this[_0x12d09e(0x2d4)][_0x12d09e(0x2fd)](_0x329f02,p[_0x12d09e(0x19a)]);const _0x3dbdb4=new C['Rect'](le+a[_0x12d09e(0x254)](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61-_e/0x2,'height':_e,'width':_e,'fill':_0x1f94c3||C[_0x12d09e(0x1ef)](a[_0x12d09e(0x267)][_0x12d09e(0x2ba)],0x0),'strokeWidth':0x0,'stroke':_0x1f94c3||C['getColor'](a['COLORS'][_0x12d09e(0x2ba)],0x0),'evented':!0x1});this[_0x12d09e(0x20c)]=_0x3dbdb4,this[_0x12d09e(0x2d4)][_0x12d09e(0x2fd)](_0x3dbdb4,p['TEXT_RANGE_LAYER_INDEX']);const _0x288260=new ne(le+a['generateRandomId'](H),{'left':_0xd07d05+_0x41ec89-_0x53e490,'top':_0x4fd14a+_0x36df61-K,'text':_0x56727c,'color':_0x1f94c3});this['_textBubble']=_0x288260,this[_0x12d09e(0x2d4)]['addObject'](_0x288260,p['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x6c52c3(0x227)](){const _0x3f9ec5=_0x6c52c3,_0x15496a=this[_0x3f9ec5(0x1ce)][_0x3f9ec5(0x2d8)]['subscribeEvent'](()=>{const _0x33cd5c=_0x3f9ec5;this[_0x33cd5c(0x38d)]=!0x0;}),_0x50c9e7=this[_0x3f9ec5(0x1ce)][_0x3f9ec5(0x24d)][_0x3f9ec5(0x34d)](()=>{const _0x4ff4cb=_0x3f9ec5;this[_0x4ff4cb(0x33a)]&&clearTimeout(this[_0x4ff4cb(0x33a)]),this['_hideTimer']=setTimeout(()=>{const _0x1c6dd9=_0x4ff4cb;this[_0x1c6dd9(0x38d)]=!0x1;},0x7d0);});return()=>{const _0x276cec=_0x3f9ec5;_0x15496a[_0x276cec(0x3a2)](),_0x50c9e7['unsubscribe']();};}[_0x6c52c3(0x276)](_0x3719f9,_0x5ea9b4,_0x4c1555,_0x5a773b){const _0x1d7fbe=_0x6c52c3,_0x1eb119=new a[(_0x1d7fbe(0x207))](_0x3719f9)[_0x1d7fbe(0x323)](0.2)[_0x1d7fbe(0x29f)](),_0x1eaa66=new C[(_0x1d7fbe(0x1a7))](Rt+a[_0x1d7fbe(0x254)](H),{'pointsGroup':_0x5ea9b4,'fill':_0x1eb119||C[_0x1d7fbe(0x1ef)](a['COLORS'][_0x1d7fbe(0x2ba)],0.2),'left':_0x4c1555,'top':_0x5a773b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d7fbe(0x268)][_0x1d7fbe(0x221)](_0x1eaa66),this[_0x1d7fbe(0x2d4)]['addObject'](_0x1eaa66,p[_0x1d7fbe(0x19a)]);}[_0x6c52c3(0x184)](_0x289ee0,_0x2199da,_0x23eac3,_0x48fa78){const _0x485925=_0x6c52c3,_0x327529=new a[(_0x485925(0x207))](_0x289ee0)['setAlpha'](0.2)[_0x485925(0x29f)](),_0xe503fb=new C[(_0x485925(0x1a7))](bt+a[_0x485925(0x254)](H),{'pointsGroup':_0x2199da,'fill':_0x327529||C[_0x485925(0x1ef)](a['COLORS'][_0x485925(0x2ba)],0.2),'left':_0x23eac3,'top':_0x48fa78,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x485925(0x221)](_0xe503fb),this[_0x485925(0x2d4)]['addObject'](_0xe503fb,p[_0x485925(0x19a)]);}[_0x6c52c3(0x286)](_0x1832d3){const _0x39f17b=_0x1832d3[0x0],_0x1acbb5=_0x39f17b[0x0],_0x2864f7=_0x39f17b[0x2],{x:_0x13ba6f,y:_0x3f19de}=_0x1acbb5,{x:_0x160ef9,y:_0x23c226}=_0x2864f7;return{'left':_0x13ba6f,'top':_0x3f19de,'width':_0x160ef9-_0x13ba6f,'height':_0x23c226-_0x3f19de};}[_0x6c52c3(0x352)](){const _0x4e9a38=_0x6c52c3,{scaleX:_0x2b9e2d,scaleY:_0x78aae6}=this['_scene'][_0x4e9a38(0x1a5)]();return Math['max'](_0x2b9e2d,_0x78aae6);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x1ad104,_0x1587a1,_0x31d010,_0x4f660a)=>{const _0x35e775=_0x6c52c3;for(var _0x4db0af=_0x4f660a>0x1?void 0x0:_0x4f660a?Lt(_0x1587a1,_0x31d010):_0x1587a1,_0x584114=_0x1ad104[_0x35e775(0x1f0)]-0x1,_0x5aff27;_0x584114>=0x0;_0x584114--)(_0x5aff27=_0x1ad104[_0x584114])&&(_0x4db0af=_0x5aff27(_0x4db0af)||_0x4db0af);return _0x4db0af;},z=(_0xe0e6b4,_0x5acdf1)=>(_0x253eec,_0x457aa7)=>_0x5acdf1(_0x253eec,_0x457aa7,_0xe0e6b4);let ge=class extends a[_0x6c52c3(0x358)]{constructor(_0x3d440e,_0x898720,_0xc3bf3c,_0x54a6d8,_0x13f1b8){const _0xe8d4a4=_0x6c52c3;super(),_(this,'_cursorShapes',[]),_(this,_0xe8d4a4(0x43c),[]),(this['_context']=_0x3d440e,this[_0xe8d4a4(0x3b4)]=_0x898720,this[_0xe8d4a4(0x1d8)]=_0xc3bf3c,this[_0xe8d4a4(0x25f)]=_0x54a6d8,this[_0xe8d4a4(0x278)]=_0x13f1b8,this['_init']());}[_0x6c52c3(0x39e)](){const _0x380ab7=_0x6c52c3,_0xe6dde5=this[_0x380ab7(0x33c)][_0x380ab7(0x2b7)],_0x586bf9=this[_0x380ab7(0x3b4)];this['disposeWithMe'](I['combineLatest']([this[_0x380ab7(0x1d8)][_0x380ab7(0x430)](_0xe6dde5),this[_0x380ab7(0x278)][_0x380ab7(0x1f6)]])[_0x380ab7(0x1b7)]($[_0x380ab7(0x32a)](([_0x40d4b0,_0x23539e])=>({'skeleton':_0x586bf9[_0x380ab7(0x205)](),'cursors':[..._0x40d4b0['values']()]['flatMap'](_0x48ad69=>({..._0x48ad69,'color':this['_themeService'][_0x380ab7(0x25c)](_0x48ad69[_0x380ab7(0x2fe)])}))})))['subscribe'](_0x3f9245=>{const _0x5f62af=_0x380ab7;if(this['_removeCollabCursors'](),_0x3f9245){const {skeleton:_0x58a725,cursors:_0x3398b7}=_0x3f9245;this[_0x5f62af(0x2cf)](_0x58a725,_0x3398b7);}})),this[_0x380ab7(0x181)](),this[_0x380ab7(0x394)]();}[_0x6c52c3(0x2cf)](_0x366208,_0x52da26){const _0x2c0e2c=_0x6c52c3,{scene:_0x2a1c40,mainComponent:_0x5e719e}=this['_context'],_0x250c9c=_0x52da26[_0x2c0e2c(0x32a)](_0xa7f80d=>new Ue(_0xa7f80d,_0x2a1c40,_0x366208,_0x5e719e));this[_0x2c0e2c(0x385)]=_0x250c9c,this['_cursors']=_0x52da26;}[_0x6c52c3(0x241)](){const _0x21be4f=_0x6c52c3;this['_removeCollabCursors']();const {scene:_0x155cc7,mainComponent:_0x144752}=this['_context'],_0x30a2c9=this[_0x21be4f(0x3b4)][_0x21be4f(0x205)](),_0xd749f5=this[_0x21be4f(0x43c)][_0x21be4f(0x32a)](_0x5e6f87=>new Ue(_0x5e6f87,_0x155cc7,_0x30a2c9,_0x144752));this[_0x21be4f(0x385)]=_0xd749f5;}[_0x6c52c3(0x3bd)](){const _0x1004fc=_0x6c52c3;this[_0x1004fc(0x385)][_0x1004fc(0x1b1)](_0x28eca3=>_0x28eca3[_0x1004fc(0x18d)]()),this[_0x1004fc(0x385)]=[];}[_0x6c52c3(0x394)](){const _0x4244a6=_0x6c52c3,_0x5a42d7=[p[_0x4244a6(0x19c)]['id']];this['disposeWithMe'](this[_0x4244a6(0x25f)][_0x4244a6(0x22f)](_0x1dcb16=>{const _0x59b6a2=_0x4244a6;_0x5a42d7[_0x59b6a2(0x238)](_0x1dcb16['id'])&&_0x1dcb16[_0x59b6a2(0x2f4)][_0x59b6a2(0x2b7)]===this[_0x59b6a2(0x33c)][_0x59b6a2(0x2b7)]&&this['_refreshCollabCursors']();}));}[_0x6c52c3(0x181)](){const _0x57df4c=_0x6c52c3;this['disposeWithMe'](a[_0x57df4c(0x1e3)](this[_0x57df4c(0x33c)][_0x57df4c(0x3c6)][_0x57df4c(0x1a0)])[_0x57df4c(0x1b7)]($[_0x57df4c(0x280)](_0x478d0e=>_0x478d0e[_0x57df4c(0x333)]===C[_0x57df4c(0x1e9)][_0x57df4c(0x325)]),$[_0x57df4c(0x31c)](0x10))[_0x57df4c(0x403)](()=>{this['_refreshCollabCursors']();}));}};function _0x4304(){const _0x75122e=['_uiPartsService','INVALID_ARGUMENT','createElement','substring','_beforeCloseService','searchParams','stageInfo','actions','popstate','function','symbol','_docSkeletonManagerService','SessionStatus','clipPath','_clearPolling','REDEMPTION_INVALID_CODE','evenodd','InsertRangeMoveRightCommandId','LOCAL_CACHE_INTERVAL_KEY','Rectangle','_removeCollabCursors','hovered','subunit','endColumn','shareReplay','SYNCED','takeUntil','call','_syncEditingCollabCursorService','engine','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DeleteRangeMoveUpCommandId','RECT','releaseFormulaLimitUrl','arc','_online','contains','_transformService','_checkCalculationAvailable','SetTextSelectionsOperation','967200tvSkcj','defineProperty','debounce','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','white','_saveCache','collabStatus.synced','USER_NOT_INVITED_CODE','_onRefRangeChange','_getMergeRange','clearTimeout','ALREADY_EXISTS','_univerInstanceService','_removeClearOtherTimer','collaboration.single-unit.warning','1338237EaElzD','CollaborationEvent','getOwnPropertySymbols','div','INVITE_CODE_REQUIRED','lineTo','_updateLocalCursor','_render','handleMoveRange','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ILocalCacheService','sessionTicket','UniverInstanceType','subUnitId','SOCKET_FAILED_RETRY','USERS_LEAVE','handleInsertCol','InsertColCommandId','CollaborationDataLoaderController','none','_toggleOnline','PENDING','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','NodePositionConvertToRectRange','_status$','DOC_RANGE_TYPE','BuiltInUIPart','random','attrs','WECHAT_HAS_BEEN_BOUND','setTimeout','merge','totalFormulasToCalculate','complete','name','subscribe','range','off-line-icon_clip0_910_343','ONLINE','enableLocalCache','trim','saveTaskMap','createIdentifier','_heartbeatTimer','handleDeleteRangeMoveLeft','_disabled','IUniverInstanceService','_doCreateSocket','setItem','getUnitId','LICENSE_DISTRO_REJECTED','Disposable','currentColor','OFFLINE','now','CollaborationSessionService','prototype','Module','delete','removeParam','switchMap','YUUMI_RATE_OVER_LIMIT','UNAUTHENTICATED','OTHER_CLIENTS_EDITING','syncEditingCollabCursor','handleInsertRow','closePath','YUUMI_ASYNCIO_CANCELLED','replaceState','_currentUsage','M0\x200H16V16H0z','_localStorageService','_cursorInfo$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_docSyncEditingCollabCursorService','_docTransformSelectionsService','href','green.600','_name','Success','getCollabCursors$','registerRenderModule','svg','indexOf','DeleteRangeMoveLeftCommandId','apply','urlChange$','DisposableCollection','pushState','limitInfo','combineLatest','0\x200\x2017\x2016','_cursors','saveOfflineData','requireSession','[CollaborationDataLoaderController]','_initResize','...','body','_drawRectRange','collab-text-anchor-','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','START_CALCULATION','IDocClipboardService','getUndoRedoMutationParamsCache','getMemberID','_memberService','fillText','dispose','fromEvent','getActiveRange','_sheetSkeletonManagerService','addEventListener','beginPath','getConfig','add','REDEMPTION_USER_NOT_ELIGIBLE','_config','_scheduleHeartbeat','DocIMEInputManagerService','_labelPosition','TEXT_RANGE_LAYER_INDEX','FormulaExecutedStateType','SetDocZoomRatioOperation','getLocalCacheKey','APPLY_NON_SEQUENTIAL_REVISION','UnitStatus','onTransformChange$','transformMutation','_roomMembers$','init','AWAITING','getAncestorScale','RemoveColCommandId','RegularPolygon','_onCursorDelete','_getFormulaLimitStatus','toDisposable','hide','WebURLService','source','url(#off-line-icon_clip0_910_343)','YUUMI_NO_CUBOID_FOR_QUESTION','runOnServer','forEach','backgroundColor','_lastPointer','mapTo','path','Optional','pipe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_id','_backgroundColor','setInterval','top','getViewport','session.connection-failed','jiqing.500','_maxFormulaLimit','Subject','ranges','getCoordByCell','tag','_startSheetCollabCursor','AUTHORIZE_CODE_ILLEGAL','CURRENT_STATUS_CANNOT_OPERATE','IMessageService','HEADER_MENU','handleDeleteRangeMoveUp','_saveTaskMap','cursorInfo$','createSocket','_anchor','sessionStatus$','values','collab-client.tooltip.reconnect','focused$','show','getUnitStatus$','toStringTag','onMouseMove','_checkAndWaitForCalculationPermission','_collabCursorController','collab-text-range-','transformIMECache','_logService','USER_IS_ANONYMOUS','SheetsSelectionsService','_collaborationController','[RemoteUniscriptService]:\x20no\x20focused\x20unit','parse','YUUMI_ALL_TABLES_IS_INVALID','getStateCache','fromEventSubject','session.will-retry','IRemoteInstanceService','CollaborationStatus','jsx','_transformUndoRedoStack','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabCursorState$','_scheduleClearOtherTimer','_initDependencies','_configService','Inject','getColor','length','then','idSuffix','CONFLICT','handleInsertRangeMoveRight','MOBILE_HAS_BEEN_BOUND','currentTheme$','Injector','PERMISSION_DENIED','2874376UWJokw','VIEW_MAIN','ENTITLE_NEED_BILLING_ADDRESS','event$','setActiveRange','EMAIL_HAS_BEEN_BOUND','connectInjector','_taskIds','parseInt','_toggleOffline','_docTransformIMECacheService','REDEMPTION_CODE_HAS_BEEN_CREATED','getSkeleton','TEXT','ColorKit','_range','SHEET_VIEWPORT_KEY','LICENSE_IMPORT_SIZE_EXCEEDED','createInstance','_anchorDot','onStarting','_docTransformStateCacheService','m1Prime','YUUMI_TABLE_NOT_FOUND_IN_UNIT','all','DocStateChangeManagerService','currentSkeleton$','unload','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_notificationService','mergeOverrideWithDependencies','endRow','data','debug','TOO_MANY_REQUESTS','history','eventID','defs','YUUMI_CONNECTOR_URL_NOT_FOUND','m2Prime','push','Vector2','LOGIN_TOKEN_PROCESSING_FAILED','SOCKET_FAILED','LocaleService','#FFF','_handleHover','_refRangeService','4455450CcHQkE','Rect','jsxs','BehaviorSubject','search','round','onCommandExecuted','assignAColorForMemberID','UNIVER_DOC','forwardRef','CommandType','_instanceService','from','CollaborationSocketService','_clearOtherTimers','includes','registerRefRange','_renderManagerService','LOGIN_FAILED','APPLY_REJECT','Workbook','getParam','deepClone','registerDependencies','_refreshCollabCursors','selections','CHANGESET_REVISION_CONFILICT','_send','_setupBeforeClosingHandler','getCurrent','_entities','MemberService','/universer-api/license/formula/limit/status','ITransformService','isArray','collabStatus.fetchMiss','onPointerLeave$','UNIVER_SHEET','_cachedData','updateOfflineData','DocCollaborationEntity','_ensureSubject','7mJgkND','generateRandomId','imageSourceType','transformRemoteChangeset','moveTo','RefRangeService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getformulaLimitStatusUrl','invokeId','getColorFromTheme','_imageIoService','transformStateCache','_commandService','SetFormulaCalculationStartMutation','colorChannel1','roomMembers$','RemoteUniscriptService','stage','Shape','YUUMI_AI_RUN_FAILED','COLORS','_shapes','children','/universer-api/license/formula/limit/start','clearInterval','code','_httpService','IURLService','post','activeSheet$','application/json','Plugin','AWAITING_WITH_PENDING','_hovered','_lastResponseTimestamp','_drawTextRange','_startCalculationLimit','_themeService','getFocusedUnit','univer-flex\x20univer-items-center','PAYMENT_CHANNEL_NOT_SUPPORT','has','deserializeRangeWithSheet','SheetCollabCursorShape','key','filter','INVALID_INVITE_CODE','UNDEFINED','xlink:href','row','get','_getAnchorBounding','getSheetObject','_showGuardMessage','getRangePointData','mutations','1em','getTypeOfUnitDisposed$','redoState','_pollingInterval','hasOwnProperty','1372278wsDGLg','onRendered','univerjs-icon\x20univerjs-icon-','override','isTransformMutationFailure','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_color','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_localeService','WebSocketService','SNAPSHOT_INVALID_SNAPSHOT','getCurrentRevOfUnit','formula.calculation.unable','CONNECTOR_DATA_TOO_LARGE','getUnit','toRgbString','_revisionService','with','IRenderManagerService','startFormulaLimitUrl','_dataLoaderService','INTERNAL_ERROR','reconnect','UniverIcon','string','location','_initEvent','registerBeforeClose','getOwnPropertyDescriptor','ISnapshotServerService','_textBubble','storage','selection','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','http://www.w3.org/2000/svg','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','_entityInit$','UPDATE_CURSOR','fillRule','unitId','_initStatusListener','_hasFormulaInDirtyRanges','black','labelPosition','_handleEvent','MessageType','_updateURLWithCurrentState','SNAPSHOT_HAS_BEEN_REMOVED','beforeCommandExecuted','REDEMPTION_CODE_NOT_STARTED','useRef','undoState','_initCommandInterceptor','drawWith','getSheetId','HTTPService','transformSelections','next','ILogService','_getSaveTimeout','_releaseCalculationLimit','_collabCursorState$','_collaborationUIEventService','_updateCollabCursors','collaboration-client.offline-data-not-saved','session.collaboration-timeout','_eventUnsubscribe','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_scene','findNodePositionByCharIndex','ERROR_AGAIN','text','onPointerEnter$','_colorAssignService','getCurrentSelections','find','_draw','isFormulaString','LICENSE_EXPORT_SIZE_EXCEEDED','CLOSE_ROOM','useDependency','FETCH_MISS','replaceDocRanges','_urlService','bottom','UNRECOGNIZED','ENTITLE_DUP_SUBSCRIPTION','_docStateChangeManagerService','_messageService','DesktopCollaborationStatusDisplayController','MOBILE_VERIFY_CODE_MISMATCH','getCellPositionByOffset','unitID','startRow','icon','getItem','_applyCommand','_initEntityListener','_docClipboardService','asObservable','params','JOIN_ROOM_FAILED','fillStyle','getTypeOfUnitAdded$','collaboration.closeRoom','_drawAnchor','cursorInfo','fill','getValue','addObject','color','entries','permission.content','_transformHistoryAndStateStack','stringify','runId','ISocketService','USER_NOT_FOUND','CollaborationUIEventId','red.300','transform','_colorIndex','OffLineIcon','getMergeData','FormulaExecuteStageType','IImageIoService','_registerDependencies','use','isActive','handleIRemoveCol','toString','SUBMIT_CHANGESET_TIMEOUT','save','COMPLETION_FINISHED','concat','_scheduleSaving','uni.network.url-service','executeCommand','ENTITLE_CAN_NOT_BUY_LOWER_OTP','setShapeProps','throttleTime','INVITE_CODE_ALREADY_BOUND','Warning','mask','defIds','sheetId','displayName','setAlpha','_collabSessionService','resize','startsWith','YUUMI_SUBSCRIPTION_NOT_FOUND','PY_RUNTIME_SCRIPT_ERROR','setParam','map','DEFAULT_WS_SESSION_TICKET_URL','CollaborationUIEventService','setConfig','roomMembers','_setFormulaLimitStatus','touchDependencies','disableLocalCache','_getSheetObject','type','collab-rect-range-','getMember','DependentOn','onPointerMove$','NO_OTHER_CLIENTS_EDITING','doc.mutation.rich-text-editing','_hideTimer','IConfigService','_context','rgba(255,\x20255,\x20255,\x200.01)','_setupSubUnitSync','set','NOT_COLLAB','YUUMI_UNABLE_LOAD_URL','SetWorksheetActivateCommand','DocSelectionManagerService','measureText','_assignedColors','send','addObjects','addClipboardHook','LICENSE_MAX_UNITS_EXCEEDED','setStateCache','origin','/universer-api/license/formula/limit/done','subscribeEvent','OnLineIcon','ENTITLE_REPORT_LIMIT_EXCEED','textRanges','_selfUnitIDs','_getScale','Error','_session','runRefRangeMutations','REDEMPTION_CODE_FULLY_REDEEMED','SetSelectionsOperation','RxDisposable','dispose$','collabStatus.syncing','_createSocketURL','getOffsetConfig','loadUnit','Tools','skeleton','whenReady','_onCursorUpdate','UniverCollaborationClientUIPlugin','getCurrentUnitForType','size','APPLY_REVISION_CONFILICT','_transformPreviousActiveRange','getCollabEntity$','NOT_FOUND','collabStatus.conflict','InsertRowCommandId','_unitStatus','ThemeService','unshift','url(#on-line-icon_clip0_910_349)','APPLY_DUPLICATED','IBeforeCloseService','_getSessionTicket','serializeRangeWithSheet','_handleLeaveEvent','startColumn','getSheetBySheetId','assign','docStateChange$','column','_startDocCollabCursor','replace','formula.calculation.waiting','editingUnit','isTransformMutationsWithChangesetSuccess','extend','width','WebBrowserSingleActiveUnitService','RichTextEditingMutation','split','className','error','_cursorShapes','_handleHeartbeatEvent','exhaustSavingTask','_updateSubUnitFromURLParams','ENTITLE_CHAT_LIMIT_EXCEED','ENSURE_SNAPSHOT_EXECUTION','ticket','getRenderById','_hover','2034826JNhrxl','url(#$1','?taskId=','ICommandService','disposeWithMe','IUIPartsService','_initCommandExecutedListener','Failed','2983780quJyYR','newValue','getCellMatrix','purple.300','Tooltip','transformMutationsWithChangeset','_unitOnClients','wsSessionTicketUrl','_init','restore','_initStatusComponent','_injector','unsubscribe','_localCacheService','on-line-icon_clip0_910_349','CollaborationController','collabStatus.offline','EffectRefRangId','blue.400'];_0x4304=function(){return _0x75122e;};return _0x4304();}ge=Mt([z(0x1,a[_0x6c52c3(0x1ee)](V['DocSkeletonManagerService'])),z(0x2,a['Inject'](F)),z(0x3,a[_0x6c52c3(0x391)]),z(0x4,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x36c)]))],ge);const At=0x1,Pt=1.5;class Fe extends C[_0x6c52c3(0x265)]{constructor(_0x402888,_0x8f2a9d){const _0x4a77a5=_0x6c52c3;super(_0x402888,_0x8f2a9d),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x4a77a5(0x208)),_(this,_0x4a77a5(0x42e),''),_(this,_0x4a77a5(0x199),_0x4a77a5(0x1bc)),_(this,_0x4a77a5(0x1ba)),(_0x8f2a9d&&this[_0x4a77a5(0x31b)](_0x8f2a9d),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x4a77a5(0x31b)]({'hovered':!0x0})),this[_0x4a77a5(0x24d)][_0x4a77a5(0x34d)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x6c52c3(0x31b)](_0x5c24bc){const _0x6368d5=_0x6c52c3;var _0x7dde4,_0x41f7cf,_0x973e3f,_0x473b65,_0x48d70d,_0x2bc745;this['_color']=(_0x7dde4=_0x5c24bc[_0x6368d5(0x2fe)])!=null?_0x7dde4:this[_0x6368d5(0x296)],this[_0x6368d5(0x274)]=(_0x41f7cf=_0x5c24bc[_0x6368d5(0x3be)])!=null?_0x41f7cf:this['_hovered'],this[_0x6368d5(0x208)]=(_0x973e3f=_0x5c24bc[_0x6368d5(0x404)])!=null?_0x973e3f:this[_0x6368d5(0x208)],this['_name']=(_0x473b65=_0x5c24bc[_0x6368d5(0x402)])!=null?_0x473b65:this[_0x6368d5(0x42e)],this[_0x6368d5(0x199)]=(_0x48d70d=_0x5c24bc[_0x6368d5(0x2bb)])!=null?_0x48d70d:this['_labelPosition'],this[_0x6368d5(0x1ba)]=(_0x2bc745=_0x5c24bc[_0x6368d5(0x1b2)])!=null?_0x2bc745:this['_backgroundColor'],this['transformByState']({'width':_0x5c24bc[_0x6368d5(0x37f)],'height':_0x5c24bc['height']});}[_0x6c52c3(0x1d6)](_0x551f5a){const _0x19e1bf=_0x6c52c3,{row:_0x4c2f2c,column:_0x2f3cc4}=_0x551f5a;if(_0x4c2f2c>=this[_0x19e1bf(0x208)][_0x19e1bf(0x2ed)]&&_0x4c2f2c<=this[_0x19e1bf(0x208)][_0x19e1bf(0x218)]&&_0x2f3cc4>=this[_0x19e1bf(0x208)][_0x19e1bf(0x374)]&&_0x2f3cc4<=this[_0x19e1bf(0x208)][_0x19e1bf(0x3c0)]){this[_0x19e1bf(0x31b)]({'hovered':!0x0});return;}this[_0x19e1bf(0x31b)]({'hovered':!0x1});}['triggerDblclick'](_0x2e2105){return!0x1;}[_0x6c52c3(0x2dc)](_0x2fab22){const _0x5cc1e7=_0x6c52c3;C[_0x5cc1e7(0x22a)][_0x5cc1e7(0x2c5)](_0x2fab22,{'width':this[_0x5cc1e7(0x37f)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x5cc1e7(0x296)],'evented':!0x1,'fill':this[_0x5cc1e7(0x1ba)]}),this['_hovered']&&(_0x2fab22['save'](),_0x2fab22[_0x5cc1e7(0x308)](0x1,0x0,0x0,0x1,this[_0x5cc1e7(0x37f)],this[_0x5cc1e7(0x199)]===_0x5cc1e7(0x2e4)?0x0:-K),ne[_0x5cc1e7(0x2c5)](_0x2fab22,{'text':this[_0x5cc1e7(0x42e)],'color':this[_0x5cc1e7(0x296)]}),_0x2fab22[_0x5cc1e7(0x39f)]());}}var wt=Object[_0x6c52c3(0x2ac)],yt=(_0x31ae63,_0xef868d,_0xf3514,_0x3689cf)=>{for(var _0x317299=_0x3689cf>0x1?void 0x0:_0x3689cf?wt(_0xef868d,_0xf3514):_0xef868d,_0x780f48=_0x31ae63['length']-0x1,_0x5d57e6;_0x780f48>=0x0;_0x780f48--)(_0x5d57e6=_0x31ae63[_0x780f48])&&(_0x317299=_0x5d57e6(_0x317299)||_0x317299);return _0x317299;},he=(_0x2f7326,_0x4d0a64)=>(_0x26092d,_0x58869c)=>_0x4d0a64(_0x26092d,_0x58869c,_0x2f7326);const xt=0x1389;let Ee=class extends a[_0x6c52c3(0x358)]{constructor(_0x40fa7a,_0x1ab5e4,_0x387ebe,_0x53e38f){const _0x15636c=_0x6c52c3;super(),_(this,_0x15636c(0x43c),new Set()),_(this,_0x15636c(0x1b3),null),(this[_0x15636c(0x33c)]=_0x40fa7a,this['_sheetSkeletonManagerService']=_0x1ab5e4,this[_0x15636c(0x1d8)]=_0x387ebe,this[_0x15636c(0x278)]=_0x53e38f,this[_0x15636c(0x39e)]());}[_0x6c52c3(0x39e)](){const _0x3390ff=_0x6c52c3;this[_0x3390ff(0x190)][_0x3390ff(0x213)]['pipe']($['takeUntil'](this['dispose$']),$[_0x3390ff(0x41c)](_0x2c8e5c=>{const _0x114ddb=_0x3390ff;if(_0x2c8e5c){const _0xf64156=_0x2c8e5c[_0x114ddb(0x321)];return I[_0x114ddb(0x43a)](this[_0x114ddb(0x1d8)]['getCollabCursors$'](this[_0x114ddb(0x33c)][_0x114ddb(0x2b7)]),this[_0x114ddb(0x278)][_0x114ddb(0x1f6)])['pipe']($[_0x114ddb(0x32a)](([_0x4c8e5f,_0x46e619])=>{const _0x2a939e=new Map();return _0x4c8e5f['forEach']((_0x217489,_0x445851)=>{const _0x589f10=_0xc584;if(_0x217489['sheetID']===_0xf64156){const _0x5eb81e={..._0x217489};_0x5eb81e[_0x589f10(0x2fe)]=this['_themeService'][_0x589f10(0x25c)](_0x217489[_0x589f10(0x2fe)]),_0x2a939e[_0x589f10(0x33f)](_0x445851,_0x5eb81e);}}),{'skeleton':_0x2c8e5c,'cursors':_0x2a939e};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3390ff(0x403)](({skeleton:_0x1275b1,cursors:_0x3fe3ec})=>{const _0x368230=_0x3390ff;this[_0x368230(0x3bd)](),_0x1275b1&&this[_0x368230(0x2cf)](_0x1275b1,_0x3fe3ec);}),this[_0x3390ff(0x190)][_0x3390ff(0x213)]['subscribe'](_0x2ae340=>{const _0x3b4348=_0x3390ff;if(_0x2ae340==null)return;const {skeleton:_0x293f69}=_0x2ae340,{scene:_0x47b6b2}=this[_0x3b4348(0x33c)];_0x47b6b2[_0x3b4348(0x337)][_0x3b4348(0x34d)](a['debounce'](_0x585ed1=>{const _0x191dd4=_0x3b4348;var _0x5165bd,_0xdad584;const {offsetX:_0x386c94,offsetY:_0x3fac48}=_0x585ed1,{x:_0x2f13ff,y:_0x47625d}=_0x47b6b2['getRelativeToViewportCoord'](C[_0x191dd4(0x222)]['FromArray']([_0x386c94,_0x3fac48])),{scaleX:_0x986ddc,scaleY:_0xfc2971}=_0x47b6b2['getAncestorScale'](),_0x22f6c4=_0x47b6b2[_0x191dd4(0x1bd)](C[_0x191dd4(0x209)][_0x191dd4(0x1fa)]),_0x303238=_0x47b6b2['getVpScrollXYInfoByPosToVp'](C[_0x191dd4(0x222)]['FromArray']([_0x2f13ff,_0x47625d]),_0x22f6c4),_0x3c4bc3=_0x293f69[_0x191dd4(0x2eb)](_0x386c94,_0x3fac48,_0x986ddc,_0xfc2971,_0x303238);((_0x5165bd=this['_lastPointer'])==null?void 0x0:_0x5165bd['column'])===_0x3c4bc3[_0x191dd4(0x378)]&&((_0xdad584=this[_0x191dd4(0x1b3)])==null?void 0x0:_0xdad584[_0x191dd4(0x284)])===_0x3c4bc3['row']||this[_0x191dd4(0x43c)][_0x191dd4(0x1b1)](_0x321602=>{const _0x5c65d3=_0x191dd4;_0x321602[_0x5c65d3(0x1d6)](_0x3c4bc3);});},0x64));});}[_0x6c52c3(0x2cf)](_0x64e955,_0xcd0472){const _0x511ef9=_0x6c52c3;var _0x30965c;const _0xb9e2c0=(_0x30965c=this[_0x511ef9(0x190)][_0x511ef9(0x246)]())==null?void 0x0:_0x30965c[_0x511ef9(0x35f)];if(!_0xb9e2c0)return;const _0x253278=this['_getSheetObject']();if(!_0x253278)return;this['_cursors'][_0x511ef9(0x1b1)](_0x15a5dc=>{_0x15a5dc['makeDirty']();});const {scene:_0x5bad62}=_0x253278,_0x250e21=$t(Array['from'](_0xcd0472[_0x511ef9(0x1d0)]()))[_0x511ef9(0x32a)](_0x2260a8=>{const _0x4bf2c5=_0x511ef9,{color:_0x235599,range:_0x37d1c9,name:_0x204c20,selection:_0x550bac,sheetID:_0x568ea5}=_0x2260a8,{startColumn:_0x52aaa9,startRow:_0x15ab1b,endColumn:_0x4a5aad,endRow:_0x4d02d0}=_0x37d1c9,_0x178e71=J['getCoordByCell'](_0x15ab1b,_0x52aaa9,_0x5bad62,_0xb9e2c0),_0x338552=J[_0x4bf2c5(0x1c3)](_0x4d02d0,_0x4a5aad,_0x5bad62,_0xb9e2c0),{columnHeaderHeightAndMarginTop:_0x60817}=_0xb9e2c0,{startX:_0x3fc959,startY:_0x454576}=_0x178e71,{endX:_0x22fe15,endY:_0x588f13}=_0x338552,_0x51061a=_0x22fe15-_0x3fc959,_0x22b099=_0x588f13-_0x454576,_0x5e8098={'labelPosition':_0x454576-_0x60817>=K?_0x4bf2c5(0x1bc):_0x4bf2c5(0x2e4),'sheetID':_0x568ea5,'range':_0x37d1c9,'color':_0x235599,'name':_0x204c20,'selection':_0x550bac,'left':_0x3fc959,'top':_0x454576,'width':_0x51061a,'height':_0x22b099,'evented':!0x1,'zIndex':xt};return new Fe(_0x204c20,_0x5e8098);});_0x5bad62[_0x511ef9(0x347)](_0x250e21,At),this['_cursors']=new Set(_0x250e21);}[_0x6c52c3(0x3bd)](){const _0x9736d4=_0x6c52c3;var _0x1a84fb;(_0x1a84fb=this[_0x9736d4(0x43c)])==null||_0x1a84fb['forEach'](_0x1828c1=>_0x1828c1[_0x9736d4(0x18d)]());}[_0x6c52c3(0x332)](){const _0x3f11fc=_0x6c52c3;return J[_0x3f11fc(0x287)](this['_context']['unit'],this['_context']);}};Ee=yt([he(0x1,a[_0x6c52c3(0x1ee)](J['SheetSkeletonManagerService'])),he(0x2,a[_0x6c52c3(0x1ee)](F)),he(0x3,a['Inject'](a['ThemeService']))],Ee);function $t(_0x18fb12){const _0x1310e4=_0x6c52c3,_0x52e7a5=new Map();return _0x18fb12[_0x1310e4(0x1b1)](_0xa11682=>{const _0x256e6e=_0x1310e4;if(_0x52e7a5[_0x256e6e(0x27c)](_0xa11682[_0x256e6e(0x2b0)])){const _0x11f0b7=_0x52e7a5[_0x256e6e(0x285)](_0xa11682[_0x256e6e(0x2b0)]);_0x11f0b7[_0x256e6e(0x402)]+=',\x20'+_0xa11682[_0x256e6e(0x402)];}else _0x52e7a5[_0x256e6e(0x33f)](_0xa11682[_0x256e6e(0x2b0)],_0xa11682);}),Array[_0x1310e4(0x235)](_0x52e7a5[_0x1310e4(0x1d0)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x3fd02c,_0x4a94a0,_0x4db46e,_0x2588f8)=>{for(var _0x12ddef=_0x2588f8>0x1?void 0x0:_0x2588f8?Bt(_0x4a94a0,_0x4db46e):_0x4a94a0,_0x479bf7=_0x3fd02c['length']-0x1,_0x1f09f5;_0x479bf7>=0x0;_0x479bf7--)(_0x1f09f5=_0x3fd02c[_0x479bf7])&&(_0x12ddef=_0x1f09f5(_0x12ddef)||_0x12ddef);return _0x12ddef;},x=(_0x5a45dd,_0x404577)=>(_0x48f2aa,_0xe77bb)=>_0x404577(_0x48f2aa,_0xe77bb,_0x5a45dd);let Z=class extends a[_0x6c52c3(0x413)]{constructor(_0x164a8b,_0x752c3f,_0x43f678,_0x56b882,_0x492352,_0x27f12f){const _0x3b56e2=_0x6c52c3;super(),this[_0x3b56e2(0x3ad)]=_0x164a8b,this[_0x3b56e2(0x3a3)]=_0x752c3f,this['_collaborationUIEventService']=_0x43f678,this[_0x3b56e2(0x2e8)]=_0x56b882,this['_notificationService']=_0x492352,this[_0x3b56e2(0x298)]=_0x27f12f,this[_0x3b56e2(0x245)](),this['_initEvent']();}[_0x6c52c3(0x245)](){const _0x4ca441=_0x6c52c3;this[_0x4ca441(0x392)](this[_0x4ca441(0x3ad)][_0x4ca441(0x2ab)](()=>{const _0x2e51eb=_0x4ca441;if(this[_0x2e51eb(0x3a3)][_0x2e51eb(0x409)][_0x2e51eb(0x364)])return this[_0x2e51eb(0x298)]['t'](_0x2e51eb(0x2d0));}));}[_0x6c52c3(0x2aa)](){const _0x55663a=_0x6c52c3;this[_0x55663a(0x392)](this[_0x55663a(0x2ce)][_0x55663a(0x1fc)][_0x55663a(0x403)](_0x1bb921=>{const _0x3426de=_0x55663a;_0x1bb921['id']===u[_0x3426de(0x306)]['OTHER_CLIENT_EDITING']&&this[_0x3426de(0x2e8)]['show']({'type':T['MessageType'][_0x3426de(0x31e)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x3df))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x2df)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)][_0x3426de(0x31e)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x2f8))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x1f8)]&&this[_0x3426de(0x216)][_0x3426de(0x1d3)]({'title':this[_0x3426de(0x298)]['t']('permission.title'),'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x300)),'type':_0x3426de(0x384),'duration':0x0}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x1f3)]&&this[_0x3426de(0x2e8)]['show']({'type':T[_0x3426de(0x2bd)][_0x3426de(0x353)],'content':this[_0x3426de(0x298)]['t']('collaboration.closeRoom')+'('+_0x1bb921[_0x3426de(0x219)]+')'}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x2f5)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)]['Warning'],'content':this[_0x3426de(0x298)]['t'](_0x1bb921[_0x3426de(0x219)]||'')}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x3ee)]&&this['_messageService'][_0x3426de(0x1d3)]({'type':T['MessageType']['Warning'],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x1e4))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x224)]&&this[_0x3426de(0x2e8)][_0x3426de(0x1d3)]({'type':T[_0x3426de(0x2bd)][_0x3426de(0x353)],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x1be))}),_0x1bb921['id']===u[_0x3426de(0x306)][_0x3426de(0x313)]&&this['_messageService'][_0x3426de(0x1d3)]({'type':T['MessageType']['Error'],'content':this[_0x3426de(0x298)]['t'](_0x3426de(0x2d1))});}));}};Z=Ft([x(0x0,R[_0x6c52c3(0x370)]),x(0x1,u[_0x6c52c3(0x3ea)]),x(0x2,a['Inject'](u[_0x6c52c3(0x32c)])),x(0x3,R['IMessageService']),x(0x4,R['INotificationService']),x(0x5,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x225)]))],Z);const kt='collaboration-client-ui.config',Le={};var jt=Object[_0x6c52c3(0x2ac)],Yt=(_0x158eb0,_0x5a5b14,_0x58b839,_0x567468)=>{const _0x4ea4d3=_0x6c52c3;for(var _0x2d4e8c=_0x567468>0x1?void 0x0:_0x567468?jt(_0x5a5b14,_0x58b839):_0x5a5b14,_0x279930=_0x158eb0[_0x4ea4d3(0x1f0)]-0x1,_0x1e7ef9;_0x279930>=0x0;_0x279930--)(_0x1e7ef9=_0x158eb0[_0x279930])&&(_0x2d4e8c=_0x1e7ef9(_0x2d4e8c)||_0x2d4e8c);return _0x2d4e8c;},Me=(_0x2caad0,_0x19138b)=>(_0x33457d,_0x4b2e5b)=>_0x19138b(_0x33457d,_0x4b2e5b,_0x2caad0);let Q=class{constructor(_0x1a6af6,_0xcbde58){this['_transformService']=_0x1a6af6,this['_renderManagerService']=_0xcbde58;}[_0x6c52c3(0x1da)](_0x1693bd){const _0x222f67=_0x6c52c3;this[_0x222f67(0x1e8)](_0x1693bd),this['_transformPreviousActiveRange'](_0x1693bd);}['transformRemoteChangeset'](_0x45e24b){const _0x1f7ba2=_0x6c52c3,{unitID:_0x29a99b}=_0x45e24b,_0x5b80c0=this[_0x1f7ba2(0x23a)][_0x1f7ba2(0x38c)](_0x29a99b)['with'](p[_0x1f7ba2(0x198)]),{redoCache:_0x2b4731}=_0x5b80c0[_0x1f7ba2(0x189)]();if(_0x2b4731['length']===0x0)return _0x45e24b;let _0x486abd=a[_0x1f7ba2(0x35e)]['deepClone'](_0x45e24b['mutations'][0x0]);for(let _0x5b3181=0x0;_0x5b3181<_0x2b4731[_0x1f7ba2(0x1f0)];_0x5b3181++){const _0x4e4691={'id':_0x1f7ba2(0x339),'params':{..._0x2b4731[_0x5b3181]}},_0x418d05=this['_transformService']['transformMutation'](_0x486abd,_0x4e4691,!0x1);if(g[_0x1f7ba2(0x294)](_0x418d05))throw _0x418d05[_0x1f7ba2(0x384)];_0x486abd=_0x418d05[_0x1f7ba2(0x20f)];}return{...a[_0x1f7ba2(0x35e)][_0x1f7ba2(0x23f)](_0x45e24b),'mutations':[_0x486abd]};}['_transformUndoRedoStack'](_0x34b1e1){const _0x2b028f=_0x6c52c3,{unitID:_0x3d8b1d}=_0x34b1e1,_0x107dc0=this[_0x2b028f(0x23a)][_0x2b028f(0x38c)](_0x3d8b1d)[_0x2b028f(0x2a1)](p['DocIMEInputManagerService']),{undoCache:_0x329535,redoCache:_0x48f1cc}=_0x107dc0[_0x2b028f(0x189)]();if(_0x329535[_0x2b028f(0x1f0)]===0x0||_0x48f1cc[_0x2b028f(0x1f0)]===0x0)return;const _0x3cbbf2=[],_0x4d1165=[];let _0x64df99=a['Tools'][_0x2b028f(0x23f)](_0x34b1e1['mutations'][0x0]),_0x234328=a[_0x2b028f(0x35e)][_0x2b028f(0x23f)](_0x34b1e1[_0x2b028f(0x28a)][0x0]);for(let _0xfb5a40=_0x329535[_0x2b028f(0x1f0)]-0x1;_0xfb5a40>=0x0;_0xfb5a40--){const _0x1b24a1={'id':_0x2b028f(0x339),'params':{..._0x329535[_0xfb5a40]}},_0x1a22f8={'id':'doc.mutation.rich-text-editing','params':{..._0x48f1cc[_0xfb5a40]}},_0xc1a750=this['_transformService'][_0x2b028f(0x1a1)](_0x64df99,_0x1b24a1,!0x1),_0x2b840d=this[_0x2b028f(0x3ce)][_0x2b028f(0x1a1)](_0x234328,_0x1a22f8,!0x1);if(g[_0x2b028f(0x294)](_0xc1a750))throw _0xc1a750[_0x2b028f(0x384)];if(g[_0x2b028f(0x294)](_0x2b840d))throw _0x2b840d[_0x2b028f(0x384)];_0x3cbbf2[_0x2b028f(0x36d)](_0xc1a750[_0x2b028f(0x220)][_0x2b028f(0x2f4)]),_0x4d1165[_0x2b028f(0x36d)](_0x2b840d[_0x2b028f(0x220)][_0x2b028f(0x2f4)]),_0x64df99=_0xc1a750[_0x2b028f(0x20f)],_0x234328=_0x2b840d[_0x2b028f(0x20f)];}_0x107dc0['setUndoRedoMutationParamsCache']({'undoCache':_0x3cbbf2,'redoCache':_0x4d1165});}[_0x6c52c3(0x366)](_0xb00573){const _0x334c97=_0x6c52c3,{unitID:_0x52c28c}=_0xb00573,_0x251aaf=this[_0x334c97(0x23a)][_0x334c97(0x38c)](_0x52c28c)[_0x334c97(0x2a1)](p['DocIMEInputManagerService']),_0x2a6834=_0x251aaf[_0x334c97(0x18f)]();if(_0x2a6834==null)return;const _0x54aa49=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xb00573[_0x334c97(0x2ec)],'actions':null,'textRanges':[_0x2a6834]}}],_0x5dbf8c=this[_0x334c97(0x3ce)][_0x334c97(0x39b)](_0xb00573,_0x54aa49);if(!g[_0x334c97(0x37d)](_0x5dbf8c))throw _0x5dbf8c[_0x334c97(0x384)];const _0x11caf0=_0x5dbf8c[_0x334c97(0x220)][0x0][_0x334c97(0x2f4)][_0x334c97(0x350)];Array[_0x334c97(0x24b)](_0x11caf0)&&_0x11caf0[_0x334c97(0x1f0)]&&_0x251aaf[_0x334c97(0x1fd)](_0x11caf0[0x0]);}};Q=Yt([Me(0x0,g['ITransformService']),Me(0x1,C[_0x6c52c3(0x2a2)])],Q);var Ht=Object[_0x6c52c3(0x2ac)],Wt=(_0xf57b72,_0x4915c4,_0x4c8f91,_0x30eeb7)=>{const _0xe459d4=_0x6c52c3;for(var _0x4793a4=_0x30eeb7>0x1?void 0x0:_0x30eeb7?Ht(_0x4915c4,_0x4c8f91):_0x4915c4,_0x15d731=_0xf57b72[_0xe459d4(0x1f0)]-0x1,_0x42556f;_0x15d731>=0x0;_0x15d731--)(_0x42556f=_0xf57b72[_0x15d731])&&(_0x4793a4=_0x42556f(_0x4793a4)||_0x4793a4);return _0x4793a4;},ue=(_0x535e6f,_0x57e872)=>(_0x56d570,_0x3d2e4b)=>_0x57e872(_0x56d570,_0x3d2e4b,_0x535e6f);let ee=class{constructor(_0x375c6f,_0x3ff286,_0x19fe80){const _0x5206d5=_0x6c52c3;this[_0x5206d5(0x3a1)]=_0x375c6f,this[_0x5206d5(0x3ce)]=_0x3ff286,this[_0x5206d5(0x2e7)]=_0x19fe80;}[_0x6c52c3(0x25e)](_0x4fb539){const _0x2b9c58=_0x6c52c3;this[_0x2b9c58(0x301)](_0x4fb539);}[_0x6c52c3(0x256)](_0xabecff){const _0x37906f=_0x6c52c3,{unitID:_0x38a5f1}=_0xabecff,{collaboration:_0x4b5d9d}=this[_0x37906f(0x2e7)][_0x37906f(0x1e2)](_0x38a5f1);if(_0x4b5d9d[_0x37906f(0x1f0)]===0x0)return _0xabecff;let _0x18cef4=a[_0x37906f(0x35e)][_0x37906f(0x23f)](_0xabecff[_0x37906f(0x28a)][0x0]);for(let _0x4b720b=0x0;_0x4b720b<_0x4b5d9d['length'];_0x4b720b++){const _0x48e91c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b5d9d[_0x4b720b]['unitId'],..._0x4b5d9d[_0x4b720b][_0x37906f(0x28d)]}},_0xb95ec=this[_0x37906f(0x3ce)][_0x37906f(0x1a1)](_0x18cef4,_0x48e91c,!0x1);if(g[_0x37906f(0x294)](_0xb95ec))throw _0xb95ec[_0x37906f(0x384)];_0x18cef4=_0xb95ec[_0x37906f(0x20f)];}return{...a[_0x37906f(0x35e)]['deepClone'](_0xabecff),'mutations':[_0x18cef4]};}[_0x6c52c3(0x301)](_0x10d3ce){const _0x1f25ca=_0x6c52c3,{unitID:_0x2fa7e5}=_0x10d3ce,{history:_0x327579,collaboration:_0x26f9a1}=this[_0x1f25ca(0x2e7)][_0x1f25ca(0x1e2)](_0x2fa7e5);if(_0x327579[_0x1f25ca(0x1f0)]===0x0&&_0x26f9a1[_0x1f25ca(0x1f0)]===0x0)return;const _0x4e5992=[],_0x57f248=[];let _0x5ba08e=a[_0x1f25ca(0x35e)]['deepClone'](_0x10d3ce[_0x1f25ca(0x28a)][0x0]),_0x31ca5a=a[_0x1f25ca(0x35e)]['deepClone'](_0x10d3ce['mutations'][0x0]);for(let _0x65c946=_0x327579[_0x1f25ca(0x1f0)]-0x1;_0x65c946>=0x0;_0x65c946--){const _0x44088e={'id':_0x1f25ca(0x339),'params':{'unitId':_0x327579[_0x65c946]['unitId'],..._0x327579[_0x65c946][_0x1f25ca(0x2c3)]}},_0x181dd5={'id':_0x1f25ca(0x339),'params':{'unitId':_0x327579[_0x65c946]['unitId'],..._0x327579[_0x65c946]['redoState']}},_0x33100a=this['_transformService']['transformMutation'](_0x5ba08e,_0x44088e,!0x1),_0x3dbad6=this[_0x1f25ca(0x3ce)][_0x1f25ca(0x1a1)](_0x31ca5a,_0x181dd5,!0x1);if(g[_0x1f25ca(0x294)](_0x33100a))throw _0x33100a[_0x1f25ca(0x384)];if(g[_0x1f25ca(0x294)](_0x3dbad6))throw _0x3dbad6[_0x1f25ca(0x384)];_0x4e5992['unshift']({..._0x327579[_0x65c946],'undoState':_0x33100a[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)],'redoState':_0x3dbad6[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)]}),_0x5ba08e=_0x33100a[_0x1f25ca(0x20f)],_0x31ca5a=_0x3dbad6['m1Prime'];}_0x5ba08e=a[_0x1f25ca(0x35e)][_0x1f25ca(0x23f)](_0x10d3ce[_0x1f25ca(0x28a)][0x0]),_0x31ca5a=a['Tools'][_0x1f25ca(0x23f)](_0x10d3ce[_0x1f25ca(0x28a)][0x0]);for(let _0x31c86f=_0x26f9a1[_0x1f25ca(0x1f0)]-0x1;_0x31c86f>=0x0;_0x31c86f--){const _0x54f651={'id':_0x1f25ca(0x339),'params':{'unitId':_0x26f9a1[_0x31c86f][_0x1f25ca(0x2b7)],..._0x26f9a1[_0x31c86f][_0x1f25ca(0x2c3)]}},_0x370181={'id':_0x1f25ca(0x339),'params':{'unitId':_0x26f9a1[_0x31c86f][_0x1f25ca(0x2b7)],..._0x26f9a1[_0x31c86f]['redoState']}},_0x3740a4=this[_0x1f25ca(0x3ce)][_0x1f25ca(0x1a1)](_0x5ba08e,_0x54f651,!0x1),_0x598031=this['_transformService']['transformMutation'](_0x31ca5a,_0x370181,!0x1);if(g['isTransformMutationFailure'](_0x3740a4))throw _0x3740a4['error'];if(g[_0x1f25ca(0x294)](_0x598031))throw _0x598031[_0x1f25ca(0x384)];_0x57f248[_0x1f25ca(0x36d)]({..._0x26f9a1[_0x31c86f],'undoState':_0x3740a4[_0x1f25ca(0x220)]['params'],'redoState':_0x598031[_0x1f25ca(0x220)][_0x1f25ca(0x2f4)]}),_0x5ba08e=_0x3740a4['m1Prime'],_0x31ca5a=_0x598031[_0x1f25ca(0x20f)];}this[_0x1f25ca(0x2e7)][_0x1f25ca(0x34a)](_0x2fa7e5,{'history':_0x4e5992,'collaboration':_0x57f248});}};ee=Wt([ue(0x0,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),ue(0x1,g[_0x6c52c3(0x24a)]),ue(0x2,a[_0x6c52c3(0x1ee)](p[_0x6c52c3(0x212)]))],ee);var Vt=Object[_0x6c52c3(0x2ac)],Gt=(_0x2698f9,_0x37731b,_0x6c2220,_0x3d6349)=>{const _0x17319d=_0x6c52c3;for(var _0x1574ec=_0x3d6349>0x1?void 0x0:_0x3d6349?Vt(_0x37731b,_0x6c2220):_0x37731b,_0x5b7cd8=_0x2698f9[_0x17319d(0x1f0)]-0x1,_0x258b0c;_0x5b7cd8>=0x0;_0x5b7cd8--)(_0x258b0c=_0x2698f9[_0x5b7cd8])&&(_0x1574ec=_0x258b0c(_0x1574ec)||_0x1574ec);return _0x1574ec;},Ae=(_0x41952e,_0x32a648)=>(_0x12862c,_0x1672bb)=>_0x32a648(_0x12862c,_0x1672bb,_0x41952e);let te=class{constructor(_0x43cca1,_0x1c5713){const _0x5d8662=_0x6c52c3;this[_0x5d8662(0x3a1)]=_0x43cca1,this[_0x5d8662(0x3ce)]=_0x1c5713;}[_0x6c52c3(0x2c8)](_0x522a3f){const _0x213a76=_0x6c52c3;var _0x5e9cae;const _0x1a69b0=this[_0x213a76(0x3a1)][_0x213a76(0x285)](V[_0x213a76(0x343)]),_0x5d0a97=(_0x5e9cae=_0x1a69b0['getDocRanges']())!=null?_0x5e9cae:[];if(_0x5d0a97[_0x213a76(0x1f0)]===0x0)return;const _0x2587cd=_0x522a3f[_0x213a76(0x2ec)],_0x2371e7=[{'id':_0x213a76(0x339),'params':{'unitId':_0x2587cd,'actions':null,'textRanges':_0x5d0a97}}],_0x2fe3b5=this[_0x213a76(0x3ce)][_0x213a76(0x39b)](_0x522a3f,_0x2371e7);if(!g['isTransformMutationsWithChangesetSuccess'](_0x2fe3b5))throw _0x2fe3b5[_0x213a76(0x384)];const _0x1c145f=_0x2fe3b5['m2Prime'][0x0][_0x213a76(0x2f4)][_0x213a76(0x350)];Array[_0x213a76(0x24b)](_0x1c145f)&&_0x1c145f[_0x213a76(0x1f0)]&&_0x1a69b0[_0x213a76(0x2e2)](_0x1c145f,{'unitId':_0x2587cd,'subUnitId':_0x2587cd},!0x1);}};te=Gt([Ae(0x0,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x1f7)])),Ae(0x1,g[_0x6c52c3(0x24a)])],te);var Xt=Object[_0x6c52c3(0x2ac)],Kt=(_0x746e77,_0x356a4c,_0x416377,_0x5488d7)=>{for(var _0x42539b=_0x5488d7>0x1?void 0x0:_0x5488d7?Xt(_0x356a4c,_0x416377):_0x356a4c,_0x5dad7f=_0x746e77['length']-0x1,_0xcbb9f9;_0x5dad7f>=0x0;_0x5dad7f--)(_0xcbb9f9=_0x746e77[_0x5dad7f])&&(_0x42539b=_0xcbb9f9(_0x42539b)||_0x42539b);return _0x42539b;},U=(_0x5c7569,_0x4c2d1b)=>(_0x456cf3,_0x473f95)=>_0x4c2d1b(_0x456cf3,_0x473f95,_0x5c7569);let se=class extends a[_0x6c52c3(0x413)]{constructor(_0xfe1109,_0xa5f89a,_0x4051db,_0x15c749,_0x401dee,_0x23f4fb,_0x1fbbf1,_0x461759){const _0x249248=_0x6c52c3;super(),_(this,_0x249248(0x3f8),new I['BehaviorSubject'](u['CollaborationStatus'][_0x249248(0x340)])),(this[_0x249248(0x2e7)]=_0xfe1109,this[_0x249248(0x1de)]=_0xa5f89a,this[_0x249248(0x203)]=_0x4051db,this['_docTransformStateCacheService']=_0x15c749,this[_0x249248(0x42b)]=_0x401dee,this[_0x249248(0x42a)]=_0x23f4fb,this[_0x249248(0x2e8)]=_0x1fbbf1,this[_0x249248(0x298)]=_0x461759,this[_0x249248(0x2f1)]());}['_initEntityListener'](){const _0x10d337=_0x6c52c3;this[_0x10d337(0x392)](this['_collaborationController']['entityInit$'][_0x10d337(0x403)](_0x4a73fc=>{const _0x537d15=_0x10d337,_0x3999bb=this[_0x537d15(0x2e7)][_0x537d15(0x377)][_0x537d15(0x403)](_0x127274=>{const _0x532c17=_0x537d15;if(_0x127274==null)return;const {unitId:_0xcc9189,redoState:_0x53bb7f,commandId:_0x3b2691}=_0x127274;if(_0xcc9189!==_0x4a73fc['unitID'])return;const _0x366a45={'id':_0x3b2691,'type':a[_0x532c17(0x233)]['MUTATION'],'params':{'unitId':_0xcc9189,'actions':_0x53bb7f[_0x532c17(0x3b0)],'textRanges':null}};_0x4a73fc['onLocalMutation'](_0x366a45);});if(_0x4a73fc[_0x537d15(0x392)](_0x3999bb),_0x4a73fc instanceof u[_0x537d15(0x251)]){const _0x3fa583={'onTransformIME':_0x3794d9=>this[_0x537d15(0x203)][_0x537d15(0x1da)](_0x3794d9),'onTransformState':_0x7512f=>this[_0x537d15(0x20e)]['transformStateCache'](_0x7512f),'onTransformSelections':_0x569fc8=>this['_docTransformSelectionsService']['transformSelections'](_0x569fc8),'onSyncEditingCollabCursor':_0x5062aa=>this[_0x537d15(0x42a)][_0x537d15(0x420)](_0x5062aa),'onTransformRemoteChangesetByIMECache':_0x391589=>this[_0x537d15(0x203)][_0x537d15(0x256)](_0x391589),'onTransformRemoteChangesetByStateCache':_0x475ebe=>this[_0x537d15(0x20e)][_0x537d15(0x256)](_0x475ebe)};_0x4a73fc['addHandlerCallback'](_0x3fa583);}}));}};se=Kt([U(0x0,a[_0x6c52c3(0x1ee)](p[_0x6c52c3(0x212)])),U(0x1,a[_0x6c52c3(0x1ee)](u[_0x6c52c3(0x3a5)])),U(0x2,a[_0x6c52c3(0x1ee)](Q)),U(0x3,a[_0x6c52c3(0x1ee)](ee)),U(0x4,a['Inject'](te)),U(0x5,a[_0x6c52c3(0x1ee)](Re)),U(0x6,R[_0x6c52c3(0x1c8)]),U(0x7,a[_0x6c52c3(0x1ee)](a[_0x6c52c3(0x225)]))],se);var G=(_0x274d12=>(_0x274d12[_0x274d12['UNDEFINED']=0x0]=_0x6c52c3(0x282),_0x274d12[_0x274d12['OK']=0x1]='OK',_0x274d12[_0x274d12['INTERNAL_ERROR']=0x2]=_0x6c52c3(0x2a5),_0x274d12[_0x274d12[_0x6c52c3(0x1f8)]=0x3]='PERMISSION_DENIED',_0x274d12[_0x274d12[_0x6c52c3(0x368)]=0x4]=_0x6c52c3(0x368),_0x274d12[_0x274d12[_0x6c52c3(0x41e)]=0x5]=_0x6c52c3(0x41e),_0x274d12[_0x274d12[_0x6c52c3(0x3dc)]=0x6]=_0x6c52c3(0x3dc),_0x274d12[_0x274d12[_0x6c52c3(0x3aa)]=0x7]=_0x6c52c3(0x3aa),_0x274d12[_0x274d12['TOO_MANY_REQUESTS']=0x8]=_0x6c52c3(0x21b),_0x274d12[_0x274d12[_0x6c52c3(0x315)]=0x9]=_0x6c52c3(0x315),_0x274d12[_0x274d12[_0x6c52c3(0x23b)]=0xa]=_0x6c52c3(0x23b),_0x274d12[_0x274d12[_0x6c52c3(0x2ea)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x274d12[_0x274d12[_0x6c52c3(0x3d4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x274d12[_0x274d12['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x274d12[_0x274d12[_0x6c52c3(0x429)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x274d12[_0x274d12[_0x6c52c3(0x1c6)]=0xf]=_0x6c52c3(0x1c6),_0x274d12[_0x274d12[_0x6c52c3(0x223)]=0x10]=_0x6c52c3(0x223),_0x274d12[_0x274d12[_0x6c52c3(0x1c7)]=0x64]=_0x6c52c3(0x1c7),_0x274d12[_0x274d12[_0x6c52c3(0x2d6)]=0x65]=_0x6c52c3(0x2d6),_0x274d12[_0x274d12[_0x6c52c3(0x305)]=0xc9]=_0x6c52c3(0x305),_0x274d12[_0x274d12[_0x6c52c3(0x1dc)]=0xca]=_0x6c52c3(0x1dc),_0x274d12[_0x274d12[_0x6c52c3(0x243)]=0x1389]=_0x6c52c3(0x243),_0x274d12[_0x274d12['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x6c52c3(0x29a),_0x274d12[_0x274d12[_0x6c52c3(0x2bf)]=0x1772]=_0x6c52c3(0x2bf),_0x274d12[_0x274d12['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x6c52c3(0x38a),_0x274d12[_0x274d12[_0x6c52c3(0x23c)]=0x1b59]=_0x6c52c3(0x23c),_0x274d12[_0x274d12[_0x6c52c3(0x19e)]=0x1b5a]=_0x6c52c3(0x19e),_0x274d12[_0x274d12[_0x6c52c3(0x365)]=0x1b5b]=_0x6c52c3(0x365),_0x274d12[_0x274d12['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x274d12[_0x274d12[_0x6c52c3(0x36f)]=0x1b5d]=_0x6c52c3(0x36f),_0x274d12[_0x274d12[_0x6c52c3(0x29d)]=0x1f41]=_0x6c52c3(0x29d),_0x274d12[_0x274d12[_0x6c52c3(0x349)]=0x2329]=_0x6c52c3(0x349),_0x274d12[_0x274d12[_0x6c52c3(0x1b8)]=0x232a]=_0x6c52c3(0x1b8),_0x274d12[_0x274d12['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x6c52c3(0x20a),_0x274d12[_0x274d12['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x6c52c3(0x2de),_0x274d12[_0x274d12[_0x6c52c3(0x412)]=0x232d]=_0x6c52c3(0x412),_0x274d12[_0x274d12[_0x6c52c3(0x341)]=0x2711]=_0x6c52c3(0x341),_0x274d12[_0x274d12['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x274d12[_0x274d12[_0x6c52c3(0x41d)]=0x2713]=_0x6c52c3(0x41d),_0x274d12[_0x274d12[_0x6c52c3(0x327)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x274d12[_0x274d12[_0x6c52c3(0x1af)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x274d12[_0x274d12[_0x6c52c3(0x423)]=0x271b]=_0x6c52c3(0x423),_0x274d12[_0x274d12[_0x6c52c3(0x210)]=0x271c]=_0x6c52c3(0x210),_0x274d12[_0x274d12[_0x6c52c3(0x1e1)]=0x271d]=_0x6c52c3(0x1e1),_0x274d12[_0x274d12[_0x6c52c3(0x3e9)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x274d12[_0x274d12[_0x6c52c3(0x266)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x274d12[_0x274d12[_0x6c52c3(0x21f)]=0x2720]=_0x6c52c3(0x21f),_0x274d12[_0x274d12[_0x6c52c3(0x328)]=0x2af9]=_0x6c52c3(0x328),_0x274d12[_0x274d12['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x274d12[_0x274d12[_0x6c52c3(0x281)]=0x2ee2]=_0x6c52c3(0x281),_0x274d12[_0x274d12[_0x6c52c3(0x3e4)]=0x2ee3]=_0x6c52c3(0x3e4),_0x274d12[_0x274d12['USER_NOT_INVITED_CODE']=0x2ee4]=_0x6c52c3(0x3d8),_0x274d12[_0x274d12[_0x6c52c3(0x31d)]=0x2ee5]=_0x6c52c3(0x31d),_0x274d12[_0x274d12['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x6c52c3(0x3fd),_0x274d12[_0x274d12[_0x6c52c3(0x1f5)]=0x32ca]=_0x6c52c3(0x1f5),_0x274d12[_0x274d12['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x6c52c3(0x1fe),_0x274d12[_0x274d12[_0x6c52c3(0x31a)]=0x36b1]=_0x6c52c3(0x31a),_0x274d12[_0x274d12[_0x6c52c3(0x186)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x274d12[_0x274d12['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x6c52c3(0x2e6),_0x274d12[_0x274d12[_0x6c52c3(0x27b)]=0x36b4]=_0x6c52c3(0x27b),_0x274d12[_0x274d12['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x6c52c3(0x389),_0x274d12[_0x274d12[_0x6c52c3(0x34f)]=0x3716]=_0x6c52c3(0x34f),_0x274d12[_0x274d12['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x6c52c3(0x1fb),_0x274d12[_0x274d12[_0x6c52c3(0x3b8)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x274d12[_0x274d12['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x274d12[_0x274d12[_0x6c52c3(0x356)]=0x3a9b]=_0x6c52c3(0x356),_0x274d12[_0x274d12['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x6c52c3(0x2c1),_0x274d12[_0x274d12[_0x6c52c3(0x195)]=0x3a9d]=_0x6c52c3(0x195),_0x274d12[_0x274d12[_0x6c52c3(0x297)]=0x3a9e]=_0x6c52c3(0x297),_0x274d12[_0x274d12['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x6c52c3(0x204),_0x274d12[_0x274d12[_0x6c52c3(0x2e5)]=-0x1]=_0x6c52c3(0x2e5),_0x274d12))(G||{});function qt(_0x22a654){const _0x317beb=_0x6c52c3;var _0x51ad34,_0x520e74;const _0x144924=(_0x51ad34=_0x22a654[_0x317beb(0x3af)])==null?void 0x0:_0x51ad34[_0x317beb(0x264)],_0x38f361=((_0x520e74=_0x22a654['stageInfo'])==null?void 0x0:_0x520e74[_0x317beb(0x400)])||0x0;return _0x144924===B[_0x317beb(0x30c)][_0x317beb(0x187)]&&_0x38f361>0x0;}function zt(_0x518fd0){const _0x19bac6=_0x6c52c3;return _0x518fd0['functionsExecutedState']===B[_0x19bac6(0x19b)]['SUCCESS'];}var Jt=Object[_0x6c52c3(0x2ac)],Zt=(_0x22f5c1,_0x2bd6e0,_0xd87b0a,_0x59437b)=>{const _0x4225e4=_0x6c52c3;for(var _0x33c53e=_0x59437b>0x1?void 0x0:_0x59437b?Jt(_0x2bd6e0,_0xd87b0a):_0x2bd6e0,_0x11598a=_0x22f5c1[_0x4225e4(0x1f0)]-0x1,_0x4d676e;_0x11598a>=0x0;_0x11598a--)(_0x4d676e=_0x22f5c1[_0x11598a])&&(_0x33c53e=_0x4d676e(_0x33c53e)||_0x33c53e);return _0x33c53e;},A=(_0x580f33,_0x5e7cb2)=>(_0x1bd8c7,_0x37b5c3)=>_0x5e7cb2(_0x1bd8c7,_0x37b5c3,_0x580f33);const Qt=_0x6c52c3(0x249),es=_0x6c52c3(0x26a),ts=_0x6c52c3(0x34c);let ie=class extends a[_0x6c52c3(0x413)]{constructor(_0x1f4079,_0x5a16a1,_0x4e8f18,_0xccb8f2,_0x16509a,_0x5b7917,_0x2af860){const _0xf8b725=_0x6c52c3;super(),_(this,_0xf8b725(0x28e),null),_(this,_0xf8b725(0x1c0),0x0),_(this,_0xf8b725(0x425),0x0),_(this,_0xf8b725(0x200),[]),_(this,_0xf8b725(0x275),0x0),(this[_0xf8b725(0x2e8)]=_0x1f4079,this['_commandService']=_0x5a16a1,this[_0xf8b725(0x1ed)]=_0x4e8f18,this['_httpService']=_0xccb8f2,this[_0xf8b725(0x3dd)]=_0x16509a,this[_0xf8b725(0x1db)]=_0x5b7917,this['_localeService']=_0x2af860,this[_0xf8b725(0x2c4)]());}['_initCommandInterceptor'](){const _0x1e026c=_0x6c52c3;this[_0x1e026c(0x392)](this['_commandService'][_0x1e026c(0x2c0)]((_0x318094,_0x3d539e)=>{const _0x17d70a=_0x1e026c;if(_0x318094['id']!==B[_0x17d70a(0x260)]['id'])return;const _0x2a7b79=_0x318094[_0x17d70a(0x2f4)];if(!this[_0x17d70a(0x2b9)](_0x2a7b79['dirtyRanges']))return;if(!this[_0x17d70a(0x3cf)]())throw this[_0x17d70a(0x1d7)](_0x318094,_0x3d539e),this[_0x17d70a(0x288)](),new a['CanceledError']();})),this[_0x1e026c(0x392)](this['_commandService'][_0x1e026c(0x22f)]((_0x3e1528,_0x2b882b)=>{const _0x1e7c88=_0x1e026c;if(_0x3e1528['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0xd29848=_0x3e1528[_0x1e7c88(0x2f4)];if(qt(_0xd29848)){const _0x159618=a[_0x1e7c88(0x254)]();this[_0x1e7c88(0x200)]['push'](_0x159618),this[_0x1e7c88(0x277)](_0x159618);}else{if(zt(_0xd29848)&&this['_taskIds'][_0x1e7c88(0x1f0)]>0x0){const _0x13704e=this['_taskIds']['shift']();this[_0x1e7c88(0x2cc)](_0x13704e);}}}));}['dispose'](){const _0x457c7d=_0x6c52c3;super['dispose'](),this[_0x457c7d(0x3b7)](),this['_taskIds']=[],this[_0x457c7d(0x425)]=0x0,this[_0x457c7d(0x1c0)]=0x0,this[_0x457c7d(0x275)]=0x0;}async[_0x6c52c3(0x1d7)](_0x230a55,_0x2c979e){const _0x5160e0=_0x6c52c3;for(let _0x58cc38=0x0;_0x58cc38<0x1e;_0x58cc38++)try{if(await this[_0x5160e0(0x1a9)](),this[_0x5160e0(0x3cf)]()){this[_0x5160e0(0x2f0)](_0x230a55,_0x2c979e),this['_messageService']['show']({'content':this[_0x5160e0(0x298)]['t']('formula.calculation.started'),'type':T[_0x5160e0(0x2bd)][_0x5160e0(0x42f)]});return;}await new Promise(_0x4c7a1a=>{this['_pollingInterval']=window['setTimeout'](_0x4c7a1a,0x3e8);});}catch(_0x4e068d){this[_0x5160e0(0x1db)][_0x5160e0(0x384)](_0x4e068d);}this[_0x5160e0(0x2e8)][_0x5160e0(0x1d3)]({'content':this[_0x5160e0(0x298)]['t'](_0x5160e0(0x29c)),'type':T[_0x5160e0(0x2bd)]['Error']});}[_0x6c52c3(0x2f0)](_0x56dbab,_0x4bd98d){const _0x3a7842=_0x6c52c3;try{this['_commandService'][_0x3a7842(0x319)](_0x56dbab['id'],_0x56dbab[_0x3a7842(0x2f4)],_0x4bd98d);}catch(_0x4640c7){this[_0x3a7842(0x1db)][_0x3a7842(0x384)](_0x4640c7);}}['_setFormulaLimitStatus'](_0x33ef35,_0x7d7641){const _0x3227cf=_0x6c52c3;_0x7d7641<this[_0x3227cf(0x275)]||(this[_0x3227cf(0x275)]=_0x7d7641,this[_0x3227cf(0x1c0)]=Number[_0x3227cf(0x201)](_0x33ef35['maxFormulaLimit']),this[_0x3227cf(0x425)]=Number[_0x3227cf(0x201)](_0x33ef35['currentUsage']));}async[_0x6c52c3(0x277)](_0x208a16){const _0x16d2a0=_0x6c52c3;var _0x458a69,_0x24843d;const _0x3ebddd=Date['now']();try{const _0x3ad42a=((_0x458a69=this[_0x16d2a0(0x1ed)][_0x16d2a0(0x193)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x458a69[_0x16d2a0(0x2a3)])||es,_0x440c9b=(await this['_httpService'][_0x16d2a0(0x26f)](_0x3ad42a,{'body':JSON[_0x16d2a0(0x302)]({'taskId':_0x208a16})}))['body'];if(((_0x24843d=_0x440c9b[_0x16d2a0(0x384)])==null?void 0x0:_0x24843d[_0x16d2a0(0x26c)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x440c9b[_0x16d2a0(0x439)],_0x3ebddd);}catch(_0x2e9dc5){this[_0x16d2a0(0x1db)][_0x16d2a0(0x384)](_0x2e9dc5);}}async['_getFormulaLimitStatus'](_0x4ca71c){const _0xf05b57=_0x6c52c3;var _0x4559bd,_0x5b744d;const _0x19e11a=Date[_0xf05b57(0x416)]();try{const _0x505253=((_0x4559bd=this[_0xf05b57(0x1ed)]['getConfig'](u[_0xf05b57(0x295)]))==null?void 0x0:_0x4559bd[_0xf05b57(0x25a)])||Qt,_0x4c362e=_0x4ca71c?_0x505253+_0xf05b57(0x390)+encodeURIComponent(_0x4ca71c):_0x505253,_0x57b856=(await this[_0xf05b57(0x26d)][_0xf05b57(0x285)](_0x4c362e))['body'];if(((_0x5b744d=_0x57b856[_0xf05b57(0x384)])==null?void 0x0:_0x5b744d[_0xf05b57(0x26c)])!==G['OK'])return;this[_0xf05b57(0x32f)](_0x57b856[_0xf05b57(0x439)],_0x19e11a);}catch(_0x2a3cec){this[_0xf05b57(0x1db)][_0xf05b57(0x384)](_0x2a3cec);}}async[_0x6c52c3(0x2cc)](_0x301184){const _0xa13cd9=_0x6c52c3;var _0x586711,_0x154503;const _0x438a1a=Date[_0xa13cd9(0x416)]();try{const _0x51b420=((_0x586711=this[_0xa13cd9(0x1ed)][_0xa13cd9(0x193)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x586711[_0xa13cd9(0x3ca)])||ts,_0x214660=(await this[_0xa13cd9(0x26d)][_0xa13cd9(0x26f)](_0x51b420,{'body':JSON[_0xa13cd9(0x302)]({'taskId':_0x301184})}))[_0xa13cd9(0x183)];if(((_0x154503=_0x214660[_0xa13cd9(0x384)])==null?void 0x0:_0x154503[_0xa13cd9(0x26c)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x214660[_0xa13cd9(0x439)],_0x438a1a);}catch(_0xc05c02){this[_0xa13cd9(0x1db)]['error'](_0xc05c02);}}[_0x6c52c3(0x3cf)](){const _0x14759b=_0x6c52c3;return this[_0x14759b(0x1c0)]===0x0?!0x0:this[_0x14759b(0x1c0)]-this[_0x14759b(0x425)]>0x0;}[_0x6c52c3(0x3b7)](){const _0x5f27b0=_0x6c52c3;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x5f27b0(0x28e)]=null);}[_0x6c52c3(0x288)](){const _0x3a3d08=_0x6c52c3;this[_0x3a3d08(0x2e8)][_0x3a3d08(0x1d3)]({'content':this[_0x3a3d08(0x298)]['t'](_0x3a3d08(0x37b)),'type':T['MessageType']['Loading']});}[_0x6c52c3(0x2b9)](_0x3034b5){const _0x137ff8=_0x6c52c3;for(const _0x58652c of _0x3034b5){const {unitId:_0x3c47f2,sheetId:_0x292143,range:_0x2f2222}=_0x58652c,_0x4b12c4=this[_0x137ff8(0x3dd)][_0x137ff8(0x29e)](_0x3c47f2);if(!_0x4b12c4)continue;const _0x63cf04=_0x4b12c4[_0x137ff8(0x375)](_0x292143);if(!_0x63cf04)continue;const _0x2a2854=_0x63cf04[_0x137ff8(0x398)]();for(let _0x142895=_0x2f2222['startRow'];_0x142895<=_0x2f2222['endRow'];_0x142895++)for(let _0x238627=_0x2f2222['startColumn'];_0x238627<=_0x2f2222['endColumn'];_0x238627++){const _0x26a5da=_0x2a2854['getValue'](_0x142895,_0x238627);if(_0x26a5da&&(a[_0x137ff8(0x2dd)](_0x26a5da['f'])||a['isFormulaId'](_0x26a5da['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0x6c52c3(0x1ee)](R[_0x6c52c3(0x1c8)])),A(0x1,a[_0x6c52c3(0x391)]),A(0x2,a[_0x6c52c3(0x33b)]),A(0x3,a[_0x6c52c3(0x1ee)](X[_0x6c52c3(0x2c7)])),A(0x4,a[_0x6c52c3(0x40e)]),A(0x5,a[_0x6c52c3(0x2ca)]),A(0x6,a['Inject'](a[_0x6c52c3(0x225)]))],ie);var ss=Object[_0x6c52c3(0x2ac)],is=(_0x19e12b,_0x2c5dfd,_0x398084,_0x55ad91)=>{const _0xef012e=_0x6c52c3;for(var _0x51ed51=_0x55ad91>0x1?void 0x0:_0x55ad91?ss(_0x2c5dfd,_0x398084):_0x2c5dfd,_0x263241=_0x19e12b[_0xef012e(0x1f0)]-0x1,_0x565082;_0x263241>=0x0;_0x263241--)(_0x565082=_0x19e12b[_0x263241])&&(_0x51ed51=_0x565082(_0x51ed51)||_0x51ed51);return _0x51ed51;},Ie=(_0x27eb5d,_0x14b326)=>(_0xc1071,_0x54b837)=>_0x14b326(_0xc1071,_0x54b837,_0x27eb5d);let Ce=class extends a[_0x6c52c3(0x413)]{constructor(_0x34fcc9,_0x13d329,_0x38714b){const _0x37d900=_0x6c52c3;super(),_(this,_0x37d900(0x24f),new Map()),_(this,_0x37d900(0x1cb),new Map()),_(this,_0x37d900(0x40d),!0x1),(this[_0x37d900(0x1ed)]=_0x34fcc9,this['_localStorageService']=_0x13d329,this[_0x37d900(0x2a0)]=_0x38714b);}[_0x6c52c3(0x331)](){const _0xec89e2=_0x6c52c3;this[_0xec89e2(0x40d)]=!0x0;}[_0x6c52c3(0x407)](){const _0x2d0f1a=_0x6c52c3;this[_0x2d0f1a(0x40d)]=!0x1;}get['saveTaskMap'](){const _0x38d4e3=_0x6c52c3;return this[_0x38d4e3(0x1cb)];}['dispose'](){const _0x11bafc=_0x6c52c3;this[_0x11bafc(0x387)]()[_0x11bafc(0x1f1)](()=>super[_0x11bafc(0x18d)]());}async['loadOfflineData'](_0x4c6182){const _0x307475=_0x6c52c3;return this[_0x307475(0x40d)]?null:this[_0x307475(0x427)][_0x307475(0x2ef)](u[_0x307475(0x19d)](_0x4c6182));}async[_0x6c52c3(0x43d)](_0x2abc47,_0x3eeab3){const _0x1dd9b0=_0x6c52c3;return!!this[_0x1dd9b0(0x427)][_0x1dd9b0(0x410)](_0x2abc47,_0x3eeab3);}[_0x6c52c3(0x250)](_0x1cb6ac,_0x572560,_0x601769,_0x23b067){const _0x52409e=_0x6c52c3,_0x3835f3=this[_0x52409e(0x2a0)][_0x52409e(0x29b)](_0x1cb6ac);this[_0x52409e(0x24f)][_0x52409e(0x33f)](_0x1cb6ac,{'unitID':_0x1cb6ac,'type':_0x572560,'awaitingChangeset':_0x601769,'mutations':_0x23b067,'rev':_0x3835f3}),this[_0x52409e(0x1cb)][_0x52409e(0x27c)](_0x1cb6ac)||this[_0x52409e(0x317)](_0x1cb6ac);}[_0x6c52c3(0x317)](_0x12897a){const _0x2aa92c=_0x6c52c3,_0x59fc0d=this[_0x2aa92c(0x2cb)]();_0x59fc0d===0x0?this['_saveCache'](_0x12897a):this[_0x2aa92c(0x1cb)][_0x2aa92c(0x33f)](_0x12897a,setTimeout(()=>this['_saveCache'](_0x12897a),_0x59fc0d));}[_0x6c52c3(0x2cb)](){const _0xc76d2b=_0x6c52c3;var _0x53483d;return(_0x53483d=this[_0xc76d2b(0x1ed)][_0xc76d2b(0x193)](u[_0xc76d2b(0x3bb)]))!=null?_0x53483d:u['LOCAL_CACHE_INTERVAL'];}[_0x6c52c3(0x3d6)](_0x970f92){const _0x4012d8=_0x6c52c3,_0x4a1253=this['_saveTaskMap'][_0x4012d8(0x285)](_0x970f92);return _0x4a1253!==void 0x0&&window[_0x4012d8(0x3db)](_0x4a1253),this[_0x4012d8(0x427)]['setItem'](u['getLocalCacheKey'](_0x970f92),this[_0x4012d8(0x24f)][_0x4012d8(0x285)](_0x970f92))[_0x4012d8(0x1f1)](()=>this[_0x4012d8(0x1cb)]['delete'](_0x970f92));}async[_0x6c52c3(0x387)](){const _0x23ad03=_0x6c52c3,_0x45cea4=[];this[_0x23ad03(0x1cb)][_0x23ad03(0x1b1)]((_0x173e95,_0x54ff7d)=>{const _0x30093e=_0x23ad03;window[_0x30093e(0x3db)](_0x173e95),_0x45cea4['push'](this[_0x30093e(0x3d6)](_0x54ff7d)[_0x30093e(0x1f1)](()=>{const _0xdba788=_0x30093e;this[_0xdba788(0x1cb)][_0xdba788(0x41a)](_0x54ff7d);}));}),await Promise[_0x23ad03(0x211)](_0x45cea4);}};Ce=is([Ie(0x0,a[_0x6c52c3(0x33b)]),Ie(0x1,a['ILocalStorageService']),Ie(0x2,a['Inject'](g['RevisionService']))],Ce);class ke extends a['RxDisposable']{constructor(){const _0x1a5c75=_0x6c52c3;super(),_(this,'urlChange$'),this[_0x1a5c75(0x436)]=I[_0x1a5c75(0x18e)](window,_0x1a5c75(0x3b1))[_0x1a5c75(0x1b7)](I[_0x1a5c75(0x3c3)](this[_0x1a5c75(0x359)]),I[_0x1a5c75(0x3c1)](0x1),I[_0x1a5c75(0x1b4)](void 0x0));}[_0x6c52c3(0x329)](_0x2aca2c,_0x1a0b24,_0x4f4af9=!0x1){const _0x40f5b8=_0x6c52c3,_0x3ff9b6=new URL(window[_0x40f5b8(0x2a9)][_0x40f5b8(0x42c)]);_0x3ff9b6[_0x40f5b8(0x3ae)][_0x40f5b8(0x33f)](_0x2aca2c,_0x1a0b24),_0x4f4af9?window['history'][_0x40f5b8(0x424)]('','',_0x3ff9b6[_0x40f5b8(0x312)]()):window[_0x40f5b8(0x21c)][_0x40f5b8(0x438)]('','',_0x3ff9b6[_0x40f5b8(0x312)]());}[_0x6c52c3(0x41b)](_0x1f4fd0,_0x4992b8=!0x1){const _0x409e29=_0x6c52c3,_0x377385=new URL(window[_0x409e29(0x2a9)][_0x409e29(0x42c)]);_0x377385[_0x409e29(0x3ae)][_0x409e29(0x41a)](_0x1f4fd0),_0x4992b8?window[_0x409e29(0x21c)][_0x409e29(0x424)]('','',_0x377385[_0x409e29(0x312)]()):window[_0x409e29(0x21c)]['pushState']('','',_0x377385['toString']());}['getParam'](_0x43e65d){const _0x5a6200=_0x6c52c3;var _0x438d65;return(_0x438d65=new URL(window[_0x5a6200(0x2a9)][_0x5a6200(0x42c)])[_0x5a6200(0x3ae)]['get'](_0x43e65d))!=null?_0x438d65:void 0x0;}}var ns=Object[_0x6c52c3(0x3d2)],rs=Object[_0x6c52c3(0x2ac)],os=(_0x59500c,_0x8566ec,_0x25b64a)=>_0x8566ec in _0x59500c?ns(_0x59500c,_0x8566ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25b64a}):_0x59500c[_0x8566ec]=_0x25b64a,as=(_0x190525,_0x142309,_0x8f1ec8,_0x405a19)=>{const _0x589303=_0x6c52c3;for(var _0x1fdf8b=_0x405a19>0x1?void 0x0:_0x405a19?rs(_0x142309,_0x8f1ec8):_0x142309,_0x345696=_0x190525[_0x589303(0x1f0)]-0x1,_0x4e1672;_0x345696>=0x0;_0x345696--)(_0x4e1672=_0x190525[_0x345696])&&(_0x1fdf8b=_0x4e1672(_0x1fdf8b)||_0x1fdf8b);return _0x1fdf8b;},de=(_0x23d7cf,_0xd00997)=>(_0x154797,_0x32cd1f)=>_0xd00997(_0x154797,_0x32cd1f,_0x23d7cf),cs=(_0x52144e,_0x209ee3,_0x5846f2)=>os(_0x52144e,_0x209ee3+'',_0x5846f2);const ls=_0x6c52c3(0x215);function _0xc584(_0x139c97,_0x5bd1c2){const _0x430406=_0x4304();return _0xc584=function(_0xc584eb,_0x503176){_0xc584eb=_0xc584eb-0x180;let _0x5bfc2a=_0x430406[_0xc584eb];return _0x5bfc2a;},_0xc584(_0x139c97,_0x5bd1c2);}exports[_0x6c52c3(0x362)]=class extends a[_0x6c52c3(0x272)]{constructor(_0x101b85=Le,_0x543b1d,_0x3a39bd,_0x300ba7){const _0x2a24ff=_0x6c52c3;super(),this['_config']=_0x101b85,this[_0x2a24ff(0x23a)]=_0x543b1d,this[_0x2a24ff(0x3a1)]=_0x3a39bd,this[_0x2a24ff(0x1ed)]=_0x300ba7;const {..._0x1bb267}=a[_0x2a24ff(0x3ff)]({},Le,this[_0x2a24ff(0x196)]);this['_configService'][_0x2a24ff(0x32d)](kt,_0x1bb267);}[_0x6c52c3(0x20d)](){const _0x1b1461=_0x6c52c3;this[_0x1b1461(0x30e)](),this[_0x1b1461(0x1ec)]();}[_0x6c52c3(0x291)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x448bf2=_0x6c52c3;var _0x409019;const _0x1d7677=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x448bf2(0x304)],{'useClass':X[_0x448bf2(0x299)]}],[u[_0x448bf2(0x3ea)],{'useClass':Ce}],[exports[_0x448bf2(0x2e9)]],[se],[Z],[F],[fe],[exports[_0x448bf2(0x3f2)]]];a[_0x448bf2(0x240)](this[_0x448bf2(0x3a1)],a[_0x448bf2(0x217)](_0x1d7677,(_0x409019=this[_0x448bf2(0x196)])==null?void 0x0:_0x409019[_0x448bf2(0x293)]));}['_registerRenderDependencies'](){const _0x262ed7=_0x6c52c3;this[_0x262ed7(0x392)](this[_0x262ed7(0x23a)][_0x262ed7(0x431)](a[_0x262ed7(0x3ec)]['UNIVER_DOC'],[ge])),this[_0x262ed7(0x392)](this[_0x262ed7(0x23a)][_0x262ed7(0x431)](a[_0x262ed7(0x3ec)][_0x262ed7(0x24e)],[Ee]));}[_0x6c52c3(0x1ec)](){const _0x2f0087=_0x6c52c3;a[_0x2f0087(0x330)](this[_0x2f0087(0x3a1)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[se],[Z],[exports[_0x2f0087(0x3f2)]],[ie]]);}},cs(exports[_0x6c52c3(0x362)],'pluginName',ls),exports[_0x6c52c3(0x362)]=as([a[_0x6c52c3(0x336)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x6c52c3(0x2a2)]),de(0x2,a[_0x6c52c3(0x1ee)](a['Injector'])),de(0x3,a[_0x6c52c3(0x33b)])],exports[_0x6c52c3(0x362)]);var _s=Object[_0x6c52c3(0x2ac)],hs=(_0x7076b9,_0x394f9e,_0x2d080e,_0x550aa1)=>{const _0x2a095b=_0x6c52c3;for(var _0x17c61a=_0x550aa1>0x1?void 0x0:_0x550aa1?_s(_0x394f9e,_0x2d080e):_0x394f9e,_0x208a75=_0x7076b9[_0x2a095b(0x1f0)]-0x1,_0x2838fc;_0x208a75>=0x0;_0x208a75--)(_0x2838fc=_0x7076b9[_0x208a75])&&(_0x17c61a=_0x2838fc(_0x17c61a)||_0x17c61a);return _0x17c61a;},W=(_0x205240,_0x382a42)=>(_0x335316,_0x412eef)=>_0x382a42(_0x335316,_0x412eef,_0x205240);exports['BrowserCollaborationSocketService']=class extends u[_0x6c52c3(0x236)]{constructor(_0x4a6a27,_0x479aa5,_0xa5ec3c,_0x5d86a6,_0x264518){super(_0x4a6a27,_0x479aa5,_0xa5ec3c,_0x5d86a6,_0x264518);}async[_0x6c52c3(0x1cd)](_0x396109){const _0x37a6eb=_0x6c52c3,_0x44a237=await this[_0x37a6eb(0x371)](),_0x54a7ad=this[_0x37a6eb(0x35b)](_0x396109,_0x44a237);return this[_0x37a6eb(0x40f)](_0x54a7ad);}[_0x6c52c3(0x35b)](_0x784f6b,_0xc84d3d){const _0xbcf0=_0x6c52c3,_0x190664=typeof window>'u'?new URL(_0x784f6b):new URL(_0x784f6b,window['location'][_0xbcf0(0x34b)]);_0x190664['searchParams'][_0xbcf0(0x33f)](_0xbcf0(0x3eb),_0xc84d3d);const _0x2e9be7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xbcf0(0x2a9)][_0xbcf0(0x22d)]);return _0x2e9be7[_0xbcf0(0x285)]('runId')&&_0x190664[_0xbcf0(0x3ae)][_0xbcf0(0x33f)]('runId',_0x2e9be7['get'](_0xbcf0(0x303))),_0x190664['toString']();}async[_0x6c52c3(0x371)](){const _0x3eaabf=_0x6c52c3;var _0x21b908,_0x3fe932,_0x2ca14f;const _0xebda9d=this[_0x3eaabf(0x1ed)][_0x3eaabf(0x193)](u[_0x3eaabf(0x295)]),_0x5ed642=(_0x21b908=_0xebda9d==null?void 0x0:_0xebda9d[_0x3eaabf(0x39d)])!=null?_0x21b908:u[_0x3eaabf(0x32b)];return(_0x2ca14f=(_0x3fe932=(await this[_0x3eaabf(0x26d)][_0x3eaabf(0x285)](_0x5ed642,{'headers':{'Content-Type':_0x3eaabf(0x271)}}))[_0x3eaabf(0x183)])==null?void 0x0:_0x3fe932[_0x3eaabf(0x38b)])!=null?_0x2ca14f:'';}},exports['BrowserCollaborationSocketService']=hs([W(0x0,a['Inject'](a['Injector'])),W(0x1,a['Inject'](X['HTTPService'])),W(0x2,a[_0x6c52c3(0x33b)]),W(0x3,a[_0x6c52c3(0x2ca)]),W(0x4,g[_0x6c52c3(0x2ad)])],exports['BrowserCollaborationSocketService']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x1fd32a,_0x7a813,_0x3c2ac3,_0x7d0ae3)=>{for(var _0x57a96d=_0x7d0ae3>0x1?void 0x0:_0x7d0ae3?us(_0x7a813,_0x3c2ac3):_0x7a813,_0xabea0b=_0x1fd32a['length']-0x1,_0x4dbb73;_0xabea0b>=0x0;_0xabea0b--)(_0x4dbb73=_0x1fd32a[_0xabea0b])&&(_0x57a96d=_0x4dbb73(_0x57a96d)||_0x57a96d);return _0x57a96d;},Se=(_0x3a893c,_0x1fc87d)=>(_0x50e189,_0x37a40a)=>_0x1fc87d(_0x50e189,_0x37a40a,_0x3a893c);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x3b17e5,_0x47d96a,_0x559678){const _0x32260e=_0x6c52c3;super(),this[_0x32260e(0x234)]=_0x3b17e5,this[_0x32260e(0x26d)]=_0x47d96a,this['_configService']=_0x559678;}async[_0x6c52c3(0x1b0)](_0x23ce8f,_0x137205,_0x3e1c89,..._0x2d942c){const _0x3cd00a=_0x6c52c3;var _0x641608,_0x323353,_0x3467ef,_0x1cf9e7;const _0x137bcc=this[_0x3cd00a(0x234)]['getFocusedUnit']();if(!_0x137bcc)throw new Error(_0x3cd00a(0x1df));const _0x381677=((_0x641608=this[_0x3cd00a(0x1ed)][_0x3cd00a(0x193)](u[_0x3cd00a(0x259)]))!=null?_0x641608:u[_0x3cd00a(0x3c7)])+'/'+_0x23ce8f+'/run/'+_0x137205,_0x49cc56=new URL(window[_0x3cd00a(0x2a9)][_0x3cd00a(0x42c)]),_0x3d7dfa={'scriptId':_0x23ce8f,'runId':(_0x323353=_0x49cc56[_0x3cd00a(0x3ae)]['get']('runId'))!=null?_0x323353:'','function':_0x137205,'unitId':_0x137bcc[_0x3cd00a(0x411)](),'argsOfFunction':JSON[_0x3cd00a(0x302)](_0x2d942c),'invokeId':(_0x3467ef=_0x3e1c89[_0x3cd00a(0x25b)])!=null?_0x3467ef:'','executionId':(_0x1cf9e7=_0x3e1c89['executionId'])!=null?_0x1cf9e7:''};try{const _0x31ada7=await this[_0x3cd00a(0x26d)][_0x3cd00a(0x26f)](_0x381677,{'body':_0x3d7dfa});return _0x31ada7[_0x3cd00a(0x183)]['error']&&_0x31ada7[_0x3cd00a(0x183)]['error'][_0x3cd00a(0x26c)]!==G['OK']?_0x3cd00a(0x395):_0x31ada7[_0x3cd00a(0x183)]['result'];}catch{return'Failed';}}},exports[_0x6c52c3(0x263)]=Is([Se(0x0,a[_0x6c52c3(0x40e)]),Se(0x1,a[_0x6c52c3(0x1ee)](X[_0x6c52c3(0x2c7)])),Se(0x2,a['IConfigService'])],exports[_0x6c52c3(0x263)]);const Pe=0x7530,we='ACTIVE_UNIT_EVENT_CHANNEL';class ds extends a[_0x6c52c3(0x413)]{constructor(){const _0xfdaea5=_0x6c52c3;super(),_(this,_0xfdaea5(0x1b9),a[_0xfdaea5(0x254)]()),_(this,_0xfdaea5(0x351),new Set()),_(this,_0xfdaea5(0x39c),new Map()),_(this,_0xfdaea5(0x40b),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xfdaea5(0x36b),new Map()),this['_init']();}[_0x6c52c3(0x18d)](){const _0x471097=_0x6c52c3;super[_0x471097(0x18d)](),this[_0x471097(0x237)][_0x471097(0x1b1)]((_0xf2d503,_0x5f8ebd)=>this[_0x471097(0x3de)](_0x5f8ebd)),this['_heartbeatTimer']&&window[_0x471097(0x26b)](this[_0x471097(0x40b)]);}[_0x6c52c3(0x1d4)](_0x44ce42){const _0x3b91e2=_0x6c52c3;return this[_0x3b91e2(0x252)](_0x44ce42)[_0x3b91e2(0x1b7)](I['distinctUntilChanged']());}[_0x6c52c3(0x37c)](_0x409eb7){const _0xaa5f69=_0x6c52c3;this['_selfUnitIDs']['size']===0x0&&this[_0xaa5f69(0x197)](),this[_0xaa5f69(0x351)][_0xaa5f69(0x194)](_0x409eb7),this[_0xaa5f69(0x244)]({'type':0x0,'memberID':this[_0xaa5f69(0x1b9)],'unitIDs':[_0x409eb7],'isForwarded':!0x1});}['disposeUnit'](_0x18cf4b){const _0x189727=_0x6c52c3;this[_0x189727(0x351)][_0x189727(0x41a)](_0x18cf4b),this[_0x189727(0x351)][_0x189727(0x364)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x189727(0x40b)]);}[_0x6c52c3(0x39e)](){const _0x5e731b=_0x6c52c3;this[_0x5e731b(0x392)](a[_0x5e731b(0x1aa)](I[_0x5e731b(0x18e)](window,_0x5e731b(0x2af))['subscribe'](_0x103c8f=>{const _0x3d57a7=_0x5e731b;if(_0x103c8f[_0x3d57a7(0x27f)]!==we||!_0x103c8f[_0x3d57a7(0x397)])return;const _0x3d9be8=JSON[_0x3d57a7(0x1e0)](_0x103c8f[_0x3d57a7(0x397)]);this[_0x3d57a7(0x2bc)](_0x3d9be8);}))),window[_0x5e731b(0x191)](_0x5e731b(0x214),()=>this[_0x5e731b(0x244)]({'type':0x1,'memberID':this[_0x5e731b(0x1b9)],'unitIDs':Array[_0x5e731b(0x235)](this[_0x5e731b(0x351)])}));}['_handleEvent'](_0x4230d3){const _0x56d578=_0x6c52c3;switch(_0x4230d3[_0x56d578(0x333)]){case 0x0:this['_handleJoinEvent'](_0x4230d3);break;case 0x1:this['_handleLeaveEvent'](_0x4230d3);break;case 0x2:this[_0x56d578(0x386)](_0x4230d3);break;}}['_handleJoinEvent'](_0x175477){const _0x32690b=_0x6c52c3,{unitIDs:_0x4bf95c,memberID:_0x1561d0,isForwarded:_0xe0b738}=_0x175477;_0x4bf95c[_0x32690b(0x1b1)](_0x2bf343=>{const _0x4fbbeb=_0x32690b;if(!_0xe0b738&&this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x27c)](_0x2bf343)&&this[_0x4fbbeb(0x252)](_0x2bf343)[_0x4fbbeb(0x2c9)](u[_0x4fbbeb(0x19f)][_0x4fbbeb(0x41f)]),!this[_0x4fbbeb(0x39c)]['has'](_0x2bf343)||!this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x285)](_0x2bf343)[_0x4fbbeb(0x27c)](_0x1561d0)){const _0x1f7fae=this[_0x4fbbeb(0x39c)][_0x4fbbeb(0x285)](_0x2bf343)||new Set();_0x1f7fae['add'](_0x1561d0),this['_unitOnClients'][_0x4fbbeb(0x33f)](_0x2bf343,_0x1f7fae),this[_0x4fbbeb(0x1eb)](_0x1561d0);}}),_0xe0b738||this[_0x32690b(0x244)]({'type':0x0,'memberID':this[_0x32690b(0x1b9)],'unitIDs':[...this[_0x32690b(0x351)]],'isForwarded':!0x0});}[_0x6c52c3(0x1eb)](_0x2e4c03){const _0x2bbfea=_0x6c52c3;this[_0x2bbfea(0x3de)](_0x2e4c03);const _0xf125c9=window[_0x2bbfea(0x3fe)](()=>{const _0x702b6=_0x2bbfea;this[_0x702b6(0x39c)][_0x702b6(0x1b1)](_0x1f1b19=>{const _0x4059a3=_0x702b6;_0x1f1b19[_0x4059a3(0x41a)](_0x2e4c03);});},Pe*0x2);this[_0x2bbfea(0x237)][_0x2bbfea(0x33f)](_0x2e4c03,_0xf125c9);}[_0x6c52c3(0x3de)](_0x26d22a){const _0x3d5ba8=_0x6c52c3;if(this['_clearOtherTimers'][_0x3d5ba8(0x27c)](_0x26d22a)){const _0x472059=this[_0x3d5ba8(0x237)]['get'](_0x26d22a);_0x472059&&window[_0x3d5ba8(0x3db)](_0x472059),this[_0x3d5ba8(0x237)][_0x3d5ba8(0x33f)](_0x26d22a,null);}}[_0x6c52c3(0x373)](_0x1695c9){const _0x3ffae4=_0x6c52c3,{memberID:_0x39661e,unitIDs:_0x263d77}=_0x1695c9;_0x263d77[_0x3ffae4(0x1b1)](_0x34a4f9=>{const _0x485632=_0x3ffae4;var _0xd3ebf6;const _0x224bd7=this[_0x485632(0x39c)][_0x485632(0x285)](_0x34a4f9);_0x224bd7&&(_0x224bd7[_0x485632(0x41a)](_0x39661e),(_0xd3ebf6=this['_ensureSubject'](_0x34a4f9))==null||_0xd3ebf6[_0x485632(0x2c9)](_0x224bd7[_0x485632(0x364)]===0x0?u[_0x485632(0x19f)][_0x485632(0x338)]:u[_0x485632(0x19f)][_0x485632(0x41f)]));}),this[_0x3ffae4(0x3de)](_0x39661e);}[_0x6c52c3(0x386)](_0xbd81e1){const _0x58165c=_0x6c52c3;this[_0x58165c(0x1eb)](_0xbd81e1['memberID']);}[_0x6c52c3(0x244)](_0x2372fd){const _0x57af9a=_0x6c52c3;localStorage[_0x57af9a(0x410)](we,JSON[_0x57af9a(0x302)](_0x2372fd));}[_0x6c52c3(0x197)](){const _0x5bb264=_0x6c52c3;this['_heartbeatTimer']=window[_0x5bb264(0x1bb)](()=>{const _0x22f840=_0x5bb264;this[_0x22f840(0x244)]({'type':0x2,'memberID':this[_0x22f840(0x1b9)]});},Pe);}[_0x6c52c3(0x252)](_0x4c398e){const _0xf95efe=_0x6c52c3;return this['_unitStatus'][_0xf95efe(0x27c)](_0x4c398e)||this[_0xf95efe(0x36b)][_0xf95efe(0x33f)](_0x4c398e,new I['BehaviorSubject'](u['UnitStatus'][_0xf95efe(0x338)])),this[_0xf95efe(0x36b)][_0xf95efe(0x285)](_0x4c398e);}}exports[_0x6c52c3(0x26e)]=Te,exports[_0x6c52c3(0x27e)]=Fe,exports[_0x6c52c3(0x380)]=ds,exports[_0x6c52c3(0x1ac)]=ke;
|