@univerjs-pro/collaboration-client-ui 1.0.0-alpha.2 → 1.0.0-alpha.3

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 (97) hide show
  1. package/README.md +6 -3
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/controllers/clipboard/docs/image/image-paste.controller.d.ts +1 -2
  66. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +31 -0
  67. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +21 -0
  68. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +3 -2
  69. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +1 -1
  70. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +11 -0
  71. package/lib/types/index.d.ts +0 -2
  72. package/lib/types/models/cursor.d.ts +12 -8
  73. package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +2 -0
  74. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +2 -2
  75. package/lib/types/views/shapes/text-bubble.shape.d.ts +1 -0
  76. package/lib/umd/facade.js +1 -1
  77. package/lib/umd/index.js +1 -1
  78. package/lib/umd/locale/ar-SA.js +1 -1
  79. package/lib/umd/locale/ca-ES.js +1 -1
  80. package/lib/umd/locale/de-DE.js +1 -1
  81. package/lib/umd/locale/en-US.js +1 -1
  82. package/lib/umd/locale/es-ES.js +1 -1
  83. package/lib/umd/locale/fa-IR.js +1 -1
  84. package/lib/umd/locale/fr-FR.js +1 -1
  85. package/lib/umd/locale/id-ID.js +1 -1
  86. package/lib/umd/locale/it-IT.js +1 -1
  87. package/lib/umd/locale/ja-JP.js +1 -1
  88. package/lib/umd/locale/ko-KR.js +1 -1
  89. package/lib/umd/locale/pl-PL.js +1 -1
  90. package/lib/umd/locale/pt-BR.js +1 -1
  91. package/lib/umd/locale/ru-RU.js +1 -1
  92. package/lib/umd/locale/sk-SK.js +1 -1
  93. package/lib/umd/locale/vi-VN.js +1 -1
  94. package/lib/umd/locale/zh-CN.js +1 -1
  95. package/lib/umd/locale/zh-HK.js +1 -1
  96. package/lib/umd/locale/zh-TW.js +1 -1
  97. package/package.json +23 -22
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x392a75=_0x449b;(function(_0x39660b,_0x167dbf){const _0x3e9a5b=_0x449b,_0x28859d=_0x39660b();while(!![]){try{const _0x3e9d55=-parseInt(_0x3e9a5b(0x2fd))/0x1+-parseInt(_0x3e9a5b(0x2db))/0x2*(parseInt(_0x3e9a5b(0x2eb))/0x3)+-parseInt(_0x3e9a5b(0x375))/0x4*(-parseInt(_0x3e9a5b(0x251))/0x5)+-parseInt(_0x3e9a5b(0x221))/0x6+-parseInt(_0x3e9a5b(0x26d))/0x7+-parseInt(_0x3e9a5b(0x308))/0x8*(-parseInt(_0x3e9a5b(0x207))/0x9)+parseInt(_0x3e9a5b(0x267))/0xa*(parseInt(_0x3e9a5b(0x20a))/0xb);if(_0x3e9d55===_0x167dbf)break;else _0x28859d['push'](_0x28859d['shift']());}catch(_0x543b7f){_0x28859d['push'](_0x28859d['shift']());}}}(_0x1252,0x3d946));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x10c7b2,CollaborationController as _0x57a70b,CollaborationSessionService as _0x95c018,CollaborationSocketService as _0xd45fa9,CollaborationStatus as _0x21b797,CollaborationUIEventId as _0x4cc781,CollaborationUIEventService as _0x1cd30c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5ed597,DEFAULT_WS_SESSION_TICKET_URL as _0x5c4165,DataLoaderService as _0x4c4321,DocCollaborationEntity as _0x25f7c1,ILocalCacheService as _0x368670,LOCAL_CACHE_INTERVAL as _0x23e32b,LOCAL_CACHE_INTERVAL_KEY as _0x108427,MemberService as _0x58b5b3,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x597d03,SessionStatus as _0x11dd82,UnitStatus as _0x710c4d,UniverCollaborationClientPlugin as _0x537e55,getLocalCacheKey as _0x41e692}from'@univerjs-pro/collaboration-client';import{COLORS as _0x3a03e2,CanceledError as _0x5f439f,ColorKit as _0x7737fd,DOC_RANGE_TYPE as _0x109cc1,DependentOn as _0x38329d,Disposable as _0x20ff58,DisposableCollection as _0x432b9a,ICommandService as _0x338dbd,IConfigService as _0x3b56ca,ILocalStorageService as _0x2a3285,ILogService as _0x4cd0b8,IUniverInstanceService as _0x5c7755,Inject as _0x13edf9,Injector as _0x4decc3,LocaleService as _0x2cad47,Optional as _0x3593b5,Plugin as _0x5f4a3f,Rectangle as _0x48cd52,RxDisposable as _0x47ffee,ThemeService as _0x50ff2f,Tools as _0x25962f,UniverInstanceType as _0x12ddec,Workbook as _0x43f811,createIdentifier as _0x2e2bac,debounce as _0x4ef1e1,fromEventSubject as _0x22027b,generateRandomId as _0x35c403,isFormulaId as _0x2c094f,isFormulaString as _0x1b0724,isInternalEditorID as _0x5eb0f9,merge as _0x1c04c4,mergeOverrideWithDependencies as _0x131c21,registerDependencies as _0x11d37d,toDisposable as _0x245507,touchDependencies as _0x21d03b}from'@univerjs/core';import{BuiltInUIPart as _0x7793c,IBeforeCloseService as _0x3e9f71,IMessageService as _0xe2975f,INotificationService as _0x5630e4,IUIPartsService as _0x5d36ed,connectInjector as _0x5df3f2,useDependency as _0x1df8bc,useObservable as _0x416d0d}from'@univerjs/ui';import{BehaviorSubject as _0xd9ac59,Subject as _0x4039fa,combineLatest as _0x578aed,debounceTime as _0x401206,distinctUntilChanged as _0x439347,filter as _0x3a2fbb,fromEvent as _0x4fc3aa,mapTo as _0x16d043,merge as _0x47d3c5,of as _0xa8b45b,shareReplay as _0x46e2a6,switchMap as _0x765746,takeUntil as _0x5f111a}from'rxjs';import{distinctUntilChanged as _0x172dd3,filter as _0x522941,map as _0x604f04,switchMap as _0x253e4b,takeUntil as _0x24f2c5,throttleTime as _0x4a810f}from'rxjs/operators';import{MessageType as _0x2cde3b,Tooltip as _0x8c830b,clsx as _0x54133e}from'@univerjs/design';import{LoadingMultiIcon as _0x216548,OffLineIcon as _0xf80b95,OnLineIcon as _0x2484f6}from'@univerjs/icons';import{useCallback as _0x1f9b6c,useMemo as _0x434cef}from'react';import{jsx as _0x9caa67}from'react/jsx-runtime';function _0x1252(){const _0x47e1bc=['evented','moveTo','removeEventListener','_cachedData','imageSourceType','_scheduleSaving','dispose','setStateCache','univer-text-green-500','symbol','_hover','transformStateCache','_render','subscribeEvent','executeCommand','_anchorDot','OFFLINE','m1Prime','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSheetBySheetId','transformMutation','override','registerRenderModule','asObservable','_hideTimer','send','_messageService','_dataLoaderService','show','getUnitStatus$','_initWindowErrorListener','enableLocalCache','length','_updateCollabCursors','_initUserListener','invokeId','saveTaskMap','_handleLeaveEvent','polite','InsertRangeMoveRightCommandId','getCollabCursors$','getOffsetConfig','_getSheetObject','getUniverSheetInstance','black','_setFormulaLimitStatus','button','_transformService','getSheetId','_collabCursorState$','_offsetY','sheetId','getSnapshot','univer-border-none\x20univer-bg-transparent','getAncestorScale','/run/','_hasFormulaInDirtyRanges','selection','_collabCursorController','origin','defineProperty','findNodePositionByCharIndex',',\x200.2)','column','createInstance','_getLighterColor','height','_showGuardMessage','_monkeyPatchLogService','doc.mutation.rich-text-editing','endColumn','socket$','_notificationService','requireSession','_id','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','pushState','_highlightSecond','_initStatusListener','#FFF','addObjects','onPointerMove$','univer-flex\x20univer-items-center\x20univer-justify-center','collaboration-client-ui.collabStatus.syncing','with','NO_OTHER_CLIENTS_EDITING','1764tTbyBD','functionsExecutedState','status$','transformRemoteChangeset','unitID','univer-appearance-none','_send','collaboration-client-ui.config','collaboration-client-ui.collaboration.closeRoom','div','_color','_uploadLog','CONFLICT','resolve','getFormulaLimitStatusUrl','collaboration-client-ui.session.will-retry','1563cUIaHd','assignAColorForMemberID','sheetID','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_name','setShapeProps','_assignedColors','_disabled','function','push','_status$','_docSkeletonManagerService','next','getRenderById','_blinkIntervalTimer','getCollabEntity$','setTimeout','offsetY','433333iwfYQB','getRelativeToViewportCoord','call','post','addObject$','[LogService\x20Error]:\x20','stageInfo','showText','transformMutationsWithChangeset','row','_setupSubUnitSync','8HdkLgS','setInterval','_docSkeleton','bind','collaboration-client-ui.formula.calculation.unable','blue.400','wsSessionTicketUrl','_getSessionTicket','removeObjects','sessionStatus$','maxFormulaLimit','currentUsage','clearInterval','_clearPolling','_labelPosition','transform','complete','memberID','HEADER_MENU','highlightSecond','collaboration-client-ui.session.connection-failed','univer-text-blue-500','collaboration-client-ui.collaboration.single-unit.warning','pluginName','ONLINE','replace','_docTransformStateCacheService','object','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','textRanges','getFocusedUnit','beforeCommandExecuted','isActive','_getScale','getActiveRange','_collabSessionService','_currentUsage','_heartbeatTimer','fill','_revisionService','uni.network.url-service','UNIVER_DOC','_startBlinking','disposeUnit','tooltipKey','fillRule','collaboration-client-ui.collabStatus.synced','strokeWidth','catch','mutations','_showText','find','_isApplyingOverlays','Loading','_scheduleClearOtherTimer','onPointerEnter$','focusedId','limitInfo','getMergeData','rgba','setItem','_toggleOnline','getTypeOfUnitDisposed$','transformIMECache','_onCursorUpdate','_scheduleRender','decorate','getActiveSlide','Unknown\x20user','toPrimitive','USERS_LEAVE','getUndoRedoMutationParamsCache','_getObjectBounds','_highlight','SOCKET_FAILED_RETRY','contains','_online','_configService','min','getVpScrollXYInfoByPosToVp','unitId','executionId','loadUnit','_localeService','collaboration-client-ui.formula.calculation.waiting','kind','addClipboardHook','DeleteRangeMoveLeftCommandId','bottom','_collaborationController','_urlService','UNIVER_SLIDE','_backgroundColor','forEach','storage','collaboration-client-ui.collabStatus.notCollab','undoState','color','enableFrontendLog','_refreshCollabCursors','_range','getSkeleton','has','_checkAndWaitForCalculationPermission','RemoveColCommandId','RECT','AWAITING','_selfUnitIDs','_registerDependencies','801252KLfBUG','totalFormulasToCalculate','enableDocumentCollaborationUI','rgb','TEXT','/universer-api/license/formula/limit/start','stack','lineWidth','_removeCollabCursors','univer-h-8\x20univer-w-8\x20univer-rounded-lg','dark:focus:!univer-ring-offset-gray-800','reason','_cursors','restore','ticket','startRow','InsertRangeMoveDownCommandId','source','@univerjs-pro/collaboration-client-ui','_syncEditingCollabCursorService','collab-text-anchor-','currentTheme$','Failed','collaboration-client-ui.conflict.title','_colorIndex','lineTo','newValue','version','_isBlinkVisible','getCurrentUnitOfType','collaboration-client-ui.session.collaboration-timeout','_beforeCloseService','getMemberID','getDocRanges','_collaborationSessionService','resize','cursorInfo$','getCurrentRevOfUnit','NOT_COLLAB','?taskId=','Success','_getSaveTimeout','disposeWithMe','flatMap','Error','_sheetSkeletonManagerService','_localStorageService','stage','reconnect','getUnitId','_cursorInfo$','isArray','selectedIds','_handleHover','_cursor','_taskIds','collab-text-range-','addEventListener','startsWith','_getFormulaLimitStatus','error','searchParams','collaboration-client-ui.collabStatus.fetchMiss','urlChange$','_httpService','_scene','whenReady','saveOfflineData','set','_getSceneObjectByKey','getId','VIEW_MAIN','toISOString','span','setLineDash','_initUnhandledRejectionListener','angle','code','_memberService','_roomMembers$','registerRefRange','setOffsetY','_unitStatus','true','hovered','location','collaboration-client-ui.collabStatus.conflict','getValue','_transformHistoryAndStateStack','replaceState','/universer-api/license/formula/limit/done','onStarting','setConfig','getItem','onCommandExecuted','_onRefRangeChange','_drawRectRange','currentSkeleton$','univer-text-red-500','univer-text-orange-500','_pollingInterval','_scheduleHeartbeat','selections','measureText','_docClipboardService','body','_localCacheService','_maxFormulaLimit','slice','slide-collab-cursor-','collabCursorState$','_handleHeartbeatEvent','now','_lastResponseTimestamp','runId','_colorAssignService','triggerDblclick','name','unsubscribe','top','SYNCED','subunit','[RemoteUniscriptService]:\x20no\x20focused\x20unit','ranges','arc','_stopBlinking','drawWith','setActiveRange','size','_pointerMoveDisposable','collaboration-client-ui.formula.calculation.started','_init','_docTransformSelectionsService','_releaseCalculationLimit','editingUnit','_onCursorDelete','CLOSE_ROOM','collaboration-client-ui.collabStatus.offline','_slideDrawingStateService','UPDATE_CURSOR','_doCreateSocket','prototype','_docTransformIMECacheService','_saveTaskMap','/universer-api/license/formula/limit/status','_drawTextRange','pageManager','_docSyncEditingCollabCursorService','_drawAnchor','colno','add','roomMembers$','clear','range','scene','spin','_initCommandExecutedListener','SOCKET_FAILED','_shapes','PERMISSION_DENIED','_renderScheduled','values','getColorFromTheme','_anchor','yellow.400','SUCCESS','_clearOtherTimers','_entityInit$','context','setAlpha','iterator','getParam','cursorInfo','[CollaborationDataLoaderController]','parse','collaboration-client-ui.collaboration.offline-data-not-saved','transformByState','_startCalculationLimit','_hovered','_renderManagerService','red.300','clickable','deepClone','i18nKey','_handleJoinEvent','getConfig','_toggleOffline','default','makeDirty','_lastPointer','status','_imageIoService','data','pipe','m2Prime','application/json','_textBubble','type','_initDependencies','onPointerLeave$','disableLocalCache','onRendered','key','fillStyle','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','exhaustSavingTask','_collaborationUIEventService','roomMembers','split','PENDING','1159398UzWXmI','_draw','_getMergeRange','8864009dxSuSJ','startColumn','history','subscribe','_entities','stringify','/universer-api/frontend/logs','getCellPositionByOffset','START_CALCULATION','colorClass','lineno','message','debug','eventID','dispose$','_updateLocalCursor','[Window\x20Error]:\x20','_document','transformSelections','map','constructor','toString','green.600','2420586ZAlpPm','getObject','_setupBeforeClosingHandler','_univerInstanceService','packageName','_transformUndoRedoStack','_updateSubUnitFromURLParams','OTHER_CLIENT_EDITING','_ensureSubject','_docStateChangeManagerService','_eventUnsubscribe','RemoveRowCommandId','_checkCalculationAvailable','...','_saveCache','redoState','_removeClearOtherTimer','indicator','from','_initEvent','fillText','_config','SUBMIT_CHANGESET_TIMEOUT','_memberID','_logService','string','getActiveSheet','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','JOIN_ROOM_FAILED','clearTimeout','_themeService','then','\x20-\x20','_initEntityListener','_applyCommand','init','onMouseMove','pulse','preventDefault','_injector','_instanceService','UNIVER_SHEET','addObject','_context','_updateURLWithCurrentState','_initCommandInterceptor','getStateCache','delete','5viVFhY','removeObject','left','static','_session','evenodd','Warning','activeSheet$','all','slide-element-selection','InsertColCommandId','params','highlight','endRow','beginPath','_blinkTimer','_startDocCollabCursor','getTypeOfUnitAdded$','getRangePointData','_getAnchorBounding','event$','strokeRect','20DaPHkO','_cursorShapes',':backup:','unshift','getMember','_uiPartsService','2745799mICEpW','hide','_commandService','get','width','setUndoRedoMutationParamsCache','univer-m-0\x20univer-p-0','collab-rect-range-','collaboration-client-ui.collabClient.tooltip.reconnect','shift','save','OTHER_CLIENTS_EDITING','subUnitId','_latestCursors','getViewport','parseInt','syncEditingCollabCursor','text','href','getCurrentSelections','unit','filter','rgba(','_unitOnClients'];_0x1252=function(){return _0x47e1bc;};return _0x1252();}import{IRemoteInstanceService as _0x51ce34}from'@univerjs/rpc';import{EffectRefRangId as _0x56a66c,RefRangeService as _0x9e6999,SetSelectionsOperation as _0x3bdd76,SetWorksheetActivateCommand as _0x5071be,SheetsSelectionsService as _0x540af8,handleDeleteRangeMoveLeft as _0x2b098e,handleDeleteRangeMoveUp as _0x4d40d6,handleIRemoveCol as _0x3388d5,handleIRemoveRow as _0x57f509,handleInsertCol as _0x5bca1f,handleInsertRangeMoveDown as _0x5ba2f4,handleInsertRangeMoveRight as _0x5900e8,handleInsertRow as _0x519390,handleMoveRange as _0x1de67b,runRefRangeMutations as _0xb2c88a}from'@univerjs/sheets';import{IRenderManagerService as _0x17c2eb,Rect as _0x1408dc,RegularPolygon as _0x1d7fed,SHEET_VIEWPORT_KEY as _0x293e2f,Shape as _0x4e52b0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x178e3d,Vector2 as _0x375a03,getColor as _0x37a6ef}from'@univerjs/engine-render';import{HTTPService as _0x2fee98,ISocketService as _0x21a141,WebSocketService as _0x4c2e99}from'@univerjs/network';import{DocIMEInputManagerService as _0x4470e8,IDocClipboardService as _0x440c03,NodePositionConvertToCursor as _0xc7012,NodePositionConvertToRectRange as _0xd13fd0,SetDocZoomRatioOperation as _0x3a1fed,TEXT_RANGE_LAYER_INDEX as _0x4f1dc6}from'@univerjs/docs-ui';import{IImageIoService as _0x1a25d5}from'@univerjs/drawing';import{CollaborationEvent as _0x36e91d,ISnapshotServerService as _0x36b03a,ITransformService as _0x2e0827,RevisionService as _0x18ade7,isTransformMutationFailure as _0x5a337f,isTransformMutationsWithChangesetSuccess as _0x286f9e}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x391601,DocSkeletonManagerService as _0x15639d,DocStateChangeManagerService as _0x556b00,RichTextEditingMutation as _0x239684,SetTextSelectionsOperation as _0x2d0d07}from'@univerjs/docs';import{FormulaExecuteStageType as _0x42dd59,FormulaExecutedStateType as _0x368132,SetFormulaCalculationNotificationMutation as _0x325e4e,SetFormulaCalculationStartMutation as _0x41430f,deserializeRangeWithSheet as _0x3afaa7,serializeRangeWithSheet as _0x3cd9f7}from'@univerjs/engine-formula';import{ISlideDrawingStateService as _0x397568,buildDrawingOKey as _0x378493}from'@univerjs-pro/slides-ui';import{SheetSkeletonManagerService as _0x2bafef,getCoordByCell as _0x2dcc48,getSheetObject as _0x4b75dc}from'@univerjs/sheets-ui';import{ErrorCode as _0x30ce4e}from'@univerjs/protocol';function Xt(_0xa7f01f){const _0x30298d=_0x449b;switch(_0xa7f01f){case _0x21b797['OFFLINE']:return{'icon':_0x9caa67(_0xf80b95,{}),'colorClass':_0x30298d(0x3d7),'i18nKey':_0x30298d(0x1be),'tooltipKey':_0x30298d(0x275),'clickable':!0x0,'indicator':'static'};case _0x21b797[_0x30298d(0x2e7)]:return{'icon':_0x9caa67(_0xf80b95,{}),'colorClass':_0x30298d(0x3d8),'i18nKey':_0x30298d(0x3cb),'clickable':!0x1,'indicator':'static'};case _0x21b797['FETCH_MISS']:return{'icon':_0x9caa67(_0x216548,{}),'colorClass':_0x30298d(0x31d),'i18nKey':_0x30298d(0x3b3),'clickable':!0x1,'indicator':'spin'};case _0x21b797['NOT_COLLAB']:return{'icon':_0x9caa67(_0x2484f6,{}),'colorClass':'univer-text-gray-400','i18nKey':_0x30298d(0x367),'clickable':!0x1,'indicator':_0x30298d(0x254)};case _0x21b797[_0x30298d(0x372)]:case _0x21b797['AWAITING_WITH_PENDING']:return{'icon':_0x9caa67(_0x216548,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x30298d(0x2d8),'clickable':!0x1,'indicator':_0x30298d(0x1d0)};case _0x21b797[_0x30298d(0x206)]:return{'icon':_0x9caa67(_0x216548,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case _0x21b797[_0x30298d(0x1ad)]:return{'icon':_0x9caa67(_0x2484f6,{}),'colorClass':_0x30298d(0x28d),'i18nKey':_0x30298d(0x336),'clickable':!0x1,'indicator':_0x30298d(0x254)};}}function Zt(_0x343225){const _0x127666=_0x449b;let {status$:_0x430a7f}=_0x343225,_0x4c2a08=_0x416d0d(_0x430a7f,_0x21b797[_0x127666(0x39b)]),_0x2532f5=_0x1df8bc(_0x2cad47),_0x51c9a3=_0x1df8bc(_0x95c018),_0x3d0690=_0x434cef(()=>Xt(_0x4c2a08),[_0x4c2a08]),_0x41f700=_0x4c2a08!==_0x21b797[_0x127666(0x295)],_0x5e62f0=_0x2532f5['t'](_0x3d0690[_0x127666(0x1ec)]),_0x3ac54c=_0x3d0690[_0x127666(0x334)]?_0x2532f5['t'](_0x3d0690['tooltipKey']):_0x5e62f0,_0x41a80f=_0x1f9b6c(()=>{const _0x8ee3fe=_0x127666;_0x41f700||_0x51c9a3[_0x8ee3fe(0x3a5)]();},[_0x41f700,_0x51c9a3]),_0x1a10f2=_0x1f9b6c(_0x5630f3=>{const _0x4df1b2=_0x127666;!_0x41f700&&(_0x5630f3[_0x4df1b2(0x1ff)]==='Enter'||_0x5630f3[_0x4df1b2(0x1ff)]==='\x20')&&(_0x5630f3[_0x4df1b2(0x247)](),_0x51c9a3['reconnect']());},[_0x41f700,_0x51c9a3]),_0xad8046=_0x9caa67(_0x127666(0x3be),{'className':_0x54133e('univer-flex\x20univer-items-center\x20univer-justify-center',_0x127666(0x201),_0x3d0690[_0x127666(0x213)],{'univer-animate-spin':_0x3d0690[_0x127666(0x232)]===_0x127666(0x1d0),'univer-animate-pulse':_0x3d0690[_0x127666(0x232)]===_0x127666(0x246)}),'aria-hidden':_0x127666(0x3c8),'children':_0x3d0690['icon']}),_0xaadf20=_0x9caa67(_0x127666(0x3be),{'className':_0x54133e(_0x127666(0x2d7),_0x127666(0x37e),'univer-transition-all\x20univer-duration-200',_0x127666(0x324),_0x127666(0x37f),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x3d0690[_0x127666(0x1ea)],'univer-cursor-default':!_0x3d0690[_0x127666(0x1ea)]}),'children':_0xad8046});return _0x3d0690['clickable']?_0x9caa67(_0x8c830b,{'title':_0x3ac54c,'placement':'bottom','children':_0x9caa67('button',{'type':_0x127666(0x2b3),'onClick':_0x41a80f,'onKeyDown':_0x1a10f2,'className':_0x54133e(_0x127666(0x2ee),_0x127666(0x2ba),_0x127666(0x273),_0x127666(0x2e0)),'aria-label':_0x5e62f0+_0x127666(0x241)+_0x3ac54c,'role':'status','aria-live':_0x127666(0x2ab),'aria-atomic':'true','children':_0xaadf20})}):_0x9caa67(_0x8c830b,{'title':_0x3ac54c,'placement':_0x127666(0x360),'children':_0x9caa67(_0x127666(0x2e4),{'className':_0x54133e(_0x127666(0x2ee),'univer-border-none\x20univer-bg-transparent',_0x127666(0x273)),'aria-label':_0x5e62f0,'role':_0x127666(0x1f3),'aria-live':'polite','aria-atomic':_0x127666(0x3c8),'children':_0xaadf20})});}function W(_0x4efd65){'@babel/helpers - typeof';const _0x1b74b4=_0x449b;return W=typeof Symbol==_0x1b74b4(0x2f3)&&typeof Symbol[_0x1b74b4(0x1df)]==_0x1b74b4(0x28e)?function(_0x1355b1){return typeof _0x1355b1;}:function(_0x61f627){const _0xb1c412=_0x1b74b4;return _0x61f627&&typeof Symbol==_0xb1c412(0x2f3)&&_0x61f627[_0xb1c412(0x21e)]===Symbol&&_0x61f627!==Symbol[_0xb1c412(0x1c2)]?_0xb1c412(0x28e):typeof _0x61f627;},W(_0x4efd65);}function Qt(_0x16fc79,_0x23e729){const _0xa14e65=_0x449b;if(W(_0x16fc79)!='object'||!_0x16fc79)return _0x16fc79;var _0x475d36=_0x16fc79[Symbol[_0xa14e65(0x34d)]];if(_0x475d36!==void 0x0){var _0x391e62=_0x475d36[_0xa14e65(0x2ff)](_0x16fc79,_0x23e729||_0xa14e65(0x1f0));if(W(_0x391e62)!=_0xa14e65(0x323))return _0x391e62;throw TypeError(_0xa14e65(0x297));}return(_0x23e729===_0xa14e65(0x23a)?String:Number)(_0x16fc79);}function $t(_0x1f281f){const _0xfd333e=_0x449b;var _0x47963a=Qt(_0x1f281f,_0xfd333e(0x23a));return W(_0x47963a)==_0xfd333e(0x28e)?_0x47963a:_0x47963a+'';}function G(_0x36acac,_0x30ccf7,_0xbe30e){return(_0x30ccf7=$t(_0x30ccf7))in _0x36acac?Object['defineProperty'](_0x36acac,_0x30ccf7,{'value':_0xbe30e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36acac[_0x30ccf7]=_0xbe30e,_0x36acac;}function K(_0x8c89d3,_0x5fe119){return function(_0x2fef32,_0x3f44b3){_0x5fe119(_0x2fef32,_0x3f44b3,_0x8c89d3);};}function q(_0x16bdf7,_0x26fab4,_0x38aaed,_0x43ba8a){const _0x362a5d=_0x449b;var _0x383f20=arguments[_0x362a5d(0x2a5)],_0x196c01=_0x383f20<0x3?_0x26fab4:_0x43ba8a===null?_0x43ba8a=Object['getOwnPropertyDescriptor'](_0x26fab4,_0x38aaed):_0x43ba8a,_0x171732;if(typeof Reflect==_0x362a5d(0x323)&&typeof Reflect[_0x362a5d(0x34a)]=='function')_0x196c01=Reflect[_0x362a5d(0x34a)](_0x16bdf7,_0x26fab4,_0x38aaed,_0x43ba8a);else{for(var _0x416165=_0x16bdf7['length']-0x1;_0x416165>=0x0;_0x416165--)(_0x171732=_0x16bdf7[_0x416165])&&(_0x196c01=(_0x383f20<0x3?_0x171732(_0x196c01):_0x383f20>0x3?_0x171732(_0x26fab4,_0x38aaed,_0x196c01):_0x171732(_0x26fab4,_0x38aaed))||_0x196c01);}return _0x383f20>0x3&&_0x196c01&&Object[_0x362a5d(0x2c1)](_0x26fab4,_0x38aaed,_0x196c01),_0x196c01;}let J=class extends _0x20ff58{constructor(_0x56cde4,_0xd8d7c3,_0x1bee7f,_0x1e967a){const _0x3056a4=_0x449b;super(),this[_0x3056a4(0x224)]=_0x56cde4,this[_0x3056a4(0x248)]=_0xd8d7c3,this[_0x3056a4(0x361)]=_0x1bee7f,this[_0x3056a4(0x26c)]=_0x1e967a,G(this,_0x3056a4(0x2f5),new _0xd9ac59(_0x21b797[_0x3056a4(0x39b)])),this['_initStatusComponent'](),this['_initStatusListener']();}[_0x392a75(0x2d3)](){const _0x5186b0=_0x392a75;this[_0x5186b0(0x39f)](_0x47d3c5(this[_0x5186b0(0x224)]['focused$'],this[_0x5186b0(0x224)]['getCurrentTypeOfUnit$'](_0x12ddec[_0x5186b0(0x331)]),this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x12ddec[_0x5186b0(0x24a)]))[_0x5186b0(0x1f6)](_0x604f04(()=>en(this[_0x5186b0(0x224)])),_0x172dd3(),_0x765746(_0x27786c=>_0x27786c?this['_collaborationController'][_0x5186b0(0x2fa)](_0x27786c):_0xa8b45b(null)),_0x765746(_0x75a98b=>_0x75a98b?_0x75a98b[_0x5186b0(0x2dd)]:_0xa8b45b(_0x21b797[_0x5186b0(0x39b)])))[_0x5186b0(0x20d)](_0x2f5ac4=>{const _0x222c35=_0x5186b0;this[_0x222c35(0x2f5)][_0x222c35(0x2f7)](_0x2f5ac4);}));}['_initStatusComponent'](){const _0x471b2=_0x392a75;this['disposeWithMe'](this[_0x471b2(0x26c)]['registerComponent'](_0x7793c[_0x471b2(0x31a)],()=>_0x5df3f2(tn({'status$':this[_0x471b2(0x2f5)][_0x471b2(0x29c)]()}),this[_0x471b2(0x248)])));}};J=q([K(0x0,_0x5c7755),K(0x1,_0x13edf9(_0x4decc3)),K(0x2,_0x13edf9(_0x57a70b)),K(0x3,_0x5d36ed)],J);function en(_0x43b992){const _0x4034e5=_0x392a75;let _0x563efd=_0x43b992['getFocusedUnit'](),_0x15db33=_0x563efd==null?void 0x0:_0x563efd[_0x4034e5(0x3a6)]();if(_0x15db33&&!_0x5eb0f9(_0x15db33))return _0x15db33;let _0x58fc34=_0x43b992[_0x4034e5(0x392)](_0x12ddec[_0x4034e5(0x331)]),_0x43856b=_0x58fc34==null?void 0x0:_0x58fc34[_0x4034e5(0x3a6)]();if(_0x43856b&&!_0x5eb0f9(_0x43856b))return _0x43856b;let _0x4e05be=_0x43b992[_0x4034e5(0x392)](_0x12ddec['UNIVER_SHEET']);if(_0x4e05be)return _0x4e05be[_0x4034e5(0x3a6)]();let _0x423cbd=_0x43b992['getAllUnitsForType'](_0x12ddec[_0x4034e5(0x331)])[_0x4034e5(0x33b)](_0x232ca9=>!_0x5eb0f9(_0x232ca9[_0x4034e5(0x3a6)]()));return _0x423cbd?_0x423cbd[_0x4034e5(0x3a6)]():null;}function tn(_0x280a88){let {status$:_0x36abac}=_0x280a88;return function(){return _0x9caa67(Zt,{'status$':_0x36abac});};}const nn=_0x2e2bac(_0x392a75(0x330));let Y=class extends _0x47ffee{constructor(_0x21129b,_0xf457b2,_0x18018a,_0x512c86,_0x2df28e){const _0x10e725=_0x392a75;super(),this[_0x10e725(0x362)]=_0x21129b,this[_0x10e725(0x239)]=_0xf457b2,this[_0x10e725(0x26f)]=_0x18018a,this['_dataLoaderService']=_0x512c86,_0x2df28e?_0x2df28e==null||_0x2df28e[_0x10e725(0x3b7)]()[_0x10e725(0x240)](()=>this[_0x10e725(0x1b8)]()):(this['_logService']['debug'](_0x10e725(0x1e2),_0x10e725(0x2d0)),this[_0x10e725(0x1b8)]());}async[_0x392a75(0x1b8)](){const _0x2640f0=_0x392a75;let _0x4e58c0=this[_0x2640f0(0x362)]['getParam'](_0x2640f0(0x281)),_0x2f2f69=this[_0x2640f0(0x362)][_0x2640f0(0x1e0)](_0x2640f0(0x1fa)),_0x177e20=this[_0x2640f0(0x362)][_0x2640f0(0x1e0)](_0x2640f0(0x1ae));if(!_0x4e58c0||!_0x2f2f69){this[_0x2640f0(0x239)][_0x2640f0(0x216)](_0x2640f0(0x1e2),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x460f53=await this[_0x2640f0(0x2a0)][_0x2640f0(0x35a)](_0x4e58c0,Number(_0x2f2f69),_0x177e20);_0x460f53&&_0x460f53 instanceof _0x43f811&&this['_setupSubUnitSync'](_0x460f53);}async[_0x392a75(0x307)](_0x294b28){const _0x59ad8c=_0x392a75;await this['_updateSubUnitFromURLParams'](_0x294b28),_0x294b28[_0x59ad8c(0x258)][_0x59ad8c(0x1f6)](_0x5f111a(this['dispose$']))['subscribe'](_0x169e02=>{const _0x454132=_0x59ad8c;_0x169e02&&this[_0x454132(0x24d)](_0x169e02);}),this[_0x59ad8c(0x362)][_0x59ad8c(0x3b4)]['pipe'](_0x5f111a(this[_0x59ad8c(0x218)]))['subscribe'](()=>this[_0x59ad8c(0x227)](_0x294b28));}[_0x392a75(0x24d)](_0x226375,_0x3e1ef6=!0x1){const _0x311384=_0x392a75;let _0x5000bc=this[_0x311384(0x362)]['getParam'](_0x311384(0x1ae));_0x226375[_0x311384(0x2b5)]()!==_0x5000bc&&this[_0x311384(0x362)]['setParam'](_0x311384(0x1ae),_0x226375['getSheetId'](),_0x3e1ef6);}async[_0x392a75(0x227)](_0x30106a){const _0x32d504=_0x392a75;var _0xc18c29;let _0x1ca030=this[_0x32d504(0x362)][_0x32d504(0x1e0)](_0x32d504(0x1ae));if(!_0x1ca030||!_0x30106a[_0x32d504(0x298)](_0x1ca030)){let _0x403e5b=_0x30106a['getUnhiddenWorksheets']()[0x0],_0x4b5077=_0x30106a['getSheetBySheetId'](_0x403e5b);if(!_0x4b5077)return;this[_0x32d504(0x24d)](_0x4b5077,!0x0),await this[_0x32d504(0x26f)][_0x32d504(0x293)](_0x5071be['id'],{'unitId':_0x30106a['getUnitId'](),'subUnitId':_0x403e5b});return;}((_0xc18c29=_0x30106a['getActiveSheet']())==null?void 0x0:_0xc18c29[_0x32d504(0x2b5)]())!==_0x1ca030&&await this[_0x32d504(0x26f)][_0x32d504(0x293)](_0x5071be['id'],{'unitId':_0x30106a[_0x32d504(0x3a6)](),'subUnitId':_0x1ca030});}};Y=q([K(0x0,nn),K(0x1,_0x4cd0b8),K(0x2,_0x338dbd),K(0x3,_0x13edf9(_0x4c4321)),K(0x4,_0x3593b5(_0x51ce34))],Y);var rn=_0x392a75(0x387),an='1.0.0-alpha.2';const on={};let sn=class extends _0x47ffee{constructor(_0x179f1e,_0x1bc1e7){const _0x47a93e=_0x392a75;super(),this[_0x47a93e(0x3dd)]=_0x179f1e,this[_0x47a93e(0x1f4)]=_0x1bc1e7,this[_0x47a93e(0x1b8)]();}[_0x392a75(0x1b8)](){const _0x1f7b70=_0x392a75;let _0x1bd041=this;this[_0x1f7b70(0x39f)](this[_0x1f7b70(0x3dd)][_0x1f7b70(0x35e)]({'onBeforePasteImage':async _0x4fbf0e=>{const _0x12df1f=_0x1f7b70;let _0x944054=await _0x1bd041[_0x12df1f(0x1f4)]['saveImage'](_0x4fbf0e);return _0x944054?{'source':_0x944054[_0x12df1f(0x386)],'imageSourceType':_0x944054[_0x12df1f(0x289)]}:null;}}));}};sn=q([K(0x0,_0x440c03),K(0x1,_0x1a25d5)],sn);const cn=['purple.300','jiqing.500',_0x392a75(0x220),_0x392a75(0x1e9),_0x392a75(0x30d),_0x392a75(0x1d9)];var ln=class extends _0x20ff58{constructor(..._0x3074d2){const _0xcf7c85=_0x392a75;super(..._0x3074d2),G(this,_0xcf7c85(0x2f1),new Map()),G(this,'_colorIndex',0x0);}[_0x392a75(0x2ec)](_0x2ac69d){const _0x261ba1=_0x392a75;if(this['_assignedColors'][_0x261ba1(0x36e)](_0x2ac69d))return this[_0x261ba1(0x2f1)][_0x261ba1(0x270)](_0x2ac69d);let _0x5dac6b=cn[this[_0x261ba1(0x38d)]];return this[_0x261ba1(0x38d)]=(this[_0x261ba1(0x38d)]+0x1)%cn['length'],this['_assignedColors'][_0x261ba1(0x3b9)](_0x2ac69d,_0x5dac6b),_0x5dac6b;}};function un(_0x3b9e12){const _0x184fd6=_0x392a75;let _0x522017='';for(let _0x46b327 of _0x3b9e12){let {startOffset:_0x259f3d,endOffset:_0x131fe0,isActive:_0x39aa44,rangeType:_0x7ed07,segmentId:_0x438b14,segmentPage:_0x525686}=_0x46b327;_0x522017[_0x184fd6(0x2a5)]&&(_0x522017+=','),_0x522017+=_0x259f3d+':'+_0x131fe0+':'+(_0x39aa44?'1':'0')+':'+_0x7ed07+':'+_0x438b14+':'+_0x525686;}return _0x522017;}function dn(_0x53c4bd){const _0x511e56=_0x392a75;let _0x12cea4=_0x53c4bd[_0x511e56(0x205)](','),_0x1cbbb2=[];for(let _0x90a5d7 of _0x12cea4){let [_0x224815,_0x2706c0,_0x247596,_0x26b440,_0x2ac780,_0x23bff4]=_0x90a5d7[_0x511e56(0x205)](':');_0x1cbbb2[_0x511e56(0x2f4)]({'startOffset':Number(_0x224815),'endOffset':Number(_0x2706c0),'collapsed':_0x224815===_0x2706c0,'isActive':_0x247596==='1','rangeType':_0x26b440===_0x109cc1['TEXT']?_0x109cc1[_0x511e56(0x379)]:_0x109cc1['RECT'],'segmentId':typeof _0x2ac780==_0x511e56(0x23a)?String(_0x2ac780):'','segmentPage':Number(_0x23bff4==null?-0x1:_0x23bff4)});}return _0x1cbbb2['some'](_0x32f4b0=>_0x32f4b0['isActive'])||(_0x1cbbb2[0x0][_0x511e56(0x328)]=!0x0),_0x1cbbb2;}var fn=class extends _0x47ffee{constructor(..._0x48457c){const _0xd0ff70=_0x392a75;super(..._0x48457c),G(this,'_collabCursorState$',new _0xd9ac59(null)),G(this,_0xd0ff70(0x1a3),this[_0xd0ff70(0x2b6)][_0xd0ff70(0x29c)]());}[_0x392a75(0x27d)](_0x1345e3){let {unitID:_0x3e64c6,memberID:_0x564991,textRanges:_0x3cf76f}=_0x1345e3,_0x1bb4ae=un(_0x3cf76f);if(_0x1bb4ae==='')return;let _0x4a14f2={'unitID':_0x3e64c6,'memberID':_0x564991,'selection':_0x1bb4ae};this['_collabCursorState$']['next'](_0x4a14f2);}};let pn=class extends _0x47ffee{get[_0x392a75(0x1e1)](){const _0x53855e=_0x392a75;return this[_0x53855e(0x3a7)][_0x53855e(0x3cc)]();}get['roomMembers'](){const _0x451107=_0x392a75;return this['_roomMembers$'][_0x451107(0x3cc)]();}constructor(_0x48f3f1,_0x2e37b1,_0xb097cc,_0x5a6567,_0x2d3fe2,_0x5b22d9,_0x415442,_0x103959,_0x95f195){const _0x42235f=_0x392a75;super(),this[_0x42235f(0x2df)]=_0x48f3f1,this[_0x42235f(0x255)]=_0x2e37b1,this['_injector']=_0xb097cc,this['_colorAssignService']=_0x5a6567,this[_0x42235f(0x3c3)]=_0x2d3fe2,this[_0x42235f(0x388)]=_0x5b22d9,this[_0x42235f(0x2b4)]=_0x415442,this['_univerInstanceService']=_0x103959,this[_0x42235f(0x26f)]=_0x95f195,G(this,_0x42235f(0x354),!0x1),G(this,'_init',!0x1),G(this,_0x42235f(0x3a7),new _0xd9ac59(new Map())),G(this,_0x42235f(0x399),this[_0x42235f(0x3a7)][_0x42235f(0x29c)]()),G(this,_0x42235f(0x3c4),new _0xd9ac59([])),G(this,_0x42235f(0x1cc),this[_0x42235f(0x3c4)][_0x42235f(0x1f6)](_0x401206(0x12c))),G(this,_0x42235f(0x219),_0x4ef1e1(_0x453e57=>{const _0x1c624b=_0x42235f;let _0x405991={'eventID':_0x36e91d['UPDATE_CURSOR'],'data':{'unitID':this[_0x1c624b(0x2df)],'memberID':this[_0x1c624b(0x255)][_0x1c624b(0x395)](),'selection':un(_0x453e57)}};this['_session'][_0x1c624b(0x29e)](_0x405991,this[_0x1c624b(0x2df)]);},0x64));}['dispose'](){const _0x4e9f26=_0x392a75;super['dispose'](),this[_0x4e9f26(0x3a7)][_0x4e9f26(0x2f7)](new Map()),this[_0x4e9f26(0x3a7)][_0x4e9f26(0x318)](),this['_roomMembers$'][_0x4e9f26(0x2f7)]([]),this[_0x4e9f26(0x3c4)][_0x4e9f26(0x318)]();}['init'](){const _0x31b5ae=_0x392a75;this[_0x31b5ae(0x1b8)]||(this[_0x31b5ae(0x1b8)]=!0x0,this['_session'][_0x31b5ae(0x311)][_0x31b5ae(0x1f6)](_0x5f111a(this[_0x31b5ae(0x218)]))[_0x31b5ae(0x20d)](_0x479003=>{const _0x2bc705=_0x31b5ae;_0x479003===_0x11dd82[_0x2bc705(0x320)]?this[_0x2bc705(0x345)]():this[_0x2bc705(0x1ef)]();}),this['_session'][_0x31b5ae(0x265)][_0x31b5ae(0x1f6)](_0x5f111a(this[_0x31b5ae(0x218)]))[_0x31b5ae(0x20d)](_0x17d65b=>{const _0x24f0fb=_0x31b5ae;let _0x18fde1=_0x17d65b[_0x24f0fb(0x217)];_0x18fde1===_0x36e91d[_0x24f0fb(0x1c0)]&&this[_0x24f0fb(0x348)](_0x17d65b),_0x18fde1===_0x36e91d[_0x24f0fb(0x34e)]&&this[_0x24f0fb(0x1bc)](_0x17d65b);}),this['disposeWithMe'](this[_0x31b5ae(0x26f)][_0x31b5ae(0x3d3)](_0x1a9aff=>{const _0x2dcfc9=_0x31b5ae;let _0x2ec8ed=_0x1a9aff[_0x2dcfc9(0x25c)];_0x2ec8ed!=null&&this[_0x2dcfc9(0x354)]&&_0x1a9aff['id']===_0x2d0d07['id']&&_0x2ec8ed[_0x2dcfc9(0x358)]===this[_0x2dcfc9(0x2df)]&&_0x2ec8ed['isEditing']===!0x1&&_0x2ec8ed[_0x2dcfc9(0x1b0)][_0x2dcfc9(0x2a5)]>0x0&&this[_0x2dcfc9(0x219)](_0x2ec8ed[_0x2dcfc9(0x1b0)]);})),this[_0x31b5ae(0x388)]['collabCursorState$'][_0x31b5ae(0x1f6)](_0x5f111a(this['dispose$']))[_0x31b5ae(0x20d)](_0x4418dc=>{const _0x26d76c=_0x31b5ae;if((_0x4418dc==null?void 0x0:_0x4418dc[_0x26d76c(0x2df)])!==this[_0x26d76c(0x2df)])return;let _0x1b85aa={'eventID':_0x36e91d[_0x26d76c(0x1c0)],'data':_0x4418dc};this[_0x26d76c(0x348)](_0x1b85aa);}),this['disposeWithMe'](this['_commandService'][_0x31b5ae(0x3d3)](_0x4505e8=>{const _0x37e5c7=_0x31b5ae;if(_0x4505e8[_0x37e5c7(0x25c)]==null)return;let _0x584a4e=_0x4505e8['params'];if(_0x4505e8['id']!==_0x239684['id']||_0x584a4e[_0x37e5c7(0x358)]!==this['unitID'])return;let _0x1be36c={'id':_0x37e5c7(0x2ca),'params':_0x584a4e},_0x16bcf4=this['cursorInfo'];for(let [_0x4f1d3c,_0x2be5a8]of _0x16bcf4){let _0x2b3712={'id':_0x37e5c7(0x2ca),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2be5a8[_0x37e5c7(0x1b0)]}},_0x19f6ee=this[_0x37e5c7(0x2b4)][_0x37e5c7(0x299)](_0x1be36c,_0x2b3712,!0x1);if(_0x5a337f(_0x19f6ee))throw _0x19f6ee[_0x37e5c7(0x3b1)];_0x16bcf4['set'](_0x4f1d3c,{..._0x2be5a8,'ranges':_0x19f6ee[_0x37e5c7(0x1f7)][_0x37e5c7(0x25c)][_0x37e5c7(0x325)]});}queueMicrotask(()=>{const _0x4c3581=_0x37e5c7;this[_0x4c3581(0x3a7)][_0x4c3581(0x2f7)](_0x16bcf4);});})));}['_onCursorUpdate'](_0x2ee585){const _0x1dc9a3=_0x392a75;var _0xf3410d,_0x16ed5d;let {memberID:_0x297cc9,selection:_0x33d258}=_0x2ee585[_0x1dc9a3(0x1f5)],_0x2457b8=dn(_0x33d258),_0x1996a9=(_0xf3410d=(_0x16ed5d=this['_memberService'][_0x1dc9a3(0x26b)](this[_0x1dc9a3(0x2df)],_0x297cc9))==null?void 0x0:_0x16ed5d[_0x1dc9a3(0x1aa)])==null?_0x1dc9a3(0x34c):_0xf3410d,_0x513407={'color':this[_0x1dc9a3(0x1a8)][_0x1dc9a3(0x2ec)](_0x297cc9),'name':_0x1996a9,'ranges':_0x2457b8},_0x480740=this['cursorInfo'];_0x480740[_0x1dc9a3(0x3b9)](_0x297cc9,_0x513407),this['_cursorInfo$'][_0x1dc9a3(0x2f7)](_0x480740);}[_0x392a75(0x1bc)](_0x13a5e5){const _0x5c3fcf=_0x392a75;let {memberID:_0x14a67d}=_0x13a5e5['data'],_0x51d909=this[_0x5c3fcf(0x1e1)];_0x51d909[_0x5c3fcf(0x250)](_0x14a67d),this[_0x5c3fcf(0x3a7)][_0x5c3fcf(0x2f7)](_0x51d909);}[_0x392a75(0x345)](){const _0x4f3ffd=_0x392a75;var _0x31c5a3;if(this[_0x4f3ffd(0x354)]=!0x0,((_0x31c5a3=this[_0x4f3ffd(0x224)][_0x4f3ffd(0x326)]())==null?void 0x0:_0x31c5a3[_0x4f3ffd(0x3a6)]())!==this[_0x4f3ffd(0x2df)])return;let _0x41ef64=this['_injector'][_0x4f3ffd(0x270)](_0x391601)[_0x4f3ffd(0x396)]();Array[_0x4f3ffd(0x3a8)](_0x41ef64)&&_0x41ef64[_0x4f3ffd(0x2a5)]>0x0&&this[_0x4f3ffd(0x219)](_0x41ef64);}[_0x392a75(0x1ef)](){this['_online']=!0x1;}};pn=q([K(0x2,_0x13edf9(_0x4decc3)),K(0x3,_0x13edf9(ln)),K(0x4,_0x13edf9(_0x58b5b3)),K(0x5,_0x13edf9(fn)),K(0x6,_0x2e0827),K(0x7,_0x5c7755),K(0x8,_0x338dbd)],pn);const mn=()=>{let _0x106594=[],_0x3d07bc=!0x1;return _0x2cb8eb=>{const _0x22648c=_0x449b;_0x106594[_0x22648c(0x2f4)](_0x2cb8eb),_0x3d07bc||(_0x3d07bc=!0x0,setTimeout(()=>{const _0x39baaa=_0x22648c;_0x106594[_0x39baaa(0x365)](_0x5d465e=>_0x5d465e()),_0x106594=[],_0x3d07bc=!0x1;}));};};let hn=class extends _0x47ffee{get['cursorInfo'](){const _0x490f85=_0x392a75;return this[_0x490f85(0x3a7)][_0x490f85(0x3cc)]();}get[_0x392a75(0x204)](){const _0x2b9708=_0x392a75;return this[_0x2b9708(0x3c4)][_0x2b9708(0x3cc)]();}constructor(_0x2b41b3,_0x515143,_0x4be77c,_0x2d0d1d,_0x26ca42,_0x27df9a,_0x36ca25,_0x506107){const _0x1a5b66=_0x392a75;super(),this[_0x1a5b66(0x2df)]=_0x2b41b3,this['_session']=_0x515143,this[_0x1a5b66(0x248)]=_0x4be77c,this['_colorAssignService']=_0x2d0d1d,this[_0x1a5b66(0x3c3)]=_0x26ca42,this['_univerInstanceService']=_0x27df9a,this[_0x1a5b66(0x26f)]=_0x36ca25,this['_refRangeService']=_0x506107,G(this,_0x1a5b66(0x354),!0x1),G(this,'_init',!0x1),G(this,_0x1a5b66(0x3a7),new _0xd9ac59(new Map())),G(this,_0x1a5b66(0x399),this[_0x1a5b66(0x3a7)][_0x1a5b66(0x29c)]()),G(this,_0x1a5b66(0x3c4),new _0xd9ac59([])),G(this,_0x1a5b66(0x1cc),this[_0x1a5b66(0x3c4)][_0x1a5b66(0x1f6)](_0x401206(0x12c))),G(this,_0x1a5b66(0x219),_0x4ef1e1((_0xb320fb,_0x3dc1ba)=>{const _0x2c7889=_0x1a5b66;let _0x504a5a={'eventID':_0x36e91d['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c7889(0x2df)],'memberID':this[_0x2c7889(0x255)][_0x2c7889(0x395)](),'selection':_0x3cd9f7(_0xb320fb,_0x3dc1ba[_0x2c7889(0x1ce)])}};this[_0x2c7889(0x255)][_0x2c7889(0x29e)](_0x504a5a,this[_0x2c7889(0x2df)]);},0x64));}[_0x392a75(0x28b)](){const _0x3dbf93=_0x392a75;super[_0x3dbf93(0x28b)](),this['_cursorInfo$'][_0x3dbf93(0x2f7)](new Map()),this[_0x3dbf93(0x3a7)][_0x3dbf93(0x318)](),this['_roomMembers$']['next']([]),this[_0x3dbf93(0x3c4)][_0x3dbf93(0x318)]();}[_0x392a75(0x244)](){const _0x5859e3=_0x392a75;this[_0x5859e3(0x1b8)]||(this[_0x5859e3(0x1b8)]=!0x0,this[_0x5859e3(0x255)][_0x5859e3(0x311)][_0x5859e3(0x1f6)](_0x5f111a(this[_0x5859e3(0x218)]))[_0x5859e3(0x20d)](_0x3d4d99=>{const _0x213495=_0x5859e3;_0x3d4d99===_0x11dd82[_0x213495(0x320)]?this[_0x213495(0x345)]():this[_0x213495(0x1ef)]();}),this['_session'][_0x5859e3(0x265)][_0x5859e3(0x1f6)](_0x5f111a(this[_0x5859e3(0x218)]))[_0x5859e3(0x20d)](_0x33b1bf=>{const _0x55302f=_0x5859e3;let _0x3e22a8=_0x33b1bf[_0x55302f(0x217)];_0x3e22a8===_0x36e91d[_0x55302f(0x1c0)]&&this[_0x55302f(0x348)](_0x33b1bf),_0x3e22a8===_0x36e91d['USERS_LEAVE']&&this[_0x55302f(0x1bc)](_0x33b1bf);}),this[_0x5859e3(0x3d4)](),this[_0x5859e3(0x39f)](this['_commandService'][_0x5859e3(0x3d3)](_0x126914=>{const _0x4ee80c=_0x5859e3;if(this['_online']&&_0x126914['id']===_0x3bdd76['id']&&_0x126914['params'][_0x4ee80c(0x358)]===this[_0x4ee80c(0x2df)]){let _0x305ac6=_0x126914[_0x4ee80c(0x25c)];this[_0x4ee80c(0x219)](_0x305ac6[_0x4ee80c(0x279)],_0x305ac6[_0x4ee80c(0x3db)][0x0]);}})));}[_0x392a75(0x348)](_0x77b39b){const _0x5e8d62=_0x392a75;var _0x2e6c22,_0x3a547d;let {memberID:_0x2f6d75,selection:_0x248964}=_0x77b39b[_0x5e8d62(0x1f5)],{sheetName:_0x4b894e,range:_0x2f3138}=_0x3afaa7(_0x248964),_0xdf8f8={'name':(_0x2e6c22=(_0x3a547d=this['_memberService'][_0x5e8d62(0x26b)](this[_0x5e8d62(0x2df)],_0x2f6d75))==null?void 0x0:_0x3a547d['name'])==null?_0x5e8d62(0x34c):_0x2e6c22,'range':this[_0x5e8d62(0x209)](_0x4b894e,_0x2f3138),'sheetID':_0x4b894e,'color':this['_colorAssignService'][_0x5e8d62(0x2ec)](_0x2f6d75),'selection':_0x248964},_0x32e982=this[_0x5e8d62(0x1e1)];_0x32e982[_0x5e8d62(0x3b9)](_0x2f6d75,_0xdf8f8),this[_0x5e8d62(0x3a7)][_0x5e8d62(0x2f7)](_0x32e982);}[_0x392a75(0x1bc)](_0x19cb1c){const _0x4e8dce=_0x392a75;let {memberID:_0x3c7db3}=_0x19cb1c[_0x4e8dce(0x1f5)],_0x1244ae=this[_0x4e8dce(0x1e1)];_0x1244ae['delete'](_0x3c7db3),this['_cursorInfo$'][_0x4e8dce(0x2f7)](_0x1244ae);}[_0x392a75(0x209)](_0x14b127,_0x3ddfea){const _0x22e930=_0x392a75;var _0x4251cd;let _0x7a9423=(_0x4251cd=this['_univerInstanceService'][_0x22e930(0x2b0)](this['unitID']))==null||(_0x4251cd=_0x4251cd[_0x22e930(0x298)](_0x14b127))==null?void 0x0:_0x4251cd[_0x22e930(0x342)]();return(_0x7a9423==null?void 0x0:_0x7a9423[_0x22e930(0x33b)](_0x229cdf=>_0x48cd52[_0x22e930(0x353)](_0x229cdf,_0x3ddfea)))||_0x3ddfea;}['_onRefRangeChange'](){const _0x159454=_0x392a75;let _0x17ad62=new _0x432b9a(),_0x3912e3=mn(),_0xfa6f80=()=>{const _0x558904=_0x449b;_0x17ad62[_0x558904(0x28b)]();let _0x5891d6=(_0x2448f1,_0x440520,_0x366451,_0x43f8ed)=>{const _0x1c56c2=_0x558904;let _0x5a12b0=[];switch(_0x2448f1['id']){case _0x56a66c[_0x1c56c2(0x35f)]:_0x5a12b0=_0x2b098e(_0x2448f1,_0x43f8ed);break;case _0x56a66c['DeleteRangeMoveUpCommandId']:_0x5a12b0=_0x4d40d6(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x25b)]:_0x5a12b0=_0x5bca1f(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x385)]:_0x5a12b0=_0x5ba2f4(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x2ac)]:_0x5a12b0=_0x5900e8(_0x2448f1,_0x43f8ed);break;case _0x56a66c['InsertRowCommandId']:_0x5a12b0=_0x519390(_0x2448f1,_0x43f8ed);break;case _0x56a66c['MoveRangeCommandId']:_0x5a12b0=_0x1de67b(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x370)]:_0x5a12b0=_0x3388d5(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x22c)]:_0x5a12b0=_0x57f509(_0x2448f1,_0x43f8ed);break;}let _0x2207b0=_0xb2c88a(_0x5a12b0,_0x43f8ed),_0x424d16=this[_0x1c56c2(0x1e1)][_0x1c56c2(0x270)](_0x440520);if(_0x424d16&&_0x2207b0){let _0x54f1b0={..._0x424d16,'range':_0x2207b0};this[_0x1c56c2(0x1e1)][_0x1c56c2(0x3b9)](_0x440520,_0x54f1b0),_0x3912e3(()=>{const _0x323c97=_0x1c56c2;let _0x14a7c1=this['_refRangeService'][_0x323c97(0x3c5)](_0x2207b0,_0x110dd2=>(_0x14a7c1[_0x323c97(0x28b)](),_0x5891d6(_0x110dd2,_0x440520,_0x366451,_0x2207b0)));_0x17ad62[_0x323c97(0x1cb)](_0x14a7c1);});}return{'redos':[],'undos':[]};};this[_0x558904(0x1e1)]['forEach']((_0x2307c6,_0x155f24)=>{const _0x2c6aa3=_0x558904;let {range:_0x68fb4e,sheetID:_0x53f81e}=_0x2307c6,_0x3d1094=this['_refRangeService'][_0x2c6aa3(0x3c5)](_0x68fb4e,_0x1d206d=>(_0x3d1094[_0x2c6aa3(0x28b)](),_0x5891d6(_0x1d206d,_0x155f24,_0x53f81e,_0x68fb4e)));_0x17ad62[_0x2c6aa3(0x1cb)](_0x3d1094);});};this['disposeWithMe'](_0x245507(this[_0x159454(0x3a7)][_0x159454(0x20d)](()=>{_0xfa6f80();})));}[_0x392a75(0x345)](){const _0x1ba870=_0x392a75;var _0x218992,_0x55250d;if(this[_0x1ba870(0x354)]=!0x0,((_0x218992=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x218992[_0x1ba870(0x3a6)]())!==this['unitID'])return;let _0x540bcd=(_0x55250d=this[_0x1ba870(0x248)][_0x1ba870(0x270)](_0x540af8)[_0x1ba870(0x280)]())==null?void 0x0:_0x55250d[0x0],_0x29306b=this[_0x1ba870(0x224)][_0x1ba870(0x392)](_0x12ddec[_0x1ba870(0x24a)])[_0x1ba870(0x23b)]();_0x540bcd&&_0x29306b&&this[_0x1ba870(0x219)](_0x29306b[_0x1ba870(0x2b5)](),_0x540bcd);}['_toggleOffline'](){this['_online']=!0x1;}};hn=q([K(0x2,_0x13edf9(_0x4decc3)),K(0x3,_0x13edf9(ln)),K(0x4,_0x13edf9(_0x58b5b3)),K(0x5,_0x5c7755),K(0x6,_0x338dbd),K(0x7,_0x13edf9(_0x9e6999))],hn);function gn(_0x4407a9){const _0x3511d7=_0x392a75;let _0x227e00;try{_0x227e00=JSON[_0x3511d7(0x1e3)](_0x4407a9);}catch{return null;}if(typeof _0x227e00!=_0x3511d7(0x323)||!_0x227e00)return null;let _0x23f8a4=_0x227e00;if(_0x23f8a4[_0x3511d7(0x35d)]!==_0x3511d7(0x25a)||typeof _0x23f8a4['unitId']!=_0x3511d7(0x23a)||typeof _0x23f8a4[_0x3511d7(0x279)]!='string')return null;let _0x4f3995=Array[_0x3511d7(0x3a8)](_0x23f8a4[_0x3511d7(0x3a9)])?_0x23f8a4[_0x3511d7(0x3a9)]['filter'](_0x37f29a=>typeof _0x37f29a=='string'):[],_0x60128c=typeof _0x23f8a4[_0x3511d7(0x340)]==_0x3511d7(0x23a)?_0x23f8a4[_0x3511d7(0x340)]:null;return{'kind':_0x3511d7(0x25a),'unitId':_0x23f8a4[_0x3511d7(0x358)],'subUnitId':_0x23f8a4[_0x3511d7(0x279)],'selectedIds':_0x4f3995,'focusedId':_0x60128c};}let _n=class extends _0x47ffee{get[_0x392a75(0x1e1)](){const _0x4441f4=_0x392a75;return this[_0x4441f4(0x3a7)]['getValue']();}get[_0x392a75(0x204)](){const _0x11a9d6=_0x392a75;return this['_roomMembers$'][_0x11a9d6(0x3cc)]();}constructor(_0x4ea54d,_0x44fda4,_0x436739,_0x4d3cc1,_0x2c60b2){const _0x502463=_0x392a75;super(),this[_0x502463(0x2df)]=_0x4ea54d,this['_session']=_0x44fda4,this[_0x502463(0x1a8)]=_0x436739,this[_0x502463(0x3c3)]=_0x4d3cc1,this[_0x502463(0x1bf)]=_0x2c60b2,G(this,_0x502463(0x354),!0x1),G(this,_0x502463(0x1b8),!0x1),G(this,'_cursorInfo$',new _0xd9ac59(new Map())),G(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),G(this,_0x502463(0x3c4),new _0xd9ac59([])),G(this,_0x502463(0x1cc),this[_0x502463(0x3c4)][_0x502463(0x1f6)](_0x401206(0x12c))),G(this,'_updateLocalCursor',_0x4ef1e1(_0x13a877=>{const _0x333bd6=_0x502463;let _0x98bbbc=_0x13a877[_0x333bd6(0x1dd)];if(!_0x98bbbc||_0x98bbbc[_0x333bd6(0x358)]!==this['unitID'])return;let _0x5bca8f={'kind':_0x333bd6(0x25a),'unitId':_0x98bbbc[_0x333bd6(0x358)],'subUnitId':_0x98bbbc[_0x333bd6(0x279)],'selectedIds':_0x13a877['selectedIds'][_0x333bd6(0x282)](_0x2544f9=>typeof _0x2544f9=='string'),'focusedId':_0x13a877[_0x333bd6(0x340)]},_0x595cc5={'eventID':_0x36e91d['UPDATE_CURSOR'],'data':{'unitID':this[_0x333bd6(0x2df)],'memberID':this[_0x333bd6(0x255)]['getMemberID'](),'selection':JSON[_0x333bd6(0x20f)](_0x5bca8f)}};this[_0x333bd6(0x255)][_0x333bd6(0x29e)](_0x595cc5,this[_0x333bd6(0x2df)]);},0x64));}['dispose'](){const _0x5b4f83=_0x392a75;super[_0x5b4f83(0x28b)](),this[_0x5b4f83(0x3a7)][_0x5b4f83(0x2f7)](new Map()),this[_0x5b4f83(0x3a7)][_0x5b4f83(0x318)](),this[_0x5b4f83(0x3c4)][_0x5b4f83(0x2f7)]([]),this[_0x5b4f83(0x3c4)][_0x5b4f83(0x318)]();}['init'](){const _0xa5b0ef=_0x392a75;this[_0xa5b0ef(0x1b8)]||(this['_init']=!0x0,this[_0xa5b0ef(0x255)][_0xa5b0ef(0x311)][_0xa5b0ef(0x1f6)](_0x5f111a(this[_0xa5b0ef(0x218)]))[_0xa5b0ef(0x20d)](_0x103f07=>{const _0x36d686=_0xa5b0ef;_0x103f07===_0x11dd82[_0x36d686(0x320)]?this[_0x36d686(0x345)]():this[_0x36d686(0x1ef)]();}),this[_0xa5b0ef(0x255)][_0xa5b0ef(0x265)][_0xa5b0ef(0x1f6)](_0x5f111a(this[_0xa5b0ef(0x218)]))[_0xa5b0ef(0x20d)](_0x4f67b0=>{const _0x4e672a=_0xa5b0ef;let _0x199ddb=_0x4f67b0[_0x4e672a(0x217)];_0x199ddb===_0x36e91d[_0x4e672a(0x1c0)]&&this[_0x4e672a(0x348)](_0x4f67b0),_0x199ddb===_0x36e91d[_0x4e672a(0x34e)]&&this[_0x4e672a(0x1bc)](_0x4f67b0);}),this[_0xa5b0ef(0x1bf)]['state$']['pipe'](_0x5f111a(this[_0xa5b0ef(0x218)]))[_0xa5b0ef(0x20d)](_0x57244b=>{const _0x15444c=_0xa5b0ef;this[_0x15444c(0x354)]&&this[_0x15444c(0x219)](_0x57244b);}));}[_0x392a75(0x348)](_0x43b4d4){const _0x2b2d59=_0x392a75;var _0x438735,_0x4e3a77,_0x474145,_0x8223a9;let {memberID:_0x3c4c25,selection:_0x43f308}=_0x43b4d4['data'];if(_0x3c4c25===((_0x438735=(_0x4e3a77=this[_0x2b2d59(0x255)])[_0x2b2d59(0x395)])==null?void 0x0:_0x438735[_0x2b2d59(0x2ff)](_0x4e3a77)))return;let _0x525bc4=gn(_0x43f308);if(!_0x525bc4||_0x525bc4['unitId']!==this[_0x2b2d59(0x2df)])return;let _0x1454df=(_0x474145=(_0x8223a9=this[_0x2b2d59(0x3c3)][_0x2b2d59(0x26b)](this[_0x2b2d59(0x2df)],_0x3c4c25))==null?void 0x0:_0x8223a9[_0x2b2d59(0x1aa)])==null?_0x2b2d59(0x34c):_0x474145,_0x1dad21={'color':this[_0x2b2d59(0x1a8)][_0x2b2d59(0x2ec)](_0x3c4c25),'name':_0x1454df,'unitId':_0x525bc4[_0x2b2d59(0x358)],'subUnitId':_0x525bc4[_0x2b2d59(0x279)],'selectedIds':_0x525bc4[_0x2b2d59(0x3a9)],'focusedId':_0x525bc4[_0x2b2d59(0x340)],'selection':_0x43f308},_0x14f8f1=new Map(this[_0x2b2d59(0x1e1)]);_0x14f8f1['set'](_0x3c4c25,_0x1dad21),this[_0x2b2d59(0x3a7)][_0x2b2d59(0x2f7)](_0x14f8f1);}[_0x392a75(0x1bc)](_0x19fd7b){const _0x3d8d14=_0x392a75;let {memberID:_0x4ab143}=_0x19fd7b[_0x3d8d14(0x1f5)],_0x497a89=new Map(this[_0x3d8d14(0x1e1)]);_0x497a89['delete'](_0x4ab143),this[_0x3d8d14(0x3a7)]['next'](_0x497a89);}[_0x392a75(0x345)](){const _0xb71315=_0x392a75;this[_0xb71315(0x354)]=!0x0,this['_updateLocalCursor'](this[_0xb71315(0x1bf)][_0xb71315(0x2b9)]());}[_0x392a75(0x1ef)](){this['_online']=!0x1;}};_n=q([K(0x2,_0x13edf9(ln)),K(0x3,_0x13edf9(_0x58b5b3)),K(0x4,_0x13edf9(_0x397568))],_n);let X=class extends _0x47ffee{constructor(_0x525dea,_0x23cbe3,_0x4af119){const _0x115d3d=_0x392a75;super(),this[_0x115d3d(0x224)]=_0x525dea,this[_0x115d3d(0x248)]=_0x23cbe3,this[_0x115d3d(0x32b)]=_0x4af119,G(this,_0x115d3d(0x20e),new Map()),G(this,_0x115d3d(0x1dc),new _0x4039fa()),this[_0x115d3d(0x1b8)]();}[_0x392a75(0x28b)](){const _0x1615e6=_0x392a75;super[_0x1615e6(0x28b)](),this[_0x1615e6(0x1dc)][_0x1615e6(0x318)](),this[_0x1615e6(0x20e)][_0x1615e6(0x365)](_0x55cf7f=>_0x55cf7f['dispose']());}[_0x392a75(0x2ad)](_0x3b703b){const _0x3973de=_0x392a75;return this['_entities'][_0x3973de(0x36e)](_0x3b703b)?this['_entities'][_0x3973de(0x270)](_0x3b703b)[_0x3973de(0x399)]:this[_0x3973de(0x1dc)][_0x3973de(0x1f6)](_0x3a2fbb(_0x3718fe=>_0x3718fe[_0x3973de(0x2df)]===_0x3b703b),_0x765746(_0x226599=>_0x226599[_0x3973de(0x399)]));}[_0x392a75(0x1b8)](){const _0x528781=_0x392a75;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x12ddec[_0x528781(0x24a)])[_0x528781(0x1f6)](_0x5f111a(this[_0x528781(0x218)]))[_0x528781(0x20d)](async _0x261475=>{const _0x156ec9=_0x528781;let _0x4a772c=_0x261475[_0x156ec9(0x281)]['getUnitId'](),_0x53c301=await this['_startSheetCollabCursor'](_0x4a772c);this[_0x156ec9(0x1dc)][_0x156ec9(0x2f7)](_0x53c301),this[_0x156ec9(0x20e)][_0x156ec9(0x3b9)](_0x4a772c,_0x53c301);}),this[_0x528781(0x224)][_0x528781(0x262)](_0x12ddec[_0x528781(0x331)])['pipe'](_0x5f111a(this['dispose$']))[_0x528781(0x1f6)](_0x3a2fbb(_0x2e730a=>!_0x2e730a['unit'][_0x528781(0x3a6)]()['startsWith']('__')))[_0x528781(0x20d)](async _0x366444=>{const _0x29da62=_0x528781;let {unit:_0x2fd5e8}=_0x366444,_0x299dd6=_0x2fd5e8[_0x29da62(0x3a6)](),_0x43b086=await this[_0x29da62(0x261)](_0x299dd6);this[_0x29da62(0x1dc)][_0x29da62(0x2f7)](_0x43b086),this[_0x29da62(0x20e)][_0x29da62(0x3b9)](_0x299dd6,_0x43b086);}),this[_0x528781(0x224)][_0x528781(0x262)](_0x12ddec['UNIVER_SLIDE'])['pipe'](_0x5f111a(this['dispose$']))[_0x528781(0x20d)](async _0x3d034d=>{const _0xdc300b=_0x528781;let _0x57e638=_0x3d034d[_0xdc300b(0x281)][_0xdc300b(0x3a6)](),_0x3fb810=await this['_startSlideCollabCursor'](_0x57e638);this[_0xdc300b(0x1dc)]['next'](_0x3fb810),this['_entities'][_0xdc300b(0x3b9)](_0x57e638,_0x3fb810);}),_0x47d3c5(this['_univerInstanceService'][_0x528781(0x346)](_0x12ddec['UNIVER_DOC']),this['_univerInstanceService'][_0x528781(0x346)](_0x12ddec[_0x528781(0x24a)]),this[_0x528781(0x224)][_0x528781(0x346)](_0x12ddec[_0x528781(0x363)]))['pipe'](_0x5f111a(this[_0x528781(0x218)]))[_0x528781(0x20d)](_0x71ca14=>{const _0x3c642a=_0x528781;let _0x32c96d=_0x71ca14['getUnitId'](),_0x471957=this[_0x3c642a(0x20e)]['get'](_0x32c96d);_0x471957&&(_0x471957[_0x3c642a(0x28b)](),this[_0x3c642a(0x20e)]['delete'](_0x32c96d));});}async['_startSheetCollabCursor'](_0x5a0e17){const _0x2c7e74=_0x392a75;let _0x36e0fa=await this[_0x2c7e74(0x32b)]['requireSession'](_0x5a0e17),_0x4fa4ed=this[_0x2c7e74(0x248)]['createInstance'](hn,_0x5a0e17,_0x36e0fa);return _0x4fa4ed[_0x2c7e74(0x244)](),_0x4fa4ed;}async[_0x392a75(0x261)](_0x532a68){const _0x4488c4=_0x392a75;let _0x5adc5c=await this[_0x4488c4(0x32b)]['requireSession'](_0x532a68),_0x2891e2=this[_0x4488c4(0x248)][_0x4488c4(0x2c5)](pn,_0x532a68,_0x5adc5c);return _0x2891e2[_0x4488c4(0x244)](),_0x2891e2;}async['_startSlideCollabCursor'](_0x180fb8){const _0x409868=_0x392a75;let _0x50f539=await this[_0x409868(0x32b)][_0x409868(0x2ce)](_0x180fb8),_0x62aa7f=this[_0x409868(0x248)][_0x409868(0x2c5)](_n,_0x180fb8,_0x50f539);return _0x62aa7f[_0x409868(0x244)](),_0x62aa7f;}};X=q([K(0x0,_0x5c7755),K(0x1,_0x13edf9(_0x4decc3)),K(0x2,_0x13edf9(_0x95c018))],X);function vn(_0x2686b7,_0x4cf72f){const _0x13a606=_0x392a75;var _0xd94707,_0x1512aa,_0x39754b;let {radius:_0x3b83a1,width:_0x3d9b77,height:_0x47a7ae}=_0x4cf72f;_0x3b83a1=(_0xd94707=_0x3b83a1)==null?0x0:_0xd94707,_0x3d9b77=(_0x1512aa=_0x3d9b77)==null?0x1e:_0x1512aa,_0x47a7ae=(_0x39754b=_0x47a7ae)==null?0x1e:_0x39754b;let _0x2dc1dd=0x0,_0x4d35ef=0x0,_0xa1ddc5=0x0;_0x2dc1dd=_0x4d35ef=_0xa1ddc5=Math['min'](_0x3b83a1,_0x3d9b77/0x2,_0x47a7ae/0x2),_0x2686b7[_0x13a606(0x25f)](),_0x2686b7[_0x13a606(0x286)](_0x2dc1dd,0x0),_0x2686b7[_0x13a606(0x38e)](_0x3d9b77-_0x4d35ef,0x0),_0x2686b7['arc'](_0x3d9b77-_0x4d35ef,_0x4d35ef,_0x4d35ef,Math['PI']*0x3/0x2,0x0,!0x1),_0x2686b7[_0x13a606(0x38e)](_0x3d9b77,_0x47a7ae-_0xa1ddc5),_0x2686b7[_0x13a606(0x1b1)](_0x3d9b77-_0xa1ddc5,_0x47a7ae-_0xa1ddc5,_0xa1ddc5,0x0,Math['PI']/0x2,!0x1),_0x2686b7[_0x13a606(0x38e)](0x0,_0x47a7ae),_0x2686b7['lineTo'](0x0,_0x2dc1dd),_0x2686b7[_0x13a606(0x1b1)](_0x2dc1dd,_0x2dc1dd,_0x2dc1dd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2686b7['closePath'](),_0x4cf72f[_0x13a606(0x32e)]&&(_0x2686b7[_0x13a606(0x277)](),_0x2686b7[_0x13a606(0x200)]=_0x4cf72f[_0x13a606(0x32e)],_0x4cf72f[_0x13a606(0x335)]===_0x13a606(0x256)?_0x2686b7['fill'](_0x13a606(0x256)):_0x2686b7[_0x13a606(0x32e)](),_0x2686b7[_0x13a606(0x382)]());}var yn=class e extends _0x4e52b0{constructor(_0x36e213,_0x4ad433){const _0x2c4346=_0x392a75;super(_0x36e213,_0x4ad433),G(this,'color',void 0x0),G(this,_0x2c4346(0x27e),void 0x0),this[_0x2c4346(0x369)]=_0x4ad433==null?void 0x0:_0x4ad433['color'],this[_0x2c4346(0x27e)]=_0x4ad433==null?void 0x0:_0x4ad433[_0x2c4346(0x27e)];}static[_0x392a75(0x1b3)](_0xfed965,_0x3bfb76){const _0x3b7914=_0x392a75;let {text:_0x34512f,color:_0x3e5ed7}=_0x3bfb76;_0xfed965[_0x3b7914(0x277)](),_0xfed965['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x4e396f=_0xfed965[_0x3b7914(0x3dc)](_0x34512f)[_0x3b7914(0x271)];if(vn(_0xfed965,{'height':0x14,'radius':0x4,'width':Math[_0x3b7914(0x356)](_0x4e396f+0x8,0xc8),'fill':_0x3e5ed7,'evented':!0x1}),_0xfed965[_0x3b7914(0x200)]=_0x3b7914(0x2d4),_0x4e396f>0xc0){let _0x200c43='',_0x5cb656=0x0;for(let _0x540ac5 of _0x34512f){let _0x5ee41b=_0xfed965['measureText'](_0x540ac5)[_0x3b7914(0x271)];if(_0x5cb656+_0x5ee41b<=0xc0-_0xfed965[_0x3b7914(0x3dc)](_0x3b7914(0x22e))[_0x3b7914(0x271)])_0x200c43+=_0x540ac5,_0x5cb656+=_0x5ee41b;else{_0x200c43+=_0x3b7914(0x22e);break;}}_0xfed965[_0x3b7914(0x235)](_0x200c43,0x4,0xf);}else _0xfed965['fillText'](_0x34512f,0x4,0xf);_0xfed965[_0x3b7914(0x382)]();}['_draw'](_0x46b78d){const _0x14eec2=_0x392a75;e[_0x14eec2(0x1b3)](_0x46b78d,this);}};const bn=_0x392a75(0x389);var xn=class{constructor(_0xa0512b,_0x372172,_0xc51d57,_0x204523){const _0x51415=_0x392a75;this['_cursor']=_0xa0512b,this[_0x51415(0x3b6)]=_0x372172,this[_0x51415(0x30a)]=_0xc51d57,this[_0x51415(0x21b)]=_0x204523,G(this,_0x51415(0x1d3),[]),G(this,'_anchor',null),G(this,_0x51415(0x1f9),null),G(this,_0x51415(0x294),null),G(this,_0x51415(0x29d),null),G(this,_0x51415(0x22b),null),this['_render']();}set[_0x392a75(0x28f)](_0x16cd11){const _0x261718=_0x392a75;_0x16cd11?(this[_0x261718(0x294)]&&this[_0x261718(0x294)][_0x261718(0x26e)](),this['_textBubble']&&this[_0x261718(0x1f9)][_0x261718(0x2a1)]()):(this['_anchorDot']&&this[_0x261718(0x294)]['show'](),this['_textBubble']&&this[_0x261718(0x1f9)]['hide']());}[_0x392a75(0x28b)](){const _0x45ae9c=_0x392a75;for(let _0x34cbe1 of this[_0x45ae9c(0x1d3)])_0x34cbe1[_0x45ae9c(0x28b)]();this[_0x45ae9c(0x1f9)]&&this['_textBubble']['dispose'](),this[_0x45ae9c(0x294)]&&this[_0x45ae9c(0x294)][_0x45ae9c(0x28b)](),this[_0x45ae9c(0x1d8)]&&this[_0x45ae9c(0x1d8)][_0x45ae9c(0x28b)](),this[_0x45ae9c(0x22b)]&&this[_0x45ae9c(0x22b)]();}[_0x392a75(0x291)](){const _0x6395bd=_0x392a75;let {_docSkeleton:_0x551e70,_document:_0x4eeba8}=this,{color:_0x5f1aac,name:_0x19db8e,ranges:_0xcc52c1}=this[_0x6395bd(0x3ab)],_0x1576d4=_0x4eeba8[_0x6395bd(0x2ae)](),{docsLeft:_0xfa662d,docsTop:_0xf30177}=_0x1576d4,_0x3c6dd0=new _0xc7012(_0x1576d4,_0x551e70);for(let {startOffset:_0x3382e9,endOffset:_0x5d7887,rangeType:_0x5b9d58,segmentId:_0x2bdf43,segmentPage:_0x5bd0e6,collapsed:_0x19e74c,isActive:_0x32b173}of _0xcc52c1){let _0x4a24a=_0x551e70['findNodePositionByCharIndex'](_0x3382e9,!0x0,_0x2bdf43,_0x5bd0e6),_0x3e63fb=_0x551e70[_0x6395bd(0x2c2)](_0x5d7887,!0x0,_0x2bdf43,_0x5bd0e6);if(_0x3e63fb==null&&(_0x3e63fb=_0x551e70[_0x6395bd(0x2c2)](_0x5d7887-0x1,!0x1,_0x2bdf43,_0x5bd0e6)),_0x32b173){let {contentBoxPointGroup:_0x4a9fb8}=_0x3c6dd0[_0x6395bd(0x263)](_0x3e63fb,_0x3e63fb);if(_0x4a9fb8[_0x6395bd(0x2a5)]===0x0)continue;this[_0x6395bd(0x1c9)](_0x5f1aac,_0x4a9fb8,_0xfa662d,_0xf30177,_0x19db8e),this[_0x6395bd(0x22b)]=this[_0x6395bd(0x3aa)]();}if(_0x4a24a&&_0x3e63fb){if(_0x5b9d58===_0x109cc1[_0x6395bd(0x371)]){var _0x1ebf4b;let {pointGroup:_0x2ece41}=(_0x1ebf4b=new _0xd13fd0(_0x1576d4,_0x551e70)['getRangePointData'](_0x4a24a,_0x3e63fb))==null?{}:_0x1ebf4b;if(_0x2ece41==null||_0x2ece41['length']===0x0)continue;this['_drawRectRange'](_0x5f1aac,_0x2ece41,_0xfa662d,_0xf30177);}else{if(!_0x19e74c){let {borderBoxPointGroup:_0x23b1db}=_0x3c6dd0[_0x6395bd(0x263)](_0x4a24a,_0x3e63fb);if(_0x23b1db[_0x6395bd(0x2a5)]===0x0)continue;this[_0x6395bd(0x1c6)](_0x5f1aac,_0x23b1db,_0xfa662d,_0xf30177);}}}}}[_0x392a75(0x1c9)](_0x33b234,_0x5cf550,_0x2c511c,_0x3a8818,_0x59d0cf){const _0x5f3df4=_0x392a75;let {left:_0x340d75,top:_0x4a1c93,height:_0x63cfa3}=this[_0x5f3df4(0x264)](_0x5cf550),_0x44f351=1.5/this[_0x5f3df4(0x329)](),_0x5b9673=new _0x1408dc(bn+_0x35c403(0x6),{'left':_0x340d75+_0x2c511c-_0x44f351,'top':_0x4a1c93+_0x3a8818,'height':_0x63cfa3,'width':1.5,'fill':_0x33b234||_0x37a6ef(_0x3a03e2[_0x5f3df4(0x2b1)],0x0),'strokeWidth':_0x44f351,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x5f3df4(0x1d8)]=_0x5b9673,this['_scene'][_0x5f3df4(0x24b)](_0x5b9673,_0x4f1dc6);let _0x4f0364=new _0x1408dc(bn+_0x35c403(0x6),{'left':_0x340d75+_0x2c511c-_0x44f351,'top':_0x4a1c93+_0x3a8818-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x33b234||_0x37a6ef(_0x3a03e2['black'],0x0),'strokeWidth':0x0,'stroke':_0x33b234||_0x37a6ef(_0x3a03e2['black'],0x0),'evented':!0x1});this[_0x5f3df4(0x294)]=_0x4f0364,this[_0x5f3df4(0x3b6)][_0x5f3df4(0x24b)](_0x4f0364,_0x4f1dc6);let _0x20022d=new yn(bn+_0x35c403(0x6),{'left':_0x340d75+_0x2c511c-_0x44f351,'top':_0x4a1c93+_0x3a8818-0x14,'text':_0x59d0cf,'color':_0x33b234});this[_0x5f3df4(0x1f9)]=_0x20022d,this[_0x5f3df4(0x3b6)][_0x5f3df4(0x24b)](_0x20022d,_0x4f1dc6),this[_0x5f3df4(0x28f)]=!0x1;}[_0x392a75(0x3aa)](){const _0x555b87=_0x392a75;let _0x2dc3ee=this[_0x555b87(0x1d8)][_0x555b87(0x33f)][_0x555b87(0x292)](()=>{const _0x27ad42=_0x555b87;this[_0x27ad42(0x28f)]=!0x0;}),_0xd84fa=this[_0x555b87(0x1d8)][_0x555b87(0x1fc)]['subscribeEvent'](()=>{const _0x396689=_0x555b87;this['_hideTimer']&&clearTimeout(this[_0x396689(0x29d)]),this[_0x396689(0x29d)]=setTimeout(()=>{const _0x2cd848=_0x396689;this[_0x2cd848(0x28f)]=!0x1;},0x7d0);});return()=>{const _0x296f18=_0x555b87;_0x2dc3ee[_0x296f18(0x1ab)](),_0xd84fa[_0x296f18(0x1ab)]();};}[_0x392a75(0x1c6)](_0x50f4eb,_0x49f62d,_0x1f73f5,_0x52dc1f){const _0xcebf=_0x392a75;let _0x3a1156=0.2,_0x3fe8fd=new _0x7737fd(_0x50f4eb)['setAlpha'](_0x3a1156)['toRgbString'](),_0x47bbb5=new _0x1d7fed(_0xcebf(0x3ad)+_0x35c403(0x6),{'pointsGroup':_0x49f62d,'fill':_0x3fe8fd||_0x37a6ef(_0x3a03e2['black'],_0x3a1156),'left':_0x1f73f5,'top':_0x52dc1f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xcebf(0x1d3)][_0xcebf(0x2f4)](_0x47bbb5),this[_0xcebf(0x3b6)][_0xcebf(0x24b)](_0x47bbb5,_0x4f1dc6);}[_0x392a75(0x3d5)](_0x1a300b,_0x1203e9,_0x5af8df,_0x15b606){const _0x52781e=_0x392a75;let _0xe3efb=0.2,_0x32b25a=new _0x7737fd(_0x1a300b)[_0x52781e(0x1de)](_0xe3efb)['toRgbString'](),_0x134a11=new _0x1d7fed(_0x52781e(0x274)+_0x35c403(0x6),{'pointsGroup':_0x1203e9,'fill':_0x32b25a||_0x37a6ef(_0x3a03e2[_0x52781e(0x2b1)],_0xe3efb),'left':_0x5af8df,'top':_0x15b606,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52781e(0x1d3)][_0x52781e(0x2f4)](_0x134a11),this[_0x52781e(0x3b6)][_0x52781e(0x24b)](_0x134a11,_0x4f1dc6);}['_getAnchorBounding'](_0x1f99f5){let _0x5b777c=_0x1f99f5[0x0],_0xbd7036=_0x5b777c[0x0],_0x47eee8=_0x5b777c[0x2],{x:_0x1472be,y:_0x16c99e}=_0xbd7036,{x:_0x3dad6d,y:_0x5c500e}=_0x47eee8;return{'left':_0x1472be,'top':_0x16c99e,'width':_0x3dad6d-_0x1472be,'height':_0x5c500e-_0x16c99e};}[_0x392a75(0x329)](){const _0x5c97bf=_0x392a75;let {scaleX:_0x3140c7,scaleY:_0x5cb589}=this['_scene'][_0x5c97bf(0x2bb)]();return Math['max'](_0x3140c7,_0x5cb589);}};let Sn=class extends _0x47ffee{constructor(_0xae629d,_0x39a0f1,_0x80d833,_0x4d787d,_0x23a391){const _0x4e17a0=_0x392a75;super(),this[_0x4e17a0(0x24c)]=_0xae629d,this['_docSkeletonManagerService']=_0x39a0f1,this[_0x4e17a0(0x2bf)]=_0x80d833,this[_0x4e17a0(0x26f)]=_0x4d787d,this['_themeService']=_0x23a391,G(this,_0x4e17a0(0x268),[]),G(this,_0x4e17a0(0x381),[]),this[_0x4e17a0(0x1b8)]();}['_init'](){const _0xa8c3d5=_0x392a75;let _0xf3455e=this[_0xa8c3d5(0x24c)]['unitId'],_0x547a91=this[_0xa8c3d5(0x2f6)];this[_0xa8c3d5(0x39f)](_0x578aed([this[_0xa8c3d5(0x2bf)]['getCollabCursors$'](_0xf3455e),this['_themeService'][_0xa8c3d5(0x38a)]])[_0xa8c3d5(0x1f6)](_0x604f04(([_0x21aef0,_0x5c9f0b])=>({'skeleton':_0x547a91[_0xa8c3d5(0x36d)](),'cursors':[..._0x21aef0[_0xa8c3d5(0x1d6)]()][_0xa8c3d5(0x3a0)](_0xc3b7a3=>({..._0xc3b7a3,'color':this[_0xa8c3d5(0x23f)]['getColorFromTheme'](_0xc3b7a3[_0xa8c3d5(0x369)])}))})))['subscribe'](_0xee4d10=>{const _0x1d0c2d=_0xa8c3d5;if(this['_removeCollabCursors'](),_0xee4d10){let {skeleton:_0x4aae31,cursors:_0x2ed51d}=_0xee4d10;this[_0x1d0c2d(0x2a6)](_0x4aae31,_0x2ed51d);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x392a75(0x2a6)](_0x2b1141,_0x30c2ef){const _0x4466af=_0x392a75;let {scene:_0x1bd01d,mainComponent:_0xc2119a}=this['_context'],_0x446f92=_0x30c2ef['map'](_0x754ea1=>new xn(_0x754ea1,_0x1bd01d,_0x2b1141,_0xc2119a));this[_0x4466af(0x268)]=_0x446f92,this[_0x4466af(0x381)]=_0x30c2ef;}[_0x392a75(0x36b)](){const _0x17960c=_0x392a75;this['_removeCollabCursors']();let {scene:_0x2565bb,mainComponent:_0x27d291}=this[_0x17960c(0x24c)],_0x44ade8=this[_0x17960c(0x2f6)][_0x17960c(0x36d)](),_0x5205fc=this['_cursors'][_0x17960c(0x21d)](_0x34d7d1=>new xn(_0x34d7d1,_0x2565bb,_0x44ade8,_0x27d291));this[_0x17960c(0x268)]=_0x5205fc;}['_removeCollabCursors'](){const _0x28e2d2=_0x392a75;this[_0x28e2d2(0x268)][_0x28e2d2(0x365)](_0x22b43c=>_0x22b43c[_0x28e2d2(0x28b)]()),this[_0x28e2d2(0x268)]=[];}[_0x392a75(0x1d1)](){const _0x5b71d4=_0x392a75;let _0x4d2472=[_0x3a1fed['id']];this[_0x5b71d4(0x39f)](this[_0x5b71d4(0x26f)][_0x5b71d4(0x3d3)](_0x2a9366=>{const _0x1f9235=_0x5b71d4;_0x4d2472['includes'](_0x2a9366['id'])&&_0x2a9366[_0x1f9235(0x25c)][_0x1f9235(0x358)]===this[_0x1f9235(0x24c)][_0x1f9235(0x358)]&&this[_0x1f9235(0x36b)]();}));}['_initResize'](){const _0x258e57=_0x392a75;this['disposeWithMe'](_0x22027b(this[_0x258e57(0x24c)]['engine']['onTransformChange$'])['pipe'](_0x522941(_0x3f0210=>_0x3f0210[_0x258e57(0x1fa)]===_0x178e3d[_0x258e57(0x398)]),_0x4a810f(0x10))[_0x258e57(0x20d)](()=>{this['_refreshCollabCursors']();}));}};Sn=q([K(0x1,_0x13edf9(_0x15639d)),K(0x2,_0x13edf9(X)),K(0x3,_0x338dbd),K(0x4,_0x13edf9(_0x50ff2f))],Sn);var Cn=class extends _0x4e52b0{constructor(_0x3377ff,_0x2dea89){const _0x12bc81=_0x392a75;if(super(_0x3377ff,_0x2dea89),G(this,_0x12bc81(0x2e5),void 0x0),G(this,_0x12bc81(0x1e7),!0x1),G(this,_0x12bc81(0x36c),void 0x0),G(this,_0x12bc81(0x2ef),''),G(this,_0x12bc81(0x316),_0x12bc81(0x1ac)),G(this,_0x12bc81(0x364),void 0x0),G(this,_0x12bc81(0x33a),void 0x0),G(this,_0x12bc81(0x351),void 0x0),G(this,_0x12bc81(0x2d2),0x4),G(this,_0x12bc81(0x260),void 0x0),G(this,_0x12bc81(0x2f9),void 0x0),G(this,_0x12bc81(0x391),!0x0),G(this,'_offsetY',0x0),_0x2dea89){var _0xf0ebaa;if(this['setShapeProps'](_0x2dea89),_0x2dea89[_0x12bc81(0x25d)]&&((_0xf0ebaa=_0x2dea89[_0x12bc81(0x31b)])==null?this['_highlightSecond']:_0xf0ebaa)){var _0x5c3347;this['_startBlinking']((_0x5c3347=_0x2dea89[_0x12bc81(0x31b)])==null?this['_highlightSecond']:_0x5c3347);}}this[_0x12bc81(0x33f)][_0x12bc81(0x292)](()=>this[_0x12bc81(0x2f0)]({'hovered':!0x0})),this[_0x12bc81(0x1fc)][_0x12bc81(0x292)](()=>this[_0x12bc81(0x2f0)]({'hovered':!0x1}));}[_0x392a75(0x3c6)](_0x467e2e){const _0x408354=_0x392a75;this[_0x408354(0x2b7)]=_0x467e2e;}[_0x392a75(0x2f0)](_0x3a1a75){const _0x378dff=_0x392a75;var _0x2dcbc1,_0x5cb870,_0x12ff73,_0x19b41f,_0x3dc0bd,_0x34339d,_0x5ba6d1;this[_0x378dff(0x2e5)]=(_0x2dcbc1=_0x3a1a75['color'])==null?this[_0x378dff(0x2e5)]:_0x2dcbc1,this[_0x378dff(0x1e7)]=(_0x5cb870=_0x3a1a75[_0x378dff(0x3c9)])==null?this['_hovered']:_0x5cb870,this[_0x378dff(0x36c)]=(_0x12ff73=_0x3a1a75[_0x378dff(0x1ce)])==null?this[_0x378dff(0x36c)]:_0x12ff73,this['_name']=(_0x19b41f=_0x3a1a75[_0x378dff(0x1aa)])==null?this[_0x378dff(0x2ef)]:_0x19b41f,this[_0x378dff(0x316)]=(_0x3dc0bd=_0x3a1a75['labelPosition'])==null?this[_0x378dff(0x316)]:_0x3dc0bd,this[_0x378dff(0x364)]=(_0x34339d=_0x3a1a75['backgroundColor'])==null?this[_0x378dff(0x364)]:_0x34339d,this[_0x378dff(0x33a)]=(_0x5ba6d1=_0x3a1a75[_0x378dff(0x304)])==null?this['_showText']:_0x5ba6d1,_0x3a1a75[_0x378dff(0x31b)]!==void 0x0&&(this['_highlightSecond']=_0x3a1a75[_0x378dff(0x31b)]),_0x3a1a75[_0x378dff(0x25d)]!==void 0x0&&(this[_0x378dff(0x351)]=_0x3a1a75['highlight']),_0x3a1a75[_0x378dff(0x2fc)]!==void 0x0&&(this[_0x378dff(0x2b7)]=_0x3a1a75['offsetY']),this['transformByState']({'width':_0x3a1a75[_0x378dff(0x271)],'height':_0x3a1a75[_0x378dff(0x2c7)]});}[_0x392a75(0x245)](_0xb47630){const _0x212c69=_0x392a75;let {row:_0x8b49e6,column:_0xfb00cb}=_0xb47630;if(_0x8b49e6>=this[_0x212c69(0x36c)]['startRow']&&_0x8b49e6<=this[_0x212c69(0x36c)][_0x212c69(0x25e)]&&_0xfb00cb>=this['_range'][_0x212c69(0x20b)]&&_0xfb00cb<=this[_0x212c69(0x36c)][_0x212c69(0x2cb)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x212c69(0x2f0)]({'hovered':!0x1});}[_0x392a75(0x332)](_0x1b2de2){const _0x29d6ac=_0x392a75;this[_0x29d6ac(0x1b2)](),this[_0x29d6ac(0x391)]=!0x0,this['_blinkIntervalTimer']=window[_0x29d6ac(0x309)](()=>{const _0x3aeb7f=_0x29d6ac;this[_0x3aeb7f(0x391)]=!this['_isBlinkVisible'],this[_0x3aeb7f(0x1f1)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x29d6ac(0x2fb)](()=>{const _0x53bf46=_0x29d6ac;this[_0x53bf46(0x1b2)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x1b2de2*0x3e8);}[_0x392a75(0x1b2)](){const _0x117f5a=_0x392a75;this['_blinkIntervalTimer']&&(window[_0x117f5a(0x314)](this[_0x117f5a(0x2f9)]),this[_0x117f5a(0x2f9)]=void 0x0),this['_blinkTimer']&&(window[_0x117f5a(0x23e)](this[_0x117f5a(0x260)]),this[_0x117f5a(0x260)]=void 0x0);}[_0x392a75(0x1a9)](_0x260bc3){return!0x1;}['dispose'](){const _0x18d141=_0x392a75;this['_stopBlinking'](),super[_0x18d141(0x28b)]();}[_0x392a75(0x208)](_0xe1d0a3){const _0x235715=_0x392a75;let _0x28b76c=this[_0x235715(0x2e5)],_0x42b9dc=this[_0x235715(0x364)];if(this[_0x235715(0x351)]&&!this[_0x235715(0x391)]&&(_0x28b76c=this[_0x235715(0x2c6)](this[_0x235715(0x2e5)]),_0x42b9dc=this[_0x235715(0x364)]?this[_0x235715(0x2c6)](this[_0x235715(0x364)]):void 0x0),_0x1408dc[_0x235715(0x1b3)](_0xe1d0a3,{'width':this[_0x235715(0x271)],'height':this[_0x235715(0x2c7)],'strokeWidth':this[_0x235715(0x337)]||1.5,'stroke':_0x28b76c,'evented':!0x1,'fill':_0x42b9dc}),this['_hovered']||this[_0x235715(0x33a)]){var _0x2ccdeb;_0xe1d0a3['save'](),_0xe1d0a3[_0x235715(0x317)](0x1,0x0,0x0,0x1,this['width'],(this[_0x235715(0x316)]===_0x235715(0x360)?0x0:-0x14)+((_0x2ccdeb=this[_0x235715(0x2b7)])==null?0x0:_0x2ccdeb)),yn[_0x235715(0x1b3)](_0xe1d0a3,{'text':this[_0x235715(0x2ef)],'color':_0x28b76c}),_0xe1d0a3[_0x235715(0x382)]();}}[_0x392a75(0x2c6)](_0x5f1a4c){const _0x20d06c=_0x392a75;return _0x5f1a4c['startsWith']('#')?_0x20d06c(0x283)+Number[_0x20d06c(0x27c)](_0x5f1a4c['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x20d06c(0x27c)](_0x5f1a4c[_0x20d06c(0x3e1)](0x3,0x5),0x10)+',\x20'+Number[_0x20d06c(0x27c)](_0x5f1a4c[_0x20d06c(0x3e1)](0x5,0x7),0x10)+_0x20d06c(0x2c3):_0x5f1a4c[_0x20d06c(0x3af)](_0x20d06c(0x343))?_0x5f1a4c['replace'](/[\d.]+\)$/g,'0.2)'):_0x5f1a4c[_0x20d06c(0x3af)]('rgb')?_0x5f1a4c[_0x20d06c(0x321)](_0x20d06c(0x378),_0x20d06c(0x343))[_0x20d06c(0x321)](')',_0x20d06c(0x2c3)):_0x5f1a4c;}};let wn=class extends _0x47ffee{constructor(_0x59ade1,_0x46a45a,_0x274385,_0x5653a1){const _0x18bce1=_0x392a75;super(),this[_0x18bce1(0x24c)]=_0x59ade1,this['_sheetSkeletonManagerService']=_0x46a45a,this[_0x18bce1(0x2bf)]=_0x274385,this['_themeService']=_0x5653a1,G(this,_0x18bce1(0x381),new Set()),G(this,'_lastPointer',null),G(this,_0x18bce1(0x1b6),null),this['_init']();}[_0x392a75(0x1b8)](){const _0x8da6a9=_0x392a75;this[_0x8da6a9(0x3a2)][_0x8da6a9(0x3d6)][_0x8da6a9(0x1f6)](_0x24f2c5(this[_0x8da6a9(0x218)]),_0x253e4b(_0x4d04d7=>{const _0x78d02c=_0x8da6a9;if(_0x4d04d7){let _0x165e05=_0x4d04d7[_0x78d02c(0x2b8)];return _0x578aed(this[_0x78d02c(0x2bf)]['getCollabCursors$'](this['_context'][_0x78d02c(0x358)]),this['_themeService']['currentTheme$'])[_0x78d02c(0x1f6)](_0x604f04(([_0x4e86c1,_0x359971])=>{const _0x4e4331=_0x78d02c;let _0x5686c7=new Map();return _0x4e86c1[_0x4e4331(0x365)]((_0x2a1ec6,_0x4d891d)=>{const _0x504627=_0x4e4331;if(_0x2a1ec6[_0x504627(0x2ed)]===_0x165e05){let _0x394179={..._0x2a1ec6};_0x394179[_0x504627(0x369)]=this[_0x504627(0x23f)][_0x504627(0x1d7)](_0x2a1ec6[_0x504627(0x369)]),_0x5686c7[_0x504627(0x3b9)](_0x4d891d,_0x394179);}}),{'skeleton':_0x4d04d7,'cursors':_0x5686c7};}));}return _0xa8b45b({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xc82e7a,cursors:_0x376f0e})=>{const _0x20e67f=_0x8da6a9;this['_removeCollabCursors'](),_0xc82e7a&&this[_0x20e67f(0x2a6)](_0xc82e7a,_0x376f0e);}),this['disposeWithMe'](this[_0x8da6a9(0x3a2)][_0x8da6a9(0x3d6)][_0x8da6a9(0x1f6)](_0x24f2c5(this[_0x8da6a9(0x218)]))['subscribe'](_0xc7be1c=>{const _0x28a15a=_0x8da6a9;var _0x475ec9;if(_0xc7be1c==null)return;(_0x475ec9=this[_0x28a15a(0x1b6)])==null||_0x475ec9[_0x28a15a(0x1ab)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x22a4f6}=_0xc7be1c,{scene:_0xf32e3e}=this[_0x28a15a(0x24c)];this[_0x28a15a(0x1b6)]=_0xf32e3e[_0x28a15a(0x2d6)][_0x28a15a(0x292)](_0x4ef1e1(_0x383364=>{const _0xc21a34=_0x28a15a;var _0x62af81,_0x34fbbf;let {offsetX:_0x239768,offsetY:_0x3e1486}=_0x383364,{x:_0x546233,y:_0x370c00}=_0xf32e3e[_0xc21a34(0x2fe)](_0x375a03['FromArray']([_0x239768,_0x3e1486])),{scaleX:_0x12e5ca,scaleY:_0x3891e8}=_0xf32e3e[_0xc21a34(0x2bb)](),_0x1199f5=_0xf32e3e[_0xc21a34(0x27b)](_0x293e2f[_0xc21a34(0x3bc)]),_0x55c953=_0xf32e3e[_0xc21a34(0x357)](_0x375a03['FromArray']([_0x546233,_0x370c00]),_0x1199f5),_0x56512a=_0x22a4f6[_0xc21a34(0x211)](_0x239768,_0x3e1486,_0x12e5ca,_0x3891e8,_0x55c953);((_0x62af81=this[_0xc21a34(0x1f2)])==null?void 0x0:_0x62af81[_0xc21a34(0x2c4)])===_0x56512a['column']&&((_0x34fbbf=this['_lastPointer'])==null?void 0x0:_0x34fbbf[_0xc21a34(0x306)])===_0x56512a[_0xc21a34(0x306)]||this[_0xc21a34(0x381)][_0xc21a34(0x365)](_0x1a85d0=>{_0x1a85d0['onMouseMove'](_0x56512a);});},0x64));})),this[_0x8da6a9(0x39f)](_0x245507(()=>{const _0x339e53=_0x8da6a9;var _0x5b9eeb;(_0x5b9eeb=this['_pointerMoveDisposable'])==null||_0x5b9eeb[_0x339e53(0x1ab)](),this[_0x339e53(0x1b6)]=null;}));}['_updateCollabCursors'](_0x5c11e2,_0x2e79f8){const _0x9c963f=_0x392a75;let _0x2b80d3=this[_0x9c963f(0x3a2)]['getCurrentSkeleton']();if(!_0x2b80d3)return;let _0x1c20f0=this[_0x9c963f(0x2af)]();if(!_0x1c20f0)return;this[_0x9c963f(0x381)][_0x9c963f(0x365)](_0x299d50=>{const _0x11b862=_0x9c963f;_0x299d50[_0x11b862(0x1f1)]();});let {scene:_0x17cd09}=_0x1c20f0,_0x297fbf=Tn(Array['from'](_0x2e79f8['values']()))['map'](_0x3da118=>{const _0x296c54=_0x9c963f;let {color:_0x3b578c,range:_0x4c9985,name:_0x53542f,selection:_0x1df440,sheetID:_0x25ff61}=_0x3da118,{startColumn:_0x53ee26,startRow:_0x277d26,endColumn:_0x58ede8,endRow:_0x18598a}=_0x4c9985,_0x1781c3=_0x2dcc48(_0x277d26,_0x53ee26,_0x17cd09,_0x2b80d3),_0x4a27aa=_0x2dcc48(_0x18598a,_0x58ede8,_0x17cd09,_0x2b80d3),{columnHeaderHeightAndMarginTop:_0x17d686}=_0x2b80d3,{startX:_0x3dcbbb,startY:_0x460b88}=_0x1781c3,{endX:_0x1356dc,endY:_0x43d768}=_0x4a27aa,_0x1e6ddd=_0x1356dc-_0x3dcbbb,_0x44460b=_0x43d768-_0x460b88;return new Cn(_0x53542f,{'labelPosition':_0x460b88-_0x17d686>=0x14?_0x296c54(0x1ac):_0x296c54(0x360),'sheetID':_0x25ff61,'range':_0x4c9985,'color':_0x3b578c,'name':_0x53542f,'selection':_0x1df440,'left':_0x3dcbbb,'top':_0x460b88,'width':_0x1e6ddd,'height':_0x44460b,'evented':!0x1,'zIndex':0x1389});});_0x17cd09[_0x9c963f(0x2d5)](_0x297fbf,0x1),this[_0x9c963f(0x381)]=new Set(_0x297fbf);}[_0x392a75(0x37d)](){const _0x3c927c=_0x392a75;var _0x13adc2;(_0x13adc2=this['_cursors'])==null||_0x13adc2[_0x3c927c(0x365)](_0x3ff2bf=>_0x3ff2bf[_0x3c927c(0x28b)]());}['_getSheetObject'](){const _0x5cecd7=_0x392a75;return _0x4b75dc(this[_0x5cecd7(0x24c)]['unit'],this['_context']);}};wn=q([K(0x1,_0x13edf9(_0x2bafef)),K(0x2,_0x13edf9(X)),K(0x3,_0x13edf9(_0x50ff2f))],wn);function Tn(_0x4c7fe5){const _0x45b523=_0x392a75;let _0x2466e6=new Map();return _0x4c7fe5[_0x45b523(0x365)](_0x1d6aab=>{const _0x5c6ec7=_0x45b523;if(_0x2466e6[_0x5c6ec7(0x36e)](_0x1d6aab[_0x5c6ec7(0x2be)])){let _0x5ca70d=_0x2466e6['get'](_0x1d6aab[_0x5c6ec7(0x2be)]);_0x5ca70d[_0x5c6ec7(0x1aa)]+=',\x20'+_0x1d6aab[_0x5c6ec7(0x1aa)];}else _0x2466e6[_0x5c6ec7(0x3b9)](_0x1d6aab[_0x5c6ec7(0x2be)],_0x1d6aab);}),Array['from'](_0x2466e6[_0x45b523(0x1d6)]());}const En=0x138a;var Dn=class extends _0x4e52b0{constructor(_0x510da5,_0x3d1e49){const _0x5ae018=_0x392a75;super(_0x510da5,{..._0x3d1e49,'evented':!0x1}),G(this,_0x5ae018(0x2e5),'#4f46e5'),G(this,'_name',''),G(this,_0x5ae018(0x33a),!0x0),_0x3d1e49&&this[_0x5ae018(0x2f0)](_0x3d1e49);}[_0x392a75(0x2f0)](_0x22fe3b){const _0x21ffb3=_0x392a75;var _0x28146e,_0x4f9823,_0x4e5047,_0x19b105,_0x1c59d8,_0x30debb,_0x52fbcd,_0x3e9891;this[_0x21ffb3(0x2e5)]=(_0x28146e=_0x22fe3b[_0x21ffb3(0x369)])==null?this[_0x21ffb3(0x2e5)]:_0x28146e,this[_0x21ffb3(0x2ef)]=(_0x4f9823=_0x22fe3b['name'])==null?this[_0x21ffb3(0x2ef)]:_0x4f9823,this[_0x21ffb3(0x33a)]=(_0x4e5047=_0x22fe3b[_0x21ffb3(0x304)])==null?this[_0x21ffb3(0x33a)]:_0x4e5047,this[_0x21ffb3(0x285)]=!0x1,this[_0x21ffb3(0x1e5)]({'left':(_0x19b105=_0x22fe3b[_0x21ffb3(0x253)])==null?this[_0x21ffb3(0x253)]:_0x19b105,'top':(_0x1c59d8=_0x22fe3b[_0x21ffb3(0x1ac)])==null?this[_0x21ffb3(0x1ac)]:_0x1c59d8,'width':(_0x30debb=_0x22fe3b[_0x21ffb3(0x271)])==null?this['width']:_0x30debb,'height':(_0x52fbcd=_0x22fe3b['height'])==null?this[_0x21ffb3(0x2c7)]:_0x52fbcd,'angle':(_0x3e9891=_0x22fe3b['angle'])==null?this[_0x21ffb3(0x3c1)]:_0x3e9891});}[_0x392a75(0x208)](_0x532942){const _0x56d9af=_0x392a75;_0x532942[_0x56d9af(0x277)](),_0x532942['strokeStyle']=this[_0x56d9af(0x2e5)],_0x532942[_0x56d9af(0x37c)]=this[_0x56d9af(0x337)]||1.5,_0x532942[_0x56d9af(0x3bf)]([0x6,0x4]),_0x532942[_0x56d9af(0x266)](0x0,0x0,this['width'],this['height']),_0x532942[_0x56d9af(0x382)](),this[_0x56d9af(0x33a)]&&(_0x532942[_0x56d9af(0x277)](),_0x532942[_0x56d9af(0x317)](0x1,0x0,0x0,0x1,this[_0x56d9af(0x271)],-0x14),yn['drawWith'](_0x532942,{'text':this[_0x56d9af(0x2ef)],'color':this[_0x56d9af(0x2e5)]}),_0x532942['restore']());}};let On=class extends _0x47ffee{constructor(_0x514305,_0x1ae92d,_0x14b3d5){const _0x13dd2c=_0x392a75;super(),this[_0x13dd2c(0x24c)]=_0x514305,this[_0x13dd2c(0x2bf)]=_0x1ae92d,this[_0x13dd2c(0x23f)]=_0x14b3d5,G(this,_0x13dd2c(0x381),new Set()),G(this,_0x13dd2c(0x1d5),!0x1),G(this,_0x13dd2c(0x33c),!0x1),G(this,_0x13dd2c(0x27a),new Map()),this[_0x13dd2c(0x1b8)]();}[_0x392a75(0x28b)](){const _0x36a759=_0x392a75;this[_0x36a759(0x37d)](),super[_0x36a759(0x28b)]();}[_0x392a75(0x1b8)](){const _0x3798b3=_0x392a75;let _0x10d7fd=this[_0x3798b3(0x24c)][_0x3798b3(0x281)][_0x3798b3(0x1c7)]['activeSlideId$'],_0x1ee739=this[_0x3798b3(0x2bf)]['getCollabCursors$'](this[_0x3798b3(0x24c)][_0x3798b3(0x358)]);this['disposeWithMe'](_0x245507(_0x578aed([_0x1ee739,_0x10d7fd,this[_0x3798b3(0x23f)][_0x3798b3(0x38a)]])[_0x3798b3(0x1f6)](_0x5f111a(this[_0x3798b3(0x218)]))[_0x3798b3(0x20d)](([_0x49df67,_0x23629e])=>{const _0x5b8a8f=_0x3798b3;let _0x3af909=new Map();_0x49df67[_0x5b8a8f(0x365)]((_0x5f3e26,_0x34b773)=>{const _0x2740e4=_0x5b8a8f;_0x5f3e26['subUnitId']===_0x23629e&&_0x3af909[_0x2740e4(0x3b9)](_0x34b773,{..._0x5f3e26,'color':this['_themeService']['getColorFromTheme'](_0x5f3e26['color'])});}),this[_0x5b8a8f(0x27a)]=_0x3af909,this[_0x5b8a8f(0x349)]();})));let _0x1c1271=this[_0x3798b3(0x24c)][_0x3798b3(0x1cf)];this[_0x3798b3(0x39f)](_0x245507(_0x1c1271[_0x3798b3(0x301)][_0x3798b3(0x1f6)](_0x5f111a(this[_0x3798b3(0x218)]))[_0x3798b3(0x20d)](()=>{const _0x10e7c3=_0x3798b3;this['_isApplyingOverlays']||this[_0x10e7c3(0x349)]();})));}[_0x392a75(0x349)](){const _0x47a2c6=_0x392a75;this[_0x47a2c6(0x1d5)]||(this[_0x47a2c6(0x1d5)]=!0x0,Promise[_0x47a2c6(0x2e8)]()[_0x47a2c6(0x240)](()=>{this['_renderScheduled']=!0x1,this['_render']();}));}['_render'](){const _0x211d98=_0x392a75;var _0xdeb190;this[_0x211d98(0x37d)]();let _0x29226c=(_0xdeb190=this['_context']['unit']['pageManager'][_0x211d98(0x34b)]())==null?void 0x0:_0xdeb190[_0x211d98(0x3bb)]();if(!_0x29226c)return;let _0x79dee7=[];if(this[_0x211d98(0x27a)][_0x211d98(0x365)]((_0x4401eb,_0x34a534)=>{const _0x39532d=_0x211d98;_0x4401eb['subUnitId']===_0x29226c&&_0x4401eb[_0x39532d(0x3a9)][_0x39532d(0x365)](_0x5420fc=>{const _0x2071c3=_0x39532d;let _0x542a1e=_0x378493(_0x4401eb[_0x2071c3(0x358)],_0x4401eb['subUnitId'],_0x5420fc),_0x514214=this[_0x2071c3(0x3ba)](_0x542a1e);if(!_0x514214)return;let _0x9dba3e=this[_0x2071c3(0x350)](_0x514214);_0x79dee7['push'](new Dn(_0x2071c3(0x3e2)+_0x34a534+'-'+_0x5420fc,{..._0x4401eb,'left':_0x9dba3e[_0x2071c3(0x253)],'top':_0x9dba3e[_0x2071c3(0x1ac)],'width':_0x9dba3e[_0x2071c3(0x271)],'height':_0x9dba3e[_0x2071c3(0x2c7)],'angle':_0x514214['angle'],'evented':!0x1,'zIndex':En}));});}),_0x79dee7[_0x211d98(0x2a5)]===0x0){this[_0x211d98(0x24c)][_0x211d98(0x1cf)][_0x211d98(0x1f1)](!0x0);return;}this[_0x211d98(0x33c)]=!0x0,this['_context'][_0x211d98(0x1cf)][_0x211d98(0x2d5)](_0x79dee7,En),this[_0x211d98(0x33c)]=!0x1,this[_0x211d98(0x381)]=new Set(_0x79dee7),this[_0x211d98(0x24c)][_0x211d98(0x1cf)][_0x211d98(0x1f1)](!0x0);}['_removeCollabCursors'](){const _0x50d24a=_0x392a75;let _0x26cc5d=Array[_0x50d24a(0x233)](this[_0x50d24a(0x381)]);if(_0x26cc5d[_0x50d24a(0x2a5)]===0x0)return;let _0x4043d0=this['_context'][_0x50d24a(0x1cf)];'removeObjects'in _0x4043d0&&typeof _0x4043d0[_0x50d24a(0x310)]==_0x50d24a(0x2f3)?_0x4043d0[_0x50d24a(0x310)](_0x26cc5d):_0x26cc5d['forEach'](_0x2e60ad=>{const _0x30d507=_0x50d24a;_0x30d507(0x252)in _0x4043d0&&typeof _0x4043d0[_0x30d507(0x252)]==_0x30d507(0x2f3)?_0x4043d0[_0x30d507(0x252)](_0x2e60ad):_0x2e60ad[_0x30d507(0x28b)]();}),this[_0x50d24a(0x381)][_0x50d24a(0x1cd)](),_0x4043d0[_0x50d24a(0x1f1)](!0x0);}[_0x392a75(0x3ba)](_0x56c222){const _0x5643dc=_0x392a75;var _0x4a8b59,_0x46f2aa,_0x23f349;let _0x5c05ad=this[_0x5643dc(0x24c)][_0x5643dc(0x1cf)];return(_0x4a8b59=(_0x46f2aa=(_0x23f349=_0x5c05ad['getObjectIncludeInGroup'])==null?void 0x0:_0x23f349['call'](_0x5c05ad,_0x56c222))==null?_0x5c05ad[_0x5643dc(0x222)](_0x56c222):_0x46f2aa)==null?null:_0x4a8b59;}['_getObjectBounds'](_0xf81de7){const _0x25f510=_0x392a75;var _0x493e96,_0x28aa86;let _0x4d4f7d=_0xf81de7;return(_0x493e96=(_0x28aa86=_0x4d4f7d['getRealBound'])==null?void 0x0:_0x28aa86['call'](_0x4d4f7d))==null?{'left':_0xf81de7['left'],'top':_0xf81de7[_0x25f510(0x1ac)],'width':_0xf81de7[_0x25f510(0x271)],'height':_0xf81de7[_0x25f510(0x2c7)]}:_0x493e96;}};On=q([K(0x1,_0x13edf9(X)),K(0x2,_0x13edf9(_0x50ff2f))],On);let Z=class extends _0x20ff58{constructor(_0x54f1ea,_0x2768be,_0x412d2b,_0x297d1f,_0x500d3b,_0x3b1592){const _0x31c1f7=_0x392a75;super(),this[_0x31c1f7(0x394)]=_0x54f1ea,this[_0x31c1f7(0x3df)]=_0x2768be,this['_collaborationUIEventService']=_0x412d2b,this[_0x31c1f7(0x29f)]=_0x297d1f,this['_notificationService']=_0x500d3b,this['_localeService']=_0x3b1592,this[_0x31c1f7(0x223)](),this[_0x31c1f7(0x234)]();}[_0x392a75(0x223)](){const _0x2c568f=_0x392a75;this[_0x2c568f(0x39f)](this[_0x2c568f(0x394)]['registerBeforeClose'](()=>{const _0x51cd2b=_0x2c568f;if(this[_0x51cd2b(0x3df)][_0x51cd2b(0x2a9)][_0x51cd2b(0x1b5)])return this[_0x51cd2b(0x35b)]['t'](_0x51cd2b(0x1e4));}));}[_0x392a75(0x234)](){const _0x4df98b=_0x392a75;this['disposeWithMe'](this[_0x4df98b(0x203)][_0x4df98b(0x265)][_0x4df98b(0x20d)](_0x4701c5=>{const _0x519075=_0x4df98b;_0x4701c5['id']===_0x4cc781[_0x519075(0x228)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x31e))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x1bd)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x2e3))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x1d4)]&&this[_0x519075(0x2cd)][_0x519075(0x2a1)]({'title':this['_localeService']['t']('collaboration-client-ui.permission.title'),'content':this[_0x519075(0x35b)]['t']('collaboration-client-ui.permission.content'),'type':'error','duration':0x0}),_0x4701c5['id']===_0x4cc781[_0x519075(0x2e7)]&&this[_0x519075(0x2cd)][_0x519075(0x2a1)]({'title':this[_0x519075(0x35b)]['t'](_0x519075(0x38c)),'content':this[_0x519075(0x35b)]['t']('collaboration-client-ui.conflict.content'),'type':'error','duration':0x0}),_0x4701c5['id']===_0x4cc781[_0x519075(0x23d)]&&this['_messageService'][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x4701c5[_0x519075(0x1f5)]||'')}),_0x4701c5['id']===_0x4cc781[_0x519075(0x352)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x2ea))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x1d2)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b['Error'],'content':this['_localeService']['t'](_0x519075(0x31c))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x237)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x3a1)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x393))});}));}};Z=q([K(0x0,_0x3e9f71),K(0x1,_0x368670),K(0x2,_0x13edf9(_0x1cd30c)),K(0x3,_0xe2975f),K(0x4,_0x5630e4),K(0x5,_0x13edf9(_0x2cad47))],Z);let kn=class{constructor(_0x2a17ba,_0x2ae299){const _0x5d1fda=_0x392a75;this['_transformService']=_0x2a17ba,this[_0x5d1fda(0x1e8)]=_0x2ae299;}['transformIMECache'](_0x19fb48){const _0x20e6cc=_0x392a75;this[_0x20e6cc(0x226)](_0x19fb48),this['_transformPreviousActiveRange'](_0x19fb48);}['transformRemoteChangeset'](_0x2a8603){const _0x3c6997=_0x392a75;let {unitID:_0x454b89}=_0x2a8603,{redoCache:_0x385331}=this[_0x3c6997(0x1e8)][_0x3c6997(0x2f8)](_0x454b89)[_0x3c6997(0x2d9)](_0x4470e8)[_0x3c6997(0x34f)]();if(_0x385331[_0x3c6997(0x2a5)]===0x0)return _0x2a8603;let _0x343a7a=_0x25962f[_0x3c6997(0x1eb)](_0x2a8603[_0x3c6997(0x339)][0x0]);for(let _0x92c292=0x0;_0x92c292<_0x385331['length'];_0x92c292++){let _0x115f93={'id':_0x3c6997(0x2ca),'params':{..._0x385331[_0x92c292]}},_0x185834=this[_0x3c6997(0x2b4)]['transformMutation'](_0x343a7a,_0x115f93,!0x1);if(_0x5a337f(_0x185834))throw _0x185834['error'];_0x343a7a=_0x185834[_0x3c6997(0x296)];}return{..._0x25962f['deepClone'](_0x2a8603),'mutations':[_0x343a7a]};}['_transformUndoRedoStack'](_0x1d1f77){const _0x53ee1e=_0x392a75;let {unitID:_0xd0be0c}=_0x1d1f77,_0x224372=this[_0x53ee1e(0x1e8)]['getRenderById'](_0xd0be0c)[_0x53ee1e(0x2d9)](_0x4470e8),{undoCache:_0x27fc2e,redoCache:_0x2cf870}=_0x224372[_0x53ee1e(0x34f)]();if(_0x27fc2e[_0x53ee1e(0x2a5)]===0x0||_0x2cf870[_0x53ee1e(0x2a5)]===0x0)return;let _0x40279f=[],_0x605db9=[],_0x5d99df=_0x25962f[_0x53ee1e(0x1eb)](_0x1d1f77[_0x53ee1e(0x339)][0x0]),_0x16c9e0=_0x25962f[_0x53ee1e(0x1eb)](_0x1d1f77['mutations'][0x0]);for(let _0x23fc6a=_0x27fc2e['length']-0x1;_0x23fc6a>=0x0;_0x23fc6a--){let _0x3a039e={'id':'doc.mutation.rich-text-editing','params':{..._0x27fc2e[_0x23fc6a]}},_0x353d54={'id':_0x53ee1e(0x2ca),'params':{..._0x2cf870[_0x23fc6a]}},_0x38e5ed=this['_transformService'][_0x53ee1e(0x299)](_0x5d99df,_0x3a039e,!0x1),_0x12261f=this[_0x53ee1e(0x2b4)][_0x53ee1e(0x299)](_0x16c9e0,_0x353d54,!0x1);if(_0x5a337f(_0x38e5ed))throw _0x38e5ed[_0x53ee1e(0x3b1)];if(_0x5a337f(_0x12261f))throw _0x12261f[_0x53ee1e(0x3b1)];_0x40279f['unshift'](_0x38e5ed[_0x53ee1e(0x1f7)][_0x53ee1e(0x25c)]),_0x605db9[_0x53ee1e(0x26a)](_0x12261f[_0x53ee1e(0x1f7)][_0x53ee1e(0x25c)]),_0x5d99df=_0x38e5ed[_0x53ee1e(0x296)],_0x16c9e0=_0x12261f[_0x53ee1e(0x296)];}_0x224372[_0x53ee1e(0x272)]({'undoCache':_0x40279f,'redoCache':_0x605db9});}['_transformPreviousActiveRange'](_0x23f460){const _0x2d8dea=_0x392a75;let {unitID:_0x50d8fe}=_0x23f460,_0x23fb0b=this[_0x2d8dea(0x1e8)][_0x2d8dea(0x2f8)](_0x50d8fe)[_0x2d8dea(0x2d9)](_0x4470e8),_0xba6f39=_0x23fb0b[_0x2d8dea(0x32a)]();if(_0xba6f39==null)return;let _0x25323f=[{'id':_0x2d8dea(0x2ca),'params':{'unitId':_0x23f460[_0x2d8dea(0x2df)],'actions':null,'textRanges':[_0xba6f39]}}],_0x1a67e8=this[_0x2d8dea(0x2b4)][_0x2d8dea(0x305)](_0x23f460,_0x25323f);if(!_0x286f9e(_0x1a67e8))throw _0x1a67e8[_0x2d8dea(0x3b1)];let _0x27194b=_0x1a67e8['m2Prime'][0x0]['params'][_0x2d8dea(0x325)];Array[_0x2d8dea(0x3a8)](_0x27194b)&&_0x27194b[_0x2d8dea(0x2a5)]&&_0x23fb0b[_0x2d8dea(0x1b4)](_0x27194b[0x0]);}};kn=q([K(0x0,_0x2e0827),K(0x1,_0x17c2eb)],kn);let An=class{constructor(_0x4f82bd,_0x402d54,_0x55c995){const _0x2e3d36=_0x392a75;this[_0x2e3d36(0x248)]=_0x4f82bd,this[_0x2e3d36(0x2b4)]=_0x402d54,this[_0x2e3d36(0x22a)]=_0x55c995;}[_0x392a75(0x290)](_0x42618b){this['_transformHistoryAndStateStack'](_0x42618b);}[_0x392a75(0x2de)](_0x1d344b){const _0xd739af=_0x392a75;let {unitID:_0x10bff6}=_0x1d344b,{collaboration:_0xb43c1b}=this[_0xd739af(0x22a)][_0xd739af(0x24f)](_0x10bff6);if(_0xb43c1b[_0xd739af(0x2a5)]===0x0)return _0x1d344b;let _0x22d958=_0x25962f[_0xd739af(0x1eb)](_0x1d344b[_0xd739af(0x339)][0x0]);for(let _0x508e50=0x0;_0x508e50<_0xb43c1b[_0xd739af(0x2a5)];_0x508e50++){let _0x4325a6={'id':_0xd739af(0x2ca),'params':{'unitId':_0xb43c1b[_0x508e50][_0xd739af(0x358)],..._0xb43c1b[_0x508e50][_0xd739af(0x230)]}},_0x3f80ee=this[_0xd739af(0x2b4)][_0xd739af(0x299)](_0x22d958,_0x4325a6,!0x1);if(_0x5a337f(_0x3f80ee))throw _0x3f80ee[_0xd739af(0x3b1)];_0x22d958=_0x3f80ee[_0xd739af(0x296)];}return{..._0x25962f['deepClone'](_0x1d344b),'mutations':[_0x22d958]};}[_0x392a75(0x3cd)](_0x4412a1){const _0x49cc3c=_0x392a75;let {unitID:_0x505d63}=_0x4412a1,{history:_0x2791ca,collaboration:_0x425dd7}=this[_0x49cc3c(0x22a)][_0x49cc3c(0x24f)](_0x505d63);if(_0x2791ca['length']===0x0&&_0x425dd7[_0x49cc3c(0x2a5)]===0x0)return;let _0x5b4e53=[],_0xd84acc=[],_0x214aaa=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]),_0x1852ee=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]);for(let _0x8fa208=_0x2791ca[_0x49cc3c(0x2a5)]-0x1;_0x8fa208>=0x0;_0x8fa208--){let _0x119a93={'id':_0x49cc3c(0x2ca),'params':{'unitId':_0x2791ca[_0x8fa208][_0x49cc3c(0x358)],..._0x2791ca[_0x8fa208]['undoState']}},_0x84dba9={'id':_0x49cc3c(0x2ca),'params':{'unitId':_0x2791ca[_0x8fa208][_0x49cc3c(0x358)],..._0x2791ca[_0x8fa208][_0x49cc3c(0x230)]}},_0x5c3542=this[_0x49cc3c(0x2b4)][_0x49cc3c(0x299)](_0x214aaa,_0x119a93,!0x1),_0x2e9672=this['_transformService']['transformMutation'](_0x1852ee,_0x84dba9,!0x1);if(_0x5a337f(_0x5c3542))throw _0x5c3542[_0x49cc3c(0x3b1)];if(_0x5a337f(_0x2e9672))throw _0x2e9672[_0x49cc3c(0x3b1)];_0x5b4e53['unshift']({..._0x2791ca[_0x8fa208],'undoState':_0x5c3542[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)],'redoState':_0x2e9672[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)]}),_0x214aaa=_0x5c3542[_0x49cc3c(0x296)],_0x1852ee=_0x2e9672[_0x49cc3c(0x296)];}_0x214aaa=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]),_0x1852ee=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]);for(let _0x5f4ff4=_0x425dd7[_0x49cc3c(0x2a5)]-0x1;_0x5f4ff4>=0x0;_0x5f4ff4--){let _0x64ad5c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x425dd7[_0x5f4ff4]['unitId'],..._0x425dd7[_0x5f4ff4][_0x49cc3c(0x368)]}},_0x4bc6bd={'id':_0x49cc3c(0x2ca),'params':{'unitId':_0x425dd7[_0x5f4ff4][_0x49cc3c(0x358)],..._0x425dd7[_0x5f4ff4][_0x49cc3c(0x230)]}},_0x5c1483=this['_transformService'][_0x49cc3c(0x299)](_0x214aaa,_0x64ad5c,!0x1),_0x8a3cf3=this[_0x49cc3c(0x2b4)][_0x49cc3c(0x299)](_0x1852ee,_0x4bc6bd,!0x1);if(_0x5a337f(_0x5c1483))throw _0x5c1483[_0x49cc3c(0x3b1)];if(_0x5a337f(_0x8a3cf3))throw _0x8a3cf3[_0x49cc3c(0x3b1)];_0xd84acc[_0x49cc3c(0x26a)]({..._0x425dd7[_0x5f4ff4],'undoState':_0x5c1483[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)],'redoState':_0x8a3cf3[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)]}),_0x214aaa=_0x5c1483['m1Prime'],_0x1852ee=_0x8a3cf3[_0x49cc3c(0x296)];}this['_docStateChangeManagerService'][_0x49cc3c(0x28c)](_0x505d63,{'history':_0x5b4e53,'collaboration':_0xd84acc});}};function _0x449b(_0x4ee1eb,_0x2787b2){_0x4ee1eb=_0x4ee1eb-0x1a3;const _0x12521a=_0x1252();let _0x449bcf=_0x12521a[_0x4ee1eb];return _0x449bcf;}An=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x2e0827),K(0x2,_0x13edf9(_0x556b00))],An);let jn=class{constructor(_0x31474c,_0x12fd93){const _0x45f6e8=_0x392a75;this[_0x45f6e8(0x248)]=_0x31474c,this[_0x45f6e8(0x2b4)]=_0x12fd93;}[_0x392a75(0x21c)](_0x3ec77a){const _0x150609=_0x392a75;var _0x267f41;let _0x1a81d2=this[_0x150609(0x248)][_0x150609(0x270)](_0x391601),_0x37874b=(_0x267f41=_0x1a81d2[_0x150609(0x396)]())==null?[]:_0x267f41;if(_0x37874b['length']===0x0)return;let _0x58c181=_0x3ec77a[_0x150609(0x2df)],_0x518559=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58c181,'actions':null,'textRanges':_0x37874b}}],_0x3357f5=this[_0x150609(0x2b4)][_0x150609(0x305)](_0x3ec77a,_0x518559);if(!_0x286f9e(_0x3357f5))throw _0x3357f5['error'];let _0xac0295=_0x3357f5[_0x150609(0x1f7)][0x0]['params'][_0x150609(0x325)];Array[_0x150609(0x3a8)](_0xac0295)&&_0xac0295[_0x150609(0x2a5)]&&_0x1a81d2['replaceDocRanges'](_0xac0295,{'unitId':_0x58c181,'subUnitId':_0x58c181},!0x1);}};jn=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x2e0827)],jn);let Mn=class extends _0x20ff58{constructor(_0x2153e1,_0x27589b,_0x5cece4,_0x30f503,_0x24c56c,_0x42f538,_0x3f06a6){const _0x41e868=_0x392a75;super(),this[_0x41e868(0x361)]=_0x2153e1,this['_docTransformIMECacheService']=_0x27589b,this['_docTransformStateCacheService']=_0x5cece4,this['_docTransformSelectionsService']=_0x30f503,this['_docSyncEditingCollabCursorService']=_0x24c56c,this[_0x41e868(0x29f)]=_0x42f538,this['_localeService']=_0x3f06a6,G(this,_0x41e868(0x2f5),new _0xd9ac59(_0x21b797[_0x41e868(0x39b)])),this[_0x41e868(0x242)]();}[_0x392a75(0x242)](){this['disposeWithMe'](this['_collaborationController']['entityInit$']['subscribe'](_0x5d72e4=>{const _0x59ef5b=_0x449b;_0x5d72e4 instanceof _0x25f7c1&&_0x5d72e4['addHandlerCallback']({'onTransformIME':_0x46b311=>this[_0x59ef5b(0x1c3)][_0x59ef5b(0x347)](_0x46b311),'onTransformState':_0x1a383c=>this[_0x59ef5b(0x322)][_0x59ef5b(0x290)](_0x1a383c),'onTransformSelections':_0x6665e8=>this[_0x59ef5b(0x1b9)][_0x59ef5b(0x21c)](_0x6665e8),'onSyncEditingCollabCursor':_0x360f24=>this[_0x59ef5b(0x1c8)]['syncEditingCollabCursor'](_0x360f24),'onTransformRemoteChangesetByIMECache':_0x49bd38=>this['_docTransformIMECacheService'][_0x59ef5b(0x2de)](_0x49bd38),'onTransformRemoteChangesetByStateCache':_0x2ed63d=>this[_0x59ef5b(0x322)]['transformRemoteChangeset'](_0x2ed63d)});}));}};Mn=q([K(0x0,_0x13edf9(_0x57a70b)),K(0x1,_0x13edf9(kn)),K(0x2,_0x13edf9(An)),K(0x3,_0x13edf9(jn)),K(0x4,_0x13edf9(fn)),K(0x5,_0xe2975f),K(0x6,_0x13edf9(_0x2cad47))],Mn);let Nn=class extends _0x20ff58{constructor(_0x5e07c6,_0x14ce14,_0x24e6ee,_0x3a15c5){const _0x3a520b=_0x392a75;super(),this[_0x3a520b(0x248)]=_0x5e07c6,this[_0x3a520b(0x3b5)]=_0x14ce14,this[_0x3a520b(0x239)]=_0x24e6ee,this[_0x3a520b(0x397)]=_0x3a15c5,G(this,'_memberID',void 0x0),this['_init']();}[_0x392a75(0x1b8)](){const _0x4e8879=_0x392a75;this[_0x4e8879(0x2a3)](),this[_0x4e8879(0x3c0)](),this[_0x4e8879(0x2c9)](),this['_initUserListener']();}[_0x392a75(0x2a7)](){const _0xb149ff=_0x392a75;this[_0xb149ff(0x39f)](this[_0xb149ff(0x397)][_0xb149ff(0x2cc)]['subscribe'](_0x13872b=>{const _0x102af2=_0xb149ff;this['_memberID']=_0x13872b==null?void 0x0:_0x13872b[_0x102af2(0x319)];}));}[_0x392a75(0x2a3)](){const _0x39ac01=_0x392a75;let _0x2410b=_0x1f2636=>{const _0x2a1fc5=_0x449b;var _0x2cd8ed;this['_uploadLog'](_0x2a1fc5(0x3b1),_0x2a1fc5(0x21a)+_0x1f2636['message']+'\x20at\x20'+_0x1f2636['filename']+':'+_0x1f2636[_0x2a1fc5(0x214)]+':'+_0x1f2636[_0x2a1fc5(0x1ca)]+'\x0a'+(((_0x2cd8ed=_0x1f2636[_0x2a1fc5(0x3b1)])==null?void 0x0:_0x2cd8ed[_0x2a1fc5(0x37b)])||''));};window['addEventListener']('error',_0x2410b),this[_0x39ac01(0x39f)](()=>{const _0x110011=_0x39ac01;window[_0x110011(0x287)]('error',_0x2410b);});}[_0x392a75(0x3c0)](){const _0x347992=_0x392a75;let _0x3a5d28=_0x38fa5e=>{const _0x4b7b35=_0x449b;this['_uploadLog']('error','[Unhandled\x20Rejection]:\x20'+_0x38fa5e[_0x4b7b35(0x380)]);};window[_0x347992(0x3ae)]('unhandledrejection',_0x3a5d28),this[_0x347992(0x39f)](()=>{window['removeEventListener']('unhandledrejection',_0x3a5d28);});}[_0x392a75(0x2c9)](){const _0x29790c=_0x392a75;let _0x850836=this[_0x29790c(0x239)][_0x29790c(0x3b1)][_0x29790c(0x30b)](this[_0x29790c(0x239)]);this['_logService'][_0x29790c(0x3b1)]=(..._0xa9c171)=>{const _0x48d78b=_0x29790c;let _0x191f30=_0xa9c171[_0x48d78b(0x21d)](_0x16817f=>_0x16817f instanceof Error?_0x16817f[_0x48d78b(0x215)]+'\x0a'+_0x16817f['stack']:String(_0x16817f))['join']('\x20');this[_0x48d78b(0x2e6)]('error',_0x48d78b(0x302)+_0x191f30),_0x850836(..._0xa9c171);},this[_0x29790c(0x39f)](()=>{const _0x19dcd4=_0x29790c;this[_0x19dcd4(0x239)][_0x19dcd4(0x3b1)]=_0x850836;});}[_0x392a75(0x2e6)](_0xde8569,_0x200a99){const _0x2da6a6=_0x392a75;try{let _0x1a67be={'userId':this[_0x2da6a6(0x238)],'logLabel':_0xde8569,'content':_0x200a99};this['_httpService'][_0x2da6a6(0x300)](_0x2da6a6(0x210),{'body':_0x1a67be})[_0x2da6a6(0x338)](()=>{});}catch{}}};Nn=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x13edf9(_0x2fee98)),K(0x2,_0x4cd0b8),K(0x3,_0x13edf9(_0x95c018))],Nn);function Pn(_0x1862df){const _0xf97e71=_0x392a75;var _0x23d472,_0x25b2e8;let _0x121ee0=(_0x23d472=_0x1862df[_0xf97e71(0x303)])==null?void 0x0:_0x23d472[_0xf97e71(0x3a4)],_0x45d5c3=((_0x25b2e8=_0x1862df[_0xf97e71(0x303)])==null?void 0x0:_0x25b2e8[_0xf97e71(0x376)])||0x0;return _0x121ee0===_0x42dd59[_0xf97e71(0x212)]&&_0x45d5c3>0x0;}function Fn(_0xf8c531){const _0x1b343b=_0x392a75;return _0xf8c531[_0x1b343b(0x2dc)]===_0x368132[_0x1b343b(0x1da)];}let Q=class extends _0x20ff58{constructor(_0x422735,_0x5ae29c,_0x42e114,_0x188f57,_0x393722,_0x3332c6,_0x36b7b2){const _0x48ac66=_0x392a75;super(),this[_0x48ac66(0x29f)]=_0x422735,this['_commandService']=_0x5ae29c,this[_0x48ac66(0x355)]=_0x42e114,this[_0x48ac66(0x3b5)]=_0x188f57,this['_univerInstanceService']=_0x393722,this[_0x48ac66(0x239)]=_0x3332c6,this[_0x48ac66(0x35b)]=_0x36b7b2,G(this,_0x48ac66(0x3d9),null),G(this,_0x48ac66(0x3e0),0x0),G(this,_0x48ac66(0x32c),0x0),G(this,'_taskIds',[]),G(this,_0x48ac66(0x1a6),0x0),this[_0x48ac66(0x24e)]();}['_initCommandInterceptor'](){const _0x419a6b=_0x392a75;this[_0x419a6b(0x39f)](this[_0x419a6b(0x26f)][_0x419a6b(0x327)]((_0x3cd3d2,_0x36a3e9)=>{const _0x1c0f91=_0x419a6b;var _0x288cb4;if(_0x3cd3d2['id']!==_0x41430f['id'])return;let _0x3a3bd5=_0x3cd3d2[_0x1c0f91(0x25c)];if(this[_0x1c0f91(0x2bd)]((_0x288cb4=_0x3a3bd5['dirtyRanges'])==null?[]:_0x288cb4)&&!this[_0x1c0f91(0x22d)]())throw this[_0x1c0f91(0x36f)](_0x3cd3d2,_0x36a3e9),this[_0x1c0f91(0x2c8)](),new _0x5f439f();})),this[_0x419a6b(0x39f)](this[_0x419a6b(0x26f)]['onCommandExecuted']((_0x47b8a8,_0x2d3be8)=>{const _0x196ae3=_0x419a6b;if(_0x47b8a8['id']!==_0x325e4e['id'])return;let _0x531fcb=_0x47b8a8[_0x196ae3(0x25c)];if(Pn(_0x531fcb)){let _0x418475=_0x35c403();this[_0x196ae3(0x3ac)][_0x196ae3(0x2f4)](_0x418475),this[_0x196ae3(0x1e6)](_0x418475);}else{if(Fn(_0x531fcb)&&this[_0x196ae3(0x3ac)][_0x196ae3(0x2a5)]>0x0){let _0x2c9044=this[_0x196ae3(0x3ac)][_0x196ae3(0x276)]();this[_0x196ae3(0x1ba)](_0x2c9044);}}}));}[_0x392a75(0x28b)](){const _0x5262e2=_0x392a75;super[_0x5262e2(0x28b)](),this[_0x5262e2(0x315)](),this[_0x5262e2(0x3ac)]=[],this[_0x5262e2(0x32c)]=0x0,this[_0x5262e2(0x3e0)]=0x0,this[_0x5262e2(0x1a6)]=0x0;}async[_0x392a75(0x36f)](_0x10ecd7,_0x3a5679){const _0x39c950=_0x392a75;for(let _0x142818=0x0;_0x142818<0x1e;_0x142818++)try{if(await this[_0x39c950(0x3b0)](),this[_0x39c950(0x22d)]()){this[_0x39c950(0x243)](_0x10ecd7,_0x3a5679),this[_0x39c950(0x29f)][_0x39c950(0x2a1)]({'content':this[_0x39c950(0x35b)]['t'](_0x39c950(0x1b7)),'type':_0x2cde3b[_0x39c950(0x39d)]});return;}await new Promise(_0x5d7298=>{const _0x32a87f=_0x39c950;this[_0x32a87f(0x3d9)]=window[_0x32a87f(0x2fb)](_0x5d7298,0x3e8);});}catch(_0xfc532e){this[_0x39c950(0x239)][_0x39c950(0x3b1)](_0xfc532e);}this[_0x39c950(0x29f)][_0x39c950(0x2a1)]({'content':this[_0x39c950(0x35b)]['t'](_0x39c950(0x30c)),'type':_0x2cde3b['Error']});}['_applyCommand'](_0x528776,_0x31c4b6){const _0x9ceca=_0x392a75;try{this[_0x9ceca(0x26f)][_0x9ceca(0x293)](_0x528776['id'],_0x528776['params'],_0x31c4b6);}catch(_0x1e4a55){this[_0x9ceca(0x239)][_0x9ceca(0x3b1)](_0x1e4a55);}}[_0x392a75(0x2b2)](_0x36bdb0,_0x1334be){const _0x4d51db=_0x392a75;_0x1334be<this[_0x4d51db(0x1a6)]||(this['_lastResponseTimestamp']=_0x1334be,this[_0x4d51db(0x3e0)]=Number[_0x4d51db(0x27c)](_0x36bdb0[_0x4d51db(0x312)]),this[_0x4d51db(0x32c)]=Number['parseInt'](_0x36bdb0[_0x4d51db(0x313)]));}async[_0x392a75(0x1e6)](_0x3b952c){const _0x1b7630=_0x392a75;let _0x3c0509=Date['now']();try{var _0x501517,_0x175383;let _0xec9616=((_0x501517=this[_0x1b7630(0x355)][_0x1b7630(0x1ee)](_0x10c7b2))==null?void 0x0:_0x501517['startFormulaLimitUrl'])||_0x1b7630(0x37a),_0x268daf=(await this[_0x1b7630(0x3b5)]['post'](_0xec9616,{'body':JSON[_0x1b7630(0x20f)]({'taskId':_0x3b952c})}))[_0x1b7630(0x3de)];if(((_0x175383=_0x268daf[_0x1b7630(0x3b1)])==null?void 0x0:_0x175383['code'])!==_0x30ce4e['OK'])return;this[_0x1b7630(0x2b2)](_0x268daf[_0x1b7630(0x341)],_0x3c0509);}catch(_0x493c10){this[_0x1b7630(0x239)][_0x1b7630(0x3b1)](_0x493c10);}}async[_0x392a75(0x3b0)](_0x78719){const _0x2fd971=_0x392a75;let _0x16772f=Date[_0x2fd971(0x1a5)]();try{var _0x344fab,_0x30e086;let _0x2f5ee6=((_0x344fab=this[_0x2fd971(0x355)][_0x2fd971(0x1ee)](_0x10c7b2))==null?void 0x0:_0x344fab[_0x2fd971(0x2e9)])||_0x2fd971(0x1c5),_0x5c962e=_0x78719?_0x2f5ee6+_0x2fd971(0x39c)+encodeURIComponent(_0x78719):_0x2f5ee6,_0x5b5598=(await this['_httpService']['get'](_0x5c962e))[_0x2fd971(0x3de)];if(((_0x30e086=_0x5b5598[_0x2fd971(0x3b1)])==null?void 0x0:_0x30e086[_0x2fd971(0x3c2)])!==_0x30ce4e['OK'])return;this[_0x2fd971(0x2b2)](_0x5b5598['limitInfo'],_0x16772f);}catch(_0x1ab73f){this['_logService'][_0x2fd971(0x3b1)](_0x1ab73f);}}async[_0x392a75(0x1ba)](_0x138d99){const _0x1393a3=_0x392a75;let _0x5cb51d=Date['now']();try{var _0x4192ae,_0x4cffe8;let _0x42971c=((_0x4192ae=this[_0x1393a3(0x355)][_0x1393a3(0x1ee)](_0x10c7b2))==null?void 0x0:_0x4192ae['releaseFormulaLimitUrl'])||_0x1393a3(0x3cf),_0x19cd8d=(await this['_httpService'][_0x1393a3(0x300)](_0x42971c,{'body':JSON[_0x1393a3(0x20f)]({'taskId':_0x138d99})}))[_0x1393a3(0x3de)];if(((_0x4cffe8=_0x19cd8d[_0x1393a3(0x3b1)])==null?void 0x0:_0x4cffe8[_0x1393a3(0x3c2)])!==_0x30ce4e['OK'])return;this[_0x1393a3(0x2b2)](_0x19cd8d[_0x1393a3(0x341)],_0x5cb51d);}catch(_0x557523){this[_0x1393a3(0x239)][_0x1393a3(0x3b1)](_0x557523);}}[_0x392a75(0x22d)](){const _0x305c1d=_0x392a75;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x305c1d(0x3e0)]-this[_0x305c1d(0x32c)]>0x0;}[_0x392a75(0x315)](){const _0x16eabb=_0x392a75;this[_0x16eabb(0x3d9)]&&(clearTimeout(this[_0x16eabb(0x3d9)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x1f78e8=_0x392a75;this[_0x1f78e8(0x29f)]['show']({'content':this[_0x1f78e8(0x35b)]['t'](_0x1f78e8(0x35c)),'type':_0x2cde3b[_0x1f78e8(0x33d)]});}[_0x392a75(0x2bd)](_0x4949c2){const _0x2ca715=_0x392a75;for(let _0x12f957 of _0x4949c2){let {unitId:_0x6205cd,sheetId:_0xef9943,range:_0x2057d7}=_0x12f957,_0x469595=this[_0x2ca715(0x224)]['getUnit'](_0x6205cd);if(!_0x469595)continue;let _0x481005=_0x469595[_0x2ca715(0x298)](_0xef9943);if(!_0x481005)continue;let _0x304822=_0x481005['getCellMatrix']();for(let _0x81156d=_0x2057d7[_0x2ca715(0x384)];_0x81156d<=_0x2057d7[_0x2ca715(0x25e)];_0x81156d++)for(let _0x4e306c=_0x2057d7['startColumn'];_0x4e306c<=_0x2057d7[_0x2ca715(0x2cb)];_0x4e306c++){let _0x2e7f82=_0x304822[_0x2ca715(0x3cc)](_0x81156d,_0x4e306c);if(_0x2e7f82&&(_0x1b0724(_0x2e7f82['f'])||_0x2c094f(_0x2e7f82['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x13edf9(_0xe2975f)),K(0x1,_0x338dbd),K(0x2,_0x3b56ca),K(0x3,_0x13edf9(_0x2fee98)),K(0x4,_0x5c7755),K(0x5,_0x4cd0b8),K(0x6,_0x13edf9(_0x2cad47))],Q);let In=class extends _0x20ff58{constructor(_0x3ec221,_0x22df7c,_0x42504a){const _0x283219=_0x392a75;super(),this[_0x283219(0x355)]=_0x3ec221,this[_0x283219(0x3a3)]=_0x22df7c,this[_0x283219(0x32f)]=_0x42504a,G(this,_0x283219(0x288),new Map()),G(this,_0x283219(0x1c4),new Map()),G(this,_0x283219(0x2f2),!0x1);}[_0x392a75(0x1fd)](){const _0x3f2e34=_0x392a75;this[_0x3f2e34(0x2f2)]=!0x0;}[_0x392a75(0x2a4)](){const _0x1c5085=_0x392a75;this[_0x1c5085(0x2f2)]=!0x1;}get[_0x392a75(0x2a9)](){const _0x3332a0=_0x392a75;return this[_0x3332a0(0x1c4)];}[_0x392a75(0x28b)](){const _0x2902ad=_0x392a75;this['exhaustSavingTask']()['then'](()=>super[_0x2902ad(0x28b)]());}async['loadOfflineData'](_0x475517){const _0x349af1=_0x392a75;return this[_0x349af1(0x2f2)]?null:this[_0x349af1(0x3a3)]['getItem'](_0x41e692(_0x475517));}async[_0x392a75(0x3b8)](_0x3cd045,_0x30cd6f){const _0x10b148=_0x392a75;return!!this[_0x10b148(0x3a3)][_0x10b148(0x344)](_0x41e692(_0x3cd045),_0x30cd6f);}async['backupOfflineData'](_0x3dff64,_0x2dac7a){const _0x112412=_0x392a75;var _0x5be620;let _0x37f845=(_0x5be620=this[_0x112412(0x288)][_0x112412(0x270)](_0x3dff64))==null?await this[_0x112412(0x3a3)][_0x112412(0x3d2)](_0x41e692(_0x3dff64)):_0x5be620;if(!_0x37f845)return;let _0x525801=Date[_0x112412(0x1a5)](),_0x28c3b=new Date(_0x525801)[_0x112412(0x3bd)]();await this[_0x112412(0x3a3)]['setItem'](_0x41e692(_0x3dff64)+_0x112412(0x269)+_0x525801,{'reason':_0x2dac7a,'createdAt':_0x28c3b,'data':_0x37f845});}['updateOfflineData'](_0x2e1eae,_0x343a3e,_0x575e68,_0x25159b){const _0x815c37=_0x392a75;let _0x220963=this['_revisionService'][_0x815c37(0x39a)](_0x2e1eae);this[_0x815c37(0x288)]['set'](_0x2e1eae,{'unitID':_0x2e1eae,'type':_0x343a3e,'awaitingChangeset':_0x575e68,'mutations':_0x25159b,'rev':_0x220963}),this[_0x815c37(0x1c4)][_0x815c37(0x36e)](_0x2e1eae)||this['_scheduleSaving'](_0x2e1eae);}[_0x392a75(0x28a)](_0x2303b0){const _0x377b97=_0x392a75;let _0x37297e=this[_0x377b97(0x39e)]();_0x37297e===0x0?this['_saveCache'](_0x2303b0):this[_0x377b97(0x1c4)][_0x377b97(0x3b9)](_0x2303b0,setTimeout(()=>this['_saveCache'](_0x2303b0),_0x37297e));}[_0x392a75(0x39e)](){const _0x3e46bf=_0x392a75;var _0x182f91;return(_0x182f91=this['_configService'][_0x3e46bf(0x1ee)](_0x108427))==null?_0x23e32b:_0x182f91;}[_0x392a75(0x22f)](_0xbf1e2b){const _0x556ad1=_0x392a75;let _0x53e291=this[_0x556ad1(0x1c4)][_0x556ad1(0x270)](_0xbf1e2b);return _0x53e291!==void 0x0&&window[_0x556ad1(0x23e)](_0x53e291),this[_0x556ad1(0x3a3)][_0x556ad1(0x344)](_0x41e692(_0xbf1e2b),this[_0x556ad1(0x288)][_0x556ad1(0x270)](_0xbf1e2b))[_0x556ad1(0x240)](()=>this[_0x556ad1(0x1c4)]['delete'](_0xbf1e2b));}async[_0x392a75(0x202)](){const _0x1604a5=_0x392a75;let _0x131818=[];this['_saveTaskMap'][_0x1604a5(0x365)]((_0x150097,_0x1624af)=>{const _0x2456ae=_0x1604a5;window[_0x2456ae(0x23e)](_0x150097),_0x131818[_0x2456ae(0x2f4)](this[_0x2456ae(0x22f)](_0x1624af)[_0x2456ae(0x240)](()=>{const _0xe258ba=_0x2456ae;this[_0xe258ba(0x1c4)][_0xe258ba(0x250)](_0x1624af);}));}),await Promise[_0x1604a5(0x259)](_0x131818);}};In=q([K(0x0,_0x3b56ca),K(0x1,_0x2a3285),K(0x2,_0x13edf9(_0x18ade7))],In);var Ln=class extends _0x47ffee{constructor(){const _0x399d68=_0x392a75;super(),G(this,_0x399d68(0x3b4),void 0x0),this[_0x399d68(0x3b4)]=_0x4fc3aa(window,'popstate')[_0x399d68(0x1f6)](_0x5f111a(this[_0x399d68(0x218)]),_0x46e2a6({'bufferSize':0x1,'refCount':!0x0}),_0x16d043(void 0x0));}['setParam'](_0x353706,_0x1997c1,_0x28405d=!0x1){const _0x126b15=_0x392a75;let _0x3f719f=new URL(window['location']['href']);_0x3f719f[_0x126b15(0x3b2)][_0x126b15(0x3b9)](_0x353706,_0x1997c1),_0x28405d?window[_0x126b15(0x20c)][_0x126b15(0x3ce)]('','',_0x3f719f['toString']()):window['history']['pushState']('','',_0x3f719f[_0x126b15(0x21f)]());}['removeParam'](_0x136ef9,_0x44e9ab=!0x1){const _0x1ef97a=_0x392a75;let _0x3a0bea=new URL(window['location']['href']);_0x3a0bea[_0x1ef97a(0x3b2)][_0x1ef97a(0x250)](_0x136ef9),_0x44e9ab?window[_0x1ef97a(0x20c)]['replaceState']('','',_0x3a0bea[_0x1ef97a(0x21f)]()):window['history'][_0x1ef97a(0x2d1)]('','',_0x3a0bea[_0x1ef97a(0x21f)]());}[_0x392a75(0x1e0)](_0xbe8b19){const _0x56412a=_0x392a75;var _0xb66192;return(_0xb66192=new URL(window[_0x56412a(0x3ca)][_0x56412a(0x27f)])[_0x56412a(0x3b2)][_0x56412a(0x270)](_0xbe8b19))==null?void 0x0:_0xb66192;}};let $=class extends _0x5f4a3f{constructor(_0xb60052=on,_0x500356,_0x58de1b,_0xa08815){const _0x11087b=_0x392a75;super(),this[_0x11087b(0x236)]=_0xb60052,this[_0x11087b(0x1e8)]=_0x500356,this[_0x11087b(0x248)]=_0x58de1b,this['_configService']=_0xa08815;let {..._0x19d09c}=_0x1c04c4({},on,this[_0x11087b(0x236)]);this[_0x11087b(0x355)][_0x11087b(0x3d1)](_0x11087b(0x2e2),_0x19d09c);}[_0x392a75(0x3d0)](){const _0x5ec3c5=_0x392a75;this[_0x5ec3c5(0x374)](),this[_0x5ec3c5(0x1fb)]();}[_0x392a75(0x1fe)](){this['_registerRenderDependencies']();}[_0x392a75(0x374)](){const _0x1c4906=_0x392a75;var _0xdd5f6b;let _0x5d558d=[[ln],[Q],[nn,{'useClass':Ln}],[_0x21a141,{'useClass':_0x4c2e99}],[_0x368670,{'useClass':In}],[J],[Z],[X],[Y]];this[_0x1c4906(0x236)][_0x1c4906(0x377)]!==!0x1&&_0x5d558d[_0x1c4906(0x2f4)]([jn],[kn],[An],[fn],[Mn],[sn]),this['_config'][_0x1c4906(0x36a)]&&_0x5d558d[_0x1c4906(0x2f4)]([Nn]),_0x11d37d(this['_injector'],_0x131c21(_0x5d558d,(_0xdd5f6b=this[_0x1c4906(0x236)])==null?void 0x0:_0xdd5f6b[_0x1c4906(0x29a)]));}['_registerRenderDependencies'](){const _0x51a63f=_0x392a75;this['_config'][_0x51a63f(0x377)]!==!0x1&&this[_0x51a63f(0x39f)](this[_0x51a63f(0x1e8)]['registerRenderModule'](_0x12ddec[_0x51a63f(0x331)],[Sn])),this[_0x51a63f(0x39f)](this['_renderManagerService'][_0x51a63f(0x29b)](_0x12ddec['UNIVER_SHEET'],[wn])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](_0x12ddec[_0x51a63f(0x363)],[On]));}['_initDependencies'](){const _0xd574ab=_0x392a75;_0x21d03b(this[_0xd574ab(0x248)],[[X],[J],[Z],[Y],[Q]]),this[_0xd574ab(0x236)]['enableDocumentCollaborationUI']!==!0x1&&_0x21d03b(this[_0xd574ab(0x248)],[[Mn],[sn]]),this['_config'][_0xd574ab(0x36a)]&&_0x21d03b(this[_0xd574ab(0x248)],[[Nn]]);}};G($,_0x392a75(0x31f),_0x392a75(0x23c)),G($,_0x392a75(0x225),rn),G($,_0x392a75(0x390),an),$=q([_0x38329d(_0x537e55),K(0x1,_0x17c2eb),K(0x2,_0x13edf9(_0x4decc3)),K(0x3,_0x3b56ca)],$);let Rn=class extends _0xd45fa9{constructor(_0x292f40,_0x2a1253,_0x5ef0cc,_0x4228c7,_0x45702a){super(_0x292f40,_0x2a1253,_0x5ef0cc,_0x4228c7,_0x45702a);}async['createSocket'](_0x352eb4){const _0x5df4bc=_0x392a75;let _0x2777b9=await this[_0x5df4bc(0x30f)](),_0x4ba355=this['_createSocketURL'](_0x352eb4,_0x2777b9);return this[_0x5df4bc(0x1c1)](_0x4ba355);}['_createSocketURL'](_0x1255f9,_0x20d496){const _0x5ab7f5=_0x392a75;let _0x15e4f3=typeof window>'u'?new URL(_0x1255f9):new URL(_0x1255f9,window[_0x5ab7f5(0x3ca)][_0x5ab7f5(0x2c0)]);_0x15e4f3[_0x5ab7f5(0x3b2)][_0x5ab7f5(0x3b9)]('sessionTicket',_0x20d496);let _0x53d040=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5ab7f5(0x3ca)]['search']);return _0x53d040[_0x5ab7f5(0x270)](_0x5ab7f5(0x1a7))&&_0x15e4f3[_0x5ab7f5(0x3b2)][_0x5ab7f5(0x3b9)]('runId',_0x53d040[_0x5ab7f5(0x270)](_0x5ab7f5(0x1a7))),_0x15e4f3[_0x5ab7f5(0x21f)]();}async['_getSessionTicket'](){const _0x45bae4=_0x392a75;var _0x31db2b,_0x530316,_0x42306a;let _0xae7466=this[_0x45bae4(0x355)][_0x45bae4(0x1ee)](_0x10c7b2),_0x21fe6a=(_0x31db2b=_0xae7466==null?void 0x0:_0xae7466[_0x45bae4(0x30e)])==null?_0x5c4165:_0x31db2b;return(_0x530316=(_0x42306a=(await this[_0x45bae4(0x3b5)]['get'](_0x21fe6a,{'headers':{'Content-Type':_0x45bae4(0x1f8)}}))['body'])==null?void 0x0:_0x42306a[_0x45bae4(0x383)])==null?'':_0x530316;}};Rn=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x13edf9(_0x2fee98)),K(0x2,_0x3b56ca),K(0x3,_0x4cd0b8),K(0x4,_0x36b03a)],Rn);let zn=class extends _0x20ff58{constructor(_0x211cd7,_0x1998d7,_0x496e35){const _0x1b23df=_0x392a75;super(),this[_0x1b23df(0x249)]=_0x211cd7,this['_httpService']=_0x1998d7,this['_configService']=_0x496e35;}async['runOnServer'](_0x48a01f,_0x231ac7,_0x232d6d,..._0x3916c9){const _0x4bc660=_0x392a75;var _0x403e99,_0x50a646,_0x13badc,_0x51bde9;let _0x298dba=this[_0x4bc660(0x249)][_0x4bc660(0x326)]();if(!_0x298dba)throw Error(_0x4bc660(0x1af));let _0x346923=((_0x403e99=this['_configService'][_0x4bc660(0x1ee)](_0x597d03))==null?_0x5ed597:_0x403e99)+'/'+_0x48a01f+_0x4bc660(0x2bc)+_0x231ac7,_0x3af8fa={'scriptId':_0x48a01f,'runId':(_0x50a646=new URL(window[_0x4bc660(0x3ca)][_0x4bc660(0x27f)])[_0x4bc660(0x3b2)][_0x4bc660(0x270)]('runId'))==null?'':_0x50a646,'function':_0x231ac7,'unitId':_0x298dba[_0x4bc660(0x3a6)](),'argsOfFunction':JSON[_0x4bc660(0x20f)](_0x3916c9),'invokeId':(_0x13badc=_0x232d6d[_0x4bc660(0x2a8)])==null?'':_0x13badc,'executionId':(_0x51bde9=_0x232d6d[_0x4bc660(0x359)])==null?'':_0x51bde9};try{let _0x89792b=await this[_0x4bc660(0x3b5)][_0x4bc660(0x300)](_0x346923,{'body':_0x3af8fa});return _0x89792b[_0x4bc660(0x3de)][_0x4bc660(0x3b1)]&&_0x89792b[_0x4bc660(0x3de)][_0x4bc660(0x3b1)]['code']!==_0x30ce4e['OK']?_0x4bc660(0x38b):_0x89792b[_0x4bc660(0x3de)]['result'];}catch{return _0x4bc660(0x38b);}}};zn=q([K(0x0,_0x5c7755),K(0x1,_0x13edf9(_0x2fee98)),K(0x2,_0x3b56ca)],zn);const Bn=0x7530,Vn='ACTIVE_UNIT_EVENT_CHANNEL';var Hn=class extends _0x20ff58{constructor(){const _0x3f3b07=_0x392a75;super(),G(this,_0x3f3b07(0x2cf),_0x35c403()),G(this,_0x3f3b07(0x373),new Set()),G(this,_0x3f3b07(0x284),new Map()),G(this,'_heartbeatTimer',null),G(this,'_clearOtherTimers',new Map()),G(this,_0x3f3b07(0x3c7),new Map()),this[_0x3f3b07(0x1b8)]();}['dispose'](){const _0x4f3b26=_0x392a75;super['dispose'](),this['_clearOtherTimers'][_0x4f3b26(0x365)]((_0x12b601,_0x47ec84)=>this['_removeClearOtherTimer'](_0x47ec84)),this[_0x4f3b26(0x32d)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x392a75(0x2a2)](_0x2cb6fc){const _0x659cc3=_0x392a75;return this[_0x659cc3(0x229)](_0x2cb6fc)[_0x659cc3(0x1f6)](_0x439347());}[_0x392a75(0x1bb)](_0x2df2fc){const _0x56c830=_0x392a75;this[_0x56c830(0x373)][_0x56c830(0x1b5)]===0x0&&this[_0x56c830(0x3da)](),this[_0x56c830(0x373)][_0x56c830(0x1cb)](_0x2df2fc),this[_0x56c830(0x2e1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2df2fc],'isForwarded':!0x1});}[_0x392a75(0x333)](_0x4ec7a7){const _0x59d27e=_0x392a75;this[_0x59d27e(0x373)][_0x59d27e(0x250)](_0x4ec7a7),this[_0x59d27e(0x373)][_0x59d27e(0x1b5)]===0x0&&this[_0x59d27e(0x32d)]&&window[_0x59d27e(0x314)](this[_0x59d27e(0x32d)]);}['_init'](){const _0x8d0c08=_0x392a75;this[_0x8d0c08(0x39f)](_0x245507(_0x4fc3aa(window,_0x8d0c08(0x366))['subscribe'](_0x5da872=>{const _0x4eed6b=_0x8d0c08;if(_0x5da872['key']!==Vn||!_0x5da872[_0x4eed6b(0x38f)])return;let _0x590504=JSON['parse'](_0x5da872[_0x4eed6b(0x38f)]);this['_handleEvent'](_0x590504);}))),window[_0x8d0c08(0x3ae)]('unload',()=>this[_0x8d0c08(0x2e1)]({'type':0x1,'memberID':this[_0x8d0c08(0x2cf)],'unitIDs':Array[_0x8d0c08(0x233)](this[_0x8d0c08(0x373)])}));}['_handleEvent'](_0x5c705e){const _0x27fff2=_0x392a75;switch(_0x5c705e[_0x27fff2(0x1fa)]){case 0x0:this[_0x27fff2(0x1ed)](_0x5c705e);break;case 0x1:this[_0x27fff2(0x2aa)](_0x5c705e);break;case 0x2:this[_0x27fff2(0x1a4)](_0x5c705e);break;}}['_handleJoinEvent'](_0x4d87be){const _0x3cf9ad=_0x392a75;let {unitIDs:_0x55201e,memberID:_0xa408b8,isForwarded:_0x2f9b4c}=_0x4d87be;_0x55201e['forEach'](_0x14b97e=>{const _0xd254e8=_0x449b;if(!_0x2f9b4c&&this[_0xd254e8(0x284)][_0xd254e8(0x36e)](_0x14b97e)&&this[_0xd254e8(0x229)](_0x14b97e)[_0xd254e8(0x2f7)](_0x710c4d[_0xd254e8(0x278)]),!this['_unitOnClients']['has'](_0x14b97e)||!this[_0xd254e8(0x284)][_0xd254e8(0x270)](_0x14b97e)[_0xd254e8(0x36e)](_0xa408b8)){let _0x3cac9f=this[_0xd254e8(0x284)]['get'](_0x14b97e)||new Set();_0x3cac9f[_0xd254e8(0x1cb)](_0xa408b8),this['_unitOnClients'][_0xd254e8(0x3b9)](_0x14b97e,_0x3cac9f),this[_0xd254e8(0x33e)](_0xa408b8);}}),_0x2f9b4c||this[_0x3cf9ad(0x2e1)]({'type':0x0,'memberID':this[_0x3cf9ad(0x2cf)],'unitIDs':[...this[_0x3cf9ad(0x373)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3afedc){const _0x22861b=_0x392a75;this[_0x22861b(0x231)](_0x3afedc);let _0x1dd830=window[_0x22861b(0x2fb)](()=>{const _0xc72ac6=_0x22861b;this[_0xc72ac6(0x284)][_0xc72ac6(0x365)](_0x1aa70c=>{const _0x326e15=_0xc72ac6;_0x1aa70c[_0x326e15(0x250)](_0x3afedc);});},Bn*0x2);this[_0x22861b(0x1db)]['set'](_0x3afedc,_0x1dd830);}[_0x392a75(0x231)](_0x25e0d3){const _0xe32ab5=_0x392a75;if(this[_0xe32ab5(0x1db)][_0xe32ab5(0x36e)](_0x25e0d3)){let _0x54ecfc=this['_clearOtherTimers'][_0xe32ab5(0x270)](_0x25e0d3);_0x54ecfc&&window[_0xe32ab5(0x23e)](_0x54ecfc),this['_clearOtherTimers'][_0xe32ab5(0x3b9)](_0x25e0d3,null);}}['_handleLeaveEvent'](_0x56fb09){const _0x49e9a0=_0x392a75;let {memberID:_0x238b15,unitIDs:_0x12c3fd}=_0x56fb09;_0x12c3fd[_0x49e9a0(0x365)](_0x4151fd=>{const _0x28a660=_0x49e9a0;var _0x5b7c39;let _0x4efb00=this['_unitOnClients'][_0x28a660(0x270)](_0x4151fd);_0x4efb00&&(_0x4efb00[_0x28a660(0x250)](_0x238b15),(_0x5b7c39=this[_0x28a660(0x229)](_0x4151fd))==null||_0x5b7c39['next'](_0x4efb00['size']===0x0?_0x710c4d[_0x28a660(0x2da)]:_0x710c4d[_0x28a660(0x278)]));}),this[_0x49e9a0(0x231)](_0x238b15);}['_handleHeartbeatEvent'](_0x2612c0){const _0x131e64=_0x392a75;this[_0x131e64(0x33e)](_0x2612c0[_0x131e64(0x319)]);}['_send'](_0x4336df){const _0x12677c=_0x392a75;localStorage[_0x12677c(0x344)](Vn,JSON[_0x12677c(0x20f)](_0x4336df));}[_0x392a75(0x3da)](){const _0x411a5f=_0x392a75;this['_heartbeatTimer']=window[_0x411a5f(0x309)](()=>{const _0x29bf98=_0x411a5f;this[_0x29bf98(0x2e1)]({'type':0x2,'memberID':this[_0x29bf98(0x2cf)]});},Bn);}[_0x392a75(0x229)](_0x5cbf9e){const _0x25786e=_0x392a75;return this['_unitStatus']['has'](_0x5cbf9e)||this[_0x25786e(0x3c7)][_0x25786e(0x3b9)](_0x5cbf9e,new _0xd9ac59(_0x710c4d[_0x25786e(0x2da)])),this[_0x25786e(0x3c7)][_0x25786e(0x270)](_0x5cbf9e);}};export{Rn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,nn as IURLService,zn as RemoteUniscriptService,Cn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,Hn as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x4d7826=_0x2258;(function(_0x36bcd4,_0x3fbc8a){const _0x246c7a=_0x2258,_0x31dac2=_0x36bcd4();while(!![]){try{const _0x1ebced=-parseInt(_0x246c7a(0x198))/0x1+parseInt(_0x246c7a(0x2b1))/0x2*(parseInt(_0x246c7a(0x137))/0x3)+parseInt(_0x246c7a(0x1e5))/0x4+parseInt(_0x246c7a(0x1f4))/0x5+-parseInt(_0x246c7a(0xee))/0x6+parseInt(_0x246c7a(0x133))/0x7*(-parseInt(_0x246c7a(0x2fa))/0x8)+-parseInt(_0x246c7a(0x167))/0x9;if(_0x1ebced===_0x3fbc8a)break;else _0x31dac2['push'](_0x31dac2['shift']());}catch(_0x4680f0){_0x31dac2['push'](_0x31dac2['shift']());}}}(_0xd36b,0xb9df5));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0x307a96,IBoardElementStateService as _0x2ad330,getBoardElementRenderObjectKey as _0x2896cf}from'@univerjs-pro/boards-ui';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xe6392a,CollaborationController as _0x14ae00,CollaborationSessionService as _0x3ebc7d,CollaborationSocketService as _0x21d8c5,CollaborationStatus as _0x57973c,CollaborationUIEventId as _0x57c44b,CollaborationUIEventService as _0x515c7d,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2bd71f,DEFAULT_WS_SESSION_TICKET_URL as _0x541f21,DataLoaderService as _0x456d46,DocCollaborationEntity as _0x236f4e,ILocalCacheService as _0x197647,LOCAL_CACHE_INTERVAL as _0x30e2d9,LOCAL_CACHE_INTERVAL_KEY as _0x19ffaf,MemberService as _0x191cdf,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1c3344,SessionStatus as _0x72de37,UnitStatus as _0x2a0e65,UniverCollaborationClientPlugin as _0x531e80,getLocalCacheKey as _0x4698e9}from'@univerjs-pro/collaboration-client';import{COLORS as _0x532b6c,CanceledError as _0x736cd3,ColorKit as _0x70b721,DOC_RANGE_TYPE as _0x4d59fd,DependentOn as _0x3b29cf,Disposable as _0x4f1642,DisposableCollection as _0x304b28,ICommandService as _0x5160b7,IConfigService as _0x138612,IImageIoService as _0x21522e,ILocalStorageService as _0x1ebf86,ILogService as _0x2e569c,IUniverInstanceService as _0x4aed1f,Inject as _0x2975e5,Injector as _0x2bf279,LocaleService as _0x128d2d,Optional as _0x312695,Plugin as _0x53e595,Rectangle as _0x565e74,RxDisposable as _0x2d058d,ThemeService as _0x113338,Tools as _0x4e8798,UniverInstanceType as _0x70929f,Workbook as _0x2de7fa,createIdentifier as _0x5513cb,debounce as _0x3016da,fromEventSubject as _0x5403d7,generateRandomId as _0x5d1e23,isFormulaId as _0x3218ca,isFormulaString as _0x4d99fe,isInternalEditorID as _0x1310c0,merge as _0x126ddb,mergeOverrideWithDependencies as _0x42835e,registerDependencies as _0x105f0d,toDisposable as _0x2994ac,touchDependencies as _0x1ea026}from'@univerjs/core';import{BuiltInUIPart as _0x1d0a1e,IBeforeCloseService as _0xd0c61,IMessageService as _0x45be88,INotificationService as _0x275bc7,IUIPartsService as _0x5b1ee4,connectInjector as _0x16ad62,useDependency as _0x4869d1,useObservable as _0xadf12b}from'@univerjs/ui';import{BehaviorSubject as _0x57044e,Subject as _0x43728f,combineLatest as _0x57a794,debounceTime as _0x3093d8,distinctUntilChanged as _0x4aef9c,filter as _0x3c3d39,fromEvent as _0x38baf8,mapTo as _0x312181,merge as _0x570610,of as _0x3a75a3,shareReplay as _0x75714c,switchMap as _0xd99b03,takeUntil as _0x59e49a}from'rxjs';import{distinctUntilChanged as _0x121009,filter as _0xd1ff9d,map as _0x5aaab3,switchMap as _0xd261d2,takeUntil as _0x1d45cf,throttleTime as _0x46b09}from'rxjs/operators';import{MessageType as _0x4f09c9,Tooltip as _0x4f2c4f,clsx as _0x1e4fa6}from'@univerjs/design';import{LoadingMultiIcon as _0x26ab0c,OffLineIcon as _0x4e30aa,OnLineIcon as _0xf932a4}from'@univerjs/icons';import{useCallback as _0x565a7d,useMemo as _0x4584d2}from'react';import{jsx as _0x3f72a3}from'react/jsx-runtime';import{IRenderManagerService as _0x1fc985,Rect as _0x58f21a,RegularPolygon as _0xb9ada9,SHEET_VIEWPORT_KEY as _0x3fb07d,Shape as _0x519620,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4943a9,Vector2 as _0xc361d3,getColor as _0x52d1e1}from'@univerjs/engine-render';import{HTTPService as _0x30454a,ISocketService as _0x47d565,WebSocketService as _0x467d37}from'@univerjs/network';import{DocIMEInputManagerService as _0x35af8a,IDocClipboardService as _0x444071,NodePositionConvertToCursor as _0x2470bf,NodePositionConvertToRectRange as _0x295a1e,SetDocZoomRatioOperation as _0x210db2,TEXT_RANGE_LAYER_INDEX as _0x2d81c7}from'@univerjs/docs-ui';import{CollaborationEvent as _0x1428bf,ISnapshotServerService as _0x16328b,ITransformService as _0x796fe5,RevisionService as _0x5ad3bf,isTransformMutationFailure as _0x25931a,isTransformMutationsWithChangesetSuccess as _0x3b4f9c}from'@univerjs-pro/collaboration';function _0xd36b(){const _0x5cae79=['activeSlideId$','_uploadLog','/universer-api/license/formula/limit/done','_startSlideCollabCursor','_collabCursorController','getCurrentUnitOfType','collaboration-client-ui.collabClient.tooltip.reconnect','socket$','getObject','newValue','black','red.300','resize','_transformHistoryAndStateStack','subscribeEvent','registerRenderModule','theme$','lineno','get','search','getDocRanges','m1Prime','getSheetId','OFFLINE','column','_pointerMoveDisposable','_color','_themeService','_maxFormulaLimit','code','[Window\x20Error]:\x20','removeParam','dispose$','collab-text-anchor-','iterator','pipe','hovered','_heartbeatTimer','pluginName','function','context','getId','makeDirty','_startCalculationLimit','href','OTHER_CLIENTS_EDITING','scene','transformRemoteChangeset','379312hJUcLM','indicator','_roomMembers$','maxFormulaLimit','getCurrentSelections','evenodd','_collabCursorState$','clearInterval','unsubscribe','location','transformIMECache','has','Loading','_removeClearOtherTimer','redoState','_scheduleSaving','_registerRenderDependencies','collaboration-client-ui.formula.calculation.unable','status$','_cursors','_registerDependencies','div','transformStateCache','_saveTaskMap','then','_highlight','_collaborationUIEventService','measureText','forEach','0.2)','_docSkeleton','assignAColorForMemberID','status','isActive','add','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','univer-text-orange-500','disposeUnit','unload','transformMutationsWithChangeset','_lastResponseTimestamp','isEditing','with','getCurrentTypeOfUnit$','SUBMIT_CHANGESET_TIMEOUT','_pollingInterval','error','_unitStatus','_isBlinkVisible','_initWindowErrorListener','rgba(','getCurrentSkeleton','entityInit$','eventID','getFocusedUnit','roomMembers','parse','_online','limitInfo','CLOSE_ROOM','removeObject','CONFLICT','_showText','replaceDocRanges','_localCacheService','onMouseMove','_initUnhandledRejectionListener','getCollabEntity$','getActiveSlide','closePath','collab-rect-range-','_configService','univer-text-red-500','addObjects','_docTransformIMECacheService','show','RECT','6038264Rsokhw','FromArray','getSkeleton','slide-element-selection','_scheduleHeartbeat','doc.mutation.rich-text-editing','startRow','deepClone','toString','_uiPartsService','_getScale','_initStatusComponent','_context','setTimeout','pushState','5357485hwYPZk','_getObjectBounds','values','[RemoteUniscriptService]:\x20no\x20focused\x20unit','invokeId','_getSaveTimeout','collaboration-client-ui.permission.title','UPDATE_CURSOR','_clearOtherTimers','registerBeforeClose','history','textRanges','_boardElementStateService','_send','endColumn','slide-collab-cursor-','_transformPreviousActiveRange','_scene','all','getCellPositionByOffset','height','set','_notificationService','color','split','releaseFormulaLimitUrl','getTypeOfUnitAdded$','whenReady','object','univer-text-blue-500','_setupSubUnitSync','body','pulse','lineWidth','collaboration-client-ui.collabStatus.syncing','_onCursorUpdate','top','fillStyle','unit','UNIVER_DOC','rgba(255,\x20255,\x20255,\x200.01)','getAllUnitsForType','_updateLocalCursor','\x20at\x20','call','_blinkIntervalTimer','collab-text-range-','complete','_syncEditingCollabCursorService','true','univer-inline-flex\x20univer-items-center\x20univer-justify-center','addObject','onPointerEnter$','_initResize','setConfig','_latestCursors','beginPath','now','_docSyncEditingCollabCursorService','ticket','ranges','setLineDash','unitID','_startSheetCollabCursor','colno','_colorIndex','onPointerLeave$','onRendered','_assignedColors','collabCursorState$','OTHER_CLIENT_EDITING','getMember','_labelHorizontalPosition','_getLighterColor','_doCreateSocket','searchParams','board-collab-cursor-','_transformService','name','loadUnit','DeleteRangeMoveUpCommandId','unitId','endRow','MoveRangeCommandId','_refreshCollabCursors','UNIVER_BOARD','default','hide','_cursorShapes','selectedIds','getUnitStatus$','sessionStatus$','univer-text-green-500','_sheetSkeletonManagerService','storage','_highlightSecond','VIEW_MAIN','SOCKET_FAILED_RETRY','_init','flatMap','_hovered','setInterval','engine','angle','TEXT','map','createInstance','_startBoardCollabCursor','sheetID','unshift','addHandlerCallback','join','[Unhandled\x20Rejection]:\x20','_collaborationController','arc','restore','_isApplyingOverlays','_transformUndoRedoStack','_scheduleRender','_slideDrawingStateService','init','_stopBlinking','blue.400','getStateCache','toPrimitive','pageManager','onCommandExecuted','NOT_COLLAB','reconnect','univer-m-0\x20univer-p-0','_updateSubUnitFromURLParams','debug','clear','resolve','_unitOnClients','_updateURLWithCurrentState','width','defineProperty','_cursorInfo$','ONLINE','_removeCollabCursors','getSnapshot','type','post','_toggleOnline','uni.network.url-service','clickable','InsertRangeMoveRightCommandId','getUnhiddenWorksheets','_handleEvent','message','strokeWidth','_eventUnsubscribe','subUnitId','slice','?taskId=','_clearPolling','addEventListener','roomMembers$','rgb','cursorInfo','setItem','max','setUndoRedoMutationParamsCache','collaboration-client-ui.conflict.title',':backup:','_initDependencies','board-element-selection','_backgroundColor','getViewport','syncEditingCollabCursor','isArray','green.600','_hover','SOCKET_FAILED','_updateCollabCursors','setShapeProps','urlChange$','collaboration-client-ui.session.connection-failed','InsertRowCommandId','START_CALCULATION','getUnitId','icon','enableLocalCache','_getSheetObject','_scheduleClearOtherTimer','setParam','Warning','send','2128792PQFwUf','next','_checkCalculationAvailable','_status$','_refRangeService','_onRefRangeChange','params','_checkAndWaitForCalculationPermission','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','getOffsetConfig','lineTo','length','ACTIVE_UNIT_EVENT_CHANNEL','exhaustSavingTask','_disabled','string','colorClass','createSocket','evented','moveTo','_collaborationSessionService','override','toISOString','clearTimeout','backupOfflineData','_session','UNIVER_SHEET','font','selection','stack','kind','highlight','_handleHeartbeatEvent','_initEvent','_textBubble','some','_offsetY','parseInt','_initStatusListener','result','_currentUsage','SYNCED','_draw','replace','_getSceneObjectByKey','executeCommand','getSheetBySheetId','removeObjects','constructor','saveImage','filter','subscribe','_colorAssignService','row','_range','getUniverSheetInstance','dirtyRanges','saveTaskMap','dark:focus:!univer-ring-offset-gray-800','toRgbString','fill','[CollaborationDataLoaderController]','_toggleOffline','transform','disposeWithMe','editingUnit','highlightSecond','getFormulaLimitStatusUrl','getParam','currentSkeleton$','currentUsage','data','showText','1336MfRxBD','getMemberID','_docTransformStateCacheService','popstate','focusedId','contains',',\x200.2)','text','jiqing.500','_cachedData','_localStorageService','beforeCommandExecuted','_beforeCloseService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','totalFormulasToCalculate','_messageService','runId','sheetId','_httpService','tooltipKey','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reason','_commandService','_anchorDot','prototype','collaboration-client-ui.conflict.content','/universer-api/license/formula/limit/start','dispose','_initCommandExecutedListener','_cursor','collaboration-client-ui.collaboration.offline-data-not-saved','getRangePointData','_univerInstanceService','_handleHover','_renderScheduled','asObservable','Failed','collaboration-client-ui.collaboration.single-unit.warning','functionsExecutedState','setStateCache','/universer-api/license/formula/limit/status','wsSessionTicketUrl','mutations','state$','stringify','_memberID','min','_setupBeforeClosingHandler','symbol','PENDING','_drawTextRange','AWAITING','transformMutation','replaceState','univer-h-8\x20univer-w-8\x20univer-rounded-lg','from','subunit','polite','startColumn','getVpScrollXYInfoByPosToVp','key','cursorInfo$','event$','_dataLoaderService','save','Success','Error','_getSessionTicket','catch','getRelativeToViewportCoord','_blinkTimer','transformSelections','984264rSbYWd','getTypeOfUnitDisposed$','getUnit','_entities','fillRule','getCurrentRevOfUnit','addObject$','getConfig','_injector','_id','includes','_ensureSubject','bottom','getActiveSheet','USERS_LEAVE','getRenderById','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_handleJoinEvent','filename','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','span','memberID','AWAITING_WITH_PENDING','currentTheme$','_selfUnitIDs','onStarting','/universer-api/frontend/logs','getColorFromTheme','removeEventListener','rgba','selections','collaboration-client-ui.config','right','_document','requireSession','delete','_drawRectRange','getCollabCursors$','_memberService','fillText','drawWith','runOnServer','getValue','univer-flex\x20univer-items-center\x20univer-justify-center','InsertColCommandId','getCellMatrix','startFormulaLimitUrl','_setFormulaLimitStatus','_saveCache','getAncestorScale','\x20-\x20','strokeRect','_taskIds','_docSkeletonManagerService','_labelPosition','...','left','_anchor','_getMergeRange','InsertRangeMoveDownCommandId','bind','i18nKey','univer-border-none\x20univer-bg-transparent','labelPosition','RemoveColCommandId','_onCursorDelete','static','_render','_config','16926YNczOM','collaboration-client-ui.collaboration.closeRoom','_shapes','labelHorizontalPosition','3SkQpdZ','FETCH_MISS','_getAnchorBounding','_monkeyPatchLogService','#FFF','registerRefRange','UNIVER_SLIDE','_name','_startDocCollabCursor','enableDocumentCollaborationUI','push','_drawAnchor','_createSocketURL','getObjectIncludeInGroup','unhandledrejection','origin','_docStateChangeManagerService','_applyCommand','startsWith','_collabSessionService','getUndoRedoMutationParamsCache','m2Prime','_lastPointer','collaboration-client-ui.session.collaboration-timeout','_getFormulaLimitStatus','registerComponent','_logService','offsetY','_entityInit$','_imageIoService','univer-transition-all\x20univer-duration-200','Unknown\x20user','_renderManagerService','_hideTimer','_localeService','_instanceService','_showGuardMessage','_revisionService','setAlpha','spin','getActivePageId','find','size','source','getItem','decorate','_urlService','transformByState','17432676dAlmBi'];_0xd36b=function(){return _0x5cae79;};return _0xd36b();}import{DocSelectionManagerService as _0x4086a9,DocSkeletonManagerService as _0xb79bba,DocStateChangeManagerService as _0x2d0f8c,RichTextEditingMutation as _0x3cb8b1,SetTextSelectionsOperation as _0x2da9df}from'@univerjs/docs';import{FormulaExecuteStageType as _0x4e45d5,FormulaExecutedStateType as _0x964841,SetFormulaCalculationNotificationMutation as _0xb333d0,SetFormulaCalculationStartMutation as _0x5b6ab5,deserializeRangeWithSheet as _0x45bc1b,serializeRangeWithSheet as _0x38bdd0}from'@univerjs/engine-formula';import{EffectRefRangId as _0x54f97d,RefRangeService as _0x5e8753,SetSelectionsOperation as _0x4a73e4,SetWorksheetActivateCommand as _0x132b7c,SheetsSelectionsService as _0x3e0c93,handleDeleteRangeMoveLeft as _0x17a981,handleDeleteRangeMoveUp as _0x527cf0,handleIRemoveCol as _0x7c4f03,handleIRemoveRow as _0x5f4dbf,handleInsertCol as _0x473d17,handleInsertRangeMoveDown as _0x256c54,handleInsertRangeMoveRight as _0x172ece,handleInsertRow as _0x5cc953,handleMoveRange as _0x4c9162,runRefRangeMutations as _0x434df3}from'@univerjs/sheets';import{ISlideDrawingStateService as _0xeaea7,buildDrawingOKey as _0x2a4d0e}from'@univerjs-pro/slides-ui';import{SheetSkeletonManagerService as _0x2c9abc,getCoordByCell as _0x5c1077,getSheetObject as _0x1de0be}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0x40ba10}from'@univerjs/rpc';import{ErrorCode as _0x2dbe68}from'@univerjs/protocol';function Zt(_0x541e1d){const _0x53c720=_0x2258;switch(_0x541e1d){case _0x57973c[_0x53c720(0x17f)]:return{'icon':_0x3f72a3(_0x4e30aa,{}),'colorClass':_0x53c720(0x1e0),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x53c720(0x16e),'clickable':!0x0,'indicator':'static'};case _0x57973c[_0x53c720(0x1d5)]:return{'icon':_0x3f72a3(_0x4e30aa,{}),'colorClass':_0x53c720(0x1bc),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':'static'};case _0x57973c[_0x53c720(0x138)]:return{'icon':_0x3f72a3(_0x26ab0c,{}),'colorClass':_0x53c720(0x211),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x53c720(0x15e)};case _0x57973c[_0x53c720(0x273)]:return{'icon':_0x3f72a3(_0xf932a4,{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':'static'};case _0x57973c[_0x53c720(0x32d)]:case _0x57973c[_0x53c720(0x104)]:return{'icon':_0x3f72a3(_0x26ab0c,{}),'colorClass':_0x53c720(0x211),'i18nKey':_0x53c720(0x216),'clickable':!0x1,'indicator':'spin'};case _0x57973c[_0x53c720(0x32b)]:return{'icon':_0x3f72a3(_0x26ab0c,{}),'colorClass':_0x53c720(0x211),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x53c720(0x15e)};case _0x57973c[_0x53c720(0x2da)]:return{'icon':_0x3f72a3(_0xf932a4,{}),'colorClass':_0x53c720(0x250),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x53c720(0x130)};}}function Qt(_0x306f2e){const _0x2792aa=_0x2258;let {status$:_0x211cf0}=_0x306f2e,_0x5a880e=_0xadf12b(_0x211cf0,_0x57973c[_0x2792aa(0x273)]),_0x295a63=_0x4869d1(_0x128d2d),_0x467ed5=_0x4869d1(_0x3ebc7d),_0x4f8f9b=_0x4584d2(()=>Zt(_0x5a880e),[_0x5a880e]),_0x5bc9fd=_0x5a880e!==_0x57973c[_0x2792aa(0x17f)],_0x526b51=_0x295a63['t'](_0x4f8f9b[_0x2792aa(0x12b)]),_0x27f4e4=_0x4f8f9b['tooltipKey']?_0x295a63['t'](_0x4f8f9b[_0x2792aa(0x30d)]):_0x526b51,_0x2d532d=_0x565a7d(()=>{const _0x56c37c=_0x2792aa;_0x5bc9fd||_0x467ed5[_0x56c37c(0x274)]();},[_0x5bc9fd,_0x467ed5]),_0x2298ee=_0x565a7d(_0x496951=>{const _0x47f555=_0x2792aa;!_0x5bc9fd&&(_0x496951[_0x47f555(0xe2)]==='Enter'||_0x496951[_0x47f555(0xe2)]==='\x20')&&(_0x496951['preventDefault'](),_0x467ed5['reconnect']());},[_0x5bc9fd,_0x467ed5]),_0x469b43=_0x3f72a3('span',{'className':_0x1e4fa6(_0x2792aa(0x119),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x4f8f9b[_0x2792aa(0x2c1)],{'univer-animate-spin':_0x4f8f9b[_0x2792aa(0x199)]===_0x2792aa(0x15e),'univer-animate-pulse':_0x4f8f9b[_0x2792aa(0x199)]===_0x2792aa(0x214)}),'aria-hidden':_0x2792aa(0x225),'children':_0x4f8f9b[_0x2792aa(0x2aa)]}),_0x467008=_0x3f72a3(_0x2792aa(0x102),{'className':_0x1e4fa6(_0x2792aa(0x119),_0x2792aa(0x330),_0x2792aa(0x155),_0x2792aa(0x2b9),_0x2792aa(0x2eb),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x4f8f9b[_0x2792aa(0x286)],'univer-cursor-default':!_0x4f8f9b['clickable']}),'children':_0x469b43});return _0x4f8f9b['clickable']?_0x3f72a3(_0x4f2c4f,{'title':_0x27f4e4,'placement':_0x2792aa(0xfa),'children':_0x3f72a3('button',{'type':'button','onClick':_0x2d532d,'onKeyDown':_0x2298ee,'className':_0x1e4fa6(_0x2792aa(0x226),'univer-border-none\x20univer-bg-transparent',_0x2792aa(0x275),'univer-appearance-none'),'aria-label':_0x526b51+_0x2792aa(0x120)+_0x27f4e4,'role':_0x2792aa(0x1b8),'aria-live':_0x2792aa(0xdf),'aria-atomic':_0x2792aa(0x225),'children':_0x467008})}):_0x3f72a3(_0x4f2c4f,{'title':_0x27f4e4,'placement':_0x2792aa(0xfa),'children':_0x3f72a3(_0x2792aa(0x1ad),{'className':_0x1e4fa6(_0x2792aa(0x226),_0x2792aa(0x12c),'univer-m-0\x20univer-p-0'),'aria-label':_0x526b51,'role':_0x2792aa(0x1b8),'aria-live':'polite','aria-atomic':_0x2792aa(0x225),'children':_0x467008})});}function K(_0x1dd4a4){'@babel/helpers - typeof';const _0x4ba1a0=_0x2258;return K=typeof Symbol=='function'&&typeof Symbol[_0x4ba1a0(0x18a)]=='symbol'?function(_0x360a19){return typeof _0x360a19;}:function(_0x391ddb){const _0x4deb6f=_0x4ba1a0;return _0x391ddb&&typeof Symbol=='function'&&_0x391ddb[_0x4deb6f(0x2e1)]===Symbol&&_0x391ddb!==Symbol[_0x4deb6f(0x312)]?_0x4deb6f(0x32a):typeof _0x391ddb;},K(_0x1dd4a4);}function $t(_0x406372,_0x3c7588){const _0x336357=_0x2258;if(K(_0x406372)!=_0x336357(0x210)||!_0x406372)return _0x406372;var _0x119d2a=_0x406372[Symbol[_0x336357(0x270)]];if(_0x119d2a!==void 0x0){var _0x5aaa81=_0x119d2a[_0x336357(0x220)](_0x406372,_0x3c7588||_0x336357(0x24a));if(K(_0x5aaa81)!=_0x336357(0x210))return _0x5aaa81;throw TypeError(_0x336357(0x30e));}return(_0x3c7588===_0x336357(0x2c0)?String:Number)(_0x406372);}function en(_0x24e4b5){const _0x5eda5c=_0x2258;var _0x31e5d2=$t(_0x24e4b5,'string');return K(_0x31e5d2)==_0x5eda5c(0x32a)?_0x31e5d2:_0x31e5d2+'';}function q(_0x2f68cb,_0x1e99f4,_0x4b338f){const _0x14c7cd=_0x2258;return(_0x1e99f4=en(_0x1e99f4))in _0x2f68cb?Object[_0x14c7cd(0x27d)](_0x2f68cb,_0x1e99f4,{'value':_0x4b338f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f68cb[_0x1e99f4]=_0x4b338f,_0x2f68cb;}function J(_0x1ce549,_0x229ccb){return function(_0x47bbb5,_0x188a29){_0x229ccb(_0x47bbb5,_0x188a29,_0x1ce549);};}function Y(_0x28959b,_0x27e0cb,_0x2a5770,_0x5b9a8e){const _0x3b470a=_0x2258;var _0x1f7ed2=arguments['length'],_0x452788=_0x1f7ed2<0x3?_0x27e0cb:_0x5b9a8e===null?_0x5b9a8e=Object['getOwnPropertyDescriptor'](_0x27e0cb,_0x2a5770):_0x5b9a8e,_0x1ee20e;if(typeof Reflect==_0x3b470a(0x210)&&typeof Reflect[_0x3b470a(0x164)]=='function')_0x452788=Reflect[_0x3b470a(0x164)](_0x28959b,_0x27e0cb,_0x2a5770,_0x5b9a8e);else{for(var _0xbb5ac=_0x28959b[_0x3b470a(0x2bc)]-0x1;_0xbb5ac>=0x0;_0xbb5ac--)(_0x1ee20e=_0x28959b[_0xbb5ac])&&(_0x452788=(_0x1f7ed2<0x3?_0x1ee20e(_0x452788):_0x1f7ed2>0x3?_0x1ee20e(_0x27e0cb,_0x2a5770,_0x452788):_0x1ee20e(_0x27e0cb,_0x2a5770))||_0x452788);}return _0x1f7ed2>0x3&&_0x452788&&Object[_0x3b470a(0x27d)](_0x27e0cb,_0x2a5770,_0x452788),_0x452788;}let X=class extends _0x4f1642{constructor(_0x365b58,_0x59a179,_0x4b59d7,_0x414d38){const _0x5b6a41=_0x2258;super(),this[_0x5b6a41(0x31a)]=_0x365b58,this[_0x5b6a41(0xf6)]=_0x59a179,this['_collaborationController']=_0x4b59d7,this[_0x5b6a41(0x1ee)]=_0x414d38,q(this,_0x5b6a41(0x2b4),new _0x57044e(_0x57973c[_0x5b6a41(0x273)])),this[_0x5b6a41(0x1f0)](),this[_0x5b6a41(0x2d7)]();}['_initStatusListener'](){const _0x4667e8=_0x2258;this[_0x4667e8(0x2f1)](_0x570610(this[_0x4667e8(0x31a)]['focused$'],this[_0x4667e8(0x31a)]['getCurrentTypeOfUnit$'](_0x70929f[_0x4667e8(0x21b)]),this[_0x4667e8(0x31a)][_0x4667e8(0x1c3)](_0x70929f[_0x4667e8(0x2cb)]))[_0x4667e8(0x18b)](_0x5aaab3(()=>nn(this[_0x4667e8(0x31a)])),_0x121009(),_0xd99b03(_0x19d54f=>_0x19d54f?this[_0x4667e8(0x265)][_0x4667e8(0x1db)](_0x19d54f):_0x3a75a3(null)),_0xd99b03(_0x16b103=>_0x16b103?_0x16b103[_0x4667e8(0x1aa)]:_0x3a75a3(_0x57973c[_0x4667e8(0x273)])))['subscribe'](_0x1609b4=>{const _0x3aa97f=_0x4667e8;this[_0x3aa97f(0x2b4)]['next'](_0x1609b4);}));}['_initStatusComponent'](){const _0x53346b=_0x2258;this[_0x53346b(0x2f1)](this['_uiPartsService'][_0x53346b(0x150)](_0x1d0a1e['HEADER_MENU'],()=>_0x16ad62(an({'status$':this['_status$'][_0x53346b(0x31d)]()}),this['_injector'])));}};X=Y([J(0x0,_0x4aed1f),J(0x1,_0x2975e5(_0x2bf279)),J(0x2,_0x2975e5(_0x14ae00)),J(0x3,_0x5b1ee4)],X);let tn=class extends _0x4f1642{constructor(_0x34187f,_0x3c5e94,_0x94fc90,_0x9839aa){const _0x3ed0a0=_0x2258;super(),this[_0x3ed0a0(0x31a)]=_0x34187f,this[_0x3ed0a0(0xf6)]=_0x3c5e94,this[_0x3ed0a0(0x265)]=_0x94fc90,this[_0x3ed0a0(0x1ee)]=_0x9839aa,q(this,'_status$',new _0x57044e(_0x57973c[_0x3ed0a0(0x273)])),this[_0x3ed0a0(0x1f0)](),this[_0x3ed0a0(0x2d7)]();}[_0x4d7826(0x2d7)](){const _0xc4ff9f=_0x4d7826;this[_0xc4ff9f(0x2f1)](_0x570610(_0x3a75a3(null),this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x70929f[_0xc4ff9f(0x249)]))[_0xc4ff9f(0x18b)](_0x5aaab3(()=>rn(this['_univerInstanceService'])),_0x121009(),_0xd99b03(_0x1b7367=>_0x1b7367?this[_0xc4ff9f(0x265)][_0xc4ff9f(0x1db)](_0x1b7367):_0x3a75a3(null)),_0xd99b03(_0xbdc38=>_0xbdc38?_0xbdc38[_0xc4ff9f(0x1aa)]:_0x3a75a3(_0x57973c[_0xc4ff9f(0x273)])))['subscribe'](_0x2a99ba=>{const _0x36d058=_0xc4ff9f;this['_status$'][_0x36d058(0x2b2)](_0x2a99ba);}));}['_initStatusComponent'](){const _0x36bb3d=_0x4d7826;this[_0x36bb3d(0x2f1)](this[_0x36bb3d(0x1ee)][_0x36bb3d(0x150)](_0x307a96,()=>_0x16ad62(an({'status$':this[_0x36bb3d(0x2b4)]['asObservable']()}),this[_0x36bb3d(0xf6)])));}};tn=Y([J(0x0,_0x4aed1f),J(0x1,_0x2975e5(_0x2bf279)),J(0x2,_0x2975e5(_0x14ae00)),J(0x3,_0x5b1ee4)],tn);function nn(_0x5dfc37){const _0x1fa8ef=_0x4d7826;let _0x5be7ef=_0x5dfc37[_0x1fa8ef(0x1ce)](),_0x316c06=_0x5be7ef==null?void 0x0:_0x5be7ef[_0x1fa8ef(0x2a9)]();if(_0x316c06&&!_0x1310c0(_0x316c06))return _0x316c06;let _0x23dfa=_0x5dfc37[_0x1fa8ef(0x16d)](_0x70929f[_0x1fa8ef(0x21b)]),_0x3a9aee=_0x23dfa==null?void 0x0:_0x23dfa['getUnitId']();if(_0x3a9aee&&!_0x1310c0(_0x3a9aee))return _0x3a9aee;let _0x4f89dc=_0x5dfc37[_0x1fa8ef(0x16d)](_0x70929f[_0x1fa8ef(0x2cb)]);if(_0x4f89dc)return _0x4f89dc['getUnitId']();let _0x563af4=_0x5dfc37[_0x1fa8ef(0x21d)](_0x70929f[_0x1fa8ef(0x21b)])[_0x1fa8ef(0x160)](_0x33bd2f=>!_0x1310c0(_0x33bd2f[_0x1fa8ef(0x2a9)]()));return _0x563af4?_0x563af4[_0x1fa8ef(0x2a9)]():null;}function rn(_0x308aed){const _0x2fac14=_0x4d7826;var _0x94379a;let _0x45c957=_0x308aed['getCurrentUnitOfType'](_0x70929f[_0x2fac14(0x249)]);return(_0x94379a=_0x45c957==null?void 0x0:_0x45c957['getUnitId']())==null?null:_0x94379a;}function an(_0x1f40c6){let {status$:_0xd3409b}=_0x1f40c6;return function(){return _0x3f72a3(Qt,{'status$':_0xd3409b});};}var on='@univerjs-pro/collaboration-client-ui',sn='1.0.0-alpha.3';const cn={};let ln=class extends _0x2d058d{constructor(_0x43abad,_0x506bc2){const _0x21c1f3=_0x4d7826;super(),this['_docClipboardService']=_0x43abad,this[_0x21c1f3(0x154)]=_0x506bc2,this[_0x21c1f3(0x256)]();}[_0x4d7826(0x256)](){const _0x368481=_0x4d7826;let _0x8f589e=this;this[_0x368481(0x2f1)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x7a480b=>{const _0x5a57ed=_0x368481;let _0x3ab29d=await _0x8f589e[_0x5a57ed(0x154)][_0x5a57ed(0x2e2)](_0x7a480b);return _0x3ab29d?{'source':_0x3ab29d[_0x5a57ed(0x162)],'imageSourceType':_0x3ab29d['imageSourceType']}:null;}}));}};ln=Y([J(0x0,_0x444071),J(0x1,_0x21522e)],ln);function un(_0x475c70,_0x4c807d){const _0x48d4ab=_0x4d7826;_0x475c70[_0x48d4ab(0xe6)](),_0x475c70[_0x48d4ab(0x2cc)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x24a38a=_0x475c70['measureText'](_0x4c807d)[_0x48d4ab(0x27c)];return _0x475c70[_0x48d4ab(0x267)](),Math['min'](_0x24a38a+0x8,0xc8);}function dn(_0x4297c3,_0x188957){const _0x4f559b=_0x4d7826;var _0x5b64d9,_0x17d377,_0x594d1d;let {radius:_0x50aec6,width:_0x3ec6c6,height:_0x1fa2b6}=_0x188957;_0x50aec6=(_0x5b64d9=_0x50aec6)==null?0x0:_0x5b64d9,_0x3ec6c6=(_0x17d377=_0x3ec6c6)==null?0x1e:_0x17d377,_0x1fa2b6=(_0x594d1d=_0x1fa2b6)==null?0x1e:_0x594d1d;let _0x4ca872=0x0,_0x3a4d91=0x0,_0x261858=0x0;_0x4ca872=_0x3a4d91=_0x261858=Math[_0x4f559b(0x328)](_0x50aec6,_0x3ec6c6/0x2,_0x1fa2b6/0x2),_0x4297c3[_0x4f559b(0x22c)](),_0x4297c3[_0x4f559b(0x2c4)](_0x4ca872,0x0),_0x4297c3[_0x4f559b(0x2bb)](_0x3ec6c6-_0x3a4d91,0x0),_0x4297c3[_0x4f559b(0x266)](_0x3ec6c6-_0x3a4d91,_0x3a4d91,_0x3a4d91,Math['PI']*0x3/0x2,0x0,!0x1),_0x4297c3['lineTo'](_0x3ec6c6,_0x1fa2b6-_0x261858),_0x4297c3['arc'](_0x3ec6c6-_0x261858,_0x1fa2b6-_0x261858,_0x261858,0x0,Math['PI']/0x2,!0x1),_0x4297c3[_0x4f559b(0x2bb)](0x0,_0x1fa2b6),_0x4297c3[_0x4f559b(0x2bb)](0x0,_0x4ca872),_0x4297c3[_0x4f559b(0x266)](_0x4ca872,_0x4ca872,_0x4ca872,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4297c3[_0x4f559b(0x1dd)](),_0x188957['fill']&&(_0x4297c3[_0x4f559b(0xe6)](),_0x4297c3[_0x4f559b(0x219)]=_0x188957['fill'],_0x188957[_0x4f559b(0xf2)]===_0x4f559b(0x19d)?_0x4297c3['fill']('evenodd'):_0x4297c3[_0x4f559b(0x2ed)](),_0x4297c3[_0x4f559b(0x267)]());}var fn=class e extends _0x519620{constructor(_0x339ef3,_0x22c1e9){const _0x289924=_0x4d7826;super(_0x339ef3,_0x22c1e9),q(this,_0x289924(0x20b),void 0x0),q(this,_0x289924(0x301),void 0x0),this['color']=_0x22c1e9==null?void 0x0:_0x22c1e9[_0x289924(0x20b)],this['text']=_0x22c1e9==null?void 0x0:_0x22c1e9[_0x289924(0x301)];}static[_0x4d7826(0x116)](_0x52baa7,_0x41ced8){const _0x104ea2=_0x4d7826;let {text:_0xd35de6,color:_0x4946b}=_0x41ced8;_0x52baa7[_0x104ea2(0xe6)](),_0x52baa7[_0x104ea2(0x2cc)]=_0x104ea2(0x1bb);let _0x2fe716=_0x52baa7[_0x104ea2(0x1b3)](_0xd35de6)[_0x104ea2(0x27c)];if(dn(_0x52baa7,{'height':0x14,'radius':0x4,'width':un(_0x52baa7,_0xd35de6),'fill':_0x4946b,'evented':!0x1}),_0x52baa7[_0x104ea2(0x219)]=_0x104ea2(0x13b),_0x2fe716>0xc0){let _0xea0d5f='',_0x461a39=0x0;for(let _0x2d9204 of _0xd35de6){let _0x5408f3=_0x52baa7[_0x104ea2(0x1b3)](_0x2d9204)[_0x104ea2(0x27c)];if(_0x461a39+_0x5408f3<=0xc0-_0x52baa7[_0x104ea2(0x1b3)](_0x104ea2(0x125))[_0x104ea2(0x27c)])_0xea0d5f+=_0x2d9204,_0x461a39+=_0x5408f3;else{_0xea0d5f+=_0x104ea2(0x125);break;}}_0x52baa7[_0x104ea2(0x115)](_0xea0d5f,0x4,0xf);}else _0x52baa7[_0x104ea2(0x115)](_0xd35de6,0x4,0xf);_0x52baa7[_0x104ea2(0x267)]();}[_0x4d7826(0x2db)](_0xc1a7ef){const _0x5b3241=_0x4d7826;e[_0x5b3241(0x116)](_0xc1a7ef,this);}};const pn=0x138a;var mn=class extends _0x519620{constructor(_0x134959,_0x2832e8){const _0x4cea70=_0x4d7826;super(_0x134959,{..._0x2832e8,'evented':!0x1}),q(this,'_color','#4f46e5'),q(this,_0x4cea70(0x13e),''),q(this,'_showText',!0x0),_0x2832e8&&this[_0x4cea70(0x2a4)](_0x2832e8);}[_0x4d7826(0x2a4)](_0xfde545){const _0x56815b=_0x4d7826;var _0x1e90d9,_0x233d47,_0x2adecb,_0x419699,_0x20b5bb,_0x48982e,_0x119863,_0x22fc18;this[_0x56815b(0x182)]=(_0x1e90d9=_0xfde545[_0x56815b(0x20b)])==null?this[_0x56815b(0x182)]:_0x1e90d9,this[_0x56815b(0x13e)]=(_0x233d47=_0xfde545[_0x56815b(0x242)])==null?this[_0x56815b(0x13e)]:_0x233d47,this['_showText']=(_0x2adecb=_0xfde545[_0x56815b(0x2f9)])==null?this['_showText']:_0x2adecb,this[_0x56815b(0x2c3)]=!0x1,this['transformByState']({'left':(_0x419699=_0xfde545[_0x56815b(0x126)])==null?this[_0x56815b(0x126)]:_0x419699,'top':(_0x20b5bb=_0xfde545[_0x56815b(0x218)])==null?this[_0x56815b(0x218)]:_0x20b5bb,'width':(_0x48982e=_0xfde545[_0x56815b(0x27c)])==null?this['width']:_0x48982e,'height':(_0x119863=_0xfde545[_0x56815b(0x208)])==null?this[_0x56815b(0x208)]:_0x119863,'angle':(_0x22fc18=_0xfde545[_0x56815b(0x25b)])==null?this[_0x56815b(0x25b)]:_0x22fc18});}[_0x4d7826(0x2db)](_0x479abc){const _0x2439c1=_0x4d7826;_0x479abc['save'](),_0x479abc['strokeStyle']=this[_0x2439c1(0x182)],_0x479abc[_0x2439c1(0x215)]=this['strokeWidth']||1.5,_0x479abc[_0x2439c1(0x231)]([0x6,0x4]),_0x479abc[_0x2439c1(0x121)](0x0,0x0,this[_0x2439c1(0x27c)],this[_0x2439c1(0x208)]),_0x479abc[_0x2439c1(0x267)](),this['_showText']&&(_0x479abc['save'](),_0x479abc[_0x2439c1(0x2f0)](0x1,0x0,0x0,0x1,this[_0x2439c1(0x27c)],-0x14),fn[_0x2439c1(0x116)](_0x479abc,{'text':this[_0x2439c1(0x13e)],'color':this[_0x2439c1(0x182)]}),_0x479abc[_0x2439c1(0x267)]());}};const hn=['purple.300',_0x4d7826(0x302),_0x4d7826(0x2a0),_0x4d7826(0x173),_0x4d7826(0x26e),'yellow.400'];var Z=class extends _0x4f1642{constructor(..._0x1525ce){const _0x2c0b22=_0x4d7826;super(..._0x1525ce),q(this,_0x2c0b22(0x238),new Map()),q(this,_0x2c0b22(0x235),0x0);}['assignAColorForMemberID'](_0x541f36){const _0x47af2d=_0x4d7826;if(this[_0x47af2d(0x238)]['has'](_0x541f36))return this[_0x47af2d(0x238)][_0x47af2d(0x17a)](_0x541f36);let _0x4d3839=hn[this[_0x47af2d(0x235)]];return this['_colorIndex']=(this[_0x47af2d(0x235)]+0x1)%hn['length'],this[_0x47af2d(0x238)][_0x47af2d(0x209)](_0x541f36,_0x4d3839),_0x4d3839;}};function gn(_0x2abf0a){const _0xde3287=_0x4d7826;let _0x25f576;try{_0x25f576=JSON[_0xde3287(0x1d0)](_0x2abf0a);}catch{return null;}if(typeof _0x25f576!='object'||!_0x25f576)return null;let _0x201f40=_0x25f576;if(_0x201f40[_0xde3287(0x2cf)]!=='board-element-selection'||typeof _0x201f40[_0xde3287(0x245)]!=_0xde3287(0x2c0)||typeof _0x201f40[_0xde3287(0x28d)]!=_0xde3287(0x2c0))return null;let _0x4bd8ea=Array[_0xde3287(0x29f)](_0x201f40[_0xde3287(0x24d)])?_0x201f40[_0xde3287(0x24d)][_0xde3287(0x2e3)](_0x338698=>typeof _0x338698==_0xde3287(0x2c0)):[],_0x14dfe7=typeof _0x201f40[_0xde3287(0x2fe)]=='string'?_0x201f40[_0xde3287(0x2fe)]:null;return{'kind':'board-element-selection','unitId':_0x201f40[_0xde3287(0x245)],'subUnitId':_0x201f40['subUnitId'],'selectedIds':_0x4bd8ea,'focusedId':_0x14dfe7};}let _n=class extends _0x2d058d{get[_0x4d7826(0x294)](){const _0x557d7f=_0x4d7826;return this[_0x557d7f(0x27e)][_0x557d7f(0x118)]();}get[_0x4d7826(0x1cf)](){const _0x5af580=_0x4d7826;return this['_roomMembers$'][_0x5af580(0x118)]();}constructor(_0x4bfdc4,_0x54d790,_0x256416,_0x6524e,_0x569ea8){const _0x3f4684=_0x4d7826;super(),this[_0x3f4684(0x232)]=_0x4bfdc4,this[_0x3f4684(0x2ca)]=_0x54d790,this['_colorAssignService']=_0x256416,this[_0x3f4684(0x114)]=_0x6524e,this[_0x3f4684(0x200)]=_0x569ea8,q(this,'_online',!0x1),q(this,_0x3f4684(0x256),!0x1),q(this,'_cursorInfo$',new _0x57044e(new Map())),q(this,'cursorInfo$',this[_0x3f4684(0x27e)]['asObservable']()),q(this,_0x3f4684(0x19a),new _0x57044e([])),q(this,_0x3f4684(0x292),this[_0x3f4684(0x19a)]['pipe'](_0x3093d8(0x12c))),q(this,_0x3f4684(0x21e),_0x3016da(_0x410da0=>{const _0x2fec63=_0x3f4684;let _0x524d16=_0x410da0[_0x2fec63(0x190)];if(!_0x524d16||_0x524d16[_0x2fec63(0x245)]!==this[_0x2fec63(0x232)])return;let _0x5a11f7={'kind':_0x2fec63(0x29b),'unitId':_0x524d16['unitId'],'subUnitId':_0x524d16[_0x2fec63(0x28d)],'selectedIds':_0x410da0[_0x2fec63(0x24d)]['filter'](_0x471bc9=>typeof _0x471bc9==_0x2fec63(0x2c0)),'focusedId':_0x410da0[_0x2fec63(0x2fe)]},_0x36c846={'eventID':_0x1428bf[_0x2fec63(0x1fb)],'data':{'unitID':this[_0x2fec63(0x232)],'memberID':this[_0x2fec63(0x2ca)]['getMemberID'](),'selection':JSON[_0x2fec63(0x326)](_0x5a11f7)}};this[_0x2fec63(0x2ca)][_0x2fec63(0x2b0)](_0x36c846,this[_0x2fec63(0x232)]);},0x64));}[_0x4d7826(0x315)](){const _0x58eace=_0x4d7826;super[_0x58eace(0x315)](),this[_0x58eace(0x27e)][_0x58eace(0x2b2)](new Map()),this['_cursorInfo$'][_0x58eace(0x223)](),this[_0x58eace(0x19a)][_0x58eace(0x2b2)]([]),this[_0x58eace(0x19a)][_0x58eace(0x223)]();}[_0x4d7826(0x26c)](){const _0x4e1dc9=_0x4d7826;this[_0x4e1dc9(0x256)]||(this[_0x4e1dc9(0x256)]=!0x0,this[_0x4e1dc9(0x2ca)]['sessionStatus$'][_0x4e1dc9(0x18b)](_0x59e49a(this[_0x4e1dc9(0x188)]))[_0x4e1dc9(0x2e4)](_0x2a22b2=>{const _0x4ddd82=_0x4e1dc9;_0x2a22b2===_0x72de37[_0x4ddd82(0x27f)]?this[_0x4ddd82(0x284)]():this['_toggleOffline']();}),this[_0x4e1dc9(0x2ca)][_0x4e1dc9(0xe4)][_0x4e1dc9(0x18b)](_0x59e49a(this[_0x4e1dc9(0x188)]))[_0x4e1dc9(0x2e4)](_0x201a9f=>{const _0xa13d6c=_0x4e1dc9;let _0x2455e9=_0x201a9f[_0xa13d6c(0x1cd)];_0x2455e9===_0x1428bf[_0xa13d6c(0x1fb)]&&this[_0xa13d6c(0x217)](_0x201a9f),_0x2455e9===_0x1428bf[_0xa13d6c(0xfc)]&&this['_onCursorDelete'](_0x201a9f);}),this['_boardElementStateService'][_0x4e1dc9(0x325)][_0x4e1dc9(0x18b)](_0x59e49a(this[_0x4e1dc9(0x188)]))[_0x4e1dc9(0x2e4)](_0xfa35f5=>{const _0x33a329=_0x4e1dc9;this['_online']&&this[_0x33a329(0x21e)](_0xfa35f5);}));}[_0x4d7826(0x217)](_0x13557c){const _0x36ae05=_0x4d7826;var _0x24b612,_0x5c706d,_0x548311,_0x438379;let {memberID:_0x3e2fc8,selection:_0x46588b}=_0x13557c[_0x36ae05(0x2f8)];if(_0x3e2fc8===((_0x24b612=(_0x5c706d=this[_0x36ae05(0x2ca)])[_0x36ae05(0x2fb)])==null?void 0x0:_0x24b612['call'](_0x5c706d)))return;let _0x50caa9=gn(_0x46588b);if(!_0x50caa9||_0x50caa9[_0x36ae05(0x245)]!==this['unitID'])return;let _0x531d55=(_0x548311=(_0x438379=this[_0x36ae05(0x114)][_0x36ae05(0x23b)](this['unitID'],_0x3e2fc8))==null?void 0x0:_0x438379[_0x36ae05(0x242)])==null?'Unknown\x20user':_0x548311,_0x3ea689={'color':this[_0x36ae05(0x2e5)][_0x36ae05(0x1b7)](_0x3e2fc8),'name':_0x531d55,'unitId':_0x50caa9['unitId'],'subUnitId':_0x50caa9[_0x36ae05(0x28d)],'selectedIds':_0x50caa9[_0x36ae05(0x24d)],'focusedId':_0x50caa9[_0x36ae05(0x2fe)],'selection':_0x46588b},_0xb25dbc=new Map(this[_0x36ae05(0x294)]);_0xb25dbc['set'](_0x3e2fc8,_0x3ea689),this[_0x36ae05(0x27e)][_0x36ae05(0x2b2)](_0xb25dbc);}['_onCursorDelete'](_0x4a3146){const _0x405244=_0x4d7826;let {memberID:_0x34f80d}=_0x4a3146['data'],_0x483a8b=new Map(this[_0x405244(0x294)]);_0x483a8b[_0x405244(0x111)](_0x34f80d),this[_0x405244(0x27e)][_0x405244(0x2b2)](_0x483a8b);}[_0x4d7826(0x284)](){const _0x1367b8=_0x4d7826;this[_0x1367b8(0x1d1)]=!0x0,this['_updateLocalCursor'](this[_0x1367b8(0x200)][_0x1367b8(0x281)]());}[_0x4d7826(0x2ef)](){const _0x50a16f=_0x4d7826;this[_0x50a16f(0x1d1)]=!0x1;}};_n=Y([J(0x2,_0x2975e5(Z)),J(0x3,_0x2975e5(_0x191cdf)),J(0x4,_0x2975e5(_0x2ad330))],_n);function vn(_0x3df229){const _0x1d2795=_0x4d7826;let _0x41ff70='';for(let _0x536d53 of _0x3df229){let {startOffset:_0x59d1c5,endOffset:_0x3b22c6,isActive:_0x444dd6,rangeType:_0x3f8c74,segmentId:_0x20026d,segmentPage:_0x55cc7e}=_0x536d53;_0x41ff70[_0x1d2795(0x2bc)]&&(_0x41ff70+=','),_0x41ff70+=_0x59d1c5+':'+_0x3b22c6+':'+(_0x444dd6?'1':'0')+':'+_0x3f8c74+':'+_0x20026d+':'+_0x55cc7e;}return _0x41ff70;}function yn(_0x11289f){const _0x3bcaf6=_0x4d7826;let _0x51a7b3=_0x11289f['split'](','),_0x5ec0b7=[];for(let _0x2e09fb of _0x51a7b3){let [_0x2f001f,_0x12b95f,_0x11a541,_0x4311d8,_0x7e474,_0x7506c7]=_0x2e09fb[_0x3bcaf6(0x20c)](':');_0x5ec0b7[_0x3bcaf6(0x141)]({'startOffset':Number(_0x2f001f),'endOffset':Number(_0x12b95f),'collapsed':_0x2f001f===_0x12b95f,'isActive':_0x11a541==='1','rangeType':_0x4311d8===_0x4d59fd['TEXT']?_0x4d59fd[_0x3bcaf6(0x25c)]:_0x4d59fd['RECT'],'segmentId':typeof _0x7e474=='string'?String(_0x7e474):'','segmentPage':Number(_0x7506c7==null?-0x1:_0x7506c7)});}return _0x5ec0b7[_0x3bcaf6(0x2d4)](_0x3d9550=>_0x3d9550[_0x3bcaf6(0x1b9)])||(_0x5ec0b7[0x0]['isActive']=!0x0),_0x5ec0b7;}var bn=class extends _0x2d058d{constructor(..._0x44afdb){const _0x18af1d=_0x4d7826;super(..._0x44afdb),q(this,_0x18af1d(0x19e),new _0x57044e(null)),q(this,'collabCursorState$',this[_0x18af1d(0x19e)][_0x18af1d(0x31d)]());}[_0x4d7826(0x29e)](_0x193a61){const _0x28638b=_0x4d7826;let {unitID:_0x4a4690,memberID:_0x335cf7,textRanges:_0x596e70}=_0x193a61,_0x3a1c60=vn(_0x596e70);if(_0x3a1c60==='')return;let _0x403595={'unitID':_0x4a4690,'memberID':_0x335cf7,'selection':_0x3a1c60};this[_0x28638b(0x19e)][_0x28638b(0x2b2)](_0x403595);}};let xn=class extends _0x2d058d{get[_0x4d7826(0x294)](){const _0x156b2b=_0x4d7826;return this[_0x156b2b(0x27e)][_0x156b2b(0x118)]();}get[_0x4d7826(0x1cf)](){return this['_roomMembers$']['getValue']();}constructor(_0x4cc256,_0xbdfd2b,_0x347710,_0x48bd33,_0x13efc6,_0x21e2ba,_0x239aee,_0x5b3ce0,_0x52430c){const _0x49bdd8=_0x4d7826;super(),this['unitID']=_0x4cc256,this['_session']=_0xbdfd2b,this[_0x49bdd8(0xf6)]=_0x347710,this[_0x49bdd8(0x2e5)]=_0x48bd33,this[_0x49bdd8(0x114)]=_0x13efc6,this[_0x49bdd8(0x224)]=_0x21e2ba,this[_0x49bdd8(0x241)]=_0x239aee,this[_0x49bdd8(0x31a)]=_0x5b3ce0,this[_0x49bdd8(0x310)]=_0x52430c,q(this,_0x49bdd8(0x1d1),!0x1),q(this,_0x49bdd8(0x256),!0x1),q(this,'_cursorInfo$',new _0x57044e(new Map())),q(this,_0x49bdd8(0xe3),this['_cursorInfo$']['asObservable']()),q(this,_0x49bdd8(0x19a),new _0x57044e([])),q(this,_0x49bdd8(0x292),this[_0x49bdd8(0x19a)][_0x49bdd8(0x18b)](_0x3093d8(0x12c))),q(this,'_updateLocalCursor',_0x3016da(_0x1d3407=>{const _0x2fdf18=_0x49bdd8;let _0x3aab7e={'eventID':_0x1428bf[_0x2fdf18(0x1fb)],'data':{'unitID':this['unitID'],'memberID':this[_0x2fdf18(0x2ca)][_0x2fdf18(0x2fb)](),'selection':vn(_0x1d3407)}};this[_0x2fdf18(0x2ca)][_0x2fdf18(0x2b0)](_0x3aab7e,this[_0x2fdf18(0x232)]);},0x64));}[_0x4d7826(0x315)](){const _0x2423df=_0x4d7826;super[_0x2423df(0x315)](),this[_0x2423df(0x27e)]['next'](new Map()),this['_cursorInfo$'][_0x2423df(0x223)](),this[_0x2423df(0x19a)]['next']([]),this[_0x2423df(0x19a)][_0x2423df(0x223)]();}[_0x4d7826(0x26c)](){const _0x2ed9b4=_0x4d7826;this[_0x2ed9b4(0x256)]||(this[_0x2ed9b4(0x256)]=!0x0,this[_0x2ed9b4(0x2ca)][_0x2ed9b4(0x24f)][_0x2ed9b4(0x18b)](_0x59e49a(this['dispose$']))[_0x2ed9b4(0x2e4)](_0x4e4706=>{const _0x30e4ee=_0x2ed9b4;_0x4e4706===_0x72de37['ONLINE']?this[_0x30e4ee(0x284)]():this[_0x30e4ee(0x2ef)]();}),this[_0x2ed9b4(0x2ca)][_0x2ed9b4(0xe4)][_0x2ed9b4(0x18b)](_0x59e49a(this['dispose$']))[_0x2ed9b4(0x2e4)](_0x3d29ce=>{const _0x4e5fe9=_0x2ed9b4;let _0xecd98f=_0x3d29ce[_0x4e5fe9(0x1cd)];_0xecd98f===_0x1428bf[_0x4e5fe9(0x1fb)]&&this[_0x4e5fe9(0x217)](_0x3d29ce),_0xecd98f===_0x1428bf['USERS_LEAVE']&&this[_0x4e5fe9(0x12f)](_0x3d29ce);}),this[_0x2ed9b4(0x2f1)](this[_0x2ed9b4(0x310)][_0x2ed9b4(0x272)](_0x73bf95=>{const _0x2e7c64=_0x2ed9b4;let _0x10d9e3=_0x73bf95[_0x2e7c64(0x2b7)];_0x10d9e3!=null&&this['_online']&&_0x73bf95['id']===_0x2da9df['id']&&_0x10d9e3[_0x2e7c64(0x245)]===this[_0x2e7c64(0x232)]&&_0x10d9e3[_0x2e7c64(0x1c1)]===!0x1&&_0x10d9e3[_0x2e7c64(0x230)][_0x2e7c64(0x2bc)]>0x0&&this[_0x2e7c64(0x21e)](_0x10d9e3[_0x2e7c64(0x230)]);})),this[_0x2ed9b4(0x224)][_0x2ed9b4(0x239)]['pipe'](_0x59e49a(this[_0x2ed9b4(0x188)]))[_0x2ed9b4(0x2e4)](_0x54441a=>{const _0x592d73=_0x2ed9b4;if((_0x54441a==null?void 0x0:_0x54441a[_0x592d73(0x232)])!==this[_0x592d73(0x232)])return;let _0x91034c={'eventID':_0x1428bf[_0x592d73(0x1fb)],'data':_0x54441a};this[_0x592d73(0x217)](_0x91034c);}),this['disposeWithMe'](this['_commandService'][_0x2ed9b4(0x272)](_0x1ca76a=>{const _0x283b8d=_0x2ed9b4;if(_0x1ca76a[_0x283b8d(0x2b7)]==null)return;let _0x585909=_0x1ca76a[_0x283b8d(0x2b7)];if(_0x1ca76a['id']!==_0x3cb8b1['id']||_0x585909['unitId']!==this[_0x283b8d(0x232)])return;let _0x2e1413={'id':_0x283b8d(0x1ea),'params':_0x585909},_0x4cb330=this['cursorInfo'];for(let [_0x533e17,_0x38870c]of _0x4cb330){let _0x5b2f92={'id':_0x283b8d(0x1ea),'params':{'unitId':this[_0x283b8d(0x232)],'actions':null,'textRanges':_0x38870c[_0x283b8d(0x230)]}},_0xd6da30=this[_0x283b8d(0x241)][_0x283b8d(0x32e)](_0x2e1413,_0x5b2f92,!0x1);if(_0x25931a(_0xd6da30))throw _0xd6da30[_0x283b8d(0x1c6)];_0x4cb330[_0x283b8d(0x209)](_0x533e17,{..._0x38870c,'ranges':_0xd6da30['m2Prime'][_0x283b8d(0x2b7)][_0x283b8d(0x1ff)]});}queueMicrotask(()=>{const _0x333cdb=_0x283b8d;this[_0x333cdb(0x27e)][_0x333cdb(0x2b2)](_0x4cb330);});})));}[_0x4d7826(0x217)](_0x5a6d6f){const _0x17111b=_0x4d7826;var _0x4a1601,_0x302862;let {memberID:_0x56cf06,selection:_0x707b2a}=_0x5a6d6f[_0x17111b(0x2f8)],_0x3d2a4c=yn(_0x707b2a),_0x5ed0a6=(_0x4a1601=(_0x302862=this[_0x17111b(0x114)][_0x17111b(0x23b)](this['unitID'],_0x56cf06))==null?void 0x0:_0x302862[_0x17111b(0x242)])==null?'Unknown\x20user':_0x4a1601,_0x36e31d={'color':this[_0x17111b(0x2e5)]['assignAColorForMemberID'](_0x56cf06),'name':_0x5ed0a6,'ranges':_0x3d2a4c},_0x16065c=this[_0x17111b(0x294)];_0x16065c[_0x17111b(0x209)](_0x56cf06,_0x36e31d),this[_0x17111b(0x27e)]['next'](_0x16065c);}[_0x4d7826(0x12f)](_0xc544ba){const _0x5657ed=_0x4d7826;let {memberID:_0x1d1c33}=_0xc544ba['data'],_0x2be27b=this['cursorInfo'];_0x2be27b[_0x5657ed(0x111)](_0x1d1c33),this[_0x5657ed(0x27e)][_0x5657ed(0x2b2)](_0x2be27b);}['_toggleOnline'](){const _0x2e3274=_0x4d7826;var _0x344350;if(this['_online']=!0x0,((_0x344350=this[_0x2e3274(0x31a)]['getFocusedUnit']())==null?void 0x0:_0x344350[_0x2e3274(0x2a9)]())!==this[_0x2e3274(0x232)])return;let _0x24395f=this['_injector'][_0x2e3274(0x17a)](_0x4086a9)[_0x2e3274(0x17c)]();Array[_0x2e3274(0x29f)](_0x24395f)&&_0x24395f[_0x2e3274(0x2bc)]>0x0&&this[_0x2e3274(0x21e)](_0x24395f);}[_0x4d7826(0x2ef)](){const _0x3a2d76=_0x4d7826;this[_0x3a2d76(0x1d1)]=!0x1;}};xn=Y([J(0x2,_0x2975e5(_0x2bf279)),J(0x3,_0x2975e5(Z)),J(0x4,_0x2975e5(_0x191cdf)),J(0x5,_0x2975e5(bn)),J(0x6,_0x796fe5),J(0x7,_0x4aed1f),J(0x8,_0x5160b7)],xn);const Sn=()=>{let _0x3b59a8=[],_0x4d3ffe=!0x1;return _0xb6ecfa=>{const _0x2326ff=_0x2258;_0x3b59a8[_0x2326ff(0x141)](_0xb6ecfa),_0x4d3ffe||(_0x4d3ffe=!0x0,setTimeout(()=>{_0x3b59a8['forEach'](_0xfbfebc=>_0xfbfebc()),_0x3b59a8=[],_0x4d3ffe=!0x1;}));};};let Cn=class extends _0x2d058d{get[_0x4d7826(0x294)](){const _0x86c38=_0x4d7826;return this[_0x86c38(0x27e)][_0x86c38(0x118)]();}get['roomMembers'](){const _0x46c06e=_0x4d7826;return this[_0x46c06e(0x19a)][_0x46c06e(0x118)]();}constructor(_0x506a90,_0x21fca2,_0xdfa2fc,_0x51f4be,_0xaad2be,_0x43172b,_0x2cd2b8,_0x59a9e4){const _0x1c0460=_0x4d7826;super(),this[_0x1c0460(0x232)]=_0x506a90,this['_session']=_0x21fca2,this['_injector']=_0xdfa2fc,this['_colorAssignService']=_0x51f4be,this['_memberService']=_0xaad2be,this[_0x1c0460(0x31a)]=_0x43172b,this[_0x1c0460(0x310)]=_0x2cd2b8,this[_0x1c0460(0x2b5)]=_0x59a9e4,q(this,_0x1c0460(0x1d1),!0x1),q(this,_0x1c0460(0x256),!0x1),q(this,_0x1c0460(0x27e),new _0x57044e(new Map())),q(this,'cursorInfo$',this[_0x1c0460(0x27e)][_0x1c0460(0x31d)]()),q(this,_0x1c0460(0x19a),new _0x57044e([])),q(this,_0x1c0460(0x292),this[_0x1c0460(0x19a)]['pipe'](_0x3093d8(0x12c))),q(this,_0x1c0460(0x21e),_0x3016da((_0x5015e7,_0x4aa7ae)=>{const _0x39fac9=_0x1c0460;let _0x1a07fe={'eventID':_0x1428bf['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x39fac9(0x2ca)][_0x39fac9(0x2fb)](),'selection':_0x38bdd0(_0x5015e7,_0x4aa7ae['range'])}};this[_0x39fac9(0x2ca)][_0x39fac9(0x2b0)](_0x1a07fe,this[_0x39fac9(0x232)]);},0x64));}['dispose'](){const _0x484c76=_0x4d7826;super[_0x484c76(0x315)](),this['_cursorInfo$'][_0x484c76(0x2b2)](new Map()),this['_cursorInfo$'][_0x484c76(0x223)](),this[_0x484c76(0x19a)][_0x484c76(0x2b2)]([]),this['_roomMembers$'][_0x484c76(0x223)]();}['init'](){const _0x56c82a=_0x4d7826;this[_0x56c82a(0x256)]||(this[_0x56c82a(0x256)]=!0x0,this['_session'][_0x56c82a(0x24f)][_0x56c82a(0x18b)](_0x59e49a(this[_0x56c82a(0x188)]))[_0x56c82a(0x2e4)](_0x438a49=>{const _0x2cc6cf=_0x56c82a;_0x438a49===_0x72de37[_0x2cc6cf(0x27f)]?this[_0x2cc6cf(0x284)]():this['_toggleOffline']();}),this[_0x56c82a(0x2ca)][_0x56c82a(0xe4)][_0x56c82a(0x18b)](_0x59e49a(this[_0x56c82a(0x188)]))['subscribe'](_0x3ec11f=>{const _0x4b8e9d=_0x56c82a;let _0x309453=_0x3ec11f['eventID'];_0x309453===_0x1428bf['UPDATE_CURSOR']&&this[_0x4b8e9d(0x217)](_0x3ec11f),_0x309453===_0x1428bf['USERS_LEAVE']&&this[_0x4b8e9d(0x12f)](_0x3ec11f);}),this[_0x56c82a(0x2b6)](),this[_0x56c82a(0x2f1)](this[_0x56c82a(0x310)][_0x56c82a(0x272)](_0x372646=>{const _0x58bfe4=_0x56c82a;if(this[_0x58bfe4(0x1d1)]&&_0x372646['id']===_0x4a73e4['id']&&_0x372646[_0x58bfe4(0x2b7)][_0x58bfe4(0x245)]===this[_0x58bfe4(0x232)]){let _0x2ffce5=_0x372646[_0x58bfe4(0x2b7)];this[_0x58bfe4(0x21e)](_0x2ffce5['subUnitId'],_0x2ffce5[_0x58bfe4(0x10c)][0x0]);}})));}[_0x4d7826(0x217)](_0x400c15){const _0x3d35ee=_0x4d7826;var _0x2aacbf,_0x55d6f2;let {memberID:_0x48760c,selection:_0x17c2f0}=_0x400c15[_0x3d35ee(0x2f8)],{sheetName:_0x277202,range:_0x15c7ec}=_0x45bc1b(_0x17c2f0),_0x3bffab={'name':(_0x2aacbf=(_0x55d6f2=this[_0x3d35ee(0x114)]['getMember'](this[_0x3d35ee(0x232)],_0x48760c))==null?void 0x0:_0x55d6f2['name'])==null?_0x3d35ee(0x156):_0x2aacbf,'range':this[_0x3d35ee(0x128)](_0x277202,_0x15c7ec),'sheetID':_0x277202,'color':this[_0x3d35ee(0x2e5)][_0x3d35ee(0x1b7)](_0x48760c),'selection':_0x17c2f0},_0x4247bc=this[_0x3d35ee(0x294)];_0x4247bc[_0x3d35ee(0x209)](_0x48760c,_0x3bffab),this[_0x3d35ee(0x27e)][_0x3d35ee(0x2b2)](_0x4247bc);}[_0x4d7826(0x12f)](_0x183800){const _0x369643=_0x4d7826;let {memberID:_0x597cba}=_0x183800['data'],_0x55b988=this[_0x369643(0x294)];_0x55b988[_0x369643(0x111)](_0x597cba),this[_0x369643(0x27e)][_0x369643(0x2b2)](_0x55b988);}[_0x4d7826(0x128)](_0x476d3b,_0x2f7c9d){const _0x87415b=_0x4d7826;var _0x2a90af;let _0x19a8ca=(_0x2a90af=this[_0x87415b(0x31a)][_0x87415b(0x2e8)](this[_0x87415b(0x232)]))==null||(_0x2a90af=_0x2a90af[_0x87415b(0x2df)](_0x476d3b))==null?void 0x0:_0x2a90af['getMergeData']();return(_0x19a8ca==null?void 0x0:_0x19a8ca['find'](_0x68863f=>_0x565e74[_0x87415b(0x2ff)](_0x68863f,_0x2f7c9d)))||_0x2f7c9d;}[_0x4d7826(0x2b6)](){const _0xbc80d1=_0x4d7826;let _0x1ccb77=new _0x304b28(),_0x237a16=Sn(),_0xf26f9b=()=>{const _0x6d6dd3=_0x2258;_0x1ccb77[_0x6d6dd3(0x315)]();let _0x510a0f=(_0x23f116,_0x255440,_0x47e49b,_0x400124)=>{const _0xb63d56=_0x6d6dd3;let _0x205fa9=[];switch(_0x23f116['id']){case _0x54f97d['DeleteRangeMoveLeftCommandId']:_0x205fa9=_0x17a981(_0x23f116,_0x400124);break;case _0x54f97d[_0xb63d56(0x244)]:_0x205fa9=_0x527cf0(_0x23f116,_0x400124);break;case _0x54f97d[_0xb63d56(0x11a)]:_0x205fa9=_0x473d17(_0x23f116,_0x400124);break;case _0x54f97d[_0xb63d56(0x129)]:_0x205fa9=_0x256c54(_0x23f116,_0x400124);break;case _0x54f97d[_0xb63d56(0x287)]:_0x205fa9=_0x172ece(_0x23f116,_0x400124);break;case _0x54f97d[_0xb63d56(0x2a7)]:_0x205fa9=_0x5cc953(_0x23f116,_0x400124);break;case _0x54f97d[_0xb63d56(0x247)]:_0x205fa9=_0x4c9162(_0x23f116,_0x400124);break;case _0x54f97d[_0xb63d56(0x12e)]:_0x205fa9=_0x7c4f03(_0x23f116,_0x400124);break;case _0x54f97d['RemoveRowCommandId']:_0x205fa9=_0x5f4dbf(_0x23f116,_0x400124);break;}let _0x2f0b84=_0x434df3(_0x205fa9,_0x400124),_0xa0fa6d=this[_0xb63d56(0x294)][_0xb63d56(0x17a)](_0x255440);if(_0xa0fa6d&&_0x2f0b84){let _0x29a70c={..._0xa0fa6d,'range':_0x2f0b84};this['cursorInfo'][_0xb63d56(0x209)](_0x255440,_0x29a70c),_0x237a16(()=>{const _0x2de149=_0xb63d56;let _0x2b88b8=this[_0x2de149(0x2b5)][_0x2de149(0x13c)](_0x2f0b84,_0x4e8c47=>(_0x2b88b8[_0x2de149(0x315)](),_0x510a0f(_0x4e8c47,_0x255440,_0x47e49b,_0x2f0b84)));_0x1ccb77[_0x2de149(0x1ba)](_0x2b88b8);});}return{'redos':[],'undos':[]};};this[_0x6d6dd3(0x294)][_0x6d6dd3(0x1b4)]((_0x17a6e1,_0x32cffb)=>{const _0x528797=_0x6d6dd3;let {range:_0x40144d,sheetID:_0x4398c7}=_0x17a6e1,_0x2fcfdf=this[_0x528797(0x2b5)]['registerRefRange'](_0x40144d,_0x21f319=>(_0x2fcfdf[_0x528797(0x315)](),_0x510a0f(_0x21f319,_0x32cffb,_0x4398c7,_0x40144d)));_0x1ccb77['add'](_0x2fcfdf);});};this[_0xbc80d1(0x2f1)](_0x2994ac(this['_cursorInfo$'][_0xbc80d1(0x2e4)](()=>{_0xf26f9b();})));}[_0x4d7826(0x284)](){const _0xdb9d6b=_0x4d7826;var _0x2319bd,_0x42c038;if(this[_0xdb9d6b(0x1d1)]=!0x0,((_0x2319bd=this['_univerInstanceService'][_0xdb9d6b(0x1ce)]())==null?void 0x0:_0x2319bd[_0xdb9d6b(0x2a9)]())!==this[_0xdb9d6b(0x232)])return;let _0x50de69=(_0x42c038=this['_injector'][_0xdb9d6b(0x17a)](_0x3e0c93)[_0xdb9d6b(0x19c)]())==null?void 0x0:_0x42c038[0x0],_0x5b1449=this[_0xdb9d6b(0x31a)][_0xdb9d6b(0x16d)](_0x70929f[_0xdb9d6b(0x2cb)])[_0xdb9d6b(0xfb)]();_0x50de69&&_0x5b1449&&this['_updateLocalCursor'](_0x5b1449[_0xdb9d6b(0x17e)](),_0x50de69);}[_0x4d7826(0x2ef)](){this['_online']=!0x1;}};Cn=Y([J(0x2,_0x2975e5(_0x2bf279)),J(0x3,_0x2975e5(Z)),J(0x4,_0x2975e5(_0x191cdf)),J(0x5,_0x4aed1f),J(0x6,_0x5160b7),J(0x7,_0x2975e5(_0x5e8753))],Cn);function wn(_0x132396){const _0xb49320=_0x4d7826;let _0xc7a72;try{_0xc7a72=JSON[_0xb49320(0x1d0)](_0x132396);}catch{return null;}if(typeof _0xc7a72!=_0xb49320(0x210)||!_0xc7a72)return null;let _0x4c8768=_0xc7a72;if(_0x4c8768[_0xb49320(0x2cf)]!==_0xb49320(0x1e8)||typeof _0x4c8768[_0xb49320(0x245)]!=_0xb49320(0x2c0)||typeof _0x4c8768['subUnitId']!='string')return null;let _0x3c8e0c=Array[_0xb49320(0x29f)](_0x4c8768[_0xb49320(0x24d)])?_0x4c8768[_0xb49320(0x24d)]['filter'](_0x3d44ad=>typeof _0x3d44ad=='string'):[],_0x45e634=typeof _0x4c8768[_0xb49320(0x2fe)]=='string'?_0x4c8768[_0xb49320(0x2fe)]:null;return{'kind':_0xb49320(0x1e8),'unitId':_0x4c8768['unitId'],'subUnitId':_0x4c8768[_0xb49320(0x28d)],'selectedIds':_0x3c8e0c,'focusedId':_0x45e634};}let Tn=class extends _0x2d058d{get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x3c4e40=_0x4d7826;return this[_0x3c4e40(0x19a)][_0x3c4e40(0x118)]();}constructor(_0x271cc2,_0x42b8b9,_0x36d95e,_0x45fdc4,_0x579a1d){const _0x3cbd7f=_0x4d7826;super(),this['unitID']=_0x271cc2,this[_0x3cbd7f(0x2ca)]=_0x42b8b9,this[_0x3cbd7f(0x2e5)]=_0x36d95e,this[_0x3cbd7f(0x114)]=_0x45fdc4,this[_0x3cbd7f(0x26b)]=_0x579a1d,q(this,'_online',!0x1),q(this,_0x3cbd7f(0x256),!0x1),q(this,_0x3cbd7f(0x27e),new _0x57044e(new Map())),q(this,_0x3cbd7f(0xe3),this['_cursorInfo$'][_0x3cbd7f(0x31d)]()),q(this,_0x3cbd7f(0x19a),new _0x57044e([])),q(this,'roomMembers$',this[_0x3cbd7f(0x19a)][_0x3cbd7f(0x18b)](_0x3093d8(0x12c))),q(this,'_updateLocalCursor',_0x3016da(_0x472688=>{const _0x5eeb37=_0x3cbd7f;let _0x4d76ad=_0x472688[_0x5eeb37(0x190)];if(!_0x4d76ad||_0x4d76ad[_0x5eeb37(0x245)]!==this['unitID'])return;let _0x318520={'kind':_0x5eeb37(0x1e8),'unitId':_0x4d76ad[_0x5eeb37(0x245)],'subUnitId':_0x4d76ad['subUnitId'],'selectedIds':_0x472688[_0x5eeb37(0x24d)]['filter'](_0x9d7c7a=>typeof _0x9d7c7a==_0x5eeb37(0x2c0)),'focusedId':_0x472688['focusedId']},_0x415f17={'eventID':_0x1428bf[_0x5eeb37(0x1fb)],'data':{'unitID':this[_0x5eeb37(0x232)],'memberID':this[_0x5eeb37(0x2ca)][_0x5eeb37(0x2fb)](),'selection':JSON[_0x5eeb37(0x326)](_0x318520)}};this[_0x5eeb37(0x2ca)][_0x5eeb37(0x2b0)](_0x415f17,this[_0x5eeb37(0x232)]);},0x64));}[_0x4d7826(0x315)](){const _0x223c8c=_0x4d7826;super[_0x223c8c(0x315)](),this[_0x223c8c(0x27e)]['next'](new Map()),this['_cursorInfo$'][_0x223c8c(0x223)](),this[_0x223c8c(0x19a)][_0x223c8c(0x2b2)]([]),this[_0x223c8c(0x19a)][_0x223c8c(0x223)]();}[_0x4d7826(0x26c)](){const _0x4185bf=_0x4d7826;this[_0x4185bf(0x256)]||(this['_init']=!0x0,this[_0x4185bf(0x2ca)][_0x4185bf(0x24f)]['pipe'](_0x59e49a(this['dispose$']))[_0x4185bf(0x2e4)](_0x17afb6=>{const _0x22c57a=_0x4185bf;_0x17afb6===_0x72de37[_0x22c57a(0x27f)]?this[_0x22c57a(0x284)]():this[_0x22c57a(0x2ef)]();}),this[_0x4185bf(0x2ca)][_0x4185bf(0xe4)][_0x4185bf(0x18b)](_0x59e49a(this['dispose$']))[_0x4185bf(0x2e4)](_0x100561=>{const _0x3b0f2d=_0x4185bf;let _0x1e4d9d=_0x100561[_0x3b0f2d(0x1cd)];_0x1e4d9d===_0x1428bf[_0x3b0f2d(0x1fb)]&&this['_onCursorUpdate'](_0x100561),_0x1e4d9d===_0x1428bf[_0x3b0f2d(0xfc)]&&this[_0x3b0f2d(0x12f)](_0x100561);}),this[_0x4185bf(0x26b)][_0x4185bf(0x325)]['pipe'](_0x59e49a(this[_0x4185bf(0x188)]))[_0x4185bf(0x2e4)](_0x2696e7=>{const _0x165fba=_0x4185bf;this[_0x165fba(0x1d1)]&&this[_0x165fba(0x21e)](_0x2696e7);}));}[_0x4d7826(0x217)](_0x30eca5){const _0x522c14=_0x4d7826;var _0x41cbc1,_0x55af74,_0x20d6d0,_0x1507fe;let {memberID:_0x5d3f5a,selection:_0x479ae9}=_0x30eca5[_0x522c14(0x2f8)];if(_0x5d3f5a===((_0x41cbc1=(_0x55af74=this[_0x522c14(0x2ca)])['getMemberID'])==null?void 0x0:_0x41cbc1[_0x522c14(0x220)](_0x55af74)))return;let _0x635207=wn(_0x479ae9);if(!_0x635207||_0x635207[_0x522c14(0x245)]!==this['unitID'])return;let _0x33e47e=(_0x20d6d0=(_0x1507fe=this[_0x522c14(0x114)][_0x522c14(0x23b)](this[_0x522c14(0x232)],_0x5d3f5a))==null?void 0x0:_0x1507fe['name'])==null?_0x522c14(0x156):_0x20d6d0,_0xbd5e57={'color':this['_colorAssignService'][_0x522c14(0x1b7)](_0x5d3f5a),'name':_0x33e47e,'unitId':_0x635207[_0x522c14(0x245)],'subUnitId':_0x635207[_0x522c14(0x28d)],'selectedIds':_0x635207[_0x522c14(0x24d)],'focusedId':_0x635207['focusedId'],'selection':_0x479ae9},_0x568d62=new Map(this[_0x522c14(0x294)]);_0x568d62[_0x522c14(0x209)](_0x5d3f5a,_0xbd5e57),this[_0x522c14(0x27e)]['next'](_0x568d62);}[_0x4d7826(0x12f)](_0x1d18a0){const _0x1255fe=_0x4d7826;let {memberID:_0x3feffb}=_0x1d18a0['data'],_0x42852d=new Map(this[_0x1255fe(0x294)]);_0x42852d['delete'](_0x3feffb),this[_0x1255fe(0x27e)][_0x1255fe(0x2b2)](_0x42852d);}[_0x4d7826(0x284)](){const _0x16a2a7=_0x4d7826;this[_0x16a2a7(0x1d1)]=!0x0,this[_0x16a2a7(0x21e)](this[_0x16a2a7(0x26b)]['getSnapshot']());}[_0x4d7826(0x2ef)](){const _0x46ae84=_0x4d7826;this[_0x46ae84(0x1d1)]=!0x1;}};Tn=Y([J(0x2,_0x2975e5(Z)),J(0x3,_0x2975e5(_0x191cdf)),J(0x4,_0x2975e5(_0xeaea7))],Tn);function _0x2258(_0xee9c0e,_0x4e0e34){_0xee9c0e=_0xee9c0e-0xdd;const _0xd36b19=_0xd36b();let _0x225804=_0xd36b19[_0xee9c0e];return _0x225804;}let Q=class extends _0x2d058d{constructor(_0x58c0c0,_0x374852,_0x2d32e9){const _0x11c0cf=_0x4d7826;super(),this[_0x11c0cf(0x31a)]=_0x58c0c0,this[_0x11c0cf(0xf6)]=_0x374852,this[_0x11c0cf(0x14a)]=_0x2d32e9,q(this,_0x11c0cf(0xf1),new Map()),q(this,'_entityInit$',new _0x43728f()),this['_init']();}[_0x4d7826(0x315)](){const _0x155c69=_0x4d7826;super[_0x155c69(0x315)](),this[_0x155c69(0x153)]['complete'](),this[_0x155c69(0xf1)][_0x155c69(0x1b4)](_0x8acfe8=>_0x8acfe8[_0x155c69(0x315)]());}[_0x4d7826(0x113)](_0x590e00){const _0x1526f9=_0x4d7826;return this[_0x1526f9(0xf1)][_0x1526f9(0x1a3)](_0x590e00)?this[_0x1526f9(0xf1)]['get'](_0x590e00)[_0x1526f9(0xe3)]:this[_0x1526f9(0x153)][_0x1526f9(0x18b)](_0x3c3d39(_0x2ed922=>_0x2ed922[_0x1526f9(0x232)]===_0x590e00),_0xd99b03(_0x496061=>_0x496061['cursorInfo$']));}[_0x4d7826(0x256)](){const _0x1c070d=_0x4d7826;this[_0x1c070d(0x31a)]['getTypeOfUnitAdded$'](_0x70929f['UNIVER_SHEET'])[_0x1c070d(0x18b)](_0x59e49a(this[_0x1c070d(0x188)]))[_0x1c070d(0x2e4)](async _0x3c91f2=>{const _0x19dbfd=_0x1c070d;let _0x41c124=_0x3c91f2[_0x19dbfd(0x21a)][_0x19dbfd(0x2a9)](),_0x43caf5=await this[_0x19dbfd(0x233)](_0x41c124);this[_0x19dbfd(0x153)][_0x19dbfd(0x2b2)](_0x43caf5),this[_0x19dbfd(0xf1)]['set'](_0x41c124,_0x43caf5);}),this[_0x1c070d(0x31a)][_0x1c070d(0x20e)](_0x70929f[_0x1c070d(0x21b)])[_0x1c070d(0x18b)](_0x59e49a(this['dispose$']))['pipe'](_0x3c3d39(_0xa1dca=>!_0xa1dca['unit'][_0x1c070d(0x2a9)]()[_0x1c070d(0x149)]('__')))[_0x1c070d(0x2e4)](async _0x519a3d=>{const _0x39e4f2=_0x1c070d;let {unit:_0x31bf6c}=_0x519a3d,_0x236185=_0x31bf6c[_0x39e4f2(0x2a9)](),_0x4bc663=await this[_0x39e4f2(0x13f)](_0x236185);this['_entityInit$'][_0x39e4f2(0x2b2)](_0x4bc663),this[_0x39e4f2(0xf1)][_0x39e4f2(0x209)](_0x236185,_0x4bc663);}),this[_0x1c070d(0x31a)]['getTypeOfUnitAdded$'](_0x70929f[_0x1c070d(0x13d)])[_0x1c070d(0x18b)](_0x59e49a(this['dispose$']))[_0x1c070d(0x2e4)](async _0xac65a0=>{const _0x3aa5ee=_0x1c070d;let _0x543b01=_0xac65a0[_0x3aa5ee(0x21a)]['getUnitId'](),_0x476a54=await this['_startSlideCollabCursor'](_0x543b01);this[_0x3aa5ee(0x153)][_0x3aa5ee(0x2b2)](_0x476a54),this['_entities'][_0x3aa5ee(0x209)](_0x543b01,_0x476a54);}),this[_0x1c070d(0x31a)][_0x1c070d(0x20e)](_0x70929f[_0x1c070d(0x249)])[_0x1c070d(0x18b)](_0x59e49a(this[_0x1c070d(0x188)]))[_0x1c070d(0x2e4)](async _0x39659a=>{const _0x5d9da8=_0x1c070d;let _0x3fd4af=_0x39659a['unit'][_0x5d9da8(0x2a9)](),_0x1791c1=await this[_0x5d9da8(0x25f)](_0x3fd4af);this[_0x5d9da8(0x153)][_0x5d9da8(0x2b2)](_0x1791c1),this[_0x5d9da8(0xf1)][_0x5d9da8(0x209)](_0x3fd4af,_0x1791c1);}),_0x570610(this['_univerInstanceService'][_0x1c070d(0xef)](_0x70929f[_0x1c070d(0x21b)]),this[_0x1c070d(0x31a)][_0x1c070d(0xef)](_0x70929f['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x70929f['UNIVER_SLIDE']),this[_0x1c070d(0x31a)][_0x1c070d(0xef)](_0x70929f[_0x1c070d(0x249)]))['pipe'](_0x59e49a(this[_0x1c070d(0x188)]))['subscribe'](_0x3b2d9e=>{const _0x4afbf8=_0x1c070d;let _0x2858ab=_0x3b2d9e[_0x4afbf8(0x2a9)](),_0x49f9a1=this[_0x4afbf8(0xf1)][_0x4afbf8(0x17a)](_0x2858ab);_0x49f9a1&&(_0x49f9a1[_0x4afbf8(0x315)](),this[_0x4afbf8(0xf1)][_0x4afbf8(0x111)](_0x2858ab));});}async[_0x4d7826(0x233)](_0x22683d){const _0x2ae32b=_0x4d7826;let _0x3841fb=await this[_0x2ae32b(0x14a)]['requireSession'](_0x22683d),_0x191f50=this[_0x2ae32b(0xf6)][_0x2ae32b(0x25e)](Cn,_0x22683d,_0x3841fb);return _0x191f50[_0x2ae32b(0x26c)](),_0x191f50;}async[_0x4d7826(0x13f)](_0x49a7f8){const _0x565231=_0x4d7826;let _0x104b09=await this[_0x565231(0x14a)][_0x565231(0x110)](_0x49a7f8),_0x258efc=this[_0x565231(0xf6)][_0x565231(0x25e)](xn,_0x49a7f8,_0x104b09);return _0x258efc[_0x565231(0x26c)](),_0x258efc;}async[_0x4d7826(0x16b)](_0x8a580a){const _0x2b4407=_0x4d7826;let _0x3b9631=await this[_0x2b4407(0x14a)][_0x2b4407(0x110)](_0x8a580a),_0x55e729=this['_injector'][_0x2b4407(0x25e)](Tn,_0x8a580a,_0x3b9631);return _0x55e729[_0x2b4407(0x26c)](),_0x55e729;}async['_startBoardCollabCursor'](_0xa457ea){const _0x473255=_0x4d7826;let _0xb244be=await this['_collabSessionService'][_0x473255(0x110)](_0xa457ea),_0x4002df=this[_0x473255(0xf6)][_0x473255(0x25e)](_n,_0xa457ea,_0xb244be);return _0x4002df[_0x473255(0x26c)](),_0x4002df;}};Q=Y([J(0x0,_0x4aed1f),J(0x1,_0x2975e5(_0x2bf279)),J(0x2,_0x2975e5(_0x3ebc7d))],Q);let En=class extends _0x2d058d{constructor(_0x29301e,_0x215916,_0x54df93){const _0x35f6b6=_0x4d7826;super(),this[_0x35f6b6(0x1f1)]=_0x29301e,this[_0x35f6b6(0x16c)]=_0x215916,this[_0x35f6b6(0x183)]=_0x54df93,q(this,_0x35f6b6(0x1ab),new Set()),q(this,_0x35f6b6(0x31c),!0x1),q(this,_0x35f6b6(0x268),!0x1),q(this,'_latestCursors',new Map()),this[_0x35f6b6(0x256)]();}[_0x4d7826(0x315)](){const _0x21b444=_0x4d7826;this[_0x21b444(0x280)](),super['dispose']();}[_0x4d7826(0x256)](){const _0x28b425=_0x4d7826;let _0x24786a=this[_0x28b425(0x16c)]['getCollabCursors$'](this[_0x28b425(0x1f1)][_0x28b425(0x245)]);this['disposeWithMe'](_0x2994ac(_0x57a794([_0x24786a,this['_context'][_0x28b425(0x21a)][_0x28b425(0x178)],this['_themeService']['currentTheme$']])[_0x28b425(0x18b)](_0x59e49a(this[_0x28b425(0x188)]))[_0x28b425(0x2e4)](([_0x1e2a10])=>{const _0x1adba6=_0x28b425;let _0x3f80fd=this[_0x1adba6(0x1f1)][_0x1adba6(0x21a)][_0x1adba6(0x15f)](),_0x46de34=new Map();_0x1e2a10[_0x1adba6(0x1b4)]((_0x17c965,_0xf4dd28)=>{const _0x1bf2ef=_0x1adba6;_0x17c965[_0x1bf2ef(0x28d)]===_0x3f80fd&&_0x46de34['set'](_0xf4dd28,{..._0x17c965,'color':this[_0x1bf2ef(0x183)][_0x1bf2ef(0x109)](_0x17c965[_0x1bf2ef(0x20b)])});}),this[_0x1adba6(0x22b)]=_0x46de34,this[_0x1adba6(0x26a)]();})));let _0x4bf13f=this[_0x28b425(0x1f1)][_0x28b425(0x196)];this[_0x28b425(0x2f1)](_0x2994ac(_0x4bf13f[_0x28b425(0xf4)][_0x28b425(0x18b)](_0x59e49a(this[_0x28b425(0x188)]))['subscribe'](()=>{const _0x169896=_0x28b425;this[_0x169896(0x268)]||this['_scheduleRender']();})));}['_scheduleRender'](){const _0x352ba0=_0x4d7826;this[_0x352ba0(0x31c)]||(this[_0x352ba0(0x31c)]=!0x0,Promise[_0x352ba0(0x279)]()[_0x352ba0(0x1b0)](()=>{const _0x2425e6=_0x352ba0;this[_0x2425e6(0x31c)]=!0x1,this['_render']();}));}[_0x4d7826(0x131)](){const _0x2314b2=_0x4d7826;this[_0x2314b2(0x280)]();let _0x1b9340=this[_0x2314b2(0x1f1)][_0x2314b2(0x21a)][_0x2314b2(0x15f)](),_0x52ef38=[];if(this[_0x2314b2(0x22b)][_0x2314b2(0x1b4)]((_0xb193a1,_0x3abeac)=>{const _0x59f00e=_0x2314b2;_0xb193a1[_0x59f00e(0x28d)]===_0x1b9340&&_0xb193a1['selectedIds'][_0x59f00e(0x1b4)](_0x58cc81=>{const _0x4f167d=_0x59f00e;let _0x3e9fcb=_0x2896cf(_0xb193a1[_0x4f167d(0x245)],_0x58cc81),_0x46e037=this[_0x4f167d(0x2dd)](_0x3e9fcb);if(!_0x46e037)return;let _0x2a31f8=this[_0x4f167d(0x1f5)](_0x46e037);_0x52ef38['push'](new mn(_0x4f167d(0x240)+_0x3abeac+'-'+_0x58cc81,{..._0xb193a1,'left':_0x2a31f8[_0x4f167d(0x126)],'top':_0x2a31f8[_0x4f167d(0x218)],'width':_0x2a31f8[_0x4f167d(0x27c)],'height':_0x2a31f8['height'],'angle':_0x46e037[_0x4f167d(0x25b)],'evented':!0x1,'zIndex':pn}));});}),_0x52ef38[_0x2314b2(0x2bc)]===0x0){this['_context'][_0x2314b2(0x196)][_0x2314b2(0x192)](!0x0);return;}this[_0x2314b2(0x268)]=!0x0,this[_0x2314b2(0x1f1)][_0x2314b2(0x196)][_0x2314b2(0x1e1)](_0x52ef38,pn),this[_0x2314b2(0x268)]=!0x1,this[_0x2314b2(0x1ab)]=new Set(_0x52ef38),this[_0x2314b2(0x1f1)]['scene'][_0x2314b2(0x192)](!0x0);}[_0x4d7826(0x280)](){const _0x46548c=_0x4d7826;let _0x380dbe=Array[_0x46548c(0xdd)](this[_0x46548c(0x1ab)]);if(_0x380dbe[_0x46548c(0x2bc)]===0x0)return;let _0x4f18d2=this[_0x46548c(0x1f1)][_0x46548c(0x196)];_0x46548c(0x2e0)in _0x4f18d2&&typeof _0x4f18d2['removeObjects']==_0x46548c(0x18f)?_0x4f18d2[_0x46548c(0x2e0)](_0x380dbe):_0x380dbe[_0x46548c(0x1b4)](_0x5f695c=>{const _0x443470=_0x46548c;_0x443470(0x1d4)in _0x4f18d2&&typeof _0x4f18d2['removeObject']==_0x443470(0x18f)?_0x4f18d2['removeObject'](_0x5f695c):_0x5f695c[_0x443470(0x315)]();}),this[_0x46548c(0x1ab)][_0x46548c(0x278)](),_0x4f18d2[_0x46548c(0x192)](!0x0);}[_0x4d7826(0x2dd)](_0x18fc65){const _0x5903f8=_0x4d7826;var _0x4b2ca1,_0x10adb5,_0x3317b9;let _0x1b8c00=this[_0x5903f8(0x1f1)]['scene'];return(_0x4b2ca1=(_0x10adb5=(_0x3317b9=_0x1b8c00[_0x5903f8(0x144)])==null?void 0x0:_0x3317b9[_0x5903f8(0x220)](_0x1b8c00,_0x18fc65))==null?_0x1b8c00[_0x5903f8(0x170)](_0x18fc65):_0x10adb5)==null?null:_0x4b2ca1;}[_0x4d7826(0x1f5)](_0x1a8b73){const _0x5f373e=_0x4d7826;var _0x4650cb,_0x1d1b90;let _0x25f416=_0x1a8b73;return(_0x4650cb=(_0x1d1b90=_0x25f416['getRealBound'])==null?void 0x0:_0x1d1b90[_0x5f373e(0x220)](_0x25f416))==null?{'left':_0x1a8b73[_0x5f373e(0x126)],'top':_0x1a8b73['top'],'width':_0x1a8b73['width'],'height':_0x1a8b73[_0x5f373e(0x208)]}:_0x4650cb;}};En=Y([J(0x1,_0x2975e5(Q)),J(0x2,_0x2975e5(_0x113338))],En);const Dn=_0x4d7826(0x189);var On=class{constructor(_0x1fdc68,_0x5795d7,_0xb925b3,_0x1a233c){const _0x2474d2=_0x4d7826;this[_0x2474d2(0x317)]=_0x1fdc68,this[_0x2474d2(0x205)]=_0x5795d7,this[_0x2474d2(0x1b6)]=_0xb925b3,this[_0x2474d2(0x10f)]=_0x1a233c,q(this,_0x2474d2(0x135),[]),q(this,_0x2474d2(0x127),null),q(this,'_textBubble',null),q(this,_0x2474d2(0x311),null),q(this,_0x2474d2(0x158),null),q(this,_0x2474d2(0x28c),null),this['_render']();}set['_hover'](_0x3c8aae){const _0x1ed64f=_0x4d7826;_0x3c8aae?(this[_0x1ed64f(0x311)]&&this['_anchorDot'][_0x1ed64f(0x24b)](),this[_0x1ed64f(0x2d3)]&&this['_textBubble'][_0x1ed64f(0x1e3)]()):(this[_0x1ed64f(0x311)]&&this[_0x1ed64f(0x311)][_0x1ed64f(0x1e3)](),this['_textBubble']&&this[_0x1ed64f(0x2d3)]['hide']());}[_0x4d7826(0x315)](){const _0x443007=_0x4d7826;for(let _0x60a500 of this[_0x443007(0x135)])_0x60a500[_0x443007(0x315)]();this['_textBubble']&&this[_0x443007(0x2d3)][_0x443007(0x315)](),this['_anchorDot']&&this[_0x443007(0x311)][_0x443007(0x315)](),this[_0x443007(0x127)]&&this[_0x443007(0x127)]['dispose'](),this[_0x443007(0x28c)]&&this[_0x443007(0x28c)]();}[_0x4d7826(0x131)](){const _0x265d6d=_0x4d7826;let {_docSkeleton:_0x2791d0,_document:_0x2e87f7}=this,{color:_0x16d8f1,name:_0x410c09,ranges:_0x32fdb5}=this[_0x265d6d(0x317)],_0x3d6e71=_0x2e87f7[_0x265d6d(0x2ba)](),{docsLeft:_0x5e096f,docsTop:_0x3e1ede}=_0x3d6e71,_0x3bcd05=new _0x2470bf(_0x3d6e71,_0x2791d0);for(let {startOffset:_0x270190,endOffset:_0x2b1116,rangeType:_0x55ea45,segmentId:_0x5796ab,segmentPage:_0xf3827f,collapsed:_0x35e9a2,isActive:_0x12cf70}of _0x32fdb5){let _0x3f4f8a=_0x2791d0['findNodePositionByCharIndex'](_0x270190,!0x0,_0x5796ab,_0xf3827f),_0x42fd5a=_0x2791d0['findNodePositionByCharIndex'](_0x2b1116,!0x0,_0x5796ab,_0xf3827f);if(_0x42fd5a==null&&(_0x42fd5a=_0x2791d0['findNodePositionByCharIndex'](_0x2b1116-0x1,!0x1,_0x5796ab,_0xf3827f)),_0x12cf70){let {contentBoxPointGroup:_0x3f1915}=_0x3bcd05[_0x265d6d(0x319)](_0x42fd5a,_0x42fd5a);if(_0x3f1915[_0x265d6d(0x2bc)]===0x0)continue;this[_0x265d6d(0x142)](_0x16d8f1,_0x3f1915,_0x5e096f,_0x3e1ede,_0x410c09),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x3f4f8a&&_0x42fd5a){if(_0x55ea45===_0x4d59fd[_0x265d6d(0x1e4)]){var _0x2c4a74;let {pointGroup:_0x30af01}=(_0x2c4a74=new _0x295a1e(_0x3d6e71,_0x2791d0)[_0x265d6d(0x319)](_0x3f4f8a,_0x42fd5a))==null?{}:_0x2c4a74;if(_0x30af01==null||_0x30af01[_0x265d6d(0x2bc)]===0x0)continue;this[_0x265d6d(0x112)](_0x16d8f1,_0x30af01,_0x5e096f,_0x3e1ede);}else{if(!_0x35e9a2){let {borderBoxPointGroup:_0x51a6f6}=_0x3bcd05[_0x265d6d(0x319)](_0x3f4f8a,_0x42fd5a);if(_0x51a6f6[_0x265d6d(0x2bc)]===0x0)continue;this[_0x265d6d(0x32c)](_0x16d8f1,_0x51a6f6,_0x5e096f,_0x3e1ede);}}}}}[_0x4d7826(0x142)](_0x202a12,_0x1b3a67,_0x30a66f,_0x826ae5,_0x9cd05){const _0x4a3730=_0x4d7826;let {left:_0x5845d9,top:_0x4b27d7,height:_0xd16614}=this[_0x4a3730(0x139)](_0x1b3a67),_0x1991eb=1.5/this[_0x4a3730(0x1ef)](),_0x4c1ca0=new _0x58f21a(Dn+_0x5d1e23(0x6),{'left':_0x5845d9+_0x30a66f-_0x1991eb,'top':_0x4b27d7+_0x826ae5,'height':_0xd16614,'width':1.5,'fill':_0x202a12||_0x52d1e1(_0x532b6c[_0x4a3730(0x172)],0x0),'strokeWidth':_0x1991eb,'stroke':_0x4a3730(0x21c),'evented':!0x0});this[_0x4a3730(0x127)]=_0x4c1ca0,this[_0x4a3730(0x205)]['addObject'](_0x4c1ca0,_0x2d81c7);let _0x404819=new _0x58f21a(Dn+_0x5d1e23(0x6),{'left':_0x5845d9+_0x30a66f-_0x1991eb,'top':_0x4b27d7+_0x826ae5-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x202a12||_0x52d1e1(_0x532b6c['black'],0x0),'strokeWidth':0x0,'stroke':_0x202a12||_0x52d1e1(_0x532b6c[_0x4a3730(0x172)],0x0),'evented':!0x1});this['_anchorDot']=_0x404819,this[_0x4a3730(0x205)]['addObject'](_0x404819,_0x2d81c7);let _0x433ef3=new fn(Dn+_0x5d1e23(0x6),{'left':_0x5845d9+_0x30a66f-_0x1991eb,'top':_0x4b27d7+_0x826ae5-0x14,'text':_0x9cd05,'color':_0x202a12});this['_textBubble']=_0x433ef3,this[_0x4a3730(0x205)][_0x4a3730(0x227)](_0x433ef3,_0x2d81c7),this[_0x4a3730(0x2a1)]=!0x1;}[_0x4d7826(0x31b)](){const _0x1921af=_0x4d7826;let _0x32ce62=this[_0x1921af(0x127)][_0x1921af(0x228)][_0x1921af(0x176)](()=>{const _0x3c51f4=_0x1921af;this[_0x3c51f4(0x2a1)]=!0x0;}),_0x84b3e7=this['_anchor'][_0x1921af(0x236)][_0x1921af(0x176)](()=>{const _0x2e3635=_0x1921af;this[_0x2e3635(0x158)]&&clearTimeout(this['_hideTimer']),this[_0x2e3635(0x158)]=setTimeout(()=>{const _0x5efab8=_0x2e3635;this[_0x5efab8(0x2a1)]=!0x1;},0x7d0);});return()=>{const _0x3c6e3f=_0x1921af;_0x32ce62[_0x3c6e3f(0x1a0)](),_0x84b3e7['unsubscribe']();};}['_drawTextRange'](_0x5e7d14,_0x330250,_0x345973,_0x397257){const _0x4a5fa5=_0x4d7826;let _0x583292=0.2,_0x21ad77=new _0x70b721(_0x5e7d14)['setAlpha'](_0x583292)[_0x4a5fa5(0x2ec)](),_0x186b57=new _0xb9ada9(_0x4a5fa5(0x222)+_0x5d1e23(0x6),{'pointsGroup':_0x330250,'fill':_0x21ad77||_0x52d1e1(_0x532b6c['black'],_0x583292),'left':_0x345973,'top':_0x397257,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a5fa5(0x135)][_0x4a5fa5(0x141)](_0x186b57),this[_0x4a5fa5(0x205)][_0x4a5fa5(0x227)](_0x186b57,_0x2d81c7);}[_0x4d7826(0x112)](_0x337f6b,_0x3229dc,_0x1c609d,_0x4629ef){const _0x544f52=_0x4d7826;let _0x24c147=0.2,_0x35d0a3=new _0x70b721(_0x337f6b)[_0x544f52(0x15d)](_0x24c147)[_0x544f52(0x2ec)](),_0x4b24ea=new _0xb9ada9(_0x544f52(0x1de)+_0x5d1e23(0x6),{'pointsGroup':_0x3229dc,'fill':_0x35d0a3||_0x52d1e1(_0x532b6c[_0x544f52(0x172)],_0x24c147),'left':_0x1c609d,'top':_0x4629ef,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x544f52(0x135)][_0x544f52(0x141)](_0x4b24ea),this[_0x544f52(0x205)][_0x544f52(0x227)](_0x4b24ea,_0x2d81c7);}[_0x4d7826(0x139)](_0x137cea){let _0x2d3b6c=_0x137cea[0x0],_0x4f064d=_0x2d3b6c[0x0],_0x493c44=_0x2d3b6c[0x2],{x:_0x414492,y:_0x2e8520}=_0x4f064d,{x:_0x5d3d6b,y:_0x21e84d}=_0x493c44;return{'left':_0x414492,'top':_0x2e8520,'width':_0x5d3d6b-_0x414492,'height':_0x21e84d-_0x2e8520};}[_0x4d7826(0x1ef)](){const _0x15fb84=_0x4d7826;let {scaleX:_0x3f2fa9,scaleY:_0x3d6bc1}=this[_0x15fb84(0x205)][_0x15fb84(0x11f)]();return Math[_0x15fb84(0x296)](_0x3f2fa9,_0x3d6bc1);}};let kn=class extends _0x2d058d{constructor(_0xe2b68c,_0x4d30fe,_0x56e2e5,_0x1ebb5c,_0x13140d){const _0x1e0810=_0x4d7826;super(),this[_0x1e0810(0x1f1)]=_0xe2b68c,this[_0x1e0810(0x123)]=_0x4d30fe,this[_0x1e0810(0x16c)]=_0x56e2e5,this[_0x1e0810(0x310)]=_0x1ebb5c,this[_0x1e0810(0x183)]=_0x13140d,q(this,'_cursorShapes',[]),q(this,_0x1e0810(0x1ab),[]),this[_0x1e0810(0x256)]();}[_0x4d7826(0x256)](){const _0x34966c=_0x4d7826;let _0x4df06e=this[_0x34966c(0x1f1)][_0x34966c(0x245)],_0x14ef4a=this['_docSkeletonManagerService'];this[_0x34966c(0x2f1)](_0x57a794([this[_0x34966c(0x16c)][_0x34966c(0x113)](_0x4df06e),this[_0x34966c(0x183)]['currentTheme$']])[_0x34966c(0x18b)](_0x5aaab3(([_0x40c130,_0x1f12f0])=>({'skeleton':_0x14ef4a[_0x34966c(0x1e7)](),'cursors':[..._0x40c130[_0x34966c(0x1f6)]()][_0x34966c(0x257)](_0x18e69a=>({..._0x18e69a,'color':this[_0x34966c(0x183)]['getColorFromTheme'](_0x18e69a[_0x34966c(0x20b)])}))})))['subscribe'](_0x452116=>{const _0x4361b5=_0x34966c;if(this[_0x4361b5(0x280)](),_0x452116){let {skeleton:_0x8ce481,cursors:_0x3fd278}=_0x452116;this[_0x4361b5(0x2a3)](_0x8ce481,_0x3fd278);}})),this[_0x34966c(0x229)](),this[_0x34966c(0x316)]();}[_0x4d7826(0x2a3)](_0x1a2f5d,_0x29f311){const _0x6f0096=_0x4d7826;let {scene:_0x260199,mainComponent:_0x5c786e}=this[_0x6f0096(0x1f1)],_0x3518b2=_0x29f311[_0x6f0096(0x25d)](_0x381a27=>new On(_0x381a27,_0x260199,_0x1a2f5d,_0x5c786e));this[_0x6f0096(0x24c)]=_0x3518b2,this[_0x6f0096(0x1ab)]=_0x29f311;}[_0x4d7826(0x248)](){const _0x4d30af=_0x4d7826;this[_0x4d30af(0x280)]();let {scene:_0x16a6aa,mainComponent:_0x40df79}=this[_0x4d30af(0x1f1)],_0x181f99=this['_docSkeletonManagerService'][_0x4d30af(0x1e7)](),_0x3e8ea3=this[_0x4d30af(0x1ab)][_0x4d30af(0x25d)](_0x4995dc=>new On(_0x4995dc,_0x16a6aa,_0x181f99,_0x40df79));this[_0x4d30af(0x24c)]=_0x3e8ea3;}[_0x4d7826(0x280)](){const _0x19cf57=_0x4d7826;this[_0x19cf57(0x24c)][_0x19cf57(0x1b4)](_0x567906=>_0x567906['dispose']()),this[_0x19cf57(0x24c)]=[];}[_0x4d7826(0x316)](){const _0x15252b=_0x4d7826;let _0x4c78ec=[_0x210db2['id']];this[_0x15252b(0x2f1)](this[_0x15252b(0x310)][_0x15252b(0x272)](_0x4d3b3c=>{const _0x40698a=_0x15252b;_0x4c78ec[_0x40698a(0xf8)](_0x4d3b3c['id'])&&_0x4d3b3c['params']['unitId']===this[_0x40698a(0x1f1)][_0x40698a(0x245)]&&this['_refreshCollabCursors']();}));}[_0x4d7826(0x229)](){const _0xef1041=_0x4d7826;this[_0xef1041(0x2f1)](_0x5403d7(this[_0xef1041(0x1f1)][_0xef1041(0x25a)]['onTransformChange$'])[_0xef1041(0x18b)](_0xd1ff9d(_0x33410a=>_0x33410a[_0xef1041(0x282)]===_0x4943a9[_0xef1041(0x174)]),_0x46b09(0x10))[_0xef1041(0x2e4)](()=>{const _0x2edbb4=_0xef1041;this[_0x2edbb4(0x248)]();}));}};kn=Y([J(0x1,_0x2975e5(_0xb79bba)),J(0x2,_0x2975e5(Q)),J(0x3,_0x5160b7),J(0x4,_0x2975e5(_0x113338))],kn);var An=class extends _0x519620{constructor(_0x351cb8,_0x10a4df){const _0x9e099f=_0x4d7826;if(super(_0x351cb8,_0x10a4df),q(this,'_color',void 0x0),q(this,'_hovered',!0x1),q(this,_0x9e099f(0x2e7),void 0x0),q(this,_0x9e099f(0x13e),''),q(this,_0x9e099f(0x124),_0x9e099f(0x218)),q(this,_0x9e099f(0x29c),void 0x0),q(this,_0x9e099f(0x1d6),void 0x0),q(this,_0x9e099f(0x1b1),void 0x0),q(this,_0x9e099f(0x253),0x4),q(this,_0x9e099f(0xec),void 0x0),q(this,_0x9e099f(0x221),void 0x0),q(this,_0x9e099f(0x1c8),!0x0),q(this,'_offsetY',0x0),q(this,'_labelHorizontalPosition',_0x9e099f(0x10e)),_0x10a4df){var _0x16fc19;if(this[_0x9e099f(0x2a4)](_0x10a4df),_0x10a4df[_0x9e099f(0x2d0)]&&((_0x16fc19=_0x10a4df['highlightSecond'])==null?this[_0x9e099f(0x253)]:_0x16fc19)){var _0xeb7406;this['_startBlinking']((_0xeb7406=_0x10a4df[_0x9e099f(0x2f3)])==null?this['_highlightSecond']:_0xeb7406);}}this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x9e099f(0x236)][_0x9e099f(0x176)](()=>this['setShapeProps']({'hovered':!0x1}));}['setOffsetY'](_0x13f874){const _0x3f762f=_0x4d7826;this[_0x3f762f(0x2d5)]=_0x13f874;}[_0x4d7826(0x2a4)](_0x1da585){const _0x35eb18=_0x4d7826;var _0x5be39a,_0x419046,_0x57f118,_0x4046bf,_0x2711b8,_0x2b6ba5,_0x1fcb5f,_0x260c95;this[_0x35eb18(0x182)]=(_0x5be39a=_0x1da585['color'])==null?this[_0x35eb18(0x182)]:_0x5be39a,this[_0x35eb18(0x258)]=(_0x419046=_0x1da585[_0x35eb18(0x18c)])==null?this['_hovered']:_0x419046,this['_range']=(_0x57f118=_0x1da585['range'])==null?this[_0x35eb18(0x2e7)]:_0x57f118,this[_0x35eb18(0x13e)]=(_0x4046bf=_0x1da585[_0x35eb18(0x242)])==null?this['_name']:_0x4046bf,this[_0x35eb18(0x124)]=(_0x2711b8=_0x1da585[_0x35eb18(0x12d)])==null?this[_0x35eb18(0x124)]:_0x2711b8,this[_0x35eb18(0x29c)]=(_0x2b6ba5=_0x1da585['backgroundColor'])==null?this[_0x35eb18(0x29c)]:_0x2b6ba5,this['_showText']=(_0x1fcb5f=_0x1da585[_0x35eb18(0x2f9)])==null?this[_0x35eb18(0x1d6)]:_0x1fcb5f,this[_0x35eb18(0x23c)]=(_0x260c95=_0x1da585[_0x35eb18(0x136)])==null?this[_0x35eb18(0x23c)]:_0x260c95,_0x1da585[_0x35eb18(0x2f3)]!==void 0x0&&(this[_0x35eb18(0x253)]=_0x1da585[_0x35eb18(0x2f3)]),_0x1da585['highlight']!==void 0x0&&(this[_0x35eb18(0x1b1)]=_0x1da585[_0x35eb18(0x2d0)]),_0x1da585['offsetY']!==void 0x0&&(this[_0x35eb18(0x2d5)]=_0x1da585[_0x35eb18(0x152)]),this[_0x35eb18(0x166)]({'width':_0x1da585['width'],'height':_0x1da585[_0x35eb18(0x208)]});}[_0x4d7826(0x1d9)](_0x251148){const _0x66d9a4=_0x4d7826;let {row:_0x5e62ef,column:_0x357a2f}=_0x251148;if(_0x5e62ef>=this[_0x66d9a4(0x2e7)][_0x66d9a4(0x1eb)]&&_0x5e62ef<=this[_0x66d9a4(0x2e7)][_0x66d9a4(0x246)]&&_0x357a2f>=this['_range'][_0x66d9a4(0xe0)]&&_0x357a2f<=this[_0x66d9a4(0x2e7)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x27a8ea){const _0x277b86=_0x4d7826;this[_0x277b86(0x26d)](),this[_0x277b86(0x1c8)]=!0x0,this['_blinkIntervalTimer']=window[_0x277b86(0x259)](()=>{const _0x5d8325=_0x277b86;this[_0x5d8325(0x1c8)]=!this[_0x5d8325(0x1c8)],this[_0x5d8325(0x192)](!0x0);},0x1f4),this[_0x277b86(0xec)]=window[_0x277b86(0x1f2)](()=>{const _0x3e9dd5=_0x277b86;this[_0x3e9dd5(0x26d)](),this[_0x3e9dd5(0x1c8)]=!0x0,this[_0x3e9dd5(0x192)](!0x0);},_0x27a8ea*0x3e8);}[_0x4d7826(0x26d)](){const _0x2d2d95=_0x4d7826;this[_0x2d2d95(0x221)]&&(window[_0x2d2d95(0x19f)](this[_0x2d2d95(0x221)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x2d2d95(0x2c8)](this['_blinkTimer']),this[_0x2d2d95(0xec)]=void 0x0);}['triggerDblclick'](_0x407a4e){return!0x1;}['dispose'](){const _0x22480=_0x4d7826;this['_stopBlinking'](),super[_0x22480(0x315)]();}[_0x4d7826(0x2db)](_0x24d4b7){const _0x363e4b=_0x4d7826;let _0x131e8b=this['_color'],_0x5029ed=this[_0x363e4b(0x29c)];if(this[_0x363e4b(0x1b1)]&&!this[_0x363e4b(0x1c8)]&&(_0x131e8b=this[_0x363e4b(0x23d)](this[_0x363e4b(0x182)]),_0x5029ed=this[_0x363e4b(0x29c)]?this[_0x363e4b(0x23d)](this[_0x363e4b(0x29c)]):void 0x0),_0x58f21a[_0x363e4b(0x116)](_0x24d4b7,{'width':this['width'],'height':this[_0x363e4b(0x208)],'strokeWidth':this[_0x363e4b(0x28b)]||1.5,'stroke':_0x131e8b,'evented':!0x1,'fill':_0x5029ed}),this['_hovered']||this[_0x363e4b(0x1d6)]){var _0x5814a2;_0x24d4b7[_0x363e4b(0xe6)]();let _0x332ec5=this['_labelHorizontalPosition']===_0x363e4b(0x126)?-un(_0x24d4b7,this[_0x363e4b(0x13e)]):this[_0x363e4b(0x27c)];_0x24d4b7[_0x363e4b(0x2f0)](0x1,0x0,0x0,0x1,_0x332ec5,(this[_0x363e4b(0x124)]===_0x363e4b(0xfa)?0x0:-0x14)+((_0x5814a2=this[_0x363e4b(0x2d5)])==null?0x0:_0x5814a2)),fn['drawWith'](_0x24d4b7,{'text':this['_name'],'color':_0x131e8b}),_0x24d4b7[_0x363e4b(0x267)]();}}[_0x4d7826(0x23d)](_0x3e2d82){const _0x1156cb=_0x4d7826;return _0x3e2d82['startsWith']('#')?_0x1156cb(0x1ca)+Number[_0x1156cb(0x2d6)](_0x3e2d82[_0x1156cb(0x28e)](0x1,0x3),0x10)+',\x20'+Number[_0x1156cb(0x2d6)](_0x3e2d82[_0x1156cb(0x28e)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x3e2d82[_0x1156cb(0x28e)](0x5,0x7),0x10)+_0x1156cb(0x300):_0x3e2d82[_0x1156cb(0x149)](_0x1156cb(0x10b))?_0x3e2d82['replace'](/[\d.]+\)$/g,_0x1156cb(0x1b5)):_0x3e2d82[_0x1156cb(0x149)](_0x1156cb(0x293))?_0x3e2d82[_0x1156cb(0x2dc)](_0x1156cb(0x293),_0x1156cb(0x10b))[_0x1156cb(0x2dc)](')',_0x1156cb(0x300)):_0x3e2d82;}};let jn=class extends _0x2d058d{constructor(_0x9840bc,_0x515843,_0x21cc01,_0x58669b){const _0x23bf08=_0x4d7826;super(),this['_context']=_0x9840bc,this[_0x23bf08(0x251)]=_0x515843,this[_0x23bf08(0x16c)]=_0x21cc01,this[_0x23bf08(0x183)]=_0x58669b,q(this,_0x23bf08(0x1ab),new Set()),q(this,_0x23bf08(0x14d),null),q(this,'_pointerMoveDisposable',null),this[_0x23bf08(0x256)]();}[_0x4d7826(0x256)](){const _0x5c9ea4=_0x4d7826;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0x1d45cf(this[_0x5c9ea4(0x188)]),_0xd261d2(_0xd20ae3=>{const _0x59c396=_0x5c9ea4;if(_0xd20ae3){let _0x335641=_0xd20ae3[_0x59c396(0x30b)];return _0x57a794(this['_collabCursorController'][_0x59c396(0x113)](this['_context'][_0x59c396(0x245)]),this[_0x59c396(0x183)][_0x59c396(0x105)])[_0x59c396(0x18b)](_0x5aaab3(([_0x1b779d,_0x2ae0a8])=>{const _0x13ba0d=_0x59c396;let _0x3b9a8d=new Map();return _0x1b779d[_0x13ba0d(0x1b4)]((_0x19ca75,_0x504c48)=>{const _0x2fc6da=_0x13ba0d;if(_0x19ca75[_0x2fc6da(0x260)]===_0x335641){let _0x1d9283={..._0x19ca75};_0x1d9283[_0x2fc6da(0x20b)]=this[_0x2fc6da(0x183)]['getColorFromTheme'](_0x19ca75['color']),_0x3b9a8d['set'](_0x504c48,_0x1d9283);}}),{'skeleton':_0xd20ae3,'cursors':_0x3b9a8d};}));}return _0x3a75a3({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xea4747,cursors:_0x3288f9})=>{const _0x1bffa3=_0x5c9ea4;this[_0x1bffa3(0x280)](),_0xea4747&&this[_0x1bffa3(0x2a3)](_0xea4747,_0x3288f9);}),this[_0x5c9ea4(0x2f1)](this[_0x5c9ea4(0x251)][_0x5c9ea4(0x2f6)]['pipe'](_0x1d45cf(this[_0x5c9ea4(0x188)]))[_0x5c9ea4(0x2e4)](_0x430760=>{const _0x49d628=_0x5c9ea4;var _0x241c09;if(_0x430760==null)return;(_0x241c09=this[_0x49d628(0x181)])==null||_0x241c09['unsubscribe'](),this[_0x49d628(0x181)]=null;let {skeleton:_0x386401}=_0x430760,{scene:_0x8787e8}=this['_context'];this[_0x49d628(0x181)]=_0x8787e8['onPointerMove$'][_0x49d628(0x176)](_0x3016da(_0x10acba=>{const _0x226b51=_0x49d628;var _0x53b146,_0x46fac1;let {offsetX:_0xdb404b,offsetY:_0x322ef3}=_0x10acba,{x:_0x4f9065,y:_0x566cd4}=_0x8787e8[_0x226b51(0xeb)](_0xc361d3['FromArray']([_0xdb404b,_0x322ef3])),{scaleX:_0x40e5da,scaleY:_0x3061f3}=_0x8787e8[_0x226b51(0x11f)](),_0x52df2e=_0x8787e8[_0x226b51(0x29d)](_0x3fb07d[_0x226b51(0x254)]),_0x2b07f9=_0x8787e8[_0x226b51(0xe1)](_0xc361d3[_0x226b51(0x1e6)]([_0x4f9065,_0x566cd4]),_0x52df2e),_0x347e35=_0x386401[_0x226b51(0x207)](_0xdb404b,_0x322ef3,_0x40e5da,_0x3061f3,_0x2b07f9);((_0x53b146=this[_0x226b51(0x14d)])==null?void 0x0:_0x53b146[_0x226b51(0x180)])===_0x347e35['column']&&((_0x46fac1=this[_0x226b51(0x14d)])==null?void 0x0:_0x46fac1[_0x226b51(0x2e6)])===_0x347e35['row']||this['_cursors'][_0x226b51(0x1b4)](_0x24d423=>{_0x24d423['onMouseMove'](_0x347e35);});},0x64));})),this[_0x5c9ea4(0x2f1)](_0x2994ac(()=>{const _0x15f8a1=_0x5c9ea4;var _0x442909;(_0x442909=this[_0x15f8a1(0x181)])==null||_0x442909[_0x15f8a1(0x1a0)](),this[_0x15f8a1(0x181)]=null;}));}[_0x4d7826(0x2a3)](_0x16d4ef,_0x1eb298){const _0x189c93=_0x4d7826;let _0x21388b=this[_0x189c93(0x251)][_0x189c93(0x1cb)]();if(!_0x21388b)return;let _0x2ff95f=this[_0x189c93(0x2ac)]();if(!_0x2ff95f)return;this['_cursors']['forEach'](_0x5657d1=>{_0x5657d1['makeDirty']();});let {scene:_0x27f6e0}=_0x2ff95f,_0x33ca9b=Mn(Array['from'](_0x1eb298[_0x189c93(0x1f6)]()))['map'](_0x361669=>{const _0x33afec=_0x189c93;let {color:_0x3053da,range:_0x505fd3,name:_0x44a837,selection:_0xfda369,sheetID:_0x5348b3}=_0x361669,{startColumn:_0x47a262,startRow:_0x179101,endColumn:_0x430ffe,endRow:_0x580704}=_0x505fd3,_0x436017=_0x5c1077(_0x179101,_0x47a262,_0x27f6e0,_0x21388b),_0x1d8dba=_0x5c1077(_0x580704,_0x430ffe,_0x27f6e0,_0x21388b),{columnHeaderHeightAndMarginTop:_0xdb7381}=_0x21388b,{startX:_0x349ba1,startY:_0x55acff}=_0x436017,{endX:_0x496ebb,endY:_0x2c1374}=_0x1d8dba,_0x548116=_0x496ebb-_0x349ba1,_0x4254c6=_0x2c1374-_0x55acff;return new An(_0x44a837,{'labelPosition':_0x55acff-_0xdb7381>=0x14?'top':_0x33afec(0xfa),'sheetID':_0x5348b3,'range':_0x505fd3,'color':_0x3053da,'name':_0x44a837,'selection':_0xfda369,'left':_0x349ba1,'top':_0x55acff,'width':_0x548116,'height':_0x4254c6,'evented':!0x1,'zIndex':0x1389});});_0x27f6e0['addObjects'](_0x33ca9b,0x1),this[_0x189c93(0x1ab)]=new Set(_0x33ca9b);}[_0x4d7826(0x280)](){var _0x49129c;(_0x49129c=this['_cursors'])==null||_0x49129c['forEach'](_0xb8e808=>_0xb8e808['dispose']());}[_0x4d7826(0x2ac)](){const _0x1fc9f0=_0x4d7826;return _0x1de0be(this[_0x1fc9f0(0x1f1)][_0x1fc9f0(0x21a)],this[_0x1fc9f0(0x1f1)]);}};jn=Y([J(0x1,_0x2975e5(_0x2c9abc)),J(0x2,_0x2975e5(Q)),J(0x3,_0x2975e5(_0x113338))],jn);function Mn(_0x106697){const _0x391267=_0x4d7826;let _0x8ab84b=new Map();return _0x106697['forEach'](_0x5b9f02=>{const _0x28ef51=_0x2258;if(_0x8ab84b['has'](_0x5b9f02['selection'])){let _0x37bd5c=_0x8ab84b[_0x28ef51(0x17a)](_0x5b9f02[_0x28ef51(0x2cd)]);_0x37bd5c[_0x28ef51(0x242)]+=',\x20'+_0x5b9f02[_0x28ef51(0x242)];}else _0x8ab84b[_0x28ef51(0x209)](_0x5b9f02['selection'],_0x5b9f02);}),Array['from'](_0x8ab84b[_0x391267(0x1f6)]());}let Nn=class extends _0x2d058d{constructor(_0x4484a9,_0x42869e,_0x46f52e){const _0x443800=_0x4d7826;super(),this[_0x443800(0x1f1)]=_0x4484a9,this[_0x443800(0x16c)]=_0x42869e,this[_0x443800(0x183)]=_0x46f52e,q(this,'_cursors',new Set()),q(this,_0x443800(0x31c),!0x1),q(this,_0x443800(0x268),!0x1),q(this,'_latestCursors',new Map()),this[_0x443800(0x256)]();}[_0x4d7826(0x315)](){const _0x79c602=_0x4d7826;this[_0x79c602(0x280)](),super[_0x79c602(0x315)]();}[_0x4d7826(0x256)](){const _0x56693a=_0x4d7826;let _0x20db10=this['_context'][_0x56693a(0x21a)][_0x56693a(0x271)][_0x56693a(0x168)],_0x308edf=this[_0x56693a(0x16c)][_0x56693a(0x113)](this['_context']['unitId']);this[_0x56693a(0x2f1)](_0x2994ac(_0x57a794([_0x308edf,_0x20db10,this[_0x56693a(0x183)][_0x56693a(0x105)]])[_0x56693a(0x18b)](_0x59e49a(this[_0x56693a(0x188)]))[_0x56693a(0x2e4)](([_0x508048,_0x4c7267])=>{const _0x39c740=_0x56693a;let _0x4f877b=new Map();_0x508048[_0x39c740(0x1b4)]((_0x461260,_0x342961)=>{const _0x5810a0=_0x39c740;_0x461260[_0x5810a0(0x28d)]===_0x4c7267&&_0x4f877b[_0x5810a0(0x209)](_0x342961,{..._0x461260,'color':this[_0x5810a0(0x183)][_0x5810a0(0x109)](_0x461260[_0x5810a0(0x20b)])});}),this[_0x39c740(0x22b)]=_0x4f877b,this[_0x39c740(0x26a)]();})));let _0x48367a=this[_0x56693a(0x1f1)][_0x56693a(0x196)];this['disposeWithMe'](_0x2994ac(_0x48367a[_0x56693a(0xf4)][_0x56693a(0x18b)](_0x59e49a(this[_0x56693a(0x188)]))[_0x56693a(0x2e4)](()=>{const _0x49291a=_0x56693a;this[_0x49291a(0x268)]||this[_0x49291a(0x26a)]();})));}['_scheduleRender'](){const _0x21a6fb=_0x4d7826;this['_renderScheduled']||(this[_0x21a6fb(0x31c)]=!0x0,Promise[_0x21a6fb(0x279)]()['then'](()=>{const _0x483260=_0x21a6fb;this[_0x483260(0x31c)]=!0x1,this[_0x483260(0x131)]();}));}[_0x4d7826(0x131)](){const _0x335d68=_0x4d7826;var _0x47d216;this[_0x335d68(0x280)]();let _0x24e1a7=(_0x47d216=this['_context']['unit'][_0x335d68(0x271)][_0x335d68(0x1dc)]())==null?void 0x0:_0x47d216[_0x335d68(0x191)]();if(!_0x24e1a7)return;let _0xf3f55d=[];if(this[_0x335d68(0x22b)][_0x335d68(0x1b4)]((_0x3efc69,_0x24b688)=>{const _0x207435=_0x335d68;_0x3efc69[_0x207435(0x28d)]===_0x24e1a7&&_0x3efc69[_0x207435(0x24d)]['forEach'](_0x5e8974=>{const _0x19c2a6=_0x207435;let _0x287384=_0x2a4d0e(_0x3efc69['unitId'],_0x3efc69['subUnitId'],_0x5e8974),_0x10bb8b=this[_0x19c2a6(0x2dd)](_0x287384);if(!_0x10bb8b)return;let _0x5247b6=this['_getObjectBounds'](_0x10bb8b);_0xf3f55d[_0x19c2a6(0x141)](new mn(_0x19c2a6(0x203)+_0x24b688+'-'+_0x5e8974,{..._0x3efc69,'left':_0x5247b6['left'],'top':_0x5247b6[_0x19c2a6(0x218)],'width':_0x5247b6[_0x19c2a6(0x27c)],'height':_0x5247b6[_0x19c2a6(0x208)],'angle':_0x10bb8b[_0x19c2a6(0x25b)],'evented':!0x1,'zIndex':pn}));});}),_0xf3f55d[_0x335d68(0x2bc)]===0x0){this[_0x335d68(0x1f1)][_0x335d68(0x196)][_0x335d68(0x192)](!0x0);return;}this[_0x335d68(0x268)]=!0x0,this['_context'][_0x335d68(0x196)]['addObjects'](_0xf3f55d,pn),this[_0x335d68(0x268)]=!0x1,this[_0x335d68(0x1ab)]=new Set(_0xf3f55d),this[_0x335d68(0x1f1)][_0x335d68(0x196)]['makeDirty'](!0x0);}['_removeCollabCursors'](){const _0x48451f=_0x4d7826;let _0x325160=Array[_0x48451f(0xdd)](this[_0x48451f(0x1ab)]);if(_0x325160[_0x48451f(0x2bc)]===0x0)return;let _0x5f3cf6=this['_context'][_0x48451f(0x196)];'removeObjects'in _0x5f3cf6&&typeof _0x5f3cf6[_0x48451f(0x2e0)]==_0x48451f(0x18f)?_0x5f3cf6['removeObjects'](_0x325160):_0x325160[_0x48451f(0x1b4)](_0x57a310=>{const _0x198a8d=_0x48451f;_0x198a8d(0x1d4)in _0x5f3cf6&&typeof _0x5f3cf6[_0x198a8d(0x1d4)]==_0x198a8d(0x18f)?_0x5f3cf6[_0x198a8d(0x1d4)](_0x57a310):_0x57a310[_0x198a8d(0x315)]();}),this[_0x48451f(0x1ab)]['clear'](),_0x5f3cf6[_0x48451f(0x192)](!0x0);}['_getSceneObjectByKey'](_0x44a57c){const _0x112d2f=_0x4d7826;var _0x10ed2b,_0x102388,_0x35ce1b;let _0x59b141=this['_context'][_0x112d2f(0x196)];return(_0x10ed2b=(_0x102388=(_0x35ce1b=_0x59b141[_0x112d2f(0x144)])==null?void 0x0:_0x35ce1b[_0x112d2f(0x220)](_0x59b141,_0x44a57c))==null?_0x59b141[_0x112d2f(0x170)](_0x44a57c):_0x102388)==null?null:_0x10ed2b;}['_getObjectBounds'](_0x10becb){const _0x3cb61e=_0x4d7826;var _0x5a6816,_0xde780a;let _0x46f252=_0x10becb;return(_0x5a6816=(_0xde780a=_0x46f252['getRealBound'])==null?void 0x0:_0xde780a[_0x3cb61e(0x220)](_0x46f252))==null?{'left':_0x10becb['left'],'top':_0x10becb['top'],'width':_0x10becb['width'],'height':_0x10becb['height']}:_0x5a6816;}};Nn=Y([J(0x1,_0x2975e5(Q)),J(0x2,_0x2975e5(_0x113338))],Nn);let Pn=class extends _0x4f1642{constructor(_0x65b35e,_0x208bd7,_0x43fe90,_0x3b0515,_0x559380,_0x3b7fce){const _0x3b71e9=_0x4d7826;super(),this[_0x3b71e9(0x306)]=_0x65b35e,this[_0x3b71e9(0x1d8)]=_0x208bd7,this[_0x3b71e9(0x1b2)]=_0x43fe90,this[_0x3b71e9(0x309)]=_0x3b0515,this[_0x3b71e9(0x20a)]=_0x559380,this[_0x3b71e9(0x159)]=_0x3b7fce,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4d7826(0x329)](){const _0x3bb91a=_0x4d7826;this['disposeWithMe'](this[_0x3bb91a(0x306)][_0x3bb91a(0x1fd)](()=>{const _0x9daad6=_0x3bb91a;if(this[_0x9daad6(0x1d8)][_0x9daad6(0x2ea)]['size'])return this[_0x9daad6(0x159)]['t'](_0x9daad6(0x318));}));}[_0x4d7826(0x2d2)](){const _0x413b81=_0x4d7826;this[_0x413b81(0x2f1)](this[_0x413b81(0x1b2)][_0x413b81(0xe4)][_0x413b81(0x2e4)](_0x43c213=>{const _0x2a836d=_0x413b81;_0x43c213['id']===_0x57c44b[_0x2a836d(0x23a)]&&this[_0x2a836d(0x309)][_0x2a836d(0x1e3)]({'type':_0x4f09c9[_0x2a836d(0x2af)],'content':this[_0x2a836d(0x159)]['t'](_0x2a836d(0x31f))}),_0x43c213['id']===_0x57c44b[_0x2a836d(0x1d3)]&&this['_messageService'][_0x2a836d(0x1e3)]({'type':_0x4f09c9[_0x2a836d(0x2af)],'content':this['_localeService']['t'](_0x2a836d(0x134))}),_0x43c213['id']===_0x57c44b['PERMISSION_DENIED']&&this[_0x2a836d(0x20a)][_0x2a836d(0x1e3)]({'title':this['_localeService']['t'](_0x2a836d(0x1fa)),'content':this[_0x2a836d(0x159)]['t']('collaboration-client-ui.permission.content'),'type':_0x2a836d(0x1c6),'duration':0x0}),_0x43c213['id']===_0x57c44b[_0x2a836d(0x1d5)]&&this['_notificationService']['show']({'title':this[_0x2a836d(0x159)]['t'](_0x2a836d(0x298)),'content':this[_0x2a836d(0x159)]['t'](_0x2a836d(0x313)),'type':_0x2a836d(0x1c6),'duration':0x0}),_0x43c213['id']===_0x57c44b['JOIN_ROOM_FAILED']&&this[_0x2a836d(0x309)][_0x2a836d(0x1e3)]({'type':_0x4f09c9[_0x2a836d(0x2af)],'content':this['_localeService']['t'](_0x43c213[_0x2a836d(0x2f8)]||'')}),_0x43c213['id']===_0x57c44b[_0x2a836d(0x255)]&&this[_0x2a836d(0x309)][_0x2a836d(0x1e3)]({'type':_0x4f09c9[_0x2a836d(0x2af)],'content':this[_0x2a836d(0x159)]['t']('collaboration-client-ui.session.will-retry')}),_0x43c213['id']===_0x57c44b[_0x2a836d(0x2a2)]&&this[_0x2a836d(0x309)][_0x2a836d(0x1e3)]({'type':_0x4f09c9[_0x2a836d(0xe8)],'content':this['_localeService']['t'](_0x2a836d(0x2a6))}),_0x43c213['id']===_0x57c44b[_0x2a836d(0x1c4)]&&this['_messageService'][_0x2a836d(0x1e3)]({'type':_0x4f09c9[_0x2a836d(0xe8)],'content':this['_localeService']['t'](_0x2a836d(0x14e))});}));}};Pn=Y([J(0x0,_0xd0c61),J(0x1,_0x197647),J(0x2,_0x2975e5(_0x515c7d)),J(0x3,_0x45be88),J(0x4,_0x275bc7),J(0x5,_0x2975e5(_0x128d2d))],Pn);const Fn=_0x5513cb(_0x4d7826(0x285));let In=class extends _0x2d058d{constructor(_0x497cf4,_0x3fad76,_0x378e31,_0x5d72cd,_0x304302){const _0x24fdba=_0x4d7826;super(),this[_0x24fdba(0x165)]=_0x497cf4,this[_0x24fdba(0x151)]=_0x3fad76,this[_0x24fdba(0x310)]=_0x378e31,this[_0x24fdba(0xe5)]=_0x5d72cd,_0x304302?_0x304302==null||_0x304302[_0x24fdba(0x20f)]()['then'](()=>this[_0x24fdba(0x256)]()):(this['_logService'][_0x24fdba(0x277)](_0x24fdba(0x2ee),_0x24fdba(0x101)),this[_0x24fdba(0x256)]());}async['_init'](){const _0x514f95=_0x4d7826;let _0x40f22a=this['_urlService'][_0x514f95(0x2f5)](_0x514f95(0x21a)),_0x133968=this[_0x514f95(0x165)]['getParam'](_0x514f95(0x282)),_0x2a5d96=this['_urlService'][_0x514f95(0x2f5)](_0x514f95(0xde));if(!_0x40f22a||!_0x133968){this[_0x514f95(0x151)][_0x514f95(0x277)]('[CollaborationDataLoaderController]',_0x514f95(0x307));return;}let _0x255427=await this[_0x514f95(0xe5)][_0x514f95(0x243)](_0x40f22a,Number(_0x133968),_0x2a5d96);_0x255427&&_0x255427 instanceof _0x2de7fa&&this[_0x514f95(0x212)](_0x255427);}async[_0x4d7826(0x212)](_0x1fadeb){const _0x2e3ba3=_0x4d7826;await this[_0x2e3ba3(0x276)](_0x1fadeb),_0x1fadeb['activeSheet$'][_0x2e3ba3(0x18b)](_0x59e49a(this[_0x2e3ba3(0x188)]))[_0x2e3ba3(0x2e4)](_0x13c162=>{const _0x2293c9=_0x2e3ba3;_0x13c162&&this[_0x2293c9(0x27b)](_0x13c162);}),this['_urlService'][_0x2e3ba3(0x2a5)][_0x2e3ba3(0x18b)](_0x59e49a(this['dispose$']))[_0x2e3ba3(0x2e4)](()=>this[_0x2e3ba3(0x276)](_0x1fadeb));}[_0x4d7826(0x27b)](_0x57fc07,_0x198fab=!0x1){const _0x5721d3=_0x4d7826;let _0x6cebd5=this[_0x5721d3(0x165)][_0x5721d3(0x2f5)](_0x5721d3(0xde));_0x57fc07[_0x5721d3(0x17e)]()!==_0x6cebd5&&this[_0x5721d3(0x165)][_0x5721d3(0x2ae)](_0x5721d3(0xde),_0x57fc07[_0x5721d3(0x17e)](),_0x198fab);}async[_0x4d7826(0x276)](_0x2c34db){const _0x39e231=_0x4d7826;var _0x51a388;let _0x201dfe=this[_0x39e231(0x165)]['getParam']('subunit');if(!_0x201dfe||!_0x2c34db['getSheetBySheetId'](_0x201dfe)){let _0x493987=_0x2c34db[_0x39e231(0x288)]()[0x0],_0x221ad4=_0x2c34db[_0x39e231(0x2df)](_0x493987);if(!_0x221ad4)return;this['_updateURLWithCurrentState'](_0x221ad4,!0x0),await this[_0x39e231(0x310)][_0x39e231(0x2de)](_0x132b7c['id'],{'unitId':_0x2c34db['getUnitId'](),'subUnitId':_0x493987});return;}((_0x51a388=_0x2c34db[_0x39e231(0xfb)]())==null?void 0x0:_0x51a388['getSheetId']())!==_0x201dfe&&await this[_0x39e231(0x310)][_0x39e231(0x2de)](_0x132b7c['id'],{'unitId':_0x2c34db[_0x39e231(0x2a9)](),'subUnitId':_0x201dfe});}};In=Y([J(0x0,Fn),J(0x1,_0x2e569c),J(0x2,_0x5160b7),J(0x3,_0x2975e5(_0x456d46)),J(0x4,_0x312695(_0x40ba10))],In);let Ln=class{constructor(_0x4bacd6,_0x1f330b){const _0x4e5ffc=_0x4d7826;this[_0x4e5ffc(0x241)]=_0x4bacd6,this[_0x4e5ffc(0x157)]=_0x1f330b;}['transformIMECache'](_0x589517){const _0x5cbe56=_0x4d7826;this[_0x5cbe56(0x269)](_0x589517),this[_0x5cbe56(0x204)](_0x589517);}[_0x4d7826(0x197)](_0x11ff26){const _0x1c9562=_0x4d7826;let {unitID:_0x5a0641}=_0x11ff26,{redoCache:_0x560593}=this[_0x1c9562(0x157)]['getRenderById'](_0x5a0641)['with'](_0x35af8a)[_0x1c9562(0x14b)]();if(_0x560593[_0x1c9562(0x2bc)]===0x0)return _0x11ff26;let _0x4e179=_0x4e8798[_0x1c9562(0x1ec)](_0x11ff26[_0x1c9562(0x324)][0x0]);for(let _0x373b0a=0x0;_0x373b0a<_0x560593['length'];_0x373b0a++){let _0x314322={'id':_0x1c9562(0x1ea),'params':{..._0x560593[_0x373b0a]}},_0x58242e=this[_0x1c9562(0x241)][_0x1c9562(0x32e)](_0x4e179,_0x314322,!0x1);if(_0x25931a(_0x58242e))throw _0x58242e[_0x1c9562(0x1c6)];_0x4e179=_0x58242e[_0x1c9562(0x17d)];}return{..._0x4e8798[_0x1c9562(0x1ec)](_0x11ff26),'mutations':[_0x4e179]};}[_0x4d7826(0x269)](_0x21338d){const _0x295f11=_0x4d7826;let {unitID:_0x2d0abe}=_0x21338d,_0x4303a8=this[_0x295f11(0x157)][_0x295f11(0xfd)](_0x2d0abe)['with'](_0x35af8a),{undoCache:_0x2cefaf,redoCache:_0x428906}=_0x4303a8['getUndoRedoMutationParamsCache']();if(_0x2cefaf[_0x295f11(0x2bc)]===0x0||_0x428906[_0x295f11(0x2bc)]===0x0)return;let _0xd494e3=[],_0x2a4839=[],_0x5b469b=_0x4e8798[_0x295f11(0x1ec)](_0x21338d['mutations'][0x0]),_0x55bff4=_0x4e8798['deepClone'](_0x21338d['mutations'][0x0]);for(let _0x45b35e=_0x2cefaf[_0x295f11(0x2bc)]-0x1;_0x45b35e>=0x0;_0x45b35e--){let _0x2fc992={'id':_0x295f11(0x1ea),'params':{..._0x2cefaf[_0x45b35e]}},_0x1e4467={'id':_0x295f11(0x1ea),'params':{..._0x428906[_0x45b35e]}},_0x4e2e0e=this['_transformService'][_0x295f11(0x32e)](_0x5b469b,_0x2fc992,!0x1),_0x362788=this[_0x295f11(0x241)]['transformMutation'](_0x55bff4,_0x1e4467,!0x1);if(_0x25931a(_0x4e2e0e))throw _0x4e2e0e[_0x295f11(0x1c6)];if(_0x25931a(_0x362788))throw _0x362788[_0x295f11(0x1c6)];_0xd494e3['unshift'](_0x4e2e0e[_0x295f11(0x14c)][_0x295f11(0x2b7)]),_0x2a4839[_0x295f11(0x261)](_0x362788[_0x295f11(0x14c)][_0x295f11(0x2b7)]),_0x5b469b=_0x4e2e0e['m1Prime'],_0x55bff4=_0x362788[_0x295f11(0x17d)];}_0x4303a8[_0x295f11(0x297)]({'undoCache':_0xd494e3,'redoCache':_0x2a4839});}[_0x4d7826(0x204)](_0x1f16d3){const _0x44de99=_0x4d7826;let {unitID:_0x179433}=_0x1f16d3,_0x7895de=this[_0x44de99(0x157)]['getRenderById'](_0x179433)[_0x44de99(0x1c2)](_0x35af8a),_0x83d8b1=_0x7895de['getActiveRange']();if(_0x83d8b1==null)return;let _0x50850a=[{'id':_0x44de99(0x1ea),'params':{'unitId':_0x1f16d3[_0x44de99(0x232)],'actions':null,'textRanges':[_0x83d8b1]}}],_0x22a973=this[_0x44de99(0x241)][_0x44de99(0x1bf)](_0x1f16d3,_0x50850a);if(!_0x3b4f9c(_0x22a973))throw _0x22a973['error'];let _0x1323fd=_0x22a973[_0x44de99(0x14c)][0x0]['params'][_0x44de99(0x1ff)];Array['isArray'](_0x1323fd)&&_0x1323fd[_0x44de99(0x2bc)]&&_0x7895de['setActiveRange'](_0x1323fd[0x0]);}};Ln=Y([J(0x0,_0x796fe5),J(0x1,_0x1fc985)],Ln);let Rn=class{constructor(_0x52a969,_0x483513,_0x32352e){const _0x5f1305=_0x4d7826;this['_injector']=_0x52a969,this[_0x5f1305(0x241)]=_0x483513,this['_docStateChangeManagerService']=_0x32352e;}['transformStateCache'](_0x2f35c0){const _0x349ccf=_0x4d7826;this[_0x349ccf(0x175)](_0x2f35c0);}[_0x4d7826(0x197)](_0x3fa61a){const _0x48ee8d=_0x4d7826;let {unitID:_0x5a863b}=_0x3fa61a,{collaboration:_0x3a9211}=this[_0x48ee8d(0x147)][_0x48ee8d(0x26f)](_0x5a863b);if(_0x3a9211['length']===0x0)return _0x3fa61a;let _0x4e1339=_0x4e8798[_0x48ee8d(0x1ec)](_0x3fa61a[_0x48ee8d(0x324)][0x0]);for(let _0xaba4c4=0x0;_0xaba4c4<_0x3a9211[_0x48ee8d(0x2bc)];_0xaba4c4++){let _0x50feb1={'id':_0x48ee8d(0x1ea),'params':{'unitId':_0x3a9211[_0xaba4c4][_0x48ee8d(0x245)],..._0x3a9211[_0xaba4c4][_0x48ee8d(0x1a6)]}},_0x565809=this[_0x48ee8d(0x241)][_0x48ee8d(0x32e)](_0x4e1339,_0x50feb1,!0x1);if(_0x25931a(_0x565809))throw _0x565809[_0x48ee8d(0x1c6)];_0x4e1339=_0x565809['m1Prime'];}return{..._0x4e8798[_0x48ee8d(0x1ec)](_0x3fa61a),'mutations':[_0x4e1339]};}[_0x4d7826(0x175)](_0x35d3be){const _0x4864b6=_0x4d7826;let {unitID:_0x240cb9}=_0x35d3be,{history:_0xdb21c9,collaboration:_0x414e26}=this['_docStateChangeManagerService']['getStateCache'](_0x240cb9);if(_0xdb21c9[_0x4864b6(0x2bc)]===0x0&&_0x414e26[_0x4864b6(0x2bc)]===0x0)return;let _0x855959=[],_0x4570b9=[],_0x3bcefb=_0x4e8798['deepClone'](_0x35d3be[_0x4864b6(0x324)][0x0]),_0x39faf8=_0x4e8798['deepClone'](_0x35d3be[_0x4864b6(0x324)][0x0]);for(let _0x56bfef=_0xdb21c9[_0x4864b6(0x2bc)]-0x1;_0x56bfef>=0x0;_0x56bfef--){let _0xa5ba59={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xdb21c9[_0x56bfef][_0x4864b6(0x245)],..._0xdb21c9[_0x56bfef]['undoState']}},_0x484870={'id':_0x4864b6(0x1ea),'params':{'unitId':_0xdb21c9[_0x56bfef][_0x4864b6(0x245)],..._0xdb21c9[_0x56bfef][_0x4864b6(0x1a6)]}},_0x30fa44=this[_0x4864b6(0x241)][_0x4864b6(0x32e)](_0x3bcefb,_0xa5ba59,!0x1),_0x5128dc=this['_transformService'][_0x4864b6(0x32e)](_0x39faf8,_0x484870,!0x1);if(_0x25931a(_0x30fa44))throw _0x30fa44[_0x4864b6(0x1c6)];if(_0x25931a(_0x5128dc))throw _0x5128dc[_0x4864b6(0x1c6)];_0x855959['unshift']({..._0xdb21c9[_0x56bfef],'undoState':_0x30fa44[_0x4864b6(0x14c)]['params'],'redoState':_0x5128dc[_0x4864b6(0x14c)][_0x4864b6(0x2b7)]}),_0x3bcefb=_0x30fa44[_0x4864b6(0x17d)],_0x39faf8=_0x5128dc['m1Prime'];}_0x3bcefb=_0x4e8798[_0x4864b6(0x1ec)](_0x35d3be[_0x4864b6(0x324)][0x0]),_0x39faf8=_0x4e8798['deepClone'](_0x35d3be[_0x4864b6(0x324)][0x0]);for(let _0x2882f1=_0x414e26['length']-0x1;_0x2882f1>=0x0;_0x2882f1--){let _0x4be458={'id':_0x4864b6(0x1ea),'params':{'unitId':_0x414e26[_0x2882f1][_0x4864b6(0x245)],..._0x414e26[_0x2882f1]['undoState']}},_0x367e4a={'id':_0x4864b6(0x1ea),'params':{'unitId':_0x414e26[_0x2882f1][_0x4864b6(0x245)],..._0x414e26[_0x2882f1][_0x4864b6(0x1a6)]}},_0xd56326=this[_0x4864b6(0x241)][_0x4864b6(0x32e)](_0x3bcefb,_0x4be458,!0x1),_0x82e434=this[_0x4864b6(0x241)][_0x4864b6(0x32e)](_0x39faf8,_0x367e4a,!0x1);if(_0x25931a(_0xd56326))throw _0xd56326[_0x4864b6(0x1c6)];if(_0x25931a(_0x82e434))throw _0x82e434[_0x4864b6(0x1c6)];_0x4570b9['unshift']({..._0x414e26[_0x2882f1],'undoState':_0xd56326[_0x4864b6(0x14c)][_0x4864b6(0x2b7)],'redoState':_0x82e434[_0x4864b6(0x14c)][_0x4864b6(0x2b7)]}),_0x3bcefb=_0xd56326[_0x4864b6(0x17d)],_0x39faf8=_0x82e434[_0x4864b6(0x17d)];}this[_0x4864b6(0x147)][_0x4864b6(0x321)](_0x240cb9,{'history':_0x855959,'collaboration':_0x4570b9});}};Rn=Y([J(0x0,_0x2975e5(_0x2bf279)),J(0x1,_0x796fe5),J(0x2,_0x2975e5(_0x2d0f8c))],Rn);let zn=class{constructor(_0xbf1c0a,_0x2dec69){const _0x39fc69=_0x4d7826;this[_0x39fc69(0xf6)]=_0xbf1c0a,this[_0x39fc69(0x241)]=_0x2dec69;}[_0x4d7826(0xed)](_0x4df8b2){const _0x1f911a=_0x4d7826;var _0x4b3611;let _0x13ec53=this['_injector'][_0x1f911a(0x17a)](_0x4086a9),_0x26e517=(_0x4b3611=_0x13ec53[_0x1f911a(0x17c)]())==null?[]:_0x4b3611;if(_0x26e517[_0x1f911a(0x2bc)]===0x0)return;let _0x97e1b5=_0x4df8b2['unitID'],_0x5b605f=[{'id':_0x1f911a(0x1ea),'params':{'unitId':_0x97e1b5,'actions':null,'textRanges':_0x26e517}}],_0x496cf3=this[_0x1f911a(0x241)][_0x1f911a(0x1bf)](_0x4df8b2,_0x5b605f);if(!_0x3b4f9c(_0x496cf3))throw _0x496cf3[_0x1f911a(0x1c6)];let _0x1ec292=_0x496cf3[_0x1f911a(0x14c)][0x0][_0x1f911a(0x2b7)][_0x1f911a(0x1ff)];Array[_0x1f911a(0x29f)](_0x1ec292)&&_0x1ec292[_0x1f911a(0x2bc)]&&_0x13ec53[_0x1f911a(0x1d7)](_0x1ec292,{'unitId':_0x97e1b5,'subUnitId':_0x97e1b5},!0x1);}};zn=Y([J(0x0,_0x2975e5(_0x2bf279)),J(0x1,_0x796fe5)],zn);let Bn=class extends _0x4f1642{constructor(_0x264fb3,_0x10b6af,_0x434b5e,_0x2df956,_0x2199ab,_0x2d0b04,_0x3a4ec0){const _0x2638eb=_0x4d7826;super(),this[_0x2638eb(0x265)]=_0x264fb3,this['_docTransformIMECacheService']=_0x10b6af,this[_0x2638eb(0x2fc)]=_0x434b5e,this['_docTransformSelectionsService']=_0x2df956,this[_0x2638eb(0x22e)]=_0x2199ab,this[_0x2638eb(0x309)]=_0x2d0b04,this[_0x2638eb(0x159)]=_0x3a4ec0,q(this,_0x2638eb(0x2b4),new _0x57044e(_0x57973c[_0x2638eb(0x273)])),this['_initEntityListener']();}['_initEntityListener'](){const _0x379a5b=_0x4d7826;this[_0x379a5b(0x2f1)](this[_0x379a5b(0x265)][_0x379a5b(0x1cc)]['subscribe'](_0x4a9ccd=>{const _0x2e1566=_0x379a5b;_0x4a9ccd instanceof _0x236f4e&&_0x4a9ccd[_0x2e1566(0x262)]({'onTransformIME':_0xbbc433=>this[_0x2e1566(0x1e2)][_0x2e1566(0x1a2)](_0xbbc433),'onTransformState':_0x119002=>this[_0x2e1566(0x2fc)][_0x2e1566(0x1ae)](_0x119002),'onTransformSelections':_0x2fd0c6=>this['_docTransformSelectionsService'][_0x2e1566(0xed)](_0x2fd0c6),'onSyncEditingCollabCursor':_0x1e49ae=>this[_0x2e1566(0x22e)][_0x2e1566(0x29e)](_0x1e49ae),'onTransformRemoteChangesetByIMECache':_0x28ecf7=>this[_0x2e1566(0x1e2)][_0x2e1566(0x197)](_0x28ecf7),'onTransformRemoteChangesetByStateCache':_0x28c324=>this[_0x2e1566(0x2fc)][_0x2e1566(0x197)](_0x28c324)});}));}};Bn=Y([J(0x0,_0x2975e5(_0x14ae00)),J(0x1,_0x2975e5(Ln)),J(0x2,_0x2975e5(Rn)),J(0x3,_0x2975e5(zn)),J(0x4,_0x2975e5(bn)),J(0x5,_0x45be88),J(0x6,_0x2975e5(_0x128d2d))],Bn);let Vn=class extends _0x4f1642{constructor(_0x35b3b9,_0x5d404c,_0x5d4900,_0x3126da){const _0x445f81=_0x4d7826;super(),this[_0x445f81(0xf6)]=_0x35b3b9,this[_0x445f81(0x30c)]=_0x5d404c,this[_0x445f81(0x151)]=_0x5d4900,this[_0x445f81(0x2c5)]=_0x3126da,q(this,_0x445f81(0x327),void 0x0),this[_0x445f81(0x256)]();}[_0x4d7826(0x256)](){const _0x308287=_0x4d7826;this[_0x308287(0x1c9)](),this[_0x308287(0x1da)](),this[_0x308287(0x13a)](),this['_initUserListener']();}['_initUserListener'](){const _0x3b6006=_0x4d7826;this[_0x3b6006(0x2f1)](this[_0x3b6006(0x2c5)][_0x3b6006(0x16f)][_0x3b6006(0x2e4)](_0x6a31fa=>{const _0x51ddf2=_0x3b6006;this[_0x51ddf2(0x327)]=_0x6a31fa==null?void 0x0:_0x6a31fa[_0x51ddf2(0x103)];}));}[_0x4d7826(0x1c9)](){const _0x4f6cd0=_0x4d7826;let _0x291335=_0x58ea07=>{const _0x3694ef=_0x2258;var _0x21cf91;this[_0x3694ef(0x169)]('error',_0x3694ef(0x186)+_0x58ea07[_0x3694ef(0x28a)]+_0x3694ef(0x21f)+_0x58ea07[_0x3694ef(0x100)]+':'+_0x58ea07[_0x3694ef(0x179)]+':'+_0x58ea07[_0x3694ef(0x234)]+'\x0a'+(((_0x21cf91=_0x58ea07['error'])==null?void 0x0:_0x21cf91[_0x3694ef(0x2ce)])||''));};window[_0x4f6cd0(0x291)]('error',_0x291335),this['disposeWithMe'](()=>{const _0x44f63c=_0x4f6cd0;window[_0x44f63c(0x10a)](_0x44f63c(0x1c6),_0x291335);});}[_0x4d7826(0x1da)](){const _0x4d6bb9=_0x4d7826;let _0xd94d0c=_0x52a1b4=>{const _0x45a8e7=_0x2258;this[_0x45a8e7(0x169)](_0x45a8e7(0x1c6),_0x45a8e7(0x264)+_0x52a1b4[_0x45a8e7(0x30f)]);};window[_0x4d6bb9(0x291)]('unhandledrejection',_0xd94d0c),this['disposeWithMe'](()=>{const _0xc71593=_0x4d6bb9;window[_0xc71593(0x10a)](_0xc71593(0x145),_0xd94d0c);});}[_0x4d7826(0x13a)](){const _0x43cecc=_0x4d7826;let _0x550cc8=this[_0x43cecc(0x151)]['error'][_0x43cecc(0x12a)](this[_0x43cecc(0x151)]);this[_0x43cecc(0x151)]['error']=(..._0x4a6609)=>{const _0x2742f6=_0x43cecc;let _0x1ebac3=_0x4a6609[_0x2742f6(0x25d)](_0x535a92=>_0x535a92 instanceof Error?_0x535a92[_0x2742f6(0x28a)]+'\x0a'+_0x535a92['stack']:String(_0x535a92))[_0x2742f6(0x263)]('\x20');this['_uploadLog'](_0x2742f6(0x1c6),'[LogService\x20Error]:\x20'+_0x1ebac3),_0x550cc8(..._0x4a6609);},this['disposeWithMe'](()=>{const _0x45c361=_0x43cecc;this['_logService'][_0x45c361(0x1c6)]=_0x550cc8;});}['_uploadLog'](_0x958d4d,_0x1e5cb2){const _0x45757e=_0x4d7826;try{let _0xea2025={'userId':this[_0x45757e(0x327)],'logLabel':_0x958d4d,'content':_0x1e5cb2};this[_0x45757e(0x30c)][_0x45757e(0x283)](_0x45757e(0x108),{'body':_0xea2025})[_0x45757e(0xea)](()=>{});}catch{}}};Vn=Y([J(0x0,_0x2975e5(_0x2bf279)),J(0x1,_0x2975e5(_0x30454a)),J(0x2,_0x2e569c),J(0x3,_0x2975e5(_0x3ebc7d))],Vn);function Hn(_0x148ca6){const _0x58587c=_0x4d7826;var _0x4ad3df,_0x3c81c4;let _0x4766a0=(_0x4ad3df=_0x148ca6['stageInfo'])==null?void 0x0:_0x4ad3df['stage'],_0x1454b3=((_0x3c81c4=_0x148ca6['stageInfo'])==null?void 0x0:_0x3c81c4[_0x58587c(0x308)])||0x0;return _0x4766a0===_0x4e45d5[_0x58587c(0x2a8)]&&_0x1454b3>0x0;}function Un(_0x400eb1){const _0x32c10b=_0x4d7826;return _0x400eb1[_0x32c10b(0x320)]===_0x964841['SUCCESS'];}let Wn=class extends _0x4f1642{constructor(_0xfa4be7,_0x1e1a87,_0x54630a,_0x51856b,_0x5825ca,_0x279d7d,_0x4411a2){const _0x47bf63=_0x4d7826;super(),this[_0x47bf63(0x309)]=_0xfa4be7,this[_0x47bf63(0x310)]=_0x1e1a87,this[_0x47bf63(0x1df)]=_0x54630a,this['_httpService']=_0x51856b,this[_0x47bf63(0x31a)]=_0x5825ca,this[_0x47bf63(0x151)]=_0x279d7d,this[_0x47bf63(0x159)]=_0x4411a2,q(this,_0x47bf63(0x1c5),null),q(this,_0x47bf63(0x184),0x0),q(this,_0x47bf63(0x2d9),0x0),q(this,'_taskIds',[]),q(this,_0x47bf63(0x1c0),0x0),this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x490866=_0x4d7826;this[_0x490866(0x2f1)](this[_0x490866(0x310)][_0x490866(0x305)]((_0x457d10,_0x18058d)=>{const _0x492110=_0x490866;var _0x10ed7b;if(_0x457d10['id']!==_0x5b6ab5['id'])return;let _0x24f0e6=_0x457d10['params'];if(this['_hasFormulaInDirtyRanges']((_0x10ed7b=_0x24f0e6[_0x492110(0x2e9)])==null?[]:_0x10ed7b)&&!this[_0x492110(0x2b3)]())throw this[_0x492110(0x2b8)](_0x457d10,_0x18058d),this['_showGuardMessage'](),new _0x736cd3();})),this[_0x490866(0x2f1)](this['_commandService']['onCommandExecuted']((_0x181a67,_0x42a203)=>{const _0x71b27e=_0x490866;if(_0x181a67['id']!==_0xb333d0['id'])return;let _0x120481=_0x181a67[_0x71b27e(0x2b7)];if(Hn(_0x120481)){let _0x20d55a=_0x5d1e23();this[_0x71b27e(0x122)][_0x71b27e(0x141)](_0x20d55a),this[_0x71b27e(0x193)](_0x20d55a);}else{if(Un(_0x120481)&&this[_0x71b27e(0x122)][_0x71b27e(0x2bc)]>0x0){let _0x4d4b6d=this[_0x71b27e(0x122)]['shift']();this['_releaseCalculationLimit'](_0x4d4b6d);}}}));}['dispose'](){const _0x57d380=_0x4d7826;super[_0x57d380(0x315)](),this[_0x57d380(0x290)](),this[_0x57d380(0x122)]=[],this['_currentUsage']=0x0,this[_0x57d380(0x184)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x4d7826(0x2b8)](_0x1b4f29,_0xd628e2){const _0x46de81=_0x4d7826;for(let _0x4c6073=0x0;_0x4c6073<0x1e;_0x4c6073++)try{if(await this[_0x46de81(0x14f)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x1b4f29,_0xd628e2),this[_0x46de81(0x309)][_0x46de81(0x1e3)]({'content':this[_0x46de81(0x159)]['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x4f09c9[_0x46de81(0xe7)]});return;}await new Promise(_0x3349b3=>{const _0x462b04=_0x46de81;this[_0x462b04(0x1c5)]=window[_0x462b04(0x1f2)](_0x3349b3,0x3e8);});}catch(_0x53b7c0){this[_0x46de81(0x151)]['error'](_0x53b7c0);}this['_messageService'][_0x46de81(0x1e3)]({'content':this[_0x46de81(0x159)]['t'](_0x46de81(0x1a9)),'type':_0x4f09c9['Error']});}[_0x4d7826(0x148)](_0x533aad,_0xd1fc96){const _0x13ce6c=_0x4d7826;try{this['_commandService']['executeCommand'](_0x533aad['id'],_0x533aad['params'],_0xd1fc96);}catch(_0x4b638c){this[_0x13ce6c(0x151)][_0x13ce6c(0x1c6)](_0x4b638c);}}['_setFormulaLimitStatus'](_0x28b412,_0x23c977){const _0x182b58=_0x4d7826;_0x23c977<this[_0x182b58(0x1c0)]||(this[_0x182b58(0x1c0)]=_0x23c977,this['_maxFormulaLimit']=Number['parseInt'](_0x28b412[_0x182b58(0x19b)]),this['_currentUsage']=Number['parseInt'](_0x28b412[_0x182b58(0x2f7)]));}async[_0x4d7826(0x193)](_0x12b12c){const _0x86fac0=_0x4d7826;let _0x4eb9d9=Date[_0x86fac0(0x22d)]();try{var _0x344fff,_0x3c6c8f;let _0x140f95=((_0x344fff=this[_0x86fac0(0x1df)][_0x86fac0(0xf5)](_0xe6392a))==null?void 0x0:_0x344fff[_0x86fac0(0x11c)])||_0x86fac0(0x314),_0x35ebc1=(await this[_0x86fac0(0x30c)]['post'](_0x140f95,{'body':JSON[_0x86fac0(0x326)]({'taskId':_0x12b12c})}))['body'];if(((_0x3c6c8f=_0x35ebc1[_0x86fac0(0x1c6)])==null?void 0x0:_0x3c6c8f[_0x86fac0(0x185)])!==_0x2dbe68['OK'])return;this[_0x86fac0(0x11d)](_0x35ebc1[_0x86fac0(0x1d2)],_0x4eb9d9);}catch(_0x759db6){this[_0x86fac0(0x151)][_0x86fac0(0x1c6)](_0x759db6);}}async[_0x4d7826(0x14f)](_0x1481de){const _0x10ffe0=_0x4d7826;let _0x55c6e2=Date[_0x10ffe0(0x22d)]();try{var _0x4ce4d3,_0x51e399;let _0x44dbae=((_0x4ce4d3=this[_0x10ffe0(0x1df)]['getConfig'](_0xe6392a))==null?void 0x0:_0x4ce4d3[_0x10ffe0(0x2f4)])||_0x10ffe0(0x322),_0x5a8f52=_0x1481de?_0x44dbae+_0x10ffe0(0x28f)+encodeURIComponent(_0x1481de):_0x44dbae,_0x2e5c48=(await this[_0x10ffe0(0x30c)][_0x10ffe0(0x17a)](_0x5a8f52))[_0x10ffe0(0x213)];if(((_0x51e399=_0x2e5c48['error'])==null?void 0x0:_0x51e399[_0x10ffe0(0x185)])!==_0x2dbe68['OK'])return;this[_0x10ffe0(0x11d)](_0x2e5c48[_0x10ffe0(0x1d2)],_0x55c6e2);}catch(_0x1fa25d){this[_0x10ffe0(0x151)]['error'](_0x1fa25d);}}async['_releaseCalculationLimit'](_0x50b3f2){const _0x2f2b4c=_0x4d7826;let _0x2641ac=Date[_0x2f2b4c(0x22d)]();try{var _0x2c7d25,_0x150b3c;let _0x5d7df8=((_0x2c7d25=this[_0x2f2b4c(0x1df)][_0x2f2b4c(0xf5)](_0xe6392a))==null?void 0x0:_0x2c7d25[_0x2f2b4c(0x20d)])||_0x2f2b4c(0x16a),_0x4cbe3f=(await this['_httpService']['post'](_0x5d7df8,{'body':JSON[_0x2f2b4c(0x326)]({'taskId':_0x50b3f2})}))[_0x2f2b4c(0x213)];if(((_0x150b3c=_0x4cbe3f[_0x2f2b4c(0x1c6)])==null?void 0x0:_0x150b3c[_0x2f2b4c(0x185)])!==_0x2dbe68['OK'])return;this[_0x2f2b4c(0x11d)](_0x4cbe3f[_0x2f2b4c(0x1d2)],_0x2641ac);}catch(_0x1dc1e2){this[_0x2f2b4c(0x151)][_0x2f2b4c(0x1c6)](_0x1dc1e2);}}[_0x4d7826(0x2b3)](){const _0x2c2934=_0x4d7826;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x2c2934(0x184)]-this[_0x2c2934(0x2d9)]>0x0;}[_0x4d7826(0x290)](){const _0x417158=_0x4d7826;this[_0x417158(0x1c5)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x4d7826(0x15b)](){const _0x378244=_0x4d7826;this['_messageService'][_0x378244(0x1e3)]({'content':this[_0x378244(0x159)]['t']('collaboration-client-ui.formula.calculation.waiting'),'type':_0x4f09c9[_0x378244(0x1a4)]});}['_hasFormulaInDirtyRanges'](_0x374a94){const _0x32a4c6=_0x4d7826;for(let _0x1ebbc4 of _0x374a94){let {unitId:_0x5ecaba,sheetId:_0x5bd98c,range:_0x141fcb}=_0x1ebbc4,_0x65311=this['_univerInstanceService'][_0x32a4c6(0xf0)](_0x5ecaba);if(!_0x65311)continue;let _0xfb4a13=_0x65311[_0x32a4c6(0x2df)](_0x5bd98c);if(!_0xfb4a13)continue;let _0x5ca68c=_0xfb4a13[_0x32a4c6(0x11b)]();for(let _0x4d02af=_0x141fcb[_0x32a4c6(0x1eb)];_0x4d02af<=_0x141fcb[_0x32a4c6(0x246)];_0x4d02af++)for(let _0x445fc0=_0x141fcb[_0x32a4c6(0xe0)];_0x445fc0<=_0x141fcb[_0x32a4c6(0x202)];_0x445fc0++){let _0x39f206=_0x5ca68c[_0x32a4c6(0x118)](_0x4d02af,_0x445fc0);if(_0x39f206&&(_0x4d99fe(_0x39f206['f'])||_0x3218ca(_0x39f206['si'])))return!0x0;}}return!0x1;}};Wn=Y([J(0x0,_0x2975e5(_0x45be88)),J(0x1,_0x5160b7),J(0x2,_0x138612),J(0x3,_0x2975e5(_0x30454a)),J(0x4,_0x4aed1f),J(0x5,_0x2e569c),J(0x6,_0x2975e5(_0x128d2d))],Wn);let Gn=class extends _0x4f1642{constructor(_0xdf7d33,_0x553982,_0x3ca23f){const _0x161610=_0x4d7826;super(),this['_configService']=_0xdf7d33,this[_0x161610(0x304)]=_0x553982,this[_0x161610(0x15c)]=_0x3ca23f,q(this,_0x161610(0x303),new Map()),q(this,_0x161610(0x1af),new Map()),q(this,_0x161610(0x2bf),!0x1);}['disableLocalCache'](){const _0x506606=_0x4d7826;this[_0x506606(0x2bf)]=!0x0;}[_0x4d7826(0x2ab)](){const _0x27a6ae=_0x4d7826;this[_0x27a6ae(0x2bf)]=!0x1;}get[_0x4d7826(0x2ea)](){const _0x4abb17=_0x4d7826;return this[_0x4abb17(0x1af)];}['dispose'](){const _0x4079fc=_0x4d7826;this[_0x4079fc(0x2be)]()[_0x4079fc(0x1b0)](()=>super[_0x4079fc(0x315)]());}async['loadOfflineData'](_0x4f0aed){const _0x44d3ca=_0x4d7826;return this[_0x44d3ca(0x2bf)]?null:this[_0x44d3ca(0x304)][_0x44d3ca(0x163)](_0x4698e9(_0x4f0aed));}async['saveOfflineData'](_0x3abcbd,_0x38af8c){const _0x21e6aa=_0x4d7826;return!!this[_0x21e6aa(0x304)][_0x21e6aa(0x295)](_0x4698e9(_0x3abcbd),_0x38af8c);}async[_0x4d7826(0x2c9)](_0x5857b8,_0x350c6b){const _0x39af58=_0x4d7826;var _0x8a5914;let _0x3344f3=(_0x8a5914=this['_cachedData'][_0x39af58(0x17a)](_0x5857b8))==null?await this[_0x39af58(0x304)]['getItem'](_0x4698e9(_0x5857b8)):_0x8a5914;if(!_0x3344f3)return;let _0x3b1dba=Date[_0x39af58(0x22d)](),_0x23190b=new Date(_0x3b1dba)[_0x39af58(0x2c7)]();await this[_0x39af58(0x304)][_0x39af58(0x295)](_0x4698e9(_0x5857b8)+_0x39af58(0x299)+_0x3b1dba,{'reason':_0x350c6b,'createdAt':_0x23190b,'data':_0x3344f3});}['updateOfflineData'](_0x4ef549,_0x110570,_0xd1f833,_0x2ae391){const _0x2b57c7=_0x4d7826;let _0x330c98=this[_0x2b57c7(0x15c)][_0x2b57c7(0xf3)](_0x4ef549);this[_0x2b57c7(0x303)][_0x2b57c7(0x209)](_0x4ef549,{'unitID':_0x4ef549,'type':_0x110570,'awaitingChangeset':_0xd1f833,'mutations':_0x2ae391,'rev':_0x330c98}),this[_0x2b57c7(0x1af)][_0x2b57c7(0x1a3)](_0x4ef549)||this[_0x2b57c7(0x1a7)](_0x4ef549);}['_scheduleSaving'](_0x1c3fa6){const _0x3d2c87=_0x4d7826;let _0x5469f9=this[_0x3d2c87(0x1f9)]();_0x5469f9===0x0?this[_0x3d2c87(0x11e)](_0x1c3fa6):this[_0x3d2c87(0x1af)][_0x3d2c87(0x209)](_0x1c3fa6,window[_0x3d2c87(0x1f2)](()=>this['_saveCache'](_0x1c3fa6),_0x5469f9));}[_0x4d7826(0x1f9)](){const _0x22569e=_0x4d7826;var _0xb6dbde;return(_0xb6dbde=this[_0x22569e(0x1df)]['getConfig'](_0x19ffaf))==null?_0x30e2d9:_0xb6dbde;}[_0x4d7826(0x11e)](_0x471ec1){const _0x3655b9=_0x4d7826;let _0x3b2361=this[_0x3655b9(0x1af)][_0x3655b9(0x17a)](_0x471ec1);return _0x3b2361!==void 0x0&&window['clearTimeout'](_0x3b2361),this[_0x3655b9(0x304)][_0x3655b9(0x295)](_0x4698e9(_0x471ec1),this['_cachedData']['get'](_0x471ec1))[_0x3655b9(0x1b0)](()=>this['_saveTaskMap']['delete'](_0x471ec1));}async['exhaustSavingTask'](){const _0x1e277c=_0x4d7826;let _0x4855ca=[];this['_saveTaskMap'][_0x1e277c(0x1b4)]((_0x2f3e47,_0x168e47)=>{const _0x35e075=_0x1e277c;window[_0x35e075(0x2c8)](_0x2f3e47),_0x4855ca[_0x35e075(0x141)](this[_0x35e075(0x11e)](_0x168e47)[_0x35e075(0x1b0)](()=>{const _0x572ce3=_0x35e075;this[_0x572ce3(0x1af)][_0x572ce3(0x111)](_0x168e47);}));}),await Promise[_0x1e277c(0x206)](_0x4855ca);}};Gn=Y([J(0x0,_0x138612),J(0x1,_0x1ebf86),J(0x2,_0x2975e5(_0x5ad3bf))],Gn);var Kn=class extends _0x2d058d{constructor(){const _0x5c4f6e=_0x4d7826;super(),q(this,_0x5c4f6e(0x2a5),void 0x0),this[_0x5c4f6e(0x2a5)]=_0x38baf8(window,_0x5c4f6e(0x2fd))[_0x5c4f6e(0x18b)](_0x59e49a(this[_0x5c4f6e(0x188)]),_0x75714c({'bufferSize':0x1,'refCount':!0x0}),_0x312181(void 0x0));}[_0x4d7826(0x2ae)](_0x2c9af3,_0x2e6ecb,_0x1eb9e0=!0x1){const _0x234feb=_0x4d7826;let _0x2e2c84=new URL(window['location']['href']);_0x2e2c84['searchParams'][_0x234feb(0x209)](_0x2c9af3,_0x2e6ecb),_0x1eb9e0?window[_0x234feb(0x1fe)]['replaceState']('','',_0x2e2c84[_0x234feb(0x1ed)]()):window['history']['pushState']('','',_0x2e2c84['toString']());}[_0x4d7826(0x187)](_0x4cfc05,_0x43a770=!0x1){const _0x1f1bc9=_0x4d7826;let _0x434e99=new URL(window[_0x1f1bc9(0x1a1)]['href']);_0x434e99[_0x1f1bc9(0x23f)]['delete'](_0x4cfc05),_0x43a770?window[_0x1f1bc9(0x1fe)][_0x1f1bc9(0x32f)]('','',_0x434e99[_0x1f1bc9(0x1ed)]()):window[_0x1f1bc9(0x1fe)][_0x1f1bc9(0x1f3)]('','',_0x434e99[_0x1f1bc9(0x1ed)]());}['getParam'](_0x23809f){const _0x41aac2=_0x4d7826;var _0x28a2af;return(_0x28a2af=new URL(window[_0x41aac2(0x1a1)][_0x41aac2(0x194)])[_0x41aac2(0x23f)]['get'](_0x23809f))==null?void 0x0:_0x28a2af;}};let $=class extends _0x53e595{constructor(_0x10cb6c=cn,_0x2ab380,_0x21c253,_0x578561){const _0x38f8e2=_0x4d7826;super(),this[_0x38f8e2(0x132)]=_0x10cb6c,this[_0x38f8e2(0x157)]=_0x2ab380,this[_0x38f8e2(0xf6)]=_0x21c253,this[_0x38f8e2(0x1df)]=_0x578561;let {..._0xd4791e}=_0x126ddb({},cn,this[_0x38f8e2(0x132)]);this[_0x38f8e2(0x1df)][_0x38f8e2(0x22a)](_0x38f8e2(0x10d),_0xd4791e);}[_0x4d7826(0x107)](){const _0x3a9b2d=_0x4d7826;this[_0x3a9b2d(0x1ac)](),this[_0x3a9b2d(0x29a)]();}[_0x4d7826(0x237)](){const _0x39e16d=_0x4d7826;this[_0x39e16d(0x1a8)]();}[_0x4d7826(0x1ac)](){const _0x2126e8=_0x4d7826;var _0x30c8e7;let _0x1e6cea=[[Z],[Wn],[Fn,{'useClass':Kn}],[_0x47d565,{'useClass':_0x467d37}],[_0x197647,{'useClass':Gn}],[X],[tn],[Pn],[Q],[In]];this[_0x2126e8(0x132)][_0x2126e8(0x140)]!==!0x1&&_0x1e6cea[_0x2126e8(0x141)]([zn],[Ln],[Rn],[bn],[Bn],[ln]),this['_config']['enableFrontendLog']&&_0x1e6cea[_0x2126e8(0x141)]([Vn]),_0x105f0d(this[_0x2126e8(0xf6)],_0x42835e(_0x1e6cea,(_0x30c8e7=this[_0x2126e8(0x132)])==null?void 0x0:_0x30c8e7[_0x2126e8(0x2c6)]));}[_0x4d7826(0x1a8)](){const _0x1e9014=_0x4d7826;this[_0x1e9014(0x132)][_0x1e9014(0x140)]!==!0x1&&this[_0x1e9014(0x2f1)](this[_0x1e9014(0x157)][_0x1e9014(0x177)](_0x70929f[_0x1e9014(0x21b)],[kn])),this[_0x1e9014(0x2f1)](this[_0x1e9014(0x157)]['registerRenderModule'](_0x70929f['UNIVER_SHEET'],[jn])),this[_0x1e9014(0x2f1)](this[_0x1e9014(0x157)][_0x1e9014(0x177)](_0x70929f[_0x1e9014(0x13d)],[Nn])),this[_0x1e9014(0x2f1)](this[_0x1e9014(0x157)]['registerRenderModule'](_0x70929f[_0x1e9014(0x249)],[En]));}[_0x4d7826(0x29a)](){const _0x251e7f=_0x4d7826;_0x1ea026(this[_0x251e7f(0xf6)],[[Q],[X],[tn],[Pn],[In],[Wn]]),this[_0x251e7f(0x132)]['enableDocumentCollaborationUI']!==!0x1&&_0x1ea026(this['_injector'],[[Bn],[ln]]),this[_0x251e7f(0x132)]['enableFrontendLog']&&_0x1ea026(this[_0x251e7f(0xf6)],[[Vn]]);}};q($,_0x4d7826(0x18e),_0x4d7826(0xfe)),q($,'packageName',on),q($,'version',sn),$=Y([_0x3b29cf(_0x531e80),J(0x1,_0x1fc985),J(0x2,_0x2975e5(_0x2bf279)),J(0x3,_0x138612)],$);let qn=class extends _0x21d8c5{constructor(_0x578778,_0xddf04f,_0x4aae09,_0x10d9a6,_0x478e0e){super(_0x578778,_0xddf04f,_0x4aae09,_0x10d9a6,_0x478e0e);}async[_0x4d7826(0x2c2)](_0x5659c8){const _0x2beb44=_0x4d7826;let _0x36373f=await this['_getSessionTicket'](),_0x57c19e=this[_0x2beb44(0x143)](_0x5659c8,_0x36373f);return this[_0x2beb44(0x23e)](_0x57c19e);}[_0x4d7826(0x143)](_0xfe183d,_0x47dbfa){const _0x7c3f83=_0x4d7826;let _0x2fb315=typeof window>'u'?new URL(_0xfe183d):new URL(_0xfe183d,window[_0x7c3f83(0x1a1)][_0x7c3f83(0x146)]);_0x2fb315[_0x7c3f83(0x23f)][_0x7c3f83(0x209)]('sessionTicket',_0x47dbfa);let _0x24fb18=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x7c3f83(0x1a1)][_0x7c3f83(0x17b)]);return _0x24fb18[_0x7c3f83(0x17a)](_0x7c3f83(0x30a))&&_0x2fb315['searchParams']['set'](_0x7c3f83(0x30a),_0x24fb18[_0x7c3f83(0x17a)](_0x7c3f83(0x30a))),_0x2fb315['toString']();}async[_0x4d7826(0xe9)](){const _0x2814ae=_0x4d7826;var _0xcceb8b,_0x2e758e,_0x340b72;let _0x57d7b2=this['_configService'][_0x2814ae(0xf5)](_0xe6392a),_0x5a3db5=(_0xcceb8b=_0x57d7b2==null?void 0x0:_0x57d7b2[_0x2814ae(0x323)])==null?_0x541f21:_0xcceb8b;return(_0x2e758e=(_0x340b72=(await this[_0x2814ae(0x30c)][_0x2814ae(0x17a)](_0x5a3db5,{'headers':{'Content-Type':'application/json'}}))[_0x2814ae(0x213)])==null?void 0x0:_0x340b72[_0x2814ae(0x22f)])==null?'':_0x2e758e;}};qn=Y([J(0x0,_0x2975e5(_0x2bf279)),J(0x1,_0x2975e5(_0x30454a)),J(0x2,_0x138612),J(0x3,_0x2e569c),J(0x4,_0x16328b)],qn);let Jn=class extends _0x4f1642{constructor(_0x1861b7,_0x3dafed,_0x2e1812){super(),this['_instanceService']=_0x1861b7,this['_httpService']=_0x3dafed,this['_configService']=_0x2e1812;}async[_0x4d7826(0x117)](_0x1e25c3,_0x322ff1,_0x3cff6d,..._0x4dc22a){const _0x490c20=_0x4d7826;var _0x271330,_0x490f85,_0x10deca,_0x1873c1;let _0x3705a6=this[_0x490c20(0x15a)]['getFocusedUnit']();if(!_0x3705a6)throw Error(_0x490c20(0x1f7));let _0x378d9f=((_0x271330=this[_0x490c20(0x1df)][_0x490c20(0xf5)](_0x1c3344))==null?_0x2bd71f:_0x271330)+'/'+_0x1e25c3+'/run/'+_0x322ff1,_0x5f26c1={'scriptId':_0x1e25c3,'runId':(_0x490f85=new URL(window[_0x490c20(0x1a1)]['href'])[_0x490c20(0x23f)]['get']('runId'))==null?'':_0x490f85,'function':_0x322ff1,'unitId':_0x3705a6[_0x490c20(0x2a9)](),'argsOfFunction':JSON['stringify'](_0x4dc22a),'invokeId':(_0x10deca=_0x3cff6d[_0x490c20(0x1f8)])==null?'':_0x10deca,'executionId':(_0x1873c1=_0x3cff6d['executionId'])==null?'':_0x1873c1};try{let _0x508097=await this['_httpService'][_0x490c20(0x283)](_0x378d9f,{'body':_0x5f26c1});return _0x508097[_0x490c20(0x213)]['error']&&_0x508097['body'][_0x490c20(0x1c6)][_0x490c20(0x185)]!==_0x2dbe68['OK']?_0x490c20(0x31e):_0x508097[_0x490c20(0x213)][_0x490c20(0x2d8)];}catch{return _0x490c20(0x31e);}}};Jn=Y([J(0x0,_0x4aed1f),J(0x1,_0x2975e5(_0x30454a)),J(0x2,_0x138612)],Jn);const Yn=0x7530,Xn=_0x4d7826(0x2bd);var Zn=class extends _0x4f1642{constructor(){const _0x2c0965=_0x4d7826;super(),q(this,_0x2c0965(0xf7),_0x5d1e23()),q(this,'_selfUnitIDs',new Set()),q(this,_0x2c0965(0x27a),new Map()),q(this,_0x2c0965(0x18d),null),q(this,_0x2c0965(0x1fc),new Map()),q(this,_0x2c0965(0x1c7),new Map()),this['_init']();}[_0x4d7826(0x315)](){const _0x82b81d=_0x4d7826;super['dispose'](),this[_0x82b81d(0x1fc)][_0x82b81d(0x1b4)]((_0x560c6c,_0xbed634)=>this[_0x82b81d(0x1a5)](_0xbed634)),this[_0x82b81d(0x18d)]&&window[_0x82b81d(0x19f)](this[_0x82b81d(0x18d)]);}[_0x4d7826(0x24e)](_0x56db4a){const _0x27b127=_0x4d7826;return this['_ensureSubject'](_0x56db4a)[_0x27b127(0x18b)](_0x4aef9c());}[_0x4d7826(0x2f2)](_0x2be8d1){const _0x40e3a2=_0x4d7826;this['_selfUnitIDs']['size']===0x0&&this[_0x40e3a2(0x1e9)](),this['_selfUnitIDs'][_0x40e3a2(0x1ba)](_0x2be8d1),this['_send']({'type':0x0,'memberID':this[_0x40e3a2(0xf7)],'unitIDs':[_0x2be8d1],'isForwarded':!0x1});}[_0x4d7826(0x1bd)](_0x3cb46f){const _0x18eedd=_0x4d7826;this[_0x18eedd(0x106)][_0x18eedd(0x111)](_0x3cb46f),this['_selfUnitIDs'][_0x18eedd(0x161)]===0x0&&this[_0x18eedd(0x18d)]&&window['clearInterval'](this[_0x18eedd(0x18d)]);}[_0x4d7826(0x256)](){const _0x4a6d9f=_0x4d7826;this[_0x4a6d9f(0x2f1)](_0x2994ac(_0x38baf8(window,_0x4a6d9f(0x252))[_0x4a6d9f(0x2e4)](_0x3c78e4=>{const _0x5de218=_0x4a6d9f;if(_0x3c78e4['key']!==Xn||!_0x3c78e4[_0x5de218(0x171)])return;let _0x2aa88c=JSON[_0x5de218(0x1d0)](_0x3c78e4[_0x5de218(0x171)]);this[_0x5de218(0x289)](_0x2aa88c);}))),window[_0x4a6d9f(0x291)](_0x4a6d9f(0x1be),()=>this[_0x4a6d9f(0x201)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4a6d9f(0xdd)](this[_0x4a6d9f(0x106)])}));}[_0x4d7826(0x289)](_0x1eac68){const _0x5e03dc=_0x4d7826;switch(_0x1eac68['type']){case 0x0:this[_0x5e03dc(0xff)](_0x1eac68);break;case 0x1:this['_handleLeaveEvent'](_0x1eac68);break;case 0x2:this['_handleHeartbeatEvent'](_0x1eac68);break;}}[_0x4d7826(0xff)](_0x468333){const _0x4e8748=_0x4d7826;let {unitIDs:_0x14fa8d,memberID:_0x375704,isForwarded:_0x58c209}=_0x468333;_0x14fa8d[_0x4e8748(0x1b4)](_0x5171ee=>{const _0x93f599=_0x4e8748;if(!_0x58c209&&this[_0x93f599(0x27a)][_0x93f599(0x1a3)](_0x5171ee)&&this[_0x93f599(0xf9)](_0x5171ee)[_0x93f599(0x2b2)](_0x2a0e65[_0x93f599(0x195)]),!this[_0x93f599(0x27a)][_0x93f599(0x1a3)](_0x5171ee)||!this['_unitOnClients'][_0x93f599(0x17a)](_0x5171ee)[_0x93f599(0x1a3)](_0x375704)){let _0x5720f0=this[_0x93f599(0x27a)][_0x93f599(0x17a)](_0x5171ee)||new Set();_0x5720f0[_0x93f599(0x1ba)](_0x375704),this[_0x93f599(0x27a)][_0x93f599(0x209)](_0x5171ee,_0x5720f0),this[_0x93f599(0x2ad)](_0x375704);}}),_0x58c209||this[_0x4e8748(0x201)]({'type':0x0,'memberID':this[_0x4e8748(0xf7)],'unitIDs':[...this[_0x4e8748(0x106)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x48a56e){const _0x12dd42=_0x4d7826;this[_0x12dd42(0x1a5)](_0x48a56e);let _0x215615=window[_0x12dd42(0x1f2)](()=>{const _0x3fc760=_0x12dd42;this[_0x3fc760(0x27a)]['forEach'](_0x48b3cf=>{const _0x4d0bfe=_0x3fc760;_0x48b3cf[_0x4d0bfe(0x111)](_0x48a56e);});},Yn*0x2);this[_0x12dd42(0x1fc)]['set'](_0x48a56e,_0x215615);}[_0x4d7826(0x1a5)](_0x21ec10){const _0x3c35eb=_0x4d7826;if(this[_0x3c35eb(0x1fc)][_0x3c35eb(0x1a3)](_0x21ec10)){let _0x1aaa2c=this[_0x3c35eb(0x1fc)][_0x3c35eb(0x17a)](_0x21ec10);_0x1aaa2c&&window[_0x3c35eb(0x2c8)](_0x1aaa2c),this['_clearOtherTimers'][_0x3c35eb(0x209)](_0x21ec10,null);}}['_handleLeaveEvent'](_0x38597e){const _0x268ca3=_0x4d7826;let {memberID:_0xce487b,unitIDs:_0x4ba927}=_0x38597e;_0x4ba927['forEach'](_0x3452d9=>{const _0x4cf7c1=_0x2258;var _0x2023d2;let _0x909dc0=this[_0x4cf7c1(0x27a)][_0x4cf7c1(0x17a)](_0x3452d9);_0x909dc0&&(_0x909dc0['delete'](_0xce487b),(_0x2023d2=this[_0x4cf7c1(0xf9)](_0x3452d9))==null||_0x2023d2[_0x4cf7c1(0x2b2)](_0x909dc0['size']===0x0?_0x2a0e65['NO_OTHER_CLIENTS_EDITING']:_0x2a0e65[_0x4cf7c1(0x195)]));}),this[_0x268ca3(0x1a5)](_0xce487b);}[_0x4d7826(0x2d1)](_0x40d710){const _0x22f11a=_0x4d7826;this[_0x22f11a(0x2ad)](_0x40d710['memberID']);}['_send'](_0x2ba593){const _0x5e3845=_0x4d7826;localStorage[_0x5e3845(0x295)](Xn,JSON[_0x5e3845(0x326)](_0x2ba593));}[_0x4d7826(0x1e9)](){const _0x4f3cb0=_0x4d7826;this['_heartbeatTimer']=window[_0x4f3cb0(0x259)](()=>{const _0x3b496f=_0x4f3cb0;this['_send']({'type':0x2,'memberID':this[_0x3b496f(0xf7)]});},Yn);}[_0x4d7826(0xf9)](_0x46daed){const _0xddc20=_0x4d7826;return this[_0xddc20(0x1c7)][_0xddc20(0x1a3)](_0x46daed)||this[_0xddc20(0x1c7)][_0xddc20(0x209)](_0x46daed,new _0x57044e(_0x2a0e65['NO_OTHER_CLIENTS_EDITING'])),this[_0xddc20(0x1c7)][_0xddc20(0x17a)](_0x46daed);}};export{qn as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Fn as IURLService,Jn as RemoteUniscriptService,An as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,Zn as WebBrowserSingleActiveUnitService};