@univerjs-pro/collaboration-client-ui 0.12.4-insiders.20251213-692494c → 0.13.0-insiders.20251215-64041bb

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 _0x12f7be=_0x473f;function _0x473f(_0x3ab86e,_0x485d35){_0x3ab86e=_0x3ab86e-0xb0;const _0x919a54=_0x919a();let _0x473f33=_0x919a54[_0x3ab86e];return _0x473f33;}(function(_0x51d400,_0x3876c8){const _0x4081f2=_0x473f,_0x22a72e=_0x51d400();while(!![]){try{const _0x46c6ed=parseInt(_0x4081f2(0x27c))/0x1*(parseInt(_0x4081f2(0xfe))/0x2)+parseInt(_0x4081f2(0x131))/0x3+parseInt(_0x4081f2(0x1bf))/0x4+parseInt(_0x4081f2(0x10a))/0x5*(parseInt(_0x4081f2(0x182))/0x6)+parseInt(_0x4081f2(0x13e))/0x7+-parseInt(_0x4081f2(0x2e1))/0x8+-parseInt(_0x4081f2(0x1fb))/0x9;if(_0x46c6ed===_0x3876c8)break;else _0x22a72e['push'](_0x22a72e['shift']());}catch(_0x3082e1){_0x22a72e['push'](_0x22a72e['shift']());}}}(_0x919a,0xb419b));var Yt=Object[_0x12f7be(0x265)],Wt=(_0x14c1d3,_0xabc033,_0x14663f)=>_0xabc033 in _0x14c1d3?Yt(_0x14c1d3,_0xabc033,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14663f}):_0x14c1d3[_0xabc033]=_0x14663f,_=(_0x4d5ab6,_0x173480,_0x25ebf4)=>Wt(_0x4d5ab6,typeof _0x173480!=_0x12f7be(0x10b)?_0x173480+'':_0x173480,_0x25ebf4);import{jsx as _0x113f07,jsxs as _0x1eecd1}from'react/jsx-runtime';import{CollaborationStatus as _0x2a0d66,CollaborationSessionService as _0x3c5e90,CollaborationController as _0x41819a,DataLoaderService as _0x48f288,MemberService as _0xa7c392,SessionStatus as _0x434c9d,ILocalCacheService as _0x381fc8,CollaborationUIEventService as _0x4cdc9c,CollaborationUIEventId as _0x45a0bb,DocCollaborationEntity as _0x2f6c55,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c1c8f,getLocalCacheKey as _0x193170,LOCAL_CACHE_INTERVAL as _0x41a768,LOCAL_CACHE_INTERVAL_KEY as _0x1d75b1,UniverCollaborationClientPlugin as _0x2e3618,CollaborationSocketService as _0x5012d6,DEFAULT_WS_SESSION_TICKET_URL as _0x29d557,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x587df1,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x499824,UnitStatus as _0x4d3796}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x35b6c7,IUniverInstanceService as _0x52d51e,Inject as _0x3714f8,Injector as _0x24a160,Disposable as _0x112363,createIdentifier as _0x21b651,ILogService as _0x36e10f,ICommandService as _0x58f12e,Optional as _0x4a5b34,RxDisposable as _0x53e01a,Workbook as _0x137b01,DOC_RANGE_TYPE as _0x6ed74f,debounce as _0x5a1035,Rectangle as _0x3fed9b,DisposableCollection as _0x4284de,toDisposable as _0x16c8e4,UniverInstanceType as _0x53cd3e,generateRandomId as _0x28ef98,COLORS as _0x5c8de6,ColorKit as _0x376a8e,ThemeService as _0x252ee3,fromEventSubject as _0x535589,Tools as _0x4dbc53,CommandType as _0x1de431,IConfigService as _0x5a741e,CanceledError as _0x24cc76,isFormulaString as _0x371c6c,isFormulaId as _0x2bd85a,ILocalStorageService as _0x5e3c18,DependentOn as _0x1999b3,Plugin as _0x5affa2,merge as _0x537f2b,registerDependencies as _0x358fe2,mergeOverrideWithDependencies as _0x2cd5a1,touchDependencies as _0x48ed1d}from'@univerjs/core';import{useObservable as _0x368c28,useDependency as _0x5911c2,IUIPartsService as _0x1e6b0c,BuiltInUIPart as _0x5a54ac,connectInjector as _0x4e04ea,IBeforeCloseService as _0x3e8c86,IMessageService as _0x543869,INotificationService as _0x4d19e9}from'@univerjs/ui';import{BehaviorSubject as _0x51f523,switchMap as _0x55969c,of as _0x1ec186,takeUntil as _0x4da0bf,debounceTime as _0x19303b,Subject as _0x1fac1f,filter as _0x24339d,merge as _0x826d92,combineLatest as _0x48aeb3,fromEvent as _0x45269d,shareReplay as _0x528417,mapTo as _0x84d373,distinctUntilChanged as _0x332830}from'rxjs';import{Tooltip as _0x40dc63,clsx as _0xee85e0,MessageType as _0x4bbdcc}from'@univerjs/design';import{useRef as _0x48b388,createElement as _0x1773bb,forwardRef as _0x374bc5,useCallback as _0x48404f}from'react';import{IRemoteInstanceService as _0x136b48}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x280b7c,RefRangeService as _0xe3159f,SetSelectionsOperation as _0x25f058,SheetsSelectionsService as _0x5bbf8d,EffectRefRangId as _0x4eb700,handleIRemoveRow as _0x44c162,handleIRemoveCol as _0x3dbb55,handleMoveRange as _0x221e69,handleInsertRow as _0x44d812,handleInsertRangeMoveRight as _0x554330,handleInsertRangeMoveDown as _0x3fbd49,handleInsertCol as _0x3f84c9,handleDeleteRangeMoveUp as _0x5e9d7d,handleDeleteRangeMoveLeft as _0x16e40f,runRefRangeMutations as _0x908350}from'@univerjs/sheets';import{Shape as _0x453ad9,Rect as _0xf6029d,getColor as _0x51fc9e,RegularPolygon as _0x6842e7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x19edf3,Vector2 as _0x20bdbd,SHEET_VIEWPORT_KEY as _0x1db3ff,IRenderManagerService as _0x4ae0f1}from'@univerjs/engine-render';import{HTTPService as _0x1ef343,ISocketService as _0x333b75,WebSocketService as _0x12b10a}from'@univerjs/network';import{IDocClipboardService as _0x392901,NodePositionConvertToCursor as _0x5a7e88,NodePositionConvertToRectRange as _0x506f46,TEXT_RANGE_LAYER_INDEX as _0x4df622,SetDocZoomRatioOperation as _0xea9b01,DocIMEInputManagerService as _0x5d750a,DocStateChangeManagerService as _0xc26da3}from'@univerjs/docs-ui';import{IImageIoService as _0x1e7b2a}from'@univerjs/drawing';import{ITransformService as _0x5963ba,CollaborationEvent as _0x38e1b2,isTransformMutationFailure as _0x594698,isTransformMutationsWithChangesetSuccess as _0xcbda0,RevisionService as _0x17c8fb,ISnapshotServerService as _0x479bb3}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x16b06b,RichTextEditingMutation as _0x105f6f,DocSelectionManagerService as _0x299386,DocSkeletonManagerService as _0x17ec67}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1513e7,serializeRangeWithSheet as _0x269cf9,FormulaExecuteStageType as _0x252b95,FormulaExecutedStateType as _0x84f645,SetFormulaCalculationStartMutation as _0x576576,SetFormulaCalculationNotificationMutation as _0x554e96}from'@univerjs/engine-formula';import{map as _0x2da2ce,filter as _0x57f830,throttleTime as _0x58940e,takeUntil as _0x5894b4,switchMap as _0x1fb447}from'rxjs/operators';import{SheetSkeletonManagerService as _0x498a70,getCoordByCell as _0x30bc8b,getSheetObject as _0x5bfd58}from'@univerjs/sheets-ui';function Ge({ref:_0x54291e,..._0x241bea}){const _0x406c15=_0x12f7be,{icon:_0x5a965f,id:_0x2e2ab2,className:_0x5051be,extend:_0x17a17b,..._0x15162f}=_0x241bea,_0x3bcf9f=('univerjs-icon\x20univerjs-icon-'+_0x2e2ab2+'\x20'+(_0x5051be||''))[_0x406c15(0x20f)](),_0x2be787=_0x48b388('_'+vi());return At(_0x5a965f,''+_0x2e2ab2,{'defIds':_0x5a965f[_0x406c15(0x271)],'idSuffix':_0x2be787[_0x406c15(0x1eb)]},{'ref':_0x54291e,'className':_0x3bcf9f,..._0x15162f},_0x17a17b);}function At(_0x48337c,_0x8fdcfa,_0x1aae2a,_0x4886cf,_0x37bae4){const _0x482f46=_0x12f7be;return _0x1773bb(_0x48337c[_0x482f46(0xb1)],{'key':_0x8fdcfa,...gi(_0x48337c,_0x1aae2a,_0x37bae4),..._0x4886cf},(Ei(_0x48337c,_0x1aae2a)['children']||[])[_0x482f46(0x2ae)]((_0x5701bd,_0x503352)=>At(_0x5701bd,_0x8fdcfa+'-'+_0x48337c['tag']+'-'+_0x503352,_0x1aae2a,void 0x0,_0x37bae4)));}function gi(_0x1a639a,_0x106a49,_0x3f4a77){const _0x100204=_0x12f7be,_0x221261={..._0x1a639a[_0x100204(0x1da)]};_0x3f4a77!=null&&_0x3f4a77[_0x100204(0x1bb)]&&_0x221261['fill']===_0x100204(0x1bb)&&(_0x221261[_0x100204(0x26a)]=_0x3f4a77[_0x100204(0x1bb)]),_0x1a639a[_0x100204(0xb1)]===_0x100204(0x1d6)&&_0x221261['id']&&(_0x221261['id']=_0x221261['id']+_0x106a49[_0x100204(0x2a4)]),Object[_0x100204(0xd5)](_0x221261)[_0x100204(0x275)](([_0x16ae69,_0x221fa8])=>{const _0x11cbf2=_0x100204;_0x16ae69==='mask'&&typeof _0x221fa8==_0x11cbf2(0x2b2)&&(_0x221261[_0x16ae69]=_0x221fa8[_0x11cbf2(0xba)](/url\(#(.*)\)/,_0x11cbf2(0x2b4)+_0x106a49[_0x11cbf2(0x2a4)]+')'));});const {defIds:_0x45398a}=_0x106a49;return!_0x45398a||_0x45398a[_0x100204(0x1c8)]===0x0||(_0x1a639a['tag']==='use'&&_0x221261[_0x100204(0x1b4)]&&(_0x221261[_0x100204(0x1b4)]=_0x221261[_0x100204(0x1b4)]+_0x106a49[_0x100204(0x2a4)]),Object[_0x100204(0xd5)](_0x221261)[_0x100204(0x275)](([_0x37688a,_0x313bb4])=>{const _0x13d8f2=_0x100204;typeof _0x313bb4==_0x13d8f2(0x2b2)&&(_0x221261[_0x37688a]=_0x313bb4[_0x13d8f2(0xba)](/url\(#(.*)\)/,_0x13d8f2(0x2b4)+_0x106a49[_0x13d8f2(0x2a4)]+')'));})),_0x221261;}function Ei(_0x3d723b,_0x402667){const _0xc86db6=_0x12f7be;var _0x56acb2;const {defIds:_0x272e3e}=_0x402667;return!_0x272e3e||_0x272e3e[_0xc86db6(0x1c8)]===0x0?_0x3d723b:_0x3d723b[_0xc86db6(0xb1)]===_0xc86db6(0x272)&&((_0x56acb2=_0x3d723b['children'])!=null&&_0x56acb2[_0xc86db6(0x1c8)])?{..._0x3d723b,'children':_0x3d723b[_0xc86db6(0x186)][_0xc86db6(0x2ae)](_0x31ea3c=>typeof _0x31ea3c['attrs']['id']=='string'&&_0x272e3e&&_0x272e3e['includes'](_0x31ea3c[_0xc86db6(0x1da)]['id'])?{..._0x31ea3c,'attrs':{..._0x31ea3c[_0xc86db6(0x1da)],'id':_0x31ea3c[_0xc86db6(0x1da)]['id']+_0x402667[_0xc86db6(0x2a4)]}}:_0x31ea3c)}:_0x3d723b;}function vi(){const _0x1e38fa=_0x12f7be;return Math['random']()[_0x1e38fa(0x20c)](0x24)[_0x1e38fa(0xe0)](0x2,0x8);}Ge[_0x12f7be(0x2f9)]=_0x12f7be(0x14c);const pi={'tag':'svg','attrs':{'xmlns':_0x12f7be(0x2ea),'fill':'none','viewBox':_0x12f7be(0x202),'width':'1em','height':_0x12f7be(0x2a2)},'children':[{'tag':'g','attrs':{'clipPath':_0x12f7be(0x130)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x12f7be(0x1d9),'strokeLinecap':_0x12f7be(0x2d3),'strokeLinejoin':_0x12f7be(0x2d3),'strokeWidth':1.2}}]},{'tag':_0x12f7be(0x272),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x12f7be(0x242)},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'fill':_0x12f7be(0xe4),'d':_0x12f7be(0x170)}}]}]}],'defIds':[_0x12f7be(0x242)]},Pt=_0x374bc5(function(_0x26a7a1,_0xf58833){const _0x526caa=_0x12f7be;return _0x1773bb(Ge,Object[_0x526caa(0x1de)]({},_0x26a7a1,{'id':_0x526caa(0x294),'ref':_0xf58833,'icon':pi}));});Pt['displayName']=_0x12f7be(0x2e3);const Oi={'tag':_0x12f7be(0x27d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12f7be(0xc8),'viewBox':_0x12f7be(0xc7),'width':_0x12f7be(0x2a2),'height':_0x12f7be(0x2a2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'stroke':_0x12f7be(0x2a8),'d':_0x12f7be(0xc4),'strokeLinecap':_0x12f7be(0x2d3),'strokeLinejoin':_0x12f7be(0x2d3),'strokeWidth':1.2}}]},{'tag':_0x12f7be(0x272),'attrs':{},'children':[{'tag':_0x12f7be(0x262),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'fill':_0x12f7be(0xe4),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x12f7be(0x25b)]},wt=_0x374bc5(function(_0x3b0cc2,_0x52eba6){const _0x3df1e3=_0x12f7be;return _0x1773bb(Ge,Object[_0x3df1e3(0x1de)]({},_0x3b0cc2,{'id':_0x3df1e3(0x17a),'ref':_0x52eba6,'icon':Oi}));});wt['displayName']='OnLineIcon';function Ti(_0x299edf){const _0x450195=_0x12f7be;switch(_0x299edf){case _0x2a0d66['OFFLINE']:return _0x450195(0x2e6);case _0x2a0d66[_0x450195(0x1ba)]:return _0x450195(0x297);case _0x2a0d66[_0x450195(0xd6)]:return _0x450195(0x2fe);case _0x2a0d66[_0x450195(0x16a)]:return _0x450195(0x2e9);case _0x2a0d66['AWAITING']:case _0x2a0d66[_0x450195(0xb9)]:return _0x450195(0x200);case _0x2a0d66[_0x450195(0x1b5)]:case _0x2a0d66['PENDING']:return _0x450195(0x204);}}function Ci(_0x1e47cd){const _0x1c4f8f=_0x12f7be,{status$:_0x59eead}=_0x1e47cd,_0x53d908=_0x368c28(_0x59eead,_0x2a0d66[_0x1c4f8f(0x16a)]),_0xbbc8c4=_0x5911c2(_0x35b6c7),_0xf58517=_0x5911c2(_0x3c5e90),_0x37defb=_0x53d908!==_0x2a0d66[_0x1c4f8f(0x2fb)],_0xff51bd=_0xbbc8c4['t'](Ti(_0x53d908)),_0x49bac4=_0x37defb?_0x113f07(wt,{}):_0x113f07(Pt,{}),_0x40b105=_0x48404f(()=>{const _0x241e44=_0x1c4f8f;_0x37defb||_0xf58517[_0x241e44(0x18c)]();},[_0x37defb,_0xf58517]);function _0x18e815(){const _0x1d6afe=_0x1c4f8f;return _0x1eecd1(_0x1d6afe(0x280),{'className':'univer-flex\x20univer-items-center','onClick':_0x40b105,'children':[_0x113f07(_0x1d6afe(0x280),{'className':_0xee85e0(_0x1d6afe(0x24a),{'univer-text-green-500':_0x37defb,'univer-text-red-500':!_0x37defb}),'children':_0x49bac4}),_0x113f07(_0x1d6afe(0x280),{'className':_0x1d6afe(0x146),'children':_0xff51bd})]});}return _0x37defb?_0x18e815():_0x113f07(_0x40dc63,{'title':_0xbbc8c4['t'](_0x1c4f8f(0x14f)),'children':_0x18e815()});}var Ri=Object[_0x12f7be(0x214)],Di=(_0x5aedbf,_0x538faf,_0x422285,_0xf94fb3)=>{const _0x6cb629=_0x12f7be;for(var _0x358d8d=_0xf94fb3>0x1?void 0x0:_0xf94fb3?Ri(_0x538faf,_0x422285):_0x538faf,_0xf023fe=_0x5aedbf[_0x6cb629(0x1c8)]-0x1,_0x190f60;_0xf023fe>=0x0;_0xf023fe--)(_0x190f60=_0x5aedbf[_0xf023fe])&&(_0x358d8d=_0x190f60(_0x358d8d)||_0x358d8d);return _0x358d8d;},se=(_0x1678f1,_0x487908)=>(_0xe604bf,_0x216b10)=>_0x487908(_0xe604bf,_0x216b10,_0x1678f1);let ae=class extends _0x112363{constructor(_0xebd0bd,_0x139be5,_0x35914c,_0x250602){const _0x51118d=_0x12f7be;super(),_(this,_0x51118d(0x2ec),new _0x51f523(_0x2a0d66['NOT_COLLAB'])),(this[_0x51118d(0x1e0)]=_0xebd0bd,this[_0x51118d(0x213)]=_0x139be5,this[_0x51118d(0x14d)]=_0x35914c,this[_0x51118d(0xf1)]=_0x250602,this[_0x51118d(0x303)](),this[_0x51118d(0x207)]());}['_initStatusListener'](){const _0x463472=_0x12f7be;this[_0x463472(0x26c)](this[_0x463472(0x1e0)]['focused$']['pipe'](_0x55969c(()=>{const _0x418ecf=_0x463472,_0x11f1e0=this[_0x418ecf(0x1e0)][_0x418ecf(0x20d)]();return _0x11f1e0?this[_0x418ecf(0x14d)][_0x418ecf(0xdb)](_0x11f1e0[_0x418ecf(0xb6)]()):_0x1ec186(null);}),_0x55969c(_0x32f2da=>_0x32f2da?_0x32f2da[_0x463472(0x10c)]:_0x1ec186(_0x2a0d66[_0x463472(0x16a)])))[_0x463472(0x1e6)](_0x8b865e=>{const _0x386b05=_0x463472;this[_0x386b05(0x2ec)][_0x386b05(0xe6)](_0x8b865e);}));}[_0x12f7be(0x303)](){const _0x5bd223=_0x12f7be;this[_0x5bd223(0x26c)](this[_0x5bd223(0xf1)][_0x5bd223(0x174)](_0x5a54ac[_0x5bd223(0x12c)],()=>_0x4e04ea(Ni({'status$':this[_0x5bd223(0x2ec)][_0x5bd223(0x195)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x52d51e),se(0x1,_0x3714f8(_0x24a160)),se(0x2,_0x3714f8(_0x41819a)),se(0x3,_0x1e6b0c)],ae);function Ni(_0x1bd33c){const {status$:_0x3efcbb}=_0x1bd33c;return function(){return _0x113f07(Ci,{'status$':_0x3efcbb});};}const yt=_0x21b651('uni.network.url-service');var bi=Object['getOwnPropertyDescriptor'],Li=(_0x1f837a,_0x1153fd,_0x45afab,_0x568d64)=>{for(var _0x376df0=_0x568d64>0x1?void 0x0:_0x568d64?bi(_0x1153fd,_0x45afab):_0x1153fd,_0x2f01b7=_0x1f837a['length']-0x1,_0x47849b;_0x2f01b7>=0x0;_0x2f01b7--)(_0x47849b=_0x1f837a[_0x2f01b7])&&(_0x376df0=_0x47849b(_0x376df0)||_0x376df0);return _0x376df0;},K=(_0xc19778,_0x26a287)=>(_0x3201a7,_0x277ac4)=>_0x26a287(_0x3201a7,_0x277ac4,_0xc19778);let ce=class extends _0x53e01a{constructor(_0x204f71,_0x1e8763,_0x3f7204,_0x178583,_0x323cea){const _0x129770=_0x12f7be;super(),this['_urlService']=_0x204f71,this[_0x129770(0x267)]=_0x1e8763,this[_0x129770(0x21d)]=_0x3f7204,this[_0x129770(0x2c6)]=_0x178583,_0x323cea?_0x323cea==null||_0x323cea['whenReady']()['then'](()=>this['_init']()):(this[_0x129770(0x267)][_0x129770(0x209)](_0x129770(0x2b3),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x129770(0x279)]());}async[_0x12f7be(0x279)](){const _0x567f80=_0x12f7be,_0x8c5cca=this[_0x567f80(0x11b)]['getParam'](_0x567f80(0x132)),_0x3f839a=this[_0x567f80(0x11b)][_0x567f80(0x1ac)](_0x567f80(0x16d)),_0xbe7ebd=this['_urlService'][_0x567f80(0x1ac)](_0x567f80(0x255));if(!_0x8c5cca||!_0x3f839a){this[_0x567f80(0x267)][_0x567f80(0x209)](_0x567f80(0x2b3),_0x567f80(0x192));return;}const _0x50b6be=await this['_dataLoaderService'][_0x567f80(0x238)](_0x8c5cca,Number(_0x3f839a),_0xbe7ebd);_0x50b6be&&_0x50b6be instanceof _0x137b01&&this['_setupSubUnitSync'](_0x50b6be);}async['_setupSubUnitSync'](_0x81701){const _0xc7d08d=_0x12f7be;await this['_updateSubUnitFromURLParams'](_0x81701),_0x81701[_0xc7d08d(0x2c0)]['pipe'](_0x4da0bf(this[_0xc7d08d(0x2a6)]))['subscribe'](_0x347aee=>{_0x347aee&&this['_updateURLWithCurrentState'](_0x347aee);}),this[_0xc7d08d(0x11b)]['urlChange$']['pipe'](_0x4da0bf(this[_0xc7d08d(0x2a6)]))[_0xc7d08d(0x1e6)](()=>this[_0xc7d08d(0x1a9)](_0x81701));}['_updateURLWithCurrentState'](_0x3d82ea,_0x120241=!0x1){const _0x2d079a=_0x12f7be,_0x89e54b=this[_0x2d079a(0x11b)]['getParam'](_0x2d079a(0x255));_0x3d82ea[_0x2d079a(0x184)]()!==_0x89e54b&&this[_0x2d079a(0x11b)][_0x2d079a(0x149)]('subunit',_0x3d82ea[_0x2d079a(0x184)](),_0x120241);}async['_updateSubUnitFromURLParams'](_0x525dd2){const _0x2842e9=_0x12f7be;var _0x403ba2;const _0x28406a=this[_0x2842e9(0x11b)]['getParam'](_0x2842e9(0x255));if(!_0x28406a||!_0x525dd2[_0x2842e9(0x1af)](_0x28406a)){const _0x430253=_0x525dd2[_0x2842e9(0xcb)]()[0x0],_0x5ab056=_0x525dd2[_0x2842e9(0x1af)](_0x430253);if(!_0x5ab056)return;this[_0x2842e9(0x2da)](_0x5ab056,!0x0),await this[_0x2842e9(0x21d)][_0x2842e9(0x2fd)](_0x280b7c['id'],{'unitId':_0x525dd2[_0x2842e9(0xb6)](),'subUnitId':_0x430253});return;}((_0x403ba2=_0x525dd2[_0x2842e9(0x2e4)]())==null?void 0x0:_0x403ba2['getSheetId']())!==_0x28406a&&await this[_0x2842e9(0x21d)]['executeCommand'](_0x280b7c['id'],{'unitId':_0x525dd2[_0x2842e9(0xb6)](),'subUnitId':_0x28406a});}};ce=Li([K(0x0,yt),K(0x1,_0x36e10f),K(0x2,_0x58f12e),K(0x3,_0x3714f8(_0x48f288)),K(0x4,_0x4a5b34(_0x136b48))],ce);var Ui=Object[_0x12f7be(0x214)],Mi=(_0x165193,_0x5acf9f,_0x3d769a,_0x2edd2e)=>{const _0x61825f=_0x12f7be;for(var _0x283bdb=_0x2edd2e>0x1?void 0x0:_0x2edd2e?Ui(_0x5acf9f,_0x3d769a):_0x5acf9f,_0x5c9b30=_0x165193[_0x61825f(0x1c8)]-0x1,_0x27138e;_0x5c9b30>=0x0;_0x5c9b30--)(_0x27138e=_0x165193[_0x5c9b30])&&(_0x283bdb=_0x27138e(_0x283bdb)||_0x283bdb);return _0x283bdb;},rt=(_0x536b1c,_0x13bebd)=>(_0x4fdb09,_0x4796a8)=>_0x13bebd(_0x4fdb09,_0x4796a8,_0x536b1c);let $e=class extends _0x53e01a{constructor(_0x361c00,_0x511114){const _0x26c2de=_0x12f7be;super(),this['_docClipboardService']=_0x361c00,this[_0x26c2de(0x164)]=_0x511114,this[_0x26c2de(0x279)]();}[_0x12f7be(0x279)](){const _0x57b437=_0x12f7be,_0x20249e=this;this[_0x57b437(0x26c)](this['_docClipboardService'][_0x57b437(0x1b1)]({'onBeforePasteImage':async _0x4d50f7=>{const _0x4640c5=_0x57b437,_0x310c1c=await _0x20249e[_0x4640c5(0x164)]['saveImage'](_0x4d50f7);return _0x310c1c?{'source':_0x310c1c[_0x4640c5(0x251)],'imageSourceType':_0x310c1c[_0x4640c5(0x1bc)]}:null;}}));}};$e=Mi([rt(0x0,_0x392901),rt(0x1,_0x1e7b2a)],$e);const ot=[_0x12f7be(0x2a3),_0x12f7be(0x245),_0x12f7be(0x161),'red.300',_0x12f7be(0x13d),_0x12f7be(0x13f)];class Ke extends _0x112363{constructor(){const _0x56eb1a=_0x12f7be;super(...arguments),_(this,_0x56eb1a(0xed),new Map()),_(this,_0x56eb1a(0x124),0x0);}[_0x12f7be(0xff)](_0x5a7c37){const _0x556629=_0x12f7be;if(this[_0x556629(0xed)][_0x556629(0x201)](_0x5a7c37))return this['_assignedColors']['get'](_0x5a7c37);const _0x31b599=ot[this['_colorIndex']];return this['_colorIndex']=(this[_0x556629(0x124)]+0x1)%ot['length'],this[_0x556629(0xed)][_0x556629(0x13b)](_0x5a7c37,_0x31b599),_0x31b599;}}function $t(_0x1a470e){let _0x47ce35='';for(const _0x58f336 of _0x1a470e){const {startOffset:_0x3fd4be,endOffset:_0x56bfe2,isActive:_0x3f01a1,rangeType:_0x27f4f8,segmentId:_0x503ba3,segmentPage:_0x1afafc}=_0x58f336;_0x47ce35['length']&&(_0x47ce35+=','),_0x47ce35+=_0x3fd4be+':'+_0x56bfe2+':'+(_0x3f01a1?'1':'0')+':'+_0x27f4f8+':'+_0x503ba3+':'+_0x1afafc;}return _0x47ce35;}function Ai(_0x3c41f4){const _0x2f5edf=_0x12f7be,_0x4d94d6=_0x3c41f4[_0x2f5edf(0x2de)](','),_0x291279=[];for(const _0x4e005c of _0x4d94d6){const [_0x1aeb46,_0x1a1dfc,_0x2bb9bf,_0x39356a,_0x558c50,_0x5b59fc]=_0x4e005c['split'](':');_0x291279[_0x2f5edf(0x210)]({'startOffset':Number(_0x1aeb46),'endOffset':Number(_0x1a1dfc),'collapsed':_0x1aeb46===_0x1a1dfc,'isActive':_0x2bb9bf==='1','rangeType':_0x39356a===_0x6ed74f[_0x2f5edf(0x2f6)]?_0x6ed74f[_0x2f5edf(0x2f6)]:_0x6ed74f[_0x2f5edf(0x101)],'segmentId':typeof _0x558c50=='string'?String(_0x558c50):'','segmentPage':Number(_0x5b59fc!=null?_0x5b59fc:-0x1)});}return _0x291279[_0x2f5edf(0x12f)](_0x54844f=>_0x54844f[_0x2f5edf(0x217)])||(_0x291279[0x0][_0x2f5edf(0x217)]=!0x0),_0x291279;}class ze extends _0x53e01a{constructor(){const _0x31c3aa=_0x12f7be;super(...arguments),_(this,_0x31c3aa(0x158),new _0x51f523(null)),_(this,_0x31c3aa(0x1b0),this['_collabCursorState$'][_0x31c3aa(0x195)]());}[_0x12f7be(0xe2)](_0x53ff9c){const _0x2a7077=_0x12f7be,{unitID:_0xaf8c4f,memberID:_0xc8ec8c,textRanges:_0x52b4dc}=_0x53ff9c,_0x3dd4e4=$t(_0x52b4dc);if(_0x3dd4e4==='')return;const _0xc828ca={'unitID':_0xaf8c4f,'memberID':_0xc8ec8c,'selection':_0x3dd4e4};this['_collabCursorState$'][_0x2a7077(0xe6)](_0xc828ca);}}var Pi=Object[_0x12f7be(0x214)],wi=(_0x1a2358,_0x1d1932,_0x201fd9,_0x27ff99)=>{for(var _0x20185a=_0x27ff99>0x1?void 0x0:_0x27ff99?Pi(_0x1d1932,_0x201fd9):_0x1d1932,_0x407745=_0x1a2358['length']-0x1,_0x372f42;_0x407745>=0x0;_0x407745--)(_0x372f42=_0x1a2358[_0x407745])&&(_0x20185a=_0x372f42(_0x20185a)||_0x20185a);return _0x20185a;},A=(_0x4809d0,_0x62ae78)=>(_0x5c4907,_0x29db4c)=>_0x62ae78(_0x5c4907,_0x29db4c,_0x4809d0);const yi=0x12c,$i=0x64;let xe=class extends _0x53e01a{constructor(_0x3a2c8f,_0x34248f,_0x520e78,_0x1d0a40,_0x1055af,_0xebe9e3,_0x20b000,_0x3cfde3,_0x2093d8){const _0x252e57=_0x12f7be;super(),_(this,_0x252e57(0x22f),!0x1),_(this,_0x252e57(0x279),!0x1),_(this,_0x252e57(0x154),new _0x51f523(new Map())),_(this,_0x252e57(0x1d5),this[_0x252e57(0x154)][_0x252e57(0x195)]()),_(this,'_roomMembers$',new _0x51f523([])),_(this,_0x252e57(0x2ee),this[_0x252e57(0x155)][_0x252e57(0x1c3)](_0x19303b(yi))),_(this,_0x252e57(0x22c),_0x5a1035(_0x3cceb8=>{const _0x55472d=_0x252e57,_0x1038b4={'eventID':_0x38e1b2[_0x55472d(0x27b)],'data':{'unitID':this[_0x55472d(0x254)],'memberID':this['_session'][_0x55472d(0x196)](),'selection':$t(_0x3cceb8)}};this[_0x55472d(0xb0)][_0x55472d(0x1d2)](_0x1038b4,this[_0x55472d(0x254)]);},$i)),(this[_0x252e57(0x254)]=_0x3a2c8f,this['_session']=_0x34248f,this[_0x252e57(0x213)]=_0x520e78,this[_0x252e57(0xd2)]=_0x1d0a40,this[_0x252e57(0x208)]=_0x1055af,this[_0x252e57(0x258)]=_0xebe9e3,this[_0x252e57(0x13c)]=_0x20b000,this['_univerInstanceService']=_0x3cfde3,this[_0x252e57(0x21d)]=_0x2093d8);}get[_0x12f7be(0x2b1)](){const _0x500b19=_0x12f7be;return this['_cursorInfo$'][_0x500b19(0x2eb)]();}get[_0x12f7be(0xdc)](){const _0x3f88b6=_0x12f7be;return this[_0x3f88b6(0x155)]['getValue']();}[_0x12f7be(0x2e8)](){const _0x6c863=_0x12f7be;super[_0x6c863(0x2e8)](),this[_0x6c863(0x154)][_0x6c863(0xe6)](new Map()),this['_cursorInfo$'][_0x6c863(0x1a5)](),this[_0x6c863(0x155)][_0x6c863(0xe6)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x39c7c7=_0x12f7be;this[_0x39c7c7(0x279)]||(this[_0x39c7c7(0x279)]=!0x0,this[_0x39c7c7(0xb0)][_0x39c7c7(0x102)][_0x39c7c7(0x1c3)](_0x4da0bf(this[_0x39c7c7(0x2a6)]))[_0x39c7c7(0x1e6)](_0x5f1674=>{const _0x2730fb=_0x39c7c7;_0x5f1674===_0x434c9d[_0x2730fb(0x2f5)]?this['_toggleOnline']():this[_0x2730fb(0x133)]();}),this[_0x39c7c7(0xb0)][_0x39c7c7(0x295)][_0x39c7c7(0x1c3)](_0x4da0bf(this[_0x39c7c7(0x2a6)]))[_0x39c7c7(0x1e6)](_0x37a25e=>{const _0x5a85f2=_0x39c7c7,_0x742ebf=_0x37a25e[_0x5a85f2(0x175)];_0x742ebf===_0x38e1b2[_0x5a85f2(0x27b)]&&this['_onCursorUpdate'](_0x37a25e),_0x742ebf===_0x38e1b2[_0x5a85f2(0x296)]&&this[_0x5a85f2(0x1f3)](_0x37a25e);}),this[_0x39c7c7(0x26c)](this[_0x39c7c7(0x21d)][_0x39c7c7(0x188)](_0x5f3be2=>{const _0x436073=_0x39c7c7,_0x311111=_0x5f3be2[_0x436073(0x281)];_0x311111!=null&&this[_0x436073(0x22f)]&&_0x5f3be2['id']===_0x16b06b['id']&&_0x311111[_0x436073(0x2a5)]===this[_0x436073(0x254)]&&_0x311111[_0x436073(0x17e)]===!0x1&&_0x311111['ranges'][_0x436073(0x1c8)]>0x0&&this[_0x436073(0x22c)](_0x311111[_0x436073(0x103)]);})),this[_0x39c7c7(0x258)][_0x39c7c7(0x1b0)]['pipe'](_0x4da0bf(this['dispose$']))['subscribe'](_0x4c7000=>{const _0xccbed9=_0x39c7c7;if((_0x4c7000==null?void 0x0:_0x4c7000[_0xccbed9(0x254)])!==this[_0xccbed9(0x254)])return;const _0x202908={'eventID':_0x38e1b2[_0xccbed9(0x27b)],'data':_0x4c7000};this['_onCursorUpdate'](_0x202908);}),this[_0x39c7c7(0x26c)](this['_commandService'][_0x39c7c7(0x188)](_0x57ba33=>{const _0x4422a4=_0x39c7c7;if(_0x57ba33['params']==null)return;const _0x3d1241=_0x57ba33[_0x4422a4(0x281)];if(_0x57ba33['id']!==_0x105f6f['id']||_0x3d1241[_0x4422a4(0x2a5)]!==this['unitID'])return;const _0x20034e={'id':'doc.mutation.rich-text-editing','params':_0x3d1241},_0x5826b1=this[_0x4422a4(0x2b1)];for(const [_0x1b928a,_0x154dee]of _0x5826b1){const _0x3acc1b={'id':_0x4422a4(0x219),'params':{'unitId':this[_0x4422a4(0x254)],'actions':null,'textRanges':_0x154dee[_0x4422a4(0x103)]}},_0x562b49=this['_transformService'][_0x4422a4(0x249)](_0x20034e,_0x3acc1b,!0x1);if(_0x594698(_0x562b49))throw _0x562b49[_0x4422a4(0x2d5)];_0x5826b1[_0x4422a4(0x13b)](_0x1b928a,{..._0x154dee,'ranges':_0x562b49[_0x4422a4(0x166)][_0x4422a4(0x281)]['textRanges']});}queueMicrotask(()=>{const _0x3e23f3=_0x4422a4;this[_0x3e23f3(0x154)][_0x3e23f3(0xe6)](_0x5826b1);});})));}['_onCursorUpdate'](_0x9867e1){const _0xa1f2dc=_0x12f7be;var _0x5517a5,_0x449865;const {memberID:_0x51bf32,selection:_0x269311}=_0x9867e1[_0xa1f2dc(0x19f)],_0x5d1f4c=Ai(_0x269311),_0x16d882=(_0x449865=(_0x5517a5=this[_0xa1f2dc(0x208)][_0xa1f2dc(0x1fa)](this[_0xa1f2dc(0x254)],_0x51bf32))==null?void 0x0:_0x5517a5[_0xa1f2dc(0x197)])!=null?_0x449865:'Unknown\x20user',_0x13adb8={'color':this['_colorAssignService'][_0xa1f2dc(0xff)](_0x51bf32),'name':_0x16d882,'ranges':_0x5d1f4c},_0x38ace7=this[_0xa1f2dc(0x2b1)];_0x38ace7[_0xa1f2dc(0x13b)](_0x51bf32,_0x13adb8),this[_0xa1f2dc(0x154)][_0xa1f2dc(0xe6)](_0x38ace7);}[_0x12f7be(0x1f3)](_0x6b4e0d){const _0xa0b45f=_0x12f7be,{memberID:_0x58010c}=_0x6b4e0d['data'],_0x421bf8=this[_0xa0b45f(0x2b1)];_0x421bf8[_0xa0b45f(0x1a0)](_0x58010c),this['_cursorInfo$']['next'](_0x421bf8);}['_toggleOnline'](){const _0x4f9e56=_0x12f7be;var _0x23d946;if(this[_0x4f9e56(0x22f)]=!0x0,((_0x23d946=this[_0x4f9e56(0x1e0)][_0x4f9e56(0x20d)]())==null?void 0x0:_0x23d946[_0x4f9e56(0xb6)]())!==this[_0x4f9e56(0x254)])return;const _0x36946d=this['_injector'][_0x4f9e56(0x163)](_0x299386)[_0x4f9e56(0x293)]();Array['isArray'](_0x36946d)&&_0x36946d[_0x4f9e56(0x1c8)]>0x0&&this['_updateLocalCursor'](_0x36946d);}[_0x12f7be(0x133)](){const _0x1e1135=_0x12f7be;this[_0x1e1135(0x22f)]=!0x1;}};xe=wi([A(0x2,_0x3714f8(_0x24a160)),A(0x3,_0x3714f8(Ke)),A(0x4,_0x3714f8(_0xa7c392)),A(0x5,_0x3714f8(ze)),A(0x6,_0x5963ba),A(0x7,_0x52d51e),A(0x8,_0x58f12e)],xe);var xi=Object[_0x12f7be(0x214)],Bi=(_0x4b2ec0,_0x32de92,_0x4aedeb,_0x2f27b2)=>{for(var _0xecfd=_0x2f27b2>0x1?void 0x0:_0x2f27b2?xi(_0x32de92,_0x4aedeb):_0x32de92,_0x4e9118=_0x4b2ec0['length']-0x1,_0x243adf;_0x4e9118>=0x0;_0x4e9118--)(_0x243adf=_0x4b2ec0[_0x4e9118])&&(_0xecfd=_0x243adf(_0xecfd)||_0xecfd);return _0xecfd;},B=(_0x1d83f5,_0x4e6ebb)=>(_0x3ef48b,_0x3ab8d7)=>_0x4e6ebb(_0x3ef48b,_0x3ab8d7,_0x1d83f5);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x31d106=[],_0x58ef4c=!0x1;return _0x47da9b=>{const _0x121db0=_0x473f;_0x31d106[_0x121db0(0x210)](_0x47da9b),_0x58ef4c||(_0x58ef4c=!0x0,setTimeout(()=>{const _0x2f93d4=_0x121db0;_0x31d106[_0x2f93d4(0x275)](_0x3ee024=>_0x3ee024()),_0x31d106=[],_0x58ef4c=!0x1;}));};};let Be=class extends _0x53e01a{constructor(_0x3a82ca,_0x4ff01d,_0x1a6338,_0x33d356,_0x22a62d,_0x2a8548,_0x2fe06a,_0x3e2b96){const _0x1f91b5=_0x12f7be;super(),_(this,_0x1f91b5(0x22f),!0x1),_(this,_0x1f91b5(0x279),!0x1),_(this,_0x1f91b5(0x154),new _0x51f523(new Map())),_(this,_0x1f91b5(0x1d5),this['_cursorInfo$'][_0x1f91b5(0x195)]()),_(this,_0x1f91b5(0x155),new _0x51f523([])),_(this,_0x1f91b5(0x2ee),this[_0x1f91b5(0x155)][_0x1f91b5(0x1c3)](_0x19303b(Fi))),_(this,_0x1f91b5(0x22c),_0x5a1035((_0x5a4c4e,_0x224274)=>{const _0x5638f1=_0x1f91b5,_0x2a960c={'eventID':_0x38e1b2[_0x5638f1(0x27b)],'data':{'unitID':this['unitID'],'memberID':this[_0x5638f1(0xb0)][_0x5638f1(0x196)](),'selection':_0x269cf9(_0x5a4c4e,_0x224274['range'])}};this[_0x5638f1(0xb0)][_0x5638f1(0x1d2)](_0x2a960c,this[_0x5638f1(0x254)]);},ki)),(this[_0x1f91b5(0x254)]=_0x3a82ca,this['_session']=_0x4ff01d,this[_0x1f91b5(0x213)]=_0x1a6338,this[_0x1f91b5(0xd2)]=_0x33d356,this[_0x1f91b5(0x208)]=_0x22a62d,this[_0x1f91b5(0x1e0)]=_0x2a8548,this[_0x1f91b5(0x21d)]=_0x2fe06a,this['_refRangeService']=_0x3e2b96);}get['cursorInfo'](){const _0x5460d7=_0x12f7be;return this[_0x5460d7(0x154)]['getValue']();}get['roomMembers'](){const _0x5cdb86=_0x12f7be;return this[_0x5cdb86(0x155)][_0x5cdb86(0x2eb)]();}[_0x12f7be(0x2e8)](){const _0x345f90=_0x12f7be;super[_0x345f90(0x2e8)](),this['_cursorInfo$']['next'](new Map()),this[_0x345f90(0x154)][_0x345f90(0x1a5)](),this[_0x345f90(0x155)][_0x345f90(0xe6)]([]),this[_0x345f90(0x155)][_0x345f90(0x1a5)]();}['init'](){const _0x15f3c6=_0x12f7be;this[_0x15f3c6(0x279)]||(this[_0x15f3c6(0x279)]=!0x0,this[_0x15f3c6(0xb0)]['sessionStatus$'][_0x15f3c6(0x1c3)](_0x4da0bf(this[_0x15f3c6(0x2a6)]))['subscribe'](_0x22e7df=>{const _0x3ea967=_0x15f3c6;_0x22e7df===_0x434c9d[_0x3ea967(0x2f5)]?this[_0x3ea967(0x2aa)]():this[_0x3ea967(0x133)]();}),this['_session'][_0x15f3c6(0x295)][_0x15f3c6(0x1c3)](_0x4da0bf(this[_0x15f3c6(0x2a6)]))['subscribe'](_0x57dd78=>{const _0x40db85=_0x15f3c6,_0x363c17=_0x57dd78['eventID'];_0x363c17===_0x38e1b2[_0x40db85(0x27b)]&&this['_onCursorUpdate'](_0x57dd78),_0x363c17===_0x38e1b2[_0x40db85(0x296)]&&this['_onCursorDelete'](_0x57dd78);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x15f3c6(0x21d)][_0x15f3c6(0x188)](_0x74c1f8=>{const _0x50605d=_0x15f3c6;if(this[_0x50605d(0x22f)]&&_0x74c1f8['id']===_0x25f058['id']&&_0x74c1f8['params'][_0x50605d(0x2a5)]===this[_0x50605d(0x254)]){const _0x2e5eb1=_0x74c1f8[_0x50605d(0x281)];this[_0x50605d(0x22c)](_0x2e5eb1[_0x50605d(0x260)],_0x2e5eb1[_0x50605d(0x1e8)][0x0]);}})));}[_0x12f7be(0x1f4)](_0x5d694f){const _0x2b5a94=_0x12f7be;var _0x4c9ec6,_0x2548d7;const {memberID:_0xbed6a5,selection:_0x4e4c64}=_0x5d694f[_0x2b5a94(0x19f)],{sheetName:_0x48b17c,range:_0x6575cc}=_0x1513e7(_0x4e4c64),_0x2ce775={'name':(_0x2548d7=(_0x4c9ec6=this['_memberService'][_0x2b5a94(0x1fa)](this['unitID'],_0xbed6a5))==null?void 0x0:_0x4c9ec6[_0x2b5a94(0x197)])!=null?_0x2548d7:_0x2b5a94(0x211),'range':this[_0x2b5a94(0xda)](_0x48b17c,_0x6575cc),'sheetID':_0x48b17c,'color':this['_colorAssignService'][_0x2b5a94(0xff)](_0xbed6a5),'selection':_0x4e4c64},_0x4eac91=this[_0x2b5a94(0x2b1)];_0x4eac91[_0x2b5a94(0x13b)](_0xbed6a5,_0x2ce775),this[_0x2b5a94(0x154)][_0x2b5a94(0xe6)](_0x4eac91);}['_onCursorDelete'](_0x34c034){const _0xa7078d=_0x12f7be,{memberID:_0x1a11ff}=_0x34c034['data'],_0x1ce100=this[_0xa7078d(0x2b1)];_0x1ce100['delete'](_0x1a11ff),this[_0xa7078d(0x154)][_0xa7078d(0xe6)](_0x1ce100);}[_0x12f7be(0xda)](_0x2f30b0,_0x577bad){const _0x333cc5=_0x12f7be;var _0x2b205a,_0x429aac;const _0x558629=(_0x429aac=(_0x2b205a=this[_0x333cc5(0x1e0)]['getUniverSheetInstance'](this[_0x333cc5(0x254)]))==null?void 0x0:_0x2b205a[_0x333cc5(0x1af)](_0x2f30b0))==null?void 0x0:_0x429aac[_0x333cc5(0x277)]();return(_0x558629==null?void 0x0:_0x558629[_0x333cc5(0x305)](_0x3bb35d=>_0x3fed9b[_0x333cc5(0x151)](_0x3bb35d,_0x577bad)))||_0x577bad;}[_0x12f7be(0x2b9)](){const _0x5739d3=_0x12f7be,_0x301356=new _0x4284de(),_0x303c48=Hi(),_0x4c4785=()=>{const _0x4eb8d8=_0x473f;_0x301356[_0x4eb8d8(0x2e8)]();const _0x497c1b=(_0x468276,_0x2e8a18,_0x1e39bb,_0x2bfb31)=>{const _0x36759c=_0x4eb8d8;let _0x12284f=[];switch(_0x468276['id']){case _0x4eb700[_0x36759c(0xf0)]:{_0x12284f=_0x16e40f(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1fe)]:{_0x12284f=_0x5e9d7d(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0xbf)]:{_0x12284f=_0x3f84c9(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1c0)]:{_0x12284f=_0x3fbd49(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x181)]:{_0x12284f=_0x554330(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1c7)]:{_0x12284f=_0x44d812(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x241)]:{_0x12284f=_0x221e69(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x15e)]:{_0x12284f=_0x3dbb55(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x22e)]:{_0x12284f=_0x44c162(_0x468276,_0x2bfb31);break;}}const _0x2582e9=_0x908350(_0x12284f,_0x2bfb31),_0x42de02=this[_0x36759c(0x2b1)][_0x36759c(0x163)](_0x2e8a18);if(_0x42de02&&_0x2582e9){const _0xd58f9={..._0x42de02,'range':_0x2582e9};this['cursorInfo'][_0x36759c(0x13b)](_0x2e8a18,_0xd58f9),_0x303c48(()=>{const _0xa5c244=_0x36759c,_0x5d6b1b=this[_0xa5c244(0x1df)]['registerRefRange'](_0x2582e9,_0x8ffb0f=>(_0x5d6b1b[_0xa5c244(0x2e8)](),_0x497c1b(_0x8ffb0f,_0x2e8a18,_0x1e39bb,_0x2582e9)));_0x301356[_0xa5c244(0x1ad)](_0x5d6b1b);});}return{'redos':[],'undos':[]};};this[_0x4eb8d8(0x2b1)][_0x4eb8d8(0x275)]((_0x485d77,_0x38e578)=>{const _0x460f70=_0x4eb8d8,{range:_0x141537,sheetID:_0x3ea322}=_0x485d77,_0x22d2a1=this[_0x460f70(0x1df)][_0x460f70(0x2ed)](_0x141537,_0x59ad45=>(_0x22d2a1[_0x460f70(0x2e8)](),_0x497c1b(_0x59ad45,_0x38e578,_0x3ea322,_0x141537)));_0x301356[_0x460f70(0x1ad)](_0x22d2a1);});};this[_0x5739d3(0x26c)](_0x16c8e4(this['_cursorInfo$'][_0x5739d3(0x1e6)](()=>{_0x4c4785();})));}[_0x12f7be(0x2aa)](){const _0x67930=_0x12f7be;var _0x31b23a,_0x4e9a22;if(this[_0x67930(0x22f)]=!0x0,((_0x31b23a=this[_0x67930(0x1e0)][_0x67930(0x20d)]())==null?void 0x0:_0x31b23a[_0x67930(0xb6)]())!==this['unitID'])return;const _0x39372c=(_0x4e9a22=this[_0x67930(0x213)][_0x67930(0x163)](_0x5bbf8d)[_0x67930(0x22d)]())==null?void 0x0:_0x4e9a22[0x0],_0x27acc8=this[_0x67930(0x1e0)]['getCurrentUnitForType'](_0x53cd3e['UNIVER_SHEET'])['getActiveSheet']();_0x39372c&&_0x27acc8&&this['_updateLocalCursor'](_0x27acc8[_0x67930(0x184)](),_0x39372c);}['_toggleOffline'](){const _0x291995=_0x12f7be;this[_0x291995(0x22f)]=!0x1;}};Be=Bi([B(0x2,_0x3714f8(_0x24a160)),B(0x3,_0x3714f8(Ke)),B(0x4,_0x3714f8(_0xa7c392)),B(0x5,_0x52d51e),B(0x6,_0x58f12e),B(0x7,_0x3714f8(_0xe3159f))],Be);var Yi=Object[_0x12f7be(0x214)],Wi=(_0x184b2a,_0x366585,_0x40c509,_0x5dfe28)=>{const _0x3dd4fb=_0x12f7be;for(var _0x2940f1=_0x5dfe28>0x1?void 0x0:_0x5dfe28?Yi(_0x366585,_0x40c509):_0x366585,_0x154b77=_0x184b2a[_0x3dd4fb(0x1c8)]-0x1,_0x16ebf5;_0x154b77>=0x0;_0x154b77--)(_0x16ebf5=_0x184b2a[_0x154b77])&&(_0x2940f1=_0x16ebf5(_0x2940f1)||_0x2940f1);return _0x2940f1;},Ce=(_0xbb063f,_0x4d0b4d)=>(_0x35d965,_0x26622b)=>_0x4d0b4d(_0x35d965,_0x26622b,_0xbb063f);let H=class extends _0x53e01a{constructor(_0x1a0743,_0x46237f,_0x56dc58){const _0x9c7051=_0x12f7be;super(),_(this,_0x9c7051(0x1f2),new Map()),_(this,_0x9c7051(0x239),new _0x1fac1f()),(this[_0x9c7051(0x1e0)]=_0x1a0743,this[_0x9c7051(0x213)]=_0x46237f,this[_0x9c7051(0x104)]=_0x56dc58,this[_0x9c7051(0x279)]());}[_0x12f7be(0x2e8)](){const _0x233184=_0x12f7be;super[_0x233184(0x2e8)](),this[_0x233184(0x239)][_0x233184(0x1a5)](),this[_0x233184(0x1f2)][_0x233184(0x275)](_0x43807a=>_0x43807a['dispose']());}[_0x12f7be(0x2bc)](_0x1f5219){const _0x3b0f8d=_0x12f7be;return this[_0x3b0f8d(0x1f2)]['has'](_0x1f5219)?this[_0x3b0f8d(0x1f2)][_0x3b0f8d(0x163)](_0x1f5219)[_0x3b0f8d(0x1d5)]:this[_0x3b0f8d(0x239)][_0x3b0f8d(0x1c3)](_0x24339d(_0x16651f=>_0x16651f[_0x3b0f8d(0x254)]===_0x1f5219),_0x55969c(_0x5b8951=>_0x5b8951[_0x3b0f8d(0x1d5)]));}[_0x12f7be(0x279)](){const _0x431087=_0x12f7be;this['_univerInstanceService'][_0x431087(0x292)](_0x53cd3e[_0x431087(0x268)])[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))[_0x431087(0x1e6)](async _0x3e5f22=>{const _0xee150b=_0x431087,_0x3ab7e2=_0x3e5f22['getUnitId'](),_0x528217=await this['_startSheetCollabCursor'](_0x3ab7e2);this[_0xee150b(0x239)]['next'](_0x528217),this['_entities']['set'](_0x3ab7e2,_0x528217);}),this[_0x431087(0x1e0)][_0x431087(0x292)](_0x53cd3e[_0x431087(0xc1)])[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))['pipe'](_0x24339d(_0x103895=>!_0x103895[_0x431087(0xb6)]()[_0x431087(0x24d)]('__')))[_0x431087(0x1e6)](async _0xc4fd2a=>{const _0x462ee3=_0x431087,_0x4acf7f=_0xc4fd2a[_0x462ee3(0xb6)](),_0x5be69a=await this['_startDocCollabCursor'](_0x4acf7f);this[_0x462ee3(0x239)]['next'](_0x5be69a),this[_0x462ee3(0x1f2)][_0x462ee3(0x13b)](_0x4acf7f,_0x5be69a);}),_0x826d92(this[_0x431087(0x1e0)][_0x431087(0x226)](_0x53cd3e['UNIVER_DOC']),this[_0x431087(0x1e0)][_0x431087(0x226)](_0x53cd3e[_0x431087(0x268)]))[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))[_0x431087(0x1e6)](_0x7adf37=>{const _0x402eeb=_0x431087,_0x3d9ba2=_0x7adf37['getUnitId'](),_0x23441e=this[_0x402eeb(0x1f2)][_0x402eeb(0x163)](_0x3d9ba2);_0x23441e&&(_0x23441e[_0x402eeb(0x2e8)](),this[_0x402eeb(0x1f2)][_0x402eeb(0x1a0)](_0x3d9ba2));});}async[_0x12f7be(0x190)](_0x5b1063){const _0x571974=_0x12f7be,_0x42dd4a=await this[_0x571974(0x104)][_0x571974(0xe3)](_0x5b1063),_0x568719=this[_0x571974(0x213)][_0x571974(0x205)](Be,_0x5b1063,_0x42dd4a);return _0x568719[_0x571974(0x233)](),_0x568719;}async['_startDocCollabCursor'](_0x2776cc){const _0x2e7e5c=_0x12f7be,_0x1a9dbf=await this[_0x2e7e5c(0x104)][_0x2e7e5c(0xe3)](_0x2776cc),_0x1cbb6b=this[_0x2e7e5c(0x213)][_0x2e7e5c(0x205)](xe,_0x2776cc,_0x1a9dbf);return _0x1cbb6b[_0x2e7e5c(0x233)](),_0x1cbb6b;}};H=Wi([Ce(0x0,_0x52d51e),Ce(0x1,_0x3714f8(_0x24a160)),Ce(0x2,_0x3714f8(_0x3c5e90))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3aee98,_0x49d5ca){const _0x1d0fbb=_0x12f7be;let {radius:_0x5109f0,width:_0x22f2b1,height:_0x444189}=_0x49d5ca;_0x5109f0=_0x5109f0!=null?_0x5109f0:0x0,_0x22f2b1=_0x22f2b1!=null?_0x22f2b1:0x1e,_0x444189=_0x444189!=null?_0x444189:0x1e;let _0x77570e=0x0,_0x5b3e8e=0x0,_0x47f795=0x0;_0x77570e=_0x5b3e8e=_0x47f795=Math[_0x1d0fbb(0xf7)](_0x5109f0,_0x22f2b1/0x2,_0x444189/0x2),_0x3aee98[_0x1d0fbb(0xef)](),_0x3aee98['moveTo'](_0x77570e,0x0),_0x3aee98[_0x1d0fbb(0x15b)](_0x22f2b1-_0x5b3e8e,0x0),_0x3aee98[_0x1d0fbb(0x26d)](_0x22f2b1-_0x5b3e8e,_0x5b3e8e,_0x5b3e8e,Math['PI']*0x3/0x2,0x0,!0x1),_0x3aee98[_0x1d0fbb(0x15b)](_0x22f2b1,_0x444189-_0x47f795),_0x3aee98[_0x1d0fbb(0x26d)](_0x22f2b1-_0x47f795,_0x444189-_0x47f795,_0x47f795,0x0,Math['PI']/0x2,!0x1),_0x3aee98['lineTo'](0x0,_0x444189),_0x3aee98[_0x1d0fbb(0x15b)](0x0,_0x77570e),_0x3aee98[_0x1d0fbb(0x26d)](_0x77570e,_0x77570e,_0x77570e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3aee98[_0x1d0fbb(0x20a)](),_0x49d5ca[_0x1d0fbb(0x26a)]&&(_0x3aee98[_0x1d0fbb(0x2f3)](),_0x3aee98['fillStyle']=_0x49d5ca[_0x1d0fbb(0x26a)],_0x49d5ca[_0x1d0fbb(0x263)]===_0x1d0fbb(0xfa)?_0x3aee98[_0x1d0fbb(0x26a)](_0x1d0fbb(0xfa)):_0x3aee98[_0x1d0fbb(0x26a)](),_0x3aee98['restore']());}class ve extends _0x453ad9{constructor(_0x4339b5,_0x1dee56){const _0x50e9af=_0x12f7be;super(_0x4339b5,_0x1dee56),_(this,_0x50e9af(0x126)),_(this,_0x50e9af(0x2ca)),(this[_0x50e9af(0x126)]=_0x1dee56==null?void 0x0:_0x1dee56[_0x50e9af(0x126)],this[_0x50e9af(0x2ca)]=_0x1dee56==null?void 0x0:_0x1dee56[_0x50e9af(0x2ca)]);}static[_0x12f7be(0x2ef)](_0x115982,_0x2d18cd){const _0x407810=_0x12f7be,{text:_0x23d510,color:_0x2d430f}=_0x2d18cd;_0x115982[_0x407810(0x2f3)](),_0x115982[_0x407810(0x1c6)]=_0x407810(0x180);const _0x12632f=_0x115982[_0x407810(0x1f6)](_0x23d510)['width'],_0x3c2e75=Math['min'](_0x12632f+0x2*Re,at);ji(_0x115982,{'height':Q,'radius':0x4,'width':_0x3c2e75,'fill':_0x2d430f}),_0x115982[_0x407810(0x125)]='#FFF';const _0x11674f=Re,_0xa1e2ad=Q-Vi,_0x5b3e88=at-0x2*Re;if(_0x12632f>_0x5b3e88){let _0x30eb8d='',_0x427bd5=0x0;for(const _0x381f56 of _0x23d510){const _0x2deedd=_0x115982[_0x407810(0x1f6)](_0x381f56)['width'];if(_0x427bd5+_0x2deedd<=_0x5b3e88-_0x115982[_0x407810(0x1f6)](_0x407810(0x168))[_0x407810(0x1e2)])_0x30eb8d+=_0x381f56,_0x427bd5+=_0x2deedd;else{_0x30eb8d+=_0x407810(0x168);break;}}_0x115982['fillText'](_0x30eb8d,_0x11674f,_0xa1e2ad);}else _0x115982[_0x407810(0x301)](_0x23d510,_0x11674f,_0xa1e2ad);_0x115982[_0x407810(0x2d0)]();}['_draw'](_0x33daab){const _0x338eda=_0x12f7be;ve[_0x338eda(0x2ef)](_0x33daab,this);}}const De='collab-text-anchor-',Xi='collab-text-range-',Gi=_0x12f7be(0x250),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x12f7be(0x15c);class ct{constructor(_0x2bbc12,_0x3b311e,_0x16ca4d,_0x5edcc1){const _0x38ca3e=_0x12f7be;_(this,_0x38ca3e(0x1a7),[]),_(this,_0x38ca3e(0xbb),null),_(this,_0x38ca3e(0x17f),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x38ca3e(0x29d),null),(this['_cursor']=_0x2bbc12,this['_scene']=_0x3b311e,this['_docSkeleton']=_0x16ca4d,this['_document']=_0x5edcc1,this[_0x38ca3e(0x11d)]());}set[_0x12f7be(0x162)](_0xdc858a){const _0x16beab=_0x12f7be;_0xdc858a?(this[_0x16beab(0x244)]&&this[_0x16beab(0x244)][_0x16beab(0x1f8)](),this[_0x16beab(0x17f)]&&this[_0x16beab(0x17f)][_0x16beab(0xd0)]()):(this['_anchorDot']&&this[_0x16beab(0x244)][_0x16beab(0xd0)](),this[_0x16beab(0x17f)]&&this[_0x16beab(0x17f)]['hide']());}[_0x12f7be(0x2e8)](){const _0x2ebf19=_0x12f7be;for(const _0x1d1e1f of this[_0x2ebf19(0x1a7)])_0x1d1e1f[_0x2ebf19(0x2e8)]();this[_0x2ebf19(0x17f)]&&this[_0x2ebf19(0x17f)]['dispose'](),this['_anchorDot']&&this[_0x2ebf19(0x244)]['dispose'](),this[_0x2ebf19(0xbb)]&&this[_0x2ebf19(0xbb)][_0x2ebf19(0x2e8)](),this[_0x2ebf19(0x29d)]&&this[_0x2ebf19(0x29d)]();}[_0x12f7be(0x11d)](){const _0x342eca=_0x12f7be;var _0x102826;const {_docSkeleton:_0x1618ad,_document:_0x31e27f}=this,{color:_0x4c2c71,name:_0x19f8ad,ranges:_0x1c1a3e}=this[_0x342eca(0x152)],_0x325d15=_0x31e27f[_0x342eca(0x2d8)](),{docsLeft:_0x2f1181,docsTop:_0x36a27f}=_0x325d15,_0x8e8cc8=new _0x5a7e88(_0x325d15,_0x1618ad);for(const {startOffset:_0x35c291,endOffset:_0x24dc14,rangeType:_0x3c7e41,segmentId:_0x400d6e,segmentPage:_0x455cdd,collapsed:_0x3f44fe,isActive:_0xddd5a0}of _0x1c1a3e){const _0xf5391d=_0x1618ad[_0x342eca(0xb5)](_0x35c291,!0x0,_0x400d6e,_0x455cdd);let _0x12f2cf=_0x1618ad[_0x342eca(0xb5)](_0x24dc14,!0x0,_0x400d6e,_0x455cdd);if(_0x12f2cf==null&&(_0x12f2cf=_0x1618ad[_0x342eca(0xb5)](_0x24dc14-0x1,!0x1,_0x400d6e,_0x455cdd)),_0xddd5a0){const {contentBoxPointGroup:_0x1558b5}=_0x8e8cc8[_0x342eca(0x2b8)](_0x12f2cf,_0x12f2cf);if(_0x1558b5[_0x342eca(0x1c8)]===0x0)continue;this['_drawAnchor'](_0x4c2c71,_0x1558b5,_0x2f1181,_0x36a27f,_0x19f8ad),this[_0x342eca(0x29d)]=this[_0x342eca(0x24e)]();}if(_0xf5391d&&_0x12f2cf){if(_0x3c7e41===_0x6ed74f[_0x342eca(0x101)]){const _0x26f9c9=new _0x506f46(_0x325d15,_0x1618ad),{pointGroup:_0x36c61d}=(_0x102826=_0x26f9c9['getRangePointData'](_0xf5391d,_0x12f2cf))!=null?_0x102826:{};if(_0x36c61d==null||_0x36c61d[_0x342eca(0x1c8)]===0x0)continue;this[_0x342eca(0x1cd)](_0x4c2c71,_0x36c61d,_0x2f1181,_0x36a27f);}else{if(!_0x3f44fe){const {borderBoxPointGroup:_0x27e9dc}=_0x8e8cc8[_0x342eca(0x2b8)](_0xf5391d,_0x12f2cf);if(_0x27e9dc[_0x342eca(0x1c8)]===0x0)continue;this['_drawTextRange'](_0x4c2c71,_0x27e9dc,_0x2f1181,_0x36a27f);}}}}}[_0x12f7be(0xc9)](_0x33d5cd,_0x652d4a,_0x15b4ad,_0x291ad7,_0x5b35d4){const _0x55145f=_0x12f7be,_0x279171=this[_0x55145f(0x269)](_0x652d4a),{left:_0x1cc67b,top:_0x4c7f54,height:_0x54a19d}=_0x279171,_0x5e410b=this[_0x55145f(0x2e0)](),_0x3ca605=zi/_0x5e410b,_0x30e121=new _0xf6029d(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7,'height':_0x54a19d,'width':Ki,'fill':_0x33d5cd||_0x51fc9e(_0x5c8de6[_0x55145f(0x16f)],0x0),'strokeWidth':_0x3ca605,'stroke':Ji,'evented':!0x0});this[_0x55145f(0xbb)]=_0x30e121,this[_0x55145f(0x276)][_0x55145f(0x247)](_0x30e121,_0x4df622);const _0xf576c2=new _0xf6029d(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x33d5cd||_0x51fc9e(_0x5c8de6['black'],0x0),'strokeWidth':0x0,'stroke':_0x33d5cd||_0x51fc9e(_0x5c8de6[_0x55145f(0x16f)],0x0),'evented':!0x1});this[_0x55145f(0x244)]=_0xf576c2,this[_0x55145f(0x276)][_0x55145f(0x247)](_0xf576c2,_0x4df622);const _0x22aa12=new ve(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7-Q,'text':_0x5b35d4,'color':_0x33d5cd});this[_0x55145f(0x17f)]=_0x22aa12,this[_0x55145f(0x276)][_0x55145f(0x247)](_0x22aa12,_0x4df622),this['_hover']=!0x1;}[_0x12f7be(0x24e)](){const _0x2ba20a=_0x12f7be,_0x5694f8=this[_0x2ba20a(0xbb)][_0x2ba20a(0x198)]['subscribeEvent'](()=>{const _0x434ee8=_0x2ba20a;this[_0x434ee8(0x162)]=!0x0;}),_0x48e84b=this['_anchor'][_0x2ba20a(0x286)][_0x2ba20a(0x2b5)](()=>{const _0x340860=_0x2ba20a;this[_0x340860(0x2c7)]&&clearTimeout(this[_0x340860(0x2c7)]),this[_0x340860(0x2c7)]=setTimeout(()=>{const _0x508636=_0x340860;this[_0x508636(0x162)]=!0x1;},0x7d0);});return()=>{const _0x337777=_0x2ba20a;_0x5694f8[_0x337777(0x29f)](),_0x48e84b[_0x337777(0x29f)]();};}[_0x12f7be(0x227)](_0x1bd1f2,_0x360670,_0x103b50,_0x179ede){const _0x4e8349=_0x12f7be,_0xe04fb1=new _0x376a8e(_0x1bd1f2)[_0x4e8349(0x308)](0.2)[_0x4e8349(0x1e7)](),_0x369376=new _0x6842e7(Xi+_0x28ef98(z),{'pointsGroup':_0x360670,'fill':_0xe04fb1||_0x51fc9e(_0x5c8de6[_0x4e8349(0x16f)],0.2),'left':_0x103b50,'top':_0x179ede,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4e8349(0x1a7)][_0x4e8349(0x210)](_0x369376),this[_0x4e8349(0x276)][_0x4e8349(0x247)](_0x369376,_0x4df622);}['_drawRectRange'](_0x20860e,_0x25efbe,_0x287e1c,_0xe8ca54){const _0x3582f4=_0x12f7be,_0x4e1d71=new _0x376a8e(_0x20860e)[_0x3582f4(0x308)](0.2)[_0x3582f4(0x1e7)](),_0x2b55d8=new _0x6842e7(Gi+_0x28ef98(z),{'pointsGroup':_0x25efbe,'fill':_0x4e1d71||_0x51fc9e(_0x5c8de6[_0x3582f4(0x16f)],0.2),'left':_0x287e1c,'top':_0xe8ca54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3582f4(0x1a7)][_0x3582f4(0x210)](_0x2b55d8),this[_0x3582f4(0x276)][_0x3582f4(0x247)](_0x2b55d8,_0x4df622);}[_0x12f7be(0x269)](_0x18b3ef){const _0xce881d=_0x18b3ef[0x0],_0x476ae9=_0xce881d[0x0],_0x5b6c1f=_0xce881d[0x2],{x:_0x3ea84a,y:_0x491c69}=_0x476ae9,{x:_0x13e383,y:_0x4389b0}=_0x5b6c1f;return{'left':_0x3ea84a,'top':_0x491c69,'width':_0x13e383-_0x3ea84a,'height':_0x4389b0-_0x491c69};}[_0x12f7be(0x2e0)](){const _0x57e18d=_0x12f7be,{scaleX:_0x38c7b3,scaleY:_0x2a8c29}=this['_scene'][_0x57e18d(0x1b3)]();return Math[_0x57e18d(0xfc)](_0x38c7b3,_0x2a8c29);}}var Zi=Object[_0x12f7be(0x214)],Qi=(_0x3c982c,_0x4a766d,_0x3f0dbd,_0x2c7de9)=>{const _0x49862a=_0x12f7be;for(var _0x41018d=_0x2c7de9>0x1?void 0x0:_0x2c7de9?Zi(_0x4a766d,_0x3f0dbd):_0x4a766d,_0x1c8bd0=_0x3c982c[_0x49862a(0x1c8)]-0x1,_0x49b0bb;_0x1c8bd0>=0x0;_0x1c8bd0--)(_0x49b0bb=_0x3c982c[_0x1c8bd0])&&(_0x41018d=_0x49b0bb(_0x41018d)||_0x41018d);return _0x41018d;},ie=(_0x32a7ba,_0x1df4fd)=>(_0x5e17c5,_0x530bf1)=>_0x1df4fd(_0x5e17c5,_0x530bf1,_0x32a7ba);let Fe=class extends _0x53e01a{constructor(_0xdc8141,_0x22f04d,_0x5de0e6,_0x5226d3,_0x2bea8b){const _0x32c505=_0x12f7be;super(),_(this,_0x32c505(0x123),[]),_(this,_0x32c505(0x145),[]),(this[_0x32c505(0x2a0)]=_0xdc8141,this['_docSkeletonManagerService']=_0x22f04d,this[_0x32c505(0xbd)]=_0x5de0e6,this[_0x32c505(0x21d)]=_0x5226d3,this['_themeService']=_0x2bea8b,this[_0x32c505(0x279)]());}[_0x12f7be(0x279)](){const _0x10e2b4=_0x12f7be,_0x2c449d=this[_0x10e2b4(0x2a0)][_0x10e2b4(0x2a5)],_0x1e28d0=this[_0x10e2b4(0x12a)];this['disposeWithMe'](_0x48aeb3([this[_0x10e2b4(0xbd)][_0x10e2b4(0x2bc)](_0x2c449d),this[_0x10e2b4(0xf4)]['currentTheme$']])[_0x10e2b4(0x1c3)](_0x2da2ce(([_0x313d77,_0x5021cf])=>({'skeleton':_0x1e28d0[_0x10e2b4(0x153)](),'cursors':[..._0x313d77['values']()][_0x10e2b4(0x25c)](_0x144cf1=>({..._0x144cf1,'color':this['_themeService'][_0x10e2b4(0x157)](_0x144cf1[_0x10e2b4(0x126)])}))})))[_0x10e2b4(0x1e6)](_0x114a47=>{const _0x505add=_0x10e2b4;if(this[_0x505add(0x224)](),_0x114a47){const {skeleton:_0x22013d,cursors:_0x3e5174}=_0x114a47;this[_0x505add(0x187)](_0x22013d,_0x3e5174);}})),this[_0x10e2b4(0x25d)](),this[_0x10e2b4(0x1b8)]();}[_0x12f7be(0x187)](_0x2c4bbc,_0x559470){const _0xc2c653=_0x12f7be,{scene:_0x36b2fd,mainComponent:_0x2cc37b}=this[_0xc2c653(0x2a0)],_0xaa9174=_0x559470[_0xc2c653(0x2ae)](_0x182bb9=>new ct(_0x182bb9,_0x36b2fd,_0x2c4bbc,_0x2cc37b));this[_0xc2c653(0x123)]=_0xaa9174,this[_0xc2c653(0x145)]=_0x559470;}[_0x12f7be(0x128)](){const _0x25316b=_0x12f7be;this[_0x25316b(0x224)]();const {scene:_0x333955,mainComponent:_0x2a9c9a}=this[_0x25316b(0x2a0)],_0x4c5ba2=this['_docSkeletonManagerService'][_0x25316b(0x153)](),_0x735c7=this['_cursors'][_0x25316b(0x2ae)](_0xa49286=>new ct(_0xa49286,_0x333955,_0x4c5ba2,_0x2a9c9a));this[_0x25316b(0x123)]=_0x735c7;}[_0x12f7be(0x224)](){const _0x3d3ed1=_0x12f7be;this['_cursorShapes'][_0x3d3ed1(0x275)](_0xf9d58c=>_0xf9d58c['dispose']()),this[_0x3d3ed1(0x123)]=[];}['_initCommandExecutedListener'](){const _0x26a193=_0x12f7be,_0x35ab5a=[_0xea9b01['id']];this[_0x26a193(0x26c)](this['_commandService'][_0x26a193(0x188)](_0x1cc046=>{const _0x13d259=_0x26a193;_0x35ab5a[_0x13d259(0x2b7)](_0x1cc046['id'])&&_0x1cc046['params'][_0x13d259(0x2a5)]===this[_0x13d259(0x2a0)][_0x13d259(0x2a5)]&&this[_0x13d259(0x128)]();}));}[_0x12f7be(0x25d)](){const _0x80680a=_0x12f7be;this['disposeWithMe'](_0x535589(this[_0x80680a(0x2a0)][_0x80680a(0x10d)][_0x80680a(0x306)])[_0x80680a(0x1c3)](_0x57f830(_0x383bc1=>_0x383bc1[_0x80680a(0x16d)]===_0x19edf3['resize']),_0x58940e(0x10))[_0x80680a(0x1e6)](()=>{const _0x577e7e=_0x80680a;this[_0x577e7e(0x128)]();}));}};Fe=Qi([ie(0x1,_0x3714f8(_0x17ec67)),ie(0x2,_0x3714f8(H)),ie(0x3,_0x58f12e),ie(0x4,_0x3714f8(_0x252ee3))],Fe);const qi=0x1,en=1.5;class tn extends _0x453ad9{constructor(_0x469e9e,_0x491617){const _0x118807=_0x12f7be;super(_0x469e9e,_0x491617),_(this,_0x118807(0x231)),_(this,'_hovered',!0x1),_(this,_0x118807(0x1d0)),_(this,_0x118807(0xe7),''),_(this,_0x118807(0xfb),_0x118807(0x144)),_(this,_0x118807(0x1ce)),(_0x491617&&this[_0x118807(0x165)](_0x491617),this[_0x118807(0x198)]['subscribeEvent'](()=>this[_0x118807(0x165)]({'hovered':!0x0})),this[_0x118807(0x286)][_0x118807(0x2b5)](()=>this[_0x118807(0x165)]({'hovered':!0x1})));}[_0x12f7be(0x165)](_0x5eed11){const _0x2d7ac3=_0x12f7be;var _0x10d158,_0x5e068b,_0x1b77e8,_0x1f1cec,_0xe57d23,_0x3bbbbc;this[_0x2d7ac3(0x231)]=(_0x10d158=_0x5eed11[_0x2d7ac3(0x126)])!=null?_0x10d158:this['_color'],this['_hovered']=(_0x5e068b=_0x5eed11[_0x2d7ac3(0x1b9)])!=null?_0x5e068b:this[_0x2d7ac3(0x2d2)],this[_0x2d7ac3(0x1d0)]=(_0x1b77e8=_0x5eed11[_0x2d7ac3(0x1db)])!=null?_0x1b77e8:this[_0x2d7ac3(0x1d0)],this[_0x2d7ac3(0xe7)]=(_0x1f1cec=_0x5eed11['name'])!=null?_0x1f1cec:this[_0x2d7ac3(0xe7)],this[_0x2d7ac3(0xfb)]=(_0xe57d23=_0x5eed11[_0x2d7ac3(0x10f)])!=null?_0xe57d23:this['_labelPosition'],this['_backgroundColor']=(_0x3bbbbc=_0x5eed11[_0x2d7ac3(0x183)])!=null?_0x3bbbbc:this['_backgroundColor'],this[_0x2d7ac3(0xe8)]({'width':_0x5eed11[_0x2d7ac3(0x1e2)],'height':_0x5eed11[_0x2d7ac3(0x230)]});}[_0x12f7be(0x1f0)](_0x1a9af0){const _0x10599f=_0x12f7be,{row:_0x29847e,column:_0x56f2a3}=_0x1a9af0;if(_0x29847e>=this[_0x10599f(0x1d0)]['startRow']&&_0x29847e<=this[_0x10599f(0x1d0)][_0x10599f(0xd9)]&&_0x56f2a3>=this[_0x10599f(0x1d0)][_0x10599f(0x2ac)]&&_0x56f2a3<=this[_0x10599f(0x1d0)][_0x10599f(0x12b)]){this[_0x10599f(0x165)]({'hovered':!0x0});return;}this[_0x10599f(0x165)]({'hovered':!0x1});}['triggerDblclick'](_0x5f581d){return!0x1;}[_0x12f7be(0x1f9)](_0x319326){const _0x4b4af5=_0x12f7be;_0xf6029d[_0x4b4af5(0x2ef)](_0x319326,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4b4af5(0x1ce)]}),this['_hovered']&&(_0x319326['save'](),_0x319326['transform'](0x1,0x0,0x0,0x1,this[_0x4b4af5(0x1e2)],this[_0x4b4af5(0xfb)]===_0x4b4af5(0x10e)?0x0:-Q),ve[_0x4b4af5(0x2ef)](_0x319326,{'text':this['_name'],'color':this[_0x4b4af5(0x231)]}),_0x319326[_0x4b4af5(0x2d0)]());}}var sn=Object[_0x12f7be(0x214)],nn=(_0x8f896b,_0x3719d1,_0x5b33b0,_0x202adf)=>{for(var _0x56eea2=_0x202adf>0x1?void 0x0:_0x202adf?sn(_0x3719d1,_0x5b33b0):_0x3719d1,_0x5364d7=_0x8f896b['length']-0x1,_0x5c7e58;_0x5364d7>=0x0;_0x5364d7--)(_0x5c7e58=_0x8f896b[_0x5364d7])&&(_0x56eea2=_0x5c7e58(_0x56eea2)||_0x56eea2);return _0x56eea2;},be=(_0x2ede4b,_0x1d15dd)=>(_0x188e08,_0x16b534)=>_0x1d15dd(_0x188e08,_0x16b534,_0x2ede4b);const rn=0x1389;let ke=class extends _0x53e01a{constructor(_0x3fdf4c,_0x521dd0,_0x1b06c7,_0x460433){const _0x5ada1d=_0x12f7be;super(),_(this,'_cursors',new Set()),_(this,_0x5ada1d(0x1aa),null),(this[_0x5ada1d(0x2a0)]=_0x3fdf4c,this[_0x5ada1d(0x1dc)]=_0x521dd0,this[_0x5ada1d(0xbd)]=_0x1b06c7,this[_0x5ada1d(0xf4)]=_0x460433,this[_0x5ada1d(0x279)]());}[_0x12f7be(0x279)](){const _0x2d64de=_0x12f7be;this[_0x2d64de(0x1dc)][_0x2d64de(0x117)]['pipe'](_0x5894b4(this[_0x2d64de(0x2a6)]),_0x1fb447(_0x521882=>{const _0x3eb58c=_0x2d64de;if(_0x521882){const _0x243c52=_0x521882[_0x3eb58c(0x1e4)];return _0x48aeb3(this[_0x3eb58c(0xbd)][_0x3eb58c(0x2bc)](this[_0x3eb58c(0x2a0)]['unitId']),this['_themeService'][_0x3eb58c(0x23b)])[_0x3eb58c(0x1c3)](_0x2da2ce(([_0x5d2fcf,_0x14b9f7])=>{const _0x562042=_0x3eb58c,_0x1512cb=new Map();return _0x5d2fcf[_0x562042(0x275)]((_0x12256c,_0x3407e1)=>{const _0x1b3bed=_0x562042;if(_0x12256c[_0x1b3bed(0x18b)]===_0x243c52){const _0x4704f8={..._0x12256c};_0x4704f8[_0x1b3bed(0x126)]=this['_themeService'][_0x1b3bed(0x157)](_0x12256c['color']),_0x1512cb[_0x1b3bed(0x13b)](_0x3407e1,_0x4704f8);}}),{'skeleton':_0x521882,'cursors':_0x1512cb};}));}return _0x1ec186({'skeleton':null,'cursors':new Map()});}))[_0x2d64de(0x1e6)](({skeleton:_0x2dc9fd,cursors:_0x24b770})=>{const _0x47767d=_0x2d64de;this[_0x47767d(0x224)](),_0x2dc9fd&&this['_updateCollabCursors'](_0x2dc9fd,_0x24b770);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2d64de(0x1e6)](_0x395d7f=>{const _0x4954ef=_0x2d64de;if(_0x395d7f==null)return;const {skeleton:_0x1e632a}=_0x395d7f,{scene:_0x2f9b85}=this[_0x4954ef(0x2a0)];_0x2f9b85['onPointerMove$'][_0x4954ef(0x2b5)](_0x5a1035(_0x4f6950=>{const _0x1db003=_0x4954ef;var _0x35fd68,_0x245da1;const {offsetX:_0x48d66f,offsetY:_0x28652e}=_0x4f6950,{x:_0x5defbf,y:_0x136282}=_0x2f9b85['getRelativeToViewportCoord'](_0x20bdbd[_0x1db003(0x1ab)]([_0x48d66f,_0x28652e])),{scaleX:_0x25903d,scaleY:_0x3b72cd}=_0x2f9b85[_0x1db003(0x1b3)](),_0x548156=_0x2f9b85[_0x1db003(0x299)](_0x1db3ff['VIEW_MAIN']),_0x799917=_0x2f9b85[_0x1db003(0x121)](_0x20bdbd['FromArray']([_0x5defbf,_0x136282]),_0x548156),_0x2b4ef8=_0x1e632a[_0x1db003(0x18e)](_0x48d66f,_0x28652e,_0x25903d,_0x3b72cd,_0x799917);((_0x35fd68=this[_0x1db003(0x1aa)])==null?void 0x0:_0x35fd68['column'])===_0x2b4ef8[_0x1db003(0x212)]&&((_0x245da1=this[_0x1db003(0x1aa)])==null?void 0x0:_0x245da1[_0x1db003(0x141)])===_0x2b4ef8[_0x1db003(0x141)]||this[_0x1db003(0x145)][_0x1db003(0x275)](_0x523e2c=>{const _0x105e53=_0x1db003;_0x523e2c[_0x105e53(0x1f0)](_0x2b4ef8);});},0x64));});}[_0x12f7be(0x187)](_0x474e6e,_0x46cf87){const _0x33a201=_0x12f7be;var _0x4a0f6d;const _0x1100e8=(_0x4a0f6d=this[_0x33a201(0x1dc)][_0x33a201(0xf3)]())==null?void 0x0:_0x4a0f6d[_0x33a201(0x11e)];if(!_0x1100e8)return;const _0x182c76=this[_0x33a201(0xc3)]();if(!_0x182c76)return;this[_0x33a201(0x145)][_0x33a201(0x275)](_0x39ce21=>{const _0x4a7221=_0x33a201;_0x39ce21[_0x4a7221(0x240)]();});const {scene:_0x1d2987}=_0x182c76,_0x52915b=on(Array[_0x33a201(0x1cc)](_0x46cf87[_0x33a201(0xd3)]()))[_0x33a201(0x2ae)](_0xf950a=>{const _0x5d37fd=_0x33a201,{color:_0x16522e,range:_0x1b9b2f,name:_0x42dc67,selection:_0x2c70e6,sheetID:_0x79e615}=_0xf950a,{startColumn:_0x37d2f1,startRow:_0x3fa8f7,endColumn:_0x1b9abb,endRow:_0x5f5ae9}=_0x1b9b2f,_0x510594=_0x30bc8b(_0x3fa8f7,_0x37d2f1,_0x1d2987,_0x1100e8),_0x3a6bf4=_0x30bc8b(_0x5f5ae9,_0x1b9abb,_0x1d2987,_0x1100e8),{columnHeaderHeightAndMarginTop:_0xf8ab97}=_0x1100e8,{startX:_0x5f3fb8,startY:_0x3209fa}=_0x510594,{endX:_0x42f35d,endY:_0x37e948}=_0x3a6bf4,_0xf923f4=_0x42f35d-_0x5f3fb8,_0x4b3179=_0x37e948-_0x3209fa,_0x170bad={'labelPosition':_0x3209fa-_0xf8ab97>=Q?_0x5d37fd(0x144):_0x5d37fd(0x10e),'sheetID':_0x79e615,'range':_0x1b9b2f,'color':_0x16522e,'name':_0x42dc67,'selection':_0x2c70e6,'left':_0x5f3fb8,'top':_0x3209fa,'width':_0xf923f4,'height':_0x4b3179,'evented':!0x1,'zIndex':rn};return new tn(_0x42dc67,_0x170bad);});_0x1d2987[_0x33a201(0x2f0)](_0x52915b,qi),this['_cursors']=new Set(_0x52915b);}[_0x12f7be(0x224)](){const _0x5eb5f4=_0x12f7be;var _0x23d51c;(_0x23d51c=this[_0x5eb5f4(0x145)])==null||_0x23d51c['forEach'](_0x4ecf60=>_0x4ecf60[_0x5eb5f4(0x2e8)]());}[_0x12f7be(0xc3)](){const _0x3762dc=_0x12f7be;return _0x5bfd58(this['_context']['unit'],this[_0x3762dc(0x2a0)]);}};ke=nn([be(0x1,_0x3714f8(_0x498a70)),be(0x2,_0x3714f8(H)),be(0x3,_0x3714f8(_0x252ee3))],ke);function on(_0x2a1e0e){const _0x5a32d2=_0x12f7be,_0x5533dc=new Map();return _0x2a1e0e['forEach'](_0x3bfd38=>{const _0x193603=_0x473f;if(_0x5533dc[_0x193603(0x201)](_0x3bfd38[_0x193603(0x172)])){const _0x1bd4bb=_0x5533dc[_0x193603(0x163)](_0x3bfd38[_0x193603(0x172)]);_0x1bd4bb[_0x193603(0x197)]+=',\x20'+_0x3bfd38[_0x193603(0x197)];}else _0x5533dc[_0x193603(0x13b)](_0x3bfd38[_0x193603(0x172)],_0x3bfd38);}),Array[_0x5a32d2(0x1cc)](_0x5533dc[_0x5a32d2(0xd3)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x4f3fe0,_0x4196e0,_0x581c5b,_0x1fe0ff)=>{for(var _0x427ba4=_0x1fe0ff>0x1?void 0x0:_0x1fe0ff?an(_0x4196e0,_0x581c5b):_0x4196e0,_0x4a9526=_0x4f3fe0['length']-0x1,_0x311f44;_0x4a9526>=0x0;_0x4a9526--)(_0x311f44=_0x4f3fe0[_0x4a9526])&&(_0x427ba4=_0x311f44(_0x427ba4)||_0x427ba4);return _0x427ba4;},F=(_0x3779a2,_0x4d97)=>(_0x3e205a,_0x30909e)=>_0x4d97(_0x3e205a,_0x30909e,_0x3779a2);let _e=class extends _0x112363{constructor(_0x29a21b,_0x5296df,_0x2e1037,_0x2e17e3,_0x2c7c59,_0x15bb9a){const _0x28e14c=_0x12f7be;super(),this[_0x28e14c(0x17d)]=_0x29a21b,this[_0x28e14c(0x16c)]=_0x5296df,this[_0x28e14c(0x2c2)]=_0x2e1037,this['_messageService']=_0x2e17e3,this[_0x28e14c(0x13a)]=_0x2c7c59,this[_0x28e14c(0x185)]=_0x15bb9a,this[_0x28e14c(0x229)](),this[_0x28e14c(0x1c1)]();}[_0x12f7be(0x229)](){const _0x539130=_0x12f7be;this['disposeWithMe'](this[_0x539130(0x17d)][_0x539130(0x218)](()=>{const _0x518170=_0x539130;if(this[_0x518170(0x16c)]['saveTaskMap']['size'])return this[_0x518170(0x185)]['t'](_0x518170(0x116));}));}['_initEvent'](){const _0x325a7e=_0x12f7be;this[_0x325a7e(0x26c)](this['_collaborationUIEventService'][_0x325a7e(0x295)]['subscribe'](_0x34c46f=>{const _0x553c5d=_0x325a7e;_0x34c46f['id']===_0x45a0bb['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Warning'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x20b))}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x119)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this['_localeService']['t'](_0x553c5d(0x274))}),_0x34c46f['id']===_0x45a0bb['PERMISSION_DENIED']&&this[_0x553c5d(0x13a)][_0x553c5d(0xd0)]({'title':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x248)),'content':this[_0x553c5d(0x185)]['t']('permission.content'),'type':'error','duration':0x0}),_0x34c46f['id']===_0x45a0bb['CONFLICT']&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Error'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x274))+'('+_0x34c46f[_0x553c5d(0x19f)]+')'}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0xea)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this[_0x553c5d(0x185)]['t'](_0x34c46f[_0x553c5d(0x19f)]||'')}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x2ff)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this['_localeService']['t']('session.will-retry')}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x1a4)]&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x11a)],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0xbe))}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x138)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Error'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x302))});}));}};_e=cn([F(0x0,_0x3e8c86),F(0x1,_0x381fc8),F(0x2,_0x3714f8(_0x4cdc9c)),F(0x3,_0x543869),F(0x4,_0x4d19e9),F(0x5,_0x3714f8(_0x35b6c7))],_e);var _n=Object[_0x12f7be(0x214)],ln=(_0x31e0e0,_0x36202c,_0x1e373f,_0x274243)=>{for(var _0xa14bb5=_0x274243>0x1?void 0x0:_0x274243?_n(_0x36202c,_0x1e373f):_0x36202c,_0x452216=_0x31e0e0['length']-0x1,_0x2e4eea;_0x452216>=0x0;_0x452216--)(_0x2e4eea=_0x31e0e0[_0x452216])&&(_0xa14bb5=_0x2e4eea(_0xa14bb5)||_0xa14bb5);return _0xa14bb5;},ne=(_0x12ff5b,_0x24cd2f)=>(_0xd6d120,_0x1c7e1e)=>_0x24cd2f(_0xd6d120,_0x1c7e1e,_0x12ff5b);let le=class extends _0x112363{constructor(_0xb96125,_0x1b050a,_0x4ab0dd,_0xb75860){const _0x55f0a2=_0x12f7be;super(),_(this,_0x55f0a2(0x14e)),(this['_injector']=_0xb96125,this[_0x55f0a2(0x21e)]=_0x1b050a,this[_0x55f0a2(0x267)]=_0x4ab0dd,this[_0x55f0a2(0x137)]=_0xb75860,this['_init']());}[_0x12f7be(0x279)](){const _0x630713=_0x12f7be;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x630713(0x21b)](),this[_0x630713(0x112)]();}['_initUserListener'](){const _0x4f7182=_0x12f7be;this[_0x4f7182(0x26c)](this['_collaborationSessionService'][_0x4f7182(0x18d)][_0x4f7182(0x1e6)](_0x14b7ed=>{const _0x50451b=_0x4f7182;this[_0x50451b(0x14e)]=_0x14b7ed==null?void 0x0:_0x14b7ed[_0x50451b(0x2ab)];}));}[_0x12f7be(0x20e)](){const _0x1765eb=_0x12f7be,_0xca41a3=_0x25faae=>{const _0x1b281e=_0x473f;var _0x499b51;this[_0x1b281e(0x2db)]('error','[Window\x20Error]:\x20'+_0x25faae['message']+'\x20at\x20'+_0x25faae[_0x1b281e(0x193)]+':'+_0x25faae[_0x1b281e(0x2dc)]+':'+_0x25faae[_0x1b281e(0x1ec)]+'\x0a'+(((_0x499b51=_0x25faae[_0x1b281e(0x2d5)])==null?void 0x0:_0x499b51['stack'])||''));};window[_0x1765eb(0x176)](_0x1765eb(0x2d5),_0xca41a3),this[_0x1765eb(0x26c)](()=>{const _0xf95c38=_0x1765eb;window[_0xf95c38(0x108)](_0xf95c38(0x2d5),_0xca41a3);});}['_initUnhandledRejectionListener'](){const _0xccd62f=_0x12f7be,_0x26a1c6=_0x31dc4f=>{const _0x339fc5=_0x473f;this['_uploadLog'](_0x339fc5(0x2d5),_0x339fc5(0x14a)+_0x31dc4f[_0x339fc5(0x278)]);};window[_0xccd62f(0x176)]('unhandledrejection',_0x26a1c6),this[_0xccd62f(0x26c)](()=>{const _0x5e04cc=_0xccd62f;window['removeEventListener'](_0x5e04cc(0x19e),_0x26a1c6);});}[_0x12f7be(0x21b)](){const _0x2e8bda=_0x12f7be,_0x453deb=this['_logService'][_0x2e8bda(0x2d5)][_0x2e8bda(0x2cd)](this[_0x2e8bda(0x267)]);this[_0x2e8bda(0x267)][_0x2e8bda(0x2d5)]=(..._0xdf2c1b)=>{const _0x79ed29=_0x2e8bda,_0x2bd06f=_0xdf2c1b[_0x79ed29(0x2ae)](_0x4eb929=>_0x4eb929 instanceof Error?_0x4eb929[_0x79ed29(0x2f2)]+'\x0a'+_0x4eb929[_0x79ed29(0x107)]:String(_0x4eb929))['join']('\x20');this[_0x79ed29(0x2db)](_0x79ed29(0x2d5),_0x79ed29(0x252)+_0x2bd06f),_0x453deb(..._0xdf2c1b);},this[_0x2e8bda(0x26c)](()=>{const _0x1a0176=_0x2e8bda;this[_0x1a0176(0x267)][_0x1a0176(0x2d5)]=_0x453deb;});}['_uploadLog'](_0x2edaa5,_0xab946f){const _0x16e7f6=_0x12f7be;try{const _0x29db51={'userId':this[_0x16e7f6(0x14e)],'logLabel':_0x2edaa5,'content':_0xab946f};this['_httpService'][_0x16e7f6(0x2dd)](_0x16e7f6(0x2f4),{'body':_0x29db51})[_0x16e7f6(0x199)](()=>{});}catch{}}};le=ln([ne(0x0,_0x3714f8(_0x24a160)),ne(0x1,_0x3714f8(_0x1ef343)),ne(0x2,_0x36e10f),ne(0x3,_0x3714f8(_0x3c5e90))],le);const hn=_0x12f7be(0x307),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x5f0876,_0x10c066,_0x502c84,_0x3dcc70)=>{const _0x1f9d63=_0x12f7be;for(var _0x44341d=_0x3dcc70>0x1?void 0x0:_0x3dcc70?un(_0x10c066,_0x502c84):_0x10c066,_0x506ede=_0x5f0876[_0x1f9d63(0x1c8)]-0x1,_0x358616;_0x506ede>=0x0;_0x506ede--)(_0x358616=_0x5f0876[_0x506ede])&&(_0x44341d=_0x358616(_0x44341d)||_0x44341d);return _0x44341d;},lt=(_0x9019f7,_0xb03693)=>(_0x30ba7f,_0x3bcf3d)=>_0xb03693(_0x30ba7f,_0x3bcf3d,_0x9019f7);let he=class{constructor(_0x27b924,_0x4bdc54){const _0x5b9a0e=_0x12f7be;this[_0x5b9a0e(0x13c)]=_0x27b924,this[_0x5b9a0e(0x216)]=_0x4bdc54;}['transformIMECache'](_0x106549){const _0x306c82=_0x12f7be;this[_0x306c82(0x1f7)](_0x106549),this[_0x306c82(0x134)](_0x106549);}[_0x12f7be(0x1ee)](_0x2478ba){const _0x3226f8=_0x12f7be,{unitID:_0x43caf5}=_0x2478ba,_0x4e0ea5=this[_0x3226f8(0x216)][_0x3226f8(0x169)](_0x43caf5)['with'](_0x5d750a),{redoCache:_0x4c148b}=_0x4e0ea5[_0x3226f8(0x1c5)]();if(_0x4c148b[_0x3226f8(0x1c8)]===0x0)return _0x2478ba;let _0x4cd3b3=_0x4dbc53['deepClone'](_0x2478ba['mutations'][0x0]);for(let _0x5463be=0x0;_0x5463be<_0x4c148b[_0x3226f8(0x1c8)];_0x5463be++){const _0xa6d89c={'id':_0x3226f8(0x219),'params':{..._0x4c148b[_0x5463be]}},_0xee9f92=this[_0x3226f8(0x13c)][_0x3226f8(0x249)](_0x4cd3b3,_0xa6d89c,!0x1);if(_0x594698(_0xee9f92))throw _0xee9f92['error'];_0x4cd3b3=_0xee9f92[_0x3226f8(0x243)];}return{..._0x4dbc53[_0x3226f8(0x1ed)](_0x2478ba),'mutations':[_0x4cd3b3]};}[_0x12f7be(0x1f7)](_0x165921){const _0x2096e7=_0x12f7be,{unitID:_0x11bd15}=_0x165921,_0x58789b=this[_0x2096e7(0x216)][_0x2096e7(0x169)](_0x11bd15)[_0x2096e7(0xdd)](_0x5d750a),{undoCache:_0x339476,redoCache:_0x123928}=_0x58789b['getUndoRedoMutationParamsCache']();if(_0x339476[_0x2096e7(0x1c8)]===0x0||_0x123928[_0x2096e7(0x1c8)]===0x0)return;const _0x2cb198=[],_0x55ff02=[];let _0x366c06=_0x4dbc53[_0x2096e7(0x1ed)](_0x165921[_0x2096e7(0x283)][0x0]),_0xf3e79a=_0x4dbc53[_0x2096e7(0x1ed)](_0x165921[_0x2096e7(0x283)][0x0]);for(let _0x307564=_0x339476['length']-0x1;_0x307564>=0x0;_0x307564--){const _0x1809da={'id':_0x2096e7(0x219),'params':{..._0x339476[_0x307564]}},_0x1b8a56={'id':_0x2096e7(0x219),'params':{..._0x123928[_0x307564]}},_0x20e528=this[_0x2096e7(0x13c)][_0x2096e7(0x249)](_0x366c06,_0x1809da,!0x1),_0x3337e1=this[_0x2096e7(0x13c)][_0x2096e7(0x249)](_0xf3e79a,_0x1b8a56,!0x1);if(_0x594698(_0x20e528))throw _0x20e528[_0x2096e7(0x2d5)];if(_0x594698(_0x3337e1))throw _0x3337e1[_0x2096e7(0x2d5)];_0x2cb198[_0x2096e7(0x2be)](_0x20e528['m2Prime'][_0x2096e7(0x281)]),_0x55ff02['unshift'](_0x3337e1[_0x2096e7(0x166)][_0x2096e7(0x281)]),_0x366c06=_0x20e528[_0x2096e7(0x243)],_0xf3e79a=_0x3337e1[_0x2096e7(0x243)];}_0x58789b[_0x2096e7(0x26e)]({'undoCache':_0x2cb198,'redoCache':_0x55ff02});}[_0x12f7be(0x134)](_0x46c1c8){const _0x42657f=_0x12f7be,{unitID:_0xf5de53}=_0x46c1c8,_0x38a4be=this['_renderManagerService'][_0x42657f(0x169)](_0xf5de53)[_0x42657f(0xdd)](_0x5d750a),_0x179167=_0x38a4be[_0x42657f(0x282)]();if(_0x179167==null)return;const _0x2caa51=[{'id':_0x42657f(0x219),'params':{'unitId':_0x46c1c8['unitID'],'actions':null,'textRanges':[_0x179167]}}],_0x1d2eba=this[_0x42657f(0x13c)][_0x42657f(0x23a)](_0x46c1c8,_0x2caa51);if(!_0xcbda0(_0x1d2eba))throw _0x1d2eba[_0x42657f(0x2d5)];const _0x570a2b=_0x1d2eba[_0x42657f(0x166)][0x0][_0x42657f(0x281)][_0x42657f(0x2a1)];Array[_0x42657f(0x17c)](_0x570a2b)&&_0x570a2b[_0x42657f(0x1c8)]&&_0x38a4be[_0x42657f(0x27f)](_0x570a2b[0x0]);}};he=dn([lt(0x0,_0x5963ba),lt(0x1,_0x4ae0f1)],he);var Sn=Object[_0x12f7be(0x214)],In=(_0x3e02e4,_0x3a79d3,_0x55c29f,_0x507ad2)=>{const _0x4bd69f=_0x12f7be;for(var _0x530ae8=_0x507ad2>0x1?void 0x0:_0x507ad2?Sn(_0x3a79d3,_0x55c29f):_0x3a79d3,_0x46efc5=_0x3e02e4[_0x4bd69f(0x1c8)]-0x1,_0x3a0c37;_0x46efc5>=0x0;_0x46efc5--)(_0x3a0c37=_0x3e02e4[_0x46efc5])&&(_0x530ae8=_0x3a0c37(_0x530ae8)||_0x530ae8);return _0x530ae8;},Le=(_0x11c01b,_0x186f6f)=>(_0x4f97cd,_0x52aa0a)=>_0x186f6f(_0x4f97cd,_0x52aa0a,_0x11c01b);let ue=class{constructor(_0xd30b61,_0x399990,_0x2ef360){const _0x2da45f=_0x12f7be;this[_0x2da45f(0x213)]=_0xd30b61,this[_0x2da45f(0x13c)]=_0x399990,this[_0x2da45f(0x21c)]=_0x2ef360;}[_0x12f7be(0x129)](_0xfa453f){this['_transformHistoryAndStateStack'](_0xfa453f);}[_0x12f7be(0x1ee)](_0x263bb1){const _0x318359=_0x12f7be,{unitID:_0x2eb311}=_0x263bb1,{collaboration:_0x1c14e5}=this[_0x318359(0x21c)][_0x318359(0x203)](_0x2eb311);if(_0x1c14e5[_0x318359(0x1c8)]===0x0)return _0x263bb1;let _0x12a4c9=_0x4dbc53[_0x318359(0x1ed)](_0x263bb1['mutations'][0x0]);for(let _0x37414d=0x0;_0x37414d<_0x1c14e5[_0x318359(0x1c8)];_0x37414d++){const _0x2cfed9={'id':_0x318359(0x219),'params':{'unitId':_0x1c14e5[_0x37414d][_0x318359(0x2a5)],..._0x1c14e5[_0x37414d][_0x318359(0x222)]}},_0x4dddec=this[_0x318359(0x13c)][_0x318359(0x249)](_0x12a4c9,_0x2cfed9,!0x1);if(_0x594698(_0x4dddec))throw _0x4dddec[_0x318359(0x2d5)];_0x12a4c9=_0x4dddec[_0x318359(0x243)];}return{..._0x4dbc53[_0x318359(0x1ed)](_0x263bb1),'mutations':[_0x12a4c9]};}['_transformHistoryAndStateStack'](_0x3de92a){const _0x59214a=_0x12f7be,{unitID:_0x1108ad}=_0x3de92a,{history:_0x152bea,collaboration:_0x17e332}=this['_docStateChangeManagerService'][_0x59214a(0x203)](_0x1108ad);if(_0x152bea[_0x59214a(0x1c8)]===0x0&&_0x17e332[_0x59214a(0x1c8)]===0x0)return;const _0x49dd62=[],_0x40cc41=[];let _0x3396fa=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]),_0x4983bf=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]);for(let _0x2c6a00=_0x152bea[_0x59214a(0x1c8)]-0x1;_0x2c6a00>=0x0;_0x2c6a00--){const _0x3df78c={'id':_0x59214a(0x219),'params':{'unitId':_0x152bea[_0x2c6a00][_0x59214a(0x2a5)],..._0x152bea[_0x2c6a00][_0x59214a(0x21f)]}},_0x281ef5={'id':_0x59214a(0x219),'params':{'unitId':_0x152bea[_0x2c6a00]['unitId'],..._0x152bea[_0x2c6a00]['redoState']}},_0x52ee79=this[_0x59214a(0x13c)]['transformMutation'](_0x3396fa,_0x3df78c,!0x1),_0x3cdcf1=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x4983bf,_0x281ef5,!0x1);if(_0x594698(_0x52ee79))throw _0x52ee79[_0x59214a(0x2d5)];if(_0x594698(_0x3cdcf1))throw _0x3cdcf1[_0x59214a(0x2d5)];_0x49dd62[_0x59214a(0x2be)]({..._0x152bea[_0x2c6a00],'undoState':_0x52ee79[_0x59214a(0x166)][_0x59214a(0x281)],'redoState':_0x3cdcf1[_0x59214a(0x166)][_0x59214a(0x281)]}),_0x3396fa=_0x52ee79['m1Prime'],_0x4983bf=_0x3cdcf1[_0x59214a(0x243)];}_0x3396fa=_0x4dbc53['deepClone'](_0x3de92a[_0x59214a(0x283)][0x0]),_0x4983bf=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]);for(let _0x361713=_0x17e332[_0x59214a(0x1c8)]-0x1;_0x361713>=0x0;_0x361713--){const _0x36be96={'id':_0x59214a(0x219),'params':{'unitId':_0x17e332[_0x361713][_0x59214a(0x2a5)],..._0x17e332[_0x361713][_0x59214a(0x21f)]}},_0x5ea7d7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x17e332[_0x361713][_0x59214a(0x2a5)],..._0x17e332[_0x361713]['redoState']}},_0xd0fa69=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x3396fa,_0x36be96,!0x1),_0x4b887f=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x4983bf,_0x5ea7d7,!0x1);if(_0x594698(_0xd0fa69))throw _0xd0fa69[_0x59214a(0x2d5)];if(_0x594698(_0x4b887f))throw _0x4b887f[_0x59214a(0x2d5)];_0x40cc41[_0x59214a(0x2be)]({..._0x17e332[_0x361713],'undoState':_0xd0fa69[_0x59214a(0x166)]['params'],'redoState':_0x4b887f[_0x59214a(0x166)][_0x59214a(0x281)]}),_0x3396fa=_0xd0fa69[_0x59214a(0x243)],_0x4983bf=_0x4b887f[_0x59214a(0x243)];}this['_docStateChangeManagerService']['setStateCache'](_0x1108ad,{'history':_0x49dd62,'collaboration':_0x40cc41});}};ue=In([Le(0x0,_0x3714f8(_0x24a160)),Le(0x1,_0x5963ba),Le(0x2,_0x3714f8(_0xc26da3))],ue);var mn=Object[_0x12f7be(0x214)],fn=(_0x3f3f7e,_0x2edcde,_0x145d8a,_0x529887)=>{const _0x367dda=_0x12f7be;for(var _0x2d8789=_0x529887>0x1?void 0x0:_0x529887?mn(_0x2edcde,_0x145d8a):_0x2edcde,_0x4d049f=_0x3f3f7e[_0x367dda(0x1c8)]-0x1,_0xd316c4;_0x4d049f>=0x0;_0x4d049f--)(_0xd316c4=_0x3f3f7e[_0x4d049f])&&(_0x2d8789=_0xd316c4(_0x2d8789)||_0x2d8789);return _0x2d8789;},ht=(_0x163c92,_0x5384ae)=>(_0x14ca04,_0x3f7018)=>_0x5384ae(_0x14ca04,_0x3f7018,_0x163c92);let de=class{constructor(_0x424c82,_0x497d9d){const _0x1245d1=_0x12f7be;this[_0x1245d1(0x213)]=_0x424c82,this['_transformService']=_0x497d9d;}['transformSelections'](_0xbcef2c){const _0x10f1f9=_0x12f7be;var _0x5e0116;const _0x3320ca=this[_0x10f1f9(0x213)][_0x10f1f9(0x163)](_0x299386),_0x15eb4d=(_0x5e0116=_0x3320ca['getDocRanges']())!=null?_0x5e0116:[];if(_0x15eb4d[_0x10f1f9(0x1c8)]===0x0)return;const _0xdc626d=_0xbcef2c['unitID'],_0x2ba872=[{'id':_0x10f1f9(0x219),'params':{'unitId':_0xdc626d,'actions':null,'textRanges':_0x15eb4d}}],_0x593128=this['_transformService']['transformMutationsWithChangeset'](_0xbcef2c,_0x2ba872);if(!_0xcbda0(_0x593128))throw _0x593128[_0x10f1f9(0x2d5)];const _0x566e4e=_0x593128[_0x10f1f9(0x166)][0x0][_0x10f1f9(0x281)][_0x10f1f9(0x2a1)];Array[_0x10f1f9(0x17c)](_0x566e4e)&&_0x566e4e[_0x10f1f9(0x1c8)]&&_0x3320ca[_0x10f1f9(0xcd)](_0x566e4e,{'unitId':_0xdc626d,'subUnitId':_0xdc626d},!0x1);}};de=fn([ht(0x0,_0x3714f8(_0x24a160)),ht(0x1,_0x5963ba)],de);var gn=Object[_0x12f7be(0x214)],En=(_0x45a5ec,_0x2db9c3,_0x2c512e,_0x424e94)=>{const _0x315c84=_0x12f7be;for(var _0x4a3343=_0x424e94>0x1?void 0x0:_0x424e94?gn(_0x2db9c3,_0x2c512e):_0x2db9c3,_0x21cd48=_0x45a5ec[_0x315c84(0x1c8)]-0x1,_0x387eb5;_0x21cd48>=0x0;_0x21cd48--)(_0x387eb5=_0x45a5ec[_0x21cd48])&&(_0x4a3343=_0x387eb5(_0x4a3343)||_0x4a3343);return _0x4a3343;},U=(_0x193549,_0x3c80ca)=>(_0x71adc8,_0x4eda7e)=>_0x3c80ca(_0x71adc8,_0x4eda7e,_0x193549);let Se=class extends _0x112363{constructor(_0xe49b8e,_0x15944b,_0x33a647,_0x55dafd,_0x8efc80,_0xdfde2d,_0x97b20f,_0x2eb510){const _0x840191=_0x12f7be;super(),_(this,_0x840191(0x2ec),new _0x51f523(_0x2a0d66[_0x840191(0x16a)])),(this[_0x840191(0x21c)]=_0xe49b8e,this[_0x840191(0x14d)]=_0x15944b,this[_0x840191(0x2c3)]=_0x33a647,this['_docTransformStateCacheService']=_0x55dafd,this[_0x840191(0x288)]=_0x8efc80,this[_0x840191(0xd7)]=_0xdfde2d,this[_0x840191(0x2cf)]=_0x97b20f,this[_0x840191(0x185)]=_0x2eb510,this['_initEntityListener']());}[_0x12f7be(0x1a8)](){const _0x354a6d=_0x12f7be;this[_0x354a6d(0x26c)](this['_collaborationController'][_0x354a6d(0x1ae)][_0x354a6d(0x1e6)](_0x592938=>{const _0x594547=_0x354a6d,_0xa14781=this[_0x594547(0x21c)][_0x594547(0x29e)][_0x594547(0x1e6)](_0x87ffd7=>{const _0x4d223f=_0x594547;if(_0x87ffd7==null)return;const {unitId:_0xf99837,redoState:_0x684ff9,commandId:_0x3990ca}=_0x87ffd7;if(_0xf99837!==_0x592938[_0x4d223f(0x254)])return;const _0x17e897={'id':_0x3990ca,'type':_0x1de431[_0x4d223f(0x11f)],'params':{'unitId':_0xf99837,'actions':_0x684ff9[_0x4d223f(0x2df)],'textRanges':null}};_0x592938[_0x4d223f(0x1f5)](_0x17e897);});if(_0x592938[_0x594547(0x26c)](_0xa14781),_0x592938 instanceof _0x2f6c55){const _0x4c35e5={'onTransformIME':_0x220025=>this[_0x594547(0x2c3)][_0x594547(0xce)](_0x220025),'onTransformState':_0x3e7dee=>this[_0x594547(0x2f8)]['transformStateCache'](_0x3e7dee),'onTransformSelections':_0x5529d5=>this[_0x594547(0x288)]['transformSelections'](_0x5529d5),'onSyncEditingCollabCursor':_0x574683=>this[_0x594547(0xd7)][_0x594547(0xe2)](_0x574683),'onTransformRemoteChangesetByIMECache':_0x2c4f1d=>this[_0x594547(0x2c3)][_0x594547(0x1ee)](_0x2c4f1d),'onTransformRemoteChangesetByStateCache':_0x149b53=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x149b53)};_0x592938['addHandlerCallback'](_0x4c35e5);}}));}};Se=En([U(0x0,_0x3714f8(_0xc26da3)),U(0x1,_0x3714f8(_0x41819a)),U(0x2,_0x3714f8(he)),U(0x3,_0x3714f8(ue)),U(0x4,_0x3714f8(de)),U(0x5,_0x3714f8(ze)),U(0x6,_0x543869),U(0x7,_0x3714f8(_0x35b6c7))],Se);var Z=(_0x36b731=>(_0x36b731[_0x36b731[_0x12f7be(0xc6)]=0x0]=_0x12f7be(0xc6),_0x36b731[_0x36b731['OK']=0x1]='OK',_0x36b731[_0x36b731[_0x12f7be(0x189)]=0x2]=_0x12f7be(0x189),_0x36b731[_0x36b731['PERMISSION_DENIED']=0x3]=_0x12f7be(0xf8),_0x36b731[_0x36b731[_0x12f7be(0x2a9)]=0x4]=_0x12f7be(0x2a9),_0x36b731[_0x36b731[_0x12f7be(0x25e)]=0x5]=_0x12f7be(0x25e),_0x36b731[_0x36b731[_0x12f7be(0x261)]=0x6]=_0x12f7be(0x261),_0x36b731[_0x36b731[_0x12f7be(0x1fd)]=0x7]=_0x12f7be(0x1fd),_0x36b731[_0x36b731['TOO_MANY_REQUESTS']=0x8]=_0x12f7be(0x28a),_0x36b731[_0x36b731['COMPLETION_FINISHED']=0x9]=_0x12f7be(0xee),_0x36b731[_0x36b731[_0x12f7be(0x2d7)]=0xa]=_0x12f7be(0x2d7),_0x36b731[_0x36b731['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x12f7be(0x114),_0x36b731[_0x36b731[_0x12f7be(0x28f)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x36b731[_0x36b731[_0x12f7be(0x1cb)]=0xd]=_0x12f7be(0x1cb),_0x36b731[_0x36b731['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x12f7be(0x15f),_0x36b731[_0x36b731[_0x12f7be(0x100)]=0xf]=_0x12f7be(0x100),_0x36b731[_0x36b731[_0x12f7be(0x232)]=0x10]=_0x12f7be(0x232),_0x36b731[_0x36b731['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x12f7be(0x22a),_0x36b731[_0x36b731[_0x12f7be(0x12d)]=0x65]=_0x12f7be(0x12d),_0x36b731[_0x36b731[_0x12f7be(0x1d7)]=0xc9]=_0x12f7be(0x1d7),_0x36b731[_0x36b731[_0x12f7be(0x24b)]=0xca]=_0x12f7be(0x24b),_0x36b731[_0x36b731['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x12f7be(0x110),_0x36b731[_0x36b731[_0x12f7be(0x246)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x36b731[_0x36b731[_0x12f7be(0x23c)]=0x1772]=_0x12f7be(0x23c),_0x36b731[_0x36b731[_0x12f7be(0x16e)]=0x1773]=_0x12f7be(0x16e),_0x36b731[_0x36b731['APPLY_REJECT']=0x1b59]=_0x12f7be(0x256),_0x36b731[_0x36b731['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x12f7be(0x1a1),_0x36b731[_0x36b731['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x12f7be(0x1fc),_0x36b731[_0x36b731[_0x12f7be(0xeb)]=0x1b5c]=_0x12f7be(0xeb),_0x36b731[_0x36b731[_0x12f7be(0x24f)]=0x1b5d]=_0x12f7be(0x24f),_0x36b731[_0x36b731[_0x12f7be(0x120)]=0x1f41]=_0x12f7be(0x120),_0x36b731[_0x36b731['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x12f7be(0xec),_0x36b731[_0x36b731['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x36b731[_0x36b731['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x12f7be(0x298),_0x36b731[_0x36b731[_0x12f7be(0x304)]=0x232c]=_0x12f7be(0x304),_0x36b731[_0x36b731[_0x12f7be(0x18a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x36b731[_0x36b731['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x12f7be(0x27e),_0x36b731[_0x36b731['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x12f7be(0xb7),_0x36b731[_0x36b731[_0x12f7be(0x17b)]=0x2713]=_0x12f7be(0x17b),_0x36b731[_0x36b731[_0x12f7be(0x27a)]=0x2714]=_0x12f7be(0x27a),_0x36b731[_0x36b731['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x12f7be(0x28e),_0x36b731[_0x36b731[_0x12f7be(0x118)]=0x271b]=_0x12f7be(0x118),_0x36b731[_0x36b731[_0x12f7be(0x19b)]=0x271c]=_0x12f7be(0x19b),_0x36b731[_0x36b731[_0x12f7be(0x1e9)]=0x271d]=_0x12f7be(0x1e9),_0x36b731[_0x36b731['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x12f7be(0x259),_0x36b731[_0x36b731[_0x12f7be(0xf2)]=0x271f]=_0x12f7be(0xf2),_0x36b731[_0x36b731[_0x12f7be(0x1ff)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x36b731[_0x36b731[_0x12f7be(0x2cb)]=0x2af9]=_0x12f7be(0x2cb),_0x36b731[_0x36b731[_0x12f7be(0x206)]=0x2ee1]=_0x12f7be(0x206),_0x36b731[_0x36b731[_0x12f7be(0x177)]=0x2ee2]=_0x12f7be(0x177),_0x36b731[_0x36b731[_0x12f7be(0x2e5)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x36b731[_0x36b731[_0x12f7be(0x113)]=0x2ee4]=_0x12f7be(0x113),_0x36b731[_0x36b731[_0x12f7be(0x2c4)]=0x2ee5]=_0x12f7be(0x2c4),_0x36b731[_0x36b731['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x12f7be(0x140),_0x36b731[_0x36b731[_0x12f7be(0x2c5)]=0x32ca]=_0x12f7be(0x2c5),_0x36b731[_0x36b731[_0x12f7be(0x2d9)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x36b731[_0x36b731[_0x12f7be(0xb2)]=0x36b1]=_0x12f7be(0xb2),_0x36b731[_0x36b731[_0x12f7be(0x284)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x36b731[_0x36b731[_0x12f7be(0x23f)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x36b731[_0x36b731[_0x12f7be(0x1d4)]=0x36b4]=_0x12f7be(0x1d4),_0x36b731[_0x36b731[_0x12f7be(0x1d3)]=0x36b5]=_0x12f7be(0x1d3),_0x36b731[_0x36b731[_0x12f7be(0x2bf)]=0x36b6]=_0x12f7be(0x2bf),_0x36b731[_0x36b731['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x12f7be(0x15a),_0x36b731[_0x36b731[_0x12f7be(0x106)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x36b731[_0x36b731[_0x12f7be(0x1d1)]=0x3715]=_0x12f7be(0x1d1),_0x36b731[_0x36b731[_0x12f7be(0x105)]=0x3716]=_0x12f7be(0x105),_0x36b731[_0x36b731[_0x12f7be(0x171)]=0x3717]=_0x12f7be(0x171),_0x36b731[_0x36b731['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x12f7be(0x194),_0x36b731[_0x36b731['REDEMPTION_INVALID_CODE']=0x3a99]='REDEMPTION_INVALID_CODE',_0x36b731[_0x36b731[_0x12f7be(0x25a)]=0x3a9a]=_0x12f7be(0x25a),_0x36b731[_0x36b731[_0x12f7be(0x167)]=0x3a9b]=_0x12f7be(0x167),_0x36b731[_0x36b731[_0x12f7be(0xd1)]=0x3a9c]=_0x12f7be(0xd1),_0x36b731[_0x36b731['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x12f7be(0x1cf),_0x36b731[_0x36b731['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x12f7be(0x273),_0x36b731[_0x36b731[_0x12f7be(0xdf)]=0x3a9f]=_0x12f7be(0xdf),_0x36b731[_0x36b731[_0x12f7be(0x2bb)]=0x3e81]=_0x12f7be(0x2bb),_0x36b731[_0x36b731[_0x12f7be(0x28b)]=-0x1]=_0x12f7be(0x28b),_0x36b731))(Z||{});function vn(_0x47b615){const _0x19a7d7=_0x12f7be;var _0x4f39fb,_0x4b3c06;const _0x45cbdc=(_0x4f39fb=_0x47b615[_0x19a7d7(0x1a3)])==null?void 0x0:_0x4f39fb['stage'],_0x111666=((_0x4b3c06=_0x47b615['stageInfo'])==null?void 0x0:_0x4b3c06[_0x19a7d7(0x2f7)])||0x0;return _0x45cbdc===_0x252b95[_0x19a7d7(0x1c9)]&&_0x111666>0x0;}function pn(_0x561e48){const _0x3b0cf1=_0x12f7be;return _0x561e48[_0x3b0cf1(0xb3)]===_0x84f645['SUCCESS'];}var On=Object[_0x12f7be(0x214)],Tn=(_0x44036c,_0x2445d7,_0x50f40f,_0x27ba37)=>{const _0x34f135=_0x12f7be;for(var _0x518bd7=_0x27ba37>0x1?void 0x0:_0x27ba37?On(_0x2445d7,_0x50f40f):_0x2445d7,_0x1b9f88=_0x44036c[_0x34f135(0x1c8)]-0x1,_0x30f650;_0x1b9f88>=0x0;_0x1b9f88--)(_0x30f650=_0x44036c[_0x1b9f88])&&(_0x518bd7=_0x30f650(_0x518bd7)||_0x518bd7);return _0x518bd7;},P=(_0x3c7b4d,_0x4c920d)=>(_0x135467,_0x3124ec)=>_0x4c920d(_0x135467,_0x3124ec,_0x3c7b4d);const Cn=_0x12f7be(0x26b),Rn=_0x12f7be(0x159),Dn=_0x12f7be(0x16b);let Ie=class extends _0x112363{constructor(_0x280164,_0x5a6625,_0x2b68bb,_0x15e80d,_0x16e1c5,_0x4c2505,_0x40a8e2){const _0x109b0a=_0x12f7be;super(),_(this,_0x109b0a(0x15d),null),_(this,_0x109b0a(0x22b),0x0),_(this,_0x109b0a(0x1c2),0x0),_(this,_0x109b0a(0x2ce),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x109b0a(0x2cf)]=_0x280164,this['_commandService']=_0x5a6625,this[_0x109b0a(0x11c)]=_0x2b68bb,this['_httpService']=_0x15e80d,this[_0x109b0a(0x1e0)]=_0x16e1c5,this['_logService']=_0x4c2505,this['_localeService']=_0x40a8e2,this['_initCommandInterceptor']());}[_0x12f7be(0x160)](){const _0xe6945e=_0x12f7be;this[_0xe6945e(0x26c)](this[_0xe6945e(0x21d)][_0xe6945e(0xbc)]((_0x119197,_0x3232ba)=>{const _0x4daaf6=_0xe6945e;var _0x3a50cb;if(_0x119197['id']!==_0x576576['id'])return;const _0x12d63a=_0x119197[_0x4daaf6(0x281)];if(!this[_0x4daaf6(0x2f1)]((_0x3a50cb=_0x12d63a[_0x4daaf6(0x156)])!=null?_0x3a50cb:[]))return;if(!this[_0x4daaf6(0x2c1)]())throw this[_0x4daaf6(0x173)](_0x119197,_0x3232ba),this['_showGuardMessage'](),new _0x24cc76();})),this['disposeWithMe'](this[_0xe6945e(0x21d)]['onCommandExecuted']((_0x124b2a,_0x3c429b)=>{const _0x35037f=_0xe6945e;if(_0x124b2a['id']!==_0x554e96['id'])return;const _0x2218fb=_0x124b2a['params'];if(vn(_0x2218fb)){const _0x515f82=_0x28ef98();this[_0x35037f(0x2ce)]['push'](_0x515f82),this[_0x35037f(0x2d4)](_0x515f82);}else{if(pn(_0x2218fb)&&this[_0x35037f(0x2ce)]['length']>0x0){const _0x4307e2=this[_0x35037f(0x2ce)][_0x35037f(0xb8)]();this['_releaseCalculationLimit'](_0x4307e2);}}}));}[_0x12f7be(0x2e8)](){const _0x494a92=_0x12f7be;super[_0x494a92(0x2e8)](),this[_0x494a92(0x291)](),this[_0x494a92(0x2ce)]=[],this[_0x494a92(0x1c2)]=0x0,this[_0x494a92(0x22b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x12f7be(0x173)](_0x5e3ac5,_0x5d2810){const _0x36ffa9=_0x12f7be;for(let _0x5f2754=0x0;_0x5f2754<0x1e;_0x5f2754++)try{if(await this[_0x36ffa9(0x136)](),this[_0x36ffa9(0x2c1)]()){this[_0x36ffa9(0x122)](_0x5e3ac5,_0x5d2810),this[_0x36ffa9(0x2cf)][_0x36ffa9(0xd0)]({'content':this['_localeService']['t'](_0x36ffa9(0x2d1)),'type':_0x4bbdcc[_0x36ffa9(0x215)]});return;}await new Promise(_0x5d328e=>{this['_pollingInterval']=window['setTimeout'](_0x5d328e,0x3e8);});}catch(_0x1480be){this['_logService']['error'](_0x1480be);}this[_0x36ffa9(0x2cf)][_0x36ffa9(0xd0)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x4bbdcc[_0x36ffa9(0x11a)]});}[_0x12f7be(0x122)](_0x2cb853,_0x4f6bbc){const _0x16eeec=_0x12f7be;try{this[_0x16eeec(0x21d)][_0x16eeec(0x2fd)](_0x2cb853['id'],_0x2cb853[_0x16eeec(0x281)],_0x4f6bbc);}catch(_0x411f72){this[_0x16eeec(0x267)][_0x16eeec(0x2d5)](_0x411f72);}}[_0x12f7be(0x150)](_0x237b0d,_0x42c344){const _0x5a9725=_0x12f7be;_0x42c344<this[_0x5a9725(0x1c4)]||(this[_0x5a9725(0x1c4)]=_0x42c344,this[_0x5a9725(0x22b)]=Number[_0x5a9725(0xd4)](_0x237b0d[_0x5a9725(0x1b6)]),this[_0x5a9725(0x1c2)]=Number[_0x5a9725(0xd4)](_0x237b0d['currentUsage']));}async['_startCalculationLimit'](_0x1972b8){const _0x12b5bb=_0x12f7be;var _0x3a9ba1,_0x3341d3;const _0x148bad=Date[_0x12b5bb(0x23e)]();try{const _0x20860a=((_0x3a9ba1=this[_0x12b5bb(0x11c)][_0x12b5bb(0x221)](_0x3c1c8f))==null?void 0x0:_0x3a9ba1[_0x12b5bb(0x2e7)])||Rn,_0x4bc368=(await this['_httpService'][_0x12b5bb(0x2dd)](_0x20860a,{'body':JSON[_0x12b5bb(0x225)]({'taskId':_0x1972b8})}))[_0x12b5bb(0x115)];if(((_0x3341d3=_0x4bc368[_0x12b5bb(0x2d5)])==null?void 0x0:_0x3341d3[_0x12b5bb(0xfd)])!==Z['OK'])return;this[_0x12b5bb(0x150)](_0x4bc368[_0x12b5bb(0x191)],_0x148bad);}catch(_0x3a2409){this[_0x12b5bb(0x267)][_0x12b5bb(0x2d5)](_0x3a2409);}}async['_getFormulaLimitStatus'](_0x23b1ca){const _0xd2e4e8=_0x12f7be;var _0x1b0184,_0x12bdb0;const _0x3c0326=Date[_0xd2e4e8(0x23e)]();try{const _0x4a20c0=((_0x1b0184=this['_configService'][_0xd2e4e8(0x221)](_0x3c1c8f))==null?void 0x0:_0x1b0184['getformulaLimitStatusUrl'])||Cn,_0x3557cf=_0x23b1ca?_0x4a20c0+_0xd2e4e8(0xd8)+encodeURIComponent(_0x23b1ca):_0x4a20c0,_0x500d51=(await this[_0xd2e4e8(0x21e)][_0xd2e4e8(0x163)](_0x3557cf))[_0xd2e4e8(0x115)];if(((_0x12bdb0=_0x500d51[_0xd2e4e8(0x2d5)])==null?void 0x0:_0x12bdb0[_0xd2e4e8(0xfd)])!==Z['OK'])return;this[_0xd2e4e8(0x150)](_0x500d51[_0xd2e4e8(0x191)],_0x3c0326);}catch(_0x5babe9){this[_0xd2e4e8(0x267)][_0xd2e4e8(0x2d5)](_0x5babe9);}}async[_0x12f7be(0xc2)](_0x2de6c9){const _0x7a6477=_0x12f7be;var _0xa0ba51,_0x122e48;const _0x59c689=Date[_0x7a6477(0x23e)]();try{const _0x11e432=((_0xa0ba51=this[_0x7a6477(0x11c)][_0x7a6477(0x221)](_0x3c1c8f))==null?void 0x0:_0xa0ba51[_0x7a6477(0x2fa)])||Dn,_0x36801a=(await this[_0x7a6477(0x21e)][_0x7a6477(0x2dd)](_0x11e432,{'body':JSON[_0x7a6477(0x225)]({'taskId':_0x2de6c9})}))[_0x7a6477(0x115)];if(((_0x122e48=_0x36801a[_0x7a6477(0x2d5)])==null?void 0x0:_0x122e48[_0x7a6477(0xfd)])!==Z['OK'])return;this[_0x7a6477(0x150)](_0x36801a[_0x7a6477(0x191)],_0x59c689);}catch(_0x44c271){this[_0x7a6477(0x267)][_0x7a6477(0x2d5)](_0x44c271);}}[_0x12f7be(0x2c1)](){const _0x5d968c=_0x12f7be;return this[_0x5d968c(0x22b)]===0x0?!0x0:this[_0x5d968c(0x22b)]-this['_currentUsage']>0x0;}[_0x12f7be(0x291)](){const _0x1a951f=_0x12f7be;this[_0x1a951f(0x15d)]&&(clearTimeout(this[_0x1a951f(0x15d)]),this[_0x1a951f(0x15d)]=null);}[_0x12f7be(0x178)](){const _0x5d068f=_0x12f7be;this[_0x5d068f(0x2cf)]['show']({'content':this[_0x5d068f(0x185)]['t'](_0x5d068f(0x2d6)),'type':_0x4bbdcc[_0x5d068f(0x127)]});}[_0x12f7be(0x2f1)](_0x2de137){const _0x287199=_0x12f7be;for(const _0x1f0364 of _0x2de137){const {unitId:_0x517c09,sheetId:_0x520540,range:_0x1ee6a5}=_0x1f0364,_0x201778=this[_0x287199(0x1e0)][_0x287199(0x1dd)](_0x517c09);if(!_0x201778)continue;const _0x3b2a63=_0x201778[_0x287199(0x1af)](_0x520540);if(!_0x3b2a63)continue;const _0x5a0c27=_0x3b2a63['getCellMatrix']();for(let _0x292b37=_0x1ee6a5[_0x287199(0x2fc)];_0x292b37<=_0x1ee6a5['endRow'];_0x292b37++)for(let _0x20767d=_0x1ee6a5[_0x287199(0x2ac)];_0x20767d<=_0x1ee6a5[_0x287199(0x12b)];_0x20767d++){const _0x35e185=_0x5a0c27['getValue'](_0x292b37,_0x20767d);if(_0x35e185&&(_0x371c6c(_0x35e185['f'])||_0x2bd85a(_0x35e185['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x3714f8(_0x543869)),P(0x1,_0x58f12e),P(0x2,_0x5a741e),P(0x3,_0x3714f8(_0x1ef343)),P(0x4,_0x52d51e),P(0x5,_0x36e10f),P(0x6,_0x3714f8(_0x35b6c7))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x1ebe7b,_0x42ae32,_0x30b24c,_0x501e23)=>{for(var _0x2d5b5f=_0x501e23>0x1?void 0x0:_0x501e23?Nn(_0x42ae32,_0x30b24c):_0x42ae32,_0x2e7fa9=_0x1ebe7b['length']-0x1,_0x357bf4;_0x2e7fa9>=0x0;_0x2e7fa9--)(_0x357bf4=_0x1ebe7b[_0x2e7fa9])&&(_0x2d5b5f=_0x357bf4(_0x2d5b5f)||_0x2d5b5f);return _0x2d5b5f;},Ue=(_0x4020f0,_0x2ff48e)=>(_0x49c0be,_0xd29f02)=>_0x2ff48e(_0x49c0be,_0xd29f02,_0x4020f0);let He=class extends _0x112363{constructor(_0x4d0f2c,_0x20629f,_0x4e2e97){const _0x2f4fa6=_0x12f7be;super(),_(this,_0x2f4fa6(0x24c),new Map()),_(this,_0x2f4fa6(0x220),new Map()),_(this,_0x2f4fa6(0x21a),!0x1),(this[_0x2f4fa6(0x11c)]=_0x4d0f2c,this[_0x2f4fa6(0x1ef)]=_0x20629f,this[_0x2f4fa6(0xc0)]=_0x4e2e97);}[_0x12f7be(0x1b7)](){const _0x3859d3=_0x12f7be;this[_0x3859d3(0x21a)]=!0x0;}[_0x12f7be(0x300)](){const _0xd16f3d=_0x12f7be;this[_0xd16f3d(0x21a)]=!0x1;}get['saveTaskMap'](){const _0x338681=_0x12f7be;return this[_0x338681(0x220)];}[_0x12f7be(0x2e8)](){const _0x50b548=_0x12f7be;this[_0x50b548(0x266)]()['then'](()=>super[_0x50b548(0x2e8)]());}async[_0x12f7be(0x2b0)](_0x4adec4){const _0x36ff92=_0x12f7be;return this[_0x36ff92(0x21a)]?null:this[_0x36ff92(0x1ef)][_0x36ff92(0x1f1)](_0x193170(_0x4adec4));}async[_0x12f7be(0x19c)](_0x83f1ae,_0x163d49){const _0x340c2a=_0x12f7be;return!!this[_0x340c2a(0x1ef)][_0x340c2a(0x1e5)](_0x83f1ae,_0x163d49);}[_0x12f7be(0x12e)](_0x559c3f,_0x5c4c1e,_0x347252,_0x32d01e){const _0x111694=_0x12f7be,_0x19efb7=this[_0x111694(0xc0)][_0x111694(0x2b6)](_0x559c3f);this[_0x111694(0x24c)]['set'](_0x559c3f,{'unitID':_0x559c3f,'type':_0x5c4c1e,'awaitingChangeset':_0x347252,'mutations':_0x32d01e,'rev':_0x19efb7}),this['_saveTaskMap']['has'](_0x559c3f)||this[_0x111694(0xf6)](_0x559c3f);}[_0x12f7be(0xf6)](_0x553ee9){const _0x232c39=_0x12f7be,_0x4aa3d5=this[_0x232c39(0x270)]();_0x4aa3d5===0x0?this[_0x232c39(0x25f)](_0x553ee9):this[_0x232c39(0x220)][_0x232c39(0x13b)](_0x553ee9,setTimeout(()=>this[_0x232c39(0x25f)](_0x553ee9),_0x4aa3d5));}[_0x12f7be(0x270)](){const _0xacd6b0=_0x12f7be;var _0x3b103b;return(_0x3b103b=this[_0xacd6b0(0x11c)][_0xacd6b0(0x221)](_0x1d75b1))!=null?_0x3b103b:_0x41a768;}['_saveCache'](_0x1288f8){const _0x1898b7=_0x12f7be,_0x1170dd=this[_0x1898b7(0x220)]['get'](_0x1288f8);return _0x1170dd!==void 0x0&&window['clearTimeout'](_0x1170dd),this[_0x1898b7(0x1ef)][_0x1898b7(0x1e5)](_0x193170(_0x1288f8),this[_0x1898b7(0x24c)]['get'](_0x1288f8))[_0x1898b7(0x1a6)](()=>this[_0x1898b7(0x220)][_0x1898b7(0x1a0)](_0x1288f8));}async[_0x12f7be(0x266)](){const _0xc39d87=_0x12f7be,_0x51388e=[];this[_0xc39d87(0x220)][_0xc39d87(0x275)]((_0x26c0a2,_0xd26df1)=>{const _0x22bf8c=_0xc39d87;window[_0x22bf8c(0x2c9)](_0x26c0a2),_0x51388e[_0x22bf8c(0x210)](this[_0x22bf8c(0x25f)](_0xd26df1)['then'](()=>{const _0x12f276=_0x22bf8c;this[_0x12f276(0x220)][_0x12f276(0x1a0)](_0xd26df1);}));}),await Promise[_0xc39d87(0xe9)](_0x51388e);}};function _0x919a(){const _0x368be9=['doc.mutation.rich-text-editing','_disabled','_monkeyPatchLogService','_docStateChangeManagerService','_commandService','_httpService','undoState','_saveTaskMap','getConfig','redoState','executionId','_removeCollabCursors','stringify','getTypeOfUnitDisposed$','_drawTextRange','setConfig','_setupBeforeClosingHandler','CURRENT_STATUS_CANNOT_OPERATE','_maxFormulaLimit','_updateLocalCursor','getCurrentSelections','RemoveRowCommandId','_online','height','_color','LOGIN_TOKEN_PROCESSING_FAILED','init','clearInterval','removeParam','origin','history','loadUnit','_entityInit$','transformMutationsWithChangeset','currentTheme$','SNAPSHOT_HAS_BEEN_REMOVED','enableFrontendLog','now','ENTITLE_DUP_SUBSCRIPTION','makeDirty','MoveRangeCommandId','off-line-icon_clip0_910_343','m1Prime','_anchorDot','jiqing.500','SNAPSHOT_INVALID_SNAPSHOT','addObject','permission.title','transformMutation','univer-mr-2\x20univer-flex\x20univer-text-xl','USER_IS_ANONYMOUS','_cachedData','startsWith','_handleHover','APPLY_DUPLICATED','collab-rect-range-','source','[LogService\x20Error]:\x20','_doCreateSocket','unitID','subunit','APPLY_REJECT','_ensureSubject','_syncEditingCollabCursorService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','REDEMPTION_CODE_INACTIVE','on-line-icon_clip0_910_349','flatMap','_initResize','UNAUTHENTICATED','_saveCache','subUnitId','ALREADY_EXISTS','clipPath','fillRule','invokeId','defineProperty','exhaustSavingTask','_logService','UNIVER_SHEET','_getAnchorBounding','fill','/universer-api/license/formula/limit/status','disposeWithMe','arc','setUndoRedoMutationParamsCache','_unitStatus','_getSaveTimeout','defIds','defs','REDEMPTION_USER_REDEEM_TIMES_EXCEED','collaboration.closeRoom','forEach','_scene','getMergeData','reason','_init','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','1FiTLjY','svg','YUUMI_UNABLE_LOAD_URL','setActiveRange','div','params','getActiveRange','mutations','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_handleEvent','onPointerLeave$','parse','_docTransformSelectionsService','runOnServer','TOO_MANY_REQUESTS','UNRECOGNIZED','_scheduleHeartbeat','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_NO_CUBOID_FOR_QUESTION','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','override','_clearPolling','getTypeOfUnitAdded$','getDocRanges','off-line-icon','event$','USERS_LEAVE','collabStatus.conflict','LICENSE_IMPORT_SIZE_EXCEEDED','getViewport','_send','size','onStarting','_eventUnsubscribe','docStateChange$','unsubscribe','_context','textRanges','1em','purple.300','idSuffix','unitId','dispose$','disposeUnit','currentColor','NOT_FOUND','_toggleOnline','memberID','startColumn','_unitOnClients','map','_selfUnitIDs','loadOfflineData','cursorInfo','string','[CollaborationDataLoaderController]','url(#$1','subscribeEvent','getCurrentRevOfUnit','includes','getRangePointData','_onRefRangeChange','_removeClearOtherTimer','DATA_SOURCE_TOO_LARGE','getCollabCursors$','unload','unshift','ENTITLE_COUPON_EXPIRED','activeSheet$','_checkCalculationAvailable','_collaborationUIEventService','_docTransformIMECacheService','INVITE_CODE_ALREADY_BOUND','MOBILE_HAS_BEEN_BOUND','_dataLoaderService','_hideTimer','NO_OTHER_CLIENTS_EDITING','clearTimeout','text','PY_RUNTIME_SCRIPT_ERROR','_config','bind','_taskIds','_messageService','restore','formula.calculation.started','_hovered','round','_startCalculationLimit','error','formula.calculation.waiting','LOGIN_FAILED','getOffsetConfig','EMAIL_HAS_BEEN_BOUND','_updateURLWithCurrentState','_uploadLog','lineno','post','split','actions','_getScale','2954624CVyHFu','sessionTicket','OffLineIcon','getActiveSheet','INVITE_CODE_REQUIRED','collabStatus.offline','startFormulaLimitUrl','dispose','collabStatus.notCollab','http://www.w3.org/2000/svg','getValue','_status$','registerRefRange','roomMembers$','drawWith','addObjects','_hasFormulaInDirtyRanges','message','save','/universer-api/frontend/logs','ONLINE','TEXT','totalFormulasToCalculate','_docTransformStateCacheService','displayName','releaseFormulaLimitUrl','OFFLINE','startRow','executeCommand','collabStatus.fetchMiss','SOCKET_FAILED_RETRY','enableLocalCache','fillText','session.collaboration-timeout','_initStatusComponent','LICENSE_EXPORT_SIZE_EXCEEDED','find','onTransformChange$','collaboration-client-ui.config','setAlpha','_session','tag','ENTITLE_CAN_NOT_BUY_LOWER_OTP','functionsExecutedState','searchParams','findNodePositionByCharIndex','getUnitId','YUUMI_URL_COL_OUT_OF_RANGE','shift','AWAITING_WITH_PENDING','replace','_anchor','beforeCommandExecuted','_collabCursorController','session.connection-failed','InsertColCommandId','_revisionService','UNIVER_DOC','_releaseCalculationLimit','_getSheetObject','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_instanceService','UNDEFINED','0\x200\x2017\x2016','none','_drawAnchor','key','getUnhiddenWorksheets','pushState','replaceDocRanges','transformIMECache','_handleLeaveEvent','show','REDEMPTION_CODE_NOT_STARTED','_colorAssignService','values','parseInt','entries','FETCH_MISS','_docSyncEditingCollabCursorService','?taskId=','endRow','_getMergeRange','getCollabEntity$','roomMembers','with','_clearOtherTimers','REDEMPTION_CODE_HAS_BEEN_CREATED','substring','_handleJoinEvent','syncEditingCollabCursor','requireSession','white','_createSocketURL','next','_name','transformByState','all','JOIN_ROOM_FAILED','APPLY_PERMISSION_DENIED','LICENSE_MAX_UNITS_EXCEEDED','_assignedColors','COMPLETION_FINISHED','beginPath','DeleteRangeMoveLeftCommandId','_uiPartsService','YUUMI_AI_RUN_FAILED','getCurrent','_themeService','replaceState','_scheduleSaving','min','PERMISSION_DENIED','setInterval','evenodd','_labelPosition','max','code','1251812LtSfoM','assignAColorForMemberID','AUTHORIZE_CODE_ILLEGAL','RECT','sessionStatus$','ranges','_collabSessionService','ENTITLE_REPORT_LIMIT_EXCEED','ENTITLE_USE_COUPON_NOT_1ST_TRADE','stack','removeEventListener','runId','15KddQjC','symbol','status$','engine','bottom','labelPosition','CHANGESET_REVISION_CONFILICT','wsSessionTicketUrl','_initUserListener','USER_NOT_INVITED_CODE','MOBILE_VERIFY_CODE_MISMATCH','body','collaboration.offline-data-not-saved','currentSkeleton$','YUUMI_ASYNCIO_CANCELLED','CLOSE_ROOM','Error','_urlService','_configService','_render','skeleton','MUTATION','CONNECTOR_DATA_TOO_LARGE','getVpScrollXYInfoByPosToVp','_applyCommand','_cursorShapes','_colorIndex','fillStyle','color','Loading','_refreshCollabCursors','transformStateCache','_docSkeletonManagerService','endColumn','HEADER_MENU','ERROR_AGAIN','updateOfflineData','some','url(#off-line-icon_clip0_910_343)','671616vvrWhT','unit','_toggleOffline','_transformPreviousActiveRange','location','_getFormulaLimitStatus','_collaborationSessionService','SUBMIT_CHANGESET_TIMEOUT','_id','_notificationService','set','_transformService','blue.400','5854051fGqdjZ','yellow.400','WECHAT_HAS_BEEN_BOUND','row','registerRenderModule','_initDependencies','top','_cursors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getUnitStatus$','_registerRenderDependencies','setParam','[Unhandled\x20Rejection]:\x20','href','UniverIcon','_collaborationController','_memberID','collab-client.tooltip.reconnect','_setFormulaLimitStatus','contains','_cursor','getSkeleton','_cursorInfo$','_roomMembers$','dirtyRanges','getColorFromTheme','_collabCursorState$','/universer-api/license/formula/limit/start','ENTITLE_COUPON_USED_UP','lineTo','rgba(255,\x20255,\x20255,\x200.01)','_pollingInterval','RemoveColCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandInterceptor','green.600','_hover','get','_imageIoService','setShapeProps','m2Prime','REDEMPTION_CODE_FULLY_REDEEMED','...','getRenderById','NOT_COLLAB','/universer-api/license/formula/limit/done','_localCacheService','type','ENSURE_SNAPSHOT_EXECUTION','black','M0\x200H16V16H0z','ENTITLE_INSUFFICIENT_QUOTA','selection','_checkAndWaitForCalculationPermission','registerComponent','eventID','addEventListener','INVALID_INVITE_CODE','_showGuardMessage','_heartbeatTimer','on-line-icon','YUUMI_RATE_OVER_LIMIT','isArray','_beforeCloseService','isEditing','_textBubble','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','InsertRangeMoveRightCommandId','1148952zxehWZ','backgroundColor','getSheetId','_localeService','children','_updateCollabCursors','onCommandExecuted','INTERNAL_ERROR','LICENSE_DISTRO_REJECTED','sheetID','reconnect','socket$','getCellPositionByOffset','/run/','_startSheetCollabCursor','limitInfo','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','filename','ENTITLE_NEED_BILLING_ADDRESS','asObservable','getMemberID','name','onPointerEnter$','catch','search','YUUMI_TABLE_NOT_FOUND_IN_UNIT','saveOfflineData','setTimeout','unhandledrejection','data','delete','APPLY_NON_SEQUENTIAL_REVISION','Failed','stageInfo','SOCKET_FAILED','complete','then','_shapes','_initEntityListener','_updateSubUnitFromURLParams','_lastPointer','FromArray','getParam','add','entityInit$','getSheetBySheetId','collabCursorState$','addClipboardHook','Warning','getAncestorScale','xlink:href','SYNCED','maxFormulaLimit','disableLocalCache','_initCommandExecutedListener','hovered','CONFLICT','colorChannel1','imageSourceType','ticket','_getSessionTicket','98548bEqjop','InsertRangeMoveDownCommandId','_initEvent','_currentUsage','pipe','_lastResponseTimestamp','getUndoRedoMutationParamsCache','font','InsertRowCommandId','length','START_CALCULATION','_scheduleClearOtherTimer','EMAIL_VERIFY_CODE_MISMATCH','from','_drawRectRange','_backgroundColor','REDEMPTION_USER_NOT_ELIGIBLE','_range','ENTITLE_CHAT_LIMIT_EXCEED','send','ENTITLE_INVALID_COUPON_CODE','PAYMENT_CHANNEL_NOT_SUPPORT','cursorInfo$','mask','USER_NOT_FOUND','path','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','attrs','range','_sheetSkeletonManagerService','getUnit','assign','_refRangeService','_univerInstanceService','_handleHeartbeatEvent','width','urlChange$','sheetId','setItem','subscribe','toRgbString','selections','YUUMI_ALL_TABLES_IS_INVALID','OTHER_CLIENTS_EDITING','current','colno','deepClone','transformRemoteChangeset','_localStorageService','onMouseMove','getItem','_entities','_onCursorDelete','_onCursorUpdate','onLocalMutation','measureText','_transformUndoRedoStack','hide','_draw','getMember','10603485feoqdy','APPLY_REVISION_CONFILICT','INVALID_ARGUMENT','DeleteRangeMoveUpCommandId','YUUMI_CONNECTOR_URL_NOT_FOUND','collabStatus.syncing','has','0\x200\x2016\x2016','getStateCache','collabStatus.synced','createInstance','INVITE_CODE_HAS_BEEN_UES','_initStatusListener','_memberService','debug','closePath','collaboration.single-unit.warning','toString','getFocusedUnit','_initWindowErrorListener','trim','push','Unknown\x20user','column','_injector','getOwnPropertyDescriptor','Success','_renderManagerService','isActive','registerBeforeClose'];_0x919a=function(){return _0x368be9;};return _0x919a();}He=bn([Ue(0x0,_0x5a741e),Ue(0x1,_0x5e3c18),Ue(0x2,_0x3714f8(_0x17c8fb))],He);class Ln extends _0x53e01a{constructor(){const _0x4485f4=_0x12f7be;super(),_(this,'urlChange$'),this[_0x4485f4(0x1e3)]=_0x45269d(window,'popstate')['pipe'](_0x4da0bf(this[_0x4485f4(0x2a6)]),_0x528417(0x1),_0x84d373(void 0x0));}['setParam'](_0x2de8e8,_0x1c9659,_0x1217cb=!0x1){const _0x12a812=_0x12f7be,_0x1487e1=new URL(window[_0x12a812(0x135)][_0x12a812(0x14b)]);_0x1487e1['searchParams'][_0x12a812(0x13b)](_0x2de8e8,_0x1c9659),_0x1217cb?window['history'][_0x12a812(0xf5)]('','',_0x1487e1[_0x12a812(0x20c)]()):window[_0x12a812(0x237)][_0x12a812(0xcc)]('','',_0x1487e1[_0x12a812(0x20c)]());}[_0x12f7be(0x235)](_0x23c072,_0x20c627=!0x1){const _0x4c53f9=_0x12f7be,_0x4a0722=new URL(window['location'][_0x4c53f9(0x14b)]);_0x4a0722[_0x4c53f9(0xb4)][_0x4c53f9(0x1a0)](_0x23c072),_0x20c627?window[_0x4c53f9(0x237)][_0x4c53f9(0xf5)]('','',_0x4a0722['toString']()):window[_0x4c53f9(0x237)][_0x4c53f9(0xcc)]('','',_0x4a0722[_0x4c53f9(0x20c)]());}[_0x12f7be(0x1ac)](_0x570f8f){const _0x38f2af=_0x12f7be;var _0x33f254;return(_0x33f254=new URL(window[_0x38f2af(0x135)]['href'])[_0x38f2af(0xb4)][_0x38f2af(0x163)](_0x570f8f))!=null?_0x33f254:void 0x0;}}var Un=Object[_0x12f7be(0x265)],Mn=Object[_0x12f7be(0x214)],An=(_0x23d9e9,_0x2121ab,_0x1737a9)=>_0x2121ab in _0x23d9e9?Un(_0x23d9e9,_0x2121ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1737a9}):_0x23d9e9[_0x2121ab]=_0x1737a9,Pn=(_0x2777e0,_0x163df9,_0x4f4a5c,_0x25e59e)=>{const _0x2a7351=_0x12f7be;for(var _0x4cf423=_0x25e59e>0x1?void 0x0:_0x25e59e?Mn(_0x163df9,_0x4f4a5c):_0x163df9,_0x6a21aa=_0x2777e0[_0x2a7351(0x1c8)]-0x1,_0x45c2ee;_0x6a21aa>=0x0;_0x6a21aa--)(_0x45c2ee=_0x2777e0[_0x6a21aa])&&(_0x4cf423=_0x45c2ee(_0x4cf423)||_0x4cf423);return _0x4cf423;},Me=(_0x54655e,_0x565622)=>(_0x23261d,_0x6c0a4a)=>_0x565622(_0x23261d,_0x6c0a4a,_0x54655e),wn=(_0x2c5d0d,_0x826b00,_0x8eb4ad)=>An(_0x2c5d0d,_0x826b00+'',_0x8eb4ad);const yn=_0x12f7be(0x28d);let Ye=class extends _0x5affa2{constructor(_0x2745df=_t,_0x4c129f,_0x1d6b10,_0x169233){const _0x27002d=_0x12f7be;super(),this[_0x27002d(0x2cc)]=_0x2745df,this[_0x27002d(0x216)]=_0x4c129f,this[_0x27002d(0x213)]=_0x1d6b10,this[_0x27002d(0x11c)]=_0x169233;const {..._0x3fb15a}=_0x537f2b({},_t,this[_0x27002d(0x2cc)]);this['_configService'][_0x27002d(0x228)](hn,_0x3fb15a);}[_0x12f7be(0x29c)](){const _0x480c28=_0x12f7be;this['_registerDependencies'](),this[_0x480c28(0x143)]();}['onRendered'](){const _0x40a492=_0x12f7be;this[_0x40a492(0x148)]();}['_registerDependencies'](){const _0x1cece9=_0x12f7be;var _0x32ef16;const _0x1165f1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x333b75,{'useClass':_0x12b10a}],[_0x381fc8,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1cece9(0x2cc)][_0x1cece9(0x23d)]&&_0x1165f1['push']([le]),_0x358fe2(this['_injector'],_0x2cd5a1(_0x1165f1,(_0x32ef16=this[_0x1cece9(0x2cc)])==null?void 0x0:_0x32ef16[_0x1cece9(0x290)]));}[_0x12f7be(0x148)](){const _0x2bb815=_0x12f7be;this[_0x2bb815(0x26c)](this[_0x2bb815(0x216)][_0x2bb815(0x142)](_0x53cd3e[_0x2bb815(0xc1)],[Fe])),this['disposeWithMe'](this[_0x2bb815(0x216)][_0x2bb815(0x142)](_0x53cd3e[_0x2bb815(0x268)],[ke]));}['_initDependencies'](){_0x48ed1d(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x48ed1d(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x1999b3(_0x2e3618),Me(0x1,_0x4ae0f1),Me(0x2,_0x3714f8(_0x24a160)),Me(0x3,_0x5a741e)],Ye);var $n=Object[_0x12f7be(0x214)],xn=(_0x5ec9b6,_0x1fe9e1,_0x9cd46f,_0x3faac8)=>{const _0x91c725=_0x12f7be;for(var _0x512be1=_0x3faac8>0x1?void 0x0:_0x3faac8?$n(_0x1fe9e1,_0x9cd46f):_0x1fe9e1,_0x2c7d9d=_0x5ec9b6[_0x91c725(0x1c8)]-0x1,_0x83ebc2;_0x2c7d9d>=0x0;_0x2c7d9d--)(_0x83ebc2=_0x5ec9b6[_0x2c7d9d])&&(_0x512be1=_0x83ebc2(_0x512be1)||_0x512be1);return _0x512be1;},J=(_0x571158,_0x4ce604)=>(_0xde1d76,_0x4dc11f)=>_0x4ce604(_0xde1d76,_0x4dc11f,_0x571158);let ut=class extends _0x5012d6{constructor(_0x13d161,_0x4431e2,_0x458750,_0x25fb50,_0x595833){super(_0x13d161,_0x4431e2,_0x458750,_0x25fb50,_0x595833);}async['createSocket'](_0x483e78){const _0x25ca96=_0x12f7be,_0x4f2a64=await this['_getSessionTicket'](),_0x7f1169=this[_0x25ca96(0xe5)](_0x483e78,_0x4f2a64);return this[_0x25ca96(0x253)](_0x7f1169);}['_createSocketURL'](_0x12fa71,_0x112ac3){const _0x48fe54=_0x12f7be,_0x89c491=typeof window>'u'?new URL(_0x12fa71):new URL(_0x12fa71,window[_0x48fe54(0x135)][_0x48fe54(0x236)]);_0x89c491['searchParams'][_0x48fe54(0x13b)](_0x48fe54(0x2e2),_0x112ac3);const _0x3426af=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x48fe54(0x135)][_0x48fe54(0x19a)]);return _0x3426af[_0x48fe54(0x163)](_0x48fe54(0x109))&&_0x89c491['searchParams'][_0x48fe54(0x13b)](_0x48fe54(0x109),_0x3426af['get'](_0x48fe54(0x109))),_0x89c491[_0x48fe54(0x20c)]();}async[_0x12f7be(0x1be)](){const _0x235cd2=_0x12f7be;var _0x2a0c43,_0x3334ff,_0x27ebe5;const _0x5f5f4a=this[_0x235cd2(0x11c)][_0x235cd2(0x221)](_0x3c1c8f),_0x14dcd5=(_0x2a0c43=_0x5f5f4a==null?void 0x0:_0x5f5f4a[_0x235cd2(0x111)])!=null?_0x2a0c43:_0x29d557;return(_0x27ebe5=(_0x3334ff=(await this[_0x235cd2(0x21e)][_0x235cd2(0x163)](_0x14dcd5,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x3334ff[_0x235cd2(0x1bd)])!=null?_0x27ebe5:'';}};ut=xn([J(0x0,_0x3714f8(_0x24a160)),J(0x1,_0x3714f8(_0x1ef343)),J(0x2,_0x5a741e),J(0x3,_0x36e10f),J(0x4,_0x479bb3)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x4b5925,_0x287d9f,_0x12f050,_0x1f0a6c)=>{for(var _0x64dbce=_0x1f0a6c>0x1?void 0x0:_0x1f0a6c?Bn(_0x287d9f,_0x12f050):_0x287d9f,_0x56f37f=_0x4b5925['length']-0x1,_0x2d78a0;_0x56f37f>=0x0;_0x56f37f--)(_0x2d78a0=_0x4b5925[_0x56f37f])&&(_0x64dbce=_0x2d78a0(_0x64dbce)||_0x64dbce);return _0x64dbce;},Ae=(_0x37e7b2,_0x2d03e7)=>(_0x22136d,_0x5f551a)=>_0x2d03e7(_0x22136d,_0x5f551a,_0x37e7b2);let dt=class extends _0x112363{constructor(_0x28eda9,_0x57956c,_0x1b0663){const _0x221382=_0x12f7be;super(),this['_instanceService']=_0x28eda9,this[_0x221382(0x21e)]=_0x57956c,this['_configService']=_0x1b0663;}async[_0x12f7be(0x289)](_0x57130f,_0x4bc9f5,_0x70baf5,..._0x3d2c35){const _0x1aa91f=_0x12f7be;var _0x308634,_0x97a005,_0x3acb34,_0x3cde4a;const _0x276319=this[_0x1aa91f(0xc5)][_0x1aa91f(0x20d)]();if(!_0x276319)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3c73c2=((_0x308634=this[_0x1aa91f(0x11c)]['getConfig'](_0x587df1))!=null?_0x308634:_0x499824)+'/'+_0x57130f+_0x1aa91f(0x18f)+_0x4bc9f5,_0x8c24bd=new URL(window[_0x1aa91f(0x135)][_0x1aa91f(0x14b)]),_0x37ac0c={'scriptId':_0x57130f,'runId':(_0x97a005=_0x8c24bd[_0x1aa91f(0xb4)][_0x1aa91f(0x163)](_0x1aa91f(0x109)))!=null?_0x97a005:'','function':_0x4bc9f5,'unitId':_0x276319[_0x1aa91f(0xb6)](),'argsOfFunction':JSON[_0x1aa91f(0x225)](_0x3d2c35),'invokeId':(_0x3acb34=_0x70baf5[_0x1aa91f(0x264)])!=null?_0x3acb34:'','executionId':(_0x3cde4a=_0x70baf5[_0x1aa91f(0x223)])!=null?_0x3cde4a:''};try{const _0x3930b7=await this[_0x1aa91f(0x21e)]['post'](_0x3c73c2,{'body':_0x37ac0c});return _0x3930b7[_0x1aa91f(0x115)][_0x1aa91f(0x2d5)]&&_0x3930b7['body']['error'][_0x1aa91f(0xfd)]!==Z['OK']?'Failed':_0x3930b7[_0x1aa91f(0x115)]['result'];}catch{return _0x1aa91f(0x1a2);}}};dt=Fn([Ae(0x0,_0x52d51e),Ae(0x1,_0x3714f8(_0x1ef343)),Ae(0x2,_0x5a741e)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x112363{constructor(){const _0x6ac7a8=_0x12f7be;super(),_(this,_0x6ac7a8(0x139),_0x28ef98()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x6ac7a8(0x179),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x6ac7a8(0x26f),new Map()),this['_init']();}[_0x12f7be(0x2e8)](){const _0x5c8468=_0x12f7be;super[_0x5c8468(0x2e8)](),this[_0x5c8468(0xde)][_0x5c8468(0x275)]((_0x229190,_0x2369a4)=>this['_removeClearOtherTimer'](_0x2369a4)),this[_0x5c8468(0x179)]&&window['clearInterval'](this[_0x5c8468(0x179)]);}[_0x12f7be(0x147)](_0x44ddaa){const _0x5e6bf6=_0x12f7be;return this[_0x5e6bf6(0x257)](_0x44ddaa)[_0x5e6bf6(0x1c3)](_0x332830());}['editingUnit'](_0xf0c331){const _0x2ee02c=_0x12f7be;this[_0x2ee02c(0x2af)][_0x2ee02c(0x29b)]===0x0&&this[_0x2ee02c(0x28c)](),this[_0x2ee02c(0x2af)]['add'](_0xf0c331),this['_send']({'type':0x0,'memberID':this[_0x2ee02c(0x139)],'unitIDs':[_0xf0c331],'isForwarded':!0x1});}[_0x12f7be(0x2a7)](_0x4b962b){const _0x53511a=_0x12f7be;this[_0x53511a(0x2af)][_0x53511a(0x1a0)](_0x4b962b),this[_0x53511a(0x2af)][_0x53511a(0x29b)]===0x0&&this['_heartbeatTimer']&&window[_0x53511a(0x234)](this[_0x53511a(0x179)]);}[_0x12f7be(0x279)](){const _0x5016f9=_0x12f7be;this[_0x5016f9(0x26c)](_0x16c8e4(_0x45269d(window,'storage')['subscribe'](_0x2b5c0a=>{const _0x547334=_0x5016f9;if(_0x2b5c0a[_0x547334(0xca)]!==It||!_0x2b5c0a['newValue'])return;const _0xb9fc0=JSON[_0x547334(0x287)](_0x2b5c0a['newValue']);this[_0x547334(0x285)](_0xb9fc0);}))),window[_0x5016f9(0x176)](_0x5016f9(0x2bd),()=>this[_0x5016f9(0x29a)]({'type':0x1,'memberID':this[_0x5016f9(0x139)],'unitIDs':Array[_0x5016f9(0x1cc)](this[_0x5016f9(0x2af)])}));}[_0x12f7be(0x285)](_0x5f563d){const _0x1b5825=_0x12f7be;switch(_0x5f563d[_0x1b5825(0x16d)]){case 0x0:this[_0x1b5825(0xe1)](_0x5f563d);break;case 0x1:this[_0x1b5825(0xcf)](_0x5f563d);break;case 0x2:this[_0x1b5825(0x1e1)](_0x5f563d);break;}}[_0x12f7be(0xe1)](_0x15cda1){const _0x3c1b12=_0x12f7be,{unitIDs:_0x1be19e,memberID:_0x53f9d9,isForwarded:_0x4c6bac}=_0x15cda1;_0x1be19e[_0x3c1b12(0x275)](_0x41c3d2=>{const _0x102b47=_0x3c1b12;if(!_0x4c6bac&&this[_0x102b47(0x2ad)][_0x102b47(0x201)](_0x41c3d2)&&this['_ensureSubject'](_0x41c3d2)[_0x102b47(0xe6)](_0x4d3796[_0x102b47(0x1ea)]),!this[_0x102b47(0x2ad)][_0x102b47(0x201)](_0x41c3d2)||!this['_unitOnClients'][_0x102b47(0x163)](_0x41c3d2)['has'](_0x53f9d9)){const _0x2c8316=this[_0x102b47(0x2ad)]['get'](_0x41c3d2)||new Set();_0x2c8316[_0x102b47(0x1ad)](_0x53f9d9),this[_0x102b47(0x2ad)]['set'](_0x41c3d2,_0x2c8316),this[_0x102b47(0x1ca)](_0x53f9d9);}}),_0x4c6bac||this[_0x3c1b12(0x29a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c1b12(0x2af)]],'isForwarded':!0x0});}[_0x12f7be(0x1ca)](_0x24e921){const _0x45759d=_0x12f7be;this[_0x45759d(0x2ba)](_0x24e921);const _0x5e7438=window[_0x45759d(0x19d)](()=>{const _0x11bfe8=_0x45759d;this[_0x11bfe8(0x2ad)][_0x11bfe8(0x275)](_0x4e3799=>{const _0xb997ce=_0x11bfe8;_0x4e3799[_0xb997ce(0x1a0)](_0x24e921);});},St*0x2);this[_0x45759d(0xde)][_0x45759d(0x13b)](_0x24e921,_0x5e7438);}['_removeClearOtherTimer'](_0x3fb607){const _0x5c4762=_0x12f7be;if(this['_clearOtherTimers'][_0x5c4762(0x201)](_0x3fb607)){const _0x1797b8=this['_clearOtherTimers'][_0x5c4762(0x163)](_0x3fb607);_0x1797b8&&window['clearTimeout'](_0x1797b8),this[_0x5c4762(0xde)][_0x5c4762(0x13b)](_0x3fb607,null);}}[_0x12f7be(0xcf)](_0x220899){const _0x4e4a9e=_0x12f7be,{memberID:_0x843458,unitIDs:_0x47c0b6}=_0x220899;_0x47c0b6['forEach'](_0x334ee0=>{const _0x11a69f=_0x473f;var _0x3e8db5;const _0x389c9c=this[_0x11a69f(0x2ad)][_0x11a69f(0x163)](_0x334ee0);_0x389c9c&&(_0x389c9c[_0x11a69f(0x1a0)](_0x843458),(_0x3e8db5=this[_0x11a69f(0x257)](_0x334ee0))==null||_0x3e8db5[_0x11a69f(0xe6)](_0x389c9c['size']===0x0?_0x4d3796[_0x11a69f(0x2c8)]:_0x4d3796[_0x11a69f(0x1ea)]));}),this[_0x4e4a9e(0x2ba)](_0x843458);}['_handleHeartbeatEvent'](_0x86756b){const _0xbef987=_0x12f7be;this[_0xbef987(0x1ca)](_0x86756b[_0xbef987(0x2ab)]);}[_0x12f7be(0x29a)](_0x46a942){const _0xfa8e1a=_0x12f7be;localStorage[_0xfa8e1a(0x1e5)](It,JSON[_0xfa8e1a(0x225)](_0x46a942));}['_scheduleHeartbeat'](){const _0x6a935=_0x12f7be;this['_heartbeatTimer']=window[_0x6a935(0xf9)](()=>{const _0x6aff8a=_0x6a935;this['_send']({'type':0x2,'memberID':this[_0x6aff8a(0x139)]});},St);}[_0x12f7be(0x257)](_0x499234){const _0x3c2c4d=_0x12f7be;return this[_0x3c2c4d(0x26f)][_0x3c2c4d(0x201)](_0x499234)||this[_0x3c2c4d(0x26f)]['set'](_0x499234,new _0x51f523(_0x4d3796[_0x3c2c4d(0x2c8)])),this['_unitStatus'][_0x3c2c4d(0x163)](_0x499234);}}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 _0x17441=_0x5a49;(function(_0x311a78,_0x1e25bc){const _0x5ace7=_0x5a49,_0x28f027=_0x311a78();while(!![]){try{const _0x4c079b=-parseInt(_0x5ace7(0x223))/0x1+-parseInt(_0x5ace7(0x1e4))/0x2*(-parseInt(_0x5ace7(0x2bf))/0x3)+parseInt(_0x5ace7(0x31b))/0x4*(parseInt(_0x5ace7(0x3ee))/0x5)+parseInt(_0x5ace7(0x24c))/0x6*(parseInt(_0x5ace7(0x400))/0x7)+-parseInt(_0x5ace7(0x284))/0x8+-parseInt(_0x5ace7(0x3b0))/0x9*(-parseInt(_0x5ace7(0x2a5))/0xa)+-parseInt(_0x5ace7(0x24e))/0xb;if(_0x4c079b===_0x1e25bc)break;else _0x28f027['push'](_0x28f027['shift']());}catch(_0x3441a2){_0x28f027['push'](_0x28f027['shift']());}}}(_0xda8c,0xa11a9));var Yt=Object[_0x17441(0x3af)],Wt=(_0x492e5b,_0x2e221a,_0x1f4de7)=>_0x2e221a in _0x492e5b?Yt(_0x492e5b,_0x2e221a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f4de7}):_0x492e5b[_0x2e221a]=_0x1f4de7,_=(_0x487493,_0x2e2064,_0x3b66db)=>Wt(_0x487493,typeof _0x2e2064!=_0x17441(0x418)?_0x2e2064+'':_0x2e2064,_0x3b66db);import{jsx as _0x36930a,jsxs as _0x5884b9}from'react/jsx-runtime';import{CollaborationStatus as _0x5dfcae,CollaborationSessionService as _0x423098,CollaborationController as _0x38930c,DataLoaderService as _0x73657c,MemberService as _0x1250f9,SessionStatus as _0x5fe212,ILocalCacheService as _0x4cad26,CollaborationUIEventService as _0x2e2785,CollaborationUIEventId as _0x259c4a,DocCollaborationEntity as _0x1f0a78,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x40385d,getLocalCacheKey as _0x4ab006,LOCAL_CACHE_INTERVAL as _0x1fbd43,LOCAL_CACHE_INTERVAL_KEY as _0x238b74,UniverCollaborationClientPlugin as _0x3e83e5,CollaborationSocketService as _0x34ecf8,DEFAULT_WS_SESSION_TICKET_URL as _0x2ef114,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x36870b,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x46003c,UnitStatus as _0x3fed34}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x29ab17,IUniverInstanceService as _0x55fada,Inject as _0x52728a,Injector as _0x54baa5,Disposable as _0x5152e2,createIdentifier as _0x44ee77,ILogService as _0x3d294c,ICommandService as _0x38a819,Optional as _0x46e480,RxDisposable as _0x3983c8,Workbook as _0x8e5c05,DOC_RANGE_TYPE as _0x59be1c,debounce as _0x97d37a,Rectangle as _0x3ec7fc,DisposableCollection as _0x31de3f,toDisposable as _0xce90d1,UniverInstanceType as _0x5bd1dc,generateRandomId as _0x19061a,COLORS as _0x24d0be,ColorKit as _0x3077ba,ThemeService as _0x24adad,fromEventSubject as _0x5b3639,Tools as _0x2d5aaf,CommandType as _0x13e38e,IConfigService as _0x341ccd,CanceledError as _0x1ec590,isFormulaString as _0x15e1cc,isFormulaId as _0x1feb23,ILocalStorageService as _0x16882a,DependentOn as _0x19ba42,Plugin as _0x3db8b0,merge as _0x4a47cd,registerDependencies as _0x256da2,mergeOverrideWithDependencies as _0x3259f4,touchDependencies as _0x28b697}from'@univerjs/core';import{useObservable as _0x856abe,useDependency as _0x2cafbd,IUIPartsService as _0x5bd826,BuiltInUIPart as _0x46ef44,connectInjector as _0x22917e,IBeforeCloseService as _0x448cc3,IMessageService as _0x4a1a2a,INotificationService as _0x175601}from'@univerjs/ui';import{BehaviorSubject as _0x1eaaea,switchMap as _0xe943a0,of as _0x2e1bc9,takeUntil as _0x497016,debounceTime as _0x3e56f7,Subject as _0x45036d,filter as _0x5d415e,merge as _0x56525b,combineLatest as _0x2856f5,fromEvent as _0x11182a,shareReplay as _0x2fd4fa,mapTo as _0x30b4e3,distinctUntilChanged as _0x4ba585}from'rxjs';import{Tooltip as _0x7025eb,clsx as _0x211e75,MessageType as _0x1d1199}from'@univerjs/design';import{useRef as _0x20d6da,createElement as _0x55fe7d,forwardRef as _0x303afd,useCallback as _0x520d91}from'react';import{IRemoteInstanceService as _0x532237}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x17f682,RefRangeService as _0x3a9eda,SetSelectionsOperation as _0x69609b,SheetsSelectionsService as _0x3c55f6,EffectRefRangId as _0x22ed62,handleIRemoveRow as _0x28852d,handleIRemoveCol as _0xfbbb6e,handleMoveRange as _0x4a3251,handleInsertRow as _0x39ac36,handleInsertRangeMoveRight as _0x2405c2,handleInsertRangeMoveDown as _0x170ce4,handleInsertCol as _0x1edabd,handleDeleteRangeMoveUp as _0x4084f1,handleDeleteRangeMoveLeft as _0xf28166,runRefRangeMutations as _0x56ce14}from'@univerjs/sheets';import{Shape as _0x2201af,Rect as _0xfc853d,getColor as _0x506237,RegularPolygon as _0x21bd70,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5dd3a2,Vector2 as _0x4aff26,SHEET_VIEWPORT_KEY as _0x38f6bd,IRenderManagerService as _0x3ef114}from'@univerjs/engine-render';import{HTTPService as _0x1c17b1,ISocketService as _0xfdf094,WebSocketService as _0x2f6dc6}from'@univerjs/network';import{IDocClipboardService as _0x4ed688,NodePositionConvertToCursor as _0x2c074d,NodePositionConvertToRectRange as _0x555723,TEXT_RANGE_LAYER_INDEX as _0x18affc,SetDocZoomRatioOperation as _0x4d39a8,DocIMEInputManagerService as _0x17d1c5,DocStateChangeManagerService as _0x379fa4}from'@univerjs/docs-ui';import{IImageIoService as _0x5d2bc2}from'@univerjs/drawing';import{ITransformService as _0x2e9b71,CollaborationEvent as _0x51fb20,isTransformMutationFailure as _0x4a621a,isTransformMutationsWithChangesetSuccess as _0x1c2e6f,RevisionService as _0x34fcd7,ISnapshotServerService as _0x3fb56a}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4b2c3f,RichTextEditingMutation as _0xdbf875,DocSelectionManagerService as _0x1f1d95,DocSkeletonManagerService as _0x44e57b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x212cb7,serializeRangeWithSheet as _0x3e2320,FormulaExecuteStageType as _0x58e767,FormulaExecutedStateType as _0x1c21b0,SetFormulaCalculationStartMutation as _0x38732c,SetFormulaCalculationNotificationMutation as _0x2f2f85}from'@univerjs/engine-formula';import{map as _0x595000,filter as _0x51ff29,throttleTime as _0x1f2676,takeUntil as _0x54819d,switchMap as _0x421e17}from'rxjs/operators';import{SheetSkeletonManagerService as _0x143a1d,getCoordByCell as _0xbf0559,getSheetObject as _0x5d6885}from'@univerjs/sheets-ui';function _0x5a49(_0x196a4f,_0x35eb4c){_0x196a4f=_0x196a4f-0x1d7;const _0xda8c5d=_0xda8c();let _0x5a4992=_0xda8c5d[_0x196a4f];return _0x5a4992;}function Ge({ref:_0x124f89,..._0x21825c}){const _0x300e94=_0x17441,{icon:_0x26cdd1,id:_0x2ae8db,className:_0x5b0377,extend:_0x51954e,..._0xeb9193}=_0x21825c,_0x269e1b=(_0x300e94(0x2f0)+_0x2ae8db+'\x20'+(_0x5b0377||''))[_0x300e94(0x26b)](),_0x4d03d3=_0x20d6da('_'+vi());return At(_0x26cdd1,''+_0x2ae8db,{'defIds':_0x26cdd1[_0x300e94(0x33d)],'idSuffix':_0x4d03d3[_0x300e94(0x1ee)]},{'ref':_0x124f89,'className':_0x269e1b,..._0xeb9193},_0x51954e);}function At(_0x15993b,_0x9719b0,_0x1044ac,_0x96756a,_0x9662d9){const _0x592050=_0x17441;return _0x55fe7d(_0x15993b[_0x592050(0x224)],{'key':_0x9719b0,...gi(_0x15993b,_0x1044ac,_0x9662d9),..._0x96756a},(Ei(_0x15993b,_0x1044ac)['children']||[])[_0x592050(0x2ae)]((_0x3fa640,_0x4156be)=>At(_0x3fa640,_0x9719b0+'-'+_0x15993b[_0x592050(0x224)]+'-'+_0x4156be,_0x1044ac,void 0x0,_0x9662d9)));}function gi(_0x53dbe6,_0x429eb7,_0x4c6df2){const _0x1bd4bd=_0x17441,_0x5d3022={..._0x53dbe6['attrs']};_0x4c6df2!=null&&_0x4c6df2['colorChannel1']&&_0x5d3022[_0x1bd4bd(0x2b8)]==='colorChannel1'&&(_0x5d3022[_0x1bd4bd(0x2b8)]=_0x4c6df2['colorChannel1']),_0x53dbe6[_0x1bd4bd(0x224)]===_0x1bd4bd(0x2ad)&&_0x5d3022['id']&&(_0x5d3022['id']=_0x5d3022['id']+_0x429eb7['idSuffix']),Object[_0x1bd4bd(0x208)](_0x5d3022)[_0x1bd4bd(0x1f0)](([_0x4ed9bc,_0x210fe0])=>{const _0x589261=_0x1bd4bd;_0x4ed9bc==='mask'&&typeof _0x210fe0==_0x589261(0x26e)&&(_0x5d3022[_0x4ed9bc]=_0x210fe0[_0x589261(0x35d)](/url\(#(.*)\)/,'url(#$1'+_0x429eb7[_0x589261(0x243)]+')'));});const {defIds:_0x4c7070}=_0x429eb7;return!_0x4c7070||_0x4c7070[_0x1bd4bd(0x408)]===0x0||(_0x53dbe6[_0x1bd4bd(0x224)]==='use'&&_0x5d3022[_0x1bd4bd(0x3d4)]&&(_0x5d3022[_0x1bd4bd(0x3d4)]=_0x5d3022[_0x1bd4bd(0x3d4)]+_0x429eb7['idSuffix']),Object[_0x1bd4bd(0x208)](_0x5d3022)[_0x1bd4bd(0x1f0)](([_0x1ae662,_0x1ecdf6])=>{const _0x4bd04b=_0x1bd4bd;typeof _0x1ecdf6==_0x4bd04b(0x26e)&&(_0x5d3022[_0x1ae662]=_0x1ecdf6[_0x4bd04b(0x35d)](/url\(#(.*)\)/,_0x4bd04b(0x3f9)+_0x429eb7[_0x4bd04b(0x243)]+')'));})),_0x5d3022;}function Ei(_0x5beef2,_0x139833){const _0x25e0c5=_0x17441;var _0x25d872;const {defIds:_0x2b7935}=_0x139833;return!_0x2b7935||_0x2b7935[_0x25e0c5(0x408)]===0x0?_0x5beef2:_0x5beef2[_0x25e0c5(0x224)]===_0x25e0c5(0x308)&&((_0x25d872=_0x5beef2[_0x25e0c5(0x337)])!=null&&_0x25d872[_0x25e0c5(0x408)])?{..._0x5beef2,'children':_0x5beef2['children'][_0x25e0c5(0x2ae)](_0xd238c8=>typeof _0xd238c8[_0x25e0c5(0x2a3)]['id']=='string'&&_0x2b7935&&_0x2b7935[_0x25e0c5(0x30a)](_0xd238c8[_0x25e0c5(0x2a3)]['id'])?{..._0xd238c8,'attrs':{..._0xd238c8[_0x25e0c5(0x2a3)],'id':_0xd238c8[_0x25e0c5(0x2a3)]['id']+_0x139833[_0x25e0c5(0x243)]}}:_0xd238c8)}:_0x5beef2;}function vi(){const _0x3ba1cb=_0x17441;return Math[_0x3ba1cb(0x203)]()[_0x3ba1cb(0x23a)](0x24)[_0x3ba1cb(0x3d7)](0x2,0x8);}Ge[_0x17441(0x28e)]=_0x17441(0x3bd);const pi={'tag':'svg','attrs':{'xmlns':_0x17441(0x2aa),'fill':_0x17441(0x3b1),'viewBox':_0x17441(0x2a8),'width':_0x17441(0x2fb),'height':_0x17441(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x17441(0x210)},'children':[{'tag':_0x17441(0x254),'attrs':{'stroke':_0x17441(0x23c),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x17441(0x2bd),'strokeLinejoin':_0x17441(0x2bd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x17441(0x296)},'children':[{'tag':_0x17441(0x254),'attrs':{'fill':'white','d':_0x17441(0x2bc)}}]}]}],'defIds':[_0x17441(0x296)]},Pt=_0x303afd(function(_0x4a2faa,_0x58e8fc){const _0x2bb057=_0x17441;return _0x55fe7d(Ge,Object[_0x2bb057(0x2b3)]({},_0x4a2faa,{'id':_0x2bb057(0x237),'ref':_0x58e8fc,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':_0x17441(0x29d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x17441(0x2fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x17441(0x327)},'children':[{'tag':_0x17441(0x254),'attrs':{'stroke':_0x17441(0x23c),'d':_0x17441(0x36f),'strokeLinecap':_0x17441(0x2bd),'strokeLinejoin':_0x17441(0x2bd),'strokeWidth':1.2}}]},{'tag':_0x17441(0x308),'attrs':{},'children':[{'tag':_0x17441(0x351),'attrs':{'id':_0x17441(0x24d)},'children':[{'tag':_0x17441(0x254),'attrs':{'fill':_0x17441(0x3d0),'d':_0x17441(0x2bc),'transform':_0x17441(0x309)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x303afd(function(_0x587362,_0x367079){const _0x609d82=_0x17441;return _0x55fe7d(Ge,Object[_0x609d82(0x2b3)]({},_0x587362,{'id':_0x609d82(0x289),'ref':_0x367079,'icon':Oi}));});wt[_0x17441(0x28e)]=_0x17441(0x37d);function Ti(_0x77187e){const _0x2f9940=_0x17441;switch(_0x77187e){case _0x5dfcae[_0x2f9940(0x3f5)]:return'collabStatus.offline';case _0x5dfcae[_0x2f9940(0x27c)]:return _0x2f9940(0x31e);case _0x5dfcae[_0x2f9940(0x3b8)]:return _0x2f9940(0x2e1);case _0x5dfcae[_0x2f9940(0x354)]:return _0x2f9940(0x365);case _0x5dfcae[_0x2f9940(0x229)]:case _0x5dfcae[_0x2f9940(0x1de)]:return'collabStatus.syncing';case _0x5dfcae[_0x2f9940(0x40a)]:case _0x5dfcae['PENDING']:return _0x2f9940(0x369);}}function Ci(_0x7cd981){const _0x127364=_0x17441,{status$:_0xbfe227}=_0x7cd981,_0x4cb840=_0x856abe(_0xbfe227,_0x5dfcae['NOT_COLLAB']),_0x38d029=_0x2cafbd(_0x29ab17),_0x59e3e1=_0x2cafbd(_0x423098),_0xa187ca=_0x4cb840!==_0x5dfcae[_0x127364(0x3f5)],_0x57efc4=_0x38d029['t'](Ti(_0x4cb840)),_0x2143d=_0xa187ca?_0x36930a(wt,{}):_0x36930a(Pt,{}),_0x39477c=_0x520d91(()=>{_0xa187ca||_0x59e3e1['reconnect']();},[_0xa187ca,_0x59e3e1]);function _0x162815(){const _0x58b401=_0x127364;return _0x5884b9('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x39477c,'children':[_0x36930a(_0x58b401(0x213),{'className':_0x211e75('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0xa187ca,'univer-text-red-500':!_0xa187ca}),'children':_0x2143d}),_0x36930a(_0x58b401(0x213),{'className':_0x58b401(0x2ed),'children':_0x57efc4})]});}return _0xa187ca?_0x162815():_0x36930a(_0x7025eb,{'title':_0x38d029['t'](_0x127364(0x228)),'children':_0x162815()});}var Ri=Object[_0x17441(0x421)],Di=(_0x29fb63,_0xcfbc39,_0x4768b4,_0x472574)=>{for(var _0x1234e1=_0x472574>0x1?void 0x0:_0x472574?Ri(_0xcfbc39,_0x4768b4):_0xcfbc39,_0x1e1d5c=_0x29fb63['length']-0x1,_0x40d6ef;_0x1e1d5c>=0x0;_0x1e1d5c--)(_0x40d6ef=_0x29fb63[_0x1e1d5c])&&(_0x1234e1=_0x40d6ef(_0x1234e1)||_0x1234e1);return _0x1234e1;},se=(_0x58f63f,_0x5ef1df)=>(_0x39e384,_0x3051d3)=>_0x5ef1df(_0x39e384,_0x3051d3,_0x58f63f);let ae=class extends _0x5152e2{constructor(_0x51292e,_0x5619ef,_0xb9876c,_0x523be6){const _0x58781b=_0x17441;super(),_(this,_0x58781b(0x28b),new _0x1eaaea(_0x5dfcae[_0x58781b(0x354)])),(this[_0x58781b(0x41e)]=_0x51292e,this[_0x58781b(0x3ab)]=_0x5619ef,this[_0x58781b(0x290)]=_0xb9876c,this[_0x58781b(0x3eb)]=_0x523be6,this[_0x58781b(0x1ea)](),this[_0x58781b(0x23d)]());}[_0x17441(0x23d)](){const _0x23c852=_0x17441;this[_0x23c852(0x380)](this[_0x23c852(0x41e)][_0x23c852(0x298)][_0x23c852(0x38a)](_0xe943a0(()=>{const _0x34d706=_0x23c852,_0x5910a1=this[_0x34d706(0x41e)]['getFocusedUnit']();return _0x5910a1?this[_0x34d706(0x290)][_0x34d706(0x3ae)](_0x5910a1[_0x34d706(0x211)]()):_0x2e1bc9(null);}),_0xe943a0(_0x54813e=>_0x54813e?_0x54813e[_0x23c852(0x2dc)]:_0x2e1bc9(_0x5dfcae['NOT_COLLAB'])))[_0x23c852(0x404)](_0x37bc64=>{const _0x55294c=_0x23c852;this[_0x55294c(0x28b)][_0x55294c(0x3a2)](_0x37bc64);}));}[_0x17441(0x1ea)](){const _0xc36d3d=_0x17441;this[_0xc36d3d(0x380)](this['_uiPartsService'][_0xc36d3d(0x330)](_0x46ef44['HEADER_MENU'],()=>_0x22917e(Ni({'status$':this[_0xc36d3d(0x28b)][_0xc36d3d(0x342)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x55fada),se(0x1,_0x52728a(_0x54baa5)),se(0x2,_0x52728a(_0x38930c)),se(0x3,_0x5bd826)],ae);function Ni(_0x424454){const {status$:_0xa84762}=_0x424454;return function(){return _0x36930a(Ci,{'status$':_0xa84762});};}const yt=_0x44ee77(_0x17441(0x3bb));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x26a433,_0x28bfaa,_0x582add,_0x319790)=>{for(var _0x4d328b=_0x319790>0x1?void 0x0:_0x319790?bi(_0x28bfaa,_0x582add):_0x28bfaa,_0x16951a=_0x26a433['length']-0x1,_0xac0fe8;_0x16951a>=0x0;_0x16951a--)(_0xac0fe8=_0x26a433[_0x16951a])&&(_0x4d328b=_0xac0fe8(_0x4d328b)||_0x4d328b);return _0x4d328b;},K=(_0x578a30,_0x940b61)=>(_0x2ce1f6,_0x51d77b)=>_0x940b61(_0x2ce1f6,_0x51d77b,_0x578a30);let ce=class extends _0x3983c8{constructor(_0x32103d,_0x4c418e,_0x2d41b5,_0xf07d99,_0xa0d73b){const _0x5d19f0=_0x17441;super(),this['_urlService']=_0x32103d,this[_0x5d19f0(0x34b)]=_0x4c418e,this['_commandService']=_0x2d41b5,this[_0x5d19f0(0x2d2)]=_0xf07d99,_0xa0d73b?_0xa0d73b==null||_0xa0d73b[_0x5d19f0(0x3b9)]()[_0x5d19f0(0x3d9)](()=>this[_0x5d19f0(0x21e)]()):(this[_0x5d19f0(0x34b)]['debug']('[CollaborationDataLoaderController]',_0x5d19f0(0x217)),this[_0x5d19f0(0x21e)]());}async[_0x17441(0x21e)](){const _0xe8d5ad=_0x17441,_0x119370=this[_0xe8d5ad(0x219)]['getParam'](_0xe8d5ad(0x350)),_0x387982=this[_0xe8d5ad(0x219)][_0xe8d5ad(0x364)]('type'),_0x4983fb=this[_0xe8d5ad(0x219)][_0xe8d5ad(0x364)]('subunit');if(!_0x119370||!_0x387982){this[_0xe8d5ad(0x34b)]['debug']('[CollaborationDataLoaderController]',_0xe8d5ad(0x285));return;}const _0x320ced=await this['_dataLoaderService'][_0xe8d5ad(0x214)](_0x119370,Number(_0x387982),_0x4983fb);_0x320ced&&_0x320ced instanceof _0x8e5c05&&this[_0xe8d5ad(0x360)](_0x320ced);}async[_0x17441(0x360)](_0xd4fa85){const _0x2ee22f=_0x17441;await this['_updateSubUnitFromURLParams'](_0xd4fa85),_0xd4fa85['activeSheet$'][_0x2ee22f(0x38a)](_0x497016(this['dispose$']))['subscribe'](_0x352db6=>{_0x352db6&&this['_updateURLWithCurrentState'](_0x352db6);}),this[_0x2ee22f(0x219)][_0x2ee22f(0x2df)]['pipe'](_0x497016(this[_0x2ee22f(0x1e3)]))[_0x2ee22f(0x404)](()=>this[_0x2ee22f(0x3e0)](_0xd4fa85));}[_0x17441(0x236)](_0x40f2b1,_0x1cb63d=!0x1){const _0x21d52f=_0x17441,_0x2d13d3=this[_0x21d52f(0x219)][_0x21d52f(0x364)](_0x21d52f(0x2fe));_0x40f2b1[_0x21d52f(0x2f6)]()!==_0x2d13d3&&this[_0x21d52f(0x219)][_0x21d52f(0x34a)](_0x21d52f(0x2fe),_0x40f2b1[_0x21d52f(0x2f6)](),_0x1cb63d);}async['_updateSubUnitFromURLParams'](_0x1d6f8c){const _0x1f2fb7=_0x17441;var _0x5e62b5;const _0x35d105=this[_0x1f2fb7(0x219)][_0x1f2fb7(0x364)](_0x1f2fb7(0x2fe));if(!_0x35d105||!_0x1d6f8c[_0x1f2fb7(0x338)](_0x35d105)){const _0x4a1e4e=_0x1d6f8c[_0x1f2fb7(0x2de)]()[0x0],_0x34b576=_0x1d6f8c[_0x1f2fb7(0x338)](_0x4a1e4e);if(!_0x34b576)return;this[_0x1f2fb7(0x236)](_0x34b576,!0x0),await this[_0x1f2fb7(0x419)][_0x1f2fb7(0x3e7)](_0x17f682['id'],{'unitId':_0x1d6f8c['getUnitId'](),'subUnitId':_0x4a1e4e});return;}((_0x5e62b5=_0x1d6f8c[_0x1f2fb7(0x274)]())==null?void 0x0:_0x5e62b5['getSheetId']())!==_0x35d105&&await this[_0x1f2fb7(0x419)][_0x1f2fb7(0x3e7)](_0x17f682['id'],{'unitId':_0x1d6f8c['getUnitId'](),'subUnitId':_0x35d105});}};ce=Li([K(0x0,yt),K(0x1,_0x3d294c),K(0x2,_0x38a819),K(0x3,_0x52728a(_0x73657c)),K(0x4,_0x46e480(_0x532237))],ce);var Ui=Object[_0x17441(0x421)],Mi=(_0x4d7c91,_0x189f4a,_0x2f2d9f,_0xda7728)=>{const _0x51486e=_0x17441;for(var _0x15867d=_0xda7728>0x1?void 0x0:_0xda7728?Ui(_0x189f4a,_0x2f2d9f):_0x189f4a,_0x5aa1c6=_0x4d7c91[_0x51486e(0x408)]-0x1,_0x7b1144;_0x5aa1c6>=0x0;_0x5aa1c6--)(_0x7b1144=_0x4d7c91[_0x5aa1c6])&&(_0x15867d=_0x7b1144(_0x15867d)||_0x15867d);return _0x15867d;},rt=(_0x48ea8d,_0xd0050b)=>(_0x5a34a7,_0x838344)=>_0xd0050b(_0x5a34a7,_0x838344,_0x48ea8d);let $e=class extends _0x3983c8{constructor(_0x643b2e,_0x2b703f){const _0x59a45a=_0x17441;super(),this[_0x59a45a(0x25a)]=_0x643b2e,this[_0x59a45a(0x2e3)]=_0x2b703f,this['_init']();}[_0x17441(0x21e)](){const _0x5f1e07=_0x17441,_0x2ff939=this;this['disposeWithMe'](this[_0x5f1e07(0x25a)][_0x5f1e07(0x2cf)]({'onBeforePasteImage':async _0x321fb0=>{const _0x129ec8=_0x5f1e07,_0x31be87=await _0x2ff939[_0x129ec8(0x2e3)]['saveImage'](_0x321fb0);return _0x31be87?{'source':_0x31be87[_0x129ec8(0x1e9)],'imageSourceType':_0x31be87['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x4ed688),rt(0x1,_0x5d2bc2)],$e);const ot=['purple.300',_0x17441(0x393),'green.600',_0x17441(0x3b3),'blue.400',_0x17441(0x293)];class Ke extends _0x5152e2{constructor(){const _0x36e40c=_0x17441;super(...arguments),_(this,_0x36e40c(0x315),new Map()),_(this,_0x36e40c(0x29e),0x0);}[_0x17441(0x304)](_0x5aa754){const _0x4acfda=_0x17441;if(this[_0x4acfda(0x315)]['has'](_0x5aa754))return this[_0x4acfda(0x315)][_0x4acfda(0x2ef)](_0x5aa754);const _0x1f2fdb=ot[this[_0x4acfda(0x29e)]];return this[_0x4acfda(0x29e)]=(this[_0x4acfda(0x29e)]+0x1)%ot[_0x4acfda(0x408)],this[_0x4acfda(0x315)][_0x4acfda(0x397)](_0x5aa754,_0x1f2fdb),_0x1f2fdb;}}function $t(_0x1b84bf){const _0x41663c=_0x17441;let _0x464939='';for(const _0xbaecd0 of _0x1b84bf){const {startOffset:_0x1996da,endOffset:_0x498c4f,isActive:_0x13ecba,rangeType:_0x453090,segmentId:_0x3c0e14,segmentPage:_0x561f77}=_0xbaecd0;_0x464939[_0x41663c(0x408)]&&(_0x464939+=','),_0x464939+=_0x1996da+':'+_0x498c4f+':'+(_0x13ecba?'1':'0')+':'+_0x453090+':'+_0x3c0e14+':'+_0x561f77;}return _0x464939;}function Ai(_0x522f70){const _0xbac337=_0x17441,_0x342de1=_0x522f70[_0xbac337(0x251)](','),_0x1aca32=[];for(const _0x24ea49 of _0x342de1){const [_0x4c78d2,_0x5282f2,_0x2807c2,_0xeb55a4,_0x487515,_0x518955]=_0x24ea49[_0xbac337(0x251)](':');_0x1aca32[_0xbac337(0x216)]({'startOffset':Number(_0x4c78d2),'endOffset':Number(_0x5282f2),'collapsed':_0x4c78d2===_0x5282f2,'isActive':_0x2807c2==='1','rangeType':_0xeb55a4===_0x59be1c[_0xbac337(0x386)]?_0x59be1c[_0xbac337(0x386)]:_0x59be1c['RECT'],'segmentId':typeof _0x487515==_0xbac337(0x26e)?String(_0x487515):'','segmentPage':Number(_0x518955!=null?_0x518955:-0x1)});}return _0x1aca32[_0xbac337(0x202)](_0xb211c4=>_0xb211c4[_0xbac337(0x32d)])||(_0x1aca32[0x0][_0xbac337(0x32d)]=!0x0),_0x1aca32;}class ze extends _0x3983c8{constructor(){const _0x4a1a21=_0x17441;super(...arguments),_(this,_0x4a1a21(0x3aa),new _0x1eaaea(null)),_(this,_0x4a1a21(0x28c),this['_collabCursorState$'][_0x4a1a21(0x342)]());}[_0x17441(0x3fb)](_0x44e136){const {unitID:_0x298a92,memberID:_0x3c2434,textRanges:_0x412993}=_0x44e136,_0x181802=$t(_0x412993);if(_0x181802==='')return;const _0x4d3112={'unitID':_0x298a92,'memberID':_0x3c2434,'selection':_0x181802};this['_collabCursorState$']['next'](_0x4d3112);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x37a4b5,_0x24d0e7,_0x1fc606,_0xea3ea8)=>{const _0xfb82f6=_0x17441;for(var _0x179add=_0xea3ea8>0x1?void 0x0:_0xea3ea8?Pi(_0x24d0e7,_0x1fc606):_0x24d0e7,_0x459c33=_0x37a4b5[_0xfb82f6(0x408)]-0x1,_0xad91d;_0x459c33>=0x0;_0x459c33--)(_0xad91d=_0x37a4b5[_0x459c33])&&(_0x179add=_0xad91d(_0x179add)||_0x179add);return _0x179add;},A=(_0x5594e7,_0x226f1e)=>(_0x58a408,_0x3b4a8c)=>_0x226f1e(_0x58a408,_0x3b4a8c,_0x5594e7);const yi=0x12c,$i=0x64;let xe=class extends _0x3983c8{constructor(_0x2dd24a,_0x1a95b2,_0x40e3ad,_0x1a3fad,_0x52b1cc,_0x125ccc,_0x33ee3e,_0xa84a5e,_0x3c0f95){const _0x1effdf=_0x17441;super(),_(this,_0x1effdf(0x39c),!0x1),_(this,_0x1effdf(0x21e),!0x1),_(this,_0x1effdf(0x374),new _0x1eaaea(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x1effdf(0x342)]()),_(this,'_roomMembers$',new _0x1eaaea([])),_(this,'roomMembers$',this['_roomMembers$'][_0x1effdf(0x38a)](_0x3e56f7(yi))),_(this,_0x1effdf(0x21d),_0x97d37a(_0x2d7afd=>{const _0x2cb486=_0x1effdf,_0xf23d67={'eventID':_0x51fb20['UPDATE_CURSOR'],'data':{'unitID':this[_0x2cb486(0x38c)],'memberID':this[_0x2cb486(0x3c0)][_0x2cb486(0x218)](),'selection':$t(_0x2d7afd)}};this[_0x2cb486(0x3c0)][_0x2cb486(0x247)](_0xf23d67,this[_0x2cb486(0x38c)]);},$i)),(this[_0x1effdf(0x38c)]=_0x2dd24a,this[_0x1effdf(0x3c0)]=_0x1a95b2,this[_0x1effdf(0x3ab)]=_0x40e3ad,this[_0x1effdf(0x275)]=_0x1a3fad,this[_0x1effdf(0x26f)]=_0x52b1cc,this[_0x1effdf(0x207)]=_0x125ccc,this[_0x1effdf(0x1eb)]=_0x33ee3e,this[_0x1effdf(0x41e)]=_0xa84a5e,this[_0x1effdf(0x419)]=_0x3c0f95);}get[_0x17441(0x239)](){const _0x4feb8f=_0x17441;return this['_cursorInfo$'][_0x4feb8f(0x2e0)]();}get[_0x17441(0x40e)](){const _0x19e434=_0x17441;return this[_0x19e434(0x416)][_0x19e434(0x2e0)]();}[_0x17441(0x2e2)](){const _0x5740f7=_0x17441;super[_0x5740f7(0x2e2)](),this['_cursorInfo$'][_0x5740f7(0x3a2)](new Map()),this[_0x5740f7(0x374)]['complete'](),this[_0x5740f7(0x416)][_0x5740f7(0x3a2)]([]),this[_0x5740f7(0x416)][_0x5740f7(0x417)]();}[_0x17441(0x2b0)](){const _0x601328=_0x17441;this['_init']||(this[_0x601328(0x21e)]=!0x0,this[_0x601328(0x3c0)][_0x601328(0x23b)][_0x601328(0x38a)](_0x497016(this[_0x601328(0x1e3)]))[_0x601328(0x404)](_0x56eeee=>{const _0x52bf70=_0x601328;_0x56eeee===_0x5fe212[_0x52bf70(0x273)]?this[_0x52bf70(0x3df)]():this[_0x52bf70(0x415)]();}),this[_0x601328(0x3c0)]['event$'][_0x601328(0x38a)](_0x497016(this['dispose$']))[_0x601328(0x404)](_0x4e164f=>{const _0x3c2c47=_0x601328,_0x413889=_0x4e164f[_0x3c2c47(0x3c4)];_0x413889===_0x51fb20[_0x3c2c47(0x206)]&&this['_onCursorUpdate'](_0x4e164f),_0x413889===_0x51fb20[_0x3c2c47(0x22b)]&&this[_0x3c2c47(0x3d2)](_0x4e164f);}),this[_0x601328(0x380)](this['_commandService']['onCommandExecuted'](_0x48a32a=>{const _0x53a70b=_0x601328,_0x401458=_0x48a32a[_0x53a70b(0x39d)];_0x401458!=null&&this[_0x53a70b(0x39c)]&&_0x48a32a['id']===_0x4b2c3f['id']&&_0x401458[_0x53a70b(0x388)]===this['unitID']&&_0x401458[_0x53a70b(0x36e)]===!0x1&&_0x401458[_0x53a70b(0x377)][_0x53a70b(0x408)]>0x0&&this[_0x53a70b(0x21d)](_0x401458[_0x53a70b(0x377)]);})),this[_0x601328(0x207)][_0x601328(0x28c)][_0x601328(0x38a)](_0x497016(this['dispose$']))[_0x601328(0x404)](_0x3539f4=>{const _0xa979a1=_0x601328;if((_0x3539f4==null?void 0x0:_0x3539f4[_0xa979a1(0x38c)])!==this[_0xa979a1(0x38c)])return;const _0x17f94f={'eventID':_0x51fb20[_0xa979a1(0x206)],'data':_0x3539f4};this['_onCursorUpdate'](_0x17f94f);}),this[_0x601328(0x380)](this['_commandService'][_0x601328(0x413)](_0x9781ff=>{const _0x43b3c0=_0x601328;if(_0x9781ff[_0x43b3c0(0x39d)]==null)return;const _0x1e67fd=_0x9781ff[_0x43b3c0(0x39d)];if(_0x9781ff['id']!==_0xdbf875['id']||_0x1e67fd['unitId']!==this['unitID'])return;const _0x213a2c={'id':_0x43b3c0(0x245),'params':_0x1e67fd},_0x1eb45d=this[_0x43b3c0(0x239)];for(const [_0x2d49fa,_0x357fb8]of _0x1eb45d){const _0x3ec10a={'id':_0x43b3c0(0x245),'params':{'unitId':this[_0x43b3c0(0x38c)],'actions':null,'textRanges':_0x357fb8[_0x43b3c0(0x377)]}},_0x8ba518=this[_0x43b3c0(0x1eb)][_0x43b3c0(0x24a)](_0x213a2c,_0x3ec10a,!0x1);if(_0x4a621a(_0x8ba518))throw _0x8ba518[_0x43b3c0(0x3f0)];_0x1eb45d[_0x43b3c0(0x397)](_0x2d49fa,{..._0x357fb8,'ranges':_0x8ba518[_0x43b3c0(0x3ce)][_0x43b3c0(0x39d)][_0x43b3c0(0x22f)]});}queueMicrotask(()=>{const _0x545973=_0x43b3c0;this[_0x545973(0x374)][_0x545973(0x3a2)](_0x1eb45d);});})));}[_0x17441(0x295)](_0x1227c8){const _0xc1e732=_0x17441;var _0x250573,_0x1be77b;const {memberID:_0x5a5965,selection:_0x23dfa1}=_0x1227c8[_0xc1e732(0x1ff)],_0x2994ee=Ai(_0x23dfa1),_0x3fd2f7=(_0x1be77b=(_0x250573=this[_0xc1e732(0x26f)][_0xc1e732(0x21b)](this[_0xc1e732(0x38c)],_0x5a5965))==null?void 0x0:_0x250573[_0xc1e732(0x2d1)])!=null?_0x1be77b:_0xc1e732(0x1f4),_0x57ab9f={'color':this[_0xc1e732(0x275)][_0xc1e732(0x304)](_0x5a5965),'name':_0x3fd2f7,'ranges':_0x2994ee},_0x191dc2=this[_0xc1e732(0x239)];_0x191dc2[_0xc1e732(0x397)](_0x5a5965,_0x57ab9f),this[_0xc1e732(0x374)]['next'](_0x191dc2);}[_0x17441(0x3d2)](_0x202ae8){const _0x58da51=_0x17441,{memberID:_0x11c6f2}=_0x202ae8[_0x58da51(0x1ff)],_0x27b2e3=this[_0x58da51(0x239)];_0x27b2e3[_0x58da51(0x366)](_0x11c6f2),this[_0x58da51(0x374)][_0x58da51(0x3a2)](_0x27b2e3);}[_0x17441(0x3df)](){const _0x358978=_0x17441;var _0x5519a5;if(this[_0x358978(0x39c)]=!0x0,((_0x5519a5=this[_0x358978(0x41e)][_0x358978(0x428)]())==null?void 0x0:_0x5519a5[_0x358978(0x211)]())!==this[_0x358978(0x38c)])return;const _0x388495=this[_0x358978(0x3ab)][_0x358978(0x2ef)](_0x1f1d95)[_0x358978(0x31f)]();Array[_0x358978(0x2d7)](_0x388495)&&_0x388495['length']>0x0&&this['_updateLocalCursor'](_0x388495);}[_0x17441(0x415)](){const _0x24bc94=_0x17441;this[_0x24bc94(0x39c)]=!0x1;}};xe=wi([A(0x2,_0x52728a(_0x54baa5)),A(0x3,_0x52728a(Ke)),A(0x4,_0x52728a(_0x1250f9)),A(0x5,_0x52728a(ze)),A(0x6,_0x2e9b71),A(0x7,_0x55fada),A(0x8,_0x38a819)],xe);var xi=Object[_0x17441(0x421)],Bi=(_0x4ebca2,_0x4f6bd4,_0x48cb16,_0x900268)=>{const _0x55ab34=_0x17441;for(var _0x40f7a9=_0x900268>0x1?void 0x0:_0x900268?xi(_0x4f6bd4,_0x48cb16):_0x4f6bd4,_0x3eb090=_0x4ebca2[_0x55ab34(0x408)]-0x1,_0x3743c1;_0x3eb090>=0x0;_0x3eb090--)(_0x3743c1=_0x4ebca2[_0x3eb090])&&(_0x40f7a9=_0x3743c1(_0x40f7a9)||_0x40f7a9);return _0x40f7a9;},B=(_0x4b5d48,_0x1fffe4)=>(_0x15fca4,_0x5bb05e)=>_0x1fffe4(_0x15fca4,_0x5bb05e,_0x4b5d48);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x28608f=[],_0x297e43=!0x1;return _0x22dc7a=>{const _0x42ed05=_0x5a49;_0x28608f[_0x42ed05(0x216)](_0x22dc7a),_0x297e43||(_0x297e43=!0x0,setTimeout(()=>{_0x28608f['forEach'](_0x5cc92f=>_0x5cc92f()),_0x28608f=[],_0x297e43=!0x1;}));};};let Be=class extends _0x3983c8{constructor(_0x56c15a,_0x11fa33,_0x31d126,_0x5b94bd,_0x19c79c,_0x422a5d,_0x4e815a,_0x201d78){const _0xa7c3ad=_0x17441;super(),_(this,_0xa7c3ad(0x39c),!0x1),_(this,_0xa7c3ad(0x21e),!0x1),_(this,_0xa7c3ad(0x374),new _0x1eaaea(new Map())),_(this,'cursorInfo$',this[_0xa7c3ad(0x374)]['asObservable']()),_(this,_0xa7c3ad(0x416),new _0x1eaaea([])),_(this,'roomMembers$',this['_roomMembers$'][_0xa7c3ad(0x38a)](_0x3e56f7(Fi))),_(this,_0xa7c3ad(0x21d),_0x97d37a((_0x1ff126,_0x3cf690)=>{const _0x5ca615=_0xa7c3ad,_0x251a99={'eventID':_0x51fb20[_0x5ca615(0x206)],'data':{'unitID':this[_0x5ca615(0x38c)],'memberID':this[_0x5ca615(0x3c0)][_0x5ca615(0x218)](),'selection':_0x3e2320(_0x1ff126,_0x3cf690[_0x5ca615(0x367)])}};this[_0x5ca615(0x3c0)][_0x5ca615(0x247)](_0x251a99,this[_0x5ca615(0x38c)]);},ki)),(this[_0xa7c3ad(0x38c)]=_0x56c15a,this['_session']=_0x11fa33,this[_0xa7c3ad(0x3ab)]=_0x31d126,this[_0xa7c3ad(0x275)]=_0x5b94bd,this[_0xa7c3ad(0x26f)]=_0x19c79c,this[_0xa7c3ad(0x41e)]=_0x422a5d,this['_commandService']=_0x4e815a,this[_0xa7c3ad(0x331)]=_0x201d78);}get['cursorInfo'](){const _0x5d4bb5=_0x17441;return this[_0x5d4bb5(0x374)]['getValue']();}get[_0x17441(0x40e)](){const _0x36d15c=_0x17441;return this['_roomMembers$'][_0x36d15c(0x2e0)]();}[_0x17441(0x2e2)](){const _0x271fc9=_0x17441;super[_0x271fc9(0x2e2)](),this[_0x271fc9(0x374)][_0x271fc9(0x3a2)](new Map()),this[_0x271fc9(0x374)][_0x271fc9(0x417)](),this[_0x271fc9(0x416)]['next']([]),this['_roomMembers$']['complete']();}[_0x17441(0x2b0)](){const _0x3cf922=_0x17441;this[_0x3cf922(0x21e)]||(this[_0x3cf922(0x21e)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x497016(this[_0x3cf922(0x1e3)]))['subscribe'](_0x5d5004=>{const _0x3e3359=_0x3cf922;_0x5d5004===_0x5fe212[_0x3e3359(0x273)]?this['_toggleOnline']():this[_0x3e3359(0x415)]();}),this[_0x3cf922(0x3c0)][_0x3cf922(0x420)]['pipe'](_0x497016(this['dispose$']))[_0x3cf922(0x404)](_0x5416f2=>{const _0x354c16=_0x3cf922,_0x482402=_0x5416f2[_0x354c16(0x3c4)];_0x482402===_0x51fb20[_0x354c16(0x206)]&&this[_0x354c16(0x295)](_0x5416f2),_0x482402===_0x51fb20['USERS_LEAVE']&&this[_0x354c16(0x3d2)](_0x5416f2);}),this[_0x3cf922(0x2c9)](),this[_0x3cf922(0x380)](this[_0x3cf922(0x419)][_0x3cf922(0x413)](_0x782f92=>{const _0x56ab0c=_0x3cf922;if(this[_0x56ab0c(0x39c)]&&_0x782f92['id']===_0x69609b['id']&&_0x782f92[_0x56ab0c(0x39d)]['unitId']===this[_0x56ab0c(0x38c)]){const _0x53176f=_0x782f92[_0x56ab0c(0x39d)];this[_0x56ab0c(0x21d)](_0x53176f['subUnitId'],_0x53176f['selections'][0x0]);}})));}['_onCursorUpdate'](_0x4cac29){const _0x47899f=_0x17441;var _0x5028c4,_0x4fb749;const {memberID:_0x4f84c7,selection:_0x2ab4f2}=_0x4cac29[_0x47899f(0x1ff)],{sheetName:_0x5a70bb,range:_0x18cfb2}=_0x212cb7(_0x2ab4f2),_0x587269={'name':(_0x4fb749=(_0x5028c4=this[_0x47899f(0x26f)][_0x47899f(0x21b)](this[_0x47899f(0x38c)],_0x4f84c7))==null?void 0x0:_0x5028c4['name'])!=null?_0x4fb749:_0x47899f(0x1f4),'range':this[_0x47899f(0x212)](_0x5a70bb,_0x18cfb2),'sheetID':_0x5a70bb,'color':this[_0x47899f(0x275)][_0x47899f(0x304)](_0x4f84c7),'selection':_0x2ab4f2},_0x425044=this[_0x47899f(0x239)];_0x425044[_0x47899f(0x397)](_0x4f84c7,_0x587269),this[_0x47899f(0x374)][_0x47899f(0x3a2)](_0x425044);}[_0x17441(0x3d2)](_0x24afcb){const _0xb8594c=_0x17441,{memberID:_0x4289b4}=_0x24afcb[_0xb8594c(0x1ff)],_0x181dc2=this['cursorInfo'];_0x181dc2[_0xb8594c(0x366)](_0x4289b4),this[_0xb8594c(0x374)][_0xb8594c(0x3a2)](_0x181dc2);}[_0x17441(0x212)](_0x4c0145,_0x4892f4){const _0x5d81d1=_0x17441;var _0x1b6715,_0x330290;const _0x5a516e=(_0x330290=(_0x1b6715=this[_0x5d81d1(0x41e)][_0x5d81d1(0x2d6)](this[_0x5d81d1(0x38c)]))==null?void 0x0:_0x1b6715['getSheetBySheetId'](_0x4c0145))==null?void 0x0:_0x330290['getMergeData']();return(_0x5a516e==null?void 0x0:_0x5a516e[_0x5d81d1(0x3a4)](_0xe806ac=>_0x3ec7fc['contains'](_0xe806ac,_0x4892f4)))||_0x4892f4;}[_0x17441(0x2c9)](){const _0x1cf2cf=_0x17441,_0x4df4ae=new _0x31de3f(),_0x2f4097=Hi(),_0x3d1f9b=()=>{const _0x16fbbe=_0x5a49;_0x4df4ae[_0x16fbbe(0x2e2)]();const _0x133821=(_0x5e8afe,_0x467fac,_0x1786e6,_0x5e1f43)=>{const _0x29a534=_0x16fbbe;let _0x578832=[];switch(_0x5e8afe['id']){case _0x22ed62[_0x29a534(0x32c)]:{_0x578832=_0xf28166(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62[_0x29a534(0x261)]:{_0x578832=_0x4084f1(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62[_0x29a534(0x341)]:{_0x578832=_0x1edabd(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62[_0x29a534(0x2ac)]:{_0x578832=_0x170ce4(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62['InsertRangeMoveRightCommandId']:{_0x578832=_0x2405c2(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62[_0x29a534(0x3fc)]:{_0x578832=_0x39ac36(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62[_0x29a534(0x25f)]:{_0x578832=_0x4a3251(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62['RemoveColCommandId']:{_0x578832=_0xfbbb6e(_0x5e8afe,_0x5e1f43);break;}case _0x22ed62[_0x29a534(0x424)]:{_0x578832=_0x28852d(_0x5e8afe,_0x5e1f43);break;}}const _0x433b0f=_0x56ce14(_0x578832,_0x5e1f43),_0x24fda2=this['cursorInfo'][_0x29a534(0x2ef)](_0x467fac);if(_0x24fda2&&_0x433b0f){const _0x29da0e={..._0x24fda2,'range':_0x433b0f};this[_0x29a534(0x239)][_0x29a534(0x397)](_0x467fac,_0x29da0e),_0x2f4097(()=>{const _0x13fcaa=_0x29a534,_0x3efe89=this[_0x13fcaa(0x331)][_0x13fcaa(0x2a7)](_0x433b0f,_0x3fdb81=>(_0x3efe89[_0x13fcaa(0x2e2)](),_0x133821(_0x3fdb81,_0x467fac,_0x1786e6,_0x433b0f)));_0x4df4ae[_0x13fcaa(0x20e)](_0x3efe89);});}return{'redos':[],'undos':[]};};this[_0x16fbbe(0x239)][_0x16fbbe(0x1f0)]((_0x128a6e,_0x19a3b9)=>{const _0xcb6927=_0x16fbbe,{range:_0x399dab,sheetID:_0xad71bd}=_0x128a6e,_0x142287=this[_0xcb6927(0x331)]['registerRefRange'](_0x399dab,_0x5e49ab=>(_0x142287['dispose'](),_0x133821(_0x5e49ab,_0x19a3b9,_0xad71bd,_0x399dab)));_0x4df4ae[_0xcb6927(0x20e)](_0x142287);});};this[_0x1cf2cf(0x380)](_0xce90d1(this['_cursorInfo$'][_0x1cf2cf(0x404)](()=>{_0x3d1f9b();})));}[_0x17441(0x3df)](){const _0x371d27=_0x17441;var _0xa6b8cb,_0x4ae0a5;if(this[_0x371d27(0x39c)]=!0x0,((_0xa6b8cb=this[_0x371d27(0x41e)][_0x371d27(0x428)]())==null?void 0x0:_0xa6b8cb[_0x371d27(0x211)]())!==this[_0x371d27(0x38c)])return;const _0x2a62a1=(_0x4ae0a5=this[_0x371d27(0x3ab)]['get'](_0x3c55f6)[_0x371d27(0x220)]())==null?void 0x0:_0x4ae0a5[0x0],_0x1a2f83=this['_univerInstanceService']['getCurrentUnitForType'](_0x5bd1dc['UNIVER_SHEET'])[_0x371d27(0x274)]();_0x2a62a1&&_0x1a2f83&&this[_0x371d27(0x21d)](_0x1a2f83['getSheetId'](),_0x2a62a1);}['_toggleOffline'](){const _0x406a51=_0x17441;this[_0x406a51(0x39c)]=!0x1;}};Be=Bi([B(0x2,_0x52728a(_0x54baa5)),B(0x3,_0x52728a(Ke)),B(0x4,_0x52728a(_0x1250f9)),B(0x5,_0x55fada),B(0x6,_0x38a819),B(0x7,_0x52728a(_0x3a9eda))],Be);var Yi=Object[_0x17441(0x421)],Wi=(_0x566252,_0x51e543,_0x4a5d41,_0x4c803f)=>{const _0x5c3192=_0x17441;for(var _0x27f04b=_0x4c803f>0x1?void 0x0:_0x4c803f?Yi(_0x51e543,_0x4a5d41):_0x51e543,_0x2b8a82=_0x566252[_0x5c3192(0x408)]-0x1,_0x599932;_0x2b8a82>=0x0;_0x2b8a82--)(_0x599932=_0x566252[_0x2b8a82])&&(_0x27f04b=_0x599932(_0x27f04b)||_0x27f04b);return _0x27f04b;},Ce=(_0x14bc57,_0x5ea3cc)=>(_0x5ac1bd,_0x2544cd)=>_0x5ea3cc(_0x5ac1bd,_0x2544cd,_0x14bc57);let H=class extends _0x3983c8{constructor(_0x184d75,_0x43d749,_0x332409){const _0x122316=_0x17441;super(),_(this,'_entities',new Map()),_(this,_0x122316(0x379),new _0x45036d()),(this['_univerInstanceService']=_0x184d75,this[_0x122316(0x3ab)]=_0x43d749,this['_collabSessionService']=_0x332409,this[_0x122316(0x21e)]());}[_0x17441(0x2e2)](){const _0x5f22fc=_0x17441;super[_0x5f22fc(0x2e2)](),this[_0x5f22fc(0x379)]['complete'](),this['_entities'][_0x5f22fc(0x1f0)](_0x46a680=>_0x46a680['dispose']());}[_0x17441(0x371)](_0x4cb837){const _0x86f589=_0x17441;return this[_0x86f589(0x255)][_0x86f589(0x37b)](_0x4cb837)?this['_entities'][_0x86f589(0x2ef)](_0x4cb837)[_0x86f589(0x26c)]:this[_0x86f589(0x379)][_0x86f589(0x38a)](_0x5d415e(_0x2f03c5=>_0x2f03c5[_0x86f589(0x38c)]===_0x4cb837),_0xe943a0(_0x5b9e53=>_0x5b9e53['cursorInfo$']));}[_0x17441(0x21e)](){const _0xcfa572=_0x17441;this[_0xcfa572(0x41e)][_0xcfa572(0x412)](_0x5bd1dc['UNIVER_SHEET'])[_0xcfa572(0x38a)](_0x497016(this[_0xcfa572(0x1e3)]))[_0xcfa572(0x404)](async _0x106e17=>{const _0x30ec0e=_0xcfa572,_0x3c69c4=_0x106e17[_0x30ec0e(0x211)](),_0x492f95=await this['_startSheetCollabCursor'](_0x3c69c4);this[_0x30ec0e(0x379)][_0x30ec0e(0x3a2)](_0x492f95),this[_0x30ec0e(0x255)][_0x30ec0e(0x397)](_0x3c69c4,_0x492f95);}),this[_0xcfa572(0x41e)][_0xcfa572(0x412)](_0x5bd1dc[_0xcfa572(0x2c4)])[_0xcfa572(0x38a)](_0x497016(this[_0xcfa572(0x1e3)]))[_0xcfa572(0x38a)](_0x5d415e(_0x1b274c=>!_0x1b274c[_0xcfa572(0x211)]()['startsWith']('__')))[_0xcfa572(0x404)](async _0x32c93d=>{const _0x52611c=_0xcfa572,_0x337085=_0x32c93d[_0x52611c(0x211)](),_0x276973=await this[_0x52611c(0x3fa)](_0x337085);this[_0x52611c(0x379)][_0x52611c(0x3a2)](_0x276973),this[_0x52611c(0x255)][_0x52611c(0x397)](_0x337085,_0x276973);}),_0x56525b(this[_0xcfa572(0x41e)][_0xcfa572(0x294)](_0x5bd1dc[_0xcfa572(0x2c4)]),this[_0xcfa572(0x41e)][_0xcfa572(0x294)](_0x5bd1dc[_0xcfa572(0x2e4)]))[_0xcfa572(0x38a)](_0x497016(this[_0xcfa572(0x1e3)]))[_0xcfa572(0x404)](_0x439b6c=>{const _0x315935=_0xcfa572,_0x231384=_0x439b6c[_0x315935(0x211)](),_0x6649c5=this['_entities']['get'](_0x231384);_0x6649c5&&(_0x6649c5['dispose'](),this[_0x315935(0x255)]['delete'](_0x231384));});}async[_0x17441(0x357)](_0xd57e3b){const _0x117360=_0x17441,_0x36a47b=await this['_collabSessionService'][_0x117360(0x322)](_0xd57e3b),_0x4e8f95=this[_0x117360(0x3ab)][_0x117360(0x1df)](Be,_0xd57e3b,_0x36a47b);return _0x4e8f95[_0x117360(0x2b0)](),_0x4e8f95;}async[_0x17441(0x3fa)](_0x1263e5){const _0x1ffb15=_0x17441,_0x2d21c8=await this['_collabSessionService'][_0x1ffb15(0x322)](_0x1263e5),_0x370efd=this['_injector'][_0x1ffb15(0x1df)](xe,_0x1263e5,_0x2d21c8);return _0x370efd[_0x1ffb15(0x2b0)](),_0x370efd;}};H=Wi([Ce(0x0,_0x55fada),Ce(0x1,_0x52728a(_0x54baa5)),Ce(0x2,_0x52728a(_0x423098))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3593a4,_0x1ca1bc){const _0x158a91=_0x17441;let {radius:_0x57cd70,width:_0x39ba3d,height:_0x27650d}=_0x1ca1bc;_0x57cd70=_0x57cd70!=null?_0x57cd70:0x0,_0x39ba3d=_0x39ba3d!=null?_0x39ba3d:0x1e,_0x27650d=_0x27650d!=null?_0x27650d:0x1e;let _0x585f07=0x0,_0x7a81e7=0x0,_0x195f58=0x0;_0x585f07=_0x7a81e7=_0x195f58=Math[_0x158a91(0x30b)](_0x57cd70,_0x39ba3d/0x2,_0x27650d/0x2),_0x3593a4[_0x158a91(0x2f2)](),_0x3593a4[_0x158a91(0x1f7)](_0x585f07,0x0),_0x3593a4['lineTo'](_0x39ba3d-_0x7a81e7,0x0),_0x3593a4['arc'](_0x39ba3d-_0x7a81e7,_0x7a81e7,_0x7a81e7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3593a4[_0x158a91(0x303)](_0x39ba3d,_0x27650d-_0x195f58),_0x3593a4[_0x158a91(0x2f9)](_0x39ba3d-_0x195f58,_0x27650d-_0x195f58,_0x195f58,0x0,Math['PI']/0x2,!0x1),_0x3593a4[_0x158a91(0x303)](0x0,_0x27650d),_0x3593a4[_0x158a91(0x303)](0x0,_0x585f07),_0x3593a4[_0x158a91(0x2f9)](_0x585f07,_0x585f07,_0x585f07,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3593a4['closePath'](),_0x1ca1bc[_0x158a91(0x2b8)]&&(_0x3593a4[_0x158a91(0x38f)](),_0x3593a4[_0x158a91(0x41b)]=_0x1ca1bc[_0x158a91(0x2b8)],_0x1ca1bc['fillRule']===_0x158a91(0x1ec)?_0x3593a4[_0x158a91(0x2b8)]('evenodd'):_0x3593a4[_0x158a91(0x2b8)](),_0x3593a4[_0x158a91(0x2ba)]());}class ve extends _0x2201af{constructor(_0x4e3461,_0x267845){const _0x136c43=_0x17441;super(_0x4e3461,_0x267845),_(this,_0x136c43(0x20c)),_(this,_0x136c43(0x41c)),(this[_0x136c43(0x20c)]=_0x267845==null?void 0x0:_0x267845[_0x136c43(0x20c)],this['text']=_0x267845==null?void 0x0:_0x267845['text']);}static[_0x17441(0x34c)](_0x418ece,_0x323fba){const _0x1701e4=_0x17441,{text:_0x17a579,color:_0x4f32e2}=_0x323fba;_0x418ece['save'](),_0x418ece[_0x1701e4(0x25b)]=_0x1701e4(0x373);const _0x420c35=_0x418ece[_0x1701e4(0x2ea)](_0x17a579)[_0x1701e4(0x40d)],_0x2bdd76=Math[_0x1701e4(0x30b)](_0x420c35+0x2*Re,at);ji(_0x418ece,{'height':Q,'radius':0x4,'width':_0x2bdd76,'fill':_0x4f32e2}),_0x418ece[_0x1701e4(0x41b)]=_0x1701e4(0x288);const _0x2566e3=Re,_0x3c9ab8=Q-Vi,_0x4a3597=at-0x2*Re;if(_0x420c35>_0x4a3597){let _0x517107='',_0x3eee1b=0x0;for(const _0x3afb04 of _0x17a579){const _0x143bec=_0x418ece['measureText'](_0x3afb04)[_0x1701e4(0x40d)];if(_0x3eee1b+_0x143bec<=_0x4a3597-_0x418ece[_0x1701e4(0x2ea)](_0x1701e4(0x3f7))['width'])_0x517107+=_0x3afb04,_0x3eee1b+=_0x143bec;else{_0x517107+=_0x1701e4(0x3f7);break;}}_0x418ece[_0x1701e4(0x3f4)](_0x517107,_0x2566e3,_0x3c9ab8);}else _0x418ece['fillText'](_0x17a579,_0x2566e3,_0x3c9ab8);_0x418ece['restore']();}['_draw'](_0x4ea97c){const _0x2c3374=_0x17441;ve[_0x2c3374(0x34c)](_0x4ea97c,this);}}const De='collab-text-anchor-',Xi='collab-text-range-',Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x17441(0x2a9);class ct{constructor(_0x105818,_0x414b5d,_0x360a15,_0x6be468){const _0x1cfef0=_0x17441;_(this,_0x1cfef0(0x3de),[]),_(this,_0x1cfef0(0x300),null),_(this,_0x1cfef0(0x262),null),_(this,'_anchorDot',null),_(this,_0x1cfef0(0x3f2),null),_(this,_0x1cfef0(0x3f8),null),(this[_0x1cfef0(0x325)]=_0x105818,this['_scene']=_0x414b5d,this[_0x1cfef0(0x3e8)]=_0x360a15,this[_0x1cfef0(0x1ef)]=_0x6be468,this[_0x1cfef0(0x30d)]());}set[_0x17441(0x34f)](_0x2ce549){const _0x3b938d=_0x17441;_0x2ce549?(this[_0x3b938d(0x3ad)]&&this[_0x3b938d(0x3ad)][_0x3b938d(0x21f)](),this[_0x3b938d(0x262)]&&this[_0x3b938d(0x262)][_0x3b938d(0x3b7)]()):(this[_0x3b938d(0x3ad)]&&this[_0x3b938d(0x3ad)][_0x3b938d(0x3b7)](),this[_0x3b938d(0x262)]&&this[_0x3b938d(0x262)][_0x3b938d(0x21f)]());}[_0x17441(0x2e2)](){const _0x565e84=_0x17441;for(const _0x589023 of this['_shapes'])_0x589023['dispose']();this[_0x565e84(0x262)]&&this['_textBubble'][_0x565e84(0x2e2)](),this[_0x565e84(0x3ad)]&&this[_0x565e84(0x3ad)]['dispose'](),this['_anchor']&&this['_anchor'][_0x565e84(0x2e2)](),this['_eventUnsubscribe']&&this[_0x565e84(0x3f8)]();}[_0x17441(0x30d)](){const _0x203df5=_0x17441;var _0xb1781e;const {_docSkeleton:_0x419a85,_document:_0x312ab7}=this,{color:_0xa848e4,name:_0x19cca9,ranges:_0x409c73}=this[_0x203df5(0x325)],_0x5a88b8=_0x312ab7[_0x203df5(0x20d)](),{docsLeft:_0xeafd9c,docsTop:_0x4eb930}=_0x5a88b8,_0x54c3e5=new _0x2c074d(_0x5a88b8,_0x419a85);for(const {startOffset:_0x4973c1,endOffset:_0x51c605,rangeType:_0x4aad0d,segmentId:_0x467693,segmentPage:_0x212cfd,collapsed:_0x2c839b,isActive:_0xba0585}of _0x409c73){const _0x20c093=_0x419a85['findNodePositionByCharIndex'](_0x4973c1,!0x0,_0x467693,_0x212cfd);let _0x5b62b3=_0x419a85[_0x203df5(0x361)](_0x51c605,!0x0,_0x467693,_0x212cfd);if(_0x5b62b3==null&&(_0x5b62b3=_0x419a85[_0x203df5(0x361)](_0x51c605-0x1,!0x1,_0x467693,_0x212cfd)),_0xba0585){const {contentBoxPointGroup:_0x1cc88e}=_0x54c3e5[_0x203df5(0x301)](_0x5b62b3,_0x5b62b3);if(_0x1cc88e[_0x203df5(0x408)]===0x0)continue;this[_0x203df5(0x406)](_0xa848e4,_0x1cc88e,_0xeafd9c,_0x4eb930,_0x19cca9),this[_0x203df5(0x3f8)]=this[_0x203df5(0x201)]();}if(_0x20c093&&_0x5b62b3){if(_0x4aad0d===_0x59be1c[_0x203df5(0x2b7)]){const _0x5c86e7=new _0x555723(_0x5a88b8,_0x419a85),{pointGroup:_0x4df753}=(_0xb1781e=_0x5c86e7['getRangePointData'](_0x20c093,_0x5b62b3))!=null?_0xb1781e:{};if(_0x4df753==null||_0x4df753[_0x203df5(0x408)]===0x0)continue;this[_0x203df5(0x30c)](_0xa848e4,_0x4df753,_0xeafd9c,_0x4eb930);}else{if(!_0x2c839b){const {borderBoxPointGroup:_0x1846b0}=_0x54c3e5['getRangePointData'](_0x20c093,_0x5b62b3);if(_0x1846b0['length']===0x0)continue;this[_0x203df5(0x35a)](_0xa848e4,_0x1846b0,_0xeafd9c,_0x4eb930);}}}}}[_0x17441(0x406)](_0x4694ee,_0x29c920,_0x4417a3,_0x2ee10d,_0x5d48dc){const _0xfce317=_0x17441,_0x486b7e=this[_0xfce317(0x3ea)](_0x29c920),{left:_0x2ee5a2,top:_0x4119f5,height:_0x2e4954}=_0x486b7e,_0x304d65=this[_0xfce317(0x38e)](),_0x3dc66b=zi/_0x304d65,_0x32576d=new _0xfc853d(De+_0x19061a(z),{'left':_0x2ee5a2+_0x4417a3-_0x3dc66b,'top':_0x4119f5+_0x2ee10d,'height':_0x2e4954,'width':Ki,'fill':_0x4694ee||_0x506237(_0x24d0be[_0xfce317(0x221)],0x0),'strokeWidth':_0x3dc66b,'stroke':Ji,'evented':!0x0});this[_0xfce317(0x300)]=_0x32576d,this['_scene'][_0xfce317(0x394)](_0x32576d,_0x18affc);const _0x3e0576=new _0xfc853d(De+_0x19061a(z),{'left':_0x2ee5a2+_0x4417a3-_0x3dc66b,'top':_0x4119f5+_0x2ee10d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x4694ee||_0x506237(_0x24d0be[_0xfce317(0x221)],0x0),'strokeWidth':0x0,'stroke':_0x4694ee||_0x506237(_0x24d0be[_0xfce317(0x221)],0x0),'evented':!0x1});this[_0xfce317(0x3ad)]=_0x3e0576,this[_0xfce317(0x349)]['addObject'](_0x3e0576,_0x18affc);const _0x488bd7=new ve(De+_0x19061a(z),{'left':_0x2ee5a2+_0x4417a3-_0x3dc66b,'top':_0x4119f5+_0x2ee10d-Q,'text':_0x5d48dc,'color':_0x4694ee});this[_0xfce317(0x262)]=_0x488bd7,this[_0xfce317(0x349)][_0xfce317(0x394)](_0x488bd7,_0x18affc),this[_0xfce317(0x34f)]=!0x1;}['_handleHover'](){const _0x1c9583=_0x17441,_0x4afb25=this[_0x1c9583(0x300)][_0x1c9583(0x200)]['subscribeEvent'](()=>{const _0x1707a1=_0x1c9583;this[_0x1707a1(0x34f)]=!0x0;}),_0x662e19=this[_0x1c9583(0x300)][_0x1c9583(0x1d9)][_0x1c9583(0x2c3)](()=>{const _0x5e5df4=_0x1c9583;this[_0x5e5df4(0x3f2)]&&clearTimeout(this[_0x5e5df4(0x3f2)]),this[_0x5e5df4(0x3f2)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x36ba40=_0x1c9583;_0x4afb25[_0x36ba40(0x2cc)](),_0x662e19['unsubscribe']();};}['_drawTextRange'](_0x218c93,_0x2da3c9,_0x129729,_0x35880b){const _0x336126=_0x17441,_0x1f1dc1=new _0x3077ba(_0x218c93)[_0x336126(0x279)](0.2)[_0x336126(0x3cf)](),_0x71efaa=new _0x21bd70(Xi+_0x19061a(z),{'pointsGroup':_0x2da3c9,'fill':_0x1f1dc1||_0x506237(_0x24d0be['black'],0.2),'left':_0x129729,'top':_0x35880b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x336126(0x3de)][_0x336126(0x216)](_0x71efaa),this['_scene'][_0x336126(0x394)](_0x71efaa,_0x18affc);}[_0x17441(0x30c)](_0x39179a,_0x2e6918,_0x346e7c,_0x279d16){const _0x3c5f50=_0x17441,_0x4c0056=new _0x3077ba(_0x39179a)[_0x3c5f50(0x279)](0.2)['toRgbString'](),_0x34a3bd=new _0x21bd70(Gi+_0x19061a(z),{'pointsGroup':_0x2e6918,'fill':_0x4c0056||_0x506237(_0x24d0be[_0x3c5f50(0x221)],0.2),'left':_0x346e7c,'top':_0x279d16,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3c5f50(0x216)](_0x34a3bd),this[_0x3c5f50(0x349)][_0x3c5f50(0x394)](_0x34a3bd,_0x18affc);}[_0x17441(0x3ea)](_0x3d17da){const _0xe48be3=_0x3d17da[0x0],_0x46266d=_0xe48be3[0x0],_0x55789b=_0xe48be3[0x2],{x:_0x5e59e1,y:_0x306fc2}=_0x46266d,{x:_0x3abf51,y:_0x31ade3}=_0x55789b;return{'left':_0x5e59e1,'top':_0x306fc2,'width':_0x3abf51-_0x5e59e1,'height':_0x31ade3-_0x306fc2};}[_0x17441(0x38e)](){const _0x57f348=_0x17441,{scaleX:_0x91009f,scaleY:_0xe76ef9}=this['_scene'][_0x57f348(0x329)]();return Math[_0x57f348(0x333)](_0x91009f,_0xe76ef9);}}var Zi=Object[_0x17441(0x421)],Qi=(_0x5c966b,_0x491aad,_0x1d5807,_0xba56c9)=>{const _0x5a9909=_0x17441;for(var _0x1559dd=_0xba56c9>0x1?void 0x0:_0xba56c9?Zi(_0x491aad,_0x1d5807):_0x491aad,_0x20c54f=_0x5c966b[_0x5a9909(0x408)]-0x1,_0xbe4ea9;_0x20c54f>=0x0;_0x20c54f--)(_0xbe4ea9=_0x5c966b[_0x20c54f])&&(_0x1559dd=_0xbe4ea9(_0x1559dd)||_0x1559dd);return _0x1559dd;},ie=(_0x56666a,_0x49d7c0)=>(_0x44b558,_0x2f813d)=>_0x49d7c0(_0x44b558,_0x2f813d,_0x56666a);let Fe=class extends _0x3983c8{constructor(_0xf4feb1,_0x11692d,_0xae46f0,_0x4ff4c4,_0x232489){const _0x490172=_0x17441;super(),_(this,'_cursorShapes',[]),_(this,_0x490172(0x28d),[]),(this['_context']=_0xf4feb1,this[_0x490172(0x3c2)]=_0x11692d,this[_0x490172(0x1f8)]=_0xae46f0,this['_commandService']=_0x4ff4c4,this['_themeService']=_0x232489,this[_0x490172(0x21e)]());}[_0x17441(0x21e)](){const _0x56e39b=_0x17441,_0x350a9f=this[_0x56e39b(0x1fd)][_0x56e39b(0x388)],_0x59e227=this[_0x56e39b(0x3c2)];this[_0x56e39b(0x380)](_0x2856f5([this[_0x56e39b(0x1f8)][_0x56e39b(0x371)](_0x350a9f),this[_0x56e39b(0x32e)][_0x56e39b(0x29a)]])[_0x56e39b(0x38a)](_0x595000(([_0x5a29fd,_0x5e1ba2])=>({'skeleton':_0x59e227['getSkeleton'](),'cursors':[..._0x5a29fd[_0x56e39b(0x1fb)]()][_0x56e39b(0x3d5)](_0x3e9f27=>({..._0x3e9f27,'color':this['_themeService'][_0x56e39b(0x2f3)](_0x3e9f27[_0x56e39b(0x20c)])}))})))[_0x56e39b(0x404)](_0x5577dd=>{const _0x578d2d=_0x56e39b;if(this[_0x578d2d(0x3e4)](),_0x5577dd){const {skeleton:_0x54ef63,cursors:_0x56eba0}=_0x5577dd;this[_0x578d2d(0x328)](_0x54ef63,_0x56eba0);}})),this[_0x56e39b(0x248)](),this[_0x56e39b(0x40c)]();}['_updateCollabCursors'](_0x44f4d9,_0x2b67f6){const _0x18e6fc=_0x17441,{scene:_0x51d0f3,mainComponent:_0x160a3d}=this['_context'],_0x38bacc=_0x2b67f6[_0x18e6fc(0x2ae)](_0x3c89bb=>new ct(_0x3c89bb,_0x51d0f3,_0x44f4d9,_0x160a3d));this[_0x18e6fc(0x271)]=_0x38bacc,this[_0x18e6fc(0x28d)]=_0x2b67f6;}[_0x17441(0x40b)](){const _0x48bfbd=_0x17441;this['_removeCollabCursors']();const {scene:_0x3580d9,mainComponent:_0x3706c5}=this[_0x48bfbd(0x1fd)],_0x11f3fa=this[_0x48bfbd(0x3c2)][_0x48bfbd(0x409)](),_0x303f26=this['_cursors']['map'](_0x30efb1=>new ct(_0x30efb1,_0x3580d9,_0x11f3fa,_0x3706c5));this[_0x48bfbd(0x271)]=_0x303f26;}[_0x17441(0x3e4)](){const _0x52e5e6=_0x17441;this[_0x52e5e6(0x271)]['forEach'](_0x39ad5e=>_0x39ad5e[_0x52e5e6(0x2e2)]()),this[_0x52e5e6(0x271)]=[];}[_0x17441(0x40c)](){const _0x46955c=_0x17441,_0x574351=[_0x4d39a8['id']];this[_0x46955c(0x380)](this[_0x46955c(0x419)]['onCommandExecuted'](_0x261f50=>{const _0x13dc7f=_0x46955c;_0x574351[_0x13dc7f(0x30a)](_0x261f50['id'])&&_0x261f50[_0x13dc7f(0x39d)][_0x13dc7f(0x388)]===this['_context']['unitId']&&this[_0x13dc7f(0x40b)]();}));}[_0x17441(0x248)](){const _0x370ff8=_0x17441;this[_0x370ff8(0x380)](_0x5b3639(this[_0x370ff8(0x1fd)][_0x370ff8(0x3ff)][_0x370ff8(0x2fd)])[_0x370ff8(0x38a)](_0x51ff29(_0x277f7c=>_0x277f7c[_0x370ff8(0x253)]===_0x5dd3a2[_0x370ff8(0x38d)]),_0x1f2676(0x10))[_0x370ff8(0x404)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x52728a(_0x44e57b)),ie(0x2,_0x52728a(H)),ie(0x3,_0x38a819),ie(0x4,_0x52728a(_0x24adad))],Fe);const qi=0x1,en=1.5;function _0xda8c(){const _0x4292ba=['measureText','getUnit','size','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_TABLE_NOT_FOUND_IN_UNIT','get','univerjs-icon\x20univerjs-icon-','transformMutationsWithChangeset','beginPath','getColorFromTheme','YUUMI_RATE_OVER_LIMIT','_transformUndoRedoStack','getSheetId','loadOfflineData','CHANGESET_REVISION_CONFILICT','arc','_docSyncEditingCollabCursorService','1em','collaboration.offline-data-not-saved','onTransformChange$','subunit','_collaborationUIEventService','_anchor','getRangePointData','formula.calculation.started','lineTo','assignAColorForMemberID','_getSheetObject','result','PY_RUNTIME_SCRIPT_ERROR','defs','translate(.97)','includes','min','_drawRectRange','_render','_checkAndWaitForCalculationPermission','_hovered','LOGIN_TOKEN_PROCESSING_FAILED','setShapeProps','docStateChange$','getCellPositionByOffset','_startCalculationLimit','_assignedColors','_initEvent','YUUMI_UNABLE_LOAD_URL','ENTITLE_NEED_BILLING_ADDRESS','newValue','_clearOtherTimers','184696vkCFZE','setConfig','getConfig','collabStatus.conflict','getDocRanges','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','memberID','requireSession','MOBILE_HAS_BEEN_BOUND','enableLocalCache','_cursor','onMouseMove','url(#on-line-icon_clip0_910_349)','_updateCollabCursors','getAncestorScale','_messageService','limitInfo','DeleteRangeMoveLeftCommandId','isActive','_themeService','UNAUTHENTICATED','registerComponent','_refRangeService','_applyCommand','max','REDEMPTION_CODE_INACTIVE','INVITE_CODE_HAS_BEEN_UES','YUUMI_ALL_TABLES_IS_INVALID','children','getSheetBySheetId','SUCCESS','YUUMI_CONNECTOR_URL_NOT_FOUND','Failed','_initWindowErrorListener','defIds','YUUMI_SUBSCRIPTION_NOT_FOUND','from','beforeCommandExecuted','InsertColCommandId','asObservable','dirtyRanges','_send','_backgroundColor','_setFormulaLimitStatus','_revisionService','ticket','_scene','setParam','_logService','drawWith','Error','_unitOnClients','_hover','unit','clipPath','INVALID_ARGUMENT','getViewport','NOT_COLLAB','APPLY_REVISION_CONFILICT','replaceDocRanges','_startSheetCollabCursor','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_taskIds','_drawTextRange','enableFrontendLog','[Unhandled\x20Rejection]:\x20','replace','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_NO_CUBOID_FOR_QUESTION','_setupSubUnitSync','findNodePositionByCharIndex','stringify','REDEMPTION_USER_NOT_ELIGIBLE','getParam','collabStatus.notCollab','delete','range','TOO_MANY_REQUESTS','collabStatus.synced','REDEMPTION_CODE_HAS_BEEN_CREATED','onLocalMutation','collaboration-client-ui.config','_lastPointer','isEditing','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','endColumn','getCollabCursors$','setItem','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_cursorInfo$','startFormulaLimitUrl','COMPLETION_FINISHED','ranges','pluginName','_entityInit$','registerRenderModule','has','YUUMI_AI_RUN_FAILED','OnLineIcon','endRow','?taskId=','disposeWithMe','_checkCalculationAvailable','_uploadLog','JOIN_ROOM_FAILED','NOT_FOUND','entityInit$','TEXT','key','unitId','REDEMPTION_INVALID_CODE','pipe','setTimeout','unitID','resize','_getScale','save','UNRECOGNIZED','getRelativeToViewportCoord','APPLY_NON_SEQUENTIAL_REVISION','jiqing.500','addObject','ENTITLE_COUPON_EXPIRED','history','set','_getFormulaLimitStatus','ENTITLE_DUP_SUBSCRIPTION','pushState','_ensureSubject','_online','params','USER_NOT_FOUND','makeDirty','_setupBeforeClosingHandler','executionId','next','_renderManagerService','find','top','permission.title','_transformPreviousActiveRange','_disabled','SNAPSHOT_INVALID_SNAPSHOT','_collabCursorState$','_injector','_createSocketURL','_anchorDot','getCollabEntity$','defineProperty','1818URIvWz','none','createSocket','red.300','exhaustSavingTask','ENTITLE_CHAT_LIMIT_EXCEED','currentUsage','show','FETCH_MISS','whenReady','UNDEFINED','uni.network.url-service','_config','UniverIcon','transformStateCache','triggerDblclick','_session','LICENSE_EXPORT_SIZE_EXCEEDED','_docSkeletonManagerService','setActiveRange','eventID','transformSelections','getStateCache','_registerRenderDependencies','totalFormulasToCalculate','_beforeCloseService','INVITE_CODE_ALREADY_BOUND','replaceState','_id','transformIMECache','m2Prime','toRgbString','white','startColumn','_onCursorDelete','/universer-api/frontend/logs','xlink:href','flatMap','_removeClearOtherTimer','substring','skeleton','then','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_PERMISSION_DENIED','/universer-api/license/formula/limit/status','shift','_shapes','_toggleOnline','_updateSubUnitFromURLParams','mutations','clearTimeout','_unitStatus','_removeCollabCursors','LICENSE_IMPORT_SIZE_EXCEEDED','_handleEvent','executeCommand','_docSkeleton','_collaborationSessionService','_getAnchorBounding','_uiPartsService','undoState','CONNECTOR_DATA_TOO_LARGE','120fVhKHp','selection','error','_scheduleClearOtherTimer','_hideTimer','collaboration.single-unit.warning','fillText','OFFLINE','_releaseCalculationLimit','...','_eventUnsubscribe','url(#$1','_startDocCollabCursor','syncEditingCollabCursor','InsertRowCommandId','WECHAT_HAS_BEEN_BOUND','hovered','engine','7QxOIcF','session.collaboration-timeout','_currentUsage','getUnitStatus$','subscribe','_cachedData','_drawAnchor','_docTransformStateCacheService','length','getSkeleton','SYNCED','_refreshCollabCursors','_initCommandExecutedListener','width','roomMembers','_initCommandInterceptor','EMAIL_HAS_BEEN_BOUND','onStarting','getTypeOfUnitAdded$','onCommandExecuted','REDEMPTION_CODE_NOT_STARTED','_toggleOffline','_roomMembers$','complete','symbol','_commandService','_handleJoinEvent','fillStyle','text','_handleHeartbeatEvent','_univerInstanceService','deepClone','event$','getOwnPropertyDescriptor','addHandlerCallback','_localeService','RemoveRowCommandId','USER_NOT_INVITED_CODE','ACTIVE_UNIT_EVENT_CHANNEL','formula.calculation.waiting','getFocusedUnit','labelPosition','body','onPointerLeave$','_range','runId','getUndoRedoMutationParamsCache','MOBILE_VERIFY_CODE_MISMATCH','AWAITING_WITH_PENDING','createInstance','join','now','[RemoteUniscriptService]:\x20no\x20focused\x20unit','dispose$','2480726IELEWG','_heartbeatTimer','sheetID','location','MUTATION','source','_initStatusComponent','_transformService','evenodd','height','current','_document','forEach','transform','CURRENT_STATUS_CANNOT_OPERATE','stageInfo','Unknown\x20user','AUTHORIZE_CODE_ILLEGAL','getCurrent','moveTo','_collabCursorController','removeEventListener','unshift','values','FromArray','_context','START_CALCULATION','data','onPointerEnter$','_handleHover','some','random','_monkeyPatchLogService','\x20at\x20','UPDATE_CURSOR','_syncEditingCollabCursorService','entries','startRow','/universer-api/license/formula/limit/done','_registerDependencies','color','getOffsetConfig','add','filename','url(#off-line-icon_clip0_910_343)','getUnitId','_getMergeRange','div','loadUnit','ENTITLE_REPORT_LIMIT_EXCEED','push','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getMemberID','_urlService','_pollingInterval','getMember','ENTITLE_INSUFFICIENT_QUOTA','_updateLocalCursor','_init','hide','getCurrentSelections','black','href','286276xDLckF','tag','_lastResponseTimestamp','bottom','_scheduleSaving','collab-client.tooltip.reconnect','AWAITING','saveOfflineData','USERS_LEAVE','m1Prime','SOCKET_FAILED_RETRY','_hasFormulaInDirtyRanges','textRanges','_draw','LICENSE_DISTRO_REJECTED','row','REDEMPTION_CODE_FULLY_REDEEMED','clearInterval','addObjects','_updateURLWithCurrentState','off-line-icon','message','cursorInfo','toString','sessionStatus$','currentColor','_initStatusListener','_clearPolling','post','_labelPosition','PAYMENT_CHANNEL_NOT_SUPPORT','_docStateChangeManagerService','idSuffix','NO_OTHER_CLIENTS_EDITING','doc.mutation.rich-text-editing','LOGIN_FAILED','send','_initResize','OTHER_CLIENTS_EDITING','transformMutation','PERMISSION_DENIED','5660346LIXuVe','on-line-icon_clip0_910_349','15921411gZTDgJ','_transformHistoryAndStateStack','USER_IS_ANONYMOUS','split','_name','type','path','_entities','SNAPSHOT_HAS_BEEN_REMOVED','collaboration.closeRoom','reason','with','_docClipboardService','font','_selfUnitIDs','sheetId','_color','MoveRangeCommandId','socket$','DeleteRangeMoveUpCommandId','_textBubble','EMAIL_VERIFY_CODE_MISMATCH','setInterval','Loading','_initUnhandledRejectionListener','LICENSE_MAX_UNITS_EXCEEDED','YUUMI_ASYNCIO_CANCELLED','ALREADY_EXISTS','backgroundColor','trim','cursorInfo$','unhandledrejection','string','_memberService','code','_cursorShapes','_configService','ONLINE','getActiveSheet','_colorAssignService','all','_scheduleHeartbeat','_httpService','setAlpha','_instanceService','INVALID_INVITE_CODE','CONFLICT','_localStorageService','_maxFormulaLimit','storage','ERROR_AGAIN','setStateCache','permission.content','_notificationService','7204752WmZwSz','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initUserListener','ENTITLE_USE_COUPON_NOT_1ST_TRADE','#FFF','on-line-icon','[Window\x20Error]:\x20','_status$','collabCursorState$','_cursors','displayName','INTERNAL_ERROR','_collaborationController','setUndoRedoMutationParamsCache','/run/','yellow.400','getTypeOfUnitDisposed$','_onCursorUpdate','off-line-icon_clip0_910_343','_saveCache','focused$','YUUMI_URL_COL_OUT_OF_RANGE','currentTheme$','_memberID','actions','svg','_colorIndex','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','OTHER_CLIENT_EDITING','session.connection-failed','_docTransformIMECacheService','attrs','formula.calculation.unable','110hqLGgE','transformByState','registerRefRange','0\x200\x2016\x2016','rgba(255,\x20255,\x20255,\x200.01)','http://www.w3.org/2000/svg','ENTITLE_COUPON_USED_UP','InsertRangeMoveDownCommandId','mask','map','_handleLeaveEvent','init','[LogService\x20Error]:\x20','getRenderById','assign','parseInt','popstate','Warning','RECT','fill','_sheetSkeletonManagerService','restore','ENSURE_SNAPSHOT_EXECUTION','M0\x200H16V16H0z','round','_initDependencies','3HNJcjJ','SUBMIT_CHANGESET_TIMEOUT','searchParams','_showGuardMessage','subscribeEvent','UNIVER_DOC','releaseFormulaLimitUrl','saveTaskMap','_initEntityListener','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_onRefRangeChange','APPLY_REJECT','getItem','unsubscribe','APPLY_DUPLICATED','_getSessionTicket','addClipboardHook','onRendered','name','_dataLoaderService','catch','currentSkeleton$','application/json','getUniverSheetInstance','isArray','wsSessionTicketUrl','_docTransformSelectionsService','INVITE_CODE_REQUIRED','column','status$','transformRemoteChangeset','getUnhiddenWorksheets','urlChange$','getValue','collabStatus.fetchMiss','dispose','_imageIoService','UNIVER_SHEET','_saveTaskMap','maxFormulaLimit','VIEW_MAIN','DATA_SOURCE_TOO_LARGE','redoState'];_0xda8c=function(){return _0x4292ba;};return _0xda8c();}class tn extends _0x2201af{constructor(_0x1b257f,_0x354849){const _0x23e1db=_0x17441;super(_0x1b257f,_0x354849),_(this,_0x23e1db(0x25e)),_(this,'_hovered',!0x1),_(this,_0x23e1db(0x1da)),_(this,'_name',''),_(this,'_labelPosition',_0x23e1db(0x3a5)),_(this,'_backgroundColor'),(_0x354849&&this[_0x23e1db(0x311)](_0x354849),this['onPointerEnter$'][_0x23e1db(0x2c3)](()=>this[_0x23e1db(0x311)]({'hovered':!0x0})),this['onPointerLeave$'][_0x23e1db(0x2c3)](()=>this[_0x23e1db(0x311)]({'hovered':!0x1})));}['setShapeProps'](_0x17382b){const _0x14b464=_0x17441;var _0x56cf49,_0x46de5e,_0x24c93c,_0x11c9c9,_0xfc3c0b,_0x38fc43;this[_0x14b464(0x25e)]=(_0x56cf49=_0x17382b[_0x14b464(0x20c)])!=null?_0x56cf49:this[_0x14b464(0x25e)],this['_hovered']=(_0x46de5e=_0x17382b[_0x14b464(0x3fe)])!=null?_0x46de5e:this[_0x14b464(0x30f)],this[_0x14b464(0x1da)]=(_0x24c93c=_0x17382b[_0x14b464(0x367)])!=null?_0x24c93c:this['_range'],this[_0x14b464(0x252)]=(_0x11c9c9=_0x17382b[_0x14b464(0x2d1)])!=null?_0x11c9c9:this[_0x14b464(0x252)],this[_0x14b464(0x240)]=(_0xfc3c0b=_0x17382b[_0x14b464(0x1d7)])!=null?_0xfc3c0b:this[_0x14b464(0x240)],this[_0x14b464(0x345)]=(_0x38fc43=_0x17382b[_0x14b464(0x26a)])!=null?_0x38fc43:this['_backgroundColor'],this[_0x14b464(0x2a6)]({'width':_0x17382b[_0x14b464(0x40d)],'height':_0x17382b[_0x14b464(0x1ed)]});}[_0x17441(0x326)](_0x3e045d){const _0x4db719=_0x17441,{row:_0x5d59f4,column:_0x2f4c39}=_0x3e045d;if(_0x5d59f4>=this['_range'][_0x4db719(0x209)]&&_0x5d59f4<=this[_0x4db719(0x1da)][_0x4db719(0x37e)]&&_0x2f4c39>=this[_0x4db719(0x1da)]['startColumn']&&_0x2f4c39<=this['_range'][_0x4db719(0x370)]){this[_0x4db719(0x311)]({'hovered':!0x0});return;}this[_0x4db719(0x311)]({'hovered':!0x1});}[_0x17441(0x3bf)](_0x45dbd5){return!0x1;}[_0x17441(0x230)](_0x154fdc){const _0x377826=_0x17441;_0xfc853d[_0x377826(0x34c)](_0x154fdc,{'width':this[_0x377826(0x40d)],'height':this[_0x377826(0x1ed)],'strokeWidth':en,'stroke':this[_0x377826(0x25e)],'evented':!0x1,'fill':this[_0x377826(0x345)]}),this['_hovered']&&(_0x154fdc[_0x377826(0x38f)](),_0x154fdc[_0x377826(0x1f1)](0x1,0x0,0x0,0x1,this['width'],this[_0x377826(0x240)]===_0x377826(0x226)?0x0:-Q),ve[_0x377826(0x34c)](_0x154fdc,{'text':this[_0x377826(0x252)],'color':this[_0x377826(0x25e)]}),_0x154fdc[_0x377826(0x2ba)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x3c7708,_0x134dfc,_0x3c1475,_0x9c4daf)=>{for(var _0x440c02=_0x9c4daf>0x1?void 0x0:_0x9c4daf?sn(_0x134dfc,_0x3c1475):_0x134dfc,_0x21b127=_0x3c7708['length']-0x1,_0xb6c471;_0x21b127>=0x0;_0x21b127--)(_0xb6c471=_0x3c7708[_0x21b127])&&(_0x440c02=_0xb6c471(_0x440c02)||_0x440c02);return _0x440c02;},be=(_0x149281,_0x1606d1)=>(_0x47387b,_0x85e974)=>_0x1606d1(_0x47387b,_0x85e974,_0x149281);const rn=0x1389;let ke=class extends _0x3983c8{constructor(_0x362b40,_0x4ae6cf,_0x40321f,_0x4126ee){const _0x34ad9e=_0x17441;super(),_(this,_0x34ad9e(0x28d),new Set()),_(this,_0x34ad9e(0x36d),null),(this[_0x34ad9e(0x1fd)]=_0x362b40,this[_0x34ad9e(0x2b9)]=_0x4ae6cf,this[_0x34ad9e(0x1f8)]=_0x40321f,this[_0x34ad9e(0x32e)]=_0x4126ee,this[_0x34ad9e(0x21e)]());}['_init'](){const _0x544d72=_0x17441;this['_sheetSkeletonManagerService'][_0x544d72(0x2d4)]['pipe'](_0x54819d(this[_0x544d72(0x1e3)]),_0x421e17(_0x2c65d7=>{const _0x1bc48d=_0x544d72;if(_0x2c65d7){const _0x1a6900=_0x2c65d7[_0x1bc48d(0x25d)];return _0x2856f5(this[_0x1bc48d(0x1f8)]['getCollabCursors$'](this[_0x1bc48d(0x1fd)][_0x1bc48d(0x388)]),this[_0x1bc48d(0x32e)]['currentTheme$'])[_0x1bc48d(0x38a)](_0x595000(([_0x1887b1,_0x3f7841])=>{const _0x51ffda=new Map();return _0x1887b1['forEach']((_0x1a985a,_0x472ab2)=>{const _0x2f75af=_0x5a49;if(_0x1a985a[_0x2f75af(0x1e6)]===_0x1a6900){const _0x3d0d27={..._0x1a985a};_0x3d0d27[_0x2f75af(0x20c)]=this['_themeService'][_0x2f75af(0x2f3)](_0x1a985a[_0x2f75af(0x20c)]),_0x51ffda[_0x2f75af(0x397)](_0x472ab2,_0x3d0d27);}}),{'skeleton':_0x2c65d7,'cursors':_0x51ffda};}));}return _0x2e1bc9({'skeleton':null,'cursors':new Map()});}))[_0x544d72(0x404)](({skeleton:_0x53c5a8,cursors:_0x44ac07})=>{const _0x39dba9=_0x544d72;this[_0x39dba9(0x3e4)](),_0x53c5a8&&this['_updateCollabCursors'](_0x53c5a8,_0x44ac07);}),this[_0x544d72(0x2b9)][_0x544d72(0x2d4)][_0x544d72(0x404)](_0x238492=>{const _0x4857d4=_0x544d72;if(_0x238492==null)return;const {skeleton:_0xfa3dc7}=_0x238492,{scene:_0x17e813}=this['_context'];_0x17e813['onPointerMove$'][_0x4857d4(0x2c3)](_0x97d37a(_0x63553=>{const _0x44c2a1=_0x4857d4;var _0x4f8b7a,_0x5dad98;const {offsetX:_0x1ab2fc,offsetY:_0x13e448}=_0x63553,{x:_0x1b9665,y:_0x4b7969}=_0x17e813[_0x44c2a1(0x391)](_0x4aff26[_0x44c2a1(0x1fc)]([_0x1ab2fc,_0x13e448])),{scaleX:_0x1398e4,scaleY:_0x90bd74}=_0x17e813[_0x44c2a1(0x329)](),_0x3c659e=_0x17e813[_0x44c2a1(0x353)](_0x38f6bd[_0x44c2a1(0x2e7)]),_0x44d5e9=_0x17e813['getVpScrollXYInfoByPosToVp'](_0x4aff26[_0x44c2a1(0x1fc)]([_0x1b9665,_0x4b7969]),_0x3c659e),_0x3a790e=_0xfa3dc7[_0x44c2a1(0x313)](_0x1ab2fc,_0x13e448,_0x1398e4,_0x90bd74,_0x44d5e9);((_0x4f8b7a=this[_0x44c2a1(0x36d)])==null?void 0x0:_0x4f8b7a['column'])===_0x3a790e[_0x44c2a1(0x2db)]&&((_0x5dad98=this['_lastPointer'])==null?void 0x0:_0x5dad98[_0x44c2a1(0x232)])===_0x3a790e[_0x44c2a1(0x232)]||this[_0x44c2a1(0x28d)]['forEach'](_0x18b887=>{const _0x3ec6e4=_0x44c2a1;_0x18b887[_0x3ec6e4(0x326)](_0x3a790e);});},0x64));});}[_0x17441(0x328)](_0x1499ec,_0x5ac802){const _0x3b852c=_0x17441;var _0x2ae8c3;const _0xcf4680=(_0x2ae8c3=this[_0x3b852c(0x2b9)][_0x3b852c(0x1f6)]())==null?void 0x0:_0x2ae8c3[_0x3b852c(0x3d8)];if(!_0xcf4680)return;const _0x50dfcf=this[_0x3b852c(0x305)]();if(!_0x50dfcf)return;this[_0x3b852c(0x28d)][_0x3b852c(0x1f0)](_0x467553=>{const _0x376971=_0x3b852c;_0x467553[_0x376971(0x39f)]();});const {scene:_0x48352d}=_0x50dfcf,_0x22f985=on(Array[_0x3b852c(0x33f)](_0x5ac802[_0x3b852c(0x1fb)]()))[_0x3b852c(0x2ae)](_0x53a5bb=>{const _0x280001=_0x3b852c,{color:_0x588354,range:_0x2ed067,name:_0x2ae6b8,selection:_0x19de9c,sheetID:_0x4943d9}=_0x53a5bb,{startColumn:_0x3e8c4d,startRow:_0x137cbb,endColumn:_0x99e3ed,endRow:_0x2a6e7b}=_0x2ed067,_0x5b7aa7=_0xbf0559(_0x137cbb,_0x3e8c4d,_0x48352d,_0xcf4680),_0x2e9f25=_0xbf0559(_0x2a6e7b,_0x99e3ed,_0x48352d,_0xcf4680),{columnHeaderHeightAndMarginTop:_0x4374fd}=_0xcf4680,{startX:_0x5dc888,startY:_0x16cea3}=_0x5b7aa7,{endX:_0x6047f1,endY:_0xfbea8b}=_0x2e9f25,_0x29a49e=_0x6047f1-_0x5dc888,_0x3c9dd0=_0xfbea8b-_0x16cea3,_0x3947ad={'labelPosition':_0x16cea3-_0x4374fd>=Q?_0x280001(0x3a5):'bottom','sheetID':_0x4943d9,'range':_0x2ed067,'color':_0x588354,'name':_0x2ae6b8,'selection':_0x19de9c,'left':_0x5dc888,'top':_0x16cea3,'width':_0x29a49e,'height':_0x3c9dd0,'evented':!0x1,'zIndex':rn};return new tn(_0x2ae6b8,_0x3947ad);});_0x48352d[_0x3b852c(0x235)](_0x22f985,qi),this[_0x3b852c(0x28d)]=new Set(_0x22f985);}['_removeCollabCursors'](){const _0x513551=_0x17441;var _0x1b9760;(_0x1b9760=this[_0x513551(0x28d)])==null||_0x1b9760['forEach'](_0x4aa51c=>_0x4aa51c[_0x513551(0x2e2)]());}[_0x17441(0x305)](){const _0x53ca3a=_0x17441;return _0x5d6885(this[_0x53ca3a(0x1fd)][_0x53ca3a(0x350)],this['_context']);}};ke=nn([be(0x1,_0x52728a(_0x143a1d)),be(0x2,_0x52728a(H)),be(0x3,_0x52728a(_0x24adad))],ke);function on(_0x575368){const _0x521c03=_0x17441,_0x3e3b98=new Map();return _0x575368[_0x521c03(0x1f0)](_0x5afdab=>{const _0x2ec330=_0x521c03;if(_0x3e3b98[_0x2ec330(0x37b)](_0x5afdab[_0x2ec330(0x3ef)])){const _0x5ddffb=_0x3e3b98['get'](_0x5afdab[_0x2ec330(0x3ef)]);_0x5ddffb[_0x2ec330(0x2d1)]+=',\x20'+_0x5afdab['name'];}else _0x3e3b98[_0x2ec330(0x397)](_0x5afdab[_0x2ec330(0x3ef)],_0x5afdab);}),Array[_0x521c03(0x33f)](_0x3e3b98[_0x521c03(0x1fb)]());}var an=Object[_0x17441(0x421)],cn=(_0x2d2549,_0x44cf1f,_0x571809,_0x47d128)=>{const _0xb31cca=_0x17441;for(var _0x1e1ec0=_0x47d128>0x1?void 0x0:_0x47d128?an(_0x44cf1f,_0x571809):_0x44cf1f,_0x16451e=_0x2d2549[_0xb31cca(0x408)]-0x1,_0x34766f;_0x16451e>=0x0;_0x16451e--)(_0x34766f=_0x2d2549[_0x16451e])&&(_0x1e1ec0=_0x34766f(_0x1e1ec0)||_0x1e1ec0);return _0x1e1ec0;},F=(_0x1dcdf4,_0x2ef360)=>(_0x306818,_0x31dd85)=>_0x2ef360(_0x306818,_0x31dd85,_0x1dcdf4);let _e=class extends _0x5152e2{constructor(_0x1a466d,_0x3bbf58,_0x122a4c,_0x5f2135,_0xcabb78,_0x58bc26){const _0x2d384c=_0x17441;super(),this[_0x2d384c(0x3c9)]=_0x1a466d,this['_localCacheService']=_0x3bbf58,this[_0x2d384c(0x2ff)]=_0x122a4c,this[_0x2d384c(0x32a)]=_0x5f2135,this[_0x2d384c(0x283)]=_0xcabb78,this[_0x2d384c(0x423)]=_0x58bc26,this['_setupBeforeClosingHandler'](),this[_0x2d384c(0x316)]();}[_0x17441(0x3a0)](){const _0x425a29=_0x17441;this[_0x425a29(0x380)](this[_0x425a29(0x3c9)]['registerBeforeClose'](()=>{const _0x6cdee7=_0x425a29;if(this['_localCacheService'][_0x6cdee7(0x2c6)][_0x6cdee7(0x2ec)])return this[_0x6cdee7(0x423)]['t'](_0x6cdee7(0x2fc));}));}[_0x17441(0x316)](){const _0x28e42d=_0x17441;this['disposeWithMe'](this[_0x28e42d(0x2ff)][_0x28e42d(0x420)][_0x28e42d(0x404)](_0x3f2b25=>{const _0x3a202d=_0x28e42d;_0x3f2b25['id']===_0x259c4a[_0x3a202d(0x2a0)]&&this[_0x3a202d(0x32a)][_0x3a202d(0x3b7)]({'type':_0x1d1199[_0x3a202d(0x2b6)],'content':this[_0x3a202d(0x423)]['t'](_0x3a202d(0x3f3))}),_0x3f2b25['id']===_0x259c4a['CLOSE_ROOM']&&this[_0x3a202d(0x32a)][_0x3a202d(0x3b7)]({'type':_0x1d1199['Warning'],'content':this[_0x3a202d(0x423)]['t']('collaboration.closeRoom')}),_0x3f2b25['id']===_0x259c4a[_0x3a202d(0x24b)]&&this['_notificationService'][_0x3a202d(0x3b7)]({'title':this['_localeService']['t'](_0x3a202d(0x3a6)),'content':this[_0x3a202d(0x423)]['t'](_0x3a202d(0x282)),'type':_0x3a202d(0x3f0),'duration':0x0}),_0x3f2b25['id']===_0x259c4a[_0x3a202d(0x27c)]&&this[_0x3a202d(0x32a)][_0x3a202d(0x3b7)]({'type':_0x1d1199['Error'],'content':this[_0x3a202d(0x423)]['t'](_0x3a202d(0x257))+'('+_0x3f2b25[_0x3a202d(0x1ff)]+')'}),_0x3f2b25['id']===_0x259c4a[_0x3a202d(0x383)]&&this[_0x3a202d(0x32a)][_0x3a202d(0x3b7)]({'type':_0x1d1199['Warning'],'content':this[_0x3a202d(0x423)]['t'](_0x3f2b25[_0x3a202d(0x1ff)]||'')}),_0x3f2b25['id']===_0x259c4a[_0x3a202d(0x22d)]&&this[_0x3a202d(0x32a)][_0x3a202d(0x3b7)]({'type':_0x1d1199[_0x3a202d(0x2b6)],'content':this[_0x3a202d(0x423)]['t']('session.will-retry')}),_0x3f2b25['id']===_0x259c4a['SOCKET_FAILED']&&this[_0x3a202d(0x32a)][_0x3a202d(0x3b7)]({'type':_0x1d1199['Error'],'content':this[_0x3a202d(0x423)]['t'](_0x3a202d(0x2a1))}),_0x3f2b25['id']===_0x259c4a[_0x3a202d(0x2c0)]&&this[_0x3a202d(0x32a)]['show']({'type':_0x1d1199[_0x3a202d(0x34d)],'content':this[_0x3a202d(0x423)]['t'](_0x3a202d(0x401))});}));}};_e=cn([F(0x0,_0x448cc3),F(0x1,_0x4cad26),F(0x2,_0x52728a(_0x2e2785)),F(0x3,_0x4a1a2a),F(0x4,_0x175601),F(0x5,_0x52728a(_0x29ab17))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x4aaa77,_0x679a8f,_0x26be2a,_0x450a33)=>{for(var _0x35a5dd=_0x450a33>0x1?void 0x0:_0x450a33?_n(_0x679a8f,_0x26be2a):_0x679a8f,_0x5ebbf0=_0x4aaa77['length']-0x1,_0x22736d;_0x5ebbf0>=0x0;_0x5ebbf0--)(_0x22736d=_0x4aaa77[_0x5ebbf0])&&(_0x35a5dd=_0x22736d(_0x35a5dd)||_0x35a5dd);return _0x35a5dd;},ne=(_0x30632f,_0x2f9aab)=>(_0x319ccb,_0x195198)=>_0x2f9aab(_0x319ccb,_0x195198,_0x30632f);let le=class extends _0x5152e2{constructor(_0x34a8dd,_0x5f4032,_0x219cee,_0x16be65){const _0x417261=_0x17441;super(),_(this,_0x417261(0x29b)),(this[_0x417261(0x3ab)]=_0x34a8dd,this[_0x417261(0x278)]=_0x5f4032,this[_0x417261(0x34b)]=_0x219cee,this['_collaborationSessionService']=_0x16be65,this['_init']());}[_0x17441(0x21e)](){const _0x9187cd=_0x17441;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x9187cd(0x204)](),this[_0x9187cd(0x286)]();}[_0x17441(0x286)](){const _0x1dc7b3=_0x17441;this[_0x1dc7b3(0x380)](this[_0x1dc7b3(0x3e9)][_0x1dc7b3(0x260)][_0x1dc7b3(0x404)](_0x44df68=>{const _0x2f3224=_0x1dc7b3;this[_0x2f3224(0x29b)]=_0x44df68==null?void 0x0:_0x44df68[_0x2f3224(0x321)];}));}[_0x17441(0x33c)](){const _0x477a40=_0x17441,_0x363866=_0x12e1fe=>{const _0x36cec9=_0x5a49;var _0x4f5f32;this['_uploadLog'](_0x36cec9(0x3f0),_0x36cec9(0x28a)+_0x12e1fe[_0x36cec9(0x238)]+_0x36cec9(0x205)+_0x12e1fe[_0x36cec9(0x20f)]+':'+_0x12e1fe['lineno']+':'+_0x12e1fe['colno']+'\x0a'+(((_0x4f5f32=_0x12e1fe[_0x36cec9(0x3f0)])==null?void 0x0:_0x4f5f32['stack'])||''));};window['addEventListener'](_0x477a40(0x3f0),_0x363866),this[_0x477a40(0x380)](()=>{const _0x3e18bb=_0x477a40;window[_0x3e18bb(0x1f9)](_0x3e18bb(0x3f0),_0x363866);});}[_0x17441(0x266)](){const _0x164f40=_0x17441,_0x4abfb3=_0x58eb77=>{const _0x12388f=_0x5a49;this[_0x12388f(0x382)](_0x12388f(0x3f0),_0x12388f(0x35c)+_0x58eb77[_0x12388f(0x258)]);};window['addEventListener'](_0x164f40(0x26d),_0x4abfb3),this[_0x164f40(0x380)](()=>{window['removeEventListener']('unhandledrejection',_0x4abfb3);});}[_0x17441(0x204)](){const _0x201a35=_0x17441,_0x5a89a9=this[_0x201a35(0x34b)][_0x201a35(0x3f0)]['bind'](this[_0x201a35(0x34b)]);this[_0x201a35(0x34b)][_0x201a35(0x3f0)]=(..._0x35b780)=>{const _0x181274=_0x201a35,_0x47b592=_0x35b780['map'](_0x5b1dcd=>_0x5b1dcd instanceof Error?_0x5b1dcd[_0x181274(0x238)]+'\x0a'+_0x5b1dcd['stack']:String(_0x5b1dcd))[_0x181274(0x1e0)]('\x20');this[_0x181274(0x382)](_0x181274(0x3f0),_0x181274(0x2b1)+_0x47b592),_0x5a89a9(..._0x35b780);},this[_0x201a35(0x380)](()=>{const _0x428a30=_0x201a35;this[_0x428a30(0x34b)][_0x428a30(0x3f0)]=_0x5a89a9;});}[_0x17441(0x382)](_0x5101a9,_0x16a877){const _0x5321a5=_0x17441;try{const _0x2ffa64={'userId':this[_0x5321a5(0x29b)],'logLabel':_0x5101a9,'content':_0x16a877};this['_httpService'][_0x5321a5(0x23f)](_0x5321a5(0x3d3),{'body':_0x2ffa64})[_0x5321a5(0x2d3)](()=>{});}catch{}}};le=ln([ne(0x0,_0x52728a(_0x54baa5)),ne(0x1,_0x52728a(_0x1c17b1)),ne(0x2,_0x3d294c),ne(0x3,_0x52728a(_0x423098))],le);const hn=_0x17441(0x36c),_t={};var un=Object[_0x17441(0x421)],dn=(_0x65db25,_0x50156c,_0x3de5de,_0x403fa9)=>{for(var _0x41d1ef=_0x403fa9>0x1?void 0x0:_0x403fa9?un(_0x50156c,_0x3de5de):_0x50156c,_0x20358f=_0x65db25['length']-0x1,_0x42e5d0;_0x20358f>=0x0;_0x20358f--)(_0x42e5d0=_0x65db25[_0x20358f])&&(_0x41d1ef=_0x42e5d0(_0x41d1ef)||_0x41d1ef);return _0x41d1ef;},lt=(_0x5a44c6,_0x562e99)=>(_0x233701,_0x4c28b2)=>_0x562e99(_0x233701,_0x4c28b2,_0x5a44c6);let he=class{constructor(_0x1b5bba,_0x25b5fd){const _0x41f3c2=_0x17441;this[_0x41f3c2(0x1eb)]=_0x1b5bba,this[_0x41f3c2(0x3a3)]=_0x25b5fd;}[_0x17441(0x3cd)](_0x5a4c48){const _0x5b8a2c=_0x17441;this[_0x5b8a2c(0x2f5)](_0x5a4c48),this[_0x5b8a2c(0x3a7)](_0x5a4c48);}[_0x17441(0x2dd)](_0x583870){const _0x1bf223=_0x17441,{unitID:_0x356add}=_0x583870,_0xd50d15=this['_renderManagerService']['getRenderById'](_0x356add)['with'](_0x17d1c5),{redoCache:_0x35a2b1}=_0xd50d15[_0x1bf223(0x1dc)]();if(_0x35a2b1[_0x1bf223(0x408)]===0x0)return _0x583870;let _0x4abf9c=_0x2d5aaf['deepClone'](_0x583870[_0x1bf223(0x3e1)][0x0]);for(let _0x51aa5e=0x0;_0x51aa5e<_0x35a2b1['length'];_0x51aa5e++){const _0x30b6ad={'id':'doc.mutation.rich-text-editing','params':{..._0x35a2b1[_0x51aa5e]}},_0x232d59=this[_0x1bf223(0x1eb)][_0x1bf223(0x24a)](_0x4abf9c,_0x30b6ad,!0x1);if(_0x4a621a(_0x232d59))throw _0x232d59[_0x1bf223(0x3f0)];_0x4abf9c=_0x232d59[_0x1bf223(0x22c)];}return{..._0x2d5aaf[_0x1bf223(0x41f)](_0x583870),'mutations':[_0x4abf9c]};}[_0x17441(0x2f5)](_0x4a1071){const _0x56b95f=_0x17441,{unitID:_0x2f64fd}=_0x4a1071,_0x18d5d9=this[_0x56b95f(0x3a3)][_0x56b95f(0x2b2)](_0x2f64fd)[_0x56b95f(0x259)](_0x17d1c5),{undoCache:_0x59af4c,redoCache:_0x4e0777}=_0x18d5d9[_0x56b95f(0x1dc)]();if(_0x59af4c['length']===0x0||_0x4e0777['length']===0x0)return;const _0xe8dde6=[],_0x3c40e5=[];let _0x4202bd=_0x2d5aaf['deepClone'](_0x4a1071[_0x56b95f(0x3e1)][0x0]),_0x3a669d=_0x2d5aaf['deepClone'](_0x4a1071[_0x56b95f(0x3e1)][0x0]);for(let _0x28d7ac=_0x59af4c[_0x56b95f(0x408)]-0x1;_0x28d7ac>=0x0;_0x28d7ac--){const _0x4f71da={'id':'doc.mutation.rich-text-editing','params':{..._0x59af4c[_0x28d7ac]}},_0x13261c={'id':_0x56b95f(0x245),'params':{..._0x4e0777[_0x28d7ac]}},_0x3c3f72=this['_transformService'][_0x56b95f(0x24a)](_0x4202bd,_0x4f71da,!0x1),_0x4bbaeb=this['_transformService'][_0x56b95f(0x24a)](_0x3a669d,_0x13261c,!0x1);if(_0x4a621a(_0x3c3f72))throw _0x3c3f72['error'];if(_0x4a621a(_0x4bbaeb))throw _0x4bbaeb['error'];_0xe8dde6[_0x56b95f(0x1fa)](_0x3c3f72['m2Prime'][_0x56b95f(0x39d)]),_0x3c40e5['unshift'](_0x4bbaeb[_0x56b95f(0x3ce)][_0x56b95f(0x39d)]),_0x4202bd=_0x3c3f72[_0x56b95f(0x22c)],_0x3a669d=_0x4bbaeb[_0x56b95f(0x22c)];}_0x18d5d9[_0x56b95f(0x291)]({'undoCache':_0xe8dde6,'redoCache':_0x3c40e5});}[_0x17441(0x3a7)](_0x3a2ed0){const _0x313a8f=_0x17441,{unitID:_0x152d5a}=_0x3a2ed0,_0x401d8e=this['_renderManagerService'][_0x313a8f(0x2b2)](_0x152d5a)[_0x313a8f(0x259)](_0x17d1c5),_0x183e01=_0x401d8e['getActiveRange']();if(_0x183e01==null)return;const _0x509243=[{'id':_0x313a8f(0x245),'params':{'unitId':_0x3a2ed0['unitID'],'actions':null,'textRanges':[_0x183e01]}}],_0x29d6fb=this[_0x313a8f(0x1eb)][_0x313a8f(0x2f1)](_0x3a2ed0,_0x509243);if(!_0x1c2e6f(_0x29d6fb))throw _0x29d6fb[_0x313a8f(0x3f0)];const _0x3aca95=_0x29d6fb[_0x313a8f(0x3ce)][0x0]['params'][_0x313a8f(0x22f)];Array[_0x313a8f(0x2d7)](_0x3aca95)&&_0x3aca95[_0x313a8f(0x408)]&&_0x401d8e[_0x313a8f(0x3c3)](_0x3aca95[0x0]);}};he=dn([lt(0x0,_0x2e9b71),lt(0x1,_0x3ef114)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x406546,_0x5c2c4c,_0x102941,_0x35730e)=>{for(var _0x1e7379=_0x35730e>0x1?void 0x0:_0x35730e?Sn(_0x5c2c4c,_0x102941):_0x5c2c4c,_0x5edf97=_0x406546['length']-0x1,_0x5d4ff4;_0x5edf97>=0x0;_0x5edf97--)(_0x5d4ff4=_0x406546[_0x5edf97])&&(_0x1e7379=_0x5d4ff4(_0x1e7379)||_0x1e7379);return _0x1e7379;},Le=(_0x5010c7,_0x3c7a6a)=>(_0x356611,_0x1d97d0)=>_0x3c7a6a(_0x356611,_0x1d97d0,_0x5010c7);let ue=class{constructor(_0x1014e1,_0x769b0c,_0x5f1746){const _0x47f445=_0x17441;this[_0x47f445(0x3ab)]=_0x1014e1,this[_0x47f445(0x1eb)]=_0x769b0c,this[_0x47f445(0x242)]=_0x5f1746;}[_0x17441(0x3be)](_0x56b364){const _0xf4387a=_0x17441;this[_0xf4387a(0x24f)](_0x56b364);}[_0x17441(0x2dd)](_0x33c0c8){const _0x34a065=_0x17441,{unitID:_0x45484f}=_0x33c0c8,{collaboration:_0x4b5633}=this['_docStateChangeManagerService'][_0x34a065(0x3c6)](_0x45484f);if(_0x4b5633[_0x34a065(0x408)]===0x0)return _0x33c0c8;let _0x176ba0=_0x2d5aaf[_0x34a065(0x41f)](_0x33c0c8[_0x34a065(0x3e1)][0x0]);for(let _0x11c7d8=0x0;_0x11c7d8<_0x4b5633[_0x34a065(0x408)];_0x11c7d8++){const _0x4f5a69={'id':_0x34a065(0x245),'params':{'unitId':_0x4b5633[_0x11c7d8][_0x34a065(0x388)],..._0x4b5633[_0x11c7d8]['redoState']}},_0x375ac4=this[_0x34a065(0x1eb)]['transformMutation'](_0x176ba0,_0x4f5a69,!0x1);if(_0x4a621a(_0x375ac4))throw _0x375ac4[_0x34a065(0x3f0)];_0x176ba0=_0x375ac4['m1Prime'];}return{..._0x2d5aaf[_0x34a065(0x41f)](_0x33c0c8),'mutations':[_0x176ba0]};}['_transformHistoryAndStateStack'](_0x1617be){const _0x2312ae=_0x17441,{unitID:_0x52d855}=_0x1617be,{history:_0x197b16,collaboration:_0x175ffc}=this[_0x2312ae(0x242)]['getStateCache'](_0x52d855);if(_0x197b16[_0x2312ae(0x408)]===0x0&&_0x175ffc[_0x2312ae(0x408)]===0x0)return;const _0x47b980=[],_0x5a1564=[];let _0x12a9d7=_0x2d5aaf['deepClone'](_0x1617be[_0x2312ae(0x3e1)][0x0]),_0x3c3604=_0x2d5aaf[_0x2312ae(0x41f)](_0x1617be[_0x2312ae(0x3e1)][0x0]);for(let _0x3b4835=_0x197b16[_0x2312ae(0x408)]-0x1;_0x3b4835>=0x0;_0x3b4835--){const _0x44c798={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x197b16[_0x3b4835][_0x2312ae(0x388)],..._0x197b16[_0x3b4835][_0x2312ae(0x3ec)]}},_0x80bfed={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x197b16[_0x3b4835][_0x2312ae(0x388)],..._0x197b16[_0x3b4835]['redoState']}},_0x1313d4=this[_0x2312ae(0x1eb)][_0x2312ae(0x24a)](_0x12a9d7,_0x44c798,!0x1),_0x20d38c=this[_0x2312ae(0x1eb)][_0x2312ae(0x24a)](_0x3c3604,_0x80bfed,!0x1);if(_0x4a621a(_0x1313d4))throw _0x1313d4[_0x2312ae(0x3f0)];if(_0x4a621a(_0x20d38c))throw _0x20d38c[_0x2312ae(0x3f0)];_0x47b980[_0x2312ae(0x1fa)]({..._0x197b16[_0x3b4835],'undoState':_0x1313d4[_0x2312ae(0x3ce)][_0x2312ae(0x39d)],'redoState':_0x20d38c[_0x2312ae(0x3ce)]['params']}),_0x12a9d7=_0x1313d4[_0x2312ae(0x22c)],_0x3c3604=_0x20d38c[_0x2312ae(0x22c)];}_0x12a9d7=_0x2d5aaf['deepClone'](_0x1617be[_0x2312ae(0x3e1)][0x0]),_0x3c3604=_0x2d5aaf[_0x2312ae(0x41f)](_0x1617be['mutations'][0x0]);for(let _0x56cf63=_0x175ffc[_0x2312ae(0x408)]-0x1;_0x56cf63>=0x0;_0x56cf63--){const _0x3121cc={'id':_0x2312ae(0x245),'params':{'unitId':_0x175ffc[_0x56cf63]['unitId'],..._0x175ffc[_0x56cf63]['undoState']}},_0x1c4e8c={'id':_0x2312ae(0x245),'params':{'unitId':_0x175ffc[_0x56cf63][_0x2312ae(0x388)],..._0x175ffc[_0x56cf63][_0x2312ae(0x2e9)]}},_0x4e6b9d=this[_0x2312ae(0x1eb)][_0x2312ae(0x24a)](_0x12a9d7,_0x3121cc,!0x1),_0x14067a=this['_transformService'][_0x2312ae(0x24a)](_0x3c3604,_0x1c4e8c,!0x1);if(_0x4a621a(_0x4e6b9d))throw _0x4e6b9d['error'];if(_0x4a621a(_0x14067a))throw _0x14067a[_0x2312ae(0x3f0)];_0x5a1564[_0x2312ae(0x1fa)]({..._0x175ffc[_0x56cf63],'undoState':_0x4e6b9d[_0x2312ae(0x3ce)][_0x2312ae(0x39d)],'redoState':_0x14067a[_0x2312ae(0x3ce)]['params']}),_0x12a9d7=_0x4e6b9d['m1Prime'],_0x3c3604=_0x14067a[_0x2312ae(0x22c)];}this[_0x2312ae(0x242)][_0x2312ae(0x281)](_0x52d855,{'history':_0x47b980,'collaboration':_0x5a1564});}};ue=In([Le(0x0,_0x52728a(_0x54baa5)),Le(0x1,_0x2e9b71),Le(0x2,_0x52728a(_0x379fa4))],ue);var mn=Object[_0x17441(0x421)],fn=(_0x6e0ed2,_0x420b24,_0x3705c9,_0x395fd0)=>{for(var _0x420508=_0x395fd0>0x1?void 0x0:_0x395fd0?mn(_0x420b24,_0x3705c9):_0x420b24,_0x380f6c=_0x6e0ed2['length']-0x1,_0x19db0b;_0x380f6c>=0x0;_0x380f6c--)(_0x19db0b=_0x6e0ed2[_0x380f6c])&&(_0x420508=_0x19db0b(_0x420508)||_0x420508);return _0x420508;},ht=(_0x407e89,_0x20df6d)=>(_0x3842bb,_0x312322)=>_0x20df6d(_0x3842bb,_0x312322,_0x407e89);let de=class{constructor(_0x5ce0ca,_0x26e4c8){const _0x3e00f3=_0x17441;this[_0x3e00f3(0x3ab)]=_0x5ce0ca,this[_0x3e00f3(0x1eb)]=_0x26e4c8;}[_0x17441(0x3c5)](_0x21f576){const _0x584b1f=_0x17441;var _0x5c9ef8;const _0xf49616=this[_0x584b1f(0x3ab)]['get'](_0x1f1d95),_0x37230d=(_0x5c9ef8=_0xf49616[_0x584b1f(0x31f)]())!=null?_0x5c9ef8:[];if(_0x37230d[_0x584b1f(0x408)]===0x0)return;const _0x448092=_0x21f576[_0x584b1f(0x38c)],_0x385f31=[{'id':_0x584b1f(0x245),'params':{'unitId':_0x448092,'actions':null,'textRanges':_0x37230d}}],_0x4628a8=this[_0x584b1f(0x1eb)][_0x584b1f(0x2f1)](_0x21f576,_0x385f31);if(!_0x1c2e6f(_0x4628a8))throw _0x4628a8[_0x584b1f(0x3f0)];const _0x224d7e=_0x4628a8['m2Prime'][0x0]['params'][_0x584b1f(0x22f)];Array[_0x584b1f(0x2d7)](_0x224d7e)&&_0x224d7e[_0x584b1f(0x408)]&&_0xf49616[_0x584b1f(0x356)](_0x224d7e,{'unitId':_0x448092,'subUnitId':_0x448092},!0x1);}};de=fn([ht(0x0,_0x52728a(_0x54baa5)),ht(0x1,_0x2e9b71)],de);var gn=Object[_0x17441(0x421)],En=(_0x460ee1,_0x28582e,_0x1630e8,_0x17878a)=>{const _0x2aee15=_0x17441;for(var _0x337ff7=_0x17878a>0x1?void 0x0:_0x17878a?gn(_0x28582e,_0x1630e8):_0x28582e,_0x540e6e=_0x460ee1[_0x2aee15(0x408)]-0x1,_0x52f0c3;_0x540e6e>=0x0;_0x540e6e--)(_0x52f0c3=_0x460ee1[_0x540e6e])&&(_0x337ff7=_0x52f0c3(_0x337ff7)||_0x337ff7);return _0x337ff7;},U=(_0x3e5e04,_0x226c78)=>(_0x4bded3,_0x35ff57)=>_0x226c78(_0x4bded3,_0x35ff57,_0x3e5e04);let Se=class extends _0x5152e2{constructor(_0x4e82d1,_0x4769b0,_0x1c954a,_0x1badd5,_0x2b343c,_0x51e754,_0x13ff21,_0x449503){const _0xa5e2c5=_0x17441;super(),_(this,_0xa5e2c5(0x28b),new _0x1eaaea(_0x5dfcae[_0xa5e2c5(0x354)])),(this['_docStateChangeManagerService']=_0x4e82d1,this[_0xa5e2c5(0x290)]=_0x4769b0,this[_0xa5e2c5(0x2a2)]=_0x1c954a,this[_0xa5e2c5(0x407)]=_0x1badd5,this[_0xa5e2c5(0x2d9)]=_0x2b343c,this[_0xa5e2c5(0x2fa)]=_0x51e754,this[_0xa5e2c5(0x32a)]=_0x13ff21,this['_localeService']=_0x449503,this[_0xa5e2c5(0x2c7)]());}[_0x17441(0x2c7)](){const _0x311932=_0x17441;this[_0x311932(0x380)](this['_collaborationController'][_0x311932(0x385)][_0x311932(0x404)](_0x1f63f4=>{const _0x4389f7=_0x311932,_0x29ae32=this[_0x4389f7(0x242)][_0x4389f7(0x312)]['subscribe'](_0x4dc80d=>{const _0x1af781=_0x4389f7;if(_0x4dc80d==null)return;const {unitId:_0x16403e,redoState:_0x3a0497,commandId:_0x2bcfe4}=_0x4dc80d;if(_0x16403e!==_0x1f63f4[_0x1af781(0x38c)])return;const _0x9821c6={'id':_0x2bcfe4,'type':_0x13e38e[_0x1af781(0x1e8)],'params':{'unitId':_0x16403e,'actions':_0x3a0497[_0x1af781(0x29c)],'textRanges':null}};_0x1f63f4[_0x1af781(0x36b)](_0x9821c6);});if(_0x1f63f4[_0x4389f7(0x380)](_0x29ae32),_0x1f63f4 instanceof _0x1f0a78){const _0x3bce27={'onTransformIME':_0x49e8ac=>this[_0x4389f7(0x2a2)]['transformIMECache'](_0x49e8ac),'onTransformState':_0x597799=>this[_0x4389f7(0x407)][_0x4389f7(0x3be)](_0x597799),'onTransformSelections':_0x4f5968=>this[_0x4389f7(0x2d9)][_0x4389f7(0x3c5)](_0x4f5968),'onSyncEditingCollabCursor':_0x706f0=>this[_0x4389f7(0x2fa)][_0x4389f7(0x3fb)](_0x706f0),'onTransformRemoteChangesetByIMECache':_0x10fa5d=>this[_0x4389f7(0x2a2)]['transformRemoteChangeset'](_0x10fa5d),'onTransformRemoteChangesetByStateCache':_0x27b082=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x27b082)};_0x1f63f4[_0x4389f7(0x422)](_0x3bce27);}}));}};Se=En([U(0x0,_0x52728a(_0x379fa4)),U(0x1,_0x52728a(_0x38930c)),U(0x2,_0x52728a(he)),U(0x3,_0x52728a(ue)),U(0x4,_0x52728a(de)),U(0x5,_0x52728a(ze)),U(0x6,_0x4a1a2a),U(0x7,_0x52728a(_0x29ab17))],Se);var Z=(_0x424005=>(_0x424005[_0x424005['UNDEFINED']=0x0]=_0x17441(0x3ba),_0x424005[_0x424005['OK']=0x1]='OK',_0x424005[_0x424005[_0x17441(0x28f)]=0x2]='INTERNAL_ERROR',_0x424005[_0x424005[_0x17441(0x24b)]=0x3]=_0x17441(0x24b),_0x424005[_0x424005[_0x17441(0x384)]=0x4]=_0x17441(0x384),_0x424005[_0x424005[_0x17441(0x32f)]=0x5]=_0x17441(0x32f),_0x424005[_0x424005[_0x17441(0x269)]=0x6]=_0x17441(0x269),_0x424005[_0x424005[_0x17441(0x352)]=0x7]=_0x17441(0x352),_0x424005[_0x424005[_0x17441(0x368)]=0x8]=_0x17441(0x368),_0x424005[_0x424005['COMPLETION_FINISHED']=0x9]=_0x17441(0x376),_0x424005[_0x424005[_0x17441(0x246)]=0xa]=_0x17441(0x246),_0x424005[_0x424005[_0x17441(0x1dd)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x424005[_0x424005[_0x17441(0x3da)]=0xc]=_0x17441(0x3da),_0x424005[_0x424005['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x17441(0x263),_0x424005[_0x424005[_0x17441(0x35e)]=0xe]=_0x17441(0x35e),_0x424005[_0x424005[_0x17441(0x1f5)]=0xf]=_0x17441(0x1f5),_0x424005[_0x424005[_0x17441(0x310)]=0x10]=_0x17441(0x310),_0x424005[_0x424005[_0x17441(0x1f2)]=0x64]=_0x17441(0x1f2),_0x424005[_0x424005['ERROR_AGAIN']=0x65]=_0x17441(0x280),_0x424005[_0x424005[_0x17441(0x39e)]=0xc9]=_0x17441(0x39e),_0x424005[_0x424005[_0x17441(0x250)]=0xca]='USER_IS_ANONYMOUS',_0x424005[_0x424005[_0x17441(0x2f8)]=0x1389]=_0x17441(0x2f8),_0x424005[_0x424005[_0x17441(0x3a9)]=0x1771]=_0x17441(0x3a9),_0x424005[_0x424005['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x17441(0x256),_0x424005[_0x424005[_0x17441(0x2bb)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x424005[_0x424005[_0x17441(0x2ca)]=0x1b59]=_0x17441(0x2ca),_0x424005[_0x424005['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x17441(0x392),_0x424005[_0x424005[_0x17441(0x355)]=0x1b5b]=_0x17441(0x355),_0x424005[_0x424005[_0x17441(0x3db)]=0x1b5c]=_0x17441(0x3db),_0x424005[_0x424005['APPLY_DUPLICATED']=0x1b5d]=_0x17441(0x2cd),_0x424005[_0x424005[_0x17441(0x3ed)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x424005[_0x424005[_0x17441(0x267)]=0x2329]=_0x17441(0x267),_0x424005[_0x424005['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x424005[_0x424005[_0x17441(0x3e5)]=0x232b]=_0x17441(0x3e5),_0x424005[_0x424005['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x17441(0x3c1),_0x424005[_0x424005[_0x17441(0x231)]=0x232d]=_0x17441(0x231),_0x424005[_0x424005[_0x17441(0x317)]=0x2711]=_0x17441(0x317),_0x424005[_0x424005[_0x17441(0x299)]=0x2712]=_0x17441(0x299),_0x424005[_0x424005['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x17441(0x2f4),_0x424005[_0x424005['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x17441(0x33e),_0x424005[_0x424005[_0x17441(0x35f)]=0x271a]=_0x17441(0x35f),_0x424005[_0x424005[_0x17441(0x268)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x424005[_0x424005[_0x17441(0x2ee)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x424005[_0x424005[_0x17441(0x336)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x424005[_0x424005['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x17441(0x2c8),_0x424005[_0x424005[_0x17441(0x37c)]=0x271f]=_0x17441(0x37c),_0x424005[_0x424005[_0x17441(0x33a)]=0x2720]=_0x17441(0x33a),_0x424005[_0x424005[_0x17441(0x307)]=0x2af9]=_0x17441(0x307),_0x424005[_0x424005['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x17441(0x335),_0x424005[_0x424005['INVALID_INVITE_CODE']=0x2ee2]=_0x17441(0x27b),_0x424005[_0x424005[_0x17441(0x2da)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x424005[_0x424005[_0x17441(0x425)]=0x2ee4]=_0x17441(0x425),_0x424005[_0x424005['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x17441(0x3ca),_0x424005[_0x424005[_0x17441(0x3fd)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x424005[_0x424005['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x17441(0x323),_0x424005[_0x424005[_0x17441(0x410)]=0x32cb]=_0x17441(0x410),_0x424005[_0x424005['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x424005[_0x424005[_0x17441(0x29f)]=0x36b2]=_0x17441(0x29f),_0x424005[_0x424005['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x17441(0x399),_0x424005[_0x424005[_0x17441(0x241)]=0x36b4]=_0x17441(0x241),_0x424005[_0x424005['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x424005[_0x424005[_0x17441(0x395)]=0x36b6]=_0x17441(0x395),_0x424005[_0x424005[_0x17441(0x2ab)]=0x36b7]=_0x17441(0x2ab),_0x424005[_0x424005[_0x17441(0x287)]=0x36b8]=_0x17441(0x287),_0x424005[_0x424005[_0x17441(0x3b5)]=0x3715]=_0x17441(0x3b5),_0x424005[_0x424005[_0x17441(0x215)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x424005[_0x424005[_0x17441(0x21c)]=0x3717]=_0x17441(0x21c),_0x424005[_0x424005[_0x17441(0x318)]=0x37dd]=_0x17441(0x318),_0x424005[_0x424005[_0x17441(0x389)]=0x3a99]=_0x17441(0x389),_0x424005[_0x424005[_0x17441(0x334)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x424005[_0x424005[_0x17441(0x233)]=0x3a9b]=_0x17441(0x233),_0x424005[_0x424005[_0x17441(0x414)]=0x3a9c]=_0x17441(0x414),_0x424005[_0x424005[_0x17441(0x363)]=0x3a9d]=_0x17441(0x363),_0x424005[_0x424005[_0x17441(0x358)]=0x3a9e]=_0x17441(0x358),_0x424005[_0x424005[_0x17441(0x36a)]=0x3a9f]=_0x17441(0x36a),_0x424005[_0x424005[_0x17441(0x2e8)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x424005[_0x424005[_0x17441(0x390)]=-0x1]=_0x17441(0x390),_0x424005))(Z||{});function vn(_0x3786e5){const _0x48073d=_0x17441;var _0x31ba08,_0x5a5d90;const _0x33d78f=(_0x31ba08=_0x3786e5[_0x48073d(0x1f3)])==null?void 0x0:_0x31ba08['stage'],_0xb42b62=((_0x5a5d90=_0x3786e5[_0x48073d(0x1f3)])==null?void 0x0:_0x5a5d90[_0x48073d(0x3c8)])||0x0;return _0x33d78f===_0x58e767[_0x48073d(0x1fe)]&&_0xb42b62>0x0;}function pn(_0x426eb3){const _0x35a404=_0x17441;return _0x426eb3['functionsExecutedState']===_0x1c21b0[_0x35a404(0x339)];}var On=Object[_0x17441(0x421)],Tn=(_0x38f11d,_0x4b52aa,_0x2341e3,_0x210df6)=>{const _0x170356=_0x17441;for(var _0x279c46=_0x210df6>0x1?void 0x0:_0x210df6?On(_0x4b52aa,_0x2341e3):_0x4b52aa,_0x5def8f=_0x38f11d[_0x170356(0x408)]-0x1,_0x1b7c50;_0x5def8f>=0x0;_0x5def8f--)(_0x1b7c50=_0x38f11d[_0x5def8f])&&(_0x279c46=_0x1b7c50(_0x279c46)||_0x279c46);return _0x279c46;},P=(_0x466b02,_0x288d9e)=>(_0x281bbd,_0x186023)=>_0x288d9e(_0x281bbd,_0x186023,_0x466b02);const Cn=_0x17441(0x3dc),Rn='/universer-api/license/formula/limit/start',Dn=_0x17441(0x20a);let Ie=class extends _0x5152e2{constructor(_0x5abb55,_0x15f92c,_0x2b357b,_0x2739d7,_0x39c5a0,_0x460367,_0x1846cd){const _0x23f9b3=_0x17441;super(),_(this,'_pollingInterval',null),_(this,_0x23f9b3(0x27e),0x0),_(this,'_currentUsage',0x0),_(this,_0x23f9b3(0x359),[]),_(this,_0x23f9b3(0x225),0x0),(this[_0x23f9b3(0x32a)]=_0x5abb55,this[_0x23f9b3(0x419)]=_0x15f92c,this[_0x23f9b3(0x272)]=_0x2b357b,this[_0x23f9b3(0x278)]=_0x2739d7,this['_univerInstanceService']=_0x39c5a0,this[_0x23f9b3(0x34b)]=_0x460367,this['_localeService']=_0x1846cd,this[_0x23f9b3(0x40f)]());}[_0x17441(0x40f)](){const _0x5c6439=_0x17441;this[_0x5c6439(0x380)](this['_commandService'][_0x5c6439(0x340)]((_0xe3bf5d,_0x437e48)=>{const _0x5bd41d=_0x5c6439;var _0x2496de;if(_0xe3bf5d['id']!==_0x38732c['id'])return;const _0x37aa0b=_0xe3bf5d[_0x5bd41d(0x39d)];if(!this[_0x5bd41d(0x22e)]((_0x2496de=_0x37aa0b[_0x5bd41d(0x343)])!=null?_0x2496de:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x5bd41d(0x30e)](_0xe3bf5d,_0x437e48),this[_0x5bd41d(0x2c2)](),new _0x1ec590();})),this[_0x5c6439(0x380)](this[_0x5c6439(0x419)][_0x5c6439(0x413)]((_0x2f7db8,_0x1951f4)=>{const _0xaac175=_0x5c6439;if(_0x2f7db8['id']!==_0x2f2f85['id'])return;const _0x22f16e=_0x2f7db8['params'];if(vn(_0x22f16e)){const _0x497987=_0x19061a();this[_0xaac175(0x359)][_0xaac175(0x216)](_0x497987),this['_startCalculationLimit'](_0x497987);}else{if(pn(_0x22f16e)&&this['_taskIds'][_0xaac175(0x408)]>0x0){const _0x32204d=this['_taskIds'][_0xaac175(0x3dd)]();this[_0xaac175(0x3f6)](_0x32204d);}}}));}[_0x17441(0x2e2)](){const _0x25c033=_0x17441;super[_0x25c033(0x2e2)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x25c033(0x402)]=0x0,this[_0x25c033(0x27e)]=0x0,this[_0x25c033(0x225)]=0x0;}async[_0x17441(0x30e)](_0x1ec5c0,_0x1994d4){const _0x1565b1=_0x17441;for(let _0x828355=0x0;_0x828355<0x1e;_0x828355++)try{if(await this[_0x1565b1(0x398)](),this[_0x1565b1(0x381)]()){this[_0x1565b1(0x332)](_0x1ec5c0,_0x1994d4),this[_0x1565b1(0x32a)][_0x1565b1(0x3b7)]({'content':this['_localeService']['t'](_0x1565b1(0x302)),'type':_0x1d1199['Success']});return;}await new Promise(_0x552c9f=>{const _0x50f4b7=_0x1565b1;this['_pollingInterval']=window[_0x50f4b7(0x38b)](_0x552c9f,0x3e8);});}catch(_0x420904){this['_logService']['error'](_0x420904);}this['_messageService'][_0x1565b1(0x3b7)]({'content':this[_0x1565b1(0x423)]['t'](_0x1565b1(0x2a4)),'type':_0x1d1199[_0x1565b1(0x34d)]});}['_applyCommand'](_0x52ae96,_0x57d9a4){const _0x512d83=_0x17441;try{this[_0x512d83(0x419)][_0x512d83(0x3e7)](_0x52ae96['id'],_0x52ae96[_0x512d83(0x39d)],_0x57d9a4);}catch(_0x20e361){this[_0x512d83(0x34b)]['error'](_0x20e361);}}[_0x17441(0x346)](_0x21b31d,_0x1a8c6c){const _0x329399=_0x17441;_0x1a8c6c<this[_0x329399(0x225)]||(this['_lastResponseTimestamp']=_0x1a8c6c,this[_0x329399(0x27e)]=Number[_0x329399(0x2b4)](_0x21b31d[_0x329399(0x2e6)]),this[_0x329399(0x402)]=Number['parseInt'](_0x21b31d[_0x329399(0x3b6)]));}async[_0x17441(0x314)](_0x340422){const _0x5217b3=_0x17441;var _0x5dc710,_0x561358;const _0x2ae3bb=Date[_0x5217b3(0x1e1)]();try{const _0x5a1f2f=((_0x5dc710=this[_0x5217b3(0x272)][_0x5217b3(0x31d)](_0x40385d))==null?void 0x0:_0x5dc710[_0x5217b3(0x375)])||Rn,_0x395889=(await this['_httpService'][_0x5217b3(0x23f)](_0x5a1f2f,{'body':JSON[_0x5217b3(0x362)]({'taskId':_0x340422})}))[_0x5217b3(0x1d8)];if(((_0x561358=_0x395889[_0x5217b3(0x3f0)])==null?void 0x0:_0x561358[_0x5217b3(0x270)])!==Z['OK'])return;this[_0x5217b3(0x346)](_0x395889['limitInfo'],_0x2ae3bb);}catch(_0x508f0a){this['_logService'][_0x5217b3(0x3f0)](_0x508f0a);}}async[_0x17441(0x398)](_0xb61955){const _0x5e88d3=_0x17441;var _0x2f55e8,_0x289b2b;const _0x4efa5a=Date[_0x5e88d3(0x1e1)]();try{const _0x402835=((_0x2f55e8=this[_0x5e88d3(0x272)][_0x5e88d3(0x31d)](_0x40385d))==null?void 0x0:_0x2f55e8['getformulaLimitStatusUrl'])||Cn,_0x1e0a73=_0xb61955?_0x402835+_0x5e88d3(0x37f)+encodeURIComponent(_0xb61955):_0x402835,_0x1a5bb1=(await this[_0x5e88d3(0x278)]['get'](_0x1e0a73))['body'];if(((_0x289b2b=_0x1a5bb1['error'])==null?void 0x0:_0x289b2b[_0x5e88d3(0x270)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x1a5bb1[_0x5e88d3(0x32b)],_0x4efa5a);}catch(_0x22581b){this[_0x5e88d3(0x34b)]['error'](_0x22581b);}}async[_0x17441(0x3f6)](_0x4701a2){const _0x5444bc=_0x17441;var _0x41ff05,_0x51983a;const _0x41fc6a=Date[_0x5444bc(0x1e1)]();try{const _0x2d1035=((_0x41ff05=this[_0x5444bc(0x272)][_0x5444bc(0x31d)](_0x40385d))==null?void 0x0:_0x41ff05[_0x5444bc(0x2c5)])||Dn,_0x29b1ec=(await this[_0x5444bc(0x278)]['post'](_0x2d1035,{'body':JSON['stringify']({'taskId':_0x4701a2})}))['body'];if(((_0x51983a=_0x29b1ec[_0x5444bc(0x3f0)])==null?void 0x0:_0x51983a[_0x5444bc(0x270)])!==Z['OK'])return;this[_0x5444bc(0x346)](_0x29b1ec[_0x5444bc(0x32b)],_0x41fc6a);}catch(_0x5ba357){this[_0x5444bc(0x34b)]['error'](_0x5ba357);}}[_0x17441(0x381)](){const _0x4fd506=_0x17441;return this[_0x4fd506(0x27e)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x4fd506(0x402)]>0x0;}[_0x17441(0x23e)](){const _0x237a6e=_0x17441;this['_pollingInterval']&&(clearTimeout(this[_0x237a6e(0x21a)]),this[_0x237a6e(0x21a)]=null);}[_0x17441(0x2c2)](){const _0xacac2a=_0x17441;this[_0xacac2a(0x32a)]['show']({'content':this['_localeService']['t'](_0xacac2a(0x427)),'type':_0x1d1199[_0xacac2a(0x265)]});}[_0x17441(0x22e)](_0x2fc255){const _0x307f27=_0x17441;for(const _0x91d2d3 of _0x2fc255){const {unitId:_0x4d0683,sheetId:_0x5da098,range:_0x2a08c7}=_0x91d2d3,_0x14d6b0=this[_0x307f27(0x41e)][_0x307f27(0x2eb)](_0x4d0683);if(!_0x14d6b0)continue;const _0x38ec95=_0x14d6b0[_0x307f27(0x338)](_0x5da098);if(!_0x38ec95)continue;const _0x1b893b=_0x38ec95['getCellMatrix']();for(let _0x387bcc=_0x2a08c7[_0x307f27(0x209)];_0x387bcc<=_0x2a08c7[_0x307f27(0x37e)];_0x387bcc++)for(let _0x44608b=_0x2a08c7[_0x307f27(0x3d1)];_0x44608b<=_0x2a08c7[_0x307f27(0x370)];_0x44608b++){const _0x59888f=_0x1b893b[_0x307f27(0x2e0)](_0x387bcc,_0x44608b);if(_0x59888f&&(_0x15e1cc(_0x59888f['f'])||_0x1feb23(_0x59888f['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x52728a(_0x4a1a2a)),P(0x1,_0x38a819),P(0x2,_0x341ccd),P(0x3,_0x52728a(_0x1c17b1)),P(0x4,_0x55fada),P(0x5,_0x3d294c),P(0x6,_0x52728a(_0x29ab17))],Ie);var Nn=Object[_0x17441(0x421)],bn=(_0x313050,_0x433ab9,_0x4e2e65,_0x5c710b)=>{const _0x41d412=_0x17441;for(var _0x29de44=_0x5c710b>0x1?void 0x0:_0x5c710b?Nn(_0x433ab9,_0x4e2e65):_0x433ab9,_0x2d30f4=_0x313050[_0x41d412(0x408)]-0x1,_0x33d172;_0x2d30f4>=0x0;_0x2d30f4--)(_0x33d172=_0x313050[_0x2d30f4])&&(_0x29de44=_0x33d172(_0x29de44)||_0x29de44);return _0x29de44;},Ue=(_0x5cba01,_0x3a970b)=>(_0x194f37,_0x3dfc01)=>_0x3a970b(_0x194f37,_0x3dfc01,_0x5cba01);let He=class extends _0x5152e2{constructor(_0x1065f9,_0x4fe78b,_0x419651){const _0xce1723=_0x17441;super(),_(this,_0xce1723(0x405),new Map()),_(this,_0xce1723(0x2e5),new Map()),_(this,_0xce1723(0x3a8),!0x1),(this[_0xce1723(0x272)]=_0x1065f9,this[_0xce1723(0x27d)]=_0x4fe78b,this[_0xce1723(0x347)]=_0x419651);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x17441(0x324)](){this['_disabled']=!0x1;}get[_0x17441(0x2c6)](){const _0x2fd969=_0x17441;return this[_0x2fd969(0x2e5)];}[_0x17441(0x2e2)](){const _0x523f75=_0x17441;this['exhaustSavingTask']()[_0x523f75(0x3d9)](()=>super[_0x523f75(0x2e2)]());}async[_0x17441(0x2f7)](_0x6773b2){const _0x5ccbdf=_0x17441;return this['_disabled']?null:this[_0x5ccbdf(0x27d)][_0x5ccbdf(0x2cb)](_0x4ab006(_0x6773b2));}async[_0x17441(0x22a)](_0x1c6316,_0x5a17f9){const _0x45262c=_0x17441;return!!this[_0x45262c(0x27d)][_0x45262c(0x372)](_0x1c6316,_0x5a17f9);}['updateOfflineData'](_0x43170c,_0x46599c,_0x12a135,_0x44cec6){const _0x5b548c=_0x17441,_0x2d8163=this[_0x5b548c(0x347)]['getCurrentRevOfUnit'](_0x43170c);this[_0x5b548c(0x405)][_0x5b548c(0x397)](_0x43170c,{'unitID':_0x43170c,'type':_0x46599c,'awaitingChangeset':_0x12a135,'mutations':_0x44cec6,'rev':_0x2d8163}),this[_0x5b548c(0x2e5)][_0x5b548c(0x37b)](_0x43170c)||this[_0x5b548c(0x227)](_0x43170c);}[_0x17441(0x227)](_0x4611ac){const _0x52835a=_0x17441,_0x20c336=this['_getSaveTimeout']();_0x20c336===0x0?this[_0x52835a(0x297)](_0x4611ac):this[_0x52835a(0x2e5)][_0x52835a(0x397)](_0x4611ac,setTimeout(()=>this[_0x52835a(0x297)](_0x4611ac),_0x20c336));}['_getSaveTimeout'](){var _0x793e56;return(_0x793e56=this['_configService']['getConfig'](_0x238b74))!=null?_0x793e56:_0x1fbd43;}[_0x17441(0x297)](_0x25b848){const _0x5ea394=_0x17441,_0x5bdf5b=this[_0x5ea394(0x2e5)][_0x5ea394(0x2ef)](_0x25b848);return _0x5bdf5b!==void 0x0&&window['clearTimeout'](_0x5bdf5b),this[_0x5ea394(0x27d)][_0x5ea394(0x372)](_0x4ab006(_0x25b848),this[_0x5ea394(0x405)][_0x5ea394(0x2ef)](_0x25b848))[_0x5ea394(0x3d9)](()=>this['_saveTaskMap']['delete'](_0x25b848));}async[_0x17441(0x3b4)](){const _0x49323c=_0x17441,_0x295a84=[];this[_0x49323c(0x2e5)][_0x49323c(0x1f0)]((_0x2d4f0a,_0x42b89c)=>{const _0x21ce0d=_0x49323c;window[_0x21ce0d(0x3e2)](_0x2d4f0a),_0x295a84[_0x21ce0d(0x216)](this[_0x21ce0d(0x297)](_0x42b89c)[_0x21ce0d(0x3d9)](()=>{const _0x2ac555=_0x21ce0d;this[_0x2ac555(0x2e5)][_0x2ac555(0x366)](_0x42b89c);}));}),await Promise[_0x49323c(0x276)](_0x295a84);}};He=bn([Ue(0x0,_0x341ccd),Ue(0x1,_0x16882a),Ue(0x2,_0x52728a(_0x34fcd7))],He);class Ln extends _0x3983c8{constructor(){const _0x2aa873=_0x17441;super(),_(this,_0x2aa873(0x2df)),this[_0x2aa873(0x2df)]=_0x11182a(window,_0x2aa873(0x2b5))[_0x2aa873(0x38a)](_0x497016(this[_0x2aa873(0x1e3)]),_0x2fd4fa(0x1),_0x30b4e3(void 0x0));}[_0x17441(0x34a)](_0x2b5536,_0x4711e2,_0x3a8d31=!0x1){const _0x5c7168=_0x17441,_0x57e2d9=new URL(window['location'][_0x5c7168(0x222)]);_0x57e2d9[_0x5c7168(0x2c1)][_0x5c7168(0x397)](_0x2b5536,_0x4711e2),_0x3a8d31?window[_0x5c7168(0x396)]['replaceState']('','',_0x57e2d9[_0x5c7168(0x23a)]()):window['history'][_0x5c7168(0x39a)]('','',_0x57e2d9['toString']());}['removeParam'](_0x497478,_0x2da35d=!0x1){const _0x490c2b=_0x17441,_0x4ce672=new URL(window[_0x490c2b(0x1e7)][_0x490c2b(0x222)]);_0x4ce672['searchParams'][_0x490c2b(0x366)](_0x497478),_0x2da35d?window[_0x490c2b(0x396)][_0x490c2b(0x3cb)]('','',_0x4ce672['toString']()):window['history'][_0x490c2b(0x39a)]('','',_0x4ce672['toString']());}[_0x17441(0x364)](_0x5bc3e9){const _0x4c9d7c=_0x17441;var _0x15be5b;return(_0x15be5b=new URL(window['location'][_0x4c9d7c(0x222)])[_0x4c9d7c(0x2c1)][_0x4c9d7c(0x2ef)](_0x5bc3e9))!=null?_0x15be5b:void 0x0;}}var Un=Object[_0x17441(0x3af)],Mn=Object[_0x17441(0x421)],An=(_0x379987,_0x32bb5b,_0x903fd7)=>_0x32bb5b in _0x379987?Un(_0x379987,_0x32bb5b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x903fd7}):_0x379987[_0x32bb5b]=_0x903fd7,Pn=(_0x397fd8,_0x493849,_0x3b0fe1,_0x24ee87)=>{const _0xb17294=_0x17441;for(var _0x1ddf25=_0x24ee87>0x1?void 0x0:_0x24ee87?Mn(_0x493849,_0x3b0fe1):_0x493849,_0x295b30=_0x397fd8[_0xb17294(0x408)]-0x1,_0x4daf70;_0x295b30>=0x0;_0x295b30--)(_0x4daf70=_0x397fd8[_0x295b30])&&(_0x1ddf25=_0x4daf70(_0x1ddf25)||_0x1ddf25);return _0x1ddf25;},Me=(_0x409e4a,_0x20358d)=>(_0x9035c5,_0x583272)=>_0x20358d(_0x9035c5,_0x583272,_0x409e4a),wn=(_0x1782ef,_0x30f56c,_0x379595)=>An(_0x1782ef,_0x30f56c+'',_0x379595);const yn=_0x17441(0x320);let Ye=class extends _0x3db8b0{constructor(_0x2a581d=_t,_0x2487f1,_0x4d5ccb,_0x32c505){const _0x374247=_0x17441;super(),this['_config']=_0x2a581d,this['_renderManagerService']=_0x2487f1,this[_0x374247(0x3ab)]=_0x4d5ccb,this[_0x374247(0x272)]=_0x32c505;const {..._0x3f42bc}=_0x4a47cd({},_t,this['_config']);this[_0x374247(0x272)][_0x374247(0x31c)](hn,_0x3f42bc);}[_0x17441(0x411)](){const _0x5163c6=_0x17441;this[_0x5163c6(0x20b)](),this[_0x5163c6(0x2be)]();}[_0x17441(0x2d0)](){const _0x111566=_0x17441;this[_0x111566(0x3c7)]();}[_0x17441(0x20b)](){const _0x3b8f8a=_0x17441;var _0x36eb3f;const _0x200569=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0xfdf094,{'useClass':_0x2f6dc6}],[_0x4cad26,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3b8f8a(0x3bc)][_0x3b8f8a(0x35b)]&&_0x200569[_0x3b8f8a(0x216)]([le]),_0x256da2(this[_0x3b8f8a(0x3ab)],_0x3259f4(_0x200569,(_0x36eb3f=this['_config'])==null?void 0x0:_0x36eb3f['override']));}[_0x17441(0x3c7)](){const _0x58bd54=_0x17441;this['disposeWithMe'](this[_0x58bd54(0x3a3)][_0x58bd54(0x37a)](_0x5bd1dc[_0x58bd54(0x2c4)],[Fe])),this[_0x58bd54(0x380)](this[_0x58bd54(0x3a3)][_0x58bd54(0x37a)](_0x5bd1dc[_0x58bd54(0x2e4)],[ke]));}[_0x17441(0x2be)](){const _0x1ce514=_0x17441;_0x28b697(this[_0x1ce514(0x3ab)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x1ce514(0x3bc)]['enableFrontendLog']&&_0x28b697(this[_0x1ce514(0x3ab)],[[le]]);}};wn(Ye,_0x17441(0x378),yn),Ye=Pn([_0x19ba42(_0x3e83e5),Me(0x1,_0x3ef114),Me(0x2,_0x52728a(_0x54baa5)),Me(0x3,_0x341ccd)],Ye);var $n=Object[_0x17441(0x421)],xn=(_0x169a18,_0xa36554,_0x870e00,_0x377053)=>{const _0x454d7e=_0x17441;for(var _0x11af31=_0x377053>0x1?void 0x0:_0x377053?$n(_0xa36554,_0x870e00):_0xa36554,_0x2a8614=_0x169a18[_0x454d7e(0x408)]-0x1,_0x4fc1af;_0x2a8614>=0x0;_0x2a8614--)(_0x4fc1af=_0x169a18[_0x2a8614])&&(_0x11af31=_0x4fc1af(_0x11af31)||_0x11af31);return _0x11af31;},J=(_0x34b05d,_0x304ad3)=>(_0x323a1a,_0x9ec793)=>_0x304ad3(_0x323a1a,_0x9ec793,_0x34b05d);let ut=class extends _0x34ecf8{constructor(_0x2d72da,_0x2d18f7,_0x2de3bf,_0x3d9167,_0x367b2c){super(_0x2d72da,_0x2d18f7,_0x2de3bf,_0x3d9167,_0x367b2c);}async[_0x17441(0x3b2)](_0x4f2efa){const _0x1b54e8=_0x17441,_0x592024=await this[_0x1b54e8(0x2ce)](),_0x37b31a=this[_0x1b54e8(0x3ac)](_0x4f2efa,_0x592024);return this['_doCreateSocket'](_0x37b31a);}[_0x17441(0x3ac)](_0x3264aa,_0x4d41da){const _0x3375d=_0x17441,_0x48447c=typeof window>'u'?new URL(_0x3264aa):new URL(_0x3264aa,window[_0x3375d(0x1e7)]['origin']);_0x48447c[_0x3375d(0x2c1)][_0x3375d(0x397)]('sessionTicket',_0x4d41da);const _0x3ece1b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3375d(0x1e7)]['search']);return _0x3ece1b[_0x3375d(0x2ef)]('runId')&&_0x48447c[_0x3375d(0x2c1)]['set'](_0x3375d(0x1db),_0x3ece1b[_0x3375d(0x2ef)](_0x3375d(0x1db))),_0x48447c[_0x3375d(0x23a)]();}async[_0x17441(0x2ce)](){const _0x1347dd=_0x17441;var _0x4ef94f,_0x581c33,_0x56ad2d;const _0x4c6bd8=this[_0x1347dd(0x272)][_0x1347dd(0x31d)](_0x40385d),_0x258742=(_0x4ef94f=_0x4c6bd8==null?void 0x0:_0x4c6bd8[_0x1347dd(0x2d8)])!=null?_0x4ef94f:_0x2ef114;return(_0x56ad2d=(_0x581c33=(await this['_httpService']['get'](_0x258742,{'headers':{'Content-Type':_0x1347dd(0x2d5)}}))[_0x1347dd(0x1d8)])==null?void 0x0:_0x581c33[_0x1347dd(0x348)])!=null?_0x56ad2d:'';}};ut=xn([J(0x0,_0x52728a(_0x54baa5)),J(0x1,_0x52728a(_0x1c17b1)),J(0x2,_0x341ccd),J(0x3,_0x3d294c),J(0x4,_0x3fb56a)],ut);var Bn=Object[_0x17441(0x421)],Fn=(_0xb490c7,_0x2e6bdd,_0xaf95bc,_0x3885d1)=>{const _0x3cebe0=_0x17441;for(var _0x233b36=_0x3885d1>0x1?void 0x0:_0x3885d1?Bn(_0x2e6bdd,_0xaf95bc):_0x2e6bdd,_0x4f9d04=_0xb490c7[_0x3cebe0(0x408)]-0x1,_0x4df532;_0x4f9d04>=0x0;_0x4f9d04--)(_0x4df532=_0xb490c7[_0x4f9d04])&&(_0x233b36=_0x4df532(_0x233b36)||_0x233b36);return _0x233b36;},Ae=(_0x590f57,_0x39e2bd)=>(_0x347218,_0x3778ad)=>_0x39e2bd(_0x347218,_0x3778ad,_0x590f57);let dt=class extends _0x5152e2{constructor(_0xaa0a80,_0x82fd87,_0x4e9cac){const _0x3917ad=_0x17441;super(),this['_instanceService']=_0xaa0a80,this[_0x3917ad(0x278)]=_0x82fd87,this['_configService']=_0x4e9cac;}async['runOnServer'](_0x6d7cfd,_0xd00ad7,_0x42e2ae,..._0x9b2ee3){const _0x176130=_0x17441;var _0x27db7f,_0x5e2bf5,_0x105c04,_0x41fb0d;const _0x1b10da=this[_0x176130(0x27a)][_0x176130(0x428)]();if(!_0x1b10da)throw new Error(_0x176130(0x1e2));const _0x17611f=((_0x27db7f=this[_0x176130(0x272)][_0x176130(0x31d)](_0x36870b))!=null?_0x27db7f:_0x46003c)+'/'+_0x6d7cfd+_0x176130(0x292)+_0xd00ad7,_0xaeade=new URL(window[_0x176130(0x1e7)][_0x176130(0x222)]),_0x818428={'scriptId':_0x6d7cfd,'runId':(_0x5e2bf5=_0xaeade['searchParams']['get']('runId'))!=null?_0x5e2bf5:'','function':_0xd00ad7,'unitId':_0x1b10da[_0x176130(0x211)](),'argsOfFunction':JSON[_0x176130(0x362)](_0x9b2ee3),'invokeId':(_0x105c04=_0x42e2ae['invokeId'])!=null?_0x105c04:'','executionId':(_0x41fb0d=_0x42e2ae[_0x176130(0x3a1)])!=null?_0x41fb0d:''};try{const _0xa04506=await this[_0x176130(0x278)][_0x176130(0x23f)](_0x17611f,{'body':_0x818428});return _0xa04506[_0x176130(0x1d8)][_0x176130(0x3f0)]&&_0xa04506[_0x176130(0x1d8)][_0x176130(0x3f0)]['code']!==Z['OK']?_0x176130(0x33b):_0xa04506[_0x176130(0x1d8)][_0x176130(0x306)];}catch{return _0x176130(0x33b);}}};dt=Fn([Ae(0x0,_0x55fada),Ae(0x1,_0x52728a(_0x1c17b1)),Ae(0x2,_0x341ccd)],dt);const St=0x7530,It=_0x17441(0x426);class rr extends _0x5152e2{constructor(){const _0x2e6849=_0x17441;super(),_(this,_0x2e6849(0x3cc),_0x19061a()),_(this,_0x2e6849(0x25c),new Set()),_(this,_0x2e6849(0x34e),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x2e6849(0x31a),new Map()),_(this,_0x2e6849(0x3e3),new Map()),this[_0x2e6849(0x21e)]();}['dispose'](){const _0x46b10d=_0x17441;super[_0x46b10d(0x2e2)](),this[_0x46b10d(0x31a)]['forEach']((_0x190ff0,_0x25bfb6)=>this[_0x46b10d(0x3d6)](_0x25bfb6)),this[_0x46b10d(0x1e5)]&&window[_0x46b10d(0x234)](this[_0x46b10d(0x1e5)]);}[_0x17441(0x403)](_0x1f1239){const _0x3994ba=_0x17441;return this[_0x3994ba(0x39b)](_0x1f1239)['pipe'](_0x4ba585());}['editingUnit'](_0x43f198){const _0x599ed3=_0x17441;this['_selfUnitIDs'][_0x599ed3(0x2ec)]===0x0&&this[_0x599ed3(0x277)](),this[_0x599ed3(0x25c)]['add'](_0x43f198),this['_send']({'type':0x0,'memberID':this[_0x599ed3(0x3cc)],'unitIDs':[_0x43f198],'isForwarded':!0x1});}['disposeUnit'](_0x195e9f){const _0x4e4ffd=_0x17441;this[_0x4e4ffd(0x25c)][_0x4e4ffd(0x366)](_0x195e9f),this['_selfUnitIDs'][_0x4e4ffd(0x2ec)]===0x0&&this['_heartbeatTimer']&&window[_0x4e4ffd(0x234)](this['_heartbeatTimer']);}[_0x17441(0x21e)](){const _0x2036e7=_0x17441;this[_0x2036e7(0x380)](_0xce90d1(_0x11182a(window,_0x2036e7(0x27f))[_0x2036e7(0x404)](_0x4bcea8=>{const _0x1c9b7f=_0x2036e7;if(_0x4bcea8[_0x1c9b7f(0x387)]!==It||!_0x4bcea8[_0x1c9b7f(0x319)])return;const _0x1cfe81=JSON['parse'](_0x4bcea8[_0x1c9b7f(0x319)]);this['_handleEvent'](_0x1cfe81);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2036e7(0x3cc)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x17441(0x3e6)](_0x552406){const _0x1083f5=_0x17441;switch(_0x552406[_0x1083f5(0x253)]){case 0x0:this[_0x1083f5(0x41a)](_0x552406);break;case 0x1:this[_0x1083f5(0x2af)](_0x552406);break;case 0x2:this['_handleHeartbeatEvent'](_0x552406);break;}}[_0x17441(0x41a)](_0x10586d){const _0x53c4a8=_0x17441,{unitIDs:_0xe632bb,memberID:_0x308b56,isForwarded:_0x202221}=_0x10586d;_0xe632bb[_0x53c4a8(0x1f0)](_0x1e61e6=>{const _0x3894e9=_0x53c4a8;if(!_0x202221&&this[_0x3894e9(0x34e)][_0x3894e9(0x37b)](_0x1e61e6)&&this[_0x3894e9(0x39b)](_0x1e61e6)[_0x3894e9(0x3a2)](_0x3fed34[_0x3894e9(0x249)]),!this[_0x3894e9(0x34e)][_0x3894e9(0x37b)](_0x1e61e6)||!this['_unitOnClients'][_0x3894e9(0x2ef)](_0x1e61e6)[_0x3894e9(0x37b)](_0x308b56)){const _0x41f614=this['_unitOnClients'][_0x3894e9(0x2ef)](_0x1e61e6)||new Set();_0x41f614[_0x3894e9(0x20e)](_0x308b56),this[_0x3894e9(0x34e)][_0x3894e9(0x397)](_0x1e61e6,_0x41f614),this[_0x3894e9(0x3f1)](_0x308b56);}}),_0x202221||this[_0x53c4a8(0x344)]({'type':0x0,'memberID':this[_0x53c4a8(0x3cc)],'unitIDs':[...this[_0x53c4a8(0x25c)]],'isForwarded':!0x0});}[_0x17441(0x3f1)](_0x4038d6){const _0x17b18b=_0x17441;this['_removeClearOtherTimer'](_0x4038d6);const _0x1cb4a0=window[_0x17b18b(0x38b)](()=>{const _0x445d30=_0x17b18b;this[_0x445d30(0x34e)][_0x445d30(0x1f0)](_0x557169=>{const _0x30d66e=_0x445d30;_0x557169[_0x30d66e(0x366)](_0x4038d6);});},St*0x2);this[_0x17b18b(0x31a)][_0x17b18b(0x397)](_0x4038d6,_0x1cb4a0);}[_0x17441(0x3d6)](_0x196c10){const _0x29275f=_0x17441;if(this[_0x29275f(0x31a)][_0x29275f(0x37b)](_0x196c10)){const _0xba7e2=this[_0x29275f(0x31a)][_0x29275f(0x2ef)](_0x196c10);_0xba7e2&&window['clearTimeout'](_0xba7e2),this['_clearOtherTimers'][_0x29275f(0x397)](_0x196c10,null);}}[_0x17441(0x2af)](_0x465e02){const {memberID:_0xb13fda,unitIDs:_0x2b6f56}=_0x465e02;_0x2b6f56['forEach'](_0x52e1d1=>{const _0x288ada=_0x5a49;var _0x524e37;const _0x3a43d7=this[_0x288ada(0x34e)][_0x288ada(0x2ef)](_0x52e1d1);_0x3a43d7&&(_0x3a43d7[_0x288ada(0x366)](_0xb13fda),(_0x524e37=this[_0x288ada(0x39b)](_0x52e1d1))==null||_0x524e37[_0x288ada(0x3a2)](_0x3a43d7['size']===0x0?_0x3fed34['NO_OTHER_CLIENTS_EDITING']:_0x3fed34['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0xb13fda);}[_0x17441(0x41d)](_0x293d2a){const _0x5f40dd=_0x17441;this[_0x5f40dd(0x3f1)](_0x293d2a[_0x5f40dd(0x321)]);}['_send'](_0x1c00e0){const _0x2d1b0f=_0x17441;localStorage['setItem'](It,JSON[_0x2d1b0f(0x362)](_0x1c00e0));}['_scheduleHeartbeat'](){const _0x53debc=_0x17441;this[_0x53debc(0x1e5)]=window[_0x53debc(0x264)](()=>{const _0x1972fa=_0x53debc;this['_send']({'type':0x2,'memberID':this[_0x1972fa(0x3cc)]});},St);}[_0x17441(0x39b)](_0x3ae3ab){const _0x1041e8=_0x17441;return this['_unitStatus'][_0x1041e8(0x37b)](_0x3ae3ab)||this[_0x1041e8(0x3e3)][_0x1041e8(0x397)](_0x3ae3ab,new _0x1eaaea(_0x3fed34[_0x1041e8(0x244)])),this[_0x1041e8(0x3e3)][_0x1041e8(0x2ef)](_0x3ae3ab);}}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};