@univerjs-pro/collaboration-client-ui 0.12.2-nightly.202511241159 → 0.12.2-nightly.202511290732
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 +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x931b1e=_0x1e77;(function(_0x35e091,_0x3e593f){const _0x46398e=_0x1e77,_0x818e63=_0x35e091();while(!![]){try{const _0x4b3b49=-parseInt(_0x46398e(0x241))/0x1*(parseInt(_0x46398e(0xe5))/0x2)+parseInt(_0x46398e(0x22b))/0x3*(-parseInt(_0x46398e(0x2a6))/0x4)+-parseInt(_0x46398e(0x1d2))/0x5+parseInt(_0x46398e(0x23f))/0x6+parseInt(_0x46398e(0xed))/0x7*(parseInt(_0x46398e(0x27b))/0x8)+-parseInt(_0x46398e(0x21c))/0x9+parseInt(_0x46398e(0x267))/0xa*(parseInt(_0x46398e(0x121))/0xb);if(_0x4b3b49===_0x3e593f)break;else _0x818e63['push'](_0x818e63['shift']());}catch(_0x27942a){_0x818e63['push'](_0x818e63['shift']());}}}(_0x1264,0x43368));var Xe=Object[_0x931b1e(0x109)],Ke=(_0x3f994d,_0x22760f,_0x2d7746)=>_0x22760f in _0x3f994d?Xe(_0x3f994d,_0x22760f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d7746}):_0x3f994d[_0x22760f]=_0x2d7746,_=(_0x5e0ec5,_0x300867,_0x592009)=>Ke(_0x5e0ec5,typeof _0x300867!=_0x931b1e(0xf9)?_0x300867+'':_0x300867,_0x592009);Object['defineProperty'](exports,Symbol['toStringTag'],{'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:_0x588528,..._0x2a8780}){const _0x4021ee=_0x931b1e,{icon:_0x2564d5,id:_0x1604f5,className:_0x5ce309,extend:_0x526d05,..._0x170c41}=_0x2a8780,_0x48004e=(_0x4021ee(0x1fc)+_0x1604f5+'\x20'+(_0x5ce309||''))[_0x4021ee(0xd4)](),_0x48dfb0=A[_0x4021ee(0x305)]('_'+Qe());return $e(_0x2564d5,''+_0x1604f5,{'defIds':_0x2564d5[_0x4021ee(0x159)],'idSuffix':_0x48dfb0[_0x4021ee(0x11d)]},{'ref':_0x588528,'className':_0x48004e,..._0x170c41},_0x526d05);}function $e(_0x48eede,_0x5c778a,_0x127602,_0x2234ab,_0x59e6ae){const _0x577840=_0x931b1e;return A[_0x577840(0x2a0)](_0x48eede[_0x577840(0xb4)],{'key':_0x5c778a,...Je(_0x48eede,_0x127602,_0x59e6ae),..._0x2234ab},(Ze(_0x48eede,_0x127602)[_0x577840(0x2b7)]||[])[_0x577840(0x21a)]((_0xd919f,_0x1b06fe)=>$e(_0xd919f,_0x5c778a+'-'+_0x48eede[_0x577840(0xb4)]+'-'+_0x1b06fe,_0x127602,void 0x0,_0x59e6ae)));}function Je(_0x492b71,_0x38c752,_0x488071){const _0x19db44=_0x931b1e,_0x9684c2={..._0x492b71[_0x19db44(0x1bd)]};_0x488071!=null&&_0x488071[_0x19db44(0x2d5)]&&_0x9684c2[_0x19db44(0x230)]===_0x19db44(0x2d5)&&(_0x9684c2[_0x19db44(0x230)]=_0x488071[_0x19db44(0x2d5)]),_0x492b71[_0x19db44(0xb4)]===_0x19db44(0x1f9)&&_0x9684c2['id']&&(_0x9684c2['id']=_0x9684c2['id']+_0x38c752[_0x19db44(0x221)]),Object['entries'](_0x9684c2)[_0x19db44(0x1d5)](([_0x167961,_0x4dea15])=>{const _0x4291ed=_0x19db44;_0x167961===_0x4291ed(0x1f9)&&typeof _0x4dea15=='string'&&(_0x9684c2[_0x167961]=_0x4dea15[_0x4291ed(0xfd)](/url\(#(.*)\)/,_0x4291ed(0x327)+_0x38c752[_0x4291ed(0x221)]+')'));});const {defIds:_0x5a3779}=_0x38c752;return!_0x5a3779||_0x5a3779[_0x19db44(0x180)]===0x0||(_0x492b71[_0x19db44(0xb4)]==='use'&&_0x9684c2[_0x19db44(0x284)]&&(_0x9684c2[_0x19db44(0x284)]=_0x9684c2['xlink:href']+_0x38c752['idSuffix']),Object['entries'](_0x9684c2)[_0x19db44(0x1d5)](([_0x4a20f8,_0x18d3b4])=>{const _0x513fb5=_0x19db44;typeof _0x18d3b4==_0x513fb5(0x28d)&&(_0x9684c2[_0x4a20f8]=_0x18d3b4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x38c752[_0x513fb5(0x221)]+')'));})),_0x9684c2;}function Ze(_0x34d653,_0x88c4e0){const _0x18e14d=_0x931b1e;var _0x239e76;const {defIds:_0x1da8ed}=_0x88c4e0;return!_0x1da8ed||_0x1da8ed['length']===0x0?_0x34d653:_0x34d653[_0x18e14d(0xb4)]===_0x18e14d(0x1ea)&&((_0x239e76=_0x34d653[_0x18e14d(0x2b7)])!=null&&_0x239e76[_0x18e14d(0x180)])?{..._0x34d653,'children':_0x34d653[_0x18e14d(0x2b7)][_0x18e14d(0x21a)](_0x23ffd7=>typeof _0x23ffd7['attrs']['id']==_0x18e14d(0x28d)&&_0x1da8ed&&_0x1da8ed['includes'](_0x23ffd7[_0x18e14d(0x1bd)]['id'])?{..._0x23ffd7,'attrs':{..._0x23ffd7[_0x18e14d(0x1bd)],'id':_0x23ffd7[_0x18e14d(0x1bd)]['id']+_0x88c4e0[_0x18e14d(0x221)]}}:_0x23ffd7)}:_0x34d653;}function _0x1e77(_0x3e2950,_0x36a812){const _0x12642e=_0x1264();return _0x1e77=function(_0x1e775f,_0xf6a0ef){_0x1e775f=_0x1e775f-0x9d;let _0x263c89=_0x12642e[_0x1e775f];return _0x263c89;},_0x1e77(_0x3e2950,_0x36a812);}function Qe(){const _0xdbcca0=_0x931b1e;return Math[_0xdbcca0(0x2c5)]()[_0xdbcca0(0x328)](0x24)['substring'](0x2,0x8);}Te[_0x931b1e(0x1ad)]=_0x931b1e(0x1e7);const et={'tag':_0x931b1e(0x152),'attrs':{'xmlns':_0x931b1e(0x1b0),'fill':_0x931b1e(0x16e),'viewBox':_0x931b1e(0x29d),'width':_0x931b1e(0x34a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x931b1e(0x181)},'children':[{'tag':_0x931b1e(0x16b),'attrs':{'stroke':_0x931b1e(0x250),'d':_0x931b1e(0xfa),'strokeLinecap':_0x931b1e(0x2d9),'strokeLinejoin':_0x931b1e(0x2d9),'strokeWidth':1.2}}]},{'tag':_0x931b1e(0x1ea),'attrs':{},'children':[{'tag':_0x931b1e(0x148),'attrs':{'id':_0x931b1e(0x227)},'children':[{'tag':_0x931b1e(0x16b),'attrs':{'fill':_0x931b1e(0x10e),'d':_0x931b1e(0x2f1)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A['forwardRef'](function(_0x54c4e0,_0x425735){const _0x5f5a70=_0x931b1e;return A[_0x5f5a70(0x2a0)](Te,Object[_0x5f5a70(0x17c)]({},_0x54c4e0,{'id':_0x5f5a70(0xbf),'ref':_0x425735,'icon':et}));});xe[_0x931b1e(0x1ad)]=_0x931b1e(0x293);const tt={'tag':_0x931b1e(0x152),'attrs':{'xmlns':_0x931b1e(0x1b0),'fill':_0x931b1e(0x16e),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x931b1e(0x34a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x931b1e(0x250),'d':_0x931b1e(0x2b8),'strokeLinecap':_0x931b1e(0x2d9),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x931b1e(0x148),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x931b1e(0x311)}}]}]}],'defIds':[_0x931b1e(0x28a)]},Be=A[_0x931b1e(0x2b6)](function(_0x585946,_0x1197fc){const _0x51a60b=_0x931b1e;return A['createElement'](Te,Object[_0x51a60b(0x17c)]({},_0x585946,{'id':'on-line-icon','ref':_0x1197fc,'icon':tt}));});Be['displayName']=_0x931b1e(0x199);function st(_0x53f68b){const _0x4daee8=_0x931b1e;switch(_0x53f68b){case u['CollaborationStatus'][_0x4daee8(0x1dd)]:return _0x4daee8(0x15d);case u[_0x4daee8(0x10b)][_0x4daee8(0x26d)]:return'collabStatus.conflict';case u[_0x4daee8(0x10b)][_0x4daee8(0x32a)]:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x4daee8(0xa2)]:return _0x4daee8(0x12b);case u[_0x4daee8(0x10b)][_0x4daee8(0x146)]:case u[_0x4daee8(0x10b)][_0x4daee8(0x35b)]:return _0x4daee8(0x21e);case u[_0x4daee8(0x10b)][_0x4daee8(0x17b)]:case u['CollaborationStatus']['PENDING']:return _0x4daee8(0x2c3);}}function it(_0x49051c){const _0x1581fb=_0x931b1e,{status$:_0x5a8700}=_0x49051c,_0x5a16d0=O['useObservable'](_0x5a8700,u[_0x1581fb(0x10b)][_0x1581fb(0xa2)]),_0xc16aa=O[_0x1581fb(0x2dc)](a[_0x1581fb(0xb5)]),_0x7323af=O[_0x1581fb(0x2dc)](u['CollaborationSessionService']),_0x347ffd=_0x5a16d0!==u[_0x1581fb(0x10b)][_0x1581fb(0x1dd)],_0x5526a1=_0xc16aa['t'](st(_0x5a16d0)),_0x1e8534=_0x347ffd?M[_0x1581fb(0x2dd)](Be,{}):M[_0x1581fb(0x2dd)](xe,{}),_0xbce87a=A[_0x1581fb(0x326)](()=>{const _0x5ab253=_0x1581fb;_0x347ffd||_0x7323af[_0x5ab253(0x188)]();},[_0x347ffd,_0x7323af]);function _0x40870c(){const _0x33fa16=_0x1581fb;return M['jsxs'](_0x33fa16(0x1e5),{'className':'univer-flex\x20univer-items-center','onClick':_0xbce87a,'children':[M['jsx'](_0x33fa16(0x1e5),{'className':T[_0x33fa16(0x1ff)](_0x33fa16(0xc0),{'univer-text-green-500':_0x347ffd,'univer-text-red-500':!_0x347ffd}),'children':_0x1e8534}),M[_0x33fa16(0x2dd)](_0x33fa16(0x1e5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5526a1})]});}return _0x347ffd?_0x40870c():M['jsx'](T['Tooltip'],{'title':_0xc16aa['t'](_0x1581fb(0x2c6)),'children':_0x40870c()});}var nt=Object[_0x931b1e(0x304)],rt=(_0x45a122,_0x53e0fc,_0x529f6b,_0x29fedb)=>{const _0x5c96f4=_0x931b1e;for(var _0x2e35dc=_0x29fedb>0x1?void 0x0:_0x29fedb?nt(_0x53e0fc,_0x529f6b):_0x53e0fc,_0xa5f5ee=_0x45a122[_0x5c96f4(0x180)]-0x1,_0x38a57d;_0xa5f5ee>=0x0;_0xa5f5ee--)(_0x38a57d=_0x45a122[_0xa5f5ee])&&(_0x2e35dc=_0x38a57d(_0x2e35dc)||_0x2e35dc);return _0x2e35dc;},K=(_0x46a5f8,_0x5b9f5a)=>(_0x27d908,_0xa4a432)=>_0x5b9f5a(_0x27d908,_0xa4a432,_0x46a5f8);exports[_0x931b1e(0x265)]=class extends a[_0x931b1e(0x22d)]{constructor(_0x59f059,_0x294d00,_0x58a446,_0x25ff76){const _0x56fc92=_0x931b1e;super(),_(this,_0x56fc92(0x123),new I[(_0x56fc92(0x346))](u[_0x56fc92(0x10b)][_0x56fc92(0xa2)])),(this['_univerInstanceService']=_0x59f059,this[_0x56fc92(0x251)]=_0x294d00,this[_0x56fc92(0x2fb)]=_0x58a446,this[_0x56fc92(0x20f)]=_0x25ff76,this[_0x56fc92(0x325)](),this[_0x56fc92(0x299)]());}[_0x931b1e(0x299)](){const _0x4c002a=_0x931b1e;this['disposeWithMe'](this[_0x4c002a(0x150)][_0x4c002a(0x32e)][_0x4c002a(0x154)](I[_0x4c002a(0x193)](()=>{const _0x54650f=_0x4c002a,_0xd76664=this[_0x54650f(0x150)]['getFocusedUnit']();return _0xd76664?this[_0x54650f(0x2fb)][_0x54650f(0x30a)](_0xd76664[_0x54650f(0x25a)]()):I['of'](null);}),I[_0x4c002a(0x193)](_0xa2e89a=>_0xa2e89a?_0xa2e89a[_0x4c002a(0x301)]:I['of'](u[_0x4c002a(0x10b)][_0x4c002a(0xa2)])))[_0x4c002a(0x143)](_0x8ad81b=>{const _0x3f5a05=_0x4c002a;this['_status$'][_0x3f5a05(0x194)](_0x8ad81b);}));}['_initStatusComponent'](){const _0x162bf4=_0x931b1e;this[_0x162bf4(0x167)](this[_0x162bf4(0x20f)][_0x162bf4(0x300)](O['BuiltInUIPart'][_0x162bf4(0x253)],()=>O[_0x162bf4(0x2d1)](ot({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports[_0x931b1e(0x265)]=rt([K(0x0,a[_0x931b1e(0x1d0)]),K(0x1,a[_0x931b1e(0x1da)](a['Injector'])),K(0x2,a['Inject'](u[_0x931b1e(0x31b)])),K(0x3,O[_0x931b1e(0x219)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x5bed72){const {status$:_0x1700d9}=_0x5bed72;return function(){const _0x526180=_0x1e77;return M[_0x526180(0x2dd)](it,{'status$':_0x1700d9});};}const Oe=a[_0x931b1e(0x23a)](_0x931b1e(0x2cd));var at=Object['getOwnPropertyDescriptor'],ct=(_0x30856c,_0x52fadf,_0x2fc261,_0x57a06e)=>{const _0x345f2d=_0x931b1e;for(var _0x424aff=_0x57a06e>0x1?void 0x0:_0x57a06e?at(_0x52fadf,_0x2fc261):_0x52fadf,_0x2b67fc=_0x30856c[_0x345f2d(0x180)]-0x1,_0x1a8fb9;_0x2b67fc>=0x0;_0x2b67fc--)(_0x1a8fb9=_0x30856c[_0x2b67fc])&&(_0x424aff=_0x1a8fb9(_0x424aff)||_0x424aff);return _0x424aff;},Y=(_0x3f966b,_0x4ab4c0)=>(_0x173d52,_0x400c98)=>_0x4ab4c0(_0x173d52,_0x400c98,_0x3f966b);exports[_0x931b1e(0x2ad)]=class extends a[_0x931b1e(0x29e)]{constructor(_0x28f0e1,_0x287d47,_0x26d1f4,_0x3406e3,_0x5b309f){const _0x12f0b1=_0x931b1e;super(),this[_0x12f0b1(0x157)]=_0x28f0e1,this[_0x12f0b1(0x2d3)]=_0x287d47,this[_0x12f0b1(0x108)]=_0x26d1f4,this['_dataLoaderService']=_0x3406e3,_0x5b309f?_0x5b309f==null||_0x5b309f[_0x12f0b1(0x207)]()[_0x12f0b1(0xfc)](()=>this[_0x12f0b1(0xb0)]()):(this[_0x12f0b1(0x2d3)][_0x12f0b1(0xcb)]('[CollaborationDataLoaderController]',_0x12f0b1(0x2db)),this['_init']());}async['_init'](){const _0x30c9db=_0x931b1e,_0xaa53ce=this[_0x30c9db(0x157)][_0x30c9db(0x292)](_0x30c9db(0xd2)),_0x3313cb=this['_urlService']['getParam'](_0x30c9db(0x175)),_0x24b782=this[_0x30c9db(0x157)][_0x30c9db(0x292)](_0x30c9db(0x1c2));if(!_0xaa53ce||!_0x3313cb){this[_0x30c9db(0x2d3)]['debug'](_0x30c9db(0x169),_0x30c9db(0xe6));return;}const _0x499083=await this[_0x30c9db(0xe1)]['loadUnit'](_0xaa53ce,Number(_0x3313cb),_0x24b782);_0x499083&&_0x499083 instanceof a[_0x30c9db(0x361)]&&this['_setupSubUnitSync'](_0x499083);}async[_0x931b1e(0x1b4)](_0x5db39e){const _0x1ca12c=_0x931b1e;await this[_0x1ca12c(0x2c7)](_0x5db39e),_0x5db39e['activeSheet$'][_0x1ca12c(0x154)](I[_0x1ca12c(0x17a)](this[_0x1ca12c(0x20a)]))[_0x1ca12c(0x143)](_0x2fe0df=>{const _0xefe854=_0x1ca12c;_0x2fe0df&&this[_0xefe854(0x231)](_0x2fe0df);}),this[_0x1ca12c(0x157)]['urlChange$'][_0x1ca12c(0x154)](I[_0x1ca12c(0x17a)](this[_0x1ca12c(0x20a)]))[_0x1ca12c(0x143)](()=>this['_updateSubUnitFromURLParams'](_0x5db39e));}[_0x931b1e(0x231)](_0x20a8bc,_0x36da6a=!0x1){const _0x15c54f=_0x931b1e,_0x465840=this[_0x15c54f(0x157)][_0x15c54f(0x292)](_0x15c54f(0x1c2));_0x20a8bc[_0x15c54f(0x2b9)]()!==_0x465840&&this['_urlService']['setParam']('subunit',_0x20a8bc[_0x15c54f(0x2b9)](),_0x36da6a);}async['_updateSubUnitFromURLParams'](_0x278446){const _0x49a786=_0x931b1e;var _0x42ab8c;const _0x50b20e=this['_urlService'][_0x49a786(0x292)](_0x49a786(0x1c2));if(!_0x50b20e||!_0x278446[_0x49a786(0x13f)](_0x50b20e)){const _0x206f4d=_0x278446['getUnhiddenWorksheets']()[0x0],_0x187305=_0x278446['getSheetBySheetId'](_0x206f4d);if(!_0x187305)return;this[_0x49a786(0x231)](_0x187305,!0x0),await this[_0x49a786(0x108)][_0x49a786(0xcd)](v[_0x49a786(0xea)]['id'],{'unitId':_0x278446[_0x49a786(0x25a)](),'subUnitId':_0x206f4d});return;}((_0x42ab8c=_0x278446[_0x49a786(0xfb)]())==null?void 0x0:_0x42ab8c[_0x49a786(0x2b9)]())!==_0x50b20e&&await this[_0x49a786(0x108)][_0x49a786(0xcd)](v[_0x49a786(0xea)]['id'],{'unitId':_0x278446[_0x49a786(0x25a)](),'subUnitId':_0x50b20e});}},exports[_0x931b1e(0x2ad)]=ct([Y(0x0,Oe),Y(0x1,a[_0x931b1e(0x9e)]),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x931b1e(0x118)])),Y(0x4,a['Optional'](qe[_0x931b1e(0x11a)]))],exports[_0x931b1e(0x2ad)]);var lt=Object[_0x931b1e(0x304)],_t=(_0x425b40,_0x2609d5,_0x46c432,_0x35e8bb)=>{for(var _0x1cf51b=_0x35e8bb>0x1?void 0x0:_0x35e8bb?lt(_0x2609d5,_0x46c432):_0x2609d5,_0x51500f=_0x425b40['length']-0x1,_0x557997;_0x51500f>=0x0;_0x51500f--)(_0x557997=_0x425b40[_0x51500f])&&(_0x1cf51b=_0x557997(_0x1cf51b)||_0x1cf51b);return _0x1cf51b;},De=(_0x405a95,_0x43293c)=>(_0x51bd0c,_0x415544)=>_0x43293c(_0x51bd0c,_0x415544,_0x405a95);let me=class extends a[_0x931b1e(0x29e)]{constructor(_0x202cd8,_0x245990){const _0xfc6b0e=_0x931b1e;super(),this[_0xfc6b0e(0xd7)]=_0x202cd8,this['_imageIoService']=_0x245990,this[_0xfc6b0e(0xb0)]();}[_0x931b1e(0xb0)](){const _0x1fde34=_0x931b1e,_0x5b5169=this;this[_0x1fde34(0x167)](this[_0x1fde34(0xd7)][_0x1fde34(0x2fa)]({'onBeforePasteImage':async _0x2e41d6=>{const _0x55e250=_0x1fde34,_0x2fa5df=await _0x5b5169[_0x55e250(0xd0)][_0x55e250(0xc3)](_0x2e41d6);return _0x2fa5df?{'source':_0x2fa5df['source'],'imageSourceType':_0x2fa5df[_0x55e250(0x141)]}:null;}}));}};me=_t([De(0x0,p[_0x931b1e(0x16f)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x931b1e(0x2f2),_0x931b1e(0x178),_0x931b1e(0x2ab),_0x931b1e(0x1f0),_0x931b1e(0x262),_0x931b1e(0xe0)];class Re extends a['Disposable']{constructor(){const _0x76532d=_0x931b1e;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x76532d(0xad),0x0);}['assignAColorForMemberID'](_0xb150a7){const _0x11cb1d=_0x931b1e;if(this[_0x11cb1d(0x345)][_0x11cb1d(0x264)](_0xb150a7))return this[_0x11cb1d(0x345)][_0x11cb1d(0x25b)](_0xb150a7);const _0x17e8e4=Ne[this[_0x11cb1d(0xad)]];return this[_0x11cb1d(0xad)]=(this[_0x11cb1d(0xad)]+0x1)%Ne[_0x11cb1d(0x180)],this['_assignedColors'][_0x11cb1d(0x303)](_0xb150a7,_0x17e8e4),_0x17e8e4;}}function Fe(_0x25ad33){const _0x1096d5=_0x931b1e;let _0x583a17='';for(const _0x5306ea of _0x25ad33){const {startOffset:_0x51baec,endOffset:_0x16b237,isActive:_0x40c11b,rangeType:_0x2af3d9,segmentId:_0x2c82fa,segmentPage:_0x5d6b67}=_0x5306ea;_0x583a17[_0x1096d5(0x180)]&&(_0x583a17+=','),_0x583a17+=_0x51baec+':'+_0x16b237+':'+(_0x40c11b?'1':'0')+':'+_0x2af3d9+':'+_0x2c82fa+':'+_0x5d6b67;}return _0x583a17;}function ht(_0x2d743a){const _0x792541=_0x931b1e,_0x1be7bc=_0x2d743a['split'](','),_0x1b0aa4=[];for(const _0x221ef2 of _0x1be7bc){const [_0x347f65,_0x589367,_0xc08520,_0x294b2e,_0x339205,_0x25310d]=_0x221ef2[_0x792541(0x2ea)](':');_0x1b0aa4['push']({'startOffset':Number(_0x347f65),'endOffset':Number(_0x589367),'collapsed':_0x347f65===_0x589367,'isActive':_0xc08520==='1','rangeType':_0x294b2e===a[_0x792541(0x11c)][_0x792541(0x11f)]?a[_0x792541(0x11c)][_0x792541(0x11f)]:a[_0x792541(0x11c)][_0x792541(0x336)],'segmentId':typeof _0x339205==_0x792541(0x28d)?String(_0x339205):'','segmentPage':Number(_0x25310d!=null?_0x25310d:-0x1)});}return _0x1b0aa4[_0x792541(0x308)](_0x24c316=>_0x24c316['isActive'])||(_0x1b0aa4[0x0][_0x792541(0x367)]=!0x0),_0x1b0aa4;}class be extends a[_0x931b1e(0x29e)]{constructor(){const _0x401e55=_0x931b1e;super(...arguments),_(this,_0x401e55(0x321),new I[(_0x401e55(0x346))](null)),_(this,_0x401e55(0x21b),this['_collabCursorState$'][_0x401e55(0xcc)]());}['syncEditingCollabCursor'](_0x1eaa74){const _0x57ea47=_0x931b1e,{unitID:_0xa10899,memberID:_0x196118,textRanges:_0x503419}=_0x1eaa74,_0x37db8e=Fe(_0x503419);if(_0x37db8e==='')return;const _0x10f82c={'unitID':_0xa10899,'memberID':_0x196118,'selection':_0x37db8e};this[_0x57ea47(0x321)][_0x57ea47(0x194)](_0x10f82c);}}var ut=Object[_0x931b1e(0x304)],It=(_0x37c661,_0x2fcb8e,_0x2b198b,_0x782763)=>{const _0x33e0d2=_0x931b1e;for(var _0x37403c=_0x782763>0x1?void 0x0:_0x782763?ut(_0x2fcb8e,_0x2b198b):_0x2fcb8e,_0x29b0f7=_0x37c661[_0x33e0d2(0x180)]-0x1,_0x5ca22d;_0x29b0f7>=0x0;_0x29b0f7--)(_0x5ca22d=_0x37c661[_0x29b0f7])&&(_0x37403c=_0x5ca22d(_0x37403c)||_0x37403c);return _0x37403c;},U=(_0xa1006c,_0x1a917b)=>(_0x2e5de5,_0x33aa44)=>_0x1a917b(_0x2e5de5,_0x33aa44,_0xa1006c);const dt=0x12c,St=0x64;let ve=class extends a[_0x931b1e(0x29e)]{constructor(_0x342d23,_0x16fc4,_0x18808a,_0x52c7e4,_0x3f7120,_0x3a6c88,_0x3c3553,_0x421304,_0x3b2d57){const _0x441d45=_0x931b1e;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x441d45(0x24d),new I[(_0x441d45(0x346))](new Map())),_(this,'cursorInfo$',this[_0x441d45(0x24d)][_0x441d45(0xcc)]()),_(this,_0x441d45(0x271),new I[(_0x441d45(0x346))]([])),_(this,_0x441d45(0x182),this[_0x441d45(0x271)][_0x441d45(0x154)](I[_0x441d45(0x2c2)](dt))),_(this,_0x441d45(0x32d),a[_0x441d45(0x276)](_0xbdcae0=>{const _0xef1486=_0x441d45,_0x77234a={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0xef1486(0x261)],'memberID':this['_session'][_0xef1486(0x31a)](),'selection':Fe(_0xbdcae0)}};this['_session'][_0xef1486(0x23d)](_0x77234a,this['unitID']);},St)),(this[_0x441d45(0x261)]=_0x342d23,this[_0x441d45(0x2bb)]=_0x16fc4,this[_0x441d45(0x251)]=_0x18808a,this[_0x441d45(0xc9)]=_0x52c7e4,this[_0x441d45(0x2ba)]=_0x3f7120,this[_0x441d45(0x2ed)]=_0x3a6c88,this['_transformService']=_0x3c3553,this[_0x441d45(0x150)]=_0x421304,this[_0x441d45(0x108)]=_0x3b2d57);}get[_0x931b1e(0x128)](){const _0x5d2fdd=_0x931b1e;return this['_cursorInfo$'][_0x5d2fdd(0x33a)]();}get[_0x931b1e(0x201)](){const _0x14f7b1=_0x931b1e;return this[_0x14f7b1(0x271)][_0x14f7b1(0x33a)]();}[_0x931b1e(0x151)](){const _0x27efb5=_0x931b1e;super[_0x27efb5(0x151)](),this['_cursorInfo$'][_0x27efb5(0x194)](new Map()),this[_0x27efb5(0x24d)][_0x27efb5(0x25d)](),this['_roomMembers$'][_0x27efb5(0x194)]([]),this[_0x27efb5(0x271)][_0x27efb5(0x25d)]();}[_0x931b1e(0xcf)](){const _0x3d4b93=_0x931b1e;this[_0x3d4b93(0xb0)]||(this['_init']=!0x0,this[_0x3d4b93(0x2bb)][_0x3d4b93(0x33f)]['pipe'](I[_0x3d4b93(0x17a)](this[_0x3d4b93(0x20a)]))[_0x3d4b93(0x143)](_0x249e42=>{const _0x5a9948=_0x3d4b93;_0x249e42===u['SessionStatus'][_0x5a9948(0xca)]?this['_toggleOnline']():this[_0x5a9948(0x20c)]();}),this['_session'][_0x3d4b93(0x1c7)]['pipe'](I[_0x3d4b93(0x17a)](this['dispose$']))[_0x3d4b93(0x143)](_0x513317=>{const _0x3e4171=_0x3d4b93,_0x2e5bed=_0x513317['eventID'];_0x2e5bed===g[_0x3e4171(0x295)][_0x3e4171(0x233)]&&this[_0x3e4171(0x1a2)](_0x513317),_0x2e5bed===g[_0x3e4171(0x295)][_0x3e4171(0x282)]&&this[_0x3e4171(0x2c1)](_0x513317);}),this[_0x3d4b93(0x167)](this[_0x3d4b93(0x108)]['onCommandExecuted'](_0x58b474=>{const _0x2cbaae=_0x3d4b93,_0x5cbb1e=_0x58b474['params'];_0x5cbb1e!=null&&this[_0x2cbaae(0x12a)]&&_0x58b474['id']===V[_0x2cbaae(0x2d8)]['id']&&_0x5cbb1e[_0x2cbaae(0x209)]===this[_0x2cbaae(0x261)]&&_0x5cbb1e['isEditing']===!0x1&&_0x5cbb1e[_0x2cbaae(0x120)][_0x2cbaae(0x180)]>0x0&&this[_0x2cbaae(0x32d)](_0x5cbb1e[_0x2cbaae(0x120)]);})),this[_0x3d4b93(0x2ed)][_0x3d4b93(0x21b)][_0x3d4b93(0x154)](I['takeUntil'](this[_0x3d4b93(0x20a)]))[_0x3d4b93(0x143)](_0x11984b=>{const _0x5b71ef=_0x3d4b93;if((_0x11984b==null?void 0x0:_0x11984b['unitID'])!==this['unitID'])return;const _0x29c635={'eventID':g[_0x5b71ef(0x295)][_0x5b71ef(0x233)],'data':_0x11984b};this[_0x5b71ef(0x1a2)](_0x29c635);}),this[_0x3d4b93(0x167)](this[_0x3d4b93(0x108)][_0x3d4b93(0x20b)](_0x425c5e=>{const _0xd0fe99=_0x3d4b93;if(_0x425c5e[_0xd0fe99(0x2e4)]==null)return;const _0x5841ff=_0x425c5e[_0xd0fe99(0x2e4)];if(_0x425c5e['id']!==V[_0xd0fe99(0x2b3)]['id']||_0x5841ff[_0xd0fe99(0x209)]!==this['unitID'])return;const _0x5c777d={'id':_0xd0fe99(0xc7),'params':_0x5841ff},_0xfabd9e=this['cursorInfo'];for(const [_0x4db04f,_0x101e45]of _0xfabd9e){const _0xe27867={'id':_0xd0fe99(0xc7),'params':{'unitId':this[_0xd0fe99(0x261)],'actions':null,'textRanges':_0x101e45[_0xd0fe99(0x120)]}},_0x356317=this[_0xd0fe99(0x18a)]['transformMutation'](_0x5c777d,_0xe27867,!0x1);if(g[_0xd0fe99(0x1ce)](_0x356317))throw _0x356317[_0xd0fe99(0x1bc)];_0xfabd9e[_0xd0fe99(0x303)](_0x4db04f,{..._0x101e45,'ranges':_0x356317[_0xd0fe99(0x1f2)][_0xd0fe99(0x2e4)][_0xd0fe99(0x1ed)]});}queueMicrotask(()=>{const _0x396e7e=_0xd0fe99;this[_0x396e7e(0x24d)]['next'](_0xfabd9e);});})));}[_0x931b1e(0x1a2)](_0x2ed2bb){const _0x9b61b=_0x931b1e;var _0x956f2a,_0x28b693;const {memberID:_0x400c93,selection:_0xe0d007}=_0x2ed2bb['data'],_0x294fb9=ht(_0xe0d007),_0xef846c=(_0x28b693=(_0x956f2a=this[_0x9b61b(0x2ba)]['getMember'](this[_0x9b61b(0x261)],_0x400c93))==null?void 0x0:_0x956f2a[_0x9b61b(0x277)])!=null?_0x28b693:_0x9b61b(0x238),_0x43aeb5={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x400c93),'name':_0xef846c,'ranges':_0x294fb9},_0xdc8cde=this[_0x9b61b(0x128)];_0xdc8cde['set'](_0x400c93,_0x43aeb5),this[_0x9b61b(0x24d)]['next'](_0xdc8cde);}[_0x931b1e(0x2c1)](_0x3dfc85){const _0x380ddc=_0x931b1e,{memberID:_0x67cbfd}=_0x3dfc85['data'],_0x412034=this[_0x380ddc(0x128)];_0x412034['delete'](_0x67cbfd),this[_0x380ddc(0x24d)][_0x380ddc(0x194)](_0x412034);}[_0x931b1e(0x1f5)](){const _0x56a910=_0x931b1e;var _0x41fcd5;if(this[_0x56a910(0x12a)]=!0x0,((_0x41fcd5=this[_0x56a910(0x150)]['getFocusedUnit']())==null?void 0x0:_0x41fcd5[_0x56a910(0x25a)]())!==this['unitID'])return;const _0x548584=this[_0x56a910(0x251)]['get'](V['DocSelectionManagerService'])[_0x56a910(0x216)]();Array[_0x56a910(0x335)](_0x548584)&&_0x548584['length']>0x0&&this[_0x56a910(0x32d)](_0x548584);}[_0x931b1e(0x20c)](){const _0x483e4a=_0x931b1e;this[_0x483e4a(0x12a)]=!0x1;}};ve=It([U(0x2,a[_0x931b1e(0x1da)](a[_0x931b1e(0x189)])),U(0x3,a[_0x931b1e(0x1da)](Re)),U(0x4,a[_0x931b1e(0x1da)](u[_0x931b1e(0x279)])),U(0x5,a[_0x931b1e(0x1da)](be)),U(0x6,g[_0x931b1e(0x1f6)]),U(0x7,a[_0x931b1e(0x1d0)]),U(0x8,a[_0x931b1e(0xe7)])],ve);var ft=Object[_0x931b1e(0x304)],mt=(_0xf56578,_0x38ddee,_0x1ec3d3,_0x2e4dd4)=>{const _0x17f383=_0x931b1e;for(var _0x8e959c=_0x2e4dd4>0x1?void 0x0:_0x2e4dd4?ft(_0x38ddee,_0x1ec3d3):_0x38ddee,_0x1d93ec=_0xf56578[_0x17f383(0x180)]-0x1,_0x191cac;_0x1d93ec>=0x0;_0x1d93ec--)(_0x191cac=_0xf56578[_0x1d93ec])&&(_0x8e959c=_0x191cac(_0x8e959c)||_0x8e959c);return _0x8e959c;},w=(_0x31ab88,_0x5867bb)=>(_0x3d1621,_0x3aefd0)=>_0x5867bb(_0x3d1621,_0x3aefd0,_0x31ab88);const vt=0x12c,gt=0x64,Et=()=>{let _0x35e3c2=[],_0x12066d=!0x1;return _0x4418e6=>{const _0x3bc94d=_0x1e77;_0x35e3c2[_0x3bc94d(0x202)](_0x4418e6),_0x12066d||(_0x12066d=!0x0,setTimeout(()=>{const _0x3aa4b5=_0x3bc94d;_0x35e3c2[_0x3aa4b5(0x1d5)](_0xfef236=>_0xfef236()),_0x35e3c2=[],_0x12066d=!0x1;}));};};let ge=class extends a[_0x931b1e(0x29e)]{constructor(_0x3e14c3,_0x1c15c6,_0x1c5243,_0x24e9cd,_0x3277c3,_0x3518f5,_0x4f500e,_0x5a9d25){const _0x33da1c=_0x931b1e;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x33da1c(0x24d),new I[(_0x33da1c(0x346))](new Map())),_(this,_0x33da1c(0x136),this[_0x33da1c(0x24d)][_0x33da1c(0xcc)]()),_(this,_0x33da1c(0x271),new I[(_0x33da1c(0x346))]([])),_(this,_0x33da1c(0x182),this[_0x33da1c(0x271)][_0x33da1c(0x154)](I[_0x33da1c(0x2c2)](vt))),_(this,'_updateLocalCursor',a[_0x33da1c(0x276)]((_0x995261,_0x4602b1)=>{const _0x313c07=_0x33da1c,_0x3842fa={'eventID':g[_0x313c07(0x295)][_0x313c07(0x233)],'data':{'unitID':this[_0x313c07(0x261)],'memberID':this[_0x313c07(0x2bb)]['getMemberID'](),'selection':B[_0x313c07(0xe4)](_0x995261,_0x4602b1['range'])}};this['_session'][_0x313c07(0x23d)](_0x3842fa,this[_0x313c07(0x261)]);},gt)),(this['unitID']=_0x3e14c3,this['_session']=_0x1c15c6,this['_injector']=_0x1c5243,this[_0x33da1c(0xc9)]=_0x24e9cd,this['_memberService']=_0x3277c3,this[_0x33da1c(0x150)]=_0x3518f5,this[_0x33da1c(0x108)]=_0x4f500e,this[_0x33da1c(0x142)]=_0x5a9d25);}get[_0x931b1e(0x128)](){const _0x437866=_0x931b1e;return this['_cursorInfo$'][_0x437866(0x33a)]();}get[_0x931b1e(0x201)](){const _0x5d2a18=_0x931b1e;return this[_0x5d2a18(0x271)][_0x5d2a18(0x33a)]();}[_0x931b1e(0x151)](){const _0x1334a5=_0x931b1e;super[_0x1334a5(0x151)](),this[_0x1334a5(0x24d)][_0x1334a5(0x194)](new Map()),this['_cursorInfo$'][_0x1334a5(0x25d)](),this[_0x1334a5(0x271)][_0x1334a5(0x194)]([]),this[_0x1334a5(0x271)][_0x1334a5(0x25d)]();}['init'](){const _0x224137=_0x931b1e;this[_0x224137(0xb0)]||(this['_init']=!0x0,this[_0x224137(0x2bb)]['sessionStatus$'][_0x224137(0x154)](I[_0x224137(0x17a)](this[_0x224137(0x20a)]))[_0x224137(0x143)](_0x2ff9b6=>{const _0x55ff02=_0x224137;_0x2ff9b6===u[_0x55ff02(0x288)][_0x55ff02(0xca)]?this[_0x55ff02(0x1f5)]():this[_0x55ff02(0x20c)]();}),this[_0x224137(0x2bb)][_0x224137(0x1c7)]['pipe'](I[_0x224137(0x17a)](this[_0x224137(0x20a)]))['subscribe'](_0x2daecb=>{const _0x2bd801=_0x224137,_0x1b8030=_0x2daecb[_0x2bd801(0x1c8)];_0x1b8030===g[_0x2bd801(0x295)][_0x2bd801(0x233)]&&this[_0x2bd801(0x1a2)](_0x2daecb),_0x1b8030===g[_0x2bd801(0x295)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x2daecb);}),this['_onRefRangeChange'](),this[_0x224137(0x167)](this[_0x224137(0x108)]['onCommandExecuted'](_0x2cd1ff=>{const _0x54c898=_0x224137;if(this['_online']&&_0x2cd1ff['id']===v[_0x54c898(0x35c)]['id']&&_0x2cd1ff[_0x54c898(0x2e4)][_0x54c898(0x209)]===this['unitID']){const _0x2ba21b=_0x2cd1ff[_0x54c898(0x2e4)];this[_0x54c898(0x32d)](_0x2ba21b[_0x54c898(0x23c)],_0x2ba21b['selections'][0x0]);}})));}[_0x931b1e(0x1a2)](_0x2032e8){const _0xa2e3ab=_0x931b1e;var _0x3e3c62,_0x4b78be;const {memberID:_0x385e01,selection:_0x23f485}=_0x2032e8[_0xa2e3ab(0x19e)],{sheetName:_0x5ce16e,range:_0x175f05}=B[_0xa2e3ab(0x368)](_0x23f485),_0x382f93={'name':(_0x4b78be=(_0x3e3c62=this[_0xa2e3ab(0x2ba)][_0xa2e3ab(0x2e3)](this['unitID'],_0x385e01))==null?void 0x0:_0x3e3c62[_0xa2e3ab(0x277)])!=null?_0x4b78be:_0xa2e3ab(0x238),'range':this[_0xa2e3ab(0x191)](_0x5ce16e,_0x175f05),'sheetID':_0x5ce16e,'color':this[_0xa2e3ab(0xc9)][_0xa2e3ab(0x242)](_0x385e01),'selection':_0x23f485},_0xadd46c=this[_0xa2e3ab(0x128)];_0xadd46c[_0xa2e3ab(0x303)](_0x385e01,_0x382f93),this[_0xa2e3ab(0x24d)]['next'](_0xadd46c);}['_onCursorDelete'](_0xa0d492){const _0x5d7cd5=_0x931b1e,{memberID:_0x375f38}=_0xa0d492[_0x5d7cd5(0x19e)],_0x42fe66=this[_0x5d7cd5(0x128)];_0x42fe66[_0x5d7cd5(0xf4)](_0x375f38),this[_0x5d7cd5(0x24d)][_0x5d7cd5(0x194)](_0x42fe66);}['_getMergeRange'](_0x33cda8,_0x3dc6f2){const _0xd6c3c9=_0x931b1e;var _0x1a5552,_0x410890;const _0x328b20=(_0x410890=(_0x1a5552=this[_0xd6c3c9(0x150)]['getUniverSheetInstance'](this[_0xd6c3c9(0x261)]))==null?void 0x0:_0x1a5552[_0xd6c3c9(0x13f)](_0x33cda8))==null?void 0x0:_0x410890['getMergeData']();return(_0x328b20==null?void 0x0:_0x328b20[_0xd6c3c9(0x2f5)](_0x5bf4f9=>a['Rectangle'][_0xd6c3c9(0x1d9)](_0x5bf4f9,_0x3dc6f2)))||_0x3dc6f2;}['_onRefRangeChange'](){const _0x59b6a5=_0x931b1e,_0x3c4723=new a['DisposableCollection'](),_0xa75811=Et(),_0x2c9d22=()=>{const _0x2478f9=_0x1e77;_0x3c4723[_0x2478f9(0x151)]();const _0x17061a=(_0x11bfb5,_0xcd414e,_0x57511a,_0x3c489c)=>{const _0x1269d4=_0x2478f9;let _0x45c552=[];switch(_0x11bfb5['id']){case v['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x45c552=v[_0x1269d4(0x26a)](_0x11bfb5,_0x3c489c);break;}case v[_0x1269d4(0x291)][_0x1269d4(0x13d)]:{_0x45c552=v['handleDeleteRangeMoveUp'](_0x11bfb5,_0x3c489c);break;}case v['EffectRefRangId'][_0x1269d4(0x2cc)]:{_0x45c552=v[_0x1269d4(0x2a4)](_0x11bfb5,_0x3c489c);break;}case v[_0x1269d4(0x291)]['InsertRangeMoveDownCommandId']:{_0x45c552=v[_0x1269d4(0x357)](_0x11bfb5,_0x3c489c);break;}case v[_0x1269d4(0x291)][_0x1269d4(0x273)]:{_0x45c552=v[_0x1269d4(0xd3)](_0x11bfb5,_0x3c489c);break;}case v[_0x1269d4(0x291)][_0x1269d4(0x365)]:{_0x45c552=v[_0x1269d4(0x285)](_0x11bfb5,_0x3c489c);break;}case v[_0x1269d4(0x291)]['MoveRangeCommandId']:{_0x45c552=v[_0x1269d4(0x252)](_0x11bfb5,_0x3c489c);break;}case v[_0x1269d4(0x291)][_0x1269d4(0x1a4)]:{_0x45c552=v[_0x1269d4(0x2a1)](_0x11bfb5,_0x3c489c);break;}case v[_0x1269d4(0x291)]['RemoveRowCommandId']:{_0x45c552=v[_0x1269d4(0x2c9)](_0x11bfb5,_0x3c489c);break;}}const _0x32b030=v[_0x1269d4(0x319)](_0x45c552,_0x3c489c),_0xba04a1=this[_0x1269d4(0x128)]['get'](_0xcd414e);if(_0xba04a1&&_0x32b030){const _0x52ed31={..._0xba04a1,'range':_0x32b030};this[_0x1269d4(0x128)]['set'](_0xcd414e,_0x52ed31),_0xa75811(()=>{const _0x492e51=_0x1269d4,_0x15d9d0=this[_0x492e51(0x142)]['registerRefRange'](_0x32b030,_0x55f983=>(_0x15d9d0['dispose'](),_0x17061a(_0x55f983,_0xcd414e,_0x57511a,_0x32b030)));_0x3c4723['add'](_0x15d9d0);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2478f9(0x1d5)]((_0x37e346,_0x4004ab)=>{const _0x136506=_0x2478f9,{range:_0x1c7f41,sheetID:_0x3a0acc}=_0x37e346,_0xfe2af0=this[_0x136506(0x142)][_0x136506(0x101)](_0x1c7f41,_0x457bab=>(_0xfe2af0[_0x136506(0x151)](),_0x17061a(_0x457bab,_0x4004ab,_0x3a0acc,_0x1c7f41)));_0x3c4723[_0x136506(0x28f)](_0xfe2af0);});};this[_0x59b6a5(0x167)](a[_0x59b6a5(0x1e9)](this[_0x59b6a5(0x24d)][_0x59b6a5(0x143)](()=>{_0x2c9d22();})));}[_0x931b1e(0x1f5)](){const _0x422e95=_0x931b1e;var _0x32cdd5,_0x5006cc;if(this[_0x422e95(0x12a)]=!0x0,((_0x32cdd5=this['_univerInstanceService'][_0x422e95(0x237)]())==null?void 0x0:_0x32cdd5[_0x422e95(0x25a)]())!==this[_0x422e95(0x261)])return;const _0xcf7b70=(_0x5006cc=this[_0x422e95(0x251)][_0x422e95(0x25b)](v[_0x422e95(0x9d)])['getCurrentSelections']())==null?void 0x0:_0x5006cc[0x0],_0x25a9ec=this[_0x422e95(0x150)][_0x422e95(0x30d)](a[_0x422e95(0x2fe)][_0x422e95(0xc4)])[_0x422e95(0xfb)]();_0xcf7b70&&_0x25a9ec&&this[_0x422e95(0x32d)](_0x25a9ec[_0x422e95(0x2b9)](),_0xcf7b70);}[_0x931b1e(0x20c)](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x931b1e(0x1da)](a[_0x931b1e(0x189)])),w(0x3,a[_0x931b1e(0x1da)](Re)),w(0x4,a[_0x931b1e(0x1da)](u[_0x931b1e(0x279)])),w(0x5,a[_0x931b1e(0x1d0)]),w(0x6,a['ICommandService']),w(0x7,a[_0x931b1e(0x1da)](v[_0x931b1e(0x31c)]))],ge);var Ct=Object[_0x931b1e(0x304)],pt=(_0x5a1627,_0x189ef6,_0x473848,_0x2eb045)=>{const _0x49e0df=_0x931b1e;for(var _0xd9441c=_0x2eb045>0x1?void 0x0:_0x2eb045?Ct(_0x189ef6,_0x473848):_0x189ef6,_0x21367f=_0x5a1627[_0x49e0df(0x180)]-0x1,_0x469966;_0x21367f>=0x0;_0x21367f--)(_0x469966=_0x5a1627[_0x21367f])&&(_0xd9441c=_0x469966(_0xd9441c)||_0xd9441c);return _0xd9441c;},ce=(_0x15ba69,_0x4ef082)=>(_0x30f91c,_0x3b384a)=>_0x4ef082(_0x30f91c,_0x3b384a,_0x15ba69);let F=class extends a[_0x931b1e(0x29e)]{constructor(_0x2584f0,_0x101ccd,_0x58f17b){const _0x1cab99=_0x931b1e;super(),_(this,'_entities',new Map()),_(this,_0x1cab99(0x1a3),new I[(_0x1cab99(0x174))]()),(this[_0x1cab99(0x150)]=_0x2584f0,this[_0x1cab99(0x251)]=_0x101ccd,this[_0x1cab99(0xf8)]=_0x58f17b,this['_init']());}[_0x931b1e(0x151)](){const _0x139119=_0x931b1e;super['dispose'](),this[_0x139119(0x1a3)][_0x139119(0x25d)](),this[_0x139119(0x329)]['forEach'](_0x2623fd=>_0x2623fd[_0x139119(0x151)]());}[_0x931b1e(0x259)](_0x2cb09f){const _0x248891=_0x931b1e;return this[_0x248891(0x329)][_0x248891(0x264)](_0x2cb09f)?this[_0x248891(0x329)][_0x248891(0x25b)](_0x2cb09f)['cursorInfo$']:this['_entityInit$'][_0x248891(0x154)](I[_0x248891(0x35d)](_0x18b29b=>_0x18b29b[_0x248891(0x261)]===_0x2cb09f),I[_0x248891(0x193)](_0x2a87e2=>_0x2a87e2[_0x248891(0x136)]));}[_0x931b1e(0xb0)](){const _0x4b3aab=_0x931b1e;this[_0x4b3aab(0x150)]['getTypeOfUnitAdded$'](a[_0x4b3aab(0x2fe)][_0x4b3aab(0xc4)])[_0x4b3aab(0x154)](I[_0x4b3aab(0x17a)](this['dispose$']))[_0x4b3aab(0x143)](async _0x1a26b4=>{const _0x2f4378=_0x4b3aab,_0x779b3e=_0x1a26b4[_0x2f4378(0x25a)](),_0xcf9991=await this['_startSheetCollabCursor'](_0x779b3e);this[_0x2f4378(0x1a3)][_0x2f4378(0x194)](_0xcf9991),this[_0x2f4378(0x329)][_0x2f4378(0x303)](_0x779b3e,_0xcf9991);}),this[_0x4b3aab(0x150)][_0x4b3aab(0x1af)](a['UniverInstanceType'][_0x4b3aab(0x2e8)])['pipe'](I[_0x4b3aab(0x17a)](this['dispose$']))[_0x4b3aab(0x154)](I[_0x4b3aab(0x35d)](_0x2c75bc=>!_0x2c75bc[_0x4b3aab(0x25a)]()[_0x4b3aab(0x1c0)]('__')))['subscribe'](async _0x43e99e=>{const _0x472192=_0x4b3aab,_0x174f95=_0x43e99e[_0x472192(0x25a)](),_0x590e04=await this[_0x472192(0x117)](_0x174f95);this[_0x472192(0x1a3)][_0x472192(0x194)](_0x590e04),this[_0x472192(0x329)]['set'](_0x174f95,_0x590e04);}),I[_0x4b3aab(0x2ae)](this[_0x4b3aab(0x150)][_0x4b3aab(0x1b9)](a['UniverInstanceType'][_0x4b3aab(0x2e8)]),this[_0x4b3aab(0x150)][_0x4b3aab(0x1b9)](a[_0x4b3aab(0x2fe)][_0x4b3aab(0xc4)]))['pipe'](I[_0x4b3aab(0x17a)](this[_0x4b3aab(0x20a)]))[_0x4b3aab(0x143)](_0x2d19f8=>{const _0x2a8476=_0x4b3aab,_0x1ff7ed=_0x2d19f8['getUnitId'](),_0x4219ff=this['_entities'][_0x2a8476(0x25b)](_0x1ff7ed);_0x4219ff&&(_0x4219ff[_0x2a8476(0x151)](),this[_0x2a8476(0x329)]['delete'](_0x1ff7ed));});}async[_0x931b1e(0xd9)](_0x44c4a5){const _0x252287=_0x931b1e,_0x4913e0=await this['_collabSessionService'][_0x252287(0x1ef)](_0x44c4a5),_0xf1655a=this['_injector'][_0x252287(0x28c)](ge,_0x44c4a5,_0x4913e0);return _0xf1655a['init'](),_0xf1655a;}async[_0x931b1e(0x117)](_0x21f4e9){const _0x189e1c=_0x931b1e,_0x343f3e=await this[_0x189e1c(0xf8)]['requireSession'](_0x21f4e9),_0x5a9b11=this[_0x189e1c(0x251)][_0x189e1c(0x28c)](ve,_0x21f4e9,_0x343f3e);return _0x5a9b11[_0x189e1c(0xcf)](),_0x5a9b11;}};F=pt([ce(0x0,a[_0x931b1e(0x1d0)]),ce(0x1,a['Inject'](a[_0x931b1e(0x189)])),ce(0x2,a[_0x931b1e(0x1da)](u[_0x931b1e(0x333)]))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x1f9309,_0x85f61a){const _0x37af14=_0x931b1e;let {radius:_0x5961fc,width:_0x270337,height:_0x145ee2}=_0x85f61a;_0x5961fc=_0x5961fc!=null?_0x5961fc:0x0,_0x270337=_0x270337!=null?_0x270337:0x1e,_0x145ee2=_0x145ee2!=null?_0x145ee2:0x1e;let _0x556551=0x0,_0x1b4e2b=0x0,_0xbcc3d8=0x0;_0x556551=_0x1b4e2b=_0xbcc3d8=Math[_0x37af14(0x131)](_0x5961fc,_0x270337/0x2,_0x145ee2/0x2),_0x1f9309['beginPath'](),_0x1f9309[_0x37af14(0x27e)](_0x556551,0x0),_0x1f9309[_0x37af14(0x34b)](_0x270337-_0x1b4e2b,0x0),_0x1f9309[_0x37af14(0x16d)](_0x270337-_0x1b4e2b,_0x1b4e2b,_0x1b4e2b,Math['PI']*0x3/0x2,0x0,!0x1),_0x1f9309[_0x37af14(0x34b)](_0x270337,_0x145ee2-_0xbcc3d8),_0x1f9309[_0x37af14(0x16d)](_0x270337-_0xbcc3d8,_0x145ee2-_0xbcc3d8,_0xbcc3d8,0x0,Math['PI']/0x2,!0x1),_0x1f9309['lineTo'](0x0,_0x145ee2),_0x1f9309[_0x37af14(0x34b)](0x0,_0x556551),_0x1f9309['arc'](_0x556551,_0x556551,_0x556551,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1f9309[_0x37af14(0x30e)](),_0x85f61a[_0x37af14(0x230)]&&(_0x1f9309[_0x37af14(0x1f4)](),_0x1f9309[_0x37af14(0xae)]=_0x85f61a['fill'],_0x85f61a[_0x37af14(0x358)]==='evenodd'?_0x1f9309[_0x37af14(0x230)](_0x37af14(0x307)):_0x1f9309[_0x37af14(0x230)](),_0x1f9309[_0x37af14(0x14f)]());}class re extends C[_0x931b1e(0x22e)]{constructor(_0xce2b9d,_0x11c103){const _0x21034f=_0x931b1e;super(_0xce2b9d,_0x11c103),_(this,'color'),_(this,_0x21034f(0x26e)),(this['color']=_0x11c103==null?void 0x0:_0x11c103[_0x21034f(0x24f)],this['text']=_0x11c103==null?void 0x0:_0x11c103[_0x21034f(0x26e)]);}static[_0x931b1e(0x198)](_0xfe30a,_0x4b91af){const _0x26b382=_0x931b1e,{text:_0x340a33,color:_0x371d70}=_0x4b91af;_0xfe30a[_0x26b382(0x1f4)](),_0xfe30a[_0x26b382(0x127)]=_0x26b382(0x217);const _0x557258=_0xfe30a[_0x26b382(0x2d7)](_0x340a33)[_0x26b382(0x1de)],_0x195589=Math[_0x26b382(0x131)](_0x557258+0x2*le,Ue);Ot(_0xfe30a,{'height':X,'radius':0x4,'width':_0x195589,'fill':_0x371d70}),_0xfe30a['fillStyle']='#FFF';const _0x465536=le,_0xf30ef0=X-Tt,_0x1b417c=Ue-0x2*le;if(_0x557258>_0x1b417c){let _0x2d1104='',_0x5f8b48=0x0;for(const _0x1569e3 of _0x340a33){const _0x438f0e=_0xfe30a[_0x26b382(0x2d7)](_0x1569e3)[_0x26b382(0x1de)];if(_0x5f8b48+_0x438f0e<=_0x1b417c-_0xfe30a['measureText'](_0x26b382(0x342))[_0x26b382(0x1de)])_0x2d1104+=_0x1569e3,_0x5f8b48+=_0x438f0e;else{_0x2d1104+=_0x26b382(0x342);break;}}_0xfe30a['fillText'](_0x2d1104,_0x465536,_0xf30ef0);}else _0xfe30a[_0x26b382(0x112)](_0x340a33,_0x465536,_0xf30ef0);_0xfe30a['restore']();}[_0x931b1e(0x160)](_0x30f29a){const _0x5cad82=_0x931b1e;re[_0x5cad82(0x198)](_0x30f29a,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt=_0x931b1e(0x243),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x931b1e(0xa3);class Le{constructor(_0x4d91e9,_0x6992aa,_0x41957e,_0x376811){const _0x2129d4=_0x931b1e;_(this,_0x2129d4(0x1c1),[]),_(this,_0x2129d4(0x366),null),_(this,_0x2129d4(0x1e8),null),_(this,_0x2129d4(0x334),null),_(this,_0x2129d4(0x140),null),_(this,'_eventUnsubscribe',null),(this[_0x2129d4(0x310)]=_0x4d91e9,this[_0x2129d4(0x2c8)]=_0x6992aa,this[_0x2129d4(0x105)]=_0x41957e,this['_document']=_0x376811,this[_0x2129d4(0x229)]());}set['_hover'](_0x1dcb40){const _0x5f1a84=_0x931b1e;_0x1dcb40?(this[_0x5f1a84(0x334)]&&this['_anchorDot'][_0x5f1a84(0x19b)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x5f1a84(0x334)]&&this[_0x5f1a84(0x334)][_0x5f1a84(0x30b)](),this[_0x5f1a84(0x1e8)]&&this[_0x5f1a84(0x1e8)][_0x5f1a84(0x19b)]());}['dispose'](){const _0x3b0da6=_0x931b1e;for(const _0x31f1e7 of this[_0x3b0da6(0x1c1)])_0x31f1e7['dispose']();this[_0x3b0da6(0x1e8)]&&this[_0x3b0da6(0x1e8)]['dispose'](),this[_0x3b0da6(0x334)]&&this['_anchorDot'][_0x3b0da6(0x151)](),this[_0x3b0da6(0x366)]&&this[_0x3b0da6(0x366)]['dispose'](),this['_eventUnsubscribe']&&this[_0x3b0da6(0x351)]();}['_render'](){const _0x4b61f8=_0x931b1e;var _0x4e6a81;const {_docSkeleton:_0x83d73a,_document:_0x5aa7f3}=this,{color:_0x4a34ee,name:_0x323a04,ranges:_0x2eb505}=this[_0x4b61f8(0x310)],_0x1be04f=_0x5aa7f3['getOffsetConfig'](),{docsLeft:_0x5e73dc,docsTop:_0x2778c5}=_0x1be04f,_0x3a58cf=new p[(_0x4b61f8(0x214))](_0x1be04f,_0x83d73a);for(const {startOffset:_0x76252a,endOffset:_0x3ae848,rangeType:_0x51d326,segmentId:_0x255c9f,segmentPage:_0x4f9e78,collapsed:_0x5a86fa,isActive:_0x36ea84}of _0x2eb505){const _0x4517d6=_0x83d73a[_0x4b61f8(0x1be)](_0x76252a,!0x0,_0x255c9f,_0x4f9e78);let _0x1913e8=_0x83d73a['findNodePositionByCharIndex'](_0x3ae848,!0x0,_0x255c9f,_0x4f9e78);if(_0x1913e8==null&&(_0x1913e8=_0x83d73a['findNodePositionByCharIndex'](_0x3ae848-0x1,!0x1,_0x255c9f,_0x4f9e78)),_0x36ea84){const {contentBoxPointGroup:_0x3b0a70}=_0x3a58cf[_0x4b61f8(0x16c)](_0x1913e8,_0x1913e8);if(_0x3b0a70[_0x4b61f8(0x180)]===0x0)continue;this[_0x4b61f8(0x354)](_0x4a34ee,_0x3b0a70,_0x5e73dc,_0x2778c5,_0x323a04),this[_0x4b61f8(0x351)]=this[_0x4b61f8(0x100)]();}if(_0x4517d6&&_0x1913e8){if(_0x51d326===a['DOC_RANGE_TYPE']['RECT']){const _0x582363=new p[(_0x4b61f8(0x2ff))](_0x1be04f,_0x83d73a),{pointGroup:_0x59d497}=(_0x4e6a81=_0x582363[_0x4b61f8(0x16c)](_0x4517d6,_0x1913e8))!=null?_0x4e6a81:{};if(_0x59d497==null||_0x59d497[_0x4b61f8(0x180)]===0x0)continue;this[_0x4b61f8(0x1e2)](_0x4a34ee,_0x59d497,_0x5e73dc,_0x2778c5);}else{if(!_0x5a86fa){const {borderBoxPointGroup:_0x39e551}=_0x3a58cf[_0x4b61f8(0x16c)](_0x4517d6,_0x1913e8);if(_0x39e551[_0x4b61f8(0x180)]===0x0)continue;this[_0x4b61f8(0x324)](_0x4a34ee,_0x39e551,_0x5e73dc,_0x2778c5);}}}}}[_0x931b1e(0x354)](_0x5e27e9,_0x4d8b01,_0x5c1adb,_0x17ede3,_0x51f98c){const _0x54eced=_0x931b1e,_0x345cca=this['_getAnchorBounding'](_0x4d8b01),{left:_0x441dc5,top:_0x5101de,height:_0x2925bc}=_0x345cca,_0x36085a=this[_0x54eced(0x176)](),_0x1d9e20=Nt/_0x36085a,_0x2b679d=new C[(_0x54eced(0x1ee))](_e+a['generateRandomId'](H),{'left':_0x441dc5+_0x5c1adb-_0x1d9e20,'top':_0x5101de+_0x17ede3,'height':_0x2925bc,'width':Dt,'fill':_0x5e27e9||C[_0x54eced(0x1cf)](a['COLORS'][_0x54eced(0x1fb)],0x0),'strokeWidth':_0x1d9e20,'stroke':Ut,'evented':!0x0});this[_0x54eced(0x366)]=_0x2b679d,this[_0x54eced(0x2c8)][_0x54eced(0x10f)](_0x2b679d,p[_0x54eced(0xc5)]);const _0x3dd406=new C['Rect'](_e+a['generateRandomId'](H),{'left':_0x441dc5+_0x5c1adb-_0x1d9e20,'top':_0x5101de+_0x17ede3-he/0x2,'height':he,'width':he,'fill':_0x5e27e9||C[_0x54eced(0x1cf)](a[_0x54eced(0x158)][_0x54eced(0x1fb)],0x0),'strokeWidth':0x0,'stroke':_0x5e27e9||C[_0x54eced(0x1cf)](a['COLORS'][_0x54eced(0x1fb)],0x0),'evented':!0x1});this[_0x54eced(0x334)]=_0x3dd406,this['_scene'][_0x54eced(0x10f)](_0x3dd406,p['TEXT_RANGE_LAYER_INDEX']);const _0x5e3c39=new re(_e+a[_0x54eced(0x14b)](H),{'left':_0x441dc5+_0x5c1adb-_0x1d9e20,'top':_0x5101de+_0x17ede3-X,'text':_0x51f98c,'color':_0x5e27e9});this[_0x54eced(0x1e8)]=_0x5e3c39,this[_0x54eced(0x2c8)][_0x54eced(0x10f)](_0x5e3c39,p[_0x54eced(0xc5)]),this[_0x54eced(0x17e)]=!0x1;}[_0x931b1e(0x100)](){const _0x25cec0=_0x931b1e,_0x122f2d=this[_0x25cec0(0x366)][_0x25cec0(0x18d)][_0x25cec0(0x33c)](()=>{const _0x5a4ee6=_0x25cec0;this[_0x5a4ee6(0x17e)]=!0x0;}),_0x2532d7=this[_0x25cec0(0x366)][_0x25cec0(0x1d6)][_0x25cec0(0x33c)](()=>{const _0xbaeace=_0x25cec0;this[_0xbaeace(0x140)]&&clearTimeout(this[_0xbaeace(0x140)]),this[_0xbaeace(0x140)]=setTimeout(()=>{const _0x196652=_0xbaeace;this[_0x196652(0x17e)]=!0x1;},0x7d0);});return()=>{const _0x53572e=_0x25cec0;_0x122f2d[_0x53572e(0x110)](),_0x2532d7[_0x53572e(0x110)]();};}[_0x931b1e(0x324)](_0x1d2c91,_0x431dab,_0x4fc89a,_0xcd6f07){const _0x154b22=_0x931b1e,_0x22bbef=new a['ColorKit'](_0x1d2c91)['setAlpha'](0.2)[_0x154b22(0x2fd)](),_0x13fd7a=new C[(_0x154b22(0x161))](Rt+a[_0x154b22(0x14b)](H),{'pointsGroup':_0x431dab,'fill':_0x22bbef||C[_0x154b22(0x1cf)](a[_0x154b22(0x158)][_0x154b22(0x1fb)],0.2),'left':_0x4fc89a,'top':_0xcd6f07,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x154b22(0x1c1)][_0x154b22(0x202)](_0x13fd7a),this[_0x154b22(0x2c8)][_0x154b22(0x10f)](_0x13fd7a,p['TEXT_RANGE_LAYER_INDEX']);}[_0x931b1e(0x1e2)](_0x5953dc,_0x4832fe,_0x16ad13,_0x3b4f62){const _0x15bcb2=_0x931b1e,_0x34ba20=new a[(_0x15bcb2(0x1f7))](_0x5953dc)[_0x15bcb2(0x153)](0.2)[_0x15bcb2(0x2fd)](),_0x629ca8=new C[(_0x15bcb2(0x161))](bt+a[_0x15bcb2(0x14b)](H),{'pointsGroup':_0x4832fe,'fill':_0x34ba20||C[_0x15bcb2(0x1cf)](a['COLORS'][_0x15bcb2(0x1fb)],0.2),'left':_0x16ad13,'top':_0x3b4f62,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x15bcb2(0x202)](_0x629ca8),this[_0x15bcb2(0x2c8)]['addObject'](_0x629ca8,p['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x52a52d){const _0x905b42=_0x52a52d[0x0],_0x339934=_0x905b42[0x0],_0x4fb0ab=_0x905b42[0x2],{x:_0x5677bb,y:_0x3205e3}=_0x339934,{x:_0x49b18a,y:_0x4aa19a}=_0x4fb0ab;return{'left':_0x5677bb,'top':_0x3205e3,'width':_0x49b18a-_0x5677bb,'height':_0x4aa19a-_0x3205e3};}[_0x931b1e(0x176)](){const _0x5a9317=_0x931b1e,{scaleX:_0x2f0258,scaleY:_0x50417d}=this[_0x5a9317(0x2c8)]['getAncestorScale']();return Math[_0x5a9317(0x2d2)](_0x2f0258,_0x50417d);}}var Lt=Object[_0x931b1e(0x304)],Mt=(_0x2be5a0,_0x30f9e4,_0x17a62a,_0x1344ee)=>{const _0x121fd3=_0x931b1e;for(var _0x5b4f9a=_0x1344ee>0x1?void 0x0:_0x1344ee?Lt(_0x30f9e4,_0x17a62a):_0x30f9e4,_0x174532=_0x2be5a0[_0x121fd3(0x180)]-0x1,_0x21e383;_0x174532>=0x0;_0x174532--)(_0x21e383=_0x2be5a0[_0x174532])&&(_0x5b4f9a=_0x21e383(_0x5b4f9a)||_0x5b4f9a);return _0x5b4f9a;},q=(_0x4e5585,_0x30563b)=>(_0x274262,_0x5bc26f)=>_0x30563b(_0x274262,_0x5bc26f,_0x4e5585);let Ee=class extends a['RxDisposable']{constructor(_0x419079,_0x422dd0,_0xb553e,_0x440e38,_0x3658e9){const _0x36f884=_0x931b1e;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x36f884(0x349)]=_0x419079,this[_0x36f884(0x240)]=_0x422dd0,this['_collabCursorController']=_0xb553e,this['_commandService']=_0x440e38,this[_0x36f884(0x18c)]=_0x3658e9,this['_init']());}[_0x931b1e(0xb0)](){const _0x9448eb=_0x931b1e,_0x134740=this[_0x9448eb(0x349)]['unitId'],_0x1d98b3=this[_0x9448eb(0x240)];this[_0x9448eb(0x167)](I[_0x9448eb(0x2d6)]([this[_0x9448eb(0x362)][_0x9448eb(0x259)](_0x134740),this[_0x9448eb(0x18c)][_0x9448eb(0xc8)]])[_0x9448eb(0x154)]($[_0x9448eb(0x21a)](([_0xe46786,_0x3bd3a9])=>({'skeleton':_0x1d98b3['getSkeleton'](),'cursors':[..._0xe46786[_0x9448eb(0x313)]()][_0x9448eb(0x187)](_0x4d3940=>({..._0x4d3940,'color':this[_0x9448eb(0x18c)]['getColorFromTheme'](_0x4d3940[_0x9448eb(0x24f)])}))})))[_0x9448eb(0x143)](_0x341ee8=>{const _0x3308e2=_0x9448eb;if(this['_removeCollabCursors'](),_0x341ee8){const {skeleton:_0x153d9e,cursors:_0x5be3a9}=_0x341ee8;this[_0x3308e2(0x190)](_0x153d9e,_0x5be3a9);}})),this['_initResize'](),this[_0x9448eb(0x1a7)]();}[_0x931b1e(0x190)](_0x2cf844,_0x4234a1){const _0x3cae60=_0x931b1e,{scene:_0x15be36,mainComponent:_0x226333}=this[_0x3cae60(0x349)],_0x17fc43=_0x4234a1[_0x3cae60(0x21a)](_0x3366d1=>new Le(_0x3366d1,_0x15be36,_0x2cf844,_0x226333));this[_0x3cae60(0x208)]=_0x17fc43,this[_0x3cae60(0x23e)]=_0x4234a1;}[_0x931b1e(0x155)](){const _0x2c6358=_0x931b1e;this[_0x2c6358(0x200)]();const {scene:_0x207f19,mainComponent:_0x39979f}=this[_0x2c6358(0x349)],_0x439f02=this[_0x2c6358(0x240)][_0x2c6358(0x350)](),_0x58666e=this[_0x2c6358(0x23e)]['map'](_0x47c216=>new Le(_0x47c216,_0x207f19,_0x439f02,_0x39979f));this['_cursorShapes']=_0x58666e;}['_removeCollabCursors'](){const _0x1924d4=_0x931b1e;this[_0x1924d4(0x208)][_0x1924d4(0x1d5)](_0x598091=>_0x598091[_0x1924d4(0x151)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x18bad4=_0x931b1e,_0x331853=[p[_0x18bad4(0xbd)]['id']];this[_0x18bad4(0x167)](this[_0x18bad4(0x108)][_0x18bad4(0x20b)](_0x3ec97d=>{const _0x17c41f=_0x18bad4;_0x331853['includes'](_0x3ec97d['id'])&&_0x3ec97d[_0x17c41f(0x2e4)][_0x17c41f(0x209)]===this['_context'][_0x17c41f(0x209)]&&this[_0x17c41f(0x155)]();}));}[_0x931b1e(0x32c)](){const _0x54e89f=_0x931b1e;this[_0x54e89f(0x167)](a[_0x54e89f(0x29c)](this['_context'][_0x54e89f(0x132)][_0x54e89f(0x363)])[_0x54e89f(0x154)]($[_0x54e89f(0x35d)](_0x57ff88=>_0x57ff88['type']===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x54e89f(0x163)]),$[_0x54e89f(0x34e)](0x10))[_0x54e89f(0x143)](()=>{const _0x2812f5=_0x54e89f;this[_0x2812f5(0x155)]();}));}};Ee=Mt([q(0x1,a[_0x931b1e(0x1da)](V['DocSkeletonManagerService'])),q(0x2,a[_0x931b1e(0x1da)](F)),q(0x3,a[_0x931b1e(0xe7)]),q(0x4,a[_0x931b1e(0x1da)](a[_0x931b1e(0x239)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x931b1e(0x22e)]{constructor(_0x16e0a9,_0x352130){const _0x2a8f86=_0x931b1e;super(_0x16e0a9,_0x352130),_(this,_0x2a8f86(0x280)),_(this,_0x2a8f86(0x31f),!0x1),_(this,_0x2a8f86(0x212)),_(this,'_name',''),_(this,_0x2a8f86(0x353),_0x2a8f86(0x341)),_(this,_0x2a8f86(0x34c)),(_0x352130&&this['setShapeProps'](_0x352130),this[_0x2a8f86(0x18d)][_0x2a8f86(0x33c)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2a8f86(0x1d6)][_0x2a8f86(0x33c)](()=>this[_0x2a8f86(0x330)]({'hovered':!0x1})));}[_0x931b1e(0x330)](_0x348e43){const _0x37b1c3=_0x931b1e;var _0x14f3d7,_0x4bee3d,_0x6477d5,_0x3cc478,_0x2b6ce0,_0x51817a;this['_color']=(_0x14f3d7=_0x348e43[_0x37b1c3(0x24f)])!=null?_0x14f3d7:this[_0x37b1c3(0x280)],this['_hovered']=(_0x4bee3d=_0x348e43['hovered'])!=null?_0x4bee3d:this['_hovered'],this[_0x37b1c3(0x212)]=(_0x6477d5=_0x348e43['range'])!=null?_0x6477d5:this[_0x37b1c3(0x212)],this[_0x37b1c3(0x144)]=(_0x3cc478=_0x348e43[_0x37b1c3(0x277)])!=null?_0x3cc478:this[_0x37b1c3(0x144)],this[_0x37b1c3(0x353)]=(_0x2b6ce0=_0x348e43['labelPosition'])!=null?_0x2b6ce0:this['_labelPosition'],this['_backgroundColor']=(_0x51817a=_0x348e43[_0x37b1c3(0x22a)])!=null?_0x51817a:this[_0x37b1c3(0x34c)],this['transformByState']({'width':_0x348e43[_0x37b1c3(0x1de)],'height':_0x348e43[_0x37b1c3(0x164)]});}[_0x931b1e(0x320)](_0x51b2e7){const _0x51fd42=_0x931b1e,{row:_0x4a1997,column:_0x56c448}=_0x51b2e7;if(_0x4a1997>=this[_0x51fd42(0x212)][_0x51fd42(0x2e0)]&&_0x4a1997<=this[_0x51fd42(0x212)][_0x51fd42(0x317)]&&_0x56c448>=this['_range'][_0x51fd42(0x2b5)]&&_0x56c448<=this['_range'][_0x51fd42(0x1c5)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x51fd42(0x330)]({'hovered':!0x1});}[_0x931b1e(0x318)](_0x4a87ce){return!0x1;}[_0x931b1e(0x160)](_0xa4ce8a){const _0x2eed76=_0x931b1e;C['Rect']['drawWith'](_0xa4ce8a,{'width':this[_0x2eed76(0x1de)],'height':this['height'],'strokeWidth':Pt,'stroke':this[_0x2eed76(0x280)],'evented':!0x1,'fill':this[_0x2eed76(0x34c)]}),this[_0x2eed76(0x31f)]&&(_0xa4ce8a[_0x2eed76(0x1f4)](),_0xa4ce8a['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x2eed76(0x353)]===_0x2eed76(0xff)?0x0:-X),re[_0x2eed76(0x198)](_0xa4ce8a,{'text':this[_0x2eed76(0x144)],'color':this['_color']}),_0xa4ce8a[_0x2eed76(0x14f)]());}}var wt=Object[_0x931b1e(0x304)],yt=(_0x22d767,_0x3fc8ee,_0x44a761,_0x40e6a4)=>{const _0x8c8865=_0x931b1e;for(var _0x4a3c85=_0x40e6a4>0x1?void 0x0:_0x40e6a4?wt(_0x3fc8ee,_0x44a761):_0x3fc8ee,_0x2818ac=_0x22d767[_0x8c8865(0x180)]-0x1,_0x2e00e1;_0x2818ac>=0x0;_0x2818ac--)(_0x2e00e1=_0x22d767[_0x2818ac])&&(_0x4a3c85=_0x2e00e1(_0x4a3c85)||_0x4a3c85);return _0x4a3c85;},ue=(_0x3e7c18,_0x31916d)=>(_0x52426e,_0x3ffada)=>_0x31916d(_0x52426e,_0x3ffada,_0x3e7c18);const $t=0x1389;let Ce=class extends a[_0x931b1e(0x29e)]{constructor(_0x8c7b50,_0x1a79ca,_0x596de9,_0x425ac2){const _0x2be6a3=_0x931b1e;super(),_(this,'_cursors',new Set()),_(this,_0x2be6a3(0x19d),null),(this[_0x2be6a3(0x349)]=_0x8c7b50,this[_0x2be6a3(0x33b)]=_0x1a79ca,this[_0x2be6a3(0x362)]=_0x596de9,this[_0x2be6a3(0x18c)]=_0x425ac2,this['_init']());}['_init'](){const _0x3b9602=_0x931b1e;this[_0x3b9602(0x33b)]['currentSkeleton$'][_0x3b9602(0x154)]($[_0x3b9602(0x17a)](this[_0x3b9602(0x20a)]),$['switchMap'](_0x1bd284=>{const _0x150cca=_0x3b9602;if(_0x1bd284){const _0x4dbe96=_0x1bd284['sheetId'];return I[_0x150cca(0x2d6)](this[_0x150cca(0x362)][_0x150cca(0x259)](this[_0x150cca(0x349)][_0x150cca(0x209)]),this[_0x150cca(0x18c)]['currentTheme$'])[_0x150cca(0x154)]($[_0x150cca(0x21a)](([_0x42a42e,_0x1a0820])=>{const _0x258d43=_0x150cca,_0x50c2e3=new Map();return _0x42a42e[_0x258d43(0x1d5)]((_0x3165bd,_0x21b987)=>{const _0x3fe16a=_0x258d43;if(_0x3165bd[_0x3fe16a(0x2cf)]===_0x4dbe96){const _0xaa1894={..._0x3165bd};_0xaa1894[_0x3fe16a(0x24f)]=this['_themeService'][_0x3fe16a(0x348)](_0x3165bd['color']),_0x50c2e3[_0x3fe16a(0x303)](_0x21b987,_0xaa1894);}}),{'skeleton':_0x1bd284,'cursors':_0x50c2e3};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d1196,cursors:_0x595569})=>{const _0x2525bb=_0x3b9602;this[_0x2525bb(0x200)](),_0x1d1196&&this[_0x2525bb(0x190)](_0x1d1196,_0x595569);}),this['_sheetSkeletonManagerService'][_0x3b9602(0x2e7)][_0x3b9602(0x143)](_0x21643d=>{const _0x2ec045=_0x3b9602;if(_0x21643d==null)return;const {skeleton:_0x4afb36}=_0x21643d,{scene:_0x1225cc}=this[_0x2ec045(0x349)];_0x1225cc[_0x2ec045(0x1ec)]['subscribeEvent'](a[_0x2ec045(0x276)](_0x175c39=>{const _0x273298=_0x2ec045;var _0x2df63f,_0x356ad9;const {offsetX:_0x378722,offsetY:_0x1d1224}=_0x175c39,{x:_0x3757dc,y:_0x23e782}=_0x1225cc['getRelativeToViewportCoord'](C[_0x273298(0x2e6)][_0x273298(0x111)]([_0x378722,_0x1d1224])),{scaleX:_0x210d6a,scaleY:_0x24dd50}=_0x1225cc[_0x273298(0x2a5)](),_0x455e4b=_0x1225cc[_0x273298(0x234)](C[_0x273298(0x2ac)]['VIEW_MAIN']),_0x333246=_0x1225cc['getVpScrollXYInfoByPosToVp'](C[_0x273298(0x2e6)]['FromArray']([_0x3757dc,_0x23e782]),_0x455e4b),_0x527940=_0x4afb36[_0x273298(0x107)](_0x378722,_0x1d1224,_0x210d6a,_0x24dd50,_0x333246);((_0x2df63f=this[_0x273298(0x19d)])==null?void 0x0:_0x2df63f['column'])===_0x527940['column']&&((_0x356ad9=this[_0x273298(0x19d)])==null?void 0x0:_0x356ad9['row'])===_0x527940['row']||this[_0x273298(0x23e)][_0x273298(0x1d5)](_0x49b456=>{_0x49b456['onMouseMove'](_0x527940);});},0x64));});}[_0x931b1e(0x190)](_0x221b29,_0x41833c){const _0x3b7e30=_0x931b1e;var _0x57ede1;const _0x42c18f=(_0x57ede1=this[_0x3b7e30(0x33b)][_0x3b7e30(0x173)]())==null?void 0x0:_0x57ede1[_0x3b7e30(0x359)];if(!_0x42c18f)return;const _0x3412c0=this[_0x3b7e30(0x24e)]();if(!_0x3412c0)return;this[_0x3b7e30(0x23e)][_0x3b7e30(0x1d5)](_0x517694=>{const _0x3aeda6=_0x3b7e30;_0x517694[_0x3aeda6(0x28b)]();});const {scene:_0x3515d4}=_0x3412c0,_0x663b3c=xt(Array[_0x3b7e30(0x104)](_0x41833c[_0x3b7e30(0x313)]()))[_0x3b7e30(0x21a)](_0xac488=>{const _0x2e9254=_0x3b7e30,{color:_0x4e5146,range:_0xa2ad9a,name:_0x5c7eb5,selection:_0x4e9782,sheetID:_0x567e8b}=_0xac488,{startColumn:_0x1bb180,startRow:_0x21b2c0,endColumn:_0xd20c3b,endRow:_0x45327a}=_0xa2ad9a,_0x49cadd=J['getCoordByCell'](_0x21b2c0,_0x1bb180,_0x3515d4,_0x42c18f),_0x411b3b=J['getCoordByCell'](_0x45327a,_0xd20c3b,_0x3515d4,_0x42c18f),{columnHeaderHeightAndMarginTop:_0x3169c2}=_0x42c18f,{startX:_0x57072f,startY:_0x5843fe}=_0x49cadd,{endX:_0xd10845,endY:_0x29b825}=_0x411b3b,_0x336280=_0xd10845-_0x57072f,_0x19090f=_0x29b825-_0x5843fe,_0x39409f={'labelPosition':_0x5843fe-_0x3169c2>=X?_0x2e9254(0x341):'bottom','sheetID':_0x567e8b,'range':_0xa2ad9a,'color':_0x4e5146,'name':_0x5c7eb5,'selection':_0x4e9782,'left':_0x57072f,'top':_0x5843fe,'width':_0x336280,'height':_0x19090f,'evented':!0x1,'zIndex':$t};return new je(_0x5c7eb5,_0x39409f);});_0x3515d4[_0x3b7e30(0x147)](_0x663b3c,At),this['_cursors']=new Set(_0x663b3c);}[_0x931b1e(0x200)](){const _0x5b48f4=_0x931b1e;var _0xb9c58d;(_0xb9c58d=this['_cursors'])==null||_0xb9c58d[_0x5b48f4(0x1d5)](_0x4f4951=>_0x4f4951[_0x5b48f4(0x151)]());}[_0x931b1e(0x24e)](){const _0x17d457=_0x931b1e;return J[_0x17d457(0x2a8)](this[_0x17d457(0x349)][_0x17d457(0xd2)],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x931b1e(0x1da)](F)),ue(0x3,a[_0x931b1e(0x1da)](a['ThemeService']))],Ce);function xt(_0x28713d){const _0x4b1e4a=_0x931b1e,_0x5c464e=new Map();return _0x28713d['forEach'](_0xc6288b=>{const _0x1de6fd=_0x1e77;if(_0x5c464e[_0x1de6fd(0x264)](_0xc6288b[_0x1de6fd(0x2f9)])){const _0x5500e4=_0x5c464e[_0x1de6fd(0x25b)](_0xc6288b[_0x1de6fd(0x2f9)]);_0x5500e4[_0x1de6fd(0x277)]+=',\x20'+_0xc6288b[_0x1de6fd(0x277)];}else _0x5c464e[_0x1de6fd(0x303)](_0xc6288b['selection'],_0xc6288b);}),Array[_0x4b1e4a(0x104)](_0x5c464e[_0x4b1e4a(0x313)]());}var Bt=Object[_0x931b1e(0x304)],Ft=(_0x3abf6c,_0x53c04b,_0x5ebc25,_0x3ce00f)=>{for(var _0x4d0946=_0x3ce00f>0x1?void 0x0:_0x3ce00f?Bt(_0x53c04b,_0x5ebc25):_0x53c04b,_0x214594=_0x3abf6c['length']-0x1,_0x366cd3;_0x214594>=0x0;_0x214594--)(_0x366cd3=_0x3abf6c[_0x214594])&&(_0x4d0946=_0x366cd3(_0x4d0946)||_0x4d0946);return _0x4d0946;},y=(_0x1966f8,_0x150957)=>(_0x56ce96,_0x50875c)=>_0x150957(_0x56ce96,_0x50875c,_0x1966f8);let Z=class extends a[_0x931b1e(0x22d)]{constructor(_0x2e0f97,_0x59ac1a,_0x46fbeb,_0x118799,_0x3cd812,_0x57ee04){const _0xfb9cb8=_0x931b1e;super(),this['_beforeCloseService']=_0x2e0f97,this['_localCacheService']=_0x59ac1a,this['_collaborationUIEventService']=_0x46fbeb,this[_0xfb9cb8(0x1a0)]=_0x118799,this[_0xfb9cb8(0xc6)]=_0x3cd812,this[_0xfb9cb8(0xf7)]=_0x57ee04,this[_0xfb9cb8(0xbb)](),this[_0xfb9cb8(0x2cb)]();}[_0x931b1e(0xbb)](){const _0x44de3a=_0x931b1e;this[_0x44de3a(0x167)](this[_0x44de3a(0x266)][_0x44de3a(0x177)](()=>{const _0x9c7cef=_0x44de3a;if(this[_0x9c7cef(0xb6)][_0x9c7cef(0x106)][_0x9c7cef(0x1b2)])return this['_localeService']['t'](_0x9c7cef(0x283));}));}[_0x931b1e(0x2cb)](){const _0x1f96f9=_0x931b1e;this[_0x1f96f9(0x167)](this[_0x1f96f9(0x352)][_0x1f96f9(0x1c7)][_0x1f96f9(0x143)](_0x19d0ed=>{const _0x1a669c=_0x1f96f9;_0x19d0ed['id']===u[_0x1a669c(0x2a2)][_0x1a669c(0x2e5)]&&this[_0x1a669c(0x1a0)][_0x1a669c(0x30b)]({'type':T[_0x1a669c(0x134)]['Warning'],'content':this[_0x1a669c(0xf7)]['t'](_0x1a669c(0x2e9))}),_0x19d0ed['id']===u[_0x1a669c(0x2a2)][_0x1a669c(0x35a)]&&this[_0x1a669c(0x1a0)]['show']({'type':T[_0x1a669c(0x134)]['Warning'],'content':this[_0x1a669c(0xf7)]['t'](_0x1a669c(0x339))}),_0x19d0ed['id']===u[_0x1a669c(0x2a2)][_0x1a669c(0xb8)]&&this['_notificationService'][_0x1a669c(0x30b)]({'title':this[_0x1a669c(0xf7)]['t'](_0x1a669c(0xda)),'content':this[_0x1a669c(0xf7)]['t'](_0x1a669c(0x18b)),'type':_0x1a669c(0x1bc),'duration':0x0}),_0x19d0ed['id']===u[_0x1a669c(0x2a2)][_0x1a669c(0x26d)]&&this[_0x1a669c(0x1a0)][_0x1a669c(0x30b)]({'type':T[_0x1a669c(0x134)]['Error'],'content':this[_0x1a669c(0xf7)]['t']('collaboration.closeRoom')+'('+_0x19d0ed['data']+')'}),_0x19d0ed['id']===u[_0x1a669c(0x2a2)][_0x1a669c(0x338)]&&this[_0x1a669c(0x1a0)][_0x1a669c(0x30b)]({'type':T[_0x1a669c(0x134)]['Warning'],'content':this[_0x1a669c(0xf7)]['t'](_0x19d0ed['data']||'')}),_0x19d0ed['id']===u[_0x1a669c(0x2a2)][_0x1a669c(0x13c)]&&this[_0x1a669c(0x1a0)][_0x1a669c(0x30b)]({'type':T[_0x1a669c(0x134)][_0x1a669c(0xa8)],'content':this['_localeService']['t'](_0x1a669c(0x1fa))}),_0x19d0ed['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x1a669c(0x30b)]({'type':T[_0x1a669c(0x134)]['Error'],'content':this[_0x1a669c(0xf7)]['t'](_0x1a669c(0x30f))}),_0x19d0ed['id']===u[_0x1a669c(0x2a2)][_0x1a669c(0x1eb)]&&this[_0x1a669c(0x1a0)][_0x1a669c(0x30b)]({'type':T[_0x1a669c(0x134)][_0x1a669c(0x31d)],'content':this[_0x1a669c(0xf7)]['t'](_0x1a669c(0x2de))});}));}};Z=Ft([y(0x0,O[_0x931b1e(0x1d1)]),y(0x1,u[_0x931b1e(0x15c)]),y(0x2,a['Inject'](u[_0x931b1e(0xac)])),y(0x3,O[_0x931b1e(0x14d)]),y(0x4,O[_0x931b1e(0x133)]),y(0x5,a[_0x931b1e(0x1da)](a[_0x931b1e(0xb5)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x39b006,_0x51184a,_0x5f4b06,_0x47e386)=>{const _0x56269c=_0x931b1e;for(var _0x2a1faf=_0x47e386>0x1?void 0x0:_0x47e386?jt(_0x51184a,_0x5f4b06):_0x51184a,_0x36c5a8=_0x39b006[_0x56269c(0x180)]-0x1,_0x43daaa;_0x36c5a8>=0x0;_0x36c5a8--)(_0x43daaa=_0x39b006[_0x36c5a8])&&(_0x2a1faf=_0x43daaa(_0x2a1faf)||_0x2a1faf);return _0x2a1faf;},z=(_0x2bf23e,_0x443326)=>(_0x126acd,_0x43455b)=>_0x443326(_0x126acd,_0x43455b,_0x2bf23e);let Q=class extends a['Disposable']{constructor(_0x17085f,_0x272bea,_0x28ab2e,_0xed2e8f){const _0x530fbb=_0x931b1e;super(),_(this,_0x530fbb(0x20e)),(this[_0x530fbb(0x251)]=_0x17085f,this[_0x530fbb(0x247)]=_0x272bea,this[_0x530fbb(0x2d3)]=_0x28ab2e,this[_0x530fbb(0x14e)]=_0xed2e8f,this['_init']());}[_0x931b1e(0xb0)](){const _0x4249a0=_0x931b1e;this[_0x4249a0(0x2f7)](),this[_0x4249a0(0x364)](),this[_0x4249a0(0x278)](),this[_0x4249a0(0x26f)]();}[_0x931b1e(0x26f)](){const _0x365277=_0x931b1e;this[_0x365277(0x167)](this[_0x365277(0x14e)][_0x365277(0x26c)][_0x365277(0x143)](_0x33086c=>{const _0x565e17=_0x365277;this['_memberID']=_0x33086c==null?void 0x0:_0x33086c[_0x565e17(0x12c)];}));}['_initWindowErrorListener'](){const _0x1db572=_0x931b1e,_0x100fed=_0x5d5a7c=>{const _0x4c0157=_0x1e77;var _0x3e8291;this['_uploadLog']('error',_0x4c0157(0x15f)+_0x5d5a7c['message']+'\x20at\x20'+_0x5d5a7c[_0x4c0157(0x17f)]+':'+_0x5d5a7c[_0x4c0157(0x347)]+':'+_0x5d5a7c[_0x4c0157(0x1ca)]+'\x0a'+(((_0x3e8291=_0x5d5a7c[_0x4c0157(0x1bc)])==null?void 0x0:_0x3e8291[_0x4c0157(0x1b8)])||''));};window[_0x1db572(0x168)]('error',_0x100fed),this['disposeWithMe'](()=>{const _0x1b7b3a=_0x1db572;window[_0x1b7b3a(0x24a)](_0x1b7b3a(0x1bc),_0x100fed);});}['_initUnhandledRejectionListener'](){const _0x2e4a30=_0x931b1e,_0x177fab=_0x104a78=>{const _0x3f20c0=_0x1e77;this[_0x3f20c0(0x360)]('error','[Unhandled\x20Rejection]:\x20'+_0x104a78[_0x3f20c0(0x165)]);};window[_0x2e4a30(0x168)]('unhandledrejection',_0x177fab),this[_0x2e4a30(0x167)](()=>{const _0x112634=_0x2e4a30;window[_0x112634(0x24a)](_0x112634(0x22f),_0x177fab);});}[_0x931b1e(0x278)](){const _0x504bca=_0x931b1e,_0x38c74d=this[_0x504bca(0x2d3)]['error'][_0x504bca(0x1b6)](this[_0x504bca(0x2d3)]);this[_0x504bca(0x2d3)][_0x504bca(0x1bc)]=(..._0x251f8d)=>{const _0x3709dd=_0x504bca,_0x29ca1f=_0x251f8d[_0x3709dd(0x21a)](_0x230282=>_0x230282 instanceof Error?_0x230282[_0x3709dd(0x260)]+'\x0a'+_0x230282[_0x3709dd(0x1b8)]:String(_0x230282))['join']('\x20');this['_uploadLog'](_0x3709dd(0x1bc),_0x3709dd(0xef)+_0x29ca1f),_0x38c74d(..._0x251f8d);},this[_0x504bca(0x167)](()=>{const _0x19584b=_0x504bca;this[_0x19584b(0x2d3)][_0x19584b(0x1bc)]=_0x38c74d;});}[_0x931b1e(0x360)](_0x4d0b9c,_0x53c9be){const _0x3c6654=_0x931b1e;try{const _0x1a88d0={'userId':this[_0x3c6654(0x20e)],'logLabel':_0x4d0b9c,'content':_0x53c9be};this['_httpService'][_0x3c6654(0xa6)](_0x3c6654(0xc2),{'body':_0x1a88d0})[_0x3c6654(0x312)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x931b1e(0x1da)](a[_0x931b1e(0x189)])),z(0x1,a['Inject'](x[_0x931b1e(0x15b)])),z(0x2,a[_0x931b1e(0x9e)]),z(0x3,a[_0x931b1e(0x1da)](u[_0x931b1e(0x333)]))],Q);const Yt=_0x931b1e(0x2b1),Me={};var Ht=Object[_0x931b1e(0x304)],Wt=(_0x15eaa2,_0x212a98,_0x429091,_0x300687)=>{const _0x4597b2=_0x931b1e;for(var _0x321b22=_0x300687>0x1?void 0x0:_0x300687?Ht(_0x212a98,_0x429091):_0x212a98,_0xac5f42=_0x15eaa2[_0x4597b2(0x180)]-0x1,_0x2145d7;_0xac5f42>=0x0;_0xac5f42--)(_0x2145d7=_0x15eaa2[_0xac5f42])&&(_0x321b22=_0x2145d7(_0x321b22)||_0x321b22);return _0x321b22;},Ae=(_0x49f9ba,_0x213b51)=>(_0x5dfe69,_0x21f0f4)=>_0x213b51(_0x5dfe69,_0x21f0f4,_0x49f9ba);let ee=class{constructor(_0x2d9f04,_0x475a3a){const _0xa42e79=_0x931b1e;this[_0xa42e79(0x18a)]=_0x2d9f04,this['_renderManagerService']=_0x475a3a;}[_0x931b1e(0x17d)](_0x42e869){const _0x2b658d=_0x931b1e;this['_transformUndoRedoStack'](_0x42e869),this[_0x2b658d(0x2bf)](_0x42e869);}['transformRemoteChangeset'](_0x29e8ef){const _0x10ab0b=_0x931b1e,{unitID:_0x457d98}=_0x29e8ef,_0x566686=this[_0x10ab0b(0x18e)][_0x10ab0b(0xb7)](_0x457d98)['with'](p[_0x10ab0b(0xe8)]),{redoCache:_0x500134}=_0x566686[_0x10ab0b(0x2af)]();if(_0x500134[_0x10ab0b(0x180)]===0x0)return _0x29e8ef;let _0x33de3d=a[_0x10ab0b(0x220)][_0x10ab0b(0x13e)](_0x29e8ef[_0x10ab0b(0x162)][0x0]);for(let _0xfb4085=0x0;_0xfb4085<_0x500134[_0x10ab0b(0x180)];_0xfb4085++){const _0x16e0bc={'id':_0x10ab0b(0xc7),'params':{..._0x500134[_0xfb4085]}},_0x4e9e72=this['_transformService'][_0x10ab0b(0x156)](_0x33de3d,_0x16e0bc,!0x1);if(g[_0x10ab0b(0x1ce)](_0x4e9e72))throw _0x4e9e72['error'];_0x33de3d=_0x4e9e72[_0x10ab0b(0xbe)];}return{...a[_0x10ab0b(0x220)][_0x10ab0b(0x13e)](_0x29e8ef),'mutations':[_0x33de3d]};}[_0x931b1e(0x11b)](_0x46d8a4){const _0x48eea8=_0x931b1e,{unitID:_0xbb7df4}=_0x46d8a4,_0x2a57d1=this[_0x48eea8(0x18e)][_0x48eea8(0xb7)](_0xbb7df4)[_0x48eea8(0x2bd)](p[_0x48eea8(0xe8)]),{undoCache:_0x115478,redoCache:_0x21dded}=_0x2a57d1[_0x48eea8(0x2af)]();if(_0x115478[_0x48eea8(0x180)]===0x0||_0x21dded[_0x48eea8(0x180)]===0x0)return;const _0x1474fb=[],_0x1d97ea=[];let _0x4da99c=a['Tools']['deepClone'](_0x46d8a4[_0x48eea8(0x162)][0x0]),_0xba4e3f=a['Tools'][_0x48eea8(0x13e)](_0x46d8a4[_0x48eea8(0x162)][0x0]);for(let _0x5ab713=_0x115478[_0x48eea8(0x180)]-0x1;_0x5ab713>=0x0;_0x5ab713--){const _0x36b5b8={'id':_0x48eea8(0xc7),'params':{..._0x115478[_0x5ab713]}},_0x52b867={'id':_0x48eea8(0xc7),'params':{..._0x21dded[_0x5ab713]}},_0x552512=this['_transformService'][_0x48eea8(0x156)](_0x4da99c,_0x36b5b8,!0x1),_0x4e85aa=this[_0x48eea8(0x18a)]['transformMutation'](_0xba4e3f,_0x52b867,!0x1);if(g[_0x48eea8(0x1ce)](_0x552512))throw _0x552512['error'];if(g[_0x48eea8(0x1ce)](_0x4e85aa))throw _0x4e85aa[_0x48eea8(0x1bc)];_0x1474fb['unshift'](_0x552512['m2Prime'][_0x48eea8(0x2e4)]),_0x1d97ea['unshift'](_0x4e85aa[_0x48eea8(0x1f2)][_0x48eea8(0x2e4)]),_0x4da99c=_0x552512[_0x48eea8(0xbe)],_0xba4e3f=_0x4e85aa[_0x48eea8(0xbe)];}_0x2a57d1[_0x48eea8(0x124)]({'undoCache':_0x1474fb,'redoCache':_0x1d97ea});}['_transformPreviousActiveRange'](_0x42533b){const _0x16bdc7=_0x931b1e,{unitID:_0x23523b}=_0x42533b,_0x51183f=this['_renderManagerService'][_0x16bdc7(0xb7)](_0x23523b)['with'](p[_0x16bdc7(0xe8)]),_0x2ffb16=_0x51183f[_0x16bdc7(0x1b5)]();if(_0x2ffb16==null)return;const _0x218e91=[{'id':_0x16bdc7(0xc7),'params':{'unitId':_0x42533b[_0x16bdc7(0x261)],'actions':null,'textRanges':[_0x2ffb16]}}],_0x4cd233=this[_0x16bdc7(0x18a)][_0x16bdc7(0x235)](_0x42533b,_0x218e91);if(!g[_0x16bdc7(0x27a)](_0x4cd233))throw _0x4cd233[_0x16bdc7(0x1bc)];const _0x100937=_0x4cd233[_0x16bdc7(0x1f2)][0x0]['params'][_0x16bdc7(0x1ed)];Array[_0x16bdc7(0x335)](_0x100937)&&_0x100937[_0x16bdc7(0x180)]&&_0x51183f[_0x16bdc7(0xfe)](_0x100937[0x0]);}};ee=Wt([Ae(0x0,g[_0x931b1e(0x1f6)]),Ae(0x1,C[_0x931b1e(0x171)])],ee);var Vt=Object[_0x931b1e(0x304)],Gt=(_0x4313d0,_0x1df24a,_0x9e161e,_0x1da366)=>{const _0x571065=_0x931b1e;for(var _0x5d5795=_0x1da366>0x1?void 0x0:_0x1da366?Vt(_0x1df24a,_0x9e161e):_0x1df24a,_0x16ed3f=_0x4313d0[_0x571065(0x180)]-0x1,_0x5df293;_0x16ed3f>=0x0;_0x16ed3f--)(_0x5df293=_0x4313d0[_0x16ed3f])&&(_0x5d5795=_0x5df293(_0x5d5795)||_0x5d5795);return _0x5d5795;},Ie=(_0x441abc,_0x42d8f9)=>(_0x39ccce,_0x228417)=>_0x42d8f9(_0x39ccce,_0x228417,_0x441abc);let te=class{constructor(_0x3d8634,_0x21ec2c,_0x11a53f){const _0x2db313=_0x931b1e;this['_injector']=_0x3d8634,this[_0x2db313(0x18a)]=_0x21ec2c,this[_0x2db313(0x204)]=_0x11a53f;}[_0x931b1e(0x1a1)](_0x38bb0b){const _0x1a8275=_0x931b1e;this[_0x1a8275(0x2a3)](_0x38bb0b);}[_0x931b1e(0x309)](_0x1e638a){const _0x3aa155=_0x931b1e,{unitID:_0x3b2876}=_0x1e638a,{collaboration:_0x5aea8e}=this['_docStateChangeManagerService'][_0x3aa155(0x1dc)](_0x3b2876);if(_0x5aea8e['length']===0x0)return _0x1e638a;let _0x54ba77=a['Tools'][_0x3aa155(0x13e)](_0x1e638a[_0x3aa155(0x162)][0x0]);for(let _0x134d70=0x0;_0x134d70<_0x5aea8e[_0x3aa155(0x180)];_0x134d70++){const _0x3ae94b={'id':_0x3aa155(0xc7),'params':{'unitId':_0x5aea8e[_0x134d70][_0x3aa155(0x209)],..._0x5aea8e[_0x134d70][_0x3aa155(0x344)]}},_0x344b19=this['_transformService'][_0x3aa155(0x156)](_0x54ba77,_0x3ae94b,!0x1);if(g[_0x3aa155(0x1ce)](_0x344b19))throw _0x344b19[_0x3aa155(0x1bc)];_0x54ba77=_0x344b19['m1Prime'];}return{...a[_0x3aa155(0x220)][_0x3aa155(0x13e)](_0x1e638a),'mutations':[_0x54ba77]};}[_0x931b1e(0x2a3)](_0x5a1479){const _0x358f59=_0x931b1e,{unitID:_0x1588d9}=_0x5a1479,{history:_0x49aaa2,collaboration:_0xf4cec4}=this[_0x358f59(0x204)][_0x358f59(0x1dc)](_0x1588d9);if(_0x49aaa2[_0x358f59(0x180)]===0x0&&_0xf4cec4['length']===0x0)return;const _0x1cf2b0=[],_0x815f57=[];let _0x2ef7d5=a[_0x358f59(0x220)][_0x358f59(0x13e)](_0x5a1479[_0x358f59(0x162)][0x0]),_0x583693=a[_0x358f59(0x220)][_0x358f59(0x13e)](_0x5a1479[_0x358f59(0x162)][0x0]);for(let _0x40c53e=_0x49aaa2[_0x358f59(0x180)]-0x1;_0x40c53e>=0x0;_0x40c53e--){const _0x4ff844={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x49aaa2[_0x40c53e]['unitId'],..._0x49aaa2[_0x40c53e]['undoState']}},_0x117874={'id':_0x358f59(0xc7),'params':{'unitId':_0x49aaa2[_0x40c53e][_0x358f59(0x209)],..._0x49aaa2[_0x40c53e]['redoState']}},_0x765c7c=this['_transformService'][_0x358f59(0x156)](_0x2ef7d5,_0x4ff844,!0x1),_0x5b97c2=this[_0x358f59(0x18a)][_0x358f59(0x156)](_0x583693,_0x117874,!0x1);if(g['isTransformMutationFailure'](_0x765c7c))throw _0x765c7c[_0x358f59(0x1bc)];if(g[_0x358f59(0x1ce)](_0x5b97c2))throw _0x5b97c2['error'];_0x1cf2b0[_0x358f59(0x2a7)]({..._0x49aaa2[_0x40c53e],'undoState':_0x765c7c[_0x358f59(0x1f2)]['params'],'redoState':_0x5b97c2[_0x358f59(0x1f2)][_0x358f59(0x2e4)]}),_0x2ef7d5=_0x765c7c['m1Prime'],_0x583693=_0x5b97c2['m1Prime'];}_0x2ef7d5=a[_0x358f59(0x220)]['deepClone'](_0x5a1479[_0x358f59(0x162)][0x0]),_0x583693=a[_0x358f59(0x220)][_0x358f59(0x13e)](_0x5a1479[_0x358f59(0x162)][0x0]);for(let _0x42ac98=_0xf4cec4[_0x358f59(0x180)]-0x1;_0x42ac98>=0x0;_0x42ac98--){const _0x563560={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf4cec4[_0x42ac98][_0x358f59(0x209)],..._0xf4cec4[_0x42ac98][_0x358f59(0x2bc)]}},_0x342eaa={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf4cec4[_0x42ac98]['unitId'],..._0xf4cec4[_0x42ac98][_0x358f59(0x344)]}},_0x27b658=this['_transformService'][_0x358f59(0x156)](_0x2ef7d5,_0x563560,!0x1),_0x29e75d=this[_0x358f59(0x18a)][_0x358f59(0x156)](_0x583693,_0x342eaa,!0x1);if(g[_0x358f59(0x1ce)](_0x27b658))throw _0x27b658['error'];if(g[_0x358f59(0x1ce)](_0x29e75d))throw _0x29e75d['error'];_0x815f57[_0x358f59(0x2a7)]({..._0xf4cec4[_0x42ac98],'undoState':_0x27b658[_0x358f59(0x1f2)][_0x358f59(0x2e4)],'redoState':_0x29e75d['m2Prime'][_0x358f59(0x2e4)]}),_0x2ef7d5=_0x27b658['m1Prime'],_0x583693=_0x29e75d[_0x358f59(0xbe)];}this[_0x358f59(0x204)][_0x358f59(0xee)](_0x1588d9,{'history':_0x1cf2b0,'collaboration':_0x815f57});}};te=Gt([Ie(0x0,a['Inject'](a['Injector'])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x931b1e(0x1da)](p['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x1766f6,_0x12ca47,_0xa96f03,_0x10f22a)=>{for(var _0xa8a68d=_0x10f22a>0x1?void 0x0:_0x10f22a?Xt(_0x12ca47,_0xa96f03):_0x12ca47,_0x279a0e=_0x1766f6['length']-0x1,_0x149ade;_0x279a0e>=0x0;_0x279a0e--)(_0x149ade=_0x1766f6[_0x279a0e])&&(_0xa8a68d=_0x149ade(_0xa8a68d)||_0xa8a68d);return _0xa8a68d;},Pe=(_0x3d204a,_0x57a03d)=>(_0x22587b,_0x2d9c82)=>_0x57a03d(_0x22587b,_0x2d9c82,_0x3d204a);let se=class{constructor(_0x4a271d,_0x56e570){const _0x54f465=_0x931b1e;this[_0x54f465(0x251)]=_0x4a271d,this[_0x54f465(0x18a)]=_0x56e570;}[_0x931b1e(0xdb)](_0x403406){const _0x237a85=_0x931b1e;var _0x46280d;const _0x3a1e2d=this['_injector'][_0x237a85(0x25b)](V[_0x237a85(0x2eb)]),_0x3f9db6=(_0x46280d=_0x3a1e2d[_0x237a85(0x216)]())!=null?_0x46280d:[];if(_0x3f9db6['length']===0x0)return;const _0x36da31=_0x403406[_0x237a85(0x261)],_0x588e18=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36da31,'actions':null,'textRanges':_0x3f9db6}}],_0x1d1f1d=this['_transformService'][_0x237a85(0x235)](_0x403406,_0x588e18);if(!g[_0x237a85(0x27a)](_0x1d1f1d))throw _0x1d1f1d[_0x237a85(0x1bc)];const _0x17023c=_0x1d1f1d[_0x237a85(0x1f2)][0x0][_0x237a85(0x2e4)][_0x237a85(0x1ed)];Array[_0x237a85(0x335)](_0x17023c)&&_0x17023c[_0x237a85(0x180)]&&_0x3a1e2d['replaceDocRanges'](_0x17023c,{'unitId':_0x36da31,'subUnitId':_0x36da31},!0x1);}};se=Kt([Pe(0x0,a[_0x931b1e(0x1da)](a['Injector'])),Pe(0x1,g['ITransformService'])],se);var qt=Object[_0x931b1e(0x304)],zt=(_0x2de8c6,_0x42a820,_0x5b368d,_0x715635)=>{const _0x2fc2e5=_0x931b1e;for(var _0x50c370=_0x715635>0x1?void 0x0:_0x715635?qt(_0x42a820,_0x5b368d):_0x42a820,_0x5ceb8f=_0x2de8c6[_0x2fc2e5(0x180)]-0x1,_0x111006;_0x5ceb8f>=0x0;_0x5ceb8f--)(_0x111006=_0x2de8c6[_0x5ceb8f])&&(_0x50c370=_0x111006(_0x50c370)||_0x50c370);return _0x50c370;},N=(_0x93521e,_0x8f93de)=>(_0x3a2a63,_0x250985)=>_0x8f93de(_0x3a2a63,_0x250985,_0x93521e);let ie=class extends a[_0x931b1e(0x22d)]{constructor(_0x1d3dff,_0x808c2d,_0x2ea6bc,_0x2736c2,_0x4a09c7,_0x573d89,_0x2477a7,_0x25af08){const _0x5013f8=_0x931b1e;super(),_(this,_0x5013f8(0x123),new I[(_0x5013f8(0x346))](u[_0x5013f8(0x10b)][_0x5013f8(0xa2)])),(this[_0x5013f8(0x204)]=_0x1d3dff,this[_0x5013f8(0x2fb)]=_0x808c2d,this[_0x5013f8(0x34f)]=_0x2ea6bc,this[_0x5013f8(0x195)]=_0x2736c2,this[_0x5013f8(0x14c)]=_0x4a09c7,this[_0x5013f8(0x1d3)]=_0x573d89,this['_messageService']=_0x2477a7,this['_localeService']=_0x25af08,this[_0x5013f8(0x205)]());}[_0x931b1e(0x205)](){const _0xdb5511=_0x931b1e;this[_0xdb5511(0x167)](this[_0xdb5511(0x2fb)][_0xdb5511(0xaf)]['subscribe'](_0x4f7c7d=>{const _0x59fee7=_0xdb5511,_0x2de0ca=this[_0x59fee7(0x204)][_0x59fee7(0x32f)][_0x59fee7(0x143)](_0x3a7384=>{const _0x2278f8=_0x59fee7;if(_0x3a7384==null)return;const {unitId:_0x148e4a,redoState:_0x521d17,commandId:_0x43d031}=_0x3a7384;if(_0x148e4a!==_0x4f7c7d[_0x2278f8(0x261)])return;const _0x5489bc={'id':_0x43d031,'type':a[_0x2278f8(0xd1)][_0x2278f8(0xa9)],'params':{'unitId':_0x148e4a,'actions':_0x521d17['actions'],'textRanges':null}};_0x4f7c7d[_0x2278f8(0x1a8)](_0x5489bc);});if(_0x4f7c7d['disposeWithMe'](_0x2de0ca),_0x4f7c7d instanceof u[_0x59fee7(0x103)]){const _0x496869={'onTransformIME':_0x431a60=>this[_0x59fee7(0x34f)][_0x59fee7(0x17d)](_0x431a60),'onTransformState':_0x1d3e0e=>this[_0x59fee7(0x195)][_0x59fee7(0x1a1)](_0x1d3e0e),'onTransformSelections':_0x4c71ab=>this[_0x59fee7(0x14c)]['transformSelections'](_0x4c71ab),'onSyncEditingCollabCursor':_0x135fa9=>this[_0x59fee7(0x1d3)][_0x59fee7(0x289)](_0x135fa9),'onTransformRemoteChangesetByIMECache':_0x561757=>this[_0x59fee7(0x34f)][_0x59fee7(0x309)](_0x561757),'onTransformRemoteChangesetByStateCache':_0x2349ae=>this['_docTransformStateCacheService'][_0x59fee7(0x309)](_0x2349ae)};_0x4f7c7d[_0x59fee7(0x102)](_0x496869);}}));}};ie=zt([N(0x0,a['Inject'](p[_0x931b1e(0xa5)])),N(0x1,a[_0x931b1e(0x1da)](u[_0x931b1e(0x31b)])),N(0x2,a[_0x931b1e(0x1da)](ee)),N(0x3,a[_0x931b1e(0x1da)](te)),N(0x4,a['Inject'](se)),N(0x5,a['Inject'](be)),N(0x6,O['IMessageService']),N(0x7,a[_0x931b1e(0x1da)](a[_0x931b1e(0xb5)]))],ie);var G=(_0x5bb834=>(_0x5bb834[_0x5bb834[_0x931b1e(0x1a5)]=0x0]=_0x931b1e(0x1a5),_0x5bb834[_0x5bb834['OK']=0x1]='OK',_0x5bb834[_0x5bb834[_0x931b1e(0x249)]=0x2]=_0x931b1e(0x249),_0x5bb834[_0x5bb834['PERMISSION_DENIED']=0x3]=_0x931b1e(0xb8),_0x5bb834[_0x5bb834[_0x931b1e(0x1aa)]=0x4]=_0x931b1e(0x1aa),_0x5bb834[_0x5bb834[_0x931b1e(0x255)]=0x5]=_0x931b1e(0x255),_0x5bb834[_0x5bb834[_0x931b1e(0x1cb)]=0x6]=_0x931b1e(0x1cb),_0x5bb834[_0x5bb834['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x5bb834[_0x5bb834[_0x931b1e(0xa1)]=0x8]='TOO_MANY_REQUESTS',_0x5bb834[_0x5bb834['COMPLETION_FINISHED']=0x9]=_0x931b1e(0xde),_0x5bb834[_0x5bb834[_0x931b1e(0xf2)]=0xa]=_0x931b1e(0xf2),_0x5bb834[_0x5bb834['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x931b1e(0x197),_0x5bb834[_0x5bb834['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x931b1e(0x269),_0x5bb834[_0x5bb834[_0x931b1e(0x1b7)]=0xd]=_0x931b1e(0x1b7),_0x5bb834[_0x5bb834[_0x931b1e(0x232)]=0xe]=_0x931b1e(0x232),_0x5bb834[_0x5bb834['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x931b1e(0x1a9),_0x5bb834[_0x5bb834[_0x931b1e(0xec)]=0x10]=_0x931b1e(0xec),_0x5bb834[_0x5bb834['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5bb834[_0x5bb834[_0x931b1e(0xf5)]=0x65]=_0x931b1e(0xf5),_0x5bb834[_0x5bb834['USER_NOT_FOUND']=0xc9]=_0x931b1e(0x186),_0x5bb834[_0x5bb834[_0x931b1e(0x2e1)]=0xca]=_0x931b1e(0x2e1),_0x5bb834[_0x5bb834[_0x931b1e(0x323)]=0x1389]=_0x931b1e(0x323),_0x5bb834[_0x5bb834[_0x931b1e(0xab)]=0x1771]=_0x931b1e(0xab),_0x5bb834[_0x5bb834[_0x931b1e(0x19c)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5bb834[_0x5bb834[_0x931b1e(0x22c)]=0x1773]=_0x931b1e(0x22c),_0x5bb834[_0x5bb834['APPLY_REJECT']=0x1b59]=_0x931b1e(0xa7),_0x5bb834[_0x5bb834[_0x931b1e(0x2d0)]=0x1b5a]=_0x931b1e(0x2d0),_0x5bb834[_0x5bb834[_0x931b1e(0x2c4)]=0x1b5b]=_0x931b1e(0x2c4),_0x5bb834[_0x5bb834[_0x931b1e(0xdf)]=0x1b5c]=_0x931b1e(0xdf),_0x5bb834[_0x5bb834['APPLY_DUPLICATED']=0x1b5d]=_0x931b1e(0x19f),_0x5bb834[_0x5bb834['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x931b1e(0x2ce),_0x5bb834[_0x5bb834[_0x931b1e(0x254)]=0x2329]=_0x931b1e(0x254),_0x5bb834[_0x5bb834['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x931b1e(0x29a),_0x5bb834[_0x5bb834['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x931b1e(0x1b1),_0x5bb834[_0x5bb834[_0x931b1e(0x27f)]=0x232c]=_0x931b1e(0x27f),_0x5bb834[_0x5bb834['LICENSE_DISTRO_REJECTED']=0x232d]=_0x931b1e(0x281),_0x5bb834[_0x5bb834['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x931b1e(0x196),_0x5bb834[_0x5bb834['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5bb834[_0x5bb834[_0x931b1e(0x29b)]=0x2713]=_0x931b1e(0x29b),_0x5bb834[_0x5bb834['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5bb834[_0x5bb834['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x931b1e(0x19a),_0x5bb834[_0x5bb834[_0x931b1e(0xdd)]=0x271b]=_0x931b1e(0xdd),_0x5bb834[_0x5bb834['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x931b1e(0x21f),_0x5bb834[_0x5bb834['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x931b1e(0x2be),_0x5bb834[_0x5bb834['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x931b1e(0xd5),_0x5bb834[_0x5bb834[_0x931b1e(0x2f3)]=0x271f]=_0x931b1e(0x2f3),_0x5bb834[_0x5bb834['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x931b1e(0xaa),_0x5bb834[_0x5bb834[_0x931b1e(0x114)]=0x2af9]=_0x931b1e(0x114),_0x5bb834[_0x5bb834[_0x931b1e(0x286)]=0x2ee1]=_0x931b1e(0x286),_0x5bb834[_0x5bb834[_0x931b1e(0x210)]=0x2ee2]=_0x931b1e(0x210),_0x5bb834[_0x5bb834['INVITE_CODE_REQUIRED']=0x2ee3]=_0x931b1e(0x224),_0x5bb834[_0x5bb834['USER_NOT_INVITED_CODE']=0x2ee4]=_0x931b1e(0x32b),_0x5bb834[_0x5bb834[_0x931b1e(0x35e)]=0x2ee5]=_0x931b1e(0x35e),_0x5bb834[_0x5bb834[_0x931b1e(0x138)]=0x32c9]=_0x931b1e(0x138),_0x5bb834[_0x5bb834[_0x931b1e(0x337)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5bb834[_0x5bb834[_0x931b1e(0x222)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5bb834[_0x5bb834[_0x931b1e(0xc1)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x5bb834[_0x5bb834[_0x931b1e(0x1ae)]=0x36b2]=_0x931b1e(0x1ae),_0x5bb834[_0x5bb834[_0x931b1e(0x215)]=0x36b3]=_0x931b1e(0x215),_0x5bb834[_0x5bb834[_0x931b1e(0x244)]=0x36b4]=_0x931b1e(0x244),_0x5bb834[_0x5bb834[_0x931b1e(0xe9)]=0x3715]=_0x931b1e(0xe9),_0x5bb834[_0x5bb834[_0x931b1e(0x275)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5bb834[_0x5bb834[_0x931b1e(0xb3)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x5bb834[_0x5bb834[_0x931b1e(0x1e3)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5bb834[_0x5bb834[_0x931b1e(0x26b)]=0x3a99]=_0x931b1e(0x26b),_0x5bb834[_0x5bb834[_0x931b1e(0x35f)]=0x3a9a]=_0x931b1e(0x35f),_0x5bb834[_0x5bb834[_0x931b1e(0xb9)]=0x3a9b]=_0x931b1e(0xb9),_0x5bb834[_0x5bb834[_0x931b1e(0x1e6)]=0x3a9c]=_0x931b1e(0x1e6),_0x5bb834[_0x5bb834[_0x931b1e(0x1ab)]=0x3a9d]=_0x931b1e(0x1ab),_0x5bb834[_0x5bb834['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x931b1e(0x1bb),_0x5bb834[_0x5bb834[_0x931b1e(0x2f8)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x5bb834[_0x5bb834[_0x931b1e(0x11e)]=0x3e81]=_0x931b1e(0x11e),_0x5bb834[_0x5bb834['UNRECOGNIZED']=-0x1]=_0x931b1e(0x28e),_0x5bb834))(G||{});function Jt(_0x252852){const _0x47cff7=_0x931b1e;var _0x339609,_0x1df39c;const _0x514299=(_0x339609=_0x252852['stageInfo'])==null?void 0x0:_0x339609[_0x47cff7(0x1df)],_0x50542c=((_0x1df39c=_0x252852[_0x47cff7(0x314)])==null?void 0x0:_0x1df39c[_0x47cff7(0x211)])||0x0;return _0x514299===B[_0x47cff7(0x2e2)][_0x47cff7(0x21d)]&&_0x50542c>0x0;}function Zt(_0x41f898){const _0x8cadc3=_0x931b1e;return _0x41f898[_0x8cadc3(0x29f)]===B[_0x8cadc3(0x315)][_0x8cadc3(0x2df)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x4d4ff0,_0x54626b,_0x54357e,_0x18ef77)=>{const _0x1422f1=_0x931b1e;for(var _0x2686d7=_0x18ef77>0x1?void 0x0:_0x18ef77?Qt(_0x54626b,_0x54357e):_0x54626b,_0x23d3d1=_0x4d4ff0[_0x1422f1(0x180)]-0x1,_0x29c9a7;_0x23d3d1>=0x0;_0x23d3d1--)(_0x29c9a7=_0x4d4ff0[_0x23d3d1])&&(_0x2686d7=_0x29c9a7(_0x2686d7)||_0x2686d7);return _0x2686d7;},L=(_0x59a4b6,_0x6bd0ae)=>(_0x22b039,_0x12246e)=>_0x6bd0ae(_0x22b039,_0x12246e,_0x59a4b6);const ts='/universer-api/license/formula/limit/status',ss=_0x931b1e(0x294),is='/universer-api/license/formula/limit/done';let ne=class extends a['Disposable']{constructor(_0x479bfa,_0x41f5da,_0x294abc,_0x1eb693,_0x12ea96,_0x109e2b,_0x5b6732){const _0x469499=_0x931b1e;super(),_(this,_0x469499(0x129),null),_(this,_0x469499(0xbc),0x0),_(this,'_currentUsage',0x0),_(this,_0x469499(0x1e0),[]),_(this,_0x469499(0x298),0x0),(this[_0x469499(0x1a0)]=_0x479bfa,this[_0x469499(0x108)]=_0x41f5da,this[_0x469499(0x1fd)]=_0x294abc,this[_0x469499(0x247)]=_0x1eb693,this[_0x469499(0x150)]=_0x12ea96,this[_0x469499(0x2d3)]=_0x109e2b,this['_localeService']=_0x5b6732,this[_0x469499(0x2fc)]());}[_0x931b1e(0x2fc)](){const _0x276886=_0x931b1e;this[_0x276886(0x167)](this['_commandService'][_0x276886(0x258)]((_0x1a4db7,_0x4b19e5)=>{const _0x178fdb=_0x276886;var _0x6d6917;if(_0x1a4db7['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x38eb90=_0x1a4db7[_0x178fdb(0x2e4)];if(!this[_0x178fdb(0x1ba)]((_0x6d6917=_0x38eb90[_0x178fdb(0x2ee)])!=null?_0x6d6917:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x178fdb(0x2aa)](_0x1a4db7,_0x4b19e5),this['_showGuardMessage'](),new a[(_0x178fdb(0x122))]();})),this[_0x276886(0x167)](this['_commandService'][_0x276886(0x20b)]((_0x1b41e7,_0x45f2f9)=>{const _0xe6d6bd=_0x276886;if(_0x1b41e7['id']!==B[_0xe6d6bd(0x306)]['id'])return;const _0x4a488e=_0x1b41e7[_0xe6d6bd(0x2e4)];if(Jt(_0x4a488e)){const _0x37a8e4=a[_0xe6d6bd(0x14b)]();this[_0xe6d6bd(0x1e0)][_0xe6d6bd(0x202)](_0x37a8e4),this[_0xe6d6bd(0x24b)](_0x37a8e4);}else{if(Zt(_0x4a488e)&&this[_0xe6d6bd(0x1e0)][_0xe6d6bd(0x180)]>0x0){const _0x18b7c6=this[_0xe6d6bd(0x1e0)][_0xe6d6bd(0x10c)]();this['_releaseCalculationLimit'](_0x18b7c6);}}}));}[_0x931b1e(0x151)](){const _0x3e146c=_0x931b1e;super[_0x3e146c(0x151)](),this[_0x3e146c(0x13b)](),this['_taskIds']=[],this[_0x3e146c(0x1c9)]=0x0,this[_0x3e146c(0xbc)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x931b1e(0x2aa)](_0x3b9d4c,_0x55171e){const _0x303b2e=_0x931b1e;for(let _0x446068=0x0;_0x446068<0x1e;_0x446068++)try{if(await this['_getFormulaLimitStatus'](),this[_0x303b2e(0x1f8)]()){this[_0x303b2e(0x1d4)](_0x3b9d4c,_0x55171e),this['_messageService'][_0x303b2e(0x30b)]({'content':this[_0x303b2e(0xf7)]['t'](_0x303b2e(0x10a)),'type':T['MessageType']['Success']});return;}await new Promise(_0x20b758=>{const _0xafc045=_0x303b2e;this[_0xafc045(0x129)]=window[_0xafc045(0x166)](_0x20b758,0x3e8);});}catch(_0x167fca){this[_0x303b2e(0x2d3)][_0x303b2e(0x1bc)](_0x167fca);}this['_messageService']['show']({'content':this[_0x303b2e(0xf7)]['t'](_0x303b2e(0xce)),'type':T['MessageType'][_0x303b2e(0x31d)]});}[_0x931b1e(0x1d4)](_0xc25b49,_0x49615d){const _0x48f5d2=_0x931b1e;try{this[_0x48f5d2(0x108)]['executeCommand'](_0xc25b49['id'],_0xc25b49['params'],_0x49615d);}catch(_0x33701b){this['_logService'][_0x48f5d2(0x1bc)](_0x33701b);}}['_setFormulaLimitStatus'](_0x27beee,_0x153b30){const _0x5c122b=_0x931b1e;_0x153b30<this[_0x5c122b(0x298)]||(this[_0x5c122b(0x298)]=_0x153b30,this[_0x5c122b(0xbc)]=Number[_0x5c122b(0x179)](_0x27beee[_0x5c122b(0xf6)]),this[_0x5c122b(0x1c9)]=Number[_0x5c122b(0x179)](_0x27beee[_0x5c122b(0x343)]));}async[_0x931b1e(0x24b)](_0x1dd61c){const _0x2150f5=_0x931b1e;var _0x4b5bf2,_0x4d451c;const _0xf13e7b=Date[_0x2150f5(0x2ec)]();try{const _0xd87d81=((_0x4b5bf2=this['_configService'][_0x2150f5(0x185)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x4b5bf2[_0x2150f5(0x139)])||ss,_0xd05f10=(await this[_0x2150f5(0x247)][_0x2150f5(0xa6)](_0xd87d81,{'body':JSON[_0x2150f5(0x2f0)]({'taskId':_0x1dd61c})}))[_0x2150f5(0x30c)];if(((_0x4d451c=_0xd05f10[_0x2150f5(0x1bc)])==null?void 0x0:_0x4d451c['code'])!==G['OK'])return;this[_0x2150f5(0x1d7)](_0xd05f10[_0x2150f5(0x2f6)],_0xf13e7b);}catch(_0x56b3f8){this[_0x2150f5(0x2d3)][_0x2150f5(0x1bc)](_0x56b3f8);}}async[_0x931b1e(0x119)](_0x2f760f){const _0x586352=_0x931b1e;var _0xc68c3b,_0x52cbcd;const _0x382896=Date['now']();try{const _0x57c140=((_0xc68c3b=this[_0x586352(0x1fd)][_0x586352(0x185)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0xc68c3b['getformulaLimitStatusUrl'])||ts,_0x52db44=_0x2f760f?_0x57c140+_0x586352(0x1d8)+encodeURIComponent(_0x2f760f):_0x57c140,_0x316b53=(await this[_0x586352(0x247)][_0x586352(0x25b)](_0x52db44))[_0x586352(0x30c)];if(((_0x52cbcd=_0x316b53[_0x586352(0x1bc)])==null?void 0x0:_0x52cbcd[_0x586352(0x225)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x316b53[_0x586352(0x2f6)],_0x382896);}catch(_0x423a87){this[_0x586352(0x2d3)]['error'](_0x423a87);}}async[_0x931b1e(0x34d)](_0x2c593e){const _0x595951=_0x931b1e;var _0x288a07,_0x4f3785;const _0x3bbf80=Date[_0x595951(0x2ec)]();try{const _0x159200=((_0x288a07=this[_0x595951(0x1fd)]['getConfig'](u[_0x595951(0x149)]))==null?void 0x0:_0x288a07[_0x595951(0x183)])||is,_0x6b3366=(await this[_0x595951(0x247)][_0x595951(0xa6)](_0x159200,{'body':JSON[_0x595951(0x2f0)]({'taskId':_0x2c593e})}))[_0x595951(0x30c)];if(((_0x4f3785=_0x6b3366[_0x595951(0x1bc)])==null?void 0x0:_0x4f3785[_0x595951(0x225)])!==G['OK'])return;this[_0x595951(0x1d7)](_0x6b3366[_0x595951(0x2f6)],_0x3bbf80);}catch(_0x54eabc){this[_0x595951(0x2d3)][_0x595951(0x1bc)](_0x54eabc);}}[_0x931b1e(0x1f8)](){const _0x15b339=_0x931b1e;return this[_0x15b339(0xbc)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x931b1e(0x13b)](){const _0x1c235a=_0x931b1e;this[_0x1c235a(0x129)]&&(clearTimeout(this[_0x1c235a(0x129)]),this[_0x1c235a(0x129)]=null);}[_0x931b1e(0x218)](){const _0x3209d6=_0x931b1e;this[_0x3209d6(0x1a0)][_0x3209d6(0x30b)]({'content':this[_0x3209d6(0xf7)]['t'](_0x3209d6(0x290)),'type':T[_0x3209d6(0x134)][_0x3209d6(0x31e)]});}['_hasFormulaInDirtyRanges'](_0x552b3e){const _0x316590=_0x931b1e;for(const _0x5d2ec8 of _0x552b3e){const {unitId:_0x7e329f,sheetId:_0x5e5208,range:_0x241227}=_0x5d2ec8,_0x5481c3=this[_0x316590(0x150)]['getUnit'](_0x7e329f);if(!_0x5481c3)continue;const _0x1a3e59=_0x5481c3['getSheetBySheetId'](_0x5e5208);if(!_0x1a3e59)continue;const _0x2b6e9b=_0x1a3e59[_0x316590(0x356)]();for(let _0x2cdf5f=_0x241227[_0x316590(0x2e0)];_0x2cdf5f<=_0x241227[_0x316590(0x317)];_0x2cdf5f++)for(let _0x469421=_0x241227[_0x316590(0x2b5)];_0x469421<=_0x241227['endColumn'];_0x469421++){const _0x1a1f9c=_0x2b6e9b[_0x316590(0x33a)](_0x2cdf5f,_0x469421);if(_0x1a1f9c&&(a[_0x316590(0x10d)](_0x1a1f9c['f'])||a[_0x316590(0xa0)](_0x1a1f9c['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x931b1e(0x1da)](O[_0x931b1e(0x14d)])),L(0x1,a['ICommandService']),L(0x2,a[_0x931b1e(0x20d)]),L(0x3,a[_0x931b1e(0x1da)](x[_0x931b1e(0x15b)])),L(0x4,a[_0x931b1e(0x1d0)]),L(0x5,a[_0x931b1e(0x9e)]),L(0x6,a[_0x931b1e(0x1da)](a[_0x931b1e(0xb5)]))],ne);var ns=Object[_0x931b1e(0x304)],rs=(_0x53ac8b,_0x2ce637,_0x4f1fac,_0x1c7978)=>{const _0x233f2c=_0x931b1e;for(var _0x14562b=_0x1c7978>0x1?void 0x0:_0x1c7978?ns(_0x2ce637,_0x4f1fac):_0x2ce637,_0x385cf6=_0x53ac8b[_0x233f2c(0x180)]-0x1,_0x2feafb;_0x385cf6>=0x0;_0x385cf6--)(_0x2feafb=_0x53ac8b[_0x385cf6])&&(_0x14562b=_0x2feafb(_0x14562b)||_0x14562b);return _0x14562b;},de=(_0x2c68ae,_0x3266c6)=>(_0x501c71,_0x2c4865)=>_0x3266c6(_0x501c71,_0x2c4865,_0x2c68ae);let pe=class extends a['Disposable']{constructor(_0x577a14,_0x300baf,_0x27d2d2){const _0x193acc=_0x931b1e;super(),_(this,'_cachedData',new Map()),_(this,_0x193acc(0x192),new Map()),_(this,'_disabled',!0x1),(this[_0x193acc(0x1fd)]=_0x577a14,this[_0x193acc(0x369)]=_0x300baf,this[_0x193acc(0xb2)]=_0x27d2d2);}[_0x931b1e(0xe2)](){const _0x3e0719=_0x931b1e;this[_0x3e0719(0x184)]=!0x0;}[_0x931b1e(0x9f)](){const _0x45770c=_0x931b1e;this[_0x45770c(0x184)]=!0x1;}get[_0x931b1e(0x106)](){const _0x1454ab=_0x931b1e;return this[_0x1454ab(0x192)];}[_0x931b1e(0x151)](){const _0x5c7cf9=_0x931b1e;this[_0x5c7cf9(0x2b4)]()[_0x5c7cf9(0xfc)](()=>super[_0x5c7cf9(0x151)]());}async[_0x931b1e(0xb1)](_0x5b391e){const _0x2fbfa2=_0x931b1e;return this[_0x2fbfa2(0x184)]?null:this[_0x2fbfa2(0x369)][_0x2fbfa2(0xf1)](u['getLocalCacheKey'](_0x5b391e));}async[_0x931b1e(0x257)](_0x2c4878,_0x27d19c){const _0x22c2ca=_0x931b1e;return!!this[_0x22c2ca(0x369)][_0x22c2ca(0x213)](_0x2c4878,_0x27d19c);}['updateOfflineData'](_0x21feec,_0x1e274f,_0x4de97f,_0x13d6a3){const _0x3a7852=_0x931b1e,_0x294267=this['_revisionService'][_0x3a7852(0x170)](_0x21feec);this[_0x3a7852(0x33e)][_0x3a7852(0x303)](_0x21feec,{'unitID':_0x21feec,'type':_0x1e274f,'awaitingChangeset':_0x4de97f,'mutations':_0x13d6a3,'rev':_0x294267}),this[_0x3a7852(0x192)][_0x3a7852(0x264)](_0x21feec)||this['_scheduleSaving'](_0x21feec);}[_0x931b1e(0x145)](_0x10ef0c){const _0x41ab9e=_0x931b1e,_0x3d7856=this[_0x41ab9e(0x25f)]();_0x3d7856===0x0?this['_saveCache'](_0x10ef0c):this[_0x41ab9e(0x192)][_0x41ab9e(0x303)](_0x10ef0c,setTimeout(()=>this['_saveCache'](_0x10ef0c),_0x3d7856));}[_0x931b1e(0x25f)](){const _0x4b6eb4=_0x931b1e;var _0xe3813b;return(_0xe3813b=this['_configService'][_0x4b6eb4(0x185)](u[_0x4b6eb4(0x1cc)]))!=null?_0xe3813b:u['LOCAL_CACHE_INTERVAL'];}[_0x931b1e(0x263)](_0x21e16d){const _0x11a078=_0x931b1e,_0x56e6d1=this[_0x11a078(0x192)][_0x11a078(0x25b)](_0x21e16d);return _0x56e6d1!==void 0x0&&window[_0x11a078(0x12f)](_0x56e6d1),this[_0x11a078(0x369)][_0x11a078(0x213)](u[_0x11a078(0x25c)](_0x21e16d),this['_cachedData']['get'](_0x21e16d))[_0x11a078(0xfc)](()=>this[_0x11a078(0x192)]['delete'](_0x21e16d));}async[_0x931b1e(0x2b4)](){const _0x1da868=_0x931b1e,_0x4e94d2=[];this['_saveTaskMap'][_0x1da868(0x1d5)]((_0x570bdb,_0x1fea02)=>{const _0x28da92=_0x1da868;window[_0x28da92(0x12f)](_0x570bdb),_0x4e94d2[_0x28da92(0x202)](this[_0x28da92(0x263)](_0x1fea02)[_0x28da92(0xfc)](()=>{const _0x5debe0=_0x28da92;this[_0x5debe0(0x192)][_0x5debe0(0xf4)](_0x1fea02);}));}),await Promise['all'](_0x4e94d2);}};pe=rs([de(0x0,a[_0x931b1e(0x20d)]),de(0x1,a[_0x931b1e(0x1e1)]),de(0x2,a['Inject'](g['RevisionService']))],pe);class ke extends a[_0x931b1e(0x29e)]{constructor(){const _0x435db9=_0x931b1e;super(),_(this,_0x435db9(0x248)),this[_0x435db9(0x248)]=I[_0x435db9(0x1fe)](window,'popstate')[_0x435db9(0x154)](I[_0x435db9(0x17a)](this[_0x435db9(0x20a)]),I['shareReplay'](0x1),I[_0x435db9(0x1ac)](void 0x0));}[_0x931b1e(0x331)](_0x2c4380,_0x159ca4,_0x183d58=!0x1){const _0x145bf4=_0x931b1e,_0x51e0f6=new URL(window[_0x145bf4(0xf3)][_0x145bf4(0x1cd)]);_0x51e0f6[_0x145bf4(0x23b)][_0x145bf4(0x303)](_0x2c4380,_0x159ca4),_0x183d58?window[_0x145bf4(0x16a)][_0x145bf4(0x13a)]('','',_0x51e0f6[_0x145bf4(0x328)]()):window[_0x145bf4(0x16a)]['pushState']('','',_0x51e0f6['toString']());}[_0x931b1e(0x15a)](_0x534b6b,_0x1d8714=!0x1){const _0x5f3ede=_0x931b1e,_0x12d15e=new URL(window[_0x5f3ede(0xf3)]['href']);_0x12d15e['searchParams']['delete'](_0x534b6b),_0x1d8714?window['history'][_0x5f3ede(0x13a)]('','',_0x12d15e['toString']()):window[_0x5f3ede(0x16a)][_0x5f3ede(0x25e)]('','',_0x12d15e['toString']());}['getParam'](_0x3f7250){const _0x5505d4=_0x931b1e;var _0xeb1e36;return(_0xeb1e36=new URL(window[_0x5505d4(0xf3)][_0x5505d4(0x1cd)])[_0x5505d4(0x23b)][_0x5505d4(0x25b)](_0x3f7250))!=null?_0xeb1e36:void 0x0;}}var os=Object[_0x931b1e(0x109)],as=Object['getOwnPropertyDescriptor'],cs=(_0x2ba16,_0x148d07,_0x14bd68)=>_0x148d07 in _0x2ba16?os(_0x2ba16,_0x148d07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14bd68}):_0x2ba16[_0x148d07]=_0x14bd68,ls=(_0x4a5c1a,_0x5585cb,_0x1bcb06,_0x108c11)=>{const _0x1496ab=_0x931b1e;for(var _0x344764=_0x108c11>0x1?void 0x0:_0x108c11?as(_0x5585cb,_0x1bcb06):_0x5585cb,_0x405f73=_0x4a5c1a[_0x1496ab(0x180)]-0x1,_0x4ec548;_0x405f73>=0x0;_0x405f73--)(_0x4ec548=_0x4a5c1a[_0x405f73])&&(_0x344764=_0x4ec548(_0x344764)||_0x344764);return _0x344764;},Se=(_0x180fcc,_0x316e1d)=>(_0x42b645,_0x339038)=>_0x316e1d(_0x42b645,_0x339038,_0x180fcc),_s=(_0x405529,_0x28f1fe,_0x174afb)=>cs(_0x405529,_0x28f1fe+'',_0x174afb);const hs=_0x931b1e(0xd6);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x15f895=Me,_0x47a5c3,_0x567e04,_0x409f18){const _0x145f72=_0x931b1e;super(),this[_0x145f72(0x296)]=_0x15f895,this[_0x145f72(0x18e)]=_0x47a5c3,this['_injector']=_0x567e04,this['_configService']=_0x409f18;const {..._0x47cd2b}=a[_0x145f72(0x2ae)]({},Me,this[_0x145f72(0x296)]);this['_configService']['setConfig'](Yt,_0x47cd2b);}[_0x931b1e(0x2f4)](){const _0x5260af=_0x931b1e;this[_0x5260af(0x1c6)](),this['_initDependencies']();}[_0x931b1e(0x1bf)](){const _0x197cc8=_0x931b1e;this[_0x197cc8(0xdc)]();}['_registerDependencies'](){const _0x407aba=_0x931b1e;var _0x2f18d9;const _0x3f822e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x407aba(0x135)],{'useClass':x[_0x407aba(0xeb)]}],[u[_0x407aba(0x15c)],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x407aba(0x2ad)]]];this[_0x407aba(0x296)][_0x407aba(0x2ca)]&&_0x3f822e['push']([Q]),a['registerDependencies'](this[_0x407aba(0x251)],a[_0x407aba(0x126)](_0x3f822e,(_0x2f18d9=this[_0x407aba(0x296)])==null?void 0x0:_0x2f18d9[_0x407aba(0x228)]));}[_0x931b1e(0xdc)](){const _0x2b878e=_0x931b1e;this[_0x2b878e(0x167)](this[_0x2b878e(0x18e)][_0x2b878e(0xf0)](a[_0x2b878e(0x2fe)][_0x2b878e(0x2e8)],[Ee])),this[_0x2b878e(0x167)](this[_0x2b878e(0x18e)][_0x2b878e(0xf0)](a[_0x2b878e(0x2fe)][_0x2b878e(0xc4)],[Ce]));}['_initDependencies'](){const _0x5ed729=_0x931b1e;a[_0x5ed729(0x1e4)](this[_0x5ed729(0x251)],[[F],[exports[_0x5ed729(0x265)]],[ie],[Z],[exports[_0x5ed729(0x2ad)]],[ne]]),this['_config'][_0x5ed729(0x2ca)]&&a['touchDependencies'](this[_0x5ed729(0x251)],[[Q]]);}},_s(exports[_0x931b1e(0x203)],'pluginName',hs),exports[_0x931b1e(0x203)]=ls([a[_0x931b1e(0x1f3)](u['UniverCollaborationClientPlugin']),Se(0x1,C[_0x931b1e(0x171)]),Se(0x2,a[_0x931b1e(0x1da)](a[_0x931b1e(0x189)])),Se(0x3,a[_0x931b1e(0x20d)])],exports[_0x931b1e(0x203)]);var us=Object[_0x931b1e(0x304)],Is=(_0x253749,_0x14a399,_0x3ed91c,_0x53447f)=>{const _0x1221d5=_0x931b1e;for(var _0x336dd8=_0x53447f>0x1?void 0x0:_0x53447f?us(_0x14a399,_0x3ed91c):_0x14a399,_0x1641a1=_0x253749[_0x1221d5(0x180)]-0x1,_0xb694b3;_0x1641a1>=0x0;_0x1641a1--)(_0xb694b3=_0x253749[_0x1641a1])&&(_0x336dd8=_0xb694b3(_0x336dd8)||_0x336dd8);return _0x336dd8;},W=(_0x3cddde,_0x55f17c)=>(_0x43ce01,_0x354289)=>_0x55f17c(_0x43ce01,_0x354289,_0x3cddde);exports[_0x931b1e(0xe3)]=class extends u[_0x931b1e(0x18f)]{constructor(_0x30ab8e,_0x31a052,_0x31d975,_0xcd4fcd,_0x53e904){super(_0x30ab8e,_0x31a052,_0x31d975,_0xcd4fcd,_0x53e904);}async[_0x931b1e(0x2b0)](_0x11a8d1){const _0x3a1480=_0x931b1e,_0x53d034=await this[_0x3a1480(0x332)](),_0x2318a7=this['_createSocketURL'](_0x11a8d1,_0x53d034);return this['_doCreateSocket'](_0x2318a7);}[_0x931b1e(0x226)](_0x1142a0,_0x171ab5){const _0x19924e=_0x931b1e,_0x40566c=typeof window>'u'?new URL(_0x1142a0):new URL(_0x1142a0,window[_0x19924e(0xf3)]['origin']);_0x40566c[_0x19924e(0x23b)][_0x19924e(0x303)](_0x19924e(0x125),_0x171ab5);const _0x1fe067=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x1fe067[_0x19924e(0x25b)](_0x19924e(0x206))&&_0x40566c[_0x19924e(0x23b)][_0x19924e(0x303)](_0x19924e(0x206),_0x1fe067[_0x19924e(0x25b)]('runId')),_0x40566c[_0x19924e(0x328)]();}async[_0x931b1e(0x332)](){const _0x4fe09a=_0x931b1e;var _0xf102d1,_0x55713f,_0x452893;const _0x312ebb=this[_0x4fe09a(0x1fd)][_0x4fe09a(0x185)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x528936=(_0xf102d1=_0x312ebb==null?void 0x0:_0x312ebb[_0x4fe09a(0x2a9)])!=null?_0xf102d1:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x452893=(_0x55713f=(await this[_0x4fe09a(0x247)][_0x4fe09a(0x25b)](_0x528936,{'headers':{'Content-Type':_0x4fe09a(0x15e)}}))[_0x4fe09a(0x30c)])==null?void 0x0:_0x55713f[_0x4fe09a(0x268)])!=null?_0x452893:'';}},exports[_0x931b1e(0xe3)]=Is([W(0x0,a['Inject'](a[_0x931b1e(0x189)])),W(0x1,a[_0x931b1e(0x1da)](x['HTTPService'])),W(0x2,a[_0x931b1e(0x20d)]),W(0x3,a['ILogService']),W(0x4,g['ISnapshotServerService'])],exports[_0x931b1e(0xe3)]);var ds=Object[_0x931b1e(0x304)],Ss=(_0x1e0a8d,_0x2ab573,_0x392eac,_0x51118f)=>{const _0x1a9bb9=_0x931b1e;for(var _0x583c93=_0x51118f>0x1?void 0x0:_0x51118f?ds(_0x2ab573,_0x392eac):_0x2ab573,_0x3dc4ea=_0x1e0a8d[_0x1a9bb9(0x180)]-0x1,_0x41657a;_0x3dc4ea>=0x0;_0x3dc4ea--)(_0x41657a=_0x1e0a8d[_0x3dc4ea])&&(_0x583c93=_0x41657a(_0x583c93)||_0x583c93);return _0x583c93;},fe=(_0x3627ce,_0x3e7291)=>(_0x15034c,_0x4be8a5)=>_0x3e7291(_0x15034c,_0x4be8a5,_0x3627ce);exports[_0x931b1e(0x272)]=class extends a[_0x931b1e(0x22d)]{constructor(_0x43c093,_0x2867b2,_0x3e62f3){const _0x146b67=_0x931b1e;super(),this[_0x146b67(0xba)]=_0x43c093,this[_0x146b67(0x247)]=_0x2867b2,this['_configService']=_0x3e62f3;}async[_0x931b1e(0x287)](_0x53721d,_0x4696de,_0x2b8b2a,..._0x442565){const _0x4693f3=_0x931b1e;var _0x1bb400,_0x36e71e,_0x26adf8,_0x13c7ff;const _0x5afc56=this[_0x4693f3(0xba)][_0x4693f3(0x237)]();if(!_0x5afc56)throw new Error(_0x4693f3(0x2c0));const _0x4748ad=((_0x1bb400=this['_configService'][_0x4693f3(0x185)](u[_0x4693f3(0x113)]))!=null?_0x1bb400:u[_0x4693f3(0x340)])+'/'+_0x53721d+_0x4693f3(0x256)+_0x4696de,_0x40ca67=new URL(window[_0x4693f3(0xf3)][_0x4693f3(0x1cd)]),_0x29b11f={'scriptId':_0x53721d,'runId':(_0x36e71e=_0x40ca67[_0x4693f3(0x23b)][_0x4693f3(0x25b)](_0x4693f3(0x206)))!=null?_0x36e71e:'','function':_0x4696de,'unitId':_0x5afc56[_0x4693f3(0x25a)](),'argsOfFunction':JSON['stringify'](_0x442565),'invokeId':(_0x26adf8=_0x2b8b2a[_0x4693f3(0x245)])!=null?_0x26adf8:'','executionId':(_0x13c7ff=_0x2b8b2a['executionId'])!=null?_0x13c7ff:''};try{const _0x303d06=await this['_httpService'][_0x4693f3(0xa6)](_0x4748ad,{'body':_0x29b11f});return _0x303d06[_0x4693f3(0x30c)][_0x4693f3(0x1bc)]&&_0x303d06['body'][_0x4693f3(0x1bc)][_0x4693f3(0x225)]!==G['OK']?'Failed':_0x303d06[_0x4693f3(0x30c)]['result'];}catch{return'Failed';}}},exports['RemoteUniscriptService']=Ss([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x931b1e(0x1da)](x[_0x931b1e(0x15b)])),fe(0x2,a[_0x931b1e(0x20d)])],exports[_0x931b1e(0x272)]);const we=0x7530,ye=_0x931b1e(0x316);class fs extends a['Disposable']{constructor(){const _0x387ca3=_0x931b1e;super(),_(this,_0x387ca3(0x33d),a['generateRandomId']()),_(this,_0x387ca3(0x24c),new Set()),_(this,_0x387ca3(0x12d),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x387ca3(0x137),new Map()),_(this,_0x387ca3(0xa4),new Map()),this['_init']();}[_0x931b1e(0x151)](){const _0x55297a=_0x931b1e;super[_0x55297a(0x151)](),this[_0x55297a(0x137)][_0x55297a(0x1d5)]((_0x50d559,_0x57f3ea)=>this[_0x55297a(0x2d4)](_0x57f3ea)),this[_0x55297a(0x115)]&&window[_0x55297a(0x322)](this['_heartbeatTimer']);}[_0x931b1e(0x1b3)](_0xaf8dc1){const _0x5b0bde=_0x931b1e;return this[_0x5b0bde(0x1f1)](_0xaf8dc1)[_0x5b0bde(0x154)](I[_0x5b0bde(0x236)]());}[_0x931b1e(0x116)](_0x4499e9){const _0x155290=_0x931b1e;this[_0x155290(0x24c)][_0x155290(0x1b2)]===0x0&&this[_0x155290(0x302)](),this[_0x155290(0x24c)][_0x155290(0x28f)](_0x4499e9),this[_0x155290(0x270)]({'type':0x0,'memberID':this[_0x155290(0x33d)],'unitIDs':[_0x4499e9],'isForwarded':!0x1});}[_0x931b1e(0x27c)](_0x7b64f0){const _0x2fa271=_0x931b1e;this[_0x2fa271(0x24c)]['delete'](_0x7b64f0),this[_0x2fa271(0x24c)][_0x2fa271(0x1b2)]===0x0&&this[_0x2fa271(0x115)]&&window[_0x2fa271(0x322)](this['_heartbeatTimer']);}[_0x931b1e(0xb0)](){const _0x443522=_0x931b1e;this[_0x443522(0x167)](a[_0x443522(0x1e9)](I[_0x443522(0x1fe)](window,_0x443522(0x2b2))[_0x443522(0x143)](_0x5fcf77=>{const _0x40b70d=_0x443522;if(_0x5fcf77[_0x40b70d(0x12e)]!==ye||!_0x5fcf77[_0x40b70d(0x355)])return;const _0x525407=JSON[_0x40b70d(0x246)](_0x5fcf77['newValue']);this[_0x40b70d(0xd8)](_0x525407);}))),window['addEventListener'](_0x443522(0x1db),()=>this[_0x443522(0x270)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x443522(0x104)](this[_0x443522(0x24c)])}));}[_0x931b1e(0xd8)](_0x2a299c){const _0x41cf66=_0x931b1e;switch(_0x2a299c[_0x41cf66(0x175)]){case 0x0:this[_0x41cf66(0x27d)](_0x2a299c);break;case 0x1:this[_0x41cf66(0x1c4)](_0x2a299c);break;case 0x2:this[_0x41cf66(0x2ef)](_0x2a299c);break;}}[_0x931b1e(0x27d)](_0x509ed8){const _0x14ba73=_0x931b1e,{unitIDs:_0x2a2de6,memberID:_0x2e4a7a,isForwarded:_0x2decb7}=_0x509ed8;_0x2a2de6[_0x14ba73(0x1d5)](_0x5ea4d7=>{const _0x3ec00c=_0x14ba73;if(!_0x2decb7&&this[_0x3ec00c(0x12d)][_0x3ec00c(0x264)](_0x5ea4d7)&&this[_0x3ec00c(0x1f1)](_0x5ea4d7)[_0x3ec00c(0x194)](u[_0x3ec00c(0x274)][_0x3ec00c(0x14a)]),!this[_0x3ec00c(0x12d)][_0x3ec00c(0x264)](_0x5ea4d7)||!this[_0x3ec00c(0x12d)]['get'](_0x5ea4d7)[_0x3ec00c(0x264)](_0x2e4a7a)){const _0x5406a7=this[_0x3ec00c(0x12d)][_0x3ec00c(0x25b)](_0x5ea4d7)||new Set();_0x5406a7['add'](_0x2e4a7a),this[_0x3ec00c(0x12d)][_0x3ec00c(0x303)](_0x5ea4d7,_0x5406a7),this[_0x3ec00c(0x2da)](_0x2e4a7a);}}),_0x2decb7||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x14ba73(0x24c)]],'isForwarded':!0x0});}[_0x931b1e(0x2da)](_0x2b2c84){const _0x5bc5cf=_0x931b1e;this[_0x5bc5cf(0x2d4)](_0x2b2c84);const _0x5e1f6a=window[_0x5bc5cf(0x166)](()=>{const _0x1d6a5e=_0x5bc5cf;this[_0x1d6a5e(0x12d)][_0x1d6a5e(0x1d5)](_0x3ec2de=>{const _0x135576=_0x1d6a5e;_0x3ec2de[_0x135576(0xf4)](_0x2b2c84);});},we*0x2);this[_0x5bc5cf(0x137)][_0x5bc5cf(0x303)](_0x2b2c84,_0x5e1f6a);}[_0x931b1e(0x2d4)](_0x5f6218){const _0x1ebb9f=_0x931b1e;if(this[_0x1ebb9f(0x137)][_0x1ebb9f(0x264)](_0x5f6218)){const _0x3dddf9=this[_0x1ebb9f(0x137)][_0x1ebb9f(0x25b)](_0x5f6218);_0x3dddf9&&window[_0x1ebb9f(0x12f)](_0x3dddf9),this[_0x1ebb9f(0x137)][_0x1ebb9f(0x303)](_0x5f6218,null);}}[_0x931b1e(0x1c4)](_0x1cacb2){const _0x19a2f0=_0x931b1e,{memberID:_0x1e63ff,unitIDs:_0x48f6f3}=_0x1cacb2;_0x48f6f3[_0x19a2f0(0x1d5)](_0x2dbafe=>{const _0x50c535=_0x19a2f0;var _0x1753d2;const _0x1a7f38=this[_0x50c535(0x12d)][_0x50c535(0x25b)](_0x2dbafe);_0x1a7f38&&(_0x1a7f38[_0x50c535(0xf4)](_0x1e63ff),(_0x1753d2=this[_0x50c535(0x1f1)](_0x2dbafe))==null||_0x1753d2['next'](_0x1a7f38[_0x50c535(0x1b2)]===0x0?u['UnitStatus'][_0x50c535(0x1a6)]:u['UnitStatus'][_0x50c535(0x14a)]));}),this[_0x19a2f0(0x2d4)](_0x1e63ff);}[_0x931b1e(0x2ef)](_0x44a090){const _0x53f4e9=_0x931b1e;this[_0x53f4e9(0x2da)](_0x44a090[_0x53f4e9(0x12c)]);}[_0x931b1e(0x270)](_0x2cdb68){const _0x589d06=_0x931b1e;localStorage[_0x589d06(0x213)](ye,JSON['stringify'](_0x2cdb68));}['_scheduleHeartbeat'](){const _0x28f8e6=_0x931b1e;this['_heartbeatTimer']=window[_0x28f8e6(0x1c3)](()=>{const _0x14b806=_0x28f8e6;this[_0x14b806(0x270)]({'type':0x2,'memberID':this['_id']});},we);}['_ensureSubject'](_0xa4ebca){const _0x5d283e=_0x931b1e;return this[_0x5d283e(0xa4)]['has'](_0xa4ebca)||this[_0x5d283e(0xa4)]['set'](_0xa4ebca,new I[(_0x5d283e(0x346))](u[_0x5d283e(0x274)][_0x5d283e(0x1a6)])),this[_0x5d283e(0xa4)][_0x5d283e(0x25b)](_0xa4ebca);}}function _0x1264(){const _0x4ece3f=['_selfUnitIDs','_cursorInfo$','_getSheetObject','color','currentColor','_injector','handleMoveRange','HEADER_MENU','LICENSE_MAX_UNITS_EXCEEDED','UNAUTHENTICATED','/run/','saveOfflineData','beforeCommandExecuted','getCollabCursors$','getUnitId','get','getLocalCacheKey','complete','pushState','_getSaveTimeout','message','unitID','blue.400','_saveCache','has','DesktopCollaborationStatusDisplayController','_beforeCloseService','10FxPGkU','ticket','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','handleDeleteRangeMoveLeft','REDEMPTION_INVALID_CODE','socket$','CONFLICT','text','_initUserListener','_send','_roomMembers$','RemoteUniscriptService','InsertRangeMoveRightCommandId','UnitStatus','ENTITLE_REPORT_LIMIT_EXCEED','debounce','name','_monkeyPatchLogService','MemberService','isTransformMutationsWithChangesetSuccess','48OChsdu','disposeUnit','_handleJoinEvent','moveTo','LICENSE_EXPORT_SIZE_EXCEEDED','_color','LICENSE_DISTRO_REJECTED','USERS_LEAVE','collaboration-client.offline-data-not-saved','xlink:href','handleInsertRow','INVITE_CODE_HAS_BEEN_UES','runOnServer','SessionStatus','syncEditingCollabCursor','on-line-icon_clip0_910_349','makeDirty','createInstance','string','UNRECOGNIZED','add','formula.calculation.waiting','EffectRefRangId','getParam','OffLineIcon','/universer-api/license/formula/limit/start','CollaborationEvent','_config','WebBrowserSingleActiveUnitService','_lastResponseTimestamp','_initStatusListener','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_RATE_OVER_LIMIT','fromEventSubject','0\x200\x2016\x2016','RxDisposable','functionsExecutedState','createElement','handleIRemoveCol','CollaborationUIEventId','_transformHistoryAndStateStack','handleInsertCol','getAncestorScale','1604pbQnRI','unshift','getSheetObject','wsSessionTicketUrl','_checkAndWaitForCalculationPermission','green.600','SHEET_VIEWPORT_KEY','CollaborationDataLoaderController','merge','getUndoRedoMutationParamsCache','createSocket','collaboration-client-ui.config','storage','RichTextEditingMutation','exhaustSavingTask','startColumn','forwardRef','children','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','getSheetId','_memberService','_session','undoState','with','YUUMI_ALL_TABLES_IS_INVALID','_transformPreviousActiveRange','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_onCursorDelete','debounceTime','collabStatus.synced','APPLY_REVISION_CONFILICT','random','collab-client.tooltip.reconnect','_updateSubUnitFromURLParams','_scene','handleIRemoveRow','enableFrontendLog','_initEvent','InsertColCommandId','uni.network.url-service','CONNECTOR_DATA_TOO_LARGE','sheetID','APPLY_NON_SEQUENTIAL_REVISION','connectInjector','max','_logService','_removeClearOtherTimer','colorChannel1','combineLatest','measureText','SetTextSelectionsOperation','round','_scheduleClearOtherTimer','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','useDependency','jsx','session.collaboration-timeout','SUCCESS','startRow','USER_IS_ANONYMOUS','FormulaExecuteStageType','getMember','params','OTHER_CLIENT_EDITING','Vector2','currentSkeleton$','UNIVER_DOC','collaboration.single-unit.warning','split','DocSelectionManagerService','now','_syncEditingCollabCursorService','dirtyRanges','_handleHeartbeatEvent','stringify','M0\x200H16V16H0z','purple.300','YUUMI_AI_RUN_FAILED','onStarting','find','limitInfo','_initWindowErrorListener','REDEMPTION_CODE_HAS_BEEN_CREATED','selection','addClipboardHook','_collaborationController','_initCommandInterceptor','toRgbString','UniverInstanceType','NodePositionConvertToRectRange','registerComponent','status$','_scheduleHeartbeat','set','getOwnPropertyDescriptor','useRef','SetFormulaCalculationNotificationMutation','evenodd','some','transformRemoteChangeset','getCollabEntity$','show','body','getCurrentUnitForType','closePath','session.connection-failed','_cursor','translate(.97)','catch','values','stageInfo','FormulaExecutedStateType','ACTIVE_UNIT_EVENT_CHANNEL','endRow','triggerDblclick','runRefRangeMutations','getMemberID','CollaborationController','RefRangeService','Error','Loading','_hovered','onMouseMove','_collabCursorState$','clearInterval','CHANGESET_REVISION_CONFILICT','_drawTextRange','_initStatusComponent','useCallback','url(#$1','toString','_entities','FETCH_MISS','USER_NOT_INVITED_CODE','_initResize','_updateLocalCursor','focused$','docStateChange$','setShapeProps','setParam','_getSessionTicket','CollaborationSessionService','_anchorDot','isArray','RECT','MOBILE_HAS_BEEN_BOUND','JOIN_ROOM_FAILED','collaboration.closeRoom','getValue','_sheetSkeletonManagerService','subscribeEvent','_id','_cachedData','sessionStatus$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','top','...','currentUsage','redoState','_assignedColors','BehaviorSubject','lineno','getColorFromTheme','_context','1em','lineTo','_backgroundColor','_releaseCalculationLimit','throttleTime','_docTransformIMECacheService','getSkeleton','_eventUnsubscribe','_collaborationUIEventService','_labelPosition','_drawAnchor','newValue','getCellMatrix','handleInsertRangeMoveDown','fillRule','skeleton','CLOSE_ROOM','AWAITING_WITH_PENDING','SetSelectionsOperation','filter','INVITE_CODE_ALREADY_BOUND','REDEMPTION_CODE_INACTIVE','_uploadLog','Workbook','_collabCursorController','onTransformChange$','_initUnhandledRejectionListener','InsertRowCommandId','_anchor','isActive','deserializeRangeWithSheet','_localStorageService','SheetsSelectionsService','ILogService','enableLocalCache','isFormulaId','TOO_MANY_REQUESTS','NOT_COLLAB','rgba(255,\x20255,\x20255,\x200.01)','_unitStatus','DocStateChangeManagerService','post','APPLY_REJECT','Warning','MUTATION','YUUMI_CONNECTOR_URL_NOT_FOUND','SNAPSHOT_INVALID_SNAPSHOT','CollaborationUIEventService','_colorIndex','fillStyle','entityInit$','_init','loadOfflineData','_revisionService','ENTITLE_INSUFFICIENT_QUOTA','tag','LocaleService','_localCacheService','getRenderById','PERMISSION_DENIED','REDEMPTION_CODE_FULLY_REDEEMED','_instanceService','_setupBeforeClosingHandler','_maxFormulaLimit','SetDocZoomRatioOperation','m1Prime','off-line-icon','univer-mr-2\x20univer-flex\x20univer-text-xl','ENTITLE_CAN_NOT_BUY_LOWER_OTP','/universer-api/frontend/logs','saveImage','UNIVER_SHEET','TEXT_RANGE_LAYER_INDEX','_notificationService','doc.mutation.rich-text-editing','currentTheme$','_colorAssignService','ONLINE','debug','asObservable','executeCommand','formula.calculation.unable','init','_imageIoService','CommandType','unit','handleInsertRangeMoveRight','trim','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_docClipboardService','_handleEvent','_startSheetCollabCursor','permission.title','transformSelections','_registerRenderDependencies','YUUMI_ASYNCIO_CANCELLED','COMPLETION_FINISHED','APPLY_PERMISSION_DENIED','yellow.400','_dataLoaderService','disableLocalCache','BrowserCollaborationSocketService','serializeRangeWithSheet','6TqILqI','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ICommandService','DocIMEInputManagerService','ENTITLE_CHAT_LIMIT_EXCEED','SetWorksheetActivateCommand','WebSocketService','LOGIN_TOKEN_PROCESSING_FAILED','288029fhruhs','setStateCache','[LogService\x20Error]:\x20','registerRenderModule','getItem','LOGIN_FAILED','location','delete','ERROR_AGAIN','maxFormulaLimit','_localeService','_collabSessionService','symbol','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','getActiveSheet','then','replace','setActiveRange','bottom','_handleHover','registerRefRange','addHandlerCallback','DocCollaborationEntity','from','_docSkeleton','saveTaskMap','getCellPositionByOffset','_commandService','defineProperty','formula.calculation.started','CollaborationStatus','shift','isFormulaString','white','addObject','unsubscribe','FromArray','fillText','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','PY_RUNTIME_SCRIPT_ERROR','_heartbeatTimer','editingUnit','_startDocCollabCursor','DataLoaderService','_getFormulaLimitStatus','IRemoteInstanceService','_transformUndoRedoStack','DOC_RANGE_TYPE','current','DATA_SOURCE_TOO_LARGE','TEXT','ranges','10445556xqfpjM','CanceledError','_status$','setUndoRedoMutationParamsCache','sessionTicket','mergeOverrideWithDependencies','font','cursorInfo','_pollingInterval','_online','collabStatus.notCollab','memberID','_unitOnClients','key','clearTimeout','SheetCollabCursorShape','min','engine','INotificationService','MessageType','ISocketService','cursorInfo$','_clearOtherTimers','WECHAT_HAS_BEEN_BOUND','startFormulaLimitUrl','replaceState','_clearPolling','SOCKET_FAILED_RETRY','DeleteRangeMoveUpCommandId','deepClone','getSheetBySheetId','_hideTimer','imageSourceType','_refRangeService','subscribe','_name','_scheduleSaving','AWAITING','addObjects','clipPath','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','OTHER_CLIENTS_EDITING','generateRandomId','_docTransformSelectionsService','IMessageService','_collaborationSessionService','restore','_univerInstanceService','dispose','svg','setAlpha','pipe','_refreshCollabCursors','transformMutation','_urlService','COLORS','defIds','removeParam','HTTPService','ILocalCacheService','collabStatus.offline','application/json','[Window\x20Error]:\x20','_draw','RegularPolygon','mutations','resize','height','reason','setTimeout','disposeWithMe','addEventListener','[CollaborationDataLoaderController]','history','path','getRangePointData','arc','none','IDocClipboardService','getCurrentRevOfUnit','IRenderManagerService','IURLService','getCurrent','Subject','type','_getScale','registerBeforeClose','jiqing.500','parseInt','takeUntil','SYNCED','assign','transformIMECache','_hover','filename','length','url(#off-line-icon_clip0_910_343)','roomMembers$','releaseFormulaLimitUrl','_disabled','getConfig','USER_NOT_FOUND','flatMap','reconnect','Injector','_transformService','permission.content','_themeService','onPointerEnter$','_renderManagerService','CollaborationSocketService','_updateCollabCursors','_getMergeRange','_saveTaskMap','switchMap','next','_docTransformStateCacheService','YUUMI_UNABLE_LOAD_URL','MOBILE_VERIFY_CODE_MISMATCH','drawWith','OnLineIcon','YUUMI_NO_CUBOID_FOR_QUESTION','hide','SNAPSHOT_HAS_BEEN_REMOVED','_lastPointer','data','APPLY_DUPLICATED','_messageService','transformStateCache','_onCursorUpdate','_entityInit$','RemoveColCommandId','UNDEFINED','NO_OTHER_CLIENTS_EDITING','_initCommandExecutedListener','onLocalMutation','AUTHORIZE_CODE_ILLEGAL','NOT_FOUND','REDEMPTION_USER_NOT_ELIGIBLE','mapTo','displayName','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','LICENSE_IMPORT_SIZE_EXCEEDED','size','getUnitStatus$','_setupSubUnitSync','getActiveRange','bind','EMAIL_VERIFY_CODE_MISMATCH','stack','getTypeOfUnitDisposed$','_hasFormulaInDirtyRanges','REDEMPTION_USER_REDEEM_TIMES_EXCEED','error','attrs','findNodePositionByCharIndex','onRendered','startsWith','_shapes','subunit','setInterval','_handleLeaveEvent','endColumn','_registerDependencies','event$','eventID','_currentUsage','colno','ALREADY_EXISTS','LOCAL_CACHE_INTERVAL_KEY','href','isTransformMutationFailure','getColor','IUniverInstanceService','IBeforeCloseService','600575qqSZqH','_docSyncEditingCollabCursorService','_applyCommand','forEach','onPointerLeave$','_setFormulaLimitStatus','?taskId=','contains','Inject','unload','getStateCache','OFFLINE','width','stage','_taskIds','ILocalStorageService','_drawRectRange','ENTITLE_NEED_BILLING_ADDRESS','touchDependencies','div','REDEMPTION_CODE_NOT_STARTED','UniverIcon','_textBubble','toDisposable','defs','SUBMIT_CHANGESET_TIMEOUT','onPointerMove$','textRanges','Rect','requireSession','red.300','_ensureSubject','m2Prime','DependentOn','save','_toggleOnline','ITransformService','ColorKit','_checkCalculationAvailable','mask','session.will-retry','black','univerjs-icon\x20univerjs-icon-','_configService','fromEvent','clsx','_removeCollabCursors','roomMembers','push','UniverCollaborationClientUIPlugin','_docStateChangeManagerService','_initEntityListener','runId','whenReady','_cursorShapes','unitId','dispose$','onCommandExecuted','_toggleOffline','IConfigService','_memberID','_uiPartsService','INVALID_INVITE_CODE','totalFormulasToCalculate','_range','setItem','NodePositionConvertToCursor','ENTITLE_DUP_SUBSCRIPTION','getDocRanges','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_showGuardMessage','IUIPartsService','map','collabCursorState$','3656592HIGnEi','START_CALCULATION','collabStatus.syncing','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Tools','idSuffix','EMAIL_HAS_BEEN_BOUND','WebURLService','INVITE_CODE_REQUIRED','code','_createSocketURL','off-line-icon_clip0_910_343','override','_render','backgroundColor','2019mdvZBV','ENSURE_SNAPSHOT_EXECUTION','Disposable','Shape','unhandledrejection','fill','_updateURLWithCurrentState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UPDATE_CURSOR','getViewport','transformMutationsWithChangeset','distinctUntilChanged','getFocusedUnit','Unknown\x20user','ThemeService','createIdentifier','searchParams','subUnitId','send','_cursors','2513238COzPbp','_docSkeletonManagerService','181257yIPIHE','assignAColorForMemberID','collab-rect-range-','PAYMENT_CHANNEL_NOT_SUPPORT','invokeId','parse','_httpService','urlChange$','INTERNAL_ERROR','removeEventListener','_startCalculationLimit'];_0x1264=function(){return _0x4ece3f;};return _0x1264();}exports[_0x931b1e(0x172)]=Oe,exports[_0x931b1e(0x130)]=je,exports[_0x931b1e(0x297)]=fs,exports[_0x931b1e(0x223)]=ke;
|
|
1
|
+
'use strict';const _0x351cc3=_0xf8a9;(function(_0x15b72a,_0xb8f6e){const _0x51ba3f=_0xf8a9,_0x3d8f03=_0x15b72a();while(!![]){try{const _0x4e6f8a=-parseInt(_0x51ba3f(0x2fc))/0x1+parseInt(_0x51ba3f(0x309))/0x2*(parseInt(_0x51ba3f(0x285))/0x3)+-parseInt(_0x51ba3f(0x49a))/0x4+-parseInt(_0x51ba3f(0x327))/0x5+parseInt(_0x51ba3f(0x44e))/0x6+parseInt(_0x51ba3f(0x2ee))/0x7*(-parseInt(_0x51ba3f(0x353))/0x8)+parseInt(_0x51ba3f(0x3e5))/0x9;if(_0x4e6f8a===_0xb8f6e)break;else _0x3d8f03['push'](_0x3d8f03['shift']());}catch(_0x5b249b){_0x3d8f03['push'](_0x3d8f03['shift']());}}}(_0x3013,0x23b83));var Xe=Object[_0x351cc3(0x344)],Ke=(_0x393984,_0x5be483,_0x131aa5)=>_0x5be483 in _0x393984?Xe(_0x393984,_0x5be483,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131aa5}):_0x393984[_0x5be483]=_0x131aa5,_=(_0x3ab7b5,_0x1a20b4,_0x41fecc)=>Ke(_0x3ab7b5,typeof _0x1a20b4!='symbol'?_0x1a20b4+'':_0x1a20b4,_0x41fecc);Object[_0x351cc3(0x344)](exports,Symbol[_0x351cc3(0x2e9)],{'value':_0x351cc3(0x1f2)});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:_0xb9fd16,..._0x3ba0af}){const _0x21b6bc=_0x351cc3,{icon:_0x3d5b90,id:_0x5951d6,className:_0x22f591,extend:_0x51c5b0,..._0x396cd6}=_0x3ba0af,_0x28517b=(_0x21b6bc(0x3c9)+_0x5951d6+'\x20'+(_0x22f591||''))[_0x21b6bc(0x45b)](),_0x37f103=A['useRef']('_'+Qe());return $e(_0x3d5b90,''+_0x5951d6,{'defIds':_0x3d5b90[_0x21b6bc(0x27e)],'idSuffix':_0x37f103[_0x21b6bc(0x239)]},{'ref':_0xb9fd16,'className':_0x28517b,..._0x396cd6},_0x51c5b0);}function $e(_0x2498f8,_0x2b4410,_0x432656,_0x2bca81,_0x1b6f07){const _0x2b3980=_0x351cc3;return A[_0x2b3980(0x278)](_0x2498f8[_0x2b3980(0x2fa)],{'key':_0x2b4410,...Je(_0x2498f8,_0x432656,_0x1b6f07),..._0x2bca81},(Ze(_0x2498f8,_0x432656)[_0x2b3980(0x39e)]||[])[_0x2b3980(0x246)]((_0x5b28bb,_0x2edffc)=>$e(_0x5b28bb,_0x2b4410+'-'+_0x2498f8[_0x2b3980(0x2fa)]+'-'+_0x2edffc,_0x432656,void 0x0,_0x1b6f07)));}function Je(_0x16aad5,_0x3c832e,_0x2f744f){const _0x5dec67=_0x351cc3,_0x53c748={..._0x16aad5[_0x5dec67(0x3f0)]};_0x2f744f!=null&&_0x2f744f['colorChannel1']&&_0x53c748['fill']===_0x5dec67(0x214)&&(_0x53c748['fill']=_0x2f744f['colorChannel1']),_0x16aad5[_0x5dec67(0x2fa)]===_0x5dec67(0x406)&&_0x53c748['id']&&(_0x53c748['id']=_0x53c748['id']+_0x3c832e[_0x5dec67(0x3db)]),Object[_0x5dec67(0x3fc)](_0x53c748)['forEach'](([_0x23a901,_0x1bffbe])=>{const _0x4e768d=_0x5dec67;_0x23a901===_0x4e768d(0x406)&&typeof _0x1bffbe==_0x4e768d(0x3e9)&&(_0x53c748[_0x23a901]=_0x1bffbe[_0x4e768d(0x41c)](/url\(#(.*)\)/,_0x4e768d(0x295)+_0x3c832e[_0x4e768d(0x3db)]+')'));});const {defIds:_0x4b3725}=_0x3c832e;return!_0x4b3725||_0x4b3725['length']===0x0||(_0x16aad5[_0x5dec67(0x2fa)]===_0x5dec67(0x2b5)&&_0x53c748[_0x5dec67(0x4b5)]&&(_0x53c748[_0x5dec67(0x4b5)]=_0x53c748[_0x5dec67(0x4b5)]+_0x3c832e[_0x5dec67(0x3db)]),Object[_0x5dec67(0x3fc)](_0x53c748)[_0x5dec67(0x264)](([_0x56fb6e,_0x29741e])=>{const _0x3911de=_0x5dec67;typeof _0x29741e==_0x3911de(0x3e9)&&(_0x53c748[_0x56fb6e]=_0x29741e[_0x3911de(0x41c)](/url\(#(.*)\)/,_0x3911de(0x295)+_0x3c832e[_0x3911de(0x3db)]+')'));})),_0x53c748;}function Ze(_0x19511d,_0x1d14e3){const _0x3aa473=_0x351cc3;var _0x7f60be;const {defIds:_0x5cb77b}=_0x1d14e3;return!_0x5cb77b||_0x5cb77b[_0x3aa473(0x241)]===0x0?_0x19511d:_0x19511d['tag']===_0x3aa473(0x1f1)&&((_0x7f60be=_0x19511d[_0x3aa473(0x39e)])!=null&&_0x7f60be[_0x3aa473(0x241)])?{..._0x19511d,'children':_0x19511d['children']['map'](_0x3728d2=>typeof _0x3728d2['attrs']['id']==_0x3aa473(0x3e9)&&_0x5cb77b&&_0x5cb77b[_0x3aa473(0x400)](_0x3728d2[_0x3aa473(0x3f0)]['id'])?{..._0x3728d2,'attrs':{..._0x3728d2['attrs'],'id':_0x3728d2[_0x3aa473(0x3f0)]['id']+_0x1d14e3['idSuffix']}}:_0x3728d2)}:_0x19511d;}function Qe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Te['displayName']=_0x351cc3(0x2af);const et={'tag':_0x351cc3(0x422),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x351cc3(0x3e7),'width':_0x351cc3(0x3b5),'height':_0x351cc3(0x3b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x351cc3(0x3e1)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'stroke':'currentColor','d':_0x351cc3(0x224),'strokeLinecap':_0x351cc3(0x24e),'strokeLinejoin':_0x351cc3(0x24e),'strokeWidth':1.2}}]},{'tag':_0x351cc3(0x1f1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x351cc3(0x3c5)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'fill':'white','d':_0x351cc3(0x205)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=A[_0x351cc3(0x289)](function(_0x1c1daa,_0x560511){const _0x5208e8=_0x351cc3;return A[_0x5208e8(0x278)](Te,Object[_0x5208e8(0x2b0)]({},_0x1c1daa,{'id':_0x5208e8(0x2d8),'ref':_0x560511,'icon':et}));});xe[_0x351cc3(0x3e6)]=_0x351cc3(0x41e);const tt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x351cc3(0x28d),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x351cc3(0x3b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x351cc3(0x480)},'children':[{'tag':_0x351cc3(0x2f2),'attrs':{'stroke':_0x351cc3(0x2a4),'d':_0x351cc3(0x3af),'strokeLinecap':'round','strokeLinejoin':_0x351cc3(0x24e),'strokeWidth':1.2}}]},{'tag':_0x351cc3(0x1f1),'attrs':{},'children':[{'tag':_0x351cc3(0x34c),'attrs':{'id':_0x351cc3(0x3ab)},'children':[{'tag':'path','attrs':{'fill':_0x351cc3(0x31c),'d':'M0\x200H16V16H0z','transform':_0x351cc3(0x24a)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0x351cc3(0x289)](function(_0x5786db,_0x14e4e5){const _0x8dd73a=_0x351cc3;return A[_0x8dd73a(0x278)](Te,Object[_0x8dd73a(0x2b0)]({},_0x5786db,{'id':_0x8dd73a(0x402),'ref':_0x14e4e5,'icon':tt}));});Be[_0x351cc3(0x3e6)]=_0x351cc3(0x221);function st(_0x2ee364){const _0x35c2d9=_0x351cc3;switch(_0x2ee364){case u['CollaborationStatus']['OFFLINE']:return _0x35c2d9(0x376);case u['CollaborationStatus']['CONFLICT']:return _0x35c2d9(0x312);case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x249)]:return'collabStatus.fetchMiss';case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x434)]:return _0x35c2d9(0x3ff);case u[_0x35c2d9(0x3d9)]['AWAITING']:case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x21c)]:return _0x35c2d9(0x303);case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x41b)]:case u[_0x35c2d9(0x3d9)][_0x35c2d9(0x395)]:return _0x35c2d9(0x359);}}function it(_0x1c7f5f){const _0x33c1ac=_0x351cc3,{status$:_0x63d289}=_0x1c7f5f,_0x224654=O[_0x33c1ac(0x33e)](_0x63d289,u[_0x33c1ac(0x3d9)]['NOT_COLLAB']),_0xe07b38=O[_0x33c1ac(0x298)](a[_0x33c1ac(0x2bb)]),_0x285a3d=O[_0x33c1ac(0x298)](u[_0x33c1ac(0x3e0)]),_0x5446a1=_0x224654!==u[_0x33c1ac(0x3d9)][_0x33c1ac(0x40b)],_0x4cb866=_0xe07b38['t'](st(_0x224654)),_0x39d2e9=_0x5446a1?M['jsx'](Be,{}):M[_0x33c1ac(0x26d)](xe,{}),_0x1c02d3=A[_0x33c1ac(0x351)](()=>{const _0x1d288b=_0x33c1ac;_0x5446a1||_0x285a3d[_0x1d288b(0x36f)]();},[_0x5446a1,_0x285a3d]);function _0x41b72c(){const _0x3b364c=_0x33c1ac;return M[_0x3b364c(0x233)](_0x3b364c(0x3d5),{'className':'univer-flex\x20univer-items-center','onClick':_0x1c02d3,'children':[M[_0x3b364c(0x26d)]('div',{'className':T[_0x3b364c(0x3d7)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x5446a1,'univer-text-red-500':!_0x5446a1}),'children':_0x39d2e9}),M[_0x3b364c(0x26d)](_0x3b364c(0x3d5),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4cb866})]});}return _0x5446a1?_0x41b72c():M['jsx'](T[_0x33c1ac(0x36e)],{'title':_0xe07b38['t'](_0x33c1ac(0x20d)),'children':_0x41b72c()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0xf31aed,_0x9dcef5,_0x31aa7f,_0x1f1b94)=>{for(var _0x1f320f=_0x1f1b94>0x1?void 0x0:_0x1f1b94?nt(_0x9dcef5,_0x31aa7f):_0x9dcef5,_0x37d728=_0xf31aed['length']-0x1,_0xcd0943;_0x37d728>=0x0;_0x37d728--)(_0xcd0943=_0xf31aed[_0x37d728])&&(_0x1f320f=_0xcd0943(_0x1f320f)||_0x1f320f);return _0x1f320f;},K=(_0x262fc4,_0x5dfb63)=>(_0x35da50,_0x249337)=>_0x5dfb63(_0x35da50,_0x249337,_0x262fc4);exports[_0x351cc3(0x475)]=class extends a[_0x351cc3(0x37b)]{constructor(_0x35c52d,_0x3272e0,_0x9a42f,_0x2cbf5e){const _0xe8de88=_0x351cc3;super(),_(this,_0xe8de88(0x293),new I['BehaviorSubject'](u['CollaborationStatus'][_0xe8de88(0x434)])),(this['_univerInstanceService']=_0x35c52d,this[_0xe8de88(0x37f)]=_0x3272e0,this[_0xe8de88(0x31f)]=_0x9a42f,this[_0xe8de88(0x2d6)]=_0x2cbf5e,this[_0xe8de88(0x41f)](),this['_initStatusListener']());}[_0x351cc3(0x237)](){const _0x65ef85=_0x351cc3;this[_0x65ef85(0x248)](this[_0x65ef85(0x2bf)][_0x65ef85(0x2db)][_0x65ef85(0x38b)](I[_0x65ef85(0x424)](()=>{const _0x53cb8d=_0x65ef85,_0x3793e9=this[_0x53cb8d(0x2bf)][_0x53cb8d(0x22e)]();return _0x3793e9?this[_0x53cb8d(0x31f)][_0x53cb8d(0x21e)](_0x3793e9[_0x53cb8d(0x3b1)]()):I['of'](null);}),I[_0x65ef85(0x424)](_0x59805e=>_0x59805e?_0x59805e['status$']:I['of'](u[_0x65ef85(0x3d9)][_0x65ef85(0x434)])))['subscribe'](_0x49b26a=>{const _0x1b5883=_0x65ef85;this[_0x1b5883(0x293)]['next'](_0x49b26a);}));}[_0x351cc3(0x41f)](){const _0x12bf72=_0x351cc3;this[_0x12bf72(0x248)](this['_uiPartsService']['registerComponent'](O[_0x12bf72(0x336)][_0x12bf72(0x372)],()=>O[_0x12bf72(0x401)](ot({'status$':this['_status$']['asObservable']()}),this[_0x12bf72(0x37f)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x351cc3(0x314)]),K(0x1,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),K(0x2,a[_0x351cc3(0x257)](u[_0x351cc3(0x397)])),K(0x3,O[_0x351cc3(0x2e8)])],exports[_0x351cc3(0x475)]);function ot(_0x3556e0){const {status$:_0x37e290}=_0x3556e0;return function(){const _0x3904f0=_0xf8a9;return M[_0x3904f0(0x26d)](it,{'status$':_0x37e290});};}const Oe=a['createIdentifier']('uni.network.url-service');var at=Object[_0x351cc3(0x343)],ct=(_0x2258df,_0x2d4ed8,_0xb714b9,_0x16ea34)=>{const _0x118d29=_0x351cc3;for(var _0x5b4876=_0x16ea34>0x1?void 0x0:_0x16ea34?at(_0x2d4ed8,_0xb714b9):_0x2d4ed8,_0x37fd70=_0x2258df[_0x118d29(0x241)]-0x1,_0x4868d7;_0x37fd70>=0x0;_0x37fd70--)(_0x4868d7=_0x2258df[_0x37fd70])&&(_0x5b4876=_0x4868d7(_0x5b4876)||_0x5b4876);return _0x5b4876;},Y=(_0x41df15,_0x1c087d)=>(_0x3e4faa,_0x2498e8)=>_0x1c087d(_0x3e4faa,_0x2498e8,_0x41df15);exports[_0x351cc3(0x29d)]=class extends a[_0x351cc3(0x487)]{constructor(_0x20af14,_0x3efc37,_0x1e664b,_0x379474,_0x1d1ebf){const _0x252b2c=_0x351cc3;super(),this['_urlService']=_0x20af14,this['_logService']=_0x3efc37,this[_0x252b2c(0x3f2)]=_0x1e664b,this[_0x252b2c(0x3c8)]=_0x379474,_0x1d1ebf?_0x1d1ebf==null||_0x1d1ebf['whenReady']()['then'](()=>this[_0x252b2c(0x331)]()):(this['_logService'][_0x252b2c(0x276)]('[CollaborationDataLoaderController]',_0x252b2c(0x3b6)),this['_init']());}async[_0x351cc3(0x331)](){const _0x242dcc=_0x351cc3,_0x214ed4=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x268)),_0x417ebd=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x3d4)),_0x1edf7d=this[_0x242dcc(0x202)][_0x242dcc(0x2d2)](_0x242dcc(0x3c0));if(!_0x214ed4||!_0x417ebd){this['_logService'][_0x242dcc(0x276)](_0x242dcc(0x461),_0x242dcc(0x2cd));return;}const _0x23f31c=await this[_0x242dcc(0x3c8)][_0x242dcc(0x45e)](_0x214ed4,Number(_0x417ebd),_0x1edf7d);_0x23f31c&&_0x23f31c instanceof a[_0x242dcc(0x419)]&&this[_0x242dcc(0x3f9)](_0x23f31c);}async[_0x351cc3(0x3f9)](_0x57bcc1){const _0x49366d=_0x351cc3;await this[_0x49366d(0x44b)](_0x57bcc1),_0x57bcc1['activeSheet$'][_0x49366d(0x38b)](I[_0x49366d(0x3f1)](this[_0x49366d(0x40d)]))[_0x49366d(0x3b4)](_0x327c8e=>{_0x327c8e&&this['_updateURLWithCurrentState'](_0x327c8e);}),this[_0x49366d(0x202)][_0x49366d(0x2f9)][_0x49366d(0x38b)](I[_0x49366d(0x3f1)](this[_0x49366d(0x40d)]))[_0x49366d(0x3b4)](()=>this[_0x49366d(0x44b)](_0x57bcc1));}[_0x351cc3(0x291)](_0x5a65c8,_0x2956e4=!0x1){const _0x5b68e1=_0x351cc3,_0x10162b=this['_urlService'][_0x5b68e1(0x2d2)](_0x5b68e1(0x3c0));_0x5a65c8[_0x5b68e1(0x45d)]()!==_0x10162b&&this[_0x5b68e1(0x202)][_0x5b68e1(0x1f8)]('subunit',_0x5a65c8[_0x5b68e1(0x45d)](),_0x2956e4);}async[_0x351cc3(0x44b)](_0x22b8c5){const _0x32ad69=_0x351cc3;var _0x6a8f23;const _0x453fff=this[_0x32ad69(0x202)][_0x32ad69(0x2d2)](_0x32ad69(0x3c0));if(!_0x453fff||!_0x22b8c5[_0x32ad69(0x42b)](_0x453fff)){const _0x3bf9fc=_0x22b8c5[_0x32ad69(0x4a8)]()[0x0],_0x5d44f3=_0x22b8c5[_0x32ad69(0x42b)](_0x3bf9fc);if(!_0x5d44f3)return;this[_0x32ad69(0x291)](_0x5d44f3,!0x0),await this[_0x32ad69(0x3f2)][_0x32ad69(0x222)](v[_0x32ad69(0x3cf)]['id'],{'unitId':_0x22b8c5[_0x32ad69(0x3b1)](),'subUnitId':_0x3bf9fc});return;}((_0x6a8f23=_0x22b8c5[_0x32ad69(0x207)]())==null?void 0x0:_0x6a8f23[_0x32ad69(0x45d)]())!==_0x453fff&&await this[_0x32ad69(0x3f2)][_0x32ad69(0x222)](v[_0x32ad69(0x3cf)]['id'],{'unitId':_0x22b8c5['getUnitId'](),'subUnitId':_0x453fff});}},exports[_0x351cc3(0x29d)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x351cc3(0x43d)])),Y(0x4,a[_0x351cc3(0x35f)](qe[_0x351cc3(0x2c8)]))],exports[_0x351cc3(0x29d)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x1a87df,_0x332d3f,_0x59c7e6,_0x1ba9c4)=>{const _0x120f8e=_0x351cc3;for(var _0x3c9683=_0x1ba9c4>0x1?void 0x0:_0x1ba9c4?lt(_0x332d3f,_0x59c7e6):_0x332d3f,_0x1386d4=_0x1a87df[_0x120f8e(0x241)]-0x1,_0x5f443c;_0x1386d4>=0x0;_0x1386d4--)(_0x5f443c=_0x1a87df[_0x1386d4])&&(_0x3c9683=_0x5f443c(_0x3c9683)||_0x3c9683);return _0x3c9683;},De=(_0x5da143,_0x3419e0)=>(_0x2b4eb1,_0x1c4237)=>_0x3419e0(_0x2b4eb1,_0x1c4237,_0x5da143);let me=class extends a['RxDisposable']{constructor(_0xa9bda6,_0x57d2a4){const _0xf9e9b6=_0x351cc3;super(),this[_0xf9e9b6(0x4bb)]=_0xa9bda6,this[_0xf9e9b6(0x2e4)]=_0x57d2a4,this[_0xf9e9b6(0x331)]();}[_0x351cc3(0x331)](){const _0x43a272=_0x351cc3,_0x472ce7=this;this[_0x43a272(0x248)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0xe6f916=>{const _0x45724b=_0x43a272,_0x219c42=await _0x472ce7[_0x45724b(0x2e4)][_0x45724b(0x35b)](_0xe6f916);return _0x219c42?{'source':_0x219c42['source'],'imageSourceType':_0x219c42[_0x45724b(0x43c)]}:null;}}));}};me=_t([De(0x0,p[_0x351cc3(0x2e1)]),De(0x1,ze[_0x351cc3(0x2a7)])],me);const Ne=[_0x351cc3(0x2a6),_0x351cc3(0x21b),'green.600','red.300','blue.400',_0x351cc3(0x267)];class Re extends a[_0x351cc3(0x37b)]{constructor(){const _0x110352=_0x351cc3;super(...arguments),_(this,_0x110352(0x2e6),new Map()),_(this,_0x110352(0x3d3),0x0);}[_0x351cc3(0x33a)](_0x13febe){const _0x55d495=_0x351cc3;if(this[_0x55d495(0x2e6)][_0x55d495(0x370)](_0x13febe))return this[_0x55d495(0x2e6)][_0x55d495(0x3d0)](_0x13febe);const _0x187a7d=Ne[this[_0x55d495(0x3d3)]];return this[_0x55d495(0x3d3)]=(this[_0x55d495(0x3d3)]+0x1)%Ne['length'],this[_0x55d495(0x2e6)][_0x55d495(0x305)](_0x13febe,_0x187a7d),_0x187a7d;}}function Fe(_0x5700ac){const _0x149c4b=_0x351cc3;let _0x1864d4='';for(const _0x15cb8e of _0x5700ac){const {startOffset:_0x25ae31,endOffset:_0x1d43df,isActive:_0x3dec26,rangeType:_0x1ece5b,segmentId:_0x3ba621,segmentPage:_0x45dc37}=_0x15cb8e;_0x1864d4[_0x149c4b(0x241)]&&(_0x1864d4+=','),_0x1864d4+=_0x25ae31+':'+_0x1d43df+':'+(_0x3dec26?'1':'0')+':'+_0x1ece5b+':'+_0x3ba621+':'+_0x45dc37;}return _0x1864d4;}function ht(_0x29a5e5){const _0x40521b=_0x351cc3,_0x2401c2=_0x29a5e5['split'](','),_0x3fb343=[];for(const _0x2f39bf of _0x2401c2){const [_0x3d22ca,_0xaa2876,_0x38aa31,_0x25b88,_0x2f9b6a,_0x515e99]=_0x2f39bf['split'](':');_0x3fb343['push']({'startOffset':Number(_0x3d22ca),'endOffset':Number(_0xaa2876),'collapsed':_0x3d22ca===_0xaa2876,'isActive':_0x38aa31==='1','rangeType':_0x25b88===a[_0x40521b(0x375)][_0x40521b(0x476)]?a[_0x40521b(0x375)][_0x40521b(0x476)]:a[_0x40521b(0x375)][_0x40521b(0x3dd)],'segmentId':typeof _0x2f9b6a==_0x40521b(0x3e9)?String(_0x2f9b6a):'','segmentPage':Number(_0x515e99!=null?_0x515e99:-0x1)});}return _0x3fb343[_0x40521b(0x459)](_0x480ef9=>_0x480ef9[_0x40521b(0x36a)])||(_0x3fb343[0x0]['isActive']=!0x0),_0x3fb343;}class be extends a[_0x351cc3(0x487)]{constructor(){const _0x67520c=_0x351cc3;super(...arguments),_(this,'_collabCursorState$',new I['BehaviorSubject'](null)),_(this,_0x67520c(0x324),this[_0x67520c(0x300)]['asObservable']());}[_0x351cc3(0x1f0)](_0x10b762){const _0x44fb1c=_0x351cc3,{unitID:_0x58d356,memberID:_0x313b9c,textRanges:_0x2f54fa}=_0x10b762,_0x56569e=Fe(_0x2f54fa);if(_0x56569e==='')return;const _0x5e838a={'unitID':_0x58d356,'memberID':_0x313b9c,'selection':_0x56569e};this['_collabCursorState$'][_0x44fb1c(0x380)](_0x5e838a);}}var ut=Object[_0x351cc3(0x343)],It=(_0x10623e,_0x4a22df,_0x1ea19d,_0x5a96a7)=>{const _0x3e59de=_0x351cc3;for(var _0xc852ff=_0x5a96a7>0x1?void 0x0:_0x5a96a7?ut(_0x4a22df,_0x1ea19d):_0x4a22df,_0x23a5d9=_0x10623e[_0x3e59de(0x241)]-0x1,_0x4c1fad;_0x23a5d9>=0x0;_0x23a5d9--)(_0x4c1fad=_0x10623e[_0x23a5d9])&&(_0xc852ff=_0x4c1fad(_0xc852ff)||_0xc852ff);return _0xc852ff;},U=(_0x5e44f9,_0x215b50)=>(_0x186006,_0x14282c)=>_0x215b50(_0x186006,_0x14282c,_0x5e44f9);const dt=0x12c,St=0x64;let ve=class extends a['RxDisposable']{constructor(_0x4bb219,_0x3c5fc5,_0x1dbd7d,_0x39ceb3,_0x42d3a6,_0x4237bb,_0x55dec3,_0x1a7d1c,_0x2c9d8e){const _0x5767af=_0x351cc3;super(),_(this,_0x5767af(0x1f6),!0x1),_(this,'_init',!0x1),_(this,_0x5767af(0x26b),new I[(_0x5767af(0x263))](new Map())),_(this,_0x5767af(0x35d),this[_0x5767af(0x26b)]['asObservable']()),_(this,_0x5767af(0x499),new I[(_0x5767af(0x263))]([])),_(this,'roomMembers$',this[_0x5767af(0x499)][_0x5767af(0x38b)](I[_0x5767af(0x46e)](dt))),_(this,_0x5767af(0x32e),a[_0x5767af(0x2aa)](_0x1973bd=>{const _0x1069b7=_0x5767af,_0x8f7e89={'eventID':g[_0x1069b7(0x234)][_0x1069b7(0x292)],'data':{'unitID':this[_0x1069b7(0x437)],'memberID':this[_0x1069b7(0x4a2)][_0x1069b7(0x355)](),'selection':Fe(_0x1973bd)}};this[_0x1069b7(0x4a2)][_0x1069b7(0x40f)](_0x8f7e89,this['unitID']);},St)),(this['unitID']=_0x4bb219,this[_0x5767af(0x4a2)]=_0x3c5fc5,this['_injector']=_0x1dbd7d,this[_0x5767af(0x296)]=_0x39ceb3,this['_memberService']=_0x42d3a6,this['_syncEditingCollabCursorService']=_0x4237bb,this['_transformService']=_0x55dec3,this[_0x5767af(0x2bf)]=_0x1a7d1c,this[_0x5767af(0x3f2)]=_0x2c9d8e);}get[_0x351cc3(0x470)](){const _0x313a9f=_0x351cc3;return this[_0x313a9f(0x26b)]['getValue']();}get[_0x351cc3(0x3fb)](){return this['_roomMembers$']['getValue']();}[_0x351cc3(0x469)](){const _0x5ce304=_0x351cc3;super[_0x5ce304(0x469)](),this[_0x5ce304(0x26b)][_0x5ce304(0x380)](new Map()),this[_0x5ce304(0x26b)][_0x5ce304(0x279)](),this[_0x5ce304(0x499)][_0x5ce304(0x380)]([]),this[_0x5ce304(0x499)][_0x5ce304(0x279)]();}['init'](){const _0x39fd93=_0x351cc3;this[_0x39fd93(0x331)]||(this[_0x39fd93(0x331)]=!0x0,this['_session'][_0x39fd93(0x45a)][_0x39fd93(0x38b)](I[_0x39fd93(0x3f1)](this['dispose$']))[_0x39fd93(0x3b4)](_0x5ae1fc=>{const _0x3b03d0=_0x39fd93;_0x5ae1fc===u['SessionStatus']['ONLINE']?this[_0x3b03d0(0x47b)]():this[_0x3b03d0(0x447)]();}),this[_0x39fd93(0x4a2)][_0x39fd93(0x363)][_0x39fd93(0x38b)](I['takeUntil'](this['dispose$']))['subscribe'](_0x21ebb5=>{const _0x41054c=_0x39fd93,_0x4ab286=_0x21ebb5[_0x41054c(0x3ec)];_0x4ab286===g[_0x41054c(0x234)][_0x41054c(0x292)]&&this[_0x41054c(0x460)](_0x21ebb5),_0x4ab286===g[_0x41054c(0x234)][_0x41054c(0x48c)]&&this[_0x41054c(0x30a)](_0x21ebb5);}),this[_0x39fd93(0x248)](this[_0x39fd93(0x3f2)]['onCommandExecuted'](_0x4c5ebd=>{const _0x243823=_0x39fd93,_0x3f28dd=_0x4c5ebd[_0x243823(0x3d6)];_0x3f28dd!=null&&this['_online']&&_0x4c5ebd['id']===V[_0x243823(0x40e)]['id']&&_0x3f28dd[_0x243823(0x338)]===this[_0x243823(0x437)]&&_0x3f28dd['isEditing']===!0x1&&_0x3f28dd[_0x243823(0x2cc)][_0x243823(0x241)]>0x0&&this[_0x243823(0x32e)](_0x3f28dd[_0x243823(0x2cc)]);})),this[_0x39fd93(0x334)][_0x39fd93(0x324)]['pipe'](I[_0x39fd93(0x3f1)](this[_0x39fd93(0x40d)]))[_0x39fd93(0x3b4)](_0x4e4d7f=>{const _0x55e84e=_0x39fd93;if((_0x4e4d7f==null?void 0x0:_0x4e4d7f['unitID'])!==this[_0x55e84e(0x437)])return;const _0x11f5b0={'eventID':g[_0x55e84e(0x234)]['UPDATE_CURSOR'],'data':_0x4e4d7f};this[_0x55e84e(0x460)](_0x11f5b0);}),this['disposeWithMe'](this[_0x39fd93(0x3f2)][_0x39fd93(0x29a)](_0x354bc2=>{const _0x1caee9=_0x39fd93;if(_0x354bc2[_0x1caee9(0x3d6)]==null)return;const _0x5d96ca=_0x354bc2[_0x1caee9(0x3d6)];if(_0x354bc2['id']!==V[_0x1caee9(0x3bd)]['id']||_0x5d96ca[_0x1caee9(0x338)]!==this[_0x1caee9(0x437)])return;const _0x45efc9={'id':_0x1caee9(0x483),'params':_0x5d96ca},_0x413321=this[_0x1caee9(0x470)];for(const [_0x450271,_0x2ab762]of _0x413321){const _0x18ef10={'id':_0x1caee9(0x483),'params':{'unitId':this[_0x1caee9(0x437)],'actions':null,'textRanges':_0x2ab762['ranges']}},_0x37f8db=this['_transformService'][_0x1caee9(0x2dd)](_0x45efc9,_0x18ef10,!0x1);if(g['isTransformMutationFailure'](_0x37f8db))throw _0x37f8db[_0x1caee9(0x423)];_0x413321['set'](_0x450271,{..._0x2ab762,'ranges':_0x37f8db[_0x1caee9(0x274)][_0x1caee9(0x3d6)][_0x1caee9(0x48f)]});}queueMicrotask(()=>{const _0x24bd6d=_0x1caee9;this[_0x24bd6d(0x26b)][_0x24bd6d(0x380)](_0x413321);});})));}[_0x351cc3(0x460)](_0x1efd2f){const _0x1622e9=_0x351cc3;var _0x42bf3b,_0x38b4a0;const {memberID:_0x5374e5,selection:_0x51b3c6}=_0x1efd2f[_0x1622e9(0x49d)],_0x39fa98=ht(_0x51b3c6),_0x3aca5a=(_0x38b4a0=(_0x42bf3b=this[_0x1622e9(0x3cb)][_0x1622e9(0x3f4)](this[_0x1622e9(0x437)],_0x5374e5))==null?void 0x0:_0x42bf3b[_0x1622e9(0x3a6)])!=null?_0x38b4a0:_0x1622e9(0x253),_0x4799d3={'color':this[_0x1622e9(0x296)][_0x1622e9(0x33a)](_0x5374e5),'name':_0x3aca5a,'ranges':_0x39fa98},_0x5c4b48=this[_0x1622e9(0x470)];_0x5c4b48[_0x1622e9(0x305)](_0x5374e5,_0x4799d3),this[_0x1622e9(0x26b)][_0x1622e9(0x380)](_0x5c4b48);}[_0x351cc3(0x30a)](_0x20505c){const _0xf529ab=_0x351cc3,{memberID:_0x4743bb}=_0x20505c[_0xf529ab(0x49d)],_0x3fd514=this[_0xf529ab(0x470)];_0x3fd514['delete'](_0x4743bb),this[_0xf529ab(0x26b)][_0xf529ab(0x380)](_0x3fd514);}['_toggleOnline'](){const _0xfa6b77=_0x351cc3;var _0x4d040c;if(this[_0xfa6b77(0x1f6)]=!0x0,((_0x4d040c=this[_0xfa6b77(0x2bf)][_0xfa6b77(0x22e)]())==null?void 0x0:_0x4d040c['getUnitId']())!==this['unitID'])return;const _0x33b65f=this['_injector']['get'](V[_0xfa6b77(0x3a9)])[_0xfa6b77(0x381)]();Array[_0xfa6b77(0x330)](_0x33b65f)&&_0x33b65f[_0xfa6b77(0x241)]>0x0&&this['_updateLocalCursor'](_0x33b65f);}[_0x351cc3(0x447)](){this['_online']=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x351cc3(0x2d1)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x351cc3(0x257)](u[_0x351cc3(0x427)])),U(0x5,a[_0x351cc3(0x257)](be)),U(0x6,g[_0x351cc3(0x362)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x351cc3(0x30d)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x39a8f6,_0x6a7652,_0x611ea3,_0x5f59f7)=>{for(var _0x2e624e=_0x5f59f7>0x1?void 0x0:_0x5f59f7?ft(_0x6a7652,_0x611ea3):_0x6a7652,_0x4494cc=_0x39a8f6['length']-0x1,_0x349361;_0x4494cc>=0x0;_0x4494cc--)(_0x349361=_0x39a8f6[_0x4494cc])&&(_0x2e624e=_0x349361(_0x2e624e)||_0x2e624e);return _0x2e624e;},w=(_0x4f2e79,_0x4eebd5)=>(_0x535b46,_0xe312cf)=>_0x4eebd5(_0x535b46,_0xe312cf,_0x4f2e79);const vt=0x12c,gt=0x64,Et=()=>{let _0x1829c8=[],_0x4b60ae=!0x1;return _0xfd2a36=>{const _0x5efced=_0xf8a9;_0x1829c8[_0x5efced(0x455)](_0xfd2a36),_0x4b60ae||(_0x4b60ae=!0x0,setTimeout(()=>{_0x1829c8['forEach'](_0x327f80=>_0x327f80()),_0x1829c8=[],_0x4b60ae=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x2c709f,_0x5a429d,_0x3d545b,_0x2eaf1e,_0x4d8ee9,_0x24a3c1,_0x1ff152,_0x2d85b6){const _0x3b8012=_0x351cc3;super(),_(this,_0x3b8012(0x1f6),!0x1),_(this,_0x3b8012(0x331),!0x1),_(this,_0x3b8012(0x26b),new I[(_0x3b8012(0x263))](new Map())),_(this,_0x3b8012(0x35d),this[_0x3b8012(0x26b)]['asObservable']()),_(this,_0x3b8012(0x499),new I['BehaviorSubject']([])),_(this,_0x3b8012(0x2d7),this[_0x3b8012(0x499)][_0x3b8012(0x38b)](I[_0x3b8012(0x46e)](vt))),_(this,_0x3b8012(0x32e),a['debounce']((_0x1ab825,_0x40e4e3)=>{const _0x357c08=_0x3b8012,_0x102351={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x357c08(0x4a2)]['getMemberID'](),'selection':B['serializeRangeWithSheet'](_0x1ab825,_0x40e4e3[_0x357c08(0x31b)])}};this[_0x357c08(0x4a2)][_0x357c08(0x40f)](_0x102351,this[_0x357c08(0x437)]);},gt)),(this[_0x3b8012(0x437)]=_0x2c709f,this[_0x3b8012(0x4a2)]=_0x5a429d,this[_0x3b8012(0x37f)]=_0x3d545b,this['_colorAssignService']=_0x2eaf1e,this[_0x3b8012(0x3cb)]=_0x4d8ee9,this[_0x3b8012(0x2bf)]=_0x24a3c1,this[_0x3b8012(0x3f2)]=_0x1ff152,this[_0x3b8012(0x218)]=_0x2d85b6);}get[_0x351cc3(0x470)](){const _0x1c8916=_0x351cc3;return this[_0x1c8916(0x26b)][_0x1c8916(0x24d)]();}get['roomMembers'](){const _0x2c5220=_0x351cc3;return this[_0x2c5220(0x499)][_0x2c5220(0x24d)]();}[_0x351cc3(0x469)](){const _0x3452d1=_0x351cc3;super['dispose'](),this[_0x3452d1(0x26b)][_0x3452d1(0x380)](new Map()),this[_0x3452d1(0x26b)]['complete'](),this[_0x3452d1(0x499)]['next']([]),this[_0x3452d1(0x499)][_0x3452d1(0x279)]();}[_0x351cc3(0x211)](){const _0x2799be=_0x351cc3;this[_0x2799be(0x331)]||(this[_0x2799be(0x331)]=!0x0,this['_session']['sessionStatus$'][_0x2799be(0x38b)](I[_0x2799be(0x3f1)](this[_0x2799be(0x40d)]))['subscribe'](_0x17f933=>{const _0x59e05c=_0x2799be;_0x17f933===u['SessionStatus'][_0x59e05c(0x22c)]?this['_toggleOnline']():this[_0x59e05c(0x447)]();}),this['_session'][_0x2799be(0x363)]['pipe'](I[_0x2799be(0x3f1)](this[_0x2799be(0x40d)]))[_0x2799be(0x3b4)](_0x32d82a=>{const _0x12f90c=_0x2799be,_0x58f3e8=_0x32d82a[_0x12f90c(0x3ec)];_0x58f3e8===g['CollaborationEvent'][_0x12f90c(0x292)]&&this['_onCursorUpdate'](_0x32d82a),_0x58f3e8===g['CollaborationEvent'][_0x12f90c(0x48c)]&&this[_0x12f90c(0x30a)](_0x32d82a);}),this[_0x2799be(0x223)](),this[_0x2799be(0x248)](this[_0x2799be(0x3f2)]['onCommandExecuted'](_0x187347=>{const _0x62c0c1=_0x2799be;if(this['_online']&&_0x187347['id']===v['SetSelectionsOperation']['id']&&_0x187347[_0x62c0c1(0x3d6)][_0x62c0c1(0x338)]===this['unitID']){const _0x265c74=_0x187347['params'];this[_0x62c0c1(0x32e)](_0x265c74[_0x62c0c1(0x3b2)],_0x265c74[_0x62c0c1(0x38f)][0x0]);}})));}[_0x351cc3(0x460)](_0x205902){const _0x21b853=_0x351cc3;var _0x228336,_0x52a77d;const {memberID:_0x354f2f,selection:_0x28e002}=_0x205902['data'],{sheetName:_0x293602,range:_0x5cac9d}=B[_0x21b853(0x4b8)](_0x28e002),_0x431fd7={'name':(_0x52a77d=(_0x228336=this[_0x21b853(0x3cb)][_0x21b853(0x3f4)](this['unitID'],_0x354f2f))==null?void 0x0:_0x228336['name'])!=null?_0x52a77d:_0x21b853(0x253),'range':this[_0x21b853(0x3a2)](_0x293602,_0x5cac9d),'sheetID':_0x293602,'color':this[_0x21b853(0x296)]['assignAColorForMemberID'](_0x354f2f),'selection':_0x28e002},_0xed964b=this['cursorInfo'];_0xed964b[_0x21b853(0x305)](_0x354f2f,_0x431fd7),this['_cursorInfo$'][_0x21b853(0x380)](_0xed964b);}[_0x351cc3(0x30a)](_0x1b06c1){const _0x9fa8ca=_0x351cc3,{memberID:_0x206af1}=_0x1b06c1['data'],_0x2d28bf=this[_0x9fa8ca(0x470)];_0x2d28bf[_0x9fa8ca(0x4a9)](_0x206af1),this[_0x9fa8ca(0x26b)][_0x9fa8ca(0x380)](_0x2d28bf);}[_0x351cc3(0x3a2)](_0x58f1c4,_0x3b3a55){const _0x3d277f=_0x351cc3;var _0x445e81,_0x81896a;const _0x3f7406=(_0x81896a=(_0x445e81=this[_0x3d277f(0x2bf)][_0x3d277f(0x230)](this[_0x3d277f(0x437)]))==null?void 0x0:_0x445e81['getSheetBySheetId'](_0x58f1c4))==null?void 0x0:_0x81896a[_0x3d277f(0x403)]();return(_0x3f7406==null?void 0x0:_0x3f7406[_0x3d277f(0x2de)](_0x1b5572=>a[_0x3d277f(0x33c)][_0x3d277f(0x22d)](_0x1b5572,_0x3b3a55)))||_0x3b3a55;}[_0x351cc3(0x223)](){const _0x1f47fd=_0x351cc3,_0x624901=new a[(_0x1f47fd(0x260))](),_0xa4dc0d=Et(),_0x39d9e2=()=>{const _0x4da55a=_0x1f47fd;_0x624901[_0x4da55a(0x469)]();const _0x57b5a9=(_0x520331,_0x317c83,_0x1d2bea,_0x239944)=>{const _0x5113fd=_0x4da55a;let _0x409633=[];switch(_0x520331['id']){case v['EffectRefRangId'][_0x5113fd(0x43a)]:{_0x409633=v[_0x5113fd(0x2f1)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x413)]:{_0x409633=v[_0x5113fd(0x325)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x416)]:{_0x409633=v['handleInsertCol'](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x250)]:{_0x409633=v[_0x5113fd(0x485)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x3b3)]:{_0x409633=v['handleInsertRangeMoveRight'](_0x520331,_0x239944);break;}case v['EffectRefRangId'][_0x5113fd(0x41a)]:{_0x409633=v[_0x5113fd(0x420)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)][_0x5113fd(0x3c1)]:{_0x409633=v[_0x5113fd(0x4ad)](_0x520331,_0x239944);break;}case v['EffectRefRangId'][_0x5113fd(0x26a)]:{_0x409633=v[_0x5113fd(0x3ea)](_0x520331,_0x239944);break;}case v[_0x5113fd(0x37d)]['RemoveRowCommandId']:{_0x409633=v['handleIRemoveRow'](_0x520331,_0x239944);break;}}const _0x446628=v[_0x5113fd(0x277)](_0x409633,_0x239944),_0x489755=this[_0x5113fd(0x470)]['get'](_0x317c83);if(_0x489755&&_0x446628){const _0x1c6491={..._0x489755,'range':_0x446628};this['cursorInfo'][_0x5113fd(0x305)](_0x317c83,_0x1c6491),_0xa4dc0d(()=>{const _0x2db161=_0x5113fd,_0x48efb8=this['_refRangeService']['registerRefRange'](_0x446628,_0x5376e3=>(_0x48efb8[_0x2db161(0x469)](),_0x57b5a9(_0x5376e3,_0x317c83,_0x1d2bea,_0x446628)));_0x624901[_0x2db161(0x251)](_0x48efb8);});}return{'redos':[],'undos':[]};};this[_0x4da55a(0x470)][_0x4da55a(0x264)]((_0x1f5cbd,_0x55622d)=>{const _0x2ee6a7=_0x4da55a,{range:_0x53c58f,sheetID:_0x356af9}=_0x1f5cbd,_0x40324a=this[_0x2ee6a7(0x218)]['registerRefRange'](_0x53c58f,_0x23eac2=>(_0x40324a[_0x2ee6a7(0x469)](),_0x57b5a9(_0x23eac2,_0x55622d,_0x356af9,_0x53c58f)));_0x624901[_0x2ee6a7(0x251)](_0x40324a);});};this[_0x1f47fd(0x248)](a[_0x1f47fd(0x30f)](this[_0x1f47fd(0x26b)][_0x1f47fd(0x3b4)](()=>{_0x39d9e2();})));}['_toggleOnline'](){const _0x4bc513=_0x351cc3;var _0x2e423c,_0x4859a3;if(this[_0x4bc513(0x1f6)]=!0x0,((_0x2e423c=this[_0x4bc513(0x2bf)]['getFocusedUnit']())==null?void 0x0:_0x2e423c['getUnitId']())!==this['unitID'])return;const _0x36dfbc=(_0x4859a3=this[_0x4bc513(0x37f)][_0x4bc513(0x3d0)](v[_0x4bc513(0x444)])[_0x4bc513(0x392)]())==null?void 0x0:_0x4859a3[0x0],_0x11bb35=this[_0x4bc513(0x2bf)]['getCurrentUnitForType'](a[_0x4bc513(0x2ab)]['UNIVER_SHEET'])[_0x4bc513(0x207)]();_0x36dfbc&&_0x11bb35&&this[_0x4bc513(0x32e)](_0x11bb35[_0x4bc513(0x45d)](),_0x36dfbc);}[_0x351cc3(0x447)](){const _0x1f6421=_0x351cc3;this[_0x1f6421(0x1f6)]=!0x1;}};ge=mt([w(0x2,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),w(0x3,a[_0x351cc3(0x257)](Re)),w(0x4,a['Inject'](u[_0x351cc3(0x427)])),w(0x5,a[_0x351cc3(0x314)]),w(0x6,a['ICommandService']),w(0x7,a[_0x351cc3(0x257)](v[_0x351cc3(0x2a0)]))],ge);var Ct=Object[_0x351cc3(0x343)],pt=(_0x226259,_0x389b8,_0x23e166,_0x28ffab)=>{const _0x467013=_0x351cc3;for(var _0x5cec53=_0x28ffab>0x1?void 0x0:_0x28ffab?Ct(_0x389b8,_0x23e166):_0x389b8,_0x1b2a9e=_0x226259[_0x467013(0x241)]-0x1,_0x305742;_0x1b2a9e>=0x0;_0x1b2a9e--)(_0x305742=_0x226259[_0x1b2a9e])&&(_0x5cec53=_0x305742(_0x5cec53)||_0x5cec53);return _0x5cec53;},ce=(_0x23e60f,_0x984e40)=>(_0x57ddb0,_0x247cb8)=>_0x984e40(_0x57ddb0,_0x247cb8,_0x23e60f);let F=class extends a['RxDisposable']{constructor(_0x361db3,_0x5e2946,_0x598c73){const _0x3754d6=_0x351cc3;super(),_(this,_0x3754d6(0x29e),new Map()),_(this,_0x3754d6(0x3a8),new I[(_0x3754d6(0x458))]()),(this[_0x3754d6(0x2bf)]=_0x361db3,this[_0x3754d6(0x37f)]=_0x5e2946,this[_0x3754d6(0x4ba)]=_0x598c73,this[_0x3754d6(0x331)]());}[_0x351cc3(0x469)](){const _0x9fbefc=_0x351cc3;super[_0x9fbefc(0x469)](),this[_0x9fbefc(0x3a8)]['complete'](),this[_0x9fbefc(0x29e)][_0x9fbefc(0x264)](_0x5f5b32=>_0x5f5b32['dispose']());}[_0x351cc3(0x23b)](_0x1bf904){const _0x59d275=_0x351cc3;return this[_0x59d275(0x29e)][_0x59d275(0x370)](_0x1bf904)?this[_0x59d275(0x29e)][_0x59d275(0x3d0)](_0x1bf904)['cursorInfo$']:this[_0x59d275(0x3a8)][_0x59d275(0x38b)](I['filter'](_0x478c25=>_0x478c25['unitID']===_0x1bf904),I[_0x59d275(0x424)](_0x4a32a3=>_0x4a32a3[_0x59d275(0x35d)]));}['_init'](){const _0x51383f=_0x351cc3;this[_0x51383f(0x2bf)][_0x51383f(0x429)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x51383f(0x40d)]))['subscribe'](async _0x5bc519=>{const _0x3f9797=_0x51383f,_0x45ea9b=_0x5bc519[_0x3f9797(0x3b1)](),_0x270450=await this[_0x3f9797(0x3cd)](_0x45ea9b);this[_0x3f9797(0x3a8)][_0x3f9797(0x380)](_0x270450),this[_0x3f9797(0x29e)]['set'](_0x45ea9b,_0x270450);}),this['_univerInstanceService'][_0x51383f(0x429)](a[_0x51383f(0x2ab)][_0x51383f(0x345)])['pipe'](I[_0x51383f(0x3f1)](this[_0x51383f(0x40d)]))[_0x51383f(0x38b)](I[_0x51383f(0x354)](_0x408cc4=>!_0x408cc4[_0x51383f(0x3b1)]()[_0x51383f(0x328)]('__')))[_0x51383f(0x3b4)](async _0x3710e7=>{const _0x45eba0=_0x51383f,_0x270080=_0x3710e7[_0x45eba0(0x3b1)](),_0x4650fc=await this[_0x45eba0(0x20c)](_0x270080);this['_entityInit$'][_0x45eba0(0x380)](_0x4650fc),this[_0x45eba0(0x29e)]['set'](_0x270080,_0x4650fc);}),I[_0x51383f(0x216)](this[_0x51383f(0x2bf)][_0x51383f(0x4b3)](a[_0x51383f(0x2ab)][_0x51383f(0x345)]),this[_0x51383f(0x2bf)]['getTypeOfUnitDisposed$'](a[_0x51383f(0x2ab)][_0x51383f(0x34b)]))[_0x51383f(0x38b)](I[_0x51383f(0x3f1)](this[_0x51383f(0x40d)]))[_0x51383f(0x3b4)](_0x4a6568=>{const _0xb5e74d=_0x51383f,_0x2170ab=_0x4a6568[_0xb5e74d(0x3b1)](),_0x1ceaac=this[_0xb5e74d(0x29e)][_0xb5e74d(0x3d0)](_0x2170ab);_0x1ceaac&&(_0x1ceaac[_0xb5e74d(0x469)](),this[_0xb5e74d(0x29e)][_0xb5e74d(0x4a9)](_0x2170ab));});}async[_0x351cc3(0x3cd)](_0x5904cf){const _0x330c0d=_0x351cc3,_0xc401cb=await this['_collabSessionService'][_0x330c0d(0x25f)](_0x5904cf),_0x48914b=this['_injector']['createInstance'](ge,_0x5904cf,_0xc401cb);return _0x48914b[_0x330c0d(0x211)](),_0x48914b;}async['_startDocCollabCursor'](_0x53c128){const _0x5d4913=_0x351cc3,_0x735c87=await this[_0x5d4913(0x4ba)][_0x5d4913(0x25f)](_0x53c128),_0x253bc6=this[_0x5d4913(0x37f)][_0x5d4913(0x20a)](ve,_0x53c128,_0x735c87);return _0x253bc6[_0x5d4913(0x211)](),_0x253bc6;}};F=pt([ce(0x0,a[_0x351cc3(0x314)]),ce(0x1,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),ce(0x2,a[_0x351cc3(0x257)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,Tt=0x5;function Ot(_0x22dc10,_0x5385b2){const _0x3b13ac=_0x351cc3;let {radius:_0x593c09,width:_0x12e077,height:_0x3d71cd}=_0x5385b2;_0x593c09=_0x593c09!=null?_0x593c09:0x0,_0x12e077=_0x12e077!=null?_0x12e077:0x1e,_0x3d71cd=_0x3d71cd!=null?_0x3d71cd:0x1e;let _0x2f2b79=0x0,_0x49d353=0x0,_0x2726ee=0x0;_0x2f2b79=_0x49d353=_0x2726ee=Math[_0x3b13ac(0x2e0)](_0x593c09,_0x12e077/0x2,_0x3d71cd/0x2),_0x22dc10[_0x3b13ac(0x46a)](),_0x22dc10[_0x3b13ac(0x2ff)](_0x2f2b79,0x0),_0x22dc10[_0x3b13ac(0x322)](_0x12e077-_0x49d353,0x0),_0x22dc10[_0x3b13ac(0x3ae)](_0x12e077-_0x49d353,_0x49d353,_0x49d353,Math['PI']*0x3/0x2,0x0,!0x1),_0x22dc10[_0x3b13ac(0x322)](_0x12e077,_0x3d71cd-_0x2726ee),_0x22dc10[_0x3b13ac(0x3ae)](_0x12e077-_0x2726ee,_0x3d71cd-_0x2726ee,_0x2726ee,0x0,Math['PI']/0x2,!0x1),_0x22dc10['lineTo'](0x0,_0x3d71cd),_0x22dc10['lineTo'](0x0,_0x2f2b79),_0x22dc10['arc'](_0x2f2b79,_0x2f2b79,_0x2f2b79,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22dc10[_0x3b13ac(0x32b)](),_0x5385b2[_0x3b13ac(0x265)]&&(_0x22dc10[_0x3b13ac(0x1fd)](),_0x22dc10[_0x3b13ac(0x2a9)]=_0x5385b2[_0x3b13ac(0x265)],_0x5385b2[_0x3b13ac(0x3b9)]===_0x3b13ac(0x451)?_0x22dc10[_0x3b13ac(0x265)]('evenodd'):_0x22dc10['fill'](),_0x22dc10['restore']());}class re extends C['Shape']{constructor(_0x31114b,_0x2975e3){const _0x1ad703=_0x351cc3;super(_0x31114b,_0x2975e3),_(this,'color'),_(this,'text'),(this[_0x1ad703(0x37c)]=_0x2975e3==null?void 0x0:_0x2975e3[_0x1ad703(0x37c)],this[_0x1ad703(0x418)]=_0x2975e3==null?void 0x0:_0x2975e3[_0x1ad703(0x418)]);}static[_0x351cc3(0x2f8)](_0x44842d,_0x547803){const _0x10a19d=_0x351cc3,{text:_0xf15a41,color:_0x496279}=_0x547803;_0x44842d[_0x10a19d(0x1fd)](),_0x44842d['font']=_0x10a19d(0x210);const _0x2721fc=_0x44842d['measureText'](_0xf15a41)[_0x10a19d(0x220)],_0x52d3a1=Math[_0x10a19d(0x2e0)](_0x2721fc+0x2*le,Ue);Ot(_0x44842d,{'height':X,'radius':0x4,'width':_0x52d3a1,'fill':_0x496279}),_0x44842d['fillStyle']=_0x10a19d(0x2ba);const _0xdf97b=le,_0x5048b4=X-Tt,_0xbf7b29=Ue-0x2*le;if(_0x2721fc>_0xbf7b29){let _0x8bfef3='',_0xc47fcd=0x0;for(const _0x5422a0 of _0xf15a41){const _0x23ec3e=_0x44842d[_0x10a19d(0x269)](_0x5422a0)[_0x10a19d(0x220)];if(_0xc47fcd+_0x23ec3e<=_0xbf7b29-_0x44842d['measureText'](_0x10a19d(0x262))[_0x10a19d(0x220)])_0x8bfef3+=_0x5422a0,_0xc47fcd+=_0x23ec3e;else{_0x8bfef3+=_0x10a19d(0x262);break;}}_0x44842d[_0x10a19d(0x25d)](_0x8bfef3,_0xdf97b,_0x5048b4);}else _0x44842d['fillText'](_0xf15a41,_0xdf97b,_0x5048b4);_0x44842d['restore']();}[_0x351cc3(0x21f)](_0x5cf84e){const _0xe4aa02=_0x351cc3;re[_0xe4aa02(0x2f8)](_0x5cf84e,this);}}const _e=_0x351cc3(0x349),Rt=_0x351cc3(0x384),bt=_0x351cc3(0x1f5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x351cc3(0x477);class Le{constructor(_0x31e37b,_0x1efa67,_0x3de2c1,_0x54a16f){const _0x1e0bb3=_0x351cc3;_(this,'_shapes',[]),_(this,_0x1e0bb3(0x232),null),_(this,_0x1e0bb3(0x3aa),null),_(this,'_anchorDot',null),_(this,_0x1e0bb3(0x39b),null),_(this,'_eventUnsubscribe',null),(this[_0x1e0bb3(0x347)]=_0x31e37b,this[_0x1e0bb3(0x350)]=_0x1efa67,this[_0x1e0bb3(0x315)]=_0x3de2c1,this['_document']=_0x54a16f,this[_0x1e0bb3(0x367)]());}set[_0x351cc3(0x341)](_0xe6a19d){const _0x575028=_0x351cc3;_0xe6a19d?(this[_0x575028(0x2ae)]&&this['_anchorDot'][_0x575028(0x38e)](),this[_0x575028(0x3aa)]&&this['_textBubble']['show']()):(this[_0x575028(0x2ae)]&&this[_0x575028(0x2ae)][_0x575028(0x431)](),this['_textBubble']&&this[_0x575028(0x3aa)][_0x575028(0x38e)]());}[_0x351cc3(0x469)](){const _0xaa289=_0x351cc3;for(const _0x44e04c of this[_0xaa289(0x1fb)])_0x44e04c[_0xaa289(0x469)]();this[_0xaa289(0x3aa)]&&this[_0xaa289(0x3aa)][_0xaa289(0x469)](),this[_0xaa289(0x2ae)]&&this[_0xaa289(0x2ae)][_0xaa289(0x469)](),this['_anchor']&&this['_anchor'][_0xaa289(0x469)](),this[_0xaa289(0x49e)]&&this[_0xaa289(0x49e)]();}[_0x351cc3(0x367)](){const _0x190e17=_0x351cc3;var _0x4edf2;const {_docSkeleton:_0x40eadc,_document:_0x447a57}=this,{color:_0x8a75ba,name:_0x3a791b,ranges:_0x47ca93}=this[_0x190e17(0x347)],_0x160896=_0x447a57[_0x190e17(0x34a)](),{docsLeft:_0x4dbb87,docsTop:_0x2689c7}=_0x160896,_0x1b16b6=new p[(_0x190e17(0x435))](_0x160896,_0x40eadc);for(const {startOffset:_0x52255b,endOffset:_0x9207cc,rangeType:_0xef133f,segmentId:_0x3e0c46,segmentPage:_0x139f1d,collapsed:_0x115605,isActive:_0x3cade1}of _0x47ca93){const _0x3ff7f=_0x40eadc['findNodePositionByCharIndex'](_0x52255b,!0x0,_0x3e0c46,_0x139f1d);let _0x6eea3b=_0x40eadc[_0x190e17(0x2a5)](_0x9207cc,!0x0,_0x3e0c46,_0x139f1d);if(_0x6eea3b==null&&(_0x6eea3b=_0x40eadc['findNodePositionByCharIndex'](_0x9207cc-0x1,!0x1,_0x3e0c46,_0x139f1d)),_0x3cade1){const {contentBoxPointGroup:_0x36cf91}=_0x1b16b6['getRangePointData'](_0x6eea3b,_0x6eea3b);if(_0x36cf91[_0x190e17(0x241)]===0x0)continue;this['_drawAnchor'](_0x8a75ba,_0x36cf91,_0x4dbb87,_0x2689c7,_0x3a791b),this[_0x190e17(0x49e)]=this[_0x190e17(0x2fd)]();}if(_0x3ff7f&&_0x6eea3b){if(_0xef133f===a[_0x190e17(0x375)][_0x190e17(0x3dd)]){const _0x32c978=new p[(_0x190e17(0x215))](_0x160896,_0x40eadc),{pointGroup:_0x29a972}=(_0x4edf2=_0x32c978[_0x190e17(0x411)](_0x3ff7f,_0x6eea3b))!=null?_0x4edf2:{};if(_0x29a972==null||_0x29a972[_0x190e17(0x241)]===0x0)continue;this[_0x190e17(0x22f)](_0x8a75ba,_0x29a972,_0x4dbb87,_0x2689c7);}else{if(!_0x115605){const {borderBoxPointGroup:_0x45cb7c}=_0x1b16b6[_0x190e17(0x411)](_0x3ff7f,_0x6eea3b);if(_0x45cb7c[_0x190e17(0x241)]===0x0)continue;this[_0x190e17(0x280)](_0x8a75ba,_0x45cb7c,_0x4dbb87,_0x2689c7);}}}}}[_0x351cc3(0x388)](_0x5bed43,_0x5c1ad3,_0x167d78,_0x5f0079,_0x10e08b){const _0x30736a=_0x351cc3,_0x2641c1=this[_0x30736a(0x45f)](_0x5c1ad3),{left:_0x515658,top:_0x49d8fd,height:_0x203adc}=_0x2641c1,_0x251701=this['_getScale'](),_0x69122c=Nt/_0x251701,_0x439ae0=new C['Rect'](_e+a[_0x30736a(0x204)](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079,'height':_0x203adc,'width':Dt,'fill':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)][_0x30736a(0x379)],0x0),'strokeWidth':_0x69122c,'stroke':Ut,'evented':!0x0});this[_0x30736a(0x232)]=_0x439ae0,this[_0x30736a(0x350)][_0x30736a(0x49f)](_0x439ae0,p[_0x30736a(0x360)]);const _0x2a8ff1=new C['Rect'](_e+a[_0x30736a(0x204)](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079-he/0x2,'height':he,'width':he,'fill':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5bed43||C[_0x30736a(0x361)](a[_0x30736a(0x2c1)][_0x30736a(0x379)],0x0),'evented':!0x1});this[_0x30736a(0x2ae)]=_0x2a8ff1,this[_0x30736a(0x350)][_0x30736a(0x49f)](_0x2a8ff1,p[_0x30736a(0x360)]);const _0x4e8253=new re(_e+a['generateRandomId'](H),{'left':_0x515658+_0x167d78-_0x69122c,'top':_0x49d8fd+_0x5f0079-X,'text':_0x10e08b,'color':_0x5bed43});this['_textBubble']=_0x4e8253,this['_scene'][_0x30736a(0x49f)](_0x4e8253,p[_0x30736a(0x360)]),this[_0x30736a(0x341)]=!0x1;}['_handleHover'](){const _0x3afea3=_0x351cc3,_0x27569f=this[_0x3afea3(0x232)][_0x3afea3(0x465)][_0x3afea3(0x32c)](()=>{const _0x40b5d0=_0x3afea3;this[_0x40b5d0(0x341)]=!0x0;}),_0x987a79=this['_anchor'][_0x3afea3(0x4a4)][_0x3afea3(0x32c)](()=>{const _0x34403e=_0x3afea3;this[_0x34403e(0x39b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2a8752=_0x34403e;this[_0x2a8752(0x341)]=!0x1;},0x7d0);});return()=>{_0x27569f['unsubscribe'](),_0x987a79['unsubscribe']();};}['_drawTextRange'](_0x4ffe53,_0x4b7ab2,_0x5d790,_0x4c5f6a){const _0x4803d9=_0x351cc3,_0x1e55ae=new a[(_0x4803d9(0x203))](_0x4ffe53)[_0x4803d9(0x421)](0.2)[_0x4803d9(0x28e)](),_0x918f5f=new C['RegularPolygon'](Rt+a[_0x4803d9(0x204)](H),{'pointsGroup':_0x4b7ab2,'fill':_0x1e55ae||C[_0x4803d9(0x361)](a['COLORS'][_0x4803d9(0x379)],0.2),'left':_0x5d790,'top':_0x4c5f6a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4803d9(0x1fb)]['push'](_0x918f5f),this[_0x4803d9(0x350)][_0x4803d9(0x49f)](_0x918f5f,p[_0x4803d9(0x360)]);}[_0x351cc3(0x22f)](_0x2729be,_0x3ed662,_0x3d0662,_0x4dbea3){const _0x39f5c8=_0x351cc3,_0x18414e=new a['ColorKit'](_0x2729be)[_0x39f5c8(0x421)](0.2)['toRgbString'](),_0x59c7f7=new C[(_0x39f5c8(0x3cc))](bt+a['generateRandomId'](H),{'pointsGroup':_0x3ed662,'fill':_0x18414e||C[_0x39f5c8(0x361)](a[_0x39f5c8(0x2c1)]['black'],0.2),'left':_0x3d0662,'top':_0x4dbea3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x39f5c8(0x1fb)]['push'](_0x59c7f7),this[_0x39f5c8(0x350)][_0x39f5c8(0x49f)](_0x59c7f7,p[_0x39f5c8(0x360)]);}[_0x351cc3(0x45f)](_0x33bc31){const _0x33535f=_0x33bc31[0x0],_0x2865f8=_0x33535f[0x0],_0x25e3f7=_0x33535f[0x2],{x:_0x41984a,y:_0x289037}=_0x2865f8,{x:_0x105e1c,y:_0x2a581c}=_0x25e3f7;return{'left':_0x41984a,'top':_0x289037,'width':_0x105e1c-_0x41984a,'height':_0x2a581c-_0x289037};}[_0x351cc3(0x3dc)](){const _0x392942=_0x351cc3,{scaleX:_0x42e80d,scaleY:_0x59f6aa}=this[_0x392942(0x350)]['getAncestorScale']();return Math[_0x392942(0x3bf)](_0x42e80d,_0x59f6aa);}}var Lt=Object[_0x351cc3(0x343)],Mt=(_0x2524f0,_0x77975,_0x36c854,_0x2929dd)=>{const _0x46e5fa=_0x351cc3;for(var _0x364c8c=_0x2929dd>0x1?void 0x0:_0x2929dd?Lt(_0x77975,_0x36c854):_0x77975,_0x457908=_0x2524f0[_0x46e5fa(0x241)]-0x1,_0x2a9f26;_0x457908>=0x0;_0x457908--)(_0x2a9f26=_0x2524f0[_0x457908])&&(_0x364c8c=_0x2a9f26(_0x364c8c)||_0x364c8c);return _0x364c8c;},q=(_0x38e4dc,_0x593bd4)=>(_0x4c1200,_0x5a7b51)=>_0x593bd4(_0x4c1200,_0x5a7b51,_0x38e4dc);let Ee=class extends a['RxDisposable']{constructor(_0x47296f,_0x3ebce1,_0xe47060,_0x3838cf,_0x14c15d){const _0x4bd138=_0x351cc3;super(),_(this,_0x4bd138(0x481),[]),_(this,_0x4bd138(0x3a5),[]),(this[_0x4bd138(0x404)]=_0x47296f,this[_0x4bd138(0x474)]=_0x3ebce1,this['_collabCursorController']=_0xe47060,this[_0x4bd138(0x3f2)]=_0x3838cf,this['_themeService']=_0x14c15d,this[_0x4bd138(0x331)]());}[_0x351cc3(0x331)](){const _0x51b28b=_0x351cc3,_0x271124=this[_0x51b28b(0x404)][_0x51b28b(0x338)],_0x339cb0=this['_docSkeletonManagerService'];this[_0x51b28b(0x248)](I[_0x51b28b(0x4b7)]([this[_0x51b28b(0x494)]['getCollabCursors$'](_0x271124),this[_0x51b28b(0x24f)][_0x51b28b(0x41d)]])[_0x51b28b(0x38b)]($[_0x51b28b(0x246)](([_0x430091,_0x16165d])=>({'skeleton':_0x339cb0[_0x51b28b(0x3ad)](),'cursors':[..._0x430091[_0x51b28b(0x319)]()][_0x51b28b(0x39d)](_0xc1b692=>({..._0xc1b692,'color':this[_0x51b28b(0x24f)]['getColorFromTheme'](_0xc1b692['color'])}))})))['subscribe'](_0x304143=>{const _0x37b540=_0x51b28b;if(this[_0x37b540(0x4b9)](),_0x304143){const {skeleton:_0x306434,cursors:_0x34413d}=_0x304143;this[_0x37b540(0x491)](_0x306434,_0x34413d);}})),this['_initResize'](),this[_0x51b28b(0x23e)]();}['_updateCollabCursors'](_0x268ef0,_0x3289f1){const _0x363d93=_0x351cc3,{scene:_0x21dea0,mainComponent:_0x10933e}=this[_0x363d93(0x404)],_0x17b999=_0x3289f1['map'](_0x15d7de=>new Le(_0x15d7de,_0x21dea0,_0x268ef0,_0x10933e));this[_0x363d93(0x481)]=_0x17b999,this[_0x363d93(0x3a5)]=_0x3289f1;}[_0x351cc3(0x414)](){const _0x1be779=_0x351cc3;this[_0x1be779(0x4b9)]();const {scene:_0xa518c,mainComponent:_0x69f6dd}=this[_0x1be779(0x404)],_0x39117f=this[_0x1be779(0x474)][_0x1be779(0x3ad)](),_0x52eec8=this[_0x1be779(0x3a5)][_0x1be779(0x246)](_0x1f7cf2=>new Le(_0x1f7cf2,_0xa518c,_0x39117f,_0x69f6dd));this['_cursorShapes']=_0x52eec8;}[_0x351cc3(0x4b9)](){const _0x134cc1=_0x351cc3;this[_0x134cc1(0x481)][_0x134cc1(0x264)](_0x35a6bb=>_0x35a6bb['dispose']()),this['_cursorShapes']=[];}[_0x351cc3(0x23e)](){const _0xd2df5d=_0x351cc3,_0x42b956=[p[_0xd2df5d(0x484)]['id']];this[_0xd2df5d(0x248)](this['_commandService'][_0xd2df5d(0x29a)](_0x142c5c=>{const _0x3060fa=_0xd2df5d;_0x42b956[_0x3060fa(0x400)](_0x142c5c['id'])&&_0x142c5c['params']['unitId']===this['_context'][_0x3060fa(0x338)]&&this[_0x3060fa(0x414)]();}));}['_initResize'](){const _0x7164f1=_0x351cc3;this[_0x7164f1(0x248)](a['fromEventSubject'](this[_0x7164f1(0x404)][_0x7164f1(0x3bc)][_0x7164f1(0x38a)])[_0x7164f1(0x38b)]($[_0x7164f1(0x354)](_0x220bae=>_0x220bae['type']===C[_0x7164f1(0x446)][_0x7164f1(0x45c)]),$[_0x7164f1(0x27c)](0x10))[_0x7164f1(0x3b4)](()=>{const _0x1bac4e=_0x7164f1;this[_0x1bac4e(0x414)]();}));}};Ee=Mt([q(0x1,a[_0x351cc3(0x257)](V['DocSkeletonManagerService'])),q(0x2,a['Inject'](F)),q(0x3,a[_0x351cc3(0x30d)]),q(0x4,a[_0x351cc3(0x257)](a[_0x351cc3(0x282)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x351cc3(0x3fe)]{constructor(_0x58f4fe,_0xd85ea5){const _0x4a3ed2=_0x351cc3;super(_0x58f4fe,_0xd85ea5),_(this,_0x4a3ed2(0x490)),_(this,_0x4a3ed2(0x4b6),!0x1),_(this,_0x4a3ed2(0x297)),_(this,_0x4a3ed2(0x323),''),_(this,'_labelPosition',_0x4a3ed2(0x428)),_(this,_0x4a3ed2(0x47a)),(_0xd85ea5&&this['setShapeProps'](_0xd85ea5),this[_0x4a3ed2(0x465)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4a3ed2(0x4a4)][_0x4a3ed2(0x32c)](()=>this[_0x4a3ed2(0x378)]({'hovered':!0x1})));}[_0x351cc3(0x378)](_0x14b3c8){const _0xf73288=_0x351cc3;var _0x5dd860,_0x29d94d,_0x34a59c,_0x1c2f3a,_0x2d1940,_0x5c55a8;this['_color']=(_0x5dd860=_0x14b3c8[_0xf73288(0x37c)])!=null?_0x5dd860:this[_0xf73288(0x490)],this['_hovered']=(_0x29d94d=_0x14b3c8[_0xf73288(0x236)])!=null?_0x29d94d:this[_0xf73288(0x4b6)],this['_range']=(_0x34a59c=_0x14b3c8[_0xf73288(0x31b)])!=null?_0x34a59c:this['_range'],this[_0xf73288(0x323)]=(_0x1c2f3a=_0x14b3c8[_0xf73288(0x3a6)])!=null?_0x1c2f3a:this[_0xf73288(0x323)],this[_0xf73288(0x387)]=(_0x2d1940=_0x14b3c8[_0xf73288(0x36d)])!=null?_0x2d1940:this[_0xf73288(0x387)],this[_0xf73288(0x47a)]=(_0x5c55a8=_0x14b3c8[_0xf73288(0x47d)])!=null?_0x5c55a8:this['_backgroundColor'],this[_0xf73288(0x329)]({'width':_0x14b3c8[_0xf73288(0x220)],'height':_0x14b3c8[_0xf73288(0x3ac)]});}[_0x351cc3(0x2f7)](_0x1100b2){const _0x58908d=_0x351cc3,{row:_0x3fcf9d,column:_0x443bf9}=_0x1100b2;if(_0x3fcf9d>=this[_0x58908d(0x297)][_0x58908d(0x333)]&&_0x3fcf9d<=this[_0x58908d(0x297)]['endRow']&&_0x443bf9>=this[_0x58908d(0x297)][_0x58908d(0x49b)]&&_0x443bf9<=this[_0x58908d(0x297)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x58908d(0x378)]({'hovered':!0x1});}[_0x351cc3(0x226)](_0x8b50be){return!0x1;}[_0x351cc3(0x21f)](_0x15fd0b){const _0xc42ca=_0x351cc3;C['Rect']['drawWith'](_0x15fd0b,{'width':this[_0xc42ca(0x220)],'height':this[_0xc42ca(0x3ac)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc42ca(0x47a)]}),this['_hovered']&&(_0x15fd0b[_0xc42ca(0x1fd)](),_0x15fd0b[_0xc42ca(0x42a)](0x1,0x0,0x0,0x1,this[_0xc42ca(0x220)],this[_0xc42ca(0x387)]===_0xc42ca(0x394)?0x0:-X),re[_0xc42ca(0x2f8)](_0x15fd0b,{'text':this[_0xc42ca(0x323)],'color':this[_0xc42ca(0x490)]}),_0x15fd0b['restore']());}}var wt=Object[_0x351cc3(0x343)],yt=(_0x5d3a0a,_0x47d5b8,_0x286fc9,_0x378b11)=>{const _0x57f428=_0x351cc3;for(var _0x3b6716=_0x378b11>0x1?void 0x0:_0x378b11?wt(_0x47d5b8,_0x286fc9):_0x47d5b8,_0x3c97e2=_0x5d3a0a[_0x57f428(0x241)]-0x1,_0x11c17e;_0x3c97e2>=0x0;_0x3c97e2--)(_0x11c17e=_0x5d3a0a[_0x3c97e2])&&(_0x3b6716=_0x11c17e(_0x3b6716)||_0x3b6716);return _0x3b6716;},ue=(_0xe3d64a,_0x410781)=>(_0x2b3f43,_0x2bff57)=>_0x410781(_0x2b3f43,_0x2bff57,_0xe3d64a);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x1c18be,_0x181b6e,_0x11a4a0,_0x26ef27){const _0x2c8947=_0x351cc3;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x1c18be,this['_sheetSkeletonManagerService']=_0x181b6e,this[_0x2c8947(0x494)]=_0x11a4a0,this['_themeService']=_0x26ef27,this[_0x2c8947(0x331)]());}[_0x351cc3(0x331)](){const _0x276acf=_0x351cc3;this[_0x276acf(0x468)][_0x276acf(0x229)][_0x276acf(0x38b)]($[_0x276acf(0x3f1)](this[_0x276acf(0x40d)]),$[_0x276acf(0x424)](_0x38f7ad=>{const _0x5659fe=_0x276acf;if(_0x38f7ad){const _0x596222=_0x38f7ad[_0x5659fe(0x2ed)];return I[_0x5659fe(0x4b7)](this[_0x5659fe(0x494)][_0x5659fe(0x23b)](this[_0x5659fe(0x404)][_0x5659fe(0x338)]),this[_0x5659fe(0x24f)]['currentTheme$'])[_0x5659fe(0x38b)]($[_0x5659fe(0x246)](([_0x4dffaa,_0x45abf8])=>{const _0x77d509=new Map();return _0x4dffaa['forEach']((_0x2ca2aa,_0x51004a)=>{const _0x3f7bc4=_0xf8a9;if(_0x2ca2aa[_0x3f7bc4(0x33b)]===_0x596222){const _0x8583bf={..._0x2ca2aa};_0x8583bf['color']=this[_0x3f7bc4(0x24f)]['getColorFromTheme'](_0x2ca2aa['color']),_0x77d509[_0x3f7bc4(0x305)](_0x51004a,_0x8583bf);}}),{'skeleton':_0x38f7ad,'cursors':_0x77d509};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x276acf(0x3b4)](({skeleton:_0x22b143,cursors:_0x40c841})=>{const _0x3fb5d3=_0x276acf;this['_removeCollabCursors'](),_0x22b143&&this[_0x3fb5d3(0x491)](_0x22b143,_0x40c841);}),this[_0x276acf(0x468)][_0x276acf(0x229)][_0x276acf(0x3b4)](_0x50cb73=>{const _0x19c9cf=_0x276acf;if(_0x50cb73==null)return;const {skeleton:_0x2e0623}=_0x50cb73,{scene:_0x3522cb}=this[_0x19c9cf(0x404)];_0x3522cb[_0x19c9cf(0x48b)][_0x19c9cf(0x32c)](a[_0x19c9cf(0x2aa)](_0x44cbe9=>{const _0x435f8b=_0x19c9cf;var _0x1a14b5,_0x41196f;const {offsetX:_0x11b97e,offsetY:_0x12f789}=_0x44cbe9,{x:_0x5394b5,y:_0x74aa1c}=_0x3522cb[_0x435f8b(0x2f3)](C[_0x435f8b(0x284)][_0x435f8b(0x2ec)]([_0x11b97e,_0x12f789])),{scaleX:_0x258ef7,scaleY:_0x59a24f}=_0x3522cb['getAncestorScale'](),_0x1c4669=_0x3522cb['getViewport'](C['SHEET_VIEWPORT_KEY'][_0x435f8b(0x3ce)]),_0x34c220=_0x3522cb['getVpScrollXYInfoByPosToVp'](C[_0x435f8b(0x284)][_0x435f8b(0x2ec)]([_0x5394b5,_0x74aa1c]),_0x1c4669),_0x2d6ff8=_0x2e0623[_0x435f8b(0x32a)](_0x11b97e,_0x12f789,_0x258ef7,_0x59a24f,_0x34c220);((_0x1a14b5=this['_lastPointer'])==null?void 0x0:_0x1a14b5['column'])===_0x2d6ff8['column']&&((_0x41196f=this[_0x435f8b(0x299)])==null?void 0x0:_0x41196f[_0x435f8b(0x318)])===_0x2d6ff8[_0x435f8b(0x318)]||this[_0x435f8b(0x3a5)][_0x435f8b(0x264)](_0x2c2589=>{const _0x438956=_0x435f8b;_0x2c2589[_0x438956(0x2f7)](_0x2d6ff8);});},0x64));});}[_0x351cc3(0x491)](_0x4f18f5,_0x20b85f){const _0x200c55=_0x351cc3;var _0xa8fb67;const _0xdb5d18=(_0xa8fb67=this[_0x200c55(0x468)][_0x200c55(0x3f6)]())==null?void 0x0:_0xa8fb67[_0x200c55(0x482)];if(!_0xdb5d18)return;const _0x467ba7=this[_0x200c55(0x2b8)]();if(!_0x467ba7)return;this[_0x200c55(0x3a5)][_0x200c55(0x264)](_0x3dca6b=>{_0x3dca6b['makeDirty']();});const {scene:_0x10b1d6}=_0x467ba7,_0x2942b9=xt(Array[_0x200c55(0x301)](_0x20b85f[_0x200c55(0x319)]()))[_0x200c55(0x246)](_0x40d243=>{const _0x203393=_0x200c55,{color:_0x3019a3,range:_0x15842c,name:_0x4a5383,selection:_0x483ed0,sheetID:_0x265dfe}=_0x40d243,{startColumn:_0x37cf18,startRow:_0x259367,endColumn:_0x48bb6a,endRow:_0x2f94a1}=_0x15842c,_0x51e869=J['getCoordByCell'](_0x259367,_0x37cf18,_0x10b1d6,_0xdb5d18),_0x1f97fc=J[_0x203393(0x25a)](_0x2f94a1,_0x48bb6a,_0x10b1d6,_0xdb5d18),{columnHeaderHeightAndMarginTop:_0x1ebe36}=_0xdb5d18,{startX:_0x3cfa6a,startY:_0x1981d7}=_0x51e869,{endX:_0x49046a,endY:_0x2fc4a8}=_0x1f97fc,_0x568291=_0x49046a-_0x3cfa6a,_0x53d6c9=_0x2fc4a8-_0x1981d7,_0x24ec94={'labelPosition':_0x1981d7-_0x1ebe36>=X?'top':'bottom','sheetID':_0x265dfe,'range':_0x15842c,'color':_0x3019a3,'name':_0x4a5383,'selection':_0x483ed0,'left':_0x3cfa6a,'top':_0x1981d7,'width':_0x568291,'height':_0x53d6c9,'evented':!0x1,'zIndex':$t};return new je(_0x4a5383,_0x24ec94);});_0x10b1d6[_0x200c55(0x245)](_0x2942b9,At),this['_cursors']=new Set(_0x2942b9);}[_0x351cc3(0x4b9)](){const _0x6dd84c=_0x351cc3;var _0x4f9fb8;(_0x4f9fb8=this[_0x6dd84c(0x3a5)])==null||_0x4f9fb8['forEach'](_0x35f823=>_0x35f823[_0x6dd84c(0x469)]());}[_0x351cc3(0x2b8)](){const _0x100a11=_0x351cc3;return J[_0x100a11(0x489)](this[_0x100a11(0x404)][_0x100a11(0x268)],this[_0x100a11(0x404)]);}};Ce=yt([ue(0x1,a['Inject'](J[_0x351cc3(0x3a4)])),ue(0x2,a[_0x351cc3(0x257)](F)),ue(0x3,a[_0x351cc3(0x257)](a['ThemeService']))],Ce);function xt(_0x3cb5d5){const _0x4c8dba=_0x351cc3,_0xb4b7fb=new Map();return _0x3cb5d5['forEach'](_0xd0a5d9=>{const _0x2d0f2c=_0xf8a9;if(_0xb4b7fb['has'](_0xd0a5d9[_0x2d0f2c(0x3d2)])){const _0x1a79ea=_0xb4b7fb[_0x2d0f2c(0x3d0)](_0xd0a5d9[_0x2d0f2c(0x3d2)]);_0x1a79ea['name']+=',\x20'+_0xd0a5d9[_0x2d0f2c(0x3a6)];}else _0xb4b7fb['set'](_0xd0a5d9[_0x2d0f2c(0x3d2)],_0xd0a5d9);}),Array[_0x4c8dba(0x301)](_0xb4b7fb[_0x4c8dba(0x319)]());}var Bt=Object[_0x351cc3(0x343)],Ft=(_0x968ad3,_0x1be33c,_0x54c967,_0x109000)=>{const _0x3eada1=_0x351cc3;for(var _0x5b666a=_0x109000>0x1?void 0x0:_0x109000?Bt(_0x1be33c,_0x54c967):_0x1be33c,_0x170c0b=_0x968ad3[_0x3eada1(0x241)]-0x1,_0x347222;_0x170c0b>=0x0;_0x170c0b--)(_0x347222=_0x968ad3[_0x170c0b])&&(_0x5b666a=_0x347222(_0x5b666a)||_0x5b666a);return _0x5b666a;},y=(_0x37793e,_0xa1595b)=>(_0x273fe3,_0x1dce99)=>_0xa1595b(_0x273fe3,_0x1dce99,_0x37793e);let Z=class extends a[_0x351cc3(0x37b)]{constructor(_0x5038c3,_0x20d1e1,_0x2ec710,_0x44fc6d,_0x2e07e6,_0x45598e){const _0x32d3b7=_0x351cc3;super(),this[_0x32d3b7(0x4a3)]=_0x5038c3,this['_localCacheService']=_0x20d1e1,this[_0x32d3b7(0x2b1)]=_0x2ec710,this[_0x32d3b7(0x2ac)]=_0x44fc6d,this[_0x32d3b7(0x316)]=_0x2e07e6,this[_0x32d3b7(0x3e8)]=_0x45598e,this[_0x32d3b7(0x3ca)](),this[_0x32d3b7(0x231)]();}[_0x351cc3(0x3ca)](){const _0x3b926e=_0x351cc3;this[_0x3b926e(0x248)](this[_0x3b926e(0x4a3)][_0x3b926e(0x2c3)](()=>{const _0x83e37d=_0x3b926e;if(this['_localCacheService'][_0x83e37d(0x42e)]['size'])return this[_0x83e37d(0x3e8)]['t'](_0x83e37d(0x4b2));}));}[_0x351cc3(0x231)](){const _0x1dd78d=_0x351cc3;this[_0x1dd78d(0x248)](this[_0x1dd78d(0x2b1)][_0x1dd78d(0x363)][_0x1dd78d(0x3b4)](_0x4f8169=>{const _0xbe2a24=_0x1dd78d;_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x48a)]&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this['_localeService']['t'](_0xbe2a24(0x2a3))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x478)]&&this['_messageService'][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x479))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x2c0)]&&this[_0xbe2a24(0x316)][_0xbe2a24(0x431)]({'title':this['_localeService']['t'](_0xbe2a24(0x2b3)),'content':this['_localeService']['t'](_0xbe2a24(0x2cf)),'type':'error','duration':0x0}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x46c)]&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x479))+'('+_0x4f8169['data']+')'}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)][_0xbe2a24(0x386)]&&this[_0xbe2a24(0x2ac)]['show']({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0x4f8169[_0xbe2a24(0x49d)]||'')}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)]['SOCKET_FAILED_RETRY']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x430)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x440))}),_0x4f8169['id']===u[_0xbe2a24(0x2f5)]['SOCKET_FAILED']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T[_0xbe2a24(0x399)][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x432))}),_0x4f8169['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xbe2a24(0x2ac)][_0xbe2a24(0x431)]({'type':T['MessageType'][_0xbe2a24(0x4b1)],'content':this[_0xbe2a24(0x3e8)]['t'](_0xbe2a24(0x317))});}));}};Z=Ft([y(0x0,O[_0x351cc3(0x366)]),y(0x1,u[_0x351cc3(0x453)]),y(0x2,a['Inject'](u[_0x351cc3(0x2c6)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x351cc3(0x257)](a[_0x351cc3(0x2bb)]))],Z);var jt=Object[_0x351cc3(0x343)],kt=(_0x26658e,_0x4a3532,_0x5784d1,_0x162fd4)=>{const _0x49c2c2=_0x351cc3;for(var _0x249623=_0x162fd4>0x1?void 0x0:_0x162fd4?jt(_0x4a3532,_0x5784d1):_0x4a3532,_0x143b98=_0x26658e[_0x49c2c2(0x241)]-0x1,_0x140ed9;_0x143b98>=0x0;_0x143b98--)(_0x140ed9=_0x26658e[_0x143b98])&&(_0x249623=_0x140ed9(_0x249623)||_0x249623);return _0x249623;},z=(_0x134b75,_0x4f77d8)=>(_0xa8cc6,_0x1b7506)=>_0x4f77d8(_0xa8cc6,_0x1b7506,_0x134b75);let Q=class extends a[_0x351cc3(0x37b)]{constructor(_0xf50770,_0x4764f5,_0x3608de,_0x39b967){const _0x5532d3=_0x351cc3;super(),_(this,'_memberID'),(this['_injector']=_0xf50770,this['_httpService']=_0x4764f5,this[_0x5532d3(0x3de)]=_0x3608de,this['_collaborationSessionService']=_0x39b967,this[_0x5532d3(0x331)]());}[_0x351cc3(0x331)](){const _0x2fd67a=_0x351cc3;this[_0x2fd67a(0x244)](),this['_initUnhandledRejectionListener'](),this[_0x2fd67a(0x340)](),this[_0x2fd67a(0x3c6)]();}[_0x351cc3(0x3c6)](){const _0x290484=_0x351cc3;this[_0x290484(0x248)](this[_0x290484(0x495)][_0x290484(0x4ab)][_0x290484(0x3b4)](_0xb50870=>{const _0x159262=_0x290484;this[_0x159262(0x498)]=_0xb50870==null?void 0x0:_0xb50870[_0x159262(0x306)];}));}[_0x351cc3(0x244)](){const _0x4fe4b1=_0x351cc3,_0xeb317b=_0x299888=>{const _0x147641=_0xf8a9;var _0x58b9fd;this[_0x147641(0x34d)]('error',_0x147641(0x473)+_0x299888[_0x147641(0x30c)]+'\x20at\x20'+_0x299888[_0x147641(0x35c)]+':'+_0x299888[_0x147641(0x28b)]+':'+_0x299888[_0x147641(0x2b2)]+'\x0a'+(((_0x58b9fd=_0x299888[_0x147641(0x423)])==null?void 0x0:_0x58b9fd[_0x147641(0x450)])||''));};window[_0x4fe4b1(0x472)](_0x4fe4b1(0x423),_0xeb317b),this[_0x4fe4b1(0x248)](()=>{const _0xe5ba16=_0x4fe4b1;window[_0xe5ba16(0x4b4)](_0xe5ba16(0x423),_0xeb317b);});}[_0x351cc3(0x3e4)](){const _0x206e5a=_0x351cc3,_0x48450f=_0x328c54=>{const _0x48e79f=_0xf8a9;this[_0x48e79f(0x34d)]('error',_0x48e79f(0x2b4)+_0x328c54[_0x48e79f(0x38d)]);};window[_0x206e5a(0x472)](_0x206e5a(0x310),_0x48450f),this[_0x206e5a(0x248)](()=>{const _0x422ed7=_0x206e5a;window[_0x422ed7(0x4b4)](_0x422ed7(0x310),_0x48450f);});}[_0x351cc3(0x340)](){const _0x1b8184=_0x351cc3,_0x4e60ce=this['_logService'][_0x1b8184(0x423)]['bind'](this['_logService']);this[_0x1b8184(0x3de)][_0x1b8184(0x423)]=(..._0x42b576)=>{const _0x27cf93=_0x1b8184,_0x3b5ce6=_0x42b576['map'](_0x441dd4=>_0x441dd4 instanceof Error?_0x441dd4[_0x27cf93(0x30c)]+'\x0a'+_0x441dd4['stack']:String(_0x441dd4))[_0x27cf93(0x243)]('\x20');this[_0x27cf93(0x34d)](_0x27cf93(0x423),_0x27cf93(0x2ea)+_0x3b5ce6),_0x4e60ce(..._0x42b576);},this[_0x1b8184(0x248)](()=>{const _0x31b5ad=_0x1b8184;this['_logService'][_0x31b5ad(0x423)]=_0x4e60ce;});}['_uploadLog'](_0xa4ab92,_0x1b9b59){const _0x3cd8c7=_0x351cc3;try{const _0x91fea4={'userId':this[_0x3cd8c7(0x498)],'logLabel':_0xa4ab92,'content':_0x1b9b59};this['_httpService'][_0x3cd8c7(0x261)](_0x3cd8c7(0x3ee),{'body':_0x91fea4})[_0x3cd8c7(0x2dc)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),z(0x1,a[_0x351cc3(0x257)](x[_0x351cc3(0x242)])),z(0x2,a[_0x351cc3(0x31d)]),z(0x3,a[_0x351cc3(0x257)](u[_0x351cc3(0x3e0)]))],Q);function _0x3013(){const _0x21015b=['clipPath','_uploadLog','INVALID_ARGUMENT','SNAPSHOT_INVALID_SNAPSHOT','_scene','useCallback','CHANGESET_REVISION_CONFILICT','5544wbiihA','filter','getMemberID','disableLocalCache','actions','UnitStatus','collabStatus.synced','getUnitStatus$','saveImage','filename','cursorInfo$','size','Optional','TEXT_RANGE_LAYER_INDEX','getColor','ITransformService','event$','REDEMPTION_CODE_HAS_BEEN_CREATED','entityInit$','IBeforeCloseService','_render','runOnServer','LICENSE_IMPORT_SIZE_EXCEEDED','isActive','isTransformMutationFailure','getCurrentRevOfUnit','labelPosition','Tooltip','reconnect','has','APPLY_REVISION_CONFILICT','HEADER_MENU','getStateCache','_localStorageService','DOC_RANGE_TYPE','collabStatus.offline','/universer-api/license/formula/limit/done','setShapeProps','black','DocStateChangeManagerService','Disposable','color','EffectRefRangId','ACTIVE_UNIT_EVENT_CHANNEL','_injector','next','getDocRanges','IRenderManagerService','RevisionService','collab-text-range-','YUUMI_AI_RUN_FAILED','JOIN_ROOM_FAILED','_labelPosition','_drawAnchor','setTimeout','onTransformChange$','pipe','onStarting','reason','hide','selections','setItem','ILocalStorageService','getCurrentSelections','_releaseCalculationLimit','bottom','PENDING','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationController','_renderManagerService','MessageType','now','_hideTimer','unload','flatMap','children','REDEMPTION_CODE_NOT_STARTED','ENSURE_SNAPSHOT_EXECUTION','LICENSE_DISTRO_REJECTED','_getMergeRange','href','SheetSkeletonManagerService','_cursors','name','INVITE_CODE_HAS_BEEN_UES','_entityInit$','DocSelectionManagerService','_textBubble','on-line-icon_clip0_910_349','height','getSkeleton','arc','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','_instanceService','getUnitId','subUnitId','InsertRangeMoveRightCommandId','subscribe','1em','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','redoState','_pollingInterval','fillRule','LOCAL_CACHE_INTERVAL','SetFormulaCalculationStartMutation','engine','RichTextEditingMutation','LOGIN_FAILED','max','subunit','MoveRangeCommandId','releaseFormulaLimitUrl','_ensureSubject','wsSessionTicketUrl','off-line-icon_clip0_910_343','_initUserListener','docStateChange$','_dataLoaderService','univerjs-icon\x20univerjs-icon-','_setupBeforeClosingHandler','_memberService','RegularPolygon','_startSheetCollabCursor','VIEW_MAIN','SetWorksheetActivateCommand','get','_disabled','selection','_colorIndex','type','div','params','clsx','saveOfflineData','CollaborationStatus','_unitOnClients','idSuffix','_getScale','RECT','_logService','_revisionService','CollaborationSessionService','url(#off-line-icon_clip0_910_343)','PY_RUNTIME_SCRIPT_ERROR','DEFAULT_WS_SESSION_TICKET_URL','_initUnhandledRejectionListener','7667235TXSnaD','displayName','0\x200\x2016\x2016','_localeService','string','handleIRemoveCol','_saveTaskMap','eventID','REDEMPTION_USER_REDEEM_TIMES_EXCEED','/universer-api/frontend/logs','SetFormulaCalculationNotificationMutation','attrs','takeUntil','_commandService','beforeCommandExecuted','getMember','_docStateChangeManagerService','getCurrent','formula.calculation.waiting','clearInterval','_setupSubUnitSync','ISocketService','roomMembers','entries','LOGIN_TOKEN_PROCESSING_FAILED','Shape','collabStatus.notCollab','includes','connectInjector','on-line-icon','getMergeData','_context','endRow','mask','_handleHeartbeatEvent','registerRenderModule','Failed','_scheduleSaving','OFFLINE','parse','dispose$','SetTextSelectionsOperation','send','_docTransformIMECacheService','getRangePointData','disposeUnit','DeleteRangeMoveUpCommandId','_refreshCollabCursors','MUTATION','InsertColCommandId','mutations','text','Workbook','InsertRowCommandId','SYNCED','replace','currentTheme$','OffLineIcon','_initStatusComponent','handleInsertRow','setAlpha','svg','error','switchMap','OTHER_CLIENTS_EDITING','FormulaExecutedStateType','MemberService','top','getTypeOfUnitAdded$','transform','getSheetBySheetId','functionsExecutedState','SheetCollabCursorShape','saveTaskMap','isTransformMutationsWithChangesetSuccess','Warning','show','session.connection-failed','EMAIL_VERIFY_CODE_MISMATCH','NOT_COLLAB','NodePositionConvertToCursor','_currentUsage','unitID','_maxFormulaLimit','CanceledError','DeleteRangeMoveLeftCommandId','_docSyncEditingCollabCursorService','imageSourceType','DataLoaderService','transformIMECache','YUUMI_RATE_OVER_LIMIT','session.will-retry','parseInt','setUndoRedoMutationParamsCache','_saveCache','SheetsSelectionsService','YUUMI_UNABLE_LOAD_URL','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_toggleOffline','_scheduleHeartbeat','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_getFormulaLimitStatus','_updateSubUnitFromURLParams','UNAUTHENTICATED','IURLService','491004CQUTgV','CURRENT_STATUS_CANNOT_OPERATE','stack','evenodd','EMAIL_HAS_BEEN_BOUND','ILocalCacheService','YUUMI_ALL_TABLES_IS_INVALID','push','IConfigService','Success','Subject','some','sessionStatus$','trim','resize','getSheetId','loadUnit','_getAnchorBounding','_onCursorUpdate','[CollaborationDataLoaderController]','mergeOverrideWithDependencies','getLocalCacheKey','DependentOn','onPointerEnter$','ALREADY_EXISTS','pushState','_sheetSkeletonManagerService','dispose','beginPath','_initDependencies','CONFLICT','_showGuardMessage','debounceTime','CollaborationSocketService','cursorInfo','RemoteUniscriptService','addEventListener','[Window\x20Error]:\x20','_docSkeletonManagerService','DesktopCollaborationStatusDisplayController','TEXT','rgba(255,\x20255,\x20255,\x200.01)','CLOSE_ROOM','collaboration.closeRoom','_backgroundColor','_toggleOnline','shift','backgroundColor','UniverCollaborationClientUIPlugin','_cachedData','url(#on-line-icon_clip0_910_349)','_cursorShapes','skeleton','doc.mutation.rich-text-editing','SetDocZoomRatioOperation','handleInsertRangeMoveDown','Plugin','RxDisposable','_removeClearOtherTimer','getSheetObject','OTHER_CLIENT_EDITING','onPointerMove$','USERS_LEAVE','YUUMI_TABLE_NOT_FOUND_IN_UNIT','stageInfo','textRanges','_color','_updateCollabCursors','USER_NOT_FOUND','BrowserCollaborationSocketService','_collabCursorController','_collaborationSessionService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','mapTo','_memberID','_roomMembers$','410460SpxbKk','startColumn','getRenderById','data','_eventUnsubscribe','addObject','then','body','_session','_beforeCloseService','onPointerLeave$','_handleJoinEvent','Tools','touchDependencies','getUnhiddenWorksheets','delete','USER_NOT_INVITED_CODE','socket$','_transformUndoRedoStack','handleMoveRange','IMessageService','_registerDependencies','SNAPSHOT_HAS_BEEN_REMOVED','Error','collaboration-client.offline-data-not-saved','getTypeOfUnitDisposed$','removeEventListener','xlink:href','_hovered','combineLatest','deserializeRangeWithSheet','_removeCollabCursors','_collabSessionService','_docClipboardService','_id','/universer-api/license/formula/limit/status','syncEditingCollabCursor','defs','Module','invokeId','getActiveRange','collab-rect-range-','_online','transformMutationsWithChangeset','setParam','_setFormulaLimitStatus','AUTHORIZE_CODE_ILLEGAL','_shapes','YUUMI_NO_CUBOID_FOR_QUESTION','save','transformSelections','_taskIds','WebBrowserSingleActiveUnitService','REDEMPTION_INVALID_CODE','_urlService','ColorKit','generateRandomId','M0\x200H16V16H0z','INVITE_CODE_REQUIRED','getActiveSheet','CONNECTOR_DATA_TOO_LARGE','m1Prime','createInstance','_startCalculationLimit','_startDocCollabCursor','collab-client.tooltip.reconnect','history','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','init','deepClone','pluginName','colorChannel1','NodePositionConvertToRectRange','merge','COMPLETION_FINISHED','_refRangeService','onRendered','with','jiqing.500','AWAITING_WITH_PENDING','_docTransformStateCacheService','getCollabEntity$','_draw','width','OnLineIcon','executeCommand','_onRefRangeChange','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','ISnapshotServerService','triggerDblclick','endColumn','_applyCommand','currentSkeleton$','_doCreateSocket','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ONLINE','contains','getFocusedUnit','_drawRectRange','getUniverSheetInstance','_initEvent','_anchor','jsxs','CollaborationEvent','_transformPreviousActiveRange','hovered','_initStatusListener','collaboration-client-ui.config','current','undoState','getCollabCursors$','replaceState','setInterval','_initCommandExecutedListener','enableFrontendLog','WECHAT_HAS_BEEN_BOUND','length','HTTPService','join','_initWindowErrorListener','addObjects','map','formula.calculation.unable','disposeWithMe','FETCH_MISS','translate(.97)','INVITE_CODE_ALREADY_BOUND','_handleEvent','getValue','round','_themeService','InsertRangeMoveDownCommandId','add','_initCommandInterceptor','Unknown\x20user','_initEntityListener','_send','getformulaLimitStatusUrl','Inject','ERROR_AGAIN','INTERNAL_ERROR','getCoordByCell','_unitStatus','CommandType','fillText','override','requireSession','DisposableCollection','post','...','BehaviorSubject','forEach','fill','enableLocalCache','yellow.400','unit','measureText','RemoveColCommandId','_cursorInfo$','YUUMI_SUBSCRIPTION_NOT_FOUND','jsx','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_clearOtherTimers','exhaustSavingTask','createSocket','_config','loadOfflineData','m2Prime','onLocalMutation','debug','runRefRangeMutations','createElement','complete','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','throttleTime','_transformService','defIds','getUndoRedoMutationParamsCache','_drawTextRange','_checkAndWaitForCalculationPermission','ThemeService','setStateCache','Vector2','3XcosaT','sessionTicket','NO_OTHER_CLIENTS_EDITING','_heartbeatTimer','forwardRef','_transformHistoryAndStateStack','lineno','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','none','toRgbString','registerDependencies','APPLY_PERMISSION_DENIED','_updateURLWithCurrentState','UPDATE_CURSOR','_status$','_docTransformSelectionsService','url(#$1','_colorAssignService','_range','useDependency','_lastPointer','onCommandExecuted','YUUMI_ASYNCIO_CANCELLED','addHandlerCallback','CollaborationDataLoaderController','_entities','USER_IS_ANONYMOUS','RefRangeService','SUCCESS','currentUsage','collaboration.single-unit.warning','currentColor','findNodePositionByCharIndex','purple.300','IImageIoService','?taskId=','fillStyle','debounce','UniverInstanceType','_messageService','shareReplay','_anchorDot','UniverIcon','assign','_collaborationUIEventService','colno','permission.title','[Unhandled\x20Rejection]:\x20','use','YUUMI_CONNECTOR_URL_NOT_FOUND','popstate','_getSheetObject','PAYMENT_CHANNEL_NOT_SUPPORT','#FFF','LocaleService','_getSessionTicket','TOO_MANY_REQUESTS','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_univerInstanceService','PERMISSION_DENIED','COLORS','limitInfo','registerBeforeClose','REDEMPTION_CODE_FULLY_REDEEMED','UNRECOGNIZED','CollaborationUIEventService','isFormulaId','IRemoteInstanceService','location','_registerRenderDependencies','APPLY_REJECT','ranges','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_configService','permission.content','/universer-api/license/formula/limit/start','Injector','getParam','_getSaveTimeout','runId','LICENSE_EXPORT_SIZE_EXCEEDED','_uiPartsService','roomMembers$','off-line-icon','_lastResponseTimestamp','/run/','focused$','catch','transformMutation','find','MOBILE_HAS_BEEN_BOUND','min','IDocClipboardService','_scheduleClearOtherTimer','_httpService','_imageIoService','searchParams','_assignedColors','toString','IUIPartsService','toStringTag','[LogService\x20Error]:\x20','getConfig','FromArray','sheetId','2667eznTDZ','stringify','_createSocketURL','handleDeleteRangeMoveLeft','path','getRelativeToViewportCoord','ENTITLE_REPORT_LIMIT_EXCEED','CollaborationUIEventId','unshift','onMouseMove','drawWith','urlChange$','tag','_hasFormulaInDirtyRanges','289691ZEcJEo','_handleHover','_checkCalculationAvailable','moveTo','_collabCursorState$','from','result','collabStatus.syncing','_selfUnitIDs','set','memberID','UNDEFINED','APPLY_NON_SEQUENTIAL_REVISION','217010SqBRih','_onCursorDelete','search','message','ICommandService','formula.calculation.started','toDisposable','unhandledrejection','maxFormulaLimit','collabStatus.conflict','INVALID_INVITE_CODE','IUniverInstanceService','_docSkeleton','_notificationService','session.collaboration-timeout','row','values','START_CALCULATION','range','white','ILogService','NOT_FOUND','_collaborationController','ticket','REDEMPTION_CODE_INACTIVE','lineTo','_name','collabCursorState$','handleDeleteRangeMoveUp','clearTimeout','1198040XUEQQc','startsWith','transformByState','getCellPositionByOffset','closePath','subscribeEvent','setActiveRange','_updateLocalCursor','DocIMEInputManagerService','isArray','_init','getUnit','startRow','_syncEditingCollabCursorService','WebURLService','BuiltInUIPart','code','unitId','fromEvent','assignAColorForMemberID','sheetID','Rectangle','transformRemoteChangeset','useObservable','key','_monkeyPatchLogService','_hover','executionId','getOwnPropertyDescriptor','defineProperty','UNIVER_DOC','stage','_cursor','replaceDocRanges','collab-text-anchor-','getOffsetConfig','UNIVER_SHEET'];_0x3013=function(){return _0x21015b;};return _0x3013();}const Yt=_0x351cc3(0x238),Me={};var Ht=Object[_0x351cc3(0x343)],Wt=(_0x58fed6,_0x4c2cff,_0x1fc362,_0x2e480f)=>{const _0x368ad4=_0x351cc3;for(var _0x1d6fb9=_0x2e480f>0x1?void 0x0:_0x2e480f?Ht(_0x4c2cff,_0x1fc362):_0x4c2cff,_0x399ccf=_0x58fed6[_0x368ad4(0x241)]-0x1,_0x38cc11;_0x399ccf>=0x0;_0x399ccf--)(_0x38cc11=_0x58fed6[_0x399ccf])&&(_0x1d6fb9=_0x38cc11(_0x1d6fb9)||_0x1d6fb9);return _0x1d6fb9;},Ae=(_0x52df51,_0xb24721)=>(_0x5bcff2,_0x7c946b)=>_0xb24721(_0x5bcff2,_0x7c946b,_0x52df51);let ee=class{constructor(_0x3051d7,_0x18e511){const _0x284a93=_0x351cc3;this['_transformService']=_0x3051d7,this[_0x284a93(0x398)]=_0x18e511;}[_0x351cc3(0x43e)](_0x5bbf68){const _0x179151=_0x351cc3;this[_0x179151(0x4ac)](_0x5bbf68),this[_0x179151(0x235)](_0x5bbf68);}[_0x351cc3(0x33d)](_0x29183a){const _0x43238c=_0x351cc3,{unitID:_0x5d828c}=_0x29183a,_0x3db9e3=this[_0x43238c(0x398)][_0x43238c(0x49c)](_0x5d828c)[_0x43238c(0x21a)](p[_0x43238c(0x32f)]),{redoCache:_0x490504}=_0x3db9e3[_0x43238c(0x27f)]();if(_0x490504[_0x43238c(0x241)]===0x0)return _0x29183a;let _0x58564f=a[_0x43238c(0x4a6)][_0x43238c(0x212)](_0x29183a[_0x43238c(0x417)][0x0]);for(let _0x23b290=0x0;_0x23b290<_0x490504[_0x43238c(0x241)];_0x23b290++){const _0x4a566e={'id':_0x43238c(0x483),'params':{..._0x490504[_0x23b290]}},_0x3821de=this['_transformService'][_0x43238c(0x2dd)](_0x58564f,_0x4a566e,!0x1);if(g['isTransformMutationFailure'](_0x3821de))throw _0x3821de[_0x43238c(0x423)];_0x58564f=_0x3821de[_0x43238c(0x209)];}return{...a[_0x43238c(0x4a6)][_0x43238c(0x212)](_0x29183a),'mutations':[_0x58564f]};}[_0x351cc3(0x4ac)](_0x3437a9){const _0x42ec51=_0x351cc3,{unitID:_0x2ced3a}=_0x3437a9,_0x1b1a1a=this['_renderManagerService'][_0x42ec51(0x49c)](_0x2ced3a)[_0x42ec51(0x21a)](p[_0x42ec51(0x32f)]),{undoCache:_0x410953,redoCache:_0x212951}=_0x1b1a1a[_0x42ec51(0x27f)]();if(_0x410953[_0x42ec51(0x241)]===0x0||_0x212951[_0x42ec51(0x241)]===0x0)return;const _0x4418e2=[],_0x3915b2=[];let _0x3084bf=a[_0x42ec51(0x4a6)][_0x42ec51(0x212)](_0x3437a9[_0x42ec51(0x417)][0x0]),_0x33258f=a[_0x42ec51(0x4a6)]['deepClone'](_0x3437a9[_0x42ec51(0x417)][0x0]);for(let _0x5d9c6f=_0x410953[_0x42ec51(0x241)]-0x1;_0x5d9c6f>=0x0;_0x5d9c6f--){const _0x5e0d22={'id':_0x42ec51(0x483),'params':{..._0x410953[_0x5d9c6f]}},_0x1d43f1={'id':'doc.mutation.rich-text-editing','params':{..._0x212951[_0x5d9c6f]}},_0x2da0d6=this['_transformService'][_0x42ec51(0x2dd)](_0x3084bf,_0x5e0d22,!0x1),_0x55f303=this['_transformService'][_0x42ec51(0x2dd)](_0x33258f,_0x1d43f1,!0x1);if(g[_0x42ec51(0x36b)](_0x2da0d6))throw _0x2da0d6['error'];if(g[_0x42ec51(0x36b)](_0x55f303))throw _0x55f303[_0x42ec51(0x423)];_0x4418e2[_0x42ec51(0x2f6)](_0x2da0d6[_0x42ec51(0x274)][_0x42ec51(0x3d6)]),_0x3915b2['unshift'](_0x55f303[_0x42ec51(0x274)][_0x42ec51(0x3d6)]),_0x3084bf=_0x2da0d6[_0x42ec51(0x209)],_0x33258f=_0x55f303['m1Prime'];}_0x1b1a1a[_0x42ec51(0x442)]({'undoCache':_0x4418e2,'redoCache':_0x3915b2});}[_0x351cc3(0x235)](_0x20b8b3){const _0x140639=_0x351cc3,{unitID:_0x24c938}=_0x20b8b3,_0x382550=this[_0x140639(0x398)][_0x140639(0x49c)](_0x24c938)[_0x140639(0x21a)](p[_0x140639(0x32f)]),_0x14db53=_0x382550[_0x140639(0x1f4)]();if(_0x14db53==null)return;const _0xefde8d=[{'id':_0x140639(0x483),'params':{'unitId':_0x20b8b3[_0x140639(0x437)],'actions':null,'textRanges':[_0x14db53]}}],_0x229028=this[_0x140639(0x27d)]['transformMutationsWithChangeset'](_0x20b8b3,_0xefde8d);if(!g[_0x140639(0x42f)](_0x229028))throw _0x229028[_0x140639(0x423)];const _0x407895=_0x229028[_0x140639(0x274)][0x0][_0x140639(0x3d6)]['textRanges'];Array[_0x140639(0x330)](_0x407895)&&_0x407895['length']&&_0x382550[_0x140639(0x32d)](_0x407895[0x0]);}};ee=Wt([Ae(0x0,g[_0x351cc3(0x362)]),Ae(0x1,C['IRenderManagerService'])],ee);function _0xf8a9(_0x5d4a7e,_0x34232f){const _0x30138a=_0x3013();return _0xf8a9=function(_0xf8a9f5,_0x5dcb0c){_0xf8a9f5=_0xf8a9f5-0x1ef;let _0x29cbea=_0x30138a[_0xf8a9f5];return _0x29cbea;},_0xf8a9(_0x5d4a7e,_0x34232f);}var Vt=Object[_0x351cc3(0x343)],Gt=(_0x431837,_0x31cc47,_0x201c4d,_0x113ef7)=>{const _0x2a84c6=_0x351cc3;for(var _0x179f54=_0x113ef7>0x1?void 0x0:_0x113ef7?Vt(_0x31cc47,_0x201c4d):_0x31cc47,_0x1d20f0=_0x431837[_0x2a84c6(0x241)]-0x1,_0x328303;_0x1d20f0>=0x0;_0x1d20f0--)(_0x328303=_0x431837[_0x1d20f0])&&(_0x179f54=_0x328303(_0x179f54)||_0x179f54);return _0x179f54;},Ie=(_0x1b995a,_0x3fb9fb)=>(_0x92d6ca,_0x3e4260)=>_0x3fb9fb(_0x92d6ca,_0x3e4260,_0x1b995a);let te=class{constructor(_0x6c17f2,_0x2bc18a,_0x5c2161){const _0x4e6bef=_0x351cc3;this['_injector']=_0x6c17f2,this['_transformService']=_0x2bc18a,this[_0x4e6bef(0x3f5)]=_0x5c2161;}['transformStateCache'](_0x34eefe){const _0x374899=_0x351cc3;this[_0x374899(0x28a)](_0x34eefe);}['transformRemoteChangeset'](_0x56689c){const _0x2c019b=_0x351cc3,{unitID:_0x3d525b}=_0x56689c,{collaboration:_0x4dada3}=this[_0x2c019b(0x3f5)][_0x2c019b(0x373)](_0x3d525b);if(_0x4dada3[_0x2c019b(0x241)]===0x0)return _0x56689c;let _0x265555=a[_0x2c019b(0x4a6)][_0x2c019b(0x212)](_0x56689c[_0x2c019b(0x417)][0x0]);for(let _0x672113=0x0;_0x672113<_0x4dada3[_0x2c019b(0x241)];_0x672113++){const _0x2d5b06={'id':_0x2c019b(0x483),'params':{'unitId':_0x4dada3[_0x672113][_0x2c019b(0x338)],..._0x4dada3[_0x672113][_0x2c019b(0x3b7)]}},_0x1bd5d3=this[_0x2c019b(0x27d)][_0x2c019b(0x2dd)](_0x265555,_0x2d5b06,!0x1);if(g[_0x2c019b(0x36b)](_0x1bd5d3))throw _0x1bd5d3[_0x2c019b(0x423)];_0x265555=_0x1bd5d3[_0x2c019b(0x209)];}return{...a[_0x2c019b(0x4a6)]['deepClone'](_0x56689c),'mutations':[_0x265555]};}[_0x351cc3(0x28a)](_0x1b4ff6){const _0x5e8f37=_0x351cc3,{unitID:_0x517e42}=_0x1b4ff6,{history:_0x3480d8,collaboration:_0x221c3e}=this[_0x5e8f37(0x3f5)][_0x5e8f37(0x373)](_0x517e42);if(_0x3480d8['length']===0x0&&_0x221c3e[_0x5e8f37(0x241)]===0x0)return;const _0x5d5041=[],_0x19d763=[];let _0x2e54d7=a[_0x5e8f37(0x4a6)]['deepClone'](_0x1b4ff6[_0x5e8f37(0x417)][0x0]),_0x296cc6=a[_0x5e8f37(0x4a6)][_0x5e8f37(0x212)](_0x1b4ff6[_0x5e8f37(0x417)][0x0]);for(let _0x277381=_0x3480d8[_0x5e8f37(0x241)]-0x1;_0x277381>=0x0;_0x277381--){const _0x1ea1c1={'id':_0x5e8f37(0x483),'params':{'unitId':_0x3480d8[_0x277381][_0x5e8f37(0x338)],..._0x3480d8[_0x277381][_0x5e8f37(0x23a)]}},_0x2e18eb={'id':_0x5e8f37(0x483),'params':{'unitId':_0x3480d8[_0x277381][_0x5e8f37(0x338)],..._0x3480d8[_0x277381]['redoState']}},_0x3e19d4=this[_0x5e8f37(0x27d)][_0x5e8f37(0x2dd)](_0x2e54d7,_0x1ea1c1,!0x1),_0xda32d8=this[_0x5e8f37(0x27d)][_0x5e8f37(0x2dd)](_0x296cc6,_0x2e18eb,!0x1);if(g['isTransformMutationFailure'](_0x3e19d4))throw _0x3e19d4[_0x5e8f37(0x423)];if(g['isTransformMutationFailure'](_0xda32d8))throw _0xda32d8['error'];_0x5d5041[_0x5e8f37(0x2f6)]({..._0x3480d8[_0x277381],'undoState':_0x3e19d4[_0x5e8f37(0x274)]['params'],'redoState':_0xda32d8[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)]}),_0x2e54d7=_0x3e19d4[_0x5e8f37(0x209)],_0x296cc6=_0xda32d8[_0x5e8f37(0x209)];}_0x2e54d7=a['Tools'][_0x5e8f37(0x212)](_0x1b4ff6['mutations'][0x0]),_0x296cc6=a['Tools']['deepClone'](_0x1b4ff6[_0x5e8f37(0x417)][0x0]);for(let _0x49c1f9=_0x221c3e['length']-0x1;_0x49c1f9>=0x0;_0x49c1f9--){const _0xaf6cb3={'id':_0x5e8f37(0x483),'params':{'unitId':_0x221c3e[_0x49c1f9][_0x5e8f37(0x338)],..._0x221c3e[_0x49c1f9][_0x5e8f37(0x23a)]}},_0x4f27b5={'id':_0x5e8f37(0x483),'params':{'unitId':_0x221c3e[_0x49c1f9][_0x5e8f37(0x338)],..._0x221c3e[_0x49c1f9][_0x5e8f37(0x3b7)]}},_0x2d40c6=this[_0x5e8f37(0x27d)]['transformMutation'](_0x2e54d7,_0xaf6cb3,!0x1),_0x54517f=this[_0x5e8f37(0x27d)]['transformMutation'](_0x296cc6,_0x4f27b5,!0x1);if(g[_0x5e8f37(0x36b)](_0x2d40c6))throw _0x2d40c6['error'];if(g[_0x5e8f37(0x36b)](_0x54517f))throw _0x54517f[_0x5e8f37(0x423)];_0x19d763[_0x5e8f37(0x2f6)]({..._0x221c3e[_0x49c1f9],'undoState':_0x2d40c6[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)],'redoState':_0x54517f[_0x5e8f37(0x274)][_0x5e8f37(0x3d6)]}),_0x2e54d7=_0x2d40c6['m1Prime'],_0x296cc6=_0x54517f[_0x5e8f37(0x209)];}this[_0x5e8f37(0x3f5)][_0x5e8f37(0x283)](_0x517e42,{'history':_0x5d5041,'collaboration':_0x19d763});}};te=Gt([Ie(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Ie(0x1,g[_0x351cc3(0x362)]),Ie(0x2,a['Inject'](p['DocStateChangeManagerService']))],te);var Xt=Object[_0x351cc3(0x343)],Kt=(_0x39b32b,_0x5bb2d9,_0x3e88d6,_0x4c14c5)=>{const _0x1c2bce=_0x351cc3;for(var _0x4d9e21=_0x4c14c5>0x1?void 0x0:_0x4c14c5?Xt(_0x5bb2d9,_0x3e88d6):_0x5bb2d9,_0x4ee7ce=_0x39b32b[_0x1c2bce(0x241)]-0x1,_0x119003;_0x4ee7ce>=0x0;_0x4ee7ce--)(_0x119003=_0x39b32b[_0x4ee7ce])&&(_0x4d9e21=_0x119003(_0x4d9e21)||_0x4d9e21);return _0x4d9e21;},Pe=(_0x5c2a9f,_0x14835f)=>(_0x254139,_0x23638b)=>_0x14835f(_0x254139,_0x23638b,_0x5c2a9f);let se=class{constructor(_0x1bcb69,_0x13f997){this['_injector']=_0x1bcb69,this['_transformService']=_0x13f997;}[_0x351cc3(0x1fe)](_0x588858){const _0x41da7f=_0x351cc3;var _0x369120;const _0x4191d2=this[_0x41da7f(0x37f)][_0x41da7f(0x3d0)](V['DocSelectionManagerService']),_0x489d18=(_0x369120=_0x4191d2[_0x41da7f(0x381)]())!=null?_0x369120:[];if(_0x489d18['length']===0x0)return;const _0x39570e=_0x588858['unitID'],_0x4ed232=[{'id':_0x41da7f(0x483),'params':{'unitId':_0x39570e,'actions':null,'textRanges':_0x489d18}}],_0x31a747=this[_0x41da7f(0x27d)][_0x41da7f(0x1f7)](_0x588858,_0x4ed232);if(!g[_0x41da7f(0x42f)](_0x31a747))throw _0x31a747[_0x41da7f(0x423)];const _0x53eafb=_0x31a747['m2Prime'][0x0][_0x41da7f(0x3d6)][_0x41da7f(0x48f)];Array['isArray'](_0x53eafb)&&_0x53eafb[_0x41da7f(0x241)]&&_0x4191d2[_0x41da7f(0x348)](_0x53eafb,{'unitId':_0x39570e,'subUnitId':_0x39570e},!0x1);}};se=Kt([Pe(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Pe(0x1,g[_0x351cc3(0x362)])],se);var qt=Object[_0x351cc3(0x343)],zt=(_0x3376fb,_0x3e4668,_0x1c89a0,_0x56ea0b)=>{for(var _0x3001c6=_0x56ea0b>0x1?void 0x0:_0x56ea0b?qt(_0x3e4668,_0x1c89a0):_0x3e4668,_0x2d6c5e=_0x3376fb['length']-0x1,_0x2a138e;_0x2d6c5e>=0x0;_0x2d6c5e--)(_0x2a138e=_0x3376fb[_0x2d6c5e])&&(_0x3001c6=_0x2a138e(_0x3001c6)||_0x3001c6);return _0x3001c6;},N=(_0x87b291,_0x1b9990)=>(_0x4f5f43,_0x15a339)=>_0x1b9990(_0x4f5f43,_0x15a339,_0x87b291);let ie=class extends a[_0x351cc3(0x37b)]{constructor(_0x2f42e7,_0x2cd485,_0x37cea4,_0x545e44,_0x107cf8,_0x311b7e,_0x27ab44,_0x307a54){const _0x11ed0f=_0x351cc3;super(),_(this,_0x11ed0f(0x293),new I[(_0x11ed0f(0x263))](u['CollaborationStatus'][_0x11ed0f(0x434)])),(this['_docStateChangeManagerService']=_0x2f42e7,this[_0x11ed0f(0x31f)]=_0x2cd485,this['_docTransformIMECacheService']=_0x37cea4,this[_0x11ed0f(0x21d)]=_0x545e44,this[_0x11ed0f(0x294)]=_0x107cf8,this[_0x11ed0f(0x43b)]=_0x311b7e,this[_0x11ed0f(0x2ac)]=_0x27ab44,this[_0x11ed0f(0x3e8)]=_0x307a54,this[_0x11ed0f(0x254)]());}[_0x351cc3(0x254)](){const _0x22fe2e=_0x351cc3;this[_0x22fe2e(0x248)](this[_0x22fe2e(0x31f)][_0x22fe2e(0x365)]['subscribe'](_0x5ed670=>{const _0xd22507=_0x22fe2e,_0x582d48=this[_0xd22507(0x3f5)][_0xd22507(0x3c7)][_0xd22507(0x3b4)](_0x4fefee=>{const _0x2636b5=_0xd22507;if(_0x4fefee==null)return;const {unitId:_0x198f20,redoState:_0x1f1034,commandId:_0x349ad4}=_0x4fefee;if(_0x198f20!==_0x5ed670[_0x2636b5(0x437)])return;const _0x571fb7={'id':_0x349ad4,'type':a[_0x2636b5(0x25c)][_0x2636b5(0x415)],'params':{'unitId':_0x198f20,'actions':_0x1f1034[_0x2636b5(0x357)],'textRanges':null}};_0x5ed670[_0x2636b5(0x275)](_0x571fb7);});if(_0x5ed670[_0xd22507(0x248)](_0x582d48),_0x5ed670 instanceof u['DocCollaborationEntity']){const _0xf5cb7b={'onTransformIME':_0xdc3572=>this[_0xd22507(0x410)]['transformIMECache'](_0xdc3572),'onTransformState':_0x1aee0d=>this['_docTransformStateCacheService']['transformStateCache'](_0x1aee0d),'onTransformSelections':_0x2cd514=>this[_0xd22507(0x294)][_0xd22507(0x1fe)](_0x2cd514),'onSyncEditingCollabCursor':_0x29b099=>this[_0xd22507(0x43b)][_0xd22507(0x1f0)](_0x29b099),'onTransformRemoteChangesetByIMECache':_0x3c25aa=>this[_0xd22507(0x410)][_0xd22507(0x33d)](_0x3c25aa),'onTransformRemoteChangesetByStateCache':_0x358a35=>this[_0xd22507(0x21d)][_0xd22507(0x33d)](_0x358a35)};_0x5ed670[_0xd22507(0x29c)](_0xf5cb7b);}}));}};ie=zt([N(0x0,a[_0x351cc3(0x257)](p[_0x351cc3(0x37a)])),N(0x1,a[_0x351cc3(0x257)](u[_0x351cc3(0x397)])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x351cc3(0x257)](te)),N(0x4,a['Inject'](se)),N(0x5,a[_0x351cc3(0x257)](be)),N(0x6,O[_0x351cc3(0x4ae)]),N(0x7,a[_0x351cc3(0x257)](a['LocaleService']))],ie);var G=(_0x2fc01a=>(_0x2fc01a[_0x2fc01a[_0x351cc3(0x307)]=0x0]=_0x351cc3(0x307),_0x2fc01a[_0x2fc01a['OK']=0x1]='OK',_0x2fc01a[_0x2fc01a[_0x351cc3(0x259)]=0x2]=_0x351cc3(0x259),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c0)]=0x3]='PERMISSION_DENIED',_0x2fc01a[_0x2fc01a['NOT_FOUND']=0x4]=_0x351cc3(0x31e),_0x2fc01a[_0x2fc01a[_0x351cc3(0x44c)]=0x5]='UNAUTHENTICATED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x466)]=0x6]=_0x351cc3(0x466),_0x2fc01a[_0x2fc01a[_0x351cc3(0x34e)]=0x7]=_0x351cc3(0x34e),_0x2fc01a[_0x2fc01a['TOO_MANY_REQUESTS']=0x8]=_0x351cc3(0x2bd),_0x2fc01a[_0x2fc01a[_0x351cc3(0x217)]=0x9]='COMPLETION_FINISHED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x3be)]=0xa]=_0x351cc3(0x3be),_0x2fc01a[_0x2fc01a['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2fc01a[_0x2fc01a[_0x351cc3(0x396)]=0xc]=_0x351cc3(0x396),_0x2fc01a[_0x2fc01a[_0x351cc3(0x433)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x2fc01a[_0x2fc01a[_0x351cc3(0x449)]=0xe]=_0x351cc3(0x449),_0x2fc01a[_0x2fc01a['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x351cc3(0x1fa),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3fd)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x2fc01a[_0x2fc01a['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x351cc3(0x44f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x258)]=0x65]=_0x351cc3(0x258),_0x2fc01a[_0x2fc01a[_0x351cc3(0x492)]=0xc9]='USER_NOT_FOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x29f)]=0xca]=_0x351cc3(0x29f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x352)]=0x1389]=_0x351cc3(0x352),_0x2fc01a[_0x2fc01a[_0x351cc3(0x34f)]=0x1771]=_0x351cc3(0x34f),_0x2fc01a[_0x2fc01a[_0x351cc3(0x4b0)]=0x1772]=_0x351cc3(0x4b0),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3a0)]=0x1773]=_0x351cc3(0x3a0),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2cb)]=0x1b59]=_0x351cc3(0x2cb),_0x2fc01a[_0x2fc01a[_0x351cc3(0x308)]=0x1b5a]=_0x351cc3(0x308),_0x2fc01a[_0x2fc01a[_0x351cc3(0x371)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2fc01a[_0x2fc01a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x351cc3(0x290),_0x2fc01a[_0x2fc01a['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x208)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2fc01a[_0x2fc01a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x27a)]=0x232a]=_0x351cc3(0x27a),_0x2fc01a[_0x2fc01a[_0x351cc3(0x369)]=0x232b]=_0x351cc3(0x369),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2d5)]=0x232c]=_0x351cc3(0x2d5),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3a1)]=0x232d]=_0x351cc3(0x3a1),_0x2fc01a[_0x2fc01a[_0x351cc3(0x445)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2fc01a[_0x2fc01a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x43f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2fc01a[_0x2fc01a[_0x351cc3(0x26c)]=0x2714]=_0x351cc3(0x26c),_0x2fc01a[_0x2fc01a[_0x351cc3(0x1fc)]=0x271a]=_0x351cc3(0x1fc),_0x2fc01a[_0x2fc01a[_0x351cc3(0x29b)]=0x271b]=_0x351cc3(0x29b),_0x2fc01a[_0x2fc01a['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x351cc3(0x48d),_0x2fc01a[_0x2fc01a[_0x351cc3(0x454)]=0x271d]=_0x351cc3(0x454),_0x2fc01a[_0x2fc01a[_0x351cc3(0x22b)]=0x271e]=_0x351cc3(0x22b),_0x2fc01a[_0x2fc01a['YUUMI_AI_RUN_FAILED']=0x271f]=_0x351cc3(0x385),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2b6)]=0x2720]=_0x351cc3(0x2b6),_0x2fc01a[_0x2fc01a[_0x351cc3(0x3e2)]=0x2af9]=_0x351cc3(0x3e2),_0x2fc01a[_0x2fc01a['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x351cc3(0x3a7),_0x2fc01a[_0x2fc01a[_0x351cc3(0x313)]=0x2ee2]='INVALID_INVITE_CODE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x206)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2fc01a[_0x2fc01a['USER_NOT_INVITED_CODE']=0x2ee4]=_0x351cc3(0x4aa),_0x2fc01a[_0x2fc01a[_0x351cc3(0x24b)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x240)]=0x32c9]=_0x351cc3(0x240),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2df)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2fc01a[_0x2fc01a[_0x351cc3(0x452)]=0x32cb]=_0x351cc3(0x452),_0x2fc01a[_0x2fc01a[_0x351cc3(0x2be)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2fc01a[_0x2fc01a[_0x351cc3(0x27b)]=0x36b2]=_0x351cc3(0x27b),_0x2fc01a[_0x2fc01a['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2b9)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x2fc01a[_0x2fc01a['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2f4)]=0x3716]=_0x351cc3(0x2f4),_0x2fc01a[_0x2fc01a['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2fc01a[_0x2fc01a['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x2fc01a[_0x2fc01a[_0x351cc3(0x201)]=0x3a99]=_0x351cc3(0x201),_0x2fc01a[_0x2fc01a[_0x351cc3(0x321)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c4)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x39f)]=0x3a9c]=_0x351cc3(0x39f),_0x2fc01a[_0x2fc01a['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x3ed)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x2fc01a[_0x2fc01a[_0x351cc3(0x364)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2fc01a[_0x2fc01a['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x2fc01a[_0x2fc01a[_0x351cc3(0x2c5)]=-0x1]=_0x351cc3(0x2c5),_0x2fc01a))(G||{});function Jt(_0x367f5c){const _0x2ceadd=_0x351cc3;var _0x10937d,_0xc26af9;const _0x912cb7=(_0x10937d=_0x367f5c[_0x2ceadd(0x48e)])==null?void 0x0:_0x10937d[_0x2ceadd(0x346)],_0x1700e=((_0xc26af9=_0x367f5c[_0x2ceadd(0x48e)])==null?void 0x0:_0xc26af9['totalFormulasToCalculate'])||0x0;return _0x912cb7===B['FormulaExecuteStageType'][_0x2ceadd(0x31a)]&&_0x1700e>0x0;}function Zt(_0x201ea6){const _0x9487c4=_0x351cc3;return _0x201ea6[_0x9487c4(0x42c)]===B[_0x9487c4(0x426)][_0x9487c4(0x2a1)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x13a376,_0x400412,_0x234199,_0x4f9d12)=>{const _0x552fd9=_0x351cc3;for(var _0x26dc83=_0x4f9d12>0x1?void 0x0:_0x4f9d12?Qt(_0x400412,_0x234199):_0x400412,_0x355511=_0x13a376[_0x552fd9(0x241)]-0x1,_0x303e92;_0x355511>=0x0;_0x355511--)(_0x303e92=_0x13a376[_0x355511])&&(_0x26dc83=_0x303e92(_0x26dc83)||_0x26dc83);return _0x26dc83;},L=(_0x3bbec2,_0x273f01)=>(_0x2234d5,_0x3aab52)=>_0x273f01(_0x2234d5,_0x3aab52,_0x3bbec2);const ts=_0x351cc3(0x1ef),ss=_0x351cc3(0x2d0),is=_0x351cc3(0x377);let ne=class extends a['Disposable']{constructor(_0x47b0d0,_0x1be6b4,_0xf7bd5c,_0x7c1d38,_0x8892f7,_0x1391f7,_0x4eee2d){const _0x454fdc=_0x351cc3;super(),_(this,'_pollingInterval',null),_(this,_0x454fdc(0x438),0x0),_(this,_0x454fdc(0x436),0x0),_(this,'_taskIds',[]),_(this,_0x454fdc(0x2d9),0x0),(this[_0x454fdc(0x2ac)]=_0x47b0d0,this[_0x454fdc(0x3f2)]=_0x1be6b4,this[_0x454fdc(0x2ce)]=_0xf7bd5c,this['_httpService']=_0x7c1d38,this[_0x454fdc(0x2bf)]=_0x8892f7,this[_0x454fdc(0x3de)]=_0x1391f7,this['_localeService']=_0x4eee2d,this['_initCommandInterceptor']());}[_0x351cc3(0x252)](){const _0x1ffb0a=_0x351cc3;this[_0x1ffb0a(0x248)](this[_0x1ffb0a(0x3f2)][_0x1ffb0a(0x3f3)]((_0x23d374,_0x4744cc)=>{const _0x26f0f3=_0x1ffb0a;var _0xa0ea84;if(_0x23d374['id']!==B[_0x26f0f3(0x3bb)]['id'])return;const _0x54c42a=_0x23d374['params'];if(!this[_0x26f0f3(0x2fb)]((_0xa0ea84=_0x54c42a['dirtyRanges'])!=null?_0xa0ea84:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x26f0f3(0x281)](_0x23d374,_0x4744cc),this['_showGuardMessage'](),new a[(_0x26f0f3(0x439))]();})),this[_0x1ffb0a(0x248)](this[_0x1ffb0a(0x3f2)][_0x1ffb0a(0x29a)]((_0x1367ee,_0x57bcf9)=>{const _0x4731d3=_0x1ffb0a;if(_0x1367ee['id']!==B[_0x4731d3(0x3ef)]['id'])return;const _0x480dc3=_0x1367ee['params'];if(Jt(_0x480dc3)){const _0x29155d=a[_0x4731d3(0x204)]();this[_0x4731d3(0x1ff)][_0x4731d3(0x455)](_0x29155d),this[_0x4731d3(0x20b)](_0x29155d);}else{if(Zt(_0x480dc3)&&this['_taskIds']['length']>0x0){const _0x4af3fc=this[_0x4731d3(0x1ff)][_0x4731d3(0x47c)]();this[_0x4731d3(0x393)](_0x4af3fc);}}}));}['dispose'](){const _0x958699=_0x351cc3;super[_0x958699(0x469)](),this['_clearPolling'](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x958699(0x438)]=0x0,this[_0x958699(0x2d9)]=0x0;}async[_0x351cc3(0x281)](_0x39d938,_0x2f3350){const _0x1e4375=_0x351cc3;for(let _0x54aa92=0x0;_0x54aa92<0x1e;_0x54aa92++)try{if(await this[_0x1e4375(0x44a)](),this['_checkCalculationAvailable']()){this[_0x1e4375(0x228)](_0x39d938,_0x2f3350),this[_0x1e4375(0x2ac)][_0x1e4375(0x431)]({'content':this[_0x1e4375(0x3e8)]['t'](_0x1e4375(0x30e)),'type':T['MessageType'][_0x1e4375(0x457)]});return;}await new Promise(_0x596f67=>{const _0x264ae9=_0x1e4375;this[_0x264ae9(0x3b8)]=window[_0x264ae9(0x389)](_0x596f67,0x3e8);});}catch(_0x2656ae){this[_0x1e4375(0x3de)][_0x1e4375(0x423)](_0x2656ae);}this[_0x1e4375(0x2ac)]['show']({'content':this[_0x1e4375(0x3e8)]['t'](_0x1e4375(0x247)),'type':T[_0x1e4375(0x399)]['Error']});}[_0x351cc3(0x228)](_0x4ec019,_0xa36330){const _0x5602de=_0x351cc3;try{this[_0x5602de(0x3f2)][_0x5602de(0x222)](_0x4ec019['id'],_0x4ec019[_0x5602de(0x3d6)],_0xa36330);}catch(_0x402376){this[_0x5602de(0x3de)][_0x5602de(0x423)](_0x402376);}}[_0x351cc3(0x1f9)](_0x15390e,_0x18348d){const _0x4622c1=_0x351cc3;_0x18348d<this['_lastResponseTimestamp']||(this[_0x4622c1(0x2d9)]=_0x18348d,this[_0x4622c1(0x438)]=Number[_0x4622c1(0x441)](_0x15390e[_0x4622c1(0x311)]),this[_0x4622c1(0x436)]=Number[_0x4622c1(0x441)](_0x15390e[_0x4622c1(0x2a2)]));}async['_startCalculationLimit'](_0x29b27a){const _0x57997f=_0x351cc3;var _0xd5b2cb,_0x2076e0;const _0x2e3dd5=Date[_0x57997f(0x39a)]();try{const _0x5cef47=((_0xd5b2cb=this[_0x57997f(0x2ce)][_0x57997f(0x2eb)](u[_0x57997f(0x28c)]))==null?void 0x0:_0xd5b2cb['startFormulaLimitUrl'])||ss,_0x255530=(await this[_0x57997f(0x2e3)][_0x57997f(0x261)](_0x5cef47,{'body':JSON[_0x57997f(0x2ef)]({'taskId':_0x29b27a})}))[_0x57997f(0x4a1)];if(((_0x2076e0=_0x255530['error'])==null?void 0x0:_0x2076e0[_0x57997f(0x337)])!==G['OK'])return;this[_0x57997f(0x1f9)](_0x255530[_0x57997f(0x2c2)],_0x2e3dd5);}catch(_0x326d97){this[_0x57997f(0x3de)]['error'](_0x326d97);}}async['_getFormulaLimitStatus'](_0x22710d){const _0xb28820=_0x351cc3;var _0x54c9d8,_0x13341b;const _0xbd69c8=Date['now']();try{const _0x30e673=((_0x54c9d8=this[_0xb28820(0x2ce)][_0xb28820(0x2eb)](u[_0xb28820(0x28c)]))==null?void 0x0:_0x54c9d8[_0xb28820(0x256)])||ts,_0x301ff2=_0x22710d?_0x30e673+_0xb28820(0x2a8)+encodeURIComponent(_0x22710d):_0x30e673,_0x464e76=(await this[_0xb28820(0x2e3)]['get'](_0x301ff2))['body'];if(((_0x13341b=_0x464e76[_0xb28820(0x423)])==null?void 0x0:_0x13341b[_0xb28820(0x337)])!==G['OK'])return;this[_0xb28820(0x1f9)](_0x464e76[_0xb28820(0x2c2)],_0xbd69c8);}catch(_0x26203f){this[_0xb28820(0x3de)][_0xb28820(0x423)](_0x26203f);}}async[_0x351cc3(0x393)](_0x48b1cc){const _0x4075ec=_0x351cc3;var _0x243382,_0x2fde63;const _0x345729=Date[_0x4075ec(0x39a)]();try{const _0x1c4701=((_0x243382=this[_0x4075ec(0x2ce)][_0x4075ec(0x2eb)](u[_0x4075ec(0x28c)]))==null?void 0x0:_0x243382[_0x4075ec(0x3c2)])||is,_0x578375=(await this[_0x4075ec(0x2e3)][_0x4075ec(0x261)](_0x1c4701,{'body':JSON[_0x4075ec(0x2ef)]({'taskId':_0x48b1cc})}))['body'];if(((_0x2fde63=_0x578375[_0x4075ec(0x423)])==null?void 0x0:_0x2fde63[_0x4075ec(0x337)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x578375[_0x4075ec(0x2c2)],_0x345729);}catch(_0x373043){this['_logService'][_0x4075ec(0x423)](_0x373043);}}[_0x351cc3(0x2fe)](){const _0x55ce33=_0x351cc3;return this[_0x55ce33(0x438)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x55ce33(0x436)]>0x0;}['_clearPolling'](){const _0x350625=_0x351cc3;this[_0x350625(0x3b8)]&&(clearTimeout(this[_0x350625(0x3b8)]),this[_0x350625(0x3b8)]=null);}[_0x351cc3(0x46d)](){const _0x4abc75=_0x351cc3;this[_0x4abc75(0x2ac)][_0x4abc75(0x431)]({'content':this['_localeService']['t'](_0x4abc75(0x3f7)),'type':T[_0x4abc75(0x399)]['Loading']});}[_0x351cc3(0x2fb)](_0x2568cf){const _0x28464f=_0x351cc3;for(const _0x4dca24 of _0x2568cf){const {unitId:_0x5fc2e9,sheetId:_0x4b86b8,range:_0xf52339}=_0x4dca24,_0x2f721a=this[_0x28464f(0x2bf)][_0x28464f(0x332)](_0x5fc2e9);if(!_0x2f721a)continue;const _0x23973e=_0x2f721a['getSheetBySheetId'](_0x4b86b8);if(!_0x23973e)continue;const _0x1e6ae6=_0x23973e['getCellMatrix']();for(let _0x3cc74a=_0xf52339[_0x28464f(0x333)];_0x3cc74a<=_0xf52339[_0x28464f(0x405)];_0x3cc74a++)for(let _0x5e557d=_0xf52339[_0x28464f(0x49b)];_0x5e557d<=_0xf52339[_0x28464f(0x227)];_0x5e557d++){const _0x4b41dd=_0x1e6ae6[_0x28464f(0x24d)](_0x3cc74a,_0x5e557d);if(_0x4b41dd&&(a['isFormulaString'](_0x4b41dd['f'])||a[_0x28464f(0x2c7)](_0x4b41dd['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x351cc3(0x4ae)])),L(0x1,a[_0x351cc3(0x30d)]),L(0x2,a[_0x351cc3(0x456)]),L(0x3,a[_0x351cc3(0x257)](x['HTTPService'])),L(0x4,a[_0x351cc3(0x314)]),L(0x5,a['ILogService']),L(0x6,a[_0x351cc3(0x257)](a[_0x351cc3(0x2bb)]))],ne);var ns=Object[_0x351cc3(0x343)],rs=(_0x3f0f3c,_0x12a48f,_0x19c37b,_0x57e2d9)=>{const _0x1f4e7e=_0x351cc3;for(var _0x1973ec=_0x57e2d9>0x1?void 0x0:_0x57e2d9?ns(_0x12a48f,_0x19c37b):_0x12a48f,_0x21f818=_0x3f0f3c[_0x1f4e7e(0x241)]-0x1,_0x562cc0;_0x21f818>=0x0;_0x21f818--)(_0x562cc0=_0x3f0f3c[_0x21f818])&&(_0x1973ec=_0x562cc0(_0x1973ec)||_0x1973ec);return _0x1973ec;},de=(_0x4c36d4,_0x2eea48)=>(_0x1c456a,_0x225f83)=>_0x2eea48(_0x1c456a,_0x225f83,_0x4c36d4);let pe=class extends a[_0x351cc3(0x37b)]{constructor(_0x11b884,_0x1cf35d,_0x502648){const _0x5cabeb=_0x351cc3;super(),_(this,'_cachedData',new Map()),_(this,_0x5cabeb(0x3eb),new Map()),_(this,_0x5cabeb(0x3d1),!0x1),(this['_configService']=_0x11b884,this[_0x5cabeb(0x374)]=_0x1cf35d,this[_0x5cabeb(0x3df)]=_0x502648);}[_0x351cc3(0x356)](){this['_disabled']=!0x0;}[_0x351cc3(0x266)](){const _0x14e3b3=_0x351cc3;this[_0x14e3b3(0x3d1)]=!0x1;}get[_0x351cc3(0x42e)](){return this['_saveTaskMap'];}[_0x351cc3(0x469)](){const _0x422c36=_0x351cc3;this[_0x422c36(0x270)]()['then'](()=>super[_0x422c36(0x469)]());}async[_0x351cc3(0x273)](_0x45b552){const _0x1fd603=_0x351cc3;return this[_0x1fd603(0x3d1)]?null:this['_localStorageService']['getItem'](u[_0x1fd603(0x463)](_0x45b552));}async[_0x351cc3(0x3d8)](_0x36c4fe,_0x502647){const _0x28cd27=_0x351cc3;return!!this[_0x28cd27(0x374)][_0x28cd27(0x390)](_0x36c4fe,_0x502647);}['updateOfflineData'](_0x4ee7ef,_0x28fe00,_0x128d6f,_0x584378){const _0x46690b=_0x351cc3,_0x597935=this[_0x46690b(0x3df)][_0x46690b(0x36c)](_0x4ee7ef);this[_0x46690b(0x47f)][_0x46690b(0x305)](_0x4ee7ef,{'unitID':_0x4ee7ef,'type':_0x28fe00,'awaitingChangeset':_0x128d6f,'mutations':_0x584378,'rev':_0x597935}),this[_0x46690b(0x3eb)][_0x46690b(0x370)](_0x4ee7ef)||this[_0x46690b(0x40a)](_0x4ee7ef);}[_0x351cc3(0x40a)](_0x15ab60){const _0x2b02f3=_0x351cc3,_0x266106=this[_0x2b02f3(0x2d3)]();_0x266106===0x0?this['_saveCache'](_0x15ab60):this[_0x2b02f3(0x3eb)][_0x2b02f3(0x305)](_0x15ab60,setTimeout(()=>this['_saveCache'](_0x15ab60),_0x266106));}['_getSaveTimeout'](){const _0x55a78f=_0x351cc3;var _0x36677a;return(_0x36677a=this[_0x55a78f(0x2ce)][_0x55a78f(0x2eb)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x36677a:u[_0x55a78f(0x3ba)];}[_0x351cc3(0x443)](_0x5ac349){const _0x2d4a5e=_0x351cc3,_0x2949b3=this[_0x2d4a5e(0x3eb)][_0x2d4a5e(0x3d0)](_0x5ac349);return _0x2949b3!==void 0x0&&window[_0x2d4a5e(0x326)](_0x2949b3),this[_0x2d4a5e(0x374)][_0x2d4a5e(0x390)](u[_0x2d4a5e(0x463)](_0x5ac349),this[_0x2d4a5e(0x47f)][_0x2d4a5e(0x3d0)](_0x5ac349))[_0x2d4a5e(0x4a0)](()=>this[_0x2d4a5e(0x3eb)]['delete'](_0x5ac349));}async[_0x351cc3(0x270)](){const _0x2fefe2=_0x351cc3,_0x51a9e9=[];this[_0x2fefe2(0x3eb)][_0x2fefe2(0x264)]((_0x501a45,_0x2a8366)=>{const _0x1a4962=_0x2fefe2;window['clearTimeout'](_0x501a45),_0x51a9e9[_0x1a4962(0x455)](this[_0x1a4962(0x443)](_0x2a8366)['then'](()=>{const _0xc63f94=_0x1a4962;this[_0xc63f94(0x3eb)][_0xc63f94(0x4a9)](_0x2a8366);}));}),await Promise['all'](_0x51a9e9);}};pe=rs([de(0x0,a[_0x351cc3(0x456)]),de(0x1,a[_0x351cc3(0x391)]),de(0x2,a[_0x351cc3(0x257)](g[_0x351cc3(0x383)]))],pe);class ke extends a[_0x351cc3(0x487)]{constructor(){const _0x162fd8=_0x351cc3;super(),_(this,_0x162fd8(0x2f9)),this[_0x162fd8(0x2f9)]=I[_0x162fd8(0x339)](window,_0x162fd8(0x2b7))[_0x162fd8(0x38b)](I['takeUntil'](this['dispose$']),I[_0x162fd8(0x2ad)](0x1),I[_0x162fd8(0x497)](void 0x0));}[_0x351cc3(0x1f8)](_0xdf204e,_0x375498,_0x1d404f=!0x1){const _0x4c32e1=_0x351cc3,_0x3d57b5=new URL(window['location'][_0x4c32e1(0x3a3)]);_0x3d57b5['searchParams'][_0x4c32e1(0x305)](_0xdf204e,_0x375498),_0x1d404f?window[_0x4c32e1(0x20e)][_0x4c32e1(0x23c)]('','',_0x3d57b5['toString']()):window[_0x4c32e1(0x20e)][_0x4c32e1(0x467)]('','',_0x3d57b5[_0x4c32e1(0x2e7)]());}['removeParam'](_0x2ca017,_0x39594d=!0x1){const _0x193679=_0x351cc3,_0x535c6a=new URL(window['location'][_0x193679(0x3a3)]);_0x535c6a[_0x193679(0x2e5)][_0x193679(0x4a9)](_0x2ca017),_0x39594d?window['history'][_0x193679(0x23c)]('','',_0x535c6a[_0x193679(0x2e7)]()):window['history'][_0x193679(0x467)]('','',_0x535c6a['toString']());}[_0x351cc3(0x2d2)](_0x5af2b9){const _0x31542e=_0x351cc3;var _0x346896;return(_0x346896=new URL(window[_0x31542e(0x2c9)][_0x31542e(0x3a3)])[_0x31542e(0x2e5)][_0x31542e(0x3d0)](_0x5af2b9))!=null?_0x346896:void 0x0;}}var os=Object[_0x351cc3(0x344)],as=Object['getOwnPropertyDescriptor'],cs=(_0x55bce9,_0x18a23f,_0x377824)=>_0x18a23f in _0x55bce9?os(_0x55bce9,_0x18a23f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377824}):_0x55bce9[_0x18a23f]=_0x377824,ls=(_0x2c1832,_0x596206,_0x56db3e,_0x44f237)=>{const _0x119b9a=_0x351cc3;for(var _0x24d1ea=_0x44f237>0x1?void 0x0:_0x44f237?as(_0x596206,_0x56db3e):_0x596206,_0x128e7b=_0x2c1832[_0x119b9a(0x241)]-0x1,_0x5a6b41;_0x128e7b>=0x0;_0x128e7b--)(_0x5a6b41=_0x2c1832[_0x128e7b])&&(_0x24d1ea=_0x5a6b41(_0x24d1ea)||_0x24d1ea);return _0x24d1ea;},Se=(_0x49e4bb,_0x40d0f7)=>(_0x2364b6,_0x593e61)=>_0x40d0f7(_0x2364b6,_0x593e61,_0x49e4bb),_s=(_0x13b179,_0xe47eff,_0x2c4b1c)=>cs(_0x13b179,_0xe47eff+'',_0x2c4b1c);const hs=_0x351cc3(0x26e);exports[_0x351cc3(0x47e)]=class extends a[_0x351cc3(0x486)]{constructor(_0x23578a=Me,_0x4da0a2,_0x50dff1,_0x4ce95b){const _0x5ee71f=_0x351cc3;super(),this['_config']=_0x23578a,this[_0x5ee71f(0x398)]=_0x4da0a2,this[_0x5ee71f(0x37f)]=_0x50dff1,this[_0x5ee71f(0x2ce)]=_0x4ce95b;const {..._0x246321}=a['merge']({},Me,this[_0x5ee71f(0x272)]);this[_0x5ee71f(0x2ce)]['setConfig'](Yt,_0x246321);}[_0x351cc3(0x38c)](){const _0x32d2c8=_0x351cc3;this['_registerDependencies'](),this[_0x32d2c8(0x46b)]();}[_0x351cc3(0x219)](){const _0x3ffc32=_0x351cc3;this[_0x3ffc32(0x2ca)]();}[_0x351cc3(0x4af)](){const _0x9e79d0=_0x351cc3;var _0x4129f6;const _0x22f481=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x9e79d0(0x3fa)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':pe}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x9e79d0(0x29d)]]];this[_0x9e79d0(0x272)][_0x9e79d0(0x23f)]&&_0x22f481[_0x9e79d0(0x455)]([Q]),a[_0x9e79d0(0x28f)](this['_injector'],a[_0x9e79d0(0x462)](_0x22f481,(_0x4129f6=this[_0x9e79d0(0x272)])==null?void 0x0:_0x4129f6[_0x9e79d0(0x25e)]));}[_0x351cc3(0x2ca)](){const _0x44a3c3=_0x351cc3;this['disposeWithMe'](this['_renderManagerService'][_0x44a3c3(0x408)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this['disposeWithMe'](this[_0x44a3c3(0x398)][_0x44a3c3(0x408)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}[_0x351cc3(0x46b)](){const _0x4cf176=_0x351cc3;a[_0x4cf176(0x4a7)](this[_0x4cf176(0x37f)],[[F],[exports[_0x4cf176(0x475)]],[ie],[Z],[exports[_0x4cf176(0x29d)]],[ne]]),this[_0x4cf176(0x272)][_0x4cf176(0x23f)]&&a[_0x4cf176(0x4a7)](this[_0x4cf176(0x37f)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x351cc3(0x213),hs),exports[_0x351cc3(0x47e)]=ls([a[_0x351cc3(0x464)](u['UniverCollaborationClientPlugin']),Se(0x1,C[_0x351cc3(0x382)]),Se(0x2,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),Se(0x3,a[_0x351cc3(0x456)])],exports[_0x351cc3(0x47e)]);var us=Object[_0x351cc3(0x343)],Is=(_0x2308a8,_0x178d12,_0x16fea6,_0x12f932)=>{const _0x376f5f=_0x351cc3;for(var _0x5dddad=_0x12f932>0x1?void 0x0:_0x12f932?us(_0x178d12,_0x16fea6):_0x178d12,_0x37951b=_0x2308a8[_0x376f5f(0x241)]-0x1,_0x33e454;_0x37951b>=0x0;_0x37951b--)(_0x33e454=_0x2308a8[_0x37951b])&&(_0x5dddad=_0x33e454(_0x5dddad)||_0x5dddad);return _0x5dddad;},W=(_0x4ccfa6,_0x363c0f)=>(_0x45826d,_0x48ee7c)=>_0x363c0f(_0x45826d,_0x48ee7c,_0x4ccfa6);exports['BrowserCollaborationSocketService']=class extends u[_0x351cc3(0x46f)]{constructor(_0x568368,_0x1c79c1,_0x2be100,_0x4d77e4,_0x2e70e2){super(_0x568368,_0x1c79c1,_0x2be100,_0x4d77e4,_0x2e70e2);}async[_0x351cc3(0x271)](_0x1d342e){const _0x446bd0=_0x351cc3,_0x284d8d=await this['_getSessionTicket'](),_0x559199=this[_0x446bd0(0x2f0)](_0x1d342e,_0x284d8d);return this[_0x446bd0(0x22a)](_0x559199);}[_0x351cc3(0x2f0)](_0x5bcc1e,_0x3790b2){const _0x3a3149=_0x351cc3,_0x32abd3=typeof window>'u'?new URL(_0x5bcc1e):new URL(_0x5bcc1e,window[_0x3a3149(0x2c9)]['origin']);_0x32abd3['searchParams'][_0x3a3149(0x305)](_0x3a3149(0x286),_0x3790b2);const _0x2e8818=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a3149(0x2c9)][_0x3a3149(0x30b)]);return _0x2e8818[_0x3a3149(0x3d0)](_0x3a3149(0x2d4))&&_0x32abd3[_0x3a3149(0x2e5)][_0x3a3149(0x305)](_0x3a3149(0x2d4),_0x2e8818[_0x3a3149(0x3d0)](_0x3a3149(0x2d4))),_0x32abd3[_0x3a3149(0x2e7)]();}async[_0x351cc3(0x2bc)](){const _0x23ccd1=_0x351cc3;var _0xaefde8,_0x242aba,_0x3a6199;const _0x187c8b=this[_0x23ccd1(0x2ce)]['getConfig'](u[_0x23ccd1(0x28c)]),_0x1690fd=(_0xaefde8=_0x187c8b==null?void 0x0:_0x187c8b[_0x23ccd1(0x3c4)])!=null?_0xaefde8:u[_0x23ccd1(0x3e3)];return(_0x3a6199=(_0x242aba=(await this[_0x23ccd1(0x2e3)]['get'](_0x1690fd,{'headers':{'Content-Type':'application/json'}}))[_0x23ccd1(0x4a1)])==null?void 0x0:_0x242aba[_0x23ccd1(0x320)])!=null?_0x3a6199:'';}},exports[_0x351cc3(0x493)]=Is([W(0x0,a[_0x351cc3(0x257)](a[_0x351cc3(0x2d1)])),W(0x1,a[_0x351cc3(0x257)](x[_0x351cc3(0x242)])),W(0x2,a['IConfigService']),W(0x3,a[_0x351cc3(0x31d)]),W(0x4,g[_0x351cc3(0x225)])],exports['BrowserCollaborationSocketService']);var ds=Object['getOwnPropertyDescriptor'],Ss=(_0x2c2795,_0x369c0d,_0x2d64c6,_0x3b91e7)=>{const _0x354578=_0x351cc3;for(var _0x498e32=_0x3b91e7>0x1?void 0x0:_0x3b91e7?ds(_0x369c0d,_0x2d64c6):_0x369c0d,_0x5c9f00=_0x2c2795[_0x354578(0x241)]-0x1,_0x5ea678;_0x5c9f00>=0x0;_0x5c9f00--)(_0x5ea678=_0x2c2795[_0x5c9f00])&&(_0x498e32=_0x5ea678(_0x498e32)||_0x498e32);return _0x498e32;},fe=(_0x5a7fef,_0x2542fa)=>(_0x28403e,_0x2f9e22)=>_0x2542fa(_0x28403e,_0x2f9e22,_0x5a7fef);exports[_0x351cc3(0x471)]=class extends a[_0x351cc3(0x37b)]{constructor(_0x2993a3,_0xb58ef7,_0x3685b5){const _0x38ab84=_0x351cc3;super(),this[_0x38ab84(0x3b0)]=_0x2993a3,this[_0x38ab84(0x2e3)]=_0xb58ef7,this[_0x38ab84(0x2ce)]=_0x3685b5;}async[_0x351cc3(0x368)](_0x23f75e,_0x3e6089,_0x33a065,..._0x38fa96){const _0x1d1a3b=_0x351cc3;var _0x16f58c,_0xce99c,_0xd6dcc9,_0x19062e;const _0x5410b6=this[_0x1d1a3b(0x3b0)][_0x1d1a3b(0x22e)]();if(!_0x5410b6)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x44b445=((_0x16f58c=this[_0x1d1a3b(0x2ce)][_0x1d1a3b(0x2eb)](u[_0x1d1a3b(0x496)]))!=null?_0x16f58c:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x23f75e+_0x1d1a3b(0x2da)+_0x3e6089,_0x5b49a7=new URL(window['location'][_0x1d1a3b(0x3a3)]),_0x3b131c={'scriptId':_0x23f75e,'runId':(_0xce99c=_0x5b49a7[_0x1d1a3b(0x2e5)]['get'](_0x1d1a3b(0x2d4)))!=null?_0xce99c:'','function':_0x3e6089,'unitId':_0x5410b6[_0x1d1a3b(0x3b1)](),'argsOfFunction':JSON['stringify'](_0x38fa96),'invokeId':(_0xd6dcc9=_0x33a065[_0x1d1a3b(0x1f3)])!=null?_0xd6dcc9:'','executionId':(_0x19062e=_0x33a065[_0x1d1a3b(0x342)])!=null?_0x19062e:''};try{const _0x596c5c=await this['_httpService'][_0x1d1a3b(0x261)](_0x44b445,{'body':_0x3b131c});return _0x596c5c[_0x1d1a3b(0x4a1)][_0x1d1a3b(0x423)]&&_0x596c5c[_0x1d1a3b(0x4a1)]['error'][_0x1d1a3b(0x337)]!==G['OK']?'Failed':_0x596c5c['body'][_0x1d1a3b(0x302)];}catch{return _0x1d1a3b(0x409);}}},exports[_0x351cc3(0x471)]=Ss([fe(0x0,a[_0x351cc3(0x314)]),fe(0x1,a['Inject'](x[_0x351cc3(0x242)])),fe(0x2,a['IConfigService'])],exports[_0x351cc3(0x471)]);const we=0x7530,ye=_0x351cc3(0x37e);class fs extends a['Disposable']{constructor(){const _0x3a9d4f=_0x351cc3;super(),_(this,'_id',a[_0x3a9d4f(0x204)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x3a9d4f(0x288),null),_(this,_0x3a9d4f(0x26f),new Map()),_(this,_0x3a9d4f(0x25b),new Map()),this[_0x3a9d4f(0x331)]();}[_0x351cc3(0x469)](){const _0x1363a2=_0x351cc3;super['dispose'](),this[_0x1363a2(0x26f)][_0x1363a2(0x264)]((_0x5374db,_0x204434)=>this[_0x1363a2(0x488)](_0x204434)),this['_heartbeatTimer']&&window[_0x1363a2(0x3f8)](this[_0x1363a2(0x288)]);}[_0x351cc3(0x35a)](_0x57ee06){const _0x23e9f1=_0x351cc3;return this[_0x23e9f1(0x3c3)](_0x57ee06)[_0x23e9f1(0x38b)](I['distinctUntilChanged']());}['editingUnit'](_0x47f478){const _0x38e6ac=_0x351cc3;this[_0x38e6ac(0x304)][_0x38e6ac(0x35e)]===0x0&&this[_0x38e6ac(0x448)](),this[_0x38e6ac(0x304)]['add'](_0x47f478),this[_0x38e6ac(0x255)]({'type':0x0,'memberID':this[_0x38e6ac(0x4bc)],'unitIDs':[_0x47f478],'isForwarded':!0x1});}[_0x351cc3(0x412)](_0x44e0a4){const _0x3d9153=_0x351cc3;this[_0x3d9153(0x304)][_0x3d9153(0x4a9)](_0x44e0a4),this[_0x3d9153(0x304)][_0x3d9153(0x35e)]===0x0&&this[_0x3d9153(0x288)]&&window['clearInterval'](this[_0x3d9153(0x288)]);}[_0x351cc3(0x331)](){const _0x3b53b3=_0x351cc3;this['disposeWithMe'](a[_0x3b53b3(0x30f)](I[_0x3b53b3(0x339)](window,'storage')[_0x3b53b3(0x3b4)](_0x52dc18=>{const _0x1bfcd7=_0x3b53b3;if(_0x52dc18[_0x1bfcd7(0x33f)]!==ye||!_0x52dc18['newValue'])return;const _0x36f709=JSON[_0x1bfcd7(0x40c)](_0x52dc18['newValue']);this[_0x1bfcd7(0x24c)](_0x36f709);}))),window[_0x3b53b3(0x472)](_0x3b53b3(0x39c),()=>this['_send']({'type':0x1,'memberID':this[_0x3b53b3(0x4bc)],'unitIDs':Array[_0x3b53b3(0x301)](this[_0x3b53b3(0x304)])}));}[_0x351cc3(0x24c)](_0x1626f3){const _0x5969d8=_0x351cc3;switch(_0x1626f3['type']){case 0x0:this['_handleJoinEvent'](_0x1626f3);break;case 0x1:this[_0x5969d8(0x20f)](_0x1626f3);break;case 0x2:this[_0x5969d8(0x407)](_0x1626f3);break;}}[_0x351cc3(0x4a5)](_0x13d5da){const _0x26b034=_0x351cc3,{unitIDs:_0x2a791c,memberID:_0x2d16e8,isForwarded:_0xa39850}=_0x13d5da;_0x2a791c[_0x26b034(0x264)](_0x55a3c8=>{const _0x9ccab6=_0x26b034;if(!_0xa39850&&this[_0x9ccab6(0x3da)][_0x9ccab6(0x370)](_0x55a3c8)&&this[_0x9ccab6(0x3c3)](_0x55a3c8)[_0x9ccab6(0x380)](u[_0x9ccab6(0x358)][_0x9ccab6(0x425)]),!this[_0x9ccab6(0x3da)][_0x9ccab6(0x370)](_0x55a3c8)||!this['_unitOnClients']['get'](_0x55a3c8)['has'](_0x2d16e8)){const _0x3b7bf3=this[_0x9ccab6(0x3da)][_0x9ccab6(0x3d0)](_0x55a3c8)||new Set();_0x3b7bf3[_0x9ccab6(0x251)](_0x2d16e8),this[_0x9ccab6(0x3da)][_0x9ccab6(0x305)](_0x55a3c8,_0x3b7bf3),this[_0x9ccab6(0x2e2)](_0x2d16e8);}}),_0xa39850||this[_0x26b034(0x255)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x26b034(0x304)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5cd82c){const _0x3a84c8=_0x351cc3;this[_0x3a84c8(0x488)](_0x5cd82c);const _0x500eb3=window[_0x3a84c8(0x389)](()=>{const _0x1aac11=_0x3a84c8;this[_0x1aac11(0x3da)][_0x1aac11(0x264)](_0x4db836=>{_0x4db836['delete'](_0x5cd82c);});},we*0x2);this['_clearOtherTimers'][_0x3a84c8(0x305)](_0x5cd82c,_0x500eb3);}[_0x351cc3(0x488)](_0x374d07){const _0x5efc92=_0x351cc3;if(this[_0x5efc92(0x26f)]['has'](_0x374d07)){const _0x202ab8=this[_0x5efc92(0x26f)][_0x5efc92(0x3d0)](_0x374d07);_0x202ab8&&window[_0x5efc92(0x326)](_0x202ab8),this['_clearOtherTimers'][_0x5efc92(0x305)](_0x374d07,null);}}['_handleLeaveEvent'](_0x22b2f3){const {memberID:_0x73f488,unitIDs:_0x1713b6}=_0x22b2f3;_0x1713b6['forEach'](_0x5e388f=>{const _0x2f2f81=_0xf8a9;var _0x9f460a;const _0x44112e=this['_unitOnClients'][_0x2f2f81(0x3d0)](_0x5e388f);_0x44112e&&(_0x44112e[_0x2f2f81(0x4a9)](_0x73f488),(_0x9f460a=this[_0x2f2f81(0x3c3)](_0x5e388f))==null||_0x9f460a['next'](_0x44112e[_0x2f2f81(0x35e)]===0x0?u[_0x2f2f81(0x358)][_0x2f2f81(0x287)]:u[_0x2f2f81(0x358)][_0x2f2f81(0x425)]));}),this['_removeClearOtherTimer'](_0x73f488);}[_0x351cc3(0x407)](_0x436cb5){const _0xf2de5b=_0x351cc3;this[_0xf2de5b(0x2e2)](_0x436cb5['memberID']);}[_0x351cc3(0x255)](_0x2542aa){const _0x2239dd=_0x351cc3;localStorage[_0x2239dd(0x390)](ye,JSON[_0x2239dd(0x2ef)](_0x2542aa));}[_0x351cc3(0x448)](){const _0x1dd135=_0x351cc3;this[_0x1dd135(0x288)]=window[_0x1dd135(0x23d)](()=>{const _0x204e5d=_0x1dd135;this[_0x204e5d(0x255)]({'type':0x2,'memberID':this[_0x204e5d(0x4bc)]});},we);}[_0x351cc3(0x3c3)](_0xe42f3){const _0x4703f5=_0x351cc3;return this[_0x4703f5(0x25b)][_0x4703f5(0x370)](_0xe42f3)||this[_0x4703f5(0x25b)][_0x4703f5(0x305)](_0xe42f3,new I[(_0x4703f5(0x263))](u['UnitStatus'][_0x4703f5(0x287)])),this[_0x4703f5(0x25b)][_0x4703f5(0x3d0)](_0xe42f3);}}exports[_0x351cc3(0x44d)]=Oe,exports[_0x351cc3(0x42d)]=je,exports[_0x351cc3(0x200)]=fs,exports[_0x351cc3(0x335)]=ke;
|