@univerjs-pro/collaboration-client-ui 0.15.4 → 0.15.5
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/ja-JP.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/sk-SK.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/ja-JP.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/sk-SK.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/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.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/ja-JP.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/sk-SK.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 +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xb7227a=_0x4227;(function(_0x19fd30,_0x4a2c2c){const _0x5ae66d=_0x4227,_0x2d910f=_0x19fd30();while(!![]){try{const _0xf0052a=-parseInt(_0x5ae66d(0x35d))/0x1+parseInt(_0x5ae66d(0x408))/0x2*(parseInt(_0x5ae66d(0x2da))/0x3)+-parseInt(_0x5ae66d(0x1ae))/0x4*(-parseInt(_0x5ae66d(0x2f3))/0x5)+parseInt(_0x5ae66d(0x15b))/0x6*(-parseInt(_0x5ae66d(0x429))/0x7)+-parseInt(_0x5ae66d(0x22a))/0x8*(-parseInt(_0x5ae66d(0x397))/0x9)+parseInt(_0x5ae66d(0x1a9))/0xa*(parseInt(_0x5ae66d(0x3b1))/0xb)+-parseInt(_0x5ae66d(0x207))/0xc*(parseInt(_0x5ae66d(0x161))/0xd);if(_0xf0052a===_0x4a2c2c)break;else _0x2d910f['push'](_0x2d910f['shift']());}catch(_0x1e596a){_0x2d910f['push'](_0x2d910f['shift']());}}}(_0x3e8b,0xe4183));var Xe=Object[_0xb7227a(0x3ab)],Ke=(_0x3fecb1,_0x382afd,_0x35d2ac)=>_0x382afd in _0x3fecb1?Xe(_0x3fecb1,_0x382afd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35d2ac}):_0x3fecb1[_0x382afd]=_0x35d2ac,_=(_0x4c3954,_0x412f43,_0x4a1233)=>Ke(_0x4c3954,typeof _0x412f43!=_0xb7227a(0x22d)?_0x412f43+'':_0x412f43,_0x4a1233);Object['defineProperty'](exports,Symbol[_0xb7227a(0x202)],{'value':_0xb7227a(0x30e)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x2e9d89,..._0x3bccbb}){const _0x132da8=_0xb7227a,{icon:_0x534f65,id:_0x927cd7,className:_0x43a7cb,extend:_0x2ad12b,..._0x294ebc}=_0x3bccbb,_0x34d6b9=(_0x132da8(0x175)+_0x927cd7+'\x20'+(_0x43a7cb||''))[_0x132da8(0x3a8)](),_0x201f5f=A[_0x132da8(0x298)]('_'+Qe());return $e(_0x534f65,''+_0x927cd7,{'defIds':_0x534f65[_0x132da8(0x189)],'idSuffix':_0x201f5f[_0x132da8(0x40f)]},{'ref':_0x2e9d89,'className':_0x34d6b9,..._0x294ebc},_0x2ad12b);}function $e(_0x3106ea,_0x1d85c1,_0x58a693,_0xd56bd7,_0x5f217c){const _0x22debc=_0xb7227a;return A['createElement'](_0x3106ea[_0x22debc(0x243)],{'key':_0x1d85c1,...Je(_0x3106ea,_0x58a693,_0x5f217c),..._0xd56bd7},(Ze(_0x3106ea,_0x58a693)[_0x22debc(0x16c)]||[])['map']((_0x5b768f,_0x2e731a)=>$e(_0x5b768f,_0x1d85c1+'-'+_0x3106ea['tag']+'-'+_0x2e731a,_0x58a693,void 0x0,_0x5f217c)));}function Je(_0x3fe59e,_0x3ac6f6,_0x557fdc){const _0x2dbe66=_0xb7227a,_0x122287={..._0x3fe59e[_0x2dbe66(0x2b9)]};_0x557fdc!=null&&_0x557fdc[_0x2dbe66(0x428)]&&_0x122287['fill']===_0x2dbe66(0x428)&&(_0x122287[_0x2dbe66(0x2e3)]=_0x557fdc[_0x2dbe66(0x428)]),_0x3fe59e[_0x2dbe66(0x243)]==='mask'&&_0x122287['id']&&(_0x122287['id']=_0x122287['id']+_0x3ac6f6[_0x2dbe66(0x364)]),Object[_0x2dbe66(0x2eb)](_0x122287)[_0x2dbe66(0x339)](([_0x5a3c66,_0x489eda])=>{const _0xc271eb=_0x2dbe66;_0x5a3c66===_0xc271eb(0x3ba)&&typeof _0x489eda==_0xc271eb(0x35a)&&(_0x122287[_0x5a3c66]=_0x489eda[_0xc271eb(0x1d0)](/url\(#(.*)\)/,_0xc271eb(0x1df)+_0x3ac6f6[_0xc271eb(0x364)]+')'));});const {defIds:_0x5e73bf}=_0x3ac6f6;return!_0x5e73bf||_0x5e73bf[_0x2dbe66(0x1fd)]===0x0||(_0x3fe59e[_0x2dbe66(0x243)]===_0x2dbe66(0x23a)&&_0x122287[_0x2dbe66(0x327)]&&(_0x122287[_0x2dbe66(0x327)]=_0x122287[_0x2dbe66(0x327)]+_0x3ac6f6[_0x2dbe66(0x364)]),Object[_0x2dbe66(0x2eb)](_0x122287)[_0x2dbe66(0x339)](([_0x5f394e,_0x1f3d78])=>{const _0x4ab8b3=_0x2dbe66;typeof _0x1f3d78==_0x4ab8b3(0x35a)&&(_0x122287[_0x5f394e]=_0x1f3d78[_0x4ab8b3(0x1d0)](/url\(#(.*)\)/,_0x4ab8b3(0x1df)+_0x3ac6f6[_0x4ab8b3(0x364)]+')'));})),_0x122287;}function Ze(_0x4f208a,_0x4f589b){const _0x25d77b=_0xb7227a;var _0x31a38b;const {defIds:_0x2c0c3d}=_0x4f589b;return!_0x2c0c3d||_0x2c0c3d['length']===0x0?_0x4f208a:_0x4f208a[_0x25d77b(0x243)]===_0x25d77b(0x394)&&((_0x31a38b=_0x4f208a[_0x25d77b(0x16c)])!=null&&_0x31a38b['length'])?{..._0x4f208a,'children':_0x4f208a['children'][_0x25d77b(0x326)](_0x2d17fe=>typeof _0x2d17fe['attrs']['id']==_0x25d77b(0x35a)&&_0x2c0c3d&&_0x2c0c3d[_0x25d77b(0x1e8)](_0x2d17fe['attrs']['id'])?{..._0x2d17fe,'attrs':{..._0x2d17fe[_0x25d77b(0x2b9)],'id':_0x2d17fe[_0x25d77b(0x2b9)]['id']+_0x4f589b[_0x25d77b(0x364)]}}:_0x2d17fe)}:_0x4f208a;}function Qe(){const _0x5981a4=_0xb7227a;return Math['random']()['toString'](0x24)[_0x5981a4(0x31b)](0x2,0x8);}pe[_0xb7227a(0x27e)]=_0xb7227a(0x284);const et={'tag':_0xb7227a(0x433),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb7227a(0x272),'viewBox':_0xb7227a(0x29f),'width':'1em','height':_0xb7227a(0x197)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xb7227a(0x3fb),'attrs':{'stroke':_0xb7227a(0x3e9),'d':_0xb7227a(0x42f),'strokeLinecap':_0xb7227a(0x246),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xb7227a(0x239),'attrs':{'id':_0xb7227a(0x1f9)},'children':[{'tag':_0xb7227a(0x3fb),'attrs':{'fill':_0xb7227a(0x432),'d':_0xb7227a(0x26f)}}]}]}],'defIds':[_0xb7227a(0x1f9)]},xe=A[_0xb7227a(0x253)](function(_0x5e0095,_0x12e56d){const _0x4d7e71=_0xb7227a;return A['createElement'](pe,Object[_0x4d7e71(0x1e2)]({},_0x5e0095,{'id':_0x4d7e71(0x1b7),'ref':_0x12e56d,'icon':et}));});xe[_0xb7227a(0x27e)]=_0xb7227a(0x361);const tt={'tag':'svg','attrs':{'xmlns':_0xb7227a(0x181),'fill':'none','viewBox':_0xb7227a(0x238),'width':_0xb7227a(0x197),'height':_0xb7227a(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xb7227a(0x23f)},'children':[{'tag':'path','attrs':{'stroke':_0xb7227a(0x3e9),'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':_0xb7227a(0x246),'strokeLinejoin':_0xb7227a(0x246),'strokeWidth':1.2}}]},{'tag':_0xb7227a(0x394),'attrs':{},'children':[{'tag':_0xb7227a(0x239),'attrs':{'id':_0xb7227a(0x275)},'children':[{'tag':_0xb7227a(0x3fb),'attrs':{'fill':_0xb7227a(0x432),'d':_0xb7227a(0x26f),'transform':'translate(.97)'}}]}]}],'defIds':[_0xb7227a(0x275)]},Be=A[_0xb7227a(0x253)](function(_0x120ad3,_0x1f85d7){const _0x461154=_0xb7227a;return A[_0x461154(0x372)](pe,Object[_0x461154(0x1e2)]({},_0x120ad3,{'id':_0x461154(0x368),'ref':_0x1f85d7,'icon':tt}));});Be[_0xb7227a(0x27e)]=_0xb7227a(0x3da);function st(_0x1488ce){const _0x29b849=_0xb7227a;switch(_0x1488ce){case u['CollaborationStatus']['OFFLINE']:return'collabStatus.offline';case u[_0x29b849(0x1b4)]['CONFLICT']:return _0x29b849(0x3a2);case u['CollaborationStatus'][_0x29b849(0x180)]:return'collabStatus.fetchMiss';case u['CollaborationStatus']['NOT_COLLAB']:return _0x29b849(0x1d7);case u[_0x29b849(0x1b4)]['AWAITING']:case u[_0x29b849(0x1b4)][_0x29b849(0x2b3)]:return _0x29b849(0x385);case u['CollaborationStatus'][_0x29b849(0x2a0)]:case u['CollaborationStatus'][_0x29b849(0x17b)]:return'collabStatus.synced';}}function it(_0x3d8b74){const _0x2e9a30=_0xb7227a,{status$:_0x97eb98}=_0x3d8b74,_0x2f15a7=O[_0x2e9a30(0x3ea)](_0x97eb98,u['CollaborationStatus'][_0x2e9a30(0x29d)]),_0x6ad7c9=O[_0x2e9a30(0x34c)](a[_0x2e9a30(0x1dc)]),_0x1fa038=O[_0x2e9a30(0x34c)](u[_0x2e9a30(0x376)]),_0x324a77=_0x2f15a7!==u[_0x2e9a30(0x1b4)][_0x2e9a30(0x436)],_0x512444=_0x6ad7c9['t'](st(_0x2f15a7)),_0x369d06=_0x324a77?M[_0x2e9a30(0x17d)](Be,{}):M[_0x2e9a30(0x17d)](xe,{}),_0x5d01c5=A['useCallback'](()=>{const _0x4c7209=_0x2e9a30;_0x324a77||_0x1fa038[_0x4c7209(0x205)]();},[_0x324a77,_0x1fa038]);function _0x25aab7(){const _0x3596d0=_0x2e9a30;return M[_0x3596d0(0x1d1)](_0x3596d0(0x2cf),{'className':_0x3596d0(0x3c2),'onClick':_0x5d01c5,'children':[M['jsx'](_0x3596d0(0x2cf),{'className':p['clsx'](_0x3596d0(0x440),{'univer-text-green-500':_0x324a77,'univer-text-red-500':!_0x324a77}),'children':_0x369d06}),M['jsx']('div',{'className':_0x3596d0(0x373),'children':_0x512444})]});}return _0x324a77?_0x25aab7():M[_0x2e9a30(0x17d)](p[_0x2e9a30(0x316)],{'title':_0x6ad7c9['t'](_0x2e9a30(0x419)),'children':_0x25aab7()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x5938f1,_0x7104a3,_0x9f6cee,_0xdd770f)=>{const _0xcbd16a=_0xb7227a;for(var _0x1b0d0b=_0xdd770f>0x1?void 0x0:_0xdd770f?nt(_0x7104a3,_0x9f6cee):_0x7104a3,_0x243862=_0x5938f1[_0xcbd16a(0x1fd)]-0x1,_0x463049;_0x243862>=0x0;_0x243862--)(_0x463049=_0x5938f1[_0x243862])&&(_0x1b0d0b=_0x463049(_0x1b0d0b)||_0x1b0d0b);return _0x1b0d0b;},K=(_0x1f656c,_0x32e698)=>(_0xe4f921,_0x8c6205)=>_0x32e698(_0xe4f921,_0x8c6205,_0x1f656c);exports[_0xb7227a(0x349)]=class extends a[_0xb7227a(0x3d3)]{constructor(_0x41483e,_0x1995f5,_0x44f473,_0xa2ac0c){const _0x2b5aaa=_0xb7227a;super(),_(this,'_status$',new I[(_0x2b5aaa(0x31a))](u[_0x2b5aaa(0x1b4)][_0x2b5aaa(0x29d)])),(this[_0x2b5aaa(0x234)]=_0x41483e,this[_0x2b5aaa(0x35e)]=_0x1995f5,this[_0x2b5aaa(0x354)]=_0x44f473,this[_0x2b5aaa(0x37d)]=_0xa2ac0c,this[_0x2b5aaa(0x3dc)](),this[_0x2b5aaa(0x29c)]());}['_initStatusListener'](){const _0x771446=_0xb7227a;this[_0x771446(0x3c6)](this[_0x771446(0x234)][_0x771446(0x1c8)][_0x771446(0x2e8)](I[_0x771446(0x38d)](()=>{const _0x35cb43=_0x771446,_0x51b7fa=this['_univerInstanceService'][_0x35cb43(0x322)]();return _0x51b7fa?this['_collaborationController'][_0x35cb43(0x194)](_0x51b7fa[_0x35cb43(0x1ce)]()):I['of'](null);}),I['switchMap'](_0xf00f2=>_0xf00f2?_0xf00f2[_0x771446(0x21c)]:I['of'](u[_0x771446(0x1b4)][_0x771446(0x29d)])))[_0x771446(0x42d)](_0x442445=>{const _0x2b0009=_0x771446;this['_status$'][_0x2b0009(0x16e)](_0x442445);}));}['_initStatusComponent'](){const _0x19ebdf=_0xb7227a;this[_0x19ebdf(0x3c6)](this[_0x19ebdf(0x37d)][_0x19ebdf(0x222)](O[_0x19ebdf(0x404)][_0x19ebdf(0x1c6)],()=>O[_0x19ebdf(0x343)](ot({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0xb7227a(0x187)]),K(0x1,a['Inject'](a[_0xb7227a(0x36e)])),K(0x2,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x3d5)])),K(0x3,O['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x588f1a){const {status$:_0x5cc6bd}=_0x588f1a;return function(){return M['jsx'](it,{'status$':_0x5cc6bd});};}const Oe=a[_0xb7227a(0x31e)](_0xb7227a(0x1ed));var at=Object[_0xb7227a(0x1ca)],ct=(_0x3c2a67,_0x36aaa0,_0x2923bd,_0x14d4c7)=>{for(var _0x4ebe07=_0x14d4c7>0x1?void 0x0:_0x14d4c7?at(_0x36aaa0,_0x2923bd):_0x36aaa0,_0x30d3a1=_0x3c2a67['length']-0x1,_0x600f9d;_0x30d3a1>=0x0;_0x30d3a1--)(_0x600f9d=_0x3c2a67[_0x30d3a1])&&(_0x4ebe07=_0x600f9d(_0x4ebe07)||_0x4ebe07);return _0x4ebe07;},Y=(_0x53c184,_0x2b95fa)=>(_0x25b147,_0x6eb8f5)=>_0x2b95fa(_0x25b147,_0x6eb8f5,_0x53c184);exports[_0xb7227a(0x19b)]=class extends a[_0xb7227a(0x3b7)]{constructor(_0x1206d5,_0x3c4da0,_0x592fd5,_0x28cd5d,_0xf09efa){const _0x53665e=_0xb7227a;super(),this[_0x53665e(0x216)]=_0x1206d5,this[_0x53665e(0x41d)]=_0x3c4da0,this[_0x53665e(0x3fa)]=_0x592fd5,this['_dataLoaderService']=_0x28cd5d,_0xf09efa?_0xf09efa==null||_0xf09efa[_0x53665e(0x439)]()[_0x53665e(0x26c)](()=>this[_0x53665e(0x304)]()):(this[_0x53665e(0x41d)][_0x53665e(0x1d5)](_0x53665e(0x3f5),_0x53665e(0x33b)),this[_0x53665e(0x304)]());}async[_0xb7227a(0x304)](){const _0x56a460=_0xb7227a,_0x27dcb5=this[_0x56a460(0x216)][_0x56a460(0x3f9)]('unit'),_0x55b57d=this['_urlService'][_0x56a460(0x3f9)](_0x56a460(0x289)),_0x118b71=this[_0x56a460(0x216)][_0x56a460(0x3f9)](_0x56a460(0x269));if(!_0x27dcb5||!_0x55b57d){this[_0x56a460(0x41d)]['debug'](_0x56a460(0x3f5),_0x56a460(0x183));return;}const _0x2297f9=await this[_0x56a460(0x251)]['loadUnit'](_0x27dcb5,Number(_0x55b57d),_0x118b71);_0x2297f9&&_0x2297f9 instanceof a['Workbook']&&this[_0x56a460(0x381)](_0x2297f9);}async['_setupSubUnitSync'](_0x58969c){const _0x59c9b7=_0xb7227a;await this[_0x59c9b7(0x399)](_0x58969c),_0x58969c['activeSheet$']['pipe'](I[_0x59c9b7(0x413)](this[_0x59c9b7(0x1db)]))['subscribe'](_0x465a57=>{const _0x19a279=_0x59c9b7;_0x465a57&&this[_0x19a279(0x22b)](_0x465a57);}),this[_0x59c9b7(0x216)][_0x59c9b7(0x2af)][_0x59c9b7(0x2e8)](I[_0x59c9b7(0x413)](this[_0x59c9b7(0x1db)]))[_0x59c9b7(0x42d)](()=>this['_updateSubUnitFromURLParams'](_0x58969c));}[_0xb7227a(0x22b)](_0x58367b,_0x37f088=!0x1){const _0x2a5141=_0xb7227a,_0x50c222=this[_0x2a5141(0x216)]['getParam']('subunit');_0x58367b[_0x2a5141(0x3d0)]()!==_0x50c222&&this[_0x2a5141(0x216)][_0x2a5141(0x36b)](_0x2a5141(0x269),_0x58367b[_0x2a5141(0x3d0)](),_0x37f088);}async[_0xb7227a(0x399)](_0x4be52e){const _0x570c27=_0xb7227a;var _0x3b55a2;const _0x25ce21=this['_urlService'][_0x570c27(0x3f9)]('subunit');if(!_0x25ce21||!_0x4be52e[_0x570c27(0x2e1)](_0x25ce21)){const _0x392dc6=_0x4be52e['getUnhiddenWorksheets']()[0x0],_0x4b69a9=_0x4be52e[_0x570c27(0x2e1)](_0x392dc6);if(!_0x4b69a9)return;this['_updateURLWithCurrentState'](_0x4b69a9,!0x0),await this[_0x570c27(0x3fa)][_0x570c27(0x360)](v[_0x570c27(0x390)]['id'],{'unitId':_0x4be52e[_0x570c27(0x1ce)](),'subUnitId':_0x392dc6});return;}((_0x3b55a2=_0x4be52e[_0x570c27(0x16d)]())==null?void 0x0:_0x3b55a2['getSheetId']())!==_0x25ce21&&await this['_commandService'][_0x570c27(0x360)](v[_0x570c27(0x390)]['id'],{'unitId':_0x4be52e['getUnitId'](),'subUnitId':_0x25ce21});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0xb7227a(0x3c0)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x3c5)])),Y(0x4,a[_0xb7227a(0x28f)](qe[_0xb7227a(0x3ed)]))],exports[_0xb7227a(0x19b)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0xcb2827,_0x4743b9,_0x4fbdc9,_0x42f4ae)=>{const _0x56dfdc=_0xb7227a;for(var _0x2d58c2=_0x42f4ae>0x1?void 0x0:_0x42f4ae?lt(_0x4743b9,_0x4fbdc9):_0x4743b9,_0x556d1d=_0xcb2827[_0x56dfdc(0x1fd)]-0x1,_0x2544a4;_0x556d1d>=0x0;_0x556d1d--)(_0x2544a4=_0xcb2827[_0x556d1d])&&(_0x2d58c2=_0x2544a4(_0x2d58c2)||_0x2d58c2);return _0x2d58c2;},De=(_0x646996,_0x141512)=>(_0x5d1f84,_0x5ce88a)=>_0x141512(_0x5d1f84,_0x5ce88a,_0x646996);let me=class extends a[_0xb7227a(0x3b7)]{constructor(_0x53e058,_0x56876c){const _0x450010=_0xb7227a;super(),this[_0x450010(0x293)]=_0x53e058,this[_0x450010(0x36c)]=_0x56876c,this['_init']();}[_0xb7227a(0x304)](){const _0x4f350c=_0xb7227a,_0x36901e=this;this[_0x4f350c(0x3c6)](this[_0x4f350c(0x293)][_0x4f350c(0x2c0)]({'onBeforePasteImage':async _0x43c3a2=>{const _0x2d0bb0=_0x4f350c,_0xd8df95=await _0x36901e[_0x2d0bb0(0x36c)][_0x2d0bb0(0x1c0)](_0x43c3a2);return _0xd8df95?{'source':_0xd8df95[_0x2d0bb0(0x179)],'imageSourceType':_0xd8df95[_0x2d0bb0(0x337)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0xb7227a(0x309)])],me);const Ne=[_0xb7227a(0x43c),_0xb7227a(0x3d1),_0xb7227a(0x33f),_0xb7227a(0x1c4),_0xb7227a(0x2dc),'yellow.400'];class Re extends a[_0xb7227a(0x3d3)]{constructor(){const _0x13f5a2=_0xb7227a;super(...arguments),_(this,_0x13f5a2(0x16a),new Map()),_(this,_0x13f5a2(0x34f),0x0);}[_0xb7227a(0x2a4)](_0x555bfb){const _0x19abbc=_0xb7227a;if(this[_0x19abbc(0x16a)][_0x19abbc(0x15d)](_0x555bfb))return this[_0x19abbc(0x16a)][_0x19abbc(0x279)](_0x555bfb);const _0x4ca7f5=Ne[this[_0x19abbc(0x34f)]];return this[_0x19abbc(0x34f)]=(this[_0x19abbc(0x34f)]+0x1)%Ne[_0x19abbc(0x1fd)],this[_0x19abbc(0x16a)][_0x19abbc(0x19f)](_0x555bfb,_0x4ca7f5),_0x4ca7f5;}}function Fe(_0x422f3e){const _0x2ca0fb=_0xb7227a;let _0x6838b7='';for(const _0x23cad6 of _0x422f3e){const {startOffset:_0x5db31b,endOffset:_0x48d489,isActive:_0x1a67d8,rangeType:_0x19eb23,segmentId:_0x27108d,segmentPage:_0x21aef4}=_0x23cad6;_0x6838b7[_0x2ca0fb(0x1fd)]&&(_0x6838b7+=','),_0x6838b7+=_0x5db31b+':'+_0x48d489+':'+(_0x1a67d8?'1':'0')+':'+_0x19eb23+':'+_0x27108d+':'+_0x21aef4;}return _0x6838b7;}function ht(_0x29f585){const _0x4c182f=_0xb7227a,_0x54faac=_0x29f585[_0x4c182f(0x2c6)](','),_0xb9ab12=[];for(const _0x150f88 of _0x54faac){const [_0x7d9808,_0x15f999,_0x4449f6,_0x5db49f,_0x5981e8,_0x3e3952]=_0x150f88['split'](':');_0xb9ab12[_0x4c182f(0x169)]({'startOffset':Number(_0x7d9808),'endOffset':Number(_0x15f999),'collapsed':_0x7d9808===_0x15f999,'isActive':_0x4449f6==='1','rangeType':_0x5db49f===a[_0x4c182f(0x248)][_0x4c182f(0x1f5)]?a[_0x4c182f(0x248)][_0x4c182f(0x1f5)]:a[_0x4c182f(0x248)][_0x4c182f(0x2b0)],'segmentId':typeof _0x5981e8==_0x4c182f(0x35a)?String(_0x5981e8):'','segmentPage':Number(_0x3e3952!=null?_0x3e3952:-0x1)});}return _0xb9ab12[_0x4c182f(0x18f)](_0x33a3c1=>_0x33a3c1['isActive'])||(_0xb9ab12[0x0][_0x4c182f(0x195)]=!0x0),_0xb9ab12;}class be extends a[_0xb7227a(0x3b7)]{constructor(){const _0x505dc3=_0xb7227a;super(...arguments),_(this,_0x505dc3(0x2cb),new I[(_0x505dc3(0x31a))](null)),_(this,_0x505dc3(0x1e5),this['_collabCursorState$'][_0x505dc3(0x334)]());}[_0xb7227a(0x1cb)](_0x4de681){const _0x28ea17=_0xb7227a,{unitID:_0x226dd4,memberID:_0x5b7872,textRanges:_0x4d7131}=_0x4de681,_0x292864=Fe(_0x4d7131);if(_0x292864==='')return;const _0x241329={'unitID':_0x226dd4,'memberID':_0x5b7872,'selection':_0x292864};this[_0x28ea17(0x2cb)]['next'](_0x241329);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x49aa1e,_0x5f3c6,_0x588d4a,_0x44f73b)=>{const _0x1ef8d4=_0xb7227a;for(var _0x3382d9=_0x44f73b>0x1?void 0x0:_0x44f73b?ut(_0x5f3c6,_0x588d4a):_0x5f3c6,_0x16c127=_0x49aa1e[_0x1ef8d4(0x1fd)]-0x1,_0x5365e6;_0x16c127>=0x0;_0x16c127--)(_0x5365e6=_0x49aa1e[_0x16c127])&&(_0x3382d9=_0x5365e6(_0x3382d9)||_0x3382d9);return _0x3382d9;},U=(_0x27aa73,_0xd3f85a)=>(_0x572826,_0x224539)=>_0xd3f85a(_0x572826,_0x224539,_0x27aa73);const St=0x12c,dt=0x64;function _0x4227(_0x40ca54,_0x161e0a){_0x40ca54=_0x40ca54-0x156;const _0x3e8bb7=_0x3e8b();let _0x422722=_0x3e8bb7[_0x40ca54];return _0x422722;}let ve=class extends a[_0xb7227a(0x3b7)]{constructor(_0xc5af97,_0x459fa4,_0x3e05a5,_0x59a2a0,_0xb2d5b4,_0x247db4,_0x3e92a3,_0x505ec3,_0x493642){const _0x21fac8=_0xb7227a;super(),_(this,_0x21fac8(0x41e),!0x1),_(this,_0x21fac8(0x304),!0x1),_(this,_0x21fac8(0x1ff),new I[(_0x21fac8(0x31a))](new Map())),_(this,_0x21fac8(0x276),this[_0x21fac8(0x1ff)]['asObservable']()),_(this,_0x21fac8(0x3e6),new I['BehaviorSubject']([])),_(this,_0x21fac8(0x2c3),this['_roomMembers$'][_0x21fac8(0x2e8)](I[_0x21fac8(0x209)](St))),_(this,'_updateLocalCursor',a[_0x21fac8(0x20c)](_0x449ef3=>{const _0x3e9809=_0x21fac8,_0xc7e416={'eventID':g[_0x3e9809(0x393)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x3e9809(0x1b5)],'memberID':this[_0x3e9809(0x25c)][_0x3e9809(0x1b9)](),'selection':Fe(_0x449ef3)}};this['_session'][_0x3e9809(0x270)](_0xc7e416,this['unitID']);},dt)),(this['unitID']=_0xc5af97,this['_session']=_0x459fa4,this[_0x21fac8(0x35e)]=_0x3e05a5,this[_0x21fac8(0x2a1)]=_0x59a2a0,this['_memberService']=_0xb2d5b4,this[_0x21fac8(0x1cd)]=_0x247db4,this[_0x21fac8(0x26b)]=_0x3e92a3,this[_0x21fac8(0x234)]=_0x505ec3,this[_0x21fac8(0x3fa)]=_0x493642);}get[_0xb7227a(0x38b)](){const _0x3bce02=_0xb7227a;return this[_0x3bce02(0x1ff)]['getValue']();}get[_0xb7227a(0x178)](){const _0x11039a=_0xb7227a;return this['_roomMembers$'][_0x11039a(0x42a)]();}[_0xb7227a(0x308)](){const _0x457527=_0xb7227a;super[_0x457527(0x308)](),this[_0x457527(0x1ff)]['next'](new Map()),this[_0x457527(0x1ff)]['complete'](),this[_0x457527(0x3e6)]['next']([]),this[_0x457527(0x3e6)][_0x457527(0x3d7)]();}[_0xb7227a(0x34e)](){const _0xc76664=_0xb7227a;this[_0xc76664(0x304)]||(this[_0xc76664(0x304)]=!0x0,this['_session'][_0xc76664(0x259)][_0xc76664(0x2e8)](I[_0xc76664(0x413)](this[_0xc76664(0x1db)]))[_0xc76664(0x42d)](_0x195ee6=>{const _0x29f69c=_0xc76664;_0x195ee6===u[_0x29f69c(0x2a8)][_0x29f69c(0x2b2)]?this[_0x29f69c(0x313)]():this[_0x29f69c(0x34a)]();}),this[_0xc76664(0x25c)][_0xc76664(0x3f4)]['pipe'](I[_0xc76664(0x413)](this['dispose$']))['subscribe'](_0x271b0a=>{const _0x54469c=_0xc76664,_0x39d385=_0x271b0a[_0x54469c(0x1a2)];_0x39d385===g[_0x54469c(0x393)][_0x54469c(0x402)]&&this[_0x54469c(0x2b5)](_0x271b0a),_0x39d385===g[_0x54469c(0x393)][_0x54469c(0x2ed)]&&this[_0x54469c(0x1fb)](_0x271b0a);}),this[_0xc76664(0x3c6)](this['_commandService']['onCommandExecuted'](_0x390e87=>{const _0xaba660=_0xc76664,_0x5821ff=_0x390e87['params'];_0x5821ff!=null&&this['_online']&&_0x390e87['id']===V[_0xaba660(0x2a3)]['id']&&_0x5821ff['unitId']===this[_0xaba660(0x1b5)]&&_0x5821ff[_0xaba660(0x333)]===!0x1&&_0x5821ff[_0xaba660(0x2ff)][_0xaba660(0x1fd)]>0x0&&this[_0xaba660(0x1a3)](_0x5821ff['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0xc76664(0x2e8)](I[_0xc76664(0x413)](this['dispose$']))['subscribe'](_0x2c9618=>{const _0x191223=_0xc76664;if((_0x2c9618==null?void 0x0:_0x2c9618['unitID'])!==this['unitID'])return;const _0x544c82={'eventID':g[_0x191223(0x393)][_0x191223(0x402)],'data':_0x2c9618};this['_onCursorUpdate'](_0x544c82);}),this[_0xc76664(0x3c6)](this[_0xc76664(0x3fa)]['onCommandExecuted'](_0x1487c9=>{const _0x3e2e9f=_0xc76664;if(_0x1487c9[_0x3e2e9f(0x315)]==null)return;const _0x5cbd1d=_0x1487c9[_0x3e2e9f(0x315)];if(_0x1487c9['id']!==V[_0x3e2e9f(0x27a)]['id']||_0x5cbd1d[_0x3e2e9f(0x3a7)]!==this[_0x3e2e9f(0x1b5)])return;const _0x3cf005={'id':_0x3e2e9f(0x1fe),'params':_0x5cbd1d},_0x1f825a=this[_0x3e2e9f(0x38b)];for(const [_0x4c9fb3,_0x14b178]of _0x1f825a){const _0x5896c7={'id':_0x3e2e9f(0x1fe),'params':{'unitId':this[_0x3e2e9f(0x1b5)],'actions':null,'textRanges':_0x14b178[_0x3e2e9f(0x2ff)]}},_0x2e580e=this[_0x3e2e9f(0x26b)][_0x3e2e9f(0x3d2)](_0x3cf005,_0x5896c7,!0x1);if(g[_0x3e2e9f(0x1f8)](_0x2e580e))throw _0x2e580e['error'];_0x1f825a[_0x3e2e9f(0x19f)](_0x4c9fb3,{..._0x14b178,'ranges':_0x2e580e['m2Prime'][_0x3e2e9f(0x315)][_0x3e2e9f(0x3f2)]});}queueMicrotask(()=>{const _0x1e310a=_0x3e2e9f;this[_0x1e310a(0x1ff)][_0x1e310a(0x16e)](_0x1f825a);});})));}['_onCursorUpdate'](_0x274e5c){const _0x1f6049=_0xb7227a;var _0x3a0fe1,_0xa17f60;const {memberID:_0x1523ec,selection:_0x494ee0}=_0x274e5c[_0x1f6049(0x43a)],_0x229157=ht(_0x494ee0),_0x3a6432=(_0xa17f60=(_0x3a0fe1=this[_0x1f6049(0x403)][_0x1f6049(0x3b0)](this[_0x1f6049(0x1b5)],_0x1523ec))==null?void 0x0:_0x3a0fe1[_0x1f6049(0x2cd)])!=null?_0xa17f60:'Unknown\x20user',_0x4df0d4={'color':this[_0x1f6049(0x2a1)]['assignAColorForMemberID'](_0x1523ec),'name':_0x3a6432,'ranges':_0x229157},_0x522b63=this[_0x1f6049(0x38b)];_0x522b63[_0x1f6049(0x19f)](_0x1523ec,_0x4df0d4),this[_0x1f6049(0x1ff)][_0x1f6049(0x16e)](_0x522b63);}['_onCursorDelete'](_0x450a31){const _0x376234=_0xb7227a,{memberID:_0x3ee2e7}=_0x450a31[_0x376234(0x43a)],_0x202afd=this[_0x376234(0x38b)];_0x202afd[_0x376234(0x1e3)](_0x3ee2e7),this[_0x376234(0x1ff)][_0x376234(0x16e)](_0x202afd);}['_toggleOnline'](){const _0x146392=_0xb7227a;var _0x125ea4;if(this[_0x146392(0x41e)]=!0x0,((_0x125ea4=this[_0x146392(0x234)][_0x146392(0x322)]())==null?void 0x0:_0x125ea4[_0x146392(0x1ce)]())!==this[_0x146392(0x1b5)])return;const _0x5b975a=this[_0x146392(0x35e)][_0x146392(0x279)](V[_0x146392(0x260)])[_0x146392(0x2fb)]();Array[_0x146392(0x241)](_0x5b975a)&&_0x5b975a['length']>0x0&&this[_0x146392(0x1a3)](_0x5b975a);}[_0xb7227a(0x34a)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),U(0x3,a[_0xb7227a(0x2f4)](Re)),U(0x4,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x32d)])),U(0x5,a[_0xb7227a(0x2f4)](be)),U(0x6,g['ITransformService']),U(0x7,a[_0xb7227a(0x187)]),U(0x8,a[_0xb7227a(0x264)])],ve);var ft=Object[_0xb7227a(0x1ca)],mt=(_0x3521f7,_0x97432d,_0x223b9c,_0x2b45f9)=>{const _0xd15214=_0xb7227a;for(var _0x1c0220=_0x2b45f9>0x1?void 0x0:_0x2b45f9?ft(_0x97432d,_0x223b9c):_0x97432d,_0x513b57=_0x3521f7[_0xd15214(0x1fd)]-0x1,_0x45d719;_0x513b57>=0x0;_0x513b57--)(_0x45d719=_0x3521f7[_0x513b57])&&(_0x1c0220=_0x45d719(_0x1c0220)||_0x1c0220);return _0x1c0220;},w=(_0x1c597b,_0x39a156)=>(_0x19e915,_0x34b643)=>_0x39a156(_0x19e915,_0x34b643,_0x1c597b);const vt=0x12c,gt=0x64,Et=()=>{let _0x5bf231=[],_0x2215af=!0x1;return _0x270ea6=>{const _0x54ce9a=_0x4227;_0x5bf231[_0x54ce9a(0x169)](_0x270ea6),_0x2215af||(_0x2215af=!0x0,setTimeout(()=>{const _0x5bdcdf=_0x54ce9a;_0x5bf231[_0x5bdcdf(0x339)](_0x2b26ee=>_0x2b26ee()),_0x5bf231=[],_0x2215af=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x40ab80,_0x2f145b,_0x23abe2,_0x26a385,_0x5f5741,_0x25e5ab,_0x565f0e,_0x125dd4){const _0x58c817=_0xb7227a;super(),_(this,_0x58c817(0x41e),!0x1),_(this,_0x58c817(0x304),!0x1),_(this,'_cursorInfo$',new I[(_0x58c817(0x31a))](new Map())),_(this,_0x58c817(0x276),this[_0x58c817(0x1ff)]['asObservable']()),_(this,_0x58c817(0x3e6),new I[(_0x58c817(0x31a))]([])),_(this,'roomMembers$',this[_0x58c817(0x3e6)][_0x58c817(0x2e8)](I['debounceTime'](vt))),_(this,_0x58c817(0x1a3),a[_0x58c817(0x20c)]((_0x916556,_0x3a123a)=>{const _0x59ad76=_0x58c817,_0x45770c={'eventID':g[_0x59ad76(0x393)][_0x59ad76(0x402)],'data':{'unitID':this[_0x59ad76(0x1b5)],'memberID':this[_0x59ad76(0x25c)][_0x59ad76(0x1b9)](),'selection':B['serializeRangeWithSheet'](_0x916556,_0x3a123a[_0x59ad76(0x25a)])}};this[_0x59ad76(0x25c)][_0x59ad76(0x270)](_0x45770c,this[_0x59ad76(0x1b5)]);},gt)),(this[_0x58c817(0x1b5)]=_0x40ab80,this[_0x58c817(0x25c)]=_0x2f145b,this[_0x58c817(0x35e)]=_0x23abe2,this[_0x58c817(0x2a1)]=_0x26a385,this['_memberService']=_0x5f5741,this['_univerInstanceService']=_0x25e5ab,this[_0x58c817(0x3fa)]=_0x565f0e,this[_0x58c817(0x19e)]=_0x125dd4);}get['cursorInfo'](){const _0x4cca03=_0xb7227a;return this[_0x4cca03(0x1ff)][_0x4cca03(0x42a)]();}get['roomMembers'](){const _0x5ec6ad=_0xb7227a;return this[_0x5ec6ad(0x3e6)]['getValue']();}[_0xb7227a(0x308)](){const _0x13dfd9=_0xb7227a;super[_0x13dfd9(0x308)](),this[_0x13dfd9(0x1ff)][_0x13dfd9(0x16e)](new Map()),this[_0x13dfd9(0x1ff)][_0x13dfd9(0x3d7)](),this[_0x13dfd9(0x3e6)][_0x13dfd9(0x16e)]([]),this[_0x13dfd9(0x3e6)][_0x13dfd9(0x3d7)]();}[_0xb7227a(0x34e)](){const _0x5d9b55=_0xb7227a;this[_0x5d9b55(0x304)]||(this[_0x5d9b55(0x304)]=!0x0,this[_0x5d9b55(0x25c)]['sessionStatus$']['pipe'](I[_0x5d9b55(0x413)](this[_0x5d9b55(0x1db)]))[_0x5d9b55(0x42d)](_0x3369d2=>{const _0x3c9fd1=_0x5d9b55;_0x3369d2===u['SessionStatus'][_0x3c9fd1(0x2b2)]?this[_0x3c9fd1(0x313)]():this['_toggleOffline']();}),this[_0x5d9b55(0x25c)][_0x5d9b55(0x3f4)][_0x5d9b55(0x2e8)](I[_0x5d9b55(0x413)](this[_0x5d9b55(0x1db)]))[_0x5d9b55(0x42d)](_0x16e085=>{const _0x5752f4=_0x5d9b55,_0x49de42=_0x16e085[_0x5752f4(0x1a2)];_0x49de42===g[_0x5752f4(0x393)][_0x5752f4(0x402)]&&this['_onCursorUpdate'](_0x16e085),_0x49de42===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x5752f4(0x1fb)](_0x16e085);}),this['_onRefRangeChange'](),this[_0x5d9b55(0x3c6)](this['_commandService'][_0x5d9b55(0x214)](_0x15a65b=>{const _0x592432=_0x5d9b55;if(this[_0x592432(0x41e)]&&_0x15a65b['id']===v[_0x592432(0x171)]['id']&&_0x15a65b[_0x592432(0x315)][_0x592432(0x3a7)]===this[_0x592432(0x1b5)]){const _0x372901=_0x15a65b['params'];this[_0x592432(0x1a3)](_0x372901['subUnitId'],_0x372901[_0x592432(0x3ae)][0x0]);}})));}[_0xb7227a(0x2b5)](_0x3980ee){const _0x48412f=_0xb7227a;var _0x3080ea,_0x4eb494;const {memberID:_0x2b8dfe,selection:_0x157b70}=_0x3980ee[_0x48412f(0x43a)],{sheetName:_0x4d9a29,range:_0x53b46b}=B[_0x48412f(0x240)](_0x157b70),_0x2d2e20={'name':(_0x4eb494=(_0x3080ea=this[_0x48412f(0x403)]['getMember'](this['unitID'],_0x2b8dfe))==null?void 0x0:_0x3080ea['name'])!=null?_0x4eb494:_0x48412f(0x3d6),'range':this[_0x48412f(0x15e)](_0x4d9a29,_0x53b46b),'sheetID':_0x4d9a29,'color':this[_0x48412f(0x2a1)]['assignAColorForMemberID'](_0x2b8dfe),'selection':_0x157b70},_0x33d1a8=this[_0x48412f(0x38b)];_0x33d1a8[_0x48412f(0x19f)](_0x2b8dfe,_0x2d2e20),this[_0x48412f(0x1ff)][_0x48412f(0x16e)](_0x33d1a8);}[_0xb7227a(0x1fb)](_0x3bdc97){const _0x58ba9e=_0xb7227a,{memberID:_0x11dbe9}=_0x3bdc97[_0x58ba9e(0x43a)],_0x448f23=this[_0x58ba9e(0x38b)];_0x448f23[_0x58ba9e(0x1e3)](_0x11dbe9),this[_0x58ba9e(0x1ff)][_0x58ba9e(0x16e)](_0x448f23);}[_0xb7227a(0x15e)](_0x3c87ff,_0x417d83){const _0x38459c=_0xb7227a;var _0x57d8a8,_0x18cdbd;const _0x2c1255=(_0x18cdbd=(_0x57d8a8=this[_0x38459c(0x234)][_0x38459c(0x2e6)](this[_0x38459c(0x1b5)]))==null?void 0x0:_0x57d8a8[_0x38459c(0x2e1)](_0x3c87ff))==null?void 0x0:_0x18cdbd[_0x38459c(0x35b)]();return(_0x2c1255==null?void 0x0:_0x2c1255[_0x38459c(0x267)](_0x427021=>a[_0x38459c(0x2a9)]['contains'](_0x427021,_0x417d83)))||_0x417d83;}[_0xb7227a(0x431)](){const _0x9a245e=_0xb7227a,_0x2a051d=new a[(_0x9a245e(0x16b))](),_0x44662b=Et(),_0x4b6884=()=>{const _0x527d6b=_0x9a245e;_0x2a051d[_0x527d6b(0x308)]();const _0x1f51a4=(_0x431c46,_0x5d6e3e,_0x454269,_0x38a590)=>{const _0x5422ab=_0x527d6b;let _0x2844a8=[];switch(_0x431c46['id']){case v[_0x5422ab(0x42c)][_0x5422ab(0x162)]:{_0x2844a8=v[_0x5422ab(0x1b6)](_0x431c46,_0x38a590);break;}case v['EffectRefRangId'][_0x5422ab(0x21e)]:{_0x2844a8=v[_0x5422ab(0x28c)](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)]['InsertColCommandId']:{_0x2844a8=v[_0x5422ab(0x244)](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x2a7)]:{_0x2844a8=v[_0x5422ab(0x32b)](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x2f1)]:{_0x2844a8=v[_0x5422ab(0x358)](_0x431c46,_0x38a590);break;}case v['EffectRefRangId'][_0x5422ab(0x3cc)]:{_0x2844a8=v['handleInsertRow'](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)]['MoveRangeCommandId']:{_0x2844a8=v['handleMoveRange'](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x233)]:{_0x2844a8=v['handleIRemoveCol'](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x400)]:{_0x2844a8=v[_0x5422ab(0x3f7)](_0x431c46,_0x38a590);break;}}const _0x4c2f32=v[_0x5422ab(0x28d)](_0x2844a8,_0x38a590),_0x853fc6=this[_0x5422ab(0x38b)][_0x5422ab(0x279)](_0x5d6e3e);if(_0x853fc6&&_0x4c2f32){const _0x10f28b={..._0x853fc6,'range':_0x4c2f32};this[_0x5422ab(0x38b)][_0x5422ab(0x19f)](_0x5d6e3e,_0x10f28b),_0x44662b(()=>{const _0x552389=_0x5422ab,_0x261ba8=this[_0x552389(0x19e)][_0x552389(0x1d3)](_0x4c2f32,_0x1c0914=>(_0x261ba8[_0x552389(0x308)](),_0x1f51a4(_0x1c0914,_0x5d6e3e,_0x454269,_0x4c2f32)));_0x2a051d[_0x552389(0x1ba)](_0x261ba8);});}return{'redos':[],'undos':[]};};this[_0x527d6b(0x38b)][_0x527d6b(0x339)]((_0x5e3e97,_0x59967b)=>{const _0x89db92=_0x527d6b,{range:_0x1960c1,sheetID:_0x1c3425}=_0x5e3e97,_0x2fbbfe=this[_0x89db92(0x19e)][_0x89db92(0x1d3)](_0x1960c1,_0xde2306=>(_0x2fbbfe[_0x89db92(0x308)](),_0x1f51a4(_0xde2306,_0x59967b,_0x1c3425,_0x1960c1)));_0x2a051d['add'](_0x2fbbfe);});};this[_0x9a245e(0x3c6)](a[_0x9a245e(0x324)](this['_cursorInfo$']['subscribe'](()=>{_0x4b6884();})));}[_0xb7227a(0x313)](){const _0x22f482=_0xb7227a;var _0x35b647,_0x3fc960;if(this[_0x22f482(0x41e)]=!0x0,((_0x35b647=this[_0x22f482(0x234)][_0x22f482(0x322)]())==null?void 0x0:_0x35b647[_0x22f482(0x1ce)]())!==this['unitID'])return;const _0x3e0521=(_0x3fc960=this[_0x22f482(0x35e)][_0x22f482(0x279)](v[_0x22f482(0x291)])[_0x22f482(0x252)]())==null?void 0x0:_0x3fc960[0x0],_0x5b7692=this[_0x22f482(0x234)][_0x22f482(0x1de)](a[_0x22f482(0x1f6)][_0x22f482(0x42e)])['getActiveSheet']();_0x3e0521&&_0x5b7692&&this[_0x22f482(0x1a3)](_0x5b7692[_0x22f482(0x3d0)](),_0x3e0521);}[_0xb7227a(0x34a)](){const _0x36af58=_0xb7227a;this[_0x36af58(0x41e)]=!0x1;}};ge=mt([w(0x2,a[_0xb7227a(0x2f4)](a['Injector'])),w(0x3,a[_0xb7227a(0x2f4)](Re)),w(0x4,a['Inject'](u[_0xb7227a(0x32d)])),w(0x5,a[_0xb7227a(0x187)]),w(0x6,a[_0xb7227a(0x264)]),w(0x7,a[_0xb7227a(0x2f4)](v['RefRangeService']))],ge);var Ct=Object[_0xb7227a(0x1ca)],Tt=(_0x4fd565,_0x198581,_0x190b96,_0x10b4d1)=>{const _0x24227e=_0xb7227a;for(var _0x204352=_0x10b4d1>0x1?void 0x0:_0x10b4d1?Ct(_0x198581,_0x190b96):_0x198581,_0x58a789=_0x4fd565[_0x24227e(0x1fd)]-0x1,_0x5655b2;_0x58a789>=0x0;_0x58a789--)(_0x5655b2=_0x4fd565[_0x58a789])&&(_0x204352=_0x5655b2(_0x204352)||_0x204352);return _0x204352;},ce=(_0x209084,_0x5a5784)=>(_0x246a4e,_0x2c0dde)=>_0x5a5784(_0x246a4e,_0x2c0dde,_0x209084);let F=class extends a['RxDisposable']{constructor(_0x33f38b,_0x16398e,_0xab0bb0){const _0x1269ca=_0xb7227a;super(),_(this,_0x1269ca(0x2bb),new Map()),_(this,_0x1269ca(0x389),new I[(_0x1269ca(0x437))]()),(this[_0x1269ca(0x234)]=_0x33f38b,this[_0x1269ca(0x35e)]=_0x16398e,this[_0x1269ca(0x23c)]=_0xab0bb0,this[_0x1269ca(0x304)]());}[_0xb7227a(0x308)](){const _0x54eaea=_0xb7227a;super['dispose'](),this[_0x54eaea(0x389)][_0x54eaea(0x3d7)](),this[_0x54eaea(0x2bb)][_0x54eaea(0x339)](_0x156adf=>_0x156adf[_0x54eaea(0x308)]());}[_0xb7227a(0x1f3)](_0x48d453){const _0x111103=_0xb7227a;return this[_0x111103(0x2bb)]['has'](_0x48d453)?this[_0x111103(0x2bb)][_0x111103(0x279)](_0x48d453)[_0x111103(0x276)]:this[_0x111103(0x389)]['pipe'](I[_0x111103(0x18a)](_0xff866b=>_0xff866b['unitID']===_0x48d453),I[_0x111103(0x38d)](_0x148526=>_0x148526['cursorInfo$']));}[_0xb7227a(0x304)](){const _0x5806a4=_0xb7227a;this['_univerInstanceService'][_0x5806a4(0x3f1)](a[_0x5806a4(0x1f6)][_0x5806a4(0x42e)])[_0x5806a4(0x2e8)](I[_0x5806a4(0x413)](this[_0x5806a4(0x1db)]))[_0x5806a4(0x42d)](async _0xb0aad0=>{const _0x1e2b1c=_0x5806a4,_0x165d71=_0xb0aad0['getUnitId'](),_0x58f60e=await this[_0x1e2b1c(0x351)](_0x165d71);this['_entityInit$'][_0x1e2b1c(0x16e)](_0x58f60e),this[_0x1e2b1c(0x2bb)][_0x1e2b1c(0x19f)](_0x165d71,_0x58f60e);}),this[_0x5806a4(0x234)]['getTypeOfUnitAdded$'](a[_0x5806a4(0x1f6)][_0x5806a4(0x370)])[_0x5806a4(0x2e8)](I[_0x5806a4(0x413)](this[_0x5806a4(0x1db)]))[_0x5806a4(0x2e8)](I[_0x5806a4(0x18a)](_0x22f88d=>!_0x22f88d['getUnitId']()[_0x5806a4(0x386)]('__')))[_0x5806a4(0x42d)](async _0x3ae810=>{const _0x44e65d=_0x5806a4,_0x2e9a2b=_0x3ae810['getUnitId'](),_0x284e5d=await this[_0x44e65d(0x290)](_0x2e9a2b);this[_0x44e65d(0x389)]['next'](_0x284e5d),this[_0x44e65d(0x2bb)][_0x44e65d(0x19f)](_0x2e9a2b,_0x284e5d);}),I[_0x5806a4(0x2f8)](this[_0x5806a4(0x234)][_0x5806a4(0x357)](a[_0x5806a4(0x1f6)][_0x5806a4(0x370)]),this[_0x5806a4(0x234)][_0x5806a4(0x357)](a[_0x5806a4(0x1f6)][_0x5806a4(0x42e)]))[_0x5806a4(0x2e8)](I[_0x5806a4(0x413)](this[_0x5806a4(0x1db)]))[_0x5806a4(0x42d)](_0x21efd4=>{const _0x49ca16=_0x5806a4,_0x8ada1b=_0x21efd4['getUnitId'](),_0x45f59e=this[_0x49ca16(0x2bb)][_0x49ca16(0x279)](_0x8ada1b);_0x45f59e&&(_0x45f59e['dispose'](),this[_0x49ca16(0x2bb)][_0x49ca16(0x1e3)](_0x8ada1b));});}async[_0xb7227a(0x351)](_0x53d45b){const _0x558b6c=_0xb7227a,_0x48a2de=await this[_0x558b6c(0x23c)][_0x558b6c(0x362)](_0x53d45b),_0x1e501e=this[_0x558b6c(0x35e)][_0x558b6c(0x292)](ge,_0x53d45b,_0x48a2de);return _0x1e501e[_0x558b6c(0x34e)](),_0x1e501e;}async['_startDocCollabCursor'](_0x26d29c){const _0x96591a=_0xb7227a,_0x15dac6=await this[_0x96591a(0x23c)]['requireSession'](_0x26d29c),_0x5c43bc=this['_injector'][_0x96591a(0x292)](ve,_0x26d29c,_0x15dac6);return _0x5c43bc[_0x96591a(0x34e)](),_0x5c43bc;}};F=Tt([ce(0x0,a[_0xb7227a(0x187)]),ce(0x1,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),ce(0x2,a['Inject'](u[_0xb7227a(0x376)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x336f91,_0x40cc5d){const _0x1cc355=_0xb7227a;let {radius:_0x5c3852,width:_0x7e3b1e,height:_0x342211}=_0x40cc5d;_0x5c3852=_0x5c3852!=null?_0x5c3852:0x0,_0x7e3b1e=_0x7e3b1e!=null?_0x7e3b1e:0x1e,_0x342211=_0x342211!=null?_0x342211:0x1e;let _0x4aa126=0x0,_0x2a9d74=0x0,_0x42397f=0x0;_0x4aa126=_0x2a9d74=_0x42397f=Math[_0x1cc355(0x193)](_0x5c3852,_0x7e3b1e/0x2,_0x342211/0x2),_0x336f91['beginPath'](),_0x336f91[_0x1cc355(0x3b2)](_0x4aa126,0x0),_0x336f91['lineTo'](_0x7e3b1e-_0x2a9d74,0x0),_0x336f91[_0x1cc355(0x38e)](_0x7e3b1e-_0x2a9d74,_0x2a9d74,_0x2a9d74,Math['PI']*0x3/0x2,0x0,!0x1),_0x336f91[_0x1cc355(0x3ad)](_0x7e3b1e,_0x342211-_0x42397f),_0x336f91['arc'](_0x7e3b1e-_0x42397f,_0x342211-_0x42397f,_0x42397f,0x0,Math['PI']/0x2,!0x1),_0x336f91[_0x1cc355(0x3ad)](0x0,_0x342211),_0x336f91[_0x1cc355(0x3ad)](0x0,_0x4aa126),_0x336f91['arc'](_0x4aa126,_0x4aa126,_0x4aa126,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x336f91[_0x1cc355(0x301)](),_0x40cc5d[_0x1cc355(0x2e3)]&&(_0x336f91[_0x1cc355(0x382)](),_0x336f91['fillStyle']=_0x40cc5d[_0x1cc355(0x2e3)],_0x40cc5d[_0x1cc355(0x40b)]===_0x1cc355(0x3bd)?_0x336f91['fill'](_0x1cc355(0x3bd)):_0x336f91['fill'](),_0x336f91[_0x1cc355(0x29b)]());}class re extends C[_0xb7227a(0x2c7)]{constructor(_0x2a07e3,_0x468e21){const _0x274f2b=_0xb7227a;super(_0x2a07e3,_0x468e21),_(this,_0x274f2b(0x20d)),_(this,_0x274f2b(0x2ac)),(this[_0x274f2b(0x20d)]=_0x468e21==null?void 0x0:_0x468e21[_0x274f2b(0x20d)],this[_0x274f2b(0x2ac)]=_0x468e21==null?void 0x0:_0x468e21[_0x274f2b(0x2ac)]);}static[_0xb7227a(0x2d2)](_0x90e29d,_0x29ac5d){const _0x330730=_0xb7227a,{text:_0x133ea1,color:_0x3ace4a}=_0x29ac5d;_0x90e29d[_0x330730(0x382)](),_0x90e29d[_0x330730(0x2d7)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xfbc3f2=_0x90e29d['measureText'](_0x133ea1)[_0x330730(0x27d)],_0x491d50=Math[_0x330730(0x193)](_0xfbc3f2+0x2*le,Ue);Ot(_0x90e29d,{'height':X,'radius':0x4,'width':_0x491d50,'fill':_0x3ace4a}),_0x90e29d[_0x330730(0x409)]=_0x330730(0x281);const _0x3c8f3f=le,_0x5600f6=X-pt,_0x5f1e49=Ue-0x2*le;if(_0xfbc3f2>_0x5f1e49){let _0x3d3e21='',_0x1a2b62=0x0;for(const _0x2f832b of _0x133ea1){const _0xae0f5=_0x90e29d['measureText'](_0x2f832b)[_0x330730(0x27d)];if(_0x1a2b62+_0xae0f5<=_0x5f1e49-_0x90e29d['measureText'](_0x330730(0x1c3))[_0x330730(0x27d)])_0x3d3e21+=_0x2f832b,_0x1a2b62+=_0xae0f5;else{_0x3d3e21+=_0x330730(0x1c3);break;}}_0x90e29d[_0x330730(0x1c9)](_0x3d3e21,_0x3c8f3f,_0x5600f6);}else _0x90e29d[_0x330730(0x1c9)](_0x133ea1,_0x3c8f3f,_0x5600f6);_0x90e29d[_0x330730(0x29b)]();}[_0xb7227a(0x2d3)](_0x1e05d8){const _0x2d9f47=_0xb7227a;re[_0x2d9f47(0x2d2)](_0x1e05d8,this);}}const _e=_0xb7227a(0x355),Rt=_0xb7227a(0x199),bt=_0xb7227a(0x302),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x23a1ae,_0x57e4b7,_0xc818a7,_0x22c2ef){const _0x26f194=_0xb7227a;_(this,_0x26f194(0x410),[]),_(this,'_anchor',null),_(this,_0x26f194(0x263),null),_(this,_0x26f194(0x3e1),null),_(this,_0x26f194(0x417),null),_(this,'_eventUnsubscribe',null),(this[_0x26f194(0x3f6)]=_0x23a1ae,this[_0x26f194(0x384)]=_0x57e4b7,this[_0x26f194(0x2ce)]=_0xc818a7,this[_0x26f194(0x1c5)]=_0x22c2ef,this['_render']());}set[_0xb7227a(0x1e6)](_0x2725a0){const _0x1494aa=_0xb7227a;_0x2725a0?(this[_0x1494aa(0x3e1)]&&this['_anchorDot'][_0x1494aa(0x2c5)](),this[_0x1494aa(0x263)]&&this[_0x1494aa(0x263)]['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x1494aa(0x378)](),this[_0x1494aa(0x263)]&&this['_textBubble'][_0x1494aa(0x2c5)]());}[_0xb7227a(0x308)](){const _0x1934d4=_0xb7227a;for(const _0x4db7f1 of this['_shapes'])_0x4db7f1[_0x1934d4(0x308)]();this[_0x1934d4(0x263)]&&this[_0x1934d4(0x263)][_0x1934d4(0x308)](),this[_0x1934d4(0x3e1)]&&this[_0x1934d4(0x3e1)][_0x1934d4(0x308)](),this[_0x1934d4(0x2b4)]&&this[_0x1934d4(0x2b4)]['dispose'](),this[_0x1934d4(0x1a0)]&&this[_0x1934d4(0x1a0)]();}[_0xb7227a(0x411)](){const _0x258922=_0xb7227a;var _0x353f3e;const {_docSkeleton:_0x4b93c6,_document:_0x87242c}=this,{color:_0x5579e3,name:_0x1fa0b6,ranges:_0x1da96a}=this[_0x258922(0x3f6)],_0x1cb18f=_0x87242c['getOffsetConfig'](),{docsLeft:_0x2749e1,docsTop:_0x3a54ab}=_0x1cb18f,_0x4c6d53=new T[(_0x258922(0x299))](_0x1cb18f,_0x4b93c6);for(const {startOffset:_0x1de2df,endOffset:_0x1da0b2,rangeType:_0x2fdc50,segmentId:_0x42a4d9,segmentPage:_0xcc6a50,collapsed:_0x297b74,isActive:_0xe5fd0f}of _0x1da96a){const _0x48fe82=_0x4b93c6[_0x258922(0x3a1)](_0x1de2df,!0x0,_0x42a4d9,_0xcc6a50);let _0x1d09bf=_0x4b93c6['findNodePositionByCharIndex'](_0x1da0b2,!0x0,_0x42a4d9,_0xcc6a50);if(_0x1d09bf==null&&(_0x1d09bf=_0x4b93c6['findNodePositionByCharIndex'](_0x1da0b2-0x1,!0x1,_0x42a4d9,_0xcc6a50)),_0xe5fd0f){const {contentBoxPointGroup:_0x25f424}=_0x4c6d53[_0x258922(0x1f4)](_0x1d09bf,_0x1d09bf);if(_0x25f424[_0x258922(0x1fd)]===0x0)continue;this[_0x258922(0x285)](_0x5579e3,_0x25f424,_0x2749e1,_0x3a54ab,_0x1fa0b6),this['_eventUnsubscribe']=this[_0x258922(0x43e)]();}if(_0x48fe82&&_0x1d09bf){if(_0x2fdc50===a[_0x258922(0x248)][_0x258922(0x2b0)]){const _0x4ec906=new T[(_0x258922(0x438))](_0x1cb18f,_0x4b93c6),{pointGroup:_0x5e97b2}=(_0x353f3e=_0x4ec906[_0x258922(0x1f4)](_0x48fe82,_0x1d09bf))!=null?_0x353f3e:{};if(_0x5e97b2==null||_0x5e97b2['length']===0x0)continue;this[_0x258922(0x3f8)](_0x5579e3,_0x5e97b2,_0x2749e1,_0x3a54ab);}else{if(!_0x297b74){const {borderBoxPointGroup:_0x421cad}=_0x4c6d53['getRangePointData'](_0x48fe82,_0x1d09bf);if(_0x421cad['length']===0x0)continue;this[_0x258922(0x2ea)](_0x5579e3,_0x421cad,_0x2749e1,_0x3a54ab);}}}}}[_0xb7227a(0x285)](_0xfe7dd0,_0x1b0804,_0x5f13f9,_0x17d3c0,_0x41e6a8){const _0x130ac0=_0xb7227a,_0x4ef326=this[_0x130ac0(0x3b4)](_0x1b0804),{left:_0x30f4c7,top:_0x275e94,height:_0x304cc5}=_0x4ef326,_0x5a494b=this[_0x130ac0(0x26a)](),_0x573c27=Nt/_0x5a494b,_0xd5b863=new C[(_0x130ac0(0x39b))](_e+a[_0x130ac0(0x268)](H),{'left':_0x30f4c7+_0x5f13f9-_0x573c27,'top':_0x275e94+_0x17d3c0,'height':_0x304cc5,'width':Dt,'fill':_0xfe7dd0||C[_0x130ac0(0x1be)](a['COLORS'][_0x130ac0(0x332)],0x0),'strokeWidth':_0x573c27,'stroke':Ut,'evented':!0x0});this[_0x130ac0(0x2b4)]=_0xd5b863,this['_scene'][_0x130ac0(0x421)](_0xd5b863,T[_0x130ac0(0x218)]);const _0x3a0c26=new C['Rect'](_e+a[_0x130ac0(0x268)](H),{'left':_0x30f4c7+_0x5f13f9-_0x573c27,'top':_0x275e94+_0x17d3c0-he/0x2,'height':he,'width':he,'fill':_0xfe7dd0||C['getColor'](a[_0x130ac0(0x18c)][_0x130ac0(0x332)],0x0),'strokeWidth':0x0,'stroke':_0xfe7dd0||C['getColor'](a[_0x130ac0(0x18c)][_0x130ac0(0x332)],0x0),'evented':!0x1});this[_0x130ac0(0x3e1)]=_0x3a0c26,this['_scene'][_0x130ac0(0x421)](_0x3a0c26,T[_0x130ac0(0x218)]);const _0x3372c6=new re(_e+a[_0x130ac0(0x268)](H),{'left':_0x30f4c7+_0x5f13f9-_0x573c27,'top':_0x275e94+_0x17d3c0-X,'text':_0x41e6a8,'color':_0xfe7dd0});this[_0x130ac0(0x263)]=_0x3372c6,this[_0x130ac0(0x384)]['addObject'](_0x3372c6,T[_0x130ac0(0x218)]),this['_hover']=!0x1;}[_0xb7227a(0x43e)](){const _0x23a2ae=_0xb7227a,_0x3dde59=this['_anchor']['onPointerEnter$'][_0x23a2ae(0x21b)](()=>{this['_hover']=!0x0;}),_0x1a3dc4=this[_0x23a2ae(0x2b4)][_0x23a2ae(0x1e0)][_0x23a2ae(0x21b)](()=>{const _0x41c6be=_0x23a2ae;this[_0x41c6be(0x417)]&&clearTimeout(this[_0x41c6be(0x417)]),this[_0x41c6be(0x417)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x176bdb=_0x23a2ae;_0x3dde59[_0x176bdb(0x1c7)](),_0x1a3dc4[_0x176bdb(0x1c7)]();};}[_0xb7227a(0x2ea)](_0x22466f,_0x2726e9,_0x207191,_0x38b4aa){const _0x2370e2=_0xb7227a,_0x14903d=new a[(_0x2370e2(0x158))](_0x22466f)[_0x2370e2(0x345)](0.2)['toRgbString'](),_0x270a09=new C[(_0x2370e2(0x40e))](Rt+a[_0x2370e2(0x268)](H),{'pointsGroup':_0x2726e9,'fill':_0x14903d||C[_0x2370e2(0x1be)](a[_0x2370e2(0x18c)]['black'],0.2),'left':_0x207191,'top':_0x38b4aa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2370e2(0x410)][_0x2370e2(0x169)](_0x270a09),this[_0x2370e2(0x384)][_0x2370e2(0x421)](_0x270a09,T[_0x2370e2(0x218)]);}[_0xb7227a(0x3f8)](_0x5cddf9,_0x441fd5,_0x1658a4,_0x388fdd){const _0x32de0a=_0xb7227a,_0x302e4e=new a[(_0x32de0a(0x158))](_0x5cddf9)['setAlpha'](0.2)[_0x32de0a(0x2f2)](),_0xeac096=new C[(_0x32de0a(0x40e))](bt+a[_0x32de0a(0x268)](H),{'pointsGroup':_0x441fd5,'fill':_0x302e4e||C['getColor'](a[_0x32de0a(0x18c)][_0x32de0a(0x332)],0.2),'left':_0x1658a4,'top':_0x388fdd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32de0a(0x410)][_0x32de0a(0x169)](_0xeac096),this[_0x32de0a(0x384)][_0x32de0a(0x421)](_0xeac096,T[_0x32de0a(0x218)]);}['_getAnchorBounding'](_0x3d439f){const _0x192864=_0x3d439f[0x0],_0x2c9d03=_0x192864[0x0],_0xdac817=_0x192864[0x2],{x:_0x548d85,y:_0x4340ab}=_0x2c9d03,{x:_0xb03353,y:_0x4c3f12}=_0xdac817;return{'left':_0x548d85,'top':_0x4340ab,'width':_0xb03353-_0x548d85,'height':_0x4c3f12-_0x4340ab};}['_getScale'](){const _0x34886b=_0xb7227a,{scaleX:_0x591564,scaleY:_0x1a2a2d}=this[_0x34886b(0x384)][_0x34886b(0x41c)]();return Math[_0x34886b(0x2f5)](_0x591564,_0x1a2a2d);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x223bd,_0x3cecf2,_0x314a15,_0x4b1518)=>{const _0x45f1fa=_0xb7227a;for(var _0x2e72f6=_0x4b1518>0x1?void 0x0:_0x4b1518?Lt(_0x3cecf2,_0x314a15):_0x3cecf2,_0x2e6518=_0x223bd[_0x45f1fa(0x1fd)]-0x1,_0x2d53b9;_0x2e6518>=0x0;_0x2e6518--)(_0x2d53b9=_0x223bd[_0x2e6518])&&(_0x2e72f6=_0x2d53b9(_0x2e72f6)||_0x2e72f6);return _0x2e72f6;},q=(_0x1965d1,_0x260666)=>(_0x446979,_0x1873b6)=>_0x260666(_0x446979,_0x1873b6,_0x1965d1);let Ee=class extends a[_0xb7227a(0x3b7)]{constructor(_0x42e926,_0x314f27,_0x4b4193,_0x36d563,_0x8feb65){const _0x3a514c=_0xb7227a;super(),_(this,_0x3a514c(0x211),[]),_(this,_0x3a514c(0x2e2),[]),(this[_0x3a514c(0x173)]=_0x42e926,this[_0x3a514c(0x3c4)]=_0x314f27,this[_0x3a514c(0x3c8)]=_0x4b4193,this[_0x3a514c(0x3fa)]=_0x36d563,this['_themeService']=_0x8feb65,this[_0x3a514c(0x304)]());}[_0xb7227a(0x304)](){const _0xc12068=_0xb7227a,_0x263dc3=this['_context'][_0xc12068(0x3a7)],_0x31612f=this[_0xc12068(0x3c4)];this[_0xc12068(0x3c6)](I[_0xc12068(0x1eb)]([this[_0xc12068(0x3c8)]['getCollabCursors$'](_0x263dc3),this[_0xc12068(0x39d)][_0xc12068(0x3a4)]])[_0xc12068(0x2e8)]($['map'](([_0x4767ba,_0x12e47c])=>({'skeleton':_0x31612f[_0xc12068(0x1a4)](),'cursors':[..._0x4767ba[_0xc12068(0x231)]()][_0xc12068(0x434)](_0xf280bc=>({..._0xf280bc,'color':this[_0xc12068(0x39d)][_0xc12068(0x30d)](_0xf280bc['color'])}))})))[_0xc12068(0x42d)](_0x4de944=>{const _0x9d278a=_0xc12068;if(this[_0x9d278a(0x1d8)](),_0x4de944){const {skeleton:_0x44c489,cursors:_0x159c6a}=_0x4de944;this[_0x9d278a(0x24e)](_0x44c489,_0x159c6a);}})),this['_initResize'](),this[_0xc12068(0x307)]();}[_0xb7227a(0x24e)](_0x476af0,_0x24ccd8){const _0x6cce28=_0xb7227a,{scene:_0x140732,mainComponent:_0x152bcb}=this[_0x6cce28(0x173)],_0x4e8c16=_0x24ccd8['map'](_0x2b062f=>new Le(_0x2b062f,_0x140732,_0x476af0,_0x152bcb));this[_0x6cce28(0x211)]=_0x4e8c16,this[_0x6cce28(0x2e2)]=_0x24ccd8;}[_0xb7227a(0x21d)](){const _0x201153=_0xb7227a;this[_0x201153(0x1d8)]();const {scene:_0x2b2119,mainComponent:_0x1f4363}=this[_0x201153(0x173)],_0x5dd0b3=this[_0x201153(0x3c4)]['getSkeleton'](),_0x46fe9b=this[_0x201153(0x2e2)]['map'](_0x306b5a=>new Le(_0x306b5a,_0x2b2119,_0x5dd0b3,_0x1f4363));this[_0x201153(0x211)]=_0x46fe9b;}[_0xb7227a(0x1d8)](){const _0x50a0ea=_0xb7227a;this[_0x50a0ea(0x211)]['forEach'](_0x5b94e7=>_0x5b94e7['dispose']()),this[_0x50a0ea(0x211)]=[];}[_0xb7227a(0x307)](){const _0x90ddea=_0xb7227a,_0x3d6475=[T[_0x90ddea(0x229)]['id']];this[_0x90ddea(0x3c6)](this['_commandService'][_0x90ddea(0x214)](_0x3e6825=>{const _0xf591e7=_0x90ddea;_0x3d6475[_0xf591e7(0x1e8)](_0x3e6825['id'])&&_0x3e6825[_0xf591e7(0x315)]['unitId']===this[_0xf591e7(0x173)][_0xf591e7(0x3a7)]&&this[_0xf591e7(0x21d)]();}));}[_0xb7227a(0x3eb)](){const _0x53b6e3=_0xb7227a;this['disposeWithMe'](a[_0x53b6e3(0x2e9)](this[_0x53b6e3(0x173)][_0x53b6e3(0x1a7)][_0x53b6e3(0x15f)])[_0x53b6e3(0x2e8)]($['filter'](_0x21f5dc=>_0x21f5dc[_0x53b6e3(0x289)]===C[_0x53b6e3(0x29e)][_0x53b6e3(0x17a)]),$[_0x53b6e3(0x22e)](0x10))[_0x53b6e3(0x42d)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0xb7227a(0x2f4)](V[_0xb7227a(0x265)])),q(0x2,a['Inject'](F)),q(0x3,a['ICommandService']),q(0x4,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x342)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0xb7227a(0x2c7)]{constructor(_0x2b8975,_0x4c7003){const _0x35d66c=_0xb7227a;super(_0x2b8975,_0x4c7003),_(this,_0x35d66c(0x18b)),_(this,_0x35d66c(0x396),!0x1),_(this,_0x35d66c(0x30b)),_(this,_0x35d66c(0x2ef),''),_(this,_0x35d66c(0x36a),_0x35d66c(0x2ad)),_(this,'_backgroundColor'),(_0x4c7003&&this[_0x35d66c(0x359)](_0x4c7003),this[_0x35d66c(0x24d)][_0x35d66c(0x21b)](()=>this[_0x35d66c(0x359)]({'hovered':!0x0})),this[_0x35d66c(0x1e0)]['subscribeEvent'](()=>this[_0x35d66c(0x359)]({'hovered':!0x1})));}[_0xb7227a(0x359)](_0x8d7eb2){const _0x2455ac=_0xb7227a;var _0xd1ccf1,_0x5df47d,_0x10ed7d,_0x19d215,_0x34dc9e,_0x2900ff;this[_0x2455ac(0x18b)]=(_0xd1ccf1=_0x8d7eb2[_0x2455ac(0x20d)])!=null?_0xd1ccf1:this[_0x2455ac(0x18b)],this[_0x2455ac(0x396)]=(_0x5df47d=_0x8d7eb2[_0x2455ac(0x395)])!=null?_0x5df47d:this[_0x2455ac(0x396)],this[_0x2455ac(0x30b)]=(_0x10ed7d=_0x8d7eb2[_0x2455ac(0x25a)])!=null?_0x10ed7d:this[_0x2455ac(0x30b)],this[_0x2455ac(0x2ef)]=(_0x19d215=_0x8d7eb2[_0x2455ac(0x2cd)])!=null?_0x19d215:this[_0x2455ac(0x2ef)],this[_0x2455ac(0x36a)]=(_0x34dc9e=_0x8d7eb2[_0x2455ac(0x271)])!=null?_0x34dc9e:this[_0x2455ac(0x36a)],this[_0x2455ac(0x2ae)]=(_0x2900ff=_0x8d7eb2[_0x2455ac(0x27f)])!=null?_0x2900ff:this[_0x2455ac(0x2ae)],this[_0x2455ac(0x254)]({'width':_0x8d7eb2['width'],'height':_0x8d7eb2[_0x2455ac(0x196)]});}['onMouseMove'](_0xc0b2d4){const _0x2bf47f=_0xb7227a,{row:_0x2077ad,column:_0x4a9d30}=_0xc0b2d4;if(_0x2077ad>=this[_0x2bf47f(0x30b)][_0x2bf47f(0x245)]&&_0x2077ad<=this[_0x2bf47f(0x30b)][_0x2bf47f(0x441)]&&_0x4a9d30>=this['_range'][_0x2bf47f(0x25b)]&&_0x4a9d30<=this[_0x2bf47f(0x30b)][_0x2bf47f(0x374)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2bf47f(0x359)]({'hovered':!0x1});}[_0xb7227a(0x24a)](_0x1f70d4){return!0x1;}['_draw'](_0x4b5e51){const _0x9e68d8=_0xb7227a;C['Rect'][_0x9e68d8(0x2d2)](_0x4b5e51,{'width':this[_0x9e68d8(0x27d)],'height':this[_0x9e68d8(0x196)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x9e68d8(0x2ae)]}),this[_0x9e68d8(0x396)]&&(_0x4b5e51[_0x9e68d8(0x382)](),_0x4b5e51[_0x9e68d8(0x33c)](0x1,0x0,0x0,0x1,this[_0x9e68d8(0x27d)],this['_labelPosition']===_0x9e68d8(0x39c)?0x0:-X),re[_0x9e68d8(0x2d2)](_0x4b5e51,{'text':this[_0x9e68d8(0x2ef)],'color':this[_0x9e68d8(0x18b)]}),_0x4b5e51['restore']());}}var wt=Object[_0xb7227a(0x1ca)],yt=(_0x2d7454,_0x213e1b,_0x4bf877,_0x330064)=>{const _0x569ba7=_0xb7227a;for(var _0x1fa222=_0x330064>0x1?void 0x0:_0x330064?wt(_0x213e1b,_0x4bf877):_0x213e1b,_0x1c9559=_0x2d7454[_0x569ba7(0x1fd)]-0x1,_0x4a5002;_0x1c9559>=0x0;_0x1c9559--)(_0x4a5002=_0x2d7454[_0x1c9559])&&(_0x1fa222=_0x4a5002(_0x1fa222)||_0x1fa222);return _0x1fa222;},ue=(_0x491076,_0x4a8a41)=>(_0x2f09e6,_0x447078)=>_0x4a8a41(_0x2f09e6,_0x447078,_0x491076);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x376b6c,_0x4a14d5,_0x4d1932,_0x3cff45){const _0x194200=_0xb7227a;super(),_(this,_0x194200(0x2e2),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x376b6c,this['_sheetSkeletonManagerService']=_0x4a14d5,this[_0x194200(0x3c8)]=_0x4d1932,this[_0x194200(0x39d)]=_0x3cff45,this[_0x194200(0x304)]());}[_0xb7227a(0x304)](){const _0x4b3aeb=_0xb7227a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4b3aeb(0x2e8)]($['takeUntil'](this[_0x4b3aeb(0x1db)]),$[_0x4b3aeb(0x38d)](_0x3beb39=>{const _0x58c6ff=_0x4b3aeb;if(_0x3beb39){const _0x4b0a76=_0x3beb39[_0x58c6ff(0x383)];return I[_0x58c6ff(0x1eb)](this[_0x58c6ff(0x3c8)][_0x58c6ff(0x1f3)](this[_0x58c6ff(0x173)]['unitId']),this[_0x58c6ff(0x39d)]['currentTheme$'])[_0x58c6ff(0x2e8)]($[_0x58c6ff(0x326)](([_0x1e66f5,_0x3d26cd])=>{const _0x5299ec=new Map();return _0x1e66f5['forEach']((_0x503aa9,_0x3436d3)=>{const _0x205365=_0x4227;if(_0x503aa9[_0x205365(0x236)]===_0x4b0a76){const _0x168c02={..._0x503aa9};_0x168c02[_0x205365(0x20d)]=this['_themeService']['getColorFromTheme'](_0x503aa9['color']),_0x5299ec[_0x205365(0x19f)](_0x3436d3,_0x168c02);}}),{'skeleton':_0x3beb39,'cursors':_0x5299ec};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x4b3aeb(0x42d)](({skeleton:_0x7361d,cursors:_0x2e3a9c})=>{const _0x4eff5b=_0x4b3aeb;this[_0x4eff5b(0x1d8)](),_0x7361d&&this[_0x4eff5b(0x24e)](_0x7361d,_0x2e3a9c);}),this['_sheetSkeletonManagerService'][_0x4b3aeb(0x1cf)][_0x4b3aeb(0x42d)](_0x580bb2=>{const _0x2fb2f9=_0x4b3aeb;if(_0x580bb2==null)return;const {skeleton:_0x1ac166}=_0x580bb2,{scene:_0x40175e}=this[_0x2fb2f9(0x173)];_0x40175e[_0x2fb2f9(0x1bd)][_0x2fb2f9(0x21b)](a['debounce'](_0x1ab3f8=>{const _0x546843=_0x2fb2f9;var _0x5ee91e,_0x364ea0;const {offsetX:_0x345d8a,offsetY:_0x58149f}=_0x1ab3f8,{x:_0x59f101,y:_0x583cb7}=_0x40175e['getRelativeToViewportCoord'](C[_0x546843(0x2de)]['FromArray']([_0x345d8a,_0x58149f])),{scaleX:_0x13d613,scaleY:_0x2bef2d}=_0x40175e[_0x546843(0x41c)](),_0xf80f48=_0x40175e[_0x546843(0x2d0)](C['SHEET_VIEWPORT_KEY'][_0x546843(0x2f6)]),_0x16314c=_0x40175e[_0x546843(0x283)](C['Vector2'][_0x546843(0x369)]([_0x59f101,_0x583cb7]),_0xf80f48),_0x43e21e=_0x1ac166['getCellPositionByOffset'](_0x345d8a,_0x58149f,_0x13d613,_0x2bef2d,_0x16314c);((_0x5ee91e=this[_0x546843(0x2ec)])==null?void 0x0:_0x5ee91e[_0x546843(0x3ef)])===_0x43e21e['column']&&((_0x364ea0=this[_0x546843(0x2ec)])==null?void 0x0:_0x364ea0[_0x546843(0x406)])===_0x43e21e[_0x546843(0x406)]||this[_0x546843(0x2e2)][_0x546843(0x339)](_0x456cec=>{const _0x2ce08a=_0x546843;_0x456cec[_0x2ce08a(0x43d)](_0x43e21e);});},0x64));});}[_0xb7227a(0x24e)](_0x56b088,_0x33c87a){const _0x28b8d0=_0xb7227a;var _0x30fd0;const _0x3976da=(_0x30fd0=this[_0x28b8d0(0x3fd)][_0x28b8d0(0x296)]())==null?void 0x0:_0x30fd0['skeleton'];if(!_0x3976da)return;const _0x46026b=this['_getSheetObject']();if(!_0x46026b)return;this[_0x28b8d0(0x2e2)][_0x28b8d0(0x339)](_0x351405=>{const _0x5e601b=_0x28b8d0;_0x351405[_0x5e601b(0x2f7)]();});const {scene:_0x591ff4}=_0x46026b,_0x488753=xt(Array['from'](_0x33c87a['values']()))[_0x28b8d0(0x326)](_0x4067d3=>{const _0x435717=_0x28b8d0,{color:_0x3cc446,range:_0x437c0a,name:_0x325220,selection:_0x2c2fcd,sheetID:_0x69512a}=_0x4067d3,{startColumn:_0x3f4080,startRow:_0x5e0f6f,endColumn:_0x41b260,endRow:_0x1cc2ce}=_0x437c0a,_0x37214c=J['getCoordByCell'](_0x5e0f6f,_0x3f4080,_0x591ff4,_0x3976da),_0x5bce6e=J[_0x435717(0x33a)](_0x1cc2ce,_0x41b260,_0x591ff4,_0x3976da),{columnHeaderHeightAndMarginTop:_0xc33ea0}=_0x3976da,{startX:_0x481c87,startY:_0x4e0f7c}=_0x37214c,{endX:_0x480e42,endY:_0xe1ec99}=_0x5bce6e,_0xde37c5=_0x480e42-_0x481c87,_0x211869=_0xe1ec99-_0x4e0f7c,_0x5a0cc8={'labelPosition':_0x4e0f7c-_0xc33ea0>=X?_0x435717(0x2ad):'bottom','sheetID':_0x69512a,'range':_0x437c0a,'color':_0x3cc446,'name':_0x325220,'selection':_0x2c2fcd,'left':_0x481c87,'top':_0x4e0f7c,'width':_0xde37c5,'height':_0x211869,'evented':!0x1,'zIndex':$t};return new je(_0x325220,_0x5a0cc8);});_0x591ff4[_0x28b8d0(0x43f)](_0x488753,At),this[_0x28b8d0(0x2e2)]=new Set(_0x488753);}[_0xb7227a(0x1d8)](){const _0x19e7c5=_0xb7227a;var _0x417c33;(_0x417c33=this[_0x19e7c5(0x2e2)])==null||_0x417c33['forEach'](_0x23047a=>_0x23047a['dispose']());}['_getSheetObject'](){const _0x52e864=_0xb7227a;return J[_0x52e864(0x3aa)](this[_0x52e864(0x173)][_0x52e864(0x3cf)],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J[_0xb7227a(0x2e4)])),ue(0x2,a[_0xb7227a(0x2f4)](F)),ue(0x3,a[_0xb7227a(0x2f4)](a['ThemeService']))],Ce);function xt(_0x2ba637){const _0x2e5838=_0xb7227a,_0x465d1b=new Map();return _0x2ba637['forEach'](_0x27005a=>{const _0x563ecb=_0x4227;if(_0x465d1b[_0x563ecb(0x15d)](_0x27005a[_0x563ecb(0x159)])){const _0x2c6089=_0x465d1b[_0x563ecb(0x279)](_0x27005a[_0x563ecb(0x159)]);_0x2c6089[_0x563ecb(0x2cd)]+=',\x20'+_0x27005a['name'];}else _0x465d1b[_0x563ecb(0x19f)](_0x27005a[_0x563ecb(0x159)],_0x27005a);}),Array[_0x2e5838(0x32a)](_0x465d1b[_0x2e5838(0x231)]());}var Bt=Object[_0xb7227a(0x1ca)],Ft=(_0x55aec9,_0x263a99,_0x3c515d,_0x36a6fa)=>{const _0x29ba96=_0xb7227a;for(var _0x24a49c=_0x36a6fa>0x1?void 0x0:_0x36a6fa?Bt(_0x263a99,_0x3c515d):_0x263a99,_0x3af3b9=_0x55aec9[_0x29ba96(0x1fd)]-0x1,_0x25c934;_0x3af3b9>=0x0;_0x3af3b9--)(_0x25c934=_0x55aec9[_0x3af3b9])&&(_0x24a49c=_0x25c934(_0x24a49c)||_0x24a49c);return _0x24a49c;},y=(_0xe7c3bb,_0x5a2132)=>(_0x1abf27,_0x4c523d)=>_0x5a2132(_0x1abf27,_0x4c523d,_0xe7c3bb);let Z=class extends a[_0xb7227a(0x3d3)]{constructor(_0xdcef93,_0x5bff83,_0x847486,_0x5206ec,_0x45b755,_0x5cf27a){const _0x571837=_0xb7227a;super(),this[_0x571837(0x34b)]=_0xdcef93,this['_localCacheService']=_0x5bff83,this[_0x571837(0x356)]=_0x847486,this[_0x571837(0x3c9)]=_0x5206ec,this['_notificationService']=_0x45b755,this[_0x571837(0x3be)]=_0x5cf27a,this[_0x571837(0x182)](),this[_0x571837(0x1c2)]();}['_setupBeforeClosingHandler'](){const _0x386163=_0xb7227a;this[_0x386163(0x3c6)](this[_0x386163(0x34b)][_0x386163(0x320)](()=>{const _0x28fd98=_0x386163;if(this[_0x28fd98(0x26d)][_0x28fd98(0x172)][_0x28fd98(0x3e7)])return this[_0x28fd98(0x3be)]['t'](_0x28fd98(0x311));}));}[_0xb7227a(0x1c2)](){const _0xd0c495=_0xb7227a;this[_0xd0c495(0x3c6)](this[_0xd0c495(0x356)][_0xd0c495(0x3f4)][_0xd0c495(0x42d)](_0x1b6447=>{const _0x3780c6=_0xd0c495;_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x249)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)][_0x3780c6(0x2fc)],'content':this['_localeService']['t'](_0x3780c6(0x321))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x3fc)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)][_0x3780c6(0x2fc)],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x2db))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x185)]&&this['_notificationService']['show']({'title':this['_localeService']['t'](_0x3780c6(0x39e)),'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x3af)),'type':'error','duration':0x0}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x3ce)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)]['Error'],'content':this[_0x3780c6(0x3be)]['t']('collaboration.closeRoom')+'('+_0x1b6447['data']+')'}),_0x1b6447['id']===u['CollaborationUIEventId'][_0x3780c6(0x3d9)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p['MessageType']['Warning'],'content':this[_0x3780c6(0x3be)]['t'](_0x1b6447[_0x3780c6(0x43a)]||'')}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x188)]&&this['_messageService'][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)][_0x3780c6(0x2fc)],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x1dd))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x352)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)]['Error'],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x1b8))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x18e)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p['MessageType'][_0x3780c6(0x1d9)],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x318))});}));}};Z=Ft([y(0x0,O[_0xb7227a(0x3ac)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0xb7227a(0x26e)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0xb7227a(0x1dc)]))],Z);var jt=Object[_0xb7227a(0x1ca)],kt=(_0x39ef09,_0x5e2679,_0x5ab973,_0x44ef43)=>{const _0x511591=_0xb7227a;for(var _0x3c1bc8=_0x44ef43>0x1?void 0x0:_0x44ef43?jt(_0x5e2679,_0x5ab973):_0x5e2679,_0x152353=_0x39ef09[_0x511591(0x1fd)]-0x1,_0x1f8580;_0x152353>=0x0;_0x152353--)(_0x1f8580=_0x39ef09[_0x152353])&&(_0x3c1bc8=_0x1f8580(_0x3c1bc8)||_0x3c1bc8);return _0x3c1bc8;},z=(_0x1d67c2,_0x5f0054)=>(_0x4fbb3b,_0x3da917)=>_0x5f0054(_0x4fbb3b,_0x3da917,_0x1d67c2);let Q=class extends a['Disposable']{constructor(_0x3bbfc8,_0x3824a9,_0x379886,_0x18fccb){const _0x9f3bf5=_0xb7227a;super(),_(this,'_memberID'),(this['_injector']=_0x3bbfc8,this['_httpService']=_0x3824a9,this[_0x9f3bf5(0x41d)]=_0x379886,this['_collaborationSessionService']=_0x18fccb,this[_0x9f3bf5(0x304)]());}[_0xb7227a(0x304)](){const _0x469ec3=_0xb7227a;this[_0x469ec3(0x17e)](),this[_0x469ec3(0x1a6)](),this[_0x469ec3(0x232)](),this['_initUserListener']();}[_0xb7227a(0x294)](){const _0x30a53d=_0xb7227a;this[_0x30a53d(0x3c6)](this[_0x30a53d(0x230)][_0x30a53d(0x2be)][_0x30a53d(0x42d)](_0x7ba0ad=>{const _0x8343c4=_0x30a53d;this[_0x8343c4(0x2d8)]=_0x7ba0ad==null?void 0x0:_0x7ba0ad['memberID'];}));}[_0xb7227a(0x17e)](){const _0x4454c6=_0xb7227a,_0x4123e9=_0x4453b7=>{const _0xd443f=_0x4227;var _0x5d80b8;this['_uploadLog'](_0xd443f(0x277),'[Window\x20Error]:\x20'+_0x4453b7[_0xd443f(0x1fa)]+_0xd443f(0x323)+_0x4453b7['filename']+':'+_0x4453b7[_0xd443f(0x330)]+':'+_0x4453b7[_0xd443f(0x375)]+'\x0a'+(((_0x5d80b8=_0x4453b7[_0xd443f(0x277)])==null?void 0x0:_0x5d80b8[_0xd443f(0x286)])||''));};window[_0x4454c6(0x20f)](_0x4454c6(0x277),_0x4123e9),this[_0x4454c6(0x3c6)](()=>{const _0x5a545f=_0x4454c6;window['removeEventListener'](_0x5a545f(0x277),_0x4123e9);});}['_initUnhandledRejectionListener'](){const _0x222f8b=_0xb7227a,_0x53d0a5=_0x3a4332=>{const _0x49a328=_0x4227;this['_uploadLog'](_0x49a328(0x277),_0x49a328(0x221)+_0x3a4332[_0x49a328(0x28e)]);};window['addEventListener']('unhandledrejection',_0x53d0a5),this[_0x222f8b(0x3c6)](()=>{const _0x342079=_0x222f8b;window[_0x342079(0x30c)](_0x342079(0x335),_0x53d0a5);});}[_0xb7227a(0x232)](){const _0x57d380=_0xb7227a,_0x9b9704=this['_logService'][_0x57d380(0x277)]['bind'](this['_logService']);this[_0x57d380(0x41d)][_0x57d380(0x277)]=(..._0x276920)=>{const _0xbd4542=_0x57d380,_0x58b872=_0x276920[_0xbd4542(0x326)](_0x1a8564=>_0x1a8564 instanceof Error?_0x1a8564[_0xbd4542(0x1fa)]+'\x0a'+_0x1a8564[_0xbd4542(0x286)]:String(_0x1a8564))['join']('\x20');this['_uploadLog'](_0xbd4542(0x277),_0xbd4542(0x3e0)+_0x58b872),_0x9b9704(..._0x276920);},this[_0x57d380(0x3c6)](()=>{const _0x1b86c9=_0x57d380;this[_0x1b86c9(0x41d)][_0x1b86c9(0x277)]=_0x9b9704;});}[_0xb7227a(0x200)](_0x354527,_0x318988){const _0x5ca504=_0xb7227a;try{const _0x1dd2ef={'userId':this[_0x5ca504(0x2d8)],'logLabel':_0x354527,'content':_0x318988};this[_0x5ca504(0x280)]['post'](_0x5ca504(0x176),{'body':_0x1dd2ef})[_0x5ca504(0x338)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0xb7227a(0x2f4)](a['Injector'])),z(0x1,a[_0xb7227a(0x2f4)](x['HTTPService'])),z(0x2,a[_0xb7227a(0x3c0)]),z(0x3,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x376)]))],Q);const Yt=_0xb7227a(0x266),Me={};var Ht=Object[_0xb7227a(0x1ca)],Wt=(_0x47ba0,_0x13ce57,_0x42536b,_0x47feb8)=>{for(var _0x3a85cd=_0x47feb8>0x1?void 0x0:_0x47feb8?Ht(_0x13ce57,_0x42536b):_0x13ce57,_0x4a77c3=_0x47ba0['length']-0x1,_0x5d3273;_0x4a77c3>=0x0;_0x4a77c3--)(_0x5d3273=_0x47ba0[_0x4a77c3])&&(_0x3a85cd=_0x5d3273(_0x3a85cd)||_0x3a85cd);return _0x3a85cd;},Ae=(_0x228f2b,_0x15ffbc)=>(_0x11d2a1,_0x512afa)=>_0x15ffbc(_0x11d2a1,_0x512afa,_0x228f2b);let ee=class{constructor(_0x38e214,_0x31f906){const _0x2aa266=_0xb7227a;this[_0x2aa266(0x26b)]=_0x38e214,this[_0x2aa266(0x380)]=_0x31f906;}['transformIMECache'](_0x11cc73){const _0xf6d508=_0xb7227a;this[_0xf6d508(0x16f)](_0x11cc73),this[_0xf6d508(0x1a8)](_0x11cc73);}['transformRemoteChangeset'](_0x3b85dc){const _0x4d1054=_0xb7227a,{unitID:_0x55fd8a}=_0x3b85dc,_0x59941c=this[_0x4d1054(0x380)][_0x4d1054(0x25f)](_0x55fd8a)[_0x4d1054(0x3f0)](T[_0x4d1054(0x3e2)]),{redoCache:_0x3a2e4a}=_0x59941c[_0x4d1054(0x166)]();if(_0x3a2e4a[_0x4d1054(0x1fd)]===0x0)return _0x3b85dc;let _0x1c0cab=a['Tools'][_0x4d1054(0x377)](_0x3b85dc[_0x4d1054(0x170)][0x0]);for(let _0x5e2840=0x0;_0x5e2840<_0x3a2e4a[_0x4d1054(0x1fd)];_0x5e2840++){const _0x7a08b1={'id':_0x4d1054(0x1fe),'params':{..._0x3a2e4a[_0x5e2840]}},_0x3f00cb=this[_0x4d1054(0x26b)][_0x4d1054(0x3d2)](_0x1c0cab,_0x7a08b1,!0x1);if(g['isTransformMutationFailure'](_0x3f00cb))throw _0x3f00cb[_0x4d1054(0x277)];_0x1c0cab=_0x3f00cb[_0x4d1054(0x2a5)];}return{...a[_0x4d1054(0x3bc)]['deepClone'](_0x3b85dc),'mutations':[_0x1c0cab]};}[_0xb7227a(0x16f)](_0x26d5c8){const _0x15737b=_0xb7227a,{unitID:_0x2c11b4}=_0x26d5c8,_0x5c7b88=this['_renderManagerService']['getRenderById'](_0x2c11b4)[_0x15737b(0x3f0)](T['DocIMEInputManagerService']),{undoCache:_0x2e919e,redoCache:_0x4009b0}=_0x5c7b88[_0x15737b(0x166)]();if(_0x2e919e[_0x15737b(0x1fd)]===0x0||_0x4009b0[_0x15737b(0x1fd)]===0x0)return;const _0x5f1628=[],_0x5d8278=[];let _0x2b409f=a[_0x15737b(0x3bc)]['deepClone'](_0x26d5c8[_0x15737b(0x170)][0x0]),_0x5809c1=a[_0x15737b(0x3bc)][_0x15737b(0x377)](_0x26d5c8[_0x15737b(0x170)][0x0]);for(let _0x3ad687=_0x2e919e[_0x15737b(0x1fd)]-0x1;_0x3ad687>=0x0;_0x3ad687--){const _0x43a0f0={'id':_0x15737b(0x1fe),'params':{..._0x2e919e[_0x3ad687]}},_0x54c397={'id':_0x15737b(0x1fe),'params':{..._0x4009b0[_0x3ad687]}},_0x2633e1=this[_0x15737b(0x26b)]['transformMutation'](_0x2b409f,_0x43a0f0,!0x1),_0xc3bfe=this[_0x15737b(0x26b)][_0x15737b(0x3d2)](_0x5809c1,_0x54c397,!0x1);if(g[_0x15737b(0x1f8)](_0x2633e1))throw _0x2633e1[_0x15737b(0x277)];if(g[_0x15737b(0x1f8)](_0xc3bfe))throw _0xc3bfe['error'];_0x5f1628[_0x15737b(0x2ab)](_0x2633e1['m2Prime'][_0x15737b(0x315)]),_0x5d8278[_0x15737b(0x2ab)](_0xc3bfe[_0x15737b(0x2e5)][_0x15737b(0x315)]),_0x2b409f=_0x2633e1[_0x15737b(0x2a5)],_0x5809c1=_0xc3bfe[_0x15737b(0x2a5)];}_0x5c7b88['setUndoRedoMutationParamsCache']({'undoCache':_0x5f1628,'redoCache':_0x5d8278});}[_0xb7227a(0x1a8)](_0x51ec9d){const _0x78103b=_0xb7227a,{unitID:_0x3ed113}=_0x51ec9d,_0x4b232c=this[_0x78103b(0x380)][_0x78103b(0x25f)](_0x3ed113)['with'](T[_0x78103b(0x3e2)]),_0x1d8111=_0x4b232c['getActiveRange']();if(_0x1d8111==null)return;const _0x13b0f1=[{'id':_0x78103b(0x1fe),'params':{'unitId':_0x51ec9d[_0x78103b(0x1b5)],'actions':null,'textRanges':[_0x1d8111]}}],_0xd5cc=this[_0x78103b(0x26b)]['transformMutationsWithChangeset'](_0x51ec9d,_0x13b0f1);if(!g[_0x78103b(0x1b0)](_0xd5cc))throw _0xd5cc[_0x78103b(0x277)];const _0x26d17b=_0xd5cc[_0x78103b(0x2e5)][0x0][_0x78103b(0x315)][_0x78103b(0x3f2)];Array[_0x78103b(0x241)](_0x26d17b)&&_0x26d17b[_0x78103b(0x1fd)]&&_0x4b232c[_0x78103b(0x1aa)](_0x26d17b[0x0]);}};ee=Wt([Ae(0x0,g[_0xb7227a(0x423)]),Ae(0x1,C[_0xb7227a(0x226)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x825e31,_0x4a1d83,_0x901a7a,_0x3c39a3)=>{const _0x46be85=_0xb7227a;for(var _0x1cac64=_0x3c39a3>0x1?void 0x0:_0x3c39a3?Vt(_0x4a1d83,_0x901a7a):_0x4a1d83,_0x5af771=_0x825e31[_0x46be85(0x1fd)]-0x1,_0x170143;_0x5af771>=0x0;_0x5af771--)(_0x170143=_0x825e31[_0x5af771])&&(_0x1cac64=_0x170143(_0x1cac64)||_0x1cac64);return _0x1cac64;},Ie=(_0x22577d,_0x472eb0)=>(_0x396371,_0xf0bbc7)=>_0x472eb0(_0x396371,_0xf0bbc7,_0x22577d);let te=class{constructor(_0x286eca,_0x1bfc0d,_0x15b752){const _0x2f5dc1=_0xb7227a;this[_0x2f5dc1(0x35e)]=_0x286eca,this[_0x2f5dc1(0x26b)]=_0x1bfc0d,this[_0x2f5dc1(0x3bb)]=_0x15b752;}['transformStateCache'](_0x2e437f){const _0x1799a5=_0xb7227a;this[_0x1799a5(0x353)](_0x2e437f);}['transformRemoteChangeset'](_0x22f90a){const _0x47f848=_0xb7227a,{unitID:_0x4a2223}=_0x22f90a,{collaboration:_0x96766a}=this[_0x47f848(0x3bb)][_0x47f848(0x3ee)](_0x4a2223);if(_0x96766a[_0x47f848(0x1fd)]===0x0)return _0x22f90a;let _0x5905bc=a[_0x47f848(0x3bc)][_0x47f848(0x377)](_0x22f90a['mutations'][0x0]);for(let _0x39a7b9=0x0;_0x39a7b9<_0x96766a[_0x47f848(0x1fd)];_0x39a7b9++){const _0x478dbc={'id':_0x47f848(0x1fe),'params':{'unitId':_0x96766a[_0x39a7b9][_0x47f848(0x3a7)],..._0x96766a[_0x39a7b9][_0x47f848(0x37f)]}},_0x133ff1=this[_0x47f848(0x26b)][_0x47f848(0x3d2)](_0x5905bc,_0x478dbc,!0x1);if(g['isTransformMutationFailure'](_0x133ff1))throw _0x133ff1[_0x47f848(0x277)];_0x5905bc=_0x133ff1['m1Prime'];}return{...a[_0x47f848(0x3bc)][_0x47f848(0x377)](_0x22f90a),'mutations':[_0x5905bc]};}[_0xb7227a(0x353)](_0xfd326){const _0x2ce99f=_0xb7227a,{unitID:_0x14bed0}=_0xfd326,{history:_0x6c27cf,collaboration:_0x51fd4f}=this['_docStateChangeManagerService']['getStateCache'](_0x14bed0);if(_0x6c27cf[_0x2ce99f(0x1fd)]===0x0&&_0x51fd4f[_0x2ce99f(0x1fd)]===0x0)return;const _0x1f4f47=[],_0x163dbd=[];let _0x3d4279=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326['mutations'][0x0]),_0x181e6b=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326[_0x2ce99f(0x170)][0x0]);for(let _0x2c168a=_0x6c27cf['length']-0x1;_0x2c168a>=0x0;_0x2c168a--){const _0x137f8a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x6c27cf[_0x2c168a][_0x2ce99f(0x3a7)],..._0x6c27cf[_0x2c168a][_0x2ce99f(0x35c)]}},_0x790515={'id':_0x2ce99f(0x1fe),'params':{'unitId':_0x6c27cf[_0x2c168a][_0x2ce99f(0x3a7)],..._0x6c27cf[_0x2c168a][_0x2ce99f(0x37f)]}},_0x5b6428=this[_0x2ce99f(0x26b)][_0x2ce99f(0x3d2)](_0x3d4279,_0x137f8a,!0x1),_0xaacc92=this[_0x2ce99f(0x26b)][_0x2ce99f(0x3d2)](_0x181e6b,_0x790515,!0x1);if(g['isTransformMutationFailure'](_0x5b6428))throw _0x5b6428['error'];if(g['isTransformMutationFailure'](_0xaacc92))throw _0xaacc92[_0x2ce99f(0x277)];_0x1f4f47[_0x2ce99f(0x2ab)]({..._0x6c27cf[_0x2c168a],'undoState':_0x5b6428[_0x2ce99f(0x2e5)]['params'],'redoState':_0xaacc92[_0x2ce99f(0x2e5)][_0x2ce99f(0x315)]}),_0x3d4279=_0x5b6428[_0x2ce99f(0x2a5)],_0x181e6b=_0xaacc92[_0x2ce99f(0x2a5)];}_0x3d4279=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326[_0x2ce99f(0x170)][0x0]),_0x181e6b=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326[_0x2ce99f(0x170)][0x0]);for(let _0x3af403=_0x51fd4f[_0x2ce99f(0x1fd)]-0x1;_0x3af403>=0x0;_0x3af403--){const _0xab7b88={'id':_0x2ce99f(0x1fe),'params':{'unitId':_0x51fd4f[_0x3af403][_0x2ce99f(0x3a7)],..._0x51fd4f[_0x3af403][_0x2ce99f(0x35c)]}},_0x3e77ae={'id':_0x2ce99f(0x1fe),'params':{'unitId':_0x51fd4f[_0x3af403][_0x2ce99f(0x3a7)],..._0x51fd4f[_0x3af403][_0x2ce99f(0x37f)]}},_0x42d225=this['_transformService']['transformMutation'](_0x3d4279,_0xab7b88,!0x1),_0x1071f4=this['_transformService'][_0x2ce99f(0x3d2)](_0x181e6b,_0x3e77ae,!0x1);if(g[_0x2ce99f(0x1f8)](_0x42d225))throw _0x42d225[_0x2ce99f(0x277)];if(g[_0x2ce99f(0x1f8)](_0x1071f4))throw _0x1071f4['error'];_0x163dbd[_0x2ce99f(0x2ab)]({..._0x51fd4f[_0x3af403],'undoState':_0x42d225[_0x2ce99f(0x2e5)]['params'],'redoState':_0x1071f4[_0x2ce99f(0x2e5)][_0x2ce99f(0x315)]}),_0x3d4279=_0x42d225['m1Prime'],_0x181e6b=_0x1071f4['m1Prime'];}this['_docStateChangeManagerService'][_0x2ce99f(0x227)](_0x14bed0,{'history':_0x1f4f47,'collaboration':_0x163dbd});}};te=Gt([Ie(0x0,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),Ie(0x1,g[_0xb7227a(0x423)]),Ie(0x2,a[_0xb7227a(0x2f4)](T[_0xb7227a(0x242)]))],te);var Xt=Object[_0xb7227a(0x1ca)],Kt=(_0xfc82d,_0x1e9c74,_0x494d2a,_0xa59a4c)=>{const _0x9fe973=_0xb7227a;for(var _0x4339d2=_0xa59a4c>0x1?void 0x0:_0xa59a4c?Xt(_0x1e9c74,_0x494d2a):_0x1e9c74,_0x3d1b71=_0xfc82d[_0x9fe973(0x1fd)]-0x1,_0x4ff3de;_0x3d1b71>=0x0;_0x3d1b71--)(_0x4ff3de=_0xfc82d[_0x3d1b71])&&(_0x4339d2=_0x4ff3de(_0x4339d2)||_0x4339d2);return _0x4339d2;},Pe=(_0x1ffa5b,_0x2c5fa9)=>(_0x149eb2,_0x2d2fe5)=>_0x2c5fa9(_0x149eb2,_0x2d2fe5,_0x1ffa5b);let se=class{constructor(_0x49d602,_0x20715e){this['_injector']=_0x49d602,this['_transformService']=_0x20715e;}['transformSelections'](_0x3cf0ba){const _0x482953=_0xb7227a;var _0x1bdbbd;const _0x5059d9=this[_0x482953(0x35e)][_0x482953(0x279)](V['DocSelectionManagerService']),_0x446615=(_0x1bdbbd=_0x5059d9[_0x482953(0x2fb)]())!=null?_0x1bdbbd:[];if(_0x446615['length']===0x0)return;const _0x24be17=_0x3cf0ba[_0x482953(0x1b5)],_0x269675=[{'id':_0x482953(0x1fe),'params':{'unitId':_0x24be17,'actions':null,'textRanges':_0x446615}}],_0x642c2c=this[_0x482953(0x26b)]['transformMutationsWithChangeset'](_0x3cf0ba,_0x269675);if(!g[_0x482953(0x1b0)](_0x642c2c))throw _0x642c2c[_0x482953(0x277)];const _0x2f1521=_0x642c2c['m2Prime'][0x0]['params'][_0x482953(0x3f2)];Array[_0x482953(0x241)](_0x2f1521)&&_0x2f1521['length']&&_0x5059d9[_0x482953(0x212)](_0x2f1521,{'unitId':_0x24be17,'subUnitId':_0x24be17},!0x1);}};se=Kt([Pe(0x0,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),Pe(0x1,g[_0xb7227a(0x423)])],se);var qt=Object[_0xb7227a(0x1ca)],zt=(_0x547747,_0x1a8945,_0x22c4a1,_0x3fd546)=>{const _0x44d176=_0xb7227a;for(var _0x4543e2=_0x3fd546>0x1?void 0x0:_0x3fd546?qt(_0x1a8945,_0x22c4a1):_0x1a8945,_0x278fac=_0x547747[_0x44d176(0x1fd)]-0x1,_0x1f7f81;_0x278fac>=0x0;_0x278fac--)(_0x1f7f81=_0x547747[_0x278fac])&&(_0x4543e2=_0x1f7f81(_0x4543e2)||_0x4543e2);return _0x4543e2;},N=(_0x2e2381,_0x1b1467)=>(_0x798074,_0x2fcd10)=>_0x1b1467(_0x798074,_0x2fcd10,_0x2e2381);function _0x3e8b(){const _0x86202d=['SheetSkeletonManagerService','m2Prime','getUniverSheetInstance','INTERNAL_ERROR','pipe','fromEventSubject','_drawTextRange','entries','_lastPointer','USERS_LEAVE','APPLY_REVISION_CONFILICT','_name','newValue','InsertRangeMoveRightCommandId','toRgbString','313525fzWyRv','Inject','max','VIEW_MAIN','makeDirty','merge','NO_OTHER_CLIENTS_EDITING','_maxFormulaLimit','getDocRanges','Warning','_saveCache','getConfig','ranges','_handleEvent','closePath','collab-rect-range-','pluginName','_init','FormulaExecutedStateType','all','_initCommandExecutedListener','dispose','IImageIoService','UniverCollaborationClientPlugin','_range','removeEventListener','getColorFromTheme','Module','TOO_MANY_REQUESTS','wsSessionTicketUrl','collaboration.offline-data-not-saved','_id','_toggleOnline','isFormulaString','params','Tooltip','_selfUnitIDs','session.collaboration-timeout','_pollingInterval','BehaviorSubject','substring','WebSocketService','_registerRenderDependencies','createIdentifier','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','registerBeforeClose','collaboration.single-unit.warning','getFocusedUnit','\x20at\x20','toDisposable','REDEMPTION_CODE_INACTIVE','map','xlink:href','ENTITLE_INSUFFICIENT_QUOTA','transformSelections','from','handleInsertRangeMoveDown','CURRENT_STATUS_CANNOT_OPERATE','MemberService','startFormulaLimitUrl','CONNECTOR_DATA_TOO_LARGE','lineno','toString','black','isEditing','asObservable','unhandledrejection','SetFormulaCalculationStartMutation','imageSourceType','catch','forEach','getCoordByCell','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','transform','runId','pushState','green.600','COMPLETION_FINISHED','CHANGESET_REVISION_CONFILICT','ThemeService','connectInjector','stage','setAlpha','exhaustSavingTask','APPLY_PERMISSION_DENIED','_taskIds','DesktopCollaborationStatusDisplayController','_toggleOffline','_beforeCloseService','useDependency','setInterval','init','_colorIndex','AUTHORIZE_CODE_ILLEGAL','_startSheetCollabCursor','SOCKET_FAILED','_transformHistoryAndStateStack','_collaborationController','collab-text-anchor-','_collaborationUIEventService','getTypeOfUnitDisposed$','handleInsertRangeMoveRight','setShapeProps','string','getMergeData','undoState','751689zhHlwa','_injector','stageInfo','executeCommand','OffLineIcon','requireSession','entityInit$','idSuffix','UNRECOGNIZED','PY_RUNTIME_SCRIPT_ERROR','Success','on-line-icon','FromArray','_labelPosition','setParam','_imageIoService','editingUnit','Injector','post','UNIVER_DOC','shift','createElement','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','endColumn','colno','CollaborationSessionService','deepClone','show','saveOfflineData','_scheduleHeartbeat','/universer-api/license/formula/limit/status','YUUMI_AI_RUN_FAILED','_uiPartsService','SNAPSHOT_HAS_BEEN_REMOVED','redoState','_renderManagerService','_setupSubUnitSync','save','sheetId','_scene','collabStatus.syncing','startsWith','application/json','result','_entityInit$','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo','NOT_FOUND','switchMap','arc','IConfigService','SetWorksheetActivateCommand','LOGIN_TOKEN_PROCESSING_FAILED','WebURLService','CollaborationEvent','defs','hovered','_hovered','451449vcZuBx','USER_NOT_INVITED_CODE','_updateSubUnitFromURLParams','override','Rect','bottom','_themeService','permission.title','docStateChange$','maxFormulaLimit','findNodePositionByCharIndex','collabStatus.conflict','_cachedData','currentTheme$','enableLocalCache','_handleHeartbeatEvent','unitId','trim','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getSheetObject','defineProperty','IBeforeCloseService','lineTo','selections','permission.content','getMember','78958RDbcPH','moveTo','popstate','_getAnchorBounding','YUUMI_UNABLE_LOAD_URL','getLocalCacheKey','RxDisposable','registerRenderModule','ILocalStorageService','mask','_docStateChangeManagerService','Tools','evenodd','_localeService','getUnit','ILogService','SUCCESS','univer-flex\x20univer-items-center','enableFrontendLog','_docSkeletonManagerService','DataLoaderService','disposeWithMe','distinctUntilChanged','_collabCursorController','_messageService','_handleJoinEvent','ENTITLE_USE_COUPON_NOT_1ST_TRADE','InsertRowCommandId','LICENSE_DISTRO_REJECTED','CONFLICT','unit','getSheetId','jiqing.500','transformMutation','Disposable','code','CollaborationController','Unknown\x20user','complete','_initCommandInterceptor','JOIN_ROOM_FAILED','OnLineIcon','memberID','_initStatusComponent','fromEvent','LICENSE_IMPORT_SIZE_EXCEEDED','USER_IS_ANONYMOUS','[LogService\x20Error]:\x20','_anchorDot','DocIMEInputManagerService','INVALID_ARGUMENT','_configService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_roomMembers$','size','REDEMPTION_CODE_NOT_STARTED','currentColor','useObservable','_initResize','_createSocketURL','IRemoteInstanceService','getStateCache','column','with','getTypeOfUnitAdded$','textRanges','?taskId=','event$','[CollaborationDataLoaderController]','_cursor','handleIRemoveRow','_drawRectRange','getParam','_commandService','path','CLOSE_ROOM','_sheetSkeletonManagerService','clearInterval','APPLY_DUPLICATED','RemoveRowCommandId','createSocket','UPDATE_CURSOR','_memberService','BuiltInUIPart','currentUsage','row','_checkCalculationAvailable','338pBagmr','fillStyle','INVITE_CODE_ALREADY_BOUND','fillRule','getCellMatrix','_revisionService','RegularPolygon','current','_shapes','_render','stringify','takeUntil','ENTITLE_INVALID_COUPON_CODE','UNAUTHENTICATED','INVITE_CODE_HAS_BEEN_UES','_hideTimer','replaceState','collab-client.tooltip.reconnect','_disabled','REDEMPTION_CODE_FULLY_REDEEMED','getAncestorScale','_logService','_online','getUnitStatus$','CommandType','addObject','DATA_SOURCE_TOO_LARGE','ITransformService','SNAPSHOT_INVALID_SNAPSHOT','dirtyRanges','SheetCollabCursorShape','history','colorChannel1','35OpXNOG','getValue','CollaborationSocketService','EffectRefRangId','subscribe','UNIVER_SHEET','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_docSyncEditingCollabCursorService','_onRefRangeChange','white','svg','flatMap','MOBILE_VERIFY_CODE_MISMATCH','OFFLINE','Subject','NodePositionConvertToRectRange','whenReady','data','REDEMPTION_USER_REDEEM_TIMES_EXCEED','purple.300','onMouseMove','_handleHover','addObjects','univer-mr-2\x20univer-flex\x20univer-text-xl','endRow','releaseFormulaLimitUrl','_startCalculationLimit','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ColorKit','selection','disposeUnit','1497408UKySKO','CollaborationUIEventId','has','_getMergeRange','onTransformChange$','MUTATION','91NIMYxc','DeleteRangeMoveLeftCommandId','functionsExecutedState','_initEntityListener','ERROR_AGAIN','getUndoRedoMutationParamsCache','executionId','setTimeout','push','_assignedColors','DisposableCollection','children','getActiveSheet','next','_transformUndoRedoStack','mutations','SetSelectionsOperation','saveTaskMap','_context','ISocketService','univerjs-icon\x20univerjs-icon-','/universer-api/frontend/logs','href','roomMembers','source','resize','PENDING','EMAIL_HAS_BEEN_BOUND','jsx','_initWindowErrorListener','MessageType','FETCH_MISS','http://www.w3.org/2000/svg','_setupBeforeClosingHandler','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','WebBrowserSingleActiveUnitService','PERMISSION_DENIED','_unitOnClients','IUniverInstanceService','SOCKET_FAILED_RETRY','defIds','filter','_color','COLORS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','SUBMIT_CHANGESET_TIMEOUT','some','_send','_setFormulaLimitStatus','LICENSE_EXPORT_SIZE_EXCEEDED','min','getCollabEntity$','isActive','height','1em','/universer-api/license/formula/limit/start','collab-text-range-','_heartbeatTimer','CollaborationDataLoaderController','touchDependencies','beforeCommandExecuted','_refRangeService','set','_eventUnsubscribe','ticket','eventID','_updateLocalCursor','getSkeleton','_localStorageService','_initUnhandledRejectionListener','engine','_transformPreviousActiveRange','1210xlWcyg','setActiveRange','isFormulaId','DocCollaborationEntity','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','108orqxyp','YUUMI_ALL_TABLES_IS_INVALID','isTransformMutationsWithChangesetSuccess','_registerDependencies','runOnServer','parse','CollaborationStatus','unitID','handleDeleteRangeMoveLeft','off-line-icon','session.connection-failed','getMemberID','add','EMAIL_VERIFY_CODE_MISMATCH','getItem','onPointerMove$','getColor','_applyCommand','saveImage','_docTransformIMECacheService','_initEvent','...','red.300','_document','HEADER_MENU','unsubscribe','focused$','fillText','getOwnPropertyDescriptor','syncEditingCollabCursor','_instanceService','_syncEditingCollabCursorService','getUnitId','currentSkeleton$','replace','jsxs','clearTimeout','registerRefRange','_ensureSubject','debug','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collabStatus.notCollab','_removeCollabCursors','Error','APPLY_NON_SEQUENTIAL_REVISION','dispose$','LocaleService','session.will-retry','getCurrentUnitForType','url(#$1','onPointerLeave$','ENTITLE_NEED_BILLING_ADDRESS','assign','delete','SetFormulaCalculationNotificationMutation','collabCursorState$','_hover','_doCreateSocket','includes','shareReplay','_initDependencies','combineLatest','_checkAndWaitForCalculationPermission','uni.network.url-service','[RemoteUniscriptService]:\x20no\x20focused\x20unit','totalFormulasToCalculate','_getFormulaLimitStatus','INVALID_INVITE_CODE','ENTITLE_CHAT_LIMIT_EXCEED','getCollabCursors$','getRangePointData','TEXT','UniverInstanceType','_saveTaskMap','isTransformMutationFailure','off-line-icon_clip0_910_343','message','_onCursorDelete','MOBILE_HAS_BEEN_BOUND','length','doc.mutation.rich-text-editing','_cursorInfo$','_uploadLog','IMessageService','toStringTag','transformIMECache','DependentOn','reconnect','_scheduleClearOtherTimer','5066472bDFUaX','setConfig','debounceTime','HTTPService','REDEMPTION_USER_NOT_ELIGIBLE','debounce','color','OTHER_CLIENTS_EDITING','addEventListener','loadOfflineData','_cursorShapes','replaceDocRanges','invokeId','onCommandExecuted','now','_urlService','ILocalCacheService','TEXT_RANGE_LAYER_INDEX','PAYMENT_CHANNEL_NOT_SUPPORT','UNDEFINED','subscribeEvent','status$','_refreshCollabCursors','DeleteRangeMoveUpCommandId','ENTITLE_DUP_SUBSCRIPTION','ISnapshotServerService','[Unhandled\x20Rejection]:\x20','registerComponent','ALREADY_EXISTS','YUUMI_CONNECTOR_URL_NOT_FOUND','actions','IRenderManagerService','setStateCache','_status$','SetDocZoomRatioOperation','280LCietl','_updateURLWithCurrentState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','symbol','throttleTime','_currentUsage','_collaborationSessionService','values','_monkeyPatchLogService','RemoveColCommandId','_univerInstanceService','transformRemoteChangeset','sheetID','RemoteUniscriptService','0\x200\x2017\x2016','clipPath','use','ACTIVE_UNIT_EVENT_CHANNEL','_collabSessionService','ENTITLE_REPORT_LIMIT_EXCEED','sessionTicket','url(#on-line-icon_clip0_910_349)','deserializeRangeWithSheet','isArray','DocStateChangeManagerService','tag','handleInsertCol','startRow','round','LOGIN_FAILED','DOC_RANGE_TYPE','OTHER_CLIENT_EDITING','triggerDblclick','ENSURE_SNAPSHOT_EXECUTION','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onPointerEnter$','_updateCollabCursors','_lastResponseTimestamp','UniverCollaborationClientUIPlugin','_dataLoaderService','getCurrentSelections','forwardRef','transformByState','APPLY_REJECT','_clearOtherTimers','_showGuardMessage','mapTo','sessionStatus$','range','startColumn','_session','getCurrentRevOfUnit','YUUMI_NO_CUBOID_FOR_QUESTION','getRenderById','DocSelectionManagerService','FormulaExecuteStageType','Plugin','_textBubble','ICommandService','DocSkeletonManagerService','collaboration-client-ui.config','find','generateRandomId','subunit','_getScale','_transformService','then','_localCacheService','CollaborationUIEventService','M0\x200H16V16H0z','send','labelPosition','none','YUUMI_ASYNCIO_CANCELLED','body','on-line-icon_clip0_910_349','cursorInfo$','error','formula.calculation.started','get','RichTextEditingMutation','IURLService','_getSaveTimeout','width','displayName','backgroundColor','_httpService','#FFF','transformStateCache','getVpScrollXYInfoByPosToVp','UniverIcon','_drawAnchor','stack','USER_NOT_FOUND','origin','type','/run/','searchParams','handleDeleteRangeMoveUp','runRefRangeMutations','reason','Optional','_startDocCollabCursor','SheetsSelectionsService','createInstance','_docClipboardService','_initUserListener','setItem','getCurrent','_unitStatus','useRef','NodePositionConvertToCursor','_docTransformStateCacheService','restore','_initStatusListener','NOT_COLLAB','TRANSFORM_CHANGE_OBSERVABLE_TYPE','0\x200\x2016\x2016','SYNCED','_colorAssignService','INVITE_CODE_REQUIRED','SetTextSelectionsOperation','assignAColorForMemberID','m1Prime','parseInt','InsertRangeMoveDownCommandId','SessionStatus','Rectangle','disableLocalCache','unshift','text','top','_backgroundColor','urlChange$','RECT','YUUMI_URL_COL_OUT_OF_RANGE','ONLINE','AWAITING_WITH_PENDING','_anchor','_onCursorUpdate','_releaseCalculationLimit','REDEMPTION_INVALID_CODE','_hasFormulaInDirtyRanges','attrs','RevisionService','_entities','_removeClearOtherTimer','search','socket$','BrowserCollaborationSocketService','addClipboardHook','LOCAL_CACHE_INTERVAL','formula.calculation.waiting','roomMembers$','_clearPolling','hide','split','Shape','ENTITLE_COUPON_EXPIRED','mergeOverrideWithDependencies','onLocalMutation','_collabCursorState$','UnitStatus','name','_docSkeleton','div','getViewport','unload','drawWith','_draw','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','YUUMI_RATE_OVER_LIMIT','_config','font','_memberID','_docTransformSelectionsService','27906xIhsxI','collaboration.closeRoom','blue.400','location','Vector2','ENTITLE_COUPON_USED_UP','WECHAT_HAS_BEEN_BOUND','getSheetBySheetId','_cursors','fill'];_0x3e8b=function(){return _0x86202d;};return _0x3e8b();}let ie=class extends a[_0xb7227a(0x3d3)]{constructor(_0x58294d,_0x4c3e08,_0x12ef60,_0xe70298,_0x23d656,_0x52b959,_0x37581e,_0x3ee011){const _0x2467e0=_0xb7227a;super(),_(this,_0x2467e0(0x228),new I[(_0x2467e0(0x31a))](u['CollaborationStatus'][_0x2467e0(0x29d)])),(this['_docStateChangeManagerService']=_0x58294d,this['_collaborationController']=_0x4c3e08,this[_0x2467e0(0x1c1)]=_0x12ef60,this[_0x2467e0(0x29a)]=_0xe70298,this[_0x2467e0(0x2d9)]=_0x23d656,this['_docSyncEditingCollabCursorService']=_0x52b959,this['_messageService']=_0x37581e,this[_0x2467e0(0x3be)]=_0x3ee011,this[_0x2467e0(0x164)]());}[_0xb7227a(0x164)](){const _0x24e424=_0xb7227a;this[_0x24e424(0x3c6)](this[_0x24e424(0x354)][_0x24e424(0x363)][_0x24e424(0x42d)](_0x5b1da2=>{const _0x1743a7=_0x24e424,_0x4e597e=this['_docStateChangeManagerService'][_0x1743a7(0x39f)][_0x1743a7(0x42d)](_0x4ec63a=>{const _0x43743b=_0x1743a7;if(_0x4ec63a==null)return;const {unitId:_0x3ab4c7,redoState:_0xae8797,commandId:_0x100f55}=_0x4ec63a;if(_0x3ab4c7!==_0x5b1da2[_0x43743b(0x1b5)])return;const _0x49f592={'id':_0x100f55,'type':a[_0x43743b(0x420)][_0x43743b(0x160)],'params':{'unitId':_0x3ab4c7,'actions':_0xae8797[_0x43743b(0x225)],'textRanges':null}};_0x5b1da2[_0x43743b(0x2ca)](_0x49f592);});if(_0x5b1da2[_0x1743a7(0x3c6)](_0x4e597e),_0x5b1da2 instanceof u[_0x1743a7(0x1ac)]){const _0xfb0cf4={'onTransformIME':_0xe66fda=>this[_0x1743a7(0x1c1)][_0x1743a7(0x203)](_0xe66fda),'onTransformState':_0x32f5ec=>this['_docTransformStateCacheService'][_0x1743a7(0x282)](_0x32f5ec),'onTransformSelections':_0x12c830=>this[_0x1743a7(0x2d9)][_0x1743a7(0x329)](_0x12c830),'onSyncEditingCollabCursor':_0x33e915=>this[_0x1743a7(0x430)]['syncEditingCollabCursor'](_0x33e915),'onTransformRemoteChangesetByIMECache':_0x1579ef=>this['_docTransformIMECacheService'][_0x1743a7(0x235)](_0x1579ef),'onTransformRemoteChangesetByStateCache':_0x46e2c0=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x46e2c0)};_0x5b1da2['addHandlerCallback'](_0xfb0cf4);}}));}};ie=zt([N(0x0,a['Inject'](T['DocStateChangeManagerService'])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0xb7227a(0x2f4)](ee)),N(0x3,a[_0xb7227a(0x2f4)](te)),N(0x4,a[_0xb7227a(0x2f4)](se)),N(0x5,a[_0xb7227a(0x2f4)](be)),N(0x6,O[_0xb7227a(0x201)]),N(0x7,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x1dc)]))],ie);var G=(_0x479207=>(_0x479207[_0x479207['UNDEFINED']=0x0]=_0xb7227a(0x21a),_0x479207[_0x479207['OK']=0x1]='OK',_0x479207[_0x479207[_0xb7227a(0x2e7)]=0x2]='INTERNAL_ERROR',_0x479207[_0x479207[_0xb7227a(0x185)]=0x3]=_0xb7227a(0x185),_0x479207[_0x479207[_0xb7227a(0x38c)]=0x4]=_0xb7227a(0x38c),_0x479207[_0x479207[_0xb7227a(0x415)]=0x5]=_0xb7227a(0x415),_0x479207[_0x479207[_0xb7227a(0x223)]=0x6]=_0xb7227a(0x223),_0x479207[_0x479207[_0xb7227a(0x3e3)]=0x7]=_0xb7227a(0x3e3),_0x479207[_0x479207[_0xb7227a(0x30f)]=0x8]='TOO_MANY_REQUESTS',_0x479207[_0x479207[_0xb7227a(0x340)]=0x9]=_0xb7227a(0x340),_0x479207[_0x479207[_0xb7227a(0x247)]=0xa]=_0xb7227a(0x247),_0x479207[_0x479207[_0xb7227a(0x435)]=0xb]=_0xb7227a(0x435),_0x479207[_0x479207[_0xb7227a(0x1ad)]=0xc]=_0xb7227a(0x1ad),_0x479207[_0x479207[_0xb7227a(0x1bb)]=0xd]=_0xb7227a(0x1bb),_0x479207[_0x479207[_0xb7227a(0x22c)]=0xe]=_0xb7227a(0x22c),_0x479207[_0x479207[_0xb7227a(0x350)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x479207[_0x479207[_0xb7227a(0x391)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x479207[_0x479207['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0xb7227a(0x32c),_0x479207[_0x479207['ERROR_AGAIN']=0x65]=_0xb7227a(0x165),_0x479207[_0x479207['USER_NOT_FOUND']=0xc9]=_0xb7227a(0x287),_0x479207[_0x479207[_0xb7227a(0x3df)]=0xca]=_0xb7227a(0x3df),_0x479207[_0x479207[_0xb7227a(0x341)]=0x1389]=_0xb7227a(0x341),_0x479207[_0x479207[_0xb7227a(0x424)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x479207[_0x479207['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xb7227a(0x37e),_0x479207[_0x479207[_0xb7227a(0x24b)]=0x1773]=_0xb7227a(0x24b),_0x479207[_0x479207[_0xb7227a(0x255)]=0x1b59]=_0xb7227a(0x255),_0x479207[_0x479207['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0xb7227a(0x1da),_0x479207[_0x479207[_0xb7227a(0x2ee)]=0x1b5b]=_0xb7227a(0x2ee),_0x479207[_0x479207[_0xb7227a(0x347)]=0x1b5c]=_0xb7227a(0x347),_0x479207[_0x479207[_0xb7227a(0x3ff)]=0x1b5d]='APPLY_DUPLICATED',_0x479207[_0x479207[_0xb7227a(0x32f)]=0x1f41]=_0xb7227a(0x32f),_0x479207[_0x479207['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0xb7227a(0x38a),_0x479207[_0x479207[_0xb7227a(0x24c)]=0x232a]=_0xb7227a(0x24c),_0x479207[_0x479207['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xb7227a(0x3de),_0x479207[_0x479207[_0xb7227a(0x192)]=0x232c]=_0xb7227a(0x192),_0x479207[_0x479207['LICENSE_DISTRO_REJECTED']=0x232d]=_0xb7227a(0x3cd),_0x479207[_0x479207[_0xb7227a(0x3b5)]=0x2711]=_0xb7227a(0x3b5),_0x479207[_0x479207[_0xb7227a(0x2b1)]=0x2712]=_0xb7227a(0x2b1),_0x479207[_0x479207[_0xb7227a(0x2d5)]=0x2713]=_0xb7227a(0x2d5),_0x479207[_0x479207['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x479207[_0x479207[_0xb7227a(0x25e)]=0x271a]=_0xb7227a(0x25e),_0x479207[_0x479207[_0xb7227a(0x273)]=0x271b]=_0xb7227a(0x273),_0x479207[_0x479207[_0xb7227a(0x1d6)]=0x271c]=_0xb7227a(0x1d6),_0x479207[_0x479207[_0xb7227a(0x1af)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x479207[_0x479207[_0xb7227a(0x31f)]=0x271e]=_0xb7227a(0x31f),_0x479207[_0x479207[_0xb7227a(0x37c)]=0x271f]=_0xb7227a(0x37c),_0x479207[_0x479207[_0xb7227a(0x224)]=0x2720]=_0xb7227a(0x224),_0x479207[_0x479207[_0xb7227a(0x366)]=0x2af9]=_0xb7227a(0x366),_0x479207[_0x479207[_0xb7227a(0x416)]=0x2ee1]=_0xb7227a(0x416),_0x479207[_0x479207[_0xb7227a(0x1f1)]=0x2ee2]=_0xb7227a(0x1f1),_0x479207[_0x479207[_0xb7227a(0x2a2)]=0x2ee3]=_0xb7227a(0x2a2),_0x479207[_0x479207[_0xb7227a(0x398)]=0x2ee4]=_0xb7227a(0x398),_0x479207[_0x479207[_0xb7227a(0x40a)]=0x2ee5]=_0xb7227a(0x40a),_0x479207[_0x479207[_0xb7227a(0x2e0)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x479207[_0x479207[_0xb7227a(0x1fc)]=0x32ca]=_0xb7227a(0x1fc),_0x479207[_0x479207[_0xb7227a(0x17c)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x479207[_0x479207[_0xb7227a(0x157)]=0x36b1]=_0xb7227a(0x157),_0x479207[_0x479207[_0xb7227a(0x3e5)]=0x36b2]=_0xb7227a(0x3e5),_0x479207[_0x479207[_0xb7227a(0x21f)]=0x36b3]=_0xb7227a(0x21f),_0x479207[_0x479207[_0xb7227a(0x219)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x479207[_0x479207[_0xb7227a(0x414)]=0x36b5]=_0xb7227a(0x414),_0x479207[_0x479207[_0xb7227a(0x2c8)]=0x36b6]=_0xb7227a(0x2c8),_0x479207[_0x479207[_0xb7227a(0x2df)]=0x36b7]=_0xb7227a(0x2df),_0x479207[_0x479207[_0xb7227a(0x3cb)]=0x36b8]=_0xb7227a(0x3cb),_0x479207[_0x479207[_0xb7227a(0x1f2)]=0x3715]=_0xb7227a(0x1f2),_0x479207[_0x479207[_0xb7227a(0x23d)]=0x3716]=_0xb7227a(0x23d),_0x479207[_0x479207[_0xb7227a(0x328)]=0x3717]=_0xb7227a(0x328),_0x479207[_0x479207[_0xb7227a(0x1e1)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x479207[_0x479207[_0xb7227a(0x2b7)]=0x3a99]=_0xb7227a(0x2b7),_0x479207[_0x479207[_0xb7227a(0x325)]=0x3a9a]=_0xb7227a(0x325),_0x479207[_0x479207[_0xb7227a(0x41b)]=0x3a9b]=_0xb7227a(0x41b),_0x479207[_0x479207['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0xb7227a(0x3e8),_0x479207[_0x479207[_0xb7227a(0x20b)]=0x3a9d]=_0xb7227a(0x20b),_0x479207[_0x479207[_0xb7227a(0x43b)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x479207[_0x479207['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x479207[_0x479207[_0xb7227a(0x422)]=0x3e81]=_0xb7227a(0x422),_0x479207[_0x479207[_0xb7227a(0x365)]=-0x1]=_0xb7227a(0x365),_0x479207))(G||{});function Jt(_0x400aaa){const _0x510225=_0xb7227a;var _0x2ae372,_0x2a3a46;const _0xd954bf=(_0x2ae372=_0x400aaa[_0x510225(0x35f)])==null?void 0x0:_0x2ae372[_0x510225(0x344)],_0x47f2d2=((_0x2a3a46=_0x400aaa[_0x510225(0x35f)])==null?void 0x0:_0x2a3a46[_0x510225(0x1ef)])||0x0;return _0xd954bf===B[_0x510225(0x261)]['START_CALCULATION']&&_0x47f2d2>0x0;}function Zt(_0x3ca68d){const _0x1fc691=_0xb7227a;return _0x3ca68d[_0x1fc691(0x163)]===B[_0x1fc691(0x305)][_0x1fc691(0x3c1)];}var Qt=Object[_0xb7227a(0x1ca)],es=(_0x52c317,_0x58986e,_0x4c27fe,_0x2d17b5)=>{const _0x18aeb7=_0xb7227a;for(var _0x4593f7=_0x2d17b5>0x1?void 0x0:_0x2d17b5?Qt(_0x58986e,_0x4c27fe):_0x58986e,_0xab29ab=_0x52c317[_0x18aeb7(0x1fd)]-0x1,_0x2d3c90;_0xab29ab>=0x0;_0xab29ab--)(_0x2d3c90=_0x52c317[_0xab29ab])&&(_0x4593f7=_0x2d3c90(_0x4593f7)||_0x4593f7);return _0x4593f7;},L=(_0x5f40ae,_0x1a8726)=>(_0x352ca0,_0x15d621)=>_0x1a8726(_0x352ca0,_0x15d621,_0x5f40ae);const ts=_0xb7227a(0x37b),ss=_0xb7227a(0x198),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0xb7227a(0x3d3)]{constructor(_0x50cf5d,_0x3c9dd0,_0x55ec66,_0x2b8684,_0x417ffb,_0x369f67,_0x6b958){const _0x63b129=_0xb7227a;super(),_(this,'_pollingInterval',null),_(this,_0x63b129(0x2fa),0x0),_(this,'_currentUsage',0x0),_(this,_0x63b129(0x348),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x63b129(0x3c9)]=_0x50cf5d,this['_commandService']=_0x3c9dd0,this[_0x63b129(0x3e4)]=_0x55ec66,this['_httpService']=_0x2b8684,this[_0x63b129(0x234)]=_0x417ffb,this[_0x63b129(0x41d)]=_0x369f67,this[_0x63b129(0x3be)]=_0x6b958,this[_0x63b129(0x3d8)]());}[_0xb7227a(0x3d8)](){const _0x14c25d=_0xb7227a;this[_0x14c25d(0x3c6)](this[_0x14c25d(0x3fa)][_0x14c25d(0x19d)]((_0x64e16f,_0x124b0c)=>{const _0x20172b=_0x14c25d;var _0x37c978;if(_0x64e16f['id']!==B[_0x20172b(0x336)]['id'])return;const _0x27d58e=_0x64e16f['params'];if(!this[_0x20172b(0x2b8)]((_0x37c978=_0x27d58e[_0x20172b(0x425)])!=null?_0x37c978:[]))return;if(!this[_0x20172b(0x407)]())throw this[_0x20172b(0x1ec)](_0x64e16f,_0x124b0c),this[_0x20172b(0x257)](),new a['CanceledError']();})),this[_0x14c25d(0x3c6)](this[_0x14c25d(0x3fa)][_0x14c25d(0x214)]((_0x4b9568,_0x5661d6)=>{const _0x3c25d6=_0x14c25d;if(_0x4b9568['id']!==B[_0x3c25d6(0x1e4)]['id'])return;const _0x468169=_0x4b9568[_0x3c25d6(0x315)];if(Jt(_0x468169)){const _0x3fe72d=a[_0x3c25d6(0x268)]();this['_taskIds'][_0x3c25d6(0x169)](_0x3fe72d),this[_0x3c25d6(0x156)](_0x3fe72d);}else{if(Zt(_0x468169)&&this['_taskIds']['length']>0x0){const _0x5eca22=this['_taskIds'][_0x3c25d6(0x371)]();this[_0x3c25d6(0x2b6)](_0x5eca22);}}}));}[_0xb7227a(0x308)](){const _0x68fbb9=_0xb7227a;super[_0x68fbb9(0x308)](),this[_0x68fbb9(0x2c4)](),this[_0x68fbb9(0x348)]=[],this[_0x68fbb9(0x22f)]=0x0,this[_0x68fbb9(0x2fa)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xb7227a(0x1ec)](_0x4e8f7d,_0x4f829e){const _0x54bb7f=_0xb7227a;for(let _0x331417=0x0;_0x331417<0x1e;_0x331417++)try{if(await this[_0x54bb7f(0x1f0)](),this['_checkCalculationAvailable']()){this[_0x54bb7f(0x1bf)](_0x4e8f7d,_0x4f829e),this[_0x54bb7f(0x3c9)][_0x54bb7f(0x378)]({'content':this[_0x54bb7f(0x3be)]['t'](_0x54bb7f(0x278)),'type':p['MessageType'][_0x54bb7f(0x367)]});return;}await new Promise(_0x1c7770=>{const _0x3a231c=_0x54bb7f;this[_0x3a231c(0x319)]=window['setTimeout'](_0x1c7770,0x3e8);});}catch(_0x5821aa){this[_0x54bb7f(0x41d)]['error'](_0x5821aa);}this['_messageService'][_0x54bb7f(0x378)]({'content':this[_0x54bb7f(0x3be)]['t']('formula.calculation.unable'),'type':p[_0x54bb7f(0x17f)][_0x54bb7f(0x1d9)]});}['_applyCommand'](_0x1fd502,_0x18df33){const _0x38be81=_0xb7227a;try{this['_commandService'][_0x38be81(0x360)](_0x1fd502['id'],_0x1fd502[_0x38be81(0x315)],_0x18df33);}catch(_0x67f4b2){this[_0x38be81(0x41d)]['error'](_0x67f4b2);}}[_0xb7227a(0x191)](_0x4f33c2,_0x5f4ab9){const _0x4d9225=_0xb7227a;_0x5f4ab9<this[_0x4d9225(0x24f)]||(this[_0x4d9225(0x24f)]=_0x5f4ab9,this[_0x4d9225(0x2fa)]=Number[_0x4d9225(0x2a6)](_0x4f33c2[_0x4d9225(0x3a0)]),this[_0x4d9225(0x22f)]=Number[_0x4d9225(0x2a6)](_0x4f33c2[_0x4d9225(0x405)]));}async[_0xb7227a(0x156)](_0x287402){const _0x254a31=_0xb7227a;var _0x34e0f7,_0x2ece4d;const _0x476c36=Date[_0x254a31(0x215)]();try{const _0x5120d9=((_0x34e0f7=this['_configService'][_0x254a31(0x2fe)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x34e0f7[_0x254a31(0x32e)])||ss,_0x525239=(await this['_httpService'][_0x254a31(0x36f)](_0x5120d9,{'body':JSON[_0x254a31(0x412)]({'taskId':_0x287402})}))['body'];if(((_0x2ece4d=_0x525239[_0x254a31(0x277)])==null?void 0x0:_0x2ece4d[_0x254a31(0x3d4)])!==G['OK'])return;this[_0x254a31(0x191)](_0x525239['limitInfo'],_0x476c36);}catch(_0x20f38c){this[_0x254a31(0x41d)][_0x254a31(0x277)](_0x20f38c);}}async[_0xb7227a(0x1f0)](_0x4357b7){const _0x598d39=_0xb7227a;var _0x2416c6,_0x4c71cc;const _0x517a62=Date['now']();try{const _0x5270aa=((_0x2416c6=this[_0x598d39(0x3e4)][_0x598d39(0x2fe)](u[_0x598d39(0x2d4)]))==null?void 0x0:_0x2416c6['getFormulaLimitStatusUrl'])||ts,_0x41d5a3=_0x4357b7?_0x5270aa+_0x598d39(0x3f3)+encodeURIComponent(_0x4357b7):_0x5270aa,_0x53a39d=(await this[_0x598d39(0x280)][_0x598d39(0x279)](_0x41d5a3))[_0x598d39(0x274)];if(((_0x4c71cc=_0x53a39d[_0x598d39(0x277)])==null?void 0x0:_0x4c71cc[_0x598d39(0x3d4)])!==G['OK'])return;this[_0x598d39(0x191)](_0x53a39d['limitInfo'],_0x517a62);}catch(_0x37eee1){this[_0x598d39(0x41d)]['error'](_0x37eee1);}}async[_0xb7227a(0x2b6)](_0x8a3e51){const _0x2f8e9e=_0xb7227a;var _0x1a7f3b,_0xfc3db7;const _0x4d94e5=Date['now']();try{const _0x37200f=((_0x1a7f3b=this['_configService'][_0x2f8e9e(0x2fe)](u[_0x2f8e9e(0x2d4)]))==null?void 0x0:_0x1a7f3b[_0x2f8e9e(0x442)])||is,_0x117fa8=(await this[_0x2f8e9e(0x280)][_0x2f8e9e(0x36f)](_0x37200f,{'body':JSON[_0x2f8e9e(0x412)]({'taskId':_0x8a3e51})}))[_0x2f8e9e(0x274)];if(((_0xfc3db7=_0x117fa8[_0x2f8e9e(0x277)])==null?void 0x0:_0xfc3db7[_0x2f8e9e(0x3d4)])!==G['OK'])return;this[_0x2f8e9e(0x191)](_0x117fa8['limitInfo'],_0x4d94e5);}catch(_0x11c90f){this[_0x2f8e9e(0x41d)]['error'](_0x11c90f);}}[_0xb7227a(0x407)](){const _0x330115=_0xb7227a;return this[_0x330115(0x2fa)]===0x0?!0x0:this[_0x330115(0x2fa)]-this[_0x330115(0x22f)]>0x0;}[_0xb7227a(0x2c4)](){const _0x25bb6f=_0xb7227a;this[_0x25bb6f(0x319)]&&(clearTimeout(this[_0x25bb6f(0x319)]),this[_0x25bb6f(0x319)]=null);}[_0xb7227a(0x257)](){const _0x2932c1=_0xb7227a;this[_0x2932c1(0x3c9)][_0x2932c1(0x378)]({'content':this[_0x2932c1(0x3be)]['t'](_0x2932c1(0x2c2)),'type':p[_0x2932c1(0x17f)]['Loading']});}['_hasFormulaInDirtyRanges'](_0xcbddc0){const _0x37de82=_0xb7227a;for(const _0x201e40 of _0xcbddc0){const {unitId:_0x4e9371,sheetId:_0x311a37,range:_0x4d747e}=_0x201e40,_0x42de29=this[_0x37de82(0x234)][_0x37de82(0x3bf)](_0x4e9371);if(!_0x42de29)continue;const _0x18c8f6=_0x42de29[_0x37de82(0x2e1)](_0x311a37);if(!_0x18c8f6)continue;const _0x1f6ac0=_0x18c8f6[_0x37de82(0x40c)]();for(let _0x460133=_0x4d747e['startRow'];_0x460133<=_0x4d747e[_0x37de82(0x441)];_0x460133++)for(let _0x3012f1=_0x4d747e[_0x37de82(0x25b)];_0x3012f1<=_0x4d747e['endColumn'];_0x3012f1++){const _0x58e9df=_0x1f6ac0['getValue'](_0x460133,_0x3012f1);if(_0x58e9df&&(a[_0x37de82(0x314)](_0x58e9df['f'])||a[_0x37de82(0x1ab)](_0x58e9df['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0xb7227a(0x2f4)](O[_0xb7227a(0x201)])),L(0x1,a[_0xb7227a(0x264)]),L(0x2,a[_0xb7227a(0x38f)]),L(0x3,a[_0xb7227a(0x2f4)](x[_0xb7227a(0x20a)])),L(0x4,a[_0xb7227a(0x187)]),L(0x5,a[_0xb7227a(0x3c0)]),L(0x6,a[_0xb7227a(0x2f4)](a['LocaleService']))],ne);var ns=Object[_0xb7227a(0x1ca)],rs=(_0x790337,_0x5177b8,_0x4ab75b,_0x2e00ea)=>{const _0x5a1ea2=_0xb7227a;for(var _0x4bb0f3=_0x2e00ea>0x1?void 0x0:_0x2e00ea?ns(_0x5177b8,_0x4ab75b):_0x5177b8,_0x1f423b=_0x790337[_0x5a1ea2(0x1fd)]-0x1,_0x1659fe;_0x1f423b>=0x0;_0x1f423b--)(_0x1659fe=_0x790337[_0x1f423b])&&(_0x4bb0f3=_0x1659fe(_0x4bb0f3)||_0x4bb0f3);return _0x4bb0f3;},Se=(_0x2c266d,_0x1dd4bc)=>(_0x3be775,_0x3a8398)=>_0x1dd4bc(_0x3be775,_0x3a8398,_0x2c266d);let Te=class extends a[_0xb7227a(0x3d3)]{constructor(_0x319967,_0x54c51a,_0x33f5f1){const _0x157e68=_0xb7227a;super(),_(this,_0x157e68(0x3a3),new Map()),_(this,_0x157e68(0x1f7),new Map()),_(this,'_disabled',!0x1),(this[_0x157e68(0x3e4)]=_0x319967,this[_0x157e68(0x1a5)]=_0x54c51a,this[_0x157e68(0x40d)]=_0x33f5f1);}[_0xb7227a(0x2aa)](){const _0x1d157a=_0xb7227a;this[_0x1d157a(0x41a)]=!0x0;}[_0xb7227a(0x3a5)](){this['_disabled']=!0x1;}get[_0xb7227a(0x172)](){const _0xb248a5=_0xb7227a;return this[_0xb248a5(0x1f7)];}['dispose'](){const _0x513bbf=_0xb7227a;this[_0x513bbf(0x346)]()[_0x513bbf(0x26c)](()=>super[_0x513bbf(0x308)]());}async[_0xb7227a(0x210)](_0x6f7e70){const _0x59a20d=_0xb7227a;return this[_0x59a20d(0x41a)]?null:this[_0x59a20d(0x1a5)][_0x59a20d(0x1bc)](u['getLocalCacheKey'](_0x6f7e70));}async[_0xb7227a(0x379)](_0x57483f,_0x481cbc){const _0x54a721=_0xb7227a;return!!this['_localStorageService'][_0x54a721(0x295)](_0x57483f,_0x481cbc);}['updateOfflineData'](_0x407261,_0x46e60e,_0x1518da,_0x4bc784){const _0x38b0b3=_0xb7227a,_0xa9770f=this[_0x38b0b3(0x40d)][_0x38b0b3(0x25d)](_0x407261);this[_0x38b0b3(0x3a3)][_0x38b0b3(0x19f)](_0x407261,{'unitID':_0x407261,'type':_0x46e60e,'awaitingChangeset':_0x1518da,'mutations':_0x4bc784,'rev':_0xa9770f}),this[_0x38b0b3(0x1f7)][_0x38b0b3(0x15d)](_0x407261)||this['_scheduleSaving'](_0x407261);}['_scheduleSaving'](_0x2af6b8){const _0x11944a=_0xb7227a,_0xa21a06=this[_0x11944a(0x27c)]();_0xa21a06===0x0?this['_saveCache'](_0x2af6b8):this[_0x11944a(0x1f7)][_0x11944a(0x19f)](_0x2af6b8,setTimeout(()=>this[_0x11944a(0x2fd)](_0x2af6b8),_0xa21a06));}[_0xb7227a(0x27c)](){const _0x4d48b2=_0xb7227a;var _0x40415f;return(_0x40415f=this[_0x4d48b2(0x3e4)][_0x4d48b2(0x2fe)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x40415f:u[_0x4d48b2(0x2c1)];}[_0xb7227a(0x2fd)](_0x4bbde3){const _0x586450=_0xb7227a,_0x3011aa=this['_saveTaskMap'][_0x586450(0x279)](_0x4bbde3);return _0x3011aa!==void 0x0&&window['clearTimeout'](_0x3011aa),this[_0x586450(0x1a5)][_0x586450(0x295)](u[_0x586450(0x3b6)](_0x4bbde3),this[_0x586450(0x3a3)]['get'](_0x4bbde3))[_0x586450(0x26c)](()=>this['_saveTaskMap']['delete'](_0x4bbde3));}async[_0xb7227a(0x346)](){const _0x1780bf=_0xb7227a,_0x4da85e=[];this[_0x1780bf(0x1f7)]['forEach']((_0xd3c73d,_0x490647)=>{const _0x76d207=_0x1780bf;window[_0x76d207(0x1d2)](_0xd3c73d),_0x4da85e[_0x76d207(0x169)](this['_saveCache'](_0x490647)['then'](()=>{const _0x3f97fe=_0x76d207;this[_0x3f97fe(0x1f7)][_0x3f97fe(0x1e3)](_0x490647);}));}),await Promise[_0x1780bf(0x306)](_0x4da85e);}};Te=rs([Se(0x0,a[_0xb7227a(0x38f)]),Se(0x1,a[_0xb7227a(0x3b9)]),Se(0x2,a['Inject'](g[_0xb7227a(0x2ba)]))],Te);class ke extends a[_0xb7227a(0x3b7)]{constructor(){const _0x3349aa=_0xb7227a;super(),_(this,'urlChange$'),this[_0x3349aa(0x2af)]=I[_0x3349aa(0x3dd)](window,_0x3349aa(0x3b3))[_0x3349aa(0x2e8)](I['takeUntil'](this[_0x3349aa(0x1db)]),I[_0x3349aa(0x1e9)](0x1),I[_0x3349aa(0x258)](void 0x0));}[_0xb7227a(0x36b)](_0x9ab9ae,_0x2f983b,_0x4acbfe=!0x1){const _0x62d3d9=_0xb7227a,_0x5b9ff4=new URL(window[_0x62d3d9(0x2dd)][_0x62d3d9(0x177)]);_0x5b9ff4[_0x62d3d9(0x28b)][_0x62d3d9(0x19f)](_0x9ab9ae,_0x2f983b),_0x4acbfe?window['history']['replaceState']('','',_0x5b9ff4['toString']()):window[_0x62d3d9(0x427)][_0x62d3d9(0x33e)]('','',_0x5b9ff4[_0x62d3d9(0x331)]());}['removeParam'](_0x1fac1f,_0x163c99=!0x1){const _0x38863a=_0xb7227a,_0x552a59=new URL(window[_0x38863a(0x2dd)]['href']);_0x552a59[_0x38863a(0x28b)][_0x38863a(0x1e3)](_0x1fac1f),_0x163c99?window[_0x38863a(0x427)][_0x38863a(0x418)]('','',_0x552a59['toString']()):window[_0x38863a(0x427)][_0x38863a(0x33e)]('','',_0x552a59['toString']());}[_0xb7227a(0x3f9)](_0x30d4a7){const _0x543890=_0xb7227a;var _0x448626;return(_0x448626=new URL(window[_0x543890(0x2dd)][_0x543890(0x177)])['searchParams']['get'](_0x30d4a7))!=null?_0x448626:void 0x0;}}var os=Object[_0xb7227a(0x3ab)],as=Object['getOwnPropertyDescriptor'],cs=(_0x30505d,_0x1e3295,_0x16cc16)=>_0x1e3295 in _0x30505d?os(_0x30505d,_0x1e3295,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc16}):_0x30505d[_0x1e3295]=_0x16cc16,ls=(_0x1dbab1,_0x3bb949,_0xa10854,_0x42498f)=>{for(var _0x35a446=_0x42498f>0x1?void 0x0:_0x42498f?as(_0x3bb949,_0xa10854):_0x3bb949,_0x3b3691=_0x1dbab1['length']-0x1,_0x26a251;_0x3b3691>=0x0;_0x3b3691--)(_0x26a251=_0x1dbab1[_0x3b3691])&&(_0x35a446=_0x26a251(_0x35a446)||_0x35a446);return _0x35a446;},de=(_0x20c834,_0x4c3bd9)=>(_0x2e45e8,_0x442528)=>_0x4c3bd9(_0x2e45e8,_0x442528,_0x20c834),_s=(_0x41312e,_0x3ccfe7,_0x22731e)=>cs(_0x41312e,_0x3ccfe7+'',_0x22731e);const hs=_0xb7227a(0x3a9);exports[_0xb7227a(0x250)]=class extends a[_0xb7227a(0x262)]{constructor(_0x5e6040=Me,_0x43c2f3,_0x321506,_0x4bfac8){const _0x49fba6=_0xb7227a;super(),this['_config']=_0x5e6040,this['_renderManagerService']=_0x43c2f3,this[_0x49fba6(0x35e)]=_0x321506,this[_0x49fba6(0x3e4)]=_0x4bfac8;const {..._0x54d852}=a[_0x49fba6(0x2f8)]({},Me,this[_0x49fba6(0x2d6)]);this[_0x49fba6(0x3e4)][_0x49fba6(0x208)](Yt,_0x54d852);}['onStarting'](){const _0x5bdb5d=_0xb7227a;this[_0x5bdb5d(0x1b1)](),this[_0x5bdb5d(0x1ea)]();}['onRendered'](){const _0x78fbf4=_0xb7227a;this[_0x78fbf4(0x31d)]();}['_registerDependencies'](){const _0x2ddbd3=_0xb7227a;var _0x177c6d;const _0x3a28f6=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x2ddbd3(0x174)],{'useClass':x[_0x2ddbd3(0x31c)]}],[u[_0x2ddbd3(0x217)],{'useClass':Te}],[exports[_0x2ddbd3(0x349)]],[ie],[Z],[F],[me],[exports[_0x2ddbd3(0x19b)]]];this[_0x2ddbd3(0x2d6)][_0x2ddbd3(0x3c3)]&&_0x3a28f6[_0x2ddbd3(0x169)]([Q]),a['registerDependencies'](this[_0x2ddbd3(0x35e)],a[_0x2ddbd3(0x2c9)](_0x3a28f6,(_0x177c6d=this['_config'])==null?void 0x0:_0x177c6d[_0x2ddbd3(0x39a)]));}[_0xb7227a(0x31d)](){const _0x2a69d3=_0xb7227a;this[_0x2a69d3(0x3c6)](this[_0x2a69d3(0x380)][_0x2a69d3(0x3b8)](a[_0x2a69d3(0x1f6)][_0x2a69d3(0x370)],[Ee])),this[_0x2a69d3(0x3c6)](this['_renderManagerService']['registerRenderModule'](a[_0x2a69d3(0x1f6)][_0x2a69d3(0x42e)],[Ce]));}['_initDependencies'](){const _0x4fa54f=_0xb7227a;a[_0x4fa54f(0x19c)](this['_injector'],[[F],[exports[_0x4fa54f(0x349)]],[ie],[Z],[exports[_0x4fa54f(0x19b)]],[ne]]),this[_0x4fa54f(0x2d6)][_0x4fa54f(0x3c3)]&&a[_0x4fa54f(0x19c)](this[_0x4fa54f(0x35e)],[[Q]]);}},_s(exports[_0xb7227a(0x250)],_0xb7227a(0x303),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0xb7227a(0x204)](u[_0xb7227a(0x30a)]),de(0x1,C[_0xb7227a(0x226)]),de(0x2,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),de(0x3,a['IConfigService'])],exports[_0xb7227a(0x250)]);var us=Object[_0xb7227a(0x1ca)],Is=(_0x1aeee3,_0x3ef6eb,_0x2bc315,_0x5cf715)=>{const _0x2e5926=_0xb7227a;for(var _0x3c5029=_0x5cf715>0x1?void 0x0:_0x5cf715?us(_0x3ef6eb,_0x2bc315):_0x3ef6eb,_0x25359b=_0x1aeee3[_0x2e5926(0x1fd)]-0x1,_0x5c5d10;_0x25359b>=0x0;_0x25359b--)(_0x5c5d10=_0x1aeee3[_0x25359b])&&(_0x3c5029=_0x5c5d10(_0x3c5029)||_0x3c5029);return _0x3c5029;},W=(_0x5d1fa0,_0x4dc90a)=>(_0x5c9819,_0x51f305)=>_0x4dc90a(_0x5c9819,_0x51f305,_0x5d1fa0);exports[_0xb7227a(0x2bf)]=class extends u[_0xb7227a(0x42b)]{constructor(_0x5145fb,_0x5a9412,_0x256b14,_0x108b21,_0x2b26d1){super(_0x5145fb,_0x5a9412,_0x256b14,_0x108b21,_0x2b26d1);}async[_0xb7227a(0x401)](_0x239061){const _0x2e544b=_0xb7227a,_0x489bf3=await this['_getSessionTicket'](),_0x4a82ae=this['_createSocketURL'](_0x239061,_0x489bf3);return this[_0x2e544b(0x1e7)](_0x4a82ae);}[_0xb7227a(0x3ec)](_0xded5b,_0x4bb749){const _0x414c06=_0xb7227a,_0x100f70=typeof window>'u'?new URL(_0xded5b):new URL(_0xded5b,window[_0x414c06(0x2dd)][_0x414c06(0x288)]);_0x100f70[_0x414c06(0x28b)][_0x414c06(0x19f)](_0x414c06(0x23e),_0x4bb749);const _0x3c9475=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x414c06(0x2bd)]);return _0x3c9475[_0x414c06(0x279)](_0x414c06(0x33d))&&_0x100f70['searchParams'][_0x414c06(0x19f)]('runId',_0x3c9475[_0x414c06(0x279)](_0x414c06(0x33d))),_0x100f70[_0x414c06(0x331)]();}async['_getSessionTicket'](){const _0x5085db=_0xb7227a;var _0x6a3262,_0x620aff,_0x29df30;const _0x539f37=this['_configService'][_0x5085db(0x2fe)](u[_0x5085db(0x2d4)]),_0x51832f=(_0x6a3262=_0x539f37==null?void 0x0:_0x539f37[_0x5085db(0x310)])!=null?_0x6a3262:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x29df30=(_0x620aff=(await this['_httpService'][_0x5085db(0x279)](_0x51832f,{'headers':{'Content-Type':_0x5085db(0x387)}}))[_0x5085db(0x274)])==null?void 0x0:_0x620aff[_0x5085db(0x1a1)])!=null?_0x29df30:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a['Inject'](a[_0xb7227a(0x36e)])),W(0x1,a[_0xb7227a(0x2f4)](x[_0xb7227a(0x20a)])),W(0x2,a[_0xb7227a(0x38f)]),W(0x3,a[_0xb7227a(0x3c0)]),W(0x4,g[_0xb7227a(0x220)])],exports[_0xb7227a(0x2bf)]);var Ss=Object[_0xb7227a(0x1ca)],ds=(_0x41d666,_0xdfab39,_0x7104ab,_0x38f945)=>{for(var _0x84078e=_0x38f945>0x1?void 0x0:_0x38f945?Ss(_0xdfab39,_0x7104ab):_0xdfab39,_0x1fafb9=_0x41d666['length']-0x1,_0x52484e;_0x1fafb9>=0x0;_0x1fafb9--)(_0x52484e=_0x41d666[_0x1fafb9])&&(_0x84078e=_0x52484e(_0x84078e)||_0x84078e);return _0x84078e;},fe=(_0x27d55f,_0x2efc67)=>(_0x1c1d96,_0x37f0cd)=>_0x2efc67(_0x1c1d96,_0x37f0cd,_0x27d55f);exports[_0xb7227a(0x237)]=class extends a['Disposable']{constructor(_0x2652f7,_0x2a80a3,_0x52f837){const _0x18dc66=_0xb7227a;super(),this[_0x18dc66(0x1cc)]=_0x2652f7,this[_0x18dc66(0x280)]=_0x2a80a3,this[_0x18dc66(0x3e4)]=_0x52f837;}async[_0xb7227a(0x1b2)](_0x5af976,_0x48a642,_0x391d3c,..._0x120556){const _0x53b96a=_0xb7227a;var _0x389c8d,_0x37e966,_0x5e562a,_0x5b350c;const _0x18e895=this[_0x53b96a(0x1cc)][_0x53b96a(0x322)]();if(!_0x18e895)throw new Error(_0x53b96a(0x1ee));const _0x12000a=((_0x389c8d=this[_0x53b96a(0x3e4)][_0x53b96a(0x2fe)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x389c8d:u[_0x53b96a(0x18d)])+'/'+_0x5af976+_0x53b96a(0x28a)+_0x48a642,_0x1f3aa8=new URL(window[_0x53b96a(0x2dd)][_0x53b96a(0x177)]),_0x5c7caf={'scriptId':_0x5af976,'runId':(_0x37e966=_0x1f3aa8['searchParams'][_0x53b96a(0x279)](_0x53b96a(0x33d)))!=null?_0x37e966:'','function':_0x48a642,'unitId':_0x18e895[_0x53b96a(0x1ce)](),'argsOfFunction':JSON[_0x53b96a(0x412)](_0x120556),'invokeId':(_0x5e562a=_0x391d3c[_0x53b96a(0x213)])!=null?_0x5e562a:'','executionId':(_0x5b350c=_0x391d3c[_0x53b96a(0x167)])!=null?_0x5b350c:''};try{const _0x47c0eb=await this[_0x53b96a(0x280)][_0x53b96a(0x36f)](_0x12000a,{'body':_0x5c7caf});return _0x47c0eb['body'][_0x53b96a(0x277)]&&_0x47c0eb[_0x53b96a(0x274)][_0x53b96a(0x277)][_0x53b96a(0x3d4)]!==G['OK']?'Failed':_0x47c0eb[_0x53b96a(0x274)][_0x53b96a(0x388)];}catch{return'Failed';}}},exports[_0xb7227a(0x237)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a['Inject'](x[_0xb7227a(0x20a)])),fe(0x2,a['IConfigService'])],exports[_0xb7227a(0x237)]);const we=0x7530,ye=_0xb7227a(0x23b);class fs extends a[_0xb7227a(0x3d3)]{constructor(){const _0xe52f60=_0xb7227a;super(),_(this,_0xe52f60(0x312),a['generateRandomId']()),_(this,_0xe52f60(0x317),new Set()),_(this,_0xe52f60(0x186),new Map()),_(this,_0xe52f60(0x19a),null),_(this,_0xe52f60(0x256),new Map()),_(this,'_unitStatus',new Map()),this[_0xe52f60(0x304)]();}[_0xb7227a(0x308)](){const _0x332c04=_0xb7227a;super[_0x332c04(0x308)](),this[_0x332c04(0x256)][_0x332c04(0x339)]((_0x3fcb19,_0x438491)=>this[_0x332c04(0x2bc)](_0x438491)),this['_heartbeatTimer']&&window[_0x332c04(0x3fe)](this[_0x332c04(0x19a)]);}[_0xb7227a(0x41f)](_0x48885b){const _0x5f1f2d=_0xb7227a;return this[_0x5f1f2d(0x1d4)](_0x48885b)['pipe'](I[_0x5f1f2d(0x3c7)]());}[_0xb7227a(0x36d)](_0x1eee0e){const _0x36f3db=_0xb7227a;this[_0x36f3db(0x317)][_0x36f3db(0x3e7)]===0x0&&this['_scheduleHeartbeat'](),this[_0x36f3db(0x317)]['add'](_0x1eee0e),this[_0x36f3db(0x190)]({'type':0x0,'memberID':this[_0x36f3db(0x312)],'unitIDs':[_0x1eee0e],'isForwarded':!0x1});}[_0xb7227a(0x15a)](_0x29cb3f){const _0x316e98=_0xb7227a;this[_0x316e98(0x317)][_0x316e98(0x1e3)](_0x29cb3f),this[_0x316e98(0x317)][_0x316e98(0x3e7)]===0x0&&this[_0x316e98(0x19a)]&&window[_0x316e98(0x3fe)](this[_0x316e98(0x19a)]);}['_init'](){const _0xd072eb=_0xb7227a;this[_0xd072eb(0x3c6)](a[_0xd072eb(0x324)](I['fromEvent'](window,'storage')['subscribe'](_0x25cb19=>{const _0x41546a=_0xd072eb;if(_0x25cb19['key']!==ye||!_0x25cb19[_0x41546a(0x2f0)])return;const _0x50caee=JSON[_0x41546a(0x1b3)](_0x25cb19[_0x41546a(0x2f0)]);this[_0x41546a(0x300)](_0x50caee);}))),window[_0xd072eb(0x20f)](_0xd072eb(0x2d1),()=>this[_0xd072eb(0x190)]({'type':0x1,'memberID':this[_0xd072eb(0x312)],'unitIDs':Array[_0xd072eb(0x32a)](this[_0xd072eb(0x317)])}));}[_0xb7227a(0x300)](_0x15405e){const _0x5bf217=_0xb7227a;switch(_0x15405e[_0x5bf217(0x289)]){case 0x0:this[_0x5bf217(0x3ca)](_0x15405e);break;case 0x1:this['_handleLeaveEvent'](_0x15405e);break;case 0x2:this[_0x5bf217(0x3a6)](_0x15405e);break;}}['_handleJoinEvent'](_0x585faa){const _0x50ed0e=_0xb7227a,{unitIDs:_0x2c41a1,memberID:_0xd00b1e,isForwarded:_0x59a6a6}=_0x585faa;_0x2c41a1['forEach'](_0x375fed=>{const _0x216e81=_0x4227;if(!_0x59a6a6&&this[_0x216e81(0x186)][_0x216e81(0x15d)](_0x375fed)&&this[_0x216e81(0x1d4)](_0x375fed)['next'](u[_0x216e81(0x2cc)][_0x216e81(0x20e)]),!this[_0x216e81(0x186)][_0x216e81(0x15d)](_0x375fed)||!this['_unitOnClients']['get'](_0x375fed)[_0x216e81(0x15d)](_0xd00b1e)){const _0x2650ed=this[_0x216e81(0x186)]['get'](_0x375fed)||new Set();_0x2650ed['add'](_0xd00b1e),this[_0x216e81(0x186)]['set'](_0x375fed,_0x2650ed),this[_0x216e81(0x206)](_0xd00b1e);}}),_0x59a6a6||this[_0x50ed0e(0x190)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x50ed0e(0x317)]],'isForwarded':!0x0});}[_0xb7227a(0x206)](_0x2215b8){const _0x5c5f21=_0xb7227a;this['_removeClearOtherTimer'](_0x2215b8);const _0x50e653=window[_0x5c5f21(0x168)](()=>{const _0xf63f6f=_0x5c5f21;this[_0xf63f6f(0x186)][_0xf63f6f(0x339)](_0x3f4d5e=>{const _0x2ab6fc=_0xf63f6f;_0x3f4d5e[_0x2ab6fc(0x1e3)](_0x2215b8);});},we*0x2);this['_clearOtherTimers'][_0x5c5f21(0x19f)](_0x2215b8,_0x50e653);}[_0xb7227a(0x2bc)](_0x50882c){const _0x31fcca=_0xb7227a;if(this[_0x31fcca(0x256)][_0x31fcca(0x15d)](_0x50882c)){const _0x362d50=this[_0x31fcca(0x256)]['get'](_0x50882c);_0x362d50&&window[_0x31fcca(0x1d2)](_0x362d50),this[_0x31fcca(0x256)][_0x31fcca(0x19f)](_0x50882c,null);}}['_handleLeaveEvent'](_0x3cb76c){const _0x3c8b2b=_0xb7227a,{memberID:_0x34069f,unitIDs:_0x2ee834}=_0x3cb76c;_0x2ee834[_0x3c8b2b(0x339)](_0x1213dc=>{const _0x15fd3b=_0x3c8b2b;var _0x52ea79;const _0x4975cb=this[_0x15fd3b(0x186)][_0x15fd3b(0x279)](_0x1213dc);_0x4975cb&&(_0x4975cb[_0x15fd3b(0x1e3)](_0x34069f),(_0x52ea79=this['_ensureSubject'](_0x1213dc))==null||_0x52ea79['next'](_0x4975cb['size']===0x0?u[_0x15fd3b(0x2cc)][_0x15fd3b(0x2f9)]:u[_0x15fd3b(0x2cc)][_0x15fd3b(0x20e)]));}),this[_0x3c8b2b(0x2bc)](_0x34069f);}['_handleHeartbeatEvent'](_0x1ec1b5){const _0xb7cdc8=_0xb7227a;this[_0xb7cdc8(0x206)](_0x1ec1b5[_0xb7cdc8(0x3db)]);}[_0xb7227a(0x190)](_0x3a6804){const _0x4c6f6b=_0xb7227a;localStorage['setItem'](ye,JSON[_0x4c6f6b(0x412)](_0x3a6804));}[_0xb7227a(0x37a)](){const _0x401025=_0xb7227a;this[_0x401025(0x19a)]=window[_0x401025(0x34d)](()=>{const _0x1d7d47=_0x401025;this[_0x1d7d47(0x190)]({'type':0x2,'memberID':this[_0x1d7d47(0x312)]});},we);}[_0xb7227a(0x1d4)](_0x1e565e){const _0x488e3f=_0xb7227a;return this[_0x488e3f(0x297)][_0x488e3f(0x15d)](_0x1e565e)||this['_unitStatus'][_0x488e3f(0x19f)](_0x1e565e,new I[(_0x488e3f(0x31a))](u[_0x488e3f(0x2cc)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x488e3f(0x297)]['get'](_0x1e565e);}}exports[_0xb7227a(0x27b)]=Oe,exports[_0xb7227a(0x426)]=je,exports[_0xb7227a(0x184)]=fs,exports[_0xb7227a(0x392)]=ke;
|
|
1
|
+
'use strict';const _0x5c0916=_0x22e8;(function(_0x2c053b,_0xd9dfa){const _0x3451cc=_0x22e8,_0x3512f3=_0x2c053b();while(!![]){try{const _0x21d2d4=parseInt(_0x3451cc(0x325))/0x1+-parseInt(_0x3451cc(0x2ba))/0x2+-parseInt(_0x3451cc(0x109))/0x3*(parseInt(_0x3451cc(0x22f))/0x4)+parseInt(_0x3451cc(0x256))/0x5+-parseInt(_0x3451cc(0x377))/0x6*(-parseInt(_0x3451cc(0x23c))/0x7)+-parseInt(_0x3451cc(0x22e))/0x8*(parseInt(_0x3451cc(0x18a))/0x9)+parseInt(_0x3451cc(0x2df))/0xa;if(_0x21d2d4===_0xd9dfa)break;else _0x3512f3['push'](_0x3512f3['shift']());}catch(_0x5caf93){_0x3512f3['push'](_0x3512f3['shift']());}}}(_0x46d4,0x6380a));var Xe=Object[_0x5c0916(0x13d)],Ke=(_0x2d5de6,_0x474ef5,_0x2750e6)=>_0x474ef5 in _0x2d5de6?Xe(_0x2d5de6,_0x474ef5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2750e6}):_0x2d5de6[_0x474ef5]=_0x2750e6,_=(_0x3741a3,_0x1ebeca,_0x50e952)=>Ke(_0x3741a3,typeof _0x1ebeca!=_0x5c0916(0x3ae)?_0x1ebeca+'':_0x1ebeca,_0x50e952);Object[_0x5c0916(0x13d)](exports,Symbol[_0x5c0916(0x185)],{'value':_0x5c0916(0x25a)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x3018a4,..._0x7b4ab3}){const _0x2532aa=_0x5c0916,{icon:_0x20cc77,id:_0x24da81,className:_0x2c5df8,extend:_0x5ac5d6,..._0x10b2c6}=_0x7b4ab3,_0x5c9f9e=('univerjs-icon\x20univerjs-icon-'+_0x24da81+'\x20'+(_0x2c5df8||''))[_0x2532aa(0x2fa)](),_0x5157c=A[_0x2532aa(0x27c)]('_'+Qe());return $e(_0x20cc77,''+_0x24da81,{'defIds':_0x20cc77['defIds'],'idSuffix':_0x5157c[_0x2532aa(0x16f)]},{'ref':_0x3018a4,'className':_0x5c9f9e,..._0x10b2c6},_0x5ac5d6);}function $e(_0x8a2412,_0x502442,_0x91c87c,_0xc4e0e0,_0x28094c){const _0x1d2e81=_0x5c0916;return A[_0x1d2e81(0x10c)](_0x8a2412['tag'],{'key':_0x502442,...Je(_0x8a2412,_0x91c87c,_0x28094c),..._0xc4e0e0},(Ze(_0x8a2412,_0x91c87c)[_0x1d2e81(0x33a)]||[])[_0x1d2e81(0x3af)]((_0x191558,_0xee9c9)=>$e(_0x191558,_0x502442+'-'+_0x8a2412[_0x1d2e81(0x3a5)]+'-'+_0xee9c9,_0x91c87c,void 0x0,_0x28094c)));}function Je(_0x42b16c,_0x14ef1f,_0x34891f){const _0x51d2d3=_0x5c0916,_0x2fd253={..._0x42b16c[_0x51d2d3(0x273)]};_0x34891f!=null&&_0x34891f[_0x51d2d3(0x243)]&&_0x2fd253[_0x51d2d3(0x399)]===_0x51d2d3(0x243)&&(_0x2fd253['fill']=_0x34891f[_0x51d2d3(0x243)]),_0x42b16c[_0x51d2d3(0x3a5)]==='mask'&&_0x2fd253['id']&&(_0x2fd253['id']=_0x2fd253['id']+_0x14ef1f[_0x51d2d3(0x211)]),Object['entries'](_0x2fd253)[_0x51d2d3(0x329)](([_0x41f7c4,_0x1f7583])=>{const _0xcea544=_0x51d2d3;_0x41f7c4===_0xcea544(0x368)&&typeof _0x1f7583==_0xcea544(0x268)&&(_0x2fd253[_0x41f7c4]=_0x1f7583[_0xcea544(0x24d)](/url\(#(.*)\)/,'url(#$1'+_0x14ef1f['idSuffix']+')'));});const {defIds:_0x477646}=_0x14ef1f;return!_0x477646||_0x477646['length']===0x0||(_0x42b16c[_0x51d2d3(0x3a5)]===_0x51d2d3(0x34a)&&_0x2fd253[_0x51d2d3(0x15d)]&&(_0x2fd253[_0x51d2d3(0x15d)]=_0x2fd253['xlink:href']+_0x14ef1f[_0x51d2d3(0x211)]),Object[_0x51d2d3(0x38c)](_0x2fd253)[_0x51d2d3(0x329)](([_0x3f3d84,_0x1da5f4])=>{const _0x28ebb0=_0x51d2d3;typeof _0x1da5f4=='string'&&(_0x2fd253[_0x3f3d84]=_0x1da5f4[_0x28ebb0(0x24d)](/url\(#(.*)\)/,_0x28ebb0(0x27b)+_0x14ef1f[_0x28ebb0(0x211)]+')'));})),_0x2fd253;}function Ze(_0x40086e,_0x408ba6){const _0x14cf60=_0x5c0916;var _0xfe2d7a;const {defIds:_0x322ddb}=_0x408ba6;return!_0x322ddb||_0x322ddb[_0x14cf60(0xf4)]===0x0?_0x40086e:_0x40086e['tag']===_0x14cf60(0x299)&&((_0xfe2d7a=_0x40086e['children'])!=null&&_0xfe2d7a[_0x14cf60(0xf4)])?{..._0x40086e,'children':_0x40086e['children'][_0x14cf60(0x3af)](_0x4f3a27=>typeof _0x4f3a27['attrs']['id']=='string'&&_0x322ddb&&_0x322ddb[_0x14cf60(0x107)](_0x4f3a27[_0x14cf60(0x273)]['id'])?{..._0x4f3a27,'attrs':{..._0x4f3a27[_0x14cf60(0x273)],'id':_0x4f3a27['attrs']['id']+_0x408ba6[_0x14cf60(0x211)]}}:_0x4f3a27)}:_0x40086e;}function Qe(){const _0x578c7b=_0x5c0916;return Math['random']()[_0x578c7b(0x2cc)](0x24)[_0x578c7b(0x27f)](0x2,0x8);}pe[_0x5c0916(0x1a7)]=_0x5c0916(0x290);function _0x22e8(_0xe77d0,_0x58b910){_0xe77d0=_0xe77d0-0xdf;const _0x46d41c=_0x46d4();let _0x22e8d8=_0x46d41c[_0xe77d0];return _0x22e8d8;}const et={'tag':_0x5c0916(0x130),'attrs':{'xmlns':_0x5c0916(0x140),'fill':'none','viewBox':_0x5c0916(0x161),'width':_0x5c0916(0x1fb),'height':_0x5c0916(0x1fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x5c0916(0x309)},'children':[{'tag':_0x5c0916(0x27a),'attrs':{'stroke':'currentColor','d':_0x5c0916(0x1cb),'strokeLinecap':_0x5c0916(0x12c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5c0916(0x299),'attrs':{},'children':[{'tag':_0x5c0916(0x251),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5c0916(0x27a),'attrs':{'fill':_0x5c0916(0xea),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x5c0916(0x360)](function(_0x5b01c6,_0x436520){const _0x2ce855=_0x5c0916;return A[_0x2ce855(0x10c)](pe,Object[_0x2ce855(0x396)]({},_0x5b01c6,{'id':'off-line-icon','ref':_0x436520,'icon':et}));});xe[_0x5c0916(0x1a7)]=_0x5c0916(0x35b);const tt={'tag':'svg','attrs':{'xmlns':_0x5c0916(0x140),'fill':_0x5c0916(0x1a8),'viewBox':_0x5c0916(0x166),'width':_0x5c0916(0x1fb),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5c0916(0x250)},'children':[{'tag':_0x5c0916(0x27a),'attrs':{'stroke':_0x5c0916(0x31b),'d':_0x5c0916(0x2ed),'strokeLinecap':_0x5c0916(0x12c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5c0916(0x299),'attrs':{},'children':[{'tag':_0x5c0916(0x251),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x5c0916(0xea),'d':_0x5c0916(0x385),'transform':'translate(.97)'}}]}]}],'defIds':[_0x5c0916(0x20c)]},Be=A['forwardRef'](function(_0x51cca2,_0x2c3be8){const _0x3743c1=_0x5c0916;return A['createElement'](pe,Object[_0x3743c1(0x396)]({},_0x51cca2,{'id':_0x3743c1(0x2cd),'ref':_0x2c3be8,'icon':tt}));});Be[_0x5c0916(0x1a7)]=_0x5c0916(0x2c6);function st(_0x2fd398){const _0x279c82=_0x5c0916;switch(_0x2fd398){case u['CollaborationStatus'][_0x279c82(0x297)]:return _0x279c82(0x38e);case u[_0x279c82(0x2bb)][_0x279c82(0x367)]:return _0x279c82(0x2af);case u[_0x279c82(0x2bb)][_0x279c82(0x2c8)]:return _0x279c82(0x10a);case u[_0x279c82(0x2bb)][_0x279c82(0x2a2)]:return _0x279c82(0x246);case u[_0x279c82(0x2bb)]['AWAITING']:case u[_0x279c82(0x2bb)]['AWAITING_WITH_PENDING']:return _0x279c82(0x269);case u[_0x279c82(0x2bb)]['SYNCED']:case u[_0x279c82(0x2bb)][_0x279c82(0x274)]:return _0x279c82(0x21d);}}function it(_0x3fd910){const _0x4830a6=_0x5c0916,{status$:_0x4650bd}=_0x3fd910,_0x3fe7ed=O['useObservable'](_0x4650bd,u['CollaborationStatus'][_0x4830a6(0x2a2)]),_0xe63ef6=O[_0x4830a6(0x2f8)](a['LocaleService']),_0x31ed4f=O['useDependency'](u[_0x4830a6(0x295)]),_0x401871=_0x3fe7ed!==u['CollaborationStatus']['OFFLINE'],_0x43a18d=_0xe63ef6['t'](st(_0x3fe7ed)),_0x4ace5a=_0x401871?M[_0x4830a6(0x1aa)](Be,{}):M[_0x4830a6(0x1aa)](xe,{}),_0x24c157=A['useCallback'](()=>{const _0x10230d=_0x4830a6;_0x401871||_0x31ed4f[_0x10230d(0x37e)]();},[_0x401871,_0x31ed4f]);function _0x237584(){const _0x1e2635=_0x4830a6;return M[_0x1e2635(0x29d)](_0x1e2635(0x1c9),{'className':_0x1e2635(0x26b),'onClick':_0x24c157,'children':[M[_0x1e2635(0x1aa)](_0x1e2635(0x1c9),{'className':p[_0x1e2635(0x195)](_0x1e2635(0x200),{'univer-text-green-500':_0x401871,'univer-text-red-500':!_0x401871}),'children':_0x4ace5a}),M[_0x1e2635(0x1aa)](_0x1e2635(0x1c9),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x43a18d})]});}return _0x401871?_0x237584():M[_0x4830a6(0x1aa)](p['Tooltip'],{'title':_0xe63ef6['t'](_0x4830a6(0x191)),'children':_0x237584()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x459ebe,_0x66fe89,_0x5453c6,_0x41408c)=>{const _0x2df17b=_0x5c0916;for(var _0x18f1d7=_0x41408c>0x1?void 0x0:_0x41408c?nt(_0x66fe89,_0x5453c6):_0x66fe89,_0x49333c=_0x459ebe[_0x2df17b(0xf4)]-0x1,_0x3393a5;_0x49333c>=0x0;_0x49333c--)(_0x3393a5=_0x459ebe[_0x49333c])&&(_0x18f1d7=_0x3393a5(_0x18f1d7)||_0x18f1d7);return _0x18f1d7;},K=(_0x4e8cfc,_0x461f9f)=>(_0x2da438,_0x1c8068)=>_0x461f9f(_0x2da438,_0x1c8068,_0x4e8cfc);exports[_0x5c0916(0x2ac)]=class extends a[_0x5c0916(0x1f6)]{constructor(_0x4b6077,_0x5501e0,_0x26e094,_0x5d720d){const _0x133c77=_0x5c0916;super(),_(this,'_status$',new I['BehaviorSubject'](u[_0x133c77(0x2bb)][_0x133c77(0x2a2)])),(this['_univerInstanceService']=_0x4b6077,this['_injector']=_0x5501e0,this[_0x133c77(0x16a)]=_0x26e094,this[_0x133c77(0x1ce)]=_0x5d720d,this[_0x133c77(0x11d)](),this[_0x133c77(0x257)]());}[_0x5c0916(0x257)](){const _0xafd3af=_0x5c0916;this['disposeWithMe'](this[_0xafd3af(0x39f)][_0xafd3af(0x353)][_0xafd3af(0x1ea)](I[_0xafd3af(0x2d8)](()=>{const _0x255991=_0xafd3af,_0x7c98df=this[_0x255991(0x39f)][_0x255991(0x1d3)]();return _0x7c98df?this['_collaborationController']['getCollabEntity$'](_0x7c98df['getUnitId']()):I['of'](null);}),I[_0xafd3af(0x2d8)](_0x50fcb3=>_0x50fcb3?_0x50fcb3['status$']:I['of'](u[_0xafd3af(0x2bb)][_0xafd3af(0x2a2)])))[_0xafd3af(0x30c)](_0x425442=>{const _0xc85a13=_0xafd3af;this[_0xc85a13(0x203)][_0xc85a13(0x321)](_0x425442);}));}[_0x5c0916(0x11d)](){const _0x10f623=_0x5c0916;this[_0x10f623(0x248)](this[_0x10f623(0x1ce)][_0x10f623(0x11b)](O[_0x10f623(0xfb)]['HEADER_MENU'],()=>O[_0x10f623(0x270)](ot({'status$':this[_0x10f623(0x203)][_0x10f623(0x2dc)]()}),this['_injector'])));}},exports[_0x5c0916(0x2ac)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x5c0916(0x25b)](a[_0x5c0916(0x131)])),K(0x2,a[_0x5c0916(0x25b)](u[_0x5c0916(0x34f)])),K(0x3,O[_0x5c0916(0x145)])],exports[_0x5c0916(0x2ac)]);function ot(_0x333d66){const {status$:_0x223041}=_0x333d66;return function(){return M['jsx'](it,{'status$':_0x223041});};}const Oe=a[_0x5c0916(0x2c4)]('uni.network.url-service');var at=Object[_0x5c0916(0x2d9)],ct=(_0x59d8cd,_0x5b6ec1,_0x2a1002,_0x3552c1)=>{const _0x4fea2b=_0x5c0916;for(var _0x4839fd=_0x3552c1>0x1?void 0x0:_0x3552c1?at(_0x5b6ec1,_0x2a1002):_0x5b6ec1,_0x16dee8=_0x59d8cd[_0x4fea2b(0xf4)]-0x1,_0x458519;_0x16dee8>=0x0;_0x16dee8--)(_0x458519=_0x59d8cd[_0x16dee8])&&(_0x4839fd=_0x458519(_0x4839fd)||_0x4839fd);return _0x4839fd;},Y=(_0x3b603b,_0x3105a3)=>(_0x4206f2,_0x535f0c)=>_0x3105a3(_0x4206f2,_0x535f0c,_0x3b603b);exports['CollaborationDataLoaderController']=class extends a[_0x5c0916(0x11e)]{constructor(_0x5cece2,_0x8e64b6,_0x5aafbd,_0x36d06,_0x4a30ec){const _0x119158=_0x5c0916;super(),this[_0x119158(0x293)]=_0x5cece2,this[_0x119158(0x187)]=_0x8e64b6,this[_0x119158(0x1e0)]=_0x5aafbd,this[_0x119158(0x315)]=_0x36d06,_0x4a30ec?_0x4a30ec==null||_0x4a30ec[_0x119158(0x2d2)]()[_0x119158(0x2d5)](()=>this[_0x119158(0x10d)]()):(this[_0x119158(0x187)][_0x119158(0x1c5)](_0x119158(0x339),_0x119158(0x178)),this['_init']());}async[_0x5c0916(0x10d)](){const _0x4e088e=_0x5c0916,_0x4bec47=this['_urlService'][_0x4e088e(0x32a)](_0x4e088e(0x205)),_0x5cbd2d=this[_0x4e088e(0x293)][_0x4e088e(0x32a)]('type'),_0x58a1d6=this[_0x4e088e(0x293)][_0x4e088e(0x32a)](_0x4e088e(0xe3));if(!_0x4bec47||!_0x5cbd2d){this[_0x4e088e(0x187)][_0x4e088e(0x1c5)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x254b94=await this[_0x4e088e(0x315)][_0x4e088e(0x15b)](_0x4bec47,Number(_0x5cbd2d),_0x58a1d6);_0x254b94&&_0x254b94 instanceof a[_0x4e088e(0x357)]&&this[_0x4e088e(0x375)](_0x254b94);}async['_setupSubUnitSync'](_0x121cad){const _0x2510c4=_0x5c0916;await this['_updateSubUnitFromURLParams'](_0x121cad),_0x121cad[_0x2510c4(0x1a0)]['pipe'](I[_0x2510c4(0x189)](this[_0x2510c4(0x101)]))[_0x2510c4(0x30c)](_0x315490=>{const _0x2145da=_0x2510c4;_0x315490&&this[_0x2145da(0x358)](_0x315490);}),this['_urlService'][_0x2510c4(0xdf)][_0x2510c4(0x1ea)](I[_0x2510c4(0x189)](this[_0x2510c4(0x101)]))[_0x2510c4(0x30c)](()=>this[_0x2510c4(0x241)](_0x121cad));}[_0x5c0916(0x358)](_0x89a4fb,_0x46efe0=!0x1){const _0x2d1cff=_0x5c0916,_0x148102=this[_0x2d1cff(0x293)][_0x2d1cff(0x32a)](_0x2d1cff(0xe3));_0x89a4fb['getSheetId']()!==_0x148102&&this[_0x2d1cff(0x293)][_0x2d1cff(0x252)]('subunit',_0x89a4fb[_0x2d1cff(0x31a)](),_0x46efe0);}async[_0x5c0916(0x241)](_0x561e31){const _0x3694b2=_0x5c0916;var _0x222450;const _0x2799ea=this[_0x3694b2(0x293)][_0x3694b2(0x32a)]('subunit');if(!_0x2799ea||!_0x561e31[_0x3694b2(0x3aa)](_0x2799ea)){const _0x2dbc19=_0x561e31[_0x3694b2(0x286)]()[0x0],_0x85d2d3=_0x561e31[_0x3694b2(0x3aa)](_0x2dbc19);if(!_0x85d2d3)return;this[_0x3694b2(0x358)](_0x85d2d3,!0x0),await this[_0x3694b2(0x1e0)]['executeCommand'](v[_0x3694b2(0x383)]['id'],{'unitId':_0x561e31[_0x3694b2(0x190)](),'subUnitId':_0x2dbc19});return;}((_0x222450=_0x561e31[_0x3694b2(0x1e2)]())==null?void 0x0:_0x222450[_0x3694b2(0x31a)]())!==_0x2799ea&&await this[_0x3694b2(0x1e0)][_0x3694b2(0x198)](v[_0x3694b2(0x383)]['id'],{'unitId':_0x561e31['getUnitId'](),'subUnitId':_0x2799ea});}},exports[_0x5c0916(0xe7)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x5c0916(0x2e0)]),Y(0x3,a[_0x5c0916(0x25b)](u[_0x5c0916(0x349)])),Y(0x4,a[_0x5c0916(0x134)](qe[_0x5c0916(0x167)]))],exports[_0x5c0916(0xe7)]);var lt=Object[_0x5c0916(0x2d9)],_t=(_0xf009f9,_0xfd8362,_0x2c792c,_0x41512b)=>{const _0x120557=_0x5c0916;for(var _0x3b200c=_0x41512b>0x1?void 0x0:_0x41512b?lt(_0xfd8362,_0x2c792c):_0xfd8362,_0x44cf31=_0xf009f9[_0x120557(0xf4)]-0x1,_0x12053b;_0x44cf31>=0x0;_0x44cf31--)(_0x12053b=_0xf009f9[_0x44cf31])&&(_0x3b200c=_0x12053b(_0x3b200c)||_0x3b200c);return _0x3b200c;},De=(_0x541b53,_0x46a193)=>(_0xc276ef,_0x507713)=>_0x46a193(_0xc276ef,_0x507713,_0x541b53);let me=class extends a[_0x5c0916(0x11e)]{constructor(_0x85d3c2,_0x1b1e12){const _0x3abb98=_0x5c0916;super(),this[_0x3abb98(0x27e)]=_0x85d3c2,this[_0x3abb98(0x279)]=_0x1b1e12,this[_0x3abb98(0x10d)]();}['_init'](){const _0x2d0fc8=_0x5c0916,_0x2424a0=this;this[_0x2d0fc8(0x248)](this[_0x2d0fc8(0x27e)]['addClipboardHook']({'onBeforePasteImage':async _0x1c7fe6=>{const _0x4cd5dc=_0x2d0fc8,_0x4d9214=await _0x2424a0[_0x4cd5dc(0x279)][_0x4cd5dc(0x3ac)](_0x1c7fe6);return _0x4d9214?{'source':_0x4d9214[_0x4cd5dc(0x2e6)],'imageSourceType':_0x4d9214[_0x4cd5dc(0x165)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x5c0916(0x2b3)])],me);const Ne=[_0x5c0916(0x376),_0x5c0916(0x1ae),'green.600',_0x5c0916(0x296),'blue.400',_0x5c0916(0x307)];class Re extends a['Disposable']{constructor(){const _0x325e97=_0x5c0916;super(...arguments),_(this,_0x325e97(0x16c),new Map()),_(this,_0x325e97(0x151),0x0);}['assignAColorForMemberID'](_0x1025f5){const _0x438631=_0x5c0916;if(this[_0x438631(0x16c)][_0x438631(0x2f4)](_0x1025f5))return this['_assignedColors']['get'](_0x1025f5);const _0x5db2de=Ne[this[_0x438631(0x151)]];return this[_0x438631(0x151)]=(this[_0x438631(0x151)]+0x1)%Ne[_0x438631(0xf4)],this[_0x438631(0x16c)][_0x438631(0x212)](_0x1025f5,_0x5db2de),_0x5db2de;}}function Fe(_0xf94ae2){const _0x212e1f=_0x5c0916;let _0x322fff='';for(const _0x1c3a24 of _0xf94ae2){const {startOffset:_0x3fed36,endOffset:_0x332e33,isActive:_0x14684a,rangeType:_0x146a69,segmentId:_0x3befa1,segmentPage:_0x3ad1b4}=_0x1c3a24;_0x322fff[_0x212e1f(0xf4)]&&(_0x322fff+=','),_0x322fff+=_0x3fed36+':'+_0x332e33+':'+(_0x14684a?'1':'0')+':'+_0x146a69+':'+_0x3befa1+':'+_0x3ad1b4;}return _0x322fff;}function ht(_0x3f2f29){const _0x7e6bd9=_0x5c0916,_0x5daec7=_0x3f2f29[_0x7e6bd9(0x2da)](','),_0x303840=[];for(const _0x407321 of _0x5daec7){const [_0x4be1c4,_0x163950,_0x2d5927,_0x432d6c,_0x36a329,_0x3dacc0]=_0x407321[_0x7e6bd9(0x2da)](':');_0x303840[_0x7e6bd9(0x39d)]({'startOffset':Number(_0x4be1c4),'endOffset':Number(_0x163950),'collapsed':_0x4be1c4===_0x163950,'isActive':_0x2d5927==='1','rangeType':_0x432d6c===a[_0x7e6bd9(0x1ff)]['TEXT']?a[_0x7e6bd9(0x1ff)][_0x7e6bd9(0x221)]:a[_0x7e6bd9(0x1ff)][_0x7e6bd9(0x237)],'segmentId':typeof _0x36a329==_0x7e6bd9(0x268)?String(_0x36a329):'','segmentPage':Number(_0x3dacc0!=null?_0x3dacc0:-0x1)});}return _0x303840[_0x7e6bd9(0x26c)](_0x344d52=>_0x344d52['isActive'])||(_0x303840[0x0]['isActive']=!0x0),_0x303840;}class be extends a['RxDisposable']{constructor(){const _0x429d24=_0x5c0916;super(...arguments),_(this,_0x429d24(0x23f),new I['BehaviorSubject'](null)),_(this,_0x429d24(0x2b8),this[_0x429d24(0x23f)][_0x429d24(0x2dc)]());}['syncEditingCollabCursor'](_0x55451d){const _0x56b8b4=_0x5c0916,{unitID:_0x4a0d14,memberID:_0x5dce0f,textRanges:_0xb80e63}=_0x55451d,_0x408116=Fe(_0xb80e63);if(_0x408116==='')return;const _0x20f7eb={'unitID':_0x4a0d14,'memberID':_0x5dce0f,'selection':_0x408116};this[_0x56b8b4(0x23f)][_0x56b8b4(0x321)](_0x20f7eb);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x441493,_0x511b65,_0x482000,_0x531290)=>{for(var _0x415bd2=_0x531290>0x1?void 0x0:_0x531290?ut(_0x511b65,_0x482000):_0x511b65,_0x19297d=_0x441493['length']-0x1,_0x59ff7e;_0x19297d>=0x0;_0x19297d--)(_0x59ff7e=_0x441493[_0x19297d])&&(_0x415bd2=_0x59ff7e(_0x415bd2)||_0x415bd2);return _0x415bd2;},U=(_0x38d982,_0x4fb9b0)=>(_0x332fbb,_0x2f9ab0)=>_0x4fb9b0(_0x332fbb,_0x2f9ab0,_0x38d982);const St=0x12c,dt=0x64;let ve=class extends a[_0x5c0916(0x11e)]{constructor(_0x523a67,_0x19e331,_0x199298,_0x1b6233,_0x59b6d6,_0x219f63,_0x2a1083,_0x288cb7,_0x10c41d){const _0x1ebf52=_0x5c0916;super(),_(this,_0x1ebf52(0x182),!0x1),_(this,_0x1ebf52(0x10d),!0x1),_(this,_0x1ebf52(0x261),new I[(_0x1ebf52(0x204))](new Map())),_(this,_0x1ebf52(0x13b),this['_cursorInfo$'][_0x1ebf52(0x2dc)]()),_(this,'_roomMembers$',new I[(_0x1ebf52(0x204))]([])),_(this,_0x1ebf52(0x1d5),this[_0x1ebf52(0xff)][_0x1ebf52(0x1ea)](I[_0x1ebf52(0x26e)](St))),_(this,'_updateLocalCursor',a[_0x1ebf52(0x2d7)](_0x5dc3fd=>{const _0x1029c3=_0x1ebf52,_0x584c22={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1029c3(0x326)],'memberID':this['_session'][_0x1029c3(0xee)](),'selection':Fe(_0x5dc3fd)}};this[_0x1029c3(0x2b4)][_0x1029c3(0x3a9)](_0x584c22,this[_0x1029c3(0x326)]);},dt)),(this['unitID']=_0x523a67,this[_0x1ebf52(0x2b4)]=_0x19e331,this['_injector']=_0x199298,this[_0x1ebf52(0x17c)]=_0x1b6233,this[_0x1ebf52(0x28f)]=_0x59b6d6,this[_0x1ebf52(0x336)]=_0x219f63,this[_0x1ebf52(0x1fc)]=_0x2a1083,this[_0x1ebf52(0x39f)]=_0x288cb7,this[_0x1ebf52(0x1e0)]=_0x10c41d);}get[_0x5c0916(0x21a)](){const _0x50a3e2=_0x5c0916;return this[_0x50a3e2(0x261)][_0x50a3e2(0x213)]();}get[_0x5c0916(0x2d6)](){const _0x3b909a=_0x5c0916;return this[_0x3b909a(0xff)][_0x3b909a(0x213)]();}[_0x5c0916(0x2c2)](){const _0x4d2f60=_0x5c0916;super[_0x4d2f60(0x2c2)](),this['_cursorInfo$']['next'](new Map()),this[_0x4d2f60(0x261)][_0x4d2f60(0x258)](),this['_roomMembers$'][_0x4d2f60(0x321)]([]),this['_roomMembers$'][_0x4d2f60(0x258)]();}[_0x5c0916(0x1d9)](){const _0xa43329=_0x5c0916;this[_0xa43329(0x10d)]||(this[_0xa43329(0x10d)]=!0x0,this['_session'][_0xa43329(0x1ca)]['pipe'](I[_0xa43329(0x189)](this[_0xa43329(0x101)]))[_0xa43329(0x30c)](_0x2b7013=>{const _0x3178aa=_0xa43329;_0x2b7013===u[_0x3178aa(0xf5)][_0x3178aa(0x222)]?this[_0x3178aa(0x162)]():this[_0x3178aa(0x314)]();}),this[_0xa43329(0x2b4)][_0xa43329(0x1e4)]['pipe'](I[_0xa43329(0x189)](this[_0xa43329(0x101)]))[_0xa43329(0x30c)](_0x129481=>{const _0x1f4689=_0xa43329,_0x166e06=_0x129481[_0x1f4689(0x2e9)];_0x166e06===g[_0x1f4689(0x342)][_0x1f4689(0x208)]&&this[_0x1f4689(0x263)](_0x129481),_0x166e06===g[_0x1f4689(0x342)][_0x1f4689(0xf6)]&&this[_0x1f4689(0x386)](_0x129481);}),this[_0xa43329(0x248)](this['_commandService']['onCommandExecuted'](_0x349ff5=>{const _0x2a4bae=_0xa43329,_0x39bfc9=_0x349ff5['params'];_0x39bfc9!=null&&this['_online']&&_0x349ff5['id']===V[_0x2a4bae(0x343)]['id']&&_0x39bfc9[_0x2a4bae(0xf1)]===this[_0x2a4bae(0x326)]&&_0x39bfc9[_0x2a4bae(0xf0)]===!0x1&&_0x39bfc9[_0x2a4bae(0x320)][_0x2a4bae(0xf4)]>0x0&&this[_0x2a4bae(0x319)](_0x39bfc9['ranges']);})),this[_0xa43329(0x336)]['collabCursorState$']['pipe'](I[_0xa43329(0x189)](this['dispose$']))[_0xa43329(0x30c)](_0x3bdae9=>{const _0x37a3fe=_0xa43329;if((_0x3bdae9==null?void 0x0:_0x3bdae9[_0x37a3fe(0x326)])!==this[_0x37a3fe(0x326)])return;const _0x221d6f={'eventID':g[_0x37a3fe(0x342)][_0x37a3fe(0x208)],'data':_0x3bdae9};this[_0x37a3fe(0x263)](_0x221d6f);}),this[_0xa43329(0x248)](this['_commandService'][_0xa43329(0x108)](_0x4d6ee5=>{const _0x47d36e=_0xa43329;if(_0x4d6ee5[_0x47d36e(0x302)]==null)return;const _0x417c7d=_0x4d6ee5[_0x47d36e(0x302)];if(_0x4d6ee5['id']!==V[_0x47d36e(0xfc)]['id']||_0x417c7d['unitId']!==this[_0x47d36e(0x326)])return;const _0x3ed4f7={'id':_0x47d36e(0x298),'params':_0x417c7d},_0x53dfc6=this['cursorInfo'];for(const [_0x1a057a,_0x31d14f]of _0x53dfc6){const _0x5644bc={'id':_0x47d36e(0x298),'params':{'unitId':this[_0x47d36e(0x326)],'actions':null,'textRanges':_0x31d14f[_0x47d36e(0x320)]}},_0x1a2072=this['_transformService'][_0x47d36e(0x1c2)](_0x3ed4f7,_0x5644bc,!0x1);if(g['isTransformMutationFailure'](_0x1a2072))throw _0x1a2072['error'];_0x53dfc6[_0x47d36e(0x212)](_0x1a057a,{..._0x31d14f,'ranges':_0x1a2072[_0x47d36e(0x381)][_0x47d36e(0x302)]['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x53dfc6);});})));}['_onCursorUpdate'](_0x43ea82){const _0x12c958=_0x5c0916;var _0x2706a8,_0x311eaa;const {memberID:_0x32faea,selection:_0x2e6bf9}=_0x43ea82[_0x12c958(0x324)],_0x8ea0c3=ht(_0x2e6bf9),_0x484323=(_0x311eaa=(_0x2706a8=this['_memberService'][_0x12c958(0x371)](this[_0x12c958(0x326)],_0x32faea))==null?void 0x0:_0x2706a8[_0x12c958(0x225)])!=null?_0x311eaa:'Unknown\x20user',_0x633cf5={'color':this[_0x12c958(0x17c)][_0x12c958(0x277)](_0x32faea),'name':_0x484323,'ranges':_0x8ea0c3},_0x17a5de=this[_0x12c958(0x21a)];_0x17a5de[_0x12c958(0x212)](_0x32faea,_0x633cf5),this[_0x12c958(0x261)][_0x12c958(0x321)](_0x17a5de);}[_0x5c0916(0x386)](_0x36409f){const _0x217248=_0x5c0916,{memberID:_0x4f2164}=_0x36409f[_0x217248(0x324)],_0x516715=this[_0x217248(0x21a)];_0x516715['delete'](_0x4f2164),this['_cursorInfo$'][_0x217248(0x321)](_0x516715);}['_toggleOnline'](){const _0x5c3fe4=_0x5c0916;var _0x509395;if(this['_online']=!0x0,((_0x509395=this[_0x5c3fe4(0x39f)]['getFocusedUnit']())==null?void 0x0:_0x509395[_0x5c3fe4(0x190)]())!==this[_0x5c3fe4(0x326)])return;const _0x386775=this[_0x5c3fe4(0x184)][_0x5c3fe4(0x2fc)](V[_0x5c3fe4(0x1f7)])[_0x5c3fe4(0x2d0)]();Array[_0x5c3fe4(0x13c)](_0x386775)&&_0x386775['length']>0x0&&this[_0x5c3fe4(0x319)](_0x386775);}[_0x5c0916(0x314)](){const _0x318416=_0x5c0916;this[_0x318416(0x182)]=!0x1;}};ve=It([U(0x2,a[_0x5c0916(0x25b)](a[_0x5c0916(0x131)])),U(0x3,a[_0x5c0916(0x25b)](Re)),U(0x4,a[_0x5c0916(0x25b)](u[_0x5c0916(0x3a7)])),U(0x5,a['Inject'](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x5c0916(0x2fe)]),U(0x8,a[_0x5c0916(0x2e0)])],ve);var ft=Object[_0x5c0916(0x2d9)],mt=(_0x53c9e1,_0xedec84,_0x32ed9f,_0x4e42f1)=>{const _0x4ca815=_0x5c0916;for(var _0x5a788f=_0x4e42f1>0x1?void 0x0:_0x4e42f1?ft(_0xedec84,_0x32ed9f):_0xedec84,_0x532a1e=_0x53c9e1[_0x4ca815(0xf4)]-0x1,_0xb5ce8b;_0x532a1e>=0x0;_0x532a1e--)(_0xb5ce8b=_0x53c9e1[_0x532a1e])&&(_0x5a788f=_0xb5ce8b(_0x5a788f)||_0x5a788f);return _0x5a788f;},w=(_0x5b24d1,_0x382d26)=>(_0x328b46,_0x1187d4)=>_0x382d26(_0x328b46,_0x1187d4,_0x5b24d1);const vt=0x12c,gt=0x64,Et=()=>{let _0x43489e=[],_0x524f81=!0x1;return _0x191631=>{const _0x3c4c76=_0x22e8;_0x43489e[_0x3c4c76(0x39d)](_0x191631),_0x524f81||(_0x524f81=!0x0,setTimeout(()=>{const _0x37ac53=_0x3c4c76;_0x43489e[_0x37ac53(0x329)](_0x195eb6=>_0x195eb6()),_0x43489e=[],_0x524f81=!0x1;}));};};let ge=class extends a[_0x5c0916(0x11e)]{constructor(_0x3617c3,_0x58bb49,_0xb0d45,_0xad43c7,_0x56405d,_0x1061e1,_0x18869b,_0xd99271){const _0x188f7f=_0x5c0916;super(),_(this,_0x188f7f(0x182),!0x1),_(this,_0x188f7f(0x10d),!0x1),_(this,_0x188f7f(0x261),new I[(_0x188f7f(0x204))](new Map())),_(this,_0x188f7f(0x13b),this[_0x188f7f(0x261)][_0x188f7f(0x2dc)]()),_(this,_0x188f7f(0xff),new I['BehaviorSubject']([])),_(this,_0x188f7f(0x1d5),this['_roomMembers$'][_0x188f7f(0x1ea)](I[_0x188f7f(0x26e)](vt))),_(this,_0x188f7f(0x319),a[_0x188f7f(0x2d7)]((_0x12bfaf,_0x413bcf)=>{const _0x1ff1f2=_0x188f7f,_0x161b12={'eventID':g[_0x1ff1f2(0x342)][_0x1ff1f2(0x208)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x1ff1f2(0xee)](),'selection':B[_0x1ff1f2(0x3ab)](_0x12bfaf,_0x413bcf[_0x1ff1f2(0x1b5)])}};this[_0x1ff1f2(0x2b4)][_0x1ff1f2(0x3a9)](_0x161b12,this[_0x1ff1f2(0x326)]);},gt)),(this[_0x188f7f(0x326)]=_0x3617c3,this[_0x188f7f(0x2b4)]=_0x58bb49,this['_injector']=_0xb0d45,this[_0x188f7f(0x17c)]=_0xad43c7,this['_memberService']=_0x56405d,this['_univerInstanceService']=_0x1061e1,this[_0x188f7f(0x1e0)]=_0x18869b,this[_0x188f7f(0x186)]=_0xd99271);}get[_0x5c0916(0x21a)](){const _0xc53e9a=_0x5c0916;return this[_0xc53e9a(0x261)][_0xc53e9a(0x213)]();}get[_0x5c0916(0x2d6)](){const _0x1737c2=_0x5c0916;return this[_0x1737c2(0xff)][_0x1737c2(0x213)]();}[_0x5c0916(0x2c2)](){const _0x3428ff=_0x5c0916;super[_0x3428ff(0x2c2)](),this['_cursorInfo$'][_0x3428ff(0x321)](new Map()),this[_0x3428ff(0x261)][_0x3428ff(0x258)](),this['_roomMembers$'][_0x3428ff(0x321)]([]),this['_roomMembers$'][_0x3428ff(0x258)]();}[_0x5c0916(0x1d9)](){const _0x337d4b=_0x5c0916;this[_0x337d4b(0x10d)]||(this['_init']=!0x0,this[_0x337d4b(0x2b4)][_0x337d4b(0x1ca)][_0x337d4b(0x1ea)](I[_0x337d4b(0x189)](this[_0x337d4b(0x101)]))['subscribe'](_0x222559=>{const _0x581cdf=_0x337d4b;_0x222559===u[_0x581cdf(0xf5)][_0x581cdf(0x222)]?this[_0x581cdf(0x162)]():this[_0x581cdf(0x314)]();}),this['_session'][_0x337d4b(0x1e4)][_0x337d4b(0x1ea)](I['takeUntil'](this['dispose$']))[_0x337d4b(0x30c)](_0x180baf=>{const _0xa8e33a=_0x337d4b,_0x52cec0=_0x180baf[_0xa8e33a(0x2e9)];_0x52cec0===g['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x180baf),_0x52cec0===g['CollaborationEvent'][_0xa8e33a(0xf6)]&&this[_0xa8e33a(0x386)](_0x180baf);}),this[_0x337d4b(0x2e4)](),this['disposeWithMe'](this[_0x337d4b(0x1e0)][_0x337d4b(0x108)](_0x5b314f=>{const _0x211f2e=_0x337d4b;if(this['_online']&&_0x5b314f['id']===v['SetSelectionsOperation']['id']&&_0x5b314f[_0x211f2e(0x302)]['unitId']===this[_0x211f2e(0x326)]){const _0x5c118c=_0x5b314f['params'];this[_0x211f2e(0x319)](_0x5c118c[_0x211f2e(0x153)],_0x5c118c[_0x211f2e(0x111)][0x0]);}})));}['_onCursorUpdate'](_0x2a9114){const _0x42998c=_0x5c0916;var _0x12f8ea,_0x506b06;const {memberID:_0x81d607,selection:_0x456813}=_0x2a9114[_0x42998c(0x324)],{sheetName:_0x39ca8a,range:_0x3a4ddb}=B[_0x42998c(0x11a)](_0x456813),_0x46b482={'name':(_0x506b06=(_0x12f8ea=this[_0x42998c(0x28f)][_0x42998c(0x371)](this['unitID'],_0x81d607))==null?void 0x0:_0x12f8ea[_0x42998c(0x225)])!=null?_0x506b06:_0x42998c(0x275),'range':this[_0x42998c(0x2b2)](_0x39ca8a,_0x3a4ddb),'sheetID':_0x39ca8a,'color':this[_0x42998c(0x17c)][_0x42998c(0x277)](_0x81d607),'selection':_0x456813},_0x2f4ce1=this[_0x42998c(0x21a)];_0x2f4ce1['set'](_0x81d607,_0x46b482),this[_0x42998c(0x261)][_0x42998c(0x321)](_0x2f4ce1);}[_0x5c0916(0x386)](_0x2a14c6){const _0x57f940=_0x5c0916,{memberID:_0x2dda55}=_0x2a14c6['data'],_0x385c3d=this[_0x57f940(0x21a)];_0x385c3d['delete'](_0x2dda55),this[_0x57f940(0x261)][_0x57f940(0x321)](_0x385c3d);}[_0x5c0916(0x2b2)](_0x31d028,_0x1914b7){const _0x836ace=_0x5c0916;var _0x554dd6,_0x11d8f6;const _0x26056d=(_0x11d8f6=(_0x554dd6=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x836ace(0x326)]))==null?void 0x0:_0x554dd6[_0x836ace(0x3aa)](_0x31d028))==null?void 0x0:_0x11d8f6['getMergeData']();return(_0x26056d==null?void 0x0:_0x26056d['find'](_0x93b3df=>a[_0x836ace(0x24a)][_0x836ace(0x16b)](_0x93b3df,_0x1914b7)))||_0x1914b7;}[_0x5c0916(0x2e4)](){const _0x1cc31a=_0x5c0916,_0x17523a=new a[(_0x1cc31a(0x16d))](),_0x5ad3d6=Et(),_0x4698c7=()=>{const _0x2ea02c=_0x1cc31a;_0x17523a[_0x2ea02c(0x2c2)]();const _0x2a6da0=(_0x1b7e03,_0xd4d989,_0x5f1ad2,_0x5f3553)=>{const _0x457ab8=_0x2ea02c;let _0x4b88ae=[];switch(_0x1b7e03['id']){case v[_0x457ab8(0x28c)][_0x457ab8(0x2a3)]:{_0x4b88ae=v[_0x457ab8(0x1bd)](_0x1b7e03,_0x5f3553);break;}case v['EffectRefRangId'][_0x457ab8(0x181)]:{_0x4b88ae=v['handleDeleteRangeMoveUp'](_0x1b7e03,_0x5f3553);break;}case v[_0x457ab8(0x28c)][_0x457ab8(0xef)]:{_0x4b88ae=v[_0x457ab8(0x133)](_0x1b7e03,_0x5f3553);break;}case v[_0x457ab8(0x28c)][_0x457ab8(0x382)]:{_0x4b88ae=v[_0x457ab8(0x114)](_0x1b7e03,_0x5f3553);break;}case v[_0x457ab8(0x28c)][_0x457ab8(0x233)]:{_0x4b88ae=v['handleInsertRangeMoveRight'](_0x1b7e03,_0x5f3553);break;}case v[_0x457ab8(0x28c)]['InsertRowCommandId']:{_0x4b88ae=v[_0x457ab8(0x122)](_0x1b7e03,_0x5f3553);break;}case v[_0x457ab8(0x28c)][_0x457ab8(0x143)]:{_0x4b88ae=v[_0x457ab8(0x17f)](_0x1b7e03,_0x5f3553);break;}case v[_0x457ab8(0x28c)][_0x457ab8(0x2ff)]:{_0x4b88ae=v[_0x457ab8(0x18d)](_0x1b7e03,_0x5f3553);break;}case v[_0x457ab8(0x28c)]['RemoveRowCommandId']:{_0x4b88ae=v[_0x457ab8(0x158)](_0x1b7e03,_0x5f3553);break;}}const _0x3873c6=v[_0x457ab8(0x148)](_0x4b88ae,_0x5f3553),_0x213941=this[_0x457ab8(0x21a)]['get'](_0xd4d989);if(_0x213941&&_0x3873c6){const _0x3d713b={..._0x213941,'range':_0x3873c6};this['cursorInfo'][_0x457ab8(0x212)](_0xd4d989,_0x3d713b),_0x5ad3d6(()=>{const _0x40d76c=_0x457ab8,_0x5ca5e4=this[_0x40d76c(0x186)][_0x40d76c(0x196)](_0x3873c6,_0x2c8fd0=>(_0x5ca5e4[_0x40d76c(0x2c2)](),_0x2a6da0(_0x2c8fd0,_0xd4d989,_0x5f1ad2,_0x3873c6)));_0x17523a[_0x40d76c(0x218)](_0x5ca5e4);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2ea02c(0x329)]((_0x4b87de,_0x56115b)=>{const _0xe9efe2=_0x2ea02c,{range:_0x3ff1af,sheetID:_0x31e818}=_0x4b87de,_0x211e85=this['_refRangeService'][_0xe9efe2(0x196)](_0x3ff1af,_0x1a7839=>(_0x211e85['dispose'](),_0x2a6da0(_0x1a7839,_0x56115b,_0x31e818,_0x3ff1af)));_0x17523a[_0xe9efe2(0x218)](_0x211e85);});};this[_0x1cc31a(0x248)](a[_0x1cc31a(0x294)](this[_0x1cc31a(0x261)][_0x1cc31a(0x30c)](()=>{_0x4698c7();})));}['_toggleOnline'](){const _0x3925f3=_0x5c0916;var _0x599fa1,_0x39ba01;if(this['_online']=!0x0,((_0x599fa1=this[_0x3925f3(0x39f)][_0x3925f3(0x1d3)]())==null?void 0x0:_0x599fa1[_0x3925f3(0x190)]())!==this['unitID'])return;const _0x484405=(_0x39ba01=this['_injector'][_0x3925f3(0x2fc)](v[_0x3925f3(0x12e)])[_0x3925f3(0x236)]())==null?void 0x0:_0x39ba01[0x0],_0xb6e265=this['_univerInstanceService'][_0x3925f3(0x168)](a['UniverInstanceType']['UNIVER_SHEET'])['getActiveSheet']();_0x484405&&_0xb6e265&&this[_0x3925f3(0x319)](_0xb6e265['getSheetId'](),_0x484405);}[_0x5c0916(0x314)](){this['_online']=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x5c0916(0x131)])),w(0x3,a['Inject'](Re)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a[_0x5c0916(0x2fe)]),w(0x6,a[_0x5c0916(0x2e0)]),w(0x7,a[_0x5c0916(0x25b)](v[_0x5c0916(0x22c)]))],ge);var Ct=Object[_0x5c0916(0x2d9)],Tt=(_0x36fcc9,_0x25dd78,_0x380873,_0x1b581d)=>{for(var _0x4ecf55=_0x1b581d>0x1?void 0x0:_0x1b581d?Ct(_0x25dd78,_0x380873):_0x25dd78,_0x1bff35=_0x36fcc9['length']-0x1,_0x3038ad;_0x1bff35>=0x0;_0x1bff35--)(_0x3038ad=_0x36fcc9[_0x1bff35])&&(_0x4ecf55=_0x3038ad(_0x4ecf55)||_0x4ecf55);return _0x4ecf55;},ce=(_0x1a1a93,_0x3f0264)=>(_0x787fb4,_0x41560b)=>_0x3f0264(_0x787fb4,_0x41560b,_0x1a1a93);let F=class extends a[_0x5c0916(0x11e)]{constructor(_0x115374,_0x8dd5a1,_0x3a6833){const _0x4608d2=_0x5c0916;super(),_(this,_0x4608d2(0x116),new Map()),_(this,_0x4608d2(0x3b2),new I[(_0x4608d2(0x113))]()),(this[_0x4608d2(0x39f)]=_0x115374,this[_0x4608d2(0x184)]=_0x8dd5a1,this[_0x4608d2(0x340)]=_0x3a6833,this[_0x4608d2(0x10d)]());}[_0x5c0916(0x2c2)](){const _0x2f2d13=_0x5c0916;super[_0x2f2d13(0x2c2)](),this[_0x2f2d13(0x3b2)]['complete'](),this[_0x2f2d13(0x116)][_0x2f2d13(0x329)](_0x39bfd2=>_0x39bfd2[_0x2f2d13(0x2c2)]());}['getCollabCursors$'](_0x141fd1){const _0x3200dd=_0x5c0916;return this[_0x3200dd(0x116)][_0x3200dd(0x2f4)](_0x141fd1)?this['_entities']['get'](_0x141fd1)[_0x3200dd(0x13b)]:this[_0x3200dd(0x3b2)][_0x3200dd(0x1ea)](I[_0x3200dd(0x288)](_0x3cb7a3=>_0x3cb7a3[_0x3200dd(0x326)]===_0x141fd1),I[_0x3200dd(0x2d8)](_0x41e125=>_0x41e125[_0x3200dd(0x13b)]));}[_0x5c0916(0x10d)](){const _0x53b007=_0x5c0916;this[_0x53b007(0x39f)][_0x53b007(0x1d1)](a[_0x53b007(0x380)]['UNIVER_SHEET'])[_0x53b007(0x1ea)](I['takeUntil'](this['dispose$']))['subscribe'](async _0x7217f=>{const _0x5c2d36=_0x53b007,_0x15d1bd=_0x7217f[_0x5c2d36(0x190)](),_0x154e66=await this[_0x5c2d36(0x1eb)](_0x15d1bd);this[_0x5c2d36(0x3b2)][_0x5c2d36(0x321)](_0x154e66),this[_0x5c2d36(0x116)][_0x5c2d36(0x212)](_0x15d1bd,_0x154e66);}),this['_univerInstanceService'][_0x53b007(0x1d1)](a['UniverInstanceType'][_0x53b007(0xe2)])[_0x53b007(0x1ea)](I[_0x53b007(0x189)](this[_0x53b007(0x101)]))[_0x53b007(0x1ea)](I[_0x53b007(0x288)](_0x1cfa6f=>!_0x1cfa6f[_0x53b007(0x190)]()[_0x53b007(0x106)]('__')))[_0x53b007(0x30c)](async _0x3de8b7=>{const _0x22fe40=_0x53b007,_0x22f6dc=_0x3de8b7[_0x22fe40(0x190)](),_0x1f970a=await this['_startDocCollabCursor'](_0x22f6dc);this['_entityInit$'][_0x22fe40(0x321)](_0x1f970a),this[_0x22fe40(0x116)]['set'](_0x22f6dc,_0x1f970a);}),I['merge'](this[_0x53b007(0x39f)][_0x53b007(0x2ee)](a[_0x53b007(0x380)][_0x53b007(0xe2)]),this[_0x53b007(0x39f)]['getTypeOfUnitDisposed$'](a[_0x53b007(0x380)]['UNIVER_SHEET']))[_0x53b007(0x1ea)](I['takeUntil'](this[_0x53b007(0x101)]))[_0x53b007(0x30c)](_0x5d3746=>{const _0x2ea7bf=_0x53b007,_0x3844e0=_0x5d3746[_0x2ea7bf(0x190)](),_0x147439=this['_entities'][_0x2ea7bf(0x2fc)](_0x3844e0);_0x147439&&(_0x147439[_0x2ea7bf(0x2c2)](),this[_0x2ea7bf(0x116)][_0x2ea7bf(0x327)](_0x3844e0));});}async[_0x5c0916(0x1eb)](_0x263c7c){const _0x152274=_0x5c0916,_0x4dc8a3=await this[_0x152274(0x340)]['requireSession'](_0x263c7c),_0x5b1af1=this['_injector'][_0x152274(0xfd)](ge,_0x263c7c,_0x4dc8a3);return _0x5b1af1[_0x152274(0x1d9)](),_0x5b1af1;}async[_0x5c0916(0x1cf)](_0x273102){const _0x343bb1=_0x5c0916,_0x4bb63c=await this[_0x343bb1(0x340)][_0x343bb1(0x34e)](_0x273102),_0x565f54=this[_0x343bb1(0x184)]['createInstance'](ve,_0x273102,_0x4bb63c);return _0x565f54[_0x343bb1(0x1d9)](),_0x565f54;}};F=Tt([ce(0x0,a[_0x5c0916(0x2fe)]),ce(0x1,a['Inject'](a[_0x5c0916(0x131)])),ce(0x2,a['Inject'](u[_0x5c0916(0x295)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xa2c95d,_0xad2e58){const _0xcc55f4=_0x5c0916;let {radius:_0x21a0a6,width:_0x394ede,height:_0x57cd15}=_0xad2e58;_0x21a0a6=_0x21a0a6!=null?_0x21a0a6:0x0,_0x394ede=_0x394ede!=null?_0x394ede:0x1e,_0x57cd15=_0x57cd15!=null?_0x57cd15:0x1e;let _0x5de4a3=0x0,_0x8b039f=0x0,_0x45fe14=0x0;_0x5de4a3=_0x8b039f=_0x45fe14=Math[_0xcc55f4(0x333)](_0x21a0a6,_0x394ede/0x2,_0x57cd15/0x2),_0xa2c95d['beginPath'](),_0xa2c95d['moveTo'](_0x5de4a3,0x0),_0xa2c95d[_0xcc55f4(0x2e3)](_0x394ede-_0x8b039f,0x0),_0xa2c95d[_0xcc55f4(0x280)](_0x394ede-_0x8b039f,_0x8b039f,_0x8b039f,Math['PI']*0x3/0x2,0x0,!0x1),_0xa2c95d[_0xcc55f4(0x2e3)](_0x394ede,_0x57cd15-_0x45fe14),_0xa2c95d[_0xcc55f4(0x280)](_0x394ede-_0x45fe14,_0x57cd15-_0x45fe14,_0x45fe14,0x0,Math['PI']/0x2,!0x1),_0xa2c95d[_0xcc55f4(0x2e3)](0x0,_0x57cd15),_0xa2c95d[_0xcc55f4(0x2e3)](0x0,_0x5de4a3),_0xa2c95d[_0xcc55f4(0x280)](_0x5de4a3,_0x5de4a3,_0x5de4a3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xa2c95d['closePath'](),_0xad2e58[_0xcc55f4(0x399)]&&(_0xa2c95d[_0xcc55f4(0x1be)](),_0xa2c95d[_0xcc55f4(0x13a)]=_0xad2e58[_0xcc55f4(0x399)],_0xad2e58['fillRule']===_0xcc55f4(0x2bc)?_0xa2c95d[_0xcc55f4(0x399)]('evenodd'):_0xa2c95d[_0xcc55f4(0x399)](),_0xa2c95d[_0xcc55f4(0x365)]());}class re extends C[_0x5c0916(0x369)]{constructor(_0x3cfc61,_0x56eda9){const _0xaaef43=_0x5c0916;super(_0x3cfc61,_0x56eda9),_(this,'color'),_(this,_0xaaef43(0x398)),(this[_0xaaef43(0x1da)]=_0x56eda9==null?void 0x0:_0x56eda9[_0xaaef43(0x1da)],this['text']=_0x56eda9==null?void 0x0:_0x56eda9[_0xaaef43(0x398)]);}static[_0x5c0916(0x226)](_0x11e955,_0x3b4c8b){const _0x1e09e0=_0x5c0916,{text:_0x7ce59c,color:_0x335863}=_0x3b4c8b;_0x11e955[_0x1e09e0(0x1be)](),_0x11e955[_0x1e09e0(0x30f)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x285c9a=_0x11e955[_0x1e09e0(0x253)](_0x7ce59c)[_0x1e09e0(0x31e)],_0x178c9b=Math[_0x1e09e0(0x333)](_0x285c9a+0x2*le,Ue);Ot(_0x11e955,{'height':X,'radius':0x4,'width':_0x178c9b,'fill':_0x335863}),_0x11e955[_0x1e09e0(0x13a)]=_0x1e09e0(0x31f);const _0x5c8d04=le,_0x3cef69=X-pt,_0x269892=Ue-0x2*le;if(_0x285c9a>_0x269892){let _0x29b929='',_0x49b1e4=0x0;for(const _0x4f0c65 of _0x7ce59c){const _0x3d11be=_0x11e955[_0x1e09e0(0x253)](_0x4f0c65)['width'];if(_0x49b1e4+_0x3d11be<=_0x269892-_0x11e955[_0x1e09e0(0x253)](_0x1e09e0(0x281))[_0x1e09e0(0x31e)])_0x29b929+=_0x4f0c65,_0x49b1e4+=_0x3d11be;else{_0x29b929+=_0x1e09e0(0x281);break;}}_0x11e955[_0x1e09e0(0x13e)](_0x29b929,_0x5c8d04,_0x3cef69);}else _0x11e955[_0x1e09e0(0x13e)](_0x7ce59c,_0x5c8d04,_0x3cef69);_0x11e955[_0x1e09e0(0x365)]();}['_draw'](_0x2d7bce){const _0x5d7166=_0x5c0916;re[_0x5d7166(0x226)](_0x2d7bce,this);}}const _e=_0x5c0916(0x35a),Rt=_0x5c0916(0x2a9),bt=_0x5c0916(0x142),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5c0916(0x289);class Le{constructor(_0x2c2b24,_0x2bd507,_0x4bf85b,_0x115eda){const _0x18fbe4=_0x5c0916;_(this,_0x18fbe4(0x14d),[]),_(this,'_anchor',null),_(this,_0x18fbe4(0x24b),null),_(this,_0x18fbe4(0x24f),null),_(this,_0x18fbe4(0x136),null),_(this,_0x18fbe4(0x28b),null),(this[_0x18fbe4(0x393)]=_0x2c2b24,this[_0x18fbe4(0x13f)]=_0x2bd507,this[_0x18fbe4(0x223)]=_0x4bf85b,this[_0x18fbe4(0x30d)]=_0x115eda,this[_0x18fbe4(0x112)]());}set['_hover'](_0x221304){const _0x25c348=_0x5c0916;_0x221304?(this['_anchorDot']&&this[_0x25c348(0x24f)]['hide'](),this[_0x25c348(0x24b)]&&this[_0x25c348(0x24b)][_0x25c348(0x2bd)]()):(this[_0x25c348(0x24f)]&&this[_0x25c348(0x24f)][_0x25c348(0x2bd)](),this['_textBubble']&&this[_0x25c348(0x24b)][_0x25c348(0x391)]());}[_0x5c0916(0x2c2)](){const _0x4e85da=_0x5c0916;for(const _0x426459 of this[_0x4e85da(0x14d)])_0x426459['dispose']();this[_0x4e85da(0x24b)]&&this[_0x4e85da(0x24b)][_0x4e85da(0x2c2)](),this[_0x4e85da(0x24f)]&&this[_0x4e85da(0x24f)][_0x4e85da(0x2c2)](),this[_0x4e85da(0x28a)]&&this[_0x4e85da(0x28a)][_0x4e85da(0x2c2)](),this[_0x4e85da(0x28b)]&&this[_0x4e85da(0x28b)]();}[_0x5c0916(0x112)](){const _0x2bd5a7=_0x5c0916;var _0x2187bc;const {_docSkeleton:_0x51b293,_document:_0x1347c6}=this,{color:_0x29d9e1,name:_0x40a2b9,ranges:_0x40eb00}=this[_0x2bd5a7(0x393)],_0x524936=_0x1347c6['getOffsetConfig'](),{docsLeft:_0x200a17,docsTop:_0x4d2618}=_0x524936,_0x73b1a2=new T[(_0x2bd5a7(0x1f8))](_0x524936,_0x51b293);for(const {startOffset:_0x9b1daf,endOffset:_0x239ee8,rangeType:_0x56fcc4,segmentId:_0xbd8e0f,segmentPage:_0x4573a3,collapsed:_0x30b4cd,isActive:_0x2ede27}of _0x40eb00){const _0x1ac718=_0x51b293[_0x2bd5a7(0x23e)](_0x9b1daf,!0x0,_0xbd8e0f,_0x4573a3);let _0x4b8195=_0x51b293['findNodePositionByCharIndex'](_0x239ee8,!0x0,_0xbd8e0f,_0x4573a3);if(_0x4b8195==null&&(_0x4b8195=_0x51b293[_0x2bd5a7(0x23e)](_0x239ee8-0x1,!0x1,_0xbd8e0f,_0x4573a3)),_0x2ede27){const {contentBoxPointGroup:_0x23d1a1}=_0x73b1a2['getRangePointData'](_0x4b8195,_0x4b8195);if(_0x23d1a1[_0x2bd5a7(0xf4)]===0x0)continue;this[_0x2bd5a7(0x139)](_0x29d9e1,_0x23d1a1,_0x200a17,_0x4d2618,_0x40a2b9),this[_0x2bd5a7(0x28b)]=this[_0x2bd5a7(0x254)]();}if(_0x1ac718&&_0x4b8195){if(_0x56fcc4===a[_0x2bd5a7(0x1ff)][_0x2bd5a7(0x237)]){const _0x1d1dac=new T[(_0x2bd5a7(0x19a))](_0x524936,_0x51b293),{pointGroup:_0xf5b37}=(_0x2187bc=_0x1d1dac[_0x2bd5a7(0x1dd)](_0x1ac718,_0x4b8195))!=null?_0x2187bc:{};if(_0xf5b37==null||_0xf5b37['length']===0x0)continue;this[_0x2bd5a7(0x2c0)](_0x29d9e1,_0xf5b37,_0x200a17,_0x4d2618);}else{if(!_0x30b4cd){const {borderBoxPointGroup:_0xca1cfb}=_0x73b1a2[_0x2bd5a7(0x1dd)](_0x1ac718,_0x4b8195);if(_0xca1cfb[_0x2bd5a7(0xf4)]===0x0)continue;this[_0x2bd5a7(0x239)](_0x29d9e1,_0xca1cfb,_0x200a17,_0x4d2618);}}}}}[_0x5c0916(0x139)](_0x2e8603,_0xb5e7ff,_0x183814,_0x2b4bd1,_0x5bd91b){const _0x2642e1=_0x5c0916,_0x5b737d=this[_0x2642e1(0x146)](_0xb5e7ff),{left:_0x3d31a8,top:_0x40f3ab,height:_0x522fbd}=_0x5b737d,_0x34a89a=this[_0x2642e1(0x1f9)](),_0x43e24c=Nt/_0x34a89a,_0x513435=new C['Rect'](_e+a[_0x2642e1(0x33f)](H),{'left':_0x3d31a8+_0x183814-_0x43e24c,'top':_0x40f3ab+_0x2b4bd1,'height':_0x522fbd,'width':Dt,'fill':_0x2e8603||C[_0x2642e1(0x370)](a[_0x2642e1(0x2a4)]['black'],0x0),'strokeWidth':_0x43e24c,'stroke':Ut,'evented':!0x0});this[_0x2642e1(0x28a)]=_0x513435,this['_scene']['addObject'](_0x513435,T[_0x2642e1(0x118)]);const _0x3a8741=new C[(_0x2642e1(0x2e8))](_e+a[_0x2642e1(0x33f)](H),{'left':_0x3d31a8+_0x183814-_0x43e24c,'top':_0x40f3ab+_0x2b4bd1-he/0x2,'height':he,'width':he,'fill':_0x2e8603||C[_0x2642e1(0x370)](a[_0x2642e1(0x2a4)][_0x2642e1(0x3b0)],0x0),'strokeWidth':0x0,'stroke':_0x2e8603||C[_0x2642e1(0x370)](a[_0x2642e1(0x2a4)][_0x2642e1(0x3b0)],0x0),'evented':!0x1});this['_anchorDot']=_0x3a8741,this[_0x2642e1(0x13f)]['addObject'](_0x3a8741,T['TEXT_RANGE_LAYER_INDEX']);const _0x17f1b8=new re(_e+a[_0x2642e1(0x33f)](H),{'left':_0x3d31a8+_0x183814-_0x43e24c,'top':_0x40f3ab+_0x2b4bd1-X,'text':_0x5bd91b,'color':_0x2e8603});this[_0x2642e1(0x24b)]=_0x17f1b8,this['_scene'][_0x2642e1(0x2f9)](_0x17f1b8,T[_0x2642e1(0x118)]),this[_0x2642e1(0x1a1)]=!0x1;}[_0x5c0916(0x254)](){const _0x551126=_0x5c0916,_0x47916a=this[_0x551126(0x28a)][_0x551126(0x132)][_0x551126(0x247)](()=>{const _0x2c9458=_0x551126;this[_0x2c9458(0x1a1)]=!0x0;}),_0x5ceac1=this[_0x551126(0x28a)][_0x551126(0x2ca)][_0x551126(0x247)](()=>{const _0x466e1a=_0x551126;this[_0x466e1a(0x136)]&&clearTimeout(this[_0x466e1a(0x136)]),this[_0x466e1a(0x136)]=setTimeout(()=>{const _0x3b5816=_0x466e1a;this[_0x3b5816(0x1a1)]=!0x1;},0x7d0);});return()=>{const _0x5243e5=_0x551126;_0x47916a[_0x5243e5(0x37b)](),_0x5ceac1[_0x5243e5(0x37b)]();};}[_0x5c0916(0x239)](_0xc32665,_0x6ae6c1,_0x15b68a,_0x38b6ab){const _0x425721=_0x5c0916,_0x4aac2a=new a[(_0x425721(0x17b))](_0xc32665)[_0x425721(0x242)](0.2)[_0x425721(0x1e1)](),_0x4018ae=new C[(_0x425721(0x231))](Rt+a[_0x425721(0x33f)](H),{'pointsGroup':_0x6ae6c1,'fill':_0x4aac2a||C['getColor'](a['COLORS']['black'],0.2),'left':_0x15b68a,'top':_0x38b6ab,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x425721(0x14d)]['push'](_0x4018ae),this[_0x425721(0x13f)][_0x425721(0x2f9)](_0x4018ae,T['TEXT_RANGE_LAYER_INDEX']);}[_0x5c0916(0x2c0)](_0x1970eb,_0x5966d0,_0x43fad2,_0x391cab){const _0x8046d4=_0x5c0916,_0xcb6185=new a[(_0x8046d4(0x17b))](_0x1970eb)[_0x8046d4(0x242)](0.2)['toRgbString'](),_0x483eb9=new C['RegularPolygon'](bt+a['generateRandomId'](H),{'pointsGroup':_0x5966d0,'fill':_0xcb6185||C[_0x8046d4(0x370)](a[_0x8046d4(0x2a4)]['black'],0.2),'left':_0x43fad2,'top':_0x391cab,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x8046d4(0x39d)](_0x483eb9),this[_0x8046d4(0x13f)]['addObject'](_0x483eb9,T[_0x8046d4(0x118)]);}[_0x5c0916(0x146)](_0x4eb0b9){const _0x693e0e=_0x4eb0b9[0x0],_0x307726=_0x693e0e[0x0],_0xc48932=_0x693e0e[0x2],{x:_0x4d55b6,y:_0x5106cd}=_0x307726,{x:_0x2b8911,y:_0x12a0a3}=_0xc48932;return{'left':_0x4d55b6,'top':_0x5106cd,'width':_0x2b8911-_0x4d55b6,'height':_0x12a0a3-_0x5106cd};}[_0x5c0916(0x1f9)](){const _0x8a6d1b=_0x5c0916,{scaleX:_0x634c7b,scaleY:_0x1a2ad5}=this['_scene'][_0x8a6d1b(0x169)]();return Math[_0x8a6d1b(0x2dd)](_0x634c7b,_0x1a2ad5);}}var Lt=Object[_0x5c0916(0x2d9)],Mt=(_0x390636,_0x17a365,_0x404481,_0x5d3f87)=>{const _0x43a682=_0x5c0916;for(var _0x571eae=_0x5d3f87>0x1?void 0x0:_0x5d3f87?Lt(_0x17a365,_0x404481):_0x17a365,_0x3734da=_0x390636[_0x43a682(0xf4)]-0x1,_0x395b96;_0x3734da>=0x0;_0x3734da--)(_0x395b96=_0x390636[_0x3734da])&&(_0x571eae=_0x395b96(_0x571eae)||_0x571eae);return _0x571eae;},q=(_0xfb2f85,_0x20628a)=>(_0xd1cd71,_0x415dea)=>_0x20628a(_0xd1cd71,_0x415dea,_0xfb2f85);let Ee=class extends a[_0x5c0916(0x11e)]{constructor(_0x59443c,_0x5ef0a2,_0x74deab,_0x28d2e8,_0x42eef0){const _0x53e783=_0x5c0916;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x53e783(0x3a0)]=_0x59443c,this[_0x53e783(0x30a)]=_0x5ef0a2,this[_0x53e783(0x24e)]=_0x74deab,this['_commandService']=_0x28d2e8,this['_themeService']=_0x42eef0,this[_0x53e783(0x10d)]());}[_0x5c0916(0x10d)](){const _0x58e878=_0x5c0916,_0x3c3e21=this['_context'][_0x58e878(0xf1)],_0x4aeb55=this[_0x58e878(0x30a)];this['disposeWithMe'](I[_0x58e878(0x389)]([this[_0x58e878(0x24e)][_0x58e878(0x201)](_0x3c3e21),this[_0x58e878(0x25c)][_0x58e878(0x170)]])['pipe']($[_0x58e878(0x3af)](([_0xc444c,_0x1da2eb])=>({'skeleton':_0x4aeb55['getSkeleton'](),'cursors':[..._0xc444c[_0x58e878(0x164)]()][_0x58e878(0x128)](_0x3f4c3c=>({..._0x3f4c3c,'color':this[_0x58e878(0x25c)][_0x58e878(0x35c)](_0x3f4c3c['color'])}))})))[_0x58e878(0x30c)](_0xbade90=>{const _0x274dac=_0x58e878;if(this[_0x274dac(0x20f)](),_0xbade90){const {skeleton:_0x307cf9,cursors:_0x330cea}=_0xbade90;this[_0x274dac(0x12d)](_0x307cf9,_0x330cea);}})),this[_0x58e878(0x1a9)](),this[_0x58e878(0x156)]();}[_0x5c0916(0x12d)](_0x215dc8,_0x14311b){const _0x13c3be=_0x5c0916,{scene:_0x52a88f,mainComponent:_0x4b63f4}=this[_0x13c3be(0x3a0)],_0x56bd34=_0x14311b[_0x13c3be(0x3af)](_0x51965b=>new Le(_0x51965b,_0x52a88f,_0x215dc8,_0x4b63f4));this[_0x13c3be(0x2f3)]=_0x56bd34,this[_0x13c3be(0x2a6)]=_0x14311b;}['_refreshCollabCursors'](){const _0x83a0f1=_0x5c0916;this[_0x83a0f1(0x20f)]();const {scene:_0x50b963,mainComponent:_0x1e72f8}=this['_context'],_0x2fc249=this[_0x83a0f1(0x30a)][_0x83a0f1(0x3a6)](),_0x1e0eee=this[_0x83a0f1(0x2a6)][_0x83a0f1(0x3af)](_0x3e3975=>new Le(_0x3e3975,_0x50b963,_0x2fc249,_0x1e72f8));this[_0x83a0f1(0x2f3)]=_0x1e0eee;}[_0x5c0916(0x20f)](){const _0x36c3d8=_0x5c0916;this[_0x36c3d8(0x2f3)][_0x36c3d8(0x329)](_0x15f780=>_0x15f780[_0x36c3d8(0x2c2)]()),this['_cursorShapes']=[];}[_0x5c0916(0x156)](){const _0x257fb2=_0x5c0916,_0x578b3f=[T[_0x257fb2(0x244)]['id']];this[_0x257fb2(0x248)](this['_commandService'][_0x257fb2(0x108)](_0x4835e3=>{const _0x49342a=_0x257fb2;_0x578b3f['includes'](_0x4835e3['id'])&&_0x4835e3[_0x49342a(0x302)][_0x49342a(0xf1)]===this[_0x49342a(0x3a0)][_0x49342a(0xf1)]&&this[_0x49342a(0xf2)]();}));}[_0x5c0916(0x1a9)](){const _0x4a321b=_0x5c0916;this[_0x4a321b(0x248)](a[_0x4a321b(0x1d0)](this[_0x4a321b(0x3a0)][_0x4a321b(0x152)][_0x4a321b(0x36f)])[_0x4a321b(0x1ea)]($[_0x4a321b(0x288)](_0x43fcdb=>_0x43fcdb['type']===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x5c0916(0x25b)](V['DocSkeletonManagerService'])),q(0x2,a[_0x5c0916(0x25b)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x5c0916(0x25b)](a[_0x5c0916(0x129)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x5c0916(0x369)]{constructor(_0x3bd4ec,_0x5f2222){const _0x1d417e=_0x5c0916;super(_0x3bd4ec,_0x5f2222),_(this,_0x1d417e(0x30b)),_(this,_0x1d417e(0x2c1),!0x1),_(this,_0x1d417e(0x115)),_(this,_0x1d417e(0x14b),''),_(this,_0x1d417e(0x15a),_0x1d417e(0x397)),_(this,_0x1d417e(0x29a)),(_0x5f2222&&this[_0x1d417e(0x38a)](_0x5f2222),this[_0x1d417e(0x132)][_0x1d417e(0x247)](()=>this[_0x1d417e(0x38a)]({'hovered':!0x0})),this[_0x1d417e(0x2ca)][_0x1d417e(0x247)](()=>this[_0x1d417e(0x38a)]({'hovered':!0x1})));}[_0x5c0916(0x38a)](_0x1a67ae){const _0x4989ca=_0x5c0916;var _0x438813,_0x10e5c0,_0x40d57e,_0x415f79,_0x4efd1e,_0x33346e;this[_0x4989ca(0x30b)]=(_0x438813=_0x1a67ae['color'])!=null?_0x438813:this[_0x4989ca(0x30b)],this[_0x4989ca(0x2c1)]=(_0x10e5c0=_0x1a67ae[_0x4989ca(0x1d4)])!=null?_0x10e5c0:this[_0x4989ca(0x2c1)],this[_0x4989ca(0x115)]=(_0x40d57e=_0x1a67ae[_0x4989ca(0x1b5)])!=null?_0x40d57e:this[_0x4989ca(0x115)],this[_0x4989ca(0x14b)]=(_0x415f79=_0x1a67ae[_0x4989ca(0x225)])!=null?_0x415f79:this[_0x4989ca(0x14b)],this[_0x4989ca(0x15a)]=(_0x4efd1e=_0x1a67ae[_0x4989ca(0x2f7)])!=null?_0x4efd1e:this['_labelPosition'],this['_backgroundColor']=(_0x33346e=_0x1a67ae[_0x4989ca(0x264)])!=null?_0x33346e:this[_0x4989ca(0x29a)],this[_0x4989ca(0x346)]({'width':_0x1a67ae[_0x4989ca(0x31e)],'height':_0x1a67ae['height']});}[_0x5c0916(0x33c)](_0xdaddea){const _0xb29e4f=_0x5c0916,{row:_0xd8d62c,column:_0x4bcb3d}=_0xdaddea;if(_0xd8d62c>=this[_0xb29e4f(0x115)][_0xb29e4f(0x38d)]&&_0xd8d62c<=this[_0xb29e4f(0x115)][_0xb29e4f(0x278)]&&_0x4bcb3d>=this[_0xb29e4f(0x115)][_0xb29e4f(0x36b)]&&_0x4bcb3d<=this[_0xb29e4f(0x115)][_0xb29e4f(0x12f)]){this[_0xb29e4f(0x38a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5c0916(0x1b9)](_0x5b133b){return!0x1;}[_0x5c0916(0x1a5)](_0x17db0c){const _0x2ec1e8=_0x5c0916;C['Rect'][_0x2ec1e8(0x226)](_0x17db0c,{'width':this[_0x2ec1e8(0x31e)],'height':this[_0x2ec1e8(0x35d)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2ec1e8(0x29a)]}),this['_hovered']&&(_0x17db0c['save'](),_0x17db0c['transform'](0x1,0x0,0x0,0x1,this[_0x2ec1e8(0x31e)],this[_0x2ec1e8(0x15a)]==='bottom'?0x0:-X),re[_0x2ec1e8(0x226)](_0x17db0c,{'text':this[_0x2ec1e8(0x14b)],'color':this[_0x2ec1e8(0x30b)]}),_0x17db0c[_0x2ec1e8(0x365)]());}}var wt=Object[_0x5c0916(0x2d9)],yt=(_0x32623b,_0x4bdf06,_0x2eaf01,_0x5990a0)=>{const _0x2e2c8e=_0x5c0916;for(var _0x40eb5b=_0x5990a0>0x1?void 0x0:_0x5990a0?wt(_0x4bdf06,_0x2eaf01):_0x4bdf06,_0x2cb697=_0x32623b[_0x2e2c8e(0xf4)]-0x1,_0xd65061;_0x2cb697>=0x0;_0x2cb697--)(_0xd65061=_0x32623b[_0x2cb697])&&(_0x40eb5b=_0xd65061(_0x40eb5b)||_0x40eb5b);return _0x40eb5b;},ue=(_0x577957,_0x540f83)=>(_0x51e357,_0x2d0f8e)=>_0x540f83(_0x51e357,_0x2d0f8e,_0x577957);const $t=0x1389;let Ce=class extends a[_0x5c0916(0x11e)]{constructor(_0x55e17a,_0x3479d9,_0x271c17,_0x52595d){const _0x2fe455=_0x5c0916;super(),_(this,_0x2fe455(0x2a6),new Set()),_(this,_0x2fe455(0x160),null),(this[_0x2fe455(0x3a0)]=_0x55e17a,this[_0x2fe455(0x1e5)]=_0x3479d9,this[_0x2fe455(0x24e)]=_0x271c17,this[_0x2fe455(0x25c)]=_0x52595d,this[_0x2fe455(0x10d)]());}[_0x5c0916(0x10d)](){const _0x540614=_0x5c0916;this[_0x540614(0x1e5)]['currentSkeleton$'][_0x540614(0x1ea)]($['takeUntil'](this[_0x540614(0x101)]),$[_0x540614(0x2d8)](_0x801a38=>{const _0x53a71e=_0x540614;if(_0x801a38){const _0x476521=_0x801a38[_0x53a71e(0x19f)];return I[_0x53a71e(0x389)](this[_0x53a71e(0x24e)][_0x53a71e(0x201)](this['_context'][_0x53a71e(0xf1)]),this['_themeService'][_0x53a71e(0x170)])[_0x53a71e(0x1ea)]($[_0x53a71e(0x3af)](([_0x21807f,_0x4dcc37])=>{const _0x3400a4=_0x53a71e,_0x228d5d=new Map();return _0x21807f[_0x3400a4(0x329)]((_0x177240,_0x3040f9)=>{const _0xd0d47=_0x3400a4;if(_0x177240[_0xd0d47(0x313)]===_0x476521){const _0x4eff89={..._0x177240};_0x4eff89[_0xd0d47(0x1da)]=this[_0xd0d47(0x25c)]['getColorFromTheme'](_0x177240[_0xd0d47(0x1da)]),_0x228d5d['set'](_0x3040f9,_0x4eff89);}}),{'skeleton':_0x801a38,'cursors':_0x228d5d};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4ad6b6,cursors:_0x2b7982})=>{const _0x3d8217=_0x540614;this[_0x3d8217(0x20f)](),_0x4ad6b6&&this['_updateCollabCursors'](_0x4ad6b6,_0x2b7982);}),this[_0x540614(0x1e5)][_0x540614(0x14f)]['subscribe'](_0x2e904a=>{const _0x441675=_0x540614;if(_0x2e904a==null)return;const {skeleton:_0x312ccd}=_0x2e904a,{scene:_0x236e11}=this[_0x441675(0x3a0)];_0x236e11[_0x441675(0x1c3)][_0x441675(0x247)](a['debounce'](_0x151c9c=>{const _0x44a9be=_0x441675;var _0x220db6,_0x3d7729;const {offsetX:_0x4ab1f4,offsetY:_0x39f1c8}=_0x151c9c,{x:_0x562d97,y:_0x1c739c}=_0x236e11[_0x44a9be(0x1db)](C['Vector2'][_0x44a9be(0x292)]([_0x4ab1f4,_0x39f1c8])),{scaleX:_0x5b3122,scaleY:_0x27f312}=_0x236e11[_0x44a9be(0x169)](),_0x891ca=_0x236e11['getViewport'](C[_0x44a9be(0x1e6)][_0x44a9be(0x1bf)]),_0xea6828=_0x236e11[_0x44a9be(0x141)](C[_0x44a9be(0x1b2)][_0x44a9be(0x292)]([_0x562d97,_0x1c739c]),_0x891ca),_0x216e61=_0x312ccd[_0x44a9be(0x33d)](_0x4ab1f4,_0x39f1c8,_0x5b3122,_0x27f312,_0xea6828);((_0x220db6=this[_0x44a9be(0x160)])==null?void 0x0:_0x220db6[_0x44a9be(0x284)])===_0x216e61['column']&&((_0x3d7729=this[_0x44a9be(0x160)])==null?void 0x0:_0x3d7729[_0x44a9be(0x1af)])===_0x216e61[_0x44a9be(0x1af)]||this['_cursors'][_0x44a9be(0x329)](_0x4d51b8=>{const _0x58cacc=_0x44a9be;_0x4d51b8[_0x58cacc(0x33c)](_0x216e61);});},0x64));});}[_0x5c0916(0x12d)](_0x17c985,_0x10a8af){const _0xbf81f5=_0x5c0916;var _0x53e267;const _0x48c1a8=(_0x53e267=this[_0xbf81f5(0x1e5)][_0xbf81f5(0x216)]())==null?void 0x0:_0x53e267[_0xbf81f5(0x1ed)];if(!_0x48c1a8)return;const _0x223a03=this[_0xbf81f5(0x1a6)]();if(!_0x223a03)return;this[_0xbf81f5(0x2a6)][_0xbf81f5(0x329)](_0x35c7a6=>{_0x35c7a6['makeDirty']();});const {scene:_0x6896af}=_0x223a03,_0x320069=xt(Array[_0xbf81f5(0x227)](_0x10a8af['values']()))[_0xbf81f5(0x3af)](_0x172e16=>{const _0x4f3e2e=_0xbf81f5,{color:_0x2847bd,range:_0x148d53,name:_0x43b07f,selection:_0x482043,sheetID:_0x4c9e05}=_0x172e16,{startColumn:_0x835d56,startRow:_0x294e02,endColumn:_0x2f2006,endRow:_0x290060}=_0x148d53,_0x695247=J['getCoordByCell'](_0x294e02,_0x835d56,_0x6896af,_0x48c1a8),_0x295e03=J[_0x4f3e2e(0x219)](_0x290060,_0x2f2006,_0x6896af,_0x48c1a8),{columnHeaderHeightAndMarginTop:_0x50a007}=_0x48c1a8,{startX:_0x41d067,startY:_0x31af66}=_0x695247,{endX:_0x383181,endY:_0x2d5314}=_0x295e03,_0x5e7212=_0x383181-_0x41d067,_0x33b592=_0x2d5314-_0x31af66,_0x285687={'labelPosition':_0x31af66-_0x50a007>=X?_0x4f3e2e(0x397):_0x4f3e2e(0x318),'sheetID':_0x4c9e05,'range':_0x148d53,'color':_0x2847bd,'name':_0x43b07f,'selection':_0x482043,'left':_0x41d067,'top':_0x31af66,'width':_0x5e7212,'height':_0x33b592,'evented':!0x1,'zIndex':$t};return new je(_0x43b07f,_0x285687);});_0x6896af[_0xbf81f5(0x347)](_0x320069,At),this['_cursors']=new Set(_0x320069);}[_0x5c0916(0x20f)](){const _0x202b89=_0x5c0916;var _0x16e959;(_0x16e959=this['_cursors'])==null||_0x16e959[_0x202b89(0x329)](_0x1c2a15=>_0x1c2a15['dispose']());}['_getSheetObject'](){const _0x10528b=_0x5c0916;return J[_0x10528b(0x183)](this[_0x10528b(0x3a0)][_0x10528b(0x205)],this['_context']);}};Ce=yt([ue(0x1,a[_0x5c0916(0x25b)](J[_0x5c0916(0x135)])),ue(0x2,a[_0x5c0916(0x25b)](F)),ue(0x3,a[_0x5c0916(0x25b)](a['ThemeService']))],Ce);function xt(_0x490848){const _0x18128f=_0x5c0916,_0x418c6c=new Map();return _0x490848['forEach'](_0x11d0d8=>{const _0xe2205f=_0x22e8;if(_0x418c6c[_0xe2205f(0x2f4)](_0x11d0d8[_0xe2205f(0x305)])){const _0x2266fb=_0x418c6c[_0xe2205f(0x2fc)](_0x11d0d8['selection']);_0x2266fb[_0xe2205f(0x225)]+=',\x20'+_0x11d0d8['name'];}else _0x418c6c[_0xe2205f(0x212)](_0x11d0d8['selection'],_0x11d0d8);}),Array[_0x18128f(0x227)](_0x418c6c['values']());}var Bt=Object[_0x5c0916(0x2d9)],Ft=(_0x16a796,_0x29f111,_0x2b2977,_0x2f2d83)=>{const _0x5356ff=_0x5c0916;for(var _0x4f9d98=_0x2f2d83>0x1?void 0x0:_0x2f2d83?Bt(_0x29f111,_0x2b2977):_0x29f111,_0x389126=_0x16a796[_0x5356ff(0xf4)]-0x1,_0xfcaa2d;_0x389126>=0x0;_0x389126--)(_0xfcaa2d=_0x16a796[_0x389126])&&(_0x4f9d98=_0xfcaa2d(_0x4f9d98)||_0x4f9d98);return _0x4f9d98;},y=(_0x79a0a7,_0x58ca68)=>(_0x15f7c7,_0x59b68d)=>_0x58ca68(_0x15f7c7,_0x59b68d,_0x79a0a7);let Z=class extends a[_0x5c0916(0x1f6)]{constructor(_0x1bebb0,_0x29cab1,_0xb18c75,_0x2e1533,_0x5e5c59,_0x4d6123){const _0x566c35=_0x5c0916;super(),this[_0x566c35(0x125)]=_0x1bebb0,this[_0x566c35(0x207)]=_0x29cab1,this[_0x566c35(0xe0)]=_0xb18c75,this['_messageService']=_0x2e1533,this['_notificationService']=_0x5e5c59,this[_0x566c35(0x1d7)]=_0x4d6123,this[_0x566c35(0x18b)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x5620c7=_0x5c0916;this[_0x5620c7(0x248)](this[_0x5620c7(0x125)][_0x5620c7(0x1d6)](()=>{const _0x21ee33=_0x5620c7;if(this[_0x21ee33(0x207)][_0x21ee33(0x3a1)][_0x21ee33(0xe9)])return this[_0x21ee33(0x1d7)]['t']('collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x471cfd=_0x5c0916;this[_0x471cfd(0x248)](this[_0x471cfd(0xe0)][_0x471cfd(0x1e4)][_0x471cfd(0x30c)](_0x5b1e22=>{const _0x53131a=_0x471cfd;_0x5b1e22['id']===u['CollaborationUIEventId'][_0x53131a(0x35e)]&&this[_0x53131a(0x2c9)][_0x53131a(0x2bd)]({'type':p[_0x53131a(0x235)]['Warning'],'content':this[_0x53131a(0x1d7)]['t'](_0x53131a(0x15e))}),_0x5b1e22['id']===u[_0x53131a(0x23d)]['CLOSE_ROOM']&&this[_0x53131a(0x2c9)][_0x53131a(0x2bd)]({'type':p[_0x53131a(0x235)]['Warning'],'content':this['_localeService']['t'](_0x53131a(0x38f))}),_0x5b1e22['id']===u[_0x53131a(0x23d)]['PERMISSION_DENIED']&&this[_0x53131a(0x102)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this[_0x53131a(0x1d7)]['t'](_0x53131a(0x2bf)),'type':'error','duration':0x0}),_0x5b1e22['id']===u[_0x53131a(0x23d)][_0x53131a(0x367)]&&this[_0x53131a(0x2c9)][_0x53131a(0x2bd)]({'type':p['MessageType'][_0x53131a(0x154)],'content':this[_0x53131a(0x1d7)]['t'](_0x53131a(0x38f))+'('+_0x5b1e22[_0x53131a(0x324)]+')'}),_0x5b1e22['id']===u['CollaborationUIEventId'][_0x53131a(0x12b)]&&this[_0x53131a(0x2c9)][_0x53131a(0x2bd)]({'type':p[_0x53131a(0x235)]['Warning'],'content':this['_localeService']['t'](_0x5b1e22[_0x53131a(0x324)]||'')}),_0x5b1e22['id']===u[_0x53131a(0x23d)][_0x53131a(0x206)]&&this['_messageService']['show']({'type':p[_0x53131a(0x235)][_0x53131a(0x1ef)],'content':this[_0x53131a(0x1d7)]['t'](_0x53131a(0x335))}),_0x5b1e22['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x53131a(0x2bd)]({'type':p['MessageType'][_0x53131a(0x154)],'content':this['_localeService']['t']('session.connection-failed')}),_0x5b1e22['id']===u[_0x53131a(0x23d)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x53131a(0x2bd)]({'type':p[_0x53131a(0x235)][_0x53131a(0x154)],'content':this[_0x53131a(0x1d7)]['t'](_0x53131a(0x26d))});}));}};Z=Ft([y(0x0,O[_0x5c0916(0x173)]),y(0x1,u[_0x5c0916(0x1ad)]),y(0x2,a[_0x5c0916(0x25b)](u[_0x5c0916(0xec)])),y(0x3,O[_0x5c0916(0x36c)]),y(0x4,O[_0x5c0916(0x230)]),y(0x5,a[_0x5c0916(0x25b)](a[_0x5c0916(0x177)]))],Z);var jt=Object[_0x5c0916(0x2d9)],kt=(_0x2d5b9d,_0x2e03bb,_0x4af614,_0x84d96)=>{const _0x462db5=_0x5c0916;for(var _0x38ea9b=_0x84d96>0x1?void 0x0:_0x84d96?jt(_0x2e03bb,_0x4af614):_0x2e03bb,_0x259085=_0x2d5b9d[_0x462db5(0xf4)]-0x1,_0x2adc3d;_0x259085>=0x0;_0x259085--)(_0x2adc3d=_0x2d5b9d[_0x259085])&&(_0x38ea9b=_0x2adc3d(_0x38ea9b)||_0x38ea9b);return _0x38ea9b;},z=(_0x2dbe32,_0x55028e)=>(_0x47b767,_0x13577f)=>_0x55028e(_0x47b767,_0x13577f,_0x2dbe32);let Q=class extends a[_0x5c0916(0x1f6)]{constructor(_0x53fd1a,_0x2f55cb,_0x1d5ea4,_0x487b27){const _0x54555b=_0x5c0916;super(),_(this,'_memberID'),(this[_0x54555b(0x184)]=_0x53fd1a,this[_0x54555b(0x144)]=_0x2f55cb,this[_0x54555b(0x187)]=_0x1d5ea4,this[_0x54555b(0x10f)]=_0x487b27,this[_0x54555b(0x10d)]());}[_0x5c0916(0x10d)](){const _0x2837fc=_0x5c0916;this[_0x2837fc(0x287)](),this[_0x2837fc(0x259)](),this[_0x2837fc(0x255)](),this[_0x2837fc(0x150)]();}[_0x5c0916(0x150)](){const _0x47edc2=_0x5c0916;this['disposeWithMe'](this[_0x47edc2(0x10f)][_0x47edc2(0x322)][_0x47edc2(0x30c)](_0x21ec66=>{const _0x3ce30a=_0x47edc2;this[_0x3ce30a(0x1df)]=_0x21ec66==null?void 0x0:_0x21ec66['memberID'];}));}[_0x5c0916(0x287)](){const _0x24d4b3=_0x5c0916,_0x3ddfce=_0x1303ef=>{const _0x10b71a=_0x22e8;var _0x518300;this['_uploadLog'](_0x10b71a(0x364),_0x10b71a(0x11f)+_0x1303ef['message']+_0x10b71a(0x1fa)+_0x1303ef[_0x10b71a(0x395)]+':'+_0x1303ef['lineno']+':'+_0x1303ef[_0x10b71a(0x210)]+'\x0a'+(((_0x518300=_0x1303ef[_0x10b71a(0x364)])==null?void 0x0:_0x518300[_0x10b71a(0x180)])||''));};window[_0x24d4b3(0x232)](_0x24d4b3(0x364),_0x3ddfce),this['disposeWithMe'](()=>{window['removeEventListener']('error',_0x3ddfce);});}[_0x5c0916(0x259)](){const _0x461f62=_0x5c0916,_0x50ade7=_0x45c506=>{const _0x24ef56=_0x22e8;this[_0x24ef56(0xe4)](_0x24ef56(0x364),'[Unhandled\x20Rejection]:\x20'+_0x45c506[_0x24ef56(0xe6)]);};window['addEventListener'](_0x461f62(0x19e),_0x50ade7),this[_0x461f62(0x248)](()=>{const _0x487c95=_0x461f62;window[_0x487c95(0x378)](_0x487c95(0x19e),_0x50ade7);});}[_0x5c0916(0x255)](){const _0x4cb3c9=_0x5c0916,_0x37ff41=this[_0x4cb3c9(0x187)][_0x4cb3c9(0x364)]['bind'](this[_0x4cb3c9(0x187)]);this[_0x4cb3c9(0x187)]['error']=(..._0x503315)=>{const _0x137617=_0x4cb3c9,_0x3efbc3=_0x503315[_0x137617(0x3af)](_0x367a72=>_0x367a72 instanceof Error?_0x367a72['message']+'\x0a'+_0x367a72[_0x137617(0x180)]:String(_0x367a72))[_0x137617(0x32c)]('\x20');this['_uploadLog']('error',_0x137617(0x29c)+_0x3efbc3),_0x37ff41(..._0x503315);},this[_0x4cb3c9(0x248)](()=>{const _0x4f47bd=_0x4cb3c9;this[_0x4f47bd(0x187)][_0x4f47bd(0x364)]=_0x37ff41;});}[_0x5c0916(0xe4)](_0x2c8471,_0x58febd){const _0x2df102=_0x5c0916;try{const _0x322db9={'userId':this[_0x2df102(0x1df)],'logLabel':_0x2c8471,'content':_0x58febd};this['_httpService'][_0x2df102(0x374)](_0x2df102(0x104),{'body':_0x322db9})[_0x2df102(0x26f)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x5c0916(0x131)])),z(0x1,a['Inject'](x[_0x5c0916(0x1e7)])),z(0x2,a[_0x5c0916(0x2d4)]),z(0x3,a[_0x5c0916(0x25b)](u[_0x5c0916(0x295)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x5c0916(0x2d9)],Wt=(_0x3cadb9,_0x13c975,_0x466335,_0x536bfa)=>{const _0x26ebea=_0x5c0916;for(var _0x4858c5=_0x536bfa>0x1?void 0x0:_0x536bfa?Ht(_0x13c975,_0x466335):_0x13c975,_0x4634bf=_0x3cadb9[_0x26ebea(0xf4)]-0x1,_0xcff4c9;_0x4634bf>=0x0;_0x4634bf--)(_0xcff4c9=_0x3cadb9[_0x4634bf])&&(_0x4858c5=_0xcff4c9(_0x4858c5)||_0x4858c5);return _0x4858c5;},Ae=(_0x1c6d66,_0x45b87b)=>(_0xaa00d3,_0x5e9bb2)=>_0x45b87b(_0xaa00d3,_0x5e9bb2,_0x1c6d66);let ee=class{constructor(_0x346566,_0x53ee6d){const _0x4a35b9=_0x5c0916;this[_0x4a35b9(0x1fc)]=_0x346566,this[_0x4a35b9(0x306)]=_0x53ee6d;}[_0x5c0916(0x2cb)](_0x50b77d){const _0x389430=_0x5c0916;this[_0x389430(0x117)](_0x50b77d),this[_0x389430(0x1f5)](_0x50b77d);}[_0x5c0916(0x193)](_0x3971ae){const _0x280e22=_0x5c0916,{unitID:_0x3a3c89}=_0x3971ae,_0x22f3ad=this['_renderManagerService']['getRenderById'](_0x3a3c89)['with'](T[_0x280e22(0x37f)]),{redoCache:_0x38f140}=_0x22f3ad[_0x280e22(0x1c6)]();if(_0x38f140[_0x280e22(0xf4)]===0x0)return _0x3971ae;let _0x56e736=a[_0x280e22(0x388)][_0x280e22(0x372)](_0x3971ae['mutations'][0x0]);for(let _0x2fe2ea=0x0;_0x2fe2ea<_0x38f140[_0x280e22(0xf4)];_0x2fe2ea++){const _0x553a3f={'id':'doc.mutation.rich-text-editing','params':{..._0x38f140[_0x2fe2ea]}},_0x43e82c=this[_0x280e22(0x1fc)][_0x280e22(0x1c2)](_0x56e736,_0x553a3f,!0x1);if(g[_0x280e22(0x171)](_0x43e82c))throw _0x43e82c[_0x280e22(0x364)];_0x56e736=_0x43e82c[_0x280e22(0x25f)];}return{...a[_0x280e22(0x388)][_0x280e22(0x372)](_0x3971ae),'mutations':[_0x56e736]};}[_0x5c0916(0x117)](_0x356cec){const _0x3402ab=_0x5c0916,{unitID:_0x544691}=_0x356cec,_0xd3d42d=this[_0x3402ab(0x306)][_0x3402ab(0x311)](_0x544691)[_0x3402ab(0x2db)](T[_0x3402ab(0x37f)]),{undoCache:_0x256d9a,redoCache:_0x11724f}=_0xd3d42d[_0x3402ab(0x1c6)]();if(_0x256d9a['length']===0x0||_0x11724f['length']===0x0)return;const _0x4a4767=[],_0x1785c6=[];let _0x3f58f2=a[_0x3402ab(0x388)][_0x3402ab(0x372)](_0x356cec['mutations'][0x0]),_0x468971=a[_0x3402ab(0x388)][_0x3402ab(0x372)](_0x356cec[_0x3402ab(0x334)][0x0]);for(let _0x259e52=_0x256d9a['length']-0x1;_0x259e52>=0x0;_0x259e52--){const _0x13be14={'id':_0x3402ab(0x298),'params':{..._0x256d9a[_0x259e52]}},_0x4059b2={'id':_0x3402ab(0x298),'params':{..._0x11724f[_0x259e52]}},_0x41efcd=this[_0x3402ab(0x1fc)][_0x3402ab(0x1c2)](_0x3f58f2,_0x13be14,!0x1),_0x58e915=this[_0x3402ab(0x1fc)][_0x3402ab(0x1c2)](_0x468971,_0x4059b2,!0x1);if(g[_0x3402ab(0x171)](_0x41efcd))throw _0x41efcd[_0x3402ab(0x364)];if(g[_0x3402ab(0x171)](_0x58e915))throw _0x58e915['error'];_0x4a4767[_0x3402ab(0x356)](_0x41efcd['m2Prime']['params']),_0x1785c6[_0x3402ab(0x356)](_0x58e915['m2Prime']['params']),_0x3f58f2=_0x41efcd[_0x3402ab(0x25f)],_0x468971=_0x58e915[_0x3402ab(0x25f)];}_0xd3d42d[_0x3402ab(0x11c)]({'undoCache':_0x4a4767,'redoCache':_0x1785c6});}['_transformPreviousActiveRange'](_0x101952){const _0x29f2c7=_0x5c0916,{unitID:_0x1c8646}=_0x101952,_0x4646ec=this[_0x29f2c7(0x306)][_0x29f2c7(0x311)](_0x1c8646)[_0x29f2c7(0x2db)](T['DocIMEInputManagerService']),_0xb260fb=_0x4646ec[_0x29f2c7(0x127)]();if(_0xb260fb==null)return;const _0x57ccba=[{'id':_0x29f2c7(0x298),'params':{'unitId':_0x101952[_0x29f2c7(0x326)],'actions':null,'textRanges':[_0xb260fb]}}],_0x4a950d=this[_0x29f2c7(0x1fc)][_0x29f2c7(0x34c)](_0x101952,_0x57ccba);if(!g['isTransformMutationsWithChangesetSuccess'](_0x4a950d))throw _0x4a950d[_0x29f2c7(0x364)];const _0x3b2951=_0x4a950d['m2Prime'][0x0][_0x29f2c7(0x302)][_0x29f2c7(0x1c0)];Array['isArray'](_0x3b2951)&&_0x3b2951[_0x29f2c7(0xf4)]&&_0x4646ec['setActiveRange'](_0x3b2951[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x5c0916(0x149)])],ee);var Vt=Object[_0x5c0916(0x2d9)],Gt=(_0x3751cf,_0x323cea,_0x3ffd9b,_0x115422)=>{const _0x8b212e=_0x5c0916;for(var _0x3b0795=_0x115422>0x1?void 0x0:_0x115422?Vt(_0x323cea,_0x3ffd9b):_0x323cea,_0x35519e=_0x3751cf[_0x8b212e(0xf4)]-0x1,_0x4971a3;_0x35519e>=0x0;_0x35519e--)(_0x4971a3=_0x3751cf[_0x35519e])&&(_0x3b0795=_0x4971a3(_0x3b0795)||_0x3b0795);return _0x3b0795;},Ie=(_0x14678c,_0x5cd212)=>(_0xf539c8,_0x23e893)=>_0x5cd212(_0xf539c8,_0x23e893,_0x14678c);let te=class{constructor(_0x549cad,_0x133803,_0x20167c){const _0x20a434=_0x5c0916;this['_injector']=_0x549cad,this['_transformService']=_0x133803,this[_0x20a434(0x366)]=_0x20167c;}[_0x5c0916(0x10e)](_0x4c94c0){const _0xe7ca11=_0x5c0916;this[_0xe7ca11(0x265)](_0x4c94c0);}['transformRemoteChangeset'](_0xbdb932){const _0x32a2bf=_0x5c0916,{unitID:_0x43298c}=_0xbdb932,{collaboration:_0x5d5f5f}=this[_0x32a2bf(0x366)]['getStateCache'](_0x43298c);if(_0x5d5f5f[_0x32a2bf(0xf4)]===0x0)return _0xbdb932;let _0x527129=a[_0x32a2bf(0x388)][_0x32a2bf(0x372)](_0xbdb932['mutations'][0x0]);for(let _0x1db093=0x0;_0x1db093<_0x5d5f5f[_0x32a2bf(0xf4)];_0x1db093++){const _0x51e3a7={'id':_0x32a2bf(0x298),'params':{'unitId':_0x5d5f5f[_0x1db093][_0x32a2bf(0xf1)],..._0x5d5f5f[_0x1db093][_0x32a2bf(0x25d)]}},_0x48203a=this[_0x32a2bf(0x1fc)][_0x32a2bf(0x1c2)](_0x527129,_0x51e3a7,!0x1);if(g[_0x32a2bf(0x171)](_0x48203a))throw _0x48203a[_0x32a2bf(0x364)];_0x527129=_0x48203a[_0x32a2bf(0x25f)];}return{...a[_0x32a2bf(0x388)][_0x32a2bf(0x372)](_0xbdb932),'mutations':[_0x527129]};}['_transformHistoryAndStateStack'](_0x4d4b37){const _0x1a0dc2=_0x5c0916,{unitID:_0x388a22}=_0x4d4b37,{history:_0x171ede,collaboration:_0x10e9b0}=this[_0x1a0dc2(0x366)][_0x1a0dc2(0x15f)](_0x388a22);if(_0x171ede[_0x1a0dc2(0xf4)]===0x0&&_0x10e9b0[_0x1a0dc2(0xf4)]===0x0)return;const _0x21ccd4=[],_0xaf39d2=[];let _0x17c72a=a['Tools'][_0x1a0dc2(0x372)](_0x4d4b37[_0x1a0dc2(0x334)][0x0]),_0x4e9341=a[_0x1a0dc2(0x388)][_0x1a0dc2(0x372)](_0x4d4b37[_0x1a0dc2(0x334)][0x0]);for(let _0x16deb1=_0x171ede[_0x1a0dc2(0xf4)]-0x1;_0x16deb1>=0x0;_0x16deb1--){const _0x149fdd={'id':_0x1a0dc2(0x298),'params':{'unitId':_0x171ede[_0x16deb1][_0x1a0dc2(0xf1)],..._0x171ede[_0x16deb1][_0x1a0dc2(0x337)]}},_0xdeaec2={'id':_0x1a0dc2(0x298),'params':{'unitId':_0x171ede[_0x16deb1][_0x1a0dc2(0xf1)],..._0x171ede[_0x16deb1][_0x1a0dc2(0x25d)]}},_0x39d6c4=this[_0x1a0dc2(0x1fc)][_0x1a0dc2(0x1c2)](_0x17c72a,_0x149fdd,!0x1),_0x18a994=this[_0x1a0dc2(0x1fc)][_0x1a0dc2(0x1c2)](_0x4e9341,_0xdeaec2,!0x1);if(g['isTransformMutationFailure'](_0x39d6c4))throw _0x39d6c4[_0x1a0dc2(0x364)];if(g[_0x1a0dc2(0x171)](_0x18a994))throw _0x18a994[_0x1a0dc2(0x364)];_0x21ccd4[_0x1a0dc2(0x356)]({..._0x171ede[_0x16deb1],'undoState':_0x39d6c4[_0x1a0dc2(0x381)][_0x1a0dc2(0x302)],'redoState':_0x18a994['m2Prime']['params']}),_0x17c72a=_0x39d6c4[_0x1a0dc2(0x25f)],_0x4e9341=_0x18a994['m1Prime'];}_0x17c72a=a[_0x1a0dc2(0x388)][_0x1a0dc2(0x372)](_0x4d4b37[_0x1a0dc2(0x334)][0x0]),_0x4e9341=a[_0x1a0dc2(0x388)][_0x1a0dc2(0x372)](_0x4d4b37[_0x1a0dc2(0x334)][0x0]);for(let _0x58cca1=_0x10e9b0['length']-0x1;_0x58cca1>=0x0;_0x58cca1--){const _0x170c32={'id':_0x1a0dc2(0x298),'params':{'unitId':_0x10e9b0[_0x58cca1][_0x1a0dc2(0xf1)],..._0x10e9b0[_0x58cca1][_0x1a0dc2(0x337)]}},_0x985766={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x10e9b0[_0x58cca1][_0x1a0dc2(0xf1)],..._0x10e9b0[_0x58cca1]['redoState']}},_0x44d4bd=this[_0x1a0dc2(0x1fc)][_0x1a0dc2(0x1c2)](_0x17c72a,_0x170c32,!0x1),_0x4c1043=this['_transformService'][_0x1a0dc2(0x1c2)](_0x4e9341,_0x985766,!0x1);if(g['isTransformMutationFailure'](_0x44d4bd))throw _0x44d4bd[_0x1a0dc2(0x364)];if(g['isTransformMutationFailure'](_0x4c1043))throw _0x4c1043[_0x1a0dc2(0x364)];_0xaf39d2[_0x1a0dc2(0x356)]({..._0x10e9b0[_0x58cca1],'undoState':_0x44d4bd[_0x1a0dc2(0x381)]['params'],'redoState':_0x4c1043[_0x1a0dc2(0x381)]['params']}),_0x17c72a=_0x44d4bd[_0x1a0dc2(0x25f)],_0x4e9341=_0x4c1043[_0x1a0dc2(0x25f)];}this['_docStateChangeManagerService'][_0x1a0dc2(0x3a4)](_0x388a22,{'history':_0x21ccd4,'collaboration':_0xaf39d2});}};te=Gt([Ie(0x0,a[_0x5c0916(0x25b)](a[_0x5c0916(0x131)])),Ie(0x1,g[_0x5c0916(0x2a0)]),Ie(0x2,a[_0x5c0916(0x25b)](T[_0x5c0916(0x1b7)]))],te);var Xt=Object[_0x5c0916(0x2d9)],Kt=(_0x3ad92f,_0x28d56f,_0x1c6103,_0x3555f2)=>{const _0x384124=_0x5c0916;for(var _0x1e3e36=_0x3555f2>0x1?void 0x0:_0x3555f2?Xt(_0x28d56f,_0x1c6103):_0x28d56f,_0x8ccb29=_0x3ad92f[_0x384124(0xf4)]-0x1,_0x231bf7;_0x8ccb29>=0x0;_0x8ccb29--)(_0x231bf7=_0x3ad92f[_0x8ccb29])&&(_0x1e3e36=_0x231bf7(_0x1e3e36)||_0x1e3e36);return _0x1e3e36;},Pe=(_0x58bebe,_0x3fd131)=>(_0x4170a1,_0x5192e7)=>_0x3fd131(_0x4170a1,_0x5192e7,_0x58bebe);let se=class{constructor(_0x4e8c21,_0x51bbbd){const _0x4c4884=_0x5c0916;this[_0x4c4884(0x184)]=_0x4e8c21,this[_0x4c4884(0x1fc)]=_0x51bbbd;}['transformSelections'](_0x5b151a){const _0x240142=_0x5c0916;var _0x2122c3;const _0x88007=this[_0x240142(0x184)][_0x240142(0x2fc)](V[_0x240142(0x1f7)]),_0x5905cf=(_0x2122c3=_0x88007[_0x240142(0x2d0)]())!=null?_0x2122c3:[];if(_0x5905cf[_0x240142(0xf4)]===0x0)return;const _0x36ad3e=_0x5b151a[_0x240142(0x326)],_0xb3dbb1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36ad3e,'actions':null,'textRanges':_0x5905cf}}],_0x3183b1=this['_transformService'][_0x240142(0x34c)](_0x5b151a,_0xb3dbb1);if(!g[_0x240142(0x28d)](_0x3183b1))throw _0x3183b1[_0x240142(0x364)];const _0x4878a1=_0x3183b1[_0x240142(0x381)][0x0][_0x240142(0x302)][_0x240142(0x1c0)];Array['isArray'](_0x4878a1)&&_0x4878a1['length']&&_0x88007[_0x240142(0x192)](_0x4878a1,{'unitId':_0x36ad3e,'subUnitId':_0x36ad3e},!0x1);}};se=Kt([Pe(0x0,a[_0x5c0916(0x25b)](a[_0x5c0916(0x131)])),Pe(0x1,g[_0x5c0916(0x2a0)])],se);var qt=Object[_0x5c0916(0x2d9)],zt=(_0x3398b9,_0x423d6a,_0x130a93,_0x355337)=>{const _0x2826e2=_0x5c0916;for(var _0x1a3f02=_0x355337>0x1?void 0x0:_0x355337?qt(_0x423d6a,_0x130a93):_0x423d6a,_0x4fb1d4=_0x3398b9[_0x2826e2(0xf4)]-0x1,_0x35ef0e;_0x4fb1d4>=0x0;_0x4fb1d4--)(_0x35ef0e=_0x3398b9[_0x4fb1d4])&&(_0x1a3f02=_0x35ef0e(_0x1a3f02)||_0x1a3f02);return _0x1a3f02;},N=(_0x1f6ea6,_0x3eabfd)=>(_0x3bb233,_0x353bb1)=>_0x3eabfd(_0x3bb233,_0x353bb1,_0x1f6ea6);let ie=class extends a[_0x5c0916(0x1f6)]{constructor(_0x2a7ffa,_0xe2bfcf,_0x383e5b,_0x18c041,_0x4e2b3e,_0x2ea99a,_0x24cb3e,_0x3f71d0){const _0x3f8205=_0x5c0916;super(),_(this,_0x3f8205(0x203),new I[(_0x3f8205(0x204))](u[_0x3f8205(0x2bb)][_0x3f8205(0x2a2)])),(this[_0x3f8205(0x366)]=_0x2a7ffa,this['_collaborationController']=_0xe2bfcf,this[_0x3f8205(0x155)]=_0x383e5b,this[_0x3f8205(0x2a7)]=_0x18c041,this['_docTransformSelectionsService']=_0x4e2b3e,this[_0x3f8205(0x285)]=_0x2ea99a,this['_messageService']=_0x24cb3e,this[_0x3f8205(0x1d7)]=_0x3f71d0,this[_0x3f8205(0x262)]());}[_0x5c0916(0x262)](){const _0xaafcc8=_0x5c0916;this[_0xaafcc8(0x248)](this[_0xaafcc8(0x16a)][_0xaafcc8(0xf8)]['subscribe'](_0x38de56=>{const _0x2288fb=_0xaafcc8,_0x21c094=this[_0x2288fb(0x366)][_0x2288fb(0xe8)][_0x2288fb(0x30c)](_0x1901a0=>{const _0x4383ef=_0x2288fb;if(_0x1901a0==null)return;const {unitId:_0x538340,redoState:_0x4d5994,commandId:_0x5f1cb4}=_0x1901a0;if(_0x538340!==_0x38de56[_0x4383ef(0x326)])return;const _0x14c42c={'id':_0x5f1cb4,'type':a['CommandType'][_0x4383ef(0x301)],'params':{'unitId':_0x538340,'actions':_0x4d5994[_0x4383ef(0x2b5)],'textRanges':null}};_0x38de56['onLocalMutation'](_0x14c42c);});if(_0x38de56[_0x2288fb(0x248)](_0x21c094),_0x38de56 instanceof u[_0x2288fb(0x126)]){const _0x19f8f1={'onTransformIME':_0x131aec=>this[_0x2288fb(0x155)]['transformIMECache'](_0x131aec),'onTransformState':_0x37d568=>this['_docTransformStateCacheService']['transformStateCache'](_0x37d568),'onTransformSelections':_0x696ee1=>this['_docTransformSelectionsService'][_0x2288fb(0x1dc)](_0x696ee1),'onSyncEditingCollabCursor':_0x56f38f=>this[_0x2288fb(0x285)][_0x2288fb(0x291)](_0x56f38f),'onTransformRemoteChangesetByIMECache':_0x5e28fd=>this[_0x2288fb(0x155)][_0x2288fb(0x193)](_0x5e28fd),'onTransformRemoteChangesetByStateCache':_0x3532cc=>this[_0x2288fb(0x2a7)][_0x2288fb(0x193)](_0x3532cc)};_0x38de56[_0x2288fb(0x1a4)](_0x19f8f1);}}));}};ie=zt([N(0x0,a[_0x5c0916(0x25b)](T[_0x5c0916(0x1b7)])),N(0x1,a[_0x5c0916(0x25b)](u[_0x5c0916(0x34f)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x5c0916(0x25b)](te)),N(0x4,a[_0x5c0916(0x25b)](se)),N(0x5,a[_0x5c0916(0x25b)](be)),N(0x6,O[_0x5c0916(0x36c)]),N(0x7,a[_0x5c0916(0x25b)](a[_0x5c0916(0x177)]))],ie);var G=(_0x8e16ae=>(_0x8e16ae[_0x8e16ae['UNDEFINED']=0x0]=_0x5c0916(0x38b),_0x8e16ae[_0x8e16ae['OK']=0x1]='OK',_0x8e16ae[_0x8e16ae['INTERNAL_ERROR']=0x2]=_0x5c0916(0xeb),_0x8e16ae[_0x8e16ae[_0x5c0916(0x33b)]=0x3]=_0x5c0916(0x33b),_0x8e16ae[_0x8e16ae[_0x5c0916(0x22d)]=0x4]=_0x5c0916(0x22d),_0x8e16ae[_0x8e16ae[_0x5c0916(0x394)]=0x5]=_0x5c0916(0x394),_0x8e16ae[_0x8e16ae[_0x5c0916(0x31c)]=0x6]=_0x5c0916(0x31c),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2ce)]=0x7]=_0x5c0916(0x2ce),_0x8e16ae[_0x8e16ae['TOO_MANY_REQUESTS']=0x8]=_0x5c0916(0x344),_0x8e16ae[_0x8e16ae[_0x5c0916(0x138)]=0x9]=_0x5c0916(0x138),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2b1)]=0xa]='LOGIN_FAILED',_0x8e16ae[_0x8e16ae[_0x5c0916(0x188)]=0xb]=_0x5c0916(0x188),_0x8e16ae[_0x8e16ae[_0x5c0916(0x323)]=0xc]=_0x5c0916(0x323),_0x8e16ae[_0x8e16ae['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x5c0916(0x34d),_0x8e16ae[_0x8e16ae[_0x5c0916(0x20a)]=0xe]=_0x5c0916(0x20a),_0x8e16ae[_0x8e16ae[_0x5c0916(0x18f)]=0xf]=_0x5c0916(0x18f),_0x8e16ae[_0x8e16ae[_0x5c0916(0x174)]=0x10]=_0x5c0916(0x174),_0x8e16ae[_0x8e16ae[_0x5c0916(0x272)]=0x64]=_0x5c0916(0x272),_0x8e16ae[_0x8e16ae['ERROR_AGAIN']=0x65]=_0x5c0916(0x355),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2fd)]=0xc9]=_0x5c0916(0x2fd),_0x8e16ae[_0x8e16ae[_0x5c0916(0x21b)]=0xca]=_0x5c0916(0x21b),_0x8e16ae[_0x8e16ae['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5c0916(0x30e),_0x8e16ae[_0x8e16ae['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5c0916(0x2f2),_0x8e16ae[_0x8e16ae[_0x5c0916(0x1b8)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x8e16ae[_0x8e16ae[_0x5c0916(0x1b3)]=0x1773]=_0x5c0916(0x1b3),_0x8e16ae[_0x8e16ae[_0x5c0916(0x179)]=0x1b59]='APPLY_REJECT',_0x8e16ae[_0x8e16ae[_0x5c0916(0x124)]=0x1b5a]=_0x5c0916(0x124),_0x8e16ae[_0x8e16ae[_0x5c0916(0x240)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x8e16ae[_0x8e16ae[_0x5c0916(0x2fb)]=0x1b5c]=_0x5c0916(0x2fb),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2e1)]=0x1b5d]=_0x5c0916(0x2e1),_0x8e16ae[_0x8e16ae[_0x5c0916(0x1d8)]=0x1f41]=_0x5c0916(0x1d8),_0x8e16ae[_0x8e16ae[_0x5c0916(0x29f)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x8e16ae[_0x8e16ae[_0x5c0916(0x2f0)]=0x232a]=_0x5c0916(0x2f0),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2b0)]=0x232b]=_0x5c0916(0x2b0),_0x8e16ae[_0x8e16ae[_0x5c0916(0x300)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x8e16ae[_0x8e16ae[_0x5c0916(0x1c8)]=0x232d]=_0x5c0916(0x1c8),_0x8e16ae[_0x8e16ae[_0x5c0916(0x341)]=0x2711]=_0x5c0916(0x341),_0x8e16ae[_0x8e16ae[_0x5c0916(0x20b)]=0x2712]=_0x5c0916(0x20b),_0x8e16ae[_0x8e16ae['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5c0916(0x330),_0x8e16ae[_0x8e16ae[_0x5c0916(0x338)]=0x2714]=_0x5c0916(0x338),_0x8e16ae[_0x8e16ae[_0x5c0916(0x3a2)]=0x271a]=_0x5c0916(0x3a2),_0x8e16ae[_0x8e16ae[_0x5c0916(0x1e3)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x8e16ae[_0x8e16ae[_0x5c0916(0x260)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x8e16ae[_0x8e16ae[_0x5c0916(0x1d2)]=0x271d]=_0x5c0916(0x1d2),_0x8e16ae[_0x8e16ae[_0x5c0916(0x32d)]=0x271e]=_0x5c0916(0x32d),_0x8e16ae[_0x8e16ae['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x8e16ae[_0x8e16ae['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5c0916(0x267),_0x8e16ae[_0x8e16ae['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x8e16ae[_0x8e16ae[_0x5c0916(0x120)]=0x2ee1]=_0x5c0916(0x120),_0x8e16ae[_0x8e16ae[_0x5c0916(0x176)]=0x2ee2]=_0x5c0916(0x176),_0x8e16ae[_0x8e16ae['INVITE_CODE_REQUIRED']=0x2ee3]=_0x5c0916(0x3a8),_0x8e16ae[_0x8e16ae[_0x5c0916(0x21f)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x8e16ae[_0x8e16ae['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x8e16ae[_0x8e16ae['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x5c0916(0x1f0),_0x8e16ae[_0x8e16ae[_0x5c0916(0x175)]=0x32ca]=_0x5c0916(0x175),_0x8e16ae[_0x8e16ae[_0x5c0916(0x105)]=0x32cb]=_0x5c0916(0x105),_0x8e16ae[_0x8e16ae['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x5c0916(0x37a),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2f1)]=0x36b2]=_0x5c0916(0x2f1),_0x8e16ae[_0x8e16ae[_0x5c0916(0x172)]=0x36b3]=_0x5c0916(0x172),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2b7)]=0x36b4]=_0x5c0916(0x2b7),_0x8e16ae[_0x8e16ae[_0x5c0916(0x17a)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x8e16ae[_0x8e16ae[_0x5c0916(0x362)]=0x36b6]=_0x5c0916(0x362),_0x8e16ae[_0x8e16ae['ENTITLE_COUPON_USED_UP']=0x36b7]='ENTITLE_COUPON_USED_UP',_0x8e16ae[_0x8e16ae[_0x5c0916(0x123)]=0x36b8]=_0x5c0916(0x123),_0x8e16ae[_0x8e16ae[_0x5c0916(0x1ba)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x8e16ae[_0x8e16ae['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x5c0916(0x209),_0x8e16ae[_0x8e16ae[_0x5c0916(0x310)]=0x3717]=_0x5c0916(0x310),_0x8e16ae[_0x8e16ae[_0x5c0916(0x312)]=0x37dd]=_0x5c0916(0x312),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2a5)]=0x3a99]=_0x5c0916(0x2a5),_0x8e16ae[_0x8e16ae[_0x5c0916(0x387)]=0x3a9a]=_0x5c0916(0x387),_0x8e16ae[_0x8e16ae['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x8e16ae[_0x8e16ae['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x5c0916(0x23a),_0x8e16ae[_0x8e16ae['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x5c0916(0x119),_0x8e16ae[_0x8e16ae[_0x5c0916(0x2eb)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x8e16ae[_0x8e16ae['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x5c0916(0x2ad),_0x8e16ae[_0x8e16ae[_0x5c0916(0x20e)]=0x3e81]=_0x5c0916(0x20e),_0x8e16ae[_0x8e16ae[_0x5c0916(0x228)]=-0x1]=_0x5c0916(0x228),_0x8e16ae))(G||{});function Jt(_0xb0bdfe){const _0x50c769=_0x5c0916;var _0x5d2190,_0x29d67b;const _0x4e39da=(_0x5d2190=_0xb0bdfe[_0x50c769(0x2d1)])==null?void 0x0:_0x5d2190[_0x50c769(0x35f)],_0x417850=((_0x29d67b=_0xb0bdfe[_0x50c769(0x2d1)])==null?void 0x0:_0x29d67b[_0x50c769(0x29b)])||0x0;return _0x4e39da===B['FormulaExecuteStageType'][_0x50c769(0x20d)]&&_0x417850>0x0;}function Zt(_0x25ca5a){const _0x2b8735=_0x5c0916;return _0x25ca5a[_0x2b8735(0x26a)]===B[_0x2b8735(0x137)][_0x2b8735(0x282)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x5cdd56,_0x2683ce,_0x47c770,_0x50cb8a)=>{const _0x16f462=_0x5c0916;for(var _0x2cf2c4=_0x50cb8a>0x1?void 0x0:_0x50cb8a?Qt(_0x2683ce,_0x47c770):_0x2683ce,_0x5a75c8=_0x5cdd56[_0x16f462(0xf4)]-0x1,_0x2c0596;_0x5a75c8>=0x0;_0x5a75c8--)(_0x2c0596=_0x5cdd56[_0x5a75c8])&&(_0x2cf2c4=_0x2c0596(_0x2cf2c4)||_0x2cf2c4);return _0x2cf2c4;},L=(_0x13fc9e,_0x536998)=>(_0x21530e,_0x4f3a0f)=>_0x536998(_0x21530e,_0x4f3a0f,_0x13fc9e);const ts=_0x5c0916(0x19b),ss=_0x5c0916(0x1c7),is=_0x5c0916(0xfe);let ne=class extends a[_0x5c0916(0x1f6)]{constructor(_0x349e22,_0x130bdd,_0x39d405,_0xbe5a9d,_0x23eeff,_0x5bd950,_0x3fd631){const _0x5182fc=_0x5c0916;super(),_(this,_0x5182fc(0x39a),null),_(this,_0x5182fc(0x308),0x0),_(this,_0x5182fc(0x2ea),0x0),_(this,_0x5182fc(0x2c5),[]),_(this,_0x5182fc(0x32e),0x0),(this[_0x5182fc(0x2c9)]=_0x349e22,this['_commandService']=_0x130bdd,this[_0x5182fc(0x1f2)]=_0x39d405,this[_0x5182fc(0x144)]=_0xbe5a9d,this[_0x5182fc(0x39f)]=_0x23eeff,this[_0x5182fc(0x187)]=_0x5bd950,this[_0x5182fc(0x1d7)]=_0x3fd631,this['_initCommandInterceptor']());}['_initCommandInterceptor'](){const _0x31253e=_0x5c0916;this[_0x31253e(0x248)](this['_commandService'][_0x31253e(0x328)]((_0x2411f4,_0x19d75e)=>{const _0x2d4de6=_0x31253e;var _0x20f09f;if(_0x2411f4['id']!==B[_0x2d4de6(0x34b)]['id'])return;const _0x422a5b=_0x2411f4[_0x2d4de6(0x302)];if(!this[_0x2d4de6(0x199)]((_0x20f09f=_0x422a5b[_0x2d4de6(0x2f5)])!=null?_0x20f09f:[]))return;if(!this[_0x2d4de6(0x234)]())throw this['_checkAndWaitForCalculationPermission'](_0x2411f4,_0x19d75e),this[_0x2d4de6(0x33e)](),new a['CanceledError']();})),this[_0x31253e(0x248)](this['_commandService'][_0x31253e(0x108)]((_0x5b55d8,_0x48f991)=>{const _0x402387=_0x31253e;if(_0x5b55d8['id']!==B[_0x402387(0x2a1)]['id'])return;const _0x4cd200=_0x5b55d8[_0x402387(0x302)];if(Jt(_0x4cd200)){const _0x22a52b=a[_0x402387(0x33f)]();this['_taskIds'][_0x402387(0x39d)](_0x22a52b),this[_0x402387(0x1b0)](_0x22a52b);}else{if(Zt(_0x4cd200)&&this[_0x402387(0x2c5)][_0x402387(0xf4)]>0x0){const _0x514a82=this['_taskIds'][_0x402387(0x2de)]();this[_0x402387(0x19c)](_0x514a82);}}}));}[_0x5c0916(0x2c2)](){const _0x2a8da4=_0x5c0916;super[_0x2a8da4(0x2c2)](),this[_0x2a8da4(0x1bc)](),this['_taskIds']=[],this[_0x2a8da4(0x2ea)]=0x0,this[_0x2a8da4(0x308)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x5c0916(0x390)](_0x610953,_0x2ce845){const _0x29a612=_0x5c0916;for(let _0x5cbe38=0x0;_0x5cbe38<0x1e;_0x5cbe38++)try{if(await this[_0x29a612(0x245)](),this[_0x29a612(0x234)]()){this[_0x29a612(0x1de)](_0x610953,_0x2ce845),this[_0x29a612(0x2c9)][_0x29a612(0x2bd)]({'content':this['_localeService']['t'](_0x29a612(0x21e)),'type':p['MessageType'][_0x29a612(0x1b6)]});return;}await new Promise(_0x4066ec=>{const _0x581e89=_0x29a612;this[_0x581e89(0x39a)]=window[_0x581e89(0x1fe)](_0x4066ec,0x3e8);});}catch(_0x4b729d){this[_0x29a612(0x187)][_0x29a612(0x364)](_0x4b729d);}this[_0x29a612(0x2c9)][_0x29a612(0x2bd)]({'content':this[_0x29a612(0x1d7)]['t'](_0x29a612(0x31d)),'type':p[_0x29a612(0x235)][_0x29a612(0x154)]});}[_0x5c0916(0x1de)](_0x2b8103,_0x5c4918){const _0x5b622b=_0x5c0916;try{this['_commandService'][_0x5b622b(0x198)](_0x2b8103['id'],_0x2b8103[_0x5b622b(0x302)],_0x5c4918);}catch(_0x4dad5e){this[_0x5b622b(0x187)][_0x5b622b(0x364)](_0x4dad5e);}}[_0x5c0916(0x215)](_0xc465ae,_0x4a9370){const _0x5fa0ea=_0x5c0916;_0x4a9370<this['_lastResponseTimestamp']||(this[_0x5fa0ea(0x32e)]=_0x4a9370,this['_maxFormulaLimit']=Number[_0x5fa0ea(0x1fd)](_0xc465ae[_0x5fa0ea(0x110)]),this[_0x5fa0ea(0x2ea)]=Number[_0x5fa0ea(0x1fd)](_0xc465ae[_0x5fa0ea(0x21c)]));}async['_startCalculationLimit'](_0x283340){const _0x154130=_0x5c0916;var _0x409705,_0x29d161;const _0x550a73=Date[_0x154130(0x22b)]();try{const _0xa1f9c7=((_0x409705=this['_configService']['getConfig'](u[_0x154130(0x12a)]))==null?void 0x0:_0x409705[_0x154130(0x392)])||ss,_0x4b1b0d=(await this[_0x154130(0x144)][_0x154130(0x374)](_0xa1f9c7,{'body':JSON[_0x154130(0x1b4)]({'taskId':_0x283340})}))['body'];if(((_0x29d161=_0x4b1b0d[_0x154130(0x364)])==null?void 0x0:_0x29d161['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x4b1b0d[_0x154130(0x2aa)],_0x550a73);}catch(_0x43dae2){this[_0x154130(0x187)][_0x154130(0x364)](_0x43dae2);}}async[_0x5c0916(0x245)](_0x244fc5){const _0x2995cc=_0x5c0916;var _0xfca526,_0xf4fb7b;const _0x429adc=Date[_0x2995cc(0x22b)]();try{const _0x158acc=((_0xfca526=this['_configService'][_0x2995cc(0x348)](u[_0x2995cc(0x12a)]))==null?void 0x0:_0xfca526[_0x2995cc(0x163)])||ts,_0x36db81=_0x244fc5?_0x158acc+_0x2995cc(0x121)+encodeURIComponent(_0x244fc5):_0x158acc,_0x244095=(await this[_0x2995cc(0x144)][_0x2995cc(0x2fc)](_0x36db81))['body'];if(((_0xf4fb7b=_0x244095[_0x2995cc(0x364)])==null?void 0x0:_0xf4fb7b['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x244095[_0x2995cc(0x2aa)],_0x429adc);}catch(_0x31371e){this[_0x2995cc(0x187)][_0x2995cc(0x364)](_0x31371e);}}async[_0x5c0916(0x19c)](_0x3f55cd){const _0x3b99e0=_0x5c0916;var _0x2d4fea,_0x141c30;const _0x434bfb=Date[_0x3b99e0(0x22b)]();try{const _0x5756ff=((_0x2d4fea=this[_0x3b99e0(0x1f2)]['getConfig'](u[_0x3b99e0(0x12a)]))==null?void 0x0:_0x2d4fea[_0x3b99e0(0x36e)])||is,_0x47cba0=(await this[_0x3b99e0(0x144)][_0x3b99e0(0x374)](_0x5756ff,{'body':JSON[_0x3b99e0(0x1b4)]({'taskId':_0x3f55cd})}))['body'];if(((_0x141c30=_0x47cba0[_0x3b99e0(0x364)])==null?void 0x0:_0x141c30[_0x3b99e0(0x229)])!==G['OK'])return;this[_0x3b99e0(0x215)](_0x47cba0[_0x3b99e0(0x2aa)],_0x434bfb);}catch(_0x5b80fa){this['_logService'][_0x3b99e0(0x364)](_0x5b80fa);}}[_0x5c0916(0x234)](){const _0x2a05fc=_0x5c0916;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x2a05fc(0x308)]-this[_0x2a05fc(0x2ea)]>0x0;}['_clearPolling'](){const _0x50b274=_0x5c0916;this[_0x50b274(0x39a)]&&(clearTimeout(this[_0x50b274(0x39a)]),this[_0x50b274(0x39a)]=null);}['_showGuardMessage'](){const _0x38fdd2=_0x5c0916;this[_0x38fdd2(0x2c9)]['show']({'content':this[_0x38fdd2(0x1d7)]['t'](_0x38fdd2(0x2a8)),'type':p['MessageType'][_0x38fdd2(0x2ec)]});}[_0x5c0916(0x199)](_0x46021f){const _0x28350c=_0x5c0916;for(const _0x540482 of _0x46021f){const {unitId:_0x1bebbe,sheetId:_0x5908ed,range:_0x5c5e01}=_0x540482,_0x28a3f2=this[_0x28350c(0x39f)]['getUnit'](_0x1bebbe);if(!_0x28a3f2)continue;const _0x248d4c=_0x28a3f2[_0x28350c(0x3aa)](_0x5908ed);if(!_0x248d4c)continue;const _0x431dff=_0x248d4c[_0x28350c(0x1bb)]();for(let _0x8f82ad=_0x5c5e01[_0x28350c(0x38d)];_0x8f82ad<=_0x5c5e01[_0x28350c(0x278)];_0x8f82ad++)for(let _0x43a135=_0x5c5e01[_0x28350c(0x36b)];_0x43a135<=_0x5c5e01[_0x28350c(0x12f)];_0x43a135++){const _0x375b54=_0x431dff[_0x28350c(0x213)](_0x8f82ad,_0x43a135);if(_0x375b54&&(a[_0x28350c(0x23b)](_0x375b54['f'])||a[_0x28350c(0x379)](_0x375b54['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x5c0916(0x25b)](O[_0x5c0916(0x36c)])),L(0x1,a[_0x5c0916(0x2e0)]),L(0x2,a[_0x5c0916(0x3b1)]),L(0x3,a[_0x5c0916(0x25b)](x[_0x5c0916(0x1e7)])),L(0x4,a[_0x5c0916(0x2fe)]),L(0x5,a[_0x5c0916(0x2d4)]),L(0x6,a[_0x5c0916(0x25b)](a[_0x5c0916(0x177)]))],ne);var ns=Object[_0x5c0916(0x2d9)],rs=(_0x138aeb,_0x493636,_0x34bb00,_0x4407e0)=>{const _0x11c165=_0x5c0916;for(var _0x2dd8af=_0x4407e0>0x1?void 0x0:_0x4407e0?ns(_0x493636,_0x34bb00):_0x493636,_0x1bf14b=_0x138aeb[_0x11c165(0xf4)]-0x1,_0x306303;_0x1bf14b>=0x0;_0x1bf14b--)(_0x306303=_0x138aeb[_0x1bf14b])&&(_0x2dd8af=_0x306303(_0x2dd8af)||_0x2dd8af);return _0x2dd8af;},Se=(_0x198422,_0x200e00)=>(_0x1731b8,_0x68982a)=>_0x200e00(_0x1731b8,_0x68982a,_0x198422);let Te=class extends a[_0x5c0916(0x1f6)]{constructor(_0x4baac3,_0x2cc06f,_0x3cf160){const _0x3885d9=_0x5c0916;super(),_(this,_0x3885d9(0x29e),new Map()),_(this,_0x3885d9(0x1c4),new Map()),_(this,_0x3885d9(0x1b1),!0x1),(this[_0x3885d9(0x1f2)]=_0x4baac3,this['_localStorageService']=_0x2cc06f,this[_0x3885d9(0x32f)]=_0x3cf160);}[_0x5c0916(0x238)](){const _0x5202d5=_0x5c0916;this[_0x5202d5(0x1b1)]=!0x0;}[_0x5c0916(0x2ae)](){const _0x39bf80=_0x5c0916;this[_0x39bf80(0x1b1)]=!0x1;}get[_0x5c0916(0x3a1)](){const _0x538b5f=_0x5c0916;return this[_0x538b5f(0x1c4)];}[_0x5c0916(0x2c2)](){const _0x171a93=_0x5c0916;this[_0x171a93(0x316)]()['then'](()=>super[_0x171a93(0x2c2)]());}async[_0x5c0916(0x363)](_0x1eb82c){const _0x347c30=_0x5c0916;return this[_0x347c30(0x1b1)]?null:this[_0x347c30(0x103)][_0x347c30(0x266)](u['getLocalCacheKey'](_0x1eb82c));}async[_0x5c0916(0x276)](_0x7ae3c5,_0x346f99){const _0x40b00f=_0x5c0916;return!!this[_0x40b00f(0x103)][_0x40b00f(0x3a3)](_0x7ae3c5,_0x346f99);}['updateOfflineData'](_0xe7b25f,_0x445a0e,_0x1c0ab5,_0x3a6491){const _0x249f54=_0x5c0916,_0x33d48d=this[_0x249f54(0x32f)][_0x249f54(0x331)](_0xe7b25f);this['_cachedData'][_0x249f54(0x212)](_0xe7b25f,{'unitID':_0xe7b25f,'type':_0x445a0e,'awaitingChangeset':_0x1c0ab5,'mutations':_0x3a6491,'rev':_0x33d48d}),this[_0x249f54(0x1c4)]['has'](_0xe7b25f)||this[_0x249f54(0x27d)](_0xe7b25f);}['_scheduleSaving'](_0x1e4ff6){const _0x321dc7=_0x5c0916,_0x116ea2=this[_0x321dc7(0x36a)]();_0x116ea2===0x0?this['_saveCache'](_0x1e4ff6):this[_0x321dc7(0x1c4)]['set'](_0x1e4ff6,setTimeout(()=>this['_saveCache'](_0x1e4ff6),_0x116ea2));}[_0x5c0916(0x36a)](){const _0x2319c1=_0x5c0916;var _0x3783aa;return(_0x3783aa=this['_configService'][_0x2319c1(0x348)](u[_0x2319c1(0x1c1)]))!=null?_0x3783aa:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x46727a){const _0x444153=_0x5c0916,_0x87f11b=this[_0x444153(0x1c4)][_0x444153(0x2fc)](_0x46727a);return _0x87f11b!==void 0x0&&window['clearTimeout'](_0x87f11b),this[_0x444153(0x103)][_0x444153(0x3a3)](u['getLocalCacheKey'](_0x46727a),this['_cachedData'][_0x444153(0x2fc)](_0x46727a))[_0x444153(0x2d5)](()=>this[_0x444153(0x1c4)][_0x444153(0x327)](_0x46727a));}async['exhaustSavingTask'](){const _0x48d3c6=_0x5c0916,_0x5b7a4a=[];this[_0x48d3c6(0x1c4)][_0x48d3c6(0x329)]((_0x39588f,_0x57b71f)=>{const _0x2674ef=_0x48d3c6;window[_0x2674ef(0x202)](_0x39588f),_0x5b7a4a['push'](this['_saveCache'](_0x57b71f)[_0x2674ef(0x2d5)](()=>{const _0x24f759=_0x2674ef;this[_0x24f759(0x1c4)][_0x24f759(0x327)](_0x57b71f);}));}),await Promise['all'](_0x5b7a4a);}};Te=rs([Se(0x0,a[_0x5c0916(0x3b1)]),Se(0x1,a[_0x5c0916(0x1ab)]),Se(0x2,a['Inject'](g['RevisionService']))],Te);class ke extends a['RxDisposable']{constructor(){const _0x7d45f5=_0x5c0916;super(),_(this,_0x7d45f5(0xdf)),this[_0x7d45f5(0xdf)]=I[_0x7d45f5(0x1e8)](window,'popstate')[_0x7d45f5(0x1ea)](I['takeUntil'](this[_0x7d45f5(0x101)]),I[_0x7d45f5(0xe5)](0x1),I[_0x7d45f5(0x18c)](void 0x0));}[_0x5c0916(0x252)](_0x685239,_0x393ace,_0x24bc6a=!0x1){const _0x1bf565=_0x5c0916,_0x37c898=new URL(window['location']['href']);_0x37c898[_0x1bf565(0x2e5)][_0x1bf565(0x212)](_0x685239,_0x393ace),_0x24bc6a?window[_0x1bf565(0x2d3)]['replaceState']('','',_0x37c898[_0x1bf565(0x2cc)]()):window[_0x1bf565(0x2d3)][_0x1bf565(0x2cf)]('','',_0x37c898[_0x1bf565(0x2cc)]());}[_0x5c0916(0x25e)](_0x30029a,_0x5d2796=!0x1){const _0x45b746=_0x5c0916,_0x18ef7f=new URL(window[_0x45b746(0x28e)][_0x45b746(0x350)]);_0x18ef7f[_0x45b746(0x2e5)][_0x45b746(0x327)](_0x30029a),_0x5d2796?window[_0x45b746(0x2d3)][_0x45b746(0x345)]('','',_0x18ef7f[_0x45b746(0x2cc)]()):window[_0x45b746(0x2d3)][_0x45b746(0x2cf)]('','',_0x18ef7f['toString']());}[_0x5c0916(0x32a)](_0x35450b){const _0x301efe=_0x5c0916;var _0x48dbe0;return(_0x48dbe0=new URL(window['location']['href'])[_0x301efe(0x2e5)]['get'](_0x35450b))!=null?_0x48dbe0:void 0x0;}}var os=Object[_0x5c0916(0x13d)],as=Object[_0x5c0916(0x2d9)],cs=(_0x5be13f,_0x77e5c6,_0x2d2f42)=>_0x77e5c6 in _0x5be13f?os(_0x5be13f,_0x77e5c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d2f42}):_0x5be13f[_0x77e5c6]=_0x2d2f42,ls=(_0x5d7c30,_0x3986c9,_0x384e3b,_0x3eb31b)=>{const _0x1005a9=_0x5c0916;for(var _0x250b69=_0x3eb31b>0x1?void 0x0:_0x3eb31b?as(_0x3986c9,_0x384e3b):_0x3986c9,_0x19adb6=_0x5d7c30[_0x1005a9(0xf4)]-0x1,_0x81ceef;_0x19adb6>=0x0;_0x19adb6--)(_0x81ceef=_0x5d7c30[_0x19adb6])&&(_0x250b69=_0x81ceef(_0x250b69)||_0x250b69);return _0x250b69;},de=(_0x3b2408,_0x1c7be)=>(_0x5428f4,_0x7b8287)=>_0x1c7be(_0x5428f4,_0x7b8287,_0x3b2408),_s=(_0x371d12,_0x33c755,_0x5c4e25)=>cs(_0x371d12,_0x33c755+'',_0x5c4e25);const hs=_0x5c0916(0x19d);exports[_0x5c0916(0x351)]=class extends a[_0x5c0916(0x2f6)]{constructor(_0x341a75=Me,_0x3b0940,_0x560b5f,_0x36c97f){const _0x8a7efc=_0x5c0916;super(),this[_0x8a7efc(0x1f4)]=_0x341a75,this[_0x8a7efc(0x306)]=_0x3b0940,this[_0x8a7efc(0x184)]=_0x560b5f,this['_configService']=_0x36c97f;const {..._0x39726f}=a['merge']({},Me,this[_0x8a7efc(0x1f4)]);this[_0x8a7efc(0x1f2)][_0x8a7efc(0x17e)](Yt,_0x39726f);}['onStarting'](){const _0x5c9f27=_0x5c0916;this[_0x5c9f27(0x16e)](),this[_0x5c9f27(0x303)]();}[_0x5c0916(0xf9)](){const _0x7990a5=_0x5c0916;this[_0x7990a5(0x39c)]();}[_0x5c0916(0x16e)](){const _0x576eac=_0x5c0916;var _0x1b561d;const _0x428bd9=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x576eac(0x224)],{'useClass':x[_0x576eac(0x1ee)]}],[u[_0x576eac(0x1ad)],{'useClass':Te}],[exports[_0x576eac(0x2ac)]],[ie],[Z],[F],[me],[exports[_0x576eac(0xe7)]]];this[_0x576eac(0x1f4)]['enableFrontendLog']&&_0x428bd9[_0x576eac(0x39d)]([Q]),a['registerDependencies'](this[_0x576eac(0x184)],a[_0x576eac(0x2b6)](_0x428bd9,(_0x1b561d=this['_config'])==null?void 0x0:_0x1b561d[_0x576eac(0x2c7)]));}[_0x5c0916(0x39c)](){const _0xe40d41=_0x5c0916;this[_0xe40d41(0x248)](this[_0xe40d41(0x306)][_0xe40d41(0x1f3)](a[_0xe40d41(0x380)][_0xe40d41(0xe2)],[Ee])),this[_0xe40d41(0x248)](this['_renderManagerService']['registerRenderModule'](a[_0xe40d41(0x380)][_0xe40d41(0x359)],[Ce]));}[_0x5c0916(0x303)](){const _0x82f2de=_0x5c0916;a[_0x82f2de(0x3ad)](this['_injector'],[[F],[exports[_0x82f2de(0x2ac)]],[ie],[Z],[exports[_0x82f2de(0xe7)]],[ne]]),this[_0x82f2de(0x1f4)][_0x82f2de(0x39e)]&&a[_0x82f2de(0x3ad)](this[_0x82f2de(0x184)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x5c0916(0xfa),hs),exports[_0x5c0916(0x351)]=ls([a[_0x5c0916(0x1ac)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x5c0916(0x149)]),de(0x2,a[_0x5c0916(0x25b)](a[_0x5c0916(0x131)])),de(0x3,a['IConfigService'])],exports[_0x5c0916(0x351)]);var us=Object[_0x5c0916(0x2d9)],Is=(_0x12ae72,_0x5954bf,_0x195333,_0x90bfa7)=>{for(var _0x18a8c0=_0x90bfa7>0x1?void 0x0:_0x90bfa7?us(_0x5954bf,_0x195333):_0x5954bf,_0x4828b5=_0x12ae72['length']-0x1,_0x2063b4;_0x4828b5>=0x0;_0x4828b5--)(_0x2063b4=_0x12ae72[_0x4828b5])&&(_0x18a8c0=_0x2063b4(_0x18a8c0)||_0x18a8c0);return _0x18a8c0;},W=(_0x281f2a,_0x51daaa)=>(_0x53df61,_0x397afa)=>_0x51daaa(_0x53df61,_0x397afa,_0x281f2a);exports['BrowserCollaborationSocketService']=class extends u[_0x5c0916(0x304)]{constructor(_0x5ed7b2,_0x5b2e94,_0x444f8b,_0x5689bf,_0xbb177c){super(_0x5ed7b2,_0x5b2e94,_0x444f8b,_0x5689bf,_0xbb177c);}async[_0x5c0916(0x352)](_0x4f21f4){const _0x61dcf0=_0x5c0916,_0x4dca60=await this[_0x61dcf0(0x1cd)](),_0x2ebd17=this[_0x61dcf0(0x1a2)](_0x4f21f4,_0x4dca60);return this[_0x61dcf0(0x36d)](_0x2ebd17);}[_0x5c0916(0x1a2)](_0x153ee7,_0x105f3b){const _0x27a262=_0x5c0916,_0x1e325e=typeof window>'u'?new URL(_0x153ee7):new URL(_0x153ee7,window[_0x27a262(0x28e)][_0x27a262(0x14c)]);_0x1e325e[_0x27a262(0x2e5)]['set'](_0x27a262(0x1cc),_0x105f3b);const _0x257153=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x257153[_0x27a262(0x2fc)]('runId')&&_0x1e325e[_0x27a262(0x2e5)][_0x27a262(0x212)](_0x27a262(0x384),_0x257153[_0x27a262(0x2fc)](_0x27a262(0x384))),_0x1e325e[_0x27a262(0x2cc)]();}async[_0x5c0916(0x1cd)](){const _0x547a4b=_0x5c0916;var _0x574090,_0x133cda,_0x36ffa1;const _0x477e06=this[_0x547a4b(0x1f2)][_0x547a4b(0x348)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x3f210a=(_0x574090=_0x477e06==null?void 0x0:_0x477e06[_0x547a4b(0x249)])!=null?_0x574090:u[_0x547a4b(0x15c)];return(_0x36ffa1=(_0x133cda=(await this['_httpService'][_0x547a4b(0x2fc)](_0x3f210a,{'headers':{'Content-Type':_0x547a4b(0xf3)}}))['body'])==null?void 0x0:_0x133cda[_0x547a4b(0x159)])!=null?_0x36ffa1:'';}},exports[_0x5c0916(0x271)]=Is([W(0x0,a[_0x5c0916(0x25b)](a[_0x5c0916(0x131)])),W(0x1,a[_0x5c0916(0x25b)](x[_0x5c0916(0x1e7)])),W(0x2,a[_0x5c0916(0x3b1)]),W(0x3,a[_0x5c0916(0x2d4)]),W(0x4,g['ISnapshotServerService'])],exports[_0x5c0916(0x271)]);var Ss=Object[_0x5c0916(0x2d9)],ds=(_0x4f6e94,_0xb816e7,_0x1ec911,_0x1f5b6b)=>{for(var _0x43c3a5=_0x1f5b6b>0x1?void 0x0:_0x1f5b6b?Ss(_0xb816e7,_0x1ec911):_0xb816e7,_0x252bc4=_0x4f6e94['length']-0x1,_0x44ce53;_0x252bc4>=0x0;_0x252bc4--)(_0x44ce53=_0x4f6e94[_0x252bc4])&&(_0x43c3a5=_0x44ce53(_0x43c3a5)||_0x43c3a5);return _0x43c3a5;},fe=(_0x2b35a1,_0x5c3e69)=>(_0x4b6c3f,_0x7cdbb9)=>_0x5c3e69(_0x4b6c3f,_0x7cdbb9,_0x2b35a1);exports['RemoteUniscriptService']=class extends a[_0x5c0916(0x1f6)]{constructor(_0x5c03d8,_0x182248,_0x561852){const _0x3e91bd=_0x5c0916;super(),this[_0x3e91bd(0x332)]=_0x5c03d8,this[_0x3e91bd(0x144)]=_0x182248,this[_0x3e91bd(0x1f2)]=_0x561852;}async[_0x5c0916(0x157)](_0x207232,_0x24b928,_0x1b57e4,..._0x50c037){const _0x23d2ff=_0x5c0916;var _0x12d11d,_0x3d6a2b,_0x245344,_0x26ac30;const _0x210e75=this[_0x23d2ff(0x332)][_0x23d2ff(0x1d3)]();if(!_0x210e75)throw new Error(_0x23d2ff(0x1ec));const _0x54379c=((_0x12d11d=this[_0x23d2ff(0x1f2)][_0x23d2ff(0x348)](u[_0x23d2ff(0xed)]))!=null?_0x12d11d:u[_0x23d2ff(0x214)])+'/'+_0x207232+'/run/'+_0x24b928,_0x481da0=new URL(window['location'][_0x23d2ff(0x350)]),_0x3b530a={'scriptId':_0x207232,'runId':(_0x3d6a2b=_0x481da0[_0x23d2ff(0x2e5)][_0x23d2ff(0x2fc)]('runId'))!=null?_0x3d6a2b:'','function':_0x24b928,'unitId':_0x210e75[_0x23d2ff(0x190)](),'argsOfFunction':JSON['stringify'](_0x50c037),'invokeId':(_0x245344=_0x1b57e4[_0x23d2ff(0x1e9)])!=null?_0x245344:'','executionId':(_0x26ac30=_0x1b57e4[_0x23d2ff(0xe1)])!=null?_0x26ac30:''};try{const _0x373811=await this[_0x23d2ff(0x144)][_0x23d2ff(0x374)](_0x54379c,{'body':_0x3b530a});return _0x373811[_0x23d2ff(0x361)]['error']&&_0x373811[_0x23d2ff(0x361)][_0x23d2ff(0x364)][_0x23d2ff(0x229)]!==G['OK']?'Failed':_0x373811[_0x23d2ff(0x361)][_0x23d2ff(0x2b9)];}catch{return'Failed';}}},exports[_0x5c0916(0x283)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x5c0916(0x25b)](x[_0x5c0916(0x1e7)])),fe(0x2,a[_0x5c0916(0x3b1)])],exports[_0x5c0916(0x283)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';function _0x46d4(){const _0x36156f=['transformMutationsWithChangeset','EMAIL_VERIFY_CODE_MISMATCH','requireSession','CollaborationController','href','UniverCollaborationClientUIPlugin','createSocket','focused$','disposeUnit','ERROR_AGAIN','unshift','Workbook','_updateURLWithCurrentState','UNIVER_SHEET','collab-text-anchor-','OffLineIcon','getColorFromTheme','height','OTHER_CLIENT_EDITING','stage','forwardRef','body','ENTITLE_COUPON_EXPIRED','loadOfflineData','error','restore','_docStateChangeManagerService','CONFLICT','mask','Shape','_getSaveTimeout','startColumn','IMessageService','_doCreateSocket','releaseFormulaLimitUrl','onTransformChange$','getColor','getMember','deepClone','_scheduleClearOtherTimer','post','_setupSubUnitSync','purple.300','414ELJDUO','removeEventListener','isFormulaId','ENTITLE_CAN_NOT_BUY_LOWER_OTP','unsubscribe','_heartbeatTimer','_handleHeartbeatEvent','reconnect','DocIMEInputManagerService','UniverInstanceType','m2Prime','InsertRangeMoveDownCommandId','SetWorksheetActivateCommand','runId','M0\x200H16V16H0z','_onCursorDelete','REDEMPTION_CODE_INACTIVE','Tools','combineLatest','setShapeProps','UNDEFINED','entries','startRow','collabStatus.offline','collaboration.closeRoom','_checkAndWaitForCalculationPermission','hide','startFormulaLimitUrl','_cursor','UNAUTHENTICATED','filename','assign','top','text','fill','_pollingInterval','parse','_registerRenderDependencies','push','enableFrontendLog','_univerInstanceService','_context','saveTaskMap','YUUMI_NO_CUBOID_FOR_QUESTION','setItem','setStateCache','tag','getSkeleton','MemberService','INVITE_CODE_REQUIRED','send','getSheetBySheetId','serializeRangeWithSheet','saveImage','touchDependencies','symbol','map','black','IConfigService','_entityInit$','urlChange$','_collaborationUIEventService','executionId','UNIVER_DOC','subunit','_uploadLog','shareReplay','reason','CollaborationDataLoaderController','docStateChange$','size','white','INTERNAL_ERROR','CollaborationUIEventService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getMemberID','InsertColCommandId','isEditing','unitId','_refreshCollabCursors','application/json','length','SessionStatus','USERS_LEAVE','_scheduleHeartbeat','entityInit$','onRendered','pluginName','BuiltInUIPart','RichTextEditingMutation','createInstance','/universer-api/license/formula/limit/done','_roomMembers$','_unitStatus','dispose$','_notificationService','_localStorageService','/universer-api/frontend/logs','EMAIL_HAS_BEEN_BOUND','startsWith','includes','onCommandExecuted','32784nlrpPe','collabStatus.fetchMiss','NO_OTHER_CLIENTS_EDITING','createElement','_init','transformStateCache','_collaborationSessionService','maxFormulaLimit','selections','_render','Subject','handleInsertRangeMoveDown','_range','_entities','_transformUndoRedoStack','TEXT_RANGE_LAYER_INDEX','REDEMPTION_USER_NOT_ELIGIBLE','deserializeRangeWithSheet','registerComponent','setUndoRedoMutationParamsCache','_initStatusComponent','RxDisposable','[Window\x20Error]:\x20','INVITE_CODE_HAS_BEEN_UES','?taskId=','handleInsertRow','ENTITLE_USE_COUPON_NOT_1ST_TRADE','APPLY_NON_SEQUENTIAL_REVISION','_beforeCloseService','DocCollaborationEntity','getActiveRange','flatMap','ThemeService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','JOIN_ROOM_FAILED','round','_updateCollabCursors','SheetsSelectionsService','endColumn','svg','Injector','onPointerEnter$','handleInsertCol','Optional','SheetSkeletonManagerService','_hideTimer','FormulaExecutedStateType','COMPLETION_FINISHED','_drawAnchor','fillStyle','cursorInfo$','isArray','defineProperty','fillText','_scene','http://www.w3.org/2000/svg','getVpScrollXYInfoByPosToVp','collab-rect-range-','MoveRangeCommandId','_httpService','IUIPartsService','_getAnchorBounding','WebBrowserSingleActiveUnitService','runRefRangeMutations','IRenderManagerService','distinctUntilChanged','_name','origin','_shapes','SheetCollabCursorShape','currentSkeleton$','_initUserListener','_colorIndex','engine','subUnitId','Error','_docTransformIMECacheService','_initCommandExecutedListener','runOnServer','handleIRemoveRow','ticket','_labelPosition','loadUnit','DEFAULT_WS_SESSION_TICKET_URL','xlink:href','collaboration.single-unit.warning','getStateCache','_lastPointer','0\x200\x2016\x2016','_toggleOnline','getFormulaLimitStatusUrl','values','imageSourceType','0\x200\x2017\x2016','IRemoteInstanceService','getCurrentUnitForType','getAncestorScale','_collaborationController','contains','_assignedColors','DisposableCollection','_registerDependencies','current','currentTheme$','isTransformMutationFailure','ENTITLE_DUP_SUBSCRIPTION','IBeforeCloseService','LOGIN_TOKEN_PROCESSING_FAILED','MOBILE_HAS_BEEN_BOUND','INVALID_INVITE_CODE','LocaleService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','APPLY_REJECT','ENTITLE_INVALID_COUPON_CODE','ColorKit','_colorAssignService','_ensureSubject','setConfig','handleMoveRange','stack','DeleteRangeMoveUpCommandId','_online','getSheetObject','_injector','toStringTag','_refRangeService','_logService','MOBILE_VERIFY_CODE_MISMATCH','takeUntil','9LYJUpT','_setupBeforeClosingHandler','mapTo','handleIRemoveCol','_unitOnClients','AUTHORIZE_CODE_ILLEGAL','getUnitId','collab-client.tooltip.reconnect','replaceDocRanges','transformRemoteChangeset','_id','clsx','registerRefRange','_selfUnitIDs','executeCommand','_hasFormulaInDirtyRanges','NodePositionConvertToRectRange','/universer-api/license/formula/limit/status','_releaseCalculationLimit','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','unhandledrejection','sheetId','activeSheet$','_hover','_createSocketURL','WebURLService','addHandlerCallback','_draw','_getSheetObject','displayName','none','_initResize','jsx','ILocalStorageService','DependentOn','ILocalCacheService','jiqing.500','row','_startCalculationLimit','_disabled','Vector2','ENSURE_SNAPSHOT_EXECUTION','stringify','range','Success','DocStateChangeManagerService','SNAPSHOT_HAS_BEEN_REMOVED','triggerDblclick','ENTITLE_CHAT_LIMIT_EXCEED','getCellMatrix','_clearPolling','handleDeleteRangeMoveLeft','save','VIEW_MAIN','textRanges','LOCAL_CACHE_INTERVAL_KEY','transformMutation','onPointerMove$','_saveTaskMap','debug','getUndoRedoMutationParamsCache','/universer-api/license/formula/limit/start','LICENSE_DISTRO_REJECTED','div','sessionStatus$','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','sessionTicket','_getSessionTicket','_uiPartsService','_startDocCollabCursor','fromEventSubject','getTypeOfUnitAdded$','YUUMI_ALL_TABLES_IS_INVALID','getFocusedUnit','hovered','roomMembers$','registerBeforeClose','_localeService','CONNECTOR_DATA_TOO_LARGE','init','color','getRelativeToViewportCoord','transformSelections','getRangePointData','_applyCommand','_memberID','_commandService','toRgbString','getActiveSheet','YUUMI_ASYNCIO_CANCELLED','event$','_sheetSkeletonManagerService','SHEET_VIEWPORT_KEY','HTTPService','fromEvent','invokeId','pipe','_startSheetCollabCursor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','skeleton','WebSocketService','Warning','WECHAT_HAS_BEEN_BOUND','_handleEvent','_configService','registerRenderModule','_config','_transformPreviousActiveRange','Disposable','DocSelectionManagerService','NodePositionConvertToCursor','_getScale','\x20at\x20','1em','_transformService','parseInt','setTimeout','DOC_RANGE_TYPE','univer-mr-2\x20univer-flex\x20univer-text-xl','getCollabCursors$','clearTimeout','_status$','BehaviorSubject','unit','SOCKET_FAILED_RETRY','_localCacheService','UPDATE_CURSOR','ENTITLE_REPORT_LIMIT_EXCEED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_URL_COL_OUT_OF_RANGE','on-line-icon_clip0_910_349','START_CALCULATION','DATA_SOURCE_TOO_LARGE','_removeCollabCursors','colno','idSuffix','set','getValue','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_setFormulaLimitStatus','getCurrent','_clearOtherTimers','add','getCoordByCell','cursorInfo','USER_IS_ANONYMOUS','currentUsage','collabStatus.synced','formula.calculation.started','USER_NOT_INVITED_CODE','_handleJoinEvent','TEXT','ONLINE','_docSkeleton','ISocketService','name','drawWith','from','UNRECOGNIZED','code','UnitStatus','now','RefRangeService','NOT_FOUND','333352jhVJfN','4tesake','INotificationService','RegularPolygon','addEventListener','InsertRangeMoveRightCommandId','_checkCalculationAvailable','MessageType','getCurrentSelections','RECT','disableLocalCache','_drawTextRange','REDEMPTION_CODE_NOT_STARTED','isFormulaString','11249YOzgGX','CollaborationUIEventId','findNodePositionByCharIndex','_collabCursorState$','APPLY_REVISION_CONFILICT','_updateSubUnitFromURLParams','setAlpha','colorChannel1','SetDocZoomRatioOperation','_getFormulaLimitStatus','collabStatus.notCollab','subscribeEvent','disposeWithMe','wsSessionTicketUrl','Rectangle','_textBubble','clearInterval','replace','_collabCursorController','_anchorDot','url(#on-line-icon_clip0_910_349)','clipPath','setParam','measureText','_handleHover','_monkeyPatchLogService','224735jSOnyR','_initStatusListener','complete','_initUnhandledRejectionListener','Module','Inject','_themeService','redoState','removeParam','m1Prime','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_cursorInfo$','_initEntityListener','_onCursorUpdate','backgroundColor','_transformHistoryAndStateStack','getItem','YUUMI_CONNECTOR_URL_NOT_FOUND','string','collabStatus.syncing','functionsExecutedState','univer-flex\x20univer-items-center','some','session.collaboration-timeout','debounceTime','catch','connectInjector','BrowserCollaborationSocketService','CURRENT_STATUS_CANNOT_OPERATE','attrs','PENDING','Unknown\x20user','saveOfflineData','assignAColorForMemberID','endRow','_imageIoService','path','url(#$1','useRef','_scheduleSaving','_docClipboardService','substring','arc','...','SUCCESS','RemoteUniscriptService','column','_docSyncEditingCollabCursorService','getUnhiddenWorksheets','_initWindowErrorListener','filter','rgba(255,\x20255,\x20255,\x200.01)','_anchor','_eventUnsubscribe','EffectRefRangId','isTransformMutationsWithChangesetSuccess','location','_memberService','UniverIcon','syncEditingCollabCursor','FromArray','_urlService','toDisposable','CollaborationSessionService','red.300','OFFLINE','doc.mutation.rich-text-editing','defs','_backgroundColor','totalFormulasToCalculate','[LogService\x20Error]:\x20','jsxs','_cachedData','LICENSE_MAX_UNITS_EXCEEDED','ITransformService','SetFormulaCalculationNotificationMutation','NOT_COLLAB','DeleteRangeMoveLeftCommandId','COLORS','REDEMPTION_INVALID_CODE','_cursors','_docTransformStateCacheService','formula.calculation.waiting','collab-text-range-','limitInfo','setInterval','DesktopCollaborationStatusDisplayController','REDEMPTION_CODE_HAS_BEEN_CREATED','enableLocalCache','collabStatus.conflict','LICENSE_IMPORT_SIZE_EXCEEDED','LOGIN_FAILED','_getMergeRange','IImageIoService','_session','actions','mergeOverrideWithDependencies','PAYMENT_CHANNEL_NOT_SUPPORT','collabCursorState$','result','1001976XyjbAb','CollaborationStatus','evenodd','show','_handleLeaveEvent','permission.content','_drawRectRange','_hovered','dispose','_removeClearOtherTimer','createIdentifier','_taskIds','OnLineIcon','override','FETCH_MISS','_messageService','onPointerLeave$','transformIMECache','toString','on-line-icon','INVALID_ARGUMENT','pushState','getDocRanges','stageInfo','whenReady','history','ILogService','then','roomMembers','debounce','switchMap','getOwnPropertyDescriptor','split','with','asObservable','max','shift','6334580zyOMIg','ICommandService','APPLY_DUPLICATED','newValue','lineTo','_onRefRangeChange','searchParams','source','_send','Rect','eventID','_currentUsage','REDEMPTION_USER_REDEEM_TIMES_EXCEED','Loading','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','getTypeOfUnitDisposed$','type','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','SNAPSHOT_INVALID_SNAPSHOT','_cursorShapes','has','dirtyRanges','Plugin','labelPosition','useDependency','addObject','trim','APPLY_PERMISSION_DENIED','get','USER_NOT_FOUND','IUniverInstanceService','RemoveColCommandId','LICENSE_EXPORT_SIZE_EXCEEDED','MUTATION','params','_initDependencies','CollaborationSocketService','selection','_renderManagerService','yellow.400','_maxFormulaLimit','url(#off-line-icon_clip0_910_343)','_docSkeletonManagerService','_color','subscribe','_document','CHANGESET_REVISION_CONFILICT','font','ENTITLE_INSUFFICIENT_QUOTA','getRenderById','ENTITLE_NEED_BILLING_ADDRESS','sheetID','_toggleOffline','_dataLoaderService','exhaustSavingTask','storage','bottom','_updateLocalCursor','getSheetId','currentColor','ALREADY_EXISTS','formula.calculation.unable','width','#FFF','ranges','next','socket$','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','data','171859OZwkkD','unitID','delete','beforeCommandExecuted','forEach','getParam','unload','join','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_lastResponseTimestamp','_revisionService','YUUMI_RATE_OVER_LIMIT','getCurrentRevOfUnit','_instanceService','min','mutations','session.will-retry','_syncEditingCollabCursorService','undoState','YUUMI_SUBSCRIPTION_NOT_FOUND','[CollaborationDataLoaderController]','children','PERMISSION_DENIED','onMouseMove','getCellPositionByOffset','_showGuardMessage','generateRandomId','_collabSessionService','YUUMI_UNABLE_LOAD_URL','CollaborationEvent','SetTextSelectionsOperation','TOO_MANY_REQUESTS','replaceState','transformByState','addObjects','getConfig','DataLoaderService','use','SetFormulaCalculationStartMutation'];_0x46d4=function(){return _0x36156f;};return _0x46d4();}class fs extends a['Disposable']{constructor(){const _0x173b6c=_0x5c0916;super(),_(this,_0x173b6c(0x194),a[_0x173b6c(0x33f)]()),_(this,_0x173b6c(0x197),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x173b6c(0x37c),null),_(this,_0x173b6c(0x217),new Map()),_(this,_0x173b6c(0x100),new Map()),this[_0x173b6c(0x10d)]();}['dispose'](){const _0x23dd0e=_0x5c0916;super['dispose'](),this[_0x23dd0e(0x217)][_0x23dd0e(0x329)]((_0x4b765a,_0x483b4d)=>this[_0x23dd0e(0x2c3)](_0x483b4d)),this[_0x23dd0e(0x37c)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x24d4d8){const _0x186a9a=_0x5c0916;return this[_0x186a9a(0x17d)](_0x24d4d8)[_0x186a9a(0x1ea)](I[_0x186a9a(0x14a)]());}['editingUnit'](_0x421df6){const _0x35605b=_0x5c0916;this['_selfUnitIDs'][_0x35605b(0xe9)]===0x0&&this[_0x35605b(0xf7)](),this['_selfUnitIDs'][_0x35605b(0x218)](_0x421df6),this[_0x35605b(0x2e7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x421df6],'isForwarded':!0x1});}[_0x5c0916(0x354)](_0x2cdf27){const _0x3c55ca=_0x5c0916;this[_0x3c55ca(0x197)][_0x3c55ca(0x327)](_0x2cdf27),this[_0x3c55ca(0x197)][_0x3c55ca(0xe9)]===0x0&&this[_0x3c55ca(0x37c)]&&window[_0x3c55ca(0x24c)](this[_0x3c55ca(0x37c)]);}[_0x5c0916(0x10d)](){const _0x2ec70d=_0x5c0916;this['disposeWithMe'](a[_0x2ec70d(0x294)](I['fromEvent'](window,_0x2ec70d(0x317))[_0x2ec70d(0x30c)](_0x2b6cd4=>{const _0x3e490f=_0x2ec70d;if(_0x2b6cd4['key']!==ye||!_0x2b6cd4[_0x3e490f(0x2e2)])return;const _0x31a759=JSON[_0x3e490f(0x39b)](_0x2b6cd4[_0x3e490f(0x2e2)]);this['_handleEvent'](_0x31a759);}))),window['addEventListener'](_0x2ec70d(0x32b),()=>this['_send']({'type':0x1,'memberID':this[_0x2ec70d(0x194)],'unitIDs':Array['from'](this[_0x2ec70d(0x197)])}));}[_0x5c0916(0x1f1)](_0x5acfd5){const _0x59aa59=_0x5c0916;switch(_0x5acfd5[_0x59aa59(0x2ef)]){case 0x0:this[_0x59aa59(0x220)](_0x5acfd5);break;case 0x1:this['_handleLeaveEvent'](_0x5acfd5);break;case 0x2:this[_0x59aa59(0x37d)](_0x5acfd5);break;}}[_0x5c0916(0x220)](_0x5db331){const _0x567adb=_0x5c0916,{unitIDs:_0x105a70,memberID:_0x54b346,isForwarded:_0x49f683}=_0x5db331;_0x105a70[_0x567adb(0x329)](_0x55ec63=>{const _0x4b0ca0=_0x567adb;if(!_0x49f683&&this['_unitOnClients'][_0x4b0ca0(0x2f4)](_0x55ec63)&&this['_ensureSubject'](_0x55ec63)[_0x4b0ca0(0x321)](u[_0x4b0ca0(0x22a)]['OTHER_CLIENTS_EDITING']),!this[_0x4b0ca0(0x18e)][_0x4b0ca0(0x2f4)](_0x55ec63)||!this[_0x4b0ca0(0x18e)][_0x4b0ca0(0x2fc)](_0x55ec63)['has'](_0x54b346)){const _0x43ea11=this[_0x4b0ca0(0x18e)][_0x4b0ca0(0x2fc)](_0x55ec63)||new Set();_0x43ea11[_0x4b0ca0(0x218)](_0x54b346),this['_unitOnClients'][_0x4b0ca0(0x212)](_0x55ec63,_0x43ea11),this[_0x4b0ca0(0x373)](_0x54b346);}}),_0x49f683||this[_0x567adb(0x2e7)]({'type':0x0,'memberID':this[_0x567adb(0x194)],'unitIDs':[...this[_0x567adb(0x197)]],'isForwarded':!0x0});}[_0x5c0916(0x373)](_0xe812a3){const _0x491aaa=_0x5c0916;this[_0x491aaa(0x2c3)](_0xe812a3);const _0x5134a0=window['setTimeout'](()=>{const _0x2a6510=_0x491aaa;this[_0x2a6510(0x18e)][_0x2a6510(0x329)](_0xdd7244=>{_0xdd7244['delete'](_0xe812a3);});},we*0x2);this['_clearOtherTimers'][_0x491aaa(0x212)](_0xe812a3,_0x5134a0);}[_0x5c0916(0x2c3)](_0xb81b0){const _0x2639ce=_0x5c0916;if(this['_clearOtherTimers']['has'](_0xb81b0)){const _0x2d04e7=this[_0x2639ce(0x217)][_0x2639ce(0x2fc)](_0xb81b0);_0x2d04e7&&window['clearTimeout'](_0x2d04e7),this[_0x2639ce(0x217)]['set'](_0xb81b0,null);}}[_0x5c0916(0x2be)](_0xf9a4f1){const _0x136bc4=_0x5c0916,{memberID:_0x7beed0,unitIDs:_0x551835}=_0xf9a4f1;_0x551835[_0x136bc4(0x329)](_0x17f493=>{const _0x3e4d0e=_0x136bc4;var _0x47e2ad;const _0x86bd0f=this[_0x3e4d0e(0x18e)]['get'](_0x17f493);_0x86bd0f&&(_0x86bd0f[_0x3e4d0e(0x327)](_0x7beed0),(_0x47e2ad=this['_ensureSubject'](_0x17f493))==null||_0x47e2ad['next'](_0x86bd0f['size']===0x0?u[_0x3e4d0e(0x22a)][_0x3e4d0e(0x10b)]:u[_0x3e4d0e(0x22a)]['OTHER_CLIENTS_EDITING']));}),this[_0x136bc4(0x2c3)](_0x7beed0);}[_0x5c0916(0x37d)](_0x442a1b){this['_scheduleClearOtherTimer'](_0x442a1b['memberID']);}[_0x5c0916(0x2e7)](_0x376356){const _0x59d6d5=_0x5c0916;localStorage[_0x59d6d5(0x3a3)](ye,JSON[_0x59d6d5(0x1b4)](_0x376356));}[_0x5c0916(0xf7)](){const _0x1ade14=_0x5c0916;this[_0x1ade14(0x37c)]=window[_0x1ade14(0x2ab)](()=>{const _0x4b7a19=_0x1ade14;this[_0x4b7a19(0x2e7)]({'type':0x2,'memberID':this[_0x4b7a19(0x194)]});},we);}[_0x5c0916(0x17d)](_0x229324){const _0x284954=_0x5c0916;return this[_0x284954(0x100)][_0x284954(0x2f4)](_0x229324)||this[_0x284954(0x100)]['set'](_0x229324,new I['BehaviorSubject'](u[_0x284954(0x22a)][_0x284954(0x10b)])),this[_0x284954(0x100)]['get'](_0x229324);}}exports['IURLService']=Oe,exports[_0x5c0916(0x14e)]=je,exports[_0x5c0916(0x147)]=fs,exports[_0x5c0916(0x1a3)]=ke;
|