@univerjs-pro/collaboration-client-ui 0.12.1-nightly.202511221011 → 0.12.2

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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1bab67=_0x4050;(function(_0x1011b,_0x3908fa){const _0x410ebc=_0x4050,_0x5d27ff=_0x1011b();while(!![]){try{const _0x4a1eef=parseInt(_0x410ebc(0x3e3))/0x1*(-parseInt(_0x410ebc(0x317))/0x2)+-parseInt(_0x410ebc(0x234))/0x3+-parseInt(_0x410ebc(0x331))/0x4+-parseInt(_0x410ebc(0x1e9))/0x5+-parseInt(_0x410ebc(0x1de))/0x6*(-parseInt(_0x410ebc(0x3a5))/0x7)+-parseInt(_0x410ebc(0x368))/0x8*(parseInt(_0x410ebc(0x392))/0x9)+parseInt(_0x410ebc(0x208))/0xa;if(_0x4a1eef===_0x3908fa)break;else _0x5d27ff['push'](_0x5d27ff['shift']());}catch(_0x4758be){_0x5d27ff['push'](_0x5d27ff['shift']());}}}(_0x2e9d,0xbb006));var Yt=Object['defineProperty'],Wt=(_0x482695,_0x18a159,_0x4abdc0)=>_0x18a159 in _0x482695?Yt(_0x482695,_0x18a159,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4abdc0}):_0x482695[_0x18a159]=_0x4abdc0,_=(_0x3253da,_0x267ec8,_0x2ad90d)=>Wt(_0x3253da,typeof _0x267ec8!=_0x1bab67(0x391)?_0x267ec8+'':_0x267ec8,_0x2ad90d);import{jsx as _0x2b343a,jsxs as _0x548497}from'react/jsx-runtime';import{CollaborationStatus as _0x1db3c4,CollaborationSessionService as _0x5b8361,CollaborationController as _0x519a49,DataLoaderService as _0x403737,MemberService as _0x4b1a14,SessionStatus as _0x407a80,ILocalCacheService as _0x47e6d9,CollaborationUIEventService as _0x1cc67e,CollaborationUIEventId as _0x4fffd5,DocCollaborationEntity as _0x1d8428,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4f0d33,getLocalCacheKey as _0x35f275,LOCAL_CACHE_INTERVAL as _0x389196,LOCAL_CACHE_INTERVAL_KEY as _0x295962,UniverCollaborationClientPlugin as _0x306f7d,CollaborationSocketService as _0x5160fc,DEFAULT_WS_SESSION_TICKET_URL as _0x38397b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x48ebf0,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x21d34e,UnitStatus as _0x1daf11}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x358b52,IUniverInstanceService as _0x3b2157,Inject as _0x5a79e2,Injector as _0x41a636,Disposable as _0x570ab2,createIdentifier as _0x2fa984,ILogService as _0xf1ee96,ICommandService as _0x34fc9a,Optional as _0x173b7e,RxDisposable as _0xb8eb03,Workbook as _0x456127,DOC_RANGE_TYPE as _0x4c6b17,debounce as _0x3dabb7,Rectangle as _0x3f41b8,DisposableCollection as _0x59db6f,toDisposable as _0x2b2711,UniverInstanceType as _0x547011,generateRandomId as _0x2679ea,COLORS as _0xee8009,ColorKit as _0x55dc10,ThemeService as _0x3c6cac,fromEventSubject as _0x525fe4,Tools as _0x3b1d01,CommandType as _0x5d535e,IConfigService as _0x52bdc7,CanceledError as _0x419811,isFormulaString as _0x9c35a0,isFormulaId as _0x28c56f,ILocalStorageService as _0x5852d4,DependentOn as _0x32854b,Plugin as _0x26861e,merge as _0x2b8749,registerDependencies as _0x28fdc0,mergeOverrideWithDependencies as _0x7f7db3,touchDependencies as _0x4c947a}from'@univerjs/core';import{useObservable as _0x26e909,useDependency as _0xe6eb82,IUIPartsService as _0xc64278,BuiltInUIPart as _0x20bf22,connectInjector as _0x25cd97,IBeforeCloseService as _0x912558,IMessageService as _0x116021,INotificationService as _0x259113}from'@univerjs/ui';import{BehaviorSubject as _0x42c9f3,switchMap as _0x404b1e,of as _0x147589,takeUntil as _0x4cbc42,debounceTime as _0x48e44d,Subject as _0xbe2b9d,filter as _0x22f5b1,merge as _0x33fea5,combineLatest as _0x188334,fromEvent as _0x5af89f,shareReplay as _0x3b24b5,mapTo as _0x50b777,distinctUntilChanged as _0x7cced5}from'rxjs';import{Tooltip as _0x4a0b9c,clsx as _0x37fe69,MessageType as _0x5d27fe}from'@univerjs/design';import{useRef as _0x1a4b64,createElement as _0x375bb9,forwardRef as _0x4314be,useCallback as _0xb36e2e}from'react';import{IRemoteInstanceService as _0xee83ea}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x4822bc,RefRangeService as _0x474d9d,SetSelectionsOperation as _0x22809a,SheetsSelectionsService as _0x4ae7c3,EffectRefRangId as _0x59c1c3,handleIRemoveRow as _0x581694,handleIRemoveCol as _0x3c8f15,handleMoveRange as _0x2e1057,handleInsertRow as _0x43caa4,handleInsertRangeMoveRight as _0x2041ff,handleInsertRangeMoveDown as _0x5b3cb2,handleInsertCol as _0x922e73,handleDeleteRangeMoveUp as _0x54b924,handleDeleteRangeMoveLeft as _0x25bf2f,runRefRangeMutations as _0x57870a}from'@univerjs/sheets';import{Shape as _0x2d6f87,Rect as _0x17d777,getColor as _0x59e896,RegularPolygon as _0x232ebe,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x30d333,Vector2 as _0x380b35,SHEET_VIEWPORT_KEY as _0x3d4c73,IRenderManagerService as _0x1eaf53}from'@univerjs/engine-render';import{HTTPService as _0x1fe289,ISocketService as _0xc715c1,WebSocketService as _0x1b48bb}from'@univerjs/network';import{IDocClipboardService as _0x372b4b,NodePositionConvertToCursor as _0x267305,NodePositionConvertToRectRange as _0x48404a,TEXT_RANGE_LAYER_INDEX as _0x4adf9c,SetDocZoomRatioOperation as _0x2e1434,DocIMEInputManagerService as _0x38083a,DocStateChangeManagerService as _0x242de7}from'@univerjs/docs-ui';import{IImageIoService as _0x3ee77e}from'@univerjs/drawing';import{ITransformService as _0x1b61b0,CollaborationEvent as _0x4ec7f0,isTransformMutationFailure as _0x571730,isTransformMutationsWithChangesetSuccess as _0x29ce50,RevisionService as _0x10ef4a,ISnapshotServerService as _0x24fc69}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5817ee,RichTextEditingMutation as _0x435618,DocSelectionManagerService as _0xd5f03f,DocSkeletonManagerService as _0x210e2e}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x374d74,serializeRangeWithSheet as _0x44242a,FormulaExecuteStageType as _0x1a0570,FormulaExecutedStateType as _0x16d1f3,SetFormulaCalculationStartMutation as _0x3a24d4,SetFormulaCalculationNotificationMutation as _0x3d0d88}from'@univerjs/engine-formula';import{map as _0xa7eefa,filter as _0x2df3db,throttleTime as _0x5454da,takeUntil as _0x33be30,switchMap as _0x42a06f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1576bc,getCoordByCell as _0xa911b5,getSheetObject as _0x11d02e}from'@univerjs/sheets-ui';function Ge({ref:_0x4f7920,..._0x184ce1}){const _0x22ceaf=_0x1bab67,{icon:_0x31a156,id:_0x31aca9,className:_0x13fd09,extend:_0x59705a,..._0x5f2d73}=_0x184ce1,_0x4d443b=(_0x22ceaf(0x3fb)+_0x31aca9+'\x20'+(_0x13fd09||''))['trim'](),_0x3792bd=_0x1a4b64('_'+Ei());return At(_0x31a156,''+_0x31aca9,{'defIds':_0x31a156['defIds'],'idSuffix':_0x3792bd[_0x22ceaf(0x3d4)]},{'ref':_0x4f7920,'className':_0x4d443b,..._0x5f2d73},_0x59705a);}function At(_0x2b36ef,_0x599b5e,_0x3ca6a2,_0x523fc6,_0x38df25){const _0x162b0c=_0x1bab67;return _0x375bb9(_0x2b36ef[_0x162b0c(0x348)],{'key':_0x599b5e,...gi(_0x2b36ef,_0x3ca6a2,_0x38df25),..._0x523fc6},(vi(_0x2b36ef,_0x3ca6a2)[_0x162b0c(0x2d8)]||[])['map']((_0x383912,_0x503a3c)=>At(_0x383912,_0x599b5e+'-'+_0x2b36ef[_0x162b0c(0x348)]+'-'+_0x503a3c,_0x3ca6a2,void 0x0,_0x38df25)));}function gi(_0x2c1159,_0x2411c5,_0x3c8bb5){const _0x2e726d=_0x1bab67,_0x347056={..._0x2c1159[_0x2e726d(0x2b6)]};_0x3c8bb5!=null&&_0x3c8bb5[_0x2e726d(0x374)]&&_0x347056['fill']===_0x2e726d(0x374)&&(_0x347056[_0x2e726d(0x367)]=_0x3c8bb5[_0x2e726d(0x374)]),_0x2c1159[_0x2e726d(0x348)]===_0x2e726d(0x286)&&_0x347056['id']&&(_0x347056['id']=_0x347056['id']+_0x2411c5[_0x2e726d(0x1ea)]),Object[_0x2e726d(0x41c)](_0x347056)[_0x2e726d(0x36c)](([_0x517bd4,_0x4778e6])=>{const _0x276f70=_0x2e726d;_0x517bd4===_0x276f70(0x286)&&typeof _0x4778e6==_0x276f70(0x1e6)&&(_0x347056[_0x517bd4]=_0x4778e6['replace'](/url\(#(.*)\)/,_0x276f70(0x274)+_0x2411c5[_0x276f70(0x1ea)]+')'));});const {defIds:_0x307800}=_0x2411c5;return!_0x307800||_0x307800[_0x2e726d(0x30a)]===0x0||(_0x2c1159['tag']==='use'&&_0x347056[_0x2e726d(0x27d)]&&(_0x347056[_0x2e726d(0x27d)]=_0x347056[_0x2e726d(0x27d)]+_0x2411c5[_0x2e726d(0x1ea)]),Object[_0x2e726d(0x41c)](_0x347056)[_0x2e726d(0x36c)](([_0x237790,_0x1f085b])=>{const _0x27282d=_0x2e726d;typeof _0x1f085b==_0x27282d(0x1e6)&&(_0x347056[_0x237790]=_0x1f085b[_0x27282d(0x400)](/url\(#(.*)\)/,_0x27282d(0x274)+_0x2411c5[_0x27282d(0x1ea)]+')'));})),_0x347056;}function vi(_0xcafa7a,_0x4da834){const _0x531acb=_0x1bab67;var _0x50e806;const {defIds:_0x2803b3}=_0x4da834;return!_0x2803b3||_0x2803b3[_0x531acb(0x30a)]===0x0?_0xcafa7a:_0xcafa7a[_0x531acb(0x348)]==='defs'&&((_0x50e806=_0xcafa7a[_0x531acb(0x2d8)])!=null&&_0x50e806[_0x531acb(0x30a)])?{..._0xcafa7a,'children':_0xcafa7a[_0x531acb(0x2d8)]['map'](_0x21316e=>typeof _0x21316e['attrs']['id']==_0x531acb(0x1e6)&&_0x2803b3&&_0x2803b3[_0x531acb(0x2de)](_0x21316e[_0x531acb(0x2b6)]['id'])?{..._0x21316e,'attrs':{..._0x21316e[_0x531acb(0x2b6)],'id':_0x21316e[_0x531acb(0x2b6)]['id']+_0x4da834[_0x531acb(0x1ea)]}}:_0x21316e)}:_0xcafa7a;}function Ei(){const _0x529ba7=_0x1bab67;return Math[_0x529ba7(0x38d)]()[_0x529ba7(0x1dd)](0x24)[_0x529ba7(0x31b)](0x2,0x8);}Ge['displayName']=_0x1bab67(0x3e0);const pi={'tag':_0x1bab67(0x1db),'attrs':{'xmlns':_0x1bab67(0x2a1),'fill':'none','viewBox':_0x1bab67(0x244),'width':_0x1bab67(0x341),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1bab67(0x42b)},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'stroke':_0x1bab67(0x280),'d':_0x1bab67(0x293),'strokeLinecap':'round','strokeLinejoin':_0x1bab67(0x3a3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'fill':_0x1bab67(0x3ba),'d':_0x1bab67(0x226)}}]}]}],'defIds':[_0x1bab67(0x1f2)]},Pt=_0x4314be(function(_0x31de6b,_0x207e7e){const _0x527011=_0x1bab67;return _0x375bb9(Ge,Object[_0x527011(0x422)]({},_0x31de6b,{'id':'off-line-icon','ref':_0x207e7e,'icon':pi}));});Pt[_0x1bab67(0x3be)]=_0x1bab67(0x20c);const Oi={'tag':_0x1bab67(0x1db),'attrs':{'xmlns':_0x1bab67(0x2a1),'fill':_0x1bab67(0x27f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x1bab67(0x341)},'children':[{'tag':'g','attrs':{'clipPath':_0x1bab67(0x1da)},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'stroke':_0x1bab67(0x280),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1bab67(0x3a3),'strokeLinejoin':_0x1bab67(0x3a3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1bab67(0x220),'attrs':{'id':_0x1bab67(0x409)},'children':[{'tag':'path','attrs':{'fill':_0x1bab67(0x3ba),'d':'M0\x200H16V16H0z','transform':_0x1bab67(0x28e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x4314be(function(_0x4c31f6,_0x5b144e){const _0x12090f=_0x1bab67;return _0x375bb9(Ge,Object['assign']({},_0x4c31f6,{'id':_0x12090f(0x32d),'ref':_0x5b144e,'icon':Oi}));});wt[_0x1bab67(0x3be)]=_0x1bab67(0x245);function Ti(_0x12e919){const _0x101f9a=_0x1bab67;switch(_0x12e919){case _0x1db3c4[_0x101f9a(0x33b)]:return _0x101f9a(0x3c8);case _0x1db3c4[_0x101f9a(0x338)]:return _0x101f9a(0x32e);case _0x1db3c4[_0x101f9a(0x285)]:return _0x101f9a(0x1f6);case _0x1db3c4[_0x101f9a(0x3cb)]:return _0x101f9a(0x1f1);case _0x1db3c4['AWAITING']:case _0x1db3c4['AWAITING_WITH_PENDING']:return _0x101f9a(0x2ad);case _0x1db3c4[_0x101f9a(0x346)]:case _0x1db3c4[_0x101f9a(0x23b)]:return _0x101f9a(0x395);}}function Ci(_0x17f1a0){const _0xa7e9ff=_0x1bab67,{status$:_0x32a3b4}=_0x17f1a0,_0x5be08f=_0x26e909(_0x32a3b4,_0x1db3c4[_0xa7e9ff(0x3cb)]),_0x14b7c4=_0xe6eb82(_0x358b52),_0x66fb56=_0xe6eb82(_0x5b8361),_0x55a9e9=_0x5be08f!==_0x1db3c4[_0xa7e9ff(0x33b)],_0x46a4ac=_0x14b7c4['t'](Ti(_0x5be08f)),_0x393589=_0x55a9e9?_0x2b343a(wt,{}):_0x2b343a(Pt,{}),_0x5b8f1f=_0xb36e2e(()=>{const _0x419129=_0xa7e9ff;_0x55a9e9||_0x66fb56[_0x419129(0x36e)]();},[_0x55a9e9,_0x66fb56]);function _0x1d2ba5(){const _0x53ff73=_0xa7e9ff;return _0x548497(_0x53ff73(0x362),{'className':_0x53ff73(0x3f2),'onClick':_0x5b8f1f,'children':[_0x2b343a(_0x53ff73(0x362),{'className':_0x37fe69(_0x53ff73(0x361),{'univer-text-green-500':_0x55a9e9,'univer-text-red-500':!_0x55a9e9}),'children':_0x393589}),_0x2b343a(_0x53ff73(0x362),{'className':_0x53ff73(0x2c2),'children':_0x46a4ac})]});}return _0x55a9e9?_0x1d2ba5():_0x2b343a(_0x4a0b9c,{'title':_0x14b7c4['t'](_0xa7e9ff(0x2bc)),'children':_0x1d2ba5()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x1a0ef3,_0x38cd82,_0x410d15,_0x460c24)=>{for(var _0x397a78=_0x460c24>0x1?void 0x0:_0x460c24?Ri(_0x38cd82,_0x410d15):_0x38cd82,_0x2201c3=_0x1a0ef3['length']-0x1,_0x341e55;_0x2201c3>=0x0;_0x2201c3--)(_0x341e55=_0x1a0ef3[_0x2201c3])&&(_0x397a78=_0x341e55(_0x397a78)||_0x397a78);return _0x397a78;},se=(_0x720f64,_0x413b7b)=>(_0x312fb0,_0x47e189)=>_0x413b7b(_0x312fb0,_0x47e189,_0x720f64);let ae=class extends _0x570ab2{constructor(_0x2acafa,_0x5e9693,_0x2499f7,_0x3be39e){const _0x470a4e=_0x1bab67;super(),_(this,'_status$',new _0x42c9f3(_0x1db3c4[_0x470a4e(0x3cb)])),(this[_0x470a4e(0x3aa)]=_0x2acafa,this[_0x470a4e(0x428)]=_0x5e9693,this[_0x470a4e(0x22e)]=_0x2499f7,this[_0x470a4e(0x38b)]=_0x3be39e,this[_0x470a4e(0x2b5)](),this[_0x470a4e(0x36f)]());}[_0x1bab67(0x36f)](){const _0x29311e=_0x1bab67;this[_0x29311e(0x24d)](this[_0x29311e(0x3aa)][_0x29311e(0x2bb)][_0x29311e(0x3e7)](_0x404b1e(()=>{const _0x1b27fe=_0x29311e,_0x559f2c=this[_0x1b27fe(0x3aa)][_0x1b27fe(0x3cc)]();return _0x559f2c?this[_0x1b27fe(0x22e)][_0x1b27fe(0x42a)](_0x559f2c['getUnitId']()):_0x147589(null);}),_0x404b1e(_0x5be286=>_0x5be286?_0x5be286[_0x29311e(0x2a5)]:_0x147589(_0x1db3c4[_0x29311e(0x3cb)])))[_0x29311e(0x401)](_0x54daee=>{const _0x90323c=_0x29311e;this[_0x90323c(0x2af)][_0x90323c(0x419)](_0x54daee);}));}['_initStatusComponent'](){const _0x595833=_0x1bab67;this['disposeWithMe'](this[_0x595833(0x38b)][_0x595833(0x291)](_0x20bf22[_0x595833(0x399)],()=>_0x25cd97(bi({'status$':this[_0x595833(0x2af)][_0x595833(0x239)]()}),this[_0x595833(0x428)])));}};ae=Di([se(0x0,_0x3b2157),se(0x1,_0x5a79e2(_0x41a636)),se(0x2,_0x5a79e2(_0x519a49)),se(0x3,_0xc64278)],ae);function bi(_0x5de85f){const {status$:_0x2aa82b}=_0x5de85f;return function(){return _0x2b343a(Ci,{'status$':_0x2aa82b});};}const yt=_0x2fa984(_0x1bab67(0x339));var Ni=Object[_0x1bab67(0x32a)],Li=(_0x1fece0,_0x2f5542,_0x23adaf,_0xa91c26)=>{const _0x210358=_0x1bab67;for(var _0x526db8=_0xa91c26>0x1?void 0x0:_0xa91c26?Ni(_0x2f5542,_0x23adaf):_0x2f5542,_0x219c28=_0x1fece0[_0x210358(0x30a)]-0x1,_0x381cd6;_0x219c28>=0x0;_0x219c28--)(_0x381cd6=_0x1fece0[_0x219c28])&&(_0x526db8=_0x381cd6(_0x526db8)||_0x526db8);return _0x526db8;},K=(_0x3f8b93,_0x4339dc)=>(_0x5d6139,_0x49c7c8)=>_0x4339dc(_0x5d6139,_0x49c7c8,_0x3f8b93);let ce=class extends _0xb8eb03{constructor(_0x58024e,_0x360812,_0x594564,_0x22bc43,_0x3a9c32){const _0x39204d=_0x1bab67;super(),this[_0x39204d(0x28f)]=_0x58024e,this[_0x39204d(0x2b2)]=_0x360812,this[_0x39204d(0x22c)]=_0x594564,this['_dataLoaderService']=_0x22bc43,_0x3a9c32?_0x3a9c32==null||_0x3a9c32['whenReady']()[_0x39204d(0x1f3)](()=>this[_0x39204d(0x38f)]()):(this[_0x39204d(0x2b2)][_0x39204d(0x376)](_0x39204d(0x417),_0x39204d(0x2a4)),this[_0x39204d(0x38f)]());}async['_init'](){const _0x5050d7=_0x1bab67,_0x5a0d55=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)](_0x5050d7(0x1fd)),_0x370267=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)]('type'),_0x284d09=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)]('subunit');if(!_0x5a0d55||!_0x370267){this['_logService'][_0x5050d7(0x376)]('[CollaborationDataLoaderController]',_0x5050d7(0x363));return;}const _0x4e98fb=await this[_0x5050d7(0x3ab)][_0x5050d7(0x25e)](_0x5a0d55,Number(_0x370267),_0x284d09);_0x4e98fb&&_0x4e98fb instanceof _0x456127&&this['_setupSubUnitSync'](_0x4e98fb);}async[_0x1bab67(0x24a)](_0x4d9c42){const _0x1f95e6=_0x1bab67;await this[_0x1f95e6(0x262)](_0x4d9c42),_0x4d9c42['activeSheet$'][_0x1f95e6(0x3e7)](_0x4cbc42(this[_0x1f95e6(0x297)]))[_0x1f95e6(0x401)](_0x548bf6=>{const _0x56d703=_0x1f95e6;_0x548bf6&&this[_0x56d703(0x381)](_0x548bf6);}),this['_urlService'][_0x1f95e6(0x204)][_0x1f95e6(0x3e7)](_0x4cbc42(this[_0x1f95e6(0x297)]))[_0x1f95e6(0x401)](()=>this[_0x1f95e6(0x262)](_0x4d9c42));}[_0x1bab67(0x381)](_0x1295a9,_0x517aff=!0x1){const _0x367f2d=_0x1bab67,_0x38d818=this[_0x367f2d(0x28f)][_0x367f2d(0x34d)](_0x367f2d(0x29f));_0x1295a9[_0x367f2d(0x1fa)]()!==_0x38d818&&this[_0x367f2d(0x28f)][_0x367f2d(0x326)](_0x367f2d(0x29f),_0x1295a9[_0x367f2d(0x1fa)](),_0x517aff);}async[_0x1bab67(0x262)](_0x4505e8){const _0xe90f56=_0x1bab67;var _0x2ddf3a;const _0x3b982d=this[_0xe90f56(0x28f)][_0xe90f56(0x34d)]('subunit');if(!_0x3b982d||!_0x4505e8[_0xe90f56(0x26b)](_0x3b982d)){const _0x73e2f0=_0x4505e8[_0xe90f56(0x25c)]()[0x0],_0x2d617e=_0x4505e8['getSheetBySheetId'](_0x73e2f0);if(!_0x2d617e)return;this[_0xe90f56(0x381)](_0x2d617e,!0x0),await this['_commandService'][_0xe90f56(0x271)](_0x4822bc['id'],{'unitId':_0x4505e8[_0xe90f56(0x3e6)](),'subUnitId':_0x73e2f0});return;}((_0x2ddf3a=_0x4505e8[_0xe90f56(0x1ff)]())==null?void 0x0:_0x2ddf3a['getSheetId']())!==_0x3b982d&&await this['_commandService']['executeCommand'](_0x4822bc['id'],{'unitId':_0x4505e8['getUnitId'](),'subUnitId':_0x3b982d});}};ce=Li([K(0x0,yt),K(0x1,_0xf1ee96),K(0x2,_0x34fc9a),K(0x3,_0x5a79e2(_0x403737)),K(0x4,_0x173b7e(_0xee83ea))],ce);var Ui=Object[_0x1bab67(0x32a)],Mi=(_0x2ee822,_0x443797,_0x53526d,_0x21edee)=>{const _0x22065d=_0x1bab67;for(var _0x3da9e4=_0x21edee>0x1?void 0x0:_0x21edee?Ui(_0x443797,_0x53526d):_0x443797,_0x23ec6f=_0x2ee822[_0x22065d(0x30a)]-0x1,_0x232280;_0x23ec6f>=0x0;_0x23ec6f--)(_0x232280=_0x2ee822[_0x23ec6f])&&(_0x3da9e4=_0x232280(_0x3da9e4)||_0x3da9e4);return _0x3da9e4;},rt=(_0x16969a,_0x1ddef9)=>(_0x48a164,_0x3b5354)=>_0x1ddef9(_0x48a164,_0x3b5354,_0x16969a);let $e=class extends _0xb8eb03{constructor(_0x2d784d,_0xba3c3b){const _0x502212=_0x1bab67;super(),this[_0x502212(0x242)]=_0x2d784d,this[_0x502212(0x320)]=_0xba3c3b,this[_0x502212(0x38f)]();}[_0x1bab67(0x38f)](){const _0x4e8bf5=_0x1bab67,_0x1fd8d3=this;this[_0x4e8bf5(0x24d)](this[_0x4e8bf5(0x242)][_0x4e8bf5(0x243)]({'onBeforePasteImage':async _0x59b1c3=>{const _0x58e88c=_0x4e8bf5,_0x47ac9a=await _0x1fd8d3[_0x58e88c(0x320)][_0x58e88c(0x3e1)](_0x59b1c3);return _0x47ac9a?{'source':_0x47ac9a[_0x58e88c(0x364)],'imageSourceType':_0x47ac9a[_0x58e88c(0x279)]}:null;}}));}};$e=Mi([rt(0x0,_0x372b4b),rt(0x1,_0x3ee77e)],$e);const ot=[_0x1bab67(0x201),_0x1bab67(0x32f),_0x1bab67(0x26e),'red.300','blue.400',_0x1bab67(0x30f)];class Ke extends _0x570ab2{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x39b47c){const _0x38633c=_0x1bab67;if(this[_0x38633c(0x413)][_0x38633c(0x1f7)](_0x39b47c))return this[_0x38633c(0x413)]['get'](_0x39b47c);const _0x3223a4=ot[this[_0x38633c(0x3de)]];return this[_0x38633c(0x3de)]=(this[_0x38633c(0x3de)]+0x1)%ot['length'],this[_0x38633c(0x413)][_0x38633c(0x25f)](_0x39b47c,_0x3223a4),_0x3223a4;}}function _0x2e9d(){const _0x5db5ca=['InsertColCommandId','includes','_getSaveTimeout','endRow','INVITE_CODE_ALREADY_BOUND','stringify','stage','_docSkeletonManagerService','isActive','getActiveRange','Loading','arc','onStarting','isEditing','DeleteRangeMoveLeftCommandId','docStateChange$','transformMutation','...','join','_transformHistoryAndStateStack','_cursorInfo$','message','onMouseMove','searchParams','maxFormulaLimit','_textBubble','_httpService','USER_NOT_INVITED_CODE','getCurrentSelections','getRelativeToViewportCoord','loadOfflineData','_uploadLog','min','send','_toggleOffline','eventID','_applyCommand','_eventUnsubscribe','name','INVALID_INVITE_CODE','_beforeCloseService','COMPLETION_FINISHED','_monkeyPatchLogService','assignAColorForMemberID','MoveRangeCommandId','length','_unitStatus','INVITE_CODE_HAS_BEEN_UES','UNDEFINED','transformStateCache','yellow.400','_hideTimer','_labelPosition','requireSession','_messageService','_registerDependencies','APPLY_NON_SEQUENTIAL_REVISION','collab-text-anchor-','6wCWZqT','SNAPSHOT_INVALID_SNAPSHOT','ENTITLE_REPORT_LIMIT_EXCEED','onPointerMove$','substring','setInterval','_docTransformSelectionsService','result','RemoveColCommandId','_imageIoService','values','getStateCache','replaceDocRanges','_unitOnClients','TEXT','setParam','_drawRectRange','editingUnit','top','getOwnPropertyDescriptor','YUUMI_ALL_TABLES_IS_INVALID','_docTransformIMECacheService','on-line-icon','collabStatus.conflict','jiqing.500','ENTITLE_INSUFFICIENT_QUOTA','3959336rqhcUs','roomMembers','_hasFormulaInDirtyRanges','all','_handleHeartbeatEvent','actions','_transformUndoRedoStack','CONFLICT','uni.network.url-service','_revisionService','OFFLINE','code','backgroundColor','engine','ONLINE','APPLY_REJECT','1em','_notificationService','_range','_transformPreviousActiveRange','isArray','SYNCED','_anchor','tag','_pollingInterval','complete','storage','_localeService','getParam','REDEMPTION_USER_NOT_ELIGIBLE','_instanceService','clearTimeout','_getSheetObject','_online','_refreshCollabCursors','_collaborationUIEventService','sheetId','unsubscribe','origin','onCommandExecuted','unload','endColumn','LICENSE_EXPORT_SIZE_EXCEEDED','params','sessionStatus$','Unknown\x20user','pushState','range','univer-mr-2\x20univer-flex\x20univer-text-xl','div','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','source','registerRefRange','triggerDblclick','fill','16hXnSNL','setAlpha','onLocalMutation','/universer-api/frontend/logs','forEach','stageInfo','reconnect','_initStatusListener','font','roomMembers$','session.will-retry','getTypeOfUnitAdded$','colorChannel1','_startCalculationLimit','debug','setItem','_docSkeleton','currentTheme$','m2Prime','OTHER_CLIENT_EDITING','_disabled','location','onTransformChange$','ACTIVE_UNIT_EVENT_CHANNEL','href','_updateURLWithCurrentState','cursorInfo','catch','colno','[LogService\x20Error]:\x20','_hovered','setActiveRange','_shapes','width','_onCursorUpdate','_uiPartsService','reason','random','saveTaskMap','_init','_handleEvent','symbol','1683513dNXsUE','collaboration-client.offline-data-not-saved','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collabStatus.synced','now','_getSessionTicket','getTypeOfUnitDisposed$','HEADER_MENU','exhaustSavingTask','UNIVER_SHEET','removeParam','_sheetSkeletonManagerService','startsWith','fillText','startColumn','runId','pluginName','round','wsSessionTicketUrl','7RhDFug','_heartbeatTimer','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_clearPolling','formula.calculation.started','_univerInstanceService','_dataLoaderService','_anchorDot','transformRemoteChangeset','delete','collab-text-range-','getOffsetConfig','_draw','getCurrent','key','evenodd','_docStateChangeManagerService','dirtyRanges','_cursorShapes','[Unhandled\x20Rejection]:\x20','_name','white','_releaseCalculationLimit','/universer-api/license/formula/limit/status','getMemberID','displayName','unitID','disableLocalCache','YUUMI_UNABLE_LOAD_URL','YUUMI_URL_COL_OUT_OF_RANGE','YUUMI_AI_RUN_FAILED','ENTITLE_DUP_SUBSCRIPTION','START_CALCULATION','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','fillStyle','collabStatus.offline','PAYMENT_CHANNEL_NOT_SUPPORT','_checkCalculationAvailable','NOT_COLLAB','getFocusedUnit','with','getAncestorScale','currentSkeleton$','selection','_docTransformStateCacheService','addObject','subscribeEvent','current','ENTITLE_CHAT_LIMIT_EXCEED','closePath','_themeService','dispose','INVALID_ARGUMENT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','MOBILE_VERIFY_CODE_MISMATCH','_selfUnitIDs','_showGuardMessage','_colorIndex','\x20at\x20','UniverIcon','saveImage','_memberID','9173oPAORA','USER_IS_ANONYMOUS','UNAUTHENTICATED','getUnitId','pipe','_saveTaskMap','getRangePointData','split','collab-rect-range-','setTimeout','add','_startSheetCollabCursor','black','labelPosition','getformulaLimitStatusUrl','univer-flex\x20univer-items-center','ENTITLE_CAN_NOT_BUY_LOWER_OTP','RemoveRowCommandId','fillRule','_getAnchorBounding','AUTHORIZE_CODE_ILLEGAL','InsertRangeMoveDownCommandId','replaceState','drawWith','univerjs-icon\x20univerjs-icon-','_colorAssignService','invokeId','_removeCollabCursors','_handleLeaveEvent','replace','subscribe','toRgbString','push','INVITE_CODE_REQUIRED','formula.calculation.unable','ERROR_AGAIN','LICENSE_DISTRO_REJECTED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','on-line-icon_clip0_910_349','size','show','_getMergeRange','lineTo','_setupBeforeClosingHandler','stack','collabCursorState$','_send','enableLocalCache','_assignedColors','text','_id','REDEMPTION_CODE_NOT_STARTED','[CollaborationDataLoaderController]','_initDependencies','next','_removeClearOtherTimer','_color','entries','_collaborationSessionService','addEventListener','InsertRowCommandId','onPointerEnter$','InsertRangeMoveRightCommandId','assign','selections','_docSyncEditingCollabCursorService','_backgroundColor','Warning','save','_injector','APPLY_REVISION_CONFILICT','getCollabEntity$','url(#off-line-icon_clip0_910_343)','MOBILE_HAS_BEEN_BOUND','redoState','_initCommandExecutedListener','YUUMI_ASYNCIO_CANCELLED','syncEditingCollabCursor','url(#on-line-icon_clip0_910_349)','svg','_clearOtherTimers','toString','7167378qZeTnt','filename','_getScale','_registerRenderDependencies','PERMISSION_DENIED','get','_entityInit$','findNodePositionByCharIndex','string','_document','_initEvent','6520705STjPib','idSuffix','YUUMI_RATE_OVER_LIMIT','Error','formula.calculation.waiting','EMAIL_HAS_BEEN_BOUND','_cursor','_refRangeService','collabStatus.notCollab','off-line-icon_clip0_910_343','then','_lastPointer','post','collabStatus.fetchMiss','has','getColorFromTheme','transformMutationsWithChangeset','getSheetId','DeleteRangeMoveUpCommandId','beginPath','unit','disposeUnit','getActiveSheet','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','purple.300','_collabCursorState$','LOGIN_TOKEN_PROCESSING_FAILED','urlChange$','socket$','lineno','_initUnhandledRejectionListener','22910200cHysTn','_initUserListener','_initWindowErrorListener','_scheduleSaving','OffLineIcon','_context','JOIN_ROOM_FAILED','collaboration.single-unit.warning','column','onRendered','_cursors','releaseFormulaLimitUrl','functionsExecutedState','getUnitStatus$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','UPDATE_CURSOR','_updateCollabCursors','REDEMPTION_CODE_HAS_BEEN_CREATED','unshift','_renderManagerService','addObjects','clearInterval','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','clipPath','_scene','RECT','application/json','_scheduleClearOtherTimer','newValue','M0\x200H16V16H0z','type','REDEMPTION_CODE_INACTIVE','FromArray','find','_drawAnchor','_commandService','setStateCache','_collaborationController','mutations','_doCreateSocket','height','session.connection-failed','startFormulaLimitUrl','72051biZGrc','cursorInfo$','max','OTHER_CLIENTS_EDITING','_taskIds','asObservable','bind','PENDING','setConfig','getCurrentRevOfUnit','/universer-api/license/formula/limit/done','doc.mutation.rich-text-editing','/universer-api/license/formula/limit/start','ENSURE_SNAPSHOT_EXECUTION','_docClipboardService','addClipboardHook','0\x200\x2016\x2016','OnLineIcon','getVpScrollXYInfoByPosToVp','NO_OTHER_CLIENTS_EDITING','history','NOT_FOUND','_setupSubUnitSync','USER_NOT_FOUND','_cachedData','disposeWithMe','_toggleOnline','ENTITLE_NEED_BILLING_ADDRESS','Failed','setShapeProps','collaboration.closeRoom','error','getRenderById','_handleHover','_currentUsage','_initCommandInterceptor','getItem','Success','_session','restore','getUnhiddenWorksheets','LOGIN_FAILED','loadUnit','set','ticket','_transformService','_updateSubUnitFromURLParams','deepClone','row','UNIVER_DOC','SNAPSHOT_HAS_BEEN_REMOVED','_updateLocalCursor','currentUsage','_lastResponseTimestamp','_entities','getSheetBySheetId','body','REDEMPTION_CODE_FULLY_REDEEMED','green.600','moveTo','event$','executeCommand','undoState','_maxFormulaLimit','url(#$1','getMember','DATA_SOURCE_TOO_LARGE','init','_hover','imageSourceType','getUnit','getValue','popstate','xlink:href','removeEventListener','none','currentColor','m1Prime','_collabCursorController','enableFrontendLog','_syncEditingCollabCursorService','FETCH_MISS','mask','CURRENT_STATUS_CANNOT_OPERATE','_roomMembers$','some','_configService','parse','_getFormulaLimitStatus','_handleJoinEvent','translate(.97)','_urlService','_render','registerComponent','_config','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','_ensureSubject','_scheduleHeartbeat','limitInfo','dispose$','_checkAndWaitForCalculationPermission','APPLY_DUPLICATED','_localCacheService','textRanges','_collabSessionService','measureText','/run/','subunit','_createSocketURL','http://www.w3.org/2000/svg','skeleton','parseInt','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','status$','path','SOCKET_FAILED','from','_memberService','session.collaboration-timeout','_onCursorDelete','shift','collabStatus.syncing','ranges','_status$','[Window\x20Error]:\x20','APPLY_PERMISSION_DENIED','_logService','data','startRow','_initStatusComponent','attrs','_initResize','UNRECOGNIZED','bottom','CHANGESET_REVISION_CONFILICT','focused$','collab-client.tooltip.reconnect','EMAIL_VERIFY_CODE_MISMATCH','getCurrentUnitForType','_localStorageService','onPointerLeave$','map','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','executionId','registerRenderModule','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_CONNECTOR_URL_NOT_FOUND','color','getDocRanges','_onRefRangeChange','flatMap','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','WECHAT_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','getSkeleton','_setFormulaLimitStatus','_saveCache','getConfig','INTERNAL_ERROR','unitId','runOnServer','USERS_LEAVE','createSocket','getCollabCursors$','children','REDEMPTION_INVALID_CODE','transformIMECache','[RemoteUniscriptService]:\x20no\x20focused\x20unit','LICENSE_MAX_UNITS_EXCEEDED'];_0x2e9d=function(){return _0x5db5ca;};return _0x2e9d();}function _0x4050(_0x33e86a,_0x16ba9d){const _0x2e9dfe=_0x2e9d();return _0x4050=function(_0x40508e,_0x2ab5fb){_0x40508e=_0x40508e-0x1da;let _0x5ddaca=_0x2e9dfe[_0x40508e];return _0x5ddaca;},_0x4050(_0x33e86a,_0x16ba9d);}function $t(_0x118b38){const _0x52e724=_0x1bab67;let _0x28f92c='';for(const _0x3fdf64 of _0x118b38){const {startOffset:_0x47acc0,endOffset:_0x42f66e,isActive:_0xcb52eb,rangeType:_0x157b0f,segmentId:_0x49bca8,segmentPage:_0x5b5d91}=_0x3fdf64;_0x28f92c[_0x52e724(0x30a)]&&(_0x28f92c+=','),_0x28f92c+=_0x47acc0+':'+_0x42f66e+':'+(_0xcb52eb?'1':'0')+':'+_0x157b0f+':'+_0x49bca8+':'+_0x5b5d91;}return _0x28f92c;}function Ai(_0x388dcd){const _0x3b422b=_0x1bab67,_0x11bc14=_0x388dcd[_0x3b422b(0x3ea)](','),_0x49b18e=[];for(const _0x53783c of _0x11bc14){const [_0x95358b,_0x25c31b,_0x305007,_0x47b6ba,_0x256109,_0x492a93]=_0x53783c[_0x3b422b(0x3ea)](':');_0x49b18e[_0x3b422b(0x403)]({'startOffset':Number(_0x95358b),'endOffset':Number(_0x25c31b),'collapsed':_0x95358b===_0x25c31b,'isActive':_0x305007==='1','rangeType':_0x47b6ba===_0x4c6b17[_0x3b422b(0x325)]?_0x4c6b17[_0x3b422b(0x325)]:_0x4c6b17[_0x3b422b(0x222)],'segmentId':typeof _0x256109==_0x3b422b(0x1e6)?String(_0x256109):'','segmentPage':Number(_0x492a93!=null?_0x492a93:-0x1)});}return _0x49b18e[_0x3b422b(0x289)](_0x5e7346=>_0x5e7346[_0x3b422b(0x2e5)])||(_0x49b18e[0x0][_0x3b422b(0x2e5)]=!0x0),_0x49b18e;}class ze extends _0xb8eb03{constructor(){const _0x1be5e7=_0x1bab67;super(...arguments),_(this,_0x1be5e7(0x202),new _0x42c9f3(null)),_(this,_0x1be5e7(0x410),this['_collabCursorState$'][_0x1be5e7(0x239)]());}[_0x1bab67(0x430)](_0x206d47){const _0x32380c=_0x1bab67,{unitID:_0x21aa26,memberID:_0x10a199,textRanges:_0x3f0b89}=_0x206d47,_0xa32e66=$t(_0x3f0b89);if(_0xa32e66==='')return;const _0xcbc59a={'unitID':_0x21aa26,'memberID':_0x10a199,'selection':_0xa32e66};this[_0x32380c(0x202)]['next'](_0xcbc59a);}}var Pi=Object[_0x1bab67(0x32a)],wi=(_0x4744d7,_0x41355d,_0x1862b7,_0x5b48cb)=>{const _0x186e56=_0x1bab67;for(var _0x48bddd=_0x5b48cb>0x1?void 0x0:_0x5b48cb?Pi(_0x41355d,_0x1862b7):_0x41355d,_0x4397ed=_0x4744d7[_0x186e56(0x30a)]-0x1,_0x178dce;_0x4397ed>=0x0;_0x4397ed--)(_0x178dce=_0x4744d7[_0x4397ed])&&(_0x48bddd=_0x178dce(_0x48bddd)||_0x48bddd);return _0x48bddd;},A=(_0x413cdf,_0x21cd16)=>(_0x542c94,_0x53c47d)=>_0x21cd16(_0x542c94,_0x53c47d,_0x413cdf);const yi=0x12c,$i=0x64;let xe=class extends _0xb8eb03{constructor(_0x2cc6ba,_0x97313f,_0x5ec303,_0x209907,_0x30de5a,_0x7ebdcf,_0x4ddff1,_0x21d128,_0x2bd437){const _0xc537d4=_0x1bab67;super(),_(this,_0xc537d4(0x352),!0x1),_(this,_0xc537d4(0x38f),!0x1),_(this,_0xc537d4(0x2f1),new _0x42c9f3(new Map())),_(this,_0xc537d4(0x235),this[_0xc537d4(0x2f1)][_0xc537d4(0x239)]()),_(this,_0xc537d4(0x288),new _0x42c9f3([])),_(this,_0xc537d4(0x371),this['_roomMembers$'][_0xc537d4(0x3e7)](_0x48e44d(yi))),_(this,'_updateLocalCursor',_0x3dabb7(_0xf92d62=>{const _0x5ba6c3=_0xc537d4,_0x36eefa={'eventID':_0x4ec7f0[_0x5ba6c3(0x217)],'data':{'unitID':this[_0x5ba6c3(0x3bf)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0xf92d62)}};this[_0x5ba6c3(0x25a)][_0x5ba6c3(0x2fe)](_0x36eefa,this[_0x5ba6c3(0x3bf)]);},$i)),(this['unitID']=_0x2cc6ba,this[_0xc537d4(0x25a)]=_0x97313f,this['_injector']=_0x5ec303,this[_0xc537d4(0x3fc)]=_0x209907,this['_memberService']=_0x30de5a,this[_0xc537d4(0x284)]=_0x7ebdcf,this[_0xc537d4(0x261)]=_0x4ddff1,this['_univerInstanceService']=_0x21d128,this[_0xc537d4(0x22c)]=_0x2bd437);}get[_0x1bab67(0x382)](){const _0x30e132=_0x1bab67;return this[_0x30e132(0x2f1)][_0x30e132(0x27b)]();}get[_0x1bab67(0x332)](){const _0x48be76=_0x1bab67;return this[_0x48be76(0x288)][_0x48be76(0x27b)]();}['dispose'](){const _0x20ac2c=_0x1bab67;super[_0x20ac2c(0x3d8)](),this[_0x20ac2c(0x2f1)][_0x20ac2c(0x419)](new Map()),this[_0x20ac2c(0x2f1)][_0x20ac2c(0x34a)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x20ac2c(0x34a)]();}['init'](){const _0x209e6f=_0x1bab67;this[_0x209e6f(0x38f)]||(this['_init']=!0x0,this['_session'][_0x209e6f(0x35d)][_0x209e6f(0x3e7)](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x28ce6e=>{const _0x32d859=_0x209e6f;_0x28ce6e===_0x407a80[_0x32d859(0x33f)]?this[_0x32d859(0x24e)]():this[_0x32d859(0x2ff)]();}),this[_0x209e6f(0x25a)]['event$']['pipe'](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x38d642=>{const _0x4cd99e=_0x209e6f,_0x578474=_0x38d642['eventID'];_0x578474===_0x4ec7f0[_0x4cd99e(0x217)]&&this[_0x4cd99e(0x38a)](_0x38d642),_0x578474===_0x4ec7f0[_0x4cd99e(0x2d5)]&&this[_0x4cd99e(0x2ab)](_0x38d642);}),this['disposeWithMe'](this[_0x209e6f(0x22c)][_0x209e6f(0x358)](_0x4f7fa8=>{const _0x46a6c3=_0x209e6f,_0x4795bf=_0x4f7fa8['params'];_0x4795bf!=null&&this[_0x46a6c3(0x352)]&&_0x4f7fa8['id']===_0x5817ee['id']&&_0x4795bf['unitId']===this[_0x46a6c3(0x3bf)]&&_0x4795bf[_0x46a6c3(0x2ea)]===!0x1&&_0x4795bf['ranges']['length']>0x0&&this[_0x46a6c3(0x267)](_0x4795bf['ranges']);})),this[_0x209e6f(0x284)][_0x209e6f(0x410)]['pipe'](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x2cd82e=>{const _0x2579e8=_0x209e6f;if((_0x2cd82e==null?void 0x0:_0x2cd82e[_0x2579e8(0x3bf)])!==this['unitID'])return;const _0x24ac30={'eventID':_0x4ec7f0[_0x2579e8(0x217)],'data':_0x2cd82e};this[_0x2579e8(0x38a)](_0x24ac30);}),this['disposeWithMe'](this[_0x209e6f(0x22c)]['onCommandExecuted'](_0x1a984c=>{const _0x43c3fe=_0x209e6f;if(_0x1a984c[_0x43c3fe(0x35c)]==null)return;const _0x2b286c=_0x1a984c[_0x43c3fe(0x35c)];if(_0x1a984c['id']!==_0x435618['id']||_0x2b286c['unitId']!==this[_0x43c3fe(0x3bf)])return;const _0x57ee92={'id':_0x43c3fe(0x23f),'params':_0x2b286c},_0x53614f=this[_0x43c3fe(0x382)];for(const [_0x172403,_0x2ce6e2]of _0x53614f){const _0x526717={'id':_0x43c3fe(0x23f),'params':{'unitId':this[_0x43c3fe(0x3bf)],'actions':null,'textRanges':_0x2ce6e2[_0x43c3fe(0x2ae)]}},_0x41c021=this[_0x43c3fe(0x261)][_0x43c3fe(0x2ed)](_0x57ee92,_0x526717,!0x1);if(_0x571730(_0x41c021))throw _0x41c021[_0x43c3fe(0x253)];_0x53614f[_0x43c3fe(0x25f)](_0x172403,{..._0x2ce6e2,'ranges':_0x41c021[_0x43c3fe(0x37a)][_0x43c3fe(0x35c)]['textRanges']});}queueMicrotask(()=>{const _0x35780f=_0x43c3fe;this[_0x35780f(0x2f1)]['next'](_0x53614f);});})));}[_0x1bab67(0x38a)](_0x2ba568){const _0x4e02f1=_0x1bab67;var _0x1bbe31,_0x240616;const {memberID:_0x590621,selection:_0x1630af}=_0x2ba568['data'],_0x3ac75c=Ai(_0x1630af),_0x2348ae=(_0x240616=(_0x1bbe31=this[_0x4e02f1(0x2a9)]['getMember'](this[_0x4e02f1(0x3bf)],_0x590621))==null?void 0x0:_0x1bbe31[_0x4e02f1(0x303)])!=null?_0x240616:_0x4e02f1(0x35e),_0x4dcf64={'color':this[_0x4e02f1(0x3fc)][_0x4e02f1(0x308)](_0x590621),'name':_0x2348ae,'ranges':_0x3ac75c},_0x471202=this[_0x4e02f1(0x382)];_0x471202[_0x4e02f1(0x25f)](_0x590621,_0x4dcf64),this[_0x4e02f1(0x2f1)][_0x4e02f1(0x419)](_0x471202);}[_0x1bab67(0x2ab)](_0x5339ba){const _0x332e13=_0x1bab67,{memberID:_0x33e030}=_0x5339ba[_0x332e13(0x2b3)],_0x112f20=this[_0x332e13(0x382)];_0x112f20['delete'](_0x33e030),this[_0x332e13(0x2f1)]['next'](_0x112f20);}['_toggleOnline'](){const _0x32ef7b=_0x1bab67;var _0x2673d0;if(this[_0x32ef7b(0x352)]=!0x0,((_0x2673d0=this[_0x32ef7b(0x3aa)][_0x32ef7b(0x3cc)]())==null?void 0x0:_0x2673d0[_0x32ef7b(0x3e6)]())!==this[_0x32ef7b(0x3bf)])return;const _0xecd3f1=this[_0x32ef7b(0x428)][_0x32ef7b(0x1e3)](_0xd5f03f)[_0x32ef7b(0x2c8)]();Array['isArray'](_0xecd3f1)&&_0xecd3f1[_0x32ef7b(0x30a)]>0x0&&this[_0x32ef7b(0x267)](_0xecd3f1);}[_0x1bab67(0x2ff)](){const _0x389f77=_0x1bab67;this[_0x389f77(0x352)]=!0x1;}};xe=wi([A(0x2,_0x5a79e2(_0x41a636)),A(0x3,_0x5a79e2(Ke)),A(0x4,_0x5a79e2(_0x4b1a14)),A(0x5,_0x5a79e2(ze)),A(0x6,_0x1b61b0),A(0x7,_0x3b2157),A(0x8,_0x34fc9a)],xe);var xi=Object[_0x1bab67(0x32a)],Bi=(_0xac4c3,_0x32e5cf,_0x10bf03,_0x52eb7f)=>{const _0xfde1e3=_0x1bab67;for(var _0x25811b=_0x52eb7f>0x1?void 0x0:_0x52eb7f?xi(_0x32e5cf,_0x10bf03):_0x32e5cf,_0x30e0c6=_0xac4c3[_0xfde1e3(0x30a)]-0x1,_0xc79a2;_0x30e0c6>=0x0;_0x30e0c6--)(_0xc79a2=_0xac4c3[_0x30e0c6])&&(_0x25811b=_0xc79a2(_0x25811b)||_0x25811b);return _0x25811b;},B=(_0x2738ba,_0x193353)=>(_0x44e12f,_0x364eb2)=>_0x193353(_0x44e12f,_0x364eb2,_0x2738ba);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x154648=[],_0x146645=!0x1;return _0x35e7b3=>{const _0x4109c4=_0x4050;_0x154648[_0x4109c4(0x403)](_0x35e7b3),_0x146645||(_0x146645=!0x0,setTimeout(()=>{_0x154648['forEach'](_0x303db8=>_0x303db8()),_0x154648=[],_0x146645=!0x1;}));};};let Be=class extends _0xb8eb03{constructor(_0x332386,_0x58c3f7,_0x51df86,_0x363c0b,_0xe23248,_0xa8011b,_0x481e6e,_0x1ecd3b){const _0x1476c0=_0x1bab67;super(),_(this,_0x1476c0(0x352),!0x1),_(this,_0x1476c0(0x38f),!0x1),_(this,'_cursorInfo$',new _0x42c9f3(new Map())),_(this,_0x1476c0(0x235),this['_cursorInfo$']['asObservable']()),_(this,_0x1476c0(0x288),new _0x42c9f3([])),_(this,'roomMembers$',this[_0x1476c0(0x288)][_0x1476c0(0x3e7)](_0x48e44d(Fi))),_(this,'_updateLocalCursor',_0x3dabb7((_0xa2c941,_0x46eff0)=>{const _0x49ffe6=_0x1476c0,_0x54f159={'eventID':_0x4ec7f0[_0x49ffe6(0x217)],'data':{'unitID':this[_0x49ffe6(0x3bf)],'memberID':this[_0x49ffe6(0x25a)][_0x49ffe6(0x3bd)](),'selection':_0x44242a(_0xa2c941,_0x46eff0[_0x49ffe6(0x360)])}};this[_0x49ffe6(0x25a)][_0x49ffe6(0x2fe)](_0x54f159,this['unitID']);},ki)),(this[_0x1476c0(0x3bf)]=_0x332386,this[_0x1476c0(0x25a)]=_0x58c3f7,this['_injector']=_0x51df86,this[_0x1476c0(0x3fc)]=_0x363c0b,this['_memberService']=_0xe23248,this[_0x1476c0(0x3aa)]=_0xa8011b,this[_0x1476c0(0x22c)]=_0x481e6e,this[_0x1476c0(0x1f0)]=_0x1ecd3b);}get[_0x1bab67(0x382)](){const _0x3a5cef=_0x1bab67;return this[_0x3a5cef(0x2f1)][_0x3a5cef(0x27b)]();}get[_0x1bab67(0x332)](){const _0x29e0eb=_0x1bab67;return this[_0x29e0eb(0x288)][_0x29e0eb(0x27b)]();}[_0x1bab67(0x3d8)](){const _0xd12a52=_0x1bab67;super[_0xd12a52(0x3d8)](),this['_cursorInfo$'][_0xd12a52(0x419)](new Map()),this['_cursorInfo$'][_0xd12a52(0x34a)](),this[_0xd12a52(0x288)]['next']([]),this['_roomMembers$']['complete']();}[_0x1bab67(0x277)](){const _0x20c187=_0x1bab67;this[_0x20c187(0x38f)]||(this[_0x20c187(0x38f)]=!0x0,this[_0x20c187(0x25a)][_0x20c187(0x35d)]['pipe'](_0x4cbc42(this[_0x20c187(0x297)]))[_0x20c187(0x401)](_0x3d331d=>{const _0x302f24=_0x20c187;_0x3d331d===_0x407a80[_0x302f24(0x33f)]?this[_0x302f24(0x24e)]():this['_toggleOffline']();}),this[_0x20c187(0x25a)][_0x20c187(0x270)]['pipe'](_0x4cbc42(this['dispose$']))[_0x20c187(0x401)](_0x31375e=>{const _0x419f04=_0x20c187,_0x4880c1=_0x31375e[_0x419f04(0x300)];_0x4880c1===_0x4ec7f0[_0x419f04(0x217)]&&this[_0x419f04(0x38a)](_0x31375e),_0x4880c1===_0x4ec7f0[_0x419f04(0x2d5)]&&this['_onCursorDelete'](_0x31375e);}),this[_0x20c187(0x2c9)](),this[_0x20c187(0x24d)](this[_0x20c187(0x22c)][_0x20c187(0x358)](_0x6715af=>{const _0x3dc817=_0x20c187;if(this[_0x3dc817(0x352)]&&_0x6715af['id']===_0x22809a['id']&&_0x6715af['params'][_0x3dc817(0x2d3)]===this['unitID']){const _0x54b755=_0x6715af['params'];this[_0x3dc817(0x267)](_0x54b755['subUnitId'],_0x54b755[_0x3dc817(0x423)][0x0]);}})));}[_0x1bab67(0x38a)](_0x1950f6){const _0xf67bce=_0x1bab67;var _0x1cb8df,_0x324fb2;const {memberID:_0x50683e,selection:_0x4ac511}=_0x1950f6[_0xf67bce(0x2b3)],{sheetName:_0x25d928,range:_0x41de96}=_0x374d74(_0x4ac511),_0x1f7c9e={'name':(_0x324fb2=(_0x1cb8df=this[_0xf67bce(0x2a9)][_0xf67bce(0x275)](this[_0xf67bce(0x3bf)],_0x50683e))==null?void 0x0:_0x1cb8df[_0xf67bce(0x303)])!=null?_0x324fb2:'Unknown\x20user','range':this['_getMergeRange'](_0x25d928,_0x41de96),'sheetID':_0x25d928,'color':this[_0xf67bce(0x3fc)][_0xf67bce(0x308)](_0x50683e),'selection':_0x4ac511},_0x46f238=this[_0xf67bce(0x382)];_0x46f238['set'](_0x50683e,_0x1f7c9e),this[_0xf67bce(0x2f1)]['next'](_0x46f238);}[_0x1bab67(0x2ab)](_0x28fa8d){const _0x18d9ca=_0x1bab67,{memberID:_0x48726b}=_0x28fa8d[_0x18d9ca(0x2b3)],_0x5a372e=this['cursorInfo'];_0x5a372e[_0x18d9ca(0x3ae)](_0x48726b),this[_0x18d9ca(0x2f1)][_0x18d9ca(0x419)](_0x5a372e);}[_0x1bab67(0x40c)](_0x3c2bed,_0x330147){const _0x2d1e6e=_0x1bab67;var _0x1890e2,_0xfc31d9;const _0x817d41=(_0xfc31d9=(_0x1890e2=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x2d1e6e(0x3bf)]))==null?void 0x0:_0x1890e2[_0x2d1e6e(0x26b)](_0x3c2bed))==null?void 0x0:_0xfc31d9['getMergeData']();return(_0x817d41==null?void 0x0:_0x817d41[_0x2d1e6e(0x22a)](_0x33c289=>_0x3f41b8['contains'](_0x33c289,_0x330147)))||_0x330147;}[_0x1bab67(0x2c9)](){const _0x268731=_0x1bab67,_0x816bf0=new _0x59db6f(),_0x25db48=Hi(),_0x361251=()=>{const _0x3054b1=_0x4050;_0x816bf0['dispose']();const _0x1d67db=(_0x473132,_0x119c72,_0x33fe0c,_0x48d8e5)=>{const _0x2bb777=_0x4050;let _0x52c7f6=[];switch(_0x473132['id']){case _0x59c1c3[_0x2bb777(0x2eb)]:{_0x52c7f6=_0x25bf2f(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x1fb)]:{_0x52c7f6=_0x54b924(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x2dd)]:{_0x52c7f6=_0x922e73(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x3f8)]:{_0x52c7f6=_0x5b3cb2(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x421)]:{_0x52c7f6=_0x2041ff(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x41f)]:{_0x52c7f6=_0x43caa4(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x309)]:{_0x52c7f6=_0x2e1057(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x31f)]:{_0x52c7f6=_0x3c8f15(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x3f4)]:{_0x52c7f6=_0x581694(_0x473132,_0x48d8e5);break;}}const _0x15e98e=_0x57870a(_0x52c7f6,_0x48d8e5),_0x237d32=this['cursorInfo']['get'](_0x119c72);if(_0x237d32&&_0x15e98e){const _0x5b21eb={..._0x237d32,'range':_0x15e98e};this[_0x2bb777(0x382)]['set'](_0x119c72,_0x5b21eb),_0x25db48(()=>{const _0x4ba6e7=_0x2bb777,_0x2f5d86=this['_refRangeService'][_0x4ba6e7(0x365)](_0x15e98e,_0x4697e0=>(_0x2f5d86[_0x4ba6e7(0x3d8)](),_0x1d67db(_0x4697e0,_0x119c72,_0x33fe0c,_0x15e98e)));_0x816bf0['add'](_0x2f5d86);});}return{'redos':[],'undos':[]};};this[_0x3054b1(0x382)][_0x3054b1(0x36c)]((_0x910bd8,_0x24506b)=>{const _0x4a14b5=_0x3054b1,{range:_0x475436,sheetID:_0x5c44c0}=_0x910bd8,_0x58c18c=this[_0x4a14b5(0x1f0)]['registerRefRange'](_0x475436,_0x39a82f=>(_0x58c18c[_0x4a14b5(0x3d8)](),_0x1d67db(_0x39a82f,_0x24506b,_0x5c44c0,_0x475436)));_0x816bf0[_0x4a14b5(0x3ed)](_0x58c18c);});};this[_0x268731(0x24d)](_0x2b2711(this[_0x268731(0x2f1)][_0x268731(0x401)](()=>{_0x361251();})));}['_toggleOnline'](){const _0x4def66=_0x1bab67;var _0x5edce7,_0x454ffd;if(this[_0x4def66(0x352)]=!0x0,((_0x5edce7=this[_0x4def66(0x3aa)][_0x4def66(0x3cc)]())==null?void 0x0:_0x5edce7[_0x4def66(0x3e6)]())!==this[_0x4def66(0x3bf)])return;const _0x13446e=(_0x454ffd=this[_0x4def66(0x428)][_0x4def66(0x1e3)](_0x4ae7c3)[_0x4def66(0x2f9)]())==null?void 0x0:_0x454ffd[0x0],_0x53becd=this['_univerInstanceService'][_0x4def66(0x2be)](_0x547011[_0x4def66(0x39b)])['getActiveSheet']();_0x13446e&&_0x53becd&&this[_0x4def66(0x267)](_0x53becd[_0x4def66(0x1fa)](),_0x13446e);}[_0x1bab67(0x2ff)](){const _0x232326=_0x1bab67;this[_0x232326(0x352)]=!0x1;}};Be=Bi([B(0x2,_0x5a79e2(_0x41a636)),B(0x3,_0x5a79e2(Ke)),B(0x4,_0x5a79e2(_0x4b1a14)),B(0x5,_0x3b2157),B(0x6,_0x34fc9a),B(0x7,_0x5a79e2(_0x474d9d))],Be);var Yi=Object[_0x1bab67(0x32a)],Wi=(_0x3e0a85,_0x5189a6,_0x3ff1db,_0x51c07d)=>{const _0x1066eb=_0x1bab67;for(var _0x55330e=_0x51c07d>0x1?void 0x0:_0x51c07d?Yi(_0x5189a6,_0x3ff1db):_0x5189a6,_0x644fcb=_0x3e0a85[_0x1066eb(0x30a)]-0x1,_0x393ab2;_0x644fcb>=0x0;_0x644fcb--)(_0x393ab2=_0x3e0a85[_0x644fcb])&&(_0x55330e=_0x393ab2(_0x55330e)||_0x55330e);return _0x55330e;},Ce=(_0x223de9,_0x24b3f3)=>(_0x56355c,_0xee9af2)=>_0x24b3f3(_0x56355c,_0xee9af2,_0x223de9);let H=class extends _0xb8eb03{constructor(_0x7bc3a4,_0x4331ed,_0x1f8c29){const _0x4c6b36=_0x1bab67;super(),_(this,'_entities',new Map()),_(this,_0x4c6b36(0x1e4),new _0xbe2b9d()),(this[_0x4c6b36(0x3aa)]=_0x7bc3a4,this[_0x4c6b36(0x428)]=_0x4331ed,this[_0x4c6b36(0x29c)]=_0x1f8c29,this[_0x4c6b36(0x38f)]());}['dispose'](){const _0x1a8ab7=_0x1bab67;super[_0x1a8ab7(0x3d8)](),this[_0x1a8ab7(0x1e4)][_0x1a8ab7(0x34a)](),this[_0x1a8ab7(0x26a)][_0x1a8ab7(0x36c)](_0x1f977f=>_0x1f977f[_0x1a8ab7(0x3d8)]());}['getCollabCursors$'](_0x2bf058){const _0x2c97f6=_0x1bab67;return this[_0x2c97f6(0x26a)][_0x2c97f6(0x1f7)](_0x2bf058)?this['_entities'][_0x2c97f6(0x1e3)](_0x2bf058)[_0x2c97f6(0x235)]:this['_entityInit$'][_0x2c97f6(0x3e7)](_0x22f5b1(_0xfab95=>_0xfab95[_0x2c97f6(0x3bf)]===_0x2bf058),_0x404b1e(_0x57cc0d=>_0x57cc0d['cursorInfo$']));}[_0x1bab67(0x38f)](){const _0x429eaf=_0x1bab67;this[_0x429eaf(0x3aa)][_0x429eaf(0x373)](_0x547011[_0x429eaf(0x39b)])[_0x429eaf(0x3e7)](_0x4cbc42(this['dispose$']))[_0x429eaf(0x401)](async _0x1cfdc6=>{const _0x4f9742=_0x429eaf,_0x38d183=_0x1cfdc6[_0x4f9742(0x3e6)](),_0x252792=await this[_0x4f9742(0x3ee)](_0x38d183);this[_0x4f9742(0x1e4)][_0x4f9742(0x419)](_0x252792),this[_0x4f9742(0x26a)][_0x4f9742(0x25f)](_0x38d183,_0x252792);}),this[_0x429eaf(0x3aa)]['getTypeOfUnitAdded$'](_0x547011['UNIVER_DOC'])[_0x429eaf(0x3e7)](_0x4cbc42(this[_0x429eaf(0x297)]))[_0x429eaf(0x3e7)](_0x22f5b1(_0x2e11f6=>!_0x2e11f6['getUnitId']()[_0x429eaf(0x39e)]('__')))['subscribe'](async _0x1aaea4=>{const _0xe1adc3=_0x429eaf,_0x55cc06=_0x1aaea4[_0xe1adc3(0x3e6)](),_0x423f68=await this['_startDocCollabCursor'](_0x55cc06);this[_0xe1adc3(0x1e4)][_0xe1adc3(0x419)](_0x423f68),this[_0xe1adc3(0x26a)][_0xe1adc3(0x25f)](_0x55cc06,_0x423f68);}),_0x33fea5(this['_univerInstanceService'][_0x429eaf(0x398)](_0x547011[_0x429eaf(0x265)]),this['_univerInstanceService'][_0x429eaf(0x398)](_0x547011['UNIVER_SHEET']))[_0x429eaf(0x3e7)](_0x4cbc42(this[_0x429eaf(0x297)]))[_0x429eaf(0x401)](_0x6d11e5=>{const _0x48a371=_0x429eaf,_0x2091bf=_0x6d11e5[_0x48a371(0x3e6)](),_0x4b452f=this[_0x48a371(0x26a)]['get'](_0x2091bf);_0x4b452f&&(_0x4b452f[_0x48a371(0x3d8)](),this[_0x48a371(0x26a)][_0x48a371(0x3ae)](_0x2091bf));});}async[_0x1bab67(0x3ee)](_0x4084cb){const _0x2e4336=_0x1bab67,_0x424803=await this[_0x2e4336(0x29c)][_0x2e4336(0x312)](_0x4084cb),_0x3ca671=this[_0x2e4336(0x428)]['createInstance'](Be,_0x4084cb,_0x424803);return _0x3ca671[_0x2e4336(0x277)](),_0x3ca671;}async['_startDocCollabCursor'](_0x556ce0){const _0x1a6d11=_0x1bab67,_0xa67d9f=await this[_0x1a6d11(0x29c)][_0x1a6d11(0x312)](_0x556ce0),_0x485a3e=this[_0x1a6d11(0x428)]['createInstance'](xe,_0x556ce0,_0xa67d9f);return _0x485a3e[_0x1a6d11(0x277)](),_0x485a3e;}};H=Wi([Ce(0x0,_0x3b2157),Ce(0x1,_0x5a79e2(_0x41a636)),Ce(0x2,_0x5a79e2(_0x5b8361))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x2ed9dc,_0x22b7c2){const _0x16c6c4=_0x1bab67;let {radius:_0x199139,width:_0x9c5e95,height:_0x2b88cb}=_0x22b7c2;_0x199139=_0x199139!=null?_0x199139:0x0,_0x9c5e95=_0x9c5e95!=null?_0x9c5e95:0x1e,_0x2b88cb=_0x2b88cb!=null?_0x2b88cb:0x1e;let _0x30faaa=0x0,_0x418bac=0x0,_0x3b7346=0x0;_0x30faaa=_0x418bac=_0x3b7346=Math[_0x16c6c4(0x2fd)](_0x199139,_0x9c5e95/0x2,_0x2b88cb/0x2),_0x2ed9dc[_0x16c6c4(0x1fc)](),_0x2ed9dc[_0x16c6c4(0x26f)](_0x30faaa,0x0),_0x2ed9dc['lineTo'](_0x9c5e95-_0x418bac,0x0),_0x2ed9dc['arc'](_0x9c5e95-_0x418bac,_0x418bac,_0x418bac,Math['PI']*0x3/0x2,0x0,!0x1),_0x2ed9dc[_0x16c6c4(0x40d)](_0x9c5e95,_0x2b88cb-_0x3b7346),_0x2ed9dc[_0x16c6c4(0x2e8)](_0x9c5e95-_0x3b7346,_0x2b88cb-_0x3b7346,_0x3b7346,0x0,Math['PI']/0x2,!0x1),_0x2ed9dc[_0x16c6c4(0x40d)](0x0,_0x2b88cb),_0x2ed9dc['lineTo'](0x0,_0x30faaa),_0x2ed9dc['arc'](_0x30faaa,_0x30faaa,_0x30faaa,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2ed9dc[_0x16c6c4(0x3d6)](),_0x22b7c2['fill']&&(_0x2ed9dc[_0x16c6c4(0x427)](),_0x2ed9dc[_0x16c6c4(0x3c7)]=_0x22b7c2[_0x16c6c4(0x367)],_0x22b7c2[_0x16c6c4(0x3f5)]===_0x16c6c4(0x3b4)?_0x2ed9dc[_0x16c6c4(0x367)](_0x16c6c4(0x3b4)):_0x2ed9dc[_0x16c6c4(0x367)](),_0x2ed9dc['restore']());}class Ee extends _0x2d6f87{constructor(_0x37dc14,_0x1665ac){const _0x410001=_0x1bab67;super(_0x37dc14,_0x1665ac),_(this,_0x410001(0x2c7)),_(this,_0x410001(0x414)),(this[_0x410001(0x2c7)]=_0x1665ac==null?void 0x0:_0x1665ac['color'],this[_0x410001(0x414)]=_0x1665ac==null?void 0x0:_0x1665ac[_0x410001(0x414)]);}static[_0x1bab67(0x3fa)](_0x2f4077,_0x36b00d){const _0x36524c=_0x1bab67,{text:_0x15bf5c,color:_0x193dca}=_0x36b00d;_0x2f4077[_0x36524c(0x427)](),_0x2f4077[_0x36524c(0x370)]=_0x36524c(0x200);const _0xf8a9dd=_0x2f4077['measureText'](_0x15bf5c)[_0x36524c(0x389)],_0x16d201=Math[_0x36524c(0x2fd)](_0xf8a9dd+0x2*Re,at);Vi(_0x2f4077,{'height':Q,'radius':0x4,'width':_0x16d201,'fill':_0x193dca}),_0x2f4077[_0x36524c(0x3c7)]='#FFF';const _0x1bb07f=Re,_0x5dc167=Q-ji,_0x3b7c0d=at-0x2*Re;if(_0xf8a9dd>_0x3b7c0d){let _0x66d3f6='',_0x5cca07=0x0;for(const _0x286f33 of _0x15bf5c){const _0x1b70bf=_0x2f4077[_0x36524c(0x29d)](_0x286f33)[_0x36524c(0x389)];if(_0x5cca07+_0x1b70bf<=_0x3b7c0d-_0x2f4077[_0x36524c(0x29d)](_0x36524c(0x2ee))[_0x36524c(0x389)])_0x66d3f6+=_0x286f33,_0x5cca07+=_0x1b70bf;else{_0x66d3f6+=_0x36524c(0x2ee);break;}}_0x2f4077[_0x36524c(0x39f)](_0x66d3f6,_0x1bb07f,_0x5dc167);}else _0x2f4077[_0x36524c(0x39f)](_0x15bf5c,_0x1bb07f,_0x5dc167);_0x2f4077[_0x36524c(0x25b)]();}[_0x1bab67(0x3b1)](_0x3ffa06){const _0x2f4ba7=_0x1bab67;Ee[_0x2f4ba7(0x3fa)](_0x3ffa06,this);}}const De=_0x1bab67(0x316),Xi=_0x1bab67(0x3af),Gi=_0x1bab67(0x3eb),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x34246f,_0x28e6af,_0x590b1e,_0xc2fae8){const _0x5509ba=_0x1bab67;_(this,'_shapes',[]),_(this,_0x5509ba(0x347),null),_(this,_0x5509ba(0x2f6),null),_(this,_0x5509ba(0x3ac),null),_(this,_0x5509ba(0x310),null),_(this,_0x5509ba(0x302),null),(this[_0x5509ba(0x1ef)]=_0x34246f,this['_scene']=_0x28e6af,this[_0x5509ba(0x378)]=_0x590b1e,this[_0x5509ba(0x1e7)]=_0xc2fae8,this[_0x5509ba(0x290)]());}set[_0x1bab67(0x278)](_0x35123a){const _0x55b355=_0x1bab67;_0x35123a?(this['_anchorDot']&&this[_0x55b355(0x3ac)]['hide'](),this['_textBubble']&&this['_textBubble']['show']()):(this['_anchorDot']&&this[_0x55b355(0x3ac)][_0x55b355(0x40b)](),this[_0x55b355(0x2f6)]&&this[_0x55b355(0x2f6)]['hide']());}[_0x1bab67(0x3d8)](){const _0x5345ed=_0x1bab67;for(const _0x111cd9 of this['_shapes'])_0x111cd9[_0x5345ed(0x3d8)]();this[_0x5345ed(0x2f6)]&&this[_0x5345ed(0x2f6)][_0x5345ed(0x3d8)](),this[_0x5345ed(0x3ac)]&&this[_0x5345ed(0x3ac)][_0x5345ed(0x3d8)](),this[_0x5345ed(0x347)]&&this[_0x5345ed(0x347)][_0x5345ed(0x3d8)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x57d489=_0x1bab67;var _0x351098;const {_docSkeleton:_0x50e0ac,_document:_0xe3e00e}=this,{color:_0x195c9b,name:_0x30b5f1,ranges:_0xbb3eee}=this[_0x57d489(0x1ef)],_0x188535=_0xe3e00e[_0x57d489(0x3b0)](),{docsLeft:_0x485e45,docsTop:_0x4524cd}=_0x188535,_0xc63472=new _0x267305(_0x188535,_0x50e0ac);for(const {startOffset:_0x5c5174,endOffset:_0x296b02,rangeType:_0x3fdc38,segmentId:_0x4b5d57,segmentPage:_0x20b7ab,collapsed:_0x2da7c7,isActive:_0x9e50f4}of _0xbb3eee){const _0x4767b5=_0x50e0ac[_0x57d489(0x1e5)](_0x5c5174,!0x0,_0x4b5d57,_0x20b7ab);let _0x5dfc1f=_0x50e0ac[_0x57d489(0x1e5)](_0x296b02,!0x0,_0x4b5d57,_0x20b7ab);if(_0x5dfc1f==null&&(_0x5dfc1f=_0x50e0ac[_0x57d489(0x1e5)](_0x296b02-0x1,!0x1,_0x4b5d57,_0x20b7ab)),_0x9e50f4){const {contentBoxPointGroup:_0x3e7209}=_0xc63472[_0x57d489(0x3e9)](_0x5dfc1f,_0x5dfc1f);if(_0x3e7209[_0x57d489(0x30a)]===0x0)continue;this['_drawAnchor'](_0x195c9b,_0x3e7209,_0x485e45,_0x4524cd,_0x30b5f1),this[_0x57d489(0x302)]=this[_0x57d489(0x255)]();}if(_0x4767b5&&_0x5dfc1f){if(_0x3fdc38===_0x4c6b17[_0x57d489(0x222)]){const _0xdc662e=new _0x48404a(_0x188535,_0x50e0ac),{pointGroup:_0x4a0b48}=(_0x351098=_0xdc662e['getRangePointData'](_0x4767b5,_0x5dfc1f))!=null?_0x351098:{};if(_0x4a0b48==null||_0x4a0b48[_0x57d489(0x30a)]===0x0)continue;this['_drawRectRange'](_0x195c9b,_0x4a0b48,_0x485e45,_0x4524cd);}else{if(!_0x2da7c7){const {borderBoxPointGroup:_0x15fe20}=_0xc63472[_0x57d489(0x3e9)](_0x4767b5,_0x5dfc1f);if(_0x15fe20[_0x57d489(0x30a)]===0x0)continue;this['_drawTextRange'](_0x195c9b,_0x15fe20,_0x485e45,_0x4524cd);}}}}}[_0x1bab67(0x22b)](_0x1a489b,_0x1b4455,_0x438e56,_0x440686,_0x4a10a1){const _0x1861ce=_0x1bab67,_0x36b0b0=this[_0x1861ce(0x3f6)](_0x1b4455),{left:_0x442971,top:_0x5e9aa0,height:_0x596658}=_0x36b0b0,_0x44fe62=this['_getScale'](),_0x14dd35=zi/_0x44fe62,_0x1d7760=new _0x17d777(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686,'height':_0x596658,'width':Ki,'fill':_0x1a489b||_0x59e896(_0xee8009[_0x1861ce(0x3ef)],0x0),'strokeWidth':_0x14dd35,'stroke':Ji,'evented':!0x0});this[_0x1861ce(0x347)]=_0x1d7760,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x1d7760,_0x4adf9c);const _0x12804f=new _0x17d777(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686-be/0x2,'height':be,'width':be,'fill':_0x1a489b||_0x59e896(_0xee8009['black'],0x0),'strokeWidth':0x0,'stroke':_0x1a489b||_0x59e896(_0xee8009['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x12804f,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x12804f,_0x4adf9c);const _0x450c14=new Ee(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686-Q,'text':_0x4a10a1,'color':_0x1a489b});this['_textBubble']=_0x450c14,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x450c14,_0x4adf9c),this['_hover']=!0x1;}[_0x1bab67(0x255)](){const _0x132ba5=_0x1bab67,_0x597758=this['_anchor'][_0x132ba5(0x420)][_0x132ba5(0x3d3)](()=>{const _0x511e8f=_0x132ba5;this[_0x511e8f(0x278)]=!0x0;}),_0x11ffcf=this[_0x132ba5(0x347)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x58c0ff=_0x132ba5;this[_0x58c0ff(0x310)]&&clearTimeout(this[_0x58c0ff(0x310)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xc9ed=_0x132ba5;_0x597758[_0xc9ed(0x356)](),_0x11ffcf[_0xc9ed(0x356)]();};}['_drawTextRange'](_0x5991de,_0x5476a1,_0x420da3,_0x1fdcf7){const _0x431a17=_0x1bab67,_0x5d7175=new _0x55dc10(_0x5991de)[_0x431a17(0x369)](0.2)[_0x431a17(0x402)](),_0x1cf60b=new _0x232ebe(Xi+_0x2679ea(z),{'pointsGroup':_0x5476a1,'fill':_0x5d7175||_0x59e896(_0xee8009[_0x431a17(0x3ef)],0.2),'left':_0x420da3,'top':_0x1fdcf7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x431a17(0x388)][_0x431a17(0x403)](_0x1cf60b),this[_0x431a17(0x221)][_0x431a17(0x3d2)](_0x1cf60b,_0x4adf9c);}[_0x1bab67(0x327)](_0x135bdc,_0x1d0d00,_0xb0ad51,_0x305280){const _0x1a2a38=_0x1bab67,_0xafb77a=new _0x55dc10(_0x135bdc)['setAlpha'](0.2)['toRgbString'](),_0x154bcb=new _0x232ebe(Gi+_0x2679ea(z),{'pointsGroup':_0x1d0d00,'fill':_0xafb77a||_0x59e896(_0xee8009['black'],0.2),'left':_0xb0ad51,'top':_0x305280,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a2a38(0x388)]['push'](_0x154bcb),this[_0x1a2a38(0x221)][_0x1a2a38(0x3d2)](_0x154bcb,_0x4adf9c);}[_0x1bab67(0x3f6)](_0x26854a){const _0x545479=_0x26854a[0x0],_0x512448=_0x545479[0x0],_0x2c0612=_0x545479[0x2],{x:_0x4365ac,y:_0xbf9f94}=_0x512448,{x:_0x2f93ce,y:_0x33004b}=_0x2c0612;return{'left':_0x4365ac,'top':_0xbf9f94,'width':_0x2f93ce-_0x4365ac,'height':_0x33004b-_0xbf9f94};}[_0x1bab67(0x1e0)](){const _0x44d4ae=_0x1bab67,{scaleX:_0xa75073,scaleY:_0xae521e}=this[_0x44d4ae(0x221)][_0x44d4ae(0x3ce)]();return Math[_0x44d4ae(0x236)](_0xa75073,_0xae521e);}}var Zi=Object[_0x1bab67(0x32a)],Qi=(_0x14e6a2,_0x449847,_0x12098e,_0x32be15)=>{const _0xf9e188=_0x1bab67;for(var _0x3e7c48=_0x32be15>0x1?void 0x0:_0x32be15?Zi(_0x449847,_0x12098e):_0x449847,_0x2b85ec=_0x14e6a2[_0xf9e188(0x30a)]-0x1,_0x406600;_0x2b85ec>=0x0;_0x2b85ec--)(_0x406600=_0x14e6a2[_0x2b85ec])&&(_0x3e7c48=_0x406600(_0x3e7c48)||_0x3e7c48);return _0x3e7c48;},ie=(_0x13f61c,_0x30a4a4)=>(_0x49dfd0,_0x3cdcfe)=>_0x30a4a4(_0x49dfd0,_0x3cdcfe,_0x13f61c);let Fe=class extends _0xb8eb03{constructor(_0x4c59c7,_0xbcc34c,_0x202c7d,_0x4ab9a0,_0x58584f){const _0x5040e9=_0x1bab67;super(),_(this,_0x5040e9(0x3b7),[]),_(this,_0x5040e9(0x212),[]),(this[_0x5040e9(0x20d)]=_0x4c59c7,this[_0x5040e9(0x2e4)]=_0xbcc34c,this[_0x5040e9(0x282)]=_0x202c7d,this[_0x5040e9(0x22c)]=_0x4ab9a0,this[_0x5040e9(0x3d7)]=_0x58584f,this['_init']());}[_0x1bab67(0x38f)](){const _0xa55c62=_0x1bab67,_0x3e3552=this[_0xa55c62(0x20d)][_0xa55c62(0x2d3)],_0x20e7e3=this[_0xa55c62(0x2e4)];this['disposeWithMe'](_0x188334([this[_0xa55c62(0x282)][_0xa55c62(0x2d7)](_0x3e3552),this[_0xa55c62(0x3d7)][_0xa55c62(0x379)]])[_0xa55c62(0x3e7)](_0xa7eefa(([_0x1aec03,_0x260f97])=>({'skeleton':_0x20e7e3[_0xa55c62(0x2ce)](),'cursors':[..._0x1aec03[_0xa55c62(0x321)]()][_0xa55c62(0x2ca)](_0x1e66f7=>({..._0x1e66f7,'color':this[_0xa55c62(0x3d7)]['getColorFromTheme'](_0x1e66f7['color'])}))})))['subscribe'](_0x55cae5=>{const _0x4ccb31=_0xa55c62;if(this['_removeCollabCursors'](),_0x55cae5){const {skeleton:_0x289adb,cursors:_0x20a01b}=_0x55cae5;this[_0x4ccb31(0x218)](_0x289adb,_0x20a01b);}})),this[_0xa55c62(0x2b7)](),this[_0xa55c62(0x42e)]();}[_0x1bab67(0x218)](_0x17eff5,_0x546485){const _0x39a0d8=_0x1bab67,{scene:_0x2da384,mainComponent:_0x1023d0}=this[_0x39a0d8(0x20d)],_0xe88525=_0x546485['map'](_0x5936e3=>new ct(_0x5936e3,_0x2da384,_0x17eff5,_0x1023d0));this[_0x39a0d8(0x3b7)]=_0xe88525,this[_0x39a0d8(0x212)]=_0x546485;}[_0x1bab67(0x353)](){const _0x4165e0=_0x1bab67;this[_0x4165e0(0x3fe)]();const {scene:_0x8017a4,mainComponent:_0x41f8ac}=this[_0x4165e0(0x20d)],_0x270b88=this[_0x4165e0(0x2e4)]['getSkeleton'](),_0x53f6e6=this[_0x4165e0(0x212)]['map'](_0x59e6fb=>new ct(_0x59e6fb,_0x8017a4,_0x270b88,_0x41f8ac));this[_0x4165e0(0x3b7)]=_0x53f6e6;}[_0x1bab67(0x3fe)](){const _0x3fc7d6=_0x1bab67;this[_0x3fc7d6(0x3b7)]['forEach'](_0x765013=>_0x765013[_0x3fc7d6(0x3d8)]()),this[_0x3fc7d6(0x3b7)]=[];}[_0x1bab67(0x42e)](){const _0x54ba46=_0x1bab67,_0x54ec4d=[_0x2e1434['id']];this[_0x54ba46(0x24d)](this[_0x54ba46(0x22c)]['onCommandExecuted'](_0x2687c5=>{const _0x494919=_0x54ba46;_0x54ec4d[_0x494919(0x2de)](_0x2687c5['id'])&&_0x2687c5[_0x494919(0x35c)][_0x494919(0x2d3)]===this[_0x494919(0x20d)][_0x494919(0x2d3)]&&this[_0x494919(0x353)]();}));}['_initResize'](){const _0x15420a=_0x1bab67;this[_0x15420a(0x24d)](_0x525fe4(this['_context'][_0x15420a(0x33e)][_0x15420a(0x37e)])[_0x15420a(0x3e7)](_0x2df3db(_0x4b7603=>_0x4b7603[_0x15420a(0x227)]===_0x30d333['resize']),_0x5454da(0x10))[_0x15420a(0x401)](()=>{const _0x4047ad=_0x15420a;this[_0x4047ad(0x353)]();}));}};Fe=Qi([ie(0x1,_0x5a79e2(_0x210e2e)),ie(0x2,_0x5a79e2(H)),ie(0x3,_0x34fc9a),ie(0x4,_0x5a79e2(_0x3c6cac))],Fe);const qi=0x1,en=1.5;class tn extends _0x2d6f87{constructor(_0x5e6409,_0x3180de){const _0xe3612f=_0x1bab67;super(_0x5e6409,_0x3180de),_(this,_0xe3612f(0x41b)),_(this,_0xe3612f(0x386),!0x1),_(this,_0xe3612f(0x343)),_(this,_0xe3612f(0x3b9),''),_(this,_0xe3612f(0x311),'top'),_(this,_0xe3612f(0x425)),(_0x3180de&&this[_0xe3612f(0x251)](_0x3180de),this[_0xe3612f(0x420)][_0xe3612f(0x3d3)](()=>this[_0xe3612f(0x251)]({'hovered':!0x0})),this[_0xe3612f(0x2c0)][_0xe3612f(0x3d3)](()=>this[_0xe3612f(0x251)]({'hovered':!0x1})));}[_0x1bab67(0x251)](_0x6b03c7){const _0x3bcbc3=_0x1bab67;var _0x4498ae,_0x8fa3b5,_0x5f72b7,_0x29e33d,_0x336189,_0x417d38;this['_color']=(_0x4498ae=_0x6b03c7[_0x3bcbc3(0x2c7)])!=null?_0x4498ae:this[_0x3bcbc3(0x41b)],this[_0x3bcbc3(0x386)]=(_0x8fa3b5=_0x6b03c7['hovered'])!=null?_0x8fa3b5:this[_0x3bcbc3(0x386)],this[_0x3bcbc3(0x343)]=(_0x5f72b7=_0x6b03c7['range'])!=null?_0x5f72b7:this[_0x3bcbc3(0x343)],this[_0x3bcbc3(0x3b9)]=(_0x29e33d=_0x6b03c7[_0x3bcbc3(0x303)])!=null?_0x29e33d:this['_name'],this['_labelPosition']=(_0x336189=_0x6b03c7[_0x3bcbc3(0x3f0)])!=null?_0x336189:this['_labelPosition'],this['_backgroundColor']=(_0x417d38=_0x6b03c7[_0x3bcbc3(0x33d)])!=null?_0x417d38:this[_0x3bcbc3(0x425)],this['transformByState']({'width':_0x6b03c7[_0x3bcbc3(0x389)],'height':_0x6b03c7[_0x3bcbc3(0x231)]});}[_0x1bab67(0x2f3)](_0xe689b3){const _0x5b8869=_0x1bab67,{row:_0x1ff9d2,column:_0x1142ff}=_0xe689b3;if(_0x1ff9d2>=this['_range'][_0x5b8869(0x2b4)]&&_0x1ff9d2<=this[_0x5b8869(0x343)][_0x5b8869(0x2e0)]&&_0x1142ff>=this[_0x5b8869(0x343)][_0x5b8869(0x3a0)]&&_0x1142ff<=this[_0x5b8869(0x343)]['endColumn']){this[_0x5b8869(0x251)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1bab67(0x366)](_0x360417){return!0x1;}['_draw'](_0x175f9b){const _0x2ea097=_0x1bab67;_0x17d777[_0x2ea097(0x3fa)](_0x175f9b,{'width':this[_0x2ea097(0x389)],'height':this[_0x2ea097(0x231)],'strokeWidth':en,'stroke':this[_0x2ea097(0x41b)],'evented':!0x1,'fill':this[_0x2ea097(0x425)]}),this[_0x2ea097(0x386)]&&(_0x175f9b[_0x2ea097(0x427)](),_0x175f9b['transform'](0x1,0x0,0x0,0x1,this[_0x2ea097(0x389)],this[_0x2ea097(0x311)]===_0x2ea097(0x2b9)?0x0:-Q),Ee['drawWith'](_0x175f9b,{'text':this['_name'],'color':this['_color']}),_0x175f9b[_0x2ea097(0x25b)]());}}var sn=Object[_0x1bab67(0x32a)],nn=(_0x4b9642,_0xf5cfeb,_0x2773a7,_0x564345)=>{for(var _0x5e7239=_0x564345>0x1?void 0x0:_0x564345?sn(_0xf5cfeb,_0x2773a7):_0xf5cfeb,_0x5e32b5=_0x4b9642['length']-0x1,_0x171eb2;_0x5e32b5>=0x0;_0x5e32b5--)(_0x171eb2=_0x4b9642[_0x5e32b5])&&(_0x5e7239=_0x171eb2(_0x5e7239)||_0x5e7239);return _0x5e7239;},Ne=(_0x3c57d7,_0x9996c8)=>(_0x4f59e8,_0x2d2aa6)=>_0x9996c8(_0x4f59e8,_0x2d2aa6,_0x3c57d7);const rn=0x1389;let ke=class extends _0xb8eb03{constructor(_0x3c2fad,_0x153c3f,_0x19738a,_0x3adad0){const _0x1faa58=_0x1bab67;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x3c2fad,this['_sheetSkeletonManagerService']=_0x153c3f,this[_0x1faa58(0x282)]=_0x19738a,this[_0x1faa58(0x3d7)]=_0x3adad0,this[_0x1faa58(0x38f)]());}['_init'](){const _0x1d43cc=_0x1bab67;this[_0x1d43cc(0x39d)][_0x1d43cc(0x3cf)][_0x1d43cc(0x3e7)](_0x33be30(this['dispose$']),_0x42a06f(_0x4df927=>{const _0x1c0a1d=_0x1d43cc;if(_0x4df927){const _0x34ba2a=_0x4df927[_0x1c0a1d(0x355)];return _0x188334(this['_collabCursorController'][_0x1c0a1d(0x2d7)](this[_0x1c0a1d(0x20d)][_0x1c0a1d(0x2d3)]),this[_0x1c0a1d(0x3d7)][_0x1c0a1d(0x379)])[_0x1c0a1d(0x3e7)](_0xa7eefa(([_0x469270,_0x1b4770])=>{const _0x21c471=_0x1c0a1d,_0x29ead3=new Map();return _0x469270[_0x21c471(0x36c)]((_0x28f587,_0x4f8c99)=>{const _0x40f6a7=_0x21c471;if(_0x28f587['sheetID']===_0x34ba2a){const _0x1a0e14={..._0x28f587};_0x1a0e14[_0x40f6a7(0x2c7)]=this['_themeService'][_0x40f6a7(0x1f8)](_0x28f587[_0x40f6a7(0x2c7)]),_0x29ead3[_0x40f6a7(0x25f)](_0x4f8c99,_0x1a0e14);}}),{'skeleton':_0x4df927,'cursors':_0x29ead3};}));}return _0x147589({'skeleton':null,'cursors':new Map()});}))[_0x1d43cc(0x401)](({skeleton:_0x36020f,cursors:_0x52c56a})=>{const _0x8ec66e=_0x1d43cc;this[_0x8ec66e(0x3fe)](),_0x36020f&&this[_0x8ec66e(0x218)](_0x36020f,_0x52c56a);}),this[_0x1d43cc(0x39d)][_0x1d43cc(0x3cf)][_0x1d43cc(0x401)](_0x80c981=>{const _0x81a85f=_0x1d43cc;if(_0x80c981==null)return;const {skeleton:_0x3ead5f}=_0x80c981,{scene:_0x4b0a5c}=this[_0x81a85f(0x20d)];_0x4b0a5c[_0x81a85f(0x31a)][_0x81a85f(0x3d3)](_0x3dabb7(_0x5aa040=>{const _0x79d623=_0x81a85f;var _0x4424cd,_0x13f85a;const {offsetX:_0x46da65,offsetY:_0x383e5c}=_0x5aa040,{x:_0x1f05ad,y:_0xcd8795}=_0x4b0a5c[_0x79d623(0x2fa)](_0x380b35[_0x79d623(0x229)]([_0x46da65,_0x383e5c])),{scaleX:_0x56bd2f,scaleY:_0x5a1c38}=_0x4b0a5c[_0x79d623(0x3ce)](),_0x2615e5=_0x4b0a5c['getViewport'](_0x3d4c73['VIEW_MAIN']),_0x1414f6=_0x4b0a5c[_0x79d623(0x246)](_0x380b35[_0x79d623(0x229)]([_0x1f05ad,_0xcd8795]),_0x2615e5),_0xe7dbd4=_0x3ead5f['getCellPositionByOffset'](_0x46da65,_0x383e5c,_0x56bd2f,_0x5a1c38,_0x1414f6);((_0x4424cd=this[_0x79d623(0x1f4)])==null?void 0x0:_0x4424cd[_0x79d623(0x210)])===_0xe7dbd4['column']&&((_0x13f85a=this['_lastPointer'])==null?void 0x0:_0x13f85a[_0x79d623(0x264)])===_0xe7dbd4[_0x79d623(0x264)]||this['_cursors'][_0x79d623(0x36c)](_0x605f7b=>{const _0x3cd157=_0x79d623;_0x605f7b[_0x3cd157(0x2f3)](_0xe7dbd4);});},0x64));});}[_0x1bab67(0x218)](_0x2e08ec,_0x1e9d0a){const _0x2b75b1=_0x1bab67;var _0x35fece;const _0x1832e7=(_0x35fece=this[_0x2b75b1(0x39d)][_0x2b75b1(0x3b2)]())==null?void 0x0:_0x35fece[_0x2b75b1(0x2a2)];if(!_0x1832e7)return;const _0x4653e3=this[_0x2b75b1(0x351)]();if(!_0x4653e3)return;this['_cursors'][_0x2b75b1(0x36c)](_0x8bab99=>{_0x8bab99['makeDirty']();});const {scene:_0x2d8e29}=_0x4653e3,_0x3901ea=on(Array['from'](_0x1e9d0a[_0x2b75b1(0x321)]()))[_0x2b75b1(0x2c1)](_0x158ef9=>{const _0x2c3422=_0x2b75b1,{color:_0x1a370a,range:_0xb4c76c,name:_0x45e6b8,selection:_0x13b15f,sheetID:_0x207f7d}=_0x158ef9,{startColumn:_0x9efde,startRow:_0x3d538d,endColumn:_0x5b5d47,endRow:_0x3b8edd}=_0xb4c76c,_0x151490=_0xa911b5(_0x3d538d,_0x9efde,_0x2d8e29,_0x1832e7),_0x124ca8=_0xa911b5(_0x3b8edd,_0x5b5d47,_0x2d8e29,_0x1832e7),{columnHeaderHeightAndMarginTop:_0x17f47c}=_0x1832e7,{startX:_0x223683,startY:_0x4e8661}=_0x151490,{endX:_0x467e38,endY:_0x266c35}=_0x124ca8,_0x4de627=_0x467e38-_0x223683,_0x44cc54=_0x266c35-_0x4e8661,_0x5aecf3={'labelPosition':_0x4e8661-_0x17f47c>=Q?_0x2c3422(0x329):_0x2c3422(0x2b9),'sheetID':_0x207f7d,'range':_0xb4c76c,'color':_0x1a370a,'name':_0x45e6b8,'selection':_0x13b15f,'left':_0x223683,'top':_0x4e8661,'width':_0x4de627,'height':_0x44cc54,'evented':!0x1,'zIndex':rn};return new tn(_0x45e6b8,_0x5aecf3);});_0x2d8e29[_0x2b75b1(0x21c)](_0x3901ea,qi),this[_0x2b75b1(0x212)]=new Set(_0x3901ea);}['_removeCollabCursors'](){const _0x5264c2=_0x1bab67;var _0x260683;(_0x260683=this[_0x5264c2(0x212)])==null||_0x260683['forEach'](_0x5c6d47=>_0x5c6d47['dispose']());}[_0x1bab67(0x351)](){const _0x304d4f=_0x1bab67;return _0x11d02e(this['_context'][_0x304d4f(0x1fd)],this[_0x304d4f(0x20d)]);}};ke=nn([Ne(0x1,_0x5a79e2(_0x1576bc)),Ne(0x2,_0x5a79e2(H)),Ne(0x3,_0x5a79e2(_0x3c6cac))],ke);function on(_0x24f41e){const _0x2ff8e9=_0x1bab67,_0x516600=new Map();return _0x24f41e[_0x2ff8e9(0x36c)](_0x4a00b7=>{const _0x2e0e4c=_0x2ff8e9;if(_0x516600[_0x2e0e4c(0x1f7)](_0x4a00b7[_0x2e0e4c(0x3d0)])){const _0x36eb20=_0x516600[_0x2e0e4c(0x1e3)](_0x4a00b7[_0x2e0e4c(0x3d0)]);_0x36eb20[_0x2e0e4c(0x303)]+=',\x20'+_0x4a00b7['name'];}else _0x516600[_0x2e0e4c(0x25f)](_0x4a00b7[_0x2e0e4c(0x3d0)],_0x4a00b7);}),Array[_0x2ff8e9(0x2a8)](_0x516600[_0x2ff8e9(0x321)]());}var an=Object[_0x1bab67(0x32a)],cn=(_0x7b29b8,_0x1cf500,_0x54e7be,_0x4bdb50)=>{const _0x280f8f=_0x1bab67;for(var _0x41b697=_0x4bdb50>0x1?void 0x0:_0x4bdb50?an(_0x1cf500,_0x54e7be):_0x1cf500,_0x11f348=_0x7b29b8[_0x280f8f(0x30a)]-0x1,_0x4b9ed1;_0x11f348>=0x0;_0x11f348--)(_0x4b9ed1=_0x7b29b8[_0x11f348])&&(_0x41b697=_0x4b9ed1(_0x41b697)||_0x41b697);return _0x41b697;},F=(_0x3e8ae4,_0x508206)=>(_0x552e5c,_0x3ba337)=>_0x508206(_0x552e5c,_0x3ba337,_0x3e8ae4);let _e=class extends _0x570ab2{constructor(_0x6140cb,_0x4111d5,_0x3676e9,_0x4f2df8,_0x709ba4,_0x10bb00){const _0xe9056e=_0x1bab67;super(),this[_0xe9056e(0x305)]=_0x6140cb,this[_0xe9056e(0x29a)]=_0x4111d5,this[_0xe9056e(0x354)]=_0x3676e9,this[_0xe9056e(0x313)]=_0x4f2df8,this[_0xe9056e(0x342)]=_0x709ba4,this['_localeService']=_0x10bb00,this['_setupBeforeClosingHandler'](),this[_0xe9056e(0x1e8)]();}[_0x1bab67(0x40e)](){const _0x2da9a0=_0x1bab67;this[_0x2da9a0(0x24d)](this[_0x2da9a0(0x305)]['registerBeforeClose'](()=>{const _0x231897=_0x2da9a0;if(this[_0x231897(0x29a)][_0x231897(0x38e)][_0x231897(0x40a)])return this['_localeService']['t'](_0x231897(0x393));}));}[_0x1bab67(0x1e8)](){const _0x15870b=_0x1bab67;this[_0x15870b(0x24d)](this['_collaborationUIEventService'][_0x15870b(0x270)][_0x15870b(0x401)](_0xf22be4=>{const _0x33fa42=_0x15870b;_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x37b)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe['Warning'],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x20f))}),_0xf22be4['id']===_0x4fffd5['CLOSE_ROOM']&&this[_0x33fa42(0x313)]['show']({'type':_0x5d27fe['Warning'],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x252))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x1e2)]&&this['_notificationService']['show']({'title':this[_0x33fa42(0x34c)]['t']('permission.title'),'content':this[_0x33fa42(0x34c)]['t']('permission.content'),'type':_0x33fa42(0x253),'duration':0x0}),_0xf22be4['id']===_0x4fffd5['CONFLICT']&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x1ec)],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x252))+'('+_0xf22be4[_0x33fa42(0x2b3)]+')'}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x20e)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x426)],'content':this['_localeService']['t'](_0xf22be4[_0x33fa42(0x2b3)]||'')}),_0xf22be4['id']===_0x4fffd5['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x5d27fe[_0x33fa42(0x426)],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x372))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x2a7)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x1ec)],'content':this['_localeService']['t'](_0x33fa42(0x232))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x2cd)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe['Error'],'content':this['_localeService']['t'](_0x33fa42(0x2aa))});}));}};_e=cn([F(0x0,_0x912558),F(0x1,_0x47e6d9),F(0x2,_0x5a79e2(_0x1cc67e)),F(0x3,_0x116021),F(0x4,_0x259113),F(0x5,_0x5a79e2(_0x358b52))],_e);var _n=Object[_0x1bab67(0x32a)],ln=(_0x587c60,_0x469b60,_0x3fc423,_0x4f7681)=>{const _0x40493e=_0x1bab67;for(var _0x196a82=_0x4f7681>0x1?void 0x0:_0x4f7681?_n(_0x469b60,_0x3fc423):_0x469b60,_0x5dcd92=_0x587c60[_0x40493e(0x30a)]-0x1,_0x40b55f;_0x5dcd92>=0x0;_0x5dcd92--)(_0x40b55f=_0x587c60[_0x5dcd92])&&(_0x196a82=_0x40b55f(_0x196a82)||_0x196a82);return _0x196a82;},ne=(_0x58aad6,_0x54dcac)=>(_0x3ba565,_0x530bec)=>_0x54dcac(_0x3ba565,_0x530bec,_0x58aad6);let le=class extends _0x570ab2{constructor(_0x5e732d,_0x4d5605,_0x4720b5,_0x12abd3){const _0x29af06=_0x1bab67;super(),_(this,_0x29af06(0x3e2)),(this[_0x29af06(0x428)]=_0x5e732d,this[_0x29af06(0x2f7)]=_0x4d5605,this[_0x29af06(0x2b2)]=_0x4720b5,this[_0x29af06(0x41d)]=_0x12abd3,this['_init']());}[_0x1bab67(0x38f)](){const _0x26b2a3=_0x1bab67;this[_0x26b2a3(0x20a)](),this[_0x26b2a3(0x207)](),this['_monkeyPatchLogService'](),this[_0x26b2a3(0x209)]();}[_0x1bab67(0x209)](){const _0x2af938=_0x1bab67;this[_0x2af938(0x24d)](this[_0x2af938(0x41d)][_0x2af938(0x205)][_0x2af938(0x401)](_0x479674=>{const _0x55fa0f=_0x2af938;this[_0x55fa0f(0x3e2)]=_0x479674==null?void 0x0:_0x479674['memberID'];}));}[_0x1bab67(0x20a)](){const _0x2a6afa=_0x1bab67,_0x1e4495=_0x1cdeaa=>{const _0x2a5ad1=_0x4050;var _0x3fb0ea;this['_uploadLog'](_0x2a5ad1(0x253),_0x2a5ad1(0x2b0)+_0x1cdeaa['message']+_0x2a5ad1(0x3df)+_0x1cdeaa[_0x2a5ad1(0x1df)]+':'+_0x1cdeaa[_0x2a5ad1(0x206)]+':'+_0x1cdeaa[_0x2a5ad1(0x384)]+'\x0a'+(((_0x3fb0ea=_0x1cdeaa[_0x2a5ad1(0x253)])==null?void 0x0:_0x3fb0ea['stack'])||''));};window[_0x2a6afa(0x41e)](_0x2a6afa(0x253),_0x1e4495),this['disposeWithMe'](()=>{const _0x690d0d=_0x2a6afa;window[_0x690d0d(0x27e)](_0x690d0d(0x253),_0x1e4495);});}[_0x1bab67(0x207)](){const _0x2880fa=_0x1bab67,_0x31e0f6=_0x53d1f7=>{const _0x39c27f=_0x4050;this[_0x39c27f(0x2fc)](_0x39c27f(0x253),_0x39c27f(0x3b8)+_0x53d1f7[_0x39c27f(0x38c)]);};window[_0x2880fa(0x41e)]('unhandledrejection',_0x31e0f6),this[_0x2880fa(0x24d)](()=>{const _0x357c27=_0x2880fa;window[_0x357c27(0x27e)]('unhandledrejection',_0x31e0f6);});}[_0x1bab67(0x307)](){const _0x34d657=_0x1bab67,_0x59d517=this[_0x34d657(0x2b2)][_0x34d657(0x253)][_0x34d657(0x23a)](this[_0x34d657(0x2b2)]);this[_0x34d657(0x2b2)][_0x34d657(0x253)]=(..._0x37e2be)=>{const _0x56f6ef=_0x34d657,_0x138d5=_0x37e2be[_0x56f6ef(0x2c1)](_0x199a85=>_0x199a85 instanceof Error?_0x199a85[_0x56f6ef(0x2f2)]+'\x0a'+_0x199a85[_0x56f6ef(0x40f)]:String(_0x199a85))[_0x56f6ef(0x2ef)]('\x20');this[_0x56f6ef(0x2fc)](_0x56f6ef(0x253),_0x56f6ef(0x385)+_0x138d5),_0x59d517(..._0x37e2be);},this[_0x34d657(0x24d)](()=>{const _0xb9af66=_0x34d657;this['_logService'][_0xb9af66(0x253)]=_0x59d517;});}[_0x1bab67(0x2fc)](_0x238ada,_0x2847db){const _0x3a5176=_0x1bab67;try{const _0x34b56b={'userId':this[_0x3a5176(0x3e2)],'logLabel':_0x238ada,'content':_0x2847db};this['_httpService']['post'](_0x3a5176(0x36b),{'body':_0x34b56b})[_0x3a5176(0x383)](()=>{});}catch{}}};le=ln([ne(0x0,_0x5a79e2(_0x41a636)),ne(0x1,_0x5a79e2(_0x1fe289)),ne(0x2,_0xf1ee96),ne(0x3,_0x5a79e2(_0x5b8361))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x1bab67(0x32a)],dn=(_0x449281,_0x5ed2fb,_0x22bcd9,_0x6b0232)=>{const _0x196800=_0x1bab67;for(var _0x5b3c9a=_0x6b0232>0x1?void 0x0:_0x6b0232?un(_0x5ed2fb,_0x22bcd9):_0x5ed2fb,_0x1beb85=_0x449281[_0x196800(0x30a)]-0x1,_0x2b73d6;_0x1beb85>=0x0;_0x1beb85--)(_0x2b73d6=_0x449281[_0x1beb85])&&(_0x5b3c9a=_0x2b73d6(_0x5b3c9a)||_0x5b3c9a);return _0x5b3c9a;},lt=(_0x1467c1,_0x4d4ef0)=>(_0x40d358,_0x11e9f6)=>_0x4d4ef0(_0x40d358,_0x11e9f6,_0x1467c1);let he=class{constructor(_0x21f33e,_0x2b0519){const _0x2c26c6=_0x1bab67;this[_0x2c26c6(0x261)]=_0x21f33e,this[_0x2c26c6(0x21b)]=_0x2b0519;}[_0x1bab67(0x2da)](_0xe81aa3){const _0x1f67db=_0x1bab67;this[_0x1f67db(0x337)](_0xe81aa3),this[_0x1f67db(0x344)](_0xe81aa3);}[_0x1bab67(0x3ad)](_0x4ed8b9){const _0x262365=_0x1bab67,{unitID:_0x3026e0}=_0x4ed8b9,_0x533884=this[_0x262365(0x21b)][_0x262365(0x254)](_0x3026e0)['with'](_0x38083a),{redoCache:_0x5332de}=_0x533884['getUndoRedoMutationParamsCache']();if(_0x5332de[_0x262365(0x30a)]===0x0)return _0x4ed8b9;let _0x190b86=_0x3b1d01[_0x262365(0x263)](_0x4ed8b9[_0x262365(0x22f)][0x0]);for(let _0x4ac063=0x0;_0x4ac063<_0x5332de[_0x262365(0x30a)];_0x4ac063++){const _0x59a29a={'id':'doc.mutation.rich-text-editing','params':{..._0x5332de[_0x4ac063]}},_0x35bf25=this['_transformService'][_0x262365(0x2ed)](_0x190b86,_0x59a29a,!0x1);if(_0x571730(_0x35bf25))throw _0x35bf25['error'];_0x190b86=_0x35bf25[_0x262365(0x281)];}return{..._0x3b1d01['deepClone'](_0x4ed8b9),'mutations':[_0x190b86]};}[_0x1bab67(0x337)](_0x4ca3f2){const _0x2b0e95=_0x1bab67,{unitID:_0x1328a4}=_0x4ca3f2,_0x221fe0=this['_renderManagerService'][_0x2b0e95(0x254)](_0x1328a4)[_0x2b0e95(0x3cd)](_0x38083a),{undoCache:_0x33b009,redoCache:_0x2a6466}=_0x221fe0['getUndoRedoMutationParamsCache']();if(_0x33b009[_0x2b0e95(0x30a)]===0x0||_0x2a6466['length']===0x0)return;const _0x591735=[],_0xf7a6c=[];let _0x119bb6=_0x3b1d01['deepClone'](_0x4ca3f2[_0x2b0e95(0x22f)][0x0]),_0x12612b=_0x3b1d01[_0x2b0e95(0x263)](_0x4ca3f2[_0x2b0e95(0x22f)][0x0]);for(let _0x26a38d=_0x33b009[_0x2b0e95(0x30a)]-0x1;_0x26a38d>=0x0;_0x26a38d--){const _0x5bbe94={'id':_0x2b0e95(0x23f),'params':{..._0x33b009[_0x26a38d]}},_0x51d778={'id':'doc.mutation.rich-text-editing','params':{..._0x2a6466[_0x26a38d]}},_0x3e56af=this[_0x2b0e95(0x261)][_0x2b0e95(0x2ed)](_0x119bb6,_0x5bbe94,!0x1),_0x1bcea0=this['_transformService'][_0x2b0e95(0x2ed)](_0x12612b,_0x51d778,!0x1);if(_0x571730(_0x3e56af))throw _0x3e56af[_0x2b0e95(0x253)];if(_0x571730(_0x1bcea0))throw _0x1bcea0['error'];_0x591735['unshift'](_0x3e56af['m2Prime'][_0x2b0e95(0x35c)]),_0xf7a6c[_0x2b0e95(0x21a)](_0x1bcea0[_0x2b0e95(0x37a)][_0x2b0e95(0x35c)]),_0x119bb6=_0x3e56af[_0x2b0e95(0x281)],_0x12612b=_0x1bcea0[_0x2b0e95(0x281)];}_0x221fe0['setUndoRedoMutationParamsCache']({'undoCache':_0x591735,'redoCache':_0xf7a6c});}[_0x1bab67(0x344)](_0x3bed7f){const _0x20e33b=_0x1bab67,{unitID:_0x4301db}=_0x3bed7f,_0x4f8dcf=this[_0x20e33b(0x21b)][_0x20e33b(0x254)](_0x4301db)['with'](_0x38083a),_0x3bd0c4=_0x4f8dcf[_0x20e33b(0x2e6)]();if(_0x3bd0c4==null)return;const _0x3a1551=[{'id':_0x20e33b(0x23f),'params':{'unitId':_0x3bed7f[_0x20e33b(0x3bf)],'actions':null,'textRanges':[_0x3bd0c4]}}],_0x1c8e49=this[_0x20e33b(0x261)]['transformMutationsWithChangeset'](_0x3bed7f,_0x3a1551);if(!_0x29ce50(_0x1c8e49))throw _0x1c8e49[_0x20e33b(0x253)];const _0x687798=_0x1c8e49[_0x20e33b(0x37a)][0x0][_0x20e33b(0x35c)][_0x20e33b(0x29b)];Array[_0x20e33b(0x345)](_0x687798)&&_0x687798[_0x20e33b(0x30a)]&&_0x4f8dcf[_0x20e33b(0x387)](_0x687798[0x0]);}};he=dn([lt(0x0,_0x1b61b0),lt(0x1,_0x1eaf53)],he);var Sn=Object[_0x1bab67(0x32a)],mn=(_0x475c79,_0x1d8a97,_0x3ca817,_0x417591)=>{for(var _0x26df80=_0x417591>0x1?void 0x0:_0x417591?Sn(_0x1d8a97,_0x3ca817):_0x1d8a97,_0x397112=_0x475c79['length']-0x1,_0x2d3dd2;_0x397112>=0x0;_0x397112--)(_0x2d3dd2=_0x475c79[_0x397112])&&(_0x26df80=_0x2d3dd2(_0x26df80)||_0x26df80);return _0x26df80;},Le=(_0x562dc0,_0xe87811)=>(_0x6da949,_0xc80a91)=>_0xe87811(_0x6da949,_0xc80a91,_0x562dc0);let ue=class{constructor(_0x16ed82,_0x41a794,_0x303cad){const _0x3df110=_0x1bab67;this[_0x3df110(0x428)]=_0x16ed82,this[_0x3df110(0x261)]=_0x41a794,this['_docStateChangeManagerService']=_0x303cad;}[_0x1bab67(0x30e)](_0x15fe4e){const _0x151367=_0x1bab67;this[_0x151367(0x2f0)](_0x15fe4e);}[_0x1bab67(0x3ad)](_0x1d4868){const _0x4556e4=_0x1bab67,{unitID:_0x1848b2}=_0x1d4868,{collaboration:_0x408f42}=this['_docStateChangeManagerService']['getStateCache'](_0x1848b2);if(_0x408f42[_0x4556e4(0x30a)]===0x0)return _0x1d4868;let _0x54a82f=_0x3b1d01[_0x4556e4(0x263)](_0x1d4868[_0x4556e4(0x22f)][0x0]);for(let _0x3bfcd3=0x0;_0x3bfcd3<_0x408f42['length'];_0x3bfcd3++){const _0x19a2e3={'id':_0x4556e4(0x23f),'params':{'unitId':_0x408f42[_0x3bfcd3]['unitId'],..._0x408f42[_0x3bfcd3]['redoState']}},_0x33373a=this[_0x4556e4(0x261)][_0x4556e4(0x2ed)](_0x54a82f,_0x19a2e3,!0x1);if(_0x571730(_0x33373a))throw _0x33373a[_0x4556e4(0x253)];_0x54a82f=_0x33373a[_0x4556e4(0x281)];}return{..._0x3b1d01[_0x4556e4(0x263)](_0x1d4868),'mutations':[_0x54a82f]};}[_0x1bab67(0x2f0)](_0x50b34f){const _0x505d5d=_0x1bab67,{unitID:_0x286dea}=_0x50b34f,{history:_0x32e9c1,collaboration:_0x296a87}=this[_0x505d5d(0x3b5)][_0x505d5d(0x322)](_0x286dea);if(_0x32e9c1[_0x505d5d(0x30a)]===0x0&&_0x296a87['length']===0x0)return;const _0x18fd7c=[],_0x1e04e8=[];let _0x35b257=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f[_0x505d5d(0x22f)][0x0]),_0x5a3182=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f['mutations'][0x0]);for(let _0x20511a=_0x32e9c1[_0x505d5d(0x30a)]-0x1;_0x20511a>=0x0;_0x20511a--){const _0x18b3fb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x32e9c1[_0x20511a][_0x505d5d(0x2d3)],..._0x32e9c1[_0x20511a][_0x505d5d(0x272)]}},_0x75222={'id':_0x505d5d(0x23f),'params':{'unitId':_0x32e9c1[_0x20511a]['unitId'],..._0x32e9c1[_0x20511a]['redoState']}},_0x3aeffd=this['_transformService']['transformMutation'](_0x35b257,_0x18b3fb,!0x1),_0x33e2b4=this[_0x505d5d(0x261)][_0x505d5d(0x2ed)](_0x5a3182,_0x75222,!0x1);if(_0x571730(_0x3aeffd))throw _0x3aeffd[_0x505d5d(0x253)];if(_0x571730(_0x33e2b4))throw _0x33e2b4['error'];_0x18fd7c[_0x505d5d(0x21a)]({..._0x32e9c1[_0x20511a],'undoState':_0x3aeffd[_0x505d5d(0x37a)][_0x505d5d(0x35c)],'redoState':_0x33e2b4[_0x505d5d(0x37a)]['params']}),_0x35b257=_0x3aeffd[_0x505d5d(0x281)],_0x5a3182=_0x33e2b4['m1Prime'];}_0x35b257=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f['mutations'][0x0]),_0x5a3182=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f[_0x505d5d(0x22f)][0x0]);for(let _0x4fc97e=_0x296a87[_0x505d5d(0x30a)]-0x1;_0x4fc97e>=0x0;_0x4fc97e--){const _0xe7561a={'id':_0x505d5d(0x23f),'params':{'unitId':_0x296a87[_0x4fc97e]['unitId'],..._0x296a87[_0x4fc97e][_0x505d5d(0x272)]}},_0x316b77={'id':_0x505d5d(0x23f),'params':{'unitId':_0x296a87[_0x4fc97e][_0x505d5d(0x2d3)],..._0x296a87[_0x4fc97e][_0x505d5d(0x42d)]}},_0x1e4a48=this[_0x505d5d(0x261)]['transformMutation'](_0x35b257,_0xe7561a,!0x1),_0x4d7a74=this[_0x505d5d(0x261)]['transformMutation'](_0x5a3182,_0x316b77,!0x1);if(_0x571730(_0x1e4a48))throw _0x1e4a48[_0x505d5d(0x253)];if(_0x571730(_0x4d7a74))throw _0x4d7a74[_0x505d5d(0x253)];_0x1e04e8[_0x505d5d(0x21a)]({..._0x296a87[_0x4fc97e],'undoState':_0x1e4a48[_0x505d5d(0x37a)][_0x505d5d(0x35c)],'redoState':_0x4d7a74[_0x505d5d(0x37a)][_0x505d5d(0x35c)]}),_0x35b257=_0x1e4a48['m1Prime'],_0x5a3182=_0x4d7a74[_0x505d5d(0x281)];}this[_0x505d5d(0x3b5)][_0x505d5d(0x22d)](_0x286dea,{'history':_0x18fd7c,'collaboration':_0x1e04e8});}};ue=mn([Le(0x0,_0x5a79e2(_0x41a636)),Le(0x1,_0x1b61b0),Le(0x2,_0x5a79e2(_0x242de7))],ue);var In=Object[_0x1bab67(0x32a)],fn=(_0x1712df,_0x3d3ddd,_0x21c2aa,_0x31834b)=>{const _0x4e0686=_0x1bab67;for(var _0x5ed9ea=_0x31834b>0x1?void 0x0:_0x31834b?In(_0x3d3ddd,_0x21c2aa):_0x3d3ddd,_0x4cd9ec=_0x1712df[_0x4e0686(0x30a)]-0x1,_0x51f53b;_0x4cd9ec>=0x0;_0x4cd9ec--)(_0x51f53b=_0x1712df[_0x4cd9ec])&&(_0x5ed9ea=_0x51f53b(_0x5ed9ea)||_0x5ed9ea);return _0x5ed9ea;},ht=(_0x280123,_0x393ac5)=>(_0x174f8a,_0x50cd2e)=>_0x393ac5(_0x174f8a,_0x50cd2e,_0x280123);let de=class{constructor(_0x39d525,_0x2b38ec){const _0x206f1b=_0x1bab67;this[_0x206f1b(0x428)]=_0x39d525,this[_0x206f1b(0x261)]=_0x2b38ec;}['transformSelections'](_0x24f68e){const _0x37f41b=_0x1bab67;var _0x36bc82;const _0x1ca88d=this['_injector'][_0x37f41b(0x1e3)](_0xd5f03f),_0x39fba8=(_0x36bc82=_0x1ca88d[_0x37f41b(0x2c8)]())!=null?_0x36bc82:[];if(_0x39fba8['length']===0x0)return;const _0x98984c=_0x24f68e['unitID'],_0x53aca3=[{'id':_0x37f41b(0x23f),'params':{'unitId':_0x98984c,'actions':null,'textRanges':_0x39fba8}}],_0x12f6d5=this[_0x37f41b(0x261)][_0x37f41b(0x1f9)](_0x24f68e,_0x53aca3);if(!_0x29ce50(_0x12f6d5))throw _0x12f6d5['error'];const _0x4f302d=_0x12f6d5['m2Prime'][0x0][_0x37f41b(0x35c)][_0x37f41b(0x29b)];Array['isArray'](_0x4f302d)&&_0x4f302d[_0x37f41b(0x30a)]&&_0x1ca88d[_0x37f41b(0x323)](_0x4f302d,{'unitId':_0x98984c,'subUnitId':_0x98984c},!0x1);}};de=fn([ht(0x0,_0x5a79e2(_0x41a636)),ht(0x1,_0x1b61b0)],de);var gn=Object[_0x1bab67(0x32a)],vn=(_0x5149b2,_0x1d6e7b,_0x2b3116,_0x85f2b7)=>{const _0x7844bd=_0x1bab67;for(var _0x50ae93=_0x85f2b7>0x1?void 0x0:_0x85f2b7?gn(_0x1d6e7b,_0x2b3116):_0x1d6e7b,_0x40da5f=_0x5149b2[_0x7844bd(0x30a)]-0x1,_0x332fcd;_0x40da5f>=0x0;_0x40da5f--)(_0x332fcd=_0x5149b2[_0x40da5f])&&(_0x50ae93=_0x332fcd(_0x50ae93)||_0x50ae93);return _0x50ae93;},U=(_0x29803f,_0x114c74)=>(_0x56576f,_0x550f74)=>_0x114c74(_0x56576f,_0x550f74,_0x29803f);let Se=class extends _0x570ab2{constructor(_0x237883,_0x5e5561,_0x59d54a,_0x57c2ee,_0x40580d,_0x433ded,_0xb45169,_0x27020e){const _0x423c91=_0x1bab67;super(),_(this,_0x423c91(0x2af),new _0x42c9f3(_0x1db3c4['NOT_COLLAB'])),(this[_0x423c91(0x3b5)]=_0x237883,this[_0x423c91(0x22e)]=_0x5e5561,this[_0x423c91(0x32c)]=_0x59d54a,this[_0x423c91(0x3d1)]=_0x57c2ee,this[_0x423c91(0x31d)]=_0x40580d,this[_0x423c91(0x424)]=_0x433ded,this[_0x423c91(0x313)]=_0xb45169,this[_0x423c91(0x34c)]=_0x27020e,this['_initEntityListener']());}['_initEntityListener'](){const _0xc5d3a6=_0x1bab67;this[_0xc5d3a6(0x24d)](this[_0xc5d3a6(0x22e)]['entityInit$'][_0xc5d3a6(0x401)](_0xa501e3=>{const _0x5779b0=_0xc5d3a6,_0x495f0d=this[_0x5779b0(0x3b5)][_0x5779b0(0x2ec)][_0x5779b0(0x401)](_0x600483=>{const _0x5f1906=_0x5779b0;if(_0x600483==null)return;const {unitId:_0x29d715,redoState:_0x4cfb57,commandId:_0x3e0bc4}=_0x600483;if(_0x29d715!==_0xa501e3[_0x5f1906(0x3bf)])return;const _0x1ad292={'id':_0x3e0bc4,'type':_0x5d535e['MUTATION'],'params':{'unitId':_0x29d715,'actions':_0x4cfb57[_0x5f1906(0x336)],'textRanges':null}};_0xa501e3[_0x5f1906(0x36a)](_0x1ad292);});if(_0xa501e3['disposeWithMe'](_0x495f0d),_0xa501e3 instanceof _0x1d8428){const _0x41be48={'onTransformIME':_0x11b248=>this['_docTransformIMECacheService']['transformIMECache'](_0x11b248),'onTransformState':_0x445f08=>this[_0x5779b0(0x3d1)][_0x5779b0(0x30e)](_0x445f08),'onTransformSelections':_0x6880eb=>this[_0x5779b0(0x31d)]['transformSelections'](_0x6880eb),'onSyncEditingCollabCursor':_0x316a39=>this[_0x5779b0(0x424)]['syncEditingCollabCursor'](_0x316a39),'onTransformRemoteChangesetByIMECache':_0x459a97=>this[_0x5779b0(0x32c)][_0x5779b0(0x3ad)](_0x459a97),'onTransformRemoteChangesetByStateCache':_0x5b13ea=>this[_0x5779b0(0x3d1)][_0x5779b0(0x3ad)](_0x5b13ea)};_0xa501e3['addHandlerCallback'](_0x41be48);}}));}};Se=vn([U(0x0,_0x5a79e2(_0x242de7)),U(0x1,_0x5a79e2(_0x519a49)),U(0x2,_0x5a79e2(he)),U(0x3,_0x5a79e2(ue)),U(0x4,_0x5a79e2(de)),U(0x5,_0x5a79e2(ze)),U(0x6,_0x116021),U(0x7,_0x5a79e2(_0x358b52))],Se);var Z=(_0xcea129=>(_0xcea129[_0xcea129['UNDEFINED']=0x0]=_0x1bab67(0x30d),_0xcea129[_0xcea129['OK']=0x1]='OK',_0xcea129[_0xcea129[_0x1bab67(0x2d2)]=0x2]='INTERNAL_ERROR',_0xcea129[_0xcea129[_0x1bab67(0x1e2)]=0x3]='PERMISSION_DENIED',_0xcea129[_0xcea129[_0x1bab67(0x249)]=0x4]='NOT_FOUND',_0xcea129[_0xcea129['UNAUTHENTICATED']=0x5]=_0x1bab67(0x3e5),_0xcea129[_0xcea129['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xcea129[_0xcea129[_0x1bab67(0x3d9)]=0x7]=_0x1bab67(0x3d9),_0xcea129[_0xcea129['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xcea129[_0xcea129[_0x1bab67(0x306)]=0x9]=_0x1bab67(0x306),_0xcea129[_0xcea129[_0x1bab67(0x25d)]=0xa]=_0x1bab67(0x25d),_0xcea129[_0xcea129[_0x1bab67(0x3db)]=0xb]=_0x1bab67(0x3db),_0xcea129[_0xcea129['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x1bab67(0x408),_0xcea129[_0xcea129[_0x1bab67(0x2bd)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xcea129[_0xcea129[_0x1bab67(0x2cb)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xcea129[_0xcea129[_0x1bab67(0x3f7)]=0xf]=_0x1bab67(0x3f7),_0xcea129[_0xcea129[_0x1bab67(0x203)]=0x10]=_0x1bab67(0x203),_0xcea129[_0xcea129[_0x1bab67(0x287)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xcea129[_0xcea129[_0x1bab67(0x406)]=0x65]=_0x1bab67(0x406),_0xcea129[_0xcea129[_0x1bab67(0x24b)]=0xc9]=_0x1bab67(0x24b),_0xcea129[_0xcea129[_0x1bab67(0x3e4)]=0xca]=_0x1bab67(0x3e4),_0xcea129[_0xcea129['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x1bab67(0x2ba),_0xcea129[_0xcea129['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x1bab67(0x318),_0xcea129[_0xcea129[_0x1bab67(0x266)]=0x1772]=_0x1bab67(0x266),_0xcea129[_0xcea129[_0x1bab67(0x241)]=0x1773]=_0x1bab67(0x241),_0xcea129[_0xcea129['APPLY_REJECT']=0x1b59]=_0x1bab67(0x340),_0xcea129[_0xcea129[_0x1bab67(0x315)]=0x1b5a]=_0x1bab67(0x315),_0xcea129[_0xcea129['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x1bab67(0x429),_0xcea129[_0xcea129[_0x1bab67(0x2b1)]=0x1b5c]=_0x1bab67(0x2b1),_0xcea129[_0xcea129['APPLY_DUPLICATED']=0x1b5d]=_0x1bab67(0x299),_0xcea129[_0xcea129['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xcea129[_0xcea129[_0x1bab67(0x2dc)]=0x2329]=_0x1bab67(0x2dc),_0xcea129[_0xcea129[_0x1bab67(0x21f)]=0x232a]=_0x1bab67(0x21f),_0xcea129[_0xcea129[_0x1bab67(0x2c5)]=0x232b]=_0x1bab67(0x2c5),_0xcea129[_0xcea129[_0x1bab67(0x35b)]=0x232c]=_0x1bab67(0x35b),_0xcea129[_0xcea129[_0x1bab67(0x407)]=0x232d]=_0x1bab67(0x407),_0xcea129[_0xcea129[_0x1bab67(0x3c1)]=0x2711]=_0x1bab67(0x3c1),_0xcea129[_0xcea129[_0x1bab67(0x3c2)]=0x2712]=_0x1bab67(0x3c2),_0xcea129[_0xcea129[_0x1bab67(0x1eb)]=0x2713]=_0x1bab67(0x1eb),_0xcea129[_0xcea129['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xcea129[_0xcea129['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xcea129[_0xcea129[_0x1bab67(0x42f)]=0x271b]=_0x1bab67(0x42f),_0xcea129[_0xcea129[_0x1bab67(0x3da)]=0x271c]=_0x1bab67(0x3da),_0xcea129[_0xcea129[_0x1bab67(0x32b)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xcea129[_0xcea129[_0x1bab67(0x3a7)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xcea129[_0xcea129['YUUMI_AI_RUN_FAILED']=0x271f]=_0x1bab67(0x3c3),_0xcea129[_0xcea129[_0x1bab67(0x2c6)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0xcea129[_0xcea129['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xcea129[_0xcea129[_0x1bab67(0x30c)]=0x2ee1]=_0x1bab67(0x30c),_0xcea129[_0xcea129[_0x1bab67(0x304)]=0x2ee2]=_0x1bab67(0x304),_0xcea129[_0xcea129[_0x1bab67(0x404)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xcea129[_0xcea129[_0x1bab67(0x2f8)]=0x2ee4]=_0x1bab67(0x2f8),_0xcea129[_0xcea129[_0x1bab67(0x2e1)]=0x2ee5]=_0x1bab67(0x2e1),_0xcea129[_0xcea129[_0x1bab67(0x2cc)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xcea129[_0xcea129['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x1bab67(0x42c),_0xcea129[_0xcea129['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x1bab67(0x1ee),_0xcea129[_0xcea129[_0x1bab67(0x3f3)]=0x36b1]=_0x1bab67(0x3f3),_0xcea129[_0xcea129[_0x1bab67(0x3c6)]=0x36b2]=_0x1bab67(0x3c6),_0xcea129[_0xcea129[_0x1bab67(0x3c4)]=0x36b3]=_0x1bab67(0x3c4),_0xcea129[_0xcea129[_0x1bab67(0x3c9)]=0x36b4]=_0x1bab67(0x3c9),_0xcea129[_0xcea129['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x1bab67(0x3d5),_0xcea129[_0xcea129[_0x1bab67(0x319)]=0x3716]=_0x1bab67(0x319),_0xcea129[_0xcea129[_0x1bab67(0x330)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xcea129[_0xcea129[_0x1bab67(0x24f)]=0x37dd]=_0x1bab67(0x24f),_0xcea129[_0xcea129['REDEMPTION_INVALID_CODE']=0x3a99]=_0x1bab67(0x2d9),_0xcea129[_0xcea129[_0x1bab67(0x228)]=0x3a9a]=_0x1bab67(0x228),_0xcea129[_0xcea129[_0x1bab67(0x26d)]=0x3a9b]=_0x1bab67(0x26d),_0xcea129[_0xcea129['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x1bab67(0x416),_0xcea129[_0xcea129[_0x1bab67(0x34e)]=0x3a9d]=_0x1bab67(0x34e),_0xcea129[_0xcea129['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x1bab67(0x216),_0xcea129[_0xcea129['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x1bab67(0x219),_0xcea129[_0xcea129[_0x1bab67(0x276)]=0x3e81]=_0x1bab67(0x276),_0xcea129[_0xcea129[_0x1bab67(0x2b8)]=-0x1]='UNRECOGNIZED',_0xcea129))(Z||{});function En(_0xd2d6a3){const _0x33e377=_0x1bab67;var _0x1fd039,_0x2043e7;const _0x735954=(_0x1fd039=_0xd2d6a3['stageInfo'])==null?void 0x0:_0x1fd039[_0x33e377(0x2e3)],_0x39d30e=((_0x2043e7=_0xd2d6a3[_0x33e377(0x36d)])==null?void 0x0:_0x2043e7['totalFormulasToCalculate'])||0x0;return _0x735954===_0x1a0570[_0x33e377(0x3c5)]&&_0x39d30e>0x0;}function pn(_0x185905){const _0x458d8b=_0x1bab67;return _0x185905[_0x458d8b(0x214)]===_0x16d1f3['SUCCESS'];}var On=Object[_0x1bab67(0x32a)],Tn=(_0x50557e,_0x3c72df,_0x4cbeb7,_0x2c3357)=>{const _0x281125=_0x1bab67;for(var _0xfed756=_0x2c3357>0x1?void 0x0:_0x2c3357?On(_0x3c72df,_0x4cbeb7):_0x3c72df,_0x5dcf20=_0x50557e[_0x281125(0x30a)]-0x1,_0x17e89d;_0x5dcf20>=0x0;_0x5dcf20--)(_0x17e89d=_0x50557e[_0x5dcf20])&&(_0xfed756=_0x17e89d(_0xfed756)||_0xfed756);return _0xfed756;},P=(_0x201b27,_0x50dd81)=>(_0x5f4358,_0x152c3a)=>_0x50dd81(_0x5f4358,_0x152c3a,_0x201b27);const Cn=_0x1bab67(0x3bc),Rn=_0x1bab67(0x240),Dn=_0x1bab67(0x23e);let me=class extends _0x570ab2{constructor(_0x5eb79b,_0x523b7b,_0x4b97e3,_0x37e275,_0x42bfbb,_0x47d393,_0x274f5a){const _0x2a5134=_0x1bab67;super(),_(this,_0x2a5134(0x349),null),_(this,_0x2a5134(0x273),0x0),_(this,_0x2a5134(0x256),0x0),_(this,_0x2a5134(0x238),[]),_(this,_0x2a5134(0x269),0x0),(this[_0x2a5134(0x313)]=_0x5eb79b,this[_0x2a5134(0x22c)]=_0x523b7b,this[_0x2a5134(0x28a)]=_0x4b97e3,this[_0x2a5134(0x2f7)]=_0x37e275,this[_0x2a5134(0x3aa)]=_0x42bfbb,this[_0x2a5134(0x2b2)]=_0x47d393,this[_0x2a5134(0x34c)]=_0x274f5a,this[_0x2a5134(0x257)]());}[_0x1bab67(0x257)](){const _0x7db0dd=_0x1bab67;this[_0x7db0dd(0x24d)](this[_0x7db0dd(0x22c)]['beforeCommandExecuted']((_0x3df36e,_0x3abe07)=>{const _0x15bdca=_0x7db0dd;var _0x328ac8;if(_0x3df36e['id']!==_0x3a24d4['id'])return;const _0xfc4eb=_0x3df36e['params'];if(!this[_0x15bdca(0x333)]((_0x328ac8=_0xfc4eb[_0x15bdca(0x3b6)])!=null?_0x328ac8:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x15bdca(0x298)](_0x3df36e,_0x3abe07),this[_0x15bdca(0x3dd)](),new _0x419811();})),this['disposeWithMe'](this['_commandService'][_0x7db0dd(0x358)]((_0xed3937,_0x661733)=>{const _0x20a785=_0x7db0dd;if(_0xed3937['id']!==_0x3d0d88['id'])return;const _0x15da0e=_0xed3937['params'];if(En(_0x15da0e)){const _0x18ef86=_0x2679ea();this[_0x20a785(0x238)][_0x20a785(0x403)](_0x18ef86),this[_0x20a785(0x375)](_0x18ef86);}else{if(pn(_0x15da0e)&&this[_0x20a785(0x238)]['length']>0x0){const _0x52a0dd=this[_0x20a785(0x238)][_0x20a785(0x2ac)]();this[_0x20a785(0x3bb)](_0x52a0dd);}}}));}[_0x1bab67(0x3d8)](){const _0x3a1715=_0x1bab67;super[_0x3a1715(0x3d8)](),this[_0x3a1715(0x3a8)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x3a1715(0x273)]=0x0,this[_0x3a1715(0x269)]=0x0;}async[_0x1bab67(0x298)](_0xeb36a2,_0x51314a){const _0x144e70=_0x1bab67;for(let _0x241dbf=0x0;_0x241dbf<0x1e;_0x241dbf++)try{if(await this[_0x144e70(0x28c)](),this['_checkCalculationAvailable']()){this[_0x144e70(0x301)](_0xeb36a2,_0x51314a),this['_messageService'][_0x144e70(0x40b)]({'content':this['_localeService']['t'](_0x144e70(0x3a9)),'type':_0x5d27fe[_0x144e70(0x259)]});return;}await new Promise(_0x13d3f2=>{const _0x2ccfcf=_0x144e70;this[_0x2ccfcf(0x349)]=window[_0x2ccfcf(0x3ec)](_0x13d3f2,0x3e8);});}catch(_0x22ba7b){this[_0x144e70(0x2b2)][_0x144e70(0x253)](_0x22ba7b);}this['_messageService']['show']({'content':this[_0x144e70(0x34c)]['t'](_0x144e70(0x405)),'type':_0x5d27fe['Error']});}[_0x1bab67(0x301)](_0x3e94fe,_0x1d1d7b){const _0x22d9ef=_0x1bab67;try{this[_0x22d9ef(0x22c)][_0x22d9ef(0x271)](_0x3e94fe['id'],_0x3e94fe[_0x22d9ef(0x35c)],_0x1d1d7b);}catch(_0x233f7c){this['_logService'][_0x22d9ef(0x253)](_0x233f7c);}}[_0x1bab67(0x2cf)](_0x482c7f,_0x452890){const _0x74f5f1=_0x1bab67;_0x452890<this[_0x74f5f1(0x269)]||(this['_lastResponseTimestamp']=_0x452890,this[_0x74f5f1(0x273)]=Number[_0x74f5f1(0x2a3)](_0x482c7f[_0x74f5f1(0x2f5)]),this[_0x74f5f1(0x256)]=Number[_0x74f5f1(0x2a3)](_0x482c7f[_0x74f5f1(0x268)]));}async['_startCalculationLimit'](_0x56fea8){const _0x2d3efd=_0x1bab67;var _0xb6dfad,_0x4c3107;const _0x5a210d=Date[_0x2d3efd(0x396)]();try{const _0x5e30b8=((_0xb6dfad=this[_0x2d3efd(0x28a)][_0x2d3efd(0x2d1)](_0x4f0d33))==null?void 0x0:_0xb6dfad[_0x2d3efd(0x233)])||Rn,_0x423d7b=(await this[_0x2d3efd(0x2f7)]['post'](_0x5e30b8,{'body':JSON[_0x2d3efd(0x2e2)]({'taskId':_0x56fea8})}))['body'];if(((_0x4c3107=_0x423d7b['error'])==null?void 0x0:_0x4c3107['code'])!==Z['OK'])return;this[_0x2d3efd(0x2cf)](_0x423d7b['limitInfo'],_0x5a210d);}catch(_0x4746c9){this[_0x2d3efd(0x2b2)][_0x2d3efd(0x253)](_0x4746c9);}}async[_0x1bab67(0x28c)](_0x5abeec){const _0x10666e=_0x1bab67;var _0x16e5cc,_0xf259e7;const _0xff73b1=Date['now']();try{const _0x1d1d32=((_0x16e5cc=this['_configService'][_0x10666e(0x2d1)](_0x4f0d33))==null?void 0x0:_0x16e5cc[_0x10666e(0x3f1)])||Cn,_0x177a49=_0x5abeec?_0x1d1d32+'?taskId='+encodeURIComponent(_0x5abeec):_0x1d1d32,_0x311917=(await this['_httpService'][_0x10666e(0x1e3)](_0x177a49))['body'];if(((_0xf259e7=_0x311917[_0x10666e(0x253)])==null?void 0x0:_0xf259e7[_0x10666e(0x33c)])!==Z['OK'])return;this[_0x10666e(0x2cf)](_0x311917[_0x10666e(0x296)],_0xff73b1);}catch(_0x4e1067){this[_0x10666e(0x2b2)]['error'](_0x4e1067);}}async['_releaseCalculationLimit'](_0x243122){const _0x530cfc=_0x1bab67;var _0x2af619,_0x36f190;const _0x2daa80=Date[_0x530cfc(0x396)]();try{const _0x326d85=((_0x2af619=this[_0x530cfc(0x28a)]['getConfig'](_0x4f0d33))==null?void 0x0:_0x2af619[_0x530cfc(0x213)])||Dn,_0x18a485=(await this[_0x530cfc(0x2f7)][_0x530cfc(0x1f5)](_0x326d85,{'body':JSON[_0x530cfc(0x2e2)]({'taskId':_0x243122})}))[_0x530cfc(0x26c)];if(((_0x36f190=_0x18a485[_0x530cfc(0x253)])==null?void 0x0:_0x36f190[_0x530cfc(0x33c)])!==Z['OK'])return;this[_0x530cfc(0x2cf)](_0x18a485[_0x530cfc(0x296)],_0x2daa80);}catch(_0x28d8e3){this[_0x530cfc(0x2b2)][_0x530cfc(0x253)](_0x28d8e3);}}[_0x1bab67(0x3ca)](){const _0x2766fa=_0x1bab67;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x2766fa(0x273)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x54a23f=_0x1bab67;this[_0x54a23f(0x349)]&&(clearTimeout(this[_0x54a23f(0x349)]),this[_0x54a23f(0x349)]=null);}[_0x1bab67(0x3dd)](){const _0x22673c=_0x1bab67;this[_0x22673c(0x313)][_0x22673c(0x40b)]({'content':this[_0x22673c(0x34c)]['t'](_0x22673c(0x1ed)),'type':_0x5d27fe[_0x22673c(0x2e7)]});}[_0x1bab67(0x333)](_0x52cfc7){const _0x55ac19=_0x1bab67;for(const _0xd0616c of _0x52cfc7){const {unitId:_0x325c2f,sheetId:_0x7e3f22,range:_0xd5bae3}=_0xd0616c,_0x2d0433=this[_0x55ac19(0x3aa)][_0x55ac19(0x27a)](_0x325c2f);if(!_0x2d0433)continue;const _0x3d282b=_0x2d0433[_0x55ac19(0x26b)](_0x7e3f22);if(!_0x3d282b)continue;const _0x532673=_0x3d282b['getCellMatrix']();for(let _0x58ad56=_0xd5bae3['startRow'];_0x58ad56<=_0xd5bae3[_0x55ac19(0x2e0)];_0x58ad56++)for(let _0x47f615=_0xd5bae3[_0x55ac19(0x3a0)];_0x47f615<=_0xd5bae3[_0x55ac19(0x35a)];_0x47f615++){const _0x4623ec=_0x532673['getValue'](_0x58ad56,_0x47f615);if(_0x4623ec&&(_0x9c35a0(_0x4623ec['f'])||_0x28c56f(_0x4623ec['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x5a79e2(_0x116021)),P(0x1,_0x34fc9a),P(0x2,_0x52bdc7),P(0x3,_0x5a79e2(_0x1fe289)),P(0x4,_0x3b2157),P(0x5,_0xf1ee96),P(0x6,_0x5a79e2(_0x358b52))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x4e5161,_0x3eed0f,_0x47f487,_0x247012)=>{const _0xc59411=_0x1bab67;for(var _0x802283=_0x247012>0x1?void 0x0:_0x247012?bn(_0x3eed0f,_0x47f487):_0x3eed0f,_0xd08554=_0x4e5161[_0xc59411(0x30a)]-0x1,_0x1f32c8;_0xd08554>=0x0;_0xd08554--)(_0x1f32c8=_0x4e5161[_0xd08554])&&(_0x802283=_0x1f32c8(_0x802283)||_0x802283);return _0x802283;},Ue=(_0x27b5db,_0x228ee8)=>(_0x100801,_0x4e3d9a)=>_0x228ee8(_0x100801,_0x4e3d9a,_0x27b5db);let He=class extends _0x570ab2{constructor(_0x22ca60,_0x4f645e,_0x4457e7){const _0x295577=_0x1bab67;super(),_(this,_0x295577(0x24c),new Map()),_(this,_0x295577(0x3e8),new Map()),_(this,_0x295577(0x37c),!0x1),(this[_0x295577(0x28a)]=_0x22ca60,this[_0x295577(0x2bf)]=_0x4f645e,this[_0x295577(0x33a)]=_0x4457e7);}[_0x1bab67(0x3c0)](){const _0x103abf=_0x1bab67;this[_0x103abf(0x37c)]=!0x0;}[_0x1bab67(0x412)](){const _0x44c9ad=_0x1bab67;this[_0x44c9ad(0x37c)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x1bab67(0x3d8)](){const _0x295e8e=_0x1bab67;this[_0x295e8e(0x39a)]()[_0x295e8e(0x1f3)](()=>super[_0x295e8e(0x3d8)]());}async[_0x1bab67(0x2fb)](_0x395bfa){const _0xde58a4=_0x1bab67;return this[_0xde58a4(0x37c)]?null:this[_0xde58a4(0x2bf)][_0xde58a4(0x258)](_0x35f275(_0x395bfa));}async['saveOfflineData'](_0x439c51,_0x5ae5ea){const _0x3d69dc=_0x1bab67;return!!this[_0x3d69dc(0x2bf)]['setItem'](_0x439c51,_0x5ae5ea);}[_0x1bab67(0x21e)](_0x111f29,_0x46792c,_0x174c4d,_0x52e134){const _0x2c35a7=_0x1bab67,_0x59a5a1=this['_revisionService'][_0x2c35a7(0x23d)](_0x111f29);this[_0x2c35a7(0x24c)][_0x2c35a7(0x25f)](_0x111f29,{'unitID':_0x111f29,'type':_0x46792c,'awaitingChangeset':_0x174c4d,'mutations':_0x52e134,'rev':_0x59a5a1}),this['_saveTaskMap']['has'](_0x111f29)||this[_0x2c35a7(0x20b)](_0x111f29);}[_0x1bab67(0x20b)](_0x3cd427){const _0x1a1477=_0x1bab67,_0x4aee2b=this[_0x1a1477(0x2df)]();_0x4aee2b===0x0?this[_0x1a1477(0x2d0)](_0x3cd427):this[_0x1a1477(0x3e8)]['set'](_0x3cd427,setTimeout(()=>this['_saveCache'](_0x3cd427),_0x4aee2b));}['_getSaveTimeout'](){var _0xad11c5;return(_0xad11c5=this['_configService']['getConfig'](_0x295962))!=null?_0xad11c5:_0x389196;}[_0x1bab67(0x2d0)](_0x47085a){const _0x35b8f5=_0x1bab67,_0x3fbe48=this[_0x35b8f5(0x3e8)][_0x35b8f5(0x1e3)](_0x47085a);return _0x3fbe48!==void 0x0&&window[_0x35b8f5(0x350)](_0x3fbe48),this[_0x35b8f5(0x2bf)][_0x35b8f5(0x377)](_0x35f275(_0x47085a),this['_cachedData'][_0x35b8f5(0x1e3)](_0x47085a))['then'](()=>this[_0x35b8f5(0x3e8)][_0x35b8f5(0x3ae)](_0x47085a));}async[_0x1bab67(0x39a)](){const _0x925981=_0x1bab67,_0x47de7f=[];this[_0x925981(0x3e8)][_0x925981(0x36c)]((_0x50ea1c,_0x2652ac)=>{const _0x5a85df=_0x925981;window['clearTimeout'](_0x50ea1c),_0x47de7f[_0x5a85df(0x403)](this['_saveCache'](_0x2652ac)['then'](()=>{const _0x5df51b=_0x5a85df;this['_saveTaskMap'][_0x5df51b(0x3ae)](_0x2652ac);}));}),await Promise[_0x925981(0x334)](_0x47de7f);}};He=Nn([Ue(0x0,_0x52bdc7),Ue(0x1,_0x5852d4),Ue(0x2,_0x5a79e2(_0x10ef4a))],He);class Ln extends _0xb8eb03{constructor(){const _0x66c0e1=_0x1bab67;super(),_(this,_0x66c0e1(0x204)),this['urlChange$']=_0x5af89f(window,_0x66c0e1(0x27c))['pipe'](_0x4cbc42(this[_0x66c0e1(0x297)]),_0x3b24b5(0x1),_0x50b777(void 0x0));}[_0x1bab67(0x326)](_0x3cd443,_0x275a8e,_0x40451d=!0x1){const _0x419f64=_0x1bab67,_0x39b0e7=new URL(window['location']['href']);_0x39b0e7[_0x419f64(0x2f4)][_0x419f64(0x25f)](_0x3cd443,_0x275a8e),_0x40451d?window[_0x419f64(0x248)][_0x419f64(0x3f9)]('','',_0x39b0e7['toString']()):window[_0x419f64(0x248)][_0x419f64(0x35f)]('','',_0x39b0e7[_0x419f64(0x1dd)]());}[_0x1bab67(0x39c)](_0x5603c7,_0x351953=!0x1){const _0x12b9cf=_0x1bab67,_0x1cc1be=new URL(window[_0x12b9cf(0x37d)]['href']);_0x1cc1be['searchParams'][_0x12b9cf(0x3ae)](_0x5603c7),_0x351953?window[_0x12b9cf(0x248)][_0x12b9cf(0x3f9)]('','',_0x1cc1be[_0x12b9cf(0x1dd)]()):window['history'][_0x12b9cf(0x35f)]('','',_0x1cc1be[_0x12b9cf(0x1dd)]());}['getParam'](_0x2eeb49){const _0x411ad8=_0x1bab67;var _0x1aacf4;return(_0x1aacf4=new URL(window[_0x411ad8(0x37d)][_0x411ad8(0x380)])[_0x411ad8(0x2f4)][_0x411ad8(0x1e3)](_0x2eeb49))!=null?_0x1aacf4:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x1bab67(0x32a)],An=(_0x541a78,_0x3a5997,_0x16973b)=>_0x3a5997 in _0x541a78?Un(_0x541a78,_0x3a5997,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16973b}):_0x541a78[_0x3a5997]=_0x16973b,Pn=(_0x5cdc82,_0x3dbb8c,_0x28a760,_0x241a83)=>{const _0x402c74=_0x1bab67;for(var _0x25ef7b=_0x241a83>0x1?void 0x0:_0x241a83?Mn(_0x3dbb8c,_0x28a760):_0x3dbb8c,_0x290f4c=_0x5cdc82[_0x402c74(0x30a)]-0x1,_0x162106;_0x290f4c>=0x0;_0x290f4c--)(_0x162106=_0x5cdc82[_0x290f4c])&&(_0x25ef7b=_0x162106(_0x25ef7b)||_0x25ef7b);return _0x25ef7b;},Me=(_0x518f37,_0x368680)=>(_0x26db83,_0x35e957)=>_0x368680(_0x26db83,_0x35e957,_0x518f37),wn=(_0x3dde04,_0x5ba1be,_0x5a95c5)=>An(_0x3dde04,_0x5ba1be+'',_0x5a95c5);const yn=_0x1bab67(0x394);let Ye=class extends _0x26861e{constructor(_0x294979=_t,_0x491ea2,_0xd321fd,_0x413208){const _0x170122=_0x1bab67;super(),this[_0x170122(0x292)]=_0x294979,this[_0x170122(0x21b)]=_0x491ea2,this[_0x170122(0x428)]=_0xd321fd,this[_0x170122(0x28a)]=_0x413208;const {..._0x329984}=_0x2b8749({},_t,this[_0x170122(0x292)]);this[_0x170122(0x28a)][_0x170122(0x23c)](hn,_0x329984);}[_0x1bab67(0x2e9)](){const _0x1688af=_0x1bab67;this[_0x1688af(0x314)](),this[_0x1688af(0x418)]();}[_0x1bab67(0x211)](){const _0x39638c=_0x1bab67;this[_0x39638c(0x1e1)]();}[_0x1bab67(0x314)](){const _0x2dc4d0=_0x1bab67;var _0x22b2e6;const _0xe7b362=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0xc715c1,{'useClass':_0x1b48bb}],[_0x47e6d9,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2dc4d0(0x292)][_0x2dc4d0(0x283)]&&_0xe7b362[_0x2dc4d0(0x403)]([le]),_0x28fdc0(this[_0x2dc4d0(0x428)],_0x7f7db3(_0xe7b362,(_0x22b2e6=this['_config'])==null?void 0x0:_0x22b2e6['override']));}[_0x1bab67(0x1e1)](){const _0x3a2776=_0x1bab67;this[_0x3a2776(0x24d)](this[_0x3a2776(0x21b)][_0x3a2776(0x2c4)](_0x547011[_0x3a2776(0x265)],[Fe])),this[_0x3a2776(0x24d)](this['_renderManagerService']['registerRenderModule'](_0x547011[_0x3a2776(0x39b)],[ke]));}[_0x1bab67(0x418)](){const _0x15d570=_0x1bab67;_0x4c947a(this[_0x15d570(0x428)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x15d570(0x292)][_0x15d570(0x283)]&&_0x4c947a(this[_0x15d570(0x428)],[[le]]);}};wn(Ye,_0x1bab67(0x3a2),yn),Ye=Pn([_0x32854b(_0x306f7d),Me(0x1,_0x1eaf53),Me(0x2,_0x5a79e2(_0x41a636)),Me(0x3,_0x52bdc7)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x4299c9,_0x1a1e5f,_0xd2c2eb,_0xe755f2)=>{const _0x3b9a43=_0x1bab67;for(var _0x42afda=_0xe755f2>0x1?void 0x0:_0xe755f2?$n(_0x1a1e5f,_0xd2c2eb):_0x1a1e5f,_0x162506=_0x4299c9[_0x3b9a43(0x30a)]-0x1,_0x388fca;_0x162506>=0x0;_0x162506--)(_0x388fca=_0x4299c9[_0x162506])&&(_0x42afda=_0x388fca(_0x42afda)||_0x42afda);return _0x42afda;},J=(_0x2f816a,_0x2a0e6f)=>(_0x26c6f4,_0x5edc9b)=>_0x2a0e6f(_0x26c6f4,_0x5edc9b,_0x2f816a);let ut=class extends _0x5160fc{constructor(_0x3fc811,_0xe2461c,_0x439fc9,_0x4c9bf9,_0x5966b6){super(_0x3fc811,_0xe2461c,_0x439fc9,_0x4c9bf9,_0x5966b6);}async[_0x1bab67(0x2d6)](_0xb9cf7c){const _0x456625=_0x1bab67,_0x26e8d2=await this[_0x456625(0x397)](),_0x37e9c2=this['_createSocketURL'](_0xb9cf7c,_0x26e8d2);return this[_0x456625(0x230)](_0x37e9c2);}[_0x1bab67(0x2a0)](_0xe07cd9,_0x2f05f6){const _0x431bc7=_0x1bab67,_0x4672a8=typeof window>'u'?new URL(_0xe07cd9):new URL(_0xe07cd9,window[_0x431bc7(0x37d)][_0x431bc7(0x357)]);_0x4672a8[_0x431bc7(0x2f4)][_0x431bc7(0x25f)]('sessionTicket',_0x2f05f6);const _0xa03114=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0xa03114[_0x431bc7(0x1e3)](_0x431bc7(0x3a1))&&_0x4672a8['searchParams']['set'](_0x431bc7(0x3a1),_0xa03114[_0x431bc7(0x1e3)](_0x431bc7(0x3a1))),_0x4672a8[_0x431bc7(0x1dd)]();}async[_0x1bab67(0x397)](){const _0x49be66=_0x1bab67;var _0x4745cd,_0x21c98f,_0x58b638;const _0x45a2a5=this['_configService'][_0x49be66(0x2d1)](_0x4f0d33),_0x2fcc0f=(_0x4745cd=_0x45a2a5==null?void 0x0:_0x45a2a5[_0x49be66(0x3a4)])!=null?_0x4745cd:_0x38397b;return(_0x58b638=(_0x21c98f=(await this[_0x49be66(0x2f7)]['get'](_0x2fcc0f,{'headers':{'Content-Type':_0x49be66(0x223)}}))[_0x49be66(0x26c)])==null?void 0x0:_0x21c98f[_0x49be66(0x260)])!=null?_0x58b638:'';}};ut=xn([J(0x0,_0x5a79e2(_0x41a636)),J(0x1,_0x5a79e2(_0x1fe289)),J(0x2,_0x52bdc7),J(0x3,_0xf1ee96),J(0x4,_0x24fc69)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x42bf5a,_0x577365,_0x24ccc5,_0x47968e)=>{for(var _0x4d7045=_0x47968e>0x1?void 0x0:_0x47968e?Bn(_0x577365,_0x24ccc5):_0x577365,_0x2f532e=_0x42bf5a['length']-0x1,_0x10d435;_0x2f532e>=0x0;_0x2f532e--)(_0x10d435=_0x42bf5a[_0x2f532e])&&(_0x4d7045=_0x10d435(_0x4d7045)||_0x4d7045);return _0x4d7045;},Ae=(_0x233cb5,_0x34c186)=>(_0x4c4e71,_0x5478f9)=>_0x34c186(_0x4c4e71,_0x5478f9,_0x233cb5);let dt=class extends _0x570ab2{constructor(_0x3f9285,_0x1119b0,_0x41e95c){const _0x26bc03=_0x1bab67;super(),this[_0x26bc03(0x34f)]=_0x3f9285,this['_httpService']=_0x1119b0,this[_0x26bc03(0x28a)]=_0x41e95c;}async[_0x1bab67(0x2d4)](_0x6d7b95,_0x226768,_0x5a14c9,..._0x6c9a18){const _0x896c2=_0x1bab67;var _0x2435a6,_0x4bf95d,_0x399121,_0x4310e4;const _0x2b7947=this[_0x896c2(0x34f)][_0x896c2(0x3cc)]();if(!_0x2b7947)throw new Error(_0x896c2(0x2db));const _0x42f36c=((_0x2435a6=this[_0x896c2(0x28a)][_0x896c2(0x2d1)](_0x48ebf0))!=null?_0x2435a6:_0x21d34e)+'/'+_0x6d7b95+_0x896c2(0x29e)+_0x226768,_0x314af8=new URL(window[_0x896c2(0x37d)]['href']),_0x57d8f5={'scriptId':_0x6d7b95,'runId':(_0x4bf95d=_0x314af8['searchParams'][_0x896c2(0x1e3)](_0x896c2(0x3a1)))!=null?_0x4bf95d:'','function':_0x226768,'unitId':_0x2b7947[_0x896c2(0x3e6)](),'argsOfFunction':JSON[_0x896c2(0x2e2)](_0x6c9a18),'invokeId':(_0x399121=_0x5a14c9[_0x896c2(0x3fd)])!=null?_0x399121:'','executionId':(_0x4310e4=_0x5a14c9[_0x896c2(0x2c3)])!=null?_0x4310e4:''};try{const _0x121db4=await this['_httpService'][_0x896c2(0x1f5)](_0x42f36c,{'body':_0x57d8f5});return _0x121db4[_0x896c2(0x26c)][_0x896c2(0x253)]&&_0x121db4[_0x896c2(0x26c)][_0x896c2(0x253)][_0x896c2(0x33c)]!==Z['OK']?_0x896c2(0x250):_0x121db4[_0x896c2(0x26c)][_0x896c2(0x31e)];}catch{return _0x896c2(0x250);}}};dt=Fn([Ae(0x0,_0x3b2157),Ae(0x1,_0x5a79e2(_0x1fe289)),Ae(0x2,_0x52bdc7)],dt);const St=0x7530,mt=_0x1bab67(0x37f);class rr extends _0x570ab2{constructor(){const _0x4f9369=_0x1bab67;super(),_(this,_0x4f9369(0x415),_0x2679ea()),_(this,_0x4f9369(0x3dc),new Set()),_(this,_0x4f9369(0x324),new Map()),_(this,_0x4f9369(0x3a6),null),_(this,_0x4f9369(0x1dc),new Map()),_(this,'_unitStatus',new Map()),this[_0x4f9369(0x38f)]();}[_0x1bab67(0x3d8)](){const _0x2ff711=_0x1bab67;super[_0x2ff711(0x3d8)](),this[_0x2ff711(0x1dc)][_0x2ff711(0x36c)]((_0x9c32a1,_0x3998e0)=>this[_0x2ff711(0x41a)](_0x3998e0)),this[_0x2ff711(0x3a6)]&&window[_0x2ff711(0x21d)](this[_0x2ff711(0x3a6)]);}[_0x1bab67(0x215)](_0x2ae0c){const _0x57545d=_0x1bab67;return this['_ensureSubject'](_0x2ae0c)[_0x57545d(0x3e7)](_0x7cced5());}[_0x1bab67(0x328)](_0x5e27fb){const _0x30b8ce=_0x1bab67;this[_0x30b8ce(0x3dc)][_0x30b8ce(0x40a)]===0x0&&this[_0x30b8ce(0x295)](),this[_0x30b8ce(0x3dc)]['add'](_0x5e27fb),this[_0x30b8ce(0x411)]({'type':0x0,'memberID':this[_0x30b8ce(0x415)],'unitIDs':[_0x5e27fb],'isForwarded':!0x1});}[_0x1bab67(0x1fe)](_0xae58f9){const _0x26ca78=_0x1bab67;this[_0x26ca78(0x3dc)][_0x26ca78(0x3ae)](_0xae58f9),this[_0x26ca78(0x3dc)][_0x26ca78(0x40a)]===0x0&&this[_0x26ca78(0x3a6)]&&window[_0x26ca78(0x21d)](this[_0x26ca78(0x3a6)]);}[_0x1bab67(0x38f)](){const _0x36383b=_0x1bab67;this[_0x36383b(0x24d)](_0x2b2711(_0x5af89f(window,_0x36383b(0x34b))[_0x36383b(0x401)](_0x4b7dda=>{const _0x57c1f7=_0x36383b;if(_0x4b7dda[_0x57c1f7(0x3b3)]!==mt||!_0x4b7dda[_0x57c1f7(0x225)])return;const _0xf642a6=JSON[_0x57c1f7(0x28b)](_0x4b7dda[_0x57c1f7(0x225)]);this[_0x57c1f7(0x390)](_0xf642a6);}))),window['addEventListener'](_0x36383b(0x359),()=>this[_0x36383b(0x411)]({'type':0x1,'memberID':this[_0x36383b(0x415)],'unitIDs':Array['from'](this[_0x36383b(0x3dc)])}));}['_handleEvent'](_0x28f950){const _0x4f36da=_0x1bab67;switch(_0x28f950[_0x4f36da(0x227)]){case 0x0:this[_0x4f36da(0x28d)](_0x28f950);break;case 0x1:this[_0x4f36da(0x3ff)](_0x28f950);break;case 0x2:this[_0x4f36da(0x335)](_0x28f950);break;}}[_0x1bab67(0x28d)](_0x2d1056){const _0x348798=_0x1bab67,{unitIDs:_0x820e6e,memberID:_0x181e2c,isForwarded:_0x38ad17}=_0x2d1056;_0x820e6e[_0x348798(0x36c)](_0x5b45fa=>{const _0x3250ae=_0x348798;if(!_0x38ad17&&this[_0x3250ae(0x324)][_0x3250ae(0x1f7)](_0x5b45fa)&&this[_0x3250ae(0x294)](_0x5b45fa)[_0x3250ae(0x419)](_0x1daf11[_0x3250ae(0x237)]),!this['_unitOnClients'][_0x3250ae(0x1f7)](_0x5b45fa)||!this[_0x3250ae(0x324)][_0x3250ae(0x1e3)](_0x5b45fa)[_0x3250ae(0x1f7)](_0x181e2c)){const _0x35945d=this['_unitOnClients'][_0x3250ae(0x1e3)](_0x5b45fa)||new Set();_0x35945d['add'](_0x181e2c),this[_0x3250ae(0x324)][_0x3250ae(0x25f)](_0x5b45fa,_0x35945d),this['_scheduleClearOtherTimer'](_0x181e2c);}}),_0x38ad17||this['_send']({'type':0x0,'memberID':this[_0x348798(0x415)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1bab67(0x224)](_0x436036){const _0x36c947=_0x1bab67;this[_0x36c947(0x41a)](_0x436036);const _0x105532=window['setTimeout'](()=>{const _0x467531=_0x36c947;this[_0x467531(0x324)][_0x467531(0x36c)](_0x753a77=>{const _0x567aca=_0x467531;_0x753a77[_0x567aca(0x3ae)](_0x436036);});},St*0x2);this[_0x36c947(0x1dc)][_0x36c947(0x25f)](_0x436036,_0x105532);}[_0x1bab67(0x41a)](_0x43200c){const _0x2598a1=_0x1bab67;if(this[_0x2598a1(0x1dc)][_0x2598a1(0x1f7)](_0x43200c)){const _0x2e6a57=this[_0x2598a1(0x1dc)]['get'](_0x43200c);_0x2e6a57&&window['clearTimeout'](_0x2e6a57),this['_clearOtherTimers'][_0x2598a1(0x25f)](_0x43200c,null);}}[_0x1bab67(0x3ff)](_0x3c2cce){const _0x23b7a4=_0x1bab67,{memberID:_0x169865,unitIDs:_0x221d6f}=_0x3c2cce;_0x221d6f['forEach'](_0x21eae4=>{const _0x2e5c67=_0x4050;var _0x4f8f3d;const _0x55d67b=this['_unitOnClients'][_0x2e5c67(0x1e3)](_0x21eae4);_0x55d67b&&(_0x55d67b['delete'](_0x169865),(_0x4f8f3d=this['_ensureSubject'](_0x21eae4))==null||_0x4f8f3d[_0x2e5c67(0x419)](_0x55d67b[_0x2e5c67(0x40a)]===0x0?_0x1daf11[_0x2e5c67(0x247)]:_0x1daf11[_0x2e5c67(0x237)]));}),this[_0x23b7a4(0x41a)](_0x169865);}[_0x1bab67(0x335)](_0x5aba59){const _0x48cb28=_0x1bab67;this[_0x48cb28(0x224)](_0x5aba59['memberID']);}['_send'](_0xdaa409){const _0x309643=_0x1bab67;localStorage[_0x309643(0x377)](mt,JSON[_0x309643(0x2e2)](_0xdaa409));}[_0x1bab67(0x295)](){const _0x5e399d=_0x1bab67;this[_0x5e399d(0x3a6)]=window[_0x5e399d(0x31c)](()=>{const _0x1c980f=_0x5e399d;this[_0x1c980f(0x411)]({'type':0x2,'memberID':this['_id']});},St);}[_0x1bab67(0x294)](_0x426075){const _0x3b0d42=_0x1bab67;return this[_0x3b0d42(0x30b)][_0x3b0d42(0x1f7)](_0x426075)||this['_unitStatus'][_0x3b0d42(0x25f)](_0x426075,new _0x42c9f3(_0x1daf11['NO_OTHER_CLIENTS_EDITING'])),this[_0x3b0d42(0x30b)][_0x3b0d42(0x1e3)](_0x426075);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x331486=_0x512f;(function(_0x1679de,_0x38e1da){const _0x32c275=_0x512f,_0x41f668=_0x1679de();while(!![]){try{const _0xdd3bcc=parseInt(_0x32c275(0x151))/0x1*(parseInt(_0x32c275(0x97))/0x2)+parseInt(_0x32c275(0x21a))/0x3+parseInt(_0x32c275(0x226))/0x4*(parseInt(_0x32c275(0x258))/0x5)+parseInt(_0x32c275(0x1a7))/0x6+-parseInt(_0x32c275(0x1d6))/0x7*(-parseInt(_0x32c275(0x1c6))/0x8)+-parseInt(_0x32c275(0x1a8))/0x9+-parseInt(_0x32c275(0x1b3))/0xa;if(_0xdd3bcc===_0x38e1da)break;else _0x41f668['push'](_0x41f668['shift']());}catch(_0x1dddc3){_0x41f668['push'](_0x41f668['shift']());}}}(_0x5658,0x455ff));var Yt=Object[_0x331486(0x10c)],Wt=(_0x2c3d55,_0x4066e3,_0x16202c)=>_0x4066e3 in _0x2c3d55?Yt(_0x2c3d55,_0x4066e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16202c}):_0x2c3d55[_0x4066e3]=_0x16202c,_=(_0x275655,_0x3920ff,_0x20ed2f)=>Wt(_0x275655,typeof _0x3920ff!='symbol'?_0x3920ff+'':_0x3920ff,_0x20ed2f);import{jsx as _0x5d25a9,jsxs as _0x88859b}from'react/jsx-runtime';import{CollaborationStatus as _0x1917c2,CollaborationSessionService as _0x46dc37,CollaborationController as _0x24f9da,DataLoaderService as _0x413219,MemberService as _0x5bfe2e,SessionStatus as _0x267c32,ILocalCacheService as _0x24b451,CollaborationUIEventService as _0x1939b6,CollaborationUIEventId as _0x282a4d,DocCollaborationEntity as _0x1fd1f0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x317300,getLocalCacheKey as _0x4579ea,LOCAL_CACHE_INTERVAL as _0x3e4b99,LOCAL_CACHE_INTERVAL_KEY as _0x17b7f2,UniverCollaborationClientPlugin as _0x545449,CollaborationSocketService as _0x1af29f,DEFAULT_WS_SESSION_TICKET_URL as _0x87d114,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x10f6ab,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4d4beb,UnitStatus as _0x3fa58f}from'@univerjs-pro/collaboration-client';function _0x512f(_0x5545e5,_0x24944d){const _0x5658b0=_0x5658();return _0x512f=function(_0x512ffe,_0x66d224){_0x512ffe=_0x512ffe-0x88;let _0x38c066=_0x5658b0[_0x512ffe];return _0x38c066;},_0x512f(_0x5545e5,_0x24944d);}import{LocaleService as _0x4b3f44,IUniverInstanceService as _0x34a5b3,Inject as _0x384b36,Injector as _0x2975ff,Disposable as _0x4064cc,createIdentifier as _0x201af0,ILogService as _0x1f29f4,ICommandService as _0xd74a37,Optional as _0x36f410,RxDisposable as _0x57605c,Workbook as _0x2745c9,DOC_RANGE_TYPE as _0x80033e,debounce as _0x3554ba,Rectangle as _0x16bdf7,DisposableCollection as _0x112c0e,toDisposable as _0x385cfe,UniverInstanceType as _0x4e690a,generateRandomId as _0x460716,COLORS as _0x572559,ColorKit as _0x3e6889,ThemeService as _0x4502e6,fromEventSubject as _0x13584e,Tools as _0x24ffc8,CommandType as _0x224740,IConfigService as _0x5f43ff,CanceledError as _0x2e132b,isFormulaString as _0x365838,isFormulaId as _0x31b7fb,ILocalStorageService as _0x25196f,DependentOn as _0x145aff,Plugin as _0x1d5629,merge as _0x1e7bf4,registerDependencies as _0x5c8afa,mergeOverrideWithDependencies as _0xf081e9,touchDependencies as _0x485043}from'@univerjs/core';import{useObservable as _0x45cd22,useDependency as _0x3e9eed,IUIPartsService as _0x559491,BuiltInUIPart as _0x17e272,connectInjector as _0x5a631e,IBeforeCloseService as _0x113bc4,IMessageService as _0xc89ae7,INotificationService as _0x10311c}from'@univerjs/ui';import{BehaviorSubject as _0x5adb5d,switchMap as _0x4ce806,of as _0x218df2,takeUntil as _0x136c33,debounceTime as _0x61f829,Subject as _0x49c822,filter as _0x5ad315,merge as _0x5486e4,combineLatest as _0x48dc8f,fromEvent as _0x1059cc,shareReplay as _0x266c9a,mapTo as _0x569761,distinctUntilChanged as _0x46c569}from'rxjs';import{Tooltip as _0x4d8ab2,clsx as _0x263bd8,MessageType as _0x27e95d}from'@univerjs/design';import{useRef as _0x6b64d9,createElement as _0x559a33,forwardRef as _0x1e262a,useCallback as _0xf2d695}from'react';import{IRemoteInstanceService as _0x9b3096}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x565bcb,RefRangeService as _0x59856c,SetSelectionsOperation as _0x4a1b82,SheetsSelectionsService as _0x318b21,EffectRefRangId as _0x5ab1aa,handleIRemoveRow as _0x2d3dff,handleIRemoveCol as _0x50a710,handleMoveRange as _0x240f5e,handleInsertRow as _0x14d58d,handleInsertRangeMoveRight as _0x2ba715,handleInsertRangeMoveDown as _0x4d752e,handleInsertCol as _0x5dd904,handleDeleteRangeMoveUp as _0x11ddcb,handleDeleteRangeMoveLeft as _0x31ca5c,runRefRangeMutations as _0x34ca57}from'@univerjs/sheets';import{Shape as _0x16364b,Rect as _0x38eea8,getColor as _0x57c8a3,RegularPolygon as _0x45a19c,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x30decc,Vector2 as _0x321485,SHEET_VIEWPORT_KEY as _0x1253b5,IRenderManagerService as _0x450a3a}from'@univerjs/engine-render';import{HTTPService as _0x3fa719,ISocketService as _0x48e0d4,WebSocketService as _0x5d29c5}from'@univerjs/network';import{IDocClipboardService as _0x54ca08,NodePositionConvertToCursor as _0x3ad41d,NodePositionConvertToRectRange as _0x545a0f,TEXT_RANGE_LAYER_INDEX as _0x53e827,SetDocZoomRatioOperation as _0x56b6e8,DocIMEInputManagerService as _0x4518ea,DocStateChangeManagerService as _0x31ecfe}from'@univerjs/docs-ui';import{IImageIoService as _0x331a67}from'@univerjs/drawing';import{ITransformService as _0x2843ad,CollaborationEvent as _0x2fc4d1,isTransformMutationFailure as _0x3d60d7,isTransformMutationsWithChangesetSuccess as _0xa9160d,RevisionService as _0x21d43a,ISnapshotServerService as _0x5eb23d}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x577316,RichTextEditingMutation as _0x206466,DocSelectionManagerService as _0x1bc8e5,DocSkeletonManagerService as _0x120002}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x51524b,serializeRangeWithSheet as _0x495e5f,FormulaExecuteStageType as _0x238a49,FormulaExecutedStateType as _0x144892,SetFormulaCalculationStartMutation as _0x96febf,SetFormulaCalculationNotificationMutation as _0x2312b3}from'@univerjs/engine-formula';import{map as _0x442185,filter as _0x28f0a4,throttleTime as _0x767ecc,takeUntil as _0x4acc07,switchMap as _0x120aca}from'rxjs/operators';import{SheetSkeletonManagerService as _0x362389,getCoordByCell as _0x50883c,getSheetObject as _0x128286}from'@univerjs/sheets-ui';function Ge({ref:_0x424f4e,..._0x34153a}){const _0x4b4853=_0x331486,{icon:_0x3bf4fc,id:_0x1f50b2,className:_0x193c0f,extend:_0x4a61af,..._0x36aa28}=_0x34153a,_0x347457=(_0x4b4853(0x18f)+_0x1f50b2+'\x20'+(_0x193c0f||''))[_0x4b4853(0x1b4)](),_0x5e2479=_0x6b64d9('_'+Ei());return At(_0x3bf4fc,''+_0x1f50b2,{'defIds':_0x3bf4fc[_0x4b4853(0x1bd)],'idSuffix':_0x5e2479[_0x4b4853(0xad)]},{'ref':_0x424f4e,'className':_0x347457,..._0x36aa28},_0x4a61af);}function At(_0x3347af,_0x3dc93b,_0x2b6a30,_0x789c69,_0x302039){const _0x3e49d6=_0x331486;return _0x559a33(_0x3347af[_0x3e49d6(0xc4)],{'key':_0x3dc93b,...gi(_0x3347af,_0x2b6a30,_0x302039),..._0x789c69},(vi(_0x3347af,_0x2b6a30)[_0x3e49d6(0x13d)]||[])[_0x3e49d6(0x2b6)]((_0x5e2d84,_0x4b7d76)=>At(_0x5e2d84,_0x3dc93b+'-'+_0x3347af[_0x3e49d6(0xc4)]+'-'+_0x4b7d76,_0x2b6a30,void 0x0,_0x302039)));}function gi(_0x3a4286,_0x353e93,_0x2f69bd){const _0x46ab78=_0x331486,_0x578d6b={..._0x3a4286[_0x46ab78(0x146)]};_0x2f69bd!=null&&_0x2f69bd['colorChannel1']&&_0x578d6b[_0x46ab78(0x2d9)]==='colorChannel1'&&(_0x578d6b[_0x46ab78(0x2d9)]=_0x2f69bd[_0x46ab78(0x212)]),_0x3a4286[_0x46ab78(0xc4)]===_0x46ab78(0x277)&&_0x578d6b['id']&&(_0x578d6b['id']=_0x578d6b['id']+_0x353e93[_0x46ab78(0x213)]),Object[_0x46ab78(0x25d)](_0x578d6b)[_0x46ab78(0x210)](([_0x18218e,_0x120626])=>{const _0x287128=_0x46ab78;_0x18218e===_0x287128(0x277)&&typeof _0x120626==_0x287128(0x1c1)&&(_0x578d6b[_0x18218e]=_0x120626['replace'](/url\(#(.*)\)/,_0x287128(0x17c)+_0x353e93[_0x287128(0x213)]+')'));});const {defIds:_0x381e60}=_0x353e93;return!_0x381e60||_0x381e60['length']===0x0||(_0x3a4286[_0x46ab78(0xc4)]===_0x46ab78(0xe1)&&_0x578d6b[_0x46ab78(0x23c)]&&(_0x578d6b[_0x46ab78(0x23c)]=_0x578d6b[_0x46ab78(0x23c)]+_0x353e93[_0x46ab78(0x213)]),Object[_0x46ab78(0x25d)](_0x578d6b)[_0x46ab78(0x210)](([_0x4f35b0,_0xa47daf])=>{const _0x566723=_0x46ab78;typeof _0xa47daf==_0x566723(0x1c1)&&(_0x578d6b[_0x4f35b0]=_0xa47daf['replace'](/url\(#(.*)\)/,_0x566723(0x17c)+_0x353e93[_0x566723(0x213)]+')'));})),_0x578d6b;}function vi(_0x1c5623,_0x58d8a6){const _0x314842=_0x331486;var _0x5da6c0;const {defIds:_0x1cb543}=_0x58d8a6;return!_0x1cb543||_0x1cb543[_0x314842(0xea)]===0x0?_0x1c5623:_0x1c5623[_0x314842(0xc4)]===_0x314842(0x9e)&&((_0x5da6c0=_0x1c5623[_0x314842(0x13d)])!=null&&_0x5da6c0[_0x314842(0xea)])?{..._0x1c5623,'children':_0x1c5623[_0x314842(0x13d)]['map'](_0x515c33=>typeof _0x515c33[_0x314842(0x146)]['id']=='string'&&_0x1cb543&&_0x1cb543['includes'](_0x515c33[_0x314842(0x146)]['id'])?{..._0x515c33,'attrs':{..._0x515c33['attrs'],'id':_0x515c33[_0x314842(0x146)]['id']+_0x58d8a6['idSuffix']}}:_0x515c33)}:_0x1c5623;}function Ei(){const _0x18fede=_0x331486;return Math[_0x18fede(0x17f)]()[_0x18fede(0x130)](0x24)[_0x18fede(0x161)](0x2,0x8);}Ge[_0x331486(0x13a)]=_0x331486(0x22a);const pi={'tag':'svg','attrs':{'xmlns':_0x331486(0x23a),'fill':_0x331486(0x14a),'viewBox':_0x331486(0xe5),'width':'1em','height':_0x331486(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x331486(0xb2)},'children':[{'tag':_0x331486(0xee),'attrs':{'stroke':'currentColor','d':_0x331486(0x2c9),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x331486(0x9e),'attrs':{},'children':[{'tag':_0x331486(0xf2),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x331486(0xee),'attrs':{'fill':_0x331486(0xca),'d':_0x331486(0x1f8)}}]}]}],'defIds':[_0x331486(0x23f)]},Pt=_0x1e262a(function(_0x4bb0a1,_0x36ee4f){return _0x559a33(Ge,Object['assign']({},_0x4bb0a1,{'id':'off-line-icon','ref':_0x36ee4f,'icon':pi}));});Pt[_0x331486(0x13a)]='OffLineIcon';const Oi={'tag':_0x331486(0x1b6),'attrs':{'xmlns':_0x331486(0x23a),'fill':_0x331486(0x14a),'viewBox':_0x331486(0x228),'width':_0x331486(0x25e),'height':_0x331486(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x331486(0x192)},'children':[{'tag':'path','attrs':{'stroke':_0x331486(0x1c7),'d':_0x331486(0x1fc),'strokeLinecap':_0x331486(0x20b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x331486(0xf2),'attrs':{'id':_0x331486(0x1c9)},'children':[{'tag':_0x331486(0xee),'attrs':{'fill':'white','d':_0x331486(0x1f8),'transform':_0x331486(0x21c)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x1e262a(function(_0x5a2320,_0x2818bc){const _0x426e41=_0x331486;return _0x559a33(Ge,Object[_0x426e41(0x141)]({},_0x5a2320,{'id':_0x426e41(0xe2),'ref':_0x2818bc,'icon':Oi}));});wt[_0x331486(0x13a)]=_0x331486(0x90);function Ti(_0x1834af){const _0x34e413=_0x331486;switch(_0x1834af){case _0x1917c2[_0x34e413(0x285)]:return _0x34e413(0x282);case _0x1917c2[_0x34e413(0x28a)]:return _0x34e413(0x224);case _0x1917c2[_0x34e413(0x29a)]:return'collabStatus.fetchMiss';case _0x1917c2[_0x34e413(0x1e9)]:return _0x34e413(0x2a7);case _0x1917c2[_0x34e413(0x1de)]:case _0x1917c2[_0x34e413(0xac)]:return'collabStatus.syncing';case _0x1917c2['SYNCED']:case _0x1917c2[_0x34e413(0x296)]:return _0x34e413(0x20d);}}function Ci(_0x4c78dd){const _0x30162b=_0x331486,{status$:_0x218754}=_0x4c78dd,_0x3b24d5=_0x45cd22(_0x218754,_0x1917c2[_0x30162b(0x1e9)]),_0x363bff=_0x3e9eed(_0x4b3f44),_0x57a3e9=_0x3e9eed(_0x46dc37),_0x2c8dc5=_0x3b24d5!==_0x1917c2[_0x30162b(0x285)],_0x3e98bc=_0x363bff['t'](Ti(_0x3b24d5)),_0x587ee4=_0x2c8dc5?_0x5d25a9(wt,{}):_0x5d25a9(Pt,{}),_0x1a9f4f=_0xf2d695(()=>{_0x2c8dc5||_0x57a3e9['reconnect']();},[_0x2c8dc5,_0x57a3e9]);function _0x22ed15(){const _0x35e691=_0x30162b;return _0x88859b(_0x35e691(0x257),{'className':_0x35e691(0xf6),'onClick':_0x1a9f4f,'children':[_0x5d25a9(_0x35e691(0x257),{'className':_0x263bd8('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2c8dc5,'univer-text-red-500':!_0x2c8dc5}),'children':_0x587ee4}),_0x5d25a9(_0x35e691(0x257),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3e98bc})]});}return _0x2c8dc5?_0x22ed15():_0x5d25a9(_0x4d8ab2,{'title':_0x363bff['t']('collab-client.tooltip.reconnect'),'children':_0x22ed15()});}var Ri=Object[_0x331486(0x1ca)],Di=(_0x238ad1,_0x2d52b7,_0x35d1d6,_0x267e53)=>{const _0x2c2a0f=_0x331486;for(var _0x538944=_0x267e53>0x1?void 0x0:_0x267e53?Ri(_0x2d52b7,_0x35d1d6):_0x2d52b7,_0x215680=_0x238ad1[_0x2c2a0f(0xea)]-0x1,_0xdd238e;_0x215680>=0x0;_0x215680--)(_0xdd238e=_0x238ad1[_0x215680])&&(_0x538944=_0xdd238e(_0x538944)||_0x538944);return _0x538944;},se=(_0xa6fbd,_0x96cbb2)=>(_0x12a7cb,_0x5436ba)=>_0x96cbb2(_0x12a7cb,_0x5436ba,_0xa6fbd);let ae=class extends _0x4064cc{constructor(_0x27cf5c,_0x2eec9a,_0x2642ae,_0x29ee83){const _0x16063c=_0x331486;super(),_(this,_0x16063c(0xeb),new _0x5adb5d(_0x1917c2[_0x16063c(0x1e9)])),(this[_0x16063c(0xed)]=_0x27cf5c,this[_0x16063c(0x1fb)]=_0x2eec9a,this[_0x16063c(0x233)]=_0x2642ae,this[_0x16063c(0x175)]=_0x29ee83,this[_0x16063c(0xae)](),this[_0x16063c(0x22d)]());}[_0x331486(0x22d)](){const _0x281483=_0x331486;this[_0x281483(0xf5)](this[_0x281483(0xed)][_0x281483(0x20f)][_0x281483(0x181)](_0x4ce806(()=>{const _0x5b7b18=_0x281483,_0x1eba79=this[_0x5b7b18(0xed)]['getFocusedUnit']();return _0x1eba79?this[_0x5b7b18(0x233)][_0x5b7b18(0x112)](_0x1eba79['getUnitId']()):_0x218df2(null);}),_0x4ce806(_0x1ada31=>_0x1ada31?_0x1ada31[_0x281483(0x1b9)]:_0x218df2(_0x1917c2['NOT_COLLAB'])))[_0x281483(0x1e8)](_0x31ea82=>{const _0x36667a=_0x281483;this[_0x36667a(0xeb)]['next'](_0x31ea82);}));}['_initStatusComponent'](){const _0xfbcfe9=_0x331486;this[_0xfbcfe9(0xf5)](this[_0xfbcfe9(0x175)][_0xfbcfe9(0xa9)](_0x17e272[_0xfbcfe9(0x10f)],()=>_0x5a631e(bi({'status$':this['_status$']['asObservable']()}),this[_0xfbcfe9(0x1fb)])));}};ae=Di([se(0x0,_0x34a5b3),se(0x1,_0x384b36(_0x2975ff)),se(0x2,_0x384b36(_0x24f9da)),se(0x3,_0x559491)],ae);function bi(_0x16d255){const {status$:_0x1e6311}=_0x16d255;return function(){return _0x5d25a9(Ci,{'status$':_0x1e6311});};}const yt=_0x201af0('uni.network.url-service');var Ni=Object[_0x331486(0x1ca)],Li=(_0x47e3f6,_0x40e517,_0x4c88bb,_0x4ce20e)=>{const _0x4322f0=_0x331486;for(var _0x1feb6f=_0x4ce20e>0x1?void 0x0:_0x4ce20e?Ni(_0x40e517,_0x4c88bb):_0x40e517,_0x51a975=_0x47e3f6[_0x4322f0(0xea)]-0x1,_0x1c4dfe;_0x51a975>=0x0;_0x51a975--)(_0x1c4dfe=_0x47e3f6[_0x51a975])&&(_0x1feb6f=_0x1c4dfe(_0x1feb6f)||_0x1feb6f);return _0x1feb6f;},K=(_0x38b928,_0x45772b)=>(_0x108bbb,_0x1fcb9b)=>_0x45772b(_0x108bbb,_0x1fcb9b,_0x38b928);let ce=class extends _0x57605c{constructor(_0x1d6e59,_0x58eb4f,_0x5b8146,_0x3d69e7,_0x1bca4a){const _0x4b2e65=_0x331486;super(),this['_urlService']=_0x1d6e59,this[_0x4b2e65(0xb6)]=_0x58eb4f,this[_0x4b2e65(0x124)]=_0x5b8146,this['_dataLoaderService']=_0x3d69e7,_0x1bca4a?_0x1bca4a==null||_0x1bca4a[_0x4b2e65(0x207)]()['then'](()=>this[_0x4b2e65(0x119)]()):(this[_0x4b2e65(0xb6)][_0x4b2e65(0x1f9)]('[CollaborationDataLoaderController]',_0x4b2e65(0x26a)),this[_0x4b2e65(0x119)]());}async['_init'](){const _0x1d69a2=_0x331486,_0xca79ab=this[_0x1d69a2(0x231)][_0x1d69a2(0xdd)]('unit'),_0x471d71=this[_0x1d69a2(0x231)][_0x1d69a2(0xdd)](_0x1d69a2(0x1d3)),_0x150b27=this[_0x1d69a2(0x231)]['getParam'](_0x1d69a2(0x1df));if(!_0xca79ab||!_0x471d71){this[_0x1d69a2(0xb6)][_0x1d69a2(0x1f9)]('[CollaborationDataLoaderController]',_0x1d69a2(0x28c));return;}const _0x4eac15=await this[_0x1d69a2(0x159)][_0x1d69a2(0x23e)](_0xca79ab,Number(_0x471d71),_0x150b27);_0x4eac15&&_0x4eac15 instanceof _0x2745c9&&this['_setupSubUnitSync'](_0x4eac15);}async[_0x331486(0x139)](_0x38a98e){const _0x156950=_0x331486;await this[_0x156950(0x167)](_0x38a98e),_0x38a98e[_0x156950(0x26b)][_0x156950(0x181)](_0x136c33(this[_0x156950(0x134)]))[_0x156950(0x1e8)](_0x5b6ac7=>{const _0x5a8cc5=_0x156950;_0x5b6ac7&&this[_0x5a8cc5(0x2c8)](_0x5b6ac7);}),this[_0x156950(0x231)]['urlChange$'][_0x156950(0x181)](_0x136c33(this[_0x156950(0x134)]))[_0x156950(0x1e8)](()=>this[_0x156950(0x167)](_0x38a98e));}[_0x331486(0x2c8)](_0x1867de,_0x17003a=!0x1){const _0x5264db=_0x331486,_0x2b53f4=this[_0x5264db(0x231)][_0x5264db(0xdd)]('subunit');_0x1867de['getSheetId']()!==_0x2b53f4&&this[_0x5264db(0x231)][_0x5264db(0xe8)](_0x5264db(0x1df),_0x1867de[_0x5264db(0x1d2)](),_0x17003a);}async[_0x331486(0x167)](_0x1b33fb){const _0x2193f3=_0x331486;var _0x1c6e97;const _0x5e59b3=this[_0x2193f3(0x231)][_0x2193f3(0xdd)](_0x2193f3(0x1df));if(!_0x5e59b3||!_0x1b33fb[_0x2193f3(0x2cf)](_0x5e59b3)){const _0x2ae776=_0x1b33fb['getUnhiddenWorksheets']()[0x0],_0x83f55f=_0x1b33fb[_0x2193f3(0x2cf)](_0x2ae776);if(!_0x83f55f)return;this['_updateURLWithCurrentState'](_0x83f55f,!0x0),await this[_0x2193f3(0x124)][_0x2193f3(0x255)](_0x565bcb['id'],{'unitId':_0x1b33fb['getUnitId'](),'subUnitId':_0x2ae776});return;}((_0x1c6e97=_0x1b33fb[_0x2193f3(0x145)]())==null?void 0x0:_0x1c6e97[_0x2193f3(0x1d2)]())!==_0x5e59b3&&await this['_commandService'][_0x2193f3(0x255)](_0x565bcb['id'],{'unitId':_0x1b33fb['getUnitId'](),'subUnitId':_0x5e59b3});}};ce=Li([K(0x0,yt),K(0x1,_0x1f29f4),K(0x2,_0xd74a37),K(0x3,_0x384b36(_0x413219)),K(0x4,_0x36f410(_0x9b3096))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x473793,_0x470c43,_0x353253,_0x447dd4)=>{const _0x193748=_0x331486;for(var _0x389849=_0x447dd4>0x1?void 0x0:_0x447dd4?Ui(_0x470c43,_0x353253):_0x470c43,_0x1f482e=_0x473793[_0x193748(0xea)]-0x1,_0x54c819;_0x1f482e>=0x0;_0x1f482e--)(_0x54c819=_0x473793[_0x1f482e])&&(_0x389849=_0x54c819(_0x389849)||_0x389849);return _0x389849;},rt=(_0x38e646,_0xfcfb8d)=>(_0x7644e8,_0x5a9a08)=>_0xfcfb8d(_0x7644e8,_0x5a9a08,_0x38e646);let $e=class extends _0x57605c{constructor(_0x404724,_0x12cf71){const _0x4d4779=_0x331486;super(),this['_docClipboardService']=_0x404724,this[_0x4d4779(0x275)]=_0x12cf71,this[_0x4d4779(0x119)]();}['_init'](){const _0x54cd3c=_0x331486,_0x159486=this;this[_0x54cd3c(0xf5)](this[_0x54cd3c(0xbd)]['addClipboardHook']({'onBeforePasteImage':async _0x37c6bb=>{const _0x378404=_0x54cd3c,_0x5cf93e=await _0x159486[_0x378404(0x275)][_0x378404(0x2d3)](_0x37c6bb);return _0x5cf93e?{'source':_0x5cf93e['source'],'imageSourceType':_0x5cf93e[_0x378404(0x1a5)]}:null;}}));}};$e=Mi([rt(0x0,_0x54ca08),rt(0x1,_0x331a67)],$e);const ot=[_0x331486(0x158),'jiqing.500',_0x331486(0x1d5),_0x331486(0x2b9),_0x331486(0x221),_0x331486(0x168)];class Ke extends _0x4064cc{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x331486(0x12a)](_0x30d743){const _0x2296cf=_0x331486;if(this[_0x2296cf(0x180)][_0x2296cf(0x1ef)](_0x30d743))return this['_assignedColors']['get'](_0x30d743);const _0x4a3119=ot[this[_0x2296cf(0x142)]];return this['_colorIndex']=(this[_0x2296cf(0x142)]+0x1)%ot[_0x2296cf(0xea)],this['_assignedColors'][_0x2296cf(0x1c0)](_0x30d743,_0x4a3119),_0x4a3119;}}function $t(_0x28ba6b){let _0x4e150a='';for(const _0x55b3d4 of _0x28ba6b){const {startOffset:_0x3d8647,endOffset:_0x1c229f,isActive:_0x1867a0,rangeType:_0x569997,segmentId:_0xdb6b78,segmentPage:_0x29347b}=_0x55b3d4;_0x4e150a['length']&&(_0x4e150a+=','),_0x4e150a+=_0x3d8647+':'+_0x1c229f+':'+(_0x1867a0?'1':'0')+':'+_0x569997+':'+_0xdb6b78+':'+_0x29347b;}return _0x4e150a;}function Ai(_0x47ba73){const _0x431a3e=_0x331486,_0x53a936=_0x47ba73[_0x431a3e(0x1fa)](','),_0x31aead=[];for(const _0x45a418 of _0x53a936){const [_0x46c4db,_0x5ac9a5,_0x23dbf5,_0x239709,_0xb0198e,_0x2da7a7]=_0x45a418[_0x431a3e(0x1fa)](':');_0x31aead['push']({'startOffset':Number(_0x46c4db),'endOffset':Number(_0x5ac9a5),'collapsed':_0x46c4db===_0x5ac9a5,'isActive':_0x23dbf5==='1','rangeType':_0x239709===_0x80033e['TEXT']?_0x80033e['TEXT']:_0x80033e[_0x431a3e(0xf4)],'segmentId':typeof _0xb0198e==_0x431a3e(0x1c1)?String(_0xb0198e):'','segmentPage':Number(_0x2da7a7!=null?_0x2da7a7:-0x1)});}return _0x31aead[_0x431a3e(0x244)](_0x238c0b=>_0x238c0b['isActive'])||(_0x31aead[0x0][_0x431a3e(0x91)]=!0x0),_0x31aead;}class ze extends _0x57605c{constructor(){const _0x387947=_0x331486;super(...arguments),_(this,'_collabCursorState$',new _0x5adb5d(null)),_(this,'collabCursorState$',this[_0x387947(0x162)]['asObservable']());}['syncEditingCollabCursor'](_0x22bd83){const _0x4ec336=_0x331486,{unitID:_0x4e2d6f,memberID:_0x32e591,textRanges:_0x317303}=_0x22bd83,_0xc2cbf7=$t(_0x317303);if(_0xc2cbf7==='')return;const _0x1539e0={'unitID':_0x4e2d6f,'memberID':_0x32e591,'selection':_0xc2cbf7};this[_0x4ec336(0x162)][_0x4ec336(0x1c4)](_0x1539e0);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x3c5a60,_0x24b2e0,_0xb5b58,_0x27b12c)=>{const _0x52c88a=_0x331486;for(var _0x2793f2=_0x27b12c>0x1?void 0x0:_0x27b12c?Pi(_0x24b2e0,_0xb5b58):_0x24b2e0,_0x3a9712=_0x3c5a60[_0x52c88a(0xea)]-0x1,_0x33da9e;_0x3a9712>=0x0;_0x3a9712--)(_0x33da9e=_0x3c5a60[_0x3a9712])&&(_0x2793f2=_0x33da9e(_0x2793f2)||_0x2793f2);return _0x2793f2;},A=(_0x3e5f8e,_0x4cbafd)=>(_0x55b439,_0x4e139b)=>_0x4cbafd(_0x55b439,_0x4e139b,_0x3e5f8e);const yi=0x12c,$i=0x64;let xe=class extends _0x57605c{constructor(_0x45209f,_0x200c7a,_0x5f55b5,_0x4f56b4,_0x4d31de,_0x15c22e,_0x422529,_0x469c3e,_0x59749a){const _0x1e9a4e=_0x331486;super(),_(this,_0x1e9a4e(0x280),!0x1),_(this,_0x1e9a4e(0x119),!0x1),_(this,'_cursorInfo$',new _0x5adb5d(new Map())),_(this,_0x1e9a4e(0x2b8),this[_0x1e9a4e(0x24e)]['asObservable']()),_(this,_0x1e9a4e(0x1c2),new _0x5adb5d([])),_(this,_0x1e9a4e(0x104),this['_roomMembers$'][_0x1e9a4e(0x181)](_0x61f829(yi))),_(this,'_updateLocalCursor',_0x3554ba(_0x153a03=>{const _0x14e977=_0x1e9a4e,_0x35b81e={'eventID':_0x2fc4d1[_0x14e977(0x194)],'data':{'unitID':this['unitID'],'memberID':this[_0x14e977(0x2c7)][_0x14e977(0x173)](),'selection':$t(_0x153a03)}};this[_0x14e977(0x2c7)][_0x14e977(0x1e3)](_0x35b81e,this[_0x14e977(0x203)]);},$i)),(this['unitID']=_0x45209f,this[_0x1e9a4e(0x2c7)]=_0x200c7a,this[_0x1e9a4e(0x1fb)]=_0x5f55b5,this[_0x1e9a4e(0x157)]=_0x4f56b4,this['_memberService']=_0x4d31de,this[_0x1e9a4e(0x123)]=_0x15c22e,this['_transformService']=_0x422529,this[_0x1e9a4e(0xed)]=_0x469c3e,this[_0x1e9a4e(0x124)]=_0x59749a);}get[_0x331486(0x2b3)](){const _0x28e2fd=_0x331486;return this[_0x28e2fd(0x24e)][_0x28e2fd(0xf0)]();}get[_0x331486(0x28b)](){const _0x4c3240=_0x331486;return this[_0x4c3240(0x1c2)][_0x4c3240(0xf0)]();}[_0x331486(0x1af)](){const _0x37bcb6=_0x331486;super[_0x37bcb6(0x1af)](),this[_0x37bcb6(0x24e)][_0x37bcb6(0x1c4)](new Map()),this[_0x37bcb6(0x24e)][_0x37bcb6(0x25a)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x37bcb6(0x25a)]();}[_0x331486(0x2ba)](){const _0x53fbdc=_0x331486;this[_0x53fbdc(0x119)]||(this[_0x53fbdc(0x119)]=!0x0,this[_0x53fbdc(0x2c7)][_0x53fbdc(0x21b)][_0x53fbdc(0x181)](_0x136c33(this[_0x53fbdc(0x134)]))['subscribe'](_0x219175=>{const _0x59efdf=_0x53fbdc;_0x219175===_0x267c32[_0x59efdf(0x10b)]?this[_0x59efdf(0x2d4)]():this[_0x59efdf(0x1c3)]();}),this[_0x53fbdc(0x2c7)][_0x53fbdc(0x18a)][_0x53fbdc(0x181)](_0x136c33(this['dispose$']))[_0x53fbdc(0x1e8)](_0x4c7c92=>{const _0x374fa9=_0x53fbdc,_0x353ac2=_0x4c7c92[_0x374fa9(0x163)];_0x353ac2===_0x2fc4d1[_0x374fa9(0x194)]&&this[_0x374fa9(0x2d8)](_0x4c7c92),_0x353ac2===_0x2fc4d1[_0x374fa9(0xf1)]&&this['_onCursorDelete'](_0x4c7c92);}),this[_0x53fbdc(0xf5)](this[_0x53fbdc(0x124)][_0x53fbdc(0x2b2)](_0x5687f1=>{const _0x2dd774=_0x53fbdc,_0x378355=_0x5687f1[_0x2dd774(0x8f)];_0x378355!=null&&this['_online']&&_0x5687f1['id']===_0x577316['id']&&_0x378355[_0x2dd774(0x19a)]===this[_0x2dd774(0x203)]&&_0x378355[_0x2dd774(0x111)]===!0x1&&_0x378355[_0x2dd774(0x291)][_0x2dd774(0xea)]>0x0&&this[_0x2dd774(0x16e)](_0x378355[_0x2dd774(0x291)]);})),this[_0x53fbdc(0x123)]['collabCursorState$'][_0x53fbdc(0x181)](_0x136c33(this[_0x53fbdc(0x134)]))[_0x53fbdc(0x1e8)](_0x1436f4=>{const _0x47ea70=_0x53fbdc;if((_0x1436f4==null?void 0x0:_0x1436f4[_0x47ea70(0x203)])!==this['unitID'])return;const _0x51db92={'eventID':_0x2fc4d1[_0x47ea70(0x194)],'data':_0x1436f4};this[_0x47ea70(0x2d8)](_0x51db92);}),this[_0x53fbdc(0xf5)](this['_commandService'][_0x53fbdc(0x2b2)](_0x38b82d=>{const _0x16de92=_0x53fbdc;if(_0x38b82d[_0x16de92(0x8f)]==null)return;const _0x210477=_0x38b82d[_0x16de92(0x8f)];if(_0x38b82d['id']!==_0x206466['id']||_0x210477['unitId']!==this[_0x16de92(0x203)])return;const _0x2ed1a3={'id':_0x16de92(0xb1),'params':_0x210477},_0x575ecc=this[_0x16de92(0x2b3)];for(const [_0x3c5d9,_0x21d7d4]of _0x575ecc){const _0x4e42a7={'id':_0x16de92(0xb1),'params':{'unitId':this[_0x16de92(0x203)],'actions':null,'textRanges':_0x21d7d4[_0x16de92(0x291)]}},_0x285042=this['_transformService'][_0x16de92(0x2d0)](_0x2ed1a3,_0x4e42a7,!0x1);if(_0x3d60d7(_0x285042))throw _0x285042[_0x16de92(0x17e)];_0x575ecc[_0x16de92(0x1c0)](_0x3c5d9,{..._0x21d7d4,'ranges':_0x285042[_0x16de92(0x264)][_0x16de92(0x8f)][_0x16de92(0x1d1)]});}queueMicrotask(()=>{const _0x30408d=_0x16de92;this[_0x30408d(0x24e)][_0x30408d(0x1c4)](_0x575ecc);});})));}['_onCursorUpdate'](_0x14f971){const _0x100b23=_0x331486;var _0x4ad882,_0x31ef98;const {memberID:_0x1bd41b,selection:_0x24fac2}=_0x14f971['data'],_0x31ef9e=Ai(_0x24fac2),_0x17ea68=(_0x31ef98=(_0x4ad882=this[_0x100b23(0xd9)][_0x100b23(0x2d1)](this[_0x100b23(0x203)],_0x1bd41b))==null?void 0x0:_0x4ad882[_0x100b23(0x169)])!=null?_0x31ef98:_0x100b23(0xd1),_0x2cf1e4={'color':this[_0x100b23(0x157)]['assignAColorForMemberID'](_0x1bd41b),'name':_0x17ea68,'ranges':_0x31ef9e},_0x24041a=this[_0x100b23(0x2b3)];_0x24041a['set'](_0x1bd41b,_0x2cf1e4),this[_0x100b23(0x24e)][_0x100b23(0x1c4)](_0x24041a);}[_0x331486(0x220)](_0x57c357){const _0x25dd84=_0x331486,{memberID:_0x199527}=_0x57c357['data'],_0xd8eeb6=this['cursorInfo'];_0xd8eeb6['delete'](_0x199527),this[_0x25dd84(0x24e)][_0x25dd84(0x1c4)](_0xd8eeb6);}['_toggleOnline'](){const _0x577493=_0x331486;var _0x4276f7;if(this[_0x577493(0x280)]=!0x0,((_0x4276f7=this[_0x577493(0xed)][_0x577493(0xcb)]())==null?void 0x0:_0x4276f7[_0x577493(0x18c)]())!==this['unitID'])return;const _0x4d285e=this['_injector']['get'](_0x1bc8e5)[_0x577493(0x13f)]();Array[_0x577493(0x238)](_0x4d285e)&&_0x4d285e[_0x577493(0xea)]>0x0&&this['_updateLocalCursor'](_0x4d285e);}['_toggleOffline'](){const _0x2d5c67=_0x331486;this[_0x2d5c67(0x280)]=!0x1;}};xe=wi([A(0x2,_0x384b36(_0x2975ff)),A(0x3,_0x384b36(Ke)),A(0x4,_0x384b36(_0x5bfe2e)),A(0x5,_0x384b36(ze)),A(0x6,_0x2843ad),A(0x7,_0x34a5b3),A(0x8,_0xd74a37)],xe);var xi=Object[_0x331486(0x1ca)],Bi=(_0x3df158,_0x396d24,_0x3165c5,_0x396ded)=>{const _0x24e981=_0x331486;for(var _0x1136cb=_0x396ded>0x1?void 0x0:_0x396ded?xi(_0x396d24,_0x3165c5):_0x396d24,_0x20532b=_0x3df158[_0x24e981(0xea)]-0x1,_0x4998b1;_0x20532b>=0x0;_0x20532b--)(_0x4998b1=_0x3df158[_0x20532b])&&(_0x1136cb=_0x4998b1(_0x1136cb)||_0x1136cb);return _0x1136cb;},B=(_0x457f98,_0x4111af)=>(_0xecdfe3,_0x6ccdb8)=>_0x4111af(_0xecdfe3,_0x6ccdb8,_0x457f98);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4ef1a9=[],_0x2c8f8c=!0x1;return _0x5e419a=>{const _0x44b52b=_0x512f;_0x4ef1a9[_0x44b52b(0x118)](_0x5e419a),_0x2c8f8c||(_0x2c8f8c=!0x0,setTimeout(()=>{const _0x162cf2=_0x44b52b;_0x4ef1a9[_0x162cf2(0x210)](_0x5a1582=>_0x5a1582()),_0x4ef1a9=[],_0x2c8f8c=!0x1;}));};};let Be=class extends _0x57605c{constructor(_0x2a0b8e,_0x4d05c3,_0x18d0bb,_0xbdf7b7,_0x1082ac,_0x1e718a,_0x1a7891,_0x3f87ea){const _0x5a44fa=_0x331486;super(),_(this,_0x5a44fa(0x280),!0x1),_(this,_0x5a44fa(0x119),!0x1),_(this,_0x5a44fa(0x24e),new _0x5adb5d(new Map())),_(this,_0x5a44fa(0x2b8),this[_0x5a44fa(0x24e)][_0x5a44fa(0x149)]()),_(this,_0x5a44fa(0x1c2),new _0x5adb5d([])),_(this,'roomMembers$',this[_0x5a44fa(0x1c2)][_0x5a44fa(0x181)](_0x61f829(Fi))),_(this,_0x5a44fa(0x16e),_0x3554ba((_0x45eec5,_0x591b80)=>{const _0x123c0b=_0x5a44fa,_0x3d0c95={'eventID':_0x2fc4d1[_0x123c0b(0x194)],'data':{'unitID':this[_0x123c0b(0x203)],'memberID':this[_0x123c0b(0x2c7)][_0x123c0b(0x173)](),'selection':_0x495e5f(_0x45eec5,_0x591b80[_0x123c0b(0xe7)])}};this[_0x123c0b(0x2c7)][_0x123c0b(0x1e3)](_0x3d0c95,this[_0x123c0b(0x203)]);},ki)),(this[_0x5a44fa(0x203)]=_0x2a0b8e,this[_0x5a44fa(0x2c7)]=_0x4d05c3,this[_0x5a44fa(0x1fb)]=_0x18d0bb,this[_0x5a44fa(0x157)]=_0xbdf7b7,this['_memberService']=_0x1082ac,this[_0x5a44fa(0xed)]=_0x1e718a,this[_0x5a44fa(0x124)]=_0x1a7891,this['_refRangeService']=_0x3f87ea);}get[_0x331486(0x2b3)](){const _0x4899a3=_0x331486;return this['_cursorInfo$'][_0x4899a3(0xf0)]();}get[_0x331486(0x28b)](){const _0x547bf5=_0x331486;return this['_roomMembers$'][_0x547bf5(0xf0)]();}[_0x331486(0x1af)](){const _0x16f80c=_0x331486;super[_0x16f80c(0x1af)](),this[_0x16f80c(0x24e)]['next'](new Map()),this[_0x16f80c(0x24e)][_0x16f80c(0x25a)](),this[_0x16f80c(0x1c2)]['next']([]),this['_roomMembers$'][_0x16f80c(0x25a)]();}[_0x331486(0x2ba)](){const _0x2af471=_0x331486;this['_init']||(this[_0x2af471(0x119)]=!0x0,this['_session'][_0x2af471(0x21b)][_0x2af471(0x181)](_0x136c33(this[_0x2af471(0x134)]))[_0x2af471(0x1e8)](_0xf812c6=>{const _0x3cf755=_0x2af471;_0xf812c6===_0x267c32[_0x3cf755(0x10b)]?this[_0x3cf755(0x2d4)]():this[_0x3cf755(0x1c3)]();}),this['_session'][_0x2af471(0x18a)][_0x2af471(0x181)](_0x136c33(this[_0x2af471(0x134)]))['subscribe'](_0x31dd76=>{const _0x2592d5=_0x2af471,_0x93bf79=_0x31dd76[_0x2592d5(0x163)];_0x93bf79===_0x2fc4d1['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x31dd76),_0x93bf79===_0x2fc4d1['USERS_LEAVE']&&this[_0x2592d5(0x220)](_0x31dd76);}),this[_0x2af471(0x218)](),this[_0x2af471(0xf5)](this['_commandService'][_0x2af471(0x2b2)](_0x5aa271=>{const _0x215a15=_0x2af471;if(this[_0x215a15(0x280)]&&_0x5aa271['id']===_0x4a1b82['id']&&_0x5aa271[_0x215a15(0x8f)]['unitId']===this[_0x215a15(0x203)]){const _0x3b4b94=_0x5aa271[_0x215a15(0x8f)];this['_updateLocalCursor'](_0x3b4b94[_0x215a15(0xfd)],_0x3b4b94[_0x215a15(0x11a)][0x0]);}})));}[_0x331486(0x2d8)](_0x581d36){const _0x428a36=_0x331486;var _0x2eeee5,_0x148ee8;const {memberID:_0x78f743,selection:_0x5e0b9b}=_0x581d36['data'],{sheetName:_0x164cda,range:_0x264bfb}=_0x51524b(_0x5e0b9b),_0x4f864f={'name':(_0x148ee8=(_0x2eeee5=this[_0x428a36(0xd9)]['getMember'](this['unitID'],_0x78f743))==null?void 0x0:_0x2eeee5[_0x428a36(0x169)])!=null?_0x148ee8:_0x428a36(0xd1),'range':this[_0x428a36(0x1cc)](_0x164cda,_0x264bfb),'sheetID':_0x164cda,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x78f743),'selection':_0x5e0b9b},_0x59316b=this[_0x428a36(0x2b3)];_0x59316b[_0x428a36(0x1c0)](_0x78f743,_0x4f864f),this[_0x428a36(0x24e)][_0x428a36(0x1c4)](_0x59316b);}[_0x331486(0x220)](_0x4f1a3e){const _0x1a3eb3=_0x331486,{memberID:_0x5034e6}=_0x4f1a3e[_0x1a3eb3(0x126)],_0x471cd1=this[_0x1a3eb3(0x2b3)];_0x471cd1[_0x1a3eb3(0x211)](_0x5034e6),this[_0x1a3eb3(0x24e)]['next'](_0x471cd1);}[_0x331486(0x1cc)](_0x498337,_0x526604){const _0x2ae91f=_0x331486;var _0x4d041b,_0x2312bc;const _0x4e8507=(_0x2312bc=(_0x4d041b=this[_0x2ae91f(0xed)][_0x2ae91f(0x1ce)](this[_0x2ae91f(0x203)]))==null?void 0x0:_0x4d041b['getSheetBySheetId'](_0x498337))==null?void 0x0:_0x2312bc[_0x2ae91f(0x29b)]();return(_0x4e8507==null?void 0x0:_0x4e8507[_0x2ae91f(0xa3)](_0x47d55a=>_0x16bdf7[_0x2ae91f(0x28d)](_0x47d55a,_0x526604)))||_0x526604;}[_0x331486(0x218)](){const _0x38f171=_0x331486,_0x3a9d77=new _0x112c0e(),_0x3346ff=Hi(),_0x8ac394=()=>{const _0x4c88bf=_0x512f;_0x3a9d77['dispose']();const _0x18f6d7=(_0x58fbb1,_0x4006de,_0x4b2cad,_0x58dd61)=>{const _0x3628f6=_0x512f;let _0x2fcd97=[];switch(_0x58fbb1['id']){case _0x5ab1aa[_0x3628f6(0x14c)]:{_0x2fcd97=_0x31ca5c(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['DeleteRangeMoveUpCommandId']:{_0x2fcd97=_0x11ddcb(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x1f5)]:{_0x2fcd97=_0x5dd904(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['InsertRangeMoveDownCommandId']:{_0x2fcd97=_0x4d752e(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x25f)]:{_0x2fcd97=_0x2ba715(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0xc5)]:{_0x2fcd97=_0x14d58d(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['MoveRangeCommandId']:{_0x2fcd97=_0x240f5e(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x11b)]:{_0x2fcd97=_0x50a710(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['RemoveRowCommandId']:{_0x2fcd97=_0x2d3dff(_0x58fbb1,_0x58dd61);break;}}const _0x558288=_0x34ca57(_0x2fcd97,_0x58dd61),_0x4430de=this[_0x3628f6(0x2b3)]['get'](_0x4006de);if(_0x4430de&&_0x558288){const _0x59e3f0={..._0x4430de,'range':_0x558288};this['cursorInfo'][_0x3628f6(0x1c0)](_0x4006de,_0x59e3f0),_0x3346ff(()=>{const _0x45215f=_0x3628f6,_0x51aedd=this['_refRangeService'][_0x45215f(0xa5)](_0x558288,_0x5beb84=>(_0x51aedd['dispose'](),_0x18f6d7(_0x5beb84,_0x4006de,_0x4b2cad,_0x558288)));_0x3a9d77['add'](_0x51aedd);});}return{'redos':[],'undos':[]};};this[_0x4c88bf(0x2b3)][_0x4c88bf(0x210)]((_0x57255d,_0x9fb244)=>{const _0x50f871=_0x4c88bf,{range:_0x2b35cb,sheetID:_0x9e8dff}=_0x57255d,_0x415ec7=this[_0x50f871(0xc9)][_0x50f871(0xa5)](_0x2b35cb,_0x537bd1=>(_0x415ec7['dispose'](),_0x18f6d7(_0x537bd1,_0x9fb244,_0x9e8dff,_0x2b35cb)));_0x3a9d77['add'](_0x415ec7);});};this[_0x38f171(0xf5)](_0x385cfe(this[_0x38f171(0x24e)][_0x38f171(0x1e8)](()=>{_0x8ac394();})));}[_0x331486(0x2d4)](){const _0x4212d3=_0x331486;var _0x1d4d60,_0x452789;if(this[_0x4212d3(0x280)]=!0x0,((_0x1d4d60=this['_univerInstanceService'][_0x4212d3(0xcb)]())==null?void 0x0:_0x1d4d60[_0x4212d3(0x18c)]())!==this['unitID'])return;const _0x338a0a=(_0x452789=this['_injector'][_0x4212d3(0x1e7)](_0x318b21)['getCurrentSelections']())==null?void 0x0:_0x452789[0x0],_0x42342f=this[_0x4212d3(0xed)][_0x4212d3(0x132)](_0x4e690a[_0x4212d3(0x153)])['getActiveSheet']();_0x338a0a&&_0x42342f&&this['_updateLocalCursor'](_0x42342f[_0x4212d3(0x1d2)](),_0x338a0a);}[_0x331486(0x1c3)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x384b36(_0x2975ff)),B(0x3,_0x384b36(Ke)),B(0x4,_0x384b36(_0x5bfe2e)),B(0x5,_0x34a5b3),B(0x6,_0xd74a37),B(0x7,_0x384b36(_0x59856c))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0xebd1a9,_0x40f95c,_0x245a97,_0x37fce2)=>{const _0x5923ab=_0x331486;for(var _0x3aadbf=_0x37fce2>0x1?void 0x0:_0x37fce2?Yi(_0x40f95c,_0x245a97):_0x40f95c,_0x3caf7e=_0xebd1a9[_0x5923ab(0xea)]-0x1,_0x30155c;_0x3caf7e>=0x0;_0x3caf7e--)(_0x30155c=_0xebd1a9[_0x3caf7e])&&(_0x3aadbf=_0x30155c(_0x3aadbf)||_0x3aadbf);return _0x3aadbf;},Ce=(_0x263202,_0x2cd8f1)=>(_0x52b8e8,_0x108138)=>_0x2cd8f1(_0x52b8e8,_0x108138,_0x263202);let H=class extends _0x57605c{constructor(_0x5d18fd,_0x130005,_0x53ae13){const _0x1005d3=_0x331486;super(),_(this,_0x1005d3(0x1f7),new Map()),_(this,_0x1005d3(0x12f),new _0x49c822()),(this[_0x1005d3(0xed)]=_0x5d18fd,this[_0x1005d3(0x1fb)]=_0x130005,this['_collabSessionService']=_0x53ae13,this[_0x1005d3(0x119)]());}['dispose'](){const _0x1d97c8=_0x331486;super[_0x1d97c8(0x1af)](),this[_0x1d97c8(0x12f)][_0x1d97c8(0x25a)](),this[_0x1d97c8(0x1f7)][_0x1d97c8(0x210)](_0x3db908=>_0x3db908[_0x1d97c8(0x1af)]());}[_0x331486(0x2a5)](_0x35855c){const _0x23e57b=_0x331486;return this['_entities'][_0x23e57b(0x1ef)](_0x35855c)?this['_entities']['get'](_0x35855c)[_0x23e57b(0x2b8)]:this[_0x23e57b(0x12f)][_0x23e57b(0x181)](_0x5ad315(_0x59bc33=>_0x59bc33[_0x23e57b(0x203)]===_0x35855c),_0x4ce806(_0x44c453=>_0x44c453[_0x23e57b(0x2b8)]));}[_0x331486(0x119)](){const _0x5ddd14=_0x331486;this[_0x5ddd14(0xed)]['getTypeOfUnitAdded$'](_0x4e690a[_0x5ddd14(0x153)])[_0x5ddd14(0x181)](_0x136c33(this[_0x5ddd14(0x134)]))[_0x5ddd14(0x1e8)](async _0x152231=>{const _0x180656=_0x5ddd14,_0x337b57=_0x152231['getUnitId'](),_0x431f12=await this[_0x180656(0x1d7)](_0x337b57);this['_entityInit$'][_0x180656(0x1c4)](_0x431f12),this['_entities'][_0x180656(0x1c0)](_0x337b57,_0x431f12);}),this['_univerInstanceService'][_0x5ddd14(0x19b)](_0x4e690a['UNIVER_DOC'])[_0x5ddd14(0x181)](_0x136c33(this['dispose$']))[_0x5ddd14(0x181)](_0x5ad315(_0x86f30e=>!_0x86f30e[_0x5ddd14(0x18c)]()[_0x5ddd14(0x113)]('__')))[_0x5ddd14(0x1e8)](async _0x9c9b64=>{const _0x2ec667=_0x5ddd14,_0x1d3cc3=_0x9c9b64['getUnitId'](),_0xf902ec=await this[_0x2ec667(0xba)](_0x1d3cc3);this[_0x2ec667(0x12f)][_0x2ec667(0x1c4)](_0xf902ec),this[_0x2ec667(0x1f7)][_0x2ec667(0x1c0)](_0x1d3cc3,_0xf902ec);}),_0x5486e4(this[_0x5ddd14(0xed)][_0x5ddd14(0x89)](_0x4e690a[_0x5ddd14(0x237)]),this[_0x5ddd14(0xed)][_0x5ddd14(0x89)](_0x4e690a[_0x5ddd14(0x153)]))[_0x5ddd14(0x181)](_0x136c33(this['dispose$']))[_0x5ddd14(0x1e8)](_0x452ff6=>{const _0x4ac274=_0x5ddd14,_0x36f68e=_0x452ff6['getUnitId'](),_0x329706=this[_0x4ac274(0x1f7)][_0x4ac274(0x1e7)](_0x36f68e);_0x329706&&(_0x329706[_0x4ac274(0x1af)](),this[_0x4ac274(0x1f7)][_0x4ac274(0x211)](_0x36f68e));});}async[_0x331486(0x1d7)](_0x5cfc4f){const _0x437a22=_0x331486,_0x8546cf=await this[_0x437a22(0xbf)][_0x437a22(0x127)](_0x5cfc4f),_0x51faa2=this['_injector'][_0x437a22(0x232)](Be,_0x5cfc4f,_0x8546cf);return _0x51faa2[_0x437a22(0x2ba)](),_0x51faa2;}async['_startDocCollabCursor'](_0x39477e){const _0x335d4e=_0x331486,_0x12b4aa=await this[_0x335d4e(0xbf)]['requireSession'](_0x39477e),_0x1cc4a6=this[_0x335d4e(0x1fb)][_0x335d4e(0x232)](xe,_0x39477e,_0x12b4aa);return _0x1cc4a6[_0x335d4e(0x2ba)](),_0x1cc4a6;}};H=Wi([Ce(0x0,_0x34a5b3),Ce(0x1,_0x384b36(_0x2975ff)),Ce(0x2,_0x384b36(_0x46dc37))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x518250,_0x5434ad){const _0x59b74b=_0x331486;let {radius:_0x189943,width:_0x2c0186,height:_0x1ffd03}=_0x5434ad;_0x189943=_0x189943!=null?_0x189943:0x0,_0x2c0186=_0x2c0186!=null?_0x2c0186:0x1e,_0x1ffd03=_0x1ffd03!=null?_0x1ffd03:0x1e;let _0x321514=0x0,_0x3f59a9=0x0,_0x39d997=0x0;_0x321514=_0x3f59a9=_0x39d997=Math[_0x59b74b(0x8d)](_0x189943,_0x2c0186/0x2,_0x1ffd03/0x2),_0x518250[_0x59b74b(0x16a)](),_0x518250[_0x59b74b(0x189)](_0x321514,0x0),_0x518250['lineTo'](_0x2c0186-_0x3f59a9,0x0),_0x518250[_0x59b74b(0x1cf)](_0x2c0186-_0x3f59a9,_0x3f59a9,_0x3f59a9,Math['PI']*0x3/0x2,0x0,!0x1),_0x518250[_0x59b74b(0x263)](_0x2c0186,_0x1ffd03-_0x39d997),_0x518250[_0x59b74b(0x1cf)](_0x2c0186-_0x39d997,_0x1ffd03-_0x39d997,_0x39d997,0x0,Math['PI']/0x2,!0x1),_0x518250[_0x59b74b(0x263)](0x0,_0x1ffd03),_0x518250[_0x59b74b(0x263)](0x0,_0x321514),_0x518250['arc'](_0x321514,_0x321514,_0x321514,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x518250[_0x59b74b(0x2b1)](),_0x5434ad[_0x59b74b(0x2d9)]&&(_0x518250[_0x59b74b(0x102)](),_0x518250[_0x59b74b(0x19f)]=_0x5434ad['fill'],_0x5434ad[_0x59b74b(0x215)]==='evenodd'?_0x518250[_0x59b74b(0x2d9)](_0x59b74b(0x14b)):_0x518250[_0x59b74b(0x2d9)](),_0x518250['restore']());}class Ee extends _0x16364b{constructor(_0x1468ae,_0x5c5556){const _0x33bc45=_0x331486;super(_0x1468ae,_0x5c5556),_(this,_0x33bc45(0x15d)),_(this,_0x33bc45(0xd3)),(this[_0x33bc45(0x15d)]=_0x5c5556==null?void 0x0:_0x5c5556[_0x33bc45(0x15d)],this[_0x33bc45(0xd3)]=_0x5c5556==null?void 0x0:_0x5c5556[_0x33bc45(0xd3)]);}static[_0x331486(0xbb)](_0xcbd59d,_0x59d664){const _0x3bd56e=_0x331486,{text:_0x36e425,color:_0x25dce5}=_0x59d664;_0xcbd59d[_0x3bd56e(0x102)](),_0xcbd59d[_0x3bd56e(0x109)]=_0x3bd56e(0xcc);const _0x491192=_0xcbd59d['measureText'](_0x36e425)[_0x3bd56e(0x1fd)],_0x1ebe58=Math[_0x3bd56e(0x8d)](_0x491192+0x2*Re,at);Vi(_0xcbd59d,{'height':Q,'radius':0x4,'width':_0x1ebe58,'fill':_0x25dce5}),_0xcbd59d['fillStyle']=_0x3bd56e(0x274);const _0x29723d=Re,_0x466360=Q-ji,_0x1b5a91=at-0x2*Re;if(_0x491192>_0x1b5a91){let _0x2fbee5='',_0x45fed1=0x0;for(const _0x147c28 of _0x36e425){const _0x200c1c=_0xcbd59d[_0x3bd56e(0x122)](_0x147c28)['width'];if(_0x45fed1+_0x200c1c<=_0x1b5a91-_0xcbd59d[_0x3bd56e(0x122)](_0x3bd56e(0x271))[_0x3bd56e(0x1fd)])_0x2fbee5+=_0x147c28,_0x45fed1+=_0x200c1c;else{_0x2fbee5+='...';break;}}_0xcbd59d['fillText'](_0x2fbee5,_0x29723d,_0x466360);}else _0xcbd59d[_0x3bd56e(0x1be)](_0x36e425,_0x29723d,_0x466360);_0xcbd59d[_0x3bd56e(0xb7)]();}[_0x331486(0x9a)](_0x26e613){Ee['drawWith'](_0x26e613,this);}}const De=_0x331486(0x107),Xi=_0x331486(0x2c4),Gi='collab-rect-range-',z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x331486(0x243);class ct{constructor(_0xd853c3,_0x2b728f,_0x5d7b5e,_0x3fbd7f){const _0x24cf53=_0x331486;_(this,_0x24cf53(0x1b0),[]),_(this,'_anchor',null),_(this,_0x24cf53(0xaa),null),_(this,_0x24cf53(0x251),null),_(this,_0x24cf53(0xd4),null),_(this,'_eventUnsubscribe',null),(this['_cursor']=_0xd853c3,this[_0x24cf53(0x13b)]=_0x2b728f,this[_0x24cf53(0xe6)]=_0x5d7b5e,this[_0x24cf53(0xe9)]=_0x3fbd7f,this[_0x24cf53(0x120)]());}set[_0x331486(0x247)](_0x4b407e){const _0x3e001f=_0x331486;_0x4b407e?(this[_0x3e001f(0x251)]&&this[_0x3e001f(0x251)]['hide'](),this[_0x3e001f(0xaa)]&&this[_0x3e001f(0xaa)][_0x3e001f(0x268)]()):(this[_0x3e001f(0x251)]&&this['_anchorDot'][_0x3e001f(0x268)](),this['_textBubble']&&this['_textBubble'][_0x3e001f(0xb8)]());}[_0x331486(0x1af)](){const _0x59da4d=_0x331486;for(const _0x271db6 of this[_0x59da4d(0x1b0)])_0x271db6[_0x59da4d(0x1af)]();this[_0x59da4d(0xaa)]&&this['_textBubble'][_0x59da4d(0x1af)](),this['_anchorDot']&&this[_0x59da4d(0x251)][_0x59da4d(0x1af)](),this[_0x59da4d(0x197)]&&this[_0x59da4d(0x197)][_0x59da4d(0x1af)](),this[_0x59da4d(0x2c0)]&&this[_0x59da4d(0x2c0)]();}[_0x331486(0x120)](){const _0x11bc4f=_0x331486;var _0x3ce2c4;const {_docSkeleton:_0x137d0e,_document:_0x37d802}=this,{color:_0x8427c3,name:_0x2cac76,ranges:_0x39ad53}=this[_0x11bc4f(0x1bc)],_0x3d9dba=_0x37d802[_0x11bc4f(0x2d6)](),{docsLeft:_0x53dd23,docsTop:_0x5bd168}=_0x3d9dba,_0x2e94c0=new _0x3ad41d(_0x3d9dba,_0x137d0e);for(const {startOffset:_0x5b962c,endOffset:_0x256879,rangeType:_0x2ccc79,segmentId:_0x3083d1,segmentPage:_0x5ad325,collapsed:_0x1ec32f,isActive:_0x55046a}of _0x39ad53){const _0x164a60=_0x137d0e[_0x11bc4f(0x12e)](_0x5b962c,!0x0,_0x3083d1,_0x5ad325);let _0x5abf21=_0x137d0e[_0x11bc4f(0x12e)](_0x256879,!0x0,_0x3083d1,_0x5ad325);if(_0x5abf21==null&&(_0x5abf21=_0x137d0e['findNodePositionByCharIndex'](_0x256879-0x1,!0x1,_0x3083d1,_0x5ad325)),_0x55046a){const {contentBoxPointGroup:_0x73b49b}=_0x2e94c0[_0x11bc4f(0xa1)](_0x5abf21,_0x5abf21);if(_0x73b49b[_0x11bc4f(0xea)]===0x0)continue;this[_0x11bc4f(0x1d4)](_0x8427c3,_0x73b49b,_0x53dd23,_0x5bd168,_0x2cac76),this[_0x11bc4f(0x2c0)]=this[_0x11bc4f(0x24a)]();}if(_0x164a60&&_0x5abf21){if(_0x2ccc79===_0x80033e[_0x11bc4f(0xf4)]){const _0x463498=new _0x545a0f(_0x3d9dba,_0x137d0e),{pointGroup:_0x114f8e}=(_0x3ce2c4=_0x463498[_0x11bc4f(0xa1)](_0x164a60,_0x5abf21))!=null?_0x3ce2c4:{};if(_0x114f8e==null||_0x114f8e[_0x11bc4f(0xea)]===0x0)continue;this[_0x11bc4f(0x187)](_0x8427c3,_0x114f8e,_0x53dd23,_0x5bd168);}else{if(!_0x1ec32f){const {borderBoxPointGroup:_0x2b0da3}=_0x2e94c0[_0x11bc4f(0xa1)](_0x164a60,_0x5abf21);if(_0x2b0da3[_0x11bc4f(0xea)]===0x0)continue;this['_drawTextRange'](_0x8427c3,_0x2b0da3,_0x53dd23,_0x5bd168);}}}}}[_0x331486(0x1d4)](_0x1ecb8a,_0x33fce3,_0x1dd523,_0x14dca8,_0x541797){const _0x51fd5b=_0x331486,_0x29f9e1=this[_0x51fd5b(0x13c)](_0x33fce3),{left:_0x213bbb,top:_0x1af0a2,height:_0x2f419d}=_0x29f9e1,_0x18b2f2=this[_0x51fd5b(0x27b)](),_0x1bf836=zi/_0x18b2f2,_0x145c64=new _0x38eea8(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8,'height':_0x2f419d,'width':Ki,'fill':_0x1ecb8a||_0x57c8a3(_0x572559[_0x51fd5b(0x12c)],0x0),'strokeWidth':_0x1bf836,'stroke':Ji,'evented':!0x0});this[_0x51fd5b(0x197)]=_0x145c64,this[_0x51fd5b(0x13b)][_0x51fd5b(0x256)](_0x145c64,_0x53e827);const _0x32925a=new _0x38eea8(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8-be/0x2,'height':be,'width':be,'fill':_0x1ecb8a||_0x57c8a3(_0x572559[_0x51fd5b(0x12c)],0x0),'strokeWidth':0x0,'stroke':_0x1ecb8a||_0x57c8a3(_0x572559['black'],0x0),'evented':!0x1});this[_0x51fd5b(0x251)]=_0x32925a,this[_0x51fd5b(0x13b)]['addObject'](_0x32925a,_0x53e827);const _0x289771=new Ee(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8-Q,'text':_0x541797,'color':_0x1ecb8a});this['_textBubble']=_0x289771,this[_0x51fd5b(0x13b)][_0x51fd5b(0x256)](_0x289771,_0x53e827),this['_hover']=!0x1;}[_0x331486(0x24a)](){const _0x5cfd86=_0x331486,_0x49ba35=this[_0x5cfd86(0x197)][_0x5cfd86(0x2bd)]['subscribeEvent'](()=>{const _0x59a599=_0x5cfd86;this[_0x59a599(0x247)]=!0x0;}),_0x532a46=this[_0x5cfd86(0x197)][_0x5cfd86(0x165)][_0x5cfd86(0xe3)](()=>{const _0x212fb0=_0x5cfd86;this[_0x212fb0(0xd4)]&&clearTimeout(this[_0x212fb0(0xd4)]),this[_0x212fb0(0xd4)]=setTimeout(()=>{const _0xcdb1bb=_0x212fb0;this[_0xcdb1bb(0x247)]=!0x1;},0x7d0);});return()=>{const _0x2b1650=_0x5cfd86;_0x49ba35[_0x2b1650(0x290)](),_0x532a46['unsubscribe']();};}[_0x331486(0x154)](_0x3adaf7,_0x1a320d,_0x60a93e,_0x49d7c8){const _0xe3dfee=_0x331486,_0xcf5def=new _0x3e6889(_0x3adaf7)[_0xe3dfee(0x2bf)](0.2)[_0xe3dfee(0x1fe)](),_0x31d882=new _0x45a19c(Xi+_0x460716(z),{'pointsGroup':_0x1a320d,'fill':_0xcf5def||_0x57c8a3(_0x572559['black'],0.2),'left':_0x60a93e,'top':_0x49d7c8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe3dfee(0x1b0)][_0xe3dfee(0x118)](_0x31d882),this[_0xe3dfee(0x13b)][_0xe3dfee(0x256)](_0x31d882,_0x53e827);}[_0x331486(0x187)](_0x3064d2,_0x54a1a8,_0x1bc4bb,_0x889c68){const _0x14e529=_0x331486,_0x346e0c=new _0x3e6889(_0x3064d2)[_0x14e529(0x2bf)](0.2)[_0x14e529(0x1fe)](),_0x2af30c=new _0x45a19c(Gi+_0x460716(z),{'pointsGroup':_0x54a1a8,'fill':_0x346e0c||_0x57c8a3(_0x572559['black'],0.2),'left':_0x1bc4bb,'top':_0x889c68,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x14e529(0x1b0)]['push'](_0x2af30c),this[_0x14e529(0x13b)][_0x14e529(0x256)](_0x2af30c,_0x53e827);}['_getAnchorBounding'](_0x4d0cfd){const _0x4ff2c3=_0x4d0cfd[0x0],_0x58e4c9=_0x4ff2c3[0x0],_0x3db56a=_0x4ff2c3[0x2],{x:_0x56494a,y:_0x3befd0}=_0x58e4c9,{x:_0x100f7f,y:_0x20d9ab}=_0x3db56a;return{'left':_0x56494a,'top':_0x3befd0,'width':_0x100f7f-_0x56494a,'height':_0x20d9ab-_0x3befd0};}[_0x331486(0x27b)](){const _0x52ef95=_0x331486,{scaleX:_0x197f89,scaleY:_0x28b820}=this['_scene'][_0x52ef95(0x239)]();return Math[_0x52ef95(0x2c5)](_0x197f89,_0x28b820);}}var Zi=Object[_0x331486(0x1ca)],Qi=(_0x3f326c,_0x5d2821,_0x4ac20d,_0x2bd422)=>{const _0x1f729c=_0x331486;for(var _0x5c003a=_0x2bd422>0x1?void 0x0:_0x2bd422?Zi(_0x5d2821,_0x4ac20d):_0x5d2821,_0x363688=_0x3f326c[_0x1f729c(0xea)]-0x1,_0x14e898;_0x363688>=0x0;_0x363688--)(_0x14e898=_0x3f326c[_0x363688])&&(_0x5c003a=_0x14e898(_0x5c003a)||_0x5c003a);return _0x5c003a;},ie=(_0x3d3b8e,_0xb4e722)=>(_0x5d07a2,_0x121a37)=>_0xb4e722(_0x5d07a2,_0x121a37,_0x3d3b8e);let Fe=class extends _0x57605c{constructor(_0x4a35f0,_0x378bc5,_0x13f1f5,_0x216c95,_0x24670f){const _0x7476bd=_0x331486;super(),_(this,_0x7476bd(0x281),[]),_(this,_0x7476bd(0x1f6),[]),(this[_0x7476bd(0x17b)]=_0x4a35f0,this['_docSkeletonManagerService']=_0x378bc5,this[_0x7476bd(0x2bb)]=_0x13f1f5,this['_commandService']=_0x216c95,this[_0x7476bd(0x216)]=_0x24670f,this['_init']());}[_0x331486(0x119)](){const _0x3aa802=_0x331486,_0x2b89de=this[_0x3aa802(0x17b)][_0x3aa802(0x19a)],_0x9b10b=this[_0x3aa802(0xef)];this[_0x3aa802(0xf5)](_0x48dc8f([this[_0x3aa802(0x2bb)][_0x3aa802(0x2a5)](_0x2b89de),this[_0x3aa802(0x216)][_0x3aa802(0x1e0)]])[_0x3aa802(0x181)](_0x442185(([_0x19b816,_0x73a1])=>({'skeleton':_0x9b10b['getSkeleton'](),'cursors':[..._0x19b816[_0x3aa802(0x125)]()][_0x3aa802(0x24f)](_0x6a9d03=>({..._0x6a9d03,'color':this[_0x3aa802(0x216)][_0x3aa802(0x269)](_0x6a9d03[_0x3aa802(0x15d)])}))})))[_0x3aa802(0x1e8)](_0x2d804a=>{const _0x16dd6d=_0x3aa802;if(this[_0x16dd6d(0xa0)](),_0x2d804a){const {skeleton:_0x461992,cursors:_0x319e09}=_0x2d804a;this[_0x16dd6d(0x249)](_0x461992,_0x319e09);}})),this[_0x3aa802(0x182)](),this[_0x3aa802(0x2a6)]();}['_updateCollabCursors'](_0x4209be,_0x3b481b){const _0x467cf2=_0x331486,{scene:_0x4c6fa8,mainComponent:_0x14a1dc}=this[_0x467cf2(0x17b)],_0x18d3f3=_0x3b481b[_0x467cf2(0x2b6)](_0x523a3e=>new ct(_0x523a3e,_0x4c6fa8,_0x4209be,_0x14a1dc));this[_0x467cf2(0x281)]=_0x18d3f3,this[_0x467cf2(0x1f6)]=_0x3b481b;}['_refreshCollabCursors'](){const _0x2da78b=_0x331486;this['_removeCollabCursors']();const {scene:_0x118df6,mainComponent:_0x2f9819}=this['_context'],_0x26c412=this[_0x2da78b(0xef)][_0x2da78b(0x103)](),_0x21a1c3=this[_0x2da78b(0x1f6)][_0x2da78b(0x2b6)](_0x1fb597=>new ct(_0x1fb597,_0x118df6,_0x26c412,_0x2f9819));this[_0x2da78b(0x281)]=_0x21a1c3;}['_removeCollabCursors'](){const _0x177454=_0x331486;this[_0x177454(0x281)][_0x177454(0x210)](_0x47b1c3=>_0x47b1c3[_0x177454(0x1af)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2b117e=_0x331486,_0x29fdef=[_0x56b6e8['id']];this[_0x2b117e(0xf5)](this['_commandService'][_0x2b117e(0x2b2)](_0x20137=>{const _0x5f4824=_0x2b117e;_0x29fdef[_0x5f4824(0x24d)](_0x20137['id'])&&_0x20137[_0x5f4824(0x8f)]['unitId']===this[_0x5f4824(0x17b)][_0x5f4824(0x19a)]&&this['_refreshCollabCursors']();}));}[_0x331486(0x182)](){const _0x28b0ce=_0x331486;this[_0x28b0ce(0xf5)](_0x13584e(this[_0x28b0ce(0x17b)][_0x28b0ce(0x190)][_0x28b0ce(0xb5)])['pipe'](_0x28f0a4(_0x3db997=>_0x3db997[_0x28b0ce(0x1d3)]===_0x30decc['resize']),_0x767ecc(0x10))[_0x28b0ce(0x1e8)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x384b36(_0x120002)),ie(0x2,_0x384b36(H)),ie(0x3,_0xd74a37),ie(0x4,_0x384b36(_0x4502e6))],Fe);const qi=0x1,en=1.5;class tn extends _0x16364b{constructor(_0x3b95e8,_0x563b2b){const _0x4723aa=_0x331486;super(_0x3b95e8,_0x563b2b),_(this,'_color'),_(this,_0x4723aa(0x204),!0x1),_(this,_0x4723aa(0x20e)),_(this,'_name',''),_(this,'_labelPosition',_0x4723aa(0x2bc)),_(this,_0x4723aa(0x15a)),(_0x563b2b&&this[_0x4723aa(0x1ff)](_0x563b2b),this[_0x4723aa(0x2bd)][_0x4723aa(0xe3)](()=>this[_0x4723aa(0x1ff)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4723aa(0x1ff)]({'hovered':!0x1})));}[_0x331486(0x1ff)](_0x225f11){const _0x1a0732=_0x331486;var _0x5d8b3f,_0x4441d0,_0x69c480,_0x349b5c,_0x5ee8ea,_0x209f8f;this[_0x1a0732(0x121)]=(_0x5d8b3f=_0x225f11[_0x1a0732(0x15d)])!=null?_0x5d8b3f:this[_0x1a0732(0x121)],this[_0x1a0732(0x204)]=(_0x4441d0=_0x225f11[_0x1a0732(0x16b)])!=null?_0x4441d0:this[_0x1a0732(0x204)],this['_range']=(_0x69c480=_0x225f11[_0x1a0732(0xe7)])!=null?_0x69c480:this[_0x1a0732(0x20e)],this[_0x1a0732(0x248)]=(_0x349b5c=_0x225f11['name'])!=null?_0x349b5c:this[_0x1a0732(0x248)],this['_labelPosition']=(_0x5ee8ea=_0x225f11[_0x1a0732(0xcd)])!=null?_0x5ee8ea:this[_0x1a0732(0x147)],this[_0x1a0732(0x15a)]=(_0x209f8f=_0x225f11[_0x1a0732(0x116)])!=null?_0x209f8f:this['_backgroundColor'],this['transformByState']({'width':_0x225f11['width'],'height':_0x225f11[_0x1a0732(0x25c)]});}['onMouseMove'](_0x44c46f){const _0xa87512=_0x331486,{row:_0x57ca29,column:_0xb9e51a}=_0x44c46f;if(_0x57ca29>=this[_0xa87512(0x20e)][_0xa87512(0x260)]&&_0x57ca29<=this['_range'][_0xa87512(0xf7)]&&_0xb9e51a>=this['_range'][_0xa87512(0x262)]&&_0xb9e51a<=this[_0xa87512(0x20e)]['endColumn']){this[_0xa87512(0x1ff)]({'hovered':!0x0});return;}this[_0xa87512(0x1ff)]({'hovered':!0x1});}['triggerDblclick'](_0x3e3887){return!0x1;}[_0x331486(0x9a)](_0x3e5066){const _0x46b4c5=_0x331486;_0x38eea8[_0x46b4c5(0xbb)](_0x3e5066,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this[_0x46b4c5(0x121)],'evented':!0x1,'fill':this[_0x46b4c5(0x15a)]}),this['_hovered']&&(_0x3e5066[_0x46b4c5(0x102)](),_0x3e5066['transform'](0x1,0x0,0x0,0x1,this[_0x46b4c5(0x1fd)],this[_0x46b4c5(0x147)]==='bottom'?0x0:-Q),Ee[_0x46b4c5(0xbb)](_0x3e5066,{'text':this[_0x46b4c5(0x248)],'color':this[_0x46b4c5(0x121)]}),_0x3e5066[_0x46b4c5(0xb7)]());}}var sn=Object[_0x331486(0x1ca)],nn=(_0x28e373,_0x2ca278,_0x2d8c4d,_0x2cb800)=>{const _0x1ef949=_0x331486;for(var _0x3239c3=_0x2cb800>0x1?void 0x0:_0x2cb800?sn(_0x2ca278,_0x2d8c4d):_0x2ca278,_0x45f2d0=_0x28e373[_0x1ef949(0xea)]-0x1,_0xc8c934;_0x45f2d0>=0x0;_0x45f2d0--)(_0xc8c934=_0x28e373[_0x45f2d0])&&(_0x3239c3=_0xc8c934(_0x3239c3)||_0x3239c3);return _0x3239c3;},Ne=(_0x35c0e8,_0xfca416)=>(_0xa2c77e,_0x5107d7)=>_0xfca416(_0xa2c77e,_0x5107d7,_0x35c0e8);const rn=0x1389;let ke=class extends _0x57605c{constructor(_0x1b33e5,_0x58ef0c,_0x3e31a4,_0x17f500){const _0x235db9=_0x331486;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x235db9(0x17b)]=_0x1b33e5,this[_0x235db9(0x1ea)]=_0x58ef0c,this[_0x235db9(0x2bb)]=_0x3e31a4,this[_0x235db9(0x216)]=_0x17f500,this[_0x235db9(0x119)]());}[_0x331486(0x119)](){const _0x3d573b=_0x331486;this[_0x3d573b(0x1ea)][_0x3d573b(0x208)]['pipe'](_0x4acc07(this[_0x3d573b(0x134)]),_0x120aca(_0x5ef28e=>{const _0xeabd56=_0x3d573b;if(_0x5ef28e){const _0x4aed48=_0x5ef28e[_0xeabd56(0x95)];return _0x48dc8f(this['_collabCursorController'][_0xeabd56(0x2a5)](this[_0xeabd56(0x17b)][_0xeabd56(0x19a)]),this[_0xeabd56(0x216)]['currentTheme$'])[_0xeabd56(0x181)](_0x442185(([_0x3bb9cd,_0x56ff92])=>{const _0x557198=_0xeabd56,_0x23d14d=new Map();return _0x3bb9cd[_0x557198(0x210)]((_0x5467ff,_0x3a6158)=>{const _0x3612c7=_0x557198;if(_0x5467ff[_0x3612c7(0xe0)]===_0x4aed48){const _0xa94771={..._0x5467ff};_0xa94771['color']=this[_0x3612c7(0x216)][_0x3612c7(0x269)](_0x5467ff['color']),_0x23d14d[_0x3612c7(0x1c0)](_0x3a6158,_0xa94771);}}),{'skeleton':_0x5ef28e,'cursors':_0x23d14d};}));}return _0x218df2({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28883b,cursors:_0x34001a})=>{const _0x28601b=_0x3d573b;this[_0x28601b(0xa0)](),_0x28883b&&this['_updateCollabCursors'](_0x28883b,_0x34001a);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3d573b(0x1e8)](_0x37d511=>{const _0x1cf976=_0x3d573b;if(_0x37d511==null)return;const {skeleton:_0x3ab48c}=_0x37d511,{scene:_0x18fc22}=this[_0x1cf976(0x17b)];_0x18fc22[_0x1cf976(0x114)]['subscribeEvent'](_0x3554ba(_0xc43b61=>{const _0x45dd20=_0x1cf976;var _0x2d290f,_0x4b56e8;const {offsetX:_0x54b6e6,offsetY:_0x3155df}=_0xc43b61,{x:_0x38fcb9,y:_0x5c207c}=_0x18fc22[_0x45dd20(0x198)](_0x321485[_0x45dd20(0x259)]([_0x54b6e6,_0x3155df])),{scaleX:_0x2737a5,scaleY:_0x4e0e3c}=_0x18fc22['getAncestorScale'](),_0x588006=_0x18fc22[_0x45dd20(0x2ca)](_0x1253b5[_0x45dd20(0x193)]),_0x592a61=_0x18fc22[_0x45dd20(0x136)](_0x321485[_0x45dd20(0x259)]([_0x38fcb9,_0x5c207c]),_0x588006),_0x44715d=_0x3ab48c[_0x45dd20(0x15e)](_0x54b6e6,_0x3155df,_0x2737a5,_0x4e0e3c,_0x592a61);((_0x2d290f=this['_lastPointer'])==null?void 0x0:_0x2d290f[_0x45dd20(0xd6)])===_0x44715d['column']&&((_0x4b56e8=this[_0x45dd20(0x1f0)])==null?void 0x0:_0x4b56e8[_0x45dd20(0xfb)])===_0x44715d[_0x45dd20(0xfb)]||this['_cursors'][_0x45dd20(0x210)](_0x139898=>{const _0x182826=_0x45dd20;_0x139898[_0x182826(0x26e)](_0x44715d);});},0x64));});}[_0x331486(0x249)](_0xd7c038,_0xc96244){const _0x31af78=_0x331486;var _0x6bb6a0;const _0x53195c=(_0x6bb6a0=this[_0x31af78(0x1ea)][_0x31af78(0x29e)]())==null?void 0x0:_0x6bb6a0['skeleton'];if(!_0x53195c)return;const _0xce5588=this[_0x31af78(0x140)]();if(!_0xce5588)return;this[_0x31af78(0x1f6)]['forEach'](_0x1adee9=>{const _0x164259=_0x31af78;_0x1adee9[_0x164259(0x27c)]();});const {scene:_0x29c554}=_0xce5588,_0x26b877=on(Array[_0x31af78(0x2cc)](_0xc96244[_0x31af78(0x125)]()))[_0x31af78(0x2b6)](_0x2ee567=>{const _0x44762c=_0x31af78,{color:_0x3fdaa1,range:_0x8e2e87,name:_0xfb95fe,selection:_0x56259a,sheetID:_0x206738}=_0x2ee567,{startColumn:_0x2bc6f5,startRow:_0x37ead4,endColumn:_0x14ea3a,endRow:_0x59eef4}=_0x8e2e87,_0x4d0005=_0x50883c(_0x37ead4,_0x2bc6f5,_0x29c554,_0x53195c),_0x5aab03=_0x50883c(_0x59eef4,_0x14ea3a,_0x29c554,_0x53195c),{columnHeaderHeightAndMarginTop:_0x52f8f5}=_0x53195c,{startX:_0x21742c,startY:_0x13555c}=_0x4d0005,{endX:_0x1917df,endY:_0x2608ce}=_0x5aab03,_0xe50a30=_0x1917df-_0x21742c,_0x1d5429=_0x2608ce-_0x13555c,_0x430b1e={'labelPosition':_0x13555c-_0x52f8f5>=Q?_0x44762c(0x2bc):_0x44762c(0x22b),'sheetID':_0x206738,'range':_0x8e2e87,'color':_0x3fdaa1,'name':_0xfb95fe,'selection':_0x56259a,'left':_0x21742c,'top':_0x13555c,'width':_0xe50a30,'height':_0x1d5429,'evented':!0x1,'zIndex':rn};return new tn(_0xfb95fe,_0x430b1e);});_0x29c554[_0x31af78(0x2b4)](_0x26b877,qi),this[_0x31af78(0x1f6)]=new Set(_0x26b877);}[_0x331486(0xa0)](){const _0x1e822f=_0x331486;var _0x345513;(_0x345513=this[_0x1e822f(0x1f6)])==null||_0x345513[_0x1e822f(0x210)](_0x27d884=>_0x27d884[_0x1e822f(0x1af)]());}[_0x331486(0x140)](){const _0x3d200a=_0x331486;return _0x128286(this[_0x3d200a(0x17b)][_0x3d200a(0x164)],this[_0x3d200a(0x17b)]);}};ke=nn([Ne(0x1,_0x384b36(_0x362389)),Ne(0x2,_0x384b36(H)),Ne(0x3,_0x384b36(_0x4502e6))],ke);function on(_0x581907){const _0x3dc4bf=_0x331486,_0x271f84=new Map();return _0x581907[_0x3dc4bf(0x210)](_0x12100d=>{const _0x5ef4b0=_0x3dc4bf;if(_0x271f84[_0x5ef4b0(0x1ef)](_0x12100d[_0x5ef4b0(0x1b5)])){const _0x105953=_0x271f84['get'](_0x12100d[_0x5ef4b0(0x1b5)]);_0x105953['name']+=',\x20'+_0x12100d[_0x5ef4b0(0x169)];}else _0x271f84[_0x5ef4b0(0x1c0)](_0x12100d['selection'],_0x12100d);}),Array[_0x3dc4bf(0x2cc)](_0x271f84[_0x3dc4bf(0x125)]());}var an=Object[_0x331486(0x1ca)],cn=(_0x4552af,_0x1f176d,_0x50be84,_0x38339b)=>{const _0x1e1bcf=_0x331486;for(var _0xc0fd13=_0x38339b>0x1?void 0x0:_0x38339b?an(_0x1f176d,_0x50be84):_0x1f176d,_0xdc0c96=_0x4552af[_0x1e1bcf(0xea)]-0x1,_0x853895;_0xdc0c96>=0x0;_0xdc0c96--)(_0x853895=_0x4552af[_0xdc0c96])&&(_0xc0fd13=_0x853895(_0xc0fd13)||_0xc0fd13);return _0xc0fd13;},F=(_0x4f4e95,_0x359e0b)=>(_0x5cec0a,_0x896973)=>_0x359e0b(_0x5cec0a,_0x896973,_0x4f4e95);let _e=class extends _0x4064cc{constructor(_0xb85c34,_0x511902,_0x2ae308,_0x35ada1,_0x58fff4,_0x24aaa1){const _0x48c5f3=_0x331486;super(),this[_0x48c5f3(0x27d)]=_0xb85c34,this['_localCacheService']=_0x511902,this[_0x48c5f3(0x117)]=_0x2ae308,this['_messageService']=_0x35ada1,this[_0x48c5f3(0x188)]=_0x58fff4,this[_0x48c5f3(0x2d5)]=_0x24aaa1,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x331486(0x133)](){const _0x39adb1=_0x331486;this[_0x39adb1(0xf5)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x127fb7=_0x39adb1;if(this[_0x127fb7(0x27a)][_0x127fb7(0x177)][_0x127fb7(0x209)])return this[_0x127fb7(0x2d5)]['t'](_0x127fb7(0x1dd));}));}[_0x331486(0x11c)](){const _0x1be63d=_0x331486;this[_0x1be63d(0xf5)](this[_0x1be63d(0x117)][_0x1be63d(0x18a)][_0x1be63d(0x1e8)](_0x269aa6=>{const _0x16f943=_0x1be63d;_0x269aa6['id']===_0x282a4d[_0x16f943(0xce)]&&this[_0x16f943(0x17a)]['show']({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x11e))}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x148)]&&this[_0x16f943(0x17a)]['show']({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x245))}),_0x269aa6['id']===_0x282a4d['PERMISSION_DENIED']&&this[_0x16f943(0x188)][_0x16f943(0x268)]({'title':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x294)),'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x9c)),'type':_0x16f943(0x17e),'duration':0x0}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x28a)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x2a0)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x245))+'('+_0x269aa6[_0x16f943(0x126)]+')'}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x11d)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x269aa6[_0x16f943(0x126)]||'')}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x22c)]&&this['_messageService'][_0x16f943(0x268)]({'type':_0x27e95d['Warning'],'content':this['_localeService']['t'](_0x16f943(0x272))}),_0x269aa6['id']===_0x282a4d['SOCKET_FAILED']&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d['Error'],'content':this[_0x16f943(0x2d5)]['t']('session.connection-failed')}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x230)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x2a0)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x171))});}));}};_e=cn([F(0x0,_0x113bc4),F(0x1,_0x24b451),F(0x2,_0x384b36(_0x1939b6)),F(0x3,_0xc89ae7),F(0x4,_0x10311c),F(0x5,_0x384b36(_0x4b3f44))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x109d8b,_0x1db62d,_0x53d2e0,_0xa947af)=>{for(var _0x94b11f=_0xa947af>0x1?void 0x0:_0xa947af?_n(_0x1db62d,_0x53d2e0):_0x1db62d,_0x280584=_0x109d8b['length']-0x1,_0x21bbf7;_0x280584>=0x0;_0x280584--)(_0x21bbf7=_0x109d8b[_0x280584])&&(_0x94b11f=_0x21bbf7(_0x94b11f)||_0x94b11f);return _0x94b11f;},ne=(_0x8e670b,_0x5e1b59)=>(_0x511d12,_0x77df77)=>_0x5e1b59(_0x511d12,_0x77df77,_0x8e670b);let le=class extends _0x4064cc{constructor(_0x18fac6,_0x45b201,_0x4932dd,_0xe6b611){const _0x183a65=_0x331486;super(),_(this,_0x183a65(0x199)),(this[_0x183a65(0x1fb)]=_0x18fac6,this[_0x183a65(0x202)]=_0x45b201,this[_0x183a65(0xb6)]=_0x4932dd,this['_collaborationSessionService']=_0xe6b611,this[_0x183a65(0x119)]());}[_0x331486(0x119)](){const _0xa69f1c=_0x331486;this['_initWindowErrorListener'](),this[_0xa69f1c(0x206)](),this[_0xa69f1c(0x186)](),this['_initUserListener']();}[_0x331486(0x170)](){const _0x1e884b=_0x331486;this[_0x1e884b(0xf5)](this[_0x1e884b(0x18b)][_0x1e884b(0xec)][_0x1e884b(0x1e8)](_0x38520f=>{const _0x20ef46=_0x1e884b;this[_0x20ef46(0x199)]=_0x38520f==null?void 0x0:_0x38520f[_0x20ef46(0x98)];}));}[_0x331486(0x278)](){const _0x4830c9=_0x331486,_0x480158=_0x1a0c1e=>{const _0x409b3e=_0x512f;var _0x48482b;this[_0x409b3e(0xc8)](_0x409b3e(0x17e),_0x409b3e(0xd5)+_0x1a0c1e['message']+'\x20at\x20'+_0x1a0c1e[_0x409b3e(0x1f1)]+':'+_0x1a0c1e['lineno']+':'+_0x1a0c1e[_0x409b3e(0x241)]+'\x0a'+(((_0x48482b=_0x1a0c1e['error'])==null?void 0x0:_0x48482b[_0x409b3e(0x178)])||''));};window[_0x4830c9(0x21f)]('error',_0x480158),this['disposeWithMe'](()=>{const _0x5bf946=_0x4830c9;window[_0x5bf946(0xf3)](_0x5bf946(0x17e),_0x480158);});}[_0x331486(0x206)](){const _0x254b37=_0x331486,_0x26324f=_0x331563=>{const _0x4dc70f=_0x512f;this[_0x4dc70f(0xc8)](_0x4dc70f(0x17e),_0x4dc70f(0x1dc)+_0x331563['reason']);};window[_0x254b37(0x21f)](_0x254b37(0xb3),_0x26324f),this['disposeWithMe'](()=>{const _0x19a37c=_0x254b37;window[_0x19a37c(0xf3)](_0x19a37c(0xb3),_0x26324f);});}['_monkeyPatchLogService'](){const _0x4a85b6=_0x331486,_0x424eb7=this['_logService']['error']['bind'](this[_0x4a85b6(0xb6)]);this[_0x4a85b6(0xb6)][_0x4a85b6(0x17e)]=(..._0x5d2399)=>{const _0x423ff9=_0x4a85b6,_0x39f1d5=_0x5d2399[_0x423ff9(0x2b6)](_0xab3446=>_0xab3446 instanceof Error?_0xab3446[_0x423ff9(0x8c)]+'\x0a'+_0xab3446[_0x423ff9(0x178)]:String(_0xab3446))[_0x423ff9(0x2b0)]('\x20');this[_0x423ff9(0xc8)]('error',_0x423ff9(0xc7)+_0x39f1d5),_0x424eb7(..._0x5d2399);},this['disposeWithMe'](()=>{const _0x248a7e=_0x4a85b6;this[_0x248a7e(0xb6)][_0x248a7e(0x17e)]=_0x424eb7;});}[_0x331486(0xc8)](_0xb8385d,_0x552299){const _0x25ba2e=_0x331486;try{const _0xa035d7={'userId':this[_0x25ba2e(0x199)],'logLabel':_0xb8385d,'content':_0x552299};this['_httpService'][_0x25ba2e(0x18e)](_0x25ba2e(0x273),{'body':_0xa035d7})[_0x25ba2e(0x1aa)](()=>{});}catch{}}};le=ln([ne(0x0,_0x384b36(_0x2975ff)),ne(0x1,_0x384b36(_0x3fa719)),ne(0x2,_0x1f29f4),ne(0x3,_0x384b36(_0x46dc37))],le);const hn=_0x331486(0x1bb),_t={};var un=Object[_0x331486(0x1ca)],dn=(_0x5384fe,_0x3a1f20,_0x54147a,_0x43fa9d)=>{const _0x350aa9=_0x331486;for(var _0x14c58d=_0x43fa9d>0x1?void 0x0:_0x43fa9d?un(_0x3a1f20,_0x54147a):_0x3a1f20,_0x5dd4f1=_0x5384fe[_0x350aa9(0xea)]-0x1,_0x475d90;_0x5dd4f1>=0x0;_0x5dd4f1--)(_0x475d90=_0x5384fe[_0x5dd4f1])&&(_0x14c58d=_0x475d90(_0x14c58d)||_0x14c58d);return _0x14c58d;},lt=(_0x1718b5,_0x53871b)=>(_0x31b3b3,_0x390e73)=>_0x53871b(_0x31b3b3,_0x390e73,_0x1718b5);let he=class{constructor(_0x1cec2b,_0x20ab8c){const _0x1c0645=_0x331486;this[_0x1c0645(0xfc)]=_0x1cec2b,this['_renderManagerService']=_0x20ab8c;}[_0x331486(0xa6)](_0x4a2ecf){const _0x49652a=_0x331486;this[_0x49652a(0x1e1)](_0x4a2ecf),this[_0x49652a(0x128)](_0x4a2ecf);}[_0x331486(0xa2)](_0x2bbf2d){const _0x2e439b=_0x331486,{unitID:_0x4184a7}=_0x2bbf2d,_0x1f95ac=this[_0x2e439b(0x13e)][_0x2e439b(0x1d9)](_0x4184a7)['with'](_0x4518ea),{redoCache:_0x3c278f}=_0x1f95ac['getUndoRedoMutationParamsCache']();if(_0x3c278f[_0x2e439b(0xea)]===0x0)return _0x2bbf2d;let _0x278246=_0x24ffc8[_0x2e439b(0x1ee)](_0x2bbf2d[_0x2e439b(0x2ae)][0x0]);for(let _0x3bcabc=0x0;_0x3bcabc<_0x3c278f[_0x2e439b(0xea)];_0x3bcabc++){const _0x843686={'id':_0x2e439b(0xb1),'params':{..._0x3c278f[_0x3bcabc]}},_0x3e9170=this[_0x2e439b(0xfc)]['transformMutation'](_0x278246,_0x843686,!0x1);if(_0x3d60d7(_0x3e9170))throw _0x3e9170[_0x2e439b(0x17e)];_0x278246=_0x3e9170['m1Prime'];}return{..._0x24ffc8[_0x2e439b(0x1ee)](_0x2bbf2d),'mutations':[_0x278246]};}[_0x331486(0x1e1)](_0x466eff){const _0x42b516=_0x331486,{unitID:_0x4cb995}=_0x466eff,_0x1aa7a0=this[_0x42b516(0x13e)][_0x42b516(0x1d9)](_0x4cb995)[_0x42b516(0x222)](_0x4518ea),{undoCache:_0xa008f0,redoCache:_0xeb939c}=_0x1aa7a0[_0x42b516(0x9f)]();if(_0xa008f0[_0x42b516(0xea)]===0x0||_0xeb939c['length']===0x0)return;const _0x1cc449=[],_0x4c8fd2=[];let _0x2dad01=_0x24ffc8['deepClone'](_0x466eff[_0x42b516(0x2ae)][0x0]),_0x3a5926=_0x24ffc8['deepClone'](_0x466eff['mutations'][0x0]);for(let _0x19e310=_0xa008f0[_0x42b516(0xea)]-0x1;_0x19e310>=0x0;_0x19e310--){const _0x137780={'id':_0x42b516(0xb1),'params':{..._0xa008f0[_0x19e310]}},_0x3d824a={'id':'doc.mutation.rich-text-editing','params':{..._0xeb939c[_0x19e310]}},_0x1f5d9c=this[_0x42b516(0xfc)][_0x42b516(0x2d0)](_0x2dad01,_0x137780,!0x1),_0x203bc0=this[_0x42b516(0xfc)][_0x42b516(0x2d0)](_0x3a5926,_0x3d824a,!0x1);if(_0x3d60d7(_0x1f5d9c))throw _0x1f5d9c[_0x42b516(0x17e)];if(_0x3d60d7(_0x203bc0))throw _0x203bc0[_0x42b516(0x17e)];_0x1cc449[_0x42b516(0x2b5)](_0x1f5d9c['m2Prime'][_0x42b516(0x8f)]),_0x4c8fd2[_0x42b516(0x2b5)](_0x203bc0[_0x42b516(0x264)][_0x42b516(0x8f)]),_0x2dad01=_0x1f5d9c[_0x42b516(0x25b)],_0x3a5926=_0x203bc0[_0x42b516(0x25b)];}_0x1aa7a0['setUndoRedoMutationParamsCache']({'undoCache':_0x1cc449,'redoCache':_0x4c8fd2});}[_0x331486(0x128)](_0x60b45){const _0x126672=_0x331486,{unitID:_0x26b203}=_0x60b45,_0x3cc720=this['_renderManagerService']['getRenderById'](_0x26b203)[_0x126672(0x222)](_0x4518ea),_0x36f1cc=_0x3cc720['getActiveRange']();if(_0x36f1cc==null)return;const _0xeeef3c=[{'id':_0x126672(0xb1),'params':{'unitId':_0x60b45[_0x126672(0x203)],'actions':null,'textRanges':[_0x36f1cc]}}],_0x53be24=this[_0x126672(0xfc)][_0x126672(0x172)](_0x60b45,_0xeeef3c);if(!_0xa9160d(_0x53be24))throw _0x53be24[_0x126672(0x17e)];const _0x5c6985=_0x53be24[_0x126672(0x264)][0x0][_0x126672(0x8f)][_0x126672(0x1d1)];Array['isArray'](_0x5c6985)&&_0x5c6985[_0x126672(0xea)]&&_0x3cc720[_0x126672(0x1f4)](_0x5c6985[0x0]);}};he=dn([lt(0x0,_0x2843ad),lt(0x1,_0x450a3a)],he);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x4fd97b,_0x38937a,_0x33ab1a,_0x34a1e3)=>{for(var _0x31f894=_0x34a1e3>0x1?void 0x0:_0x34a1e3?Sn(_0x38937a,_0x33ab1a):_0x38937a,_0x38c346=_0x4fd97b['length']-0x1,_0x2f6aec;_0x38c346>=0x0;_0x38c346--)(_0x2f6aec=_0x4fd97b[_0x38c346])&&(_0x31f894=_0x2f6aec(_0x31f894)||_0x31f894);return _0x31f894;},Le=(_0x4c661c,_0x215cd6)=>(_0x28ef81,_0x438a07)=>_0x215cd6(_0x28ef81,_0x438a07,_0x4c661c);let ue=class{constructor(_0x4aad44,_0xd61b75,_0x1bf591){const _0x29d332=_0x331486;this[_0x29d332(0x1fb)]=_0x4aad44,this[_0x29d332(0xfc)]=_0xd61b75,this[_0x29d332(0x267)]=_0x1bf591;}[_0x331486(0xf8)](_0x4eba7){const _0x1c0aad=_0x331486;this[_0x1c0aad(0x26d)](_0x4eba7);}['transformRemoteChangeset'](_0x29aa66){const _0x528b9d=_0x331486,{unitID:_0x4407b0}=_0x29aa66,{collaboration:_0x5b0bbb}=this[_0x528b9d(0x267)][_0x528b9d(0x1cd)](_0x4407b0);if(_0x5b0bbb[_0x528b9d(0xea)]===0x0)return _0x29aa66;let _0x3c4146=_0x24ffc8['deepClone'](_0x29aa66[_0x528b9d(0x2ae)][0x0]);for(let _0x4cfb88=0x0;_0x4cfb88<_0x5b0bbb[_0x528b9d(0xea)];_0x4cfb88++){const _0x12a0c9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b0bbb[_0x4cfb88]['unitId'],..._0x5b0bbb[_0x4cfb88][_0x528b9d(0x1ed)]}},_0x2ab49f=this['_transformService'][_0x528b9d(0x2d0)](_0x3c4146,_0x12a0c9,!0x1);if(_0x3d60d7(_0x2ab49f))throw _0x2ab49f[_0x528b9d(0x17e)];_0x3c4146=_0x2ab49f[_0x528b9d(0x25b)];}return{..._0x24ffc8['deepClone'](_0x29aa66),'mutations':[_0x3c4146]};}[_0x331486(0x26d)](_0x3130e8){const _0x5ed594=_0x331486,{unitID:_0x3a049a}=_0x3130e8,{history:_0x3ccb97,collaboration:_0x50e49e}=this[_0x5ed594(0x267)]['getStateCache'](_0x3a049a);if(_0x3ccb97['length']===0x0&&_0x50e49e[_0x5ed594(0xea)]===0x0)return;const _0x5b977a=[],_0x39c935=[];let _0xd6af5a=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]),_0x285cc4=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8['mutations'][0x0]);for(let _0xb8e52a=_0x3ccb97[_0x5ed594(0xea)]-0x1;_0xb8e52a>=0x0;_0xb8e52a--){const _0x5f1057={'id':_0x5ed594(0xb1),'params':{'unitId':_0x3ccb97[_0xb8e52a][_0x5ed594(0x19a)],..._0x3ccb97[_0xb8e52a][_0x5ed594(0x293)]}},_0x58f4c9={'id':_0x5ed594(0xb1),'params':{'unitId':_0x3ccb97[_0xb8e52a]['unitId'],..._0x3ccb97[_0xb8e52a][_0x5ed594(0x1ed)]}},_0x3d5e1a=this[_0x5ed594(0xfc)][_0x5ed594(0x2d0)](_0xd6af5a,_0x5f1057,!0x1),_0x54403b=this['_transformService'][_0x5ed594(0x2d0)](_0x285cc4,_0x58f4c9,!0x1);if(_0x3d60d7(_0x3d5e1a))throw _0x3d5e1a[_0x5ed594(0x17e)];if(_0x3d60d7(_0x54403b))throw _0x54403b['error'];_0x5b977a[_0x5ed594(0x2b5)]({..._0x3ccb97[_0xb8e52a],'undoState':_0x3d5e1a[_0x5ed594(0x264)][_0x5ed594(0x8f)],'redoState':_0x54403b[_0x5ed594(0x264)][_0x5ed594(0x8f)]}),_0xd6af5a=_0x3d5e1a[_0x5ed594(0x25b)],_0x285cc4=_0x54403b[_0x5ed594(0x25b)];}_0xd6af5a=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]),_0x285cc4=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]);for(let _0x299179=_0x50e49e[_0x5ed594(0xea)]-0x1;_0x299179>=0x0;_0x299179--){const _0x1a222f={'id':_0x5ed594(0xb1),'params':{'unitId':_0x50e49e[_0x299179]['unitId'],..._0x50e49e[_0x299179][_0x5ed594(0x293)]}},_0x379e5c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50e49e[_0x299179][_0x5ed594(0x19a)],..._0x50e49e[_0x299179]['redoState']}},_0x2e1d90=this[_0x5ed594(0xfc)][_0x5ed594(0x2d0)](_0xd6af5a,_0x1a222f,!0x1),_0x5be10e=this[_0x5ed594(0xfc)]['transformMutation'](_0x285cc4,_0x379e5c,!0x1);if(_0x3d60d7(_0x2e1d90))throw _0x2e1d90[_0x5ed594(0x17e)];if(_0x3d60d7(_0x5be10e))throw _0x5be10e['error'];_0x39c935['unshift']({..._0x50e49e[_0x299179],'undoState':_0x2e1d90[_0x5ed594(0x264)]['params'],'redoState':_0x5be10e[_0x5ed594(0x264)][_0x5ed594(0x8f)]}),_0xd6af5a=_0x2e1d90[_0x5ed594(0x25b)],_0x285cc4=_0x5be10e[_0x5ed594(0x25b)];}this[_0x5ed594(0x267)][_0x5ed594(0x16f)](_0x3a049a,{'history':_0x5b977a,'collaboration':_0x39c935});}};ue=mn([Le(0x0,_0x384b36(_0x2975ff)),Le(0x1,_0x2843ad),Le(0x2,_0x384b36(_0x31ecfe))],ue);var In=Object[_0x331486(0x1ca)],fn=(_0x1d6bde,_0x395464,_0x51244e,_0x10134d)=>{const _0x360076=_0x331486;for(var _0x1577aa=_0x10134d>0x1?void 0x0:_0x10134d?In(_0x395464,_0x51244e):_0x395464,_0x54623e=_0x1d6bde[_0x360076(0xea)]-0x1,_0x261cc8;_0x54623e>=0x0;_0x54623e--)(_0x261cc8=_0x1d6bde[_0x54623e])&&(_0x1577aa=_0x261cc8(_0x1577aa)||_0x1577aa);return _0x1577aa;},ht=(_0x45e98d,_0x168e46)=>(_0x47f746,_0x4d9156)=>_0x168e46(_0x47f746,_0x4d9156,_0x45e98d);let de=class{constructor(_0x36b54c,_0xdde101){const _0x355d50=_0x331486;this[_0x355d50(0x1fb)]=_0x36b54c,this[_0x355d50(0xfc)]=_0xdde101;}[_0x331486(0x1b8)](_0x9a63f){const _0x277452=_0x331486;var _0x1bc2c3;const _0x180982=this[_0x277452(0x1fb)][_0x277452(0x1e7)](_0x1bc8e5),_0x57b81b=(_0x1bc2c3=_0x180982[_0x277452(0x13f)]())!=null?_0x1bc2c3:[];if(_0x57b81b[_0x277452(0xea)]===0x0)return;const _0x1b47d1=_0x9a63f[_0x277452(0x203)],_0x1482ec=[{'id':_0x277452(0xb1),'params':{'unitId':_0x1b47d1,'actions':null,'textRanges':_0x57b81b}}],_0x1e2f8f=this['_transformService'][_0x277452(0x172)](_0x9a63f,_0x1482ec);if(!_0xa9160d(_0x1e2f8f))throw _0x1e2f8f[_0x277452(0x17e)];const _0x25948a=_0x1e2f8f['m2Prime'][0x0][_0x277452(0x8f)][_0x277452(0x1d1)];Array[_0x277452(0x238)](_0x25948a)&&_0x25948a['length']&&_0x180982[_0x277452(0xbe)](_0x25948a,{'unitId':_0x1b47d1,'subUnitId':_0x1b47d1},!0x1);}};de=fn([ht(0x0,_0x384b36(_0x2975ff)),ht(0x1,_0x2843ad)],de);var gn=Object[_0x331486(0x1ca)],vn=(_0x4aeeb4,_0x47d1f5,_0x2c963d,_0x3421e7)=>{for(var _0x54f66a=_0x3421e7>0x1?void 0x0:_0x3421e7?gn(_0x47d1f5,_0x2c963d):_0x47d1f5,_0xfc6fb0=_0x4aeeb4['length']-0x1,_0x23b85a;_0xfc6fb0>=0x0;_0xfc6fb0--)(_0x23b85a=_0x4aeeb4[_0xfc6fb0])&&(_0x54f66a=_0x23b85a(_0x54f66a)||_0x54f66a);return _0x54f66a;},U=(_0x582e1a,_0x33d608)=>(_0x4d963e,_0x1be16e)=>_0x33d608(_0x4d963e,_0x1be16e,_0x582e1a);let Se=class extends _0x4064cc{constructor(_0x4c083d,_0x22af3a,_0x5323a6,_0xdd80e7,_0x389200,_0x1fa679,_0x1aa028,_0xecab3e){const _0x4780b6=_0x331486;super(),_(this,'_status$',new _0x5adb5d(_0x1917c2['NOT_COLLAB'])),(this[_0x4780b6(0x267)]=_0x4c083d,this[_0x4780b6(0x233)]=_0x22af3a,this['_docTransformIMECacheService']=_0x5323a6,this[_0x4780b6(0x283)]=_0xdd80e7,this['_docTransformSelectionsService']=_0x389200,this['_docSyncEditingCollabCursorService']=_0x1fa679,this['_messageService']=_0x1aa028,this[_0x4780b6(0x2d5)]=_0xecab3e,this[_0x4780b6(0x298)]());}[_0x331486(0x298)](){const _0x2aeaee=_0x331486;this['disposeWithMe'](this[_0x2aeaee(0x233)][_0x2aeaee(0x12d)]['subscribe'](_0x33dd6c=>{const _0x295d57=_0x2aeaee,_0x1814a7=this[_0x295d57(0x267)][_0x295d57(0xde)][_0x295d57(0x1e8)](_0x4ceb80=>{const _0x5729b3=_0x295d57;if(_0x4ceb80==null)return;const {unitId:_0x2c5251,redoState:_0x2bf0ae,commandId:_0x42158d}=_0x4ceb80;if(_0x2c5251!==_0x33dd6c['unitID'])return;const _0x5c6f9b={'id':_0x42158d,'type':_0x224740[_0x5729b3(0x214)],'params':{'unitId':_0x2c5251,'actions':_0x2bf0ae[_0x5729b3(0x1d0)],'textRanges':null}};_0x33dd6c[_0x5729b3(0x299)](_0x5c6f9b);});if(_0x33dd6c[_0x295d57(0xf5)](_0x1814a7),_0x33dd6c instanceof _0x1fd1f0){const _0x1c35dd={'onTransformIME':_0x473ce2=>this[_0x295d57(0x201)][_0x295d57(0xa6)](_0x473ce2),'onTransformState':_0x1553bb=>this[_0x295d57(0x283)]['transformStateCache'](_0x1553bb),'onTransformSelections':_0x2f3848=>this[_0x295d57(0x2a9)][_0x295d57(0x1b8)](_0x2f3848),'onSyncEditingCollabCursor':_0x5257ad=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x5257ad),'onTransformRemoteChangesetByIMECache':_0xe76efd=>this[_0x295d57(0x201)][_0x295d57(0xa2)](_0xe76efd),'onTransformRemoteChangesetByStateCache':_0xc10c06=>this[_0x295d57(0x283)][_0x295d57(0xa2)](_0xc10c06)};_0x33dd6c[_0x295d57(0x227)](_0x1c35dd);}}));}};Se=vn([U(0x0,_0x384b36(_0x31ecfe)),U(0x1,_0x384b36(_0x24f9da)),U(0x2,_0x384b36(he)),U(0x3,_0x384b36(ue)),U(0x4,_0x384b36(de)),U(0x5,_0x384b36(ze)),U(0x6,_0xc89ae7),U(0x7,_0x384b36(_0x4b3f44))],Se);var Z=(_0x10e411=>(_0x10e411[_0x10e411[_0x331486(0xb4)]=0x0]=_0x331486(0xb4),_0x10e411[_0x10e411['OK']=0x1]='OK',_0x10e411[_0x10e411[_0x331486(0xc0)]=0x2]=_0x331486(0xc0),_0x10e411[_0x10e411['PERMISSION_DENIED']=0x3]=_0x331486(0x297),_0x10e411[_0x10e411[_0x331486(0xda)]=0x4]='NOT_FOUND',_0x10e411[_0x10e411['UNAUTHENTICATED']=0x5]=_0x331486(0xc3),_0x10e411[_0x10e411[_0x331486(0x10a)]=0x6]=_0x331486(0x10a),_0x10e411[_0x10e411[_0x331486(0x1a4)]=0x7]='INVALID_ARGUMENT',_0x10e411[_0x10e411[_0x331486(0x1b2)]=0x8]='TOO_MANY_REQUESTS',_0x10e411[_0x10e411[_0x331486(0x2ac)]=0x9]=_0x331486(0x2ac),_0x10e411[_0x10e411[_0x331486(0x12b)]=0xa]=_0x331486(0x12b),_0x10e411[_0x10e411[_0x331486(0x24c)]=0xb]=_0x331486(0x24c),_0x10e411[_0x10e411[_0x331486(0x1a6)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x10e411[_0x10e411['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x10e411[_0x10e411[_0x331486(0x2a2)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x10e411[_0x10e411['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x10e411[_0x10e411[_0x331486(0x242)]=0x10]=_0x331486(0x242),_0x10e411[_0x10e411[_0x331486(0xff)]=0x64]=_0x331486(0xff),_0x10e411[_0x10e411[_0x331486(0x253)]=0x65]=_0x331486(0x253),_0x10e411[_0x10e411[_0x331486(0x26f)]=0xc9]='USER_NOT_FOUND',_0x10e411[_0x10e411['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x10e411[_0x10e411[_0x331486(0x2cb)]=0x1389]=_0x331486(0x2cb),_0x10e411[_0x10e411[_0x331486(0x8a)]=0x1771]=_0x331486(0x8a),_0x10e411[_0x10e411[_0x331486(0xb9)]=0x1772]=_0x331486(0xb9),_0x10e411[_0x10e411[_0x331486(0x229)]=0x1773]=_0x331486(0x229),_0x10e411[_0x10e411[_0x331486(0x1e5)]=0x1b59]=_0x331486(0x1e5),_0x10e411[_0x10e411[_0x331486(0xfe)]=0x1b5a]=_0x331486(0xfe),_0x10e411[_0x10e411[_0x331486(0x16c)]=0x1b5b]=_0x331486(0x16c),_0x10e411[_0x10e411['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x331486(0x2d2),_0x10e411[_0x10e411[_0x331486(0xd7)]=0x1b5d]=_0x331486(0xd7),_0x10e411[_0x10e411[_0x331486(0x2a8)]=0x1f41]=_0x331486(0x2a8),_0x10e411[_0x10e411[_0x331486(0x217)]=0x2329]=_0x331486(0x217),_0x10e411[_0x10e411[_0x331486(0x8b)]=0x232a]=_0x331486(0x8b),_0x10e411[_0x10e411['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x331486(0x240),_0x10e411[_0x10e411[_0x331486(0xdc)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x10e411[_0x10e411[_0x331486(0x2c6)]=0x232d]=_0x331486(0x2c6),_0x10e411[_0x10e411[_0x331486(0x2a3)]=0x2711]=_0x331486(0x2a3),_0x10e411[_0x10e411['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x10e411[_0x10e411[_0x331486(0x219)]=0x2713]=_0x331486(0x219),_0x10e411[_0x10e411[_0x331486(0x131)]=0x2714]=_0x331486(0x131),_0x10e411[_0x10e411[_0x331486(0xcf)]=0x271a]=_0x331486(0xcf),_0x10e411[_0x10e411[_0x331486(0xc6)]=0x271b]=_0x331486(0xc6),_0x10e411[_0x10e411[_0x331486(0x1ec)]=0x271c]=_0x331486(0x1ec),_0x10e411[_0x10e411[_0x331486(0x236)]=0x271d]=_0x331486(0x236),_0x10e411[_0x10e411[_0x331486(0x1a0)]=0x271e]=_0x331486(0x1a0),_0x10e411[_0x10e411[_0x331486(0x93)]=0x271f]=_0x331486(0x93),_0x10e411[_0x10e411[_0x331486(0x295)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x10e411[_0x10e411[_0x331486(0x17d)]=0x2af9]=_0x331486(0x17d),_0x10e411[_0x10e411[_0x331486(0x184)]=0x2ee1]=_0x331486(0x184),_0x10e411[_0x10e411[_0x331486(0xc1)]=0x2ee2]=_0x331486(0xc1),_0x10e411[_0x10e411[_0x331486(0x225)]=0x2ee3]=_0x331486(0x225),_0x10e411[_0x10e411[_0x331486(0x143)]=0x2ee4]=_0x331486(0x143),_0x10e411[_0x10e411[_0x331486(0x138)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x10e411[_0x10e411[_0x331486(0x28e)]=0x32c9]=_0x331486(0x28e),_0x10e411[_0x10e411['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x331486(0x10d),_0x10e411[_0x10e411[_0x331486(0x11f)]=0x32cb]=_0x331486(0x11f),_0x10e411[_0x10e411[_0x331486(0xbc)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x10e411[_0x10e411[_0x331486(0x24b)]=0x36b2]=_0x331486(0x24b),_0x10e411[_0x10e411[_0x331486(0x110)]=0x36b3]=_0x331486(0x110),_0x10e411[_0x10e411[_0x331486(0x106)]=0x36b4]=_0x331486(0x106),_0x10e411[_0x10e411[_0x331486(0x2cd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x10e411[_0x10e411['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x331486(0x252),_0x10e411[_0x10e411[_0x331486(0x292)]=0x3717]=_0x331486(0x292),_0x10e411[_0x10e411[_0x331486(0x21d)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x10e411[_0x10e411[_0x331486(0x1db)]=0x3a99]=_0x331486(0x1db),_0x10e411[_0x10e411[_0x331486(0x279)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x10e411[_0x10e411['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x331486(0x266),_0x10e411[_0x10e411['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x331486(0x250),_0x10e411[_0x10e411[_0x331486(0x88)]=0x3a9d]=_0x331486(0x88),_0x10e411[_0x10e411['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x331486(0x96),_0x10e411[_0x10e411[_0x331486(0x270)]=0x3a9f]=_0x331486(0x270),_0x10e411[_0x10e411[_0x331486(0x26c)]=0x3e81]=_0x331486(0x26c),_0x10e411[_0x10e411['UNRECOGNIZED']=-0x1]=_0x331486(0x14e),_0x10e411))(Z||{});function En(_0x206209){const _0x2ec86a=_0x331486;var _0x9a32ad,_0x1cf2af;const _0x29d737=(_0x9a32ad=_0x206209[_0x2ec86a(0xd0)])==null?void 0x0:_0x9a32ad[_0x2ec86a(0x101)],_0x3cb1f9=((_0x1cf2af=_0x206209[_0x2ec86a(0xd0)])==null?void 0x0:_0x1cf2af[_0x2ec86a(0x28f)])||0x0;return _0x29d737===_0x238a49['START_CALCULATION']&&_0x3cb1f9>0x0;}function pn(_0x30ac10){const _0x2af581=_0x331486;return _0x30ac10[_0x2af581(0x284)]===_0x144892['SUCCESS'];}var On=Object[_0x331486(0x1ca)],Tn=(_0x4dc537,_0xb57314,_0x2a634e,_0x5dc7c3)=>{for(var _0x33ea86=_0x5dc7c3>0x1?void 0x0:_0x5dc7c3?On(_0xb57314,_0x2a634e):_0xb57314,_0x6b4294=_0x4dc537['length']-0x1,_0x3f5369;_0x6b4294>=0x0;_0x6b4294--)(_0x3f5369=_0x4dc537[_0x6b4294])&&(_0x33ea86=_0x3f5369(_0x33ea86)||_0x33ea86);return _0x33ea86;},P=(_0x16ecd2,_0x533ed3)=>(_0x50e7df,_0x4818b4)=>_0x533ed3(_0x50e7df,_0x4818b4,_0x16ecd2);const Cn=_0x331486(0x289),Rn=_0x331486(0x9d),Dn=_0x331486(0x288);let me=class extends _0x4064cc{constructor(_0x2790e1,_0x267107,_0xb0abf3,_0x2a797c,_0x14c596,_0x2dad5c,_0x5a58d2){const _0x53aa52=_0x331486;super(),_(this,_0x53aa52(0x265),null),_(this,_0x53aa52(0xa7),0x0),_(this,_0x53aa52(0xaf),0x0),_(this,'_taskIds',[]),_(this,_0x53aa52(0x1bf),0x0),(this[_0x53aa52(0x17a)]=_0x2790e1,this[_0x53aa52(0x124)]=_0x267107,this[_0x53aa52(0x200)]=_0xb0abf3,this[_0x53aa52(0x202)]=_0x2a797c,this[_0x53aa52(0xed)]=_0x14c596,this['_logService']=_0x2dad5c,this[_0x53aa52(0x2d5)]=_0x5a58d2,this[_0x53aa52(0xdb)]());}[_0x331486(0xdb)](){const _0x5a6cf7=_0x331486;this[_0x5a6cf7(0xf5)](this['_commandService']['beforeCommandExecuted']((_0x366b62,_0x4f57c1)=>{const _0x9bba60=_0x5a6cf7;var _0xfef4ad;if(_0x366b62['id']!==_0x96febf['id'])return;const _0x2ea014=_0x366b62[_0x9bba60(0x8f)];if(!this[_0x9bba60(0x2aa)]((_0xfef4ad=_0x2ea014[_0x9bba60(0x1eb)])!=null?_0xfef4ad:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x366b62,_0x4f57c1),this[_0x9bba60(0x2ce)](),new _0x2e132b();})),this[_0x5a6cf7(0xf5)](this[_0x5a6cf7(0x124)][_0x5a6cf7(0x2b2)]((_0x3686d6,_0x506814)=>{const _0x3656db=_0x5a6cf7;if(_0x3686d6['id']!==_0x2312b3['id'])return;const _0x5d0895=_0x3686d6[_0x3656db(0x8f)];if(En(_0x5d0895)){const _0x5e06ca=_0x460716();this['_taskIds'][_0x3656db(0x118)](_0x5e06ca),this[_0x3656db(0x176)](_0x5e06ca);}else{if(pn(_0x5d0895)&&this[_0x3656db(0x1ac)]['length']>0x0){const _0x59c2d3=this['_taskIds'][_0x3656db(0x191)]();this['_releaseCalculationLimit'](_0x59c2d3);}}}));}['dispose'](){const _0x560309=_0x331486;super['dispose'](),this['_clearPolling'](),this[_0x560309(0x1ac)]=[],this[_0x560309(0xaf)]=0x0,this[_0x560309(0xa7)]=0x0,this[_0x560309(0x1bf)]=0x0;}async[_0x331486(0x1d8)](_0xd2d542,_0x127f50){const _0x3a5c88=_0x331486;for(let _0x393a59=0x0;_0x393a59<0x1e;_0x393a59++)try{if(await this[_0x3a5c88(0x21e)](),this[_0x3a5c88(0xf9)]()){this['_applyCommand'](_0xd2d542,_0x127f50),this[_0x3a5c88(0x17a)][_0x3a5c88(0x268)]({'content':this[_0x3a5c88(0x2d5)]['t'](_0x3a5c88(0x1b1)),'type':_0x27e95d['Success']});return;}await new Promise(_0x45de95=>{const _0x19a9c6=_0x3a5c88;this[_0x19a9c6(0x265)]=window[_0x19a9c6(0x2c2)](_0x45de95,0x3e8);});}catch(_0x23f3c2){this[_0x3a5c88(0xb6)][_0x3a5c88(0x17e)](_0x23f3c2);}this[_0x3a5c88(0x17a)][_0x3a5c88(0x268)]({'content':this[_0x3a5c88(0x2d5)]['t']('formula.calculation.unable'),'type':_0x27e95d[_0x3a5c88(0x2a0)]});}[_0x331486(0x19c)](_0x21fd79,_0x19e494){const _0x556dd5=_0x331486;try{this[_0x556dd5(0x124)][_0x556dd5(0x255)](_0x21fd79['id'],_0x21fd79[_0x556dd5(0x8f)],_0x19e494);}catch(_0x1be405){this[_0x556dd5(0xb6)][_0x556dd5(0x17e)](_0x1be405);}}[_0x331486(0x205)](_0x4dda3c,_0x147314){const _0x5023f0=_0x331486;_0x147314<this[_0x5023f0(0x1bf)]||(this[_0x5023f0(0x1bf)]=_0x147314,this[_0x5023f0(0xa7)]=Number['parseInt'](_0x4dda3c[_0x5023f0(0x185)]),this[_0x5023f0(0xaf)]=Number[_0x5023f0(0x29c)](_0x4dda3c[_0x5023f0(0x19d)]));}async[_0x331486(0x176)](_0x445dfa){const _0x472796=_0x331486;var _0x12bd0e,_0x32b39b;const _0x337679=Date[_0x472796(0x29d)]();try{const _0xabdf8=((_0x12bd0e=this[_0x472796(0x200)]['getConfig'](_0x317300))==null?void 0x0:_0x12bd0e[_0x472796(0x1f3)])||Rn,_0x1eb757=(await this[_0x472796(0x202)][_0x472796(0x18e)](_0xabdf8,{'body':JSON['stringify']({'taskId':_0x445dfa})}))['body'];if(((_0x32b39b=_0x1eb757['error'])==null?void 0x0:_0x32b39b[_0x472796(0x2c1)])!==Z['OK'])return;this[_0x472796(0x205)](_0x1eb757[_0x472796(0x160)],_0x337679);}catch(_0xcf6cbe){this[_0x472796(0xb6)][_0x472796(0x17e)](_0xcf6cbe);}}async['_getFormulaLimitStatus'](_0x253b70){const _0xa479ad=_0x331486;var _0x4f41ef,_0xc56bd7;const _0x2283eb=Date[_0xa479ad(0x29d)]();try{const _0x2b843f=((_0x4f41ef=this[_0xa479ad(0x200)]['getConfig'](_0x317300))==null?void 0x0:_0x4f41ef[_0xa479ad(0x1a2)])||Cn,_0x896f33=_0x253b70?_0x2b843f+'?taskId='+encodeURIComponent(_0x253b70):_0x2b843f,_0x860464=(await this[_0xa479ad(0x202)]['get'](_0x896f33))['body'];if(((_0xc56bd7=_0x860464['error'])==null?void 0x0:_0xc56bd7['code'])!==Z['OK'])return;this[_0xa479ad(0x205)](_0x860464[_0xa479ad(0x160)],_0x2283eb);}catch(_0x47e03f){this[_0xa479ad(0xb6)]['error'](_0x47e03f);}}async['_releaseCalculationLimit'](_0x1f3a9e){const _0x3472fb=_0x331486;var _0x54eb9f,_0x3d89cf;const _0x5d239e=Date[_0x3472fb(0x29d)]();try{const _0x24f8f0=((_0x54eb9f=this[_0x3472fb(0x200)][_0x3472fb(0x135)](_0x317300))==null?void 0x0:_0x54eb9f[_0x3472fb(0x1ad)])||Dn,_0x354cb2=(await this[_0x3472fb(0x202)][_0x3472fb(0x18e)](_0x24f8f0,{'body':JSON[_0x3472fb(0x20a)]({'taskId':_0x1f3a9e})}))['body'];if(((_0x3d89cf=_0x354cb2['error'])==null?void 0x0:_0x3d89cf[_0x3472fb(0x2c1)])!==Z['OK'])return;this[_0x3472fb(0x205)](_0x354cb2[_0x3472fb(0x160)],_0x5d239e);}catch(_0x74c500){this['_logService'][_0x3472fb(0x17e)](_0x74c500);}}[_0x331486(0xf9)](){const _0x4249a3=_0x331486;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x4249a3(0xa7)]-this[_0x4249a3(0xaf)]>0x0;}[_0x331486(0x129)](){const _0x3f972f=_0x331486;this[_0x3f972f(0x265)]&&(clearTimeout(this['_pollingInterval']),this[_0x3f972f(0x265)]=null);}[_0x331486(0x2ce)](){const _0x4ecad3=_0x331486;this[_0x4ecad3(0x17a)][_0x4ecad3(0x268)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x27e95d[_0x4ecad3(0x20c)]});}[_0x331486(0x2aa)](_0x18893e){const _0x33f48d=_0x331486;for(const _0x1fbbf6 of _0x18893e){const {unitId:_0x2b1257,sheetId:_0x359ae9,range:_0x3760f9}=_0x1fbbf6,_0x4c224d=this[_0x33f48d(0xed)][_0x33f48d(0x99)](_0x2b1257);if(!_0x4c224d)continue;const _0x27014e=_0x4c224d['getSheetBySheetId'](_0x359ae9);if(!_0x27014e)continue;const _0x204bd0=_0x27014e[_0x33f48d(0x1c5)]();for(let _0x583f16=_0x3760f9[_0x33f48d(0x260)];_0x583f16<=_0x3760f9[_0x33f48d(0xf7)];_0x583f16++)for(let _0xf190af=_0x3760f9[_0x33f48d(0x262)];_0xf190af<=_0x3760f9[_0x33f48d(0x108)];_0xf190af++){const _0x4d311e=_0x204bd0[_0x33f48d(0xf0)](_0x583f16,_0xf190af);if(_0x4d311e&&(_0x365838(_0x4d311e['f'])||_0x31b7fb(_0x4d311e['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x384b36(_0xc89ae7)),P(0x1,_0xd74a37),P(0x2,_0x5f43ff),P(0x3,_0x384b36(_0x3fa719)),P(0x4,_0x34a5b3),P(0x5,_0x1f29f4),P(0x6,_0x384b36(_0x4b3f44))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x41a218,_0x4ce37d,_0x261691,_0xf5804c)=>{for(var _0x3329e4=_0xf5804c>0x1?void 0x0:_0xf5804c?bn(_0x4ce37d,_0x261691):_0x4ce37d,_0x2cd630=_0x41a218['length']-0x1,_0x4aaf2d;_0x2cd630>=0x0;_0x2cd630--)(_0x4aaf2d=_0x41a218[_0x2cd630])&&(_0x3329e4=_0x4aaf2d(_0x3329e4)||_0x3329e4);return _0x3329e4;},Ue=(_0x27c545,_0x977477)=>(_0x51938f,_0x41ab5b)=>_0x977477(_0x51938f,_0x41ab5b,_0x27c545);let He=class extends _0x4064cc{constructor(_0x4f4f6c,_0xa6e37,_0x1852f8){const _0x34b9b7=_0x331486;super(),_(this,_0x34b9b7(0x261),new Map()),_(this,_0x34b9b7(0x23d),new Map()),_(this,_0x34b9b7(0x15b),!0x1),(this[_0x34b9b7(0x200)]=_0x4f4f6c,this[_0x34b9b7(0x1cb)]=_0xa6e37,this[_0x34b9b7(0x1da)]=_0x1852f8);}[_0x331486(0x22e)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x5aee88=_0x331486;this[_0x5aee88(0x15b)]=!0x1;}get[_0x331486(0x177)](){const _0x4cd187=_0x331486;return this[_0x4cd187(0x23d)];}[_0x331486(0x1af)](){const _0x470471=_0x331486;this[_0x470471(0x1a1)]()[_0x470471(0x287)](()=>super['dispose']());}async[_0x331486(0x179)](_0x3fabd7){const _0x4cde60=_0x331486;return this[_0x4cde60(0x15b)]?null:this[_0x4cde60(0x1cb)][_0x4cde60(0x2af)](_0x4579ea(_0x3fabd7));}async['saveOfflineData'](_0x2e682e,_0x42c70c){const _0x1e1851=_0x331486;return!!this[_0x1e1851(0x1cb)][_0x1e1851(0x174)](_0x2e682e,_0x42c70c);}[_0x331486(0xe4)](_0x535949,_0xce44f2,_0x5148a2,_0x1259dd){const _0x17234e=_0x331486,_0xa1d654=this[_0x17234e(0x1da)][_0x17234e(0x2d7)](_0x535949);this[_0x17234e(0x261)][_0x17234e(0x1c0)](_0x535949,{'unitID':_0x535949,'type':_0xce44f2,'awaitingChangeset':_0x5148a2,'mutations':_0x1259dd,'rev':_0xa1d654}),this[_0x17234e(0x23d)][_0x17234e(0x1ef)](_0x535949)||this['_scheduleSaving'](_0x535949);}[_0x331486(0xd2)](_0x4c826f){const _0x49b45f=_0x331486,_0x1fddb7=this[_0x49b45f(0x23b)]();_0x1fddb7===0x0?this['_saveCache'](_0x4c826f):this['_saveTaskMap']['set'](_0x4c826f,setTimeout(()=>this['_saveCache'](_0x4c826f),_0x1fddb7));}[_0x331486(0x23b)](){const _0x305ade=_0x331486;var _0x309924;return(_0x309924=this[_0x305ade(0x200)]['getConfig'](_0x17b7f2))!=null?_0x309924:_0x3e4b99;}[_0x331486(0x183)](_0x50e3a8){const _0xe361ba=_0x331486,_0x2f66f7=this['_saveTaskMap'][_0xe361ba(0x1e7)](_0x50e3a8);return _0x2f66f7!==void 0x0&&window[_0xe361ba(0x286)](_0x2f66f7),this[_0xe361ba(0x1cb)][_0xe361ba(0x174)](_0x4579ea(_0x50e3a8),this[_0xe361ba(0x261)][_0xe361ba(0x1e7)](_0x50e3a8))[_0xe361ba(0x287)](()=>this[_0xe361ba(0x23d)][_0xe361ba(0x211)](_0x50e3a8));}async[_0x331486(0x1a1)](){const _0x23bbe6=_0x331486,_0x334683=[];this['_saveTaskMap'][_0x23bbe6(0x210)]((_0x36f002,_0x4a88e5)=>{const _0xa92ff6=_0x23bbe6;window[_0xa92ff6(0x286)](_0x36f002),_0x334683['push'](this[_0xa92ff6(0x183)](_0x4a88e5)['then'](()=>{const _0x3a298b=_0xa92ff6;this[_0x3a298b(0x23d)][_0x3a298b(0x211)](_0x4a88e5);}));}),await Promise[_0x23bbe6(0x196)](_0x334683);}};He=Nn([Ue(0x0,_0x5f43ff),Ue(0x1,_0x25196f),Ue(0x2,_0x384b36(_0x21d43a))],He);class Ln extends _0x57605c{constructor(){const _0x237385=_0x331486;super(),_(this,_0x237385(0x29f)),this[_0x237385(0x29f)]=_0x1059cc(window,'popstate')[_0x237385(0x181)](_0x136c33(this['dispose$']),_0x266c9a(0x1),_0x569761(void 0x0));}[_0x331486(0xe8)](_0x237917,_0x27a30c,_0x697cd2=!0x1){const _0x24be7e=_0x331486,_0x4f2169=new URL(window[_0x24be7e(0x1e4)][_0x24be7e(0x92)]);_0x4f2169[_0x24be7e(0xb0)][_0x24be7e(0x1c0)](_0x237917,_0x27a30c),_0x697cd2?window['history'][_0x24be7e(0x1ab)]('','',_0x4f2169[_0x24be7e(0x130)]()):window[_0x24be7e(0x276)][_0x24be7e(0xdf)]('','',_0x4f2169[_0x24be7e(0x130)]());}[_0x331486(0x1a9)](_0x4c0d75,_0x358427=!0x1){const _0x283200=_0x331486,_0x571977=new URL(window[_0x283200(0x1e4)][_0x283200(0x92)]);_0x571977[_0x283200(0xb0)][_0x283200(0x211)](_0x4c0d75),_0x358427?window[_0x283200(0x276)][_0x283200(0x1ab)]('','',_0x571977[_0x283200(0x130)]()):window[_0x283200(0x276)][_0x283200(0xdf)]('','',_0x571977[_0x283200(0x130)]());}[_0x331486(0xdd)](_0x4ca0b7){const _0x321923=_0x331486;var _0x32d51c;return(_0x32d51c=new URL(window[_0x321923(0x1e4)]['href'])[_0x321923(0xb0)][_0x321923(0x1e7)](_0x4ca0b7))!=null?_0x32d51c:void 0x0;}}var Un=Object[_0x331486(0x10c)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x1b1f02,_0x4ea02e,_0xb02b00)=>_0x4ea02e in _0x1b1f02?Un(_0x1b1f02,_0x4ea02e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb02b00}):_0x1b1f02[_0x4ea02e]=_0xb02b00,Pn=(_0x1065bc,_0x1c314b,_0x3e57ca,_0x582792)=>{const _0x554d1b=_0x331486;for(var _0x313611=_0x582792>0x1?void 0x0:_0x582792?Mn(_0x1c314b,_0x3e57ca):_0x1c314b,_0x2991e3=_0x1065bc[_0x554d1b(0xea)]-0x1,_0x5abaca;_0x2991e3>=0x0;_0x2991e3--)(_0x5abaca=_0x1065bc[_0x2991e3])&&(_0x313611=_0x5abaca(_0x313611)||_0x313611);return _0x313611;},Me=(_0x3f93e2,_0x52de8b)=>(_0x31d580,_0x4c9f89)=>_0x52de8b(_0x31d580,_0x4c9f89,_0x3f93e2),wn=(_0x55a40f,_0x51c5a1,_0x22018b)=>An(_0x55a40f,_0x51c5a1+'',_0x22018b);const yn=_0x331486(0x15c);let Ye=class extends _0x1d5629{constructor(_0x217043=_t,_0x1c7fef,_0x2bbe3c,_0x4d1a41){const _0x43c28a=_0x331486;super(),this['_config']=_0x217043,this['_renderManagerService']=_0x1c7fef,this[_0x43c28a(0x1fb)]=_0x2bbe3c,this[_0x43c28a(0x200)]=_0x4d1a41;const {..._0x71853a}=_0x1e7bf4({},_t,this[_0x43c28a(0x137)]);this['_configService']['setConfig'](hn,_0x71853a);}[_0x331486(0x150)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x331486(0x15f)](){const _0x24cdbf=_0x331486;this[_0x24cdbf(0x16d)]();}[_0x331486(0x156)](){const _0x22e174=_0x331486;var _0x1f5c52;const _0x37c168=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x48e0d4,{'useClass':_0x5d29c5}],[_0x24b451,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x22e174(0x137)][_0x22e174(0x1e2)]&&_0x37c168[_0x22e174(0x118)]([le]),_0x5c8afa(this[_0x22e174(0x1fb)],_0xf081e9(_0x37c168,(_0x1f5c52=this[_0x22e174(0x137)])==null?void 0x0:_0x1f5c52[_0x22e174(0x1e6)]));}[_0x331486(0x16d)](){const _0x5c9aa7=_0x331486;this[_0x5c9aa7(0xf5)](this[_0x5c9aa7(0x13e)][_0x5c9aa7(0x235)](_0x4e690a[_0x5c9aa7(0x237)],[Fe])),this['disposeWithMe'](this['_renderManagerService'][_0x5c9aa7(0x235)](_0x4e690a[_0x5c9aa7(0x153)],[ke]));}[_0x331486(0x144)](){const _0x41cb2f=_0x331486;_0x485043(this[_0x41cb2f(0x1fb)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x41cb2f(0x137)]['enableFrontendLog']&&_0x485043(this[_0x41cb2f(0x1fb)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x145aff(_0x545449),Me(0x1,_0x450a3a),Me(0x2,_0x384b36(_0x2975ff)),Me(0x3,_0x5f43ff)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x234165,_0x52e2ef,_0x107f8b,_0x19f190)=>{const _0x325119=_0x331486;for(var _0x397fc9=_0x19f190>0x1?void 0x0:_0x19f190?$n(_0x52e2ef,_0x107f8b):_0x52e2ef,_0x43996d=_0x234165[_0x325119(0xea)]-0x1,_0x1c3483;_0x43996d>=0x0;_0x43996d--)(_0x1c3483=_0x234165[_0x43996d])&&(_0x397fc9=_0x1c3483(_0x397fc9)||_0x397fc9);return _0x397fc9;},J=(_0x33f251,_0x595f73)=>(_0xb4c193,_0x394927)=>_0x595f73(_0xb4c193,_0x394927,_0x33f251);let ut=class extends _0x1af29f{constructor(_0x314a8c,_0x488b3e,_0x2462e4,_0x1c3a5c,_0x4dae4c){super(_0x314a8c,_0x488b3e,_0x2462e4,_0x1c3a5c,_0x4dae4c);}async[_0x331486(0xa8)](_0x3f3758){const _0x5414fa=_0x331486,_0x3e6c18=await this[_0x5414fa(0x2a4)](),_0x28fba6=this['_createSocketURL'](_0x3f3758,_0x3e6c18);return this[_0x5414fa(0x2b7)](_0x28fba6);}['_createSocketURL'](_0x51fb26,_0x4b89bd){const _0x417aba=_0x331486,_0x41ff1f=typeof window>'u'?new URL(_0x51fb26):new URL(_0x51fb26,window[_0x417aba(0x1e4)][_0x417aba(0x246)]);_0x41ff1f[_0x417aba(0xb0)][_0x417aba(0x1c0)](_0x417aba(0xab),_0x4b89bd);const _0x17acb1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x417aba(0x1e4)]['search']);return _0x17acb1[_0x417aba(0x1e7)]('runId')&&_0x41ff1f[_0x417aba(0xb0)][_0x417aba(0x1c0)](_0x417aba(0x234),_0x17acb1[_0x417aba(0x1e7)](_0x417aba(0x234))),_0x41ff1f['toString']();}async['_getSessionTicket'](){const _0x1690be=_0x331486;var _0x48ed73,_0x1be1c0,_0x2c8be8;const _0x1ebe1b=this[_0x1690be(0x200)][_0x1690be(0x135)](_0x317300),_0x8fdd74=(_0x48ed73=_0x1ebe1b==null?void 0x0:_0x1ebe1b['wsSessionTicketUrl'])!=null?_0x48ed73:_0x87d114;return(_0x2c8be8=(_0x1be1c0=(await this[_0x1690be(0x202)][_0x1690be(0x1e7)](_0x8fdd74,{'headers':{'Content-Type':_0x1690be(0x14d)}}))[_0x1690be(0x223)])==null?void 0x0:_0x1be1c0['ticket'])!=null?_0x2c8be8:'';}};ut=xn([J(0x0,_0x384b36(_0x2975ff)),J(0x1,_0x384b36(_0x3fa719)),J(0x2,_0x5f43ff),J(0x3,_0x1f29f4),J(0x4,_0x5eb23d)],ut);var Bn=Object[_0x331486(0x1ca)],Fn=(_0x432744,_0x1ff292,_0x46a823,_0x286597)=>{const _0x385507=_0x331486;for(var _0x6071eb=_0x286597>0x1?void 0x0:_0x286597?Bn(_0x1ff292,_0x46a823):_0x1ff292,_0x1ad194=_0x432744[_0x385507(0xea)]-0x1,_0x233ee7;_0x1ad194>=0x0;_0x1ad194--)(_0x233ee7=_0x432744[_0x1ad194])&&(_0x6071eb=_0x233ee7(_0x6071eb)||_0x6071eb);return _0x6071eb;},Ae=(_0x1aed35,_0x36b337)=>(_0x15a35f,_0x2968b5)=>_0x36b337(_0x15a35f,_0x2968b5,_0x1aed35);let dt=class extends _0x4064cc{constructor(_0x8321f9,_0x1c5444,_0x810778){const _0x16fea6=_0x331486;super(),this[_0x16fea6(0xc2)]=_0x8321f9,this[_0x16fea6(0x202)]=_0x1c5444,this[_0x16fea6(0x200)]=_0x810778;}async[_0x331486(0x27f)](_0x507b0d,_0x30dfc7,_0x54850f,..._0x346dc8){const _0x378229=_0x331486;var _0x49d205,_0x24c6b0,_0x313a32,_0x3b63b4;const _0x34052e=this[_0x378229(0xc2)][_0x378229(0xcb)]();if(!_0x34052e)throw new Error(_0x378229(0xd8));const _0x3fd513=((_0x49d205=this[_0x378229(0x200)][_0x378229(0x135)](_0x10f6ab))!=null?_0x49d205:_0x4d4beb)+'/'+_0x507b0d+'/run/'+_0x30dfc7,_0x46e5f7=new URL(window['location'][_0x378229(0x92)]),_0x4ea777={'scriptId':_0x507b0d,'runId':(_0x24c6b0=_0x46e5f7[_0x378229(0xb0)][_0x378229(0x1e7)]('runId'))!=null?_0x24c6b0:'','function':_0x30dfc7,'unitId':_0x34052e['getUnitId'](),'argsOfFunction':JSON[_0x378229(0x20a)](_0x346dc8),'invokeId':(_0x313a32=_0x54850f[_0x378229(0x18d)])!=null?_0x313a32:'','executionId':(_0x3b63b4=_0x54850f[_0x378229(0x2ab)])!=null?_0x3b63b4:''};try{const _0x3c054f=await this[_0x378229(0x202)][_0x378229(0x18e)](_0x3fd513,{'body':_0x4ea777});return _0x3c054f['body'][_0x378229(0x17e)]&&_0x3c054f['body'][_0x378229(0x17e)]['code']!==Z['OK']?'Failed':_0x3c054f[_0x378229(0x223)][_0x378229(0x2be)];}catch{return _0x378229(0x1f2);}}};dt=Fn([Ae(0x0,_0x34a5b3),Ae(0x1,_0x384b36(_0x3fa719)),Ae(0x2,_0x5f43ff)],dt);const St=0x7530,mt=_0x331486(0x1ae);class rr extends _0x4064cc{constructor(){const _0x541194=_0x331486;super(),_(this,_0x541194(0x1a3),_0x460716()),_(this,_0x541194(0xfa),new Set()),_(this,_0x541194(0x10e),new Map()),_(this,_0x541194(0x155),null),_(this,_0x541194(0x2a1),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x23d44b=_0x331486;super[_0x23d44b(0x1af)](),this[_0x23d44b(0x2a1)][_0x23d44b(0x210)]((_0x49e18d,_0x32a63e)=>this[_0x23d44b(0xa4)](_0x32a63e)),this[_0x23d44b(0x155)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x331486(0x1c8)](_0x391020){const _0x5e81d3=_0x331486;return this[_0x5e81d3(0x8e)](_0x391020)[_0x5e81d3(0x181)](_0x46c569());}[_0x331486(0x27e)](_0x5df393){const _0x43dd21=_0x331486;this[_0x43dd21(0xfa)][_0x43dd21(0x209)]===0x0&&this['_scheduleHeartbeat'](),this[_0x43dd21(0xfa)]['add'](_0x5df393),this[_0x43dd21(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5df393],'isForwarded':!0x1});}['disposeUnit'](_0x38a5df){const _0x423b46=_0x331486;this[_0x423b46(0xfa)]['delete'](_0x38a5df),this[_0x423b46(0xfa)][_0x423b46(0x209)]===0x0&&this[_0x423b46(0x155)]&&window[_0x423b46(0x1ba)](this['_heartbeatTimer']);}[_0x331486(0x119)](){const _0x2dfbfc=_0x331486;this[_0x2dfbfc(0xf5)](_0x385cfe(_0x1059cc(window,'storage')[_0x2dfbfc(0x1e8)](_0x3fdabd=>{const _0x57d155=_0x2dfbfc;if(_0x3fdabd[_0x57d155(0x14f)]!==mt||!_0x3fdabd[_0x57d155(0x166)])return;const _0x2a7138=JSON['parse'](_0x3fdabd[_0x57d155(0x166)]);this[_0x57d155(0x19e)](_0x2a7138);}))),window[_0x2dfbfc(0x21f)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2dfbfc(0x1a3)],'unitIDs':Array[_0x2dfbfc(0x2cc)](this[_0x2dfbfc(0xfa)])}));}['_handleEvent'](_0x4a045b){const _0x1488d5=_0x331486;switch(_0x4a045b[_0x1488d5(0x1d3)]){case 0x0:this[_0x1488d5(0x115)](_0x4a045b);break;case 0x1:this[_0x1488d5(0x105)](_0x4a045b);break;case 0x2:this[_0x1488d5(0x22f)](_0x4a045b);break;}}[_0x331486(0x115)](_0x205c27){const _0x23991c=_0x331486,{unitIDs:_0x119dd5,memberID:_0x16bf12,isForwarded:_0x3b70a5}=_0x205c27;_0x119dd5[_0x23991c(0x210)](_0x5c7e6a=>{const _0x5f5160=_0x23991c;if(!_0x3b70a5&&this[_0x5f5160(0x10e)]['has'](_0x5c7e6a)&&this[_0x5f5160(0x8e)](_0x5c7e6a)['next'](_0x3fa58f[_0x5f5160(0x195)]),!this[_0x5f5160(0x10e)][_0x5f5160(0x1ef)](_0x5c7e6a)||!this[_0x5f5160(0x10e)][_0x5f5160(0x1e7)](_0x5c7e6a)['has'](_0x16bf12)){const _0x2daaca=this['_unitOnClients'][_0x5f5160(0x1e7)](_0x5c7e6a)||new Set();_0x2daaca[_0x5f5160(0x1b7)](_0x16bf12),this['_unitOnClients']['set'](_0x5c7e6a,_0x2daaca),this[_0x5f5160(0x94)](_0x16bf12);}}),_0x3b70a5||this[_0x23991c(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x331486(0x94)](_0xa5724e){const _0x408e21=_0x331486;this['_removeClearOtherTimer'](_0xa5724e);const _0x259825=window[_0x408e21(0x2c2)](()=>{const _0xefaf5c=_0x408e21;this[_0xefaf5c(0x10e)][_0xefaf5c(0x210)](_0x45e397=>{const _0x594561=_0xefaf5c;_0x45e397[_0x594561(0x211)](_0xa5724e);});},St*0x2);this[_0x408e21(0x2a1)][_0x408e21(0x1c0)](_0xa5724e,_0x259825);}[_0x331486(0xa4)](_0x1f3d15){const _0x48363e=_0x331486;if(this[_0x48363e(0x2a1)][_0x48363e(0x1ef)](_0x1f3d15)){const _0x5d35fb=this[_0x48363e(0x2a1)]['get'](_0x1f3d15);_0x5d35fb&&window[_0x48363e(0x286)](_0x5d35fb),this[_0x48363e(0x2a1)][_0x48363e(0x1c0)](_0x1f3d15,null);}}[_0x331486(0x105)](_0x51afb9){const _0x331a=_0x331486,{memberID:_0x59f35c,unitIDs:_0x2210c4}=_0x51afb9;_0x2210c4['forEach'](_0x19e6f7=>{const _0x3a75a4=_0x512f;var _0x298775;const _0x1e8f1f=this['_unitOnClients'][_0x3a75a4(0x1e7)](_0x19e6f7);_0x1e8f1f&&(_0x1e8f1f['delete'](_0x59f35c),(_0x298775=this[_0x3a75a4(0x8e)](_0x19e6f7))==null||_0x298775['next'](_0x1e8f1f[_0x3a75a4(0x209)]===0x0?_0x3fa58f[_0x3a75a4(0x9b)]:_0x3fa58f[_0x3a75a4(0x195)]));}),this[_0x331a(0xa4)](_0x59f35c);}[_0x331486(0x22f)](_0x11af1f){const _0x61cb7c=_0x331486;this[_0x61cb7c(0x94)](_0x11af1f[_0x61cb7c(0x98)]);}[_0x331486(0x254)](_0x374b37){const _0x57564b=_0x331486;localStorage[_0x57564b(0x174)](mt,JSON[_0x57564b(0x20a)](_0x374b37));}[_0x331486(0x2c3)](){const _0x1dd7ef=_0x331486;this[_0x1dd7ef(0x155)]=window[_0x1dd7ef(0x100)](()=>{const _0x41d28c=_0x1dd7ef;this[_0x41d28c(0x254)]({'type':0x2,'memberID':this[_0x41d28c(0x1a3)]});},St);}['_ensureSubject'](_0x1155e6){const _0x1f3928=_0x331486;return this['_unitStatus'][_0x1f3928(0x1ef)](_0x1155e6)||this[_0x1f3928(0x2ad)][_0x1f3928(0x1c0)](_0x1155e6,new _0x5adb5d(_0x3fa58f[_0x1f3928(0x9b)])),this[_0x1f3928(0x2ad)][_0x1f3928(0x1e7)](_0x1155e6);}}function _0x5658(){const _0x20e3f8=['ENTITLE_REPORT_LIMIT_EXCEED','ERROR_AGAIN','_send','executeCommand','addObject','div','701115QlHFLc','FromArray','complete','m1Prime','height','entries','1em','InsertRangeMoveRightCommandId','startRow','_cachedData','startColumn','lineTo','m2Prime','_pollingInterval','REDEMPTION_CODE_FULLY_REDEEMED','_docStateChangeManagerService','show','getColorFromTheme','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','activeSheet$','DATA_SOURCE_TOO_LARGE','_transformHistoryAndStateStack','onMouseMove','USER_NOT_FOUND','REDEMPTION_CODE_HAS_BEEN_CREATED','...','session.will-retry','/universer-api/frontend/logs','#FFF','_imageIoService','history','mask','_initWindowErrorListener','REDEMPTION_CODE_INACTIVE','_localCacheService','_getScale','makeDirty','_beforeCloseService','editingUnit','runOnServer','_online','_cursorShapes','collabStatus.offline','_docTransformStateCacheService','functionsExecutedState','OFFLINE','clearTimeout','then','/universer-api/license/formula/limit/done','/universer-api/license/formula/limit/status','CONFLICT','roomMembers','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','contains','WECHAT_HAS_BEEN_BOUND','totalFormulasToCalculate','unsubscribe','ranges','ENTITLE_INSUFFICIENT_QUOTA','undoState','permission.title','YUUMI_CONNECTOR_URL_NOT_FOUND','PENDING','PERMISSION_DENIED','_initEntityListener','onLocalMutation','FETCH_MISS','getMergeData','parseInt','now','getCurrent','urlChange$','Error','_clearOtherTimers','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_UNABLE_LOAD_URL','_getSessionTicket','getCollabCursors$','_initCommandExecutedListener','collabStatus.notCollab','CONNECTOR_DATA_TOO_LARGE','_docTransformSelectionsService','_hasFormulaInDirtyRanges','executionId','COMPLETION_FINISHED','_unitStatus','mutations','getItem','join','closePath','onCommandExecuted','cursorInfo','addObjects','unshift','map','_doCreateSocket','cursorInfo$','red.300','init','_collabCursorController','top','onPointerEnter$','result','setAlpha','_eventUnsubscribe','code','setTimeout','_scheduleHeartbeat','collab-text-range-','max','LICENSE_DISTRO_REJECTED','_session','_updateURLWithCurrentState','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','getViewport','CHANGESET_REVISION_CONFILICT','from','ENTITLE_CHAT_LIMIT_EXCEED','_showGuardMessage','getSheetBySheetId','transformMutation','getMember','APPLY_PERMISSION_DENIED','saveImage','_toggleOnline','_localeService','getOffsetConfig','getCurrentRevOfUnit','_onCursorUpdate','fill','REDEMPTION_USER_NOT_ELIGIBLE','getTypeOfUnitDisposed$','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','message','min','_ensureSubject','params','OnLineIcon','isActive','href','YUUMI_AI_RUN_FAILED','_scheduleClearOtherTimer','sheetId','REDEMPTION_USER_REDEEM_TIMES_EXCEED','61414mkZLMn','memberID','getUnit','_draw','NO_OTHER_CLIENTS_EDITING','permission.content','/universer-api/license/formula/limit/start','defs','getUndoRedoMutationParamsCache','_removeCollabCursors','getRangePointData','transformRemoteChangeset','find','_removeClearOtherTimer','registerRefRange','transformIMECache','_maxFormulaLimit','createSocket','registerComponent','_textBubble','sessionTicket','AWAITING_WITH_PENDING','current','_initStatusComponent','_currentUsage','searchParams','doc.mutation.rich-text-editing','url(#off-line-icon_clip0_910_343)','unhandledrejection','UNDEFINED','onTransformChange$','_logService','restore','hide','SNAPSHOT_HAS_BEEN_REMOVED','_startDocCollabCursor','drawWith','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_docClipboardService','replaceDocRanges','_collabSessionService','INTERNAL_ERROR','INVALID_INVITE_CODE','_instanceService','UNAUTHENTICATED','tag','InsertRowCommandId','YUUMI_ASYNCIO_CANCELLED','[LogService\x20Error]:\x20','_uploadLog','_refRangeService','white','getFocusedUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','labelPosition','OTHER_CLIENT_EDITING','YUUMI_NO_CUBOID_FOR_QUESTION','stageInfo','Unknown\x20user','_scheduleSaving','text','_hideTimer','[Window\x20Error]:\x20','column','APPLY_DUPLICATED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_memberService','NOT_FOUND','_initCommandInterceptor','LICENSE_EXPORT_SIZE_EXCEEDED','getParam','docStateChange$','pushState','sheetID','use','on-line-icon','subscribeEvent','updateOfflineData','0\x200\x2016\x2016','_docSkeleton','range','setParam','_document','length','_status$','socket$','_univerInstanceService','path','_docSkeletonManagerService','getValue','USERS_LEAVE','clipPath','removeEventListener','RECT','disposeWithMe','univer-flex\x20univer-items-center','endRow','transformStateCache','_checkCalculationAvailable','_selfUnitIDs','row','_transformService','subUnitId','APPLY_NON_SEQUENTIAL_REVISION','CURRENT_STATUS_CANNOT_OPERATE','setInterval','stage','save','getSkeleton','roomMembers$','_handleLeaveEvent','PAYMENT_CHANNEL_NOT_SUPPORT','collab-text-anchor-','endColumn','font','ALREADY_EXISTS','ONLINE','defineProperty','MOBILE_HAS_BEEN_BOUND','_unitOnClients','HEADER_MENU','ENTITLE_DUP_SUBSCRIPTION','isEditing','getCollabEntity$','startsWith','onPointerMove$','_handleJoinEvent','backgroundColor','_collaborationUIEventService','push','_init','selections','RemoveColCommandId','_initEvent','JOIN_ROOM_FAILED','collaboration.single-unit.warning','EMAIL_HAS_BEEN_BOUND','_render','_color','measureText','_syncEditingCollabCursorService','_commandService','values','data','requireSession','_transformPreviousActiveRange','_clearPolling','assignAColorForMemberID','LOGIN_FAILED','black','entityInit$','findNodePositionByCharIndex','_entityInit$','toString','YUUMI_SUBSCRIPTION_NOT_FOUND','getCurrentUnitForType','_setupBeforeClosingHandler','dispose$','getConfig','getVpScrollXYInfoByPosToVp','_config','INVITE_CODE_ALREADY_BOUND','_setupSubUnitSync','displayName','_scene','_getAnchorBounding','children','_renderManagerService','getDocRanges','_getSheetObject','assign','_colorIndex','USER_NOT_INVITED_CODE','_initDependencies','getActiveSheet','attrs','_labelPosition','CLOSE_ROOM','asObservable','none','evenodd','DeleteRangeMoveLeftCommandId','application/json','UNRECOGNIZED','key','onStarting','17asFloy','Warning','UNIVER_SHEET','_drawTextRange','_heartbeatTimer','_registerDependencies','_colorAssignService','purple.300','_dataLoaderService','_backgroundColor','_disabled','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','color','getCellPositionByOffset','onRendered','limitInfo','substring','_collabCursorState$','eventID','unit','onPointerLeave$','newValue','_updateSubUnitFromURLParams','yellow.400','name','beginPath','hovered','APPLY_REVISION_CONFILICT','_registerRenderDependencies','_updateLocalCursor','setStateCache','_initUserListener','session.collaboration-timeout','transformMutationsWithChangeset','getMemberID','setItem','_uiPartsService','_startCalculationLimit','saveTaskMap','stack','loadOfflineData','_messageService','_context','url(#$1','PY_RUNTIME_SCRIPT_ERROR','error','random','_assignedColors','pipe','_initResize','_saveCache','INVITE_CODE_HAS_BEEN_UES','maxFormulaLimit','_monkeyPatchLogService','_drawRectRange','_notificationService','moveTo','event$','_collaborationSessionService','getUnitId','invokeId','post','univerjs-icon\x20univerjs-icon-','engine','shift','url(#on-line-icon_clip0_910_349)','VIEW_MAIN','UPDATE_CURSOR','OTHER_CLIENTS_EDITING','all','_anchor','getRelativeToViewportCoord','_memberID','unitId','getTypeOfUnitAdded$','_applyCommand','currentUsage','_handleEvent','fillStyle','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','exhaustSavingTask','getformulaLimitStatusUrl','_id','INVALID_ARGUMENT','imageSourceType','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','79848MItGVJ','2535660oYkxjg','removeParam','catch','replaceState','_taskIds','releaseFormulaLimitUrl','ACTIVE_UNIT_EVENT_CHANNEL','dispose','_shapes','formula.calculation.started','TOO_MANY_REQUESTS','9510330MmEWFU','trim','selection','svg','add','transformSelections','status$','clearInterval','collaboration-client-ui.config','_cursor','defIds','fillText','_lastResponseTimestamp','set','string','_roomMembers$','_toggleOffline','next','getCellMatrix','8JeksLP','currentColor','getUnitStatus$','on-line-icon_clip0_910_349','getOwnPropertyDescriptor','_localStorageService','_getMergeRange','getStateCache','getUniverSheetInstance','arc','actions','textRanges','getSheetId','type','_drawAnchor','green.600','2533244UaoyoP','_startSheetCollabCursor','_checkAndWaitForCalculationPermission','getRenderById','_revisionService','REDEMPTION_INVALID_CODE','[Unhandled\x20Rejection]:\x20','collaboration-client.offline-data-not-saved','AWAITING','subunit','currentTheme$','_transformUndoRedoStack','enableFrontendLog','send','location','APPLY_REJECT','override','get','subscribe','NOT_COLLAB','_sheetSkeletonManagerService','dirtyRanges','YUUMI_TABLE_NOT_FOUND_IN_UNIT','redoState','deepClone','has','_lastPointer','filename','Failed','startFormulaLimitUrl','setActiveRange','InsertColCommandId','_cursors','_entities','M0\x200H16V16H0z','debug','split','_injector','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','width','toRgbString','setShapeProps','_configService','_docTransformIMECacheService','_httpService','unitID','_hovered','_setFormulaLimitStatus','_initUnhandledRejectionListener','whenReady','currentSkeleton$','size','stringify','round','Loading','collabStatus.synced','_range','focused$','forEach','delete','colorChannel1','idSuffix','MUTATION','fillRule','_themeService','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','YUUMI_RATE_OVER_LIMIT','1438470wXBDsW','sessionStatus$','translate(.97)','ENTITLE_NEED_BILLING_ADDRESS','_getFormulaLimitStatus','addEventListener','_onCursorDelete','blue.400','with','body','collabStatus.conflict','INVITE_CODE_REQUIRED','4jtOEjx','addHandlerCallback','0\x200\x2017\x2016','ENSURE_SNAPSHOT_EXECUTION','UniverIcon','bottom','SOCKET_FAILED_RETRY','_initStatusListener','disableLocalCache','_handleHeartbeatEvent','SUBMIT_CHANGESET_TIMEOUT','_urlService','createInstance','_collaborationController','runId','registerRenderModule','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_DOC','isArray','getAncestorScale','http://www.w3.org/2000/svg','_getSaveTimeout','xlink:href','_saveTaskMap','loadUnit','off-line-icon_clip0_910_343','LICENSE_IMPORT_SIZE_EXCEEDED','colno','LOGIN_TOKEN_PROCESSING_FAILED','rgba(255,\x20255,\x20255,\x200.01)','some','collaboration.closeRoom','origin','_hover','_name','_updateCollabCursors','_handleHover','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','MOBILE_VERIFY_CODE_MISMATCH','includes','_cursorInfo$','flatMap','REDEMPTION_CODE_NOT_STARTED','_anchorDot'];_0x5658=function(){return _0x20e3f8;};return _0x5658();}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};