@univerjs-pro/collaboration-client-ui 0.12.1-nightly.202511221011 → 0.12.1
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/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/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/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/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 +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x366146=_0x23c7;(function(_0x5d58e6,_0x76c7fc){const _0xdf0a7=_0x23c7,_0x383231=_0x5d58e6();while(!![]){try{const _0x1f65de=-parseInt(_0xdf0a7(0x3b4))/0x1+-parseInt(_0xdf0a7(0x1f0))/0x2*(-parseInt(_0xdf0a7(0x3d0))/0x3)+-parseInt(_0xdf0a7(0x1aa))/0x4*(-parseInt(_0xdf0a7(0x33e))/0x5)+-parseInt(_0xdf0a7(0x2b3))/0x6+parseInt(_0xdf0a7(0x40b))/0x7+-parseInt(_0xdf0a7(0x34e))/0x8*(-parseInt(_0xdf0a7(0x1bb))/0x9)+parseInt(_0xdf0a7(0x22c))/0xa*(-parseInt(_0xdf0a7(0x22d))/0xb);if(_0x1f65de===_0x76c7fc)break;else _0x383231['push'](_0x383231['shift']());}catch(_0x482ad1){_0x383231['push'](_0x383231['shift']());}}}(_0x51ff,0xa621e));var Xe=Object[_0x366146(0x24e)],Ke=(_0x46f5be,_0xa83745,_0x47c667)=>_0xa83745 in _0x46f5be?Xe(_0x46f5be,_0xa83745,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47c667}):_0x46f5be[_0xa83745]=_0x47c667,_=(_0x5e09ef,_0x5b55b3,_0x15631e)=>Ke(_0x5e09ef,typeof _0x5b55b3!='symbol'?_0x5b55b3+'':_0x5b55b3,_0x15631e);Object[_0x366146(0x24e)](exports,Symbol[_0x366146(0x259)],{'value':_0x366146(0x207)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x16870c,..._0x55c457}){const _0x8c9008=_0x366146,{icon:_0x147507,id:_0x579132,className:_0x50eee9,extend:_0x3d9b93,..._0x1d7559}=_0x55c457,_0xb37871=('univerjs-icon\x20univerjs-icon-'+_0x579132+'\x20'+(_0x50eee9||''))[_0x8c9008(0x1d1)](),_0x10f279=A[_0x8c9008(0x2b0)]('_'+Qe());return $e(_0x147507,''+_0x579132,{'defIds':_0x147507['defIds'],'idSuffix':_0x10f279[_0x8c9008(0x3b9)]},{'ref':_0x16870c,'className':_0xb37871,..._0x1d7559},_0x3d9b93);}function $e(_0x24d557,_0x27f9f7,_0x24a817,_0x31ee8c,_0x3809d3){const _0x2581cb=_0x366146;return A['createElement'](_0x24d557['tag'],{'key':_0x27f9f7,...Je(_0x24d557,_0x24a817,_0x3809d3),..._0x31ee8c},(Ze(_0x24d557,_0x24a817)['children']||[])[_0x2581cb(0x3e9)]((_0x509100,_0x5724c2)=>$e(_0x509100,_0x27f9f7+'-'+_0x24d557[_0x2581cb(0x2c8)]+'-'+_0x5724c2,_0x24a817,void 0x0,_0x3809d3)));}function Je(_0x53c105,_0xa9719a,_0x2a5dab){const _0x176514=_0x366146,_0x404f34={..._0x53c105[_0x176514(0x261)]};_0x2a5dab!=null&&_0x2a5dab['colorChannel1']&&_0x404f34[_0x176514(0x167)]===_0x176514(0x366)&&(_0x404f34[_0x176514(0x167)]=_0x2a5dab[_0x176514(0x366)]),_0x53c105[_0x176514(0x2c8)]===_0x176514(0x22a)&&_0x404f34['id']&&(_0x404f34['id']=_0x404f34['id']+_0xa9719a[_0x176514(0x2e0)]),Object[_0x176514(0x357)](_0x404f34)[_0x176514(0x3eb)](([_0x540045,_0x5c9797])=>{const _0xbeb22f=_0x176514;_0x540045==='mask'&&typeof _0x5c9797=='string'&&(_0x404f34[_0x540045]=_0x5c9797['replace'](/url\(#(.*)\)/,_0xbeb22f(0x3af)+_0xa9719a[_0xbeb22f(0x2e0)]+')'));});const {defIds:_0x3e540c}=_0xa9719a;return!_0x3e540c||_0x3e540c[_0x176514(0x18d)]===0x0||(_0x53c105[_0x176514(0x2c8)]==='use'&&_0x404f34[_0x176514(0x376)]&&(_0x404f34[_0x176514(0x376)]=_0x404f34[_0x176514(0x376)]+_0xa9719a[_0x176514(0x2e0)]),Object[_0x176514(0x357)](_0x404f34)['forEach'](([_0x32f6a0,_0x20af7e])=>{const _0x3e5bcc=_0x176514;typeof _0x20af7e=='string'&&(_0x404f34[_0x32f6a0]=_0x20af7e[_0x3e5bcc(0x2ff)](/url\(#(.*)\)/,_0x3e5bcc(0x3af)+_0xa9719a[_0x3e5bcc(0x2e0)]+')'));})),_0x404f34;}function _0x23c7(_0x4f7ac5,_0x513534){const _0x51ff0d=_0x51ff();return _0x23c7=function(_0x23c7f3,_0x20f718){_0x23c7f3=_0x23c7f3-0x148;let _0x5e6d64=_0x51ff0d[_0x23c7f3];return _0x5e6d64;},_0x23c7(_0x4f7ac5,_0x513534);}function Ze(_0x4cb6bf,_0x7dbc6a){const _0x38e400=_0x366146;var _0x5a50a9;const {defIds:_0x5e2067}=_0x7dbc6a;return!_0x5e2067||_0x5e2067[_0x38e400(0x18d)]===0x0?_0x4cb6bf:_0x4cb6bf[_0x38e400(0x2c8)]===_0x38e400(0x182)&&((_0x5a50a9=_0x4cb6bf[_0x38e400(0x15e)])!=null&&_0x5a50a9['length'])?{..._0x4cb6bf,'children':_0x4cb6bf[_0x38e400(0x15e)]['map'](_0x4bab8f=>typeof _0x4bab8f[_0x38e400(0x261)]['id']=='string'&&_0x5e2067&&_0x5e2067[_0x38e400(0x2a6)](_0x4bab8f[_0x38e400(0x261)]['id'])?{..._0x4bab8f,'attrs':{..._0x4bab8f[_0x38e400(0x261)],'id':_0x4bab8f[_0x38e400(0x261)]['id']+_0x7dbc6a[_0x38e400(0x2e0)]}}:_0x4bab8f)}:_0x4cb6bf;}function Qe(){const _0x2e829b=_0x366146;return Math[_0x2e829b(0x1ce)]()[_0x2e829b(0x177)](0x24)['substring'](0x2,0x8);}Te[_0x366146(0x331)]=_0x366146(0x325);const et={'tag':_0x366146(0x32e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x366146(0x37b),'viewBox':'0\x200\x2016\x2016','width':_0x366146(0x381),'height':_0x366146(0x381)},'children':[{'tag':'g','attrs':{'clipPath':_0x366146(0x323)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x366146(0x36b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x366146(0x3b6),'attrs':{'fill':_0x366146(0x3a7),'d':_0x366146(0x178)}}]}]}],'defIds':[_0x366146(0x2aa)]},xe=A[_0x366146(0x344)](function(_0x5dab64,_0x463460){const _0x2f8b5b=_0x366146;return A[_0x2f8b5b(0x180)](Te,Object[_0x2f8b5b(0x205)]({},_0x5dab64,{'id':_0x2f8b5b(0x361),'ref':_0x463460,'icon':et}));});xe[_0x366146(0x331)]='OffLineIcon';const tt={'tag':'svg','attrs':{'xmlns':_0x366146(0x3b3),'fill':_0x366146(0x37b),'viewBox':_0x366146(0x34d),'width':_0x366146(0x381),'height':_0x366146(0x381)},'children':[{'tag':'g','attrs':{'clipPath':_0x366146(0x14e)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'stroke':_0x366146(0x18a),'d':_0x366146(0x3e2),'strokeLinecap':'round','strokeLinejoin':_0x366146(0x36b),'strokeWidth':1.2}}]},{'tag':_0x366146(0x182),'attrs':{},'children':[{'tag':_0x366146(0x275),'attrs':{'id':_0x366146(0x351)},'children':[{'tag':_0x366146(0x3b6),'attrs':{'fill':'white','d':_0x366146(0x178),'transform':_0x366146(0x342)}}]}]}],'defIds':[_0x366146(0x351)]},Be=A[_0x366146(0x344)](function(_0x55291a,_0x5245cf){const _0x165950=_0x366146;return A[_0x165950(0x180)](Te,Object['assign']({},_0x55291a,{'id':'on-line-icon','ref':_0x5245cf,'icon':tt}));});Be['displayName']=_0x366146(0x3ae);function st(_0x2f5ac4){const _0x2ed5ce=_0x366146;switch(_0x2f5ac4){case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x3cf)]:return _0x2ed5ce(0x319);case u['CollaborationStatus']['CONFLICT']:return _0x2ed5ce(0x293);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x154)]:return _0x2ed5ce(0x156);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x2ad)]:return _0x2ed5ce(0x27e);case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x264)]:case u[_0x2ed5ce(0x380)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x233)]:case u[_0x2ed5ce(0x380)][_0x2ed5ce(0x14b)]:return'collabStatus.synced';}}function it(_0x241bba){const _0x1b3158=_0x366146,{status$:_0x17392d}=_0x241bba,_0x5d45bb=O['useObservable'](_0x17392d,u[_0x1b3158(0x380)][_0x1b3158(0x2ad)]),_0x4bc89f=O['useDependency'](a[_0x1b3158(0x267)]),_0x1b5b72=O[_0x1b3158(0x3c9)](u[_0x1b3158(0x31a)]),_0x2d93b3=_0x5d45bb!==u[_0x1b3158(0x380)][_0x1b3158(0x3cf)],_0x575fd5=_0x4bc89f['t'](st(_0x5d45bb)),_0x54116d=_0x2d93b3?M[_0x1b3158(0x213)](Be,{}):M[_0x1b3158(0x213)](xe,{}),_0x4c44e1=A[_0x1b3158(0x21b)](()=>{_0x2d93b3||_0x1b5b72['reconnect']();},[_0x2d93b3,_0x1b5b72]);function _0xda36ff(){const _0x9c6e5b=_0x1b3158;return M['jsxs'](_0x9c6e5b(0x303),{'className':'univer-flex\x20univer-items-center','onClick':_0x4c44e1,'children':[M[_0x9c6e5b(0x213)](_0x9c6e5b(0x303),{'className':T[_0x9c6e5b(0x347)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2d93b3,'univer-text-red-500':!_0x2d93b3}),'children':_0x54116d}),M['jsx'](_0x9c6e5b(0x303),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x575fd5})]});}return _0x2d93b3?_0xda36ff():M['jsx'](T[_0x1b3158(0x1fe)],{'title':_0x4bc89f['t'](_0x1b3158(0x3a9)),'children':_0xda36ff()});}var nt=Object[_0x366146(0x3ee)],rt=(_0x182f17,_0x577640,_0x3b3b4e,_0x5903c7)=>{const _0x30bfe0=_0x366146;for(var _0x5d4e77=_0x5903c7>0x1?void 0x0:_0x5903c7?nt(_0x577640,_0x3b3b4e):_0x577640,_0xd79003=_0x182f17[_0x30bfe0(0x18d)]-0x1,_0x193d15;_0xd79003>=0x0;_0xd79003--)(_0x193d15=_0x182f17[_0xd79003])&&(_0x5d4e77=_0x193d15(_0x5d4e77)||_0x5d4e77);return _0x5d4e77;},K=(_0x1cae6d,_0x3bac0c)=>(_0x13bc48,_0x2cdd4c)=>_0x3bac0c(_0x13bc48,_0x2cdd4c,_0x1cae6d);exports[_0x366146(0x1ee)]=class extends a['Disposable']{constructor(_0x49fb84,_0x5d175e,_0x403b56,_0x386ccc){const _0x15e1a8=_0x366146;super(),_(this,'_status$',new I['BehaviorSubject'](u['CollaborationStatus'][_0x15e1a8(0x2ad)])),(this['_univerInstanceService']=_0x49fb84,this[_0x15e1a8(0x354)]=_0x5d175e,this[_0x15e1a8(0x240)]=_0x403b56,this[_0x15e1a8(0x2e5)]=_0x386ccc,this[_0x15e1a8(0x28e)](),this['_initStatusListener']());}[_0x366146(0x164)](){const _0x1b7469=_0x366146;this[_0x1b7469(0x39d)](this['_univerInstanceService']['focused$'][_0x1b7469(0x1c2)](I[_0x1b7469(0x1fd)](()=>{const _0x2b529b=_0x1b7469,_0x3974ee=this[_0x2b529b(0x2fe)][_0x2b529b(0x1f2)]();return _0x3974ee?this[_0x2b529b(0x240)][_0x2b529b(0x2bc)](_0x3974ee[_0x2b529b(0x349)]()):I['of'](null);}),I[_0x1b7469(0x1fd)](_0x389b79=>_0x389b79?_0x389b79[_0x1b7469(0x2fa)]:I['of'](u['CollaborationStatus'][_0x1b7469(0x2ad)])))['subscribe'](_0x5ca63f=>{const _0x34cd53=_0x1b7469;this['_status$'][_0x34cd53(0x161)](_0x5ca63f);}));}[_0x366146(0x28e)](){const _0x423c04=_0x366146;this[_0x423c04(0x39d)](this['_uiPartsService'][_0x423c04(0x402)](O[_0x423c04(0x3a5)][_0x423c04(0x222)],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x366146(0x375)]),K(0x1,a[_0x366146(0x34a)](a['Injector'])),K(0x2,a[_0x366146(0x34a)](u['CollaborationController'])),K(0x3,O[_0x366146(0x3e8)])],exports[_0x366146(0x1ee)]);function ot(_0x538d32){const {status$:_0x102b91}=_0x538d32;return function(){return M['jsx'](it,{'status$':_0x102b91});};}const Oe=a[_0x366146(0x368)](_0x366146(0x3c4));var at=Object[_0x366146(0x3ee)],ct=(_0x49fbcc,_0x2adf1d,_0x4cd451,_0x2f8813)=>{for(var _0x3c777a=_0x2f8813>0x1?void 0x0:_0x2f8813?at(_0x2adf1d,_0x4cd451):_0x2adf1d,_0x5351ed=_0x49fbcc['length']-0x1,_0x3bcb8d;_0x5351ed>=0x0;_0x5351ed--)(_0x3bcb8d=_0x49fbcc[_0x5351ed])&&(_0x3c777a=_0x3bcb8d(_0x3c777a)||_0x3c777a);return _0x3c777a;},Y=(_0x158bd2,_0x1716c7)=>(_0x158db0,_0x34de6b)=>_0x1716c7(_0x158db0,_0x34de6b,_0x158bd2);exports[_0x366146(0x1ad)]=class extends a[_0x366146(0x25a)]{constructor(_0x313361,_0x97ecfc,_0x3d9810,_0x2a4ba2,_0x11d558){const _0x3a9e8f=_0x366146;super(),this['_urlService']=_0x313361,this[_0x3a9e8f(0x204)]=_0x97ecfc,this[_0x3a9e8f(0x16f)]=_0x3d9810,this[_0x3a9e8f(0x2d6)]=_0x2a4ba2,_0x11d558?_0x11d558==null||_0x11d558['whenReady']()[_0x3a9e8f(0x3c5)](()=>this[_0x3a9e8f(0x3d7)]()):(this[_0x3a9e8f(0x204)][_0x3a9e8f(0x346)]('[CollaborationDataLoaderController]',_0x3a9e8f(0x2b5)),this['_init']());}async[_0x366146(0x3d7)](){const _0x5c34fd=_0x366146,_0x56af2c=this[_0x5c34fd(0x1b1)][_0x5c34fd(0x1d4)](_0x5c34fd(0x186)),_0x4f5dfc=this[_0x5c34fd(0x1b1)][_0x5c34fd(0x1d4)]('type'),_0x523869=this['_urlService'][_0x5c34fd(0x1d4)](_0x5c34fd(0x1df));if(!_0x56af2c||!_0x4f5dfc){this['_logService'][_0x5c34fd(0x346)](_0x5c34fd(0x188),_0x5c34fd(0x17b));return;}const _0x363b09=await this[_0x5c34fd(0x2d6)][_0x5c34fd(0x31c)](_0x56af2c,Number(_0x4f5dfc),_0x523869);_0x363b09&&_0x363b09 instanceof a[_0x5c34fd(0x2bf)]&&this[_0x5c34fd(0x166)](_0x363b09);}async[_0x366146(0x166)](_0x11e02f){const _0x177709=_0x366146;await this[_0x177709(0x3cd)](_0x11e02f),_0x11e02f[_0x177709(0x2e1)][_0x177709(0x1c2)](I['takeUntil'](this[_0x177709(0x1a0)]))[_0x177709(0x390)](_0x2024a9=>{const _0x316a50=_0x177709;_0x2024a9&&this[_0x316a50(0x248)](_0x2024a9);}),this[_0x177709(0x1b1)]['urlChange$'][_0x177709(0x1c2)](I[_0x177709(0x225)](this[_0x177709(0x1a0)]))[_0x177709(0x390)](()=>this['_updateSubUnitFromURLParams'](_0x11e02f));}[_0x366146(0x248)](_0x104c64,_0x378bb3=!0x1){const _0x4a73a8=_0x366146,_0x48098d=this[_0x4a73a8(0x1b1)][_0x4a73a8(0x1d4)](_0x4a73a8(0x1df));_0x104c64[_0x4a73a8(0x1a3)]()!==_0x48098d&&this['_urlService'][_0x4a73a8(0x20d)]('subunit',_0x104c64[_0x4a73a8(0x1a3)](),_0x378bb3);}async[_0x366146(0x3cd)](_0x12434d){const _0x252118=_0x366146;var _0x3585f7;const _0x574fa5=this['_urlService']['getParam'](_0x252118(0x1df));if(!_0x574fa5||!_0x12434d[_0x252118(0x239)](_0x574fa5)){const _0x324dc3=_0x12434d['getUnhiddenWorksheets']()[0x0],_0x5eea79=_0x12434d[_0x252118(0x239)](_0x324dc3);if(!_0x5eea79)return;this[_0x252118(0x248)](_0x5eea79,!0x0),await this[_0x252118(0x16f)][_0x252118(0x1be)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x12434d[_0x252118(0x349)](),'subUnitId':_0x324dc3});return;}((_0x3585f7=_0x12434d[_0x252118(0x40a)]())==null?void 0x0:_0x3585f7[_0x252118(0x1a3)]())!==_0x574fa5&&await this[_0x252118(0x16f)]['executeCommand'](v[_0x252118(0x228)]['id'],{'unitId':_0x12434d['getUnitId'](),'subUnitId':_0x574fa5});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x366146(0x2e8)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0x366146(0x34a)](u[_0x366146(0x1bc)])),Y(0x4,a[_0x366146(0x3f1)](qe['IRemoteInstanceService']))],exports[_0x366146(0x1ad)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x146b71,_0x52e1f1,_0x4c2247,_0x880c6)=>{for(var _0x396066=_0x880c6>0x1?void 0x0:_0x880c6?lt(_0x52e1f1,_0x4c2247):_0x52e1f1,_0x154d00=_0x146b71['length']-0x1,_0x425b39;_0x154d00>=0x0;_0x154d00--)(_0x425b39=_0x146b71[_0x154d00])&&(_0x396066=_0x425b39(_0x396066)||_0x396066);return _0x396066;},De=(_0x4fe666,_0x2d2d57)=>(_0x1321b9,_0x259281)=>_0x2d2d57(_0x1321b9,_0x259281,_0x4fe666);let me=class extends a['RxDisposable']{constructor(_0x1aed1b,_0x9bc629){const _0x1eea78=_0x366146;super(),this[_0x1eea78(0x1f7)]=_0x1aed1b,this[_0x1eea78(0x3dd)]=_0x9bc629,this['_init']();}[_0x366146(0x3d7)](){const _0x35199c=_0x366146,_0x3a7e27=this;this[_0x35199c(0x39d)](this[_0x35199c(0x1f7)][_0x35199c(0x258)]({'onBeforePasteImage':async _0x55c183=>{const _0x101b3c=_0x35199c,_0x50434f=await _0x3a7e27[_0x101b3c(0x3dd)][_0x101b3c(0x2a7)](_0x55c183);return _0x50434f?{'source':_0x50434f['source'],'imageSourceType':_0x50434f[_0x101b3c(0x3a0)]}:null;}}));}};me=_t([De(0x0,p[_0x366146(0x160)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x366146(0x3e5),'jiqing.500','green.600',_0x366146(0x355),_0x366146(0x3c1),_0x366146(0x202)];class Re extends a[_0x366146(0x176)]{constructor(){const _0x43f2bd=_0x366146;super(...arguments),_(this,_0x43f2bd(0x185),new Map()),_(this,_0x43f2bd(0x338),0x0);}[_0x366146(0x3ca)](_0x2da55e){const _0x227991=_0x366146;if(this[_0x227991(0x185)][_0x227991(0x3fe)](_0x2da55e))return this[_0x227991(0x185)]['get'](_0x2da55e);const _0x5624e4=Ne[this[_0x227991(0x338)]];return this['_colorIndex']=(this[_0x227991(0x338)]+0x1)%Ne[_0x227991(0x18d)],this[_0x227991(0x185)]['set'](_0x2da55e,_0x5624e4),_0x5624e4;}}function Fe(_0x4326bf){const _0x147326=_0x366146;let _0x27f3a2='';for(const _0x428773 of _0x4326bf){const {startOffset:_0x43a187,endOffset:_0x26bb97,isActive:_0xc0da2,rangeType:_0x288f5a,segmentId:_0x3a6e6e,segmentPage:_0x482cc9}=_0x428773;_0x27f3a2[_0x147326(0x18d)]&&(_0x27f3a2+=','),_0x27f3a2+=_0x43a187+':'+_0x26bb97+':'+(_0xc0da2?'1':'0')+':'+_0x288f5a+':'+_0x3a6e6e+':'+_0x482cc9;}return _0x27f3a2;}function ht(_0x40c2fc){const _0x12830a=_0x366146,_0x37f3d5=_0x40c2fc['split'](','),_0x4d3cfa=[];for(const _0x11c5b3 of _0x37f3d5){const [_0x4c0c72,_0x1ac75b,_0x24522e,_0x30468b,_0x15b67f,_0x87d733]=_0x11c5b3[_0x12830a(0x16d)](':');_0x4d3cfa[_0x12830a(0x192)]({'startOffset':Number(_0x4c0c72),'endOffset':Number(_0x1ac75b),'collapsed':_0x4c0c72===_0x1ac75b,'isActive':_0x24522e==='1','rangeType':_0x30468b===a[_0x12830a(0x392)][_0x12830a(0x1b6)]?a[_0x12830a(0x392)][_0x12830a(0x1b6)]:a[_0x12830a(0x392)][_0x12830a(0x19b)],'segmentId':typeof _0x15b67f==_0x12830a(0x36f)?String(_0x15b67f):'','segmentPage':Number(_0x87d733!=null?_0x87d733:-0x1)});}return _0x4d3cfa[_0x12830a(0x217)](_0x2ea1b8=>_0x2ea1b8['isActive'])||(_0x4d3cfa[0x0][_0x12830a(0x2f5)]=!0x0),_0x4d3cfa;}class be extends a[_0x366146(0x25a)]{constructor(){const _0x2a9a27=_0x366146;super(...arguments),_(this,_0x2a9a27(0x148),new I[(_0x2a9a27(0x3a8))](null)),_(this,_0x2a9a27(0x1e4),this['_collabCursorState$'][_0x2a9a27(0x334)]());}[_0x366146(0x1c3)](_0x5bf1d9){const _0x3dfee7=_0x366146,{unitID:_0x48cfce,memberID:_0x20d0be,textRanges:_0x4ccc93}=_0x5bf1d9,_0x13914c=Fe(_0x4ccc93);if(_0x13914c==='')return;const _0x5bdaa7={'unitID':_0x48cfce,'memberID':_0x20d0be,'selection':_0x13914c};this['_collabCursorState$'][_0x3dfee7(0x161)](_0x5bdaa7);}}var ut=Object[_0x366146(0x3ee)],It=(_0x23951b,_0xccdf91,_0x4a441d,_0x5318b2)=>{const _0x381aff=_0x366146;for(var _0x22013b=_0x5318b2>0x1?void 0x0:_0x5318b2?ut(_0xccdf91,_0x4a441d):_0xccdf91,_0x41c080=_0x23951b[_0x381aff(0x18d)]-0x1,_0x508a2a;_0x41c080>=0x0;_0x41c080--)(_0x508a2a=_0x23951b[_0x41c080])&&(_0x22013b=_0x508a2a(_0x22013b)||_0x22013b);return _0x22013b;},U=(_0x21cd6d,_0x406a08)=>(_0x118a9b,_0x34bb53)=>_0x406a08(_0x118a9b,_0x34bb53,_0x21cd6d);const dt=0x12c,St=0x64;let ve=class extends a[_0x366146(0x25a)]{constructor(_0x209dfb,_0x343937,_0x4eaab8,_0x1ec4ce,_0x4155f5,_0x32a58e,_0x3a7a06,_0xe0d651,_0x304f61){const _0x1c940e=_0x366146;super(),_(this,_0x1c940e(0x1b2),!0x1),_(this,_0x1c940e(0x3d7),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x1c940e(0x1ea),this[_0x1c940e(0x20b)]['asObservable']()),_(this,'_roomMembers$',new I[(_0x1c940e(0x3a8))]([])),_(this,'roomMembers$',this[_0x1c940e(0x1e2)][_0x1c940e(0x1c2)](I[_0x1c940e(0x17d)](dt))),_(this,'_updateLocalCursor',a[_0x1c940e(0x278)](_0xfc7b0b=>{const _0x400d58=_0x1c940e,_0xccb0d6={'eventID':g['CollaborationEvent'][_0x400d58(0x195)],'data':{'unitID':this['unitID'],'memberID':this[_0x400d58(0x2cf)][_0x400d58(0x26a)](),'selection':Fe(_0xfc7b0b)}};this['_session'][_0x400d58(0x2a4)](_0xccb0d6,this[_0x400d58(0x1c5)]);},St)),(this[_0x1c940e(0x1c5)]=_0x209dfb,this[_0x1c940e(0x2cf)]=_0x343937,this[_0x1c940e(0x354)]=_0x4eaab8,this[_0x1c940e(0x1d3)]=_0x1ec4ce,this[_0x1c940e(0x22e)]=_0x4155f5,this['_syncEditingCollabCursorService']=_0x32a58e,this[_0x1c940e(0x1e8)]=_0x3a7a06,this[_0x1c940e(0x2fe)]=_0xe0d651,this[_0x1c940e(0x16f)]=_0x304f61);}get[_0x366146(0x191)](){const _0x56221e=_0x366146;return this[_0x56221e(0x20b)]['getValue']();}get[_0x366146(0x312)](){const _0x60ba52=_0x366146;return this[_0x60ba52(0x1e2)][_0x60ba52(0x1bf)]();}[_0x366146(0x286)](){const _0x5ae0f7=_0x366146;super[_0x5ae0f7(0x286)](),this[_0x5ae0f7(0x20b)]['next'](new Map()),this[_0x5ae0f7(0x20b)][_0x5ae0f7(0x328)](),this[_0x5ae0f7(0x1e2)]['next']([]),this[_0x5ae0f7(0x1e2)][_0x5ae0f7(0x328)]();}[_0x366146(0x292)](){const _0x2dafd8=_0x366146;this[_0x2dafd8(0x3d7)]||(this[_0x2dafd8(0x3d7)]=!0x0,this[_0x2dafd8(0x2cf)]['sessionStatus$'][_0x2dafd8(0x1c2)](I['takeUntil'](this[_0x2dafd8(0x1a0)]))[_0x2dafd8(0x390)](_0xd9d7bf=>{const _0x511e6c=_0x2dafd8;_0xd9d7bf===u[_0x511e6c(0x1c4)][_0x511e6c(0x237)]?this[_0x511e6c(0x2c3)]():this[_0x511e6c(0x34c)]();}),this['_session'][_0x2dafd8(0x18c)]['pipe'](I[_0x2dafd8(0x225)](this['dispose$']))[_0x2dafd8(0x390)](_0x543d60=>{const _0x368317=_0x2dafd8,_0x4e1f49=_0x543d60[_0x368317(0x246)];_0x4e1f49===g[_0x368317(0x238)][_0x368317(0x195)]&&this[_0x368317(0x401)](_0x543d60),_0x4e1f49===g['CollaborationEvent'][_0x368317(0x26b)]&&this[_0x368317(0x14c)](_0x543d60);}),this[_0x2dafd8(0x39d)](this[_0x2dafd8(0x16f)][_0x2dafd8(0x3e7)](_0x5a3d39=>{const _0x4ec1fa=_0x2dafd8,_0x320fb0=_0x5a3d39[_0x4ec1fa(0x35d)];_0x320fb0!=null&&this[_0x4ec1fa(0x1b2)]&&_0x5a3d39['id']===V[_0x4ec1fa(0x301)]['id']&&_0x320fb0[_0x4ec1fa(0x232)]===this[_0x4ec1fa(0x1c5)]&&_0x320fb0[_0x4ec1fa(0x3e4)]===!0x1&&_0x320fb0['ranges'][_0x4ec1fa(0x18d)]>0x0&&this[_0x4ec1fa(0x23e)](_0x320fb0[_0x4ec1fa(0x1d9)]);})),this[_0x2dafd8(0x198)][_0x2dafd8(0x1e4)][_0x2dafd8(0x1c2)](I[_0x2dafd8(0x225)](this[_0x2dafd8(0x1a0)]))[_0x2dafd8(0x390)](_0x5065ec=>{const _0x47ef3f=_0x2dafd8;if((_0x5065ec==null?void 0x0:_0x5065ec[_0x47ef3f(0x1c5)])!==this['unitID'])return;const _0x4b18ef={'eventID':g[_0x47ef3f(0x238)][_0x47ef3f(0x195)],'data':_0x5065ec};this[_0x47ef3f(0x401)](_0x4b18ef);}),this[_0x2dafd8(0x39d)](this['_commandService'][_0x2dafd8(0x3e7)](_0x314db2=>{const _0x376aa2=_0x2dafd8;if(_0x314db2[_0x376aa2(0x35d)]==null)return;const _0x1a6f46=_0x314db2[_0x376aa2(0x35d)];if(_0x314db2['id']!==V['RichTextEditingMutation']['id']||_0x1a6f46[_0x376aa2(0x232)]!==this['unitID'])return;const _0x120333={'id':'doc.mutation.rich-text-editing','params':_0x1a6f46},_0x4b587a=this[_0x376aa2(0x191)];for(const [_0x2c475c,_0xd567a2]of _0x4b587a){const _0x29f2dc={'id':_0x376aa2(0x155),'params':{'unitId':this[_0x376aa2(0x1c5)],'actions':null,'textRanges':_0xd567a2[_0x376aa2(0x1d9)]}},_0x15ee0a=this[_0x376aa2(0x1e8)]['transformMutation'](_0x120333,_0x29f2dc,!0x1);if(g[_0x376aa2(0x339)](_0x15ee0a))throw _0x15ee0a[_0x376aa2(0x329)];_0x4b587a[_0x376aa2(0x17a)](_0x2c475c,{..._0xd567a2,'ranges':_0x15ee0a[_0x376aa2(0x340)][_0x376aa2(0x35d)][_0x376aa2(0x24b)]});}queueMicrotask(()=>{const _0xc3e3a0=_0x376aa2;this[_0xc3e3a0(0x20b)][_0xc3e3a0(0x161)](_0x4b587a);});})));}['_onCursorUpdate'](_0x376b0c){const _0x506a6d=_0x366146;var _0x300eed,_0x1382ef;const {memberID:_0x59d5f2,selection:_0xb06985}=_0x376b0c[_0x506a6d(0x2e9)],_0x49dbaa=ht(_0xb06985),_0x14718b=(_0x1382ef=(_0x300eed=this['_memberService']['getMember'](this['unitID'],_0x59d5f2))==null?void 0x0:_0x300eed[_0x506a6d(0x2a0)])!=null?_0x1382ef:_0x506a6d(0x3f0),_0x134c45={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x59d5f2),'name':_0x14718b,'ranges':_0x49dbaa},_0x43d859=this[_0x506a6d(0x191)];_0x43d859[_0x506a6d(0x17a)](_0x59d5f2,_0x134c45),this[_0x506a6d(0x20b)]['next'](_0x43d859);}['_onCursorDelete'](_0x5b5dcc){const _0x5d77bf=_0x366146,{memberID:_0x4fe269}=_0x5b5dcc[_0x5d77bf(0x2e9)],_0x23eb30=this[_0x5d77bf(0x191)];_0x23eb30[_0x5d77bf(0x382)](_0x4fe269),this[_0x5d77bf(0x20b)][_0x5d77bf(0x161)](_0x23eb30);}[_0x366146(0x2c3)](){const _0xeb4576=_0x366146;var _0x23b404;if(this[_0xeb4576(0x1b2)]=!0x0,((_0x23b404=this[_0xeb4576(0x2fe)][_0xeb4576(0x1f2)]())==null?void 0x0:_0x23b404[_0xeb4576(0x349)]())!==this[_0xeb4576(0x1c5)])return;const _0x2f849d=this[_0xeb4576(0x354)][_0xeb4576(0x268)](V[_0xeb4576(0x38d)])[_0xeb4576(0x341)]();Array[_0xeb4576(0x15d)](_0x2f849d)&&_0x2f849d[_0xeb4576(0x18d)]>0x0&&this['_updateLocalCursor'](_0x2f849d);}[_0x366146(0x34c)](){const _0x511265=_0x366146;this[_0x511265(0x1b2)]=!0x1;}};ve=It([U(0x2,a[_0x366146(0x34a)](a[_0x366146(0x364)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x366146(0x34a)](u['MemberService'])),U(0x5,a['Inject'](be)),U(0x6,g['ITransformService']),U(0x7,a[_0x366146(0x375)]),U(0x8,a[_0x366146(0x2d4)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x226970,_0x2d972e,_0x5effe7,_0x53a1b0)=>{const _0x3dc73b=_0x366146;for(var _0xad0bdd=_0x53a1b0>0x1?void 0x0:_0x53a1b0?ft(_0x2d972e,_0x5effe7):_0x2d972e,_0x3d9afe=_0x226970[_0x3dc73b(0x18d)]-0x1,_0x15cd4b;_0x3d9afe>=0x0;_0x3d9afe--)(_0x15cd4b=_0x226970[_0x3d9afe])&&(_0xad0bdd=_0x15cd4b(_0xad0bdd)||_0xad0bdd);return _0xad0bdd;},w=(_0x273f79,_0xe07360)=>(_0x1bf27a,_0x209428)=>_0xe07360(_0x1bf27a,_0x209428,_0x273f79);const vt=0x12c,gt=0x64,Et=()=>{let _0x322853=[],_0x3f4b76=!0x1;return _0x5b9e41=>{const _0x5e3875=_0x23c7;_0x322853[_0x5e3875(0x192)](_0x5b9e41),_0x3f4b76||(_0x3f4b76=!0x0,setTimeout(()=>{_0x322853['forEach'](_0x2ef28c=>_0x2ef28c()),_0x322853=[],_0x3f4b76=!0x1;}));};};let ge=class extends a[_0x366146(0x25a)]{constructor(_0xc9435f,_0x1d052c,_0xbc4527,_0x121c1f,_0x48ddec,_0x38c20c,_0x38674b,_0x4fceb7){const _0x3661cf=_0x366146;super(),_(this,'_online',!0x1),_(this,_0x3661cf(0x3d7),!0x1),_(this,_0x3661cf(0x20b),new I[(_0x3661cf(0x3a8))](new Map())),_(this,'cursorInfo$',this[_0x3661cf(0x20b)][_0x3661cf(0x334)]()),_(this,_0x3661cf(0x1e2),new I['BehaviorSubject']([])),_(this,_0x3661cf(0x1d0),this[_0x3661cf(0x1e2)][_0x3661cf(0x1c2)](I[_0x3661cf(0x17d)](vt))),_(this,'_updateLocalCursor',a[_0x3661cf(0x278)]((_0xf35fb2,_0x282c1b)=>{const _0x1885c7=_0x3661cf,_0xda72d1={'eventID':g[_0x1885c7(0x238)][_0x1885c7(0x195)],'data':{'unitID':this[_0x1885c7(0x1c5)],'memberID':this[_0x1885c7(0x2cf)][_0x1885c7(0x26a)](),'selection':B[_0x1885c7(0x35b)](_0xf35fb2,_0x282c1b[_0x1885c7(0x332)])}};this[_0x1885c7(0x2cf)]['send'](_0xda72d1,this['unitID']);},gt)),(this[_0x3661cf(0x1c5)]=_0xc9435f,this[_0x3661cf(0x2cf)]=_0x1d052c,this[_0x3661cf(0x354)]=_0xbc4527,this['_colorAssignService']=_0x121c1f,this[_0x3661cf(0x22e)]=_0x48ddec,this[_0x3661cf(0x2fe)]=_0x38c20c,this[_0x3661cf(0x16f)]=_0x38674b,this[_0x3661cf(0x2c1)]=_0x4fceb7);}get['cursorInfo'](){const _0x77a895=_0x366146;return this[_0x77a895(0x20b)]['getValue']();}get[_0x366146(0x312)](){const _0xb53c56=_0x366146;return this[_0xb53c56(0x1e2)][_0xb53c56(0x1bf)]();}[_0x366146(0x286)](){const _0x4d5802=_0x366146;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x4d5802(0x20b)]['complete'](),this[_0x4d5802(0x1e2)][_0x4d5802(0x161)]([]),this[_0x4d5802(0x1e2)][_0x4d5802(0x328)]();}[_0x366146(0x292)](){const _0x3be2c3=_0x366146;this['_init']||(this['_init']=!0x0,this[_0x3be2c3(0x2cf)]['sessionStatus$'][_0x3be2c3(0x1c2)](I[_0x3be2c3(0x225)](this[_0x3be2c3(0x1a0)]))[_0x3be2c3(0x390)](_0x31292e=>{const _0x165b14=_0x3be2c3;_0x31292e===u[_0x165b14(0x1c4)][_0x165b14(0x237)]?this['_toggleOnline']():this[_0x165b14(0x34c)]();}),this['_session']['event$'][_0x3be2c3(0x1c2)](I[_0x3be2c3(0x225)](this[_0x3be2c3(0x1a0)]))['subscribe'](_0x241a12=>{const _0x5b15ba=_0x3be2c3,_0x258cfc=_0x241a12['eventID'];_0x258cfc===g['CollaborationEvent'][_0x5b15ba(0x195)]&&this['_onCursorUpdate'](_0x241a12),_0x258cfc===g[_0x5b15ba(0x238)][_0x5b15ba(0x26b)]&&this[_0x5b15ba(0x14c)](_0x241a12);}),this['_onRefRangeChange'](),this[_0x3be2c3(0x39d)](this[_0x3be2c3(0x16f)]['onCommandExecuted'](_0x457951=>{const _0x41a946=_0x3be2c3;if(this['_online']&&_0x457951['id']===v['SetSelectionsOperation']['id']&&_0x457951['params'][_0x41a946(0x232)]===this[_0x41a946(0x1c5)]){const _0x2ced6a=_0x457951['params'];this[_0x41a946(0x23e)](_0x2ced6a[_0x41a946(0x288)],_0x2ced6a[_0x41a946(0x153)][0x0]);}})));}['_onCursorUpdate'](_0xa1b469){const _0x4e6e8a=_0x366146;var _0x5e7522,_0x58302;const {memberID:_0x48c744,selection:_0x3ec372}=_0xa1b469[_0x4e6e8a(0x2e9)],{sheetName:_0x2dd31a,range:_0x3b6f29}=B[_0x4e6e8a(0x263)](_0x3ec372),_0x41105a={'name':(_0x58302=(_0x5e7522=this[_0x4e6e8a(0x22e)][_0x4e6e8a(0x3db)](this[_0x4e6e8a(0x1c5)],_0x48c744))==null?void 0x0:_0x5e7522[_0x4e6e8a(0x2a0)])!=null?_0x58302:_0x4e6e8a(0x3f0),'range':this[_0x4e6e8a(0x23b)](_0x2dd31a,_0x3b6f29),'sheetID':_0x2dd31a,'color':this[_0x4e6e8a(0x1d3)][_0x4e6e8a(0x3ca)](_0x48c744),'selection':_0x3ec372},_0x336788=this[_0x4e6e8a(0x191)];_0x336788[_0x4e6e8a(0x17a)](_0x48c744,_0x41105a),this['_cursorInfo$'][_0x4e6e8a(0x161)](_0x336788);}['_onCursorDelete'](_0x5486e2){const _0x358dc3=_0x366146,{memberID:_0x4abf1d}=_0x5486e2[_0x358dc3(0x2e9)],_0x235df5=this[_0x358dc3(0x191)];_0x235df5[_0x358dc3(0x382)](_0x4abf1d),this[_0x358dc3(0x20b)][_0x358dc3(0x161)](_0x235df5);}[_0x366146(0x23b)](_0x4f7740,_0x2b5db3){const _0x4654b4=_0x366146;var _0x4f6092,_0x3adae3;const _0x4cdab5=(_0x3adae3=(_0x4f6092=this[_0x4654b4(0x2fe)]['getUniverSheetInstance'](this[_0x4654b4(0x1c5)]))==null?void 0x0:_0x4f6092['getSheetBySheetId'](_0x4f7740))==null?void 0x0:_0x3adae3[_0x4654b4(0x211)]();return(_0x4cdab5==null?void 0x0:_0x4cdab5[_0x4654b4(0x214)](_0x5121b7=>a[_0x4654b4(0x333)]['contains'](_0x5121b7,_0x2b5db3)))||_0x2b5db3;}['_onRefRangeChange'](){const _0x18439c=_0x366146,_0x55425d=new a[(_0x18439c(0x273))](),_0x30e94d=Et(),_0x33e0c8=()=>{const _0xb63749=_0x18439c;_0x55425d['dispose']();const _0x4fccd1=(_0x3e2105,_0x5eb30c,_0x53288e,_0x4c07bc)=>{const _0x154496=_0x23c7;let _0x4cd2b=[];switch(_0x3e2105['id']){case v[_0x154496(0x386)][_0x154496(0x296)]:{_0x4cd2b=v['handleDeleteRangeMoveLeft'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x26f)]:{_0x4cd2b=v[_0x154496(0x3f5)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x162)]:{_0x4cd2b=v[_0x154496(0x2ce)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)]['InsertRangeMoveDownCommandId']:{_0x4cd2b=v[_0x154496(0x2e2)](_0x3e2105,_0x4c07bc);break;}case v['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x4cd2b=v['handleInsertRangeMoveRight'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x19a)]:{_0x4cd2b=v[_0x154496(0x172)](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x26e)]:{_0x4cd2b=v['handleMoveRange'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x32c)]:{_0x4cd2b=v['handleIRemoveCol'](_0x3e2105,_0x4c07bc);break;}case v[_0x154496(0x386)][_0x154496(0x23f)]:{_0x4cd2b=v[_0x154496(0x2df)](_0x3e2105,_0x4c07bc);break;}}const _0x14830a=v[_0x154496(0x40c)](_0x4cd2b,_0x4c07bc),_0x1d3fe3=this['cursorInfo']['get'](_0x5eb30c);if(_0x1d3fe3&&_0x14830a){const _0x739e15={..._0x1d3fe3,'range':_0x14830a};this[_0x154496(0x191)]['set'](_0x5eb30c,_0x739e15),_0x30e94d(()=>{const _0x5c0545=_0x154496,_0x3937a3=this[_0x5c0545(0x2c1)][_0x5c0545(0x2ea)](_0x14830a,_0x233cd9=>(_0x3937a3[_0x5c0545(0x286)](),_0x4fccd1(_0x233cd9,_0x5eb30c,_0x53288e,_0x14830a)));_0x55425d[_0x5c0545(0x2bb)](_0x3937a3);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xb63749(0x3eb)]((_0x3d273c,_0x497a84)=>{const _0x1aa2b0=_0xb63749,{range:_0x573b46,sheetID:_0x488899}=_0x3d273c,_0x26d2e4=this[_0x1aa2b0(0x2c1)][_0x1aa2b0(0x2ea)](_0x573b46,_0x2caf81=>(_0x26d2e4[_0x1aa2b0(0x286)](),_0x4fccd1(_0x2caf81,_0x497a84,_0x488899,_0x573b46)));_0x55425d[_0x1aa2b0(0x2bb)](_0x26d2e4);});};this[_0x18439c(0x39d)](a[_0x18439c(0x30b)](this[_0x18439c(0x20b)][_0x18439c(0x390)](()=>{_0x33e0c8();})));}['_toggleOnline'](){const _0x561694=_0x366146;var _0x4221ea,_0x3e46cf;if(this[_0x561694(0x1b2)]=!0x0,((_0x4221ea=this[_0x561694(0x2fe)]['getFocusedUnit']())==null?void 0x0:_0x4221ea['getUnitId']())!==this[_0x561694(0x1c5)])return;const _0x546bf6=(_0x3e46cf=this['_injector'][_0x561694(0x268)](v[_0x561694(0x1a6)])[_0x561694(0x243)]())==null?void 0x0:_0x3e46cf[0x0],_0x41d24a=this[_0x561694(0x2fe)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x561694(0x25b)])[_0x561694(0x40a)]();_0x546bf6&&_0x41d24a&&this[_0x561694(0x23e)](_0x41d24a[_0x561694(0x1a3)](),_0x546bf6);}[_0x366146(0x34c)](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x366146(0x34a)](a['Injector'])),w(0x3,a[_0x366146(0x34a)](Re)),w(0x4,a[_0x366146(0x34a)](u[_0x366146(0x391)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x366146(0x2d4)]),w(0x7,a['Inject'](v['RefRangeService']))],ge);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x264ca9,_0x28d573,_0x3419a4,_0x25e526)=>{const _0x154772=_0x366146;for(var _0x5c8137=_0x25e526>0x1?void 0x0:_0x25e526?Ct(_0x28d573,_0x3419a4):_0x28d573,_0x3c7750=_0x264ca9[_0x154772(0x18d)]-0x1,_0x1588a1;_0x3c7750>=0x0;_0x3c7750--)(_0x1588a1=_0x264ca9[_0x3c7750])&&(_0x5c8137=_0x1588a1(_0x5c8137)||_0x5c8137);return _0x5c8137;},ce=(_0x18f517,_0x58d233)=>(_0x4c1c6b,_0x48efbd)=>_0x58d233(_0x4c1c6b,_0x48efbd,_0x18f517);let F=class extends a[_0x366146(0x25a)]{constructor(_0x1dc9b8,_0x3e716c,_0x25725f){const _0x718645=_0x366146;super(),_(this,_0x718645(0x373),new Map()),_(this,'_entityInit$',new I[(_0x718645(0x1e1))]()),(this[_0x718645(0x2fe)]=_0x1dc9b8,this[_0x718645(0x354)]=_0x3e716c,this[_0x718645(0x298)]=_0x25725f,this[_0x718645(0x3d7)]());}[_0x366146(0x286)](){const _0x368b7e=_0x366146;super[_0x368b7e(0x286)](),this[_0x368b7e(0x1ef)][_0x368b7e(0x328)](),this[_0x368b7e(0x373)]['forEach'](_0x4c947a=>_0x4c947a[_0x368b7e(0x286)]());}['getCollabCursors$'](_0x5041ea){const _0x4903b0=_0x366146;return this['_entities']['has'](_0x5041ea)?this[_0x4903b0(0x373)]['get'](_0x5041ea)['cursorInfo$']:this[_0x4903b0(0x1ef)][_0x4903b0(0x1c2)](I['filter'](_0x4a4cf8=>_0x4a4cf8[_0x4903b0(0x1c5)]===_0x5041ea),I[_0x4903b0(0x1fd)](_0x250de0=>_0x250de0[_0x4903b0(0x1ea)]));}[_0x366146(0x3d7)](){const _0x325a3b=_0x366146;this[_0x325a3b(0x2fe)]['getTypeOfUnitAdded$'](a[_0x325a3b(0x315)][_0x325a3b(0x25b)])[_0x325a3b(0x1c2)](I[_0x325a3b(0x225)](this['dispose$']))['subscribe'](async _0x276e90=>{const _0x66017a=_0x325a3b,_0x15cc09=_0x276e90[_0x66017a(0x349)](),_0x517eaa=await this[_0x66017a(0x1c6)](_0x15cc09);this[_0x66017a(0x1ef)][_0x66017a(0x161)](_0x517eaa),this[_0x66017a(0x373)][_0x66017a(0x17a)](_0x15cc09,_0x517eaa);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x325a3b(0x315)]['UNIVER_DOC'])[_0x325a3b(0x1c2)](I[_0x325a3b(0x225)](this[_0x325a3b(0x1a0)]))['pipe'](I[_0x325a3b(0x221)](_0x4cc08b=>!_0x4cc08b[_0x325a3b(0x349)]()[_0x325a3b(0x20e)]('__')))[_0x325a3b(0x390)](async _0xf981c3=>{const _0x457630=_0x325a3b,_0x25d597=_0xf981c3['getUnitId'](),_0x1c4c44=await this[_0x457630(0x151)](_0x25d597);this[_0x457630(0x1ef)][_0x457630(0x161)](_0x1c4c44),this[_0x457630(0x373)]['set'](_0x25d597,_0x1c4c44);}),I['merge'](this[_0x325a3b(0x2fe)][_0x325a3b(0x2c6)](a[_0x325a3b(0x315)]['UNIVER_DOC']),this[_0x325a3b(0x2fe)][_0x325a3b(0x2c6)](a[_0x325a3b(0x315)]['UNIVER_SHEET']))['pipe'](I[_0x325a3b(0x225)](this[_0x325a3b(0x1a0)]))[_0x325a3b(0x390)](_0x54dbd8=>{const _0x2529d2=_0x325a3b,_0x321cfe=_0x54dbd8[_0x2529d2(0x349)](),_0x1728aa=this[_0x2529d2(0x373)][_0x2529d2(0x268)](_0x321cfe);_0x1728aa&&(_0x1728aa[_0x2529d2(0x286)](),this[_0x2529d2(0x373)]['delete'](_0x321cfe));});}async[_0x366146(0x1c6)](_0x96f4e1){const _0x4eade9=_0x366146,_0x4e3114=await this[_0x4eade9(0x298)][_0x4eade9(0x157)](_0x96f4e1),_0x38c8e7=this['_injector'][_0x4eade9(0x3f3)](ge,_0x96f4e1,_0x4e3114);return _0x38c8e7[_0x4eade9(0x292)](),_0x38c8e7;}async[_0x366146(0x151)](_0x5f49a5){const _0x6739a7=_0x366146,_0x44168d=await this[_0x6739a7(0x298)][_0x6739a7(0x157)](_0x5f49a5),_0x374b05=this[_0x6739a7(0x354)][_0x6739a7(0x3f3)](ve,_0x5f49a5,_0x44168d);return _0x374b05[_0x6739a7(0x292)](),_0x374b05;}};F=pt([ce(0x0,a[_0x366146(0x375)]),ce(0x1,a['Inject'](a['Injector'])),ce(0x2,a[_0x366146(0x34a)](u[_0x366146(0x31a)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x2950ce,_0x4e6a24){const _0x589528=_0x366146;let {radius:_0x30b527,width:_0x3bf2c5,height:_0x349fc6}=_0x4e6a24;_0x30b527=_0x30b527!=null?_0x30b527:0x0,_0x3bf2c5=_0x3bf2c5!=null?_0x3bf2c5:0x1e,_0x349fc6=_0x349fc6!=null?_0x349fc6:0x1e;let _0x50e921=0x0,_0x100bc3=0x0,_0x2f1ff5=0x0;_0x50e921=_0x100bc3=_0x2f1ff5=Math['min'](_0x30b527,_0x3bf2c5/0x2,_0x349fc6/0x2),_0x2950ce[_0x589528(0x38f)](),_0x2950ce[_0x589528(0x184)](_0x50e921,0x0),_0x2950ce[_0x589528(0x21c)](_0x3bf2c5-_0x100bc3,0x0),_0x2950ce['arc'](_0x3bf2c5-_0x100bc3,_0x100bc3,_0x100bc3,Math['PI']*0x3/0x2,0x0,!0x1),_0x2950ce[_0x589528(0x21c)](_0x3bf2c5,_0x349fc6-_0x2f1ff5),_0x2950ce[_0x589528(0x2ae)](_0x3bf2c5-_0x2f1ff5,_0x349fc6-_0x2f1ff5,_0x2f1ff5,0x0,Math['PI']/0x2,!0x1),_0x2950ce[_0x589528(0x21c)](0x0,_0x349fc6),_0x2950ce[_0x589528(0x21c)](0x0,_0x50e921),_0x2950ce['arc'](_0x50e921,_0x50e921,_0x50e921,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2950ce[_0x589528(0x2f3)](),_0x4e6a24[_0x589528(0x167)]&&(_0x2950ce[_0x589528(0x3c6)](),_0x2950ce[_0x589528(0x245)]=_0x4e6a24[_0x589528(0x167)],_0x4e6a24['fillRule']==='evenodd'?_0x2950ce[_0x589528(0x167)](_0x589528(0x3c8)):_0x2950ce['fill'](),_0x2950ce[_0x589528(0x2b6)]());}class re extends C[_0x366146(0x29d)]{constructor(_0x1ea195,_0x509e01){const _0xf85327=_0x366146;super(_0x1ea195,_0x509e01),_(this,_0xf85327(0x1a2)),_(this,_0xf85327(0x327)),(this[_0xf85327(0x1a2)]=_0x509e01==null?void 0x0:_0x509e01[_0xf85327(0x1a2)],this[_0xf85327(0x327)]=_0x509e01==null?void 0x0:_0x509e01[_0xf85327(0x327)]);}static['drawWith'](_0x4f3e07,_0xb5d4c2){const _0x4e4914=_0x366146,{text:_0x255b81,color:_0x28dab5}=_0xb5d4c2;_0x4f3e07[_0x4e4914(0x3c6)](),_0x4f3e07[_0x4e4914(0x3a6)]=_0x4e4914(0x276);const _0x11bcb1=_0x4f3e07[_0x4e4914(0x31b)](_0x255b81)[_0x4e4914(0x3a1)],_0x32652a=Math[_0x4e4914(0x2d5)](_0x11bcb1+0x2*le,Ue);Ot(_0x4f3e07,{'height':X,'radius':0x4,'width':_0x32652a,'fill':_0x28dab5}),_0x4f3e07[_0x4e4914(0x245)]=_0x4e4914(0x3ce);const _0x152173=le,_0x2ae177=X-Tt,_0x254792=Ue-0x2*le;if(_0x11bcb1>_0x254792){let _0x1356bc='',_0x449df1=0x0;for(const _0x40210e of _0x255b81){const _0x13f5f9=_0x4f3e07[_0x4e4914(0x31b)](_0x40210e)[_0x4e4914(0x3a1)];if(_0x449df1+_0x13f5f9<=_0x254792-_0x4f3e07[_0x4e4914(0x31b)](_0x4e4914(0x2e3))[_0x4e4914(0x3a1)])_0x1356bc+=_0x40210e,_0x449df1+=_0x13f5f9;else{_0x1356bc+=_0x4e4914(0x2e3);break;}}_0x4f3e07[_0x4e4914(0x3d1)](_0x1356bc,_0x152173,_0x2ae177);}else _0x4f3e07['fillText'](_0x255b81,_0x152173,_0x2ae177);_0x4f3e07[_0x4e4914(0x2b6)]();}[_0x366146(0x1c9)](_0x5534e6){re['drawWith'](_0x5534e6,this);}}const _e=_0x366146(0x3fb),Rt=_0x366146(0x29e),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x1e63a1,_0x5e5b2f,_0x54558d,_0x53f805){const _0x579187=_0x366146;_(this,_0x579187(0x397),[]),_(this,_0x579187(0x2e7),null),_(this,'_textBubble',null),_(this,_0x579187(0x250),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x579187(0x2f1)]=_0x1e63a1,this['_scene']=_0x5e5b2f,this['_docSkeleton']=_0x54558d,this[_0x579187(0x28a)]=_0x53f805,this[_0x579187(0x36d)]());}set[_0x366146(0x197)](_0x473f38){const _0x9543fa=_0x366146;_0x473f38?(this[_0x9543fa(0x250)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0x9543fa(0x365)]['show']()):(this[_0x9543fa(0x250)]&&this['_anchorDot'][_0x9543fa(0x2f6)](),this[_0x9543fa(0x365)]&&this[_0x9543fa(0x365)][_0x9543fa(0x32b)]());}[_0x366146(0x286)](){const _0x4a640c=_0x366146;for(const _0x53d666 of this[_0x4a640c(0x397)])_0x53d666[_0x4a640c(0x286)]();this[_0x4a640c(0x365)]&&this['_textBubble']['dispose'](),this[_0x4a640c(0x250)]&&this['_anchorDot'][_0x4a640c(0x286)](),this[_0x4a640c(0x2e7)]&&this[_0x4a640c(0x2e7)][_0x4a640c(0x286)](),this[_0x4a640c(0x23d)]&&this[_0x4a640c(0x23d)]();}['_render'](){const _0x39ab3f=_0x366146;var _0x4ae532;const {_docSkeleton:_0x4dfba1,_document:_0x87d8e8}=this,{color:_0x11de78,name:_0x18c923,ranges:_0x4acb0f}=this[_0x39ab3f(0x2f1)],_0xb6dbac=_0x87d8e8[_0x39ab3f(0x14a)](),{docsLeft:_0x422877,docsTop:_0x919c8}=_0xb6dbac,_0x5f4bf1=new p['NodePositionConvertToCursor'](_0xb6dbac,_0x4dfba1);for(const {startOffset:_0x4e6dbc,endOffset:_0x3d71d7,rangeType:_0x5114c1,segmentId:_0x404287,segmentPage:_0x4b6643,collapsed:_0x1b4a71,isActive:_0x4d86cd}of _0x4acb0f){const _0x466ca6=_0x4dfba1[_0x39ab3f(0x3f2)](_0x4e6dbc,!0x0,_0x404287,_0x4b6643);let _0x4811d1=_0x4dfba1[_0x39ab3f(0x3f2)](_0x3d71d7,!0x0,_0x404287,_0x4b6643);if(_0x4811d1==null&&(_0x4811d1=_0x4dfba1[_0x39ab3f(0x3f2)](_0x3d71d7-0x1,!0x1,_0x404287,_0x4b6643)),_0x4d86cd){const {contentBoxPointGroup:_0x5874fa}=_0x5f4bf1[_0x39ab3f(0x407)](_0x4811d1,_0x4811d1);if(_0x5874fa[_0x39ab3f(0x18d)]===0x0)continue;this['_drawAnchor'](_0x11de78,_0x5874fa,_0x422877,_0x919c8,_0x18c923),this[_0x39ab3f(0x23d)]=this[_0x39ab3f(0x316)]();}if(_0x466ca6&&_0x4811d1){if(_0x5114c1===a['DOC_RANGE_TYPE'][_0x39ab3f(0x19b)]){const _0x51a372=new p[(_0x39ab3f(0x299))](_0xb6dbac,_0x4dfba1),{pointGroup:_0x57eea9}=(_0x4ae532=_0x51a372[_0x39ab3f(0x407)](_0x466ca6,_0x4811d1))!=null?_0x4ae532:{};if(_0x57eea9==null||_0x57eea9[_0x39ab3f(0x18d)]===0x0)continue;this[_0x39ab3f(0x2ca)](_0x11de78,_0x57eea9,_0x422877,_0x919c8);}else{if(!_0x1b4a71){const {borderBoxPointGroup:_0xa33821}=_0x5f4bf1[_0x39ab3f(0x407)](_0x466ca6,_0x4811d1);if(_0xa33821[_0x39ab3f(0x18d)]===0x0)continue;this['_drawTextRange'](_0x11de78,_0xa33821,_0x422877,_0x919c8);}}}}}['_drawAnchor'](_0x44a90c,_0x5c8888,_0x66c70b,_0x2a475a,_0x46a8e1){const _0x97e43f=_0x366146,_0x55f33a=this[_0x97e43f(0x3d8)](_0x5c8888),{left:_0x2d95bc,top:_0x3a37a9,height:_0x37040d}=_0x55f33a,_0x352bbe=this['_getScale'](),_0x5ac16e=Nt/_0x352bbe,_0x226b2c=new C[(_0x97e43f(0x1bd))](_e+a['generateRandomId'](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a,'height':_0x37040d,'width':Dt,'fill':_0x44a90c||C[_0x97e43f(0x399)](a['COLORS'][_0x97e43f(0x309)],0x0),'strokeWidth':_0x5ac16e,'stroke':Ut,'evented':!0x0});this[_0x97e43f(0x2e7)]=_0x226b2c,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x226b2c,p['TEXT_RANGE_LAYER_INDEX']);const _0x4599e5=new C[(_0x97e43f(0x1bd))](_e+a[_0x97e43f(0x28f)](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a-he/0x2,'height':he,'width':he,'fill':_0x44a90c||C[_0x97e43f(0x399)](a[_0x97e43f(0x208)][_0x97e43f(0x309)],0x0),'strokeWidth':0x0,'stroke':_0x44a90c||C[_0x97e43f(0x399)](a[_0x97e43f(0x208)][_0x97e43f(0x309)],0x0),'evented':!0x1});this[_0x97e43f(0x250)]=_0x4599e5,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x4599e5,p[_0x97e43f(0x318)]);const _0x466ba2=new re(_e+a[_0x97e43f(0x28f)](H),{'left':_0x2d95bc+_0x66c70b-_0x5ac16e,'top':_0x3a37a9+_0x2a475a-X,'text':_0x46a8e1,'color':_0x44a90c});this[_0x97e43f(0x365)]=_0x466ba2,this[_0x97e43f(0x3b0)][_0x97e43f(0x201)](_0x466ba2,p[_0x97e43f(0x318)]),this[_0x97e43f(0x197)]=!0x1;}[_0x366146(0x316)](){const _0x14d033=_0x366146,_0x9bd3e4=this[_0x14d033(0x2e7)]['onPointerEnter$'][_0x14d033(0x227)](()=>{const _0x3be5a4=_0x14d033;this[_0x3be5a4(0x197)]=!0x0;}),_0x4a745b=this['_anchor'][_0x14d033(0x302)]['subscribeEvent'](()=>{const _0x4fa14b=_0x14d033;this['_hideTimer']&&clearTimeout(this[_0x4fa14b(0x370)]),this[_0x4fa14b(0x370)]=setTimeout(()=>{const _0xb6d390=_0x4fa14b;this[_0xb6d390(0x197)]=!0x1;},0x7d0);});return()=>{const _0x3f4865=_0x14d033;_0x9bd3e4[_0x3f4865(0x3e0)](),_0x4a745b[_0x3f4865(0x3e0)]();};}[_0x366146(0x37a)](_0xaa1c23,_0x3ea245,_0x21540f,_0x26f3ea){const _0xab55b9=_0x366146,_0x46520f=new a[(_0xab55b9(0x25e))](_0xaa1c23)['setAlpha'](0.2)[_0xab55b9(0x236)](),_0x1fd83d=new C[(_0xab55b9(0x409))](Rt+a[_0xab55b9(0x28f)](H),{'pointsGroup':_0x3ea245,'fill':_0x46520f||C[_0xab55b9(0x399)](a[_0xab55b9(0x208)]['black'],0.2),'left':_0x21540f,'top':_0x26f3ea,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xab55b9(0x397)][_0xab55b9(0x192)](_0x1fd83d),this[_0xab55b9(0x3b0)][_0xab55b9(0x201)](_0x1fd83d,p['TEXT_RANGE_LAYER_INDEX']);}[_0x366146(0x2ca)](_0x36f12f,_0x3e0da4,_0x47c554,_0x119d82){const _0x3412cb=_0x366146,_0x45abf1=new a['ColorKit'](_0x36f12f)[_0x3412cb(0x2dd)](0.2)[_0x3412cb(0x236)](),_0x589f4b=new C[(_0x3412cb(0x409))](bt+a[_0x3412cb(0x28f)](H),{'pointsGroup':_0x3e0da4,'fill':_0x45abf1||C[_0x3412cb(0x399)](a[_0x3412cb(0x208)][_0x3412cb(0x309)],0.2),'left':_0x47c554,'top':_0x119d82,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3412cb(0x397)]['push'](_0x589f4b),this[_0x3412cb(0x3b0)]['addObject'](_0x589f4b,p[_0x3412cb(0x318)]);}[_0x366146(0x3d8)](_0x1e418b){const _0x1b7b2c=_0x1e418b[0x0],_0x348d6a=_0x1b7b2c[0x0],_0x29f580=_0x1b7b2c[0x2],{x:_0x17f6f3,y:_0xc80b3}=_0x348d6a,{x:_0x3c8c2f,y:_0x129ec8}=_0x29f580;return{'left':_0x17f6f3,'top':_0xc80b3,'width':_0x3c8c2f-_0x17f6f3,'height':_0x129ec8-_0xc80b3};}['_getScale'](){const _0x612794=_0x366146,{scaleX:_0x244c30,scaleY:_0x24e717}=this[_0x612794(0x3b0)][_0x612794(0x374)]();return Math[_0x612794(0x262)](_0x244c30,_0x24e717);}}var Lt=Object[_0x366146(0x3ee)],Mt=(_0x1d48a5,_0x29d6d2,_0x55f7d0,_0x2696ff)=>{const _0x40ad2d=_0x366146;for(var _0x15246c=_0x2696ff>0x1?void 0x0:_0x2696ff?Lt(_0x29d6d2,_0x55f7d0):_0x29d6d2,_0x4ae959=_0x1d48a5[_0x40ad2d(0x18d)]-0x1,_0x237665;_0x4ae959>=0x0;_0x4ae959--)(_0x237665=_0x1d48a5[_0x4ae959])&&(_0x15246c=_0x237665(_0x15246c)||_0x15246c);return _0x15246c;},q=(_0x3e2c31,_0x5cf403)=>(_0x49b4f4,_0x51b0ea)=>_0x5cf403(_0x49b4f4,_0x51b0ea,_0x3e2c31);let Ee=class extends a[_0x366146(0x25a)]{constructor(_0x328e0d,_0xaa94ee,_0x45dcfe,_0x57e7d4,_0x22474e){const _0x200dae=_0x366146;super(),_(this,_0x200dae(0x257),[]),_(this,_0x200dae(0x3be),[]),(this[_0x200dae(0x387)]=_0x328e0d,this[_0x200dae(0x3ff)]=_0xaa94ee,this[_0x200dae(0x1fc)]=_0x45dcfe,this['_commandService']=_0x57e7d4,this[_0x200dae(0x29a)]=_0x22474e,this[_0x200dae(0x3d7)]());}[_0x366146(0x3d7)](){const _0x1c5068=_0x366146,_0x4f0a72=this[_0x1c5068(0x387)]['unitId'],_0x3a47b5=this[_0x1c5068(0x3ff)];this[_0x1c5068(0x39d)](I[_0x1c5068(0x3cb)]([this[_0x1c5068(0x1fc)]['getCollabCursors$'](_0x4f0a72),this[_0x1c5068(0x29a)]['currentTheme$']])['pipe']($[_0x1c5068(0x3e9)](([_0x796c3a,_0xbd2c07])=>({'skeleton':_0x3a47b5['getSkeleton'](),'cursors':[..._0x796c3a[_0x1c5068(0x1cf)]()][_0x1c5068(0x220)](_0x4eeaef=>({..._0x4eeaef,'color':this[_0x1c5068(0x29a)][_0x1c5068(0x2d1)](_0x4eeaef[_0x1c5068(0x1a2)])}))})))[_0x1c5068(0x390)](_0x510f47=>{const _0x4cde93=_0x1c5068;if(this[_0x4cde93(0x37f)](),_0x510f47){const {skeleton:_0x64203b,cursors:_0x61e37}=_0x510f47;this['_updateCollabCursors'](_0x64203b,_0x61e37);}})),this[_0x1c5068(0x285)](),this[_0x1c5068(0x360)]();}[_0x366146(0x284)](_0x5265d4,_0x1a31e7){const _0x5c1059=_0x366146,{scene:_0x1d8cc2,mainComponent:_0x296483}=this[_0x5c1059(0x387)],_0x58badd=_0x1a31e7[_0x5c1059(0x3e9)](_0x2f32d2=>new Le(_0x2f32d2,_0x1d8cc2,_0x5265d4,_0x296483));this[_0x5c1059(0x257)]=_0x58badd,this[_0x5c1059(0x3be)]=_0x1a31e7;}[_0x366146(0x2ba)](){const _0x1f629a=_0x366146;this['_removeCollabCursors']();const {scene:_0x8c29d1,mainComponent:_0x1a2527}=this[_0x1f629a(0x387)],_0x59a05a=this[_0x1f629a(0x3ff)][_0x1f629a(0x170)](),_0x2187b5=this[_0x1f629a(0x3be)][_0x1f629a(0x3e9)](_0x545f1c=>new Le(_0x545f1c,_0x8c29d1,_0x59a05a,_0x1a2527));this[_0x1f629a(0x257)]=_0x2187b5;}[_0x366146(0x37f)](){const _0x45e64f=_0x366146;this[_0x45e64f(0x257)][_0x45e64f(0x3eb)](_0x3fd00f=>_0x3fd00f['dispose']()),this[_0x45e64f(0x257)]=[];}[_0x366146(0x360)](){const _0x4082e2=_0x366146,_0x252d7d=[p['SetDocZoomRatioOperation']['id']];this[_0x4082e2(0x39d)](this['_commandService'][_0x4082e2(0x3e7)](_0x3d488f=>{const _0x3956a2=_0x4082e2;_0x252d7d[_0x3956a2(0x2a6)](_0x3d488f['id'])&&_0x3d488f[_0x3956a2(0x35d)]['unitId']===this[_0x3956a2(0x387)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x366146(0x285)](){const _0x1bc5cb=_0x366146;this[_0x1bc5cb(0x39d)](a[_0x1bc5cb(0x281)](this[_0x1bc5cb(0x387)]['engine'][_0x1bc5cb(0x3ef)])[_0x1bc5cb(0x1c2)]($[_0x1bc5cb(0x221)](_0x4953f5=>_0x4953f5['type']===C[_0x1bc5cb(0x2fd)]['resize']),$[_0x1bc5cb(0x18f)](0x10))['subscribe'](()=>{const _0x349365=_0x1bc5cb;this[_0x349365(0x2ba)]();}));}};Ee=Mt([q(0x1,a[_0x366146(0x34a)](V[_0x366146(0x34f)])),q(0x2,a[_0x366146(0x34a)](F)),q(0x3,a[_0x366146(0x2d4)]),q(0x4,a[_0x366146(0x34a)](a[_0x366146(0x1f8)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x366146(0x29d)]{constructor(_0x1038a1,_0x412d03){const _0x42fd97=_0x366146;super(_0x1038a1,_0x412d03),_(this,_0x42fd97(0x1ae)),_(this,_0x42fd97(0x2f8),!0x1),_(this,_0x42fd97(0x3c7)),_(this,_0x42fd97(0x39e),''),_(this,_0x42fd97(0x3f8),_0x42fd97(0x1e9)),_(this,_0x42fd97(0x1e5)),(_0x412d03&&this[_0x42fd97(0x226)](_0x412d03),this[_0x42fd97(0x16c)]['subscribeEvent'](()=>this[_0x42fd97(0x226)]({'hovered':!0x0})),this[_0x42fd97(0x302)][_0x42fd97(0x227)](()=>this[_0x42fd97(0x226)]({'hovered':!0x1})));}[_0x366146(0x226)](_0x39bb99){const _0xa73723=_0x366146;var _0x55f44f,_0xeed4e5,_0x4adb1f,_0x4db402,_0x1dfd36,_0x5741e9;this[_0xa73723(0x1ae)]=(_0x55f44f=_0x39bb99[_0xa73723(0x1a2)])!=null?_0x55f44f:this[_0xa73723(0x1ae)],this[_0xa73723(0x2f8)]=(_0xeed4e5=_0x39bb99[_0xa73723(0x234)])!=null?_0xeed4e5:this[_0xa73723(0x2f8)],this[_0xa73723(0x3c7)]=(_0x4adb1f=_0x39bb99[_0xa73723(0x332)])!=null?_0x4adb1f:this[_0xa73723(0x3c7)],this[_0xa73723(0x39e)]=(_0x4db402=_0x39bb99[_0xa73723(0x2a0)])!=null?_0x4db402:this[_0xa73723(0x39e)],this[_0xa73723(0x3f8)]=(_0x1dfd36=_0x39bb99['labelPosition'])!=null?_0x1dfd36:this[_0xa73723(0x3f8)],this[_0xa73723(0x1e5)]=(_0x5741e9=_0x39bb99[_0xa73723(0x1a1)])!=null?_0x5741e9:this['_backgroundColor'],this['transformByState']({'width':_0x39bb99[_0xa73723(0x3a1)],'height':_0x39bb99[_0xa73723(0x3a3)]});}[_0x366146(0x14f)](_0x1fe21b){const _0x3f8d00=_0x366146,{row:_0x34aad5,column:_0x3e85ca}=_0x1fe21b;if(_0x34aad5>=this[_0x3f8d00(0x3c7)][_0x3f8d00(0x30d)]&&_0x34aad5<=this['_range'][_0x3f8d00(0x2b4)]&&_0x3e85ca>=this[_0x3f8d00(0x3c7)]['startColumn']&&_0x3e85ca<=this[_0x3f8d00(0x3c7)][_0x3f8d00(0x2c7)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3f8d00(0x226)]({'hovered':!0x1});}[_0x366146(0x27c)](_0x33f839){return!0x1;}['_draw'](_0x2e9dc6){const _0x10b029=_0x366146;C[_0x10b029(0x1bd)]['drawWith'](_0x2e9dc6,{'width':this[_0x10b029(0x3a1)],'height':this[_0x10b029(0x3a3)],'strokeWidth':Pt,'stroke':this[_0x10b029(0x1ae)],'evented':!0x1,'fill':this[_0x10b029(0x1e5)]}),this[_0x10b029(0x2f8)]&&(_0x2e9dc6[_0x10b029(0x3c6)](),_0x2e9dc6[_0x10b029(0x300)](0x1,0x0,0x0,0x1,this['width'],this[_0x10b029(0x3f8)]===_0x10b029(0x398)?0x0:-X),re[_0x10b029(0x3bd)](_0x2e9dc6,{'text':this[_0x10b029(0x39e)],'color':this[_0x10b029(0x1ae)]}),_0x2e9dc6['restore']());}}var wt=Object[_0x366146(0x3ee)],yt=(_0x313a42,_0x2353d7,_0x535407,_0x1db730)=>{const _0x57ead8=_0x366146;for(var _0x51522b=_0x1db730>0x1?void 0x0:_0x1db730?wt(_0x2353d7,_0x535407):_0x2353d7,_0x569f23=_0x313a42[_0x57ead8(0x18d)]-0x1,_0xf90775;_0x569f23>=0x0;_0x569f23--)(_0xf90775=_0x313a42[_0x569f23])&&(_0x51522b=_0xf90775(_0x51522b)||_0x51522b);return _0x51522b;},ue=(_0x1a4a26,_0x5210d5)=>(_0x11ff3b,_0x4a9563)=>_0x5210d5(_0x11ff3b,_0x4a9563,_0x1a4a26);const $t=0x1389;let Ce=class extends a[_0x366146(0x25a)]{constructor(_0x2e8a9d,_0x8d073a,_0xe4d4eb,_0x3168cb){const _0x145fc8=_0x366146;super(),_(this,'_cursors',new Set()),_(this,_0x145fc8(0x3de),null),(this[_0x145fc8(0x387)]=_0x2e8a9d,this['_sheetSkeletonManagerService']=_0x8d073a,this[_0x145fc8(0x1fc)]=_0xe4d4eb,this[_0x145fc8(0x29a)]=_0x3168cb,this[_0x145fc8(0x3d7)]());}[_0x366146(0x3d7)](){const _0xd686a9=_0x366146;this[_0xd686a9(0x269)]['currentSkeleton$'][_0xd686a9(0x1c2)]($[_0xd686a9(0x225)](this[_0xd686a9(0x1a0)]),$[_0xd686a9(0x1fd)](_0x4c0aff=>{const _0x376e81=_0xd686a9;if(_0x4c0aff){const _0x5e4b77=_0x4c0aff[_0x376e81(0x33a)];return I['combineLatest'](this[_0x376e81(0x1fc)][_0x376e81(0x2af)](this[_0x376e81(0x387)][_0x376e81(0x232)]),this['_themeService'][_0x376e81(0x1c0)])[_0x376e81(0x1c2)]($[_0x376e81(0x3e9)](([_0x4da1bb,_0x331af2])=>{const _0x272714=new Map();return _0x4da1bb['forEach']((_0x1df641,_0x17729a)=>{const _0x33b0df=_0x23c7;if(_0x1df641[_0x33b0df(0x1b5)]===_0x5e4b77){const _0x3eb949={..._0x1df641};_0x3eb949['color']=this[_0x33b0df(0x29a)][_0x33b0df(0x2d1)](_0x1df641[_0x33b0df(0x1a2)]),_0x272714[_0x33b0df(0x17a)](_0x17729a,_0x3eb949);}}),{'skeleton':_0x4c0aff,'cursors':_0x272714};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4a3b92,cursors:_0x408c1d})=>{const _0xc61205=_0xd686a9;this[_0xc61205(0x37f)](),_0x4a3b92&&this[_0xc61205(0x284)](_0x4a3b92,_0x408c1d);}),this[_0xd686a9(0x269)]['currentSkeleton$']['subscribe'](_0x3ca6af=>{const _0x442827=_0xd686a9;if(_0x3ca6af==null)return;const {skeleton:_0x2b9e06}=_0x3ca6af,{scene:_0x87e01f}=this[_0x442827(0x387)];_0x87e01f[_0x442827(0x3c2)]['subscribeEvent'](a[_0x442827(0x278)](_0x3929bc=>{const _0x5b7b74=_0x442827;var _0x4f3f67,_0xc5ea3;const {offsetX:_0x291c6f,offsetY:_0x30c06d}=_0x3929bc,{x:_0x587d24,y:_0x5f1708}=_0x87e01f[_0x5b7b74(0x16b)](C[_0x5b7b74(0x247)][_0x5b7b74(0x260)]([_0x291c6f,_0x30c06d])),{scaleX:_0x480af8,scaleY:_0x4a0d84}=_0x87e01f[_0x5b7b74(0x374)](),_0x915eb5=_0x87e01f['getViewport'](C[_0x5b7b74(0x35e)][_0x5b7b74(0x38e)]),_0x4c80a7=_0x87e01f[_0x5b7b74(0x1b7)](C[_0x5b7b74(0x247)][_0x5b7b74(0x260)]([_0x587d24,_0x5f1708]),_0x915eb5),_0x4bb918=_0x2b9e06['getCellPositionByOffset'](_0x291c6f,_0x30c06d,_0x480af8,_0x4a0d84,_0x4c80a7);((_0x4f3f67=this[_0x5b7b74(0x3de)])==null?void 0x0:_0x4f3f67['column'])===_0x4bb918['column']&&((_0xc5ea3=this[_0x5b7b74(0x3de)])==null?void 0x0:_0xc5ea3['row'])===_0x4bb918[_0x5b7b74(0x314)]||this['_cursors']['forEach'](_0x44bf3d=>{const _0x2f6851=_0x5b7b74;_0x44bf3d[_0x2f6851(0x14f)](_0x4bb918);});},0x64));});}[_0x366146(0x284)](_0x436bf4,_0x53848a){const _0x5137b=_0x366146;var _0x580b0f;const _0x4f647c=(_0x580b0f=this[_0x5137b(0x269)]['getCurrent']())==null?void 0x0:_0x580b0f[_0x5137b(0x1c1)];if(!_0x4f647c)return;const _0x81f87e=this[_0x5137b(0x2b9)]();if(!_0x81f87e)return;this[_0x5137b(0x3be)][_0x5137b(0x3eb)](_0x140d63=>{const _0x419965=_0x5137b;_0x140d63[_0x419965(0x16e)]();});const {scene:_0x1cfe9c}=_0x81f87e,_0x397e05=xt(Array[_0x5137b(0x2b2)](_0x53848a[_0x5137b(0x1cf)]()))['map'](_0x2b19b9=>{const _0x304489=_0x5137b,{color:_0x16bd7d,range:_0x344a26,name:_0x574ad1,selection:_0x34f311,sheetID:_0x3b4ae7}=_0x2b19b9,{startColumn:_0x217580,startRow:_0x2b958c,endColumn:_0x4b47bf,endRow:_0x5a7c83}=_0x344a26,_0x25af47=J['getCoordByCell'](_0x2b958c,_0x217580,_0x1cfe9c,_0x4f647c),_0x56a6bb=J['getCoordByCell'](_0x5a7c83,_0x4b47bf,_0x1cfe9c,_0x4f647c),{columnHeaderHeightAndMarginTop:_0x199a22}=_0x4f647c,{startX:_0x2dffb9,startY:_0x468cd2}=_0x25af47,{endX:_0xebc19b,endY:_0x1f351d}=_0x56a6bb,_0x2f918f=_0xebc19b-_0x2dffb9,_0x911cc3=_0x1f351d-_0x468cd2,_0x379855={'labelPosition':_0x468cd2-_0x199a22>=X?_0x304489(0x1e9):_0x304489(0x398),'sheetID':_0x3b4ae7,'range':_0x344a26,'color':_0x16bd7d,'name':_0x574ad1,'selection':_0x34f311,'left':_0x2dffb9,'top':_0x468cd2,'width':_0x2f918f,'height':_0x911cc3,'evented':!0x1,'zIndex':$t};return new je(_0x574ad1,_0x379855);});_0x1cfe9c['addObjects'](_0x397e05,At),this[_0x5137b(0x3be)]=new Set(_0x397e05);}[_0x366146(0x37f)](){const _0x696e8c=_0x366146;var _0x5d274b;(_0x5d274b=this[_0x696e8c(0x3be)])==null||_0x5d274b[_0x696e8c(0x3eb)](_0xfff85c=>_0xfff85c[_0x696e8c(0x286)]());}[_0x366146(0x2b9)](){const _0xd80395=_0x366146;return J[_0xd80395(0x1f9)](this[_0xd80395(0x387)][_0xd80395(0x186)],this[_0xd80395(0x387)]);}};Ce=yt([ue(0x1,a[_0x366146(0x34a)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x366146(0x34a)](F)),ue(0x3,a['Inject'](a[_0x366146(0x1f8)]))],Ce);function xt(_0x298ef0){const _0x30935f=_0x366146,_0x79e285=new Map();return _0x298ef0[_0x30935f(0x3eb)](_0x1e424e=>{const _0x5d48d7=_0x30935f;if(_0x79e285[_0x5d48d7(0x3fe)](_0x1e424e[_0x5d48d7(0x21f)])){const _0x52a909=_0x79e285[_0x5d48d7(0x268)](_0x1e424e[_0x5d48d7(0x21f)]);_0x52a909[_0x5d48d7(0x2a0)]+=',\x20'+_0x1e424e[_0x5d48d7(0x2a0)];}else _0x79e285[_0x5d48d7(0x17a)](_0x1e424e[_0x5d48d7(0x21f)],_0x1e424e);}),Array[_0x30935f(0x2b2)](_0x79e285['values']());}var Bt=Object[_0x366146(0x3ee)],Ft=(_0x240f0b,_0x566051,_0xb310b,_0x224288)=>{const _0x280790=_0x366146;for(var _0x4cc1a8=_0x224288>0x1?void 0x0:_0x224288?Bt(_0x566051,_0xb310b):_0x566051,_0x2e8f25=_0x240f0b[_0x280790(0x18d)]-0x1,_0x418456;_0x2e8f25>=0x0;_0x2e8f25--)(_0x418456=_0x240f0b[_0x2e8f25])&&(_0x4cc1a8=_0x418456(_0x4cc1a8)||_0x4cc1a8);return _0x4cc1a8;},y=(_0x38791c,_0x1442e1)=>(_0x5e3733,_0xfe02da)=>_0x1442e1(_0x5e3733,_0xfe02da,_0x38791c);let Z=class extends a[_0x366146(0x176)]{constructor(_0x82bd03,_0x2a1b5a,_0x26ed3e,_0x4f46fb,_0x471b16,_0x1ec859){const _0xb1be8d=_0x366146;super(),this[_0xb1be8d(0x23a)]=_0x82bd03,this[_0xb1be8d(0x1ed)]=_0x2a1b5a,this[_0xb1be8d(0x1e7)]=_0x26ed3e,this[_0xb1be8d(0x24d)]=_0x4f46fb,this[_0xb1be8d(0x3a2)]=_0x471b16,this[_0xb1be8d(0x2ac)]=_0x1ec859,this[_0xb1be8d(0x3ec)](),this['_initEvent']();}[_0x366146(0x3ec)](){const _0x26d49a=_0x366146;this[_0x26d49a(0x39d)](this['_beforeCloseService'][_0x26d49a(0x350)](()=>{const _0x13250d=_0x26d49a;if(this[_0x13250d(0x1ed)][_0x13250d(0x189)][_0x13250d(0x224)])return this[_0x13250d(0x2ac)]['t'](_0x13250d(0x279));}));}[_0x366146(0x297)](){const _0x1916cd=_0x366146;this[_0x1916cd(0x39d)](this[_0x1916cd(0x1e7)][_0x1916cd(0x18c)][_0x1916cd(0x390)](_0x1dca58=>{const _0xc2f720=_0x1916cd;_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x3d5)]&&this[_0xc2f720(0x24d)][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this['_localeService']['t'](_0xc2f720(0x2b7))}),_0x1dca58['id']===u['CollaborationUIEventId'][_0xc2f720(0x3d4)]&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this[_0xc2f720(0x2ac)]['t']('collaboration.closeRoom')}),_0x1dca58['id']===u[_0xc2f720(0x28d)]['PERMISSION_DENIED']&&this['_notificationService'][_0xc2f720(0x2f6)]({'title':this['_localeService']['t'](_0xc2f720(0x169)),'content':this[_0xc2f720(0x2ac)]['t'](_0xc2f720(0x38c)),'type':_0xc2f720(0x329),'duration':0x0}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x34b)]&&this['_messageService'][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x1e3)],'content':this['_localeService']['t'](_0xc2f720(0x3ea))+'('+_0x1dca58[_0xc2f720(0x2e9)]+')'}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x2cd)]&&this[_0xc2f720(0x24d)][_0xc2f720(0x2f6)]({'type':T['MessageType'][_0xc2f720(0x362)],'content':this['_localeService']['t'](_0x1dca58[_0xc2f720(0x2e9)]||'')}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x152)]&&this['_messageService'][_0xc2f720(0x2f6)]({'type':T[_0xc2f720(0x326)][_0xc2f720(0x362)],'content':this[_0xc2f720(0x2ac)]['t'](_0xc2f720(0x1f6))}),_0x1dca58['id']===u[_0xc2f720(0x28d)][_0xc2f720(0x3ba)]&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)]['Error'],'content':this[_0xc2f720(0x2ac)]['t']('session.connection-failed')}),_0x1dca58['id']===u[_0xc2f720(0x28d)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xc2f720(0x24d)]['show']({'type':T[_0xc2f720(0x326)]['Error'],'content':this[_0xc2f720(0x2ac)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x366146(0x270)]),y(0x1,u[_0x366146(0x32d)]),y(0x2,a[_0x366146(0x34a)](u['CollaborationUIEventService'])),y(0x3,O[_0x366146(0x3a4)]),y(0x4,O[_0x366146(0x27d)]),y(0x5,a[_0x366146(0x34a)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x196081,_0x41a72b,_0x25a1e3,_0x25db07)=>{const _0x2e8a8d=_0x366146;for(var _0x2e973a=_0x25db07>0x1?void 0x0:_0x25db07?jt(_0x41a72b,_0x25a1e3):_0x41a72b,_0x1d80ec=_0x196081[_0x2e8a8d(0x18d)]-0x1,_0x494ad5;_0x1d80ec>=0x0;_0x1d80ec--)(_0x494ad5=_0x196081[_0x1d80ec])&&(_0x2e973a=_0x494ad5(_0x2e973a)||_0x2e973a);return _0x2e973a;},z=(_0x544899,_0x463e78)=>(_0x4396f2,_0x3c9ad0)=>_0x463e78(_0x4396f2,_0x3c9ad0,_0x544899);let Q=class extends a['Disposable']{constructor(_0x2ecb28,_0x407713,_0x47b174,_0x39a7a9){const _0x4173cc=_0x366146;super(),_(this,'_memberID'),(this[_0x4173cc(0x354)]=_0x2ecb28,this[_0x4173cc(0x2a2)]=_0x407713,this[_0x4173cc(0x204)]=_0x47b174,this[_0x4173cc(0x2ef)]=_0x39a7a9,this['_init']());}[_0x366146(0x3d7)](){const _0x2501be=_0x366146;this[_0x2501be(0x348)](),this[_0x2501be(0x3b7)](),this['_monkeyPatchLogService'](),this[_0x2501be(0x367)]();}[_0x366146(0x367)](){const _0x3c14b3=_0x366146;this[_0x3c14b3(0x39d)](this[_0x3c14b3(0x2ef)][_0x3c14b3(0x389)]['subscribe'](_0xe4c856=>{const _0x3907a2=_0x3c14b3;this[_0x3907a2(0x249)]=_0xe4c856==null?void 0x0:_0xe4c856[_0x3907a2(0x200)];}));}[_0x366146(0x348)](){const _0x1f387a=_0x366146,_0x16f050=_0x3b24d7=>{const _0x3a3a5c=_0x23c7;var _0x2b6906;this[_0x3a3a5c(0x3bc)](_0x3a3a5c(0x329),_0x3a3a5c(0x2c2)+_0x3b24d7['message']+_0x3a3a5c(0x3cc)+_0x3b24d7['filename']+':'+_0x3b24d7[_0x3a3a5c(0x2a3)]+':'+_0x3b24d7[_0x3a3a5c(0x320)]+'\x0a'+(((_0x2b6906=_0x3b24d7[_0x3a3a5c(0x329)])==null?void 0x0:_0x2b6906[_0x3a3a5c(0x1a7)])||''));};window[_0x1f387a(0x15f)]('error',_0x16f050),this[_0x1f387a(0x39d)](()=>{const _0x2396a8=_0x1f387a;window[_0x2396a8(0x395)](_0x2396a8(0x329),_0x16f050);});}[_0x366146(0x3b7)](){const _0x25e391=_0x366146,_0x2099aa=_0x4ab82d=>{const _0x546e08=_0x23c7;this[_0x546e08(0x3bc)](_0x546e08(0x329),_0x546e08(0x235)+_0x4ab82d[_0x546e08(0x3d2)]);};window[_0x25e391(0x15f)](_0x25e391(0x2cc),_0x2099aa),this['disposeWithMe'](()=>{const _0x3d2b10=_0x25e391;window[_0x3d2b10(0x395)](_0x3d2b10(0x2cc),_0x2099aa);});}[_0x366146(0x2eb)](){const _0x93db32=_0x366146,_0x3256a7=this[_0x93db32(0x204)][_0x93db32(0x329)]['bind'](this['_logService']);this[_0x93db32(0x204)][_0x93db32(0x329)]=(..._0x514338)=>{const _0x299657=_0x93db32,_0xca01b=_0x514338[_0x299657(0x3e9)](_0x38937a=>_0x38937a instanceof Error?_0x38937a[_0x299657(0x20a)]+'\x0a'+_0x38937a[_0x299657(0x1a7)]:String(_0x38937a))[_0x299657(0x295)]('\x20');this['_uploadLog']('error',_0x299657(0x36e)+_0xca01b),_0x3256a7(..._0x514338);},this[_0x93db32(0x39d)](()=>{const _0x19558b=_0x93db32;this[_0x19558b(0x204)]['error']=_0x3256a7;});}[_0x366146(0x3bc)](_0x2b9861,_0xbf4df0){const _0x168994=_0x366146;try{const _0x36d152={'userId':this['_memberID'],'logLabel':_0x2b9861,'content':_0xbf4df0};this[_0x168994(0x2a2)][_0x168994(0x1b3)](_0x168994(0x1db),{'body':_0x36d152})['catch'](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x366146(0x364)])),z(0x1,a['Inject'](x[_0x366146(0x388)])),z(0x2,a[_0x366146(0x2e8)]),z(0x3,a[_0x366146(0x34a)](u[_0x366146(0x31a)]))],Q);const Yt=_0x366146(0x1ca),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x4f7341,_0x152d4e,_0xd7dbcb,_0x4d85a2)=>{for(var _0x56f30c=_0x4d85a2>0x1?void 0x0:_0x4d85a2?Ht(_0x152d4e,_0xd7dbcb):_0x152d4e,_0x456f96=_0x4f7341['length']-0x1,_0x37d7a6;_0x456f96>=0x0;_0x456f96--)(_0x37d7a6=_0x4f7341[_0x456f96])&&(_0x56f30c=_0x37d7a6(_0x56f30c)||_0x56f30c);return _0x56f30c;},Ae=(_0x541fd3,_0xf76c67)=>(_0x1dee17,_0x146473)=>_0xf76c67(_0x1dee17,_0x146473,_0x541fd3);let ee=class{constructor(_0x22d8c6,_0x1371d1){const _0x450854=_0x366146;this[_0x450854(0x1e8)]=_0x22d8c6,this['_renderManagerService']=_0x1371d1;}[_0x366146(0x3ac)](_0x342b3b){const _0x58e430=_0x366146;this[_0x58e430(0x305)](_0x342b3b),this['_transformPreviousActiveRange'](_0x342b3b);}['transformRemoteChangeset'](_0x13e790){const _0x3a1c11=_0x366146,{unitID:_0x55cc4e}=_0x13e790,_0x2fd31d=this[_0x3a1c11(0x3fd)][_0x3a1c11(0x216)](_0x55cc4e)['with'](p[_0x3a1c11(0x2c4)]),{redoCache:_0x511bb7}=_0x2fd31d[_0x3a1c11(0x3aa)]();if(_0x511bb7[_0x3a1c11(0x18d)]===0x0)return _0x13e790;let _0x578356=a['Tools'][_0x3a1c11(0x363)](_0x13e790['mutations'][0x0]);for(let _0x4759d5=0x0;_0x4759d5<_0x511bb7[_0x3a1c11(0x18d)];_0x4759d5++){const _0x4b6945={'id':_0x3a1c11(0x155),'params':{..._0x511bb7[_0x4759d5]}},_0x28fba5=this['_transformService'][_0x3a1c11(0x206)](_0x578356,_0x4b6945,!0x1);if(g['isTransformMutationFailure'](_0x28fba5))throw _0x28fba5[_0x3a1c11(0x329)];_0x578356=_0x28fba5['m1Prime'];}return{...a[_0x3a1c11(0x1d5)][_0x3a1c11(0x363)](_0x13e790),'mutations':[_0x578356]};}[_0x366146(0x305)](_0x2aa4cc){const _0x218918=_0x366146,{unitID:_0x4aaaa0}=_0x2aa4cc,_0x571018=this[_0x218918(0x3fd)][_0x218918(0x216)](_0x4aaaa0)[_0x218918(0x1eb)](p[_0x218918(0x2c4)]),{undoCache:_0x583026,redoCache:_0x4a230a}=_0x571018[_0x218918(0x3aa)]();if(_0x583026[_0x218918(0x18d)]===0x0||_0x4a230a[_0x218918(0x18d)]===0x0)return;const _0x4e89ec=[],_0x3dbf95=[];let _0x3b5a53=a[_0x218918(0x1d5)]['deepClone'](_0x2aa4cc[_0x218918(0x32f)][0x0]),_0x38bb94=a['Tools'][_0x218918(0x363)](_0x2aa4cc[_0x218918(0x32f)][0x0]);for(let _0x2de221=_0x583026[_0x218918(0x18d)]-0x1;_0x2de221>=0x0;_0x2de221--){const _0x36c70d={'id':_0x218918(0x155),'params':{..._0x583026[_0x2de221]}},_0x3a21e0={'id':_0x218918(0x155),'params':{..._0x4a230a[_0x2de221]}},_0x4be2de=this[_0x218918(0x1e8)][_0x218918(0x206)](_0x3b5a53,_0x36c70d,!0x1),_0x1f8250=this[_0x218918(0x1e8)][_0x218918(0x206)](_0x38bb94,_0x3a21e0,!0x1);if(g[_0x218918(0x339)](_0x4be2de))throw _0x4be2de['error'];if(g['isTransformMutationFailure'](_0x1f8250))throw _0x1f8250[_0x218918(0x329)];_0x4e89ec['unshift'](_0x4be2de[_0x218918(0x340)][_0x218918(0x35d)]),_0x3dbf95[_0x218918(0x266)](_0x1f8250['m2Prime'][_0x218918(0x35d)]),_0x3b5a53=_0x4be2de[_0x218918(0x28b)],_0x38bb94=_0x1f8250['m1Prime'];}_0x571018[_0x218918(0x3b5)]({'undoCache':_0x4e89ec,'redoCache':_0x3dbf95});}[_0x366146(0x17f)](_0x427436){const _0x419577=_0x366146,{unitID:_0x11c962}=_0x427436,_0x2b8b1f=this[_0x419577(0x3fd)][_0x419577(0x216)](_0x11c962)[_0x419577(0x1eb)](p[_0x419577(0x2c4)]),_0x386001=_0x2b8b1f[_0x419577(0x3fc)]();if(_0x386001==null)return;const _0x5001af=[{'id':_0x419577(0x155),'params':{'unitId':_0x427436[_0x419577(0x1c5)],'actions':null,'textRanges':[_0x386001]}}],_0xade527=this[_0x419577(0x1e8)][_0x419577(0x2f7)](_0x427436,_0x5001af);if(!g[_0x419577(0x283)](_0xade527))throw _0xade527[_0x419577(0x329)];const _0x5bb34c=_0xade527[_0x419577(0x340)][0x0][_0x419577(0x35d)][_0x419577(0x24b)];Array[_0x419577(0x15d)](_0x5bb34c)&&_0x5bb34c[_0x419577(0x18d)]&&_0x2b8b1f['setActiveRange'](_0x5bb34c[0x0]);}};ee=Wt([Ae(0x0,g[_0x366146(0x1de)]),Ae(0x1,C[_0x366146(0x1da)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x169581,_0x3fc159,_0x321a4f,_0x558d26)=>{for(var _0x599c1e=_0x558d26>0x1?void 0x0:_0x558d26?Vt(_0x3fc159,_0x321a4f):_0x3fc159,_0x45157a=_0x169581['length']-0x1,_0x528651;_0x45157a>=0x0;_0x45157a--)(_0x528651=_0x169581[_0x45157a])&&(_0x599c1e=_0x528651(_0x599c1e)||_0x599c1e);return _0x599c1e;},Ie=(_0x2db9e9,_0x19a54b)=>(_0x48c04f,_0x3e94bc)=>_0x19a54b(_0x48c04f,_0x3e94bc,_0x2db9e9);let te=class{constructor(_0x20980b,_0x39c01f,_0x43e1){const _0x1edc39=_0x366146;this[_0x1edc39(0x354)]=_0x20980b,this['_transformService']=_0x39c01f,this[_0x1edc39(0x2d7)]=_0x43e1;}[_0x366146(0x30e)](_0x3bce88){const _0x23f1b3=_0x366146;this[_0x23f1b3(0x3ed)](_0x3bce88);}['transformRemoteChangeset'](_0x34ab43){const _0x37f48b=_0x366146,{unitID:_0x3a1767}=_0x34ab43,{collaboration:_0x5e1b6d}=this[_0x37f48b(0x2d7)][_0x37f48b(0x406)](_0x3a1767);if(_0x5e1b6d['length']===0x0)return _0x34ab43;let _0x69014f=a[_0x37f48b(0x1d5)][_0x37f48b(0x363)](_0x34ab43[_0x37f48b(0x32f)][0x0]);for(let _0x37ccdc=0x0;_0x37ccdc<_0x5e1b6d[_0x37f48b(0x18d)];_0x37ccdc++){const _0x48a8e5={'id':_0x37f48b(0x155),'params':{'unitId':_0x5e1b6d[_0x37ccdc]['unitId'],..._0x5e1b6d[_0x37ccdc][_0x37f48b(0x2e6)]}},_0x531b4b=this[_0x37f48b(0x1e8)]['transformMutation'](_0x69014f,_0x48a8e5,!0x1);if(g['isTransformMutationFailure'](_0x531b4b))throw _0x531b4b[_0x37f48b(0x329)];_0x69014f=_0x531b4b[_0x37f48b(0x28b)];}return{...a['Tools'][_0x37f48b(0x363)](_0x34ab43),'mutations':[_0x69014f]};}[_0x366146(0x3ed)](_0x1c6c58){const _0x2b09aa=_0x366146,{unitID:_0x2b695c}=_0x1c6c58,{history:_0x5d923e,collaboration:_0x43d784}=this[_0x2b09aa(0x2d7)][_0x2b09aa(0x406)](_0x2b695c);if(_0x5d923e['length']===0x0&&_0x43d784[_0x2b09aa(0x18d)]===0x0)return;const _0x1ae243=[],_0x45331b=[];let _0x5364d6=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]),_0x4971d5=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58['mutations'][0x0]);for(let _0x2de529=_0x5d923e[_0x2b09aa(0x18d)]-0x1;_0x2de529>=0x0;_0x2de529--){const _0x2ce4a3={'id':_0x2b09aa(0x155),'params':{'unitId':_0x5d923e[_0x2de529][_0x2b09aa(0x232)],..._0x5d923e[_0x2de529][_0x2b09aa(0x37c)]}},_0x3cf09f={'id':_0x2b09aa(0x155),'params':{'unitId':_0x5d923e[_0x2de529]['unitId'],..._0x5d923e[_0x2de529][_0x2b09aa(0x2e6)]}},_0x14a389=this['_transformService']['transformMutation'](_0x5364d6,_0x2ce4a3,!0x1),_0x3e470b=this[_0x2b09aa(0x1e8)][_0x2b09aa(0x206)](_0x4971d5,_0x3cf09f,!0x1);if(g['isTransformMutationFailure'](_0x14a389))throw _0x14a389[_0x2b09aa(0x329)];if(g[_0x2b09aa(0x339)](_0x3e470b))throw _0x3e470b[_0x2b09aa(0x329)];_0x1ae243[_0x2b09aa(0x266)]({..._0x5d923e[_0x2de529],'undoState':_0x14a389[_0x2b09aa(0x340)]['params'],'redoState':_0x3e470b[_0x2b09aa(0x340)][_0x2b09aa(0x35d)]}),_0x5364d6=_0x14a389[_0x2b09aa(0x28b)],_0x4971d5=_0x3e470b[_0x2b09aa(0x28b)];}_0x5364d6=a[_0x2b09aa(0x1d5)][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]),_0x4971d5=a['Tools'][_0x2b09aa(0x363)](_0x1c6c58[_0x2b09aa(0x32f)][0x0]);for(let _0x4702e8=_0x43d784[_0x2b09aa(0x18d)]-0x1;_0x4702e8>=0x0;_0x4702e8--){const _0x1371b1={'id':_0x2b09aa(0x155),'params':{'unitId':_0x43d784[_0x4702e8][_0x2b09aa(0x232)],..._0x43d784[_0x4702e8][_0x2b09aa(0x37c)]}},_0x297ee7={'id':_0x2b09aa(0x155),'params':{'unitId':_0x43d784[_0x4702e8][_0x2b09aa(0x232)],..._0x43d784[_0x4702e8]['redoState']}},_0x7c2335=this[_0x2b09aa(0x1e8)][_0x2b09aa(0x206)](_0x5364d6,_0x1371b1,!0x1),_0x5db77d=this['_transformService']['transformMutation'](_0x4971d5,_0x297ee7,!0x1);if(g[_0x2b09aa(0x339)](_0x7c2335))throw _0x7c2335[_0x2b09aa(0x329)];if(g['isTransformMutationFailure'](_0x5db77d))throw _0x5db77d['error'];_0x45331b[_0x2b09aa(0x266)]({..._0x43d784[_0x4702e8],'undoState':_0x7c2335[_0x2b09aa(0x340)][_0x2b09aa(0x35d)],'redoState':_0x5db77d['m2Prime'][_0x2b09aa(0x35d)]}),_0x5364d6=_0x7c2335[_0x2b09aa(0x28b)],_0x4971d5=_0x5db77d['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x2b695c,{'history':_0x1ae243,'collaboration':_0x45331b});}};te=Gt([Ie(0x0,a['Inject'](a[_0x366146(0x364)])),Ie(0x1,g[_0x366146(0x1de)]),Ie(0x2,a['Inject'](p[_0x366146(0x1b4)]))],te);var Xt=Object[_0x366146(0x3ee)],Kt=(_0xa481d1,_0x55975a,_0x4d2f00,_0x3bf65b)=>{const _0x1418e8=_0x366146;for(var _0x39d40c=_0x3bf65b>0x1?void 0x0:_0x3bf65b?Xt(_0x55975a,_0x4d2f00):_0x55975a,_0x51d900=_0xa481d1[_0x1418e8(0x18d)]-0x1,_0x50792f;_0x51d900>=0x0;_0x51d900--)(_0x50792f=_0xa481d1[_0x51d900])&&(_0x39d40c=_0x50792f(_0x39d40c)||_0x39d40c);return _0x39d40c;},Pe=(_0x3f0559,_0x19fce5)=>(_0x3faf31,_0x5813f5)=>_0x19fce5(_0x3faf31,_0x5813f5,_0x3f0559);let se=class{constructor(_0x44f3d5,_0x5e06b2){const _0x1d8904=_0x366146;this['_injector']=_0x44f3d5,this[_0x1d8904(0x1e8)]=_0x5e06b2;}[_0x366146(0x15a)](_0xc10dda){const _0x2d7f64=_0x366146;var _0x5d0ff3;const _0x22272b=this[_0x2d7f64(0x354)][_0x2d7f64(0x268)](V[_0x2d7f64(0x38d)]),_0x186468=(_0x5d0ff3=_0x22272b['getDocRanges']())!=null?_0x5d0ff3:[];if(_0x186468[_0x2d7f64(0x18d)]===0x0)return;const _0x103fe1=_0xc10dda[_0x2d7f64(0x1c5)],_0x17b7c3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x103fe1,'actions':null,'textRanges':_0x186468}}],_0x2a3640=this[_0x2d7f64(0x1e8)][_0x2d7f64(0x2f7)](_0xc10dda,_0x17b7c3);if(!g[_0x2d7f64(0x283)](_0x2a3640))throw _0x2a3640[_0x2d7f64(0x329)];const _0x10b91e=_0x2a3640[_0x2d7f64(0x340)][0x0]['params']['textRanges'];Array[_0x2d7f64(0x15d)](_0x10b91e)&&_0x10b91e['length']&&_0x22272b['replaceDocRanges'](_0x10b91e,{'unitId':_0x103fe1,'subUnitId':_0x103fe1},!0x1);}};se=Kt([Pe(0x0,a[_0x366146(0x34a)](a[_0x366146(0x364)])),Pe(0x1,g[_0x366146(0x1de)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x48a085,_0x4cc156,_0x40d62f,_0x5062b1)=>{const _0x36d16b=_0x366146;for(var _0x9345c7=_0x5062b1>0x1?void 0x0:_0x5062b1?qt(_0x4cc156,_0x40d62f):_0x4cc156,_0x59111b=_0x48a085[_0x36d16b(0x18d)]-0x1,_0x427d52;_0x59111b>=0x0;_0x59111b--)(_0x427d52=_0x48a085[_0x59111b])&&(_0x9345c7=_0x427d52(_0x9345c7)||_0x9345c7);return _0x9345c7;},N=(_0x24b457,_0x3da734)=>(_0x292a88,_0x5191b6)=>_0x3da734(_0x292a88,_0x5191b6,_0x24b457);let ie=class extends a[_0x366146(0x176)]{constructor(_0x2e815d,_0x46cb7b,_0x31935b,_0x47257b,_0x5e0e97,_0x42357d,_0x274cc5,_0x1c1dd8){const _0x2a3747=_0x366146;super(),_(this,'_status$',new I[(_0x2a3747(0x3a8))](u['CollaborationStatus'][_0x2a3747(0x2ad)])),(this[_0x2a3747(0x2d7)]=_0x2e815d,this['_collaborationController']=_0x46cb7b,this[_0x2a3747(0x1af)]=_0x31935b,this[_0x2a3747(0x31f)]=_0x47257b,this[_0x2a3747(0x19e)]=_0x5e0e97,this['_docSyncEditingCollabCursorService']=_0x42357d,this['_messageService']=_0x274cc5,this[_0x2a3747(0x2ac)]=_0x1c1dd8,this['_initEntityListener']());}['_initEntityListener'](){const _0x24fdbf=_0x366146;this[_0x24fdbf(0x39d)](this[_0x24fdbf(0x240)][_0x24fdbf(0x26d)][_0x24fdbf(0x390)](_0x16df9d=>{const _0x5e9fc6=_0x24fdbf,_0x5f4f5b=this[_0x5e9fc6(0x2d7)][_0x5e9fc6(0x2d8)]['subscribe'](_0x20f732=>{const _0x339548=_0x5e9fc6;if(_0x20f732==null)return;const {unitId:_0x31d6af,redoState:_0x3e5558,commandId:_0x44448c}=_0x20f732;if(_0x31d6af!==_0x16df9d['unitID'])return;const _0x9eccc8={'id':_0x44448c,'type':a['CommandType'][_0x339548(0x385)],'params':{'unitId':_0x31d6af,'actions':_0x3e5558[_0x339548(0x24f)],'textRanges':null}};_0x16df9d[_0x339548(0x3d3)](_0x9eccc8);});if(_0x16df9d[_0x5e9fc6(0x39d)](_0x5f4f5b),_0x16df9d instanceof u['DocCollaborationEntity']){const _0x16eecf={'onTransformIME':_0x4fb0eb=>this[_0x5e9fc6(0x1af)][_0x5e9fc6(0x3ac)](_0x4fb0eb),'onTransformState':_0x602b7b=>this['_docTransformStateCacheService'][_0x5e9fc6(0x30e)](_0x602b7b),'onTransformSelections':_0x28ab5f=>this['_docTransformSelectionsService'][_0x5e9fc6(0x15a)](_0x28ab5f),'onSyncEditingCollabCursor':_0x1b63b7=>this[_0x5e9fc6(0x32a)][_0x5e9fc6(0x1c3)](_0x1b63b7),'onTransformRemoteChangesetByIMECache':_0x1b627b=>this[_0x5e9fc6(0x1af)][_0x5e9fc6(0x3d9)](_0x1b627b),'onTransformRemoteChangesetByStateCache':_0x1a372f=>this[_0x5e9fc6(0x31f)][_0x5e9fc6(0x3d9)](_0x1a372f)};_0x16df9d[_0x5e9fc6(0x223)](_0x16eecf);}}));}};ie=zt([N(0x0,a[_0x366146(0x34a)](p[_0x366146(0x1b4)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x366146(0x34a)](ee)),N(0x3,a[_0x366146(0x34a)](te)),N(0x4,a[_0x366146(0x34a)](se)),N(0x5,a[_0x366146(0x34a)](be)),N(0x6,O[_0x366146(0x3a4)]),N(0x7,a[_0x366146(0x34a)](a[_0x366146(0x267)]))],ie);var G=(_0x16102c=>(_0x16102c[_0x16102c[_0x366146(0x3fa)]=0x0]='UNDEFINED',_0x16102c[_0x16102c['OK']=0x1]='OK',_0x16102c[_0x16102c[_0x366146(0x1ab)]=0x2]=_0x366146(0x1ab),_0x16102c[_0x16102c[_0x366146(0x1e0)]=0x3]=_0x366146(0x1e0),_0x16102c[_0x16102c['NOT_FOUND']=0x4]=_0x366146(0x3b8),_0x16102c[_0x16102c[_0x366146(0x1cb)]=0x5]=_0x366146(0x1cb),_0x16102c[_0x16102c[_0x366146(0x280)]=0x6]=_0x366146(0x280),_0x16102c[_0x16102c[_0x366146(0x372)]=0x7]=_0x366146(0x372),_0x16102c[_0x16102c[_0x366146(0x3f9)]=0x8]=_0x366146(0x3f9),_0x16102c[_0x16102c['COMPLETION_FINISHED']=0x9]=_0x366146(0x183),_0x16102c[_0x16102c[_0x366146(0x353)]=0xa]=_0x366146(0x353),_0x16102c[_0x16102c[_0x366146(0x19f)]=0xb]=_0x366146(0x19f),_0x16102c[_0x16102c[_0x366146(0x3ad)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x16102c[_0x16102c['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x366146(0x359),_0x16102c[_0x16102c[_0x366146(0x218)]=0xe]=_0x366146(0x218),_0x16102c[_0x16102c[_0x366146(0x229)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x16102c[_0x16102c[_0x366146(0x277)]=0x10]=_0x366146(0x277),_0x16102c[_0x16102c[_0x366146(0x187)]=0x64]=_0x366146(0x187),_0x16102c[_0x16102c[_0x366146(0x3c0)]=0x65]=_0x366146(0x3c0),_0x16102c[_0x16102c[_0x366146(0x1ec)]=0xc9]=_0x366146(0x1ec),_0x16102c[_0x16102c['USER_IS_ANONYMOUS']=0xca]=_0x366146(0x27f),_0x16102c[_0x16102c[_0x366146(0x30a)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x16102c[_0x16102c[_0x366146(0x2de)]=0x1771]=_0x366146(0x2de),_0x16102c[_0x16102c[_0x366146(0x190)]=0x1772]=_0x366146(0x190),_0x16102c[_0x16102c[_0x366146(0x378)]=0x1773]=_0x366146(0x378),_0x16102c[_0x16102c[_0x366146(0x31e)]=0x1b59]=_0x366146(0x31e),_0x16102c[_0x16102c[_0x366146(0x3bb)]=0x1b5a]=_0x366146(0x3bb),_0x16102c[_0x16102c[_0x366146(0x254)]=0x1b5b]=_0x366146(0x254),_0x16102c[_0x16102c[_0x366146(0x39a)]=0x1b5c]=_0x366146(0x39a),_0x16102c[_0x16102c[_0x366146(0x1f4)]=0x1b5d]='APPLY_DUPLICATED',_0x16102c[_0x16102c[_0x366146(0x29b)]=0x1f41]=_0x366146(0x29b),_0x16102c[_0x16102c[_0x366146(0x24a)]=0x2329]=_0x366146(0x24a),_0x16102c[_0x16102c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x366146(0x158),_0x16102c[_0x16102c[_0x366146(0x1ff)]=0x232b]=_0x366146(0x1ff),_0x16102c[_0x16102c[_0x366146(0x394)]=0x232c]=_0x366146(0x394),_0x16102c[_0x16102c[_0x366146(0x16a)]=0x232d]=_0x366146(0x16a),_0x16102c[_0x16102c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x366146(0x194),_0x16102c[_0x16102c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x366146(0x2b8),_0x16102c[_0x16102c[_0x366146(0x174)]=0x2713]=_0x366146(0x174),_0x16102c[_0x16102c['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x366146(0x1c8),_0x16102c[_0x16102c[_0x366146(0x1d2)]=0x271a]=_0x366146(0x1d2),_0x16102c[_0x16102c[_0x366146(0x18b)]=0x271b]=_0x366146(0x18b),_0x16102c[_0x16102c[_0x366146(0x310)]=0x271c]=_0x366146(0x310),_0x16102c[_0x16102c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x366146(0x1a5),_0x16102c[_0x16102c[_0x366146(0x1a4)]=0x271e]=_0x366146(0x1a4),_0x16102c[_0x16102c[_0x366146(0x384)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x16102c[_0x16102c['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x366146(0x20c),_0x16102c[_0x16102c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x366146(0x1f1),_0x16102c[_0x16102c[_0x366146(0x379)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x16102c[_0x16102c[_0x366146(0x1a9)]=0x2ee2]='INVALID_INVITE_CODE',_0x16102c[_0x16102c['INVITE_CODE_REQUIRED']=0x2ee3]=_0x366146(0x1d6),_0x16102c[_0x16102c[_0x366146(0x1b0)]=0x2ee4]=_0x366146(0x1b0),_0x16102c[_0x16102c[_0x366146(0x1f5)]=0x2ee5]=_0x366146(0x1f5),_0x16102c[_0x16102c[_0x366146(0x2a8)]=0x32c9]=_0x366146(0x2a8),_0x16102c[_0x16102c[_0x366146(0x14d)]=0x32ca]=_0x366146(0x14d),_0x16102c[_0x16102c[_0x366146(0x175)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x16102c[_0x16102c[_0x366146(0x30f)]=0x36b1]=_0x366146(0x30f),_0x16102c[_0x16102c[_0x366146(0x2fb)]=0x36b2]=_0x366146(0x2fb),_0x16102c[_0x16102c[_0x366146(0x193)]=0x36b3]=_0x366146(0x193),_0x16102c[_0x16102c[_0x366146(0x313)]=0x36b4]=_0x366146(0x313),_0x16102c[_0x16102c[_0x366146(0x358)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x16102c[_0x16102c[_0x366146(0x38b)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x16102c[_0x16102c[_0x366146(0x22b)]=0x3717]=_0x366146(0x22b),_0x16102c[_0x16102c['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x366146(0x171),_0x16102c[_0x16102c[_0x366146(0x210)]=0x3a99]=_0x366146(0x210),_0x16102c[_0x16102c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x366146(0x2a1),_0x16102c[_0x16102c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x366146(0x17c),_0x16102c[_0x16102c[_0x366146(0x2ec)]=0x3a9c]=_0x366146(0x2ec),_0x16102c[_0x16102c[_0x366146(0x2f4)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x16102c[_0x16102c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x366146(0x29c),_0x16102c[_0x16102c[_0x366146(0x2c9)]=0x3a9f]=_0x366146(0x2c9),_0x16102c[_0x16102c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x366146(0x1ba),_0x16102c[_0x16102c[_0x366146(0x2ed)]=-0x1]=_0x366146(0x2ed),_0x16102c))(G||{});function Jt(_0x1625e1){const _0x4e333a=_0x366146;var _0x4d43f8,_0x27bf8d;const _0x537b7c=(_0x4d43f8=_0x1625e1[_0x4e333a(0x335)])==null?void 0x0:_0x4d43f8['stage'],_0x5b2946=((_0x27bf8d=_0x1625e1[_0x4e333a(0x335)])==null?void 0x0:_0x27bf8d['totalFormulasToCalculate'])||0x0;return _0x537b7c===B[_0x4e333a(0x3f7)][_0x4e333a(0x219)]&&_0x5b2946>0x0;}function Zt(_0x4d7967){const _0x4cc32e=_0x366146;return _0x4d7967[_0x4cc32e(0x1d8)]===B[_0x4cc32e(0x2fc)]['SUCCESS'];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x5c5878,_0x5a6bc3,_0x2615cf,_0x4b7f9e)=>{for(var _0x235c50=_0x4b7f9e>0x1?void 0x0:_0x4b7f9e?Qt(_0x5a6bc3,_0x2615cf):_0x5a6bc3,_0x5a5692=_0x5c5878['length']-0x1,_0x915d23;_0x5a5692>=0x0;_0x5a5692--)(_0x915d23=_0x5c5878[_0x5a5692])&&(_0x235c50=_0x915d23(_0x235c50)||_0x235c50);return _0x235c50;},L=(_0x46b963,_0x3e0876)=>(_0x1cc5b5,_0x2d3ed6)=>_0x3e0876(_0x1cc5b5,_0x2d3ed6,_0x46b963);const ts=_0x366146(0x15c),ss=_0x366146(0x3b2),is=_0x366146(0x35f);let ne=class extends a[_0x366146(0x176)]{constructor(_0x517285,_0x1b6e15,_0x43f8f4,_0x22e25b,_0x2eafcb,_0x365522,_0x3f7a04){const _0x4c7b07=_0x366146;super(),_(this,'_pollingInterval',null),_(this,_0x4c7b07(0x39b),0x0),_(this,'_currentUsage',0x0),_(this,_0x4c7b07(0x256),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x4c7b07(0x24d)]=_0x517285,this[_0x4c7b07(0x16f)]=_0x1b6e15,this[_0x4c7b07(0x244)]=_0x43f8f4,this[_0x4c7b07(0x2a2)]=_0x22e25b,this[_0x4c7b07(0x2fe)]=_0x2eafcb,this[_0x4c7b07(0x204)]=_0x365522,this['_localeService']=_0x3f7a04,this[_0x4c7b07(0x403)]());}[_0x366146(0x403)](){const _0x399671=_0x366146;this['disposeWithMe'](this[_0x399671(0x16f)][_0x399671(0x241)]((_0x107d5f,_0x1ffdcc)=>{const _0x4e1531=_0x399671;var _0x56e838;if(_0x107d5f['id']!==B[_0x4e1531(0x3e1)]['id'])return;const _0x157c14=_0x107d5f[_0x4e1531(0x35d)];if(!this['_hasFormulaInDirtyRanges']((_0x56e838=_0x157c14[_0x4e1531(0x19c)])!=null?_0x56e838:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x4e1531(0x24c)](_0x107d5f,_0x1ffdcc),this[_0x4e1531(0x3e6)](),new a[(_0x4e1531(0x181))]();})),this['disposeWithMe'](this[_0x399671(0x16f)][_0x399671(0x3e7)]((_0x5575c3,_0x53fd72)=>{const _0x2131a7=_0x399671;if(_0x5575c3['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x1d1db9=_0x5575c3[_0x2131a7(0x35d)];if(Jt(_0x1d1db9)){const _0x2509e7=a[_0x2131a7(0x28f)]();this[_0x2131a7(0x256)][_0x2131a7(0x192)](_0x2509e7),this[_0x2131a7(0x2e4)](_0x2509e7);}else{if(Zt(_0x1d1db9)&&this['_taskIds']['length']>0x0){const _0x4bb973=this['_taskIds'][_0x2131a7(0x2da)]();this[_0x2131a7(0x271)](_0x4bb973);}}}));}['dispose'](){const _0x4e01f2=_0x366146;super['dispose'](),this['_clearPolling'](),this[_0x4e01f2(0x256)]=[],this[_0x4e01f2(0x3da)]=0x0,this[_0x4e01f2(0x39b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x366146(0x24c)](_0x346b23,_0x1358c5){const _0x127767=_0x366146;for(let _0x45665f=0x0;_0x45665f<0x1e;_0x45665f++)try{if(await this['_getFormulaLimitStatus'](),this[_0x127767(0x2c0)]()){this[_0x127767(0x173)](_0x346b23,_0x1358c5),this[_0x127767(0x24d)]['show']({'content':this['_localeService']['t'](_0x127767(0x289)),'type':T['MessageType'][_0x127767(0x1cd)]});return;}await new Promise(_0x28b75a=>{const _0x572c8d=_0x127767;this[_0x572c8d(0x3d6)]=window[_0x572c8d(0x3f6)](_0x28b75a,0x3e8);});}catch(_0x925e34){this['_logService'][_0x127767(0x329)](_0x925e34);}this[_0x127767(0x24d)]['show']({'content':this[_0x127767(0x2ac)]['t'](_0x127767(0x2d2)),'type':T[_0x127767(0x326)][_0x127767(0x1e3)]});}[_0x366146(0x173)](_0x3328df,_0x530d0b){const _0x511284=_0x366146;try{this[_0x511284(0x16f)][_0x511284(0x1be)](_0x3328df['id'],_0x3328df['params'],_0x530d0b);}catch(_0x28bd23){this['_logService'][_0x511284(0x329)](_0x28bd23);}}[_0x366146(0x33d)](_0x1aef50,_0x13ea36){const _0x195a2d=_0x366146;_0x13ea36<this[_0x195a2d(0x1cc)]||(this[_0x195a2d(0x1cc)]=_0x13ea36,this['_maxFormulaLimit']=Number[_0x195a2d(0x17e)](_0x1aef50[_0x195a2d(0x38a)]),this[_0x195a2d(0x3da)]=Number['parseInt'](_0x1aef50[_0x195a2d(0x306)]));}async[_0x366146(0x2e4)](_0x4cde0e){const _0x1c17cf=_0x366146;var _0x13b48c,_0x1039f1;const _0x415fb5=Date[_0x1c17cf(0x3ab)]();try{const _0x789f98=((_0x13b48c=this[_0x1c17cf(0x244)][_0x1c17cf(0x251)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x13b48c['startFormulaLimitUrl'])||ss,_0x45a2fa=(await this['_httpService']['post'](_0x789f98,{'body':JSON[_0x1c17cf(0x1b9)]({'taskId':_0x4cde0e})}))[_0x1c17cf(0x1b8)];if(((_0x1039f1=_0x45a2fa[_0x1c17cf(0x329)])==null?void 0x0:_0x1039f1['code'])!==G['OK'])return;this[_0x1c17cf(0x33d)](_0x45a2fa[_0x1c17cf(0x231)],_0x415fb5);}catch(_0x1d52b7){this['_logService']['error'](_0x1d52b7);}}async['_getFormulaLimitStatus'](_0x53afb8){const _0x51d6b8=_0x366146;var _0x4d34d3,_0x91a380;const _0x3a061f=Date[_0x51d6b8(0x3ab)]();try{const _0x41feec=((_0x4d34d3=this[_0x51d6b8(0x244)][_0x51d6b8(0x251)](u[_0x51d6b8(0x3c3)]))==null?void 0x0:_0x4d34d3[_0x51d6b8(0x337)])||ts,_0x42a358=_0x53afb8?_0x41feec+_0x51d6b8(0x20f)+encodeURIComponent(_0x53afb8):_0x41feec,_0x520771=(await this[_0x51d6b8(0x2a2)][_0x51d6b8(0x268)](_0x42a358))[_0x51d6b8(0x1b8)];if(((_0x91a380=_0x520771[_0x51d6b8(0x329)])==null?void 0x0:_0x91a380[_0x51d6b8(0x21d)])!==G['OK'])return;this[_0x51d6b8(0x33d)](_0x520771[_0x51d6b8(0x231)],_0x3a061f);}catch(_0x4bc491){this[_0x51d6b8(0x204)][_0x51d6b8(0x329)](_0x4bc491);}}async[_0x366146(0x271)](_0x5f2613){const _0x234c60=_0x366146;var _0x1c7150,_0xf612ad;const _0x4eac61=Date[_0x234c60(0x3ab)]();try{const _0x40cb11=((_0x1c7150=this[_0x234c60(0x244)][_0x234c60(0x251)](u[_0x234c60(0x3c3)]))==null?void 0x0:_0x1c7150[_0x234c60(0x1ac)])||is,_0xb9ea96=(await this[_0x234c60(0x2a2)][_0x234c60(0x1b3)](_0x40cb11,{'body':JSON[_0x234c60(0x1b9)]({'taskId':_0x5f2613})}))['body'];if(((_0xf612ad=_0xb9ea96[_0x234c60(0x329)])==null?void 0x0:_0xf612ad[_0x234c60(0x21d)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0xb9ea96['limitInfo'],_0x4eac61);}catch(_0x12710b){this[_0x234c60(0x204)][_0x234c60(0x329)](_0x12710b);}}[_0x366146(0x2c0)](){const _0x11e81f=_0x366146;return this[_0x11e81f(0x39b)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x366146(0x3b1)](){const _0x47fd89=_0x366146;this[_0x47fd89(0x3d6)]&&(clearTimeout(this[_0x47fd89(0x3d6)]),this[_0x47fd89(0x3d6)]=null);}[_0x366146(0x3e6)](){const _0x140761=_0x366146;this['_messageService'][_0x140761(0x2f6)]({'content':this[_0x140761(0x2ac)]['t'](_0x140761(0x324)),'type':T[_0x140761(0x326)][_0x140761(0x37e)]});}[_0x366146(0x1f3)](_0x358c70){const _0x80a85c=_0x366146;for(const _0x47b1d5 of _0x358c70){const {unitId:_0x5cb9c9,sheetId:_0x3c9f07,range:_0x2cc0fa}=_0x47b1d5,_0xfe4f1f=this['_univerInstanceService'][_0x80a85c(0x2dc)](_0x5cb9c9);if(!_0xfe4f1f)continue;const _0x60416c=_0xfe4f1f['getSheetBySheetId'](_0x3c9f07);if(!_0x60416c)continue;const _0x128e87=_0x60416c['getCellMatrix']();for(let _0x5cb78c=_0x2cc0fa[_0x80a85c(0x30d)];_0x5cb78c<=_0x2cc0fa[_0x80a85c(0x2b4)];_0x5cb78c++)for(let _0x4e5f4f=_0x2cc0fa['startColumn'];_0x4e5f4f<=_0x2cc0fa[_0x80a85c(0x2c7)];_0x4e5f4f++){const _0x4a32c7=_0x128e87[_0x80a85c(0x1bf)](_0x5cb78c,_0x4e5f4f);if(_0x4a32c7&&(a[_0x80a85c(0x2db)](_0x4a32c7['f'])||a[_0x80a85c(0x209)](_0x4a32c7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x366146(0x34a)](O[_0x366146(0x3a4)])),L(0x1,a[_0x366146(0x2d4)]),L(0x2,a[_0x366146(0x199)]),L(0x3,a['Inject'](x[_0x366146(0x388)])),L(0x4,a[_0x366146(0x375)]),L(0x5,a[_0x366146(0x2e8)]),L(0x6,a['Inject'](a['LocaleService']))],ne);var ns=Object[_0x366146(0x3ee)],rs=(_0x49bf00,_0x22ca30,_0x3b1b27,_0x58b02f)=>{const _0x51eb26=_0x366146;for(var _0x5232d1=_0x58b02f>0x1?void 0x0:_0x58b02f?ns(_0x22ca30,_0x3b1b27):_0x22ca30,_0x2b3aa2=_0x49bf00[_0x51eb26(0x18d)]-0x1,_0x442818;_0x2b3aa2>=0x0;_0x2b3aa2--)(_0x442818=_0x49bf00[_0x2b3aa2])&&(_0x5232d1=_0x442818(_0x5232d1)||_0x5232d1);return _0x5232d1;},de=(_0x2f1c4b,_0x2eedbd)=>(_0x330805,_0x4547f0)=>_0x2eedbd(_0x330805,_0x4547f0,_0x2f1c4b);let pe=class extends a[_0x366146(0x176)]{constructor(_0x7f730a,_0x919e2a,_0x3a66e8){const _0x20a3a4=_0x366146;super(),_(this,_0x20a3a4(0x2c5),new Map()),_(this,_0x20a3a4(0x3df),new Map()),_(this,'_disabled',!0x1),(this[_0x20a3a4(0x244)]=_0x7f730a,this[_0x20a3a4(0x25c)]=_0x919e2a,this[_0x20a3a4(0x345)]=_0x3a66e8);}[_0x366146(0x2ab)](){const _0x186329=_0x366146;this[_0x186329(0x27b)]=!0x0;}[_0x366146(0x393)](){const _0x31cd7f=_0x366146;this[_0x31cd7f(0x27b)]=!0x1;}get[_0x366146(0x189)](){const _0x55caf5=_0x366146;return this[_0x55caf5(0x3df)];}[_0x366146(0x286)](){const _0x350172=_0x366146;this[_0x350172(0x1dc)]()[_0x350172(0x3c5)](()=>super[_0x350172(0x286)]());}async[_0x366146(0x290)](_0x1f1134){const _0xf6663c=_0x366146;return this[_0xf6663c(0x27b)]?null:this[_0xf6663c(0x25c)][_0xf6663c(0x371)](u['getLocalCacheKey'](_0x1f1134));}async['saveOfflineData'](_0x26afab,_0x391cc4){const _0x19e068=_0x366146;return!!this[_0x19e068(0x25c)][_0x19e068(0x405)](_0x26afab,_0x391cc4);}[_0x366146(0x203)](_0x17de12,_0xc4da51,_0x52972a,_0x436d61){const _0x4b68d8=_0x366146,_0x1d1bc4=this[_0x4b68d8(0x345)][_0x4b68d8(0x1c7)](_0x17de12);this[_0x4b68d8(0x2c5)]['set'](_0x17de12,{'unitID':_0x17de12,'type':_0xc4da51,'awaitingChangeset':_0x52972a,'mutations':_0x436d61,'rev':_0x1d1bc4}),this['_saveTaskMap'][_0x4b68d8(0x3fe)](_0x17de12)||this[_0x4b68d8(0x39f)](_0x17de12);}[_0x366146(0x39f)](_0x3f3a1f){const _0x197b5=_0x366146,_0x74f501=this['_getSaveTimeout']();_0x74f501===0x0?this[_0x197b5(0x304)](_0x3f3a1f):this['_saveTaskMap'][_0x197b5(0x17a)](_0x3f3a1f,setTimeout(()=>this[_0x197b5(0x304)](_0x3f3a1f),_0x74f501));}['_getSaveTimeout'](){const _0x13418c=_0x366146;var _0x349f86;return(_0x349f86=this[_0x13418c(0x244)][_0x13418c(0x251)](u[_0x13418c(0x3dc)]))!=null?_0x349f86:u['LOCAL_CACHE_INTERVAL'];}[_0x366146(0x304)](_0x7898dc){const _0x2fcbd8=_0x366146,_0x33b8ac=this[_0x2fcbd8(0x3df)]['get'](_0x7898dc);return _0x33b8ac!==void 0x0&&window[_0x2fcbd8(0x2f2)](_0x33b8ac),this[_0x2fcbd8(0x25c)][_0x2fcbd8(0x405)](u[_0x2fcbd8(0x39c)](_0x7898dc),this[_0x2fcbd8(0x2c5)][_0x2fcbd8(0x268)](_0x7898dc))[_0x2fcbd8(0x3c5)](()=>this[_0x2fcbd8(0x3df)][_0x2fcbd8(0x382)](_0x7898dc));}async[_0x366146(0x1dc)](){const _0x427432=_0x366146,_0x44de55=[];this[_0x427432(0x3df)][_0x427432(0x3eb)]((_0x815234,_0x5ba74e)=>{const _0x412083=_0x427432;window[_0x412083(0x2f2)](_0x815234),_0x44de55[_0x412083(0x192)](this['_saveCache'](_0x5ba74e)['then'](()=>{const _0x1c2578=_0x412083;this[_0x1c2578(0x3df)][_0x1c2578(0x382)](_0x5ba74e);}));}),await Promise[_0x427432(0x3e3)](_0x44de55);}};pe=rs([de(0x0,a['IConfigService']),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x366146(0x34a)](g[_0x366146(0x196)]))],pe);class ke extends a[_0x366146(0x25a)]{constructor(){const _0x46f841=_0x366146;super(),_(this,_0x46f841(0x21a)),this[_0x46f841(0x21a)]=I[_0x46f841(0x282)](window,'popstate')['pipe'](I['takeUntil'](this['dispose$']),I['shareReplay'](0x1),I[_0x46f841(0x2d0)](void 0x0));}[_0x366146(0x20d)](_0x1722f6,_0x3e26a5,_0x14af90=!0x1){const _0x2712cf=_0x366146,_0x5d0e52=new URL(window[_0x2712cf(0x330)][_0x2712cf(0x163)]);_0x5d0e52[_0x2712cf(0x31d)][_0x2712cf(0x17a)](_0x1722f6,_0x3e26a5),_0x14af90?window[_0x2712cf(0x168)][_0x2712cf(0x37d)]('','',_0x5d0e52[_0x2712cf(0x177)]()):window[_0x2712cf(0x168)]['pushState']('','',_0x5d0e52[_0x2712cf(0x177)]());}[_0x366146(0x2bd)](_0x3dfa98,_0x3f9c96=!0x1){const _0x13b430=_0x366146,_0x193e6f=new URL(window[_0x13b430(0x330)][_0x13b430(0x163)]);_0x193e6f[_0x13b430(0x31d)]['delete'](_0x3dfa98),_0x3f9c96?window[_0x13b430(0x168)][_0x13b430(0x37d)]('','',_0x193e6f[_0x13b430(0x177)]()):window['history'][_0x13b430(0x36c)]('','',_0x193e6f[_0x13b430(0x177)]());}[_0x366146(0x1d4)](_0x19797e){const _0x36f126=_0x366146;var _0x12d682;return(_0x12d682=new URL(window[_0x36f126(0x330)][_0x36f126(0x163)])[_0x36f126(0x31d)][_0x36f126(0x268)](_0x19797e))!=null?_0x12d682:void 0x0;}}var os=Object[_0x366146(0x24e)],as=Object['getOwnPropertyDescriptor'],cs=(_0x35be7a,_0x3daff2,_0x2fdf9f)=>_0x3daff2 in _0x35be7a?os(_0x35be7a,_0x3daff2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fdf9f}):_0x35be7a[_0x3daff2]=_0x2fdf9f,ls=(_0x310c8b,_0x300409,_0x190316,_0x2ffd8c)=>{const _0x2e0037=_0x366146;for(var _0x2982d4=_0x2ffd8c>0x1?void 0x0:_0x2ffd8c?as(_0x300409,_0x190316):_0x300409,_0x10b20d=_0x310c8b[_0x2e0037(0x18d)]-0x1,_0x49cbba;_0x10b20d>=0x0;_0x10b20d--)(_0x49cbba=_0x310c8b[_0x10b20d])&&(_0x2982d4=_0x49cbba(_0x2982d4)||_0x2982d4);return _0x2982d4;},Se=(_0x5681da,_0x23c10d)=>(_0x296bb5,_0x53fe22)=>_0x23c10d(_0x296bb5,_0x53fe22,_0x5681da),_s=(_0x4928f8,_0x369ce9,_0x5ec054)=>cs(_0x4928f8,_0x369ce9+'',_0x5ec054);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x366146(0x265)]=class extends a[_0x366146(0x1dd)]{constructor(_0x342a34=Me,_0x10dd38,_0x5b2113,_0x56a568){const _0x53a8d6=_0x366146;super(),this[_0x53a8d6(0x352)]=_0x342a34,this['_renderManagerService']=_0x10dd38,this[_0x53a8d6(0x354)]=_0x5b2113,this['_configService']=_0x56a568;const {..._0x3202ba}=a[_0x53a8d6(0x1e6)]({},Me,this['_config']);this[_0x53a8d6(0x244)]['setConfig'](Yt,_0x3202ba);}[_0x366146(0x383)](){const _0x11dbd4=_0x366146;this['_registerDependencies'](),this[_0x11dbd4(0x18e)]();}[_0x366146(0x2cb)](){const _0x3c9044=_0x366146;this[_0x3c9044(0x253)]();}['_registerDependencies'](){const _0x5ea07f=_0x366146;var _0x583e91;const _0x3644c3=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5ea07f(0x26c)],{'useClass':x['WebSocketService']}],[u[_0x5ea07f(0x32d)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x5ea07f(0x1ad)]]];this[_0x5ea07f(0x352)][_0x5ea07f(0x33f)]&&_0x3644c3[_0x5ea07f(0x192)]([Q]),a[_0x5ea07f(0x2b1)](this['_injector'],a[_0x5ea07f(0x356)](_0x3644c3,(_0x583e91=this['_config'])==null?void 0x0:_0x583e91[_0x5ea07f(0x1d7)]));}['_registerRenderDependencies'](){const _0x2c2957=_0x366146;this[_0x2c2957(0x39d)](this[_0x2c2957(0x3fd)]['registerRenderModule'](a[_0x2c2957(0x315)]['UNIVER_DOC'],[Ee])),this[_0x2c2957(0x39d)](this[_0x2c2957(0x3fd)][_0x2c2957(0x336)](a[_0x2c2957(0x315)][_0x2c2957(0x25b)],[Ce]));}[_0x366146(0x18e)](){const _0x12a6bd=_0x366146;a[_0x12a6bd(0x377)](this[_0x12a6bd(0x354)],[[F],[exports[_0x12a6bd(0x1ee)]],[ie],[Z],[exports[_0x12a6bd(0x1ad)]],[ne]]),this['_config'][_0x12a6bd(0x33f)]&&a[_0x12a6bd(0x377)](this[_0x12a6bd(0x354)],[[Q]]);}},_s(exports[_0x366146(0x265)],_0x366146(0x27a),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x366146(0x1fb)](u[_0x366146(0x291)]),Se(0x1,C['IRenderManagerService']),Se(0x2,a[_0x366146(0x34a)](a[_0x366146(0x364)])),Se(0x3,a[_0x366146(0x199)])],exports['UniverCollaborationClientUIPlugin']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x2a9959,_0x439440,_0x16ca1b,_0x473a43)=>{for(var _0x2b7404=_0x473a43>0x1?void 0x0:_0x473a43?us(_0x439440,_0x16ca1b):_0x439440,_0x38affb=_0x2a9959['length']-0x1,_0x3e2ea6;_0x38affb>=0x0;_0x38affb--)(_0x3e2ea6=_0x2a9959[_0x38affb])&&(_0x2b7404=_0x3e2ea6(_0x2b7404)||_0x2b7404);return _0x2b7404;},W=(_0x3f1197,_0x269161)=>(_0x58be47,_0xf6b2ae)=>_0x269161(_0x58be47,_0xf6b2ae,_0x3f1197);exports['BrowserCollaborationSocketService']=class extends u[_0x366146(0x33b)]{constructor(_0x1f7b63,_0x168222,_0x286836,_0x5ba614,_0x1434e5){super(_0x1f7b63,_0x168222,_0x286836,_0x5ba614,_0x1434e5);}async[_0x366146(0x322)](_0x365aeb){const _0x31e96c=_0x366146,_0x313f38=await this[_0x31e96c(0x369)](),_0x1c7f89=this[_0x31e96c(0x396)](_0x365aeb,_0x313f38);return this[_0x31e96c(0x287)](_0x1c7f89);}[_0x366146(0x396)](_0x3a9ff3,_0x12a455){const _0x44b2c8=_0x366146,_0x35e61c=typeof window>'u'?new URL(_0x3a9ff3):new URL(_0x3a9ff3,window[_0x44b2c8(0x330)]['origin']);_0x35e61c['searchParams'][_0x44b2c8(0x17a)]('sessionTicket',_0x12a455);const _0x3463db=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x44b2c8(0x330)][_0x44b2c8(0x36a)]);return _0x3463db[_0x44b2c8(0x268)](_0x44b2c8(0x242))&&_0x35e61c[_0x44b2c8(0x31d)][_0x44b2c8(0x17a)](_0x44b2c8(0x242),_0x3463db[_0x44b2c8(0x268)]('runId')),_0x35e61c[_0x44b2c8(0x177)]();}async['_getSessionTicket'](){const _0x59f198=_0x366146;var _0x212d64,_0x26c978,_0x5e22e0;const _0x1baac8=this[_0x59f198(0x244)]['getConfig'](u[_0x59f198(0x3c3)]),_0x165e0c=(_0x212d64=_0x1baac8==null?void 0x0:_0x1baac8[_0x59f198(0x21e)])!=null?_0x212d64:u[_0x59f198(0x35c)];return(_0x5e22e0=(_0x26c978=(await this['_httpService'][_0x59f198(0x268)](_0x165e0c,{'headers':{'Content-Type':'application/json'}}))[_0x59f198(0x1b8)])==null?void 0x0:_0x26c978[_0x59f198(0x2d3)])!=null?_0x5e22e0:'';}},exports[_0x366146(0x307)]=Is([W(0x0,a['Inject'](a[_0x366146(0x364)])),W(0x1,a['Inject'](x[_0x366146(0x388)])),W(0x2,a[_0x366146(0x199)]),W(0x3,a[_0x366146(0x2e8)]),W(0x4,g[_0x366146(0x28c)])],exports[_0x366146(0x307)]);var ds=Object['getOwnPropertyDescriptor'],Ss=(_0x43e9a3,_0x3ced81,_0x3a203e,_0x5bc8a9)=>{const _0x107775=_0x366146;for(var _0x526319=_0x5bc8a9>0x1?void 0x0:_0x5bc8a9?ds(_0x3ced81,_0x3a203e):_0x3ced81,_0x24fe97=_0x43e9a3[_0x107775(0x18d)]-0x1,_0x3480bb;_0x24fe97>=0x0;_0x24fe97--)(_0x3480bb=_0x43e9a3[_0x24fe97])&&(_0x526319=_0x3480bb(_0x526319)||_0x526319);return _0x526319;},fe=(_0x1a1f90,_0x4e38cc)=>(_0x3b5dfd,_0x3cabd5)=>_0x4e38cc(_0x3b5dfd,_0x3cabd5,_0x1a1f90);exports[_0x366146(0x404)]=class extends a[_0x366146(0x176)]{constructor(_0x31b5a1,_0x116a00,_0x72e3cc){const _0x4317f5=_0x366146;super(),this[_0x4317f5(0x150)]=_0x31b5a1,this[_0x4317f5(0x2a2)]=_0x116a00,this[_0x4317f5(0x244)]=_0x72e3cc;}async[_0x366146(0x215)](_0x558fb1,_0x4da441,_0x888f6d,..._0x51a9c7){const _0x41e7d6=_0x366146;var _0x471a99,_0xa1a89f,_0x5f5bb7,_0xac9848;const _0x5633bc=this['_instanceService'][_0x41e7d6(0x1f2)]();if(!_0x5633bc)throw new Error(_0x41e7d6(0x23c));const _0x2bfa2b=((_0x471a99=this['_configService'][_0x41e7d6(0x251)](u[_0x41e7d6(0x15b)]))!=null?_0x471a99:u[_0x41e7d6(0x1fa)])+'/'+_0x558fb1+_0x41e7d6(0x25d)+_0x4da441,_0x1ea7bc=new URL(window[_0x41e7d6(0x330)][_0x41e7d6(0x163)]),_0x37c8dc={'scriptId':_0x558fb1,'runId':(_0xa1a89f=_0x1ea7bc[_0x41e7d6(0x31d)]['get'](_0x41e7d6(0x242)))!=null?_0xa1a89f:'','function':_0x4da441,'unitId':_0x5633bc[_0x41e7d6(0x349)](),'argsOfFunction':JSON['stringify'](_0x51a9c7),'invokeId':(_0x5f5bb7=_0x888f6d[_0x41e7d6(0x2f9)])!=null?_0x5f5bb7:'','executionId':(_0xac9848=_0x888f6d[_0x41e7d6(0x149)])!=null?_0xac9848:''};try{const _0x373274=await this['_httpService'][_0x41e7d6(0x1b3)](_0x2bfa2b,{'body':_0x37c8dc});return _0x373274[_0x41e7d6(0x1b8)]['error']&&_0x373274['body'][_0x41e7d6(0x329)][_0x41e7d6(0x21d)]!==G['OK']?_0x41e7d6(0x252):_0x373274['body'][_0x41e7d6(0x321)];}catch{return _0x41e7d6(0x252);}}},exports[_0x366146(0x404)]=Ss([fe(0x0,a[_0x366146(0x375)]),fe(0x1,a[_0x366146(0x34a)](x['HTTPService'])),fe(0x2,a[_0x366146(0x199)])],exports[_0x366146(0x404)]);const we=0x7530,ye=_0x366146(0x230);class fs extends a[_0x366146(0x176)]{constructor(){const _0x280c75=_0x366146;super(),_(this,_0x280c75(0x2a5),a['generateRandomId']()),_(this,'_selfUnitIDs',new Set()),_(this,_0x280c75(0x33c),new Map()),_(this,_0x280c75(0x2f0),null),_(this,_0x280c75(0x159),new Map()),_(this,_0x280c75(0x22f),new Map()),this[_0x280c75(0x3d7)]();}[_0x366146(0x286)](){const _0x45e6de=_0x366146;super[_0x45e6de(0x286)](),this['_clearOtherTimers']['forEach']((_0x229e94,_0x168125)=>this['_removeClearOtherTimer'](_0x168125)),this['_heartbeatTimer']&&window[_0x45e6de(0x2a9)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x367043){const _0x5281e7=_0x366146;return this[_0x5281e7(0x2ee)](_0x367043)[_0x5281e7(0x1c2)](I[_0x5281e7(0x1a8)]());}[_0x366146(0x3f4)](_0x1ce3d3){const _0x9073a4=_0x366146;this['_selfUnitIDs'][_0x9073a4(0x224)]===0x0&&this['_scheduleHeartbeat'](),this[_0x9073a4(0x165)][_0x9073a4(0x2bb)](_0x1ce3d3),this[_0x9073a4(0x255)]({'type':0x0,'memberID':this[_0x9073a4(0x2a5)],'unitIDs':[_0x1ce3d3],'isForwarded':!0x1});}[_0x366146(0x30c)](_0x2b97d8){const _0x4b0544=_0x366146;this[_0x4b0544(0x165)]['delete'](_0x2b97d8),this['_selfUnitIDs'][_0x4b0544(0x224)]===0x0&&this[_0x4b0544(0x2f0)]&&window[_0x4b0544(0x2a9)](this['_heartbeatTimer']);}[_0x366146(0x3d7)](){const _0x34f2b1=_0x366146;this[_0x34f2b1(0x39d)](a[_0x34f2b1(0x30b)](I[_0x34f2b1(0x282)](window,'storage')[_0x34f2b1(0x390)](_0x3fe012=>{const _0x134a9e=_0x34f2b1;if(_0x3fe012[_0x134a9e(0x317)]!==ye||!_0x3fe012[_0x134a9e(0x343)])return;const _0xb56afd=JSON[_0x134a9e(0x2be)](_0x3fe012[_0x134a9e(0x343)]);this['_handleEvent'](_0xb56afd);}))),window[_0x34f2b1(0x15f)](_0x34f2b1(0x408),()=>this[_0x34f2b1(0x255)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x34f2b1(0x165)])}));}[_0x366146(0x3bf)](_0x54b1a9){const _0x5a1544=_0x366146;switch(_0x54b1a9[_0x5a1544(0x35a)]){case 0x0:this[_0x5a1544(0x212)](_0x54b1a9);break;case 0x1:this[_0x5a1544(0x311)](_0x54b1a9);break;case 0x2:this['_handleHeartbeatEvent'](_0x54b1a9);break;}}['_handleJoinEvent'](_0x1f6e7e){const _0x6f7b18=_0x366146,{unitIDs:_0x23f04d,memberID:_0x22fb1f,isForwarded:_0x119444}=_0x1f6e7e;_0x23f04d[_0x6f7b18(0x3eb)](_0x3313f5=>{const _0x445a50=_0x6f7b18;if(!_0x119444&&this[_0x445a50(0x33c)]['has'](_0x3313f5)&&this[_0x445a50(0x2ee)](_0x3313f5)['next'](u[_0x445a50(0x25f)][_0x445a50(0x274)]),!this[_0x445a50(0x33c)][_0x445a50(0x3fe)](_0x3313f5)||!this[_0x445a50(0x33c)][_0x445a50(0x268)](_0x3313f5)[_0x445a50(0x3fe)](_0x22fb1f)){const _0x17139d=this[_0x445a50(0x33c)][_0x445a50(0x268)](_0x3313f5)||new Set();_0x17139d[_0x445a50(0x2bb)](_0x22fb1f),this['_unitOnClients'][_0x445a50(0x17a)](_0x3313f5,_0x17139d),this[_0x445a50(0x19d)](_0x22fb1f);}}),_0x119444||this[_0x6f7b18(0x255)]({'type':0x0,'memberID':this[_0x6f7b18(0x2a5)],'unitIDs':[...this[_0x6f7b18(0x165)]],'isForwarded':!0x0});}[_0x366146(0x19d)](_0x26ab06){const _0x19f843=_0x366146;this[_0x19f843(0x179)](_0x26ab06);const _0x27b74c=window[_0x19f843(0x3f6)](()=>{const _0xc075a0=_0x19f843;this['_unitOnClients'][_0xc075a0(0x3eb)](_0x404b2c=>{const _0x419a5c=_0xc075a0;_0x404b2c[_0x419a5c(0x382)](_0x26ab06);});},we*0x2);this['_clearOtherTimers']['set'](_0x26ab06,_0x27b74c);}[_0x366146(0x179)](_0x55e8e2){const _0x5a7692=_0x366146;if(this[_0x5a7692(0x159)][_0x5a7692(0x3fe)](_0x55e8e2)){const _0x5188b3=this['_clearOtherTimers'][_0x5a7692(0x268)](_0x55e8e2);_0x5188b3&&window[_0x5a7692(0x2f2)](_0x5188b3),this[_0x5a7692(0x159)][_0x5a7692(0x17a)](_0x55e8e2,null);}}[_0x366146(0x311)](_0x140a57){const _0x36f29e=_0x366146,{memberID:_0xda7c04,unitIDs:_0x2270f8}=_0x140a57;_0x2270f8[_0x36f29e(0x3eb)](_0x80cc26=>{const _0x4f7afc=_0x36f29e;var _0x5dd25c;const _0x59dac7=this['_unitOnClients']['get'](_0x80cc26);_0x59dac7&&(_0x59dac7[_0x4f7afc(0x382)](_0xda7c04),(_0x5dd25c=this[_0x4f7afc(0x2ee)](_0x80cc26))==null||_0x5dd25c[_0x4f7afc(0x161)](_0x59dac7[_0x4f7afc(0x224)]===0x0?u['UnitStatus'][_0x4f7afc(0x2d9)]:u[_0x4f7afc(0x25f)][_0x4f7afc(0x274)]));}),this['_removeClearOtherTimer'](_0xda7c04);}[_0x366146(0x308)](_0x13ab7e){const _0x4200f4=_0x366146;this[_0x4200f4(0x19d)](_0x13ab7e[_0x4200f4(0x200)]);}[_0x366146(0x255)](_0x2c1773){const _0x6a4a0b=_0x366146;localStorage[_0x6a4a0b(0x405)](ye,JSON[_0x6a4a0b(0x1b9)](_0x2c1773));}[_0x366146(0x272)](){const _0x2ef9cc=_0x366146;this[_0x2ef9cc(0x2f0)]=window['setInterval'](()=>{const _0x181ad1=_0x2ef9cc;this[_0x181ad1(0x255)]({'type':0x2,'memberID':this['_id']});},we);}[_0x366146(0x2ee)](_0x3d8a0f){const _0x43a980=_0x366146;return this[_0x43a980(0x22f)][_0x43a980(0x3fe)](_0x3d8a0f)||this[_0x43a980(0x22f)][_0x43a980(0x17a)](_0x3d8a0f,new I[(_0x43a980(0x3a8))](u[_0x43a980(0x25f)][_0x43a980(0x2d9)])),this['_unitStatus']['get'](_0x3d8a0f);}}function _0x51ff(){const _0x567c29=['min','_dataLoaderService','_docStateChangeManagerService','docStateChange$','NO_OTHER_CLIENTS_EDITING','shift','isFormulaString','getUnit','setAlpha','SNAPSHOT_INVALID_SNAPSHOT','handleIRemoveRow','idSuffix','activeSheet$','handleInsertRangeMoveDown','...','_startCalculationLimit','_uiPartsService','redoState','_anchor','ILogService','data','registerRefRange','_monkeyPatchLogService','REDEMPTION_CODE_NOT_STARTED','UNRECOGNIZED','_ensureSubject','_collaborationSessionService','_heartbeatTimer','_cursor','clearTimeout','closePath','REDEMPTION_USER_NOT_ELIGIBLE','isActive','show','transformMutationsWithChangeset','_hovered','invokeId','status$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','FormulaExecutedStateType','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_univerInstanceService','replace','transform','SetTextSelectionsOperation','onPointerLeave$','div','_saveCache','_transformUndoRedoStack','currentUsage','BrowserCollaborationSocketService','_handleHeartbeatEvent','black','CHANGESET_REVISION_CONFILICT','toDisposable','disposeUnit','startRow','transformStateCache','ENTITLE_CAN_NOT_BUY_LOWER_OTP','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_handleLeaveEvent','roomMembers','PAYMENT_CHANNEL_NOT_SUPPORT','row','UniverInstanceType','_handleHover','key','TEXT_RANGE_LAYER_INDEX','collabStatus.offline','CollaborationSessionService','measureText','loadUnit','searchParams','APPLY_REJECT','_docTransformStateCacheService','colno','result','createSocket','url(#off-line-icon_clip0_910_343)','formula.calculation.waiting','UniverIcon','MessageType','text','complete','error','_docSyncEditingCollabCursorService','hide','RemoveColCommandId','ILocalCacheService','svg','mutations','location','displayName','range','Rectangle','asObservable','stageInfo','registerRenderModule','getformulaLimitStatusUrl','_colorIndex','isTransformMutationFailure','sheetId','CollaborationSocketService','_unitOnClients','_setFormulaLimitStatus','295985MlxUls','enableFrontendLog','m2Prime','getDocRanges','translate(.97)','newValue','forwardRef','_revisionService','debug','clsx','_initWindowErrorListener','getUnitId','Inject','CONFLICT','_toggleOffline','0\x200\x2017\x2016','568XEJWKL','DocSkeletonManagerService','registerBeforeClose','on-line-icon_clip0_910_349','_config','LOGIN_FAILED','_injector','red.300','mergeOverrideWithDependencies','entries','ENTITLE_CHAT_LIMIT_EXCEED','EMAIL_VERIFY_CODE_MISMATCH','type','serializeRangeWithSheet','DEFAULT_WS_SESSION_TICKET_URL','params','SHEET_VIEWPORT_KEY','/universer-api/license/formula/limit/done','_initCommandExecutedListener','off-line-icon','Warning','deepClone','Injector','_textBubble','colorChannel1','_initUserListener','createIdentifier','_getSessionTicket','search','round','pushState','_render','[LogService\x20Error]:\x20','string','_hideTimer','getItem','INVALID_ARGUMENT','_entities','getAncestorScale','IUniverInstanceService','xlink:href','touchDependencies','ENSURE_SNAPSHOT_EXECUTION','INVITE_CODE_HAS_BEEN_UES','_drawTextRange','none','undoState','replaceState','Loading','_removeCollabCursors','CollaborationStatus','1em','delete','onStarting','YUUMI_AI_RUN_FAILED','MUTATION','EffectRefRangId','_context','HTTPService','socket$','maxFormulaLimit','ENTITLE_REPORT_LIMIT_EXCEED','permission.content','DocSelectionManagerService','VIEW_MAIN','beginPath','subscribe','MemberService','DOC_RANGE_TYPE','enableLocalCache','LICENSE_EXPORT_SIZE_EXCEEDED','removeEventListener','_createSocketURL','_shapes','bottom','getColor','APPLY_PERMISSION_DENIED','_maxFormulaLimit','getLocalCacheKey','disposeWithMe','_name','_scheduleSaving','imageSourceType','width','_notificationService','height','IMessageService','BuiltInUIPart','font','white','BehaviorSubject','collab-client.tooltip.reconnect','getUndoRedoMutationParamsCache','now','transformIMECache','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','OnLineIcon','url(#$1','_scene','_clearPolling','/universer-api/license/formula/limit/start','http://www.w3.org/2000/svg','1064049HtqSqt','setUndoRedoMutationParamsCache','path','_initUnhandledRejectionListener','NOT_FOUND','current','SOCKET_FAILED','APPLY_NON_SEQUENTIAL_REVISION','_uploadLog','drawWith','_cursors','_handleEvent','ERROR_AGAIN','blue.400','onPointerMove$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','uni.network.url-service','then','save','_range','evenodd','useDependency','assignAColorForMemberID','combineLatest','\x20at\x20','_updateSubUnitFromURLParams','#FFF','OFFLINE','4377arzwDO','fillText','reason','onLocalMutation','CLOSE_ROOM','OTHER_CLIENT_EDITING','_pollingInterval','_init','_getAnchorBounding','transformRemoteChangeset','_currentUsage','getMember','LOCAL_CACHE_INTERVAL_KEY','_imageIoService','_lastPointer','_saveTaskMap','unsubscribe','SetFormulaCalculationStartMutation','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','all','isEditing','purple.300','_showGuardMessage','onCommandExecuted','IUIPartsService','map','collaboration.closeRoom','forEach','_setupBeforeClosingHandler','_transformHistoryAndStateStack','getOwnPropertyDescriptor','onTransformChange$','Unknown\x20user','Optional','findNodePositionByCharIndex','createInstance','editingUnit','handleDeleteRangeMoveUp','setTimeout','FormulaExecuteStageType','_labelPosition','TOO_MANY_REQUESTS','UNDEFINED','collab-text-anchor-','getActiveRange','_renderManagerService','has','_docSkeletonManagerService','WebBrowserSingleActiveUnitService','_onCursorUpdate','registerComponent','_initCommandInterceptor','RemoteUniscriptService','setItem','getStateCache','getRangePointData','unload','RegularPolygon','getActiveSheet','4596830MHEhQD','runRefRangeMutations','_collabCursorState$','executionId','getOffsetConfig','PENDING','_onCursorDelete','MOBILE_HAS_BEEN_BOUND','url(#on-line-icon_clip0_910_349)','onMouseMove','_instanceService','_startDocCollabCursor','SOCKET_FAILED_RETRY','selections','FETCH_MISS','doc.mutation.rich-text-editing','collabStatus.fetchMiss','requireSession','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_clearOtherTimers','transformSelections','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','/universer-api/license/formula/limit/status','isArray','children','addEventListener','IDocClipboardService','next','InsertColCommandId','href','_initStatusListener','_selfUnitIDs','_setupSubUnitSync','fill','history','permission.title','LICENSE_DISTRO_REJECTED','getRelativeToViewportCoord','onPointerEnter$','split','makeDirty','_commandService','getSkeleton','ENTITLE_NEED_BILLING_ADDRESS','handleInsertRow','_applyCommand','YUUMI_RATE_OVER_LIMIT','EMAIL_HAS_BEEN_BOUND','Disposable','toString','M0\x200H16V16H0z','_removeClearOtherTimer','set','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','REDEMPTION_CODE_FULLY_REDEEMED','debounceTime','parseInt','_transformPreviousActiveRange','createElement','CanceledError','defs','COMPLETION_FINISHED','moveTo','_assignedColors','unit','CURRENT_STATUS_CANNOT_OPERATE','[CollaborationDataLoaderController]','saveTaskMap','currentColor','YUUMI_ASYNCIO_CANCELLED','event$','length','_initDependencies','throttleTime','SNAPSHOT_HAS_BEEN_REMOVED','cursorInfo','push','ENTITLE_DUP_SUBSCRIPTION','YUUMI_UNABLE_LOAD_URL','UPDATE_CURSOR','RevisionService','_hover','_syncEditingCollabCursorService','IConfigService','InsertRowCommandId','RECT','dirtyRanges','_scheduleClearOtherTimer','_docTransformSelectionsService','MOBILE_VERIFY_CODE_MISMATCH','dispose$','backgroundColor','color','getSheetId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','YUUMI_ALL_TABLES_IS_INVALID','SheetsSelectionsService','stack','distinctUntilChanged','INVALID_INVITE_CODE','24KXFvkf','INTERNAL_ERROR','releaseFormulaLimitUrl','CollaborationDataLoaderController','_color','_docTransformIMECacheService','USER_NOT_INVITED_CODE','_urlService','_online','post','DocStateChangeManagerService','sheetID','TEXT','getVpScrollXYInfoByPosToVp','body','stringify','DATA_SOURCE_TOO_LARGE','142173WSnNVH','DataLoaderService','Rect','executeCommand','getValue','currentTheme$','skeleton','pipe','syncEditingCollabCursor','SessionStatus','unitID','_startSheetCollabCursor','getCurrentRevOfUnit','YUUMI_SUBSCRIPTION_NOT_FOUND','_draw','collaboration-client-ui.config','UNAUTHENTICATED','_lastResponseTimestamp','Success','random','values','roomMembers$','trim','YUUMI_NO_CUBOID_FOR_QUESTION','_colorAssignService','getParam','Tools','INVITE_CODE_REQUIRED','override','functionsExecutedState','ranges','IRenderManagerService','/universer-api/frontend/logs','exhaustSavingTask','Plugin','ITransformService','subunit','PERMISSION_DENIED','Subject','_roomMembers$','Error','collabCursorState$','_backgroundColor','merge','_collaborationUIEventService','_transformService','top','cursorInfo$','with','USER_NOT_FOUND','_localCacheService','DesktopCollaborationStatusDisplayController','_entityInit$','1462HMvcoe','PY_RUNTIME_SCRIPT_ERROR','getFocusedUnit','_hasFormulaInDirtyRanges','APPLY_DUPLICATED','INVITE_CODE_ALREADY_BOUND','session.will-retry','_docClipboardService','ThemeService','getSheetObject','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DependentOn','_collabCursorController','switchMap','Tooltip','LICENSE_IMPORT_SIZE_EXCEEDED','memberID','addObject','yellow.400','updateOfflineData','_logService','assign','transformMutation','Module','COLORS','isFormulaId','message','_cursorInfo$','YUUMI_CONNECTOR_URL_NOT_FOUND','setParam','startsWith','?taskId=','REDEMPTION_INVALID_CODE','getMergeData','_handleJoinEvent','jsx','find','runOnServer','getRenderById','some','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','START_CALCULATION','urlChange$','useCallback','lineTo','code','wsSessionTicketUrl','selection','flatMap','filter','HEADER_MENU','addHandlerCallback','size','takeUntil','setShapeProps','subscribeEvent','SetWorksheetActivateCommand','AUTHORIZE_CODE_ILLEGAL','mask','ENTITLE_INSUFFICIENT_QUOTA','11360770girWxd','11tGBHnY','_memberService','_unitStatus','ACTIVE_UNIT_EVENT_CHANNEL','limitInfo','unitId','SYNCED','hovered','[Unhandled\x20Rejection]:\x20','toRgbString','ONLINE','CollaborationEvent','getSheetBySheetId','_beforeCloseService','_getMergeRange','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_eventUnsubscribe','_updateLocalCursor','RemoveRowCommandId','_collaborationController','beforeCommandExecuted','runId','getCurrentSelections','_configService','fillStyle','eventID','Vector2','_updateURLWithCurrentState','_memberID','LICENSE_MAX_UNITS_EXCEEDED','textRanges','_checkAndWaitForCalculationPermission','_messageService','defineProperty','actions','_anchorDot','getConfig','Failed','_registerRenderDependencies','APPLY_REVISION_CONFILICT','_send','_taskIds','_cursorShapes','addClipboardHook','toStringTag','RxDisposable','UNIVER_SHEET','_localStorageService','/run/','ColorKit','UnitStatus','FromArray','attrs','max','deserializeRangeWithSheet','AWAITING','UniverCollaborationClientUIPlugin','unshift','LocaleService','get','_sheetSkeletonManagerService','getMemberID','USERS_LEAVE','ISocketService','entityInit$','MoveRangeCommandId','DeleteRangeMoveUpCommandId','IBeforeCloseService','_releaseCalculationLimit','_scheduleHeartbeat','DisposableCollection','OTHER_CLIENTS_EDITING','clipPath','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LOGIN_TOKEN_PROCESSING_FAILED','debounce','collaboration-client.offline-data-not-saved','pluginName','_disabled','triggerDblclick','INotificationService','collabStatus.notCollab','USER_IS_ANONYMOUS','ALREADY_EXISTS','fromEventSubject','fromEvent','isTransformMutationsWithChangesetSuccess','_updateCollabCursors','_initResize','dispose','_doCreateSocket','subUnitId','formula.calculation.started','_document','m1Prime','ISnapshotServerService','CollaborationUIEventId','_initStatusComponent','generateRandomId','loadOfflineData','UniverCollaborationClientPlugin','init','collabStatus.conflict','WebURLService','join','DeleteRangeMoveLeftCommandId','_initEvent','_collabSessionService','NodePositionConvertToRectRange','_themeService','CONNECTOR_DATA_TOO_LARGE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','Shape','collab-text-range-','SheetCollabCursorShape','name','REDEMPTION_CODE_INACTIVE','_httpService','lineno','send','_id','includes','saveImage','WECHAT_HAS_BEEN_BOUND','clearInterval','off-line-icon_clip0_910_343','disableLocalCache','_localeService','NOT_COLLAB','arc','getCollabCursors$','useRef','registerDependencies','from','1916304cncRNx','endRow','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','restore','collaboration.single-unit.warning','YUUMI_URL_COL_OUT_OF_RANGE','_getSheetObject','_refreshCollabCursors','add','getCollabEntity$','removeParam','parse','Workbook','_checkCalculationAvailable','_refRangeService','[Window\x20Error]:\x20','_toggleOnline','DocIMEInputManagerService','_cachedData','getTypeOfUnitDisposed$','endColumn','tag','REDEMPTION_CODE_HAS_BEEN_CREATED','_drawRectRange','onRendered','unhandledrejection','JOIN_ROOM_FAILED','handleInsertCol','_session','mapTo','getColorFromTheme','formula.calculation.unable','ticket','ICommandService'];_0x51ff=function(){return _0x567c29;};return _0x51ff();}exports['IURLService']=Oe,exports[_0x366146(0x29f)]=je,exports[_0x366146(0x400)]=fs,exports[_0x366146(0x294)]=ke;
|
|
1
|
+
'use strict';const _0x4885bf=_0x30e5;(function(_0x3fc461,_0xda0c53){const _0x24e182=_0x30e5,_0x41cc5f=_0x3fc461();while(!![]){try{const _0x4a2458=parseInt(_0x24e182(0x330))/0x1+-parseInt(_0x24e182(0x289))/0x2*(-parseInt(_0x24e182(0x246))/0x3)+-parseInt(_0x24e182(0xd7))/0x4*(-parseInt(_0x24e182(0x11e))/0x5)+parseInt(_0x24e182(0x1bd))/0x6+-parseInt(_0x24e182(0x123))/0x7+parseInt(_0x24e182(0x2d5))/0x8+-parseInt(_0x24e182(0x118))/0x9;if(_0x4a2458===_0xda0c53)break;else _0x41cc5f['push'](_0x41cc5f['shift']());}catch(_0x110fec){_0x41cc5f['push'](_0x41cc5f['shift']());}}}(_0x7782,0xe349b));var Xe=Object[_0x4885bf(0x1a3)],Ke=(_0x3543cf,_0xe4abd1,_0x5c82ad)=>_0xe4abd1 in _0x3543cf?Xe(_0x3543cf,_0xe4abd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c82ad}):_0x3543cf[_0xe4abd1]=_0x5c82ad,_=(_0x1553ce,_0x125197,_0x3b8170)=>Ke(_0x1553ce,typeof _0x125197!=_0x4885bf(0x1f1)?_0x125197+'':_0x125197,_0x3b8170);Object['defineProperty'](exports,Symbol[_0x4885bf(0x2f3)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),p=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function Te({ref:_0x189620,..._0x555e44}){const _0x3ef5f6=_0x4885bf,{icon:_0xc017b9,id:_0x5889c7,className:_0x15169e,extend:_0x5e8ef3,..._0x5a2bff}=_0x555e44,_0x5efc5f=(_0x3ef5f6(0xd0)+_0x5889c7+'\x20'+(_0x15169e||''))['trim'](),_0x4429dd=A[_0x3ef5f6(0x273)]('_'+Qe());return $e(_0xc017b9,''+_0x5889c7,{'defIds':_0xc017b9[_0x3ef5f6(0x13a)],'idSuffix':_0x4429dd[_0x3ef5f6(0x20f)]},{'ref':_0x189620,'className':_0x5efc5f,..._0x5a2bff},_0x5e8ef3);}function $e(_0x4f770a,_0x5eabde,_0x10e99c,_0x49bf6d,_0xdb0303){const _0xb26ad=_0x4885bf;return A['createElement'](_0x4f770a[_0xb26ad(0xfc)],{'key':_0x5eabde,...Je(_0x4f770a,_0x10e99c,_0xdb0303),..._0x49bf6d},(Ze(_0x4f770a,_0x10e99c)['children']||[])['map']((_0x47cff7,_0x1ff66e)=>$e(_0x47cff7,_0x5eabde+'-'+_0x4f770a[_0xb26ad(0xfc)]+'-'+_0x1ff66e,_0x10e99c,void 0x0,_0xdb0303)));}function Je(_0x510a6a,_0x8e9360,_0x2902f6){const _0x2deec2=_0x4885bf,_0x109d00={..._0x510a6a[_0x2deec2(0x323)]};_0x2902f6!=null&&_0x2902f6[_0x2deec2(0x362)]&&_0x109d00[_0x2deec2(0x15b)]===_0x2deec2(0x362)&&(_0x109d00[_0x2deec2(0x15b)]=_0x2902f6['colorChannel1']),_0x510a6a['tag']===_0x2deec2(0x1f5)&&_0x109d00['id']&&(_0x109d00['id']=_0x109d00['id']+_0x8e9360[_0x2deec2(0x1a6)]),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x49105d,_0xd14ecc])=>{const _0x4c1591=_0x2deec2;_0x49105d===_0x4c1591(0x1f5)&&typeof _0xd14ecc==_0x4c1591(0xdf)&&(_0x109d00[_0x49105d]=_0xd14ecc[_0x4c1591(0x15c)](/url\(#(.*)\)/,_0x4c1591(0x2eb)+_0x8e9360['idSuffix']+')'));});const {defIds:_0x2442bf}=_0x8e9360;return!_0x2442bf||_0x2442bf[_0x2deec2(0x12a)]===0x0||(_0x510a6a[_0x2deec2(0xfc)]===_0x2deec2(0x2c2)&&_0x109d00[_0x2deec2(0xd3)]&&(_0x109d00[_0x2deec2(0xd3)]=_0x109d00[_0x2deec2(0xd3)]+_0x8e9360['idSuffix']),Object[_0x2deec2(0x2cf)](_0x109d00)[_0x2deec2(0x28d)](([_0x75caea,_0x441cda])=>{const _0x553765=_0x2deec2;typeof _0x441cda==_0x553765(0xdf)&&(_0x109d00[_0x75caea]=_0x441cda[_0x553765(0x15c)](/url\(#(.*)\)/,_0x553765(0x2eb)+_0x8e9360[_0x553765(0x1a6)]+')'));})),_0x109d00;}function Ze(_0x3a4179,_0x22aeeb){const _0xaec302=_0x4885bf;var _0x215a26;const {defIds:_0x315598}=_0x22aeeb;return!_0x315598||_0x315598['length']===0x0?_0x3a4179:_0x3a4179[_0xaec302(0xfc)]===_0xaec302(0x325)&&((_0x215a26=_0x3a4179[_0xaec302(0x2ae)])!=null&&_0x215a26[_0xaec302(0x12a)])?{..._0x3a4179,'children':_0x3a4179[_0xaec302(0x2ae)][_0xaec302(0x2d7)](_0x296bb4=>typeof _0x296bb4[_0xaec302(0x323)]['id']==_0xaec302(0xdf)&&_0x315598&&_0x315598[_0xaec302(0x26b)](_0x296bb4[_0xaec302(0x323)]['id'])?{..._0x296bb4,'attrs':{..._0x296bb4[_0xaec302(0x323)],'id':_0x296bb4[_0xaec302(0x323)]['id']+_0x22aeeb[_0xaec302(0x1a6)]}}:_0x296bb4)}:_0x3a4179;}function Qe(){const _0x8999a=_0x4885bf;return Math['random']()['toString'](0x24)[_0x8999a(0x301)](0x2,0x8);}Te[_0x4885bf(0x1b9)]=_0x4885bf(0x19b);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4885bf(0x95),'viewBox':_0x4885bf(0x217),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x265)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x121),'strokeLinecap':_0x4885bf(0x2b5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':_0x4885bf(0x238)},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x4885bf(0x14e)](function(_0x1817ed,_0x570def){const _0x5dd070=_0x4885bf;return A['createElement'](Te,Object['assign']({},_0x1817ed,{'id':_0x5dd070(0x1b4),'ref':_0x570def,'icon':et}));});xe[_0x4885bf(0x1b9)]='OffLineIcon';const tt={'tag':_0x4885bf(0x19e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4885bf(0x35d),'width':_0x4885bf(0xe8),'height':_0x4885bf(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4885bf(0x2da)},'children':[{'tag':_0x4885bf(0x230),'attrs':{'stroke':_0x4885bf(0x182),'d':_0x4885bf(0x33f),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4885bf(0x325),'attrs':{},'children':[{'tag':_0x4885bf(0x34a),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x4885bf(0xf9),'d':_0x4885bf(0x2f4),'transform':_0x4885bf(0x1d3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A['forwardRef'](function(_0x36b1aa,_0x55dc12){const _0x39e107=_0x4885bf;return A[_0x39e107(0x28f)](Te,Object[_0x39e107(0x2fd)]({},_0x36b1aa,{'id':_0x39e107(0x2e1),'ref':_0x55dc12,'icon':tt}));});Be['displayName']=_0x4885bf(0xae);function st(_0x2278c7){const _0xe96a31=_0x4885bf;switch(_0x2278c7){case u[_0xe96a31(0x30d)][_0xe96a31(0x14b)]:return _0xe96a31(0x169);case u[_0xe96a31(0x30d)][_0xe96a31(0x2f5)]:return'collabStatus.conflict';case u[_0xe96a31(0x30d)][_0xe96a31(0x26c)]:return _0xe96a31(0x1e3);case u[_0xe96a31(0x30d)][_0xe96a31(0x333)]:return _0xe96a31(0xb5);case u[_0xe96a31(0x30d)][_0xe96a31(0x1bb)]:case u['CollaborationStatus'][_0xe96a31(0x150)]:return _0xe96a31(0x348);case u[_0xe96a31(0x30d)][_0xe96a31(0x11c)]:case u[_0xe96a31(0x30d)][_0xe96a31(0x256)]:return _0xe96a31(0x350);}}function it(_0x5c4e0a){const _0x13cabb=_0x4885bf,{status$:_0x13ad74}=_0x5c4e0a,_0x41482f=O[_0x13cabb(0x164)](_0x13ad74,u[_0x13cabb(0x30d)][_0x13cabb(0x333)]),_0x1d9131=O['useDependency'](a['LocaleService']),_0x42b504=O['useDependency'](u[_0x13cabb(0x307)]),_0x4a7a58=_0x41482f!==u['CollaborationStatus']['OFFLINE'],_0x2f54b1=_0x1d9131['t'](st(_0x41482f)),_0x37d8d6=_0x4a7a58?M['jsx'](Be,{}):M[_0x13cabb(0x1c0)](xe,{}),_0x37a081=A['useCallback'](()=>{const _0x50643f=_0x13cabb;_0x4a7a58||_0x42b504[_0x50643f(0x2f2)]();},[_0x4a7a58,_0x42b504]);function _0x100f61(){const _0x23b7ab=_0x13cabb;return M['jsxs'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x22b),'onClick':_0x37a081,'children':[M[_0x23b7ab(0x1c0)](_0x23b7ab(0x1b3),{'className':T['clsx'](_0x23b7ab(0x2e0),{'univer-text-green-500':_0x4a7a58,'univer-text-red-500':!_0x4a7a58}),'children':_0x37d8d6}),M['jsx'](_0x23b7ab(0x1b3),{'className':_0x23b7ab(0x125),'children':_0x2f54b1})]});}return _0x4a7a58?_0x100f61():M['jsx'](T['Tooltip'],{'title':_0x1d9131['t'](_0x13cabb(0x14a)),'children':_0x100f61()});}var nt=Object[_0x4885bf(0xee)],rt=(_0x32e89f,_0x44c546,_0x5db335,_0x1247e7)=>{const _0x18970d=_0x4885bf;for(var _0x2480fa=_0x1247e7>0x1?void 0x0:_0x1247e7?nt(_0x44c546,_0x5db335):_0x44c546,_0x18d3e1=_0x32e89f[_0x18970d(0x12a)]-0x1,_0x56a540;_0x18d3e1>=0x0;_0x18d3e1--)(_0x56a540=_0x32e89f[_0x18d3e1])&&(_0x2480fa=_0x56a540(_0x2480fa)||_0x2480fa);return _0x2480fa;},K=(_0x1c4470,_0x2f0304)=>(_0x549941,_0x390658)=>_0x2f0304(_0x549941,_0x390658,_0x1c4470);exports[_0x4885bf(0x197)]=class extends a['Disposable']{constructor(_0x5be5a7,_0xc4a4a1,_0x385483,_0x12912e){const _0x28db3e=_0x4885bf;super(),_(this,_0x28db3e(0x14d),new I[(_0x28db3e(0x2cb))](u[_0x28db3e(0x30d)][_0x28db3e(0x333)])),(this[_0x28db3e(0x189)]=_0x5be5a7,this['_injector']=_0xc4a4a1,this['_collaborationController']=_0x385483,this['_uiPartsService']=_0x12912e,this[_0x28db3e(0x252)](),this[_0x28db3e(0x1d0)]());}['_initStatusListener'](){const _0x242cad=_0x4885bf;this['disposeWithMe'](this[_0x242cad(0x189)][_0x242cad(0x9b)][_0x242cad(0x153)](I[_0x242cad(0xea)](()=>{const _0x211b8c=_0x242cad,_0x15d9b5=this[_0x211b8c(0x189)][_0x211b8c(0x277)]();return _0x15d9b5?this['_collaborationController']['getCollabEntity$'](_0x15d9b5[_0x211b8c(0x2fb)]()):I['of'](null);}),I[_0x242cad(0xea)](_0x364133=>_0x364133?_0x364133['status$']:I['of'](u[_0x242cad(0x30d)][_0x242cad(0x333)])))['subscribe'](_0x4b9420=>{const _0x77785c=_0x242cad;this[_0x77785c(0x14d)]['next'](_0x4b9420);}));}[_0x4885bf(0x252)](){const _0x5a9755=_0x4885bf;this[_0x5a9755(0x354)](this[_0x5a9755(0x284)][_0x5a9755(0x34d)](O[_0x5a9755(0x2d9)][_0x5a9755(0x320)],()=>O['connectInjector'](ot({'status$':this[_0x5a9755(0x14d)][_0x5a9755(0x251)]()}),this[_0x5a9755(0x17e)])));}},exports[_0x4885bf(0x197)]=rt([K(0x0,a[_0x4885bf(0x2b8)]),K(0x1,a['Inject'](a[_0x4885bf(0x199)])),K(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),K(0x3,O[_0x4885bf(0xa8)])],exports[_0x4885bf(0x197)]);function ot(_0x3c1a3c){const {status$:_0x286375}=_0x3c1a3c;return function(){const _0x3925c1=_0x30e5;return M[_0x3925c1(0x1c0)](it,{'status$':_0x286375});};}const Oe=a[_0x4885bf(0xaa)](_0x4885bf(0x2ee));var at=Object['getOwnPropertyDescriptor'],ct=(_0x43f067,_0x1d1f40,_0x1a35ed,_0x245719)=>{for(var _0x2757fa=_0x245719>0x1?void 0x0:_0x245719?at(_0x1d1f40,_0x1a35ed):_0x1d1f40,_0x4d5e8d=_0x43f067['length']-0x1,_0x423ae1;_0x4d5e8d>=0x0;_0x4d5e8d--)(_0x423ae1=_0x43f067[_0x4d5e8d])&&(_0x2757fa=_0x423ae1(_0x2757fa)||_0x2757fa);return _0x2757fa;},Y=(_0x26bd51,_0x4891dc)=>(_0x539137,_0x32d04a)=>_0x4891dc(_0x539137,_0x32d04a,_0x26bd51);exports[_0x4885bf(0x161)]=class extends a[_0x4885bf(0x1aa)]{constructor(_0x31d480,_0x4c54a2,_0x191646,_0x435d17,_0x4cadc3){const _0x3c8926=_0x4885bf;super(),this[_0x3c8926(0x316)]=_0x31d480,this[_0x3c8926(0x1ed)]=_0x4c54a2,this[_0x3c8926(0x26a)]=_0x191646,this[_0x3c8926(0x14c)]=_0x435d17,_0x4cadc3?_0x4cadc3==null||_0x4cadc3[_0x3c8926(0x30e)]()[_0x3c8926(0x180)](()=>this['_init']()):(this[_0x3c8926(0x1ed)]['debug'](_0x3c8926(0x2c8),_0x3c8926(0x1c5)),this['_init']());}async[_0x4885bf(0x2a5)](){const _0x322354=_0x4885bf,_0x298bcb=this['_urlService'][_0x322354(0x313)](_0x322354(0x27c)),_0x56ed4e=this[_0x322354(0x316)][_0x322354(0x313)](_0x322354(0x360)),_0xf3c22e=this[_0x322354(0x316)][_0x322354(0x313)]('subunit');if(!_0x298bcb||!_0x56ed4e){this['_logService'][_0x322354(0x2e9)](_0x322354(0x2c8),_0x322354(0x321));return;}const _0x3f0086=await this[_0x322354(0x14c)][_0x322354(0x319)](_0x298bcb,Number(_0x56ed4e),_0xf3c22e);_0x3f0086&&_0x3f0086 instanceof a['Workbook']&&this[_0x322354(0x250)](_0x3f0086);}async[_0x4885bf(0x250)](_0x236a5c){const _0x20860f=_0x4885bf;await this[_0x20860f(0xc9)](_0x236a5c),_0x236a5c[_0x20860f(0x339)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))['subscribe'](_0x17183d=>{const _0x3dacb7=_0x20860f;_0x17183d&&this[_0x3dacb7(0x1f9)](_0x17183d);}),this[_0x20860f(0x316)][_0x20860f(0xd8)][_0x20860f(0x153)](I['takeUntil'](this[_0x20860f(0x30f)]))[_0x20860f(0x22c)](()=>this['_updateSubUnitFromURLParams'](_0x236a5c));}[_0x4885bf(0x1f9)](_0x41c713,_0x5d8947=!0x1){const _0xc1629a=_0x4885bf,_0x285617=this[_0xc1629a(0x316)][_0xc1629a(0x313)](_0xc1629a(0x111));_0x41c713['getSheetId']()!==_0x285617&&this[_0xc1629a(0x316)][_0xc1629a(0x185)](_0xc1629a(0x111),_0x41c713[_0xc1629a(0xb9)](),_0x5d8947);}async[_0x4885bf(0xc9)](_0x4ea57f){const _0x1deebe=_0x4885bf;var _0x18326b;const _0x1a6a03=this[_0x1deebe(0x316)][_0x1deebe(0x313)](_0x1deebe(0x111));if(!_0x1a6a03||!_0x4ea57f[_0x1deebe(0x2e2)](_0x1a6a03)){const _0x25981b=_0x4ea57f[_0x1deebe(0x21e)]()[0x0],_0x284694=_0x4ea57f[_0x1deebe(0x2e2)](_0x25981b);if(!_0x284694)return;this[_0x1deebe(0x1f9)](_0x284694,!0x0),await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f[_0x1deebe(0x2fb)](),'subUnitId':_0x25981b});return;}((_0x18326b=_0x4ea57f[_0x1deebe(0x30c)]())==null?void 0x0:_0x18326b[_0x1deebe(0xb9)]())!==_0x1a6a03&&await this[_0x1deebe(0x26a)]['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ea57f['getUnitId'](),'subUnitId':_0x1a6a03});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x4885bf(0x15f)]),Y(0x2,a[_0x4885bf(0x2a2)]),Y(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x2db)])),Y(0x4,a['Optional'](qe[_0x4885bf(0x2d4)]))],exports[_0x4885bf(0x161)]);var lt=Object[_0x4885bf(0xee)],_t=(_0x32b53c,_0x49fe27,_0x557a1d,_0x4a7c84)=>{const _0x390edb=_0x4885bf;for(var _0x5b33d2=_0x4a7c84>0x1?void 0x0:_0x4a7c84?lt(_0x49fe27,_0x557a1d):_0x49fe27,_0x354f38=_0x32b53c[_0x390edb(0x12a)]-0x1,_0x584914;_0x354f38>=0x0;_0x354f38--)(_0x584914=_0x32b53c[_0x354f38])&&(_0x5b33d2=_0x584914(_0x5b33d2)||_0x5b33d2);return _0x5b33d2;},De=(_0x295639,_0x17ebe2)=>(_0x22970,_0x39b62e)=>_0x17ebe2(_0x22970,_0x39b62e,_0x295639);let me=class extends a[_0x4885bf(0x1aa)]{constructor(_0x47335a,_0x2e6847){const _0x858b1=_0x4885bf;super(),this[_0x858b1(0xd4)]=_0x47335a,this[_0x858b1(0x1e8)]=_0x2e6847,this[_0x858b1(0x2a5)]();}[_0x4885bf(0x2a5)](){const _0x237d97=_0x4885bf,_0x7e433=this;this['disposeWithMe'](this[_0x237d97(0xd4)][_0x237d97(0x184)]({'onBeforePasteImage':async _0x5b21c2=>{const _0x53a2ad=_0x237d97,_0x122d71=await _0x7e433[_0x53a2ad(0x1e8)][_0x53a2ad(0x317)](_0x5b21c2);return _0x122d71?{'source':_0x122d71[_0x53a2ad(0x2aa)],'imageSourceType':_0x122d71[_0x53a2ad(0x2ce)]}:null;}}));}};me=_t([De(0x0,p[_0x4885bf(0x209)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4885bf(0x2c9),_0x4885bf(0xc6),_0x4885bf(0x2f6),'red.300',_0x4885bf(0xdd),'yellow.400'];class Re extends a[_0x4885bf(0x1b2)]{constructor(){const _0x5a741f=_0x4885bf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x5a741f(0xa6),0x0);}['assignAColorForMemberID'](_0x5eee88){const _0x24ae50=_0x4885bf;if(this[_0x24ae50(0x228)][_0x24ae50(0x11b)](_0x5eee88))return this[_0x24ae50(0x228)][_0x24ae50(0x1b8)](_0x5eee88);const _0x2a4996=Ne[this[_0x24ae50(0xa6)]];return this[_0x24ae50(0xa6)]=(this[_0x24ae50(0xa6)]+0x1)%Ne['length'],this[_0x24ae50(0x228)][_0x24ae50(0x219)](_0x5eee88,_0x2a4996),_0x2a4996;}}function Fe(_0x3e0214){const _0x3b75cf=_0x4885bf;let _0x4b1c35='';for(const _0x44f2fc of _0x3e0214){const {startOffset:_0x2fa18b,endOffset:_0x58ba1f,isActive:_0x221d38,rangeType:_0x5a5954,segmentId:_0x3babf5,segmentPage:_0x2cbc3a}=_0x44f2fc;_0x4b1c35[_0x3b75cf(0x12a)]&&(_0x4b1c35+=','),_0x4b1c35+=_0x2fa18b+':'+_0x58ba1f+':'+(_0x221d38?'1':'0')+':'+_0x5a5954+':'+_0x3babf5+':'+_0x2cbc3a;}return _0x4b1c35;}function ht(_0xb0d81b){const _0x318cad=_0x4885bf,_0x226e93=_0xb0d81b[_0x318cad(0x1ce)](','),_0x255518=[];for(const _0x2dc7d6 of _0x226e93){const [_0x460a20,_0x3248aa,_0x3925eb,_0x32b16b,_0x2b8f1c,_0x4775dc]=_0x2dc7d6[_0x318cad(0x1ce)](':');_0x255518['push']({'startOffset':Number(_0x460a20),'endOffset':Number(_0x3248aa),'collapsed':_0x460a20===_0x3248aa,'isActive':_0x3925eb==='1','rangeType':_0x32b16b===a[_0x318cad(0x1f7)][_0x318cad(0x1a8)]?a['DOC_RANGE_TYPE'][_0x318cad(0x1a8)]:a[_0x318cad(0x1f7)][_0x318cad(0x2ea)],'segmentId':typeof _0x2b8f1c==_0x318cad(0xdf)?String(_0x2b8f1c):'','segmentPage':Number(_0x4775dc!=null?_0x4775dc:-0x1)});}return _0x255518[_0x318cad(0xff)](_0x487531=>_0x487531[_0x318cad(0x18c)])||(_0x255518[0x0][_0x318cad(0x18c)]=!0x0),_0x255518;}class be extends a['RxDisposable']{constructor(){const _0x5bfd7d=_0x4885bf;super(...arguments),_(this,_0x5bfd7d(0x297),new I[(_0x5bfd7d(0x2cb))](null)),_(this,'collabCursorState$',this[_0x5bfd7d(0x297)][_0x5bfd7d(0x251)]());}[_0x4885bf(0x285)](_0x4359ad){const _0xee5cde=_0x4885bf,{unitID:_0x76c7d2,memberID:_0x3e89f9,textRanges:_0x5dabe1}=_0x4359ad,_0x554a5d=Fe(_0x5dabe1);if(_0x554a5d==='')return;const _0x4b95ab={'unitID':_0x76c7d2,'memberID':_0x3e89f9,'selection':_0x554a5d};this['_collabCursorState$'][_0xee5cde(0x1a7)](_0x4b95ab);}}var ut=Object[_0x4885bf(0xee)],It=(_0x4be61d,_0x476a7a,_0x3ab041,_0x408726)=>{const _0x18c33f=_0x4885bf;for(var _0x1c752d=_0x408726>0x1?void 0x0:_0x408726?ut(_0x476a7a,_0x3ab041):_0x476a7a,_0x74dcb0=_0x4be61d[_0x18c33f(0x12a)]-0x1,_0x53c38c;_0x74dcb0>=0x0;_0x74dcb0--)(_0x53c38c=_0x4be61d[_0x74dcb0])&&(_0x1c752d=_0x53c38c(_0x1c752d)||_0x1c752d);return _0x1c752d;},U=(_0x484418,_0x763a2c)=>(_0xdc31f5,_0x3d8dd6)=>_0x763a2c(_0xdc31f5,_0x3d8dd6,_0x484418);const dt=0x12c,St=0x64;let ve=class extends a[_0x4885bf(0x1aa)]{constructor(_0x502a0d,_0x3535b3,_0x497379,_0x1bdedf,_0x4d3373,_0xb0f3ec,_0xd2d55e,_0x5c4880,_0x4f3796){const _0x47d485=_0x4885bf;super(),_(this,_0x47d485(0xb8),!0x1),_(this,_0x47d485(0x2a5),!0x1),_(this,'_cursorInfo$',new I[(_0x47d485(0x2cb))](new Map())),_(this,_0x47d485(0x35c),this[_0x47d485(0x1f3)]['asObservable']()),_(this,_0x47d485(0x34f),new I['BehaviorSubject']([])),_(this,_0x47d485(0x10f),this[_0x47d485(0x34f)][_0x47d485(0x153)](I[_0x47d485(0x1cd)](dt))),_(this,_0x47d485(0x2df),a[_0x47d485(0xf6)](_0x5e80a2=>{const _0x580aa0=_0x47d485,_0x1b6899={'eventID':g[_0x580aa0(0x2b2)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x580aa0(0x143)],'memberID':this[_0x580aa0(0x2a3)][_0x580aa0(0x35f)](),'selection':Fe(_0x5e80a2)}};this[_0x580aa0(0x2a3)]['send'](_0x1b6899,this[_0x580aa0(0x143)]);},St)),(this[_0x47d485(0x143)]=_0x502a0d,this[_0x47d485(0x2a3)]=_0x3535b3,this[_0x47d485(0x17e)]=_0x497379,this[_0x47d485(0x335)]=_0x1bdedf,this[_0x47d485(0x290)]=_0x4d3373,this[_0x47d485(0x21c)]=_0xb0f3ec,this[_0x47d485(0x148)]=_0xd2d55e,this[_0x47d485(0x189)]=_0x5c4880,this[_0x47d485(0x26a)]=_0x4f3796);}get[_0x4885bf(0x31d)](){return this['_cursorInfo$']['getValue']();}get[_0x4885bf(0x98)](){const _0x23f26e=_0x4885bf;return this[_0x23f26e(0x34f)][_0x23f26e(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x19f638=_0x4885bf;super[_0x19f638(0xcf)](),this[_0x19f638(0x1f3)][_0x19f638(0x1a7)](new Map()),this[_0x19f638(0x1f3)]['complete'](),this[_0x19f638(0x34f)][_0x19f638(0x1a7)]([]),this[_0x19f638(0x34f)]['complete']();}['init'](){const _0x2289d2=_0x4885bf;this['_init']||(this[_0x2289d2(0x2a5)]=!0x0,this['_session'][_0x2289d2(0x2e8)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this['dispose$']))[_0x2289d2(0x22c)](_0x1473c4=>{const _0x3a5a4c=_0x2289d2;_0x1473c4===u[_0x3a5a4c(0x10d)][_0x3a5a4c(0x269)]?this[_0x3a5a4c(0x29e)]():this[_0x3a5a4c(0x27d)]();}),this[_0x2289d2(0x2a3)]['event$'][_0x2289d2(0x153)](I['takeUntil'](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x146a11=>{const _0x17bddc=_0x2289d2,_0x1021b6=_0x146a11[_0x17bddc(0x183)];_0x1021b6===g['CollaborationEvent'][_0x17bddc(0x2c4)]&&this[_0x17bddc(0x188)](_0x146a11),_0x1021b6===g[_0x17bddc(0x2b2)]['USERS_LEAVE']&&this[_0x17bddc(0x8e)](_0x146a11);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)]['onCommandExecuted'](_0x289571=>{const _0x157c55=_0x2289d2,_0x15ecd0=_0x289571['params'];_0x15ecd0!=null&&this[_0x157c55(0xb8)]&&_0x289571['id']===V[_0x157c55(0x220)]['id']&&_0x15ecd0['unitId']===this['unitID']&&_0x15ecd0[_0x157c55(0x33e)]===!0x1&&_0x15ecd0[_0x157c55(0x128)]['length']>0x0&&this[_0x157c55(0x2df)](_0x15ecd0[_0x157c55(0x128)]);})),this['_syncEditingCollabCursorService'][_0x2289d2(0x21d)][_0x2289d2(0x153)](I[_0x2289d2(0x268)](this[_0x2289d2(0x30f)]))[_0x2289d2(0x22c)](_0x51f816=>{const _0x20f0a6=_0x2289d2;if((_0x51f816==null?void 0x0:_0x51f816[_0x20f0a6(0x143)])!==this[_0x20f0a6(0x143)])return;const _0x50ddd2={'eventID':g[_0x20f0a6(0x2b2)][_0x20f0a6(0x2c4)],'data':_0x51f816};this[_0x20f0a6(0x188)](_0x50ddd2);}),this[_0x2289d2(0x354)](this[_0x2289d2(0x26a)][_0x2289d2(0x258)](_0xb75277=>{const _0x582089=_0x2289d2;if(_0xb75277[_0x582089(0x215)]==null)return;const _0x316ef0=_0xb75277[_0x582089(0x215)];if(_0xb75277['id']!==V[_0x582089(0x1f4)]['id']||_0x316ef0[_0x582089(0x276)]!==this[_0x582089(0x143)])return;const _0x1a3afc={'id':'doc.mutation.rich-text-editing','params':_0x316ef0},_0x519c72=this[_0x582089(0x31d)];for(const [_0x3b89f2,_0x284bd7]of _0x519c72){const _0x47034c={'id':_0x582089(0x2d0),'params':{'unitId':this[_0x582089(0x143)],'actions':null,'textRanges':_0x284bd7[_0x582089(0x128)]}},_0x51495d=this[_0x582089(0x148)][_0x582089(0x293)](_0x1a3afc,_0x47034c,!0x1);if(g[_0x582089(0x2b6)](_0x51495d))throw _0x51495d[_0x582089(0x1d5)];_0x519c72[_0x582089(0x219)](_0x3b89f2,{..._0x284bd7,'ranges':_0x51495d[_0x582089(0x2c5)][_0x582089(0x215)][_0x582089(0x122)]});}queueMicrotask(()=>{const _0x4ad8ac=_0x582089;this[_0x4ad8ac(0x1f3)][_0x4ad8ac(0x1a7)](_0x519c72);});})));}[_0x4885bf(0x188)](_0x4d272b){const _0x4751e6=_0x4885bf;var _0x3f2cba,_0x52dd52;const {memberID:_0x42097d,selection:_0x237162}=_0x4d272b[_0x4751e6(0x259)],_0xa691ab=ht(_0x237162),_0x5cf50c=(_0x52dd52=(_0x3f2cba=this[_0x4751e6(0x290)][_0x4751e6(0x300)](this[_0x4751e6(0x143)],_0x42097d))==null?void 0x0:_0x3f2cba['name'])!=null?_0x52dd52:_0x4751e6(0xe5),_0x5a4752={'color':this['_colorAssignService'][_0x4751e6(0x31f)](_0x42097d),'name':_0x5cf50c,'ranges':_0xa691ab},_0x22aa7c=this[_0x4751e6(0x31d)];_0x22aa7c[_0x4751e6(0x219)](_0x42097d,_0x5a4752),this['_cursorInfo$'][_0x4751e6(0x1a7)](_0x22aa7c);}['_onCursorDelete'](_0x448b45){const _0x3fb7ef=_0x4885bf,{memberID:_0x38a2cd}=_0x448b45[_0x3fb7ef(0x259)],_0x2710c3=this[_0x3fb7ef(0x31d)];_0x2710c3[_0x3fb7ef(0x2a1)](_0x38a2cd),this[_0x3fb7ef(0x1f3)][_0x3fb7ef(0x1a7)](_0x2710c3);}[_0x4885bf(0x29e)](){const _0x1404d0=_0x4885bf;var _0x4218d1;if(this['_online']=!0x0,((_0x4218d1=this[_0x1404d0(0x189)][_0x1404d0(0x277)]())==null?void 0x0:_0x4218d1['getUnitId']())!==this[_0x1404d0(0x143)])return;const _0x174633=this['_injector'][_0x1404d0(0x1b8)](V[_0x1404d0(0xe6)])[_0x1404d0(0x263)]();Array[_0x1404d0(0x2cd)](_0x174633)&&_0x174633[_0x1404d0(0x12a)]>0x0&&this['_updateLocalCursor'](_0x174633);}[_0x4885bf(0x27d)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),U(0x3,a[_0x4885bf(0xe0)](Re)),U(0x4,a[_0x4885bf(0xe0)](u[_0x4885bf(0x235)])),U(0x5,a[_0x4885bf(0xe0)](be)),U(0x6,g[_0x4885bf(0x29a)]),U(0x7,a[_0x4885bf(0x2b8)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x4885bf(0xee)],mt=(_0x543ea2,_0xed488b,_0x42ea64,_0x35c8f8)=>{const _0x2dbdfe=_0x4885bf;for(var _0x195f42=_0x35c8f8>0x1?void 0x0:_0x35c8f8?ft(_0xed488b,_0x42ea64):_0xed488b,_0x15cfb4=_0x543ea2[_0x2dbdfe(0x12a)]-0x1,_0x2dbb07;_0x15cfb4>=0x0;_0x15cfb4--)(_0x2dbb07=_0x543ea2[_0x15cfb4])&&(_0x195f42=_0x2dbb07(_0x195f42)||_0x195f42);return _0x195f42;},w=(_0x31a2cb,_0x51e04e)=>(_0x28944e,_0x15cdec)=>_0x51e04e(_0x28944e,_0x15cdec,_0x31a2cb);const vt=0x12c,gt=0x64,Et=()=>{let _0xeb0beb=[],_0x551418=!0x1;return _0x5ef5b7=>{_0xeb0beb['push'](_0x5ef5b7),_0x551418||(_0x551418=!0x0,setTimeout(()=>{const _0xcf7b86=_0x30e5;_0xeb0beb[_0xcf7b86(0x28d)](_0x497c74=>_0x497c74()),_0xeb0beb=[],_0x551418=!0x1;}));};};let ge=class extends a[_0x4885bf(0x1aa)]{constructor(_0x5553a6,_0x12833b,_0x3a108e,_0x33436d,_0x4d6599,_0xc0387b,_0x1ffc48,_0x4d262d){const _0x18a3c1=_0x4885bf;super(),_(this,'_online',!0x1),_(this,_0x18a3c1(0x2a5),!0x1),_(this,_0x18a3c1(0x1f3),new I[(_0x18a3c1(0x2cb))](new Map())),_(this,_0x18a3c1(0x35c),this[_0x18a3c1(0x1f3)]['asObservable']()),_(this,'_roomMembers$',new I[(_0x18a3c1(0x2cb))]([])),_(this,_0x18a3c1(0x10f),this[_0x18a3c1(0x34f)][_0x18a3c1(0x153)](I[_0x18a3c1(0x1cd)](vt))),_(this,_0x18a3c1(0x2df),a[_0x18a3c1(0xf6)]((_0x44a399,_0xa0324e)=>{const _0x5bd71f=_0x18a3c1,_0x1eaac5={'eventID':g[_0x5bd71f(0x2b2)][_0x5bd71f(0x2c4)],'data':{'unitID':this[_0x5bd71f(0x143)],'memberID':this[_0x5bd71f(0x2a3)][_0x5bd71f(0x35f)](),'selection':B[_0x5bd71f(0x2fc)](_0x44a399,_0xa0324e[_0x5bd71f(0xbb)])}};this[_0x5bd71f(0x2a3)]['send'](_0x1eaac5,this['unitID']);},gt)),(this['unitID']=_0x5553a6,this['_session']=_0x12833b,this[_0x18a3c1(0x17e)]=_0x3a108e,this['_colorAssignService']=_0x33436d,this[_0x18a3c1(0x290)]=_0x4d6599,this[_0x18a3c1(0x189)]=_0xc0387b,this[_0x18a3c1(0x26a)]=_0x1ffc48,this[_0x18a3c1(0x2c1)]=_0x4d262d);}get[_0x4885bf(0x31d)](){const _0x124014=_0x4885bf;return this[_0x124014(0x1f3)][_0x124014(0x1cf)]();}get[_0x4885bf(0x98)](){const _0x67a5f0=_0x4885bf;return this['_roomMembers$'][_0x67a5f0(0x1cf)]();}[_0x4885bf(0xcf)](){const _0x175f30=_0x4885bf;super[_0x175f30(0xcf)](),this['_cursorInfo$'][_0x175f30(0x1a7)](new Map()),this[_0x175f30(0x1f3)][_0x175f30(0x90)](),this[_0x175f30(0x34f)]['next']([]),this[_0x175f30(0x34f)]['complete']();}['init'](){const _0x4f399c=_0x4885bf;this[_0x4f399c(0x2a5)]||(this[_0x4f399c(0x2a5)]=!0x0,this[_0x4f399c(0x2a3)][_0x4f399c(0x2e8)][_0x4f399c(0x153)](I['takeUntil'](this[_0x4f399c(0x30f)]))[_0x4f399c(0x22c)](_0x581cb3=>{const _0x2420ba=_0x4f399c;_0x581cb3===u['SessionStatus'][_0x2420ba(0x269)]?this[_0x2420ba(0x29e)]():this['_toggleOffline']();}),this['_session'][_0x4f399c(0x31c)][_0x4f399c(0x153)](I[_0x4f399c(0x268)](this['dispose$']))[_0x4f399c(0x22c)](_0x4996d0=>{const _0x1dce65=_0x4f399c,_0x201269=_0x4996d0['eventID'];_0x201269===g[_0x1dce65(0x2b2)][_0x1dce65(0x2c4)]&&this[_0x1dce65(0x188)](_0x4996d0),_0x201269===g[_0x1dce65(0x2b2)]['USERS_LEAVE']&&this[_0x1dce65(0x8e)](_0x4996d0);}),this[_0x4f399c(0x2ac)](),this['disposeWithMe'](this[_0x4f399c(0x26a)][_0x4f399c(0x258)](_0x3dcc0f=>{const _0x5b2dbd=_0x4f399c;if(this[_0x5b2dbd(0xb8)]&&_0x3dcc0f['id']===v[_0x5b2dbd(0xde)]['id']&&_0x3dcc0f['params'][_0x5b2dbd(0x276)]===this['unitID']){const _0x51e406=_0x3dcc0f[_0x5b2dbd(0x215)];this[_0x5b2dbd(0x2df)](_0x51e406[_0x5b2dbd(0x2ba)],_0x51e406[_0x5b2dbd(0x1df)][0x0]);}})));}['_onCursorUpdate'](_0x16b680){const _0x25a8f9=_0x4885bf;var _0x365ed9,_0x27f4a1;const {memberID:_0x3aeec0,selection:_0x1ede50}=_0x16b680['data'],{sheetName:_0x5b9d73,range:_0x3a9d12}=B[_0x25a8f9(0xeb)](_0x1ede50),_0x31c49d={'name':(_0x27f4a1=(_0x365ed9=this['_memberService']['getMember'](this[_0x25a8f9(0x143)],_0x3aeec0))==null?void 0x0:_0x365ed9[_0x25a8f9(0x30b)])!=null?_0x27f4a1:_0x25a8f9(0xe5),'range':this[_0x25a8f9(0x2dd)](_0x5b9d73,_0x3a9d12),'sheetID':_0x5b9d73,'color':this[_0x25a8f9(0x335)]['assignAColorForMemberID'](_0x3aeec0),'selection':_0x1ede50},_0x56b952=this['cursorInfo'];_0x56b952['set'](_0x3aeec0,_0x31c49d),this[_0x25a8f9(0x1f3)][_0x25a8f9(0x1a7)](_0x56b952);}[_0x4885bf(0x8e)](_0x3cb290){const _0x15d6a0=_0x4885bf,{memberID:_0x67041c}=_0x3cb290['data'],_0x318ddd=this[_0x15d6a0(0x31d)];_0x318ddd[_0x15d6a0(0x2a1)](_0x67041c),this[_0x15d6a0(0x1f3)][_0x15d6a0(0x1a7)](_0x318ddd);}['_getMergeRange'](_0x36edcc,_0x20aa62){const _0x1a333b=_0x4885bf;var _0x276b5d,_0x1bbf44;const _0x54854d=(_0x1bbf44=(_0x276b5d=this['_univerInstanceService'][_0x1a333b(0x18e)](this['unitID']))==null?void 0x0:_0x276b5d[_0x1a333b(0x2e2)](_0x36edcc))==null?void 0x0:_0x1bbf44[_0x1a333b(0x27e)]();return(_0x54854d==null?void 0x0:_0x54854d[_0x1a333b(0x23a)](_0x518983=>a['Rectangle'][_0x1a333b(0x210)](_0x518983,_0x20aa62)))||_0x20aa62;}['_onRefRangeChange'](){const _0x5ddeb9=_0x4885bf,_0x495932=new a[(_0x5ddeb9(0x25b))](),_0xdf1eaa=Et(),_0x15fe4e=()=>{const _0x49321d=_0x5ddeb9;_0x495932['dispose']();const _0x37829=(_0x4c6e5b,_0xfe7fe2,_0x5bce6a,_0x528433)=>{const _0xa0bfc0=_0x30e5;let _0x1caaf1=[];switch(_0x4c6e5b['id']){case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x308)]:{_0x1caaf1=v[_0xa0bfc0(0x129)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)]['DeleteRangeMoveUpCommandId']:{_0x1caaf1=v[_0xa0bfc0(0xe4)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x35e)]:{_0x1caaf1=v[_0xa0bfc0(0x105)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x1fa)]:{_0x1caaf1=v[_0xa0bfc0(0x32e)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x29d)]:{_0x1caaf1=v[_0xa0bfc0(0x212)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId'][_0xa0bfc0(0x271)]:{_0x1caaf1=v['handleInsertRow'](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0xcd)]:{_0x1caaf1=v[_0xa0bfc0(0x229)](_0x4c6e5b,_0x528433);break;}case v[_0xa0bfc0(0x140)][_0xa0bfc0(0x166)]:{_0x1caaf1=v[_0xa0bfc0(0x155)](_0x4c6e5b,_0x528433);break;}case v['EffectRefRangId']['RemoveRowCommandId']:{_0x1caaf1=v[_0xa0bfc0(0x25a)](_0x4c6e5b,_0x528433);break;}}const _0x47e827=v['runRefRangeMutations'](_0x1caaf1,_0x528433),_0x29a6bd=this[_0xa0bfc0(0x31d)]['get'](_0xfe7fe2);if(_0x29a6bd&&_0x47e827){const _0x3f4ffa={..._0x29a6bd,'range':_0x47e827};this[_0xa0bfc0(0x31d)][_0xa0bfc0(0x219)](_0xfe7fe2,_0x3f4ffa),_0xdf1eaa(()=>{const _0x2e61bc=_0xa0bfc0,_0x414a39=this[_0x2e61bc(0x2c1)]['registerRefRange'](_0x47e827,_0x5d3ce1=>(_0x414a39[_0x2e61bc(0xcf)](),_0x37829(_0x5d3ce1,_0xfe7fe2,_0x5bce6a,_0x47e827)));_0x495932[_0x2e61bc(0xf1)](_0x414a39);});}return{'redos':[],'undos':[]};};this[_0x49321d(0x31d)][_0x49321d(0x28d)]((_0x44ab7e,_0x4288e7)=>{const _0x47ffc2=_0x49321d,{range:_0x2baf5f,sheetID:_0x29fd2d}=_0x44ab7e,_0x4180f9=this['_refRangeService'][_0x47ffc2(0x12e)](_0x2baf5f,_0x51ef80=>(_0x4180f9[_0x47ffc2(0xcf)](),_0x37829(_0x51ef80,_0x4288e7,_0x29fd2d,_0x2baf5f)));_0x495932['add'](_0x4180f9);});};this[_0x5ddeb9(0x354)](a['toDisposable'](this[_0x5ddeb9(0x1f3)][_0x5ddeb9(0x22c)](()=>{_0x15fe4e();})));}[_0x4885bf(0x29e)](){const _0x4aff92=_0x4885bf;var _0x3df352,_0x352584;if(this[_0x4aff92(0xb8)]=!0x0,((_0x3df352=this[_0x4aff92(0x189)][_0x4aff92(0x277)]())==null?void 0x0:_0x3df352[_0x4aff92(0x2fb)]())!==this[_0x4aff92(0x143)])return;const _0x5f4745=(_0x352584=this['_injector'][_0x4aff92(0x1b8)](v[_0x4aff92(0xce)])['getCurrentSelections']())==null?void 0x0:_0x352584[0x0],_0x46c605=this['_univerInstanceService'][_0x4aff92(0x1fb)](a[_0x4aff92(0x311)][_0x4aff92(0x28c)])['getActiveSheet']();_0x5f4745&&_0x46c605&&this['_updateLocalCursor'](_0x46c605[_0x4aff92(0xb9)](),_0x5f4745);}[_0x4885bf(0x27d)](){const _0x4fd1e1=_0x4885bf;this[_0x4fd1e1(0xb8)]=!0x1;}};ge=mt([w(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),w(0x3,a[_0x4885bf(0xe0)](Re)),w(0x4,a[_0x4885bf(0xe0)](u['MemberService'])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x4885bf(0x2a2)]),w(0x7,a['Inject'](v[_0x4885bf(0x174)]))],ge);var Ct=Object[_0x4885bf(0xee)],pt=(_0x3ee7d5,_0x291204,_0x316a1c,_0x3a67d6)=>{const _0x412231=_0x4885bf;for(var _0x4c0584=_0x3a67d6>0x1?void 0x0:_0x3a67d6?Ct(_0x291204,_0x316a1c):_0x291204,_0x7969a0=_0x3ee7d5[_0x412231(0x12a)]-0x1,_0x41c397;_0x7969a0>=0x0;_0x7969a0--)(_0x41c397=_0x3ee7d5[_0x7969a0])&&(_0x4c0584=_0x41c397(_0x4c0584)||_0x4c0584);return _0x4c0584;},ce=(_0x3d0aa7,_0x261e55)=>(_0xd92991,_0x3aaf74)=>_0x261e55(_0xd92991,_0x3aaf74,_0x3d0aa7);let F=class extends a[_0x4885bf(0x1aa)]{constructor(_0x545a34,_0x587e98,_0x1dd3b2){const _0x3bb335=_0x4885bf;super(),_(this,_0x3bb335(0x23f),new Map()),_(this,_0x3bb335(0x239),new I[(_0x3bb335(0x207))]()),(this[_0x3bb335(0x189)]=_0x545a34,this[_0x3bb335(0x17e)]=_0x587e98,this[_0x3bb335(0x32a)]=_0x1dd3b2,this[_0x3bb335(0x2a5)]());}[_0x4885bf(0xcf)](){const _0x1fab47=_0x4885bf;super[_0x1fab47(0xcf)](),this[_0x1fab47(0x239)][_0x1fab47(0x90)](),this['_entities']['forEach'](_0x1f15d9=>_0x1f15d9[_0x1fab47(0xcf)]());}[_0x4885bf(0x232)](_0x22d36c){const _0x14e53c=_0x4885bf;return this[_0x14e53c(0x23f)][_0x14e53c(0x11b)](_0x22d36c)?this[_0x14e53c(0x23f)][_0x14e53c(0x1b8)](_0x22d36c)[_0x14e53c(0x35c)]:this['_entityInit$']['pipe'](I[_0x14e53c(0x1db)](_0x393208=>_0x393208[_0x14e53c(0x143)]===_0x22d36c),I[_0x14e53c(0xea)](_0x1b2659=>_0x1b2659[_0x14e53c(0x35c)]));}['_init'](){const _0x1199fd=_0x4885bf;this['_univerInstanceService'][_0x1199fd(0x33d)](a['UniverInstanceType'][_0x1199fd(0x28c)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this['dispose$']))[_0x1199fd(0x22c)](async _0x54ec1f=>{const _0x191484=_0x1199fd,_0x4bae04=_0x54ec1f[_0x191484(0x2fb)](),_0x26be81=await this['_startSheetCollabCursor'](_0x4bae04);this[_0x191484(0x239)][_0x191484(0x1a7)](_0x26be81),this['_entities']['set'](_0x4bae04,_0x26be81);}),this['_univerInstanceService'][_0x1199fd(0x33d)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)])[_0x1199fd(0x153)](I[_0x1199fd(0x268)](this[_0x1199fd(0x30f)]))[_0x1199fd(0x153)](I['filter'](_0x5e8573=>!_0x5e8573[_0x1199fd(0x2fb)]()[_0x1199fd(0x191)]('__')))[_0x1199fd(0x22c)](async _0x2ef073=>{const _0x20f7f9=_0x1199fd,_0x568f54=_0x2ef073[_0x20f7f9(0x2fb)](),_0x4430ca=await this['_startDocCollabCursor'](_0x568f54);this[_0x20f7f9(0x239)][_0x20f7f9(0x1a7)](_0x4430ca),this['_entities'][_0x20f7f9(0x219)](_0x568f54,_0x4430ca);}),I[_0x1199fd(0x1cb)](this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0xf4)]),this[_0x1199fd(0x189)][_0x1199fd(0x13e)](a[_0x1199fd(0x311)][_0x1199fd(0x28c)]))[_0x1199fd(0x153)](I['takeUntil'](this[_0x1199fd(0x30f)]))[_0x1199fd(0x22c)](_0x3cc000=>{const _0x31b871=_0x1199fd,_0x5827f4=_0x3cc000['getUnitId'](),_0xa8acf7=this[_0x31b871(0x23f)][_0x31b871(0x1b8)](_0x5827f4);_0xa8acf7&&(_0xa8acf7[_0x31b871(0xcf)](),this['_entities'][_0x31b871(0x2a1)](_0x5827f4));});}async[_0x4885bf(0x101)](_0x2252b7){const _0x1a55a8=_0x4885bf,_0x4f7c34=await this[_0x1a55a8(0x32a)][_0x1a55a8(0x16a)](_0x2252b7),_0x4e17be=this[_0x1a55a8(0x17e)][_0x1a55a8(0x144)](ge,_0x2252b7,_0x4f7c34);return _0x4e17be['init'](),_0x4e17be;}async[_0x4885bf(0x104)](_0x38531c){const _0x7396ce=_0x4885bf,_0x28c1b9=await this[_0x7396ce(0x32a)][_0x7396ce(0x16a)](_0x38531c),_0x42b1a5=this['_injector']['createInstance'](ve,_0x38531c,_0x28c1b9);return _0x42b1a5[_0x7396ce(0x288)](),_0x42b1a5;}};function _0x7782(){const _0x41cc85=['LICENSE_DISTRO_REJECTED','_getScale','/run/','_taskIds','_getSessionTicket','transformSelections','_range','_initUnhandledRejectionListener','RevisionService','_releaseCalculationLimit','Subject','pluginName','IDocClipboardService','Vector2','stageInfo','text','NodePositionConvertToCursor','ENTITLE_INSUFFICIENT_QUOTA','current','contains','JOIN_ROOM_FAILED','handleInsertRangeMoveRight','onPointerEnter$','_updateCollabCursors','params','arc','0\x200\x2016\x2016','_transformHistoryAndStateStack','set','lineTo','lineno','_syncEditingCollabCursorService','collabCursorState$','getUnhiddenWorksheets','TRANSFORM_CHANGE_OBSERVABLE_TYPE','SetTextSelectionsOperation','NodePositionConvertToRectRange','combineLatest','catch','_cachedData','LOGIN_FAILED','code','getformulaLimitStatusUrl','_assignedColors','handleMoveRange','YUUMI_RATE_OVER_LIMIT','univer-flex\x20univer-items-center','subscribe','_collaborationUIEventService','evenodd','stack','path','REDEMPTION_CODE_HAS_BEEN_CREATED','getCollabCursors$','setStateCache','YUUMI_URL_COL_OUT_OF_RANGE','MemberService','onStarting','_initCommandInterceptor','off-line-icon_clip0_910_343','_entityInit$','find','href','collaboration-client-ui.config','resize','ENTITLE_DUP_SUBSCRIPTION','_entities','getRangePointData','WebBrowserSingleActiveUnitService','limitInfo','search','DocStateChangeManagerService','WECHAT_HAS_BEEN_BOUND','110949luqNvG','_eventUnsubscribe','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_currentUsage','stage','_docStateChangeManagerService','actions','REDEMPTION_USER_NOT_ELIGIBLE','YUUMI_UNABLE_LOAD_URL','_initWindowErrorListener','_setupSubUnitSync','asObservable','_initStatusComponent','UNAUTHENTICATED','_removeCollabCursors','IMessageService','PENDING','Shape','onCommandExecuted','data','handleIRemoveRow','DisposableCollection','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','measureText','endRow','ticket','_textBubble','startRow','PAYMENT_CHANNEL_NOT_SUPPORT','getDocRanges','_ensureSubject','url(#off-line-icon_clip0_910_343)','OTHER_CLIENTS_EDITING','SOCKET_FAILED_RETRY','takeUntil','ONLINE','_commandService','includes','FETCH_MISS','_name','body','currentUsage','font','InsertRowCommandId','ENTITLE_CHAT_LIMIT_EXCEED','useRef','_draw','replaceDocRanges','unitId','getFocusedUnit','SNAPSHOT_HAS_BEEN_REMOVED','_pollingInterval','_docTransformStateCacheService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unit','_toggleOffline','getMergeData','unsubscribe','YUUMI_CONNECTOR_URL_NOT_FOUND','ILocalCacheService','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_uiPartsService','syncEditingCollabCursor','_initResize','UniverCollaborationClientPlugin','init','88MLGKEX','_document','Rect','UNIVER_SHEET','forEach','_memberID','createElement','_memberService','ALREADY_EXISTS','MUTATION','transformMutation','socket$','clearInterval','_initEvent','_collabCursorState$','AUTHORIZE_CODE_ILLEGAL','_saveTaskMap','ITransformService','black','addEventListener','InsertRangeMoveRightCommandId','_toggleOnline','_config','toString','delete','ICommandService','_session','_scheduleHeartbeat','_init','_handleLeaveEvent','endColumn','removeEventListener','getSkeleton','source','RegularPolygon','_onRefRangeChange','height','children','_monkeyPatchLogService','unhandledrejection','addObject','CollaborationEvent','USER_NOT_INVITED_CODE','Plugin','round','isTransformMutationFailure','REDEMPTION_USER_REDEEM_TIMES_EXCEED','IUniverInstanceService','ThemeService','subUnitId','_getSheetObject','SetFormulaCalculationNotificationMutation','popstate','LICENSE_IMPORT_SIZE_EXCEEDED','redoState','totalFormulasToCalculate','_refRangeService','use','registerDependencies','UPDATE_CURSOR','m2Prime','distinctUntilChanged','getConfig','[CollaborationDataLoaderController]','purple.300','shareReplay','BehaviorSubject','clearTimeout','isArray','imageSourceType','entries','doc.mutation.rich-text-editing','labelPosition','_initDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','IRemoteInstanceService','2816744BWWTHH','transformRemoteChangeset','map','EMAIL_VERIFY_CODE_MISMATCH','BuiltInUIPart','url(#on-line-icon_clip0_910_349)','DataLoaderService','SHEET_VIEWPORT_KEY','_getMergeRange','_transformPreviousActiveRange','_updateLocalCursor','univer-mr-2\x20univer-flex\x20univer-text-xl','on-line-icon','getSheetBySheetId','_lastPointer','Loading','_configService','_docTransformSelectionsService','_cursorShapes','sessionStatus$','debug','RECT','url(#$1','_hideTimer','findNodePositionByCharIndex','uni.network.url-service','size','generateRandomId','toRgbString','reconnect','toStringTag','M0\x200H16V16H0z','CONFLICT','green.600','setTimeout','SUCCESS','DATA_SOURCE_TOO_LARGE','collaboration.single-unit.warning','getUnitId','serializeRangeWithSheet','assign','REDEMPTION_CODE_NOT_STARTED','FormulaExecutedStateType','getMember','substring','_context','getCurrentRevOfUnit','column','collab-text-range-','executeCommand','CollaborationSessionService','DeleteRangeMoveLeftCommandId','NOT_FOUND','_scheduleSaving','name','getActiveSheet','CollaborationStatus','whenReady','dispose$','selection','UniverInstanceType','_showGuardMessage','getParam','UNDEFINED','_docTransformIMECacheService','_urlService','saveImage','registerBeforeClose','loadUnit','_checkCalculationAvailable','_cursors','event$','cursorInfo','_docSkeletonManagerService','assignAColorForMemberID','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','invokeId','attrs','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','defs','ISocketService','_sheetSkeletonManagerService','getAncestorScale','CHANGESET_REVISION_CONFILICT','_collabSessionService','\x20at\x20','onLocalMutation','_lastResponseTimestamp','handleInsertRangeMoveDown','_handleEvent','824316oXaSxF','color','_cursor','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','_colorAssignService','_themeService','_applyCommand','getUnitStatus$','activeSheet$','push','APPLY_DUPLICATED','INVALID_ARGUMENT','getTypeOfUnitAdded$','isEditing','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','saveOfflineData','_startCalculationLimit','_renderManagerService','RemoteUniscriptService','getLocalCacheKey','_shapes','REDEMPTION_CODE_INACTIVE','/universer-api/frontend/logs','collabStatus.syncing','getUndoRedoMutationParamsCache','clipPath','CollaborationUIEventService','addObjects','registerComponent','parseInt','_roomMembers$','collabStatus.synced','replaceState','UNRECOGNIZED','_uploadLog','disposeWithMe','WebURLService','functionsExecutedState','CollaborationController','HTTPService','_initUserListener','_hasFormulaInDirtyRanges','restore','cursorInfo$','0\x200\x2017\x2016','InsertColCommandId','getMemberID','type','getUnit','colorChannel1','_onCursorDelete','INVALID_INVITE_CODE','complete','USER_IS_ANONYMOUS','_render','CONNECTOR_DATA_TOO_LARGE','parse','none','throttleTime','registerRenderModule','roomMembers','UniverCollaborationClientUIPlugin','MOBILE_HAS_BEEN_BOUND','focused$','Warning','getRelativeToViewportCoord','LICENSE_EXPORT_SIZE_EXCEEDED','show','_docSkeleton','_revisionService','newValue','onPointerLeave$','SOCKET_FAILED','REDEMPTION_CODE_FULLY_REDEEMED','_colorIndex','_removeClearOtherTimer','IUIPartsService','min','createIdentifier','PERMISSION_DENIED','USER_NOT_FOUND','_getAnchorBounding','OnLineIcon','top','getCellPositionByOffset','key','DocIMEInputManagerService','entityInit$','getCurrent','collabStatus.notCollab','setAlpha','reason','_online','getSheetId','_backgroundColor','range','getActiveRange','ACTIVE_UNIT_EVENT_CHANNEL','_anchor','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Failed','_beforeCloseService','_setupBeforeClosingHandler','#FFF','backgroundColor','_scene','jiqing.500','wsSessionTicketUrl','rgba(255,\x20255,\x20255,\x200.01)','_updateSubUnitFromURLParams','START_CALCULATION','LocaleService','CURRENT_STATUS_CANNOT_OPERATE','MoveRangeCommandId','SheetsSelectionsService','dispose','univerjs-icon\x20univerjs-icon-','_selfUnitIDs','COLORS','xlink:href','_docClipboardService','_unitStatus','_anchorDot','74996FXoKtl','urlChange$','_initCommandExecutedListener','subscribeEvent','message','_color','blue.400','SetSelectionsOperation','string','Inject','pushState','history','Tools','handleDeleteRangeMoveUp','Unknown\x20user','DocSelectionManagerService','_unitOnClients','1em','TEXT_RANGE_LAYER_INDEX','switchMap','deserializeRangeWithSheet','all','startFormulaLimitUrl','getOwnPropertyDescriptor','APPLY_REJECT','_localCacheService','add','origin','sheetID','UNIVER_DOC','collab-rect-range-','debounce','Error','INTERNAL_ERROR','white','APPLY_REVISION_CONFILICT','_maxFormulaLimit','tag','ENTITLE_CAN_NOT_BUY_LOWER_OTP','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','some','_handleHeartbeatEvent','_startSheetCollabCursor','application/json','collaboration.closeRoom','_startDocCollabCursor','handleInsertCol','IURLService','session.collaboration-timeout','LOCAL_CACHE_INTERVAL_KEY','getColor','CanceledError','formula.calculation.started','transformStateCache','SessionStatus','getItem','roomMembers$','mutations','subunit','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INVITE_CODE_HAS_BEEN_UES','SheetCollabCursorShape','now','fillText','isTransformMutationsWithChangesetSuccess','41983623AFvQts','_setFormulaLimitStatus','[Unhandled\x20Rejection]:\x20','has','SYNCED','_handleJoinEvent','380wIFfuI','ENTITLE_REPORT_LIMIT_EXCEED','getVpScrollXYInfoByPosToVp','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','textRanges','2974559aVElHo','session.will-retry','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_hovered','_checkAndWaitForCalculationPermission','ranges','handleDeleteRangeMoveLeft','length','filename','INotificationService','_collabCursorController','registerRefRange','closePath','YUUMI_NO_CUBOID_FOR_QUESTION','ENSURE_SNAPSHOT_EXECUTION','width','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_notificationService','fillRule','_collaborationController','_drawRectRange','disableLocalCache','_heartbeatTimer','defIds','createSocket','result','colno','getTypeOfUnitDisposed$','enableLocalCache','EffectRefRangId','CollaborationUIEventId','_registerRenderDependencies','unitID','createInstance','_clearPolling','join','DocSkeletonManagerService','_transformService','deepClone','collab-client.tooltip.reconnect','OFFLINE','_dataLoaderService','_status$','forwardRef','bind','AWAITING_WITH_PENDING','DEFAULT_WS_SESSION_TICKET_URL','exhaustSavingTask','pipe','INVITE_CODE_REQUIRED','handleIRemoveCol','SetFormulaCalculationStartMutation','BrowserCollaborationSocketService','ERROR_AGAIN','_refreshCollabCursors','executionId','fill','replace','_disabled','from','ILogService','fillStyle','CollaborationDataLoaderController','/universer-api/license/formula/limit/start','setActiveRange','useObservable','/universer-api/license/formula/limit/status','RemoveColCommandId','max','IBeforeCloseService','collabStatus.offline','requireSession','m1Prime','_transformUndoRedoStack','NO_OTHER_CLIENTS_EDITING','_scheduleClearOtherTimer','currentSkeleton$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','runId','[LogService\x20Error]:\x20','drawWith','RefRangeService','SUBMIT_CHANGESET_TIMEOUT','SNAPSHOT_INVALID_SNAPSHOT','beginPath','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_handleHover','currentTheme$','startColumn','post','_saveCache','_injector','searchParams','then','getStateCache','currentColor','eventID','addClipboardHook','setParam','DependentOn','memberID','_onCursorUpdate','_univerInstanceService','FormulaExecuteStageType','getSheetObject','isActive','beforeCommandExecuted','getUniverSheetInstance','unshift','_docSyncEditingCollabCursorService','startsWith','stringify','location','values','_httpService','_localStorageService','DesktopCollaborationStatusDisplayController','_drawTextRange','Injector','_messageService','UniverIcon','_initEntityListener','UnitStatus','svg','with','removeParam','_id','_getSaveTimeout','defineProperty','IRenderManagerService','getCoordByCell','idSuffix','next','TEXT','maxFormulaLimit','RxDisposable','CollaborationSocketService','_localeService','APPLY_PERMISSION_DENIED','_send','getOffsetConfig','setItem','row','Disposable','div','off-line-icon','_getFormulaLimitStatus','YUUMI_AI_RUN_FAILED','_labelPosition','get','displayName','LOGIN_TOKEN_PROCESSING_FAILED','AWAITING','docStateChange$','10753020aSyWLD','onMouseMove','ColorKit','jsx','_clearOtherTimers','TOO_MANY_REQUESTS','setShapeProps','getRenderById','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','getColorFromTheme','isFormulaString','disposeUnit','SetDocZoomRatioOperation','merge','_registerDependencies','debounceTime','split','getValue','_initStatusListener','REDEMPTION_INVALID_CODE','engine','translate(.97)','skeleton','error','YUUMI_ASYNCIO_CANCELLED','bottom','MessageType','save','_drawAnchor','filter','undoState','override','enableFrontendLog','selections','transformByState','_hover','loadOfflineData','collabStatus.fetchMiss','fromEventSubject','fromEvent','/universer-api/license/formula/limit/done','editingUnit','_imageIoService','ENTITLE_NEED_BILLING_ADDRESS','_createSocketURL','dirtyRanges','onRendered','_logService','EMAIL_HAS_BEEN_BOUND','session.connection-failed','mapTo','symbol','IConfigService','_cursorInfo$','RichTextEditingMutation','mask','...','DOC_RANGE_TYPE','transformMutationsWithChangeset','_updateURLWithCurrentState','InsertRangeMoveDownCommandId','getCurrentUnitForType','OTHER_CLIENT_EDITING'];_0x7782=function(){return _0x41cc85;};return _0x7782();}F=pt([ce(0x0,a[_0x4885bf(0x2b8)]),ce(0x1,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),ce(0x2,a['Inject'](u[_0x4885bf(0x307)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x27355b,_0x35b216){const _0x3773f8=_0x4885bf;let {radius:_0x20860b,width:_0xd7a10d,height:_0x524d39}=_0x35b216;_0x20860b=_0x20860b!=null?_0x20860b:0x0,_0xd7a10d=_0xd7a10d!=null?_0xd7a10d:0x1e,_0x524d39=_0x524d39!=null?_0x524d39:0x1e;let _0x5193c7=0x0,_0x1a96c4=0x0,_0x5fd8a1=0x0;_0x5193c7=_0x1a96c4=_0x5fd8a1=Math[_0x3773f8(0xa9)](_0x20860b,_0xd7a10d/0x2,_0x524d39/0x2),_0x27355b[_0x3773f8(0x177)](),_0x27355b['moveTo'](_0x5193c7,0x0),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d-_0x1a96c4,0x0),_0x27355b[_0x3773f8(0x216)](_0xd7a10d-_0x1a96c4,_0x1a96c4,_0x1a96c4,Math['PI']*0x3/0x2,0x0,!0x1),_0x27355b[_0x3773f8(0x21a)](_0xd7a10d,_0x524d39-_0x5fd8a1),_0x27355b['arc'](_0xd7a10d-_0x5fd8a1,_0x524d39-_0x5fd8a1,_0x5fd8a1,0x0,Math['PI']/0x2,!0x1),_0x27355b['lineTo'](0x0,_0x524d39),_0x27355b['lineTo'](0x0,_0x5193c7),_0x27355b[_0x3773f8(0x216)](_0x5193c7,_0x5193c7,_0x5193c7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x27355b[_0x3773f8(0x12f)](),_0x35b216[_0x3773f8(0x15b)]&&(_0x27355b[_0x3773f8(0x1d9)](),_0x27355b[_0x3773f8(0x160)]=_0x35b216[_0x3773f8(0x15b)],_0x35b216[_0x3773f8(0x135)]===_0x3773f8(0x22e)?_0x27355b[_0x3773f8(0x15b)](_0x3773f8(0x22e)):_0x27355b[_0x3773f8(0x15b)](),_0x27355b['restore']());}class re extends C[_0x4885bf(0x257)]{constructor(_0x57f920,_0x115368){const _0x558165=_0x4885bf;super(_0x57f920,_0x115368),_(this,'color'),_(this,_0x558165(0x20c)),(this[_0x558165(0x331)]=_0x115368==null?void 0x0:_0x115368[_0x558165(0x331)],this['text']=_0x115368==null?void 0x0:_0x115368[_0x558165(0x20c)]);}static['drawWith'](_0x2aa97e,_0x131c48){const _0x1fbe93=_0x4885bf,{text:_0x272fad,color:_0x1afdb6}=_0x131c48;_0x2aa97e[_0x1fbe93(0x1d9)](),_0x2aa97e[_0x1fbe93(0x270)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x32c5d6=_0x2aa97e[_0x1fbe93(0x25d)](_0x272fad)['width'],_0x3e6ffc=Math[_0x1fbe93(0xa9)](_0x32c5d6+0x2*le,Ue);Ot(_0x2aa97e,{'height':X,'radius':0x4,'width':_0x3e6ffc,'fill':_0x1afdb6}),_0x2aa97e[_0x1fbe93(0x160)]=_0x1fbe93(0xc3);const _0x55adb2=le,_0x3bb0a3=X-Tt,_0x40291d=Ue-0x2*le;if(_0x32c5d6>_0x40291d){let _0x128a43='',_0x22a269=0x0;for(const _0x3eabe5 of _0x272fad){const _0xe9751b=_0x2aa97e[_0x1fbe93(0x25d)](_0x3eabe5)[_0x1fbe93(0x132)];if(_0x22a269+_0xe9751b<=_0x40291d-_0x2aa97e[_0x1fbe93(0x25d)](_0x1fbe93(0x1f6))[_0x1fbe93(0x132)])_0x128a43+=_0x3eabe5,_0x22a269+=_0xe9751b;else{_0x128a43+=_0x1fbe93(0x1f6);break;}}_0x2aa97e[_0x1fbe93(0x116)](_0x128a43,_0x55adb2,_0x3bb0a3);}else _0x2aa97e['fillText'](_0x272fad,_0x55adb2,_0x3bb0a3);_0x2aa97e[_0x1fbe93(0x35b)]();}[_0x4885bf(0x274)](_0xf4f1d7){const _0x5aa5f1=_0x4885bf;re[_0x5aa5f1(0x173)](_0xf4f1d7,this);}}const _e='collab-text-anchor-',Rt=_0x4885bf(0x305),bt=_0x4885bf(0xf5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4885bf(0xc8);class Le{constructor(_0x229d11,_0x5d03c4,_0x2e5f93,_0x27d07f){const _0x34fef1=_0x4885bf;_(this,'_shapes',[]),_(this,_0x34fef1(0xbe),null),_(this,_0x34fef1(0x260),null),_(this,'_anchorDot',null),_(this,_0x34fef1(0x2ec),null),_(this,_0x34fef1(0x247),null),(this[_0x34fef1(0x332)]=_0x229d11,this[_0x34fef1(0xc5)]=_0x5d03c4,this[_0x34fef1(0xa0)]=_0x2e5f93,this[_0x34fef1(0x28a)]=_0x27d07f,this[_0x34fef1(0x92)]());}set[_0x4885bf(0x1e1)](_0x341e68){const _0x41e0b8=_0x4885bf;_0x341e68?(this[_0x41e0b8(0xd6)]&&this[_0x41e0b8(0xd6)]['hide'](),this[_0x41e0b8(0x260)]&&this[_0x41e0b8(0x260)][_0x41e0b8(0x9f)]()):(this['_anchorDot']&&this['_anchorDot'][_0x41e0b8(0x9f)](),this['_textBubble']&&this[_0x41e0b8(0x260)]['hide']());}[_0x4885bf(0xcf)](){const _0x192eaa=_0x4885bf;for(const _0x5085c1 of this['_shapes'])_0x5085c1[_0x192eaa(0xcf)]();this['_textBubble']&&this[_0x192eaa(0x260)][_0x192eaa(0xcf)](),this['_anchorDot']&&this['_anchorDot'][_0x192eaa(0xcf)](),this[_0x192eaa(0xbe)]&&this[_0x192eaa(0xbe)][_0x192eaa(0xcf)](),this[_0x192eaa(0x247)]&&this[_0x192eaa(0x247)]();}[_0x4885bf(0x92)](){const _0x26bb59=_0x4885bf;var _0x42282d;const {_docSkeleton:_0x3c87d5,_document:_0x2686e4}=this,{color:_0x22881d,name:_0x121260,ranges:_0x315594}=this[_0x26bb59(0x332)],_0x297239=_0x2686e4[_0x26bb59(0x1af)](),{docsLeft:_0xf908d,docsTop:_0x22c484}=_0x297239,_0x32d1cd=new p[(_0x26bb59(0x20d))](_0x297239,_0x3c87d5);for(const {startOffset:_0x2c5c5d,endOffset:_0x28417f,rangeType:_0x58f548,segmentId:_0x124a5c,segmentPage:_0x2d7d0f,collapsed:_0x2127cd,isActive:_0x2a670a}of _0x315594){const _0x5265f6=_0x3c87d5['findNodePositionByCharIndex'](_0x2c5c5d,!0x0,_0x124a5c,_0x2d7d0f);let _0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f,!0x0,_0x124a5c,_0x2d7d0f);if(_0x13f2fe==null&&(_0x13f2fe=_0x3c87d5[_0x26bb59(0x2ed)](_0x28417f-0x1,!0x1,_0x124a5c,_0x2d7d0f)),_0x2a670a){const {contentBoxPointGroup:_0x37e876}=_0x32d1cd[_0x26bb59(0x240)](_0x13f2fe,_0x13f2fe);if(_0x37e876[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x1da)](_0x22881d,_0x37e876,_0xf908d,_0x22c484,_0x121260),this[_0x26bb59(0x247)]=this[_0x26bb59(0x179)]();}if(_0x5265f6&&_0x13f2fe){if(_0x58f548===a['DOC_RANGE_TYPE'][_0x26bb59(0x2ea)]){const _0x4e844c=new p[(_0x26bb59(0x221))](_0x297239,_0x3c87d5),{pointGroup:_0x274cad}=(_0x42282d=_0x4e844c[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe))!=null?_0x42282d:{};if(_0x274cad==null||_0x274cad['length']===0x0)continue;this['_drawRectRange'](_0x22881d,_0x274cad,_0xf908d,_0x22c484);}else{if(!_0x2127cd){const {borderBoxPointGroup:_0xa574d3}=_0x32d1cd[_0x26bb59(0x240)](_0x5265f6,_0x13f2fe);if(_0xa574d3[_0x26bb59(0x12a)]===0x0)continue;this[_0x26bb59(0x198)](_0x22881d,_0xa574d3,_0xf908d,_0x22c484);}}}}}[_0x4885bf(0x1da)](_0x5c9c67,_0x16ee81,_0x3f260f,_0x4aa023,_0x3b18dd){const _0x5a74cd=_0x4885bf,_0x52dbc8=this[_0x5a74cd(0xad)](_0x16ee81),{left:_0x4436b5,top:_0x5c295a,height:_0x1f7e4a}=_0x52dbc8,_0x41a59b=this[_0x5a74cd(0x1fe)](),_0x28f708=Nt/_0x41a59b,_0x13e6f1=new C[(_0x5a74cd(0x28b))](_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023,'height':_0x1f7e4a,'width':Dt,'fill':_0x5c9c67||C[_0x5a74cd(0x109)](a[_0x5a74cd(0xd2)][_0x5a74cd(0x29b)],0x0),'strokeWidth':_0x28f708,'stroke':Ut,'evented':!0x0});this[_0x5a74cd(0xbe)]=_0x13e6f1,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x13e6f1,p[_0x5a74cd(0xe9)]);const _0x1520a0=new C[(_0x5a74cd(0x28b))](_e+a['generateRandomId'](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-he/0x2,'height':he,'width':he,'fill':_0x5c9c67||C['getColor'](a[_0x5a74cd(0xd2)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5c9c67||C[_0x5a74cd(0x109)](a['COLORS'][_0x5a74cd(0x29b)],0x0),'evented':!0x1});this[_0x5a74cd(0xd6)]=_0x1520a0,this[_0x5a74cd(0xc5)]['addObject'](_0x1520a0,p[_0x5a74cd(0xe9)]);const _0x256d15=new re(_e+a[_0x5a74cd(0x2f0)](H),{'left':_0x4436b5+_0x3f260f-_0x28f708,'top':_0x5c295a+_0x4aa023-X,'text':_0x3b18dd,'color':_0x5c9c67});this[_0x5a74cd(0x260)]=_0x256d15,this[_0x5a74cd(0xc5)][_0x5a74cd(0x2b1)](_0x256d15,p[_0x5a74cd(0xe9)]),this[_0x5a74cd(0x1e1)]=!0x1;}[_0x4885bf(0x179)](){const _0x50c41d=_0x4885bf,_0x589d1e=this['_anchor'][_0x50c41d(0x213)][_0x50c41d(0xda)](()=>{const _0x4e9bdd=_0x50c41d;this[_0x4e9bdd(0x1e1)]=!0x0;}),_0x272825=this['_anchor'][_0x50c41d(0xa3)][_0x50c41d(0xda)](()=>{const _0x1a1d16=_0x50c41d;this[_0x1a1d16(0x2ec)]&&clearTimeout(this['_hideTimer']),this[_0x1a1d16(0x2ec)]=setTimeout(()=>{const _0xe8c776=_0x1a1d16;this[_0xe8c776(0x1e1)]=!0x1;},0x7d0);});return()=>{const _0x1b938c=_0x50c41d;_0x589d1e[_0x1b938c(0x27f)](),_0x272825[_0x1b938c(0x27f)]();};}[_0x4885bf(0x198)](_0xa0540,_0x9d10fe,_0x520cab,_0x1cbd26){const _0x15c36d=_0x4885bf,_0x32a4ed=new a[(_0x15c36d(0x1bf))](_0xa0540)[_0x15c36d(0xb6)](0.2)[_0x15c36d(0x2f1)](),_0x413588=new C[(_0x15c36d(0x2ab))](Rt+a[_0x15c36d(0x2f0)](H),{'pointsGroup':_0x9d10fe,'fill':_0x32a4ed||C[_0x15c36d(0x109)](a[_0x15c36d(0xd2)][_0x15c36d(0x29b)],0.2),'left':_0x520cab,'top':_0x1cbd26,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15c36d(0x345)]['push'](_0x413588),this[_0x15c36d(0xc5)]['addObject'](_0x413588,p['TEXT_RANGE_LAYER_INDEX']);}[_0x4885bf(0x137)](_0x2a7b5d,_0x563cf2,_0x1f9ec4,_0x5d950a){const _0x1fc037=_0x4885bf,_0x11f728=new a[(_0x1fc037(0x1bf))](_0x2a7b5d)['setAlpha'](0.2)[_0x1fc037(0x2f1)](),_0x25532b=new C['RegularPolygon'](bt+a[_0x1fc037(0x2f0)](H),{'pointsGroup':_0x563cf2,'fill':_0x11f728||C[_0x1fc037(0x109)](a['COLORS'][_0x1fc037(0x29b)],0.2),'left':_0x1f9ec4,'top':_0x5d950a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1fc037(0x33a)](_0x25532b),this['_scene'][_0x1fc037(0x2b1)](_0x25532b,p[_0x1fc037(0xe9)]);}[_0x4885bf(0xad)](_0x469f92){const _0x4b8cbf=_0x469f92[0x0],_0x555fe6=_0x4b8cbf[0x0],_0x12669d=_0x4b8cbf[0x2],{x:_0xb4cb24,y:_0x47f795}=_0x555fe6,{x:_0x135894,y:_0x1635cb}=_0x12669d;return{'left':_0xb4cb24,'top':_0x47f795,'width':_0x135894-_0xb4cb24,'height':_0x1635cb-_0x47f795};}['_getScale'](){const _0xa3cd24=_0x4885bf,{scaleX:_0x3a2a3e,scaleY:_0x579335}=this[_0xa3cd24(0xc5)][_0xa3cd24(0x328)]();return Math[_0xa3cd24(0x167)](_0x3a2a3e,_0x579335);}}var Lt=Object[_0x4885bf(0xee)],Mt=(_0x2c268b,_0x5303dc,_0x4169ae,_0x47c554)=>{const _0x328503=_0x4885bf;for(var _0x211839=_0x47c554>0x1?void 0x0:_0x47c554?Lt(_0x5303dc,_0x4169ae):_0x5303dc,_0x565326=_0x2c268b[_0x328503(0x12a)]-0x1,_0x214e08;_0x565326>=0x0;_0x565326--)(_0x214e08=_0x2c268b[_0x565326])&&(_0x211839=_0x214e08(_0x211839)||_0x211839);return _0x211839;},q=(_0x22823c,_0x12abfa)=>(_0x5bd6d3,_0x11f832)=>_0x12abfa(_0x5bd6d3,_0x11f832,_0x22823c);let Ee=class extends a[_0x4885bf(0x1aa)]{constructor(_0x15e321,_0x4516df,_0x5e39de,_0x554514,_0x1ce664){const _0x262ca1=_0x4885bf;super(),_(this,'_cursorShapes',[]),_(this,_0x262ca1(0x31b),[]),(this[_0x262ca1(0x302)]=_0x15e321,this[_0x262ca1(0x31e)]=_0x4516df,this[_0x262ca1(0x12d)]=_0x5e39de,this['_commandService']=_0x554514,this[_0x262ca1(0x336)]=_0x1ce664,this[_0x262ca1(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3614d0=_0x4885bf,_0x588e26=this[_0x3614d0(0x302)][_0x3614d0(0x276)],_0x1efded=this[_0x3614d0(0x31e)];this[_0x3614d0(0x354)](I[_0x3614d0(0x222)]([this[_0x3614d0(0x12d)][_0x3614d0(0x232)](_0x588e26),this[_0x3614d0(0x336)][_0x3614d0(0x17a)]])[_0x3614d0(0x153)]($[_0x3614d0(0x2d7)](([_0x7abc8b,_0x541ade])=>({'skeleton':_0x1efded[_0x3614d0(0x2a9)](),'cursors':[..._0x7abc8b[_0x3614d0(0x194)]()]['flatMap'](_0xa2bf39=>({..._0xa2bf39,'color':this[_0x3614d0(0x336)][_0x3614d0(0x1c7)](_0xa2bf39[_0x3614d0(0x331)])}))})))[_0x3614d0(0x22c)](_0xbf3028=>{const _0x2b0fd3=_0x3614d0;if(this[_0x2b0fd3(0x254)](),_0xbf3028){const {skeleton:_0x1b092a,cursors:_0x32dde2}=_0xbf3028;this[_0x2b0fd3(0x214)](_0x1b092a,_0x32dde2);}})),this[_0x3614d0(0x286)](),this[_0x3614d0(0xd9)]();}[_0x4885bf(0x214)](_0x26e487,_0x26a54d){const _0x11197e=_0x4885bf,{scene:_0x406a99,mainComponent:_0x19b373}=this[_0x11197e(0x302)],_0x201b20=_0x26a54d[_0x11197e(0x2d7)](_0x5f4db5=>new Le(_0x5f4db5,_0x406a99,_0x26e487,_0x19b373));this[_0x11197e(0x2e7)]=_0x201b20,this[_0x11197e(0x31b)]=_0x26a54d;}[_0x4885bf(0x159)](){const _0x153396=_0x4885bf;this[_0x153396(0x254)]();const {scene:_0x59ae6d,mainComponent:_0x148c39}=this[_0x153396(0x302)],_0x4d68a8=this[_0x153396(0x31e)][_0x153396(0x2a9)](),_0x7e49f4=this[_0x153396(0x31b)][_0x153396(0x2d7)](_0x59c1b4=>new Le(_0x59c1b4,_0x59ae6d,_0x4d68a8,_0x148c39));this[_0x153396(0x2e7)]=_0x7e49f4;}[_0x4885bf(0x254)](){const _0x395671=_0x4885bf;this[_0x395671(0x2e7)][_0x395671(0x28d)](_0x2b4877=>_0x2b4877[_0x395671(0xcf)]()),this[_0x395671(0x2e7)]=[];}[_0x4885bf(0xd9)](){const _0x4c9a1e=_0x4885bf,_0x1ddeea=[p[_0x4c9a1e(0x1ca)]['id']];this[_0x4c9a1e(0x354)](this[_0x4c9a1e(0x26a)][_0x4c9a1e(0x258)](_0x1f8579=>{const _0x52b3f9=_0x4c9a1e;_0x1ddeea[_0x52b3f9(0x26b)](_0x1f8579['id'])&&_0x1f8579['params'][_0x52b3f9(0x276)]===this[_0x52b3f9(0x302)]['unitId']&&this[_0x52b3f9(0x159)]();}));}[_0x4885bf(0x286)](){const _0x2d883b=_0x4885bf;this[_0x2d883b(0x354)](a[_0x2d883b(0x1e4)](this[_0x2d883b(0x302)][_0x2d883b(0x1d2)]['onTransformChange$'])[_0x2d883b(0x153)]($['filter'](_0x4fceaf=>_0x4fceaf['type']===C[_0x2d883b(0x21f)][_0x2d883b(0x23d)]),$[_0x2d883b(0x96)](0x10))['subscribe'](()=>{const _0x18f09f=_0x2d883b;this[_0x18f09f(0x159)]();}));}};Ee=Mt([q(0x1,a[_0x4885bf(0xe0)](V[_0x4885bf(0x147)])),q(0x2,a['Inject'](F)),q(0x3,a[_0x4885bf(0x2a2)]),q(0x4,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4885bf(0x257)]{constructor(_0x15b957,_0x4458b8){const _0x1659c5=_0x4885bf;super(_0x15b957,_0x4458b8),_(this,_0x1659c5(0xdc)),_(this,_0x1659c5(0x126),!0x1),_(this,_0x1659c5(0x203)),_(this,_0x1659c5(0x26d),''),_(this,_0x1659c5(0x1b7),_0x1659c5(0xaf)),_(this,_0x1659c5(0xba)),(_0x4458b8&&this[_0x1659c5(0x1c3)](_0x4458b8),this[_0x1659c5(0x213)][_0x1659c5(0xda)](()=>this[_0x1659c5(0x1c3)]({'hovered':!0x0})),this[_0x1659c5(0xa3)][_0x1659c5(0xda)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4885bf(0x1c3)](_0x426870){const _0x58f34b=_0x4885bf;var _0x3b21dd,_0x2cd4b8,_0xc6fb43,_0x41f1ce,_0xfb5951,_0x75ac33;this[_0x58f34b(0xdc)]=(_0x3b21dd=_0x426870[_0x58f34b(0x331)])!=null?_0x3b21dd:this[_0x58f34b(0xdc)],this[_0x58f34b(0x126)]=(_0x2cd4b8=_0x426870[_0x58f34b(0x1c6)])!=null?_0x2cd4b8:this[_0x58f34b(0x126)],this[_0x58f34b(0x203)]=(_0xc6fb43=_0x426870['range'])!=null?_0xc6fb43:this[_0x58f34b(0x203)],this[_0x58f34b(0x26d)]=(_0x41f1ce=_0x426870[_0x58f34b(0x30b)])!=null?_0x41f1ce:this[_0x58f34b(0x26d)],this[_0x58f34b(0x1b7)]=(_0xfb5951=_0x426870[_0x58f34b(0x2d1)])!=null?_0xfb5951:this[_0x58f34b(0x1b7)],this[_0x58f34b(0xba)]=(_0x75ac33=_0x426870[_0x58f34b(0xc4)])!=null?_0x75ac33:this[_0x58f34b(0xba)],this[_0x58f34b(0x1e0)]({'width':_0x426870[_0x58f34b(0x132)],'height':_0x426870[_0x58f34b(0x2ad)]});}['onMouseMove'](_0x5e773b){const _0x1febe9=_0x4885bf,{row:_0x44e591,column:_0x31e7e6}=_0x5e773b;if(_0x44e591>=this[_0x1febe9(0x203)]['startRow']&&_0x44e591<=this[_0x1febe9(0x203)][_0x1febe9(0x25e)]&&_0x31e7e6>=this['_range'][_0x1febe9(0x17b)]&&_0x31e7e6<=this[_0x1febe9(0x203)][_0x1febe9(0x2a7)]){this[_0x1febe9(0x1c3)]({'hovered':!0x0});return;}this[_0x1febe9(0x1c3)]({'hovered':!0x1});}['triggerDblclick'](_0x4c06b4){return!0x1;}[_0x4885bf(0x274)](_0xae37e9){const _0x12138c=_0x4885bf;C[_0x12138c(0x28b)]['drawWith'](_0xae37e9,{'width':this[_0x12138c(0x132)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x12138c(0xdc)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x12138c(0x126)]&&(_0xae37e9[_0x12138c(0x1d9)](),_0xae37e9['transform'](0x1,0x0,0x0,0x1,this[_0x12138c(0x132)],this[_0x12138c(0x1b7)]===_0x12138c(0x1d7)?0x0:-X),re[_0x12138c(0x173)](_0xae37e9,{'text':this[_0x12138c(0x26d)],'color':this[_0x12138c(0xdc)]}),_0xae37e9[_0x12138c(0x35b)]());}}var wt=Object[_0x4885bf(0xee)],yt=(_0x21de19,_0x1f8ecc,_0x122ae3,_0x11456a)=>{const _0x54d335=_0x4885bf;for(var _0x244630=_0x11456a>0x1?void 0x0:_0x11456a?wt(_0x1f8ecc,_0x122ae3):_0x1f8ecc,_0x238890=_0x21de19[_0x54d335(0x12a)]-0x1,_0x4ec455;_0x238890>=0x0;_0x238890--)(_0x4ec455=_0x21de19[_0x238890])&&(_0x244630=_0x4ec455(_0x244630)||_0x244630);return _0x244630;},ue=(_0x8e9d25,_0x21e8d0)=>(_0x6db396,_0x15d778)=>_0x21e8d0(_0x6db396,_0x15d778,_0x8e9d25);const $t=0x1389;let Ce=class extends a[_0x4885bf(0x1aa)]{constructor(_0x127c2f,_0x335159,_0x537926,_0x4de698){const _0x5f0507=_0x4885bf;super(),_(this,_0x5f0507(0x31b),new Set()),_(this,_0x5f0507(0x2e3),null),(this[_0x5f0507(0x302)]=_0x127c2f,this[_0x5f0507(0x327)]=_0x335159,this[_0x5f0507(0x12d)]=_0x537926,this[_0x5f0507(0x336)]=_0x4de698,this[_0x5f0507(0x2a5)]());}['_init'](){const _0x459be0=_0x4885bf;this[_0x459be0(0x327)][_0x459be0(0x16f)][_0x459be0(0x153)]($[_0x459be0(0x268)](this[_0x459be0(0x30f)]),$[_0x459be0(0xea)](_0xf62b16=>{const _0x51b9bf=_0x459be0;if(_0xf62b16){const _0x1c8a44=_0xf62b16['sheetId'];return I[_0x51b9bf(0x222)](this[_0x51b9bf(0x12d)][_0x51b9bf(0x232)](this['_context'][_0x51b9bf(0x276)]),this[_0x51b9bf(0x336)]['currentTheme$'])['pipe']($[_0x51b9bf(0x2d7)](([_0x1dea43,_0x2dfa99])=>{const _0x392840=new Map();return _0x1dea43['forEach']((_0x4c4e28,_0x767a86)=>{const _0x548aec=_0x30e5;if(_0x4c4e28[_0x548aec(0xf3)]===_0x1c8a44){const _0x4a6010={..._0x4c4e28};_0x4a6010['color']=this[_0x548aec(0x336)][_0x548aec(0x1c7)](_0x4c4e28[_0x548aec(0x331)]),_0x392840[_0x548aec(0x219)](_0x767a86,_0x4a6010);}}),{'skeleton':_0xf62b16,'cursors':_0x392840};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5079ac,cursors:_0x1e8ac2})=>{const _0x10600a=_0x459be0;this['_removeCollabCursors'](),_0x5079ac&&this[_0x10600a(0x214)](_0x5079ac,_0x1e8ac2);}),this[_0x459be0(0x327)][_0x459be0(0x16f)]['subscribe'](_0x41f0c4=>{const _0x51c058=_0x459be0;if(_0x41f0c4==null)return;const {skeleton:_0x3560e8}=_0x41f0c4,{scene:_0x13975b}=this[_0x51c058(0x302)];_0x13975b['onPointerMove$']['subscribeEvent'](a[_0x51c058(0xf6)](_0x1935a8=>{const _0x1d3efe=_0x51c058;var _0x5a105a,_0x208914;const {offsetX:_0x5f467d,offsetY:_0x458165}=_0x1935a8,{x:_0x219656,y:_0x420aba}=_0x13975b[_0x1d3efe(0x9d)](C[_0x1d3efe(0x20a)]['FromArray']([_0x5f467d,_0x458165])),{scaleX:_0x3f9cd8,scaleY:_0x17a834}=_0x13975b[_0x1d3efe(0x328)](),_0x343934=_0x13975b['getViewport'](C[_0x1d3efe(0x2dc)]['VIEW_MAIN']),_0x120588=_0x13975b[_0x1d3efe(0x120)](C[_0x1d3efe(0x20a)]['FromArray']([_0x219656,_0x420aba]),_0x343934),_0x7e3ae1=_0x3560e8[_0x1d3efe(0xb0)](_0x5f467d,_0x458165,_0x3f9cd8,_0x17a834,_0x120588);((_0x5a105a=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x5a105a[_0x1d3efe(0x304)])===_0x7e3ae1['column']&&((_0x208914=this[_0x1d3efe(0x2e3)])==null?void 0x0:_0x208914[_0x1d3efe(0x1b1)])===_0x7e3ae1[_0x1d3efe(0x1b1)]||this[_0x1d3efe(0x31b)][_0x1d3efe(0x28d)](_0x4ae97=>{const _0x42b17b=_0x1d3efe;_0x4ae97[_0x42b17b(0x1be)](_0x7e3ae1);});},0x64));});}[_0x4885bf(0x214)](_0x11425b,_0x380f85){const _0x5e6446=_0x4885bf;var _0x4bc2bc;const _0xae843a=(_0x4bc2bc=this[_0x5e6446(0x327)][_0x5e6446(0xb4)]())==null?void 0x0:_0x4bc2bc[_0x5e6446(0x1d4)];if(!_0xae843a)return;const _0x344803=this[_0x5e6446(0x2bb)]();if(!_0x344803)return;this[_0x5e6446(0x31b)][_0x5e6446(0x28d)](_0x1f5c05=>{_0x1f5c05['makeDirty']();});const {scene:_0xf211e7}=_0x344803,_0x522b27=xt(Array['from'](_0x380f85[_0x5e6446(0x194)]()))[_0x5e6446(0x2d7)](_0x5f00b0=>{const _0x5b8088=_0x5e6446,{color:_0x42f83a,range:_0x1738cc,name:_0x2c8f47,selection:_0x137cef,sheetID:_0x35e01a}=_0x5f00b0,{startColumn:_0x1fcb37,startRow:_0x22febe,endColumn:_0x4e486b,endRow:_0x41d552}=_0x1738cc,_0x1690d0=J[_0x5b8088(0x1a5)](_0x22febe,_0x1fcb37,_0xf211e7,_0xae843a),_0x3ced20=J[_0x5b8088(0x1a5)](_0x41d552,_0x4e486b,_0xf211e7,_0xae843a),{columnHeaderHeightAndMarginTop:_0x4d1990}=_0xae843a,{startX:_0x226d38,startY:_0x4c6604}=_0x1690d0,{endX:_0x175e65,endY:_0x3e15dc}=_0x3ced20,_0x25bfd9=_0x175e65-_0x226d38,_0x283fcd=_0x3e15dc-_0x4c6604,_0x3a9279={'labelPosition':_0x4c6604-_0x4d1990>=X?'top':_0x5b8088(0x1d7),'sheetID':_0x35e01a,'range':_0x1738cc,'color':_0x42f83a,'name':_0x2c8f47,'selection':_0x137cef,'left':_0x226d38,'top':_0x4c6604,'width':_0x25bfd9,'height':_0x283fcd,'evented':!0x1,'zIndex':$t};return new je(_0x2c8f47,_0x3a9279);});_0xf211e7[_0x5e6446(0x34c)](_0x522b27,At),this[_0x5e6446(0x31b)]=new Set(_0x522b27);}[_0x4885bf(0x254)](){const _0x3175dc=_0x4885bf;var _0x5c520f;(_0x5c520f=this[_0x3175dc(0x31b)])==null||_0x5c520f[_0x3175dc(0x28d)](_0x400486=>_0x400486['dispose']());}[_0x4885bf(0x2bb)](){const _0x36d1f9=_0x4885bf;return J[_0x36d1f9(0x18b)](this['_context']['unit'],this[_0x36d1f9(0x302)]);}};Ce=yt([ue(0x1,a[_0x4885bf(0xe0)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x4885bf(0xe0)](F)),ue(0x3,a[_0x4885bf(0xe0)](a[_0x4885bf(0x2b9)]))],Ce);function xt(_0x5bb7b5){const _0x54bf5c=_0x4885bf,_0x5b392d=new Map();return _0x5bb7b5['forEach'](_0x2cf05b=>{const _0x19cbaf=_0x30e5;if(_0x5b392d[_0x19cbaf(0x11b)](_0x2cf05b['selection'])){const _0x1c4b23=_0x5b392d[_0x19cbaf(0x1b8)](_0x2cf05b[_0x19cbaf(0x310)]);_0x1c4b23[_0x19cbaf(0x30b)]+=',\x20'+_0x2cf05b['name'];}else _0x5b392d[_0x19cbaf(0x219)](_0x2cf05b[_0x19cbaf(0x310)],_0x2cf05b);}),Array[_0x54bf5c(0x15e)](_0x5b392d[_0x54bf5c(0x194)]());}var Bt=Object[_0x4885bf(0xee)],Ft=(_0x45c182,_0x2c70ff,_0x5cbe98,_0xa1628e)=>{const _0x2253eb=_0x4885bf;for(var _0x21f192=_0xa1628e>0x1?void 0x0:_0xa1628e?Bt(_0x2c70ff,_0x5cbe98):_0x2c70ff,_0x424b3d=_0x45c182[_0x2253eb(0x12a)]-0x1,_0x1bf42d;_0x424b3d>=0x0;_0x424b3d--)(_0x1bf42d=_0x45c182[_0x424b3d])&&(_0x21f192=_0x1bf42d(_0x21f192)||_0x21f192);return _0x21f192;},y=(_0x4bfdcf,_0x3c9146)=>(_0x18ae6d,_0x524895)=>_0x3c9146(_0x18ae6d,_0x524895,_0x4bfdcf);let Z=class extends a['Disposable']{constructor(_0x5cc113,_0x1c1bb1,_0x5da883,_0x199eb4,_0x4e1522,_0x210ab5){const _0x3e07b2=_0x4885bf;super(),this[_0x3e07b2(0xc1)]=_0x5cc113,this[_0x3e07b2(0xf0)]=_0x1c1bb1,this[_0x3e07b2(0x22d)]=_0x5da883,this['_messageService']=_0x199eb4,this[_0x3e07b2(0x134)]=_0x4e1522,this['_localeService']=_0x210ab5,this['_setupBeforeClosingHandler'](),this[_0x3e07b2(0x296)]();}[_0x4885bf(0xc2)](){const _0x265e2f=_0x4885bf;this[_0x265e2f(0x354)](this['_beforeCloseService'][_0x265e2f(0x318)](()=>{const _0x3716b1=_0x265e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x3716b1(0x1ac)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x4885bf(0x296)](){const _0x5c26fa=_0x4885bf;this[_0x5c26fa(0x354)](this[_0x5c26fa(0x22d)][_0x5c26fa(0x31c)][_0x5c26fa(0x22c)](_0x8cb3b4=>{const _0x1396b1=_0x5c26fa;_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x1fc)]&&this[_0x1396b1(0x19a)]['show']({'type':T[_0x1396b1(0x1d8)]['Warning'],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x2fa))}),_0x8cb3b4['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x103))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xab)]&&this[_0x1396b1(0x134)][_0x1396b1(0x9f)]({'title':this[_0x1396b1(0x1ac)]['t']('permission.title'),'content':this[_0x1396b1(0x1ac)]['t']('permission.content'),'type':_0x1396b1(0x1d5),'duration':0x0}),_0x8cb3b4['id']===u['CollaborationUIEventId'][_0x1396b1(0x2f5)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this['_localeService']['t'](_0x1396b1(0x103))+'('+_0x8cb3b4['data']+')'}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x211)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x8cb3b4['data']||'')}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x267)]&&this['_messageService']['show']({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0x9c)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x124))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0xa4)]&&this['_messageService'][_0x1396b1(0x9f)]({'type':T['MessageType'][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x1ef))}),_0x8cb3b4['id']===u[_0x1396b1(0x141)][_0x1396b1(0x175)]&&this[_0x1396b1(0x19a)][_0x1396b1(0x9f)]({'type':T[_0x1396b1(0x1d8)][_0x1396b1(0xf7)],'content':this[_0x1396b1(0x1ac)]['t'](_0x1396b1(0x107))});}));}};function _0x30e5(_0x15d732,_0x132a4d){const _0x77824c=_0x7782();return _0x30e5=function(_0x30e529,_0x446923){_0x30e529=_0x30e529-0x8e;let _0x692666=_0x77824c[_0x30e529];return _0x692666;},_0x30e5(_0x15d732,_0x132a4d);}Z=Ft([y(0x0,O[_0x4885bf(0x168)]),y(0x1,u[_0x4885bf(0x281)]),y(0x2,a[_0x4885bf(0xe0)](u[_0x4885bf(0x34b)])),y(0x3,O[_0x4885bf(0x255)]),y(0x4,O[_0x4885bf(0x12c)]),y(0x5,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],Z);var jt=Object[_0x4885bf(0xee)],kt=(_0x5b00ff,_0x846123,_0x9a1993,_0x26e088)=>{const _0x52b99d=_0x4885bf;for(var _0x31600f=_0x26e088>0x1?void 0x0:_0x26e088?jt(_0x846123,_0x9a1993):_0x846123,_0x18dd42=_0x5b00ff[_0x52b99d(0x12a)]-0x1,_0x4d8ec1;_0x18dd42>=0x0;_0x18dd42--)(_0x4d8ec1=_0x5b00ff[_0x18dd42])&&(_0x31600f=_0x4d8ec1(_0x31600f)||_0x31600f);return _0x31600f;},z=(_0x528c83,_0x4f92aa)=>(_0x20ba6a,_0xc8dd71)=>_0x4f92aa(_0x20ba6a,_0xc8dd71,_0x528c83);let Q=class extends a['Disposable']{constructor(_0x3587b0,_0x3f9d39,_0x23f212,_0x5916b8){const _0x89991f=_0x4885bf;super(),_(this,_0x89991f(0x28e)),(this[_0x89991f(0x17e)]=_0x3587b0,this[_0x89991f(0x195)]=_0x3f9d39,this['_logService']=_0x23f212,this['_collaborationSessionService']=_0x5916b8,this[_0x89991f(0x2a5)]());}[_0x4885bf(0x2a5)](){const _0x3d744d=_0x4885bf;this[_0x3d744d(0x24f)](),this[_0x3d744d(0x204)](),this[_0x3d744d(0x2af)](),this['_initUserListener']();}[_0x4885bf(0x359)](){const _0x2daa03=_0x4885bf;this[_0x2daa03(0x354)](this['_collaborationSessionService'][_0x2daa03(0x294)][_0x2daa03(0x22c)](_0x45e5f1=>{const _0x5eca73=_0x2daa03;this[_0x5eca73(0x28e)]=_0x45e5f1==null?void 0x0:_0x45e5f1[_0x5eca73(0x187)];}));}[_0x4885bf(0x24f)](){const _0x2e5769=_0x4885bf,_0xfa2439=_0x20b589=>{const _0x10da87=_0x30e5;var _0x4069c8;this[_0x10da87(0x353)]('error','[Window\x20Error]:\x20'+_0x20b589['message']+_0x10da87(0x32b)+_0x20b589[_0x10da87(0x12b)]+':'+_0x20b589[_0x10da87(0x21b)]+':'+_0x20b589[_0x10da87(0x13d)]+'\x0a'+(((_0x4069c8=_0x20b589[_0x10da87(0x1d5)])==null?void 0x0:_0x4069c8[_0x10da87(0x22f)])||''));};window['addEventListener'](_0x2e5769(0x1d5),_0xfa2439),this[_0x2e5769(0x354)](()=>{const _0x5d13b7=_0x2e5769;window[_0x5d13b7(0x2a8)](_0x5d13b7(0x1d5),_0xfa2439);});}[_0x4885bf(0x204)](){const _0x59bb0e=_0x4885bf,_0x4cc34a=_0x194d2f=>{const _0x130b52=_0x30e5;this[_0x130b52(0x353)]('error',_0x130b52(0x11a)+_0x194d2f[_0x130b52(0xb7)]);};window[_0x59bb0e(0x29c)]('unhandledrejection',_0x4cc34a),this[_0x59bb0e(0x354)](()=>{const _0x334a4c=_0x59bb0e;window[_0x334a4c(0x2a8)](_0x334a4c(0x2b0),_0x4cc34a);});}[_0x4885bf(0x2af)](){const _0x445ad7=_0x4885bf,_0x5e7d4f=this[_0x445ad7(0x1ed)]['error'][_0x445ad7(0x14f)](this['_logService']);this['_logService']['error']=(..._0x3ab552)=>{const _0x337094=_0x445ad7,_0x502f20=_0x3ab552[_0x337094(0x2d7)](_0x5e0ea8=>_0x5e0ea8 instanceof Error?_0x5e0ea8[_0x337094(0xdb)]+'\x0a'+_0x5e0ea8[_0x337094(0x22f)]:String(_0x5e0ea8))[_0x337094(0x146)]('\x20');this['_uploadLog'](_0x337094(0x1d5),_0x337094(0x172)+_0x502f20),_0x5e7d4f(..._0x3ab552);},this['disposeWithMe'](()=>{const _0x75a5ce=_0x445ad7;this[_0x75a5ce(0x1ed)]['error']=_0x5e7d4f;});}[_0x4885bf(0x353)](_0x26d1f5,_0x1b0131){const _0xaa9a85=_0x4885bf;try{const _0x391c9f={'userId':this['_memberID'],'logLabel':_0x26d1f5,'content':_0x1b0131};this['_httpService'][_0xaa9a85(0x17c)](_0xaa9a85(0x347),{'body':_0x391c9f})[_0xaa9a85(0x223)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),z(0x1,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),z(0x2,a['ILogService']),z(0x3,a[_0x4885bf(0xe0)](u[_0x4885bf(0x307)]))],Q);const Yt=_0x4885bf(0x23c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x20fbf5,_0x214c11,_0x2c2b98,_0x34bf3c)=>{const _0x2264ec=_0x4885bf;for(var _0x590db9=_0x34bf3c>0x1?void 0x0:_0x34bf3c?Ht(_0x214c11,_0x2c2b98):_0x214c11,_0x152c14=_0x20fbf5[_0x2264ec(0x12a)]-0x1,_0xcf2a9;_0x152c14>=0x0;_0x152c14--)(_0xcf2a9=_0x20fbf5[_0x152c14])&&(_0x590db9=_0xcf2a9(_0x590db9)||_0x590db9);return _0x590db9;},Ae=(_0x7be90d,_0x2f394f)=>(_0x390bb3,_0x29cfa4)=>_0x2f394f(_0x390bb3,_0x29cfa4,_0x7be90d);let ee=class{constructor(_0xfb6b4e,_0x22d3ca){const _0x52ad87=_0x4885bf;this[_0x52ad87(0x148)]=_0xfb6b4e,this[_0x52ad87(0x342)]=_0x22d3ca;}['transformIMECache'](_0x40401b){const _0x4b78ec=_0x4885bf;this['_transformUndoRedoStack'](_0x40401b),this[_0x4b78ec(0x2de)](_0x40401b);}[_0x4885bf(0x2d6)](_0x89e1aa){const _0x4a769c=_0x4885bf,{unitID:_0x100e67}=_0x89e1aa,_0x1ed4ab=this[_0x4a769c(0x342)]['getRenderById'](_0x100e67)['with'](p[_0x4a769c(0xb2)]),{redoCache:_0x33e993}=_0x1ed4ab['getUndoRedoMutationParamsCache']();if(_0x33e993[_0x4a769c(0x12a)]===0x0)return _0x89e1aa;let _0x505d01=a['Tools'][_0x4a769c(0x149)](_0x89e1aa[_0x4a769c(0x110)][0x0]);for(let _0x1fc781=0x0;_0x1fc781<_0x33e993[_0x4a769c(0x12a)];_0x1fc781++){const _0x4c9dde={'id':_0x4a769c(0x2d0),'params':{..._0x33e993[_0x1fc781]}},_0x171cbd=this[_0x4a769c(0x148)]['transformMutation'](_0x505d01,_0x4c9dde,!0x1);if(g[_0x4a769c(0x2b6)](_0x171cbd))throw _0x171cbd[_0x4a769c(0x1d5)];_0x505d01=_0x171cbd[_0x4a769c(0x16b)];}return{...a[_0x4a769c(0xe3)]['deepClone'](_0x89e1aa),'mutations':[_0x505d01]};}[_0x4885bf(0x16c)](_0x132a6b){const _0x13227c=_0x4885bf,{unitID:_0x5566e3}=_0x132a6b,_0x144cb0=this['_renderManagerService'][_0x13227c(0x1c4)](_0x5566e3)[_0x13227c(0x19f)](p[_0x13227c(0xb2)]),{undoCache:_0x1c843e,redoCache:_0x5cd801}=_0x144cb0[_0x13227c(0x349)]();if(_0x1c843e[_0x13227c(0x12a)]===0x0||_0x5cd801[_0x13227c(0x12a)]===0x0)return;const _0x2dda96=[],_0x1be4e9=[];let _0x46b575=a['Tools'][_0x13227c(0x149)](_0x132a6b['mutations'][0x0]),_0xcff5ce=a[_0x13227c(0xe3)][_0x13227c(0x149)](_0x132a6b[_0x13227c(0x110)][0x0]);for(let _0x44cef7=_0x1c843e[_0x13227c(0x12a)]-0x1;_0x44cef7>=0x0;_0x44cef7--){const _0x5c7b3d={'id':'doc.mutation.rich-text-editing','params':{..._0x1c843e[_0x44cef7]}},_0xf89245={'id':'doc.mutation.rich-text-editing','params':{..._0x5cd801[_0x44cef7]}},_0x1134f0=this[_0x13227c(0x148)][_0x13227c(0x293)](_0x46b575,_0x5c7b3d,!0x1),_0x2282b0=this[_0x13227c(0x148)]['transformMutation'](_0xcff5ce,_0xf89245,!0x1);if(g[_0x13227c(0x2b6)](_0x1134f0))throw _0x1134f0['error'];if(g[_0x13227c(0x2b6)](_0x2282b0))throw _0x2282b0[_0x13227c(0x1d5)];_0x2dda96[_0x13227c(0x18f)](_0x1134f0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x1be4e9[_0x13227c(0x18f)](_0x2282b0[_0x13227c(0x2c5)][_0x13227c(0x215)]),_0x46b575=_0x1134f0[_0x13227c(0x16b)],_0xcff5ce=_0x2282b0[_0x13227c(0x16b)];}_0x144cb0['setUndoRedoMutationParamsCache']({'undoCache':_0x2dda96,'redoCache':_0x1be4e9});}[_0x4885bf(0x2de)](_0x1e99cc){const _0x265279=_0x4885bf,{unitID:_0x5cbe50}=_0x1e99cc,_0x470b2e=this[_0x265279(0x342)][_0x265279(0x1c4)](_0x5cbe50)['with'](p[_0x265279(0xb2)]),_0x2deb81=_0x470b2e[_0x265279(0xbc)]();if(_0x2deb81==null)return;const _0x37a406=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e99cc[_0x265279(0x143)],'actions':null,'textRanges':[_0x2deb81]}}],_0x4b3b62=this[_0x265279(0x148)][_0x265279(0x1f8)](_0x1e99cc,_0x37a406);if(!g[_0x265279(0x117)](_0x4b3b62))throw _0x4b3b62[_0x265279(0x1d5)];const _0x99c3e6=_0x4b3b62[_0x265279(0x2c5)][0x0]['params'][_0x265279(0x122)];Array[_0x265279(0x2cd)](_0x99c3e6)&&_0x99c3e6[_0x265279(0x12a)]&&_0x470b2e[_0x265279(0x163)](_0x99c3e6[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x4885bf(0xee)],Gt=(_0x21ce5b,_0x543a1b,_0x3c9d57,_0x4a3244)=>{const _0x479f3b=_0x4885bf;for(var _0x5a01db=_0x4a3244>0x1?void 0x0:_0x4a3244?Vt(_0x543a1b,_0x3c9d57):_0x543a1b,_0x677d8c=_0x21ce5b[_0x479f3b(0x12a)]-0x1,_0x453ebc;_0x677d8c>=0x0;_0x677d8c--)(_0x453ebc=_0x21ce5b[_0x677d8c])&&(_0x5a01db=_0x453ebc(_0x5a01db)||_0x5a01db);return _0x5a01db;},Ie=(_0x5c4d1d,_0xbefc05)=>(_0x103719,_0x1212a2)=>_0xbefc05(_0x103719,_0x1212a2,_0x5c4d1d);let te=class{constructor(_0x18ea12,_0x394b16,_0x35d377){const _0xe6f19=_0x4885bf;this[_0xe6f19(0x17e)]=_0x18ea12,this['_transformService']=_0x394b16,this[_0xe6f19(0x24b)]=_0x35d377;}[_0x4885bf(0x10c)](_0x3eb7ac){const _0x245bdb=_0x4885bf;this[_0x245bdb(0x218)](_0x3eb7ac);}[_0x4885bf(0x2d6)](_0x48721e){const _0x5c210a=_0x4885bf,{unitID:_0x30f9ee}=_0x48721e,{collaboration:_0x6195f4}=this[_0x5c210a(0x24b)][_0x5c210a(0x181)](_0x30f9ee);if(_0x6195f4[_0x5c210a(0x12a)]===0x0)return _0x48721e;let _0xe0d423=a[_0x5c210a(0xe3)][_0x5c210a(0x149)](_0x48721e[_0x5c210a(0x110)][0x0]);for(let _0x2691b8=0x0;_0x2691b8<_0x6195f4['length'];_0x2691b8++){const _0x57fbc6={'id':_0x5c210a(0x2d0),'params':{'unitId':_0x6195f4[_0x2691b8][_0x5c210a(0x276)],..._0x6195f4[_0x2691b8][_0x5c210a(0x2bf)]}},_0x6071c6=this[_0x5c210a(0x148)][_0x5c210a(0x293)](_0xe0d423,_0x57fbc6,!0x1);if(g['isTransformMutationFailure'](_0x6071c6))throw _0x6071c6[_0x5c210a(0x1d5)];_0xe0d423=_0x6071c6[_0x5c210a(0x16b)];}return{...a[_0x5c210a(0xe3)]['deepClone'](_0x48721e),'mutations':[_0xe0d423]};}[_0x4885bf(0x218)](_0x2e1401){const _0x35afc0=_0x4885bf,{unitID:_0x1aee32}=_0x2e1401,{history:_0x485f00,collaboration:_0x57d5df}=this[_0x35afc0(0x24b)][_0x35afc0(0x181)](_0x1aee32);if(_0x485f00['length']===0x0&&_0x57d5df['length']===0x0)return;const _0x567774=[],_0x1af50b=[];let _0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x1477a2=_0x485f00[_0x35afc0(0x12a)]-0x1;_0x1477a2>=0x0;_0x1477a2--){const _0x23094b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2][_0x35afc0(0x1dc)]}},_0x45531a={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x485f00[_0x1477a2][_0x35afc0(0x276)],..._0x485f00[_0x1477a2]['redoState']}},_0x26023c=this['_transformService'][_0x35afc0(0x293)](_0xf9bcf8,_0x23094b,!0x1),_0x26af69=this[_0x35afc0(0x148)]['transformMutation'](_0x256ad1,_0x45531a,!0x1);if(g['isTransformMutationFailure'](_0x26023c))throw _0x26023c[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x26af69))throw _0x26af69['error'];_0x567774[_0x35afc0(0x18f)]({..._0x485f00[_0x1477a2],'undoState':_0x26023c[_0x35afc0(0x2c5)][_0x35afc0(0x215)],'redoState':_0x26af69[_0x35afc0(0x2c5)]['params']}),_0xf9bcf8=_0x26023c['m1Prime'],_0x256ad1=_0x26af69[_0x35afc0(0x16b)];}_0xf9bcf8=a[_0x35afc0(0xe3)][_0x35afc0(0x149)](_0x2e1401[_0x35afc0(0x110)][0x0]),_0x256ad1=a[_0x35afc0(0xe3)]['deepClone'](_0x2e1401[_0x35afc0(0x110)][0x0]);for(let _0x37130e=_0x57d5df[_0x35afc0(0x12a)]-0x1;_0x37130e>=0x0;_0x37130e--){const _0x1a70e3={'id':_0x35afc0(0x2d0),'params':{'unitId':_0x57d5df[_0x37130e]['unitId'],..._0x57d5df[_0x37130e][_0x35afc0(0x1dc)]}},_0x3f5789={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57d5df[_0x37130e][_0x35afc0(0x276)],..._0x57d5df[_0x37130e]['redoState']}},_0x25f400=this[_0x35afc0(0x148)][_0x35afc0(0x293)](_0xf9bcf8,_0x1a70e3,!0x1),_0x1be746=this['_transformService'][_0x35afc0(0x293)](_0x256ad1,_0x3f5789,!0x1);if(g[_0x35afc0(0x2b6)](_0x25f400))throw _0x25f400[_0x35afc0(0x1d5)];if(g[_0x35afc0(0x2b6)](_0x1be746))throw _0x1be746['error'];_0x1af50b[_0x35afc0(0x18f)]({..._0x57d5df[_0x37130e],'undoState':_0x25f400['m2Prime'][_0x35afc0(0x215)],'redoState':_0x1be746[_0x35afc0(0x2c5)][_0x35afc0(0x215)]}),_0xf9bcf8=_0x25f400[_0x35afc0(0x16b)],_0x256ad1=_0x1be746[_0x35afc0(0x16b)];}this[_0x35afc0(0x24b)][_0x35afc0(0x233)](_0x1aee32,{'history':_0x567774,'collaboration':_0x1af50b});}};te=Gt([Ie(0x0,a['Inject'](a[_0x4885bf(0x199)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x4885bf(0xe0)](p[_0x4885bf(0x244)]))],te);var Xt=Object[_0x4885bf(0xee)],Kt=(_0x45a734,_0x1b0554,_0x3ff6c9,_0x5981ef)=>{const _0x172a03=_0x4885bf;for(var _0x486065=_0x5981ef>0x1?void 0x0:_0x5981ef?Xt(_0x1b0554,_0x3ff6c9):_0x1b0554,_0x27c4d1=_0x45a734[_0x172a03(0x12a)]-0x1,_0x149925;_0x27c4d1>=0x0;_0x27c4d1--)(_0x149925=_0x45a734[_0x27c4d1])&&(_0x486065=_0x149925(_0x486065)||_0x486065);return _0x486065;},Pe=(_0x145db4,_0x55698a)=>(_0x26c816,_0x368a58)=>_0x55698a(_0x26c816,_0x368a58,_0x145db4);let se=class{constructor(_0x43d244,_0x6cbeb){const _0x2834b0=_0x4885bf;this[_0x2834b0(0x17e)]=_0x43d244,this[_0x2834b0(0x148)]=_0x6cbeb;}[_0x4885bf(0x202)](_0xb59212){const _0x56f5ca=_0x4885bf;var _0x220248;const _0x7ee17a=this[_0x56f5ca(0x17e)][_0x56f5ca(0x1b8)](V[_0x56f5ca(0xe6)]),_0x513a68=(_0x220248=_0x7ee17a[_0x56f5ca(0x263)]())!=null?_0x220248:[];if(_0x513a68[_0x56f5ca(0x12a)]===0x0)return;const _0x5b8d62=_0xb59212[_0x56f5ca(0x143)],_0x39b64c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b8d62,'actions':null,'textRanges':_0x513a68}}],_0x59fee2=this[_0x56f5ca(0x148)][_0x56f5ca(0x1f8)](_0xb59212,_0x39b64c);if(!g['isTransformMutationsWithChangesetSuccess'](_0x59fee2))throw _0x59fee2[_0x56f5ca(0x1d5)];const _0x54b3f2=_0x59fee2[_0x56f5ca(0x2c5)][0x0][_0x56f5ca(0x215)][_0x56f5ca(0x122)];Array[_0x56f5ca(0x2cd)](_0x54b3f2)&&_0x54b3f2[_0x56f5ca(0x12a)]&&_0x7ee17a[_0x56f5ca(0x275)](_0x54b3f2,{'unitId':_0x5b8d62,'subUnitId':_0x5b8d62},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x4885bf(0x199)])),Pe(0x1,g[_0x4885bf(0x29a)])],se);var qt=Object[_0x4885bf(0xee)],zt=(_0x4bd1e2,_0x41b40c,_0x14db13,_0xae68d6)=>{const _0x405299=_0x4885bf;for(var _0x11fdfb=_0xae68d6>0x1?void 0x0:_0xae68d6?qt(_0x41b40c,_0x14db13):_0x41b40c,_0x5162cf=_0x4bd1e2[_0x405299(0x12a)]-0x1,_0x50ad8d;_0x5162cf>=0x0;_0x5162cf--)(_0x50ad8d=_0x4bd1e2[_0x5162cf])&&(_0x11fdfb=_0x50ad8d(_0x11fdfb)||_0x11fdfb);return _0x11fdfb;},N=(_0xe471ae,_0x4c5f01)=>(_0x2d4a00,_0x1260c4)=>_0x4c5f01(_0x2d4a00,_0x1260c4,_0xe471ae);let ie=class extends a['Disposable']{constructor(_0x5c8103,_0x24092b,_0x220d8a,_0x448a24,_0x52dafe,_0xae90e4,_0x28c7a4,_0x4c3389){const _0x2199ba=_0x4885bf;super(),_(this,_0x2199ba(0x14d),new I['BehaviorSubject'](u[_0x2199ba(0x30d)][_0x2199ba(0x333)])),(this[_0x2199ba(0x24b)]=_0x5c8103,this[_0x2199ba(0x136)]=_0x24092b,this['_docTransformIMECacheService']=_0x220d8a,this[_0x2199ba(0x27a)]=_0x448a24,this['_docTransformSelectionsService']=_0x52dafe,this[_0x2199ba(0x190)]=_0xae90e4,this[_0x2199ba(0x19a)]=_0x28c7a4,this[_0x2199ba(0x1ac)]=_0x4c3389,this[_0x2199ba(0x19c)]());}[_0x4885bf(0x19c)](){const _0x135742=_0x4885bf;this[_0x135742(0x354)](this[_0x135742(0x136)][_0x135742(0xb3)][_0x135742(0x22c)](_0x24db24=>{const _0x5aecc4=_0x135742,_0x468f68=this[_0x5aecc4(0x24b)][_0x5aecc4(0x1bc)][_0x5aecc4(0x22c)](_0x3c78de=>{const _0x293bde=_0x5aecc4;if(_0x3c78de==null)return;const {unitId:_0x4a706f,redoState:_0x3e7f67,commandId:_0x54e81a}=_0x3c78de;if(_0x4a706f!==_0x24db24['unitID'])return;const _0x5b9b58={'id':_0x54e81a,'type':a['CommandType'][_0x293bde(0x292)],'params':{'unitId':_0x4a706f,'actions':_0x3e7f67[_0x293bde(0x24c)],'textRanges':null}};_0x24db24[_0x293bde(0x32c)](_0x5b9b58);});if(_0x24db24['disposeWithMe'](_0x468f68),_0x24db24 instanceof u['DocCollaborationEntity']){const _0x5c2a61={'onTransformIME':_0x36b0f5=>this[_0x5aecc4(0x315)]['transformIMECache'](_0x36b0f5),'onTransformState':_0x52b611=>this['_docTransformStateCacheService'][_0x5aecc4(0x10c)](_0x52b611),'onTransformSelections':_0x26aa09=>this[_0x5aecc4(0x2e6)][_0x5aecc4(0x202)](_0x26aa09),'onSyncEditingCollabCursor':_0x2cfd77=>this[_0x5aecc4(0x190)][_0x5aecc4(0x285)](_0x2cfd77),'onTransformRemoteChangesetByIMECache':_0x1f9a40=>this['_docTransformIMECacheService'][_0x5aecc4(0x2d6)](_0x1f9a40),'onTransformRemoteChangesetByStateCache':_0x2d4051=>this[_0x5aecc4(0x27a)][_0x5aecc4(0x2d6)](_0x2d4051)};_0x24db24['addHandlerCallback'](_0x5c2a61);}}));}};ie=zt([N(0x0,a['Inject'](p[_0x4885bf(0x244)])),N(0x1,a[_0x4885bf(0xe0)](u[_0x4885bf(0x357)])),N(0x2,a[_0x4885bf(0xe0)](ee)),N(0x3,a[_0x4885bf(0xe0)](te)),N(0x4,a[_0x4885bf(0xe0)](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x4885bf(0xe0)](a[_0x4885bf(0xcb)]))],ie);var G=(_0x12104e=>(_0x12104e[_0x12104e[_0x4885bf(0x314)]=0x0]=_0x4885bf(0x314),_0x12104e[_0x12104e['OK']=0x1]='OK',_0x12104e[_0x12104e[_0x4885bf(0xf8)]=0x2]=_0x4885bf(0xf8),_0x12104e[_0x12104e[_0x4885bf(0xab)]=0x3]=_0x4885bf(0xab),_0x12104e[_0x12104e[_0x4885bf(0x309)]=0x4]=_0x4885bf(0x309),_0x12104e[_0x12104e[_0x4885bf(0x253)]=0x5]=_0x4885bf(0x253),_0x12104e[_0x12104e[_0x4885bf(0x291)]=0x6]=_0x4885bf(0x291),_0x12104e[_0x12104e['INVALID_ARGUMENT']=0x7]=_0x4885bf(0x33c),_0x12104e[_0x12104e[_0x4885bf(0x1c2)]=0x8]='TOO_MANY_REQUESTS',_0x12104e[_0x12104e['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x12104e[_0x12104e[_0x4885bf(0x225)]=0xa]=_0x4885bf(0x225),_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x12104e[_0x12104e['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x4885bf(0x178),_0x12104e[_0x12104e[_0x4885bf(0x2d8)]=0xd]=_0x4885bf(0x2d8),_0x12104e[_0x12104e[_0x4885bf(0xfe)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x12104e[_0x12104e[_0x4885bf(0x298)]=0xf]=_0x4885bf(0x298),_0x12104e[_0x12104e[_0x4885bf(0x1ba)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x12104e[_0x12104e[_0x4885bf(0xcc)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x12104e[_0x12104e['ERROR_AGAIN']=0x65]=_0x4885bf(0x158),_0x12104e[_0x12104e[_0x4885bf(0xac)]=0xc9]=_0x4885bf(0xac),_0x12104e[_0x12104e[_0x4885bf(0x91)]=0xca]='USER_IS_ANONYMOUS',_0x12104e[_0x12104e[_0x4885bf(0x329)]=0x1389]=_0x4885bf(0x329),_0x12104e[_0x12104e[_0x4885bf(0x176)]=0x1771]=_0x4885bf(0x176),_0x12104e[_0x12104e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4885bf(0x278),_0x12104e[_0x12104e[_0x4885bf(0x131)]=0x1773]=_0x4885bf(0x131),_0x12104e[_0x12104e['APPLY_REJECT']=0x1b59]=_0x4885bf(0xef),_0x12104e[_0x12104e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4885bf(0x334),_0x12104e[_0x12104e[_0x4885bf(0xfa)]=0x1b5b]=_0x4885bf(0xfa),_0x12104e[_0x12104e[_0x4885bf(0x1ad)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x12104e[_0x12104e[_0x4885bf(0x33b)]=0x1b5d]='APPLY_DUPLICATED',_0x12104e[_0x12104e[_0x4885bf(0x93)]=0x1f41]=_0x4885bf(0x93),_0x12104e[_0x12104e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x12104e[_0x12104e[_0x4885bf(0x25c)]=0x232a]=_0x4885bf(0x25c),_0x12104e[_0x12104e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4885bf(0x2be),_0x12104e[_0x12104e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4885bf(0x9e),_0x12104e[_0x12104e[_0x4885bf(0x1fd)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x12104e[_0x12104e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4885bf(0x24e),_0x12104e[_0x12104e[_0x4885bf(0x234)]=0x2712]=_0x4885bf(0x234),_0x12104e[_0x12104e[_0x4885bf(0x22a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x12104e[_0x12104e[_0x4885bf(0x2d3)]=0x2714]=_0x4885bf(0x2d3),_0x12104e[_0x12104e[_0x4885bf(0x130)]=0x271a]=_0x4885bf(0x130),_0x12104e[_0x12104e[_0x4885bf(0x1d6)]=0x271b]=_0x4885bf(0x1d6),_0x12104e[_0x12104e[_0x4885bf(0x248)]=0x271c]=_0x4885bf(0x248),_0x12104e[_0x12104e['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4885bf(0x282),_0x12104e[_0x12104e[_0x4885bf(0xbf)]=0x271e]=_0x4885bf(0xbf),_0x12104e[_0x12104e[_0x4885bf(0x1b6)]=0x271f]=_0x4885bf(0x1b6),_0x12104e[_0x12104e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x4885bf(0x280),_0x12104e[_0x12104e['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x12104e[_0x12104e[_0x4885bf(0x113)]=0x2ee1]=_0x4885bf(0x113),_0x12104e[_0x12104e[_0x4885bf(0x8f)]=0x2ee2]=_0x4885bf(0x8f),_0x12104e[_0x12104e[_0x4885bf(0x154)]=0x2ee3]=_0x4885bf(0x154),_0x12104e[_0x12104e[_0x4885bf(0x2b3)]=0x2ee4]=_0x4885bf(0x2b3),_0x12104e[_0x12104e['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x12104e[_0x12104e[_0x4885bf(0x245)]=0x32c9]=_0x4885bf(0x245),_0x12104e[_0x12104e[_0x4885bf(0x9a)]=0x32ca]=_0x4885bf(0x9a),_0x12104e[_0x12104e[_0x4885bf(0x1ee)]=0x32cb]=_0x4885bf(0x1ee),_0x12104e[_0x12104e['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4885bf(0xfd),_0x12104e[_0x12104e[_0x4885bf(0x170)]=0x36b2]=_0x4885bf(0x170),_0x12104e[_0x12104e[_0x4885bf(0x23e)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x12104e[_0x12104e['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x4885bf(0x262),_0x12104e[_0x12104e[_0x4885bf(0x272)]=0x3715]=_0x4885bf(0x272),_0x12104e[_0x12104e[_0x4885bf(0x11f)]=0x3716]=_0x4885bf(0x11f),_0x12104e[_0x12104e[_0x4885bf(0x20e)]=0x3717]=_0x4885bf(0x20e),_0x12104e[_0x12104e[_0x4885bf(0x1e9)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x12104e[_0x12104e['REDEMPTION_INVALID_CODE']=0x3a99]=_0x4885bf(0x1d1),_0x12104e[_0x12104e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4885bf(0x346),_0x12104e[_0x12104e[_0x4885bf(0xa5)]=0x3a9b]=_0x4885bf(0xa5),_0x12104e[_0x12104e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x4885bf(0x2fe),_0x12104e[_0x12104e[_0x4885bf(0x24d)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x12104e[_0x12104e[_0x4885bf(0x2b7)]=0x3a9e]=_0x4885bf(0x2b7),_0x12104e[_0x12104e[_0x4885bf(0x231)]=0x3a9f]=_0x4885bf(0x231),_0x12104e[_0x12104e[_0x4885bf(0x2f9)]=0x3e81]=_0x4885bf(0x2f9),_0x12104e[_0x12104e[_0x4885bf(0x352)]=-0x1]=_0x4885bf(0x352),_0x12104e))(G||{});function Jt(_0x59a988){const _0x587a7a=_0x4885bf;var _0xeca54c,_0x18009d;const _0x3a9040=(_0xeca54c=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0xeca54c[_0x587a7a(0x24a)],_0x375b93=((_0x18009d=_0x59a988[_0x587a7a(0x20b)])==null?void 0x0:_0x18009d[_0x587a7a(0x2c0)])||0x0;return _0x3a9040===B[_0x587a7a(0x18a)][_0x587a7a(0xca)]&&_0x375b93>0x0;}function Zt(_0x591010){const _0x2e38eb=_0x4885bf;return _0x591010[_0x2e38eb(0x356)]===B[_0x2e38eb(0x2ff)][_0x2e38eb(0x2f8)];}var Qt=Object[_0x4885bf(0xee)],es=(_0x40e0ac,_0x317692,_0x35023b,_0x50a8c2)=>{for(var _0x2e937e=_0x50a8c2>0x1?void 0x0:_0x50a8c2?Qt(_0x317692,_0x35023b):_0x317692,_0xab1f23=_0x40e0ac['length']-0x1,_0x2329c0;_0xab1f23>=0x0;_0xab1f23--)(_0x2329c0=_0x40e0ac[_0xab1f23])&&(_0x2e937e=_0x2329c0(_0x2e937e)||_0x2e937e);return _0x2e937e;},L=(_0x5221bc,_0x5676a1)=>(_0x52cc13,_0x5b4a12)=>_0x5676a1(_0x52cc13,_0x5b4a12,_0x5221bc);const ts=_0x4885bf(0x165),ss=_0x4885bf(0x162),is=_0x4885bf(0x1e6);let ne=class extends a[_0x4885bf(0x1b2)]{constructor(_0x410271,_0x409da3,_0x33b8b2,_0x47f0b5,_0x210489,_0x5193ec,_0xbec6c6){const _0x12ee15=_0x4885bf;super(),_(this,_0x12ee15(0x279),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x12ee15(0x249),0x0),_(this,_0x12ee15(0x200),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x12ee15(0x19a)]=_0x410271,this['_commandService']=_0x409da3,this['_configService']=_0x33b8b2,this[_0x12ee15(0x195)]=_0x47f0b5,this['_univerInstanceService']=_0x210489,this[_0x12ee15(0x1ed)]=_0x5193ec,this['_localeService']=_0xbec6c6,this[_0x12ee15(0x237)]());}[_0x4885bf(0x237)](){const _0x5e7823=_0x4885bf;this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)][_0x5e7823(0x18d)]((_0x51e24a,_0x12bd61)=>{const _0x22ff3b=_0x5e7823;var _0x12410a;if(_0x51e24a['id']!==B[_0x22ff3b(0x156)]['id'])return;const _0x2c260c=_0x51e24a[_0x22ff3b(0x215)];if(!this['_hasFormulaInDirtyRanges']((_0x12410a=_0x2c260c[_0x22ff3b(0x1eb)])!=null?_0x12410a:[]))return;if(!this[_0x22ff3b(0x31a)]())throw this[_0x22ff3b(0x127)](_0x51e24a,_0x12bd61),this[_0x22ff3b(0x312)](),new a[(_0x22ff3b(0x10a))]();})),this[_0x5e7823(0x354)](this[_0x5e7823(0x26a)]['onCommandExecuted']((_0x4289b7,_0x53510a)=>{const _0x27e012=_0x5e7823;if(_0x4289b7['id']!==B[_0x27e012(0x2bc)]['id'])return;const _0x7367bd=_0x4289b7[_0x27e012(0x215)];if(Jt(_0x7367bd)){const _0x48a5e2=a[_0x27e012(0x2f0)]();this[_0x27e012(0x200)][_0x27e012(0x33a)](_0x48a5e2),this[_0x27e012(0x341)](_0x48a5e2);}else{if(Zt(_0x7367bd)&&this[_0x27e012(0x200)][_0x27e012(0x12a)]>0x0){const _0x12af93=this['_taskIds']['shift']();this[_0x27e012(0x206)](_0x12af93);}}}));}[_0x4885bf(0xcf)](){const _0x422101=_0x4885bf;super[_0x422101(0xcf)](),this[_0x422101(0x145)](),this[_0x422101(0x200)]=[],this[_0x422101(0x249)]=0x0,this[_0x422101(0xfb)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x318813,_0x6f08e4){const _0x524a62=_0x4885bf;for(let _0x3f4fb7=0x0;_0x3f4fb7<0x1e;_0x3f4fb7++)try{if(await this['_getFormulaLimitStatus'](),this[_0x524a62(0x31a)]()){this[_0x524a62(0x337)](_0x318813,_0x6f08e4),this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t'](_0x524a62(0x10b)),'type':T[_0x524a62(0x1d8)]['Success']});return;}await new Promise(_0x10804a=>{const _0x318dc8=_0x524a62;this[_0x318dc8(0x279)]=window[_0x318dc8(0x2f7)](_0x10804a,0x3e8);});}catch(_0x5d24a0){this[_0x524a62(0x1ed)]['error'](_0x5d24a0);}this[_0x524a62(0x19a)]['show']({'content':this[_0x524a62(0x1ac)]['t']('formula.calculation.unable'),'type':T[_0x524a62(0x1d8)][_0x524a62(0xf7)]});}[_0x4885bf(0x337)](_0xd1a25c,_0x3887d3){const _0x385f1d=_0x4885bf;try{this[_0x385f1d(0x26a)][_0x385f1d(0x306)](_0xd1a25c['id'],_0xd1a25c[_0x385f1d(0x215)],_0x3887d3);}catch(_0x1af75a){this['_logService'][_0x385f1d(0x1d5)](_0x1af75a);}}[_0x4885bf(0x119)](_0x174927,_0x28d817){const _0x4a6529=_0x4885bf;_0x28d817<this[_0x4a6529(0x32d)]||(this[_0x4a6529(0x32d)]=_0x28d817,this[_0x4a6529(0xfb)]=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x1a9)]),this['_currentUsage']=Number[_0x4a6529(0x34e)](_0x174927[_0x4a6529(0x26f)]));}async['_startCalculationLimit'](_0x17f0d3){const _0x3be1c0=_0x4885bf;var _0x22bd09,_0x3396e5;const _0xd72d08=Date[_0x3be1c0(0x115)]();try{const _0x201ed5=((_0x22bd09=this['_configService'][_0x3be1c0(0x2c7)](u[_0x3be1c0(0x324)]))==null?void 0x0:_0x22bd09[_0x3be1c0(0xed)])||ss,_0x1e5594=(await this['_httpService'][_0x3be1c0(0x17c)](_0x201ed5,{'body':JSON[_0x3be1c0(0x192)]({'taskId':_0x17f0d3})}))[_0x3be1c0(0x26e)];if(((_0x3396e5=_0x1e5594[_0x3be1c0(0x1d5)])==null?void 0x0:_0x3396e5[_0x3be1c0(0x226)])!==G['OK'])return;this[_0x3be1c0(0x119)](_0x1e5594[_0x3be1c0(0x242)],_0xd72d08);}catch(_0x69a948){this[_0x3be1c0(0x1ed)][_0x3be1c0(0x1d5)](_0x69a948);}}async[_0x4885bf(0x1b5)](_0x3b4fdd){const _0x128a72=_0x4885bf;var _0x4c1010,_0x170384;const _0x5018ac=Date[_0x128a72(0x115)]();try{const _0x9dcd3b=((_0x4c1010=this[_0x128a72(0x2e5)][_0x128a72(0x2c7)](u[_0x128a72(0x324)]))==null?void 0x0:_0x4c1010[_0x128a72(0x227)])||ts,_0x30d94a=_0x3b4fdd?_0x9dcd3b+'?taskId='+encodeURIComponent(_0x3b4fdd):_0x9dcd3b,_0x5c5cc3=(await this[_0x128a72(0x195)][_0x128a72(0x1b8)](_0x30d94a))['body'];if(((_0x170384=_0x5c5cc3[_0x128a72(0x1d5)])==null?void 0x0:_0x170384[_0x128a72(0x226)])!==G['OK'])return;this[_0x128a72(0x119)](_0x5c5cc3[_0x128a72(0x242)],_0x5018ac);}catch(_0x3890d2){this[_0x128a72(0x1ed)][_0x128a72(0x1d5)](_0x3890d2);}}async['_releaseCalculationLimit'](_0x3a255f){const _0x26b3f0=_0x4885bf;var _0x2d0845,_0x243206;const _0x43c54d=Date[_0x26b3f0(0x115)]();try{const _0x277af3=((_0x2d0845=this['_configService'][_0x26b3f0(0x2c7)](u[_0x26b3f0(0x324)]))==null?void 0x0:_0x2d0845['releaseFormulaLimitUrl'])||is,_0x6f935b=(await this['_httpService'][_0x26b3f0(0x17c)](_0x277af3,{'body':JSON[_0x26b3f0(0x192)]({'taskId':_0x3a255f})}))[_0x26b3f0(0x26e)];if(((_0x243206=_0x6f935b[_0x26b3f0(0x1d5)])==null?void 0x0:_0x243206[_0x26b3f0(0x226)])!==G['OK'])return;this[_0x26b3f0(0x119)](_0x6f935b[_0x26b3f0(0x242)],_0x43c54d);}catch(_0x453e85){this[_0x26b3f0(0x1ed)][_0x26b3f0(0x1d5)](_0x453e85);}}['_checkCalculationAvailable'](){const _0x518a35=_0x4885bf;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x518a35(0xfb)]-this['_currentUsage']>0x0;}[_0x4885bf(0x145)](){const _0x4b9856=_0x4885bf;this[_0x4b9856(0x279)]&&(clearTimeout(this[_0x4b9856(0x279)]),this[_0x4b9856(0x279)]=null);}[_0x4885bf(0x312)](){const _0x4d8ad5=_0x4885bf;this[_0x4d8ad5(0x19a)][_0x4d8ad5(0x9f)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':T['MessageType'][_0x4d8ad5(0x2e4)]});}[_0x4885bf(0x35a)](_0x2a5a10){const _0x2a9317=_0x4885bf;for(const _0x4d3f81 of _0x2a5a10){const {unitId:_0x5117b9,sheetId:_0x6819f4,range:_0x2596aa}=_0x4d3f81,_0x1bf162=this['_univerInstanceService'][_0x2a9317(0x361)](_0x5117b9);if(!_0x1bf162)continue;const _0x2f59b2=_0x1bf162[_0x2a9317(0x2e2)](_0x6819f4);if(!_0x2f59b2)continue;const _0x5e4fc9=_0x2f59b2['getCellMatrix']();for(let _0x3d9a7c=_0x2596aa[_0x2a9317(0x261)];_0x3d9a7c<=_0x2596aa['endRow'];_0x3d9a7c++)for(let _0x5798c2=_0x2596aa[_0x2a9317(0x17b)];_0x5798c2<=_0x2596aa[_0x2a9317(0x2a7)];_0x5798c2++){const _0x492a7c=_0x5e4fc9[_0x2a9317(0x1cf)](_0x3d9a7c,_0x5798c2);if(_0x492a7c&&(a[_0x2a9317(0x1c8)](_0x492a7c['f'])||a['isFormulaId'](_0x492a7c['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x4885bf(0xe0)](O[_0x4885bf(0x255)])),L(0x1,a[_0x4885bf(0x2a2)]),L(0x2,a[_0x4885bf(0x1f2)]),L(0x3,a[_0x4885bf(0xe0)](x[_0x4885bf(0x358)])),L(0x4,a[_0x4885bf(0x2b8)]),L(0x5,a[_0x4885bf(0x15f)]),L(0x6,a[_0x4885bf(0xe0)](a['LocaleService']))],ne);var ns=Object[_0x4885bf(0xee)],rs=(_0x41833a,_0x11a070,_0xfce2c3,_0x3cdf3d)=>{const _0x36ce85=_0x4885bf;for(var _0x1c49f2=_0x3cdf3d>0x1?void 0x0:_0x3cdf3d?ns(_0x11a070,_0xfce2c3):_0x11a070,_0x16650e=_0x41833a[_0x36ce85(0x12a)]-0x1,_0x2aa722;_0x16650e>=0x0;_0x16650e--)(_0x2aa722=_0x41833a[_0x16650e])&&(_0x1c49f2=_0x2aa722(_0x1c49f2)||_0x1c49f2);return _0x1c49f2;},de=(_0x30fa77,_0x2137c9)=>(_0x2e548c,_0x7ee117)=>_0x2137c9(_0x2e548c,_0x7ee117,_0x30fa77);let pe=class extends a[_0x4885bf(0x1b2)]{constructor(_0x74df3a,_0x2f9593,_0x55d2cb){const _0x22b5f4=_0x4885bf;super(),_(this,_0x22b5f4(0x224),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x22b5f4(0x2e5)]=_0x74df3a,this[_0x22b5f4(0x196)]=_0x2f9593,this[_0x22b5f4(0xa1)]=_0x55d2cb);}[_0x4885bf(0x138)](){this['_disabled']=!0x0;}[_0x4885bf(0x13f)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x5d8dee=_0x4885bf;return this[_0x5d8dee(0x299)];}[_0x4885bf(0xcf)](){const _0x383c3e=_0x4885bf;this[_0x383c3e(0x152)]()[_0x383c3e(0x180)](()=>super[_0x383c3e(0xcf)]());}async[_0x4885bf(0x1e2)](_0x2a1f45){const _0x4350eb=_0x4885bf;return this[_0x4350eb(0x15d)]?null:this['_localStorageService'][_0x4350eb(0x10e)](u[_0x4350eb(0x344)](_0x2a1f45));}async[_0x4885bf(0x340)](_0x51dcfe,_0x5bedd3){const _0x5ba1a5=_0x4885bf;return!!this[_0x5ba1a5(0x196)][_0x5ba1a5(0x1b0)](_0x51dcfe,_0x5bedd3);}['updateOfflineData'](_0x2db197,_0x4d0f06,_0xe5b814,_0x116057){const _0x3fc0a2=_0x4885bf,_0x40ddc4=this[_0x3fc0a2(0xa1)][_0x3fc0a2(0x303)](_0x2db197);this[_0x3fc0a2(0x224)][_0x3fc0a2(0x219)](_0x2db197,{'unitID':_0x2db197,'type':_0x4d0f06,'awaitingChangeset':_0xe5b814,'mutations':_0x116057,'rev':_0x40ddc4}),this[_0x3fc0a2(0x299)][_0x3fc0a2(0x11b)](_0x2db197)||this[_0x3fc0a2(0x30a)](_0x2db197);}[_0x4885bf(0x30a)](_0x19d8e6){const _0x13e57f=_0x4885bf,_0x591634=this[_0x13e57f(0x1a2)]();_0x591634===0x0?this['_saveCache'](_0x19d8e6):this['_saveTaskMap'][_0x13e57f(0x219)](_0x19d8e6,setTimeout(()=>this[_0x13e57f(0x17d)](_0x19d8e6),_0x591634));}['_getSaveTimeout'](){const _0x168a02=_0x4885bf;var _0x40cd6b;return(_0x40cd6b=this[_0x168a02(0x2e5)]['getConfig'](u[_0x168a02(0x108)]))!=null?_0x40cd6b:u['LOCAL_CACHE_INTERVAL'];}[_0x4885bf(0x17d)](_0x12f76c){const _0xf8c1a1=_0x4885bf,_0x151e1d=this['_saveTaskMap'][_0xf8c1a1(0x1b8)](_0x12f76c);return _0x151e1d!==void 0x0&&window[_0xf8c1a1(0x2cc)](_0x151e1d),this['_localStorageService']['setItem'](u['getLocalCacheKey'](_0x12f76c),this[_0xf8c1a1(0x224)][_0xf8c1a1(0x1b8)](_0x12f76c))[_0xf8c1a1(0x180)](()=>this[_0xf8c1a1(0x299)]['delete'](_0x12f76c));}async[_0x4885bf(0x152)](){const _0x38a20b=_0x4885bf,_0x4c3e94=[];this[_0x38a20b(0x299)][_0x38a20b(0x28d)]((_0x3153e6,_0x1f5364)=>{const _0x13d381=_0x38a20b;window['clearTimeout'](_0x3153e6),_0x4c3e94[_0x13d381(0x33a)](this[_0x13d381(0x17d)](_0x1f5364)[_0x13d381(0x180)](()=>{const _0x1163c7=_0x13d381;this[_0x1163c7(0x299)][_0x1163c7(0x2a1)](_0x1f5364);}));}),await Promise[_0x38a20b(0xec)](_0x4c3e94);}};pe=rs([de(0x0,a['IConfigService']),de(0x1,a['ILocalStorageService']),de(0x2,a[_0x4885bf(0xe0)](g[_0x4885bf(0x205)]))],pe);class ke extends a[_0x4885bf(0x1aa)]{constructor(){const _0x99e350=_0x4885bf;super(),_(this,'urlChange$'),this[_0x99e350(0xd8)]=I['fromEvent'](window,_0x99e350(0x2bd))[_0x99e350(0x153)](I[_0x99e350(0x268)](this['dispose$']),I[_0x99e350(0x2ca)](0x1),I[_0x99e350(0x1f0)](void 0x0));}[_0x4885bf(0x185)](_0xa6d63e,_0x3dd023,_0x7a6405=!0x1){const _0x2580a5=_0x4885bf,_0x434541=new URL(window[_0x2580a5(0x193)]['href']);_0x434541[_0x2580a5(0x17f)][_0x2580a5(0x219)](_0xa6d63e,_0x3dd023),_0x7a6405?window['history']['replaceState']('','',_0x434541[_0x2580a5(0x2a0)]()):window[_0x2580a5(0xe2)][_0x2580a5(0xe1)]('','',_0x434541[_0x2580a5(0x2a0)]());}[_0x4885bf(0x1a0)](_0x5e9398,_0x581764=!0x1){const _0x4c5b65=_0x4885bf,_0x4d1dea=new URL(window['location'][_0x4c5b65(0x23b)]);_0x4d1dea[_0x4c5b65(0x17f)][_0x4c5b65(0x2a1)](_0x5e9398),_0x581764?window[_0x4c5b65(0xe2)][_0x4c5b65(0x351)]('','',_0x4d1dea[_0x4c5b65(0x2a0)]()):window[_0x4c5b65(0xe2)][_0x4c5b65(0xe1)]('','',_0x4d1dea['toString']());}['getParam'](_0x1afde7){const _0x987a12=_0x4885bf;var _0x4f2299;return(_0x4f2299=new URL(window[_0x987a12(0x193)][_0x987a12(0x23b)])[_0x987a12(0x17f)][_0x987a12(0x1b8)](_0x1afde7))!=null?_0x4f2299:void 0x0;}}var os=Object[_0x4885bf(0x1a3)],as=Object[_0x4885bf(0xee)],cs=(_0xd3348e,_0x63a818,_0x4fe204)=>_0x63a818 in _0xd3348e?os(_0xd3348e,_0x63a818,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fe204}):_0xd3348e[_0x63a818]=_0x4fe204,ls=(_0x552987,_0x7007b4,_0x32aaf1,_0x182126)=>{const _0xf0f613=_0x4885bf;for(var _0x45d7cd=_0x182126>0x1?void 0x0:_0x182126?as(_0x7007b4,_0x32aaf1):_0x7007b4,_0x4210c9=_0x552987[_0xf0f613(0x12a)]-0x1,_0x137da4;_0x4210c9>=0x0;_0x4210c9--)(_0x137da4=_0x552987[_0x4210c9])&&(_0x45d7cd=_0x137da4(_0x45d7cd)||_0x45d7cd);return _0x45d7cd;},Se=(_0x5357aa,_0x44ecd0)=>(_0x2db922,_0x3e26c6)=>_0x44ecd0(_0x2db922,_0x3e26c6,_0x5357aa),_s=(_0x16d1de,_0x38ef1e,_0x4928c9)=>cs(_0x16d1de,_0x38ef1e+'',_0x4928c9);const hs=_0x4885bf(0x283);exports[_0x4885bf(0x99)]=class extends a[_0x4885bf(0x2b4)]{constructor(_0x4e55d8=Me,_0xbbde2,_0x392b53,_0xa3252e){const _0x3a4297=_0x4885bf;super(),this['_config']=_0x4e55d8,this[_0x3a4297(0x342)]=_0xbbde2,this[_0x3a4297(0x17e)]=_0x392b53,this[_0x3a4297(0x2e5)]=_0xa3252e;const {..._0xf72047}=a['merge']({},Me,this[_0x3a4297(0x29f)]);this[_0x3a4297(0x2e5)]['setConfig'](Yt,_0xf72047);}[_0x4885bf(0x236)](){const _0x363f87=_0x4885bf;this['_registerDependencies'](),this[_0x363f87(0x2d2)]();}[_0x4885bf(0x1ec)](){const _0xc2f44=_0x4885bf;this[_0xc2f44(0x142)]();}[_0x4885bf(0x1cc)](){const _0x3b8262=_0x4885bf;var _0x105445;const _0x4755b5=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x3b8262(0x326)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':pe}],[exports[_0x3b8262(0x197)]],[ie],[Z],[F],[me],[exports[_0x3b8262(0x161)]]];this['_config'][_0x3b8262(0x1de)]&&_0x4755b5[_0x3b8262(0x33a)]([Q]),a[_0x3b8262(0x2c3)](this[_0x3b8262(0x17e)],a['mergeOverrideWithDependencies'](_0x4755b5,(_0x105445=this[_0x3b8262(0x29f)])==null?void 0x0:_0x105445[_0x3b8262(0x1dd)]));}[_0x4885bf(0x142)](){const _0x2465a8=_0x4885bf;this[_0x2465a8(0x354)](this[_0x2465a8(0x342)]['registerRenderModule'](a[_0x2465a8(0x311)]['UNIVER_DOC'],[Ee])),this[_0x2465a8(0x354)](this[_0x2465a8(0x342)][_0x2465a8(0x97)](a['UniverInstanceType'][_0x2465a8(0x28c)],[Ce]));}[_0x4885bf(0x2d2)](){const _0x1930b2=_0x4885bf;a['touchDependencies'](this[_0x1930b2(0x17e)],[[F],[exports[_0x1930b2(0x197)]],[ie],[Z],[exports[_0x1930b2(0x161)]],[ne]]),this['_config'][_0x1930b2(0x1de)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4885bf(0x208),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x4885bf(0x186)](u[_0x4885bf(0x287)]),Se(0x1,C[_0x4885bf(0x1a4)]),Se(0x2,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),Se(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x4885bf(0xee)],Is=(_0x273a17,_0x257e2c,_0x2889d7,_0x305b5d)=>{const _0x41bd53=_0x4885bf;for(var _0x3ab5f4=_0x305b5d>0x1?void 0x0:_0x305b5d?us(_0x257e2c,_0x2889d7):_0x257e2c,_0x2958aa=_0x273a17[_0x41bd53(0x12a)]-0x1,_0x239cf6;_0x2958aa>=0x0;_0x2958aa--)(_0x239cf6=_0x273a17[_0x2958aa])&&(_0x3ab5f4=_0x239cf6(_0x3ab5f4)||_0x3ab5f4);return _0x3ab5f4;},W=(_0x530bfb,_0x23d69f)=>(_0xab5ae2,_0x1feed4)=>_0x23d69f(_0xab5ae2,_0x1feed4,_0x530bfb);exports[_0x4885bf(0x157)]=class extends u[_0x4885bf(0x1ab)]{constructor(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a){super(_0x12716a,_0x36ea8e,_0x12c40a,_0x4d9064,_0x374c9a);}async[_0x4885bf(0x13b)](_0x4d174b){const _0x4b4147=_0x4885bf,_0x4d6a63=await this[_0x4b4147(0x201)](),_0x43860f=this[_0x4b4147(0x1ea)](_0x4d174b,_0x4d6a63);return this['_doCreateSocket'](_0x43860f);}[_0x4885bf(0x1ea)](_0x3fb81e,_0xf0f27d){const _0x4c116c=_0x4885bf,_0x508559=typeof window>'u'?new URL(_0x3fb81e):new URL(_0x3fb81e,window['location'][_0x4c116c(0xf2)]);_0x508559['searchParams'][_0x4c116c(0x219)]('sessionTicket',_0xf0f27d);const _0x3ee56d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4c116c(0x193)][_0x4c116c(0x243)]);return _0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))&&_0x508559[_0x4c116c(0x17f)][_0x4c116c(0x219)](_0x4c116c(0x171),_0x3ee56d[_0x4c116c(0x1b8)](_0x4c116c(0x171))),_0x508559[_0x4c116c(0x2a0)]();}async[_0x4885bf(0x201)](){const _0xf85f=_0x4885bf;var _0x18f849,_0x3e9bc2,_0x102102;const _0x5c93ba=this[_0xf85f(0x2e5)][_0xf85f(0x2c7)](u[_0xf85f(0x324)]),_0x4f05b3=(_0x18f849=_0x5c93ba==null?void 0x0:_0x5c93ba[_0xf85f(0xc7)])!=null?_0x18f849:u[_0xf85f(0x151)];return(_0x102102=(_0x3e9bc2=(await this[_0xf85f(0x195)][_0xf85f(0x1b8)](_0x4f05b3,{'headers':{'Content-Type':_0xf85f(0x102)}}))['body'])==null?void 0x0:_0x3e9bc2[_0xf85f(0x25f)])!=null?_0x102102:'';}},exports[_0x4885bf(0x157)]=Is([W(0x0,a[_0x4885bf(0xe0)](a[_0x4885bf(0x199)])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x4885bf(0x1f2)]),W(0x3,a[_0x4885bf(0x15f)]),W(0x4,g['ISnapshotServerService'])],exports[_0x4885bf(0x157)]);var ds=Object[_0x4885bf(0xee)],Ss=(_0xeb4680,_0x220c80,_0x5431e7,_0xc98825)=>{const _0x17dda0=_0x4885bf;for(var _0x22d254=_0xc98825>0x1?void 0x0:_0xc98825?ds(_0x220c80,_0x5431e7):_0x220c80,_0x5449e9=_0xeb4680[_0x17dda0(0x12a)]-0x1,_0x16fb42;_0x5449e9>=0x0;_0x5449e9--)(_0x16fb42=_0xeb4680[_0x5449e9])&&(_0x22d254=_0x16fb42(_0x22d254)||_0x22d254);return _0x22d254;},fe=(_0x317971,_0x2e0681)=>(_0x51cbc6,_0x3b2504)=>_0x2e0681(_0x51cbc6,_0x3b2504,_0x317971);exports[_0x4885bf(0x343)]=class extends a['Disposable']{constructor(_0x23e02a,_0x31bd5e,_0x2e3d9b){const _0x12db6b=_0x4885bf;super(),this['_instanceService']=_0x23e02a,this['_httpService']=_0x31bd5e,this[_0x12db6b(0x2e5)]=_0x2e3d9b;}async['runOnServer'](_0x4e1bef,_0x56aec8,_0x5e9199,..._0x3d853d){const _0x310a43=_0x4885bf;var _0x1a4ae0,_0x39d8d3,_0x5db95f,_0xffd0f4;const _0x3e2a4a=this['_instanceService'][_0x310a43(0x277)]();if(!_0x3e2a4a)throw new Error(_0x310a43(0x27b));const _0x241cb1=((_0x1a4ae0=this['_configService'][_0x310a43(0x2c7)](u[_0x310a43(0x133)]))!=null?_0x1a4ae0:u[_0x310a43(0x112)])+'/'+_0x4e1bef+_0x310a43(0x1ff)+_0x56aec8,_0xcfc94c=new URL(window[_0x310a43(0x193)][_0x310a43(0x23b)]),_0x21eaf7={'scriptId':_0x4e1bef,'runId':(_0x39d8d3=_0xcfc94c[_0x310a43(0x17f)][_0x310a43(0x1b8)](_0x310a43(0x171)))!=null?_0x39d8d3:'','function':_0x56aec8,'unitId':_0x3e2a4a['getUnitId'](),'argsOfFunction':JSON[_0x310a43(0x192)](_0x3d853d),'invokeId':(_0x5db95f=_0x5e9199[_0x310a43(0x322)])!=null?_0x5db95f:'','executionId':(_0xffd0f4=_0x5e9199[_0x310a43(0x15a)])!=null?_0xffd0f4:''};try{const _0xbf3658=await this[_0x310a43(0x195)]['post'](_0x241cb1,{'body':_0x21eaf7});return _0xbf3658[_0x310a43(0x26e)][_0x310a43(0x1d5)]&&_0xbf3658['body']['error'][_0x310a43(0x226)]!==G['OK']?_0x310a43(0xc0):_0xbf3658[_0x310a43(0x26e)][_0x310a43(0x13c)];}catch{return _0x310a43(0xc0);}}},exports[_0x4885bf(0x343)]=Ss([fe(0x0,a[_0x4885bf(0x2b8)]),fe(0x1,a[_0x4885bf(0xe0)](x['HTTPService'])),fe(0x2,a[_0x4885bf(0x1f2)])],exports[_0x4885bf(0x343)]);const we=0x7530,ye=_0x4885bf(0xbd);class fs extends a['Disposable']{constructor(){const _0x12b11d=_0x4885bf;super(),_(this,_0x12b11d(0x1a1),a[_0x12b11d(0x2f0)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x12b11d(0xe7),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x12b11d(0x1c1),new Map()),_(this,_0x12b11d(0xd5),new Map()),this[_0x12b11d(0x2a5)]();}[_0x4885bf(0xcf)](){const _0x2e2f37=_0x4885bf;super[_0x2e2f37(0xcf)](),this[_0x2e2f37(0x1c1)][_0x2e2f37(0x28d)]((_0x56de1b,_0xf54403)=>this['_removeClearOtherTimer'](_0xf54403)),this[_0x2e2f37(0x139)]&&window[_0x2e2f37(0x295)](this[_0x2e2f37(0x139)]);}[_0x4885bf(0x338)](_0x333b94){const _0x2f1f84=_0x4885bf;return this[_0x2f1f84(0x264)](_0x333b94)[_0x2f1f84(0x153)](I[_0x2f1f84(0x2c6)]());}[_0x4885bf(0x1e7)](_0x37e580){const _0x2c7bc4=_0x4885bf;this[_0x2c7bc4(0xd1)]['size']===0x0&&this[_0x2c7bc4(0x2a4)](),this[_0x2c7bc4(0xd1)][_0x2c7bc4(0xf1)](_0x37e580),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37e580],'isForwarded':!0x1});}[_0x4885bf(0x1c9)](_0x79e8c9){const _0x11a83f=_0x4885bf;this[_0x11a83f(0xd1)][_0x11a83f(0x2a1)](_0x79e8c9),this[_0x11a83f(0xd1)][_0x11a83f(0x2ef)]===0x0&&this[_0x11a83f(0x139)]&&window[_0x11a83f(0x295)](this['_heartbeatTimer']);}['_init'](){const _0x55e67b=_0x4885bf;this[_0x55e67b(0x354)](a['toDisposable'](I[_0x55e67b(0x1e5)](window,'storage')[_0x55e67b(0x22c)](_0x573f79=>{const _0x5c34e6=_0x55e67b;if(_0x573f79[_0x5c34e6(0xb1)]!==ye||!_0x573f79[_0x5c34e6(0xa2)])return;const _0x1a5a99=JSON[_0x5c34e6(0x94)](_0x573f79['newValue']);this[_0x5c34e6(0x32f)](_0x1a5a99);}))),window[_0x55e67b(0x29c)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x55e67b(0xd1)])}));}[_0x4885bf(0x32f)](_0x372f6b){const _0xce6df8=_0x4885bf;switch(_0x372f6b[_0xce6df8(0x360)]){case 0x0:this[_0xce6df8(0x11d)](_0x372f6b);break;case 0x1:this[_0xce6df8(0x2a6)](_0x372f6b);break;case 0x2:this[_0xce6df8(0x100)](_0x372f6b);break;}}[_0x4885bf(0x11d)](_0x340af4){const _0x36489c=_0x4885bf,{unitIDs:_0x4a8a1a,memberID:_0x12c92b,isForwarded:_0x48b00d}=_0x340af4;_0x4a8a1a['forEach'](_0xc6758d=>{const _0x3799b0=_0x30e5;if(!_0x48b00d&&this['_unitOnClients']['has'](_0xc6758d)&&this[_0x3799b0(0x264)](_0xc6758d)[_0x3799b0(0x1a7)](u[_0x3799b0(0x19d)][_0x3799b0(0x266)]),!this[_0x3799b0(0xe7)][_0x3799b0(0x11b)](_0xc6758d)||!this['_unitOnClients'][_0x3799b0(0x1b8)](_0xc6758d)['has'](_0x12c92b)){const _0x310695=this[_0x3799b0(0xe7)]['get'](_0xc6758d)||new Set();_0x310695[_0x3799b0(0xf1)](_0x12c92b),this[_0x3799b0(0xe7)]['set'](_0xc6758d,_0x310695),this[_0x3799b0(0x16e)](_0x12c92b);}}),_0x48b00d||this[_0x36489c(0x1ae)]({'type':0x0,'memberID':this[_0x36489c(0x1a1)],'unitIDs':[...this[_0x36489c(0xd1)]],'isForwarded':!0x0});}[_0x4885bf(0x16e)](_0x56181a){const _0x364d20=_0x4885bf;this[_0x364d20(0xa7)](_0x56181a);const _0xcd73ad=window['setTimeout'](()=>{const _0x2944da=_0x364d20;this[_0x2944da(0xe7)][_0x2944da(0x28d)](_0x5d83da=>{_0x5d83da['delete'](_0x56181a);});},we*0x2);this[_0x364d20(0x1c1)][_0x364d20(0x219)](_0x56181a,_0xcd73ad);}[_0x4885bf(0xa7)](_0x444405){const _0x2ae62a=_0x4885bf;if(this[_0x2ae62a(0x1c1)]['has'](_0x444405)){const _0x401f05=this[_0x2ae62a(0x1c1)][_0x2ae62a(0x1b8)](_0x444405);_0x401f05&&window[_0x2ae62a(0x2cc)](_0x401f05),this['_clearOtherTimers'][_0x2ae62a(0x219)](_0x444405,null);}}['_handleLeaveEvent'](_0x4b5d86){const _0xedcd54=_0x4885bf,{memberID:_0x3878db,unitIDs:_0x51525b}=_0x4b5d86;_0x51525b[_0xedcd54(0x28d)](_0x2fbc00=>{const _0x1c8dc7=_0xedcd54;var _0x440aad;const _0x40072d=this[_0x1c8dc7(0xe7)][_0x1c8dc7(0x1b8)](_0x2fbc00);_0x40072d&&(_0x40072d[_0x1c8dc7(0x2a1)](_0x3878db),(_0x440aad=this[_0x1c8dc7(0x264)](_0x2fbc00))==null||_0x440aad[_0x1c8dc7(0x1a7)](_0x40072d[_0x1c8dc7(0x2ef)]===0x0?u['UnitStatus'][_0x1c8dc7(0x16d)]:u[_0x1c8dc7(0x19d)][_0x1c8dc7(0x266)]));}),this[_0xedcd54(0xa7)](_0x3878db);}[_0x4885bf(0x100)](_0x5089ab){const _0x125471=_0x4885bf;this[_0x125471(0x16e)](_0x5089ab[_0x125471(0x187)]);}[_0x4885bf(0x1ae)](_0x485851){const _0x3d6991=_0x4885bf;localStorage[_0x3d6991(0x1b0)](ye,JSON[_0x3d6991(0x192)](_0x485851));}[_0x4885bf(0x2a4)](){const _0x1888e2=_0x4885bf;this[_0x1888e2(0x139)]=window['setInterval'](()=>{const _0x42e6fe=_0x1888e2;this['_send']({'type':0x2,'memberID':this[_0x42e6fe(0x1a1)]});},we);}['_ensureSubject'](_0x38d8ce){const _0xce93e7=_0x4885bf;return this[_0xce93e7(0xd5)][_0xce93e7(0x11b)](_0x38d8ce)||this[_0xce93e7(0xd5)][_0xce93e7(0x219)](_0x38d8ce,new I['BehaviorSubject'](u[_0xce93e7(0x19d)][_0xce93e7(0x16d)])),this[_0xce93e7(0xd5)]['get'](_0x38d8ce);}}exports[_0x4885bf(0x106)]=Oe,exports[_0x4885bf(0x114)]=je,exports[_0x4885bf(0x241)]=fs,exports[_0x4885bf(0x355)]=ke;
|