@univerjs-pro/collaboration-client-ui 0.12.2 → 0.12.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 (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +18 -18
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xd869(_0x1dc9d5,_0x23723e){const _0x5f3338=_0x5f33();return _0xd869=function(_0xd869b9,_0x1602dd){_0xd869b9=_0xd869b9-0x1ea;let _0x230744=_0x5f3338[_0xd869b9];return _0x230744;},_0xd869(_0x1dc9d5,_0x23723e);}function _0x5f33(){const _0x1515d6=['href','_updateLocalCursor','dispose','collabStatus.offline','_textBubble','getFocusedUnit','_hasFormulaInDirtyRanges','INVITE_CODE_REQUIRED','@univerjs-pro/collaboration-client','_initWindowErrorListener','_handleEvent','_docTransformStateCacheService','TOO_MANY_REQUESTS','OffLineIcon','now','_cursors','stage','UniverProCollaborationClientUi','_syncEditingCollabCursorService','cursorInfo','url(#off-line-icon_clip0_910_343)','rgba(255,\x20255,\x20255,\x200.01)','with','whenReady','on-line-icon_clip0_910_349','m1Prime','_showGuardMessage','editingUnit','_online','ENTITLE_CHAT_LIMIT_EXCEED','handleInsertCol','UniverRpc','forwardRef','_anchorDot','forEach','_status$','FromArray','_docSkeleton','enableFrontendLog','currentColor','setShapeProps','height','getViewport','/universer-api/license/formula/limit/start','hovered','INVALID_ARGUMENT','SheetSkeletonManagerService','_localStorageService','IDocClipboardService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_updateURLWithCurrentState','NOT_COLLAB','currentSkeleton$','beginPath','@univerjs/drawing','FormulaExecutedStateType','_onCursorDelete','SetSelectionsOperation','Shape','MOBILE_VERIFY_CODE_MISMATCH','YUUMI_ASYNCIO_CANCELLED','_document','then','origin','string','transformRemoteChangeset','getCellPositionByOffset','url(#on-line-icon_clip0_910_349)','AUTHORIZE_CODE_ILLEGAL','registerBeforeClose','CONNECTOR_DATA_TOO_LARGE','APPLY_NON_SEQUENTIAL_REVISION','location','runOnServer','throttleTime','ILogService','CollaborationDataLoaderController','_initCommandExecutedListener','startsWith','_localeService','session.collaboration-timeout','shift','UniverInstanceType','triggerDblclick','transformByState','SetTextSelectionsOperation','Disposable','dispose$','SetDocZoomRatioOperation','univer-flex\x20univer-items-center','ENSURE_SNAPSHOT_EXECUTION','DependentOn','registerRefRange','setConfig','getActiveRange','_transformPreviousActiveRange','_colorIndex','_docTransformSelectionsService','PENDING','UPDATE_CURSOR','_toggleOffline','registerRenderModule','m2Prime','_entities','getValue','switchMap','_logService','_checkAndWaitForCalculationPermission','_init','UniverDrawing','_assignedColors','show','259329UrHHwt','_hover','SetFormulaCalculationStartMutation','RemoveColCommandId','LICENSE_EXPORT_SIZE_EXCEEDED','reconnect','YUUMI_SUBSCRIPTION_NOT_FOUND','limitInfo','type','deserializeRangeWithSheet','sessionStatus$','425752JqPTVa','_hideTimer','getColor','colorChannel1','UNDEFINED','ENTITLE_REPORT_LIMIT_EXCEED','catch','history','@univerjs/ui','random','getOwnPropertyDescriptor','searchParams','startColumn','14RCztlw','size','DocCollaborationEntity','stringify','IRenderManagerService','APPLY_DUPLICATED','setStateCache','ENTITLE_DUP_SUBSCRIPTION','1543959JwKbjP','clipPath','startRow','SYNCED','_handleLeaveEvent','transformStateCache','connectInjector','runId','getTypeOfUnitAdded$','TEXT_RANGE_LAYER_INDEX','_setFormulaLimitStatus','imageSourceType','rxjs','ALREADY_EXISTS','@univerjs/docs-ui','save','UniverProCollaborationClient','@univerjs/sheets','WebURLService','min','_createSocketURL','_getFormulaLimitStatus','_cursorInfo$','EMAIL_HAS_BEEN_BOUND','DeleteRangeMoveLeftCommandId','makeDirty','endRow','tag','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','UNIVER_SHEET','addObject','_clearOtherTimers','_startDocCollabCursor','UniverNetwork','_getScale','getUniverSheetInstance','CollaborationEvent','getMember','getCollabEntity$','shareReplay','executeCommand','handleMoveRange','distinctUntilChanged','from','error','_initStatusListener','unitID','SheetsSelectionsService','UNIVER_DOC','urlChange$','_injector','LOGIN_FAILED','HEADER_MENU','runRefRangeMutations','off-line-icon','SNAPSHOT_INVALID_SNAPSHOT','handleInsertRangeMoveDown','NodePositionConvertToRectRange','ENTITLE_CAN_NOT_BUY_LOWER_OTP','22mwYeYY','/universer-api/license/formula/limit/done','OTHER_CLIENT_EDITING','COMPLETION_FINISHED','sheetID','labelPosition','addObjects','INotificationService','removeParam','collab-client.tooltip.reconnect','#FFF','disposeUnit','CollaborationUIEventService','CHANGESET_REVISION_CONFILICT','width','toStringTag','CommandType','Tools','REDEMPTION_CODE_HAS_BEEN_CREATED','MemberService','subscribeEvent','UniverEngineFormula','cursorInfo$','totalFormulasToCalculate','clsx','_cursorShapes','Plugin','_handleHeartbeatEvent','WECHAT_HAS_BEEN_BOUND','UniverSheets','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','beforeCommandExecuted','on-line-icon','LOGIN_TOKEN_PROCESSING_FAILED','_getSessionTicket','params','handleInsertRangeMoveRight','@univerjs/design','_transformService','undoState','[Window\x20Error]:\x20','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','PAYMENT_CHANNEL_NOT_SUPPORT','collabStatus.synced','VIEW_MAIN','ThemeService','operators','_saveTaskMap','_collabSessionService','InsertRangeMoveRightCommandId','svg','COLORS','0\x200\x2017\x2016','max','_lastPointer','fromEvent','_taskIds','UNAUTHENTICATED','BrowserCollaborationSocketService','attrs','DataLoaderService','fill','debounceTime','USER_NOT_INVITED_CODE','UniverEngineRender','RxDisposable','pipe','ITransformService','RevisionService','getCellMatrix','UnitStatus','sessionTicket','HTTPService','@univerjs/engine-formula','complete','maxFormulaLimit','_dataLoaderService','current','_initStatusComponent','map','defineProperty','_collaborationUIEventService','DisposableCollection','filter','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_instanceService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','2226fZHjkT','handleInsertRow','debounce','_config','RegularPolygon','handleDeleteRangeMoveLeft','getTypeOfUnitDisposed$','white','_httpService','UniverSheetsUi','_handleJoinEvent','_docClipboardService','stageInfo','isTransformMutationFailure','getLocalCacheKey','parseInt','getSkeleton','replaceState','_id','DOC_RANGE_TYPE','jsx','textRanges','row','_colorAssignService','children','restore','_refreshCollabCursors','ILocalStorageService','DEFAULT_WS_SESSION_TICKET_URL','PY_RUNTIME_SCRIPT_ERROR','onRendered','removeEventListener','_applyCommand','join','transformSelections','code','subUnitId','subunit','session.will-retry','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initEntityListener','JOIN_ROOM_FAILED','toDisposable','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','none','_initUserListener','_sheetSkeletonManagerService','CanceledError','react','_session','/universer-api/license/formula/limit/status','black','_color','startFormulaLimitUrl','trim','_revisionService','_anchor','_scheduleSaving','MoveRangeCommandId','_collaborationController','CollaborationUIEventId','FETCH_MISS','ICommandService','UniverDesign','onCommandExecuted','IUIPartsService','OnLineIcon','0\x200\x2016\x2016','_ensureSubject','_beforeCloseService','setTimeout','YUUMI_URL_COL_OUT_OF_RANGE','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_startCalculationLimit','text','NOT_FOUND','getSheetBySheetId','IMessageService','stack','react/jsx-runtime','CollaborationStatus','combineLatest','length','_updateSubUnitFromURLParams','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Vector2','top','getRangePointData','_name','YUUMI_AI_RUN_FAILED','getVpScrollXYInfoByPosToVp','ENTITLE_INSUFFICIENT_QUOTA','_docSkeletonManagerService','NO_OTHER_CLIENTS_EDITING','formula.calculation.started','_pollingInterval','_refRangeService','MOBILE_HAS_BEEN_BOUND','ISocketService','ERROR_AGAIN','uni.network.url-service','permission.title','syncEditingCollabCursor','_transformUndoRedoStack','evenodd','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getOffsetConfig','engine','72FWqkmd','30SYEfYo','entityInit$','_drawTextRange','unit','InsertRangeMoveDownCommandId','USER_NOT_FOUND','memberID','_scheduleClearOtherTimer','addClipboardHook','collab-rect-range-','http://www.w3.org/2000/svg','OFFLINE','socket$','storage','_registerRenderDependencies','onPointerMove$','bottom','M0\x200H16V16H0z','get','RemoveRowCommandId','_unitStatus','750688NEMche','DATA_SOURCE_TOO_LARGE','roomMembers','EMAIL_VERIFY_CODE_MISMATCH','UniverCollaborationClientUIPlugin','...','ILocalCacheService','createElement','unshift','all','getConfig','lineno','_initUnhandledRejectionListener','getStateCache','saveImage','INVITE_CODE_HAS_BEEN_UES','YUUMI_CONNECTOR_URL_NOT_FOUND','getDocRanges','resize','name','_registerDependencies','CONFLICT','OTHER_CLIENTS_EDITING','3615UXBiDd','UniverProCollaboration','popstate','updateOfflineData','CollaborationSessionService','saveOfflineData','search','disposeWithMe','_initCommandInterceptor','DocSkeletonManagerService','CollaborationController','LICENSE_DISTRO_REJECTED','isArray','_heartbeatTimer','getAncestorScale','green.600','IRemoteInstanceService','INVITE_CODE_ALREADY_BOUND','measureText','ticket','ENTITLE_NEED_BILLING_ADDRESS','arc','REDEMPTION_CODE_INACTIVE','_collaborationSessionService','_uiPartsService','_selfUnitIDs','RECT','setAlpha','skeleton','_docStateChangeManagerService','handleIRemoveRow','SNAPSHOT_HAS_BEEN_REMOVED','_urlService','bind','takeUntil','UniverDocsUi','mask','_startSheetCollabCursor','idSuffix','releaseFormulaLimitUrl','invokeId','getMemberID','closePath','red.300','doc.mutation.rich-text-editing','_disabled','_renderManagerService','_checkCalculationAvailable','_monkeyPatchLogService','collaboration-client.offline-data-not-saved','functionsExecutedState','collabStatus.conflict','addEventListener','ColorKit','SOCKET_FAILED_RETRY','pushState','_handleHover','mapTo','_render','_initEvent','getUnit','useObservable','purple.300','set','_hovered','_removeCollabCursors','getSheetId','_setupSubUnitSync','values','includes','NodePositionConvertToCursor','Error','createSocket','saveTaskMap','activeSheet$','permission.content','_univerInstanceService','LICENSE_MAX_UNITS_EXCEEDED','fillRule','currentTheme$','translate(.97)','object','_initDependencies','send','formula.calculation.unable','BehaviorSubject','236985OBhAqh','backgroundColor','APPLY_PERMISSION_DENIED','find','Loading','SheetCollabCursorShape','IConfigService','2466924jgvjOc','YUUMI_NO_CUBOID_FOR_QUESTION','@univerjs/network','_cursor','_backgroundColor','endColumn','APPLY_REVISION_CONFILICT','getUnitStatus$','touchDependencies','_transformHistoryAndStateStack','setItem','APPLY_REJECT','_uploadLog','next','deepClone','getRenderById','collaboration.single-unit.warning','REDEMPTION_INVALID_CODE','clearTimeout','ranges','_lastResponseTimestamp','pluginName','IUniverInstanceService','_releaseCalculationLimit','AWAITING_WITH_PENDING','_messageService','actions','Rectangle','_localCacheService','unitId','getCoordByCell','Injector','_collabCursorState$','Subject','SessionStatus','useRef','MessageType','body','assignAColorForMemberID','redoState','focused$','fillText','path','univer-mr-2\x20univer-flex\x20univer-text-xl','_onRefRangeChange','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','transform','application/json','YUUMI_UNABLE_LOAD_URL','LocaleService','selection','replace','SetFormulaCalculationNotificationMutation','CLOSE_ROOM','init','isActive','[Unhandled\x20Rejection]:\x20','@univerjs/core','disableLocalCache','fromEventSubject','unsubscribe','_onCursorUpdate','off-line-icon_clip0_910_343','_labelPosition','_send','flatMap','getformulaLimitStatusUrl','unhandledrejection','_clearPolling','findNodePositionByCharIndex','_getSheetObject','PERMISSION_DENIED','onPointerEnter$','_getAnchorBounding','_maxFormulaLimit','merge','has','_scheduleHeartbeat','collabStatus.notCollab','REDEMPTION_USER_REDEEM_TIMES_EXCEED','transformIMECache','loadUnit','INVALID_INVITE_CODE','eventID','Optional','setParam','_scene','_draw','CURRENT_STATUS_CANNOT_OPERATE','START_CALCULATION','collaboration-client-ui.config','exhaustSavingTask','_doCreateSocket','parse','generateRandomId','UniverCollaborationClientPlugin','LICENSE_IMPORT_SIZE_EXCEEDED','push','Warning','USERS_LEAVE','range','enableLocalCache','defs','transformMutation','subscribe','_toggleOnline','Workbook','LOCAL_CACHE_INTERVAL','collab-text-range-','?taskId=','xlink:href','UniverUi','transformMutationsWithChangeset','fillStyle','drawWith','selections','_eventUnsubscribe','clearInterval','event$','Rect','_setupBeforeClosingHandler','currentUsage','_currentUsage','getParam','_getMergeRange','sheetId','jsxs','_memberService','result','getUndoRedoMutationParamsCache','_themeService','SHEET_VIEWPORT_KEY','_docTransformIMECacheService','delete','split','add','_drawAnchor','contains','_range','_commandService','requireSession','column','DocStateChangeManagerService','color','round','mutations','docStateChange$','DesktopCollaborationStatusDisplayController','DocIMEInputManagerService','dirtyRanges','YUUMI_RATE_OVER_LIMIT','EffectRefRangId','SUCCESS','getCurrentRevOfUnit','getColorFromTheme','@univerjs-pro/collaboration','displayName','status$','toString','_shapes','ACTIVE_UNIT_EVENT_CHANNEL','reason','UNRECOGNIZED','DocSelectionManagerService','getCollabCursors$','_updateCollabCursors','post','_removeClearOtherTimer','colno','handleIRemoveCol','_entityInit$','message','replaceDocRanges','isEditing','hide','exports','@univerjs/rpc','_collabCursorController','SetWorksheetActivateCommand','_roomMembers$','handleDeleteRangeMoveUp','div','Inject','_configService','data','Failed','INTERNAL_ERROR','formula.calculation.waiting','debug','REDEMPTION_CODE_FULLY_REDEEMED','1em','RichTextEditingMutation','lineTo','TEXT','_imageIoService','_unitOnClients','getUnitId','amd','RemoteUniscriptService','_cachedData','newValue','isTransformMutationsWithChangesetSuccess','_saveCache','registerComponent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_memberID','asObservable','[CollaborationDataLoaderController]','LOCAL_CACHE_INTERVAL_KEY','SUBMIT_CHANGESET_TIMEOUT','_notificationService','_context','symbol','wsSessionTicketUrl','some','IImageIoService'];_0x5f33=function(){return _0x1515d6;};return _0x5f33();}(function(_0x5d7b73,_0x1d1cb9){const _0x32d03d=_0xd869,_0x251028=_0x5d7b73();while(!![]){try{const _0x2fee79=-parseInt(_0x32d03d(0x4c7))/0x1+parseInt(_0x32d03d(0x3ab))/0x2*(parseInt(_0x32d03d(0x244))/0x3)+-parseInt(_0x32d03d(0x39e))/0x4+-parseInt(_0x32d03d(0x1ee))/0x5*(-parseInt(_0x32d03d(0x445))/0x6)+-parseInt(_0x32d03d(0x393))/0x7*(-parseInt(_0x32d03d(0x4b1))/0x8)+parseInt(_0x32d03d(0x3b3))/0x9*(parseInt(_0x32d03d(0x4b2))/0xa)+parseInt(_0x32d03d(0x3ee))/0xb*(-parseInt(_0x32d03d(0x24b))/0xc);if(_0x2fee79===_0x1d1cb9)break;else _0x251028['push'](_0x251028['shift']());}catch(_0x1d844d){_0x251028['push'](_0x251028['shift']());}}}(_0x5f33,0x61e62),function(_0x56a97c,_0x1aab00){const _0x16dc1c=_0xd869;typeof exports==_0x16dc1c(0x23f)&&typeof module<'u'?_0x1aab00(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x16dc1c(0x310)]?define([_0x16dc1c(0x2fa),_0x16dc1c(0x494),_0x16dc1c(0x32b),_0x16dc1c(0x284),_0x16dc1c(0x3a6),'rxjs',_0x16dc1c(0x413),_0x16dc1c(0x475),_0x16dc1c(0x2fb),_0x16dc1c(0x3c4),'@univerjs/engine-render',_0x16dc1c(0x24d),_0x16dc1c(0x3c1),_0x16dc1c(0x359),_0x16dc1c(0x2e6),'@univerjs/docs',_0x16dc1c(0x437),'rxjs/operators','@univerjs/sheets-ui'],_0x1aab00):(_0x56a97c=typeof globalThis<'u'?globalThis:_0x56a97c||self,_0x1aab00(_0x56a97c[_0x16dc1c(0x334)]={},_0x56a97c['React'],_0x56a97c[_0x16dc1c(0x3c3)],_0x56a97c['UniverCore'],_0x56a97c[_0x16dc1c(0x2ba)],_0x56a97c[_0x16dc1c(0x3bf)],_0x56a97c[_0x16dc1c(0x484)],_0x56a97c['React'],_0x56a97c[_0x16dc1c(0x342)],_0x56a97c[_0x16dc1c(0x40b)],_0x56a97c[_0x16dc1c(0x42e)],_0x56a97c[_0x16dc1c(0x3d4)],_0x56a97c[_0x16dc1c(0x211)],_0x56a97c[_0x16dc1c(0x390)],_0x56a97c[_0x16dc1c(0x1ef)],_0x56a97c['UniverDocs'],_0x56a97c[_0x16dc1c(0x403)],_0x56a97c['rxjs'][_0x16dc1c(0x41c)],_0x56a97c[_0x16dc1c(0x44e)]));}(this,function(_0x3e1990,_0x28f318,_0x493e59,_0x51c091,_0x47d161,_0x2d756d,_0x1039db,_0x48ac88,_0x455030,_0x184ff5,_0x396fb6,_0x38be65,_0x594fa4,_0x2e6991,_0x5b9cab,_0x37270e,_0xfcd088,_0xe24628,_0x5aaf45){'use strict';const _0x25c8ac=_0xd869;var _0x16d5e3=Object[_0x25c8ac(0x43e)],_0x108762=(_0x35cb87,_0x2bb3a0,_0x55b7ef)=>_0x2bb3a0 in _0x35cb87?_0x16d5e3(_0x35cb87,_0x2bb3a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b7ef}):_0x35cb87[_0x2bb3a0]=_0x55b7ef,_0x3a54cf=(_0x6e6c74,_0xb6a63b,_0x48e5f6)=>_0x108762(_0x6e6c74,typeof _0xb6a63b!=_0x25c8ac(0x31f)?_0xb6a63b+'':_0xb6a63b,_0x48e5f6);function _0x30e69f({ref:_0x32af84,..._0xd224fa}){const _0x334bda=_0x25c8ac,{icon:_0x4edddc,id:_0x483b3e,className:_0x235cc8,extend:_0x36fd03,..._0x4ce8ec}=_0xd224fa,_0x50b6fd=('univerjs-icon\x20univerjs-icon-'+_0x483b3e+'\x20'+(_0x235cc8||''))[_0x334bda(0x47b)](),_0xb16133=_0x48ac88[_0x334bda(0x26e)]('_'+_0x3cd384());return _0x1824cc(_0x4edddc,''+_0x483b3e,{'defIds':_0x4edddc['defIds'],'idSuffix':_0xb16133[_0x334bda(0x43b)]},{'ref':_0x32af84,'className':_0x50b6fd,..._0x4ce8ec},_0x36fd03);}function _0x1824cc(_0x139793,_0x433eee,_0x44ece7,_0x139346,_0x5d40b3){const _0x4c3fb8=_0x25c8ac;return _0x48ac88['createElement'](_0x139793[_0x4c3fb8(0x3ce)],{'key':_0x433eee,..._0x3bb75a(_0x139793,_0x44ece7,_0x5d40b3),..._0x139346},(_0x20c545(_0x139793,_0x44ece7)[_0x4c3fb8(0x45d)]||[])[_0x4c3fb8(0x43d)]((_0x581013,_0x208988)=>_0x1824cc(_0x581013,_0x433eee+'-'+_0x139793[_0x4c3fb8(0x3ce)]+'-'+_0x208988,_0x44ece7,void 0x0,_0x5d40b3)));}function _0x3bb75a(_0x34d2f4,_0x867fd9,_0xaa8e4e){const _0x2ccbd9=_0x25c8ac,_0x8552e6={..._0x34d2f4['attrs']};_0xaa8e4e!=null&&_0xaa8e4e[_0x2ccbd9(0x3a1)]&&_0x8552e6['fill']===_0x2ccbd9(0x3a1)&&(_0x8552e6['fill']=_0xaa8e4e['colorChannel1']),_0x34d2f4[_0x2ccbd9(0x3ce)]===_0x2ccbd9(0x212)&&_0x8552e6['id']&&(_0x8552e6['id']=_0x8552e6['id']+_0x867fd9[_0x2ccbd9(0x214)]),Object['entries'](_0x8552e6)[_0x2ccbd9(0x345)](([_0x300140,_0x11e6e4])=>{const _0x3fc173=_0x2ccbd9;_0x300140===_0x3fc173(0x212)&&typeof _0x11e6e4==_0x3fc173(0x363)&&(_0x8552e6[_0x300140]=_0x11e6e4[_0x3fc173(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x867fd9['idSuffix']+')'));});const {defIds:_0x444ff1}=_0x867fd9;return!_0x444ff1||_0x444ff1[_0x2ccbd9(0x497)]===0x0||(_0x34d2f4[_0x2ccbd9(0x3ce)]==='use'&&_0x8552e6[_0x2ccbd9(0x2b9)]&&(_0x8552e6[_0x2ccbd9(0x2b9)]=_0x8552e6[_0x2ccbd9(0x2b9)]+_0x867fd9[_0x2ccbd9(0x214)]),Object['entries'](_0x8552e6)[_0x2ccbd9(0x345)](([_0x5b4e43,_0x3327de])=>{const _0x27d23e=_0x2ccbd9;typeof _0x3327de=='string'&&(_0x8552e6[_0x5b4e43]=_0x3327de[_0x27d23e(0x27e)](/url\(#(.*)\)/,'url(#$1'+_0x867fd9[_0x27d23e(0x214)]+')'));})),_0x8552e6;}function _0x20c545(_0x4cbd60,_0x2bb8ec){const _0x280936=_0x25c8ac;var _0x53d5ca;const {defIds:_0x1b606f}=_0x2bb8ec;return!_0x1b606f||_0x1b606f[_0x280936(0x497)]===0x0?_0x4cbd60:_0x4cbd60[_0x280936(0x3ce)]===_0x280936(0x2b1)&&((_0x53d5ca=_0x4cbd60['children'])!=null&&_0x53d5ca[_0x280936(0x497)])?{..._0x4cbd60,'children':_0x4cbd60['children']['map'](_0xd9bd40=>typeof _0xd9bd40['attrs']['id']=='string'&&_0x1b606f&&_0x1b606f[_0x280936(0x233)](_0xd9bd40['attrs']['id'])?{..._0xd9bd40,'attrs':{..._0xd9bd40[_0x280936(0x429)],'id':_0xd9bd40[_0x280936(0x429)]['id']+_0x2bb8ec[_0x280936(0x214)]}}:_0xd9bd40)}:_0x4cbd60;}function _0x3cd384(){const _0x59fc07=_0x25c8ac;return Math[_0x59fc07(0x3a7)]()[_0x59fc07(0x2e9)](0x24)['substring'](0x2,0x8);}_0x30e69f[_0x25c8ac(0x2e7)]='UniverIcon';const _0x44a0c2={'tag':_0x25c8ac(0x420),'attrs':{'xmlns':_0x25c8ac(0x4bc),'fill':_0x25c8ac(0x471),'viewBox':_0x25c8ac(0x488),'width':_0x25c8ac(0x309),'height':_0x25c8ac(0x309)},'children':[{'tag':'g','attrs':{'clipPath':_0x25c8ac(0x337)},'children':[{'tag':_0x25c8ac(0x275),'attrs':{'stroke':_0x25c8ac(0x34a),'d':_0x25c8ac(0x48d),'strokeLinecap':_0x25c8ac(0x2db),'strokeLinejoin':_0x25c8ac(0x2db),'strokeWidth':1.2}}]},{'tag':_0x25c8ac(0x2b1),'attrs':{},'children':[{'tag':_0x25c8ac(0x3b4),'attrs':{'id':_0x25c8ac(0x289)},'children':[{'tag':_0x25c8ac(0x275),'attrs':{'fill':_0x25c8ac(0x44c),'d':_0x25c8ac(0x4c3)}}]}]}],'defIds':[_0x25c8ac(0x289)]},_0x203892=_0x48ac88['forwardRef'](function(_0x32a454,_0x3a44e2){const _0x3f9267=_0x25c8ac;return _0x48ac88[_0x3f9267(0x4ce)](_0x30e69f,Object['assign']({},_0x32a454,{'id':_0x3f9267(0x3e9),'ref':_0x3a44e2,'icon':_0x44a0c2}));});_0x203892[_0x25c8ac(0x2e7)]=_0x25c8ac(0x330);const _0x154113={'tag':_0x25c8ac(0x420),'attrs':{'xmlns':_0x25c8ac(0x4bc),'fill':'none','viewBox':_0x25c8ac(0x422),'width':_0x25c8ac(0x309),'height':_0x25c8ac(0x309)},'children':[{'tag':'g','attrs':{'clipPath':_0x25c8ac(0x366)},'children':[{'tag':_0x25c8ac(0x275),'attrs':{'stroke':_0x25c8ac(0x34a),'d':_0x25c8ac(0x444),'strokeLinecap':'round','strokeLinejoin':_0x25c8ac(0x2db),'strokeWidth':1.2}}]},{'tag':_0x25c8ac(0x2b1),'attrs':{},'children':[{'tag':_0x25c8ac(0x3b4),'attrs':{'id':_0x25c8ac(0x33b)},'children':[{'tag':_0x25c8ac(0x275),'attrs':{'fill':_0x25c8ac(0x44c),'d':_0x25c8ac(0x4c3),'transform':_0x25c8ac(0x23e)}}]}]}],'defIds':[_0x25c8ac(0x33b)]},_0xf8140=_0x48ac88[_0x25c8ac(0x343)](function(_0x38025a,_0x33f56d){const _0x5f2372=_0x25c8ac;return _0x48ac88[_0x5f2372(0x4ce)](_0x30e69f,Object['assign']({},_0x38025a,{'id':_0x5f2372(0x40e),'ref':_0x33f56d,'icon':_0x154113}));});_0xf8140[_0x25c8ac(0x2e7)]=_0x25c8ac(0x487);function _0x23753c(_0x4a96a6){const _0x5a20bf=_0x25c8ac;switch(_0x4a96a6){case _0x493e59[_0x5a20bf(0x495)][_0x5a20bf(0x4bd)]:return _0x5a20bf(0x326);case _0x493e59[_0x5a20bf(0x495)]['CONFLICT']:return _0x5a20bf(0x221);case _0x493e59[_0x5a20bf(0x495)][_0x5a20bf(0x482)]:return'collabStatus.fetchMiss';case _0x493e59[_0x5a20bf(0x495)]['NOT_COLLAB']:return _0x5a20bf(0x299);case _0x493e59['CollaborationStatus']['AWAITING']:case _0x493e59[_0x5a20bf(0x495)][_0x5a20bf(0x263)]:return'collabStatus.syncing';case _0x493e59['CollaborationStatus'][_0x5a20bf(0x3b6)]:case _0x493e59[_0x5a20bf(0x495)][_0x5a20bf(0x385)]:return _0x5a20bf(0x419);}}function _0x5d6759(_0x44027b){const _0x653721=_0x25c8ac,{status$:_0x1576dc}=_0x44027b,_0x3ba682=_0x47d161[_0x653721(0x22b)](_0x1576dc,_0x493e59[_0x653721(0x495)][_0x653721(0x356)]),_0x5e734d=_0x47d161['useDependency'](_0x51c091[_0x653721(0x27c)]),_0x24d327=_0x47d161['useDependency'](_0x493e59[_0x653721(0x1f2)]),_0x48ba29=_0x3ba682!==_0x493e59[_0x653721(0x495)][_0x653721(0x4bd)],_0x30645d=_0x5e734d['t'](_0x23753c(_0x3ba682)),_0x4c4784=_0x48ba29?_0x28f318[_0x653721(0x459)](_0xf8140,{}):_0x28f318[_0x653721(0x459)](_0x203892,{}),_0x5e0068=_0x48ac88['useCallback'](()=>{const _0x19623e=_0x653721;_0x48ba29||_0x24d327[_0x19623e(0x398)]();},[_0x48ba29,_0x24d327]);function _0x43d532(){const _0x425473=_0x653721;return _0x28f318[_0x425473(0x2c9)](_0x425473(0x300),{'className':_0x425473(0x37c),'onClick':_0x5e0068,'children':[_0x28f318[_0x425473(0x459)](_0x425473(0x300),{'className':_0x1039db[_0x425473(0x406)](_0x425473(0x276),{'univer-text-green-500':_0x48ba29,'univer-text-red-500':!_0x48ba29}),'children':_0x4c4784}),_0x28f318[_0x425473(0x459)](_0x425473(0x300),{'className':_0x425473(0x278),'children':_0x30645d})]});}return _0x48ba29?_0x43d532():_0x28f318[_0x653721(0x459)](_0x1039db['Tooltip'],{'title':_0x5e734d['t'](_0x653721(0x3f7)),'children':_0x43d532()});}var _0x5e3dad=Object[_0x25c8ac(0x3a8)],_0x2bba69=(_0x81345b,_0x31de25,_0xd45531,_0x849073)=>{const _0x4e76c0=_0x25c8ac;for(var _0x2a8da=_0x849073>0x1?void 0x0:_0x849073?_0x5e3dad(_0x31de25,_0xd45531):_0x31de25,_0x47a9a3=_0x81345b[_0x4e76c0(0x497)]-0x1,_0x39fba3;_0x47a9a3>=0x0;_0x47a9a3--)(_0x39fba3=_0x81345b[_0x47a9a3])&&(_0x2a8da=_0x39fba3(_0x2a8da)||_0x2a8da);return _0x2a8da;},_0x48ca72=(_0x16e758,_0x11d0fd)=>(_0x23e6cd,_0x3e52af)=>_0x11d0fd(_0x23e6cd,_0x3e52af,_0x16e758);_0x3e1990['DesktopCollaborationStatusDisplayController']=class extends _0x51c091[_0x25c8ac(0x379)]{constructor(_0x260071,_0x591f6d,_0x378f94,_0x53658d){const _0x3afe2a=_0x25c8ac;super(),_0x3a54cf(this,_0x3afe2a(0x346),new _0x2d756d[(_0x3afe2a(0x243))](_0x493e59[_0x3afe2a(0x495)][_0x3afe2a(0x356)])),(this[_0x3afe2a(0x23a)]=_0x260071,this['_injector']=_0x591f6d,this['_collaborationController']=_0x378f94,this[_0x3afe2a(0x206)]=_0x53658d,this['_initStatusComponent'](),this[_0x3afe2a(0x3e0)]());}[_0x25c8ac(0x3e0)](){const _0x346733=_0x25c8ac;this['disposeWithMe'](this['_univerInstanceService'][_0x346733(0x273)][_0x346733(0x430)](_0x2d756d[_0x346733(0x38c)](()=>{const _0x5e6a73=_0x346733,_0x2eed89=this['_univerInstanceService'][_0x5e6a73(0x328)]();return _0x2eed89?this['_collaborationController'][_0x5e6a73(0x3d9)](_0x2eed89[_0x5e6a73(0x30f)]()):_0x2d756d['of'](null);}),_0x2d756d[_0x346733(0x38c)](_0x5a8b79=>_0x5a8b79?_0x5a8b79[_0x346733(0x2e8)]:_0x2d756d['of'](_0x493e59[_0x346733(0x495)][_0x346733(0x356)])))[_0x346733(0x2b3)](_0x1c65cf=>{this['_status$']['next'](_0x1c65cf);}));}[_0x25c8ac(0x43c)](){const _0x3add05=_0x25c8ac;this[_0x3add05(0x1f5)](this['_uiPartsService'][_0x3add05(0x316)](_0x47d161['BuiltInUIPart'][_0x3add05(0x3e7)],()=>_0x47d161[_0x3add05(0x3b9)](_0x493f43({'status$':this[_0x3add05(0x346)][_0x3add05(0x319)]()}),this[_0x3add05(0x3e5)])));}},_0x3e1990[_0x25c8ac(0x2de)]=_0x2bba69([_0x48ca72(0x0,_0x51c091[_0x25c8ac(0x261)]),_0x48ca72(0x1,_0x51c091['Inject'](_0x51c091[_0x25c8ac(0x26a)])),_0x48ca72(0x2,_0x51c091['Inject'](_0x493e59[_0x25c8ac(0x1f8)])),_0x48ca72(0x3,_0x47d161[_0x25c8ac(0x486)])],_0x3e1990[_0x25c8ac(0x2de)]);function _0x493f43(_0x5bc3d3){const {status$:_0x4e46b8}=_0x5bc3d3;return function(){const _0x119f80=_0xd869;return _0x28f318[_0x119f80(0x459)](_0x5d6759,{'status$':_0x4e46b8});};}const _0x2e14a9=_0x51c091['createIdentifier'](_0x25c8ac(0x4a9));var _0x221104=Object[_0x25c8ac(0x3a8)],_0x128adc=(_0x254b44,_0x4d9bbb,_0x2f03a6,_0x52119c)=>{const _0x3c7ed7=_0x25c8ac;for(var _0x335886=_0x52119c>0x1?void 0x0:_0x52119c?_0x221104(_0x4d9bbb,_0x2f03a6):_0x4d9bbb,_0x549ef4=_0x254b44[_0x3c7ed7(0x497)]-0x1,_0x3f1bf4;_0x549ef4>=0x0;_0x549ef4--)(_0x3f1bf4=_0x254b44[_0x549ef4])&&(_0x335886=_0x3f1bf4(_0x335886)||_0x335886);return _0x335886;},_0x29596e=(_0x47bfb1,_0x387f04)=>(_0x5b7c78,_0x2d8f7a)=>_0x387f04(_0x5b7c78,_0x2d8f7a,_0x47bfb1);_0x3e1990[_0x25c8ac(0x36f)]=class extends _0x51c091[_0x25c8ac(0x42f)]{constructor(_0x332f48,_0x20132b,_0x36d830,_0x178ce9,_0x32a4f2){const _0x7a16ce=_0x25c8ac;super(),this[_0x7a16ce(0x20e)]=_0x332f48,this['_logService']=_0x20132b,this[_0x7a16ce(0x2d6)]=_0x36d830,this[_0x7a16ce(0x43a)]=_0x178ce9,_0x32a4f2?_0x32a4f2==null||_0x32a4f2[_0x7a16ce(0x33a)]()[_0x7a16ce(0x361)](()=>this[_0x7a16ce(0x38f)]()):(this['_logService'][_0x7a16ce(0x307)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x7a16ce(0x38f)]());}async[_0x25c8ac(0x38f)](){const _0x2c627a=_0x25c8ac,_0x1c83f0=this[_0x2c627a(0x20e)][_0x2c627a(0x2c6)](_0x2c627a(0x4b5)),_0x5c6c57=this[_0x2c627a(0x20e)][_0x2c627a(0x2c6)](_0x2c627a(0x39b)),_0x3ab3b2=this[_0x2c627a(0x20e)][_0x2c627a(0x2c6)]('subunit');if(!_0x1c83f0||!_0x5c6c57){this[_0x2c627a(0x38d)][_0x2c627a(0x307)](_0x2c627a(0x31a),_0x2c627a(0x46c));return;}const _0x9a8a59=await this['_dataLoaderService'][_0x2c627a(0x29c)](_0x1c83f0,Number(_0x5c6c57),_0x3ab3b2);_0x9a8a59&&_0x9a8a59 instanceof _0x51c091[_0x2c627a(0x2b5)]&&this[_0x2c627a(0x231)](_0x9a8a59);}async['_setupSubUnitSync'](_0x120cf5){const _0x101ca9=_0x25c8ac;await this[_0x101ca9(0x498)](_0x120cf5),_0x120cf5[_0x101ca9(0x238)][_0x101ca9(0x430)](_0x2d756d[_0x101ca9(0x210)](this['dispose$']))['subscribe'](_0x52ca8c=>{const _0x50afdc=_0x101ca9;_0x52ca8c&&this[_0x50afdc(0x355)](_0x52ca8c);}),this[_0x101ca9(0x20e)]['urlChange$'][_0x101ca9(0x430)](_0x2d756d[_0x101ca9(0x210)](this[_0x101ca9(0x37a)]))[_0x101ca9(0x2b3)](()=>this[_0x101ca9(0x498)](_0x120cf5));}[_0x25c8ac(0x355)](_0x46d2e2,_0x217078=!0x1){const _0x4f566d=_0x25c8ac,_0x1141c8=this[_0x4f566d(0x20e)][_0x4f566d(0x2c6)](_0x4f566d(0x46a));_0x46d2e2[_0x4f566d(0x230)]()!==_0x1141c8&&this[_0x4f566d(0x20e)][_0x4f566d(0x2a0)](_0x4f566d(0x46a),_0x46d2e2[_0x4f566d(0x230)](),_0x217078);}async[_0x25c8ac(0x498)](_0x41b7ca){const _0x2e3eb6=_0x25c8ac;var _0x38a41a;const _0x4f3eba=this[_0x2e3eb6(0x20e)]['getParam'](_0x2e3eb6(0x46a));if(!_0x4f3eba||!_0x41b7ca[_0x2e3eb6(0x491)](_0x4f3eba)){const _0x578749=_0x41b7ca['getUnhiddenWorksheets']()[0x0],_0xf2d36c=_0x41b7ca[_0x2e3eb6(0x491)](_0x578749);if(!_0xf2d36c)return;this[_0x2e3eb6(0x355)](_0xf2d36c,!0x0),await this[_0x2e3eb6(0x2d6)][_0x2e3eb6(0x3db)](_0x184ff5['SetWorksheetActivateCommand']['id'],{'unitId':_0x41b7ca['getUnitId'](),'subUnitId':_0x578749});return;}((_0x38a41a=_0x41b7ca['getActiveSheet']())==null?void 0x0:_0x38a41a[_0x2e3eb6(0x230)]())!==_0x4f3eba&&await this[_0x2e3eb6(0x2d6)][_0x2e3eb6(0x3db)](_0x184ff5[_0x2e3eb6(0x2fd)]['id'],{'unitId':_0x41b7ca[_0x2e3eb6(0x30f)](),'subUnitId':_0x4f3eba});}},_0x3e1990['CollaborationDataLoaderController']=_0x128adc([_0x29596e(0x0,_0x2e14a9),_0x29596e(0x1,_0x51c091['ILogService']),_0x29596e(0x2,_0x51c091[_0x25c8ac(0x483)]),_0x29596e(0x3,_0x51c091['Inject'](_0x493e59[_0x25c8ac(0x42a)])),_0x29596e(0x4,_0x51c091[_0x25c8ac(0x29f)](_0x455030[_0x25c8ac(0x1fe)]))],_0x3e1990['CollaborationDataLoaderController']);var _0x5ab5b8=Object[_0x25c8ac(0x3a8)],_0x114b66=(_0x3f606c,_0x4da2ed,_0x231806,_0x4abc6b)=>{const _0x2e326c=_0x25c8ac;for(var _0x32443c=_0x4abc6b>0x1?void 0x0:_0x4abc6b?_0x5ab5b8(_0x4da2ed,_0x231806):_0x4da2ed,_0x2dad0c=_0x3f606c[_0x2e326c(0x497)]-0x1,_0x1e3072;_0x2dad0c>=0x0;_0x2dad0c--)(_0x1e3072=_0x3f606c[_0x2dad0c])&&(_0x32443c=_0x1e3072(_0x32443c)||_0x32443c);return _0x32443c;},_0x715c48=(_0x2c07f6,_0x442b18)=>(_0x1bc16d,_0x2ba3ea)=>_0x442b18(_0x1bc16d,_0x2ba3ea,_0x2c07f6);let _0xee1fb5=class extends _0x51c091['RxDisposable']{constructor(_0x5af752,_0x56e938){const _0xc240b3=_0x25c8ac;super(),this[_0xc240b3(0x450)]=_0x5af752,this[_0xc240b3(0x30d)]=_0x56e938,this[_0xc240b3(0x38f)]();}[_0x25c8ac(0x38f)](){const _0x240618=_0x25c8ac,_0x7e188d=this;this[_0x240618(0x1f5)](this['_docClipboardService'][_0x240618(0x4ba)]({'onBeforePasteImage':async _0x3cd973=>{const _0x21e7eb=_0x240618,_0xba0326=await _0x7e188d[_0x21e7eb(0x30d)][_0x21e7eb(0x4d5)](_0x3cd973);return _0xba0326?{'source':_0xba0326['source'],'imageSourceType':_0xba0326[_0x21e7eb(0x3be)]}:null;}}));}};_0xee1fb5=_0x114b66([_0x715c48(0x0,_0x594fa4[_0x25c8ac(0x353)]),_0x715c48(0x1,_0x2e6991[_0x25c8ac(0x322)])],_0xee1fb5);const _0x124c8d=[_0x25c8ac(0x22c),'jiqing.500',_0x25c8ac(0x1fd),_0x25c8ac(0x219),'blue.400','yellow.400'];class _0x3dd070 extends _0x51c091[_0x25c8ac(0x379)]{constructor(){const _0x148cab=_0x25c8ac;super(...arguments),_0x3a54cf(this,'_assignedColors',new Map()),_0x3a54cf(this,_0x148cab(0x383),0x0);}['assignAColorForMemberID'](_0x17ecc2){const _0x3396a0=_0x25c8ac;if(this['_assignedColors'][_0x3396a0(0x297)](_0x17ecc2))return this[_0x3396a0(0x391)][_0x3396a0(0x4c4)](_0x17ecc2);const _0x7cfbcd=_0x124c8d[this[_0x3396a0(0x383)]];return this[_0x3396a0(0x383)]=(this[_0x3396a0(0x383)]+0x1)%_0x124c8d['length'],this[_0x3396a0(0x391)][_0x3396a0(0x22d)](_0x17ecc2,_0x7cfbcd),_0x7cfbcd;}}function _0x3190ac(_0x2d4bf2){let _0x58f40e='';for(const _0x287a1d of _0x2d4bf2){const {startOffset:_0x58e838,endOffset:_0x2e6922,isActive:_0x4c7880,rangeType:_0x4ac23a,segmentId:_0x3b6764,segmentPage:_0x2b28ab}=_0x287a1d;_0x58f40e['length']&&(_0x58f40e+=','),_0x58f40e+=_0x58e838+':'+_0x2e6922+':'+(_0x4c7880?'1':'0')+':'+_0x4ac23a+':'+_0x3b6764+':'+_0x2b28ab;}return _0x58f40e;}function _0x505ec7(_0xd3347a){const _0x2e2919=_0x25c8ac,_0x2c71ad=_0xd3347a[_0x2e2919(0x2d1)](','),_0x253e35=[];for(const _0x309d57 of _0x2c71ad){const [_0x23b262,_0x40927f,_0x11ca47,_0x2e85fa,_0x1b6d95,_0x532b5a]=_0x309d57[_0x2e2919(0x2d1)](':');_0x253e35['push']({'startOffset':Number(_0x23b262),'endOffset':Number(_0x40927f),'collapsed':_0x23b262===_0x40927f,'isActive':_0x11ca47==='1','rangeType':_0x2e85fa===_0x51c091['DOC_RANGE_TYPE'][_0x2e2919(0x30c)]?_0x51c091[_0x2e2919(0x458)][_0x2e2919(0x30c)]:_0x51c091[_0x2e2919(0x458)][_0x2e2919(0x208)],'segmentId':typeof _0x1b6d95==_0x2e2919(0x363)?String(_0x1b6d95):'','segmentPage':Number(_0x532b5a!=null?_0x532b5a:-0x1)});}return _0x253e35[_0x2e2919(0x321)](_0x83e861=>_0x83e861[_0x2e2919(0x282)])||(_0x253e35[0x0]['isActive']=!0x0),_0x253e35;}class _0x43bd11 extends _0x51c091[_0x25c8ac(0x42f)]{constructor(){const _0x42ec57=_0x25c8ac;super(...arguments),_0x3a54cf(this,_0x42ec57(0x26b),new _0x2d756d[(_0x42ec57(0x243))](null)),_0x3a54cf(this,'collabCursorState$',this[_0x42ec57(0x26b)][_0x42ec57(0x319)]());}[_0x25c8ac(0x4ab)](_0x140ad2){const _0x3dabdf=_0x25c8ac,{unitID:_0xee07f3,memberID:_0x348712,textRanges:_0x3e5bbd}=_0x140ad2,_0x1ee357=_0x3190ac(_0x3e5bbd);if(_0x1ee357==='')return;const _0x1e2c0a={'unitID':_0xee07f3,'memberID':_0x348712,'selection':_0x1ee357};this[_0x3dabdf(0x26b)][_0x3dabdf(0x258)](_0x1e2c0a);}}var _0xc82f30=Object[_0x25c8ac(0x3a8)],_0xc0e9a6=(_0x3bb3a8,_0x55470c,_0x3769e8,_0x1e7d8a)=>{const _0x399061=_0x25c8ac;for(var _0x2798ef=_0x1e7d8a>0x1?void 0x0:_0x1e7d8a?_0xc82f30(_0x55470c,_0x3769e8):_0x55470c,_0x5282f0=_0x3bb3a8[_0x399061(0x497)]-0x1,_0x39e769;_0x5282f0>=0x0;_0x5282f0--)(_0x39e769=_0x3bb3a8[_0x5282f0])&&(_0x2798ef=_0x39e769(_0x2798ef)||_0x2798ef);return _0x2798ef;},_0x455341=(_0x4f7e0f,_0x5c82fb)=>(_0x29255c,_0x51246f)=>_0x5c82fb(_0x29255c,_0x51246f,_0x4f7e0f);const _0x17f5e1=0x12c,_0x2e9a9e=0x64;let _0x5ae18d=class extends _0x51c091[_0x25c8ac(0x42f)]{constructor(_0x402032,_0x1395e2,_0x53725c,_0xec3a79,_0x3d21d1,_0x1adeca,_0x42d7b6,_0x2a546e,_0x1817d6){const _0x47ffef=_0x25c8ac;super(),_0x3a54cf(this,'_online',!0x1),_0x3a54cf(this,_0x47ffef(0x38f),!0x1),_0x3a54cf(this,_0x47ffef(0x3c9),new _0x2d756d['BehaviorSubject'](new Map())),_0x3a54cf(this,_0x47ffef(0x404),this['_cursorInfo$']['asObservable']()),_0x3a54cf(this,_0x47ffef(0x2fe),new _0x2d756d['BehaviorSubject']([])),_0x3a54cf(this,'roomMembers$',this[_0x47ffef(0x2fe)][_0x47ffef(0x430)](_0x2d756d[_0x47ffef(0x42c)](_0x17f5e1))),_0x3a54cf(this,'_updateLocalCursor',_0x51c091[_0x47ffef(0x447)](_0x1d1bc3=>{const _0x4431dd=_0x47ffef,_0x1a3d54={'eventID':_0x5b9cab[_0x4431dd(0x3d7)][_0x4431dd(0x386)],'data':{'unitID':this['unitID'],'memberID':this[_0x4431dd(0x476)]['getMemberID'](),'selection':_0x3190ac(_0x1d1bc3)}};this[_0x4431dd(0x476)][_0x4431dd(0x241)](_0x1a3d54,this[_0x4431dd(0x3e1)]);},_0x2e9a9e)),(this[_0x47ffef(0x3e1)]=_0x402032,this[_0x47ffef(0x476)]=_0x1395e2,this[_0x47ffef(0x3e5)]=_0x53725c,this[_0x47ffef(0x45c)]=_0xec3a79,this['_memberService']=_0x3d21d1,this[_0x47ffef(0x335)]=_0x1adeca,this[_0x47ffef(0x414)]=_0x42d7b6,this['_univerInstanceService']=_0x2a546e,this[_0x47ffef(0x2d6)]=_0x1817d6);}get[_0x25c8ac(0x336)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x4e8264=_0x25c8ac;return this['_roomMembers$'][_0x4e8264(0x38b)]();}['dispose'](){const _0x1309db=_0x25c8ac;super[_0x1309db(0x325)](),this[_0x1309db(0x3c9)][_0x1309db(0x258)](new Map()),this[_0x1309db(0x3c9)][_0x1309db(0x438)](),this[_0x1309db(0x2fe)][_0x1309db(0x258)]([]),this[_0x1309db(0x2fe)]['complete']();}['init'](){const _0x2b1621=_0x25c8ac;this[_0x2b1621(0x38f)]||(this[_0x2b1621(0x38f)]=!0x0,this[_0x2b1621(0x476)][_0x2b1621(0x39d)][_0x2b1621(0x430)](_0x2d756d[_0x2b1621(0x210)](this[_0x2b1621(0x37a)]))[_0x2b1621(0x2b3)](_0x50b40d=>{const _0x8e46e9=_0x2b1621;_0x50b40d===_0x493e59[_0x8e46e9(0x26d)]['ONLINE']?this[_0x8e46e9(0x2b4)]():this[_0x8e46e9(0x387)]();}),this[_0x2b1621(0x476)][_0x2b1621(0x2c1)][_0x2b1621(0x430)](_0x2d756d[_0x2b1621(0x210)](this[_0x2b1621(0x37a)]))[_0x2b1621(0x2b3)](_0x54c7d5=>{const _0x5425a7=_0x2b1621,_0x4c3bf7=_0x54c7d5['eventID'];_0x4c3bf7===_0x5b9cab[_0x5425a7(0x3d7)][_0x5425a7(0x386)]&&this[_0x5425a7(0x288)](_0x54c7d5),_0x4c3bf7===_0x5b9cab['CollaborationEvent']['USERS_LEAVE']&&this[_0x5425a7(0x35b)](_0x54c7d5);}),this['disposeWithMe'](this['_commandService'][_0x2b1621(0x485)](_0x319ccf=>{const _0x5e9230=_0x2b1621,_0x5722ee=_0x319ccf[_0x5e9230(0x411)];_0x5722ee!=null&&this[_0x5e9230(0x33f)]&&_0x319ccf['id']===_0x37270e[_0x5e9230(0x378)]['id']&&_0x5722ee[_0x5e9230(0x268)]===this['unitID']&&_0x5722ee[_0x5e9230(0x2f8)]===!0x1&&_0x5722ee['ranges'][_0x5e9230(0x497)]>0x0&&this[_0x5e9230(0x324)](_0x5722ee[_0x5e9230(0x25e)]);})),this[_0x2b1621(0x335)]['collabCursorState$'][_0x2b1621(0x430)](_0x2d756d[_0x2b1621(0x210)](this[_0x2b1621(0x37a)]))[_0x2b1621(0x2b3)](_0x469c16=>{const _0x5dee18=_0x2b1621;if((_0x469c16==null?void 0x0:_0x469c16[_0x5dee18(0x3e1)])!==this[_0x5dee18(0x3e1)])return;const _0xda0b7c={'eventID':_0x5b9cab['CollaborationEvent'][_0x5dee18(0x386)],'data':_0x469c16};this[_0x5dee18(0x288)](_0xda0b7c);}),this[_0x2b1621(0x1f5)](this[_0x2b1621(0x2d6)][_0x2b1621(0x485)](_0x3a8705=>{const _0x46d807=_0x2b1621;if(_0x3a8705[_0x46d807(0x411)]==null)return;const _0x4c22c8=_0x3a8705[_0x46d807(0x411)];if(_0x3a8705['id']!==_0x37270e[_0x46d807(0x30a)]['id']||_0x4c22c8[_0x46d807(0x268)]!==this[_0x46d807(0x3e1)])return;const _0x11a835={'id':_0x46d807(0x21a),'params':_0x4c22c8},_0x4d8bb3=this[_0x46d807(0x336)];for(const [_0x160ad3,_0xac7133]of _0x4d8bb3){const _0x290f2d={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x46d807(0x3e1)],'actions':null,'textRanges':_0xac7133['ranges']}},_0x4b7a06=this[_0x46d807(0x414)]['transformMutation'](_0x11a835,_0x290f2d,!0x1);if(_0x5b9cab[_0x46d807(0x452)](_0x4b7a06))throw _0x4b7a06['error'];_0x4d8bb3[_0x46d807(0x22d)](_0x160ad3,{..._0xac7133,'ranges':_0x4b7a06[_0x46d807(0x389)][_0x46d807(0x411)][_0x46d807(0x45a)]});}queueMicrotask(()=>{const _0x437c25=_0x46d807;this[_0x437c25(0x3c9)][_0x437c25(0x258)](_0x4d8bb3);});})));}[_0x25c8ac(0x288)](_0x1698b6){const _0x34d936=_0x25c8ac;var _0xf6e15c,_0x1aec5b;const {memberID:_0x191bf3,selection:_0x3bbcc1}=_0x1698b6[_0x34d936(0x303)],_0x2689ac=_0x505ec7(_0x3bbcc1),_0xe99abd=(_0x1aec5b=(_0xf6e15c=this[_0x34d936(0x2ca)][_0x34d936(0x3d8)](this[_0x34d936(0x3e1)],_0x191bf3))==null?void 0x0:_0xf6e15c['name'])!=null?_0x1aec5b:'Unknown\x20user',_0x358a4e={'color':this['_colorAssignService'][_0x34d936(0x271)](_0x191bf3),'name':_0xe99abd,'ranges':_0x2689ac},_0x5021a7=this['cursorInfo'];_0x5021a7[_0x34d936(0x22d)](_0x191bf3,_0x358a4e),this['_cursorInfo$'][_0x34d936(0x258)](_0x5021a7);}['_onCursorDelete'](_0x27f41a){const _0x535b53=_0x25c8ac,{memberID:_0x2b042f}=_0x27f41a[_0x535b53(0x303)],_0x11bcb4=this[_0x535b53(0x336)];_0x11bcb4['delete'](_0x2b042f),this[_0x535b53(0x3c9)][_0x535b53(0x258)](_0x11bcb4);}[_0x25c8ac(0x2b4)](){const _0x31a329=_0x25c8ac;var _0x593aaf;if(this['_online']=!0x0,((_0x593aaf=this[_0x31a329(0x23a)]['getFocusedUnit']())==null?void 0x0:_0x593aaf['getUnitId']())!==this[_0x31a329(0x3e1)])return;const _0x25530d=this['_injector'][_0x31a329(0x4c4)](_0x37270e[_0x31a329(0x2ee)])[_0x31a329(0x4d8)]();Array[_0x31a329(0x1fa)](_0x25530d)&&_0x25530d[_0x31a329(0x497)]>0x0&&this[_0x31a329(0x324)](_0x25530d);}[_0x25c8ac(0x387)](){const _0x4da63e=_0x25c8ac;this[_0x4da63e(0x33f)]=!0x1;}};_0x5ae18d=_0xc0e9a6([_0x455341(0x2,_0x51c091[_0x25c8ac(0x301)](_0x51c091['Injector'])),_0x455341(0x3,_0x51c091['Inject'](_0x3dd070)),_0x455341(0x4,_0x51c091[_0x25c8ac(0x301)](_0x493e59['MemberService'])),_0x455341(0x5,_0x51c091[_0x25c8ac(0x301)](_0x43bd11)),_0x455341(0x6,_0x5b9cab[_0x25c8ac(0x431)]),_0x455341(0x7,_0x51c091[_0x25c8ac(0x261)]),_0x455341(0x8,_0x51c091['ICommandService'])],_0x5ae18d);var _0x5c03ba=Object['getOwnPropertyDescriptor'],_0x317fe5=(_0x560e93,_0x83ab81,_0x48fadd,_0x1adc15)=>{const _0x52a44c=_0x25c8ac;for(var _0x4e4cf5=_0x1adc15>0x1?void 0x0:_0x1adc15?_0x5c03ba(_0x83ab81,_0x48fadd):_0x83ab81,_0xfc3c37=_0x560e93[_0x52a44c(0x497)]-0x1,_0x47da54;_0xfc3c37>=0x0;_0xfc3c37--)(_0x47da54=_0x560e93[_0xfc3c37])&&(_0x4e4cf5=_0x47da54(_0x4e4cf5)||_0x4e4cf5);return _0x4e4cf5;},_0x134361=(_0xfec868,_0x57a270)=>(_0x58f9e0,_0x4e1c6c)=>_0x57a270(_0x58f9e0,_0x4e1c6c,_0xfec868);const _0x4081fa=0x12c,_0x37a625=0x64,_0x11bc78=()=>{let _0x36fff9=[],_0x250dff=!0x1;return _0x4f16c0=>{const _0xaff4d4=_0xd869;_0x36fff9[_0xaff4d4(0x2ac)](_0x4f16c0),_0x250dff||(_0x250dff=!0x0,setTimeout(()=>{const _0x467d5e=_0xaff4d4;_0x36fff9[_0x467d5e(0x345)](_0x5e2311=>_0x5e2311()),_0x36fff9=[],_0x250dff=!0x1;}));};};let _0x219f89=class extends _0x51c091[_0x25c8ac(0x42f)]{constructor(_0x1cba96,_0x33b86b,_0x3141d1,_0x195c13,_0x3b7928,_0x5d5c86,_0x2958de,_0x3e0d0e){const _0x246637=_0x25c8ac;super(),_0x3a54cf(this,_0x246637(0x33f),!0x1),_0x3a54cf(this,_0x246637(0x38f),!0x1),_0x3a54cf(this,_0x246637(0x3c9),new _0x2d756d[(_0x246637(0x243))](new Map())),_0x3a54cf(this,_0x246637(0x404),this[_0x246637(0x3c9)][_0x246637(0x319)]()),_0x3a54cf(this,_0x246637(0x2fe),new _0x2d756d[(_0x246637(0x243))]([])),_0x3a54cf(this,'roomMembers$',this[_0x246637(0x2fe)][_0x246637(0x430)](_0x2d756d[_0x246637(0x42c)](_0x4081fa))),_0x3a54cf(this,_0x246637(0x324),_0x51c091[_0x246637(0x447)]((_0x497824,_0x13a953)=>{const _0x12bccb=_0x246637,_0x908948={'eventID':_0x5b9cab[_0x12bccb(0x3d7)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x12bccb(0x476)][_0x12bccb(0x217)](),'selection':_0xfcd088['serializeRangeWithSheet'](_0x497824,_0x13a953[_0x12bccb(0x2af)])}};this[_0x12bccb(0x476)][_0x12bccb(0x241)](_0x908948,this['unitID']);},_0x37a625)),(this[_0x246637(0x3e1)]=_0x1cba96,this['_session']=_0x33b86b,this[_0x246637(0x3e5)]=_0x3141d1,this['_colorAssignService']=_0x195c13,this[_0x246637(0x2ca)]=_0x3b7928,this['_univerInstanceService']=_0x5d5c86,this['_commandService']=_0x2958de,this[_0x246637(0x4a5)]=_0x3e0d0e);}get[_0x25c8ac(0x336)](){const _0x567064=_0x25c8ac;return this[_0x567064(0x3c9)][_0x567064(0x38b)]();}get[_0x25c8ac(0x4c9)](){const _0x391081=_0x25c8ac;return this['_roomMembers$'][_0x391081(0x38b)]();}[_0x25c8ac(0x325)](){const _0x543b28=_0x25c8ac;super[_0x543b28(0x325)](),this[_0x543b28(0x3c9)][_0x543b28(0x258)](new Map()),this[_0x543b28(0x3c9)][_0x543b28(0x438)](),this[_0x543b28(0x2fe)][_0x543b28(0x258)]([]),this['_roomMembers$'][_0x543b28(0x438)]();}[_0x25c8ac(0x281)](){const _0x21003e=_0x25c8ac;this[_0x21003e(0x38f)]||(this[_0x21003e(0x38f)]=!0x0,this['_session']['sessionStatus$'][_0x21003e(0x430)](_0x2d756d['takeUntil'](this[_0x21003e(0x37a)]))['subscribe'](_0x245d28=>{const _0x2a61a0=_0x21003e;_0x245d28===_0x493e59['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x2a61a0(0x387)]();}),this[_0x21003e(0x476)][_0x21003e(0x2c1)]['pipe'](_0x2d756d[_0x21003e(0x210)](this[_0x21003e(0x37a)]))[_0x21003e(0x2b3)](_0xc619ab=>{const _0x426e84=_0x21003e,_0x31aaff=_0xc619ab[_0x426e84(0x29e)];_0x31aaff===_0x5b9cab[_0x426e84(0x3d7)][_0x426e84(0x386)]&&this[_0x426e84(0x288)](_0xc619ab),_0x31aaff===_0x5b9cab[_0x426e84(0x3d7)][_0x426e84(0x2ae)]&&this[_0x426e84(0x35b)](_0xc619ab);}),this[_0x21003e(0x277)](),this[_0x21003e(0x1f5)](this[_0x21003e(0x2d6)]['onCommandExecuted'](_0x528c77=>{const _0x3c3ea3=_0x21003e;if(this[_0x3c3ea3(0x33f)]&&_0x528c77['id']===_0x184ff5[_0x3c3ea3(0x35c)]['id']&&_0x528c77[_0x3c3ea3(0x411)][_0x3c3ea3(0x268)]===this['unitID']){const _0x5c8de6=_0x528c77['params'];this[_0x3c3ea3(0x324)](_0x5c8de6[_0x3c3ea3(0x469)],_0x5c8de6[_0x3c3ea3(0x2be)][0x0]);}})));}[_0x25c8ac(0x288)](_0x57a7a2){const _0x467740=_0x25c8ac;var _0x26bfa7,_0x38cbf2;const {memberID:_0x1844a7,selection:_0x15b1f9}=_0x57a7a2[_0x467740(0x303)],{sheetName:_0x3360e3,range:_0x6976dc}=_0xfcd088[_0x467740(0x39c)](_0x15b1f9),_0xdb1b9={'name':(_0x38cbf2=(_0x26bfa7=this[_0x467740(0x2ca)][_0x467740(0x3d8)](this[_0x467740(0x3e1)],_0x1844a7))==null?void 0x0:_0x26bfa7['name'])!=null?_0x38cbf2:'Unknown\x20user','range':this['_getMergeRange'](_0x3360e3,_0x6976dc),'sheetID':_0x3360e3,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1844a7),'selection':_0x15b1f9},_0x123821=this[_0x467740(0x336)];_0x123821[_0x467740(0x22d)](_0x1844a7,_0xdb1b9),this[_0x467740(0x3c9)]['next'](_0x123821);}[_0x25c8ac(0x35b)](_0x497b98){const _0x4ec836=_0x25c8ac,{memberID:_0x20fa5a}=_0x497b98[_0x4ec836(0x303)],_0x412f68=this[_0x4ec836(0x336)];_0x412f68[_0x4ec836(0x2d0)](_0x20fa5a),this['_cursorInfo$'][_0x4ec836(0x258)](_0x412f68);}[_0x25c8ac(0x2c7)](_0x4cbe8d,_0xe7d289){const _0x17c206=_0x25c8ac;var _0x7049fc,_0x3b5a6e;const _0x59dc29=(_0x3b5a6e=(_0x7049fc=this[_0x17c206(0x23a)][_0x17c206(0x3d6)](this[_0x17c206(0x3e1)]))==null?void 0x0:_0x7049fc[_0x17c206(0x491)](_0x4cbe8d))==null?void 0x0:_0x3b5a6e['getMergeData']();return(_0x59dc29==null?void 0x0:_0x59dc29[_0x17c206(0x247)](_0x343772=>_0x51c091[_0x17c206(0x266)][_0x17c206(0x2d4)](_0x343772,_0xe7d289)))||_0xe7d289;}['_onRefRangeChange'](){const _0x537ba3=_0x25c8ac,_0x9c2eae=new _0x51c091[(_0x537ba3(0x440))](),_0xdb3e49=_0x11bc78(),_0x2348b4=()=>{const _0x497219=_0x537ba3;_0x9c2eae[_0x497219(0x325)]();const _0x23306e=(_0x196a63,_0x13ad1b,_0x15ef8a,_0x2c339e)=>{const _0x323d47=_0x497219;let _0x3f3b15=[];switch(_0x196a63['id']){case _0x184ff5[_0x323d47(0x2e2)][_0x323d47(0x3cb)]:{_0x3f3b15=_0x184ff5[_0x323d47(0x44a)](_0x196a63,_0x2c339e);break;}case _0x184ff5[_0x323d47(0x2e2)]['DeleteRangeMoveUpCommandId']:{_0x3f3b15=_0x184ff5[_0x323d47(0x2ff)](_0x196a63,_0x2c339e);break;}case _0x184ff5[_0x323d47(0x2e2)]['InsertColCommandId']:{_0x3f3b15=_0x184ff5[_0x323d47(0x341)](_0x196a63,_0x2c339e);break;}case _0x184ff5[_0x323d47(0x2e2)][_0x323d47(0x4b6)]:{_0x3f3b15=_0x184ff5[_0x323d47(0x3eb)](_0x196a63,_0x2c339e);break;}case _0x184ff5[_0x323d47(0x2e2)][_0x323d47(0x41f)]:{_0x3f3b15=_0x184ff5[_0x323d47(0x412)](_0x196a63,_0x2c339e);break;}case _0x184ff5['EffectRefRangId']['InsertRowCommandId']:{_0x3f3b15=_0x184ff5[_0x323d47(0x446)](_0x196a63,_0x2c339e);break;}case _0x184ff5[_0x323d47(0x2e2)][_0x323d47(0x47f)]:{_0x3f3b15=_0x184ff5[_0x323d47(0x3dc)](_0x196a63,_0x2c339e);break;}case _0x184ff5[_0x323d47(0x2e2)][_0x323d47(0x396)]:{_0x3f3b15=_0x184ff5[_0x323d47(0x2f4)](_0x196a63,_0x2c339e);break;}case _0x184ff5[_0x323d47(0x2e2)][_0x323d47(0x4c5)]:{_0x3f3b15=_0x184ff5[_0x323d47(0x20c)](_0x196a63,_0x2c339e);break;}}const _0x1a7152=_0x184ff5[_0x323d47(0x3e8)](_0x3f3b15,_0x2c339e),_0x3713c7=this[_0x323d47(0x336)]['get'](_0x13ad1b);if(_0x3713c7&&_0x1a7152){const _0x39e771={..._0x3713c7,'range':_0x1a7152};this[_0x323d47(0x336)][_0x323d47(0x22d)](_0x13ad1b,_0x39e771),_0xdb3e49(()=>{const _0x4a9761=_0x323d47,_0x26fe49=this[_0x4a9761(0x4a5)][_0x4a9761(0x37f)](_0x1a7152,_0x2a4feb=>(_0x26fe49['dispose'](),_0x23306e(_0x2a4feb,_0x13ad1b,_0x15ef8a,_0x1a7152)));_0x9c2eae[_0x4a9761(0x2d2)](_0x26fe49);});}return{'redos':[],'undos':[]};};this[_0x497219(0x336)]['forEach']((_0x4a3d20,_0x103a96)=>{const _0x479f21=_0x497219,{range:_0x565a48,sheetID:_0x3e3a24}=_0x4a3d20,_0x703cf=this[_0x479f21(0x4a5)]['registerRefRange'](_0x565a48,_0x1436da=>(_0x703cf['dispose'](),_0x23306e(_0x1436da,_0x103a96,_0x3e3a24,_0x565a48)));_0x9c2eae['add'](_0x703cf);});};this[_0x537ba3(0x1f5)](_0x51c091['toDisposable'](this[_0x537ba3(0x3c9)][_0x537ba3(0x2b3)](()=>{_0x2348b4();})));}[_0x25c8ac(0x2b4)](){const _0x18a2a1=_0x25c8ac;var _0x2fb576,_0x4546b4;if(this['_online']=!0x0,((_0x2fb576=this['_univerInstanceService'][_0x18a2a1(0x328)]())==null?void 0x0:_0x2fb576[_0x18a2a1(0x30f)]())!==this[_0x18a2a1(0x3e1)])return;const _0x1c8fcf=(_0x4546b4=this[_0x18a2a1(0x3e5)][_0x18a2a1(0x4c4)](_0x184ff5[_0x18a2a1(0x3e2)])['getCurrentSelections']())==null?void 0x0:_0x4546b4[0x0],_0x32fe7a=this[_0x18a2a1(0x23a)]['getCurrentUnitForType'](_0x51c091[_0x18a2a1(0x375)][_0x18a2a1(0x3d0)])['getActiveSheet']();_0x1c8fcf&&_0x32fe7a&&this[_0x18a2a1(0x324)](_0x32fe7a[_0x18a2a1(0x230)](),_0x1c8fcf);}['_toggleOffline'](){this['_online']=!0x1;}};_0x219f89=_0x317fe5([_0x134361(0x2,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x26a)])),_0x134361(0x3,_0x51c091['Inject'](_0x3dd070)),_0x134361(0x4,_0x51c091[_0x25c8ac(0x301)](_0x493e59[_0x25c8ac(0x401)])),_0x134361(0x5,_0x51c091[_0x25c8ac(0x261)]),_0x134361(0x6,_0x51c091[_0x25c8ac(0x483)]),_0x134361(0x7,_0x51c091[_0x25c8ac(0x301)](_0x184ff5['RefRangeService']))],_0x219f89);var _0x43e703=Object['getOwnPropertyDescriptor'],_0x39b925=(_0x12c4b8,_0x1ba556,_0x40c4b7,_0x376dae)=>{for(var _0x59f3d0=_0x376dae>0x1?void 0x0:_0x376dae?_0x43e703(_0x1ba556,_0x40c4b7):_0x1ba556,_0x339b61=_0x12c4b8['length']-0x1,_0x50bc3e;_0x339b61>=0x0;_0x339b61--)(_0x50bc3e=_0x12c4b8[_0x339b61])&&(_0x59f3d0=_0x50bc3e(_0x59f3d0)||_0x59f3d0);return _0x59f3d0;},_0x4b7da2=(_0x5b3971,_0x15d1ba)=>(_0x140356,_0x317c05)=>_0x15d1ba(_0x140356,_0x317c05,_0x5b3971);let _0x43fe6e=class extends _0x51c091[_0x25c8ac(0x42f)]{constructor(_0x23000e,_0x27f75d,_0x3e1bec){const _0x2a942a=_0x25c8ac;super(),_0x3a54cf(this,_0x2a942a(0x38a),new Map()),_0x3a54cf(this,_0x2a942a(0x2f5),new _0x2d756d[(_0x2a942a(0x26c))]()),(this['_univerInstanceService']=_0x23000e,this['_injector']=_0x27f75d,this[_0x2a942a(0x41e)]=_0x3e1bec,this[_0x2a942a(0x38f)]());}[_0x25c8ac(0x325)](){const _0x249908=_0x25c8ac;super['dispose'](),this['_entityInit$'][_0x249908(0x438)](),this['_entities'][_0x249908(0x345)](_0x583c9f=>_0x583c9f[_0x249908(0x325)]());}[_0x25c8ac(0x2ef)](_0x8710f4){const _0x295207=_0x25c8ac;return this[_0x295207(0x38a)][_0x295207(0x297)](_0x8710f4)?this[_0x295207(0x38a)][_0x295207(0x4c4)](_0x8710f4)[_0x295207(0x404)]:this['_entityInit$']['pipe'](_0x2d756d[_0x295207(0x441)](_0x4c5ae1=>_0x4c5ae1[_0x295207(0x3e1)]===_0x8710f4),_0x2d756d['switchMap'](_0x46ac19=>_0x46ac19[_0x295207(0x404)]));}[_0x25c8ac(0x38f)](){const _0x4401e2=_0x25c8ac;this[_0x4401e2(0x23a)][_0x4401e2(0x3bb)](_0x51c091['UniverInstanceType'][_0x4401e2(0x3d0)])[_0x4401e2(0x430)](_0x2d756d[_0x4401e2(0x210)](this['dispose$']))[_0x4401e2(0x2b3)](async _0x55e8a0=>{const _0x21d9b6=_0x4401e2,_0x2a8a27=_0x55e8a0[_0x21d9b6(0x30f)](),_0x137c67=await this['_startSheetCollabCursor'](_0x2a8a27);this[_0x21d9b6(0x2f5)][_0x21d9b6(0x258)](_0x137c67),this['_entities'][_0x21d9b6(0x22d)](_0x2a8a27,_0x137c67);}),this[_0x4401e2(0x23a)][_0x4401e2(0x3bb)](_0x51c091[_0x4401e2(0x375)][_0x4401e2(0x3e3)])['pipe'](_0x2d756d[_0x4401e2(0x210)](this[_0x4401e2(0x37a)]))[_0x4401e2(0x430)](_0x2d756d['filter'](_0x467a7d=>!_0x467a7d['getUnitId']()[_0x4401e2(0x371)]('__')))['subscribe'](async _0x52985c=>{const _0x20a7a6=_0x4401e2,_0x4a3f86=_0x52985c['getUnitId'](),_0x35592a=await this[_0x20a7a6(0x3d3)](_0x4a3f86);this[_0x20a7a6(0x2f5)][_0x20a7a6(0x258)](_0x35592a),this[_0x20a7a6(0x38a)][_0x20a7a6(0x22d)](_0x4a3f86,_0x35592a);}),_0x2d756d[_0x4401e2(0x296)](this[_0x4401e2(0x23a)][_0x4401e2(0x44b)](_0x51c091[_0x4401e2(0x375)][_0x4401e2(0x3e3)]),this[_0x4401e2(0x23a)][_0x4401e2(0x44b)](_0x51c091['UniverInstanceType'][_0x4401e2(0x3d0)]))[_0x4401e2(0x430)](_0x2d756d['takeUntil'](this[_0x4401e2(0x37a)]))[_0x4401e2(0x2b3)](_0x1b6538=>{const _0x47331f=_0x4401e2,_0x238a37=_0x1b6538[_0x47331f(0x30f)](),_0x3831eb=this[_0x47331f(0x38a)][_0x47331f(0x4c4)](_0x238a37);_0x3831eb&&(_0x3831eb['dispose'](),this[_0x47331f(0x38a)][_0x47331f(0x2d0)](_0x238a37));});}async[_0x25c8ac(0x213)](_0x3fcb99){const _0x55c731=_0x25c8ac,_0x2a858f=await this[_0x55c731(0x41e)][_0x55c731(0x2d7)](_0x3fcb99),_0x5bed77=this[_0x55c731(0x3e5)]['createInstance'](_0x219f89,_0x3fcb99,_0x2a858f);return _0x5bed77[_0x55c731(0x281)](),_0x5bed77;}async[_0x25c8ac(0x3d3)](_0x5e8a13){const _0x532623=_0x25c8ac,_0x101bd9=await this[_0x532623(0x41e)][_0x532623(0x2d7)](_0x5e8a13),_0x1f88a1=this[_0x532623(0x3e5)]['createInstance'](_0x5ae18d,_0x5e8a13,_0x101bd9);return _0x1f88a1[_0x532623(0x281)](),_0x1f88a1;}};_0x43fe6e=_0x39b925([_0x4b7da2(0x0,_0x51c091[_0x25c8ac(0x261)]),_0x4b7da2(0x1,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x26a)])),_0x4b7da2(0x2,_0x51c091[_0x25c8ac(0x301)](_0x493e59['CollaborationSessionService']))],_0x43fe6e);const _0x3e88d8=0x14,_0x4f6245=0xc8,_0x169f85=0x4,_0x389b3c=0x5;function _0x2cd01b(_0x357dd5,_0x206aa4){const _0x5664c0=_0x25c8ac;let {radius:_0x556760,width:_0xd6431f,height:_0x3f04a5}=_0x206aa4;_0x556760=_0x556760!=null?_0x556760:0x0,_0xd6431f=_0xd6431f!=null?_0xd6431f:0x1e,_0x3f04a5=_0x3f04a5!=null?_0x3f04a5:0x1e;let _0xfec8e8=0x0,_0x253c20=0x0,_0x1b6d26=0x0;_0xfec8e8=_0x253c20=_0x1b6d26=Math[_0x5664c0(0x3c6)](_0x556760,_0xd6431f/0x2,_0x3f04a5/0x2),_0x357dd5[_0x5664c0(0x358)](),_0x357dd5['moveTo'](_0xfec8e8,0x0),_0x357dd5[_0x5664c0(0x30b)](_0xd6431f-_0x253c20,0x0),_0x357dd5[_0x5664c0(0x203)](_0xd6431f-_0x253c20,_0x253c20,_0x253c20,Math['PI']*0x3/0x2,0x0,!0x1),_0x357dd5[_0x5664c0(0x30b)](_0xd6431f,_0x3f04a5-_0x1b6d26),_0x357dd5[_0x5664c0(0x203)](_0xd6431f-_0x1b6d26,_0x3f04a5-_0x1b6d26,_0x1b6d26,0x0,Math['PI']/0x2,!0x1),_0x357dd5[_0x5664c0(0x30b)](0x0,_0x3f04a5),_0x357dd5[_0x5664c0(0x30b)](0x0,_0xfec8e8),_0x357dd5[_0x5664c0(0x203)](_0xfec8e8,_0xfec8e8,_0xfec8e8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x357dd5[_0x5664c0(0x218)](),_0x206aa4[_0x5664c0(0x42b)]&&(_0x357dd5['save'](),_0x357dd5['fillStyle']=_0x206aa4[_0x5664c0(0x42b)],_0x206aa4[_0x5664c0(0x23c)]==='evenodd'?_0x357dd5[_0x5664c0(0x42b)](_0x5664c0(0x4ad)):_0x357dd5[_0x5664c0(0x42b)](),_0x357dd5[_0x5664c0(0x45e)]());}class _0x138c53 extends _0x396fb6[_0x25c8ac(0x35d)]{constructor(_0x33501d,_0x2b8b94){const _0x33b346=_0x25c8ac;super(_0x33501d,_0x2b8b94),_0x3a54cf(this,_0x33b346(0x2da)),_0x3a54cf(this,'text'),(this[_0x33b346(0x2da)]=_0x2b8b94==null?void 0x0:_0x2b8b94[_0x33b346(0x2da)],this['text']=_0x2b8b94==null?void 0x0:_0x2b8b94[_0x33b346(0x48f)]);}static[_0x25c8ac(0x2bd)](_0x4bc761,_0x4bc170){const _0xd9e91e=_0x25c8ac,{text:_0x3cc97f,color:_0x1a5144}=_0x4bc170;_0x4bc761[_0xd9e91e(0x3c2)](),_0x4bc761['font']=_0xd9e91e(0x499);const _0x48cc26=_0x4bc761[_0xd9e91e(0x200)](_0x3cc97f)[_0xd9e91e(0x3fc)],_0x3830ce=Math[_0xd9e91e(0x3c6)](_0x48cc26+0x2*_0x169f85,_0x4f6245);_0x2cd01b(_0x4bc761,{'height':_0x3e88d8,'radius':0x4,'width':_0x3830ce,'fill':_0x1a5144}),_0x4bc761[_0xd9e91e(0x2bc)]=_0xd9e91e(0x3f8);const _0x527108=_0x169f85,_0x2b136e=_0x3e88d8-_0x389b3c,_0x369d8c=_0x4f6245-0x2*_0x169f85;if(_0x48cc26>_0x369d8c){let _0x19ffd2='',_0x542079=0x0;for(const _0x3f335b of _0x3cc97f){const _0x5e899f=_0x4bc761['measureText'](_0x3f335b)[_0xd9e91e(0x3fc)];if(_0x542079+_0x5e899f<=_0x369d8c-_0x4bc761['measureText'](_0xd9e91e(0x4cc))[_0xd9e91e(0x3fc)])_0x19ffd2+=_0x3f335b,_0x542079+=_0x5e899f;else{_0x19ffd2+='...';break;}}_0x4bc761[_0xd9e91e(0x274)](_0x19ffd2,_0x527108,_0x2b136e);}else _0x4bc761['fillText'](_0x3cc97f,_0x527108,_0x2b136e);_0x4bc761[_0xd9e91e(0x45e)]();}[_0x25c8ac(0x2a2)](_0x168f4e){const _0x3200c8=_0x25c8ac;_0x138c53[_0x3200c8(0x2bd)](_0x168f4e,this);}}const _0x41e103='collab-text-anchor-',_0x3446e0=_0x25c8ac(0x2b7),_0x77063e=_0x25c8ac(0x4bb),_0x31de00=0x6,_0x449f62=1.5,_0x3ce1c4=0x4,_0x267e4d=1.5,_0xbfaac7=_0x25c8ac(0x338);class _0x1ab378{constructor(_0x1c81d5,_0x134eb7,_0xe80fb5,_0x3cedb3){const _0x1bce42=_0x25c8ac;_0x3a54cf(this,_0x1bce42(0x2ea),[]),_0x3a54cf(this,_0x1bce42(0x47d),null),_0x3a54cf(this,_0x1bce42(0x327),null),_0x3a54cf(this,_0x1bce42(0x344),null),_0x3a54cf(this,_0x1bce42(0x39f),null),_0x3a54cf(this,'_eventUnsubscribe',null),(this[_0x1bce42(0x24e)]=_0x1c81d5,this[_0x1bce42(0x2a1)]=_0x134eb7,this[_0x1bce42(0x348)]=_0xe80fb5,this[_0x1bce42(0x360)]=_0x3cedb3,this['_render']());}set['_hover'](_0x37c3d0){const _0x35781a=_0x25c8ac;_0x37c3d0?(this['_anchorDot']&&this[_0x35781a(0x344)][_0x35781a(0x2f9)](),this[_0x35781a(0x327)]&&this[_0x35781a(0x327)][_0x35781a(0x392)]()):(this['_anchorDot']&&this[_0x35781a(0x344)][_0x35781a(0x392)](),this[_0x35781a(0x327)]&&this['_textBubble'][_0x35781a(0x2f9)]());}['dispose'](){const _0x57cb4a=_0x25c8ac;for(const _0x55e805 of this['_shapes'])_0x55e805['dispose']();this[_0x57cb4a(0x327)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x57cb4a(0x325)](),this[_0x57cb4a(0x47d)]&&this[_0x57cb4a(0x47d)][_0x57cb4a(0x325)](),this[_0x57cb4a(0x2bf)]&&this['_eventUnsubscribe']();}[_0x25c8ac(0x228)](){const _0x54994e=_0x25c8ac;var _0x37f415;const {_docSkeleton:_0x352fac,_document:_0x115d46}=this,{color:_0x132b28,name:_0x2e3999,ranges:_0x57f150}=this['_cursor'],_0x44c6b6=_0x115d46[_0x54994e(0x4af)](),{docsLeft:_0x40b3d0,docsTop:_0x577af5}=_0x44c6b6,_0x2ad7df=new _0x594fa4[(_0x54994e(0x234))](_0x44c6b6,_0x352fac);for(const {startOffset:_0x4f72c8,endOffset:_0x54e7b9,rangeType:_0x21c9b5,segmentId:_0x4c3ac6,segmentPage:_0x558944,collapsed:_0x248858,isActive:_0x9718e9}of _0x57f150){const _0x520e13=_0x352fac[_0x54994e(0x290)](_0x4f72c8,!0x0,_0x4c3ac6,_0x558944);let _0x288de7=_0x352fac[_0x54994e(0x290)](_0x54e7b9,!0x0,_0x4c3ac6,_0x558944);if(_0x288de7==null&&(_0x288de7=_0x352fac['findNodePositionByCharIndex'](_0x54e7b9-0x1,!0x1,_0x4c3ac6,_0x558944)),_0x9718e9){const {contentBoxPointGroup:_0x2be2fc}=_0x2ad7df[_0x54994e(0x49c)](_0x288de7,_0x288de7);if(_0x2be2fc['length']===0x0)continue;this[_0x54994e(0x2d3)](_0x132b28,_0x2be2fc,_0x40b3d0,_0x577af5,_0x2e3999),this[_0x54994e(0x2bf)]=this[_0x54994e(0x226)]();}if(_0x520e13&&_0x288de7){if(_0x21c9b5===_0x51c091[_0x54994e(0x458)][_0x54994e(0x208)]){const _0x3aeba6=new _0x594fa4[(_0x54994e(0x3ec))](_0x44c6b6,_0x352fac),{pointGroup:_0x2adfc1}=(_0x37f415=_0x3aeba6[_0x54994e(0x49c)](_0x520e13,_0x288de7))!=null?_0x37f415:{};if(_0x2adfc1==null||_0x2adfc1[_0x54994e(0x497)]===0x0)continue;this['_drawRectRange'](_0x132b28,_0x2adfc1,_0x40b3d0,_0x577af5);}else{if(!_0x248858){const {borderBoxPointGroup:_0x4e02a1}=_0x2ad7df['getRangePointData'](_0x520e13,_0x288de7);if(_0x4e02a1[_0x54994e(0x497)]===0x0)continue;this['_drawTextRange'](_0x132b28,_0x4e02a1,_0x40b3d0,_0x577af5);}}}}}[_0x25c8ac(0x2d3)](_0x5d3e39,_0x368bcc,_0x566245,_0x158632,_0x2b1b0b){const _0x175d10=_0x25c8ac,_0x8adbcf=this[_0x175d10(0x294)](_0x368bcc),{left:_0x13fa91,top:_0x531bf5,height:_0x2c3ef2}=_0x8adbcf,_0x312f6c=this[_0x175d10(0x3d5)](),_0x1a89f6=_0x267e4d/_0x312f6c,_0x366d6e=new _0x396fb6['Rect'](_0x41e103+_0x51c091[_0x175d10(0x2a9)](_0x31de00),{'left':_0x13fa91+_0x566245-_0x1a89f6,'top':_0x531bf5+_0x158632,'height':_0x2c3ef2,'width':_0x449f62,'fill':_0x5d3e39||_0x396fb6[_0x175d10(0x3a0)](_0x51c091[_0x175d10(0x421)][_0x175d10(0x478)],0x0),'strokeWidth':_0x1a89f6,'stroke':_0xbfaac7,'evented':!0x0});this[_0x175d10(0x47d)]=_0x366d6e,this['_scene'][_0x175d10(0x3d1)](_0x366d6e,_0x594fa4[_0x175d10(0x3bc)]);const _0x2ab239=new _0x396fb6[(_0x175d10(0x2c2))](_0x41e103+_0x51c091[_0x175d10(0x2a9)](_0x31de00),{'left':_0x13fa91+_0x566245-_0x1a89f6,'top':_0x531bf5+_0x158632-_0x3ce1c4/0x2,'height':_0x3ce1c4,'width':_0x3ce1c4,'fill':_0x5d3e39||_0x396fb6[_0x175d10(0x3a0)](_0x51c091['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x5d3e39||_0x396fb6[_0x175d10(0x3a0)](_0x51c091['COLORS'][_0x175d10(0x478)],0x0),'evented':!0x1});this['_anchorDot']=_0x2ab239,this[_0x175d10(0x2a1)][_0x175d10(0x3d1)](_0x2ab239,_0x594fa4[_0x175d10(0x3bc)]);const _0x28a0ce=new _0x138c53(_0x41e103+_0x51c091[_0x175d10(0x2a9)](_0x31de00),{'left':_0x13fa91+_0x566245-_0x1a89f6,'top':_0x531bf5+_0x158632-_0x3e88d8,'text':_0x2b1b0b,'color':_0x5d3e39});this['_textBubble']=_0x28a0ce,this['_scene'][_0x175d10(0x3d1)](_0x28a0ce,_0x594fa4['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x25c8ac(0x226)](){const _0x40a5db=_0x25c8ac,_0x4d9e8f=this['_anchor'][_0x40a5db(0x293)][_0x40a5db(0x402)](()=>{const _0x3a51f2=_0x40a5db;this[_0x3a51f2(0x394)]=!0x0;}),_0x22893c=this[_0x40a5db(0x47d)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x28d953=_0x40a5db;this[_0x28d953(0x39f)]&&clearTimeout(this[_0x28d953(0x39f)]),this[_0x28d953(0x39f)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x19dc6f=_0x40a5db;_0x4d9e8f[_0x19dc6f(0x287)](),_0x22893c['unsubscribe']();};}[_0x25c8ac(0x4b4)](_0x488218,_0x22c41c,_0x9fae0f,_0x4b8d59){const _0x2346c9=_0x25c8ac,_0x285042=new _0x51c091['ColorKit'](_0x488218)[_0x2346c9(0x209)](0.2)['toRgbString'](),_0x5e99f7=new _0x396fb6['RegularPolygon'](_0x3446e0+_0x51c091[_0x2346c9(0x2a9)](_0x31de00),{'pointsGroup':_0x22c41c,'fill':_0x285042||_0x396fb6[_0x2346c9(0x3a0)](_0x51c091['COLORS'][_0x2346c9(0x478)],0.2),'left':_0x9fae0f,'top':_0x4b8d59,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2346c9(0x2ac)](_0x5e99f7),this[_0x2346c9(0x2a1)]['addObject'](_0x5e99f7,_0x594fa4[_0x2346c9(0x3bc)]);}['_drawRectRange'](_0x2982a6,_0x86c13e,_0xe1adb8,_0x555841){const _0x46ec1f=_0x25c8ac,_0x464309=new _0x51c091[(_0x46ec1f(0x223))](_0x2982a6)[_0x46ec1f(0x209)](0.2)['toRgbString'](),_0x482f97=new _0x396fb6[(_0x46ec1f(0x449))](_0x77063e+_0x51c091['generateRandomId'](_0x31de00),{'pointsGroup':_0x86c13e,'fill':_0x464309||_0x396fb6[_0x46ec1f(0x3a0)](_0x51c091[_0x46ec1f(0x421)][_0x46ec1f(0x478)],0.2),'left':_0xe1adb8,'top':_0x555841,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x46ec1f(0x2ea)][_0x46ec1f(0x2ac)](_0x482f97),this[_0x46ec1f(0x2a1)]['addObject'](_0x482f97,_0x594fa4[_0x46ec1f(0x3bc)]);}[_0x25c8ac(0x294)](_0x1dfb30){const _0x190ad4=_0x1dfb30[0x0],_0x588b04=_0x190ad4[0x0],_0x3013e1=_0x190ad4[0x2],{x:_0x2125d1,y:_0x3e177f}=_0x588b04,{x:_0x443c39,y:_0x425670}=_0x3013e1;return{'left':_0x2125d1,'top':_0x3e177f,'width':_0x443c39-_0x2125d1,'height':_0x425670-_0x3e177f};}[_0x25c8ac(0x3d5)](){const _0x402234=_0x25c8ac,{scaleX:_0x394688,scaleY:_0x235e97}=this[_0x402234(0x2a1)][_0x402234(0x1fc)]();return Math[_0x402234(0x423)](_0x394688,_0x235e97);}}var _0x4bd16f=Object[_0x25c8ac(0x3a8)],_0x58b0e0=(_0x1e423a,_0x5cfe8f,_0x38a679,_0x465cdf)=>{const _0x1813c9=_0x25c8ac;for(var _0x3161e5=_0x465cdf>0x1?void 0x0:_0x465cdf?_0x4bd16f(_0x5cfe8f,_0x38a679):_0x5cfe8f,_0x5b28c6=_0x1e423a[_0x1813c9(0x497)]-0x1,_0x4d0cbf;_0x5b28c6>=0x0;_0x5b28c6--)(_0x4d0cbf=_0x1e423a[_0x5b28c6])&&(_0x3161e5=_0x4d0cbf(_0x3161e5)||_0x3161e5);return _0x3161e5;},_0x49e4b5=(_0x19ffd7,_0x3867fb)=>(_0x327329,_0xe7de90)=>_0x3867fb(_0x327329,_0xe7de90,_0x19ffd7);let _0x743d07=class extends _0x51c091['RxDisposable']{constructor(_0x434582,_0x1afa6e,_0x47a2d3,_0x301a5c,_0x414c62){const _0x518c06=_0x25c8ac;super(),_0x3a54cf(this,_0x518c06(0x407),[]),_0x3a54cf(this,_0x518c06(0x332),[]),(this[_0x518c06(0x31e)]=_0x434582,this['_docSkeletonManagerService']=_0x1afa6e,this['_collabCursorController']=_0x47a2d3,this[_0x518c06(0x2d6)]=_0x301a5c,this[_0x518c06(0x2cd)]=_0x414c62,this['_init']());}[_0x25c8ac(0x38f)](){const _0x23341e=_0x25c8ac,_0x2b900e=this[_0x23341e(0x31e)][_0x23341e(0x268)],_0x30c80b=this['_docSkeletonManagerService'];this[_0x23341e(0x1f5)](_0x2d756d[_0x23341e(0x496)]([this[_0x23341e(0x2fc)]['getCollabCursors$'](_0x2b900e),this[_0x23341e(0x2cd)][_0x23341e(0x23d)]])[_0x23341e(0x430)](_0xe24628[_0x23341e(0x43d)](([_0x3a1dee,_0xa0d65d])=>({'skeleton':_0x30c80b['getSkeleton'](),'cursors':[..._0x3a1dee['values']()][_0x23341e(0x28c)](_0x2e9a72=>({..._0x2e9a72,'color':this[_0x23341e(0x2cd)]['getColorFromTheme'](_0x2e9a72[_0x23341e(0x2da)])}))})))[_0x23341e(0x2b3)](_0x3fedba=>{const _0x241824=_0x23341e;if(this[_0x241824(0x22f)](),_0x3fedba){const {skeleton:_0x1e7cef,cursors:_0xd266da}=_0x3fedba;this[_0x241824(0x2f0)](_0x1e7cef,_0xd266da);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x25c8ac(0x2f0)](_0x20e1d2,_0x49d078){const _0x24c7ec=_0x25c8ac,{scene:_0x544e66,mainComponent:_0x3b0bf7}=this[_0x24c7ec(0x31e)],_0x17d7c1=_0x49d078['map'](_0x3f6745=>new _0x1ab378(_0x3f6745,_0x544e66,_0x20e1d2,_0x3b0bf7));this[_0x24c7ec(0x407)]=_0x17d7c1,this[_0x24c7ec(0x332)]=_0x49d078;}[_0x25c8ac(0x45f)](){const _0x30bae1=_0x25c8ac;this[_0x30bae1(0x22f)]();const {scene:_0x2ca01e,mainComponent:_0x504d26}=this[_0x30bae1(0x31e)],_0x43d178=this[_0x30bae1(0x4a1)][_0x30bae1(0x455)](),_0x420ba4=this[_0x30bae1(0x332)][_0x30bae1(0x43d)](_0x44c309=>new _0x1ab378(_0x44c309,_0x2ca01e,_0x43d178,_0x504d26));this[_0x30bae1(0x407)]=_0x420ba4;}[_0x25c8ac(0x22f)](){const _0x3f7ec8=_0x25c8ac;this[_0x3f7ec8(0x407)]['forEach'](_0x35e78b=>_0x35e78b[_0x3f7ec8(0x325)]()),this[_0x3f7ec8(0x407)]=[];}[_0x25c8ac(0x370)](){const _0x2c7673=_0x25c8ac,_0x343451=[_0x594fa4[_0x2c7673(0x37b)]['id']];this[_0x2c7673(0x1f5)](this[_0x2c7673(0x2d6)][_0x2c7673(0x485)](_0xc573a6=>{const _0x380052=_0x2c7673;_0x343451[_0x380052(0x233)](_0xc573a6['id'])&&_0xc573a6[_0x380052(0x411)][_0x380052(0x268)]===this['_context'][_0x380052(0x268)]&&this[_0x380052(0x45f)]();}));}['_initResize'](){const _0x1e250f=_0x25c8ac;this['disposeWithMe'](_0x51c091[_0x1e250f(0x286)](this['_context'][_0x1e250f(0x4b0)]['onTransformChange$'])[_0x1e250f(0x430)](_0xe24628['filter'](_0x5e670b=>_0x5e670b['type']===_0x396fb6['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1e250f(0x4d9)]),_0xe24628[_0x1e250f(0x36d)](0x10))[_0x1e250f(0x2b3)](()=>{const _0x547148=_0x1e250f;this[_0x547148(0x45f)]();}));}};_0x743d07=_0x58b0e0([_0x49e4b5(0x1,_0x51c091[_0x25c8ac(0x301)](_0x37270e[_0x25c8ac(0x1f7)])),_0x49e4b5(0x2,_0x51c091['Inject'](_0x43fe6e)),_0x49e4b5(0x3,_0x51c091[_0x25c8ac(0x483)]),_0x49e4b5(0x4,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x41b)]))],_0x743d07);const _0x1b8c31=0x1,_0x4ae82e=1.5;class _0x1855f6 extends _0x396fb6[_0x25c8ac(0x35d)]{constructor(_0x15031d,_0x341307){const _0x414b29=_0x25c8ac;super(_0x15031d,_0x341307),_0x3a54cf(this,_0x414b29(0x479)),_0x3a54cf(this,_0x414b29(0x22e),!0x1),_0x3a54cf(this,_0x414b29(0x2d5)),_0x3a54cf(this,_0x414b29(0x49d),''),_0x3a54cf(this,_0x414b29(0x28a),_0x414b29(0x49b)),_0x3a54cf(this,_0x414b29(0x24f)),(_0x341307&&this[_0x414b29(0x34b)](_0x341307),this['onPointerEnter$'][_0x414b29(0x402)](()=>this[_0x414b29(0x34b)]({'hovered':!0x0})),this['onPointerLeave$'][_0x414b29(0x402)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x25c8ac(0x34b)](_0x18234a){const _0x1fc0ba=_0x25c8ac;var _0x4e43d7,_0x119f0d,_0x3433be,_0x1af4b1,_0x2e17ed,_0x4d8cec;this[_0x1fc0ba(0x479)]=(_0x4e43d7=_0x18234a[_0x1fc0ba(0x2da)])!=null?_0x4e43d7:this[_0x1fc0ba(0x479)],this[_0x1fc0ba(0x22e)]=(_0x119f0d=_0x18234a[_0x1fc0ba(0x34f)])!=null?_0x119f0d:this[_0x1fc0ba(0x22e)],this[_0x1fc0ba(0x2d5)]=(_0x3433be=_0x18234a[_0x1fc0ba(0x2af)])!=null?_0x3433be:this[_0x1fc0ba(0x2d5)],this[_0x1fc0ba(0x49d)]=(_0x1af4b1=_0x18234a[_0x1fc0ba(0x1ea)])!=null?_0x1af4b1:this[_0x1fc0ba(0x49d)],this['_labelPosition']=(_0x2e17ed=_0x18234a[_0x1fc0ba(0x3f3)])!=null?_0x2e17ed:this[_0x1fc0ba(0x28a)],this[_0x1fc0ba(0x24f)]=(_0x4d8cec=_0x18234a[_0x1fc0ba(0x245)])!=null?_0x4d8cec:this[_0x1fc0ba(0x24f)],this[_0x1fc0ba(0x377)]({'width':_0x18234a[_0x1fc0ba(0x3fc)],'height':_0x18234a[_0x1fc0ba(0x34c)]});}['onMouseMove'](_0xc266d4){const _0x9e3d46=_0x25c8ac,{row:_0x348e01,column:_0x446ee1}=_0xc266d4;if(_0x348e01>=this[_0x9e3d46(0x2d5)][_0x9e3d46(0x3b5)]&&_0x348e01<=this[_0x9e3d46(0x2d5)][_0x9e3d46(0x3cd)]&&_0x446ee1>=this[_0x9e3d46(0x2d5)][_0x9e3d46(0x3aa)]&&_0x446ee1<=this[_0x9e3d46(0x2d5)][_0x9e3d46(0x250)]){this[_0x9e3d46(0x34b)]({'hovered':!0x0});return;}this[_0x9e3d46(0x34b)]({'hovered':!0x1});}[_0x25c8ac(0x376)](_0x4e1c5b){return!0x1;}[_0x25c8ac(0x2a2)](_0x37aae2){const _0x2fd50a=_0x25c8ac;_0x396fb6[_0x2fd50a(0x2c2)][_0x2fd50a(0x2bd)](_0x37aae2,{'width':this[_0x2fd50a(0x3fc)],'height':this[_0x2fd50a(0x34c)],'strokeWidth':_0x4ae82e,'stroke':this[_0x2fd50a(0x479)],'evented':!0x1,'fill':this[_0x2fd50a(0x24f)]}),this[_0x2fd50a(0x22e)]&&(_0x37aae2[_0x2fd50a(0x3c2)](),_0x37aae2[_0x2fd50a(0x279)](0x1,0x0,0x0,0x1,this[_0x2fd50a(0x3fc)],this[_0x2fd50a(0x28a)]==='bottom'?0x0:-_0x3e88d8),_0x138c53['drawWith'](_0x37aae2,{'text':this[_0x2fd50a(0x49d)],'color':this['_color']}),_0x37aae2['restore']());}}var _0x30616d=Object['getOwnPropertyDescriptor'],_0x1a0574=(_0x27b98d,_0x5c36c6,_0xa0c220,_0x22dbef)=>{const _0x168b36=_0x25c8ac;for(var _0x1fa660=_0x22dbef>0x1?void 0x0:_0x22dbef?_0x30616d(_0x5c36c6,_0xa0c220):_0x5c36c6,_0x7f962e=_0x27b98d[_0x168b36(0x497)]-0x1,_0x126114;_0x7f962e>=0x0;_0x7f962e--)(_0x126114=_0x27b98d[_0x7f962e])&&(_0x1fa660=_0x126114(_0x1fa660)||_0x1fa660);return _0x1fa660;},_0x30b26c=(_0x88b9e8,_0x463d24)=>(_0x3cfdd2,_0xab744e)=>_0x463d24(_0x3cfdd2,_0xab744e,_0x88b9e8);const _0x973394=0x1389;let _0x62dded=class extends _0x51c091[_0x25c8ac(0x42f)]{constructor(_0x344475,_0x23d545,_0x359dde,_0x2a57a3){const _0x41953c=_0x25c8ac;super(),_0x3a54cf(this,_0x41953c(0x332),new Set()),_0x3a54cf(this,_0x41953c(0x424),null),(this[_0x41953c(0x31e)]=_0x344475,this[_0x41953c(0x473)]=_0x23d545,this['_collabCursorController']=_0x359dde,this[_0x41953c(0x2cd)]=_0x2a57a3,this[_0x41953c(0x38f)]());}[_0x25c8ac(0x38f)](){const _0x421f12=_0x25c8ac;this[_0x421f12(0x473)][_0x421f12(0x357)][_0x421f12(0x430)](_0xe24628['takeUntil'](this[_0x421f12(0x37a)]),_0xe24628[_0x421f12(0x38c)](_0x9ed001=>{const _0x33ab63=_0x421f12;if(_0x9ed001){const _0x7bbac3=_0x9ed001[_0x33ab63(0x2c8)];return _0x2d756d[_0x33ab63(0x496)](this[_0x33ab63(0x2fc)][_0x33ab63(0x2ef)](this[_0x33ab63(0x31e)][_0x33ab63(0x268)]),this[_0x33ab63(0x2cd)][_0x33ab63(0x23d)])[_0x33ab63(0x430)](_0xe24628[_0x33ab63(0x43d)](([_0x5d427a,_0x1a37ef])=>{const _0x2ff7ee=_0x33ab63,_0x6d0a5b=new Map();return _0x5d427a[_0x2ff7ee(0x345)]((_0x593936,_0x68004d)=>{const _0x5e1332=_0x2ff7ee;if(_0x593936[_0x5e1332(0x3f2)]===_0x7bbac3){const _0x2c79f1={..._0x593936};_0x2c79f1[_0x5e1332(0x2da)]=this[_0x5e1332(0x2cd)][_0x5e1332(0x2e5)](_0x593936[_0x5e1332(0x2da)]),_0x6d0a5b[_0x5e1332(0x22d)](_0x68004d,_0x2c79f1);}}),{'skeleton':_0x9ed001,'cursors':_0x6d0a5b};}));}return _0x2d756d['of']({'skeleton':null,'cursors':new Map()});}))[_0x421f12(0x2b3)](({skeleton:_0x2aaf49,cursors:_0x37bb7e})=>{const _0x77245=_0x421f12;this[_0x77245(0x22f)](),_0x2aaf49&&this['_updateCollabCursors'](_0x2aaf49,_0x37bb7e);}),this['_sheetSkeletonManagerService'][_0x421f12(0x357)][_0x421f12(0x2b3)](_0xf545b7=>{const _0x5e2dcd=_0x421f12;if(_0xf545b7==null)return;const {skeleton:_0x55cc3e}=_0xf545b7,{scene:_0x2e8369}=this['_context'];_0x2e8369[_0x5e2dcd(0x4c1)][_0x5e2dcd(0x402)](_0x51c091[_0x5e2dcd(0x447)](_0x18bb03=>{const _0x342587=_0x5e2dcd;var _0x4203f4,_0x5673f2;const {offsetX:_0x311f35,offsetY:_0x4d2298}=_0x18bb03,{x:_0x380bb5,y:_0x2bccee}=_0x2e8369['getRelativeToViewportCoord'](_0x396fb6['Vector2'][_0x342587(0x347)]([_0x311f35,_0x4d2298])),{scaleX:_0x364ff1,scaleY:_0x432c22}=_0x2e8369[_0x342587(0x1fc)](),_0x1c5010=_0x2e8369[_0x342587(0x34d)](_0x396fb6[_0x342587(0x2ce)][_0x342587(0x41a)]),_0x4b8458=_0x2e8369[_0x342587(0x49f)](_0x396fb6[_0x342587(0x49a)][_0x342587(0x347)]([_0x380bb5,_0x2bccee]),_0x1c5010),_0x168051=_0x55cc3e[_0x342587(0x365)](_0x311f35,_0x4d2298,_0x364ff1,_0x432c22,_0x4b8458);((_0x4203f4=this[_0x342587(0x424)])==null?void 0x0:_0x4203f4[_0x342587(0x2d8)])===_0x168051[_0x342587(0x2d8)]&&((_0x5673f2=this['_lastPointer'])==null?void 0x0:_0x5673f2[_0x342587(0x45b)])===_0x168051[_0x342587(0x45b)]||this[_0x342587(0x332)][_0x342587(0x345)](_0x4f8c53=>{_0x4f8c53['onMouseMove'](_0x168051);});},0x64));});}[_0x25c8ac(0x2f0)](_0x43c365,_0x2ab2cc){const _0x1c5a33=_0x25c8ac;var _0xbed0f6;const _0x3b333e=(_0xbed0f6=this[_0x1c5a33(0x473)]['getCurrent']())==null?void 0x0:_0xbed0f6[_0x1c5a33(0x20a)];if(!_0x3b333e)return;const _0x509b9c=this[_0x1c5a33(0x291)]();if(!_0x509b9c)return;this[_0x1c5a33(0x332)]['forEach'](_0x23bd84=>{const _0x4167fa=_0x1c5a33;_0x23bd84[_0x4167fa(0x3cc)]();});const {scene:_0x3e3aea}=_0x509b9c,_0x237390=_0x16ce05(Array[_0x1c5a33(0x3de)](_0x2ab2cc[_0x1c5a33(0x232)]()))['map'](_0x41820f=>{const _0x345500=_0x1c5a33,{color:_0x36c604,range:_0x3cc6de,name:_0x1feb22,selection:_0x360344,sheetID:_0x235403}=_0x41820f,{startColumn:_0x363726,startRow:_0x5f5442,endColumn:_0x467034,endRow:_0x13736d}=_0x3cc6de,_0x285441=_0x5aaf45[_0x345500(0x269)](_0x5f5442,_0x363726,_0x3e3aea,_0x3b333e),_0x43baa8=_0x5aaf45[_0x345500(0x269)](_0x13736d,_0x467034,_0x3e3aea,_0x3b333e),{columnHeaderHeightAndMarginTop:_0x431061}=_0x3b333e,{startX:_0x49e3c8,startY:_0x36a690}=_0x285441,{endX:_0x4cc179,endY:_0x2fa19e}=_0x43baa8,_0x533b91=_0x4cc179-_0x49e3c8,_0x10eb9b=_0x2fa19e-_0x36a690,_0xfa2e0c={'labelPosition':_0x36a690-_0x431061>=_0x3e88d8?_0x345500(0x49b):_0x345500(0x4c2),'sheetID':_0x235403,'range':_0x3cc6de,'color':_0x36c604,'name':_0x1feb22,'selection':_0x360344,'left':_0x49e3c8,'top':_0x36a690,'width':_0x533b91,'height':_0x10eb9b,'evented':!0x1,'zIndex':_0x973394};return new _0x1855f6(_0x1feb22,_0xfa2e0c);});_0x3e3aea[_0x1c5a33(0x3f4)](_0x237390,_0x1b8c31),this[_0x1c5a33(0x332)]=new Set(_0x237390);}[_0x25c8ac(0x22f)](){const _0x3a6ac6=_0x25c8ac;var _0x441f6b;(_0x441f6b=this[_0x3a6ac6(0x332)])==null||_0x441f6b[_0x3a6ac6(0x345)](_0x15aec0=>_0x15aec0[_0x3a6ac6(0x325)]());}[_0x25c8ac(0x291)](){const _0x3d2048=_0x25c8ac;return _0x5aaf45['getSheetObject'](this[_0x3d2048(0x31e)][_0x3d2048(0x4b5)],this['_context']);}};_0x62dded=_0x1a0574([_0x30b26c(0x1,_0x51c091[_0x25c8ac(0x301)](_0x5aaf45[_0x25c8ac(0x351)])),_0x30b26c(0x2,_0x51c091['Inject'](_0x43fe6e)),_0x30b26c(0x3,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x41b)]))],_0x62dded);function _0x16ce05(_0x40d3b2){const _0x2cbbf9=_0x25c8ac,_0x4bfad6=new Map();return _0x40d3b2['forEach'](_0x14de9b=>{const _0x4835e7=_0xd869;if(_0x4bfad6[_0x4835e7(0x297)](_0x14de9b[_0x4835e7(0x27d)])){const _0x5031e2=_0x4bfad6[_0x4835e7(0x4c4)](_0x14de9b[_0x4835e7(0x27d)]);_0x5031e2[_0x4835e7(0x1ea)]+=',\x20'+_0x14de9b[_0x4835e7(0x1ea)];}else _0x4bfad6[_0x4835e7(0x22d)](_0x14de9b[_0x4835e7(0x27d)],_0x14de9b);}),Array[_0x2cbbf9(0x3de)](_0x4bfad6[_0x2cbbf9(0x232)]());}var _0x29ab0c=Object[_0x25c8ac(0x3a8)],_0x15b492=(_0x16eb62,_0x35edbe,_0x4bfdb7,_0x23c58d)=>{const _0x2d88d8=_0x25c8ac;for(var _0x58517f=_0x23c58d>0x1?void 0x0:_0x23c58d?_0x29ab0c(_0x35edbe,_0x4bfdb7):_0x35edbe,_0x31ba92=_0x16eb62[_0x2d88d8(0x497)]-0x1,_0x2ba036;_0x31ba92>=0x0;_0x31ba92--)(_0x2ba036=_0x16eb62[_0x31ba92])&&(_0x58517f=_0x2ba036(_0x58517f)||_0x58517f);return _0x58517f;},_0x425b82=(_0x38ae6c,_0x160252)=>(_0x51ffc0,_0x134016)=>_0x160252(_0x51ffc0,_0x134016,_0x38ae6c);let _0x1e22db=class extends _0x51c091[_0x25c8ac(0x379)]{constructor(_0x1ac8ac,_0x1d1d63,_0x202e91,_0x30edaa,_0x376001,_0x31f904){const _0x2b57cc=_0x25c8ac;super(),this[_0x2b57cc(0x48a)]=_0x1ac8ac,this[_0x2b57cc(0x267)]=_0x1d1d63,this['_collaborationUIEventService']=_0x202e91,this[_0x2b57cc(0x264)]=_0x30edaa,this[_0x2b57cc(0x31d)]=_0x376001,this[_0x2b57cc(0x372)]=_0x31f904,this[_0x2b57cc(0x2c3)](),this[_0x2b57cc(0x229)]();}[_0x25c8ac(0x2c3)](){const _0x2ed39f=_0x25c8ac;this[_0x2ed39f(0x1f5)](this[_0x2ed39f(0x48a)][_0x2ed39f(0x368)](()=>{const _0x49413d=_0x2ed39f;if(this[_0x49413d(0x267)][_0x49413d(0x237)][_0x49413d(0x3ac)])return this[_0x49413d(0x372)]['t'](_0x49413d(0x21f));}));}['_initEvent'](){const _0x57b5ac=_0x25c8ac;this['disposeWithMe'](this[_0x57b5ac(0x43f)][_0x57b5ac(0x2c1)][_0x57b5ac(0x2b3)](_0x4bc46e=>{const _0xcf2a45=_0x57b5ac;_0x4bc46e['id']===_0x493e59['CollaborationUIEventId'][_0xcf2a45(0x3f0)]&&this['_messageService'][_0xcf2a45(0x392)]({'type':_0x1039db[_0xcf2a45(0x26f)][_0xcf2a45(0x2ad)],'content':this[_0xcf2a45(0x372)]['t'](_0xcf2a45(0x25b))}),_0x4bc46e['id']===_0x493e59[_0xcf2a45(0x481)][_0xcf2a45(0x280)]&&this[_0xcf2a45(0x264)][_0xcf2a45(0x392)]({'type':_0x1039db['MessageType'][_0xcf2a45(0x2ad)],'content':this[_0xcf2a45(0x372)]['t']('collaboration.closeRoom')}),_0x4bc46e['id']===_0x493e59[_0xcf2a45(0x481)][_0xcf2a45(0x292)]&&this['_notificationService'][_0xcf2a45(0x392)]({'title':this[_0xcf2a45(0x372)]['t'](_0xcf2a45(0x4aa)),'content':this[_0xcf2a45(0x372)]['t'](_0xcf2a45(0x239)),'type':_0xcf2a45(0x3df),'duration':0x0}),_0x4bc46e['id']===_0x493e59[_0xcf2a45(0x481)][_0xcf2a45(0x1ec)]&&this[_0xcf2a45(0x264)]['show']({'type':_0x1039db['MessageType'][_0xcf2a45(0x235)],'content':this[_0xcf2a45(0x372)]['t']('collaboration.closeRoom')+'('+_0x4bc46e[_0xcf2a45(0x303)]+')'}),_0x4bc46e['id']===_0x493e59[_0xcf2a45(0x481)][_0xcf2a45(0x46e)]&&this[_0xcf2a45(0x264)][_0xcf2a45(0x392)]({'type':_0x1039db[_0xcf2a45(0x26f)][_0xcf2a45(0x2ad)],'content':this[_0xcf2a45(0x372)]['t'](_0x4bc46e[_0xcf2a45(0x303)]||'')}),_0x4bc46e['id']===_0x493e59[_0xcf2a45(0x481)][_0xcf2a45(0x224)]&&this[_0xcf2a45(0x264)][_0xcf2a45(0x392)]({'type':_0x1039db[_0xcf2a45(0x26f)][_0xcf2a45(0x2ad)],'content':this[_0xcf2a45(0x372)]['t'](_0xcf2a45(0x46b))}),_0x4bc46e['id']===_0x493e59[_0xcf2a45(0x481)]['SOCKET_FAILED']&&this['_messageService']['show']({'type':_0x1039db['MessageType']['Error'],'content':this[_0xcf2a45(0x372)]['t']('session.connection-failed')}),_0x4bc46e['id']===_0x493e59[_0xcf2a45(0x481)][_0xcf2a45(0x31c)]&&this[_0xcf2a45(0x264)][_0xcf2a45(0x392)]({'type':_0x1039db[_0xcf2a45(0x26f)][_0xcf2a45(0x235)],'content':this[_0xcf2a45(0x372)]['t'](_0xcf2a45(0x373))});}));}};_0x1e22db=_0x15b492([_0x425b82(0x0,_0x47d161['IBeforeCloseService']),_0x425b82(0x1,_0x493e59[_0x25c8ac(0x4cd)]),_0x425b82(0x2,_0x51c091['Inject'](_0x493e59[_0x25c8ac(0x3fa)])),_0x425b82(0x3,_0x47d161[_0x25c8ac(0x492)]),_0x425b82(0x4,_0x47d161[_0x25c8ac(0x3f5)]),_0x425b82(0x5,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x27c)]))],_0x1e22db);var _0x4f6c6d=Object[_0x25c8ac(0x3a8)],_0x2f7efc=(_0x3d41a8,_0xc390b3,_0x97e7ab,_0x10d50d)=>{const _0x355344=_0x25c8ac;for(var _0x405f5a=_0x10d50d>0x1?void 0x0:_0x10d50d?_0x4f6c6d(_0xc390b3,_0x97e7ab):_0xc390b3,_0x3a3866=_0x3d41a8[_0x355344(0x497)]-0x1,_0x5172d6;_0x3a3866>=0x0;_0x3a3866--)(_0x5172d6=_0x3d41a8[_0x3a3866])&&(_0x405f5a=_0x5172d6(_0x405f5a)||_0x405f5a);return _0x405f5a;},_0x1c94f3=(_0x2b616c,_0xe8b611)=>(_0x20c8f2,_0x5d156b)=>_0xe8b611(_0x20c8f2,_0x5d156b,_0x2b616c);let _0x5971ed=class extends _0x51c091[_0x25c8ac(0x379)]{constructor(_0x4c106d,_0xcdfbef,_0x475d77,_0x283c7e){const _0x3d0aca=_0x25c8ac;super(),_0x3a54cf(this,'_memberID'),(this[_0x3d0aca(0x3e5)]=_0x4c106d,this['_httpService']=_0xcdfbef,this[_0x3d0aca(0x38d)]=_0x475d77,this[_0x3d0aca(0x205)]=_0x283c7e,this['_init']());}[_0x25c8ac(0x38f)](){const _0x101e45=_0x25c8ac;this['_initWindowErrorListener'](),this[_0x101e45(0x4d3)](),this[_0x101e45(0x21e)](),this['_initUserListener']();}[_0x25c8ac(0x472)](){const _0xa13380=_0x25c8ac;this['disposeWithMe'](this[_0xa13380(0x205)][_0xa13380(0x4be)][_0xa13380(0x2b3)](_0x9b739d=>{const _0x127833=_0xa13380;this[_0x127833(0x318)]=_0x9b739d==null?void 0x0:_0x9b739d[_0x127833(0x4b8)];}));}[_0x25c8ac(0x32c)](){const _0x764f1a=_0x25c8ac,_0x54c5ba=_0x5610ab=>{const _0x2eb333=_0xd869;var _0x453d1a;this['_uploadLog'](_0x2eb333(0x3df),_0x2eb333(0x416)+_0x5610ab['message']+'\x20at\x20'+_0x5610ab['filename']+':'+_0x5610ab[_0x2eb333(0x4d2)]+':'+_0x5610ab[_0x2eb333(0x2f3)]+'\x0a'+(((_0x453d1a=_0x5610ab[_0x2eb333(0x3df)])==null?void 0x0:_0x453d1a[_0x2eb333(0x493)])||''));};window[_0x764f1a(0x222)](_0x764f1a(0x3df),_0x54c5ba),this[_0x764f1a(0x1f5)](()=>{const _0x2907ce=_0x764f1a;window[_0x2907ce(0x464)]('error',_0x54c5ba);});}[_0x25c8ac(0x4d3)](){const _0x1af3b0=_0x25c8ac,_0x235439=_0x37288f=>{const _0x4cbf28=_0xd869;this[_0x4cbf28(0x257)]('error',_0x4cbf28(0x283)+_0x37288f[_0x4cbf28(0x2ec)]);};window[_0x1af3b0(0x222)](_0x1af3b0(0x28e),_0x235439),this[_0x1af3b0(0x1f5)](()=>{const _0x3d6b8c=_0x1af3b0;window[_0x3d6b8c(0x464)](_0x3d6b8c(0x28e),_0x235439);});}[_0x25c8ac(0x21e)](){const _0x284c87=_0x25c8ac,_0x87d50f=this[_0x284c87(0x38d)][_0x284c87(0x3df)][_0x284c87(0x20f)](this['_logService']);this[_0x284c87(0x38d)]['error']=(..._0x569935)=>{const _0x2b2d3d=_0x284c87,_0x58e01d=_0x569935['map'](_0x45a0e4=>_0x45a0e4 instanceof Error?_0x45a0e4[_0x2b2d3d(0x2f6)]+'\x0a'+_0x45a0e4['stack']:String(_0x45a0e4))[_0x2b2d3d(0x466)]('\x20');this['_uploadLog'](_0x2b2d3d(0x3df),'[LogService\x20Error]:\x20'+_0x58e01d),_0x87d50f(..._0x569935);},this[_0x284c87(0x1f5)](()=>{const _0x5a14d6=_0x284c87;this[_0x5a14d6(0x38d)][_0x5a14d6(0x3df)]=_0x87d50f;});}[_0x25c8ac(0x257)](_0x370db7,_0x5a73c5){const _0xba4ba=_0x25c8ac;try{const _0x4c43da={'userId':this[_0xba4ba(0x318)],'logLabel':_0x370db7,'content':_0x5a73c5};this['_httpService']['post']('/universer-api/frontend/logs',{'body':_0x4c43da})[_0xba4ba(0x3a4)](()=>{});}catch{}}};_0x5971ed=_0x2f7efc([_0x1c94f3(0x0,_0x51c091['Inject'](_0x51c091[_0x25c8ac(0x26a)])),_0x1c94f3(0x1,_0x51c091[_0x25c8ac(0x301)](_0x38be65[_0x25c8ac(0x436)])),_0x1c94f3(0x2,_0x51c091[_0x25c8ac(0x36e)]),_0x1c94f3(0x3,_0x51c091['Inject'](_0x493e59[_0x25c8ac(0x1f2)]))],_0x5971ed);const _0x50d024=_0x25c8ac(0x2a5),_0x3bc6e3={};var _0x393079=Object[_0x25c8ac(0x3a8)],_0x4f22c5=(_0x25beb7,_0x424d8f,_0xa4c970,_0x194e62)=>{const _0x1aeb36=_0x25c8ac;for(var _0x1515fb=_0x194e62>0x1?void 0x0:_0x194e62?_0x393079(_0x424d8f,_0xa4c970):_0x424d8f,_0x104bfe=_0x25beb7[_0x1aeb36(0x497)]-0x1,_0x551135;_0x104bfe>=0x0;_0x104bfe--)(_0x551135=_0x25beb7[_0x104bfe])&&(_0x1515fb=_0x551135(_0x1515fb)||_0x1515fb);return _0x1515fb;},_0x42042d=(_0x4ba6dc,_0x4acd0d)=>(_0x573318,_0x1bae24)=>_0x4acd0d(_0x573318,_0x1bae24,_0x4ba6dc);let _0x36d845=class{constructor(_0x296b0f,_0x52873d){const _0x1a41e8=_0x25c8ac;this[_0x1a41e8(0x414)]=_0x296b0f,this[_0x1a41e8(0x21c)]=_0x52873d;}[_0x25c8ac(0x29b)](_0x1af2ba){const _0x5b1295=_0x25c8ac;this[_0x5b1295(0x4ac)](_0x1af2ba),this[_0x5b1295(0x382)](_0x1af2ba);}['transformRemoteChangeset'](_0x1b3fff){const _0x1994fa=_0x25c8ac,{unitID:_0x36ae73}=_0x1b3fff,_0x40a0d9=this[_0x1994fa(0x21c)][_0x1994fa(0x25a)](_0x36ae73)['with'](_0x594fa4['DocIMEInputManagerService']),{redoCache:_0x2098eb}=_0x40a0d9['getUndoRedoMutationParamsCache']();if(_0x2098eb[_0x1994fa(0x497)]===0x0)return _0x1b3fff;let _0x2bdabf=_0x51c091[_0x1994fa(0x3ff)]['deepClone'](_0x1b3fff['mutations'][0x0]);for(let _0xc889c7=0x0;_0xc889c7<_0x2098eb['length'];_0xc889c7++){const _0xbe59={'id':'doc.mutation.rich-text-editing','params':{..._0x2098eb[_0xc889c7]}},_0x3360ee=this['_transformService'][_0x1994fa(0x2b2)](_0x2bdabf,_0xbe59,!0x1);if(_0x5b9cab[_0x1994fa(0x452)](_0x3360ee))throw _0x3360ee[_0x1994fa(0x3df)];_0x2bdabf=_0x3360ee['m1Prime'];}return{..._0x51c091[_0x1994fa(0x3ff)][_0x1994fa(0x259)](_0x1b3fff),'mutations':[_0x2bdabf]};}[_0x25c8ac(0x4ac)](_0x1f1546){const _0x11d044=_0x25c8ac,{unitID:_0x2ec474}=_0x1f1546,_0x2af329=this[_0x11d044(0x21c)]['getRenderById'](_0x2ec474)[_0x11d044(0x339)](_0x594fa4['DocIMEInputManagerService']),{undoCache:_0x4c182d,redoCache:_0x5ced31}=_0x2af329[_0x11d044(0x2cc)]();if(_0x4c182d[_0x11d044(0x497)]===0x0||_0x5ced31[_0x11d044(0x497)]===0x0)return;const _0x19b3a4=[],_0x4e8156=[];let _0x41fa1e=_0x51c091[_0x11d044(0x3ff)]['deepClone'](_0x1f1546['mutations'][0x0]),_0x5ea255=_0x51c091[_0x11d044(0x3ff)][_0x11d044(0x259)](_0x1f1546[_0x11d044(0x2dc)][0x0]);for(let _0x53d254=_0x4c182d[_0x11d044(0x497)]-0x1;_0x53d254>=0x0;_0x53d254--){const _0x1af8ad={'id':'doc.mutation.rich-text-editing','params':{..._0x4c182d[_0x53d254]}},_0x105dad={'id':'doc.mutation.rich-text-editing','params':{..._0x5ced31[_0x53d254]}},_0x25fab0=this[_0x11d044(0x414)][_0x11d044(0x2b2)](_0x41fa1e,_0x1af8ad,!0x1),_0x5ece87=this[_0x11d044(0x414)][_0x11d044(0x2b2)](_0x5ea255,_0x105dad,!0x1);if(_0x5b9cab[_0x11d044(0x452)](_0x25fab0))throw _0x25fab0['error'];if(_0x5b9cab[_0x11d044(0x452)](_0x5ece87))throw _0x5ece87[_0x11d044(0x3df)];_0x19b3a4[_0x11d044(0x4cf)](_0x25fab0[_0x11d044(0x389)][_0x11d044(0x411)]),_0x4e8156[_0x11d044(0x4cf)](_0x5ece87[_0x11d044(0x389)][_0x11d044(0x411)]),_0x41fa1e=_0x25fab0[_0x11d044(0x33c)],_0x5ea255=_0x5ece87[_0x11d044(0x33c)];}_0x2af329['setUndoRedoMutationParamsCache']({'undoCache':_0x19b3a4,'redoCache':_0x4e8156});}[_0x25c8ac(0x382)](_0x186536){const _0x40fea0=_0x25c8ac,{unitID:_0x5cbecc}=_0x186536,_0x66e5df=this[_0x40fea0(0x21c)][_0x40fea0(0x25a)](_0x5cbecc)['with'](_0x594fa4[_0x40fea0(0x2df)]),_0x3af6fe=_0x66e5df[_0x40fea0(0x381)]();if(_0x3af6fe==null)return;const _0x2159ae=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x186536['unitID'],'actions':null,'textRanges':[_0x3af6fe]}}],_0x510151=this[_0x40fea0(0x414)][_0x40fea0(0x2bb)](_0x186536,_0x2159ae);if(!_0x5b9cab[_0x40fea0(0x314)](_0x510151))throw _0x510151['error'];const _0x526d21=_0x510151[_0x40fea0(0x389)][0x0]['params'][_0x40fea0(0x45a)];Array[_0x40fea0(0x1fa)](_0x526d21)&&_0x526d21[_0x40fea0(0x497)]&&_0x66e5df['setActiveRange'](_0x526d21[0x0]);}};_0x36d845=_0x4f22c5([_0x42042d(0x0,_0x5b9cab[_0x25c8ac(0x431)]),_0x42042d(0x1,_0x396fb6['IRenderManagerService'])],_0x36d845);var _0x5d8053=Object[_0x25c8ac(0x3a8)],_0x56f933=(_0x188e70,_0x42a546,_0x2a3b1f,_0x4a80b5)=>{for(var _0x25fd9d=_0x4a80b5>0x1?void 0x0:_0x4a80b5?_0x5d8053(_0x42a546,_0x2a3b1f):_0x42a546,_0x1efe8a=_0x188e70['length']-0x1,_0x59958a;_0x1efe8a>=0x0;_0x1efe8a--)(_0x59958a=_0x188e70[_0x1efe8a])&&(_0x25fd9d=_0x59958a(_0x25fd9d)||_0x25fd9d);return _0x25fd9d;},_0x5833a8=(_0x18f96f,_0x184249)=>(_0x11b367,_0x2ac88f)=>_0x184249(_0x11b367,_0x2ac88f,_0x18f96f);let _0x40750b=class{constructor(_0x3a865a,_0x37fcbc,_0x424c94){const _0x53f457=_0x25c8ac;this[_0x53f457(0x3e5)]=_0x3a865a,this[_0x53f457(0x414)]=_0x37fcbc,this[_0x53f457(0x20b)]=_0x424c94;}[_0x25c8ac(0x3b8)](_0xe3db17){const _0x1df755=_0x25c8ac;this[_0x1df755(0x254)](_0xe3db17);}[_0x25c8ac(0x364)](_0x3dd461){const _0x3b9195=_0x25c8ac,{unitID:_0x247cef}=_0x3dd461,{collaboration:_0x1836b1}=this[_0x3b9195(0x20b)][_0x3b9195(0x4d4)](_0x247cef);if(_0x1836b1[_0x3b9195(0x497)]===0x0)return _0x3dd461;let _0xacc4a4=_0x51c091['Tools'][_0x3b9195(0x259)](_0x3dd461[_0x3b9195(0x2dc)][0x0]);for(let _0x763975=0x0;_0x763975<_0x1836b1['length'];_0x763975++){const _0x837758={'id':_0x3b9195(0x21a),'params':{'unitId':_0x1836b1[_0x763975]['unitId'],..._0x1836b1[_0x763975][_0x3b9195(0x272)]}},_0x464696=this[_0x3b9195(0x414)][_0x3b9195(0x2b2)](_0xacc4a4,_0x837758,!0x1);if(_0x5b9cab[_0x3b9195(0x452)](_0x464696))throw _0x464696[_0x3b9195(0x3df)];_0xacc4a4=_0x464696[_0x3b9195(0x33c)];}return{..._0x51c091['Tools'][_0x3b9195(0x259)](_0x3dd461),'mutations':[_0xacc4a4]};}['_transformHistoryAndStateStack'](_0x2304a4){const _0x3c7267=_0x25c8ac,{unitID:_0x23b94d}=_0x2304a4,{history:_0x533608,collaboration:_0x55b871}=this[_0x3c7267(0x20b)][_0x3c7267(0x4d4)](_0x23b94d);if(_0x533608[_0x3c7267(0x497)]===0x0&&_0x55b871['length']===0x0)return;const _0x47bc20=[],_0x4d68fb=[];let _0x16873c=_0x51c091[_0x3c7267(0x3ff)][_0x3c7267(0x259)](_0x2304a4['mutations'][0x0]),_0x39051e=_0x51c091['Tools']['deepClone'](_0x2304a4[_0x3c7267(0x2dc)][0x0]);for(let _0x40e6cf=_0x533608['length']-0x1;_0x40e6cf>=0x0;_0x40e6cf--){const _0x193b0d={'id':_0x3c7267(0x21a),'params':{'unitId':_0x533608[_0x40e6cf][_0x3c7267(0x268)],..._0x533608[_0x40e6cf][_0x3c7267(0x415)]}},_0x41bade={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x533608[_0x40e6cf]['unitId'],..._0x533608[_0x40e6cf]['redoState']}},_0x1764e5=this[_0x3c7267(0x414)]['transformMutation'](_0x16873c,_0x193b0d,!0x1),_0x1fee67=this[_0x3c7267(0x414)][_0x3c7267(0x2b2)](_0x39051e,_0x41bade,!0x1);if(_0x5b9cab[_0x3c7267(0x452)](_0x1764e5))throw _0x1764e5[_0x3c7267(0x3df)];if(_0x5b9cab[_0x3c7267(0x452)](_0x1fee67))throw _0x1fee67[_0x3c7267(0x3df)];_0x47bc20[_0x3c7267(0x4cf)]({..._0x533608[_0x40e6cf],'undoState':_0x1764e5[_0x3c7267(0x389)][_0x3c7267(0x411)],'redoState':_0x1fee67[_0x3c7267(0x389)][_0x3c7267(0x411)]}),_0x16873c=_0x1764e5[_0x3c7267(0x33c)],_0x39051e=_0x1fee67[_0x3c7267(0x33c)];}_0x16873c=_0x51c091[_0x3c7267(0x3ff)][_0x3c7267(0x259)](_0x2304a4[_0x3c7267(0x2dc)][0x0]),_0x39051e=_0x51c091[_0x3c7267(0x3ff)][_0x3c7267(0x259)](_0x2304a4[_0x3c7267(0x2dc)][0x0]);for(let _0x3e7061=_0x55b871[_0x3c7267(0x497)]-0x1;_0x3e7061>=0x0;_0x3e7061--){const _0x302915={'id':_0x3c7267(0x21a),'params':{'unitId':_0x55b871[_0x3e7061][_0x3c7267(0x268)],..._0x55b871[_0x3e7061][_0x3c7267(0x415)]}},_0x356470={'id':_0x3c7267(0x21a),'params':{'unitId':_0x55b871[_0x3e7061]['unitId'],..._0x55b871[_0x3e7061][_0x3c7267(0x272)]}},_0x51f03c=this[_0x3c7267(0x414)][_0x3c7267(0x2b2)](_0x16873c,_0x302915,!0x1),_0x19fb70=this['_transformService'][_0x3c7267(0x2b2)](_0x39051e,_0x356470,!0x1);if(_0x5b9cab[_0x3c7267(0x452)](_0x51f03c))throw _0x51f03c['error'];if(_0x5b9cab[_0x3c7267(0x452)](_0x19fb70))throw _0x19fb70[_0x3c7267(0x3df)];_0x4d68fb['unshift']({..._0x55b871[_0x3e7061],'undoState':_0x51f03c[_0x3c7267(0x389)][_0x3c7267(0x411)],'redoState':_0x19fb70[_0x3c7267(0x389)][_0x3c7267(0x411)]}),_0x16873c=_0x51f03c[_0x3c7267(0x33c)],_0x39051e=_0x19fb70['m1Prime'];}this['_docStateChangeManagerService'][_0x3c7267(0x3b1)](_0x23b94d,{'history':_0x47bc20,'collaboration':_0x4d68fb});}};_0x40750b=_0x56f933([_0x5833a8(0x0,_0x51c091['Inject'](_0x51c091[_0x25c8ac(0x26a)])),_0x5833a8(0x1,_0x5b9cab['ITransformService']),_0x5833a8(0x2,_0x51c091[_0x25c8ac(0x301)](_0x594fa4[_0x25c8ac(0x2d9)]))],_0x40750b);var _0x132645=Object[_0x25c8ac(0x3a8)],_0x4bbfef=(_0x2c60e8,_0x4e3d5c,_0x122742,_0x3372ea)=>{for(var _0x2457d0=_0x3372ea>0x1?void 0x0:_0x3372ea?_0x132645(_0x4e3d5c,_0x122742):_0x4e3d5c,_0x230e30=_0x2c60e8['length']-0x1,_0x113fc0;_0x230e30>=0x0;_0x230e30--)(_0x113fc0=_0x2c60e8[_0x230e30])&&(_0x2457d0=_0x113fc0(_0x2457d0)||_0x2457d0);return _0x2457d0;},_0x536d50=(_0xbf09c6,_0x419445)=>(_0x49e432,_0x519452)=>_0x419445(_0x49e432,_0x519452,_0xbf09c6);let _0x4139fa=class{constructor(_0x5ccb2b,_0x13ca82){const _0x73fddc=_0x25c8ac;this[_0x73fddc(0x3e5)]=_0x5ccb2b,this['_transformService']=_0x13ca82;}[_0x25c8ac(0x467)](_0x554ae8){const _0x3eed8f=_0x25c8ac;var _0x437b5f;const _0x11e68b=this[_0x3eed8f(0x3e5)][_0x3eed8f(0x4c4)](_0x37270e['DocSelectionManagerService']),_0x5a81dc=(_0x437b5f=_0x11e68b[_0x3eed8f(0x4d8)]())!=null?_0x437b5f:[];if(_0x5a81dc[_0x3eed8f(0x497)]===0x0)return;const _0x391912=_0x554ae8[_0x3eed8f(0x3e1)],_0x2950cd=[{'id':_0x3eed8f(0x21a),'params':{'unitId':_0x391912,'actions':null,'textRanges':_0x5a81dc}}],_0xca6d5f=this[_0x3eed8f(0x414)][_0x3eed8f(0x2bb)](_0x554ae8,_0x2950cd);if(!_0x5b9cab[_0x3eed8f(0x314)](_0xca6d5f))throw _0xca6d5f[_0x3eed8f(0x3df)];const _0x214e9a=_0xca6d5f['m2Prime'][0x0][_0x3eed8f(0x411)][_0x3eed8f(0x45a)];Array[_0x3eed8f(0x1fa)](_0x214e9a)&&_0x214e9a[_0x3eed8f(0x497)]&&_0x11e68b[_0x3eed8f(0x2f7)](_0x214e9a,{'unitId':_0x391912,'subUnitId':_0x391912},!0x1);}};_0x4139fa=_0x4bbfef([_0x536d50(0x0,_0x51c091[_0x25c8ac(0x301)](_0x51c091['Injector'])),_0x536d50(0x1,_0x5b9cab[_0x25c8ac(0x431)])],_0x4139fa);var _0x239ce6=Object[_0x25c8ac(0x3a8)],_0x19aec7=(_0xcf162,_0x4b7fb1,_0x1a523d,_0x14a893)=>{for(var _0xd33dde=_0x14a893>0x1?void 0x0:_0x14a893?_0x239ce6(_0x4b7fb1,_0x1a523d):_0x4b7fb1,_0x599a3e=_0xcf162['length']-0x1,_0x3ce1fc;_0x599a3e>=0x0;_0x599a3e--)(_0x3ce1fc=_0xcf162[_0x599a3e])&&(_0xd33dde=_0x3ce1fc(_0xd33dde)||_0xd33dde);return _0xd33dde;},_0x333003=(_0x4a5f19,_0x175aa9)=>(_0x2c56a5,_0x3b6eb1)=>_0x175aa9(_0x2c56a5,_0x3b6eb1,_0x4a5f19);let _0x41b37a=class extends _0x51c091[_0x25c8ac(0x379)]{constructor(_0x1f0f14,_0x2e4f5e,_0xee5db6,_0x1576a3,_0x3c2229,_0x25d9a3,_0x503918,_0x3ef373){const _0x15f9d1=_0x25c8ac;super(),_0x3a54cf(this,_0x15f9d1(0x346),new _0x2d756d[(_0x15f9d1(0x243))](_0x493e59['CollaborationStatus'][_0x15f9d1(0x356)])),(this[_0x15f9d1(0x20b)]=_0x1f0f14,this[_0x15f9d1(0x480)]=_0x2e4f5e,this[_0x15f9d1(0x2cf)]=_0xee5db6,this[_0x15f9d1(0x32e)]=_0x1576a3,this['_docTransformSelectionsService']=_0x3c2229,this['_docSyncEditingCollabCursorService']=_0x25d9a3,this[_0x15f9d1(0x264)]=_0x503918,this[_0x15f9d1(0x372)]=_0x3ef373,this[_0x15f9d1(0x46d)]());}[_0x25c8ac(0x46d)](){const _0x56f26d=_0x25c8ac;this['disposeWithMe'](this['_collaborationController'][_0x56f26d(0x4b3)][_0x56f26d(0x2b3)](_0x2724db=>{const _0x53ec8c=_0x56f26d,_0xb2d254=this['_docStateChangeManagerService'][_0x53ec8c(0x2dd)]['subscribe'](_0x4e81e3=>{const _0x3dedca=_0x53ec8c;if(_0x4e81e3==null)return;const {unitId:_0x1f084f,redoState:_0x385ba0,commandId:_0x33a782}=_0x4e81e3;if(_0x1f084f!==_0x2724db[_0x3dedca(0x3e1)])return;const _0x44a2e7={'id':_0x33a782,'type':_0x51c091[_0x3dedca(0x3fe)]['MUTATION'],'params':{'unitId':_0x1f084f,'actions':_0x385ba0[_0x3dedca(0x265)],'textRanges':null}};_0x2724db['onLocalMutation'](_0x44a2e7);});if(_0x2724db[_0x53ec8c(0x1f5)](_0xb2d254),_0x2724db instanceof _0x493e59[_0x53ec8c(0x3ad)]){const _0x3652e1={'onTransformIME':_0x442c35=>this[_0x53ec8c(0x2cf)][_0x53ec8c(0x29b)](_0x442c35),'onTransformState':_0x37a17b=>this[_0x53ec8c(0x32e)][_0x53ec8c(0x3b8)](_0x37a17b),'onTransformSelections':_0x441060=>this[_0x53ec8c(0x384)]['transformSelections'](_0x441060),'onSyncEditingCollabCursor':_0x1282b5=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x1282b5),'onTransformRemoteChangesetByIMECache':_0x22c662=>this[_0x53ec8c(0x2cf)]['transformRemoteChangeset'](_0x22c662),'onTransformRemoteChangesetByStateCache':_0x8e56a7=>this[_0x53ec8c(0x32e)][_0x53ec8c(0x364)](_0x8e56a7)};_0x2724db['addHandlerCallback'](_0x3652e1);}}));}};_0x41b37a=_0x19aec7([_0x333003(0x0,_0x51c091['Inject'](_0x594fa4[_0x25c8ac(0x2d9)])),_0x333003(0x1,_0x51c091[_0x25c8ac(0x301)](_0x493e59[_0x25c8ac(0x1f8)])),_0x333003(0x2,_0x51c091[_0x25c8ac(0x301)](_0x36d845)),_0x333003(0x3,_0x51c091[_0x25c8ac(0x301)](_0x40750b)),_0x333003(0x4,_0x51c091[_0x25c8ac(0x301)](_0x4139fa)),_0x333003(0x5,_0x51c091[_0x25c8ac(0x301)](_0x43bd11)),_0x333003(0x6,_0x47d161[_0x25c8ac(0x492)]),_0x333003(0x7,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x27c)]))],_0x41b37a);var _0x19b5af=(_0x437107=>(_0x437107[_0x437107[_0x25c8ac(0x3a2)]=0x0]=_0x25c8ac(0x3a2),_0x437107[_0x437107['OK']=0x1]='OK',_0x437107[_0x437107[_0x25c8ac(0x305)]=0x2]=_0x25c8ac(0x305),_0x437107[_0x437107['PERMISSION_DENIED']=0x3]=_0x25c8ac(0x292),_0x437107[_0x437107[_0x25c8ac(0x490)]=0x4]='NOT_FOUND',_0x437107[_0x437107['UNAUTHENTICATED']=0x5]=_0x25c8ac(0x427),_0x437107[_0x437107[_0x25c8ac(0x3c0)]=0x6]='ALREADY_EXISTS',_0x437107[_0x437107['INVALID_ARGUMENT']=0x7]=_0x25c8ac(0x350),_0x437107[_0x437107[_0x25c8ac(0x32f)]=0x8]=_0x25c8ac(0x32f),_0x437107[_0x437107['COMPLETION_FINISHED']=0x9]=_0x25c8ac(0x3f1),_0x437107[_0x437107[_0x25c8ac(0x3e6)]=0xa]=_0x25c8ac(0x3e6),_0x437107[_0x437107[_0x25c8ac(0x35e)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x437107[_0x437107[_0x25c8ac(0x4ae)]=0xc]=_0x25c8ac(0x4ae),_0x437107[_0x437107[_0x25c8ac(0x4ca)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x437107[_0x437107[_0x25c8ac(0x40c)]=0xe]=_0x25c8ac(0x40c),_0x437107[_0x437107['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x25c8ac(0x367),_0x437107[_0x437107['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x25c8ac(0x40f),_0x437107[_0x437107[_0x25c8ac(0x2a3)]=0x64]=_0x25c8ac(0x2a3),_0x437107[_0x437107[_0x25c8ac(0x4a8)]=0x65]=_0x25c8ac(0x4a8),_0x437107[_0x437107[_0x25c8ac(0x4b7)]=0xc9]=_0x25c8ac(0x4b7),_0x437107[_0x437107['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x437107[_0x437107['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x25c8ac(0x3fb),_0x437107[_0x437107['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x25c8ac(0x3ea),_0x437107[_0x437107[_0x25c8ac(0x20d)]=0x1772]=_0x25c8ac(0x20d),_0x437107[_0x437107['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x25c8ac(0x37d),_0x437107[_0x437107[_0x25c8ac(0x256)]=0x1b59]='APPLY_REJECT',_0x437107[_0x437107[_0x25c8ac(0x36a)]=0x1b5a]=_0x25c8ac(0x36a),_0x437107[_0x437107[_0x25c8ac(0x251)]=0x1b5b]=_0x25c8ac(0x251),_0x437107[_0x437107['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x25c8ac(0x246),_0x437107[_0x437107[_0x25c8ac(0x3b0)]=0x1b5d]=_0x25c8ac(0x3b0),_0x437107[_0x437107[_0x25c8ac(0x369)]=0x1f41]=_0x25c8ac(0x369),_0x437107[_0x437107[_0x25c8ac(0x23b)]=0x2329]=_0x25c8ac(0x23b),_0x437107[_0x437107[_0x25c8ac(0x317)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x437107[_0x437107[_0x25c8ac(0x2ab)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x437107[_0x437107['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x25c8ac(0x397),_0x437107[_0x437107[_0x25c8ac(0x1f9)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x437107[_0x437107[_0x25c8ac(0x27b)]=0x2711]=_0x25c8ac(0x27b),_0x437107[_0x437107['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x25c8ac(0x48c),_0x437107[_0x437107[_0x25c8ac(0x2e1)]=0x2713]=_0x25c8ac(0x2e1),_0x437107[_0x437107[_0x25c8ac(0x399)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x437107[_0x437107[_0x25c8ac(0x24c)]=0x271a]=_0x25c8ac(0x24c),_0x437107[_0x437107[_0x25c8ac(0x35f)]=0x271b]=_0x25c8ac(0x35f),_0x437107[_0x437107[_0x25c8ac(0x442)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x437107[_0x437107['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x437107[_0x437107['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x25c8ac(0x470),_0x437107[_0x437107[_0x25c8ac(0x49e)]=0x271f]=_0x25c8ac(0x49e),_0x437107[_0x437107[_0x25c8ac(0x4d7)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x437107[_0x437107['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x25c8ac(0x462),_0x437107[_0x437107['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x25c8ac(0x4d6),_0x437107[_0x437107[_0x25c8ac(0x29d)]=0x2ee2]='INVALID_INVITE_CODE',_0x437107[_0x437107[_0x25c8ac(0x32a)]=0x2ee3]=_0x25c8ac(0x32a),_0x437107[_0x437107[_0x25c8ac(0x42d)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x437107[_0x437107[_0x25c8ac(0x1ff)]=0x2ee5]=_0x25c8ac(0x1ff),_0x437107[_0x437107[_0x25c8ac(0x40a)]=0x32c9]=_0x25c8ac(0x40a),_0x437107[_0x437107[_0x25c8ac(0x4a6)]=0x32ca]=_0x25c8ac(0x4a6),_0x437107[_0x437107[_0x25c8ac(0x3ca)]=0x32cb]=_0x25c8ac(0x3ca),_0x437107[_0x437107[_0x25c8ac(0x3ed)]=0x36b1]=_0x25c8ac(0x3ed),_0x437107[_0x437107[_0x25c8ac(0x3cf)]=0x36b2]=_0x25c8ac(0x3cf),_0x437107[_0x437107[_0x25c8ac(0x3b2)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x437107[_0x437107['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x25c8ac(0x418),_0x437107[_0x437107[_0x25c8ac(0x340)]=0x3715]=_0x25c8ac(0x340),_0x437107[_0x437107['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x25c8ac(0x3a3),_0x437107[_0x437107[_0x25c8ac(0x4a0)]=0x3717]=_0x25c8ac(0x4a0),_0x437107[_0x437107[_0x25c8ac(0x202)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x437107[_0x437107[_0x25c8ac(0x25c)]=0x3a99]=_0x25c8ac(0x25c),_0x437107[_0x437107['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x25c8ac(0x204),_0x437107[_0x437107[_0x25c8ac(0x308)]=0x3a9b]=_0x25c8ac(0x308),_0x437107[_0x437107['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x437107[_0x437107['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x437107[_0x437107[_0x25c8ac(0x29a)]=0x3a9e]=_0x25c8ac(0x29a),_0x437107[_0x437107[_0x25c8ac(0x400)]=0x3a9f]=_0x25c8ac(0x400),_0x437107[_0x437107[_0x25c8ac(0x4c8)]=0x3e81]=_0x25c8ac(0x4c8),_0x437107[_0x437107[_0x25c8ac(0x2ed)]=-0x1]=_0x25c8ac(0x2ed),_0x437107))(_0x19b5af||{});function _0x20f5e7(_0x5ea61a){const _0x50fce6=_0x25c8ac;var _0xe1ea17,_0x3903aa;const _0x50f9e6=(_0xe1ea17=_0x5ea61a[_0x50fce6(0x451)])==null?void 0x0:_0xe1ea17[_0x50fce6(0x333)],_0x423f2e=((_0x3903aa=_0x5ea61a[_0x50fce6(0x451)])==null?void 0x0:_0x3903aa[_0x50fce6(0x405)])||0x0;return _0x50f9e6===_0xfcd088['FormulaExecuteStageType'][_0x50fce6(0x2a4)]&&_0x423f2e>0x0;}function _0x5853fe(_0x2c11c2){const _0x29052a=_0x25c8ac;return _0x2c11c2[_0x29052a(0x220)]===_0xfcd088[_0x29052a(0x35a)][_0x29052a(0x2e3)];}var _0x2e164c=Object[_0x25c8ac(0x3a8)],_0x2505ae=(_0x2d1453,_0x693628,_0x317480,_0x1dd285)=>{const _0x331741=_0x25c8ac;for(var _0x4812f6=_0x1dd285>0x1?void 0x0:_0x1dd285?_0x2e164c(_0x693628,_0x317480):_0x693628,_0x2695b3=_0x2d1453[_0x331741(0x497)]-0x1,_0x321ece;_0x2695b3>=0x0;_0x2695b3--)(_0x321ece=_0x2d1453[_0x2695b3])&&(_0x4812f6=_0x321ece(_0x4812f6)||_0x4812f6);return _0x4812f6;},_0x5bf078=(_0x7b0880,_0x3efe25)=>(_0x259039,_0x13c524)=>_0x3efe25(_0x259039,_0x13c524,_0x7b0880);const _0x221cbd=_0x25c8ac(0x477),_0x39d1f3=_0x25c8ac(0x34e),_0x52567f=_0x25c8ac(0x3ef);let _0x253e7a=class extends _0x51c091[_0x25c8ac(0x379)]{constructor(_0x10b10c,_0xaa566d,_0x220d1c,_0x473df5,_0x1b6d6e,_0x1e521d,_0x124e9e){const _0x3e12be=_0x25c8ac;super(),_0x3a54cf(this,'_pollingInterval',null),_0x3a54cf(this,_0x3e12be(0x295),0x0),_0x3a54cf(this,_0x3e12be(0x2c5),0x0),_0x3a54cf(this,'_taskIds',[]),_0x3a54cf(this,_0x3e12be(0x25f),0x0),(this[_0x3e12be(0x264)]=_0x10b10c,this[_0x3e12be(0x2d6)]=_0xaa566d,this[_0x3e12be(0x302)]=_0x220d1c,this[_0x3e12be(0x44d)]=_0x473df5,this[_0x3e12be(0x23a)]=_0x1b6d6e,this['_logService']=_0x1e521d,this[_0x3e12be(0x372)]=_0x124e9e,this[_0x3e12be(0x1f6)]());}[_0x25c8ac(0x1f6)](){const _0x5f1c5c=_0x25c8ac;this[_0x5f1c5c(0x1f5)](this[_0x5f1c5c(0x2d6)][_0x5f1c5c(0x40d)]((_0x4095d5,_0x27fca6)=>{const _0x5b8846=_0x5f1c5c;var _0x4403df;if(_0x4095d5['id']!==_0xfcd088[_0x5b8846(0x395)]['id'])return;const _0x1bc522=_0x4095d5[_0x5b8846(0x411)];if(!this[_0x5b8846(0x329)]((_0x4403df=_0x1bc522[_0x5b8846(0x2e0)])!=null?_0x4403df:[]))return;if(!this[_0x5b8846(0x21d)]())throw this[_0x5b8846(0x38e)](_0x4095d5,_0x27fca6),this['_showGuardMessage'](),new _0x51c091[(_0x5b8846(0x474))]();})),this[_0x5f1c5c(0x1f5)](this[_0x5f1c5c(0x2d6)][_0x5f1c5c(0x485)]((_0x5188e4,_0x169ace)=>{const _0x4415ad=_0x5f1c5c;if(_0x5188e4['id']!==_0xfcd088[_0x4415ad(0x27f)]['id'])return;const _0x44b7b8=_0x5188e4[_0x4415ad(0x411)];if(_0x20f5e7(_0x44b7b8)){const _0x526857=_0x51c091[_0x4415ad(0x2a9)]();this[_0x4415ad(0x426)][_0x4415ad(0x2ac)](_0x526857),this[_0x4415ad(0x48e)](_0x526857);}else{if(_0x5853fe(_0x44b7b8)&&this[_0x4415ad(0x426)][_0x4415ad(0x497)]>0x0){const _0x13a908=this[_0x4415ad(0x426)][_0x4415ad(0x374)]();this[_0x4415ad(0x262)](_0x13a908);}}}));}[_0x25c8ac(0x325)](){const _0x44197e=_0x25c8ac;super[_0x44197e(0x325)](),this['_clearPolling'](),this[_0x44197e(0x426)]=[],this[_0x44197e(0x2c5)]=0x0,this[_0x44197e(0x295)]=0x0,this[_0x44197e(0x25f)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x24cc9a,_0x1d087b){const _0x2c40a7=_0x25c8ac;for(let _0x116ed5=0x0;_0x116ed5<0x1e;_0x116ed5++)try{if(await this[_0x2c40a7(0x3c8)](),this[_0x2c40a7(0x21d)]()){this['_applyCommand'](_0x24cc9a,_0x1d087b),this[_0x2c40a7(0x264)]['show']({'content':this[_0x2c40a7(0x372)]['t'](_0x2c40a7(0x4a3)),'type':_0x1039db[_0x2c40a7(0x26f)]['Success']});return;}await new Promise(_0x5dcac3=>{const _0x2cb946=_0x2c40a7;this[_0x2cb946(0x4a4)]=window[_0x2cb946(0x48b)](_0x5dcac3,0x3e8);});}catch(_0x2f330b){this[_0x2c40a7(0x38d)][_0x2c40a7(0x3df)](_0x2f330b);}this['_messageService'][_0x2c40a7(0x392)]({'content':this['_localeService']['t'](_0x2c40a7(0x242)),'type':_0x1039db[_0x2c40a7(0x26f)]['Error']});}[_0x25c8ac(0x465)](_0x3ea1c9,_0x1b0bc7){const _0xacc448=_0x25c8ac;try{this[_0xacc448(0x2d6)][_0xacc448(0x3db)](_0x3ea1c9['id'],_0x3ea1c9['params'],_0x1b0bc7);}catch(_0x5a25b0){this['_logService'][_0xacc448(0x3df)](_0x5a25b0);}}[_0x25c8ac(0x3bd)](_0x149503,_0x5a33d6){const _0x19d19d=_0x25c8ac;_0x5a33d6<this[_0x19d19d(0x25f)]||(this[_0x19d19d(0x25f)]=_0x5a33d6,this[_0x19d19d(0x295)]=Number['parseInt'](_0x149503[_0x19d19d(0x439)]),this[_0x19d19d(0x2c5)]=Number[_0x19d19d(0x454)](_0x149503[_0x19d19d(0x2c4)]));}async[_0x25c8ac(0x48e)](_0x3f0435){const _0x2746dd=_0x25c8ac;var _0x1ef856,_0x7bc123;const _0x472f00=Date['now']();try{const _0xacb859=((_0x1ef856=this[_0x2746dd(0x302)][_0x2746dd(0x4d1)](_0x493e59[_0x2746dd(0x417)]))==null?void 0x0:_0x1ef856[_0x2746dd(0x47a)])||_0x39d1f3,_0x44646c=(await this[_0x2746dd(0x44d)][_0x2746dd(0x2f1)](_0xacb859,{'body':JSON[_0x2746dd(0x3ae)]({'taskId':_0x3f0435})}))[_0x2746dd(0x270)];if(((_0x7bc123=_0x44646c[_0x2746dd(0x3df)])==null?void 0x0:_0x7bc123[_0x2746dd(0x468)])!==_0x19b5af['OK'])return;this[_0x2746dd(0x3bd)](_0x44646c[_0x2746dd(0x39a)],_0x472f00);}catch(_0x952533){this[_0x2746dd(0x38d)]['error'](_0x952533);}}async[_0x25c8ac(0x3c8)](_0x338ad7){const _0x23e4fd=_0x25c8ac;var _0x38da63,_0x5e5afb;const _0x30795b=Date['now']();try{const _0x2948c1=((_0x38da63=this[_0x23e4fd(0x302)][_0x23e4fd(0x4d1)](_0x493e59[_0x23e4fd(0x417)]))==null?void 0x0:_0x38da63[_0x23e4fd(0x28d)])||_0x221cbd,_0x568406=_0x338ad7?_0x2948c1+_0x23e4fd(0x2b8)+encodeURIComponent(_0x338ad7):_0x2948c1,_0x289d4b=(await this[_0x23e4fd(0x44d)]['get'](_0x568406))[_0x23e4fd(0x270)];if(((_0x5e5afb=_0x289d4b[_0x23e4fd(0x3df)])==null?void 0x0:_0x5e5afb[_0x23e4fd(0x468)])!==_0x19b5af['OK'])return;this[_0x23e4fd(0x3bd)](_0x289d4b['limitInfo'],_0x30795b);}catch(_0x131396){this[_0x23e4fd(0x38d)][_0x23e4fd(0x3df)](_0x131396);}}async[_0x25c8ac(0x262)](_0x4ef488){const _0x7d27a2=_0x25c8ac;var _0x204168,_0x419108;const _0x41fce0=Date[_0x7d27a2(0x331)]();try{const _0x25d2fd=((_0x204168=this[_0x7d27a2(0x302)][_0x7d27a2(0x4d1)](_0x493e59[_0x7d27a2(0x417)]))==null?void 0x0:_0x204168[_0x7d27a2(0x215)])||_0x52567f,_0x4b9800=(await this[_0x7d27a2(0x44d)][_0x7d27a2(0x2f1)](_0x25d2fd,{'body':JSON[_0x7d27a2(0x3ae)]({'taskId':_0x4ef488})}))[_0x7d27a2(0x270)];if(((_0x419108=_0x4b9800[_0x7d27a2(0x3df)])==null?void 0x0:_0x419108[_0x7d27a2(0x468)])!==_0x19b5af['OK'])return;this[_0x7d27a2(0x3bd)](_0x4b9800[_0x7d27a2(0x39a)],_0x41fce0);}catch(_0x493723){this[_0x7d27a2(0x38d)]['error'](_0x493723);}}[_0x25c8ac(0x21d)](){const _0x25d6be=_0x25c8ac;return this[_0x25d6be(0x295)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x25d6be(0x2c5)]>0x0;}[_0x25c8ac(0x28f)](){const _0x54af2f=_0x25c8ac;this['_pollingInterval']&&(clearTimeout(this[_0x54af2f(0x4a4)]),this['_pollingInterval']=null);}[_0x25c8ac(0x33d)](){const _0xfe105=_0x25c8ac;this[_0xfe105(0x264)][_0xfe105(0x392)]({'content':this['_localeService']['t'](_0xfe105(0x306)),'type':_0x1039db['MessageType'][_0xfe105(0x248)]});}[_0x25c8ac(0x329)](_0x24cef9){const _0x264299=_0x25c8ac;for(const _0x240572 of _0x24cef9){const {unitId:_0x2ed058,sheetId:_0x69162e,range:_0x43fde9}=_0x240572,_0x589218=this['_univerInstanceService'][_0x264299(0x22a)](_0x2ed058);if(!_0x589218)continue;const _0x542054=_0x589218[_0x264299(0x491)](_0x69162e);if(!_0x542054)continue;const _0x46b4ad=_0x542054[_0x264299(0x433)]();for(let _0xe1ca54=_0x43fde9['startRow'];_0xe1ca54<=_0x43fde9[_0x264299(0x3cd)];_0xe1ca54++)for(let _0x126385=_0x43fde9[_0x264299(0x3aa)];_0x126385<=_0x43fde9['endColumn'];_0x126385++){const _0x3f89a1=_0x46b4ad[_0x264299(0x38b)](_0xe1ca54,_0x126385);if(_0x3f89a1&&(_0x51c091['isFormulaString'](_0x3f89a1['f'])||_0x51c091['isFormulaId'](_0x3f89a1['si'])))return!0x0;}}return!0x1;}};_0x253e7a=_0x2505ae([_0x5bf078(0x0,_0x51c091[_0x25c8ac(0x301)](_0x47d161[_0x25c8ac(0x492)])),_0x5bf078(0x1,_0x51c091[_0x25c8ac(0x483)]),_0x5bf078(0x2,_0x51c091[_0x25c8ac(0x24a)]),_0x5bf078(0x3,_0x51c091['Inject'](_0x38be65[_0x25c8ac(0x436)])),_0x5bf078(0x4,_0x51c091['IUniverInstanceService']),_0x5bf078(0x5,_0x51c091[_0x25c8ac(0x36e)]),_0x5bf078(0x6,_0x51c091['Inject'](_0x51c091[_0x25c8ac(0x27c)]))],_0x253e7a);var _0x54bf3b=Object[_0x25c8ac(0x3a8)],_0x22a5be=(_0x43ba1e,_0x3af3ea,_0x5da429,_0x452d57)=>{const _0x2912fd=_0x25c8ac;for(var _0x5413d0=_0x452d57>0x1?void 0x0:_0x452d57?_0x54bf3b(_0x3af3ea,_0x5da429):_0x3af3ea,_0x13d113=_0x43ba1e[_0x2912fd(0x497)]-0x1,_0x239b9e;_0x13d113>=0x0;_0x13d113--)(_0x239b9e=_0x43ba1e[_0x13d113])&&(_0x5413d0=_0x239b9e(_0x5413d0)||_0x5413d0);return _0x5413d0;},_0x4b2404=(_0x4188a7,_0x4314f1)=>(_0x4a304d,_0x5509bd)=>_0x4314f1(_0x4a304d,_0x5509bd,_0x4188a7);let _0x390357=class extends _0x51c091['Disposable']{constructor(_0x550158,_0x8e8545,_0x308edc){const _0x152430=_0x25c8ac;super(),_0x3a54cf(this,_0x152430(0x312),new Map()),_0x3a54cf(this,_0x152430(0x41d),new Map()),_0x3a54cf(this,_0x152430(0x21b),!0x1),(this[_0x152430(0x302)]=_0x550158,this[_0x152430(0x352)]=_0x8e8545,this[_0x152430(0x47c)]=_0x308edc);}[_0x25c8ac(0x285)](){const _0x506bfa=_0x25c8ac;this[_0x506bfa(0x21b)]=!0x0;}[_0x25c8ac(0x2b0)](){const _0x5820f9=_0x25c8ac;this[_0x5820f9(0x21b)]=!0x1;}get['saveTaskMap'](){const _0x4b221f=_0x25c8ac;return this[_0x4b221f(0x41d)];}[_0x25c8ac(0x325)](){const _0x4fceee=_0x25c8ac;this[_0x4fceee(0x2a6)]()[_0x4fceee(0x361)](()=>super[_0x4fceee(0x325)]());}async['loadOfflineData'](_0x30f0e5){const _0x1d865e=_0x25c8ac;return this[_0x1d865e(0x21b)]?null:this[_0x1d865e(0x352)]['getItem'](_0x493e59[_0x1d865e(0x453)](_0x30f0e5));}async[_0x25c8ac(0x1f3)](_0x3bb16e,_0x452fab){const _0xb3d123=_0x25c8ac;return!!this[_0xb3d123(0x352)]['setItem'](_0x3bb16e,_0x452fab);}[_0x25c8ac(0x1f1)](_0x197c01,_0x288fa9,_0x4c1e23,_0x326000){const _0x18965b=_0x25c8ac,_0x1c1663=this[_0x18965b(0x47c)][_0x18965b(0x2e4)](_0x197c01);this[_0x18965b(0x312)][_0x18965b(0x22d)](_0x197c01,{'unitID':_0x197c01,'type':_0x288fa9,'awaitingChangeset':_0x4c1e23,'mutations':_0x326000,'rev':_0x1c1663}),this['_saveTaskMap'][_0x18965b(0x297)](_0x197c01)||this[_0x18965b(0x47e)](_0x197c01);}[_0x25c8ac(0x47e)](_0x33138b){const _0x3a6bd2=_0x25c8ac,_0x4499df=this['_getSaveTimeout']();_0x4499df===0x0?this[_0x3a6bd2(0x315)](_0x33138b):this[_0x3a6bd2(0x41d)]['set'](_0x33138b,setTimeout(()=>this[_0x3a6bd2(0x315)](_0x33138b),_0x4499df));}['_getSaveTimeout'](){const _0x2996f0=_0x25c8ac;var _0x119c0a;return(_0x119c0a=this[_0x2996f0(0x302)]['getConfig'](_0x493e59[_0x2996f0(0x31b)]))!=null?_0x119c0a:_0x493e59[_0x2996f0(0x2b6)];}[_0x25c8ac(0x315)](_0x14496b){const _0xffd7b0=_0x25c8ac,_0x580ae8=this[_0xffd7b0(0x41d)][_0xffd7b0(0x4c4)](_0x14496b);return _0x580ae8!==void 0x0&&window[_0xffd7b0(0x25d)](_0x580ae8),this['_localStorageService'][_0xffd7b0(0x255)](_0x493e59[_0xffd7b0(0x453)](_0x14496b),this[_0xffd7b0(0x312)][_0xffd7b0(0x4c4)](_0x14496b))[_0xffd7b0(0x361)](()=>this[_0xffd7b0(0x41d)][_0xffd7b0(0x2d0)](_0x14496b));}async['exhaustSavingTask'](){const _0x1f55fe=_0x25c8ac,_0x5c6949=[];this['_saveTaskMap'][_0x1f55fe(0x345)]((_0x49d312,_0x1b1dd5)=>{const _0x235a5d=_0x1f55fe;window[_0x235a5d(0x25d)](_0x49d312),_0x5c6949[_0x235a5d(0x2ac)](this[_0x235a5d(0x315)](_0x1b1dd5)[_0x235a5d(0x361)](()=>{const _0x418f53=_0x235a5d;this[_0x418f53(0x41d)]['delete'](_0x1b1dd5);}));}),await Promise[_0x1f55fe(0x4d0)](_0x5c6949);}};_0x390357=_0x22a5be([_0x4b2404(0x0,_0x51c091[_0x25c8ac(0x24a)]),_0x4b2404(0x1,_0x51c091[_0x25c8ac(0x460)]),_0x4b2404(0x2,_0x51c091[_0x25c8ac(0x301)](_0x5b9cab[_0x25c8ac(0x432)]))],_0x390357);class _0x31456c extends _0x51c091[_0x25c8ac(0x42f)]{constructor(){const _0x361961=_0x25c8ac;super(),_0x3a54cf(this,_0x361961(0x3e4)),this[_0x361961(0x3e4)]=_0x2d756d[_0x361961(0x425)](window,_0x361961(0x1f0))['pipe'](_0x2d756d[_0x361961(0x210)](this[_0x361961(0x37a)]),_0x2d756d[_0x361961(0x3da)](0x1),_0x2d756d[_0x361961(0x227)](void 0x0));}['setParam'](_0xf02304,_0x23b344,_0x1532b4=!0x1){const _0xd92278=_0x25c8ac,_0x27c4e8=new URL(window['location']['href']);_0x27c4e8[_0xd92278(0x3a9)][_0xd92278(0x22d)](_0xf02304,_0x23b344),_0x1532b4?window[_0xd92278(0x3a5)][_0xd92278(0x456)]('','',_0x27c4e8['toString']()):window['history'][_0xd92278(0x225)]('','',_0x27c4e8[_0xd92278(0x2e9)]());}[_0x25c8ac(0x3f6)](_0x555a99,_0x440ec5=!0x1){const _0x160d93=_0x25c8ac,_0x3f715b=new URL(window[_0x160d93(0x36b)]['href']);_0x3f715b[_0x160d93(0x3a9)][_0x160d93(0x2d0)](_0x555a99),_0x440ec5?window[_0x160d93(0x3a5)][_0x160d93(0x456)]('','',_0x3f715b['toString']()):window['history'][_0x160d93(0x225)]('','',_0x3f715b[_0x160d93(0x2e9)]());}[_0x25c8ac(0x2c6)](_0x5fa5ee){const _0x14b440=_0x25c8ac;var _0xffcd48;return(_0xffcd48=new URL(window[_0x14b440(0x36b)][_0x14b440(0x323)])['searchParams'][_0x14b440(0x4c4)](_0x5fa5ee))!=null?_0xffcd48:void 0x0;}}var _0x5b5def=Object[_0x25c8ac(0x43e)],_0x145180=Object[_0x25c8ac(0x3a8)],_0x1e4cb3=(_0x180c94,_0x1bb547,_0x41255f)=>_0x1bb547 in _0x180c94?_0x5b5def(_0x180c94,_0x1bb547,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41255f}):_0x180c94[_0x1bb547]=_0x41255f,_0x1631eb=(_0x54b48f,_0x4a1585,_0x3e95bf,_0x285c4f)=>{const _0x5604c6=_0x25c8ac;for(var _0x5b2597=_0x285c4f>0x1?void 0x0:_0x285c4f?_0x145180(_0x4a1585,_0x3e95bf):_0x4a1585,_0x2f07ad=_0x54b48f[_0x5604c6(0x497)]-0x1,_0x470938;_0x2f07ad>=0x0;_0x2f07ad--)(_0x470938=_0x54b48f[_0x2f07ad])&&(_0x5b2597=_0x470938(_0x5b2597)||_0x5b2597);return _0x5b2597;},_0x2ea720=(_0x3197d0,_0x9de994)=>(_0x25ccbe,_0x1924d7)=>_0x9de994(_0x25ccbe,_0x1924d7,_0x3197d0),_0x260ff7=(_0x366398,_0x37a31d,_0x1f4057)=>_0x1e4cb3(_0x366398,_0x37a31d+'',_0x1f4057);const _0x4f241b='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x3e1990['UniverCollaborationClientUIPlugin']=class extends _0x51c091[_0x25c8ac(0x408)]{constructor(_0x5518c6=_0x3bc6e3,_0x594283,_0x3ea43e,_0x2ee299){const _0x95270a=_0x25c8ac;super(),this['_config']=_0x5518c6,this[_0x95270a(0x21c)]=_0x594283,this[_0x95270a(0x3e5)]=_0x3ea43e,this[_0x95270a(0x302)]=_0x2ee299;const {..._0x41316f}=_0x51c091[_0x95270a(0x296)]({},_0x3bc6e3,this['_config']);this[_0x95270a(0x302)][_0x95270a(0x380)](_0x50d024,_0x41316f);}['onStarting'](){const _0xbfdf6f=_0x25c8ac;this[_0xbfdf6f(0x1eb)](),this[_0xbfdf6f(0x240)]();}[_0x25c8ac(0x463)](){this['_registerRenderDependencies']();}[_0x25c8ac(0x1eb)](){const _0x45e25a=_0x25c8ac;var _0x335e7d;const _0x40d3a7=[[_0x3dd070],[_0x253e7a],[_0x4139fa],[_0x36d845],[_0x40750b],[_0x43bd11],[_0x2e14a9,{'useClass':_0x31456c}],[_0x38be65[_0x45e25a(0x4a7)],{'useClass':_0x38be65['WebSocketService']}],[_0x493e59[_0x45e25a(0x4cd)],{'useClass':_0x390357}],[_0x3e1990['DesktopCollaborationStatusDisplayController']],[_0x41b37a],[_0x1e22db],[_0x43fe6e],[_0xee1fb5],[_0x3e1990[_0x45e25a(0x36f)]]];this[_0x45e25a(0x448)][_0x45e25a(0x349)]&&_0x40d3a7['push']([_0x5971ed]),_0x51c091['registerDependencies'](this[_0x45e25a(0x3e5)],_0x51c091['mergeOverrideWithDependencies'](_0x40d3a7,(_0x335e7d=this['_config'])==null?void 0x0:_0x335e7d['override']));}[_0x25c8ac(0x4c0)](){const _0x4787b4=_0x25c8ac;this[_0x4787b4(0x1f5)](this[_0x4787b4(0x21c)][_0x4787b4(0x388)](_0x51c091[_0x4787b4(0x375)]['UNIVER_DOC'],[_0x743d07])),this['disposeWithMe'](this[_0x4787b4(0x21c)][_0x4787b4(0x388)](_0x51c091[_0x4787b4(0x375)][_0x4787b4(0x3d0)],[_0x62dded]));}[_0x25c8ac(0x240)](){const _0x3cc457=_0x25c8ac;_0x51c091[_0x3cc457(0x253)](this[_0x3cc457(0x3e5)],[[_0x43fe6e],[_0x3e1990[_0x3cc457(0x2de)]],[_0x41b37a],[_0x1e22db],[_0x3e1990[_0x3cc457(0x36f)]],[_0x253e7a]]),this[_0x3cc457(0x448)][_0x3cc457(0x349)]&&_0x51c091[_0x3cc457(0x253)](this[_0x3cc457(0x3e5)],[[_0x5971ed]]);}},_0x260ff7(_0x3e1990[_0x25c8ac(0x4cb)],_0x25c8ac(0x260),_0x4f241b),_0x3e1990[_0x25c8ac(0x4cb)]=_0x1631eb([_0x51c091[_0x25c8ac(0x37e)](_0x493e59[_0x25c8ac(0x2aa)]),_0x2ea720(0x1,_0x396fb6[_0x25c8ac(0x3af)]),_0x2ea720(0x2,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x26a)])),_0x2ea720(0x3,_0x51c091[_0x25c8ac(0x24a)])],_0x3e1990[_0x25c8ac(0x4cb)]);var _0x442e3c=Object[_0x25c8ac(0x3a8)],_0x5b194f=(_0x20f538,_0x518649,_0x519b96,_0x539253)=>{const _0x13ae78=_0x25c8ac;for(var _0x2db818=_0x539253>0x1?void 0x0:_0x539253?_0x442e3c(_0x518649,_0x519b96):_0x518649,_0x362539=_0x20f538[_0x13ae78(0x497)]-0x1,_0x2ba429;_0x362539>=0x0;_0x362539--)(_0x2ba429=_0x20f538[_0x362539])&&(_0x2db818=_0x2ba429(_0x2db818)||_0x2db818);return _0x2db818;},_0x179efe=(_0x5136c6,_0x5d1972)=>(_0x2095b5,_0x2600a9)=>_0x5d1972(_0x2095b5,_0x2600a9,_0x5136c6);_0x3e1990['BrowserCollaborationSocketService']=class extends _0x493e59['CollaborationSocketService']{constructor(_0x3893eb,_0x487848,_0x16aa99,_0x5d5d0a,_0x44ea11){super(_0x3893eb,_0x487848,_0x16aa99,_0x5d5d0a,_0x44ea11);}async[_0x25c8ac(0x236)](_0x2c25d6){const _0x5461a5=_0x25c8ac,_0x4ff7a1=await this[_0x5461a5(0x410)](),_0x98d984=this[_0x5461a5(0x3c7)](_0x2c25d6,_0x4ff7a1);return this[_0x5461a5(0x2a7)](_0x98d984);}[_0x25c8ac(0x3c7)](_0x5c75b5,_0x162f9e){const _0x58deec=_0x25c8ac,_0x190a56=typeof window>'u'?new URL(_0x5c75b5):new URL(_0x5c75b5,window[_0x58deec(0x36b)][_0x58deec(0x362)]);_0x190a56['searchParams'][_0x58deec(0x22d)](_0x58deec(0x435),_0x162f9e);const _0x72c9cc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x58deec(0x1f4)]);return _0x72c9cc[_0x58deec(0x4c4)](_0x58deec(0x3ba))&&_0x190a56[_0x58deec(0x3a9)][_0x58deec(0x22d)](_0x58deec(0x3ba),_0x72c9cc[_0x58deec(0x4c4)](_0x58deec(0x3ba))),_0x190a56[_0x58deec(0x2e9)]();}async[_0x25c8ac(0x410)](){const _0x4e94a9=_0x25c8ac;var _0x4e71cc,_0x4ecf48,_0x210e0b;const _0x23d908=this[_0x4e94a9(0x302)][_0x4e94a9(0x4d1)](_0x493e59['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x409cab=(_0x4e71cc=_0x23d908==null?void 0x0:_0x23d908[_0x4e94a9(0x320)])!=null?_0x4e71cc:_0x493e59[_0x4e94a9(0x461)];return(_0x210e0b=(_0x4ecf48=(await this[_0x4e94a9(0x44d)][_0x4e94a9(0x4c4)](_0x409cab,{'headers':{'Content-Type':_0x4e94a9(0x27a)}}))['body'])==null?void 0x0:_0x4ecf48[_0x4e94a9(0x201)])!=null?_0x210e0b:'';}},_0x3e1990['BrowserCollaborationSocketService']=_0x5b194f([_0x179efe(0x0,_0x51c091[_0x25c8ac(0x301)](_0x51c091[_0x25c8ac(0x26a)])),_0x179efe(0x1,_0x51c091['Inject'](_0x38be65[_0x25c8ac(0x436)])),_0x179efe(0x2,_0x51c091[_0x25c8ac(0x24a)]),_0x179efe(0x3,_0x51c091['ILogService']),_0x179efe(0x4,_0x5b9cab['ISnapshotServerService'])],_0x3e1990[_0x25c8ac(0x428)]);var _0x58912d=Object[_0x25c8ac(0x3a8)],_0x4c903b=(_0x1f5a25,_0x27a3f6,_0x2430f2,_0x259631)=>{const _0x330b37=_0x25c8ac;for(var _0x43e174=_0x259631>0x1?void 0x0:_0x259631?_0x58912d(_0x27a3f6,_0x2430f2):_0x27a3f6,_0x4ad398=_0x1f5a25[_0x330b37(0x497)]-0x1,_0x26c1f0;_0x4ad398>=0x0;_0x4ad398--)(_0x26c1f0=_0x1f5a25[_0x4ad398])&&(_0x43e174=_0x26c1f0(_0x43e174)||_0x43e174);return _0x43e174;},_0x310e46=(_0x4051cb,_0x555cc2)=>(_0x186990,_0x461e90)=>_0x555cc2(_0x186990,_0x461e90,_0x4051cb);_0x3e1990[_0x25c8ac(0x311)]=class extends _0x51c091[_0x25c8ac(0x379)]{constructor(_0x2d16f5,_0x8412bf,_0x18bc04){const _0x537dd9=_0x25c8ac;super(),this[_0x537dd9(0x443)]=_0x2d16f5,this['_httpService']=_0x8412bf,this[_0x537dd9(0x302)]=_0x18bc04;}async[_0x25c8ac(0x36c)](_0x59d040,_0x1c65a7,_0x1519bf,..._0x2b0fc7){const _0x3e9cfa=_0x25c8ac;var _0x408b4e,_0xf1e7b8,_0x52ef12,_0xa33607;const _0x11b539=this[_0x3e9cfa(0x443)]['getFocusedUnit']();if(!_0x11b539)throw new Error(_0x3e9cfa(0x354));const _0x527dbb=((_0x408b4e=this['_configService'][_0x3e9cfa(0x4d1)](_0x493e59['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x408b4e:_0x493e59['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x59d040+'/run/'+_0x1c65a7,_0x175f80=new URL(window[_0x3e9cfa(0x36b)][_0x3e9cfa(0x323)]),_0x2ad0b1={'scriptId':_0x59d040,'runId':(_0xf1e7b8=_0x175f80['searchParams'][_0x3e9cfa(0x4c4)](_0x3e9cfa(0x3ba)))!=null?_0xf1e7b8:'','function':_0x1c65a7,'unitId':_0x11b539[_0x3e9cfa(0x30f)](),'argsOfFunction':JSON[_0x3e9cfa(0x3ae)](_0x2b0fc7),'invokeId':(_0x52ef12=_0x1519bf[_0x3e9cfa(0x216)])!=null?_0x52ef12:'','executionId':(_0xa33607=_0x1519bf['executionId'])!=null?_0xa33607:''};try{const _0x49dae1=await this[_0x3e9cfa(0x44d)][_0x3e9cfa(0x2f1)](_0x527dbb,{'body':_0x2ad0b1});return _0x49dae1[_0x3e9cfa(0x270)]['error']&&_0x49dae1[_0x3e9cfa(0x270)][_0x3e9cfa(0x3df)][_0x3e9cfa(0x468)]!==_0x19b5af['OK']?_0x3e9cfa(0x304):_0x49dae1[_0x3e9cfa(0x270)][_0x3e9cfa(0x2cb)];}catch{return _0x3e9cfa(0x304);}}},_0x3e1990['RemoteUniscriptService']=_0x4c903b([_0x310e46(0x0,_0x51c091['IUniverInstanceService']),_0x310e46(0x1,_0x51c091[_0x25c8ac(0x301)](_0x38be65['HTTPService'])),_0x310e46(0x2,_0x51c091[_0x25c8ac(0x24a)])],_0x3e1990['RemoteUniscriptService']);const _0x593ce8=0x7530,_0x5dda2d=_0x25c8ac(0x2eb);class _0x1cfa3e extends _0x51c091[_0x25c8ac(0x379)]{constructor(){const _0x21853d=_0x25c8ac;super(),_0x3a54cf(this,_0x21853d(0x457),_0x51c091[_0x21853d(0x2a9)]()),_0x3a54cf(this,_0x21853d(0x207),new Set()),_0x3a54cf(this,_0x21853d(0x30e),new Map()),_0x3a54cf(this,'_heartbeatTimer',null),_0x3a54cf(this,_0x21853d(0x3d2),new Map()),_0x3a54cf(this,_0x21853d(0x4c6),new Map()),this[_0x21853d(0x38f)]();}[_0x25c8ac(0x325)](){const _0x6583b9=_0x25c8ac;super[_0x6583b9(0x325)](),this['_clearOtherTimers'][_0x6583b9(0x345)]((_0x4560f2,_0x47a988)=>this[_0x6583b9(0x2f2)](_0x47a988)),this[_0x6583b9(0x1fb)]&&window[_0x6583b9(0x2c0)](this[_0x6583b9(0x1fb)]);}[_0x25c8ac(0x252)](_0xafd7c5){const _0x1a1348=_0x25c8ac;return this[_0x1a1348(0x489)](_0xafd7c5)['pipe'](_0x2d756d[_0x1a1348(0x3dd)]());}[_0x25c8ac(0x33e)](_0x2bf600){const _0xe71c73=_0x25c8ac;this['_selfUnitIDs'][_0xe71c73(0x3ac)]===0x0&&this['_scheduleHeartbeat'](),this[_0xe71c73(0x207)]['add'](_0x2bf600),this[_0xe71c73(0x28b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2bf600],'isForwarded':!0x1});}[_0x25c8ac(0x3f9)](_0x16c83d){const _0x50ac40=_0x25c8ac;this[_0x50ac40(0x207)][_0x50ac40(0x2d0)](_0x16c83d),this[_0x50ac40(0x207)][_0x50ac40(0x3ac)]===0x0&&this[_0x50ac40(0x1fb)]&&window[_0x50ac40(0x2c0)](this['_heartbeatTimer']);}[_0x25c8ac(0x38f)](){const _0x1798ec=_0x25c8ac;this[_0x1798ec(0x1f5)](_0x51c091[_0x1798ec(0x46f)](_0x2d756d[_0x1798ec(0x425)](window,_0x1798ec(0x4bf))[_0x1798ec(0x2b3)](_0x5d122a=>{const _0x348261=_0x1798ec;if(_0x5d122a['key']!==_0x5dda2d||!_0x5d122a['newValue'])return;const _0x57ed6c=JSON[_0x348261(0x2a8)](_0x5d122a[_0x348261(0x313)]);this[_0x348261(0x32d)](_0x57ed6c);}))),window['addEventListener']('unload',()=>this[_0x1798ec(0x28b)]({'type':0x1,'memberID':this[_0x1798ec(0x457)],'unitIDs':Array['from'](this[_0x1798ec(0x207)])}));}[_0x25c8ac(0x32d)](_0x34ccb6){const _0x228d0c=_0x25c8ac;switch(_0x34ccb6['type']){case 0x0:this[_0x228d0c(0x44f)](_0x34ccb6);break;case 0x1:this[_0x228d0c(0x3b7)](_0x34ccb6);break;case 0x2:this[_0x228d0c(0x409)](_0x34ccb6);break;}}[_0x25c8ac(0x44f)](_0x5efb32){const _0x50e26f=_0x25c8ac,{unitIDs:_0x58cef0,memberID:_0x3caf2c,isForwarded:_0x2ffebd}=_0x5efb32;_0x58cef0[_0x50e26f(0x345)](_0x490d54=>{const _0x52fe3f=_0x50e26f;if(!_0x2ffebd&&this[_0x52fe3f(0x30e)][_0x52fe3f(0x297)](_0x490d54)&&this['_ensureSubject'](_0x490d54)[_0x52fe3f(0x258)](_0x493e59['UnitStatus'][_0x52fe3f(0x1ed)]),!this['_unitOnClients']['has'](_0x490d54)||!this[_0x52fe3f(0x30e)][_0x52fe3f(0x4c4)](_0x490d54)[_0x52fe3f(0x297)](_0x3caf2c)){const _0x3b4b95=this[_0x52fe3f(0x30e)][_0x52fe3f(0x4c4)](_0x490d54)||new Set();_0x3b4b95[_0x52fe3f(0x2d2)](_0x3caf2c),this['_unitOnClients'][_0x52fe3f(0x22d)](_0x490d54,_0x3b4b95),this['_scheduleClearOtherTimer'](_0x3caf2c);}}),_0x2ffebd||this[_0x50e26f(0x28b)]({'type':0x0,'memberID':this[_0x50e26f(0x457)],'unitIDs':[...this[_0x50e26f(0x207)]],'isForwarded':!0x0});}[_0x25c8ac(0x4b9)](_0x59e7fe){const _0x1b57d5=_0x25c8ac;this['_removeClearOtherTimer'](_0x59e7fe);const _0x1c6698=window['setTimeout'](()=>{const _0x4568f9=_0xd869;this[_0x4568f9(0x30e)][_0x4568f9(0x345)](_0x11c1e1=>{const _0x406c8a=_0x4568f9;_0x11c1e1[_0x406c8a(0x2d0)](_0x59e7fe);});},_0x593ce8*0x2);this[_0x1b57d5(0x3d2)][_0x1b57d5(0x22d)](_0x59e7fe,_0x1c6698);}[_0x25c8ac(0x2f2)](_0x23e4b8){const _0x434e8f=_0x25c8ac;if(this['_clearOtherTimers'][_0x434e8f(0x297)](_0x23e4b8)){const _0x2755cf=this['_clearOtherTimers'][_0x434e8f(0x4c4)](_0x23e4b8);_0x2755cf&&window['clearTimeout'](_0x2755cf),this[_0x434e8f(0x3d2)][_0x434e8f(0x22d)](_0x23e4b8,null);}}[_0x25c8ac(0x3b7)](_0x555b4e){const _0x30cd62=_0x25c8ac,{memberID:_0x47c348,unitIDs:_0x254497}=_0x555b4e;_0x254497[_0x30cd62(0x345)](_0x4d088c=>{const _0x1bdea4=_0x30cd62;var _0x485a5f;const _0x5d50fb=this[_0x1bdea4(0x30e)][_0x1bdea4(0x4c4)](_0x4d088c);_0x5d50fb&&(_0x5d50fb[_0x1bdea4(0x2d0)](_0x47c348),(_0x485a5f=this['_ensureSubject'](_0x4d088c))==null||_0x485a5f[_0x1bdea4(0x258)](_0x5d50fb[_0x1bdea4(0x3ac)]===0x0?_0x493e59[_0x1bdea4(0x434)][_0x1bdea4(0x4a2)]:_0x493e59['UnitStatus'][_0x1bdea4(0x1ed)]));}),this['_removeClearOtherTimer'](_0x47c348);}[_0x25c8ac(0x409)](_0x2752a7){const _0x113f5e=_0x25c8ac;this[_0x113f5e(0x4b9)](_0x2752a7[_0x113f5e(0x4b8)]);}[_0x25c8ac(0x28b)](_0x55ec6e){const _0x219270=_0x25c8ac;localStorage[_0x219270(0x255)](_0x5dda2d,JSON[_0x219270(0x3ae)](_0x55ec6e));}[_0x25c8ac(0x298)](){const _0x2e91ae=_0x25c8ac;this[_0x2e91ae(0x1fb)]=window['setInterval'](()=>{const _0x54a69f=_0x2e91ae;this[_0x54a69f(0x28b)]({'type':0x2,'memberID':this['_id']});},_0x593ce8);}['_ensureSubject'](_0x2c06a2){const _0x302ce5=_0x25c8ac;return this[_0x302ce5(0x4c6)]['has'](_0x2c06a2)||this['_unitStatus']['set'](_0x2c06a2,new _0x2d756d['BehaviorSubject'](_0x493e59[_0x302ce5(0x434)][_0x302ce5(0x4a2)])),this[_0x302ce5(0x4c6)][_0x302ce5(0x4c4)](_0x2c06a2);}}_0x3e1990['IURLService']=_0x2e14a9,_0x3e1990[_0x25c8ac(0x249)]=_0x1855f6,_0x3e1990['WebBrowserSingleActiveUnitService']=_0x1cfa3e,_0x3e1990[_0x25c8ac(0x3c5)]=_0x31456c,Object[_0x25c8ac(0x43e)](_0x3e1990,Symbol[_0x25c8ac(0x3fd)],{'value':'Module'});}));
1
+ function _0x4915(){const _0x2515b2=['session.connection-failed','getCurrentSelections','includes','functionsExecutedState','triggerDblclick','_memberService','_commandService','APPLY_PERMISSION_DENIED','formula.calculation.unable','_onCursorUpdate','evenodd','touchDependencies','getSheetId','ACTIVE_UNIT_EVENT_CHANNEL','UniverInstanceType','_cursor','unitID','INotificationService','_memberID','reason','handleIRemoveCol','_updateSubUnitFromURLParams','url(#off-line-icon_clip0_910_343)','bind','CollaborationSocketService','ONLINE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collabStatus.fetchMiss','_hasFormulaInDirtyRanges','ISocketService','collabStatus.synced','Rectangle','code','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_syncEditingCollabCursorService','UniverSheetsUi','_roomMembers$','_scheduleSaving','Error','YUUMI_CONNECTOR_URL_NOT_FOUND','ranges','USER_NOT_FOUND','handleInsertRangeMoveRight','M0\x200H16V16H0z','_disabled','collaboration.single-unit.warning','runOnServer','transformIMECache','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','SheetsSelectionsService','_uiPartsService','_univerInstanceService','storage','_colorAssignService','removeEventListener','Rect','fillText','_themeService','TEXT_RANGE_LAYER_INDEX','rxjs','setAlpha','REDEMPTION_USER_NOT_ELIGIBLE','useObservable','_entities','ILogService','collabStatus.syncing','YUUMI_URL_COL_OUT_OF_RANGE','_docTransformIMECacheService','override','range','top','Injector','startRow','_configService','UniverCore','none','ColorKit','getCellMatrix','@univerjs/network','getCurrent','_config','_backgroundColor','LOCAL_CACHE_INTERVAL_KEY','deepClone','_online','unit','defs','_beforeCloseService','IUniverInstanceService','RichTextEditingMutation','getRenderById','217255BjcNwj','saveTaskMap','href','imageSourceType','disableLocalCache','object','_setFormulaLimitStatus','function','getUnitStatus$','textRanges','trim','LOGIN_TOKEN_PROCESSING_FAILED','MOBILE_HAS_BEEN_BOUND','REDEMPTION_CODE_INACTIVE','7532343bKFSqi','1em','forEach','_imageIoService','univerjs-icon\x20univerjs-icon-','from','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','/universer-api/license/formula/limit/start','getVpScrollXYInfoByPosToVp','restore','RxDisposable','_createSocketURL','...','_initDependencies','CONNECTOR_DATA_TOO_LARGE','COLORS','roomMembers','permission.content','registerRenderModule','collaboration-client-ui.config','YUUMI_ALL_TABLES_IS_INVALID','getSkeleton','off-line-icon_clip0_910_343','CollaborationSessionService','WECHAT_HAS_BEEN_BOUND','MOBILE_VERIFY_CODE_MISMATCH','UniverRpc','UPDATE_CURSOR','limitInfo','OTHER_CLIENT_EDITING','_dataLoaderService','CONFLICT','_color','UniverIcon','FormulaExecutedStateType','source','SUCCESS','IMessageService','post','transform','_httpService','replace','_messageService','_lastResponseTimestamp','Failed','_getMergeRange','resize','collaboration-client.offline-data-not-saved','formula.calculation.waiting','init','VIEW_MAIN','_collaborationUIEventService','bottom','translate(.97)','getMemberID','HTTPService','createSocket','_clearOtherTimers','_getScale','assignAColorForMemberID','InsertRowCommandId','ENSURE_SNAPSHOT_EXECUTION','connectInjector','operators','mutations','getUndoRedoMutationParamsCache','_lastPointer','getAncestorScale','serializeRangeWithSheet','[LogService\x20Error]:\x20','Optional','onMouseMove','_heartbeatTimer','Inject','subscribe','jsx','DocStateChangeManagerService','setParam','_removeCollabCursors','INVITE_CODE_HAS_BEEN_UES','displayName','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','children','CollaborationUIEventService','replaceState','unitId','Shape','currentColor','getFocusedUnit','totalFormulasToCalculate','_injector','BehaviorSubject','hovered','ILocalCacheService','DisposableCollection','size','collabStatus.conflict','_collabCursorController','UniverNetwork','REDEMPTION_CODE_NOT_STARTED','UniverUi','_shapes','CollaborationController','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','HEADER_MENU','takeUntil','transformMutation','START_CALCULATION','addObjects','[Window\x20Error]:\x20','event$','_handleEvent','_assignedColors','ENTITLE_REPORT_LIMIT_EXCEED','react/jsx-runtime','MUTATION','now','http://www.w3.org/2000/svg','getMember','_saveCache','4OwGOzr','_initUserListener','_checkAndWaitForCalculationPermission','getUnitId','redoState','DocSkeletonManagerService','findNodePositionByCharIndex','asObservable','YUUMI_SUBSCRIPTION_NOT_FOUND','AUTHORIZE_CODE_ILLEGAL','OnLineIcon','getCollabCursors$','IConfigService','@univerjs/design','isTransformMutationFailure','_docTransformStateCacheService','defineProperty','currentUsage','REDEMPTION_CODE_HAS_BEEN_CREATED','SetWorksheetActivateCommand','_initWindowErrorListener','_scheduleClearOtherTimer','_entityInit$','getActiveSheet','DependentOn','Tools','onStarting','substring','origin','isArray','updateOfflineData','BuiltInUIPart','width','_registerDependencies','IRenderManagerService','DesktopCollaborationStatusDisplayController','4540316FEvePy','shareReplay','UniverSheets','off-line-icon','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','REDEMPTION_INVALID_CODE','history','svg','_initCommandInterceptor','sessionStatus$','executionId','searchParams','max','_getSessionTicket','m1Prime','_textBubble','getCollabEntity$','drawWith','row','collaboration.closeRoom','disposeWithMe','getColor','parseInt','currentSkeleton$','_updateURLWithCurrentState','onPointerLeave$','text','OFFLINE','useDependency','_cursors','WebSocketService','INVALID_ARGUMENT','getRelativeToViewportCoord','formula.calculation.started','SNAPSHOT_HAS_BEEN_REMOVED','beginPath','stage','beforeCommandExecuted','toRgbString','_transformUndoRedoStack','YUUMI_RATE_OVER_LIMIT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','/universer-api/frontend/logs','unshift','_collabCursorState$','isFormulaString','CommandType','createInstance','FETCH_MISS','SHEET_VIEWPORT_KEY','roomMembers$','_eventUnsubscribe','_init','registerRefRange','colno','TEXT','contains','SetSelectionsOperation','use','RemoveColCommandId','CHANGESET_REVISION_CONFILICT','send','getTypeOfUnitDisposed$','focused$','_collaborationSessionService','map','5456320dylzjd','_ensureSubject','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','subunit','handleDeleteRangeMoveUp','747936XgwjBh','_refreshCollabCursors','_uploadLog','subscribeEvent','DocSelectionManagerService','_getAnchorBounding','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_anchorDot','_urlService','fillStyle','saveOfflineData','registerBeforeClose','IRemoteInstanceService','on-line-icon_clip0_910_349','onPointerEnter$','_initStatusListener','handleInsertRangeMoveDown','SNAPSHOT_INVALID_SNAPSHOT','0\x200\x2017\x2016','_hovered','unhandledrejection','with','_labelPosition','collab-client.tooltip.reconnect','path','_saveTaskMap','_getFormulaLimitStatus','entries','YUUMI_ASYNCIO_CANCELLED','filter','data','YUUMI_NO_CUBOID_FOR_QUESTION','_name','_collaborationController','sessionTicket','PERMISSION_DENIED','FromArray','onLocalMutation','INVALID_INVITE_CODE','_localStorageService','UniverProCollaborationClientUi','SUBMIT_CHANGESET_TIMEOUT','actions','split','combineLatest','EMAIL_VERIFY_CODE_MISMATCH','UNDEFINED','_initEvent','dispose$','clearTimeout','_registerRenderDependencies','DATA_SOURCE_TOO_LARGE','some','ENTITLE_NEED_BILLING_ADDRESS','toString','stageInfo','UnitStatus','generateRandomId','startColumn','socket$','useRef','_id','_toggleOnline','deserializeRangeWithSheet','ITransformService','UNAUTHENTICATED','_updateLocalCursor','_notificationService','enableFrontendLog','ticket','handleMoveRange','PY_RUNTIME_SCRIPT_ERROR','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getRangePointData','APPLY_DUPLICATED','_revisionService','_docTransformSelectionsService','onPointerMove$','LOGIN_FAILED','session.will-retry','_maxFormulaLimit','type','LocaleService','1160667Bhszou','colorChannel1','url(#$1','_setupBeforeClosingHandler','transformRemoteChangeset','defIds','_hover','clsx','_initEntityListener','color','EffectRefRangId','UniverDrawing','_cursorShapes','fromEventSubject','LICENSE_EXPORT_SIZE_EXCEEDED','[Unhandled\x20Rejection]:\x20','getParam','isFormulaId','SOCKET_FAILED','releaseFormulaLimitUrl','InsertRangeMoveRightCommandId','_refRangeService','Subject','NOT_FOUND','_sheetSkeletonManagerService','@univerjs-pro/collaboration-client','ALREADY_EXISTS','getCurrentRevOfUnit','RECT','Module','DocIMEInputManagerService','values','YUUMI_UNABLE_LOAD_URL','_transformPreviousActiveRange','univer-mr-2\x20univer-flex\x20univer-text-xl','get','getUnit','setStateCache','measureText','black','runId','Warning','_unitOnClients','m2Prime','getformulaLimitStatusUrl','reconnect','FormulaExecuteStageType','IURLService','@univerjs/docs-ui','whenReady','setShapeProps','_removeClearOtherTimer','syncEditingCollabCursor','cursorInfo','_startCalculationLimit','rxjs/operators','YUUMI_AI_RUN_FAILED','@univerjs/sheets-ui','getConfig','_checkCalculationAvailable','DOC_RANGE_TYPE','_handleHover','APPLY_NON_SEQUENTIAL_REVISION','_docClipboardService','COMPLETION_FINISHED','key','_localCacheService','entityInit$','_context','parse','_docSkeletonManagerService','CollaborationEvent','_transformHistoryAndStateStack','cursorInfo$','LICENSE_DISTRO_REJECTED','_drawRectRange','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','backgroundColor','CURRENT_STATUS_CANNOT_OPERATE','show','setUndoRedoMutationParamsCache','undoState','54skcZHl','_initCommandExecutedListener','complete','endRow','onTransformChange$','_initStatusComponent','INTERNAL_ERROR','PENDING','USER_IS_ANONYMOUS','SetFormulaCalculationStartMutation','_docSyncEditingCollabCursorService','attrs','getStateCache','isTransformMutationsWithChangesetSuccess','exhaustSavingTask','_setupSubUnitSync','delete','eventID','UNIVER_SHEET','NOT_COLLAB','@univerjs/ui','requireSession','handleInsertRow','_collabSessionService','switchMap','[CollaborationDataLoaderController]','_logService','red.300','application/json','_cachedData','getValue','_doCreateSocket','fillRule','Success','subUnitId','MemberService','selection','getOwnPropertyDescriptor','getViewport','mergeOverrideWithDependencies','_unitStatus','body','removeParam','jsxs','LOCAL_CACHE_INTERVAL','JOIN_ROOM_FAILED','CollaborationStatus','_drawAnchor','xlink:href','SYNCED','RemoteUniscriptService','endColumn','getItem','@univerjs/engine-render','CollaborationUIEventId','message','_handleLeaveEvent','result','_currentUsage','docStateChange$','onCommandExecuted','selections','_onCursorDelete','CLOSE_ROOM','error','APPLY_REVISION_CONFILICT','_transformService','Vector2','handleInsertCol','ENTITLE_CHAT_LIMIT_EXCEED','INVITE_CODE_REQUIRED','white','/universer-api/license/formula/limit/status','BrowserCollaborationSocketService','stack','WebURLService','getTypeOfUnitAdded$','getUniverSheetInstance','newValue','collabStatus.offline','SetDocZoomRatioOperation','_releaseCalculationLimit','USER_NOT_INVITED_CODE','dispose','_startDocCollabCursor','flatMap','_pollingInterval','UNIVER_DOC','MessageType','NO_OTHER_CLIENTS_EDITING','idSuffix','next','getActiveRange','getColorFromTheme','collabCursorState$','startFormulaLimitUrl','LICENSE_MAX_UNITS_EXCEEDED','hide','1775736DzsqWW','setActiveRange','editingUnit','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_status$','RegularPolygon','_scene','isActive','arc','setConfig','react','addObject','stringify','transformSelections','params','createIdentifier','useCallback','CollaborationDataLoaderController','APPLY_REJECT','OTHER_CLIENTS_EDITING','lineno','setInterval','createElement','then','distinctUntilChanged','purple.300','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','add','_onRefRangeChange','EMAIL_HAS_BEEN_BOUND','_taskIds','IImageIoService','symbol','_initResize','has','tag','_range','ENTITLE_CAN_NOT_BUY_LOWER_OTP','unload','MoveRangeCommandId','ENTITLE_DUP_SUBSCRIPTION','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','React','UniverEngineFormula','_monkeyPatchLogService','SheetCollabCursorShape','_docStateChangeManagerService','addEventListener','_document','_toggleOffline','UniverDocsUi','fromEvent','setTimeout','string','getCoordByCell','push','moveTo','getMergeData','LICENSE_IMPORT_SIZE_EXCEEDED','UniverDocs','set','_session','debounce','debounceTime','catch','REDEMPTION_CODE_FULLY_REDEEMED','UniverCollaborationClientUIPlugin','round','ICommandService','executeCommand','makeDirty','getUnhiddenWorksheets','assign','blue.400','SessionStatus','TOO_MANY_REQUESTS','min','mapTo','green.600','UNRECOGNIZED','addHandlerCallback','div','_handleJoinEvent','forwardRef','_cursorInfo$','merge','unsubscribe','getDocRanges','session.collaboration-timeout','NodePositionConvertToRectRange','clipPath','_hideTimer','@univerjs/drawing','memberID','clearInterval','Tooltip','maxFormulaLimit','_updateCollabCursors','getSheetBySheetId','_renderManagerService','_scheduleHeartbeat','_anchor','_render','mask','urlChange$','IUIPartsService','_getSaveTimeout','toDisposable','_selfUnitIDs','UniverEngineRender','INVITE_CODE_ALREADY_BOUND','replaceDocRanges','RefRangeService','height','currentTheme$','setItem','@univerjs/sheets','InsertColCommandId','_localeService','pipe','save','_draw','\x20at\x20','_colorIndex','column','length','_initUnhandledRejectionListener','SOCKET_FAILED_RETRY','_drawTextRange','popstate','DeleteRangeMoveLeftCommandId','lineTo','location','pushState','doc.mutation.rich-text-editing','name','Disposable','fill','getLocalCacheKey','_send'];_0x4915=function(){return _0x2515b2;};return _0x4915();}function _0x1ae4(_0x1036b1,_0xdb132a){const _0x4915b4=_0x4915();return _0x1ae4=function(_0x1ae484,_0x48d759){_0x1ae484=_0x1ae484-0x90;let _0x3d303e=_0x4915b4[_0x1ae484];return _0x3d303e;},_0x1ae4(_0x1036b1,_0xdb132a);}(function(_0x4b9f7a,_0x4e7b1f){const _0x5c03cf=_0x1ae4,_0xc4520d=_0x4b9f7a();while(!![]){try{const _0x3956d0=parseInt(_0x5c03cf(0x118))/0x1+-parseInt(_0x5c03cf(0xad))/0x2*(-parseInt(_0x5c03cf(0x16b))/0x3)+-parseInt(_0x5c03cf(0xd1))/0x4+-parseInt(_0x5c03cf(0x306))/0x5*(-parseInt(_0x5c03cf(0x1bd))/0x6)+-parseInt(_0x5c03cf(0x314))/0x7+parseInt(_0x5c03cf(0x113))/0x8+parseInt(_0x5c03cf(0x21f))/0x9;if(_0x3956d0===_0x4e7b1f)break;else _0xc4520d['push'](_0xc4520d['shift']());}catch(_0x2a3fdd){_0xc4520d['push'](_0xc4520d['shift']());}}}(_0x4915,0x8dd7d),function(_0x3b2618,_0x2efe3d){const _0x1f3a5b=_0x1ae4;typeof exports==_0x1f3a5b(0x30b)&&typeof module<'u'?_0x2efe3d(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x1f3a5b(0x30d)&&define['amd']?define(['exports',_0x1f3a5b(0xa7),_0x1f3a5b(0x184),'@univerjs/core',_0x1f3a5b(0x1d1),_0x1f3a5b(0x2e6),_0x1f3a5b(0xba),_0x1f3a5b(0x229),'@univerjs/rpc',_0x1f3a5b(0x293),_0x1f3a5b(0x1f2),_0x1f3a5b(0x2f9),_0x1f3a5b(0x19b),_0x1f3a5b(0x27b),'@univerjs-pro/collaboration','@univerjs/docs','@univerjs/engine-formula',_0x1f3a5b(0x1a2),_0x1f3a5b(0x1a4)],_0x2efe3d):(_0x3b2618=typeof globalThis<'u'?globalThis:_0x3b2618||self,_0x2efe3d(_0x3b2618[_0x1f3a5b(0x140)]={},_0x3b2618['React'],_0x3b2618['UniverProCollaborationClient'],_0x3b2618[_0x1f3a5b(0x2f5)],_0x3b2618[_0x1f3a5b(0x99)],_0x3b2618[_0x1f3a5b(0x2e6)],_0x3b2618['UniverDesign'],_0x3b2618[_0x1f3a5b(0x249)],_0x3b2618[_0x1f3a5b(0x32e)],_0x3b2618[_0x1f3a5b(0xd3)],_0x3b2618[_0x1f3a5b(0x28c)],_0x3b2618[_0x1f3a5b(0x97)],_0x3b2618[_0x1f3a5b(0x251)],_0x3b2618[_0x1f3a5b(0x176)],_0x3b2618['UniverProCollaboration'],_0x3b2618[_0x1f3a5b(0x25a)],_0x3b2618[_0x1f3a5b(0x24a)],_0x3b2618[_0x1f3a5b(0x2e6)][_0x1f3a5b(0x353)],_0x3b2618[_0x1f3a5b(0x2ce)]));}(this,function(_0x440074,_0x54094d,_0x29cbea,_0x4a5a1c,_0x270495,_0x8d94e0,_0x67c92c,_0x3728a4,_0xa7700f,_0x48c182,_0x5d2f68,_0xbeb642,_0x22126e,_0x1954a8,_0x4a6bb0,_0x5afd4e,_0x419491,_0x5d0515,_0x14ceff){'use strict';const _0x22d19e=_0x1ae4;var _0x23d957=Object[_0x22d19e(0xbd)],_0x1330f8=(_0x11b2ec,_0x320e19,_0x5b03dc)=>_0x320e19 in _0x11b2ec?_0x23d957(_0x11b2ec,_0x320e19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b03dc}):_0x11b2ec[_0x320e19]=_0x5b03dc,_0xa63e61=(_0x3a2d11,_0x3be269,_0x20baab)=>_0x1330f8(_0x3a2d11,typeof _0x3be269!=_0x22d19e(0x23f)?_0x3be269+'':_0x3be269,_0x20baab);function _0x318455({ref:_0x573b24,..._0x5edf2d}){const _0x5a6d2a=_0x22d19e,{icon:_0x21b538,id:_0x20721a,className:_0x9f022a,extend:_0x255331,..._0x5d9e3f}=_0x5edf2d,_0x2203d9=(_0x5a6d2a(0x318)+_0x20721a+'\x20'+(_0x9f022a||''))[_0x5a6d2a(0x310)](),_0x289d=_0x3728a4[_0x5a6d2a(0x154)]('_'+_0x27e521());return _0x1e0ea2(_0x21b538,''+_0x20721a,{'defIds':_0x21b538[_0x5a6d2a(0x170)],'idSuffix':_0x289d['current']},{'ref':_0x573b24,'className':_0x2203d9,..._0x5d9e3f},_0x255331);}function _0x1e0ea2(_0x4bd170,_0x3f8811,_0x14644f,_0x563df1,_0x34bd43){const _0x3b38e3=_0x22d19e;return _0x3728a4[_0x3b38e3(0x235)](_0x4bd170['tag'],{'key':_0x3f8811,..._0x50e694(_0x4bd170,_0x14644f,_0x34bd43),..._0x563df1},(_0x30bd2f(_0x4bd170,_0x14644f)[_0x3b38e3(0x366)]||[])[_0x3b38e3(0x112)]((_0x4e6657,_0x36a2ba)=>_0x1e0ea2(_0x4e6657,_0x3f8811+'-'+_0x4bd170['tag']+'-'+_0x36a2ba,_0x14644f,void 0x0,_0x34bd43)));}function _0x50e694(_0x2f22d9,_0x41e017,_0x4c37b4){const _0x444033=_0x22d19e,_0x5e56d0={..._0x2f22d9[_0x444033(0x1c8)]};_0x4c37b4!=null&&_0x4c37b4[_0x444033(0x16c)]&&_0x5e56d0['fill']==='colorChannel1'&&(_0x5e56d0[_0x444033(0x2a8)]=_0x4c37b4['colorChannel1']),_0x2f22d9['tag']===_0x444033(0x286)&&_0x5e56d0['id']&&(_0x5e56d0['id']=_0x5e56d0['id']+_0x41e017[_0x444033(0x217)]),Object['entries'](_0x5e56d0)[_0x444033(0x316)](([_0x5d0914,_0x262066])=>{const _0x4d48b5=_0x444033;_0x5d0914===_0x4d48b5(0x286)&&typeof _0x262066==_0x4d48b5(0x254)&&(_0x5e56d0[_0x5d0914]=_0x262066[_0x4d48b5(0x33d)](/url\(#(.*)\)/,_0x4d48b5(0x16d)+_0x41e017['idSuffix']+')'));});const {defIds:_0x243c85}=_0x41e017;return!_0x243c85||_0x243c85['length']===0x0||(_0x2f22d9[_0x444033(0x242)]===_0x444033(0x10b)&&_0x5e56d0['xlink:href']&&(_0x5e56d0[_0x444033(0x1ed)]=_0x5e56d0['xlink:href']+_0x41e017[_0x444033(0x217)]),Object[_0x444033(0x133)](_0x5e56d0)[_0x444033(0x316)](([_0x29b0db,_0x1cdaa5])=>{const _0x16eb09=_0x444033;typeof _0x1cdaa5==_0x16eb09(0x254)&&(_0x5e56d0[_0x29b0db]=_0x1cdaa5['replace'](/url\(#(.*)\)/,_0x16eb09(0x16d)+_0x41e017['idSuffix']+')'));})),_0x5e56d0;}function _0x30bd2f(_0x16114f,_0x1862ec){const _0x4c2278=_0x22d19e;var _0xa1ad79;const {defIds:_0x1a890a}=_0x1862ec;return!_0x1a890a||_0x1a890a[_0x4c2278(0x29c)]===0x0?_0x16114f:_0x16114f[_0x4c2278(0x242)]===_0x4c2278(0x301)&&((_0xa1ad79=_0x16114f[_0x4c2278(0x366)])!=null&&_0xa1ad79[_0x4c2278(0x29c)])?{..._0x16114f,'children':_0x16114f[_0x4c2278(0x366)]['map'](_0x2ca2da=>typeof _0x2ca2da[_0x4c2278(0x1c8)]['id']==_0x4c2278(0x254)&&_0x1a890a&&_0x1a890a[_0x4c2278(0x2ad)](_0x2ca2da[_0x4c2278(0x1c8)]['id'])?{..._0x2ca2da,'attrs':{..._0x2ca2da['attrs'],'id':_0x2ca2da[_0x4c2278(0x1c8)]['id']+_0x1862ec['idSuffix']}}:_0x2ca2da)}:_0x16114f;}function _0x27e521(){const _0x2688af=_0x22d19e;return Math['random']()[_0x2688af(0x14e)](0x24)[_0x2688af(0xc8)](0x2,0x8);}_0x318455[_0x22d19e(0x364)]=_0x22d19e(0x335);const _0x2184c1={'tag':'svg','attrs':{'xmlns':_0x22d19e(0xaa),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x22d19e(0x315),'height':_0x22d19e(0x315)},'children':[{'tag':'g','attrs':{'clipPath':_0x22d19e(0x2c1)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x22d19e(0x9c),'strokeLinecap':'round','strokeLinejoin':_0x22d19e(0x262),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x22d19e(0x279),'attrs':{'id':_0x22d19e(0x32a)},'children':[{'tag':_0x22d19e(0x130),'attrs':{'fill':_0x22d19e(0x204),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x22d19e(0x32a)]},_0x81dcf2=_0x3728a4[_0x22d19e(0x272)](function(_0x3143c2,_0x56887c){const _0x599dcf=_0x22d19e;return _0x3728a4['createElement'](_0x318455,Object['assign']({},_0x3143c2,{'id':_0x599dcf(0xd4),'ref':_0x56887c,'icon':_0x2184c1}));});_0x81dcf2['displayName']='OffLineIcon';const _0x1b6a09={'tag':_0x22d19e(0xd8),'attrs':{'xmlns':_0x22d19e(0xaa),'fill':_0x22d19e(0x2f6),'viewBox':_0x22d19e(0x12a),'width':_0x22d19e(0x315),'height':_0x22d19e(0x315)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x22d19e(0x130),'attrs':{'stroke':_0x22d19e(0x36b),'d':_0x22d19e(0x1b7),'strokeLinecap':_0x22d19e(0x262),'strokeLinejoin':_0x22d19e(0x262),'strokeWidth':1.2}}]},{'tag':_0x22d19e(0x301),'attrs':{},'children':[{'tag':_0x22d19e(0x279),'attrs':{'id':_0x22d19e(0x125)},'children':[{'tag':'path','attrs':{'fill':_0x22d19e(0x204),'d':_0x22d19e(0x2d6),'transform':_0x22d19e(0x349)}}]}]}],'defIds':[_0x22d19e(0x125)]},_0x34b6b5=_0x3728a4['forwardRef'](function(_0x1b8960,_0x26ab7d){const _0x383d42=_0x22d19e;return _0x3728a4['createElement'](_0x318455,Object[_0x383d42(0x267)]({},_0x1b8960,{'id':'on-line-icon','ref':_0x26ab7d,'icon':_0x1b6a09}));});_0x34b6b5[_0x22d19e(0x364)]=_0x22d19e(0xb7);function _0x2ec0b1(_0x3b13b5){const _0x423fee=_0x22d19e;switch(_0x3b13b5){case _0x29cbea['CollaborationStatus'][_0x423fee(0xec)]:return _0x423fee(0x20c);case _0x29cbea[_0x423fee(0x1eb)][_0x423fee(0x333)]:return _0x423fee(0x95);case _0x29cbea[_0x423fee(0x1eb)][_0x423fee(0x101)]:return _0x423fee(0x2c6);case _0x29cbea['CollaborationStatus'][_0x423fee(0x1d0)]:return'collabStatus.notCollab';case _0x29cbea[_0x423fee(0x1eb)]['AWAITING']:case _0x29cbea['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x423fee(0x2ec);case _0x29cbea[_0x423fee(0x1eb)][_0x423fee(0x1ee)]:case _0x29cbea[_0x423fee(0x1eb)][_0x423fee(0x1c4)]:return _0x423fee(0x2c9);}}function _0x1117e8(_0x4adb36){const _0x1bd57b=_0x22d19e,{status$:_0x30c60f}=_0x4adb36,_0x2954c3=_0x270495[_0x1bd57b(0x2e9)](_0x30c60f,_0x29cbea[_0x1bd57b(0x1eb)][_0x1bd57b(0x1d0)]),_0x220e44=_0x270495[_0x1bd57b(0xed)](_0x4a5a1c['LocaleService']),_0x2de525=_0x270495[_0x1bd57b(0xed)](_0x29cbea[_0x1bd57b(0x32b)]),_0x52723e=_0x2954c3!==_0x29cbea[_0x1bd57b(0x1eb)][_0x1bd57b(0xec)],_0x298913=_0x220e44['t'](_0x2ec0b1(_0x2954c3)),_0xc417c4=_0x52723e?_0x54094d[_0x1bd57b(0x35f)](_0x34b6b5,{}):_0x54094d['jsx'](_0x81dcf2,{}),_0x2d274f=_0x3728a4[_0x1bd57b(0x22f)](()=>{const _0x5aa915=_0x1bd57b;_0x52723e||_0x2de525[_0x5aa915(0x198)]();},[_0x52723e,_0x2de525]);function _0x1097cb(){const _0x35bc59=_0x1bd57b;return _0x54094d[_0x35bc59(0x1e8)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x2d274f,'children':[_0x54094d['jsx'](_0x35bc59(0x270),{'className':_0x67c92c[_0x35bc59(0x172)](_0x35bc59(0x18d),{'univer-text-green-500':_0x52723e,'univer-text-red-500':!_0x52723e}),'children':_0xc417c4}),_0x54094d[_0x35bc59(0x35f)](_0x35bc59(0x270),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x298913})]});}return _0x52723e?_0x1097cb():_0x54094d[_0x1bd57b(0x35f)](_0x67c92c[_0x1bd57b(0x27e)],{'title':_0x220e44['t'](_0x1bd57b(0x12f)),'children':_0x1097cb()});}var _0x1f95d9=Object[_0x22d19e(0x1e2)],_0x3de216=(_0x6eadce,_0x2738a2,_0x1d4c75,_0x5c5b2)=>{const _0x37168f=_0x22d19e;for(var _0xc73206=_0x5c5b2>0x1?void 0x0:_0x5c5b2?_0x1f95d9(_0x2738a2,_0x1d4c75):_0x2738a2,_0x5c0bd9=_0x6eadce[_0x37168f(0x29c)]-0x1,_0xfaff54;_0x5c0bd9>=0x0;_0x5c0bd9--)(_0xfaff54=_0x6eadce[_0x5c0bd9])&&(_0xc73206=_0xfaff54(_0xc73206)||_0xc73206);return _0xc73206;},_0x424a95=(_0xa05b8d,_0x4d579e)=>(_0x48e415,_0xcaf905)=>_0x4d579e(_0x48e415,_0xcaf905,_0xa05b8d);_0x440074[_0x22d19e(0xd0)]=class extends _0x4a5a1c[_0x22d19e(0x2a7)]{constructor(_0x3404a7,_0x3b1535,_0x33605e,_0x32930b){const _0x5c1c2f=_0x22d19e;super(),_0xa63e61(this,'_status$',new _0x8d94e0[(_0x5c1c2f(0x90))](_0x29cbea['CollaborationStatus'][_0x5c1c2f(0x1d0)])),(this[_0x5c1c2f(0x2de)]=_0x3404a7,this[_0x5c1c2f(0x36e)]=_0x3b1535,this[_0x5c1c2f(0x139)]=_0x33605e,this[_0x5c1c2f(0x2dd)]=_0x32930b,this[_0x5c1c2f(0x1c2)](),this[_0x5c1c2f(0x127)]());}['_initStatusListener'](){const _0x5a9163=_0x22d19e;this[_0x5a9163(0xe5)](this['_univerInstanceService'][_0x5a9163(0x110)][_0x5a9163(0x296)](_0x8d94e0['switchMap'](()=>{const _0x3dccd8=_0x5a9163,_0x24be5a=this[_0x3dccd8(0x2de)][_0x3dccd8(0x36c)]();return _0x24be5a?this[_0x3dccd8(0x139)][_0x3dccd8(0xe1)](_0x24be5a['getUnitId']()):_0x8d94e0['of'](null);}),_0x8d94e0[_0x5a9163(0x1d5)](_0x543ee5=>_0x543ee5?_0x543ee5['status$']:_0x8d94e0['of'](_0x29cbea[_0x5a9163(0x1eb)][_0x5a9163(0x1d0)])))[_0x5a9163(0x35e)](_0x2bcc0f=>{this['_status$']['next'](_0x2bcc0f);}));}[_0x22d19e(0x1c2)](){const _0x5b6566=_0x22d19e;this[_0x5b6566(0xe5)](this[_0x5b6566(0x2dd)]['registerComponent'](_0x270495[_0x5b6566(0xcc)][_0x5b6566(0x9d)],()=>_0x270495[_0x5b6566(0x352)](_0x55feb5({'status$':this[_0x5b6566(0x223)][_0x5b6566(0xb4)]()}),this[_0x5b6566(0x36e)])));}},_0x440074[_0x22d19e(0xd0)]=_0x3de216([_0x424a95(0x0,_0x4a5a1c[_0x22d19e(0x303)]),_0x424a95(0x1,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c['Injector'])),_0x424a95(0x2,_0x4a5a1c['Inject'](_0x29cbea[_0x22d19e(0x9b)])),_0x424a95(0x3,_0x270495[_0x22d19e(0x288)])],_0x440074['DesktopCollaborationStatusDisplayController']);function _0x55feb5(_0x4b30eb){const {status$:_0x40a8d5}=_0x4b30eb;return function(){return _0x54094d['jsx'](_0x1117e8,{'status$':_0x40a8d5});};}const _0x1a7106=_0x4a5a1c[_0x22d19e(0x22e)]('uni.network.url-service');var _0x2d8cb6=Object['getOwnPropertyDescriptor'],_0xbe8d43=(_0x2d6fc6,_0x29c0da,_0x532493,_0x234ce1)=>{const _0x241568=_0x22d19e;for(var _0x6c2526=_0x234ce1>0x1?void 0x0:_0x234ce1?_0x2d8cb6(_0x29c0da,_0x532493):_0x29c0da,_0x2f79a3=_0x2d6fc6[_0x241568(0x29c)]-0x1,_0x4c4eb0;_0x2f79a3>=0x0;_0x2f79a3--)(_0x4c4eb0=_0x2d6fc6[_0x2f79a3])&&(_0x6c2526=_0x4c4eb0(_0x6c2526)||_0x6c2526);return _0x6c2526;},_0x5dbae3=(_0x119d9e,_0x1fe68c)=>(_0x178431,_0x40df59)=>_0x1fe68c(_0x178431,_0x40df59,_0x119d9e);_0x440074[_0x22d19e(0x230)]=class extends _0x4a5a1c['RxDisposable']{constructor(_0x27a6c0,_0x14c1db,_0x393447,_0x1df618,_0x1358d9){const _0x5bf668=_0x22d19e;super(),this['_urlService']=_0x27a6c0,this[_0x5bf668(0x1d7)]=_0x14c1db,this[_0x5bf668(0x2b1)]=_0x393447,this[_0x5bf668(0x332)]=_0x1df618,_0x1358d9?_0x1358d9==null||_0x1358d9[_0x5bf668(0x19c)]()[_0x5bf668(0x236)](()=>this[_0x5bf668(0x105)]()):(this[_0x5bf668(0x1d7)]['debug'](_0x5bf668(0x1d6),_0x5bf668(0x2cc)),this['_init']());}async[_0x22d19e(0x105)](){const _0x3c86d5=_0x22d19e,_0x293a75=this[_0x3c86d5(0x120)][_0x3c86d5(0x17b)](_0x3c86d5(0x300)),_0x32416b=this[_0x3c86d5(0x120)][_0x3c86d5(0x17b)]('type'),_0x3bf553=this['_urlService'][_0x3c86d5(0x17b)](_0x3c86d5(0x116));if(!_0x293a75||!_0x32416b){this['_logService']['debug'](_0x3c86d5(0x1d6),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x34975e=await this[_0x3c86d5(0x332)]['loadUnit'](_0x293a75,Number(_0x32416b),_0x3bf553);_0x34975e&&_0x34975e instanceof _0x4a5a1c['Workbook']&&this['_setupSubUnitSync'](_0x34975e);}async[_0x22d19e(0x1cc)](_0x2db9eb){const _0x22f3ce=_0x22d19e;await this[_0x22f3ce(0x2c0)](_0x2db9eb),_0x2db9eb['activeSheet$']['pipe'](_0x8d94e0['takeUntil'](this['dispose$']))['subscribe'](_0x2dfc38=>{_0x2dfc38&&this['_updateURLWithCurrentState'](_0x2dfc38);}),this[_0x22f3ce(0x120)][_0x22f3ce(0x287)][_0x22f3ce(0x296)](_0x8d94e0[_0x22f3ce(0x9e)](this[_0x22f3ce(0x148)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x2db9eb));}[_0x22d19e(0xe9)](_0x3d7f83,_0x14d469=!0x1){const _0x5dc393=_0x22d19e,_0x122890=this[_0x5dc393(0x120)]['getParam'](_0x5dc393(0x116));_0x3d7f83[_0x5dc393(0x2b7)]()!==_0x122890&&this[_0x5dc393(0x120)][_0x5dc393(0x361)](_0x5dc393(0x116),_0x3d7f83['getSheetId'](),_0x14d469);}async['_updateSubUnitFromURLParams'](_0x413b49){const _0x56fc63=_0x22d19e;var _0x50e521;const _0xf63ecf=this[_0x56fc63(0x120)][_0x56fc63(0x17b)](_0x56fc63(0x116));if(!_0xf63ecf||!_0x413b49[_0x56fc63(0x281)](_0xf63ecf)){const _0x477fa9=_0x413b49[_0x56fc63(0x266)]()[0x0],_0x454fbb=_0x413b49[_0x56fc63(0x281)](_0x477fa9);if(!_0x454fbb)return;this[_0x56fc63(0xe9)](_0x454fbb,!0x0),await this['_commandService'][_0x56fc63(0x264)](_0x48c182[_0x56fc63(0xc0)]['id'],{'unitId':_0x413b49[_0x56fc63(0xb0)](),'subUnitId':_0x477fa9});return;}((_0x50e521=_0x413b49[_0x56fc63(0xc4)]())==null?void 0x0:_0x50e521[_0x56fc63(0x2b7)]())!==_0xf63ecf&&await this[_0x56fc63(0x2b1)][_0x56fc63(0x264)](_0x48c182['SetWorksheetActivateCommand']['id'],{'unitId':_0x413b49[_0x56fc63(0xb0)](),'subUnitId':_0xf63ecf});}},_0x440074[_0x22d19e(0x230)]=_0xbe8d43([_0x5dbae3(0x0,_0x1a7106),_0x5dbae3(0x1,_0x4a5a1c[_0x22d19e(0x2eb)]),_0x5dbae3(0x2,_0x4a5a1c['ICommandService']),_0x5dbae3(0x3,_0x4a5a1c[_0x22d19e(0x35d)](_0x29cbea['DataLoaderService'])),_0x5dbae3(0x4,_0x4a5a1c[_0x22d19e(0x35a)](_0xa7700f[_0x22d19e(0x124)]))],_0x440074[_0x22d19e(0x230)]);var _0x2c66f9=Object[_0x22d19e(0x1e2)],_0x1bb1bc=(_0x4d337c,_0x34adb4,_0x248d98,_0x2432f0)=>{const _0x15c306=_0x22d19e;for(var _0x32cfda=_0x2432f0>0x1?void 0x0:_0x2432f0?_0x2c66f9(_0x34adb4,_0x248d98):_0x34adb4,_0x5ac6c2=_0x4d337c[_0x15c306(0x29c)]-0x1,_0x4937cc;_0x5ac6c2>=0x0;_0x5ac6c2--)(_0x4937cc=_0x4d337c[_0x5ac6c2])&&(_0x32cfda=_0x4937cc(_0x32cfda)||_0x32cfda);return _0x32cfda;},_0x3160a6=(_0x175297,_0x546bff)=>(_0x12f702,_0x192ba8)=>_0x546bff(_0x12f702,_0x192ba8,_0x175297);let _0x3b2848=class extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(_0x1cd3a0,_0x2d1bbc){const _0x3e696c=_0x22d19e;super(),this[_0x3e696c(0x1aa)]=_0x1cd3a0,this['_imageIoService']=_0x2d1bbc,this[_0x3e696c(0x105)]();}[_0x22d19e(0x105)](){const _0x32d9c5=_0x22d19e,_0x1dd156=this;this[_0x32d9c5(0xe5)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x20676c=>{const _0x3635a1=_0x32d9c5,_0x93f367=await _0x1dd156[_0x3635a1(0x317)]['saveImage'](_0x20676c);return _0x93f367?{'source':_0x93f367[_0x3635a1(0x337)],'imageSourceType':_0x93f367[_0x3635a1(0x309)]}:null;}}));}};_0x3b2848=_0x1bb1bc([_0x3160a6(0x0,_0x22126e['IDocClipboardService']),_0x3160a6(0x1,_0x1954a8[_0x22d19e(0x23e)])],_0x3b2848);const _0x158c52=[_0x22d19e(0x238),'jiqing.500',_0x22d19e(0x26d),_0x22d19e(0x1d8),_0x22d19e(0x268),'yellow.400'];class _0x54052c extends _0x4a5a1c[_0x22d19e(0x2a7)]{constructor(){const _0x1c78c4=_0x22d19e;super(...arguments),_0xa63e61(this,_0x1c78c4(0xa5),new Map()),_0xa63e61(this,_0x1c78c4(0x29a),0x0);}[_0x22d19e(0x34f)](_0x5690c3){const _0x34df30=_0x22d19e;if(this[_0x34df30(0xa5)]['has'](_0x5690c3))return this[_0x34df30(0xa5)][_0x34df30(0x18e)](_0x5690c3);const _0x816f2c=_0x158c52[this[_0x34df30(0x29a)]];return this[_0x34df30(0x29a)]=(this[_0x34df30(0x29a)]+0x1)%_0x158c52[_0x34df30(0x29c)],this[_0x34df30(0xa5)][_0x34df30(0x25b)](_0x5690c3,_0x816f2c),_0x816f2c;}}function _0x4fb987(_0xe93690){const _0xf8420d=_0x22d19e;let _0x1030cd='';for(const _0x11477e of _0xe93690){const {startOffset:_0x5922b9,endOffset:_0x33e75c,isActive:_0x239d45,rangeType:_0x4b0ba4,segmentId:_0x1581a0,segmentPage:_0x257805}=_0x11477e;_0x1030cd[_0xf8420d(0x29c)]&&(_0x1030cd+=','),_0x1030cd+=_0x5922b9+':'+_0x33e75c+':'+(_0x239d45?'1':'0')+':'+_0x4b0ba4+':'+_0x1581a0+':'+_0x257805;}return _0x1030cd;}function _0x1d4227(_0x3cd51b){const _0x1bb39a=_0x22d19e,_0x1d4422=_0x3cd51b[_0x1bb39a(0x143)](','),_0x4d2a21=[];for(const _0x190de4 of _0x1d4422){const [_0x7b613b,_0x205174,_0x2ea7d0,_0x50f178,_0x18a1c1,_0x8e7aa1]=_0x190de4[_0x1bb39a(0x143)](':');_0x4d2a21[_0x1bb39a(0x256)]({'startOffset':Number(_0x7b613b),'endOffset':Number(_0x205174),'collapsed':_0x7b613b===_0x205174,'isActive':_0x2ea7d0==='1','rangeType':_0x50f178===_0x4a5a1c[_0x1bb39a(0x1a7)][_0x1bb39a(0x108)]?_0x4a5a1c['DOC_RANGE_TYPE'][_0x1bb39a(0x108)]:_0x4a5a1c['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x18a1c1==_0x1bb39a(0x254)?String(_0x18a1c1):'','segmentPage':Number(_0x8e7aa1!=null?_0x8e7aa1:-0x1)});}return _0x4d2a21[_0x1bb39a(0x14c)](_0x4247e2=>_0x4247e2[_0x1bb39a(0x226)])||(_0x4d2a21[0x0]['isActive']=!0x0),_0x4d2a21;}class _0x5e2c98 extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(){const _0x58af81=_0x22d19e;super(...arguments),_0xa63e61(this,_0x58af81(0xfd),new _0x8d94e0[(_0x58af81(0x90))](null)),_0xa63e61(this,_0x58af81(0x21b),this[_0x58af81(0xfd)][_0x58af81(0xb4)]());}[_0x22d19e(0x19f)](_0x479c55){const _0x21340f=_0x22d19e,{unitID:_0x4d5051,memberID:_0x55b16c,textRanges:_0x1ac17e}=_0x479c55,_0x46fef3=_0x4fb987(_0x1ac17e);if(_0x46fef3==='')return;const _0x2c61fc={'unitID':_0x4d5051,'memberID':_0x55b16c,'selection':_0x46fef3};this[_0x21340f(0xfd)][_0x21340f(0x218)](_0x2c61fc);}}var _0xc6f851=Object['getOwnPropertyDescriptor'],_0x4c204a=(_0x55c449,_0xde6fec,_0x1228e2,_0x3a16f6)=>{const _0x4bcd02=_0x22d19e;for(var _0x241933=_0x3a16f6>0x1?void 0x0:_0x3a16f6?_0xc6f851(_0xde6fec,_0x1228e2):_0xde6fec,_0x41cbb9=_0x55c449[_0x4bcd02(0x29c)]-0x1,_0x8dd86c;_0x41cbb9>=0x0;_0x41cbb9--)(_0x8dd86c=_0x55c449[_0x41cbb9])&&(_0x241933=_0x8dd86c(_0x241933)||_0x241933);return _0x241933;},_0x758b0d=(_0xc2ac20,_0x4cf66e)=>(_0x3c8a59,_0x1b8e9c)=>_0x4cf66e(_0x3c8a59,_0x1b8e9c,_0xc2ac20);const _0x2b9030=0x12c,_0x5ccb76=0x64;let _0x5d83b2=class extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(_0x553855,_0x138b41,_0x1cbaee,_0x1aa6fc,_0xcf3f78,_0x682c1a,_0x5b98a7,_0x4981c3,_0x5a3f81){const _0x3d33e6=_0x22d19e;super(),_0xa63e61(this,_0x3d33e6(0x2ff),!0x1),_0xa63e61(this,'_init',!0x1),_0xa63e61(this,_0x3d33e6(0x273),new _0x8d94e0[(_0x3d33e6(0x90))](new Map())),_0xa63e61(this,_0x3d33e6(0x1b4),this[_0x3d33e6(0x273)][_0x3d33e6(0xb4)]()),_0xa63e61(this,'_roomMembers$',new _0x8d94e0['BehaviorSubject']([])),_0xa63e61(this,_0x3d33e6(0x103),this['_roomMembers$']['pipe'](_0x8d94e0[_0x3d33e6(0x25e)](_0x2b9030))),_0xa63e61(this,_0x3d33e6(0x15a),_0x4a5a1c[_0x3d33e6(0x25d)](_0x106917=>{const _0xf1c192=_0x3d33e6,_0x4e4976={'eventID':_0x4a6bb0[_0xf1c192(0x1b2)][_0xf1c192(0x32f)],'data':{'unitID':this[_0xf1c192(0x2bb)],'memberID':this[_0xf1c192(0x25c)][_0xf1c192(0x34a)](),'selection':_0x4fb987(_0x106917)}};this[_0xf1c192(0x25c)]['send'](_0x4e4976,this[_0xf1c192(0x2bb)]);},_0x5ccb76)),(this[_0x3d33e6(0x2bb)]=_0x553855,this[_0x3d33e6(0x25c)]=_0x138b41,this[_0x3d33e6(0x36e)]=_0x1cbaee,this['_colorAssignService']=_0x1aa6fc,this[_0x3d33e6(0x2b0)]=_0xcf3f78,this[_0x3d33e6(0x2cd)]=_0x682c1a,this['_transformService']=_0x5b98a7,this[_0x3d33e6(0x2de)]=_0x4981c3,this['_commandService']=_0x5a3f81);}get[_0x22d19e(0x1a0)](){const _0x529f77=_0x22d19e;return this[_0x529f77(0x273)]['getValue']();}get[_0x22d19e(0x324)](){const _0x22960d=_0x22d19e;return this[_0x22960d(0x2cf)][_0x22960d(0x1db)]();}['dispose'](){const _0x21b3c5=_0x22d19e;super['dispose'](),this[_0x21b3c5(0x273)][_0x21b3c5(0x218)](new Map()),this['_cursorInfo$'][_0x21b3c5(0x1bf)](),this[_0x21b3c5(0x2cf)][_0x21b3c5(0x218)]([]),this[_0x21b3c5(0x2cf)][_0x21b3c5(0x1bf)]();}['init'](){const _0x3bb919=_0x22d19e;this[_0x3bb919(0x105)]||(this[_0x3bb919(0x105)]=!0x0,this['_session'][_0x3bb919(0xda)][_0x3bb919(0x296)](_0x8d94e0['takeUntil'](this[_0x3bb919(0x148)]))[_0x3bb919(0x35e)](_0x356a06=>{const _0x449cd3=_0x3bb919;_0x356a06===_0x29cbea[_0x449cd3(0x269)][_0x449cd3(0x2c4)]?this['_toggleOnline']():this[_0x449cd3(0x250)]();}),this['_session'][_0x3bb919(0xa3)][_0x3bb919(0x296)](_0x8d94e0['takeUntil'](this['dispose$']))[_0x3bb919(0x35e)](_0x3eb262=>{const _0x17aa51=_0x3bb919,_0x35b360=_0x3eb262[_0x17aa51(0x1ce)];_0x35b360===_0x4a6bb0[_0x17aa51(0x1b2)][_0x17aa51(0x32f)]&&this[_0x17aa51(0x2b4)](_0x3eb262),_0x35b360===_0x4a6bb0[_0x17aa51(0x1b2)]['USERS_LEAVE']&&this[_0x17aa51(0x1fb)](_0x3eb262);}),this['disposeWithMe'](this[_0x3bb919(0x2b1)][_0x3bb919(0x1f9)](_0x4ca2fc=>{const _0x59584c=_0x3bb919,_0x3e779d=_0x4ca2fc[_0x59584c(0x22d)];_0x3e779d!=null&&this[_0x59584c(0x2ff)]&&_0x4ca2fc['id']===_0x5afd4e['SetTextSelectionsOperation']['id']&&_0x3e779d[_0x59584c(0x369)]===this['unitID']&&_0x3e779d['isEditing']===!0x1&&_0x3e779d[_0x59584c(0x2d3)]['length']>0x0&&this['_updateLocalCursor'](_0x3e779d[_0x59584c(0x2d3)]);})),this['_syncEditingCollabCursorService'][_0x3bb919(0x21b)][_0x3bb919(0x296)](_0x8d94e0[_0x3bb919(0x9e)](this['dispose$']))[_0x3bb919(0x35e)](_0x5d9413=>{const _0x4521eb=_0x3bb919;if((_0x5d9413==null?void 0x0:_0x5d9413[_0x4521eb(0x2bb)])!==this[_0x4521eb(0x2bb)])return;const _0x4af0b4={'eventID':_0x4a6bb0[_0x4521eb(0x1b2)][_0x4521eb(0x32f)],'data':_0x5d9413};this[_0x4521eb(0x2b4)](_0x4af0b4);}),this[_0x3bb919(0xe5)](this[_0x3bb919(0x2b1)][_0x3bb919(0x1f9)](_0x362ac4=>{const _0x29d2ac=_0x3bb919;if(_0x362ac4[_0x29d2ac(0x22d)]==null)return;const _0x1912bc=_0x362ac4['params'];if(_0x362ac4['id']!==_0x5afd4e[_0x29d2ac(0x304)]['id']||_0x1912bc[_0x29d2ac(0x369)]!==this['unitID'])return;const _0x1044a9={'id':_0x29d2ac(0x2a5),'params':_0x1912bc},_0x1c2ea5=this['cursorInfo'];for(const [_0xf2cfa2,_0x315412]of _0x1c2ea5){const _0x46053b={'id':_0x29d2ac(0x2a5),'params':{'unitId':this[_0x29d2ac(0x2bb)],'actions':null,'textRanges':_0x315412[_0x29d2ac(0x2d3)]}},_0x2cac1d=this['_transformService'][_0x29d2ac(0x9f)](_0x1044a9,_0x46053b,!0x1);if(_0x4a6bb0['isTransformMutationFailure'](_0x2cac1d))throw _0x2cac1d['error'];_0x1c2ea5[_0x29d2ac(0x25b)](_0xf2cfa2,{..._0x315412,'ranges':_0x2cac1d['m2Prime']['params'][_0x29d2ac(0x30f)]});}queueMicrotask(()=>{const _0x1b850a=_0x29d2ac;this[_0x1b850a(0x273)][_0x1b850a(0x218)](_0x1c2ea5);});})));}['_onCursorUpdate'](_0x5895a1){const _0x5b36e4=_0x22d19e;var _0x38aa6b,_0x2f2eaa;const {memberID:_0x5200f1,selection:_0x26f9c5}=_0x5895a1[_0x5b36e4(0x136)],_0x2affd8=_0x1d4227(_0x26f9c5),_0x29f551=(_0x2f2eaa=(_0x38aa6b=this[_0x5b36e4(0x2b0)][_0x5b36e4(0xab)](this['unitID'],_0x5200f1))==null?void 0x0:_0x38aa6b['name'])!=null?_0x2f2eaa:'Unknown\x20user',_0x1bb3b1={'color':this[_0x5b36e4(0x2e0)]['assignAColorForMemberID'](_0x5200f1),'name':_0x29f551,'ranges':_0x2affd8},_0x54e1e6=this[_0x5b36e4(0x1a0)];_0x54e1e6['set'](_0x5200f1,_0x1bb3b1),this['_cursorInfo$'][_0x5b36e4(0x218)](_0x54e1e6);}[_0x22d19e(0x1fb)](_0x51a360){const _0x1feb13=_0x22d19e,{memberID:_0x1ab4b2}=_0x51a360[_0x1feb13(0x136)],_0x46635e=this[_0x1feb13(0x1a0)];_0x46635e['delete'](_0x1ab4b2),this['_cursorInfo$'][_0x1feb13(0x218)](_0x46635e);}[_0x22d19e(0x156)](){const _0x10d4c2=_0x22d19e;var _0x2bad50;if(this['_online']=!0x0,((_0x2bad50=this[_0x10d4c2(0x2de)]['getFocusedUnit']())==null?void 0x0:_0x2bad50[_0x10d4c2(0xb0)]())!==this[_0x10d4c2(0x2bb)])return;const _0x2e3d14=this[_0x10d4c2(0x36e)][_0x10d4c2(0x18e)](_0x5afd4e['DocSelectionManagerService'])[_0x10d4c2(0x276)]();Array[_0x10d4c2(0xca)](_0x2e3d14)&&_0x2e3d14[_0x10d4c2(0x29c)]>0x0&&this[_0x10d4c2(0x15a)](_0x2e3d14);}[_0x22d19e(0x250)](){const _0x330e1b=_0x22d19e;this[_0x330e1b(0x2ff)]=!0x1;}};_0x5d83b2=_0x4c204a([_0x758b0d(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c[_0x22d19e(0x2f2)])),_0x758b0d(0x3,_0x4a5a1c[_0x22d19e(0x35d)](_0x54052c)),_0x758b0d(0x4,_0x4a5a1c[_0x22d19e(0x35d)](_0x29cbea[_0x22d19e(0x1e0)])),_0x758b0d(0x5,_0x4a5a1c[_0x22d19e(0x35d)](_0x5e2c98)),_0x758b0d(0x6,_0x4a6bb0['ITransformService']),_0x758b0d(0x7,_0x4a5a1c[_0x22d19e(0x303)]),_0x758b0d(0x8,_0x4a5a1c['ICommandService'])],_0x5d83b2);var _0x3fd83d=Object[_0x22d19e(0x1e2)],_0x117c72=(_0x3e7396,_0x4f889d,_0x52d4dd,_0x3aa87a)=>{const _0x263dd2=_0x22d19e;for(var _0x4dc25a=_0x3aa87a>0x1?void 0x0:_0x3aa87a?_0x3fd83d(_0x4f889d,_0x52d4dd):_0x4f889d,_0x312453=_0x3e7396[_0x263dd2(0x29c)]-0x1,_0x267aa3;_0x312453>=0x0;_0x312453--)(_0x267aa3=_0x3e7396[_0x312453])&&(_0x4dc25a=_0x267aa3(_0x4dc25a)||_0x4dc25a);return _0x4dc25a;},_0x3dc9f7=(_0x5879e1,_0x4082e9)=>(_0x56860d,_0x34dd26)=>_0x4082e9(_0x56860d,_0x34dd26,_0x5879e1);const _0x57f142=0x12c,_0x6b3f66=0x64,_0x6ec09=()=>{let _0x51a0d6=[],_0x5f083f=!0x1;return _0x2772c1=>{_0x51a0d6['push'](_0x2772c1),_0x5f083f||(_0x5f083f=!0x0,setTimeout(()=>{_0x51a0d6['forEach'](_0x53bd59=>_0x53bd59()),_0x51a0d6=[],_0x5f083f=!0x1;}));};};let _0xd019b3=class extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(_0x1ef9a3,_0x237b5f,_0x47e80e,_0xfb1ad4,_0x220aaf,_0x53d56c,_0x449064,_0x2b9d95){const _0x52ddfb=_0x22d19e;super(),_0xa63e61(this,'_online',!0x1),_0xa63e61(this,_0x52ddfb(0x105),!0x1),_0xa63e61(this,'_cursorInfo$',new _0x8d94e0[(_0x52ddfb(0x90))](new Map())),_0xa63e61(this,_0x52ddfb(0x1b4),this[_0x52ddfb(0x273)][_0x52ddfb(0xb4)]()),_0xa63e61(this,_0x52ddfb(0x2cf),new _0x8d94e0[(_0x52ddfb(0x90))]([])),_0xa63e61(this,_0x52ddfb(0x103),this[_0x52ddfb(0x2cf)][_0x52ddfb(0x296)](_0x8d94e0[_0x52ddfb(0x25e)](_0x57f142))),_0xa63e61(this,_0x52ddfb(0x15a),_0x4a5a1c['debounce']((_0xf43d5,_0x4df24c)=>{const _0x3413d4=_0x52ddfb,_0x55923d={'eventID':_0x4a6bb0[_0x3413d4(0x1b2)][_0x3413d4(0x32f)],'data':{'unitID':this[_0x3413d4(0x2bb)],'memberID':this[_0x3413d4(0x25c)]['getMemberID'](),'selection':_0x419491[_0x3413d4(0x358)](_0xf43d5,_0x4df24c[_0x3413d4(0x2f0)])}};this[_0x3413d4(0x25c)][_0x3413d4(0x10e)](_0x55923d,this[_0x3413d4(0x2bb)]);},_0x6b3f66)),(this[_0x52ddfb(0x2bb)]=_0x1ef9a3,this[_0x52ddfb(0x25c)]=_0x237b5f,this[_0x52ddfb(0x36e)]=_0x47e80e,this[_0x52ddfb(0x2e0)]=_0xfb1ad4,this[_0x52ddfb(0x2b0)]=_0x220aaf,this[_0x52ddfb(0x2de)]=_0x53d56c,this[_0x52ddfb(0x2b1)]=_0x449064,this[_0x52ddfb(0x180)]=_0x2b9d95);}get['cursorInfo'](){const _0x2a9977=_0x22d19e;return this['_cursorInfo$'][_0x2a9977(0x1db)]();}get['roomMembers'](){const _0x355003=_0x22d19e;return this['_roomMembers$'][_0x355003(0x1db)]();}[_0x22d19e(0x210)](){const _0x714c78=_0x22d19e;super['dispose'](),this[_0x714c78(0x273)][_0x714c78(0x218)](new Map()),this[_0x714c78(0x273)][_0x714c78(0x1bf)](),this[_0x714c78(0x2cf)]['next']([]),this[_0x714c78(0x2cf)][_0x714c78(0x1bf)]();}['init'](){const _0x489218=_0x22d19e;this[_0x489218(0x105)]||(this[_0x489218(0x105)]=!0x0,this[_0x489218(0x25c)][_0x489218(0xda)]['pipe'](_0x8d94e0[_0x489218(0x9e)](this[_0x489218(0x148)]))['subscribe'](_0x363af4=>{const _0x27c6eb=_0x489218;_0x363af4===_0x29cbea['SessionStatus']['ONLINE']?this[_0x27c6eb(0x156)]():this['_toggleOffline']();}),this['_session'][_0x489218(0xa3)][_0x489218(0x296)](_0x8d94e0[_0x489218(0x9e)](this[_0x489218(0x148)]))['subscribe'](_0x103229=>{const _0x1b1504=_0x489218,_0x477f3e=_0x103229[_0x1b1504(0x1ce)];_0x477f3e===_0x4a6bb0[_0x1b1504(0x1b2)][_0x1b1504(0x32f)]&&this[_0x1b1504(0x2b4)](_0x103229),_0x477f3e===_0x4a6bb0[_0x1b1504(0x1b2)]['USERS_LEAVE']&&this[_0x1b1504(0x1fb)](_0x103229);}),this[_0x489218(0x23b)](),this[_0x489218(0xe5)](this[_0x489218(0x2b1)]['onCommandExecuted'](_0x133883=>{const _0x28f40c=_0x489218;if(this[_0x28f40c(0x2ff)]&&_0x133883['id']===_0x48c182[_0x28f40c(0x10a)]['id']&&_0x133883[_0x28f40c(0x22d)][_0x28f40c(0x369)]===this[_0x28f40c(0x2bb)]){const _0x48a9da=_0x133883['params'];this['_updateLocalCursor'](_0x48a9da[_0x28f40c(0x1df)],_0x48a9da[_0x28f40c(0x1fa)][0x0]);}})));}[_0x22d19e(0x2b4)](_0x3f8585){const _0x36108e=_0x22d19e;var _0x431eef,_0x411d9f;const {memberID:_0x4402e9,selection:_0x2c9f77}=_0x3f8585[_0x36108e(0x136)],{sheetName:_0x37a1a1,range:_0x341c04}=_0x419491[_0x36108e(0x157)](_0x2c9f77),_0x2c6f4b={'name':(_0x411d9f=(_0x431eef=this[_0x36108e(0x2b0)][_0x36108e(0xab)](this['unitID'],_0x4402e9))==null?void 0x0:_0x431eef[_0x36108e(0x2a6)])!=null?_0x411d9f:'Unknown\x20user','range':this[_0x36108e(0x341)](_0x37a1a1,_0x341c04),'sheetID':_0x37a1a1,'color':this[_0x36108e(0x2e0)]['assignAColorForMemberID'](_0x4402e9),'selection':_0x2c9f77},_0x10133a=this[_0x36108e(0x1a0)];_0x10133a[_0x36108e(0x25b)](_0x4402e9,_0x2c6f4b),this[_0x36108e(0x273)][_0x36108e(0x218)](_0x10133a);}[_0x22d19e(0x1fb)](_0x368942){const _0x18d6af=_0x22d19e,{memberID:_0x75a975}=_0x368942['data'],_0x345796=this['cursorInfo'];_0x345796['delete'](_0x75a975),this[_0x18d6af(0x273)][_0x18d6af(0x218)](_0x345796);}['_getMergeRange'](_0x34611d,_0xe6b6b9){const _0x43cec7=_0x22d19e;var _0x43079a,_0x369962;const _0x5d7f48=(_0x369962=(_0x43079a=this['_univerInstanceService'][_0x43cec7(0x20a)](this[_0x43cec7(0x2bb)]))==null?void 0x0:_0x43079a[_0x43cec7(0x281)](_0x34611d))==null?void 0x0:_0x369962[_0x43cec7(0x258)]();return(_0x5d7f48==null?void 0x0:_0x5d7f48['find'](_0x3a70f8=>_0x4a5a1c[_0x43cec7(0x2ca)][_0x43cec7(0x109)](_0x3a70f8,_0xe6b6b9)))||_0xe6b6b9;}[_0x22d19e(0x23b)](){const _0x5e2102=_0x22d19e,_0x2b4899=new _0x4a5a1c[(_0x5e2102(0x93))](),_0x14a752=_0x6ec09(),_0x1c3141=()=>{const _0x44fd84=_0x5e2102;_0x2b4899[_0x44fd84(0x210)]();const _0x228112=(_0x4ce6de,_0x224e37,_0x1029a4,_0x127bf0)=>{const _0x55d8c1=_0x44fd84;let _0x4a5942=[];switch(_0x4ce6de['id']){case _0x48c182['EffectRefRangId'][_0x55d8c1(0x2a1)]:{_0x4a5942=_0x48c182['handleDeleteRangeMoveLeft'](_0x4ce6de,_0x127bf0);break;}case _0x48c182[_0x55d8c1(0x175)]['DeleteRangeMoveUpCommandId']:{_0x4a5942=_0x48c182[_0x55d8c1(0x117)](_0x4ce6de,_0x127bf0);break;}case _0x48c182[_0x55d8c1(0x175)][_0x55d8c1(0x294)]:{_0x4a5942=_0x48c182[_0x55d8c1(0x201)](_0x4ce6de,_0x127bf0);break;}case _0x48c182[_0x55d8c1(0x175)]['InsertRangeMoveDownCommandId']:{_0x4a5942=_0x48c182[_0x55d8c1(0x128)](_0x4ce6de,_0x127bf0);break;}case _0x48c182[_0x55d8c1(0x175)][_0x55d8c1(0x17f)]:{_0x4a5942=_0x48c182[_0x55d8c1(0x2d5)](_0x4ce6de,_0x127bf0);break;}case _0x48c182[_0x55d8c1(0x175)][_0x55d8c1(0x350)]:{_0x4a5942=_0x48c182[_0x55d8c1(0x1d3)](_0x4ce6de,_0x127bf0);break;}case _0x48c182[_0x55d8c1(0x175)][_0x55d8c1(0x246)]:{_0x4a5942=_0x48c182[_0x55d8c1(0x15e)](_0x4ce6de,_0x127bf0);break;}case _0x48c182[_0x55d8c1(0x175)][_0x55d8c1(0x10c)]:{_0x4a5942=_0x48c182[_0x55d8c1(0x2bf)](_0x4ce6de,_0x127bf0);break;}case _0x48c182['EffectRefRangId']['RemoveRowCommandId']:{_0x4a5942=_0x48c182['handleIRemoveRow'](_0x4ce6de,_0x127bf0);break;}}const _0x496dfd=_0x48c182['runRefRangeMutations'](_0x4a5942,_0x127bf0),_0x260f33=this['cursorInfo']['get'](_0x224e37);if(_0x260f33&&_0x496dfd){const _0x128656={..._0x260f33,'range':_0x496dfd};this['cursorInfo'][_0x55d8c1(0x25b)](_0x224e37,_0x128656),_0x14a752(()=>{const _0x4a48dc=_0x55d8c1,_0x34768e=this[_0x4a48dc(0x180)][_0x4a48dc(0x106)](_0x496dfd,_0x17deac=>(_0x34768e[_0x4a48dc(0x210)](),_0x228112(_0x17deac,_0x224e37,_0x1029a4,_0x496dfd)));_0x2b4899['add'](_0x34768e);});}return{'redos':[],'undos':[]};};this[_0x44fd84(0x1a0)][_0x44fd84(0x316)]((_0x1c5a1c,_0x198a3f)=>{const _0x531827=_0x44fd84,{range:_0x13e629,sheetID:_0x55e11b}=_0x1c5a1c,_0x197fbd=this[_0x531827(0x180)][_0x531827(0x106)](_0x13e629,_0x56ba51=>(_0x197fbd[_0x531827(0x210)](),_0x228112(_0x56ba51,_0x198a3f,_0x55e11b,_0x13e629)));_0x2b4899[_0x531827(0x23a)](_0x197fbd);});};this['disposeWithMe'](_0x4a5a1c[_0x5e2102(0x28a)](this[_0x5e2102(0x273)][_0x5e2102(0x35e)](()=>{_0x1c3141();})));}[_0x22d19e(0x156)](){const _0x5e192e=_0x22d19e;var _0x3a4b46,_0x11ec8e;if(this[_0x5e192e(0x2ff)]=!0x0,((_0x3a4b46=this[_0x5e192e(0x2de)][_0x5e192e(0x36c)]())==null?void 0x0:_0x3a4b46[_0x5e192e(0xb0)]())!==this['unitID'])return;const _0x4e8271=(_0x11ec8e=this[_0x5e192e(0x36e)][_0x5e192e(0x18e)](_0x48c182[_0x5e192e(0x2dc)])[_0x5e192e(0x2ac)]())==null?void 0x0:_0x11ec8e[0x0],_0x3cf02e=this['_univerInstanceService']['getCurrentUnitForType'](_0x4a5a1c[_0x5e192e(0x2b9)][_0x5e192e(0x1cf)])['getActiveSheet']();_0x4e8271&&_0x3cf02e&&this['_updateLocalCursor'](_0x3cf02e[_0x5e192e(0x2b7)](),_0x4e8271);}['_toggleOffline'](){this['_online']=!0x1;}};_0xd019b3=_0x117c72([_0x3dc9f7(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c[_0x22d19e(0x2f2)])),_0x3dc9f7(0x3,_0x4a5a1c[_0x22d19e(0x35d)](_0x54052c)),_0x3dc9f7(0x4,_0x4a5a1c[_0x22d19e(0x35d)](_0x29cbea[_0x22d19e(0x1e0)])),_0x3dc9f7(0x5,_0x4a5a1c[_0x22d19e(0x303)]),_0x3dc9f7(0x6,_0x4a5a1c[_0x22d19e(0x263)]),_0x3dc9f7(0x7,_0x4a5a1c[_0x22d19e(0x35d)](_0x48c182[_0x22d19e(0x28f)]))],_0xd019b3);var _0x5b765c=Object[_0x22d19e(0x1e2)],_0x1ec8f3=(_0x59d57e,_0x3c478e,_0x1a96e5,_0x457e59)=>{const _0x191fe8=_0x22d19e;for(var _0x1b37dd=_0x457e59>0x1?void 0x0:_0x457e59?_0x5b765c(_0x3c478e,_0x1a96e5):_0x3c478e,_0x586945=_0x59d57e[_0x191fe8(0x29c)]-0x1,_0x421264;_0x586945>=0x0;_0x586945--)(_0x421264=_0x59d57e[_0x586945])&&(_0x1b37dd=_0x421264(_0x1b37dd)||_0x1b37dd);return _0x1b37dd;},_0x18a1f3=(_0x1a705e,_0x567169)=>(_0x2f3a03,_0x213894)=>_0x567169(_0x2f3a03,_0x213894,_0x1a705e);let _0x8689c=class extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(_0x31edf2,_0x49d082,_0x582c51){const _0xab9d06=_0x22d19e;super(),_0xa63e61(this,_0xab9d06(0x2ea),new Map()),_0xa63e61(this,'_entityInit$',new _0x8d94e0[(_0xab9d06(0x181))]()),(this[_0xab9d06(0x2de)]=_0x31edf2,this[_0xab9d06(0x36e)]=_0x49d082,this[_0xab9d06(0x1d4)]=_0x582c51,this[_0xab9d06(0x105)]());}[_0x22d19e(0x210)](){const _0x42d4cc=_0x22d19e;super[_0x42d4cc(0x210)](),this['_entityInit$'][_0x42d4cc(0x1bf)](),this[_0x42d4cc(0x2ea)][_0x42d4cc(0x316)](_0x2fa1b6=>_0x2fa1b6[_0x42d4cc(0x210)]());}[_0x22d19e(0xb8)](_0x5111af){const _0x2a74d2=_0x22d19e;return this['_entities'][_0x2a74d2(0x241)](_0x5111af)?this['_entities']['get'](_0x5111af)['cursorInfo$']:this['_entityInit$']['pipe'](_0x8d94e0['filter'](_0x18c20b=>_0x18c20b['unitID']===_0x5111af),_0x8d94e0[_0x2a74d2(0x1d5)](_0x288c16=>_0x288c16[_0x2a74d2(0x1b4)]));}[_0x22d19e(0x105)](){const _0x550f57=_0x22d19e;this['_univerInstanceService'][_0x550f57(0x209)](_0x4a5a1c['UniverInstanceType'][_0x550f57(0x1cf)])[_0x550f57(0x296)](_0x8d94e0[_0x550f57(0x9e)](this[_0x550f57(0x148)]))[_0x550f57(0x35e)](async _0x1c31d8=>{const _0x22cdfd=_0x550f57,_0x138e08=_0x1c31d8[_0x22cdfd(0xb0)](),_0x2fb11f=await this['_startSheetCollabCursor'](_0x138e08);this[_0x22cdfd(0xc3)][_0x22cdfd(0x218)](_0x2fb11f),this['_entities']['set'](_0x138e08,_0x2fb11f);}),this[_0x550f57(0x2de)][_0x550f57(0x209)](_0x4a5a1c['UniverInstanceType'][_0x550f57(0x214)])[_0x550f57(0x296)](_0x8d94e0[_0x550f57(0x9e)](this['dispose$']))[_0x550f57(0x296)](_0x8d94e0[_0x550f57(0x135)](_0x37060d=>!_0x37060d[_0x550f57(0xb0)]()['startsWith']('__')))[_0x550f57(0x35e)](async _0x44f11b=>{const _0x5cd1b5=_0x550f57,_0xe90904=_0x44f11b[_0x5cd1b5(0xb0)](),_0x4da763=await this[_0x5cd1b5(0x211)](_0xe90904);this['_entityInit$']['next'](_0x4da763),this[_0x5cd1b5(0x2ea)][_0x5cd1b5(0x25b)](_0xe90904,_0x4da763);}),_0x8d94e0['merge'](this['_univerInstanceService'][_0x550f57(0x10f)](_0x4a5a1c['UniverInstanceType'][_0x550f57(0x214)]),this[_0x550f57(0x2de)][_0x550f57(0x10f)](_0x4a5a1c[_0x550f57(0x2b9)][_0x550f57(0x1cf)]))[_0x550f57(0x296)](_0x8d94e0[_0x550f57(0x9e)](this[_0x550f57(0x148)]))[_0x550f57(0x35e)](_0x3a3f77=>{const _0x2ea3df=_0x550f57,_0x433317=_0x3a3f77['getUnitId'](),_0x162fe9=this['_entities'][_0x2ea3df(0x18e)](_0x433317);_0x162fe9&&(_0x162fe9[_0x2ea3df(0x210)](),this['_entities']['delete'](_0x433317));});}async['_startSheetCollabCursor'](_0x3353d5){const _0x555608=_0x22d19e,_0x2e7ac3=await this[_0x555608(0x1d4)][_0x555608(0x1d2)](_0x3353d5),_0x325149=this[_0x555608(0x36e)][_0x555608(0x100)](_0xd019b3,_0x3353d5,_0x2e7ac3);return _0x325149[_0x555608(0x345)](),_0x325149;}async['_startDocCollabCursor'](_0xf2f7b){const _0x1303a9=_0x22d19e,_0x2ed682=await this[_0x1303a9(0x1d4)][_0x1303a9(0x1d2)](_0xf2f7b),_0xac6878=this['_injector'][_0x1303a9(0x100)](_0x5d83b2,_0xf2f7b,_0x2ed682);return _0xac6878['init'](),_0xac6878;}};_0x8689c=_0x1ec8f3([_0x18a1f3(0x0,_0x4a5a1c[_0x22d19e(0x303)]),_0x18a1f3(0x1,_0x4a5a1c['Inject'](_0x4a5a1c[_0x22d19e(0x2f2)])),_0x18a1f3(0x2,_0x4a5a1c['Inject'](_0x29cbea[_0x22d19e(0x32b)]))],_0x8689c);const _0x3f556f=0x14,_0x4f017f=0xc8,_0x51b87a=0x4,_0x2d721b=0x5;function _0x1ed5be(_0x335bda,_0x2777a5){const _0x6f0338=_0x22d19e;let {radius:_0x151c66,width:_0x4f50eb,height:_0x127916}=_0x2777a5;_0x151c66=_0x151c66!=null?_0x151c66:0x0,_0x4f50eb=_0x4f50eb!=null?_0x4f50eb:0x1e,_0x127916=_0x127916!=null?_0x127916:0x1e;let _0x34ebdf=0x0,_0x21c8e8=0x0,_0x304ab6=0x0;_0x34ebdf=_0x21c8e8=_0x304ab6=Math[_0x6f0338(0x26b)](_0x151c66,_0x4f50eb/0x2,_0x127916/0x2),_0x335bda[_0x6f0338(0xf4)](),_0x335bda[_0x6f0338(0x257)](_0x34ebdf,0x0),_0x335bda['lineTo'](_0x4f50eb-_0x21c8e8,0x0),_0x335bda[_0x6f0338(0x227)](_0x4f50eb-_0x21c8e8,_0x21c8e8,_0x21c8e8,Math['PI']*0x3/0x2,0x0,!0x1),_0x335bda[_0x6f0338(0x2a2)](_0x4f50eb,_0x127916-_0x304ab6),_0x335bda[_0x6f0338(0x227)](_0x4f50eb-_0x304ab6,_0x127916-_0x304ab6,_0x304ab6,0x0,Math['PI']/0x2,!0x1),_0x335bda['lineTo'](0x0,_0x127916),_0x335bda['lineTo'](0x0,_0x34ebdf),_0x335bda[_0x6f0338(0x227)](_0x34ebdf,_0x34ebdf,_0x34ebdf,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x335bda['closePath'](),_0x2777a5[_0x6f0338(0x2a8)]&&(_0x335bda['save'](),_0x335bda[_0x6f0338(0x121)]=_0x2777a5[_0x6f0338(0x2a8)],_0x2777a5[_0x6f0338(0x1dd)]==='evenodd'?_0x335bda[_0x6f0338(0x2a8)](_0x6f0338(0x2b5)):_0x335bda[_0x6f0338(0x2a8)](),_0x335bda['restore']());}class _0x132457 extends _0x5d2f68[_0x22d19e(0x36a)]{constructor(_0xc46710,_0x574458){const _0xf2eb44=_0x22d19e;super(_0xc46710,_0x574458),_0xa63e61(this,_0xf2eb44(0x174)),_0xa63e61(this,_0xf2eb44(0xeb)),(this['color']=_0x574458==null?void 0x0:_0x574458[_0xf2eb44(0x174)],this[_0xf2eb44(0xeb)]=_0x574458==null?void 0x0:_0x574458[_0xf2eb44(0xeb)]);}static[_0x22d19e(0xe2)](_0x1092cd,_0x27d2bc){const _0x12c3c2=_0x22d19e,{text:_0x43b5af,color:_0x4accbb}=_0x27d2bc;_0x1092cd['save'](),_0x1092cd['font']=_0x12c3c2(0x248);const _0x23139b=_0x1092cd[_0x12c3c2(0x191)](_0x43b5af)[_0x12c3c2(0xcd)],_0x46e3dd=Math[_0x12c3c2(0x26b)](_0x23139b+0x2*_0x51b87a,_0x4f017f);_0x1ed5be(_0x1092cd,{'height':_0x3f556f,'radius':0x4,'width':_0x46e3dd,'fill':_0x4accbb}),_0x1092cd['fillStyle']='#FFF';const _0x4f4e0d=_0x51b87a,_0x5464da=_0x3f556f-_0x2d721b,_0x371015=_0x4f017f-0x2*_0x51b87a;if(_0x23139b>_0x371015){let _0x4d7a8b='',_0x14a22a=0x0;for(const _0x521d69 of _0x43b5af){const _0x2a96e6=_0x1092cd[_0x12c3c2(0x191)](_0x521d69)[_0x12c3c2(0xcd)];if(_0x14a22a+_0x2a96e6<=_0x371015-_0x1092cd['measureText']('...')[_0x12c3c2(0xcd)])_0x4d7a8b+=_0x521d69,_0x14a22a+=_0x2a96e6;else{_0x4d7a8b+=_0x12c3c2(0x320);break;}}_0x1092cd[_0x12c3c2(0x2e3)](_0x4d7a8b,_0x4f4e0d,_0x5464da);}else _0x1092cd[_0x12c3c2(0x2e3)](_0x43b5af,_0x4f4e0d,_0x5464da);_0x1092cd[_0x12c3c2(0x31d)]();}[_0x22d19e(0x298)](_0x2b824a){const _0x1db956=_0x22d19e;_0x132457[_0x1db956(0xe2)](_0x2b824a,this);}}const _0x21ac9c='collab-text-anchor-',_0x449f34='collab-text-range-',_0x5726e9='collab-rect-range-',_0x35fbcb=0x6,_0x299333=1.5,_0x4c03e8=0x4,_0x741edc=1.5,_0x41b58e='rgba(255,\x20255,\x20255,\x200.01)';class _0x36a29c{constructor(_0x265d4f,_0x25aa93,_0x2652da,_0x5979db){const _0x2a3dba=_0x22d19e;_0xa63e61(this,_0x2a3dba(0x9a),[]),_0xa63e61(this,_0x2a3dba(0x284),null),_0xa63e61(this,_0x2a3dba(0xe0),null),_0xa63e61(this,_0x2a3dba(0x11f),null),_0xa63e61(this,'_hideTimer',null),_0xa63e61(this,_0x2a3dba(0x104),null),(this[_0x2a3dba(0x2ba)]=_0x265d4f,this[_0x2a3dba(0x225)]=_0x25aa93,this['_docSkeleton']=_0x2652da,this[_0x2a3dba(0x24f)]=_0x5979db,this['_render']());}set[_0x22d19e(0x171)](_0x403153){const _0x5a59ad=_0x22d19e;_0x403153?(this[_0x5a59ad(0x11f)]&&this[_0x5a59ad(0x11f)][_0x5a59ad(0x21e)](),this[_0x5a59ad(0xe0)]&&this['_textBubble'][_0x5a59ad(0x1ba)]()):(this[_0x5a59ad(0x11f)]&&this['_anchorDot'][_0x5a59ad(0x1ba)](),this['_textBubble']&&this[_0x5a59ad(0xe0)][_0x5a59ad(0x21e)]());}[_0x22d19e(0x210)](){const _0x6a6379=_0x22d19e;for(const _0x951cb9 of this['_shapes'])_0x951cb9[_0x6a6379(0x210)]();this[_0x6a6379(0xe0)]&&this[_0x6a6379(0xe0)][_0x6a6379(0x210)](),this[_0x6a6379(0x11f)]&&this['_anchorDot'][_0x6a6379(0x210)](),this[_0x6a6379(0x284)]&&this[_0x6a6379(0x284)][_0x6a6379(0x210)](),this[_0x6a6379(0x104)]&&this[_0x6a6379(0x104)]();}[_0x22d19e(0x285)](){const _0x22cdd8=_0x22d19e;var _0x41f901;const {_docSkeleton:_0x19013c,_document:_0x2cd9a1}=this,{color:_0x345a9a,name:_0x590c5c,ranges:_0x7a3c26}=this['_cursor'],_0x5e1351=_0x2cd9a1['getOffsetConfig'](),{docsLeft:_0x1c2933,docsTop:_0x54a833}=_0x5e1351,_0xd6ba62=new _0x22126e['NodePositionConvertToCursor'](_0x5e1351,_0x19013c);for(const {startOffset:_0x185d8e,endOffset:_0x32b07f,rangeType:_0x56f956,segmentId:_0x1135db,segmentPage:_0xa2ab01,collapsed:_0x4972d0,isActive:_0x5890be}of _0x7a3c26){const _0x33ad06=_0x19013c[_0x22cdd8(0xb3)](_0x185d8e,!0x0,_0x1135db,_0xa2ab01);let _0x46f309=_0x19013c[_0x22cdd8(0xb3)](_0x32b07f,!0x0,_0x1135db,_0xa2ab01);if(_0x46f309==null&&(_0x46f309=_0x19013c[_0x22cdd8(0xb3)](_0x32b07f-0x1,!0x1,_0x1135db,_0xa2ab01)),_0x5890be){const {contentBoxPointGroup:_0xcbe456}=_0xd6ba62['getRangePointData'](_0x46f309,_0x46f309);if(_0xcbe456[_0x22cdd8(0x29c)]===0x0)continue;this[_0x22cdd8(0x1ec)](_0x345a9a,_0xcbe456,_0x1c2933,_0x54a833,_0x590c5c),this['_eventUnsubscribe']=this[_0x22cdd8(0x1a8)]();}if(_0x33ad06&&_0x46f309){if(_0x56f956===_0x4a5a1c['DOC_RANGE_TYPE'][_0x22cdd8(0x187)]){const _0x5addac=new _0x22126e[(_0x22cdd8(0x278))](_0x5e1351,_0x19013c),{pointGroup:_0x2dcb9d}=(_0x41f901=_0x5addac[_0x22cdd8(0x161)](_0x33ad06,_0x46f309))!=null?_0x41f901:{};if(_0x2dcb9d==null||_0x2dcb9d[_0x22cdd8(0x29c)]===0x0)continue;this[_0x22cdd8(0x1b6)](_0x345a9a,_0x2dcb9d,_0x1c2933,_0x54a833);}else{if(!_0x4972d0){const {borderBoxPointGroup:_0x8f8e54}=_0xd6ba62[_0x22cdd8(0x161)](_0x33ad06,_0x46f309);if(_0x8f8e54[_0x22cdd8(0x29c)]===0x0)continue;this[_0x22cdd8(0x29f)](_0x345a9a,_0x8f8e54,_0x1c2933,_0x54a833);}}}}}[_0x22d19e(0x1ec)](_0x16bd38,_0x438e3a,_0x3f3060,_0x1d6237,_0x9dc24f){const _0x3ae99a=_0x22d19e,_0x13becf=this[_0x3ae99a(0x11d)](_0x438e3a),{left:_0xb68051,top:_0x170345,height:_0x5d7ec0}=_0x13becf,_0x5bb358=this['_getScale'](),_0xf659ce=_0x741edc/_0x5bb358,_0x57525b=new _0x5d2f68['Rect'](_0x21ac9c+_0x4a5a1c[_0x3ae99a(0x151)](_0x35fbcb),{'left':_0xb68051+_0x3f3060-_0xf659ce,'top':_0x170345+_0x1d6237,'height':_0x5d7ec0,'width':_0x299333,'fill':_0x16bd38||_0x5d2f68[_0x3ae99a(0xe6)](_0x4a5a1c[_0x3ae99a(0x323)][_0x3ae99a(0x192)],0x0),'strokeWidth':_0xf659ce,'stroke':_0x41b58e,'evented':!0x0});this[_0x3ae99a(0x284)]=_0x57525b,this[_0x3ae99a(0x225)]['addObject'](_0x57525b,_0x22126e[_0x3ae99a(0x2e5)]);const _0x5d9f82=new _0x5d2f68[(_0x3ae99a(0x2e2))](_0x21ac9c+_0x4a5a1c[_0x3ae99a(0x151)](_0x35fbcb),{'left':_0xb68051+_0x3f3060-_0xf659ce,'top':_0x170345+_0x1d6237-_0x4c03e8/0x2,'height':_0x4c03e8,'width':_0x4c03e8,'fill':_0x16bd38||_0x5d2f68[_0x3ae99a(0xe6)](_0x4a5a1c[_0x3ae99a(0x323)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x16bd38||_0x5d2f68[_0x3ae99a(0xe6)](_0x4a5a1c[_0x3ae99a(0x323)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5d9f82,this[_0x3ae99a(0x225)][_0x3ae99a(0x22a)](_0x5d9f82,_0x22126e[_0x3ae99a(0x2e5)]);const _0xee7aae=new _0x132457(_0x21ac9c+_0x4a5a1c['generateRandomId'](_0x35fbcb),{'left':_0xb68051+_0x3f3060-_0xf659ce,'top':_0x170345+_0x1d6237-_0x3f556f,'text':_0x9dc24f,'color':_0x16bd38});this[_0x3ae99a(0xe0)]=_0xee7aae,this[_0x3ae99a(0x225)][_0x3ae99a(0x22a)](_0xee7aae,_0x22126e[_0x3ae99a(0x2e5)]),this[_0x3ae99a(0x171)]=!0x1;}[_0x22d19e(0x1a8)](){const _0x49ae3f=_0x22d19e,_0x2c2749=this[_0x49ae3f(0x284)][_0x49ae3f(0x126)][_0x49ae3f(0x11b)](()=>{this['_hover']=!0x0;}),_0x197b0d=this[_0x49ae3f(0x284)]['onPointerLeave$'][_0x49ae3f(0x11b)](()=>{const _0x17c82f=_0x49ae3f;this[_0x17c82f(0x27a)]&&clearTimeout(this[_0x17c82f(0x27a)]),this[_0x17c82f(0x27a)]=setTimeout(()=>{const _0x3f534a=_0x17c82f;this[_0x3f534a(0x171)]=!0x1;},0x7d0);});return()=>{const _0x8a982f=_0x49ae3f;_0x2c2749[_0x8a982f(0x275)](),_0x197b0d[_0x8a982f(0x275)]();};}[_0x22d19e(0x29f)](_0x197773,_0x2dcf01,_0x32629a,_0x2a657e){const _0x5779a2=_0x22d19e,_0x26bc99=new _0x4a5a1c[(_0x5779a2(0x2f7))](_0x197773)[_0x5779a2(0x2e7)](0.2)[_0x5779a2(0xf7)](),_0x42fe1d=new _0x5d2f68[(_0x5779a2(0x224))](_0x449f34+_0x4a5a1c['generateRandomId'](_0x35fbcb),{'pointsGroup':_0x2dcf01,'fill':_0x26bc99||_0x5d2f68[_0x5779a2(0xe6)](_0x4a5a1c['COLORS'][_0x5779a2(0x192)],0.2),'left':_0x32629a,'top':_0x2a657e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5779a2(0x9a)][_0x5779a2(0x256)](_0x42fe1d),this[_0x5779a2(0x225)][_0x5779a2(0x22a)](_0x42fe1d,_0x22126e[_0x5779a2(0x2e5)]);}[_0x22d19e(0x1b6)](_0x3aee8a,_0x5d7e61,_0x15f457,_0x153f1f){const _0x3e3bce=_0x22d19e,_0x4cf923=new _0x4a5a1c[(_0x3e3bce(0x2f7))](_0x3aee8a)['setAlpha'](0.2)[_0x3e3bce(0xf7)](),_0x44d672=new _0x5d2f68[(_0x3e3bce(0x224))](_0x5726e9+_0x4a5a1c[_0x3e3bce(0x151)](_0x35fbcb),{'pointsGroup':_0x5d7e61,'fill':_0x4cf923||_0x5d2f68[_0x3e3bce(0xe6)](_0x4a5a1c[_0x3e3bce(0x323)][_0x3e3bce(0x192)],0.2),'left':_0x15f457,'top':_0x153f1f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e3bce(0x9a)][_0x3e3bce(0x256)](_0x44d672),this[_0x3e3bce(0x225)][_0x3e3bce(0x22a)](_0x44d672,_0x22126e[_0x3e3bce(0x2e5)]);}[_0x22d19e(0x11d)](_0x3982bb){const _0x4a9cb5=_0x3982bb[0x0],_0x442b86=_0x4a9cb5[0x0],_0x16082f=_0x4a9cb5[0x2],{x:_0x52f330,y:_0x19c558}=_0x442b86,{x:_0x519d10,y:_0x584da6}=_0x16082f;return{'left':_0x52f330,'top':_0x19c558,'width':_0x519d10-_0x52f330,'height':_0x584da6-_0x19c558};}[_0x22d19e(0x34e)](){const _0x43308c=_0x22d19e,{scaleX:_0x2f726a,scaleY:_0x3e9acf}=this[_0x43308c(0x225)][_0x43308c(0x357)]();return Math[_0x43308c(0xdd)](_0x2f726a,_0x3e9acf);}}var _0x45ab62=Object[_0x22d19e(0x1e2)],_0x551c44=(_0x5db718,_0x1b0572,_0x1cb2a8,_0x3beea3)=>{const _0x1e6927=_0x22d19e;for(var _0x50bfac=_0x3beea3>0x1?void 0x0:_0x3beea3?_0x45ab62(_0x1b0572,_0x1cb2a8):_0x1b0572,_0x47a980=_0x5db718[_0x1e6927(0x29c)]-0x1,_0x15cff2;_0x47a980>=0x0;_0x47a980--)(_0x15cff2=_0x5db718[_0x47a980])&&(_0x50bfac=_0x15cff2(_0x50bfac)||_0x50bfac);return _0x50bfac;},_0x306641=(_0x468980,_0x5e870d)=>(_0x242460,_0xb5c329)=>_0x5e870d(_0x242460,_0xb5c329,_0x468980);let _0x238ac3=class extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(_0x350d86,_0x2dd051,_0x2787f7,_0x17752e,_0x58a871){const _0x2e66f4=_0x22d19e;super(),_0xa63e61(this,_0x2e66f4(0x177),[]),_0xa63e61(this,'_cursors',[]),(this[_0x2e66f4(0x1af)]=_0x350d86,this[_0x2e66f4(0x1b1)]=_0x2dd051,this[_0x2e66f4(0x96)]=_0x2787f7,this[_0x2e66f4(0x2b1)]=_0x17752e,this['_themeService']=_0x58a871,this[_0x2e66f4(0x105)]());}['_init'](){const _0x5b7bc8=_0x22d19e,_0xdf54a2=this[_0x5b7bc8(0x1af)][_0x5b7bc8(0x369)],_0x3b8413=this[_0x5b7bc8(0x1b1)];this[_0x5b7bc8(0xe5)](_0x8d94e0[_0x5b7bc8(0x144)]([this[_0x5b7bc8(0x96)][_0x5b7bc8(0xb8)](_0xdf54a2),this[_0x5b7bc8(0x2e4)]['currentTheme$']])[_0x5b7bc8(0x296)](_0x5d0515[_0x5b7bc8(0x112)](([_0x86bcb8,_0x1b55d0])=>({'skeleton':_0x3b8413[_0x5b7bc8(0x329)](),'cursors':[..._0x86bcb8['values']()][_0x5b7bc8(0x212)](_0x33bdfe=>({..._0x33bdfe,'color':this[_0x5b7bc8(0x2e4)][_0x5b7bc8(0x21a)](_0x33bdfe[_0x5b7bc8(0x174)])}))})))[_0x5b7bc8(0x35e)](_0x2de330=>{const _0x401c18=_0x5b7bc8;if(this[_0x401c18(0x362)](),_0x2de330){const {skeleton:_0x1cfc7d,cursors:_0x3dd789}=_0x2de330;this['_updateCollabCursors'](_0x1cfc7d,_0x3dd789);}})),this['_initResize'](),this[_0x5b7bc8(0x1be)]();}[_0x22d19e(0x280)](_0x250719,_0x1dd58f){const _0x1a2829=_0x22d19e,{scene:_0x2728ef,mainComponent:_0x4e2da9}=this[_0x1a2829(0x1af)],_0x1fa1cf=_0x1dd58f['map'](_0x5ab4cd=>new _0x36a29c(_0x5ab4cd,_0x2728ef,_0x250719,_0x4e2da9));this[_0x1a2829(0x177)]=_0x1fa1cf,this['_cursors']=_0x1dd58f;}['_refreshCollabCursors'](){const _0x56426a=_0x22d19e;this[_0x56426a(0x362)]();const {scene:_0x214c20,mainComponent:_0x2d7fbe}=this[_0x56426a(0x1af)],_0x1b7442=this['_docSkeletonManagerService']['getSkeleton'](),_0x34e562=this[_0x56426a(0xee)]['map'](_0x84d40=>new _0x36a29c(_0x84d40,_0x214c20,_0x1b7442,_0x2d7fbe));this[_0x56426a(0x177)]=_0x34e562;}['_removeCollabCursors'](){const _0x4ca857=_0x22d19e;this[_0x4ca857(0x177)][_0x4ca857(0x316)](_0x52a65f=>_0x52a65f[_0x4ca857(0x210)]()),this[_0x4ca857(0x177)]=[];}[_0x22d19e(0x1be)](){const _0x4a353c=_0x22d19e,_0x2e8ef1=[_0x22126e[_0x4a353c(0x20d)]['id']];this['disposeWithMe'](this[_0x4a353c(0x2b1)][_0x4a353c(0x1f9)](_0x3cd6f0=>{const _0x2e5e25=_0x4a353c;_0x2e8ef1['includes'](_0x3cd6f0['id'])&&_0x3cd6f0[_0x2e5e25(0x22d)]['unitId']===this[_0x2e5e25(0x1af)]['unitId']&&this[_0x2e5e25(0x119)]();}));}[_0x22d19e(0x240)](){const _0x3b074b=_0x22d19e;this[_0x3b074b(0xe5)](_0x4a5a1c[_0x3b074b(0x178)](this[_0x3b074b(0x1af)]['engine'][_0x3b074b(0x1c1)])[_0x3b074b(0x296)](_0x5d0515['filter'](_0x51321a=>_0x51321a[_0x3b074b(0x169)]===_0x5d2f68[_0x3b074b(0x11e)][_0x3b074b(0x342)]),_0x5d0515['throttleTime'](0x10))[_0x3b074b(0x35e)](()=>{const _0x20d804=_0x3b074b;this[_0x20d804(0x119)]();}));}};_0x238ac3=_0x551c44([_0x306641(0x1,_0x4a5a1c[_0x22d19e(0x35d)](_0x5afd4e[_0x22d19e(0xb2)])),_0x306641(0x2,_0x4a5a1c['Inject'](_0x8689c)),_0x306641(0x3,_0x4a5a1c[_0x22d19e(0x263)]),_0x306641(0x4,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c['ThemeService']))],_0x238ac3);const _0x37ebd9=0x1,_0x4b9220=1.5;class _0x3fc4ac extends _0x5d2f68[_0x22d19e(0x36a)]{constructor(_0x16f6f4,_0x20c375){const _0x1e16d0=_0x22d19e;super(_0x16f6f4,_0x20c375),_0xa63e61(this,_0x1e16d0(0x334)),_0xa63e61(this,'_hovered',!0x1),_0xa63e61(this,_0x1e16d0(0x243)),_0xa63e61(this,_0x1e16d0(0x138),''),_0xa63e61(this,_0x1e16d0(0x12e),_0x1e16d0(0x2f1)),_0xa63e61(this,_0x1e16d0(0x2fc)),(_0x20c375&&this[_0x1e16d0(0x19d)](_0x20c375),this[_0x1e16d0(0x126)][_0x1e16d0(0x11b)](()=>this[_0x1e16d0(0x19d)]({'hovered':!0x0})),this[_0x1e16d0(0xea)][_0x1e16d0(0x11b)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x22d19e(0x19d)](_0x40f190){const _0x3a3894=_0x22d19e;var _0x7c8d7e,_0x42f7ee,_0x5ab7aa,_0x1ba17a,_0x4fa998,_0x2c8534;this[_0x3a3894(0x334)]=(_0x7c8d7e=_0x40f190[_0x3a3894(0x174)])!=null?_0x7c8d7e:this[_0x3a3894(0x334)],this['_hovered']=(_0x42f7ee=_0x40f190[_0x3a3894(0x91)])!=null?_0x42f7ee:this[_0x3a3894(0x12b)],this['_range']=(_0x5ab7aa=_0x40f190[_0x3a3894(0x2f0)])!=null?_0x5ab7aa:this[_0x3a3894(0x243)],this[_0x3a3894(0x138)]=(_0x1ba17a=_0x40f190[_0x3a3894(0x2a6)])!=null?_0x1ba17a:this[_0x3a3894(0x138)],this[_0x3a3894(0x12e)]=(_0x4fa998=_0x40f190['labelPosition'])!=null?_0x4fa998:this[_0x3a3894(0x12e)],this[_0x3a3894(0x2fc)]=(_0x2c8534=_0x40f190[_0x3a3894(0x1b8)])!=null?_0x2c8534:this['_backgroundColor'],this['transformByState']({'width':_0x40f190[_0x3a3894(0xcd)],'height':_0x40f190[_0x3a3894(0x290)]});}[_0x22d19e(0x35b)](_0x481e27){const _0x1218da=_0x22d19e,{row:_0x5d8d41,column:_0x3d5f10}=_0x481e27;if(_0x5d8d41>=this['_range'][_0x1218da(0x2f3)]&&_0x5d8d41<=this[_0x1218da(0x243)]['endRow']&&_0x3d5f10>=this[_0x1218da(0x243)][_0x1218da(0x152)]&&_0x3d5f10<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x1218da(0x19d)]({'hovered':!0x1});}[_0x22d19e(0x2af)](_0x1ecbad){return!0x1;}[_0x22d19e(0x298)](_0x3e7d5e){const _0x1398af=_0x22d19e;_0x5d2f68['Rect']['drawWith'](_0x3e7d5e,{'width':this[_0x1398af(0xcd)],'height':this[_0x1398af(0x290)],'strokeWidth':_0x4b9220,'stroke':this[_0x1398af(0x334)],'evented':!0x1,'fill':this[_0x1398af(0x2fc)]}),this['_hovered']&&(_0x3e7d5e[_0x1398af(0x297)](),_0x3e7d5e[_0x1398af(0x33b)](0x1,0x0,0x0,0x1,this[_0x1398af(0xcd)],this[_0x1398af(0x12e)]==='bottom'?0x0:-_0x3f556f),_0x132457[_0x1398af(0xe2)](_0x3e7d5e,{'text':this[_0x1398af(0x138)],'color':this[_0x1398af(0x334)]}),_0x3e7d5e[_0x1398af(0x31d)]());}}var _0x5b6e3a=Object[_0x22d19e(0x1e2)],_0x123afb=(_0x451458,_0x21391c,_0xb9a55c,_0x3069ae)=>{const _0x23fd42=_0x22d19e;for(var _0x3b1771=_0x3069ae>0x1?void 0x0:_0x3069ae?_0x5b6e3a(_0x21391c,_0xb9a55c):_0x21391c,_0x1d21e5=_0x451458[_0x23fd42(0x29c)]-0x1,_0x20fa1a;_0x1d21e5>=0x0;_0x1d21e5--)(_0x20fa1a=_0x451458[_0x1d21e5])&&(_0x3b1771=_0x20fa1a(_0x3b1771)||_0x3b1771);return _0x3b1771;},_0x2c8fdb=(_0x200e01,_0xb1552a)=>(_0x6221b2,_0x488829)=>_0xb1552a(_0x6221b2,_0x488829,_0x200e01);const _0x4981c6=0x1389;let _0x5e3b2e=class extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(_0xc0a7c0,_0x918cb4,_0x884162,_0x3c7e4a){const _0x7520f4=_0x22d19e;super(),_0xa63e61(this,_0x7520f4(0xee),new Set()),_0xa63e61(this,'_lastPointer',null),(this[_0x7520f4(0x1af)]=_0xc0a7c0,this['_sheetSkeletonManagerService']=_0x918cb4,this[_0x7520f4(0x96)]=_0x884162,this[_0x7520f4(0x2e4)]=_0x3c7e4a,this[_0x7520f4(0x105)]());}[_0x22d19e(0x105)](){const _0x37ae13=_0x22d19e;this['_sheetSkeletonManagerService'][_0x37ae13(0xe8)][_0x37ae13(0x296)](_0x5d0515[_0x37ae13(0x9e)](this[_0x37ae13(0x148)]),_0x5d0515[_0x37ae13(0x1d5)](_0x564d5d=>{const _0x17c9bc=_0x37ae13;if(_0x564d5d){const _0x21ac16=_0x564d5d['sheetId'];return _0x8d94e0['combineLatest'](this[_0x17c9bc(0x96)]['getCollabCursors$'](this[_0x17c9bc(0x1af)][_0x17c9bc(0x369)]),this[_0x17c9bc(0x2e4)][_0x17c9bc(0x291)])['pipe'](_0x5d0515['map'](([_0x38234a,_0x2b62b3])=>{const _0x403afc=_0x17c9bc,_0x8b1b0b=new Map();return _0x38234a[_0x403afc(0x316)]((_0x42ba82,_0x51e071)=>{const _0x3fe458=_0x403afc;if(_0x42ba82['sheetID']===_0x21ac16){const _0x2caeb5={..._0x42ba82};_0x2caeb5[_0x3fe458(0x174)]=this['_themeService']['getColorFromTheme'](_0x42ba82['color']),_0x8b1b0b[_0x3fe458(0x25b)](_0x51e071,_0x2caeb5);}}),{'skeleton':_0x564d5d,'cursors':_0x8b1b0b};}));}return _0x8d94e0['of']({'skeleton':null,'cursors':new Map()});}))[_0x37ae13(0x35e)](({skeleton:_0x387e9a,cursors:_0x4998d9})=>{const _0x33fdc9=_0x37ae13;this[_0x33fdc9(0x362)](),_0x387e9a&&this['_updateCollabCursors'](_0x387e9a,_0x4998d9);}),this[_0x37ae13(0x183)][_0x37ae13(0xe8)][_0x37ae13(0x35e)](_0xe98b6f=>{const _0x23f798=_0x37ae13;if(_0xe98b6f==null)return;const {skeleton:_0x395500}=_0xe98b6f,{scene:_0x176f8e}=this[_0x23f798(0x1af)];_0x176f8e[_0x23f798(0x165)][_0x23f798(0x11b)](_0x4a5a1c[_0x23f798(0x25d)](_0x1ceb7b=>{const _0x17cc75=_0x23f798;var _0x4d4985,_0x24fbb2;const {offsetX:_0x5210f5,offsetY:_0x3fe87a}=_0x1ceb7b,{x:_0x36451b,y:_0x1a8b29}=_0x176f8e[_0x17cc75(0xf1)](_0x5d2f68[_0x17cc75(0x200)]['FromArray']([_0x5210f5,_0x3fe87a])),{scaleX:_0x27b867,scaleY:_0x437aaa}=_0x176f8e[_0x17cc75(0x357)](),_0xdea498=_0x176f8e[_0x17cc75(0x1e3)](_0x5d2f68[_0x17cc75(0x102)][_0x17cc75(0x346)]),_0x41b152=_0x176f8e[_0x17cc75(0x31c)](_0x5d2f68[_0x17cc75(0x200)][_0x17cc75(0x13c)]([_0x36451b,_0x1a8b29]),_0xdea498),_0x70712f=_0x395500['getCellPositionByOffset'](_0x5210f5,_0x3fe87a,_0x27b867,_0x437aaa,_0x41b152);((_0x4d4985=this[_0x17cc75(0x356)])==null?void 0x0:_0x4d4985[_0x17cc75(0x29b)])===_0x70712f[_0x17cc75(0x29b)]&&((_0x24fbb2=this[_0x17cc75(0x356)])==null?void 0x0:_0x24fbb2[_0x17cc75(0xe3)])===_0x70712f[_0x17cc75(0xe3)]||this[_0x17cc75(0xee)][_0x17cc75(0x316)](_0x230724=>{const _0x284a41=_0x17cc75;_0x230724[_0x284a41(0x35b)](_0x70712f);});},0x64));});}[_0x22d19e(0x280)](_0x3b77cb,_0x3de7b2){const _0x45edd0=_0x22d19e;var _0x39c4bb;const _0x340c58=(_0x39c4bb=this[_0x45edd0(0x183)][_0x45edd0(0x2fa)]())==null?void 0x0:_0x39c4bb['skeleton'];if(!_0x340c58)return;const _0x3e4ee8=this['_getSheetObject']();if(!_0x3e4ee8)return;this[_0x45edd0(0xee)][_0x45edd0(0x316)](_0x59376d=>{const _0x1ccd5f=_0x45edd0;_0x59376d[_0x1ccd5f(0x265)]();});const {scene:_0xa5979b}=_0x3e4ee8,_0xaae2da=_0xe9c136(Array[_0x45edd0(0x319)](_0x3de7b2[_0x45edd0(0x18a)]()))[_0x45edd0(0x112)](_0x5b34d9=>{const _0x51903b=_0x45edd0,{color:_0x35dbe3,range:_0x2c9e92,name:_0x404b15,selection:_0x59b99c,sheetID:_0x1e21b7}=_0x5b34d9,{startColumn:_0x32e5d7,startRow:_0x133733,endColumn:_0x199882,endRow:_0x3766cf}=_0x2c9e92,_0x15d6dc=_0x14ceff[_0x51903b(0x255)](_0x133733,_0x32e5d7,_0xa5979b,_0x340c58),_0x1b4255=_0x14ceff[_0x51903b(0x255)](_0x3766cf,_0x199882,_0xa5979b,_0x340c58),{columnHeaderHeightAndMarginTop:_0x2aebd0}=_0x340c58,{startX:_0x48e206,startY:_0x2228b1}=_0x15d6dc,{endX:_0x3a76c6,endY:_0x2764b6}=_0x1b4255,_0x70de4=_0x3a76c6-_0x48e206,_0x25e41f=_0x2764b6-_0x2228b1,_0x200ef6={'labelPosition':_0x2228b1-_0x2aebd0>=_0x3f556f?'top':_0x51903b(0x348),'sheetID':_0x1e21b7,'range':_0x2c9e92,'color':_0x35dbe3,'name':_0x404b15,'selection':_0x59b99c,'left':_0x48e206,'top':_0x2228b1,'width':_0x70de4,'height':_0x25e41f,'evented':!0x1,'zIndex':_0x4981c6};return new _0x3fc4ac(_0x404b15,_0x200ef6);});_0xa5979b[_0x45edd0(0xa1)](_0xaae2da,_0x37ebd9),this[_0x45edd0(0xee)]=new Set(_0xaae2da);}[_0x22d19e(0x362)](){const _0x586d60=_0x22d19e;var _0x5ad3e0;(_0x5ad3e0=this[_0x586d60(0xee)])==null||_0x5ad3e0[_0x586d60(0x316)](_0x55f007=>_0x55f007[_0x586d60(0x210)]());}['_getSheetObject'](){const _0x1b1195=_0x22d19e;return _0x14ceff['getSheetObject'](this[_0x1b1195(0x1af)][_0x1b1195(0x300)],this[_0x1b1195(0x1af)]);}};_0x5e3b2e=_0x123afb([_0x2c8fdb(0x1,_0x4a5a1c[_0x22d19e(0x35d)](_0x14ceff['SheetSkeletonManagerService'])),_0x2c8fdb(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0x8689c)),_0x2c8fdb(0x3,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c['ThemeService']))],_0x5e3b2e);function _0xe9c136(_0x412fd6){const _0x421b7d=_0x22d19e,_0x13e2f0=new Map();return _0x412fd6[_0x421b7d(0x316)](_0xc09a41=>{const _0x377a17=_0x421b7d;if(_0x13e2f0[_0x377a17(0x241)](_0xc09a41[_0x377a17(0x1e1)])){const _0x586cbc=_0x13e2f0[_0x377a17(0x18e)](_0xc09a41[_0x377a17(0x1e1)]);_0x586cbc['name']+=',\x20'+_0xc09a41[_0x377a17(0x2a6)];}else _0x13e2f0[_0x377a17(0x25b)](_0xc09a41[_0x377a17(0x1e1)],_0xc09a41);}),Array['from'](_0x13e2f0[_0x421b7d(0x18a)]());}var _0x56b286=Object[_0x22d19e(0x1e2)],_0x32f795=(_0x4b7e86,_0x14988d,_0x52405a,_0x43eec5)=>{const _0x19349c=_0x22d19e;for(var _0x4fcd80=_0x43eec5>0x1?void 0x0:_0x43eec5?_0x56b286(_0x14988d,_0x52405a):_0x14988d,_0x34d161=_0x4b7e86[_0x19349c(0x29c)]-0x1,_0x579168;_0x34d161>=0x0;_0x34d161--)(_0x579168=_0x4b7e86[_0x34d161])&&(_0x4fcd80=_0x579168(_0x4fcd80)||_0x4fcd80);return _0x4fcd80;},_0x34c263=(_0x58d813,_0x30919d)=>(_0xf6d27,_0x90ff8c)=>_0x30919d(_0xf6d27,_0x90ff8c,_0x58d813);let _0x6027b0=class extends _0x4a5a1c[_0x22d19e(0x2a7)]{constructor(_0x1ff4ae,_0x2119a5,_0x2b4120,_0x5c61e7,_0x490c37,_0x17c927){const _0x4da78c=_0x22d19e;super(),this['_beforeCloseService']=_0x1ff4ae,this[_0x4da78c(0x1ad)]=_0x2119a5,this[_0x4da78c(0x347)]=_0x2b4120,this['_messageService']=_0x5c61e7,this[_0x4da78c(0x15b)]=_0x490c37,this[_0x4da78c(0x295)]=_0x17c927,this[_0x4da78c(0x16e)](),this['_initEvent']();}[_0x22d19e(0x16e)](){const _0x1c672f=_0x22d19e;this[_0x1c672f(0xe5)](this[_0x1c672f(0x302)][_0x1c672f(0x123)](()=>{const _0x534f57=_0x1c672f;if(this[_0x534f57(0x1ad)]['saveTaskMap']['size'])return this[_0x534f57(0x295)]['t'](_0x534f57(0x343));}));}[_0x22d19e(0x147)](){const _0x1b87bd=_0x22d19e;this[_0x1b87bd(0xe5)](this['_collaborationUIEventService'][_0x1b87bd(0xa3)][_0x1b87bd(0x35e)](_0x51de90=>{const _0x14ef05=_0x1b87bd;_0x51de90['id']===_0x29cbea[_0x14ef05(0x1f3)][_0x14ef05(0x331)]&&this['_messageService'][_0x14ef05(0x1ba)]({'type':_0x67c92c[_0x14ef05(0x215)][_0x14ef05(0x194)],'content':this[_0x14ef05(0x295)]['t'](_0x14ef05(0x2d8))}),_0x51de90['id']===_0x29cbea[_0x14ef05(0x1f3)][_0x14ef05(0x1fc)]&&this[_0x14ef05(0x33e)]['show']({'type':_0x67c92c['MessageType'][_0x14ef05(0x194)],'content':this[_0x14ef05(0x295)]['t'](_0x14ef05(0xe4))}),_0x51de90['id']===_0x29cbea[_0x14ef05(0x1f3)][_0x14ef05(0x13b)]&&this[_0x14ef05(0x15b)][_0x14ef05(0x1ba)]({'title':this[_0x14ef05(0x295)]['t']('permission.title'),'content':this['_localeService']['t'](_0x14ef05(0x325)),'type':_0x14ef05(0x1fd),'duration':0x0}),_0x51de90['id']===_0x29cbea['CollaborationUIEventId']['CONFLICT']&&this['_messageService']['show']({'type':_0x67c92c[_0x14ef05(0x215)]['Error'],'content':this[_0x14ef05(0x295)]['t'](_0x14ef05(0xe4))+'('+_0x51de90[_0x14ef05(0x136)]+')'}),_0x51de90['id']===_0x29cbea[_0x14ef05(0x1f3)][_0x14ef05(0x1ea)]&&this[_0x14ef05(0x33e)][_0x14ef05(0x1ba)]({'type':_0x67c92c[_0x14ef05(0x215)]['Warning'],'content':this['_localeService']['t'](_0x51de90[_0x14ef05(0x136)]||'')}),_0x51de90['id']===_0x29cbea['CollaborationUIEventId'][_0x14ef05(0x29e)]&&this[_0x14ef05(0x33e)][_0x14ef05(0x1ba)]({'type':_0x67c92c[_0x14ef05(0x215)][_0x14ef05(0x194)],'content':this[_0x14ef05(0x295)]['t'](_0x14ef05(0x167))}),_0x51de90['id']===_0x29cbea[_0x14ef05(0x1f3)][_0x14ef05(0x17d)]&&this[_0x14ef05(0x33e)][_0x14ef05(0x1ba)]({'type':_0x67c92c[_0x14ef05(0x215)]['Error'],'content':this[_0x14ef05(0x295)]['t'](_0x14ef05(0x2ab))}),_0x51de90['id']===_0x29cbea[_0x14ef05(0x1f3)][_0x14ef05(0x141)]&&this[_0x14ef05(0x33e)]['show']({'type':_0x67c92c['MessageType'][_0x14ef05(0x2d1)],'content':this[_0x14ef05(0x295)]['t'](_0x14ef05(0x277))});}));}};_0x6027b0=_0x32f795([_0x34c263(0x0,_0x270495['IBeforeCloseService']),_0x34c263(0x1,_0x29cbea[_0x22d19e(0x92)]),_0x34c263(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0x29cbea[_0x22d19e(0x367)])),_0x34c263(0x3,_0x270495[_0x22d19e(0x339)]),_0x34c263(0x4,_0x270495[_0x22d19e(0x2bc)]),_0x34c263(0x5,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c[_0x22d19e(0x16a)]))],_0x6027b0);var _0x2534f6=Object[_0x22d19e(0x1e2)],_0x4779a7=(_0x436021,_0x5cfb48,_0x3ac2b3,_0x19d4c0)=>{const _0x5963c1=_0x22d19e;for(var _0x38fae8=_0x19d4c0>0x1?void 0x0:_0x19d4c0?_0x2534f6(_0x5cfb48,_0x3ac2b3):_0x5cfb48,_0xff783e=_0x436021[_0x5963c1(0x29c)]-0x1,_0x2b9992;_0xff783e>=0x0;_0xff783e--)(_0x2b9992=_0x436021[_0xff783e])&&(_0x38fae8=_0x2b9992(_0x38fae8)||_0x38fae8);return _0x38fae8;},_0x5d525a=(_0x337f15,_0x3e3ee1)=>(_0x3e44bc,_0x184ab9)=>_0x3e3ee1(_0x3e44bc,_0x184ab9,_0x337f15);let _0x44bd4f=class extends _0x4a5a1c[_0x22d19e(0x2a7)]{constructor(_0x3e0612,_0x4069f1,_0x42c12b,_0x4552d3){const _0x58f53c=_0x22d19e;super(),_0xa63e61(this,'_memberID'),(this[_0x58f53c(0x36e)]=_0x3e0612,this[_0x58f53c(0x33c)]=_0x4069f1,this[_0x58f53c(0x1d7)]=_0x42c12b,this['_collaborationSessionService']=_0x4552d3,this[_0x58f53c(0x105)]());}[_0x22d19e(0x105)](){const _0x3f609c=_0x22d19e;this[_0x3f609c(0xc1)](),this[_0x3f609c(0x29d)](),this[_0x3f609c(0x24b)](),this[_0x3f609c(0xae)]();}[_0x22d19e(0xae)](){const _0xc79f7=_0x22d19e;this[_0xc79f7(0xe5)](this[_0xc79f7(0x111)][_0xc79f7(0x153)][_0xc79f7(0x35e)](_0x8c48cd=>{const _0x19e9df=_0xc79f7;this[_0x19e9df(0x2bd)]=_0x8c48cd==null?void 0x0:_0x8c48cd[_0x19e9df(0x27c)];}));}[_0x22d19e(0xc1)](){const _0x54a556=_0x22d19e,_0x2d64e5=_0x1344c1=>{const _0x33e348=_0x1ae4;var _0x5e0c46;this['_uploadLog'](_0x33e348(0x1fd),_0x33e348(0xa2)+_0x1344c1[_0x33e348(0x1f4)]+_0x33e348(0x299)+_0x1344c1['filename']+':'+_0x1344c1[_0x33e348(0x233)]+':'+_0x1344c1[_0x33e348(0x107)]+'\x0a'+(((_0x5e0c46=_0x1344c1[_0x33e348(0x1fd)])==null?void 0x0:_0x5e0c46[_0x33e348(0x207)])||''));};window[_0x54a556(0x24e)](_0x54a556(0x1fd),_0x2d64e5),this['disposeWithMe'](()=>{const _0x2a81b9=_0x54a556;window['removeEventListener'](_0x2a81b9(0x1fd),_0x2d64e5);});}[_0x22d19e(0x29d)](){const _0x289a88=_0x22d19e,_0x13f475=_0x143ac2=>{const _0x964fd0=_0x1ae4;this[_0x964fd0(0x11a)](_0x964fd0(0x1fd),_0x964fd0(0x17a)+_0x143ac2[_0x964fd0(0x2be)]);};window['addEventListener'](_0x289a88(0x12c),_0x13f475),this['disposeWithMe'](()=>{const _0x1cdda1=_0x289a88;window[_0x1cdda1(0x2e1)](_0x1cdda1(0x12c),_0x13f475);});}[_0x22d19e(0x24b)](){const _0x282ed6=_0x22d19e,_0x148744=this[_0x282ed6(0x1d7)][_0x282ed6(0x1fd)][_0x282ed6(0x2c2)](this[_0x282ed6(0x1d7)]);this[_0x282ed6(0x1d7)][_0x282ed6(0x1fd)]=(..._0x1d281f)=>{const _0x2de588=_0x282ed6,_0x2a47da=_0x1d281f[_0x2de588(0x112)](_0x296722=>_0x296722 instanceof Error?_0x296722[_0x2de588(0x1f4)]+'\x0a'+_0x296722[_0x2de588(0x207)]:String(_0x296722))['join']('\x20');this[_0x2de588(0x11a)]('error',_0x2de588(0x359)+_0x2a47da),_0x148744(..._0x1d281f);},this[_0x282ed6(0xe5)](()=>{const _0x400769=_0x282ed6;this[_0x400769(0x1d7)]['error']=_0x148744;});}['_uploadLog'](_0x479b43,_0xb7f84a){const _0x3d215d=_0x22d19e;try{const _0x39efb4={'userId':this[_0x3d215d(0x2bd)],'logLabel':_0x479b43,'content':_0xb7f84a};this[_0x3d215d(0x33c)][_0x3d215d(0x33a)](_0x3d215d(0xfb),{'body':_0x39efb4})[_0x3d215d(0x25f)](()=>{});}catch{}}};_0x44bd4f=_0x4779a7([_0x5d525a(0x0,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c[_0x22d19e(0x2f2)])),_0x5d525a(0x1,_0x4a5a1c['Inject'](_0xbeb642[_0x22d19e(0x34b)])),_0x5d525a(0x2,_0x4a5a1c[_0x22d19e(0x2eb)]),_0x5d525a(0x3,_0x4a5a1c[_0x22d19e(0x35d)](_0x29cbea['CollaborationSessionService']))],_0x44bd4f);const _0x48039f=_0x22d19e(0x327),_0x1eb4f8={};var _0x4021d8=Object[_0x22d19e(0x1e2)],_0xe85d6c=(_0x9502,_0xf0b3cc,_0x29f692,_0x257622)=>{const _0x1781cd=_0x22d19e;for(var _0x20c4d8=_0x257622>0x1?void 0x0:_0x257622?_0x4021d8(_0xf0b3cc,_0x29f692):_0xf0b3cc,_0x17b3e8=_0x9502[_0x1781cd(0x29c)]-0x1,_0x345359;_0x17b3e8>=0x0;_0x17b3e8--)(_0x345359=_0x9502[_0x17b3e8])&&(_0x20c4d8=_0x345359(_0x20c4d8)||_0x20c4d8);return _0x20c4d8;},_0x514d51=(_0x4c32b8,_0x5e59b8)=>(_0x4a4cd9,_0x12bb30)=>_0x5e59b8(_0x4a4cd9,_0x12bb30,_0x4c32b8);let _0xc53968=class{constructor(_0x1e9968,_0x30ee50){const _0x37bc0e=_0x22d19e;this['_transformService']=_0x1e9968,this[_0x37bc0e(0x282)]=_0x30ee50;}[_0x22d19e(0x2da)](_0x373217){const _0xc74015=_0x22d19e;this[_0xc74015(0xf8)](_0x373217),this[_0xc74015(0x18c)](_0x373217);}[_0x22d19e(0x16f)](_0x275c93){const _0x5f4cb2=_0x22d19e,{unitID:_0x4e18d7}=_0x275c93,_0x428d93=this[_0x5f4cb2(0x282)][_0x5f4cb2(0x305)](_0x4e18d7)['with'](_0x22126e['DocIMEInputManagerService']),{redoCache:_0x3f6c08}=_0x428d93[_0x5f4cb2(0x355)]();if(_0x3f6c08['length']===0x0)return _0x275c93;let _0x1d5905=_0x4a5a1c[_0x5f4cb2(0xc6)]['deepClone'](_0x275c93['mutations'][0x0]);for(let _0x6aa73=0x0;_0x6aa73<_0x3f6c08[_0x5f4cb2(0x29c)];_0x6aa73++){const _0x220387={'id':'doc.mutation.rich-text-editing','params':{..._0x3f6c08[_0x6aa73]}},_0x495384=this['_transformService'][_0x5f4cb2(0x9f)](_0x1d5905,_0x220387,!0x1);if(_0x4a6bb0[_0x5f4cb2(0xbb)](_0x495384))throw _0x495384['error'];_0x1d5905=_0x495384[_0x5f4cb2(0xdf)];}return{..._0x4a5a1c[_0x5f4cb2(0xc6)][_0x5f4cb2(0x2fe)](_0x275c93),'mutations':[_0x1d5905]};}[_0x22d19e(0xf8)](_0xc33245){const _0x467ff9=_0x22d19e,{unitID:_0xe9151a}=_0xc33245,_0x3f509c=this[_0x467ff9(0x282)]['getRenderById'](_0xe9151a)[_0x467ff9(0x12d)](_0x22126e[_0x467ff9(0x189)]),{undoCache:_0x5d84aa,redoCache:_0x11f967}=_0x3f509c[_0x467ff9(0x355)]();if(_0x5d84aa[_0x467ff9(0x29c)]===0x0||_0x11f967['length']===0x0)return;const _0x3c7979=[],_0x37d831=[];let _0x4b0dec=_0x4a5a1c[_0x467ff9(0xc6)][_0x467ff9(0x2fe)](_0xc33245[_0x467ff9(0x354)][0x0]),_0x2c8b50=_0x4a5a1c[_0x467ff9(0xc6)][_0x467ff9(0x2fe)](_0xc33245[_0x467ff9(0x354)][0x0]);for(let _0x2069b5=_0x5d84aa['length']-0x1;_0x2069b5>=0x0;_0x2069b5--){const _0x31b6de={'id':_0x467ff9(0x2a5),'params':{..._0x5d84aa[_0x2069b5]}},_0x64530b={'id':_0x467ff9(0x2a5),'params':{..._0x11f967[_0x2069b5]}},_0x26495b=this[_0x467ff9(0x1ff)][_0x467ff9(0x9f)](_0x4b0dec,_0x31b6de,!0x1),_0x34bd74=this['_transformService']['transformMutation'](_0x2c8b50,_0x64530b,!0x1);if(_0x4a6bb0[_0x467ff9(0xbb)](_0x26495b))throw _0x26495b[_0x467ff9(0x1fd)];if(_0x4a6bb0[_0x467ff9(0xbb)](_0x34bd74))throw _0x34bd74[_0x467ff9(0x1fd)];_0x3c7979[_0x467ff9(0xfc)](_0x26495b[_0x467ff9(0x196)][_0x467ff9(0x22d)]),_0x37d831[_0x467ff9(0xfc)](_0x34bd74[_0x467ff9(0x196)][_0x467ff9(0x22d)]),_0x4b0dec=_0x26495b['m1Prime'],_0x2c8b50=_0x34bd74[_0x467ff9(0xdf)];}_0x3f509c[_0x467ff9(0x1bb)]({'undoCache':_0x3c7979,'redoCache':_0x37d831});}[_0x22d19e(0x18c)](_0x1b58a7){const _0x27a007=_0x22d19e,{unitID:_0x146fda}=_0x1b58a7,_0x59c6c9=this[_0x27a007(0x282)][_0x27a007(0x305)](_0x146fda)[_0x27a007(0x12d)](_0x22126e[_0x27a007(0x189)]),_0x58a562=_0x59c6c9[_0x27a007(0x219)]();if(_0x58a562==null)return;const _0x22a906=[{'id':_0x27a007(0x2a5),'params':{'unitId':_0x1b58a7[_0x27a007(0x2bb)],'actions':null,'textRanges':[_0x58a562]}}],_0x1e49e0=this[_0x27a007(0x1ff)]['transformMutationsWithChangeset'](_0x1b58a7,_0x22a906);if(!_0x4a6bb0[_0x27a007(0x1ca)](_0x1e49e0))throw _0x1e49e0[_0x27a007(0x1fd)];const _0x54b2ec=_0x1e49e0[_0x27a007(0x196)][0x0][_0x27a007(0x22d)][_0x27a007(0x30f)];Array['isArray'](_0x54b2ec)&&_0x54b2ec[_0x27a007(0x29c)]&&_0x59c6c9[_0x27a007(0x220)](_0x54b2ec[0x0]);}};_0xc53968=_0xe85d6c([_0x514d51(0x0,_0x4a6bb0[_0x22d19e(0x158)]),_0x514d51(0x1,_0x5d2f68[_0x22d19e(0xcf)])],_0xc53968);var _0x509b22=Object[_0x22d19e(0x1e2)],_0x24bf3f=(_0x5db15b,_0x240ae3,_0x23a03f,_0x383737)=>{for(var _0x37cd0f=_0x383737>0x1?void 0x0:_0x383737?_0x509b22(_0x240ae3,_0x23a03f):_0x240ae3,_0x3903ab=_0x5db15b['length']-0x1,_0x21d0ad;_0x3903ab>=0x0;_0x3903ab--)(_0x21d0ad=_0x5db15b[_0x3903ab])&&(_0x37cd0f=_0x21d0ad(_0x37cd0f)||_0x37cd0f);return _0x37cd0f;},_0x1023f1=(_0x5f74e0,_0x1a47bf)=>(_0x2d55f9,_0x5bfbfd)=>_0x1a47bf(_0x2d55f9,_0x5bfbfd,_0x5f74e0);let _0x5cd1e2=class{constructor(_0xe7575,_0xb84641,_0x1e8e26){const _0x5659e8=_0x22d19e;this[_0x5659e8(0x36e)]=_0xe7575,this[_0x5659e8(0x1ff)]=_0xb84641,this[_0x5659e8(0x24d)]=_0x1e8e26;}['transformStateCache'](_0x698087){const _0x18dd99=_0x22d19e;this[_0x18dd99(0x1b3)](_0x698087);}['transformRemoteChangeset'](_0x3231a0){const _0x318d19=_0x22d19e,{unitID:_0x24be4d}=_0x3231a0,{collaboration:_0x530815}=this[_0x318d19(0x24d)][_0x318d19(0x1c9)](_0x24be4d);if(_0x530815[_0x318d19(0x29c)]===0x0)return _0x3231a0;let _0x132f93=_0x4a5a1c[_0x318d19(0xc6)][_0x318d19(0x2fe)](_0x3231a0['mutations'][0x0]);for(let _0x1b47c3=0x0;_0x1b47c3<_0x530815['length'];_0x1b47c3++){const _0x588c9a={'id':_0x318d19(0x2a5),'params':{'unitId':_0x530815[_0x1b47c3]['unitId'],..._0x530815[_0x1b47c3]['redoState']}},_0x1684f1=this[_0x318d19(0x1ff)][_0x318d19(0x9f)](_0x132f93,_0x588c9a,!0x1);if(_0x4a6bb0[_0x318d19(0xbb)](_0x1684f1))throw _0x1684f1[_0x318d19(0x1fd)];_0x132f93=_0x1684f1[_0x318d19(0xdf)];}return{..._0x4a5a1c[_0x318d19(0xc6)][_0x318d19(0x2fe)](_0x3231a0),'mutations':[_0x132f93]};}[_0x22d19e(0x1b3)](_0x547b56){const _0x4644d8=_0x22d19e,{unitID:_0x105ad4}=_0x547b56,{history:_0x46c4b9,collaboration:_0x345f88}=this[_0x4644d8(0x24d)]['getStateCache'](_0x105ad4);if(_0x46c4b9[_0x4644d8(0x29c)]===0x0&&_0x345f88[_0x4644d8(0x29c)]===0x0)return;const _0x23df02=[],_0x2cdae2=[];let _0x3eb7c7=_0x4a5a1c['Tools'][_0x4644d8(0x2fe)](_0x547b56[_0x4644d8(0x354)][0x0]),_0x391fd5=_0x4a5a1c[_0x4644d8(0xc6)]['deepClone'](_0x547b56[_0x4644d8(0x354)][0x0]);for(let _0xff0a95=_0x46c4b9[_0x4644d8(0x29c)]-0x1;_0xff0a95>=0x0;_0xff0a95--){const _0x23272f={'id':_0x4644d8(0x2a5),'params':{'unitId':_0x46c4b9[_0xff0a95][_0x4644d8(0x369)],..._0x46c4b9[_0xff0a95][_0x4644d8(0x1bc)]}},_0x4d48f5={'id':_0x4644d8(0x2a5),'params':{'unitId':_0x46c4b9[_0xff0a95][_0x4644d8(0x369)],..._0x46c4b9[_0xff0a95][_0x4644d8(0xb1)]}},_0x150d91=this[_0x4644d8(0x1ff)]['transformMutation'](_0x3eb7c7,_0x23272f,!0x1),_0x5d5ff1=this[_0x4644d8(0x1ff)][_0x4644d8(0x9f)](_0x391fd5,_0x4d48f5,!0x1);if(_0x4a6bb0[_0x4644d8(0xbb)](_0x150d91))throw _0x150d91[_0x4644d8(0x1fd)];if(_0x4a6bb0[_0x4644d8(0xbb)](_0x5d5ff1))throw _0x5d5ff1[_0x4644d8(0x1fd)];_0x23df02[_0x4644d8(0xfc)]({..._0x46c4b9[_0xff0a95],'undoState':_0x150d91[_0x4644d8(0x196)][_0x4644d8(0x22d)],'redoState':_0x5d5ff1[_0x4644d8(0x196)]['params']}),_0x3eb7c7=_0x150d91[_0x4644d8(0xdf)],_0x391fd5=_0x5d5ff1[_0x4644d8(0xdf)];}_0x3eb7c7=_0x4a5a1c[_0x4644d8(0xc6)]['deepClone'](_0x547b56[_0x4644d8(0x354)][0x0]),_0x391fd5=_0x4a5a1c[_0x4644d8(0xc6)]['deepClone'](_0x547b56[_0x4644d8(0x354)][0x0]);for(let _0x4d469b=_0x345f88[_0x4644d8(0x29c)]-0x1;_0x4d469b>=0x0;_0x4d469b--){const _0x382420={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x345f88[_0x4d469b]['unitId'],..._0x345f88[_0x4d469b]['undoState']}},_0xa4d5d9={'id':_0x4644d8(0x2a5),'params':{'unitId':_0x345f88[_0x4d469b][_0x4644d8(0x369)],..._0x345f88[_0x4d469b][_0x4644d8(0xb1)]}},_0x379087=this['_transformService'][_0x4644d8(0x9f)](_0x3eb7c7,_0x382420,!0x1),_0x16d48d=this[_0x4644d8(0x1ff)][_0x4644d8(0x9f)](_0x391fd5,_0xa4d5d9,!0x1);if(_0x4a6bb0[_0x4644d8(0xbb)](_0x379087))throw _0x379087[_0x4644d8(0x1fd)];if(_0x4a6bb0[_0x4644d8(0xbb)](_0x16d48d))throw _0x16d48d[_0x4644d8(0x1fd)];_0x2cdae2[_0x4644d8(0xfc)]({..._0x345f88[_0x4d469b],'undoState':_0x379087['m2Prime'][_0x4644d8(0x22d)],'redoState':_0x16d48d['m2Prime'][_0x4644d8(0x22d)]}),_0x3eb7c7=_0x379087['m1Prime'],_0x391fd5=_0x16d48d[_0x4644d8(0xdf)];}this[_0x4644d8(0x24d)][_0x4644d8(0x190)](_0x105ad4,{'history':_0x23df02,'collaboration':_0x2cdae2});}};_0x5cd1e2=_0x24bf3f([_0x1023f1(0x0,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c[_0x22d19e(0x2f2)])),_0x1023f1(0x1,_0x4a6bb0[_0x22d19e(0x158)]),_0x1023f1(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0x22126e[_0x22d19e(0x360)]))],_0x5cd1e2);var _0x4c3448=Object[_0x22d19e(0x1e2)],_0x162572=(_0x3e0d2f,_0x56d2f6,_0x572248,_0x33ec11)=>{const _0x470657=_0x22d19e;for(var _0xfc2be5=_0x33ec11>0x1?void 0x0:_0x33ec11?_0x4c3448(_0x56d2f6,_0x572248):_0x56d2f6,_0x33087f=_0x3e0d2f[_0x470657(0x29c)]-0x1,_0x37002d;_0x33087f>=0x0;_0x33087f--)(_0x37002d=_0x3e0d2f[_0x33087f])&&(_0xfc2be5=_0x37002d(_0xfc2be5)||_0xfc2be5);return _0xfc2be5;},_0x222dbd=(_0x2a7f39,_0x14dace)=>(_0x34fd5a,_0x706f91)=>_0x14dace(_0x34fd5a,_0x706f91,_0x2a7f39);let _0x247291=class{constructor(_0x516aac,_0x1ef0e7){const _0x2ef52d=_0x22d19e;this[_0x2ef52d(0x36e)]=_0x516aac,this[_0x2ef52d(0x1ff)]=_0x1ef0e7;}[_0x22d19e(0x22c)](_0x86cb90){const _0x24b78e=_0x22d19e;var _0x32a1a0;const _0x1aa468=this[_0x24b78e(0x36e)][_0x24b78e(0x18e)](_0x5afd4e[_0x24b78e(0x11c)]),_0x2e2ea8=(_0x32a1a0=_0x1aa468['getDocRanges']())!=null?_0x32a1a0:[];if(_0x2e2ea8[_0x24b78e(0x29c)]===0x0)return;const _0x25c104=_0x86cb90['unitID'],_0x5681e9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x25c104,'actions':null,'textRanges':_0x2e2ea8}}],_0x347f6a=this[_0x24b78e(0x1ff)]['transformMutationsWithChangeset'](_0x86cb90,_0x5681e9);if(!_0x4a6bb0[_0x24b78e(0x1ca)](_0x347f6a))throw _0x347f6a[_0x24b78e(0x1fd)];const _0x3ef64f=_0x347f6a[_0x24b78e(0x196)][0x0][_0x24b78e(0x22d)][_0x24b78e(0x30f)];Array[_0x24b78e(0xca)](_0x3ef64f)&&_0x3ef64f[_0x24b78e(0x29c)]&&_0x1aa468[_0x24b78e(0x28e)](_0x3ef64f,{'unitId':_0x25c104,'subUnitId':_0x25c104},!0x1);}};_0x247291=_0x162572([_0x222dbd(0x0,_0x4a5a1c['Inject'](_0x4a5a1c[_0x22d19e(0x2f2)])),_0x222dbd(0x1,_0x4a6bb0['ITransformService'])],_0x247291);var _0x125068=Object['getOwnPropertyDescriptor'],_0x4eb520=(_0x5e0214,_0x3914b2,_0xef1cc1,_0x181d3e)=>{for(var _0x4d5d95=_0x181d3e>0x1?void 0x0:_0x181d3e?_0x125068(_0x3914b2,_0xef1cc1):_0x3914b2,_0x1154ab=_0x5e0214['length']-0x1,_0x3e4bd1;_0x1154ab>=0x0;_0x1154ab--)(_0x3e4bd1=_0x5e0214[_0x1154ab])&&(_0x4d5d95=_0x3e4bd1(_0x4d5d95)||_0x4d5d95);return _0x4d5d95;},_0x503f53=(_0x12cc88,_0x294e1d)=>(_0x273e32,_0x4ff8c1)=>_0x294e1d(_0x273e32,_0x4ff8c1,_0x12cc88);let _0x29e630=class extends _0x4a5a1c[_0x22d19e(0x2a7)]{constructor(_0x558c08,_0x3cb307,_0x177f3d,_0x58ce66,_0x3b3621,_0x532204,_0x499879,_0x5880d8){const _0x220db8=_0x22d19e;super(),_0xa63e61(this,_0x220db8(0x223),new _0x8d94e0[(_0x220db8(0x90))](_0x29cbea[_0x220db8(0x1eb)][_0x220db8(0x1d0)])),(this[_0x220db8(0x24d)]=_0x558c08,this['_collaborationController']=_0x3cb307,this['_docTransformIMECacheService']=_0x177f3d,this[_0x220db8(0xbc)]=_0x58ce66,this[_0x220db8(0x164)]=_0x3b3621,this['_docSyncEditingCollabCursorService']=_0x532204,this['_messageService']=_0x499879,this[_0x220db8(0x295)]=_0x5880d8,this[_0x220db8(0x173)]());}[_0x22d19e(0x173)](){const _0x145901=_0x22d19e;this[_0x145901(0xe5)](this[_0x145901(0x139)][_0x145901(0x1ae)][_0x145901(0x35e)](_0x99f7b1=>{const _0x1d80b8=_0x145901,_0x3be00d=this['_docStateChangeManagerService'][_0x1d80b8(0x1f8)]['subscribe'](_0x10566a=>{const _0x1fda26=_0x1d80b8;if(_0x10566a==null)return;const {unitId:_0x308f06,redoState:_0x2b7b6a,commandId:_0x35a08c}=_0x10566a;if(_0x308f06!==_0x99f7b1['unitID'])return;const _0x46b6d3={'id':_0x35a08c,'type':_0x4a5a1c[_0x1fda26(0xff)][_0x1fda26(0xa8)],'params':{'unitId':_0x308f06,'actions':_0x2b7b6a[_0x1fda26(0x142)],'textRanges':null}};_0x99f7b1[_0x1fda26(0x13d)](_0x46b6d3);});if(_0x99f7b1['disposeWithMe'](_0x3be00d),_0x99f7b1 instanceof _0x29cbea['DocCollaborationEntity']){const _0x351b65={'onTransformIME':_0xea2754=>this[_0x1d80b8(0x2ee)][_0x1d80b8(0x2da)](_0xea2754),'onTransformState':_0x5b5301=>this[_0x1d80b8(0xbc)]['transformStateCache'](_0x5b5301),'onTransformSelections':_0x26cfa7=>this[_0x1d80b8(0x164)]['transformSelections'](_0x26cfa7),'onSyncEditingCollabCursor':_0x1ce5ee=>this[_0x1d80b8(0x1c7)]['syncEditingCollabCursor'](_0x1ce5ee),'onTransformRemoteChangesetByIMECache':_0xbed2cc=>this[_0x1d80b8(0x2ee)]['transformRemoteChangeset'](_0xbed2cc),'onTransformRemoteChangesetByStateCache':_0x2b75c3=>this[_0x1d80b8(0xbc)][_0x1d80b8(0x16f)](_0x2b75c3)};_0x99f7b1[_0x1d80b8(0x26f)](_0x351b65);}}));}};_0x29e630=_0x4eb520([_0x503f53(0x0,_0x4a5a1c[_0x22d19e(0x35d)](_0x22126e[_0x22d19e(0x360)])),_0x503f53(0x1,_0x4a5a1c[_0x22d19e(0x35d)](_0x29cbea[_0x22d19e(0x9b)])),_0x503f53(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0xc53968)),_0x503f53(0x3,_0x4a5a1c['Inject'](_0x5cd1e2)),_0x503f53(0x4,_0x4a5a1c[_0x22d19e(0x35d)](_0x247291)),_0x503f53(0x5,_0x4a5a1c['Inject'](_0x5e2c98)),_0x503f53(0x6,_0x270495[_0x22d19e(0x339)]),_0x503f53(0x7,_0x4a5a1c['Inject'](_0x4a5a1c[_0x22d19e(0x16a)]))],_0x29e630);var _0x4dfe1b=(_0x5a445a=>(_0x5a445a[_0x5a445a['UNDEFINED']=0x0]=_0x22d19e(0x146),_0x5a445a[_0x5a445a['OK']=0x1]='OK',_0x5a445a[_0x5a445a[_0x22d19e(0x1c3)]=0x2]=_0x22d19e(0x1c3),_0x5a445a[_0x5a445a[_0x22d19e(0x13b)]=0x3]=_0x22d19e(0x13b),_0x5a445a[_0x5a445a[_0x22d19e(0x182)]=0x4]=_0x22d19e(0x182),_0x5a445a[_0x5a445a[_0x22d19e(0x159)]=0x5]=_0x22d19e(0x159),_0x5a445a[_0x5a445a[_0x22d19e(0x185)]=0x6]=_0x22d19e(0x185),_0x5a445a[_0x5a445a[_0x22d19e(0xf0)]=0x7]=_0x22d19e(0xf0),_0x5a445a[_0x5a445a[_0x22d19e(0x26a)]=0x8]=_0x22d19e(0x26a),_0x5a445a[_0x5a445a[_0x22d19e(0x1ab)]=0x9]=_0x22d19e(0x1ab),_0x5a445a[_0x5a445a['LOGIN_FAILED']=0xa]=_0x22d19e(0x166),_0x5a445a[_0x5a445a[_0x22d19e(0x32d)]=0xb]=_0x22d19e(0x32d),_0x5a445a[_0x5a445a[_0x22d19e(0x2db)]=0xc]=_0x22d19e(0x2db),_0x5a445a[_0x5a445a[_0x22d19e(0x145)]=0xd]=_0x22d19e(0x145),_0x5a445a[_0x5a445a[_0x22d19e(0x31a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5a445a[_0x5a445a[_0x22d19e(0xb6)]=0xf]=_0x22d19e(0xb6),_0x5a445a[_0x5a445a[_0x22d19e(0x311)]=0x10]=_0x22d19e(0x311),_0x5a445a[_0x5a445a[_0x22d19e(0x1b9)]=0x64]=_0x22d19e(0x1b9),_0x5a445a[_0x5a445a['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x5a445a[_0x5a445a[_0x22d19e(0x2d4)]=0xc9]=_0x22d19e(0x2d4),_0x5a445a[_0x5a445a[_0x22d19e(0x1c5)]=0xca]='USER_IS_ANONYMOUS',_0x5a445a[_0x5a445a['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x22d19e(0x10d),_0x5a445a[_0x5a445a[_0x22d19e(0x129)]=0x1771]=_0x22d19e(0x129),_0x5a445a[_0x5a445a[_0x22d19e(0xf3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5a445a[_0x5a445a[_0x22d19e(0x351)]=0x1773]=_0x22d19e(0x351),_0x5a445a[_0x5a445a[_0x22d19e(0x231)]=0x1b59]='APPLY_REJECT',_0x5a445a[_0x5a445a[_0x22d19e(0x1a9)]=0x1b5a]=_0x22d19e(0x1a9),_0x5a445a[_0x5a445a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x22d19e(0x1fe),_0x5a445a[_0x5a445a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x22d19e(0x2b2),_0x5a445a[_0x5a445a[_0x22d19e(0x162)]=0x1b5d]=_0x22d19e(0x162),_0x5a445a[_0x5a445a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x22d19e(0x322),_0x5a445a[_0x5a445a[_0x22d19e(0x21d)]=0x2329]=_0x22d19e(0x21d),_0x5a445a[_0x5a445a[_0x22d19e(0xd5)]=0x232a]=_0x22d19e(0xd5),_0x5a445a[_0x5a445a[_0x22d19e(0x259)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5a445a[_0x5a445a[_0x22d19e(0x179)]=0x232c]=_0x22d19e(0x179),_0x5a445a[_0x5a445a[_0x22d19e(0x1b5)]=0x232d]=_0x22d19e(0x1b5),_0x5a445a[_0x5a445a[_0x22d19e(0x18b)]=0x2711]=_0x22d19e(0x18b),_0x5a445a[_0x5a445a[_0x22d19e(0x2ed)]=0x2712]=_0x22d19e(0x2ed),_0x5a445a[_0x5a445a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x22d19e(0xf9),_0x5a445a[_0x5a445a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x22d19e(0xb5),_0x5a445a[_0x5a445a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x22d19e(0x137),_0x5a445a[_0x5a445a[_0x22d19e(0x134)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5a445a[_0x5a445a[_0x22d19e(0x160)]=0x271c]=_0x22d19e(0x160),_0x5a445a[_0x5a445a[_0x22d19e(0x328)]=0x271d]=_0x22d19e(0x328),_0x5a445a[_0x5a445a[_0x22d19e(0x239)]=0x271e]=_0x22d19e(0x239),_0x5a445a[_0x5a445a[_0x22d19e(0x1a3)]=0x271f]=_0x22d19e(0x1a3),_0x5a445a[_0x5a445a[_0x22d19e(0x2d2)]=0x2720]=_0x22d19e(0x2d2),_0x5a445a[_0x5a445a[_0x22d19e(0x15f)]=0x2af9]=_0x22d19e(0x15f),_0x5a445a[_0x5a445a[_0x22d19e(0x363)]=0x2ee1]=_0x22d19e(0x363),_0x5a445a[_0x5a445a['INVALID_INVITE_CODE']=0x2ee2]=_0x22d19e(0x13e),_0x5a445a[_0x5a445a[_0x22d19e(0x203)]=0x2ee3]=_0x22d19e(0x203),_0x5a445a[_0x5a445a[_0x22d19e(0x20f)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5a445a[_0x5a445a[_0x22d19e(0x28d)]=0x2ee5]=_0x22d19e(0x28d),_0x5a445a[_0x5a445a[_0x22d19e(0x32c)]=0x32c9]=_0x22d19e(0x32c),_0x5a445a[_0x5a445a[_0x22d19e(0x312)]=0x32ca]=_0x22d19e(0x312),_0x5a445a[_0x5a445a[_0x22d19e(0x23c)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5a445a[_0x5a445a[_0x22d19e(0x244)]=0x36b1]=_0x22d19e(0x244),_0x5a445a[_0x5a445a[_0x22d19e(0x365)]=0x36b2]=_0x22d19e(0x365),_0x5a445a[_0x5a445a[_0x22d19e(0x247)]=0x36b3]=_0x22d19e(0x247),_0x5a445a[_0x5a445a['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5a445a[_0x5a445a[_0x22d19e(0x202)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x5a445a[_0x5a445a[_0x22d19e(0xa6)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5a445a[_0x5a445a['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x5a445a[_0x5a445a['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x22d19e(0x14d),_0x5a445a[_0x5a445a[_0x22d19e(0xd6)]=0x3a99]=_0x22d19e(0xd6),_0x5a445a[_0x5a445a['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x22d19e(0x313),_0x5a445a[_0x5a445a[_0x22d19e(0x260)]=0x3a9b]=_0x22d19e(0x260),_0x5a445a[_0x5a445a[_0x22d19e(0x98)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5a445a[_0x5a445a['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x22d19e(0x2e8),_0x5a445a[_0x5a445a['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x22d19e(0x222),_0x5a445a[_0x5a445a['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x22d19e(0xbf),_0x5a445a[_0x5a445a[_0x22d19e(0x14b)]=0x3e81]=_0x22d19e(0x14b),_0x5a445a[_0x5a445a[_0x22d19e(0x26e)]=-0x1]=_0x22d19e(0x26e),_0x5a445a))(_0x4dfe1b||{});function _0xb09571(_0x4b5af4){const _0x3fdd45=_0x22d19e;var _0xefe075,_0x122910;const _0x15dde3=(_0xefe075=_0x4b5af4['stageInfo'])==null?void 0x0:_0xefe075[_0x3fdd45(0xf5)],_0xcfd63=((_0x122910=_0x4b5af4[_0x3fdd45(0x14f)])==null?void 0x0:_0x122910[_0x3fdd45(0x36d)])||0x0;return _0x15dde3===_0x419491[_0x3fdd45(0x199)][_0x3fdd45(0xa0)]&&_0xcfd63>0x0;}function _0x1b97a4(_0x4cd6a6){const _0x5aa8b7=_0x22d19e;return _0x4cd6a6[_0x5aa8b7(0x2ae)]===_0x419491[_0x5aa8b7(0x336)][_0x5aa8b7(0x338)];}var _0x4a0f6f=Object[_0x22d19e(0x1e2)],_0x4bd536=(_0x2c7896,_0x2ba44c,_0x239d15,_0x3aa56c)=>{const _0x549fbc=_0x22d19e;for(var _0x3d24a4=_0x3aa56c>0x1?void 0x0:_0x3aa56c?_0x4a0f6f(_0x2ba44c,_0x239d15):_0x2ba44c,_0x305cb5=_0x2c7896[_0x549fbc(0x29c)]-0x1,_0x3beea4;_0x305cb5>=0x0;_0x305cb5--)(_0x3beea4=_0x2c7896[_0x305cb5])&&(_0x3d24a4=_0x3beea4(_0x3d24a4)||_0x3d24a4);return _0x3d24a4;},_0x595222=(_0x1dce99,_0x27e394)=>(_0x3200a2,_0x516c58)=>_0x27e394(_0x3200a2,_0x516c58,_0x1dce99);const _0x101a56=_0x22d19e(0x205),_0x2a05fd=_0x22d19e(0x31b),_0x290ec6='/universer-api/license/formula/limit/done';let _0x2c1a4e=class extends _0x4a5a1c['Disposable']{constructor(_0x5325d6,_0x53cf47,_0x7003a9,_0x2b1586,_0x3171c3,_0x52073f,_0x2dd6b9){const _0x4403a5=_0x22d19e;super(),_0xa63e61(this,_0x4403a5(0x213),null),_0xa63e61(this,_0x4403a5(0x168),0x0),_0xa63e61(this,'_currentUsage',0x0),_0xa63e61(this,_0x4403a5(0x23d),[]),_0xa63e61(this,_0x4403a5(0x33f),0x0),(this[_0x4403a5(0x33e)]=_0x5325d6,this[_0x4403a5(0x2b1)]=_0x53cf47,this[_0x4403a5(0x2f4)]=_0x7003a9,this['_httpService']=_0x2b1586,this[_0x4403a5(0x2de)]=_0x3171c3,this[_0x4403a5(0x1d7)]=_0x52073f,this[_0x4403a5(0x295)]=_0x2dd6b9,this[_0x4403a5(0xd9)]());}[_0x22d19e(0xd9)](){const _0x3811da=_0x22d19e;this['disposeWithMe'](this[_0x3811da(0x2b1)][_0x3811da(0xf6)]((_0x3cdbd9,_0x5bbbf5)=>{const _0x1e4978=_0x3811da;var _0x3dc4e5;if(_0x3cdbd9['id']!==_0x419491[_0x1e4978(0x1c6)]['id'])return;const _0x5217d3=_0x3cdbd9[_0x1e4978(0x22d)];if(!this[_0x1e4978(0x2c7)]((_0x3dc4e5=_0x5217d3['dirtyRanges'])!=null?_0x3dc4e5:[]))return;if(!this[_0x1e4978(0x1a6)]())throw this['_checkAndWaitForCalculationPermission'](_0x3cdbd9,_0x5bbbf5),this['_showGuardMessage'](),new _0x4a5a1c['CanceledError']();})),this['disposeWithMe'](this[_0x3811da(0x2b1)][_0x3811da(0x1f9)]((_0x2cf0d1,_0x2f4c9e)=>{const _0x377b7d=_0x3811da;if(_0x2cf0d1['id']!==_0x419491['SetFormulaCalculationNotificationMutation']['id'])return;const _0x55c898=_0x2cf0d1[_0x377b7d(0x22d)];if(_0xb09571(_0x55c898)){const _0x242882=_0x4a5a1c[_0x377b7d(0x151)]();this[_0x377b7d(0x23d)][_0x377b7d(0x256)](_0x242882),this[_0x377b7d(0x1a1)](_0x242882);}else{if(_0x1b97a4(_0x55c898)&&this[_0x377b7d(0x23d)][_0x377b7d(0x29c)]>0x0){const _0x46c3ee=this[_0x377b7d(0x23d)]['shift']();this[_0x377b7d(0x20e)](_0x46c3ee);}}}));}[_0x22d19e(0x210)](){const _0x4d8d23=_0x22d19e;super[_0x4d8d23(0x210)](),this['_clearPolling'](),this[_0x4d8d23(0x23d)]=[],this['_currentUsage']=0x0,this[_0x4d8d23(0x168)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x22d19e(0xaf)](_0x282746,_0x4a7ff1){const _0xffbd39=_0x22d19e;for(let _0x3bad9c=0x0;_0x3bad9c<0x1e;_0x3bad9c++)try{if(await this[_0xffbd39(0x132)](),this[_0xffbd39(0x1a6)]()){this['_applyCommand'](_0x282746,_0x4a7ff1),this[_0xffbd39(0x33e)]['show']({'content':this[_0xffbd39(0x295)]['t'](_0xffbd39(0xf2)),'type':_0x67c92c[_0xffbd39(0x215)][_0xffbd39(0x1de)]});return;}await new Promise(_0x562603=>{const _0x54fafd=_0xffbd39;this[_0x54fafd(0x213)]=window[_0x54fafd(0x253)](_0x562603,0x3e8);});}catch(_0x4bd4c3){this[_0xffbd39(0x1d7)]['error'](_0x4bd4c3);}this[_0xffbd39(0x33e)][_0xffbd39(0x1ba)]({'content':this['_localeService']['t'](_0xffbd39(0x2b3)),'type':_0x67c92c[_0xffbd39(0x215)][_0xffbd39(0x2d1)]});}['_applyCommand'](_0x5d27c9,_0x52d8e0){const _0x10792a=_0x22d19e;try{this[_0x10792a(0x2b1)][_0x10792a(0x264)](_0x5d27c9['id'],_0x5d27c9['params'],_0x52d8e0);}catch(_0x572cb0){this['_logService'][_0x10792a(0x1fd)](_0x572cb0);}}[_0x22d19e(0x30c)](_0x438d3b,_0x621548){const _0x367eff=_0x22d19e;_0x621548<this[_0x367eff(0x33f)]||(this[_0x367eff(0x33f)]=_0x621548,this['_maxFormulaLimit']=Number[_0x367eff(0xe7)](_0x438d3b[_0x367eff(0x27f)]),this['_currentUsage']=Number[_0x367eff(0xe7)](_0x438d3b[_0x367eff(0xbe)]));}async[_0x22d19e(0x1a1)](_0x52a0cd){const _0x4fcbd0=_0x22d19e;var _0x54b6e,_0x5bbcb3;const _0x44675c=Date['now']();try{const _0x24bbd5=((_0x54b6e=this[_0x4fcbd0(0x2f4)][_0x4fcbd0(0x1a5)](_0x29cbea[_0x4fcbd0(0x115)]))==null?void 0x0:_0x54b6e[_0x4fcbd0(0x21c)])||_0x2a05fd,_0x5ef78f=(await this[_0x4fcbd0(0x33c)][_0x4fcbd0(0x33a)](_0x24bbd5,{'body':JSON['stringify']({'taskId':_0x52a0cd})}))[_0x4fcbd0(0x1e6)];if(((_0x5bbcb3=_0x5ef78f[_0x4fcbd0(0x1fd)])==null?void 0x0:_0x5bbcb3['code'])!==_0x4dfe1b['OK'])return;this['_setFormulaLimitStatus'](_0x5ef78f[_0x4fcbd0(0x330)],_0x44675c);}catch(_0x3b9f6e){this[_0x4fcbd0(0x1d7)][_0x4fcbd0(0x1fd)](_0x3b9f6e);}}async['_getFormulaLimitStatus'](_0x357912){const _0x16ac17=_0x22d19e;var _0x20b4f5,_0x2a7aad;const _0x40d687=Date[_0x16ac17(0xa9)]();try{const _0x4f8a90=((_0x20b4f5=this['_configService'][_0x16ac17(0x1a5)](_0x29cbea[_0x16ac17(0x115)]))==null?void 0x0:_0x20b4f5[_0x16ac17(0x197)])||_0x101a56,_0x514985=_0x357912?_0x4f8a90+'?taskId='+encodeURIComponent(_0x357912):_0x4f8a90,_0x53fb94=(await this[_0x16ac17(0x33c)]['get'](_0x514985))[_0x16ac17(0x1e6)];if(((_0x2a7aad=_0x53fb94[_0x16ac17(0x1fd)])==null?void 0x0:_0x2a7aad[_0x16ac17(0x2cb)])!==_0x4dfe1b['OK'])return;this[_0x16ac17(0x30c)](_0x53fb94[_0x16ac17(0x330)],_0x40d687);}catch(_0x267521){this['_logService'][_0x16ac17(0x1fd)](_0x267521);}}async['_releaseCalculationLimit'](_0x20f6b1){const _0x504fd7=_0x22d19e;var _0x357435,_0x175a88;const _0x43beac=Date['now']();try{const _0x353859=((_0x357435=this[_0x504fd7(0x2f4)]['getConfig'](_0x29cbea[_0x504fd7(0x115)]))==null?void 0x0:_0x357435[_0x504fd7(0x17e)])||_0x290ec6,_0x29939d=(await this['_httpService']['post'](_0x353859,{'body':JSON[_0x504fd7(0x22b)]({'taskId':_0x20f6b1})}))['body'];if(((_0x175a88=_0x29939d[_0x504fd7(0x1fd)])==null?void 0x0:_0x175a88[_0x504fd7(0x2cb)])!==_0x4dfe1b['OK'])return;this[_0x504fd7(0x30c)](_0x29939d[_0x504fd7(0x330)],_0x43beac);}catch(_0x5da227){this['_logService'][_0x504fd7(0x1fd)](_0x5da227);}}[_0x22d19e(0x1a6)](){const _0x2f8b34=_0x22d19e;return this[_0x2f8b34(0x168)]===0x0?!0x0:this[_0x2f8b34(0x168)]-this[_0x2f8b34(0x1f7)]>0x0;}['_clearPolling'](){const _0x20b234=_0x22d19e;this[_0x20b234(0x213)]&&(clearTimeout(this[_0x20b234(0x213)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0xcb3a78=_0x22d19e;this['_messageService'][_0xcb3a78(0x1ba)]({'content':this[_0xcb3a78(0x295)]['t'](_0xcb3a78(0x344)),'type':_0x67c92c[_0xcb3a78(0x215)]['Loading']});}[_0x22d19e(0x2c7)](_0x3bc72b){const _0x25f605=_0x22d19e;for(const _0x9fa63d of _0x3bc72b){const {unitId:_0x32033c,sheetId:_0x38db36,range:_0x5d9e39}=_0x9fa63d,_0x5a9de3=this[_0x25f605(0x2de)][_0x25f605(0x18f)](_0x32033c);if(!_0x5a9de3)continue;const _0x9aea85=_0x5a9de3[_0x25f605(0x281)](_0x38db36);if(!_0x9aea85)continue;const _0x2f5a77=_0x9aea85[_0x25f605(0x2f8)]();for(let _0x408eea=_0x5d9e39['startRow'];_0x408eea<=_0x5d9e39[_0x25f605(0x1c0)];_0x408eea++)for(let _0x28441c=_0x5d9e39[_0x25f605(0x152)];_0x28441c<=_0x5d9e39[_0x25f605(0x1f0)];_0x28441c++){const _0x570892=_0x2f5a77[_0x25f605(0x1db)](_0x408eea,_0x28441c);if(_0x570892&&(_0x4a5a1c[_0x25f605(0xfe)](_0x570892['f'])||_0x4a5a1c[_0x25f605(0x17c)](_0x570892['si'])))return!0x0;}}return!0x1;}};_0x2c1a4e=_0x4bd536([_0x595222(0x0,_0x4a5a1c['Inject'](_0x270495['IMessageService'])),_0x595222(0x1,_0x4a5a1c[_0x22d19e(0x263)]),_0x595222(0x2,_0x4a5a1c['IConfigService']),_0x595222(0x3,_0x4a5a1c[_0x22d19e(0x35d)](_0xbeb642['HTTPService'])),_0x595222(0x4,_0x4a5a1c['IUniverInstanceService']),_0x595222(0x5,_0x4a5a1c[_0x22d19e(0x2eb)]),_0x595222(0x6,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c[_0x22d19e(0x16a)]))],_0x2c1a4e);var _0x14efc7=Object[_0x22d19e(0x1e2)],_0x469dc1=(_0x2d1aa4,_0x22c57a,_0x1d628,_0xd8babd)=>{const _0x279309=_0x22d19e;for(var _0x1883f6=_0xd8babd>0x1?void 0x0:_0xd8babd?_0x14efc7(_0x22c57a,_0x1d628):_0x22c57a,_0x5696bb=_0x2d1aa4[_0x279309(0x29c)]-0x1,_0x4e9040;_0x5696bb>=0x0;_0x5696bb--)(_0x4e9040=_0x2d1aa4[_0x5696bb])&&(_0x1883f6=_0x4e9040(_0x1883f6)||_0x1883f6);return _0x1883f6;},_0x14c1b8=(_0x4dd982,_0x1caced)=>(_0x41e088,_0x782287)=>_0x1caced(_0x41e088,_0x782287,_0x4dd982);let _0xc26255=class extends _0x4a5a1c['Disposable']{constructor(_0x57f0c0,_0x22941a,_0x428671){const _0x2795f0=_0x22d19e;super(),_0xa63e61(this,_0x2795f0(0x1da),new Map()),_0xa63e61(this,_0x2795f0(0x131),new Map()),_0xa63e61(this,'_disabled',!0x1),(this[_0x2795f0(0x2f4)]=_0x57f0c0,this['_localStorageService']=_0x22941a,this[_0x2795f0(0x163)]=_0x428671);}[_0x22d19e(0x30a)](){const _0x269231=_0x22d19e;this[_0x269231(0x2d7)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x22d19e(0x307)](){const _0x19590b=_0x22d19e;return this[_0x19590b(0x131)];}['dispose'](){const _0x38f0f9=_0x22d19e;this[_0x38f0f9(0x1cb)]()['then'](()=>super[_0x38f0f9(0x210)]());}async['loadOfflineData'](_0xf57006){const _0x3c8b9d=_0x22d19e;return this[_0x3c8b9d(0x2d7)]?null:this[_0x3c8b9d(0x13f)][_0x3c8b9d(0x1f1)](_0x29cbea[_0x3c8b9d(0x2a9)](_0xf57006));}async[_0x22d19e(0x122)](_0x101798,_0x4ff7bb){return!!this['_localStorageService']['setItem'](_0x101798,_0x4ff7bb);}[_0x22d19e(0xcb)](_0x3c0f1b,_0x15cb49,_0x44104a,_0x42872e){const _0x30203c=_0x22d19e,_0x529dee=this[_0x30203c(0x163)][_0x30203c(0x186)](_0x3c0f1b);this['_cachedData'][_0x30203c(0x25b)](_0x3c0f1b,{'unitID':_0x3c0f1b,'type':_0x15cb49,'awaitingChangeset':_0x44104a,'mutations':_0x42872e,'rev':_0x529dee}),this['_saveTaskMap'][_0x30203c(0x241)](_0x3c0f1b)||this[_0x30203c(0x2d0)](_0x3c0f1b);}[_0x22d19e(0x2d0)](_0x29d074){const _0x47260b=_0x22d19e,_0x5075c0=this['_getSaveTimeout']();_0x5075c0===0x0?this[_0x47260b(0xac)](_0x29d074):this[_0x47260b(0x131)]['set'](_0x29d074,setTimeout(()=>this[_0x47260b(0xac)](_0x29d074),_0x5075c0));}[_0x22d19e(0x289)](){const _0x26f7c9=_0x22d19e;var _0xf4f726;return(_0xf4f726=this[_0x26f7c9(0x2f4)]['getConfig'](_0x29cbea[_0x26f7c9(0x2fd)]))!=null?_0xf4f726:_0x29cbea[_0x26f7c9(0x1e9)];}[_0x22d19e(0xac)](_0x4f3ac4){const _0x12c131=_0x22d19e,_0x32ff45=this['_saveTaskMap'][_0x12c131(0x18e)](_0x4f3ac4);return _0x32ff45!==void 0x0&&window[_0x12c131(0x149)](_0x32ff45),this[_0x12c131(0x13f)][_0x12c131(0x292)](_0x29cbea[_0x12c131(0x2a9)](_0x4f3ac4),this[_0x12c131(0x1da)][_0x12c131(0x18e)](_0x4f3ac4))[_0x12c131(0x236)](()=>this[_0x12c131(0x131)][_0x12c131(0x1cd)](_0x4f3ac4));}async[_0x22d19e(0x1cb)](){const _0x434142=_0x22d19e,_0x2aa64c=[];this[_0x434142(0x131)][_0x434142(0x316)]((_0x2480cd,_0x5c702f)=>{const _0x13d2ca=_0x434142;window[_0x13d2ca(0x149)](_0x2480cd),_0x2aa64c[_0x13d2ca(0x256)](this[_0x13d2ca(0xac)](_0x5c702f)['then'](()=>{const _0x57ad79=_0x13d2ca;this[_0x57ad79(0x131)][_0x57ad79(0x1cd)](_0x5c702f);}));}),await Promise['all'](_0x2aa64c);}};_0xc26255=_0x469dc1([_0x14c1b8(0x0,_0x4a5a1c[_0x22d19e(0xb9)]),_0x14c1b8(0x1,_0x4a5a1c['ILocalStorageService']),_0x14c1b8(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a6bb0['RevisionService']))],_0xc26255);class _0x1410ea extends _0x4a5a1c[_0x22d19e(0x31e)]{constructor(){const _0x2f76ac=_0x22d19e;super(),_0xa63e61(this,_0x2f76ac(0x287)),this[_0x2f76ac(0x287)]=_0x8d94e0[_0x2f76ac(0x252)](window,_0x2f76ac(0x2a0))[_0x2f76ac(0x296)](_0x8d94e0[_0x2f76ac(0x9e)](this['dispose$']),_0x8d94e0[_0x2f76ac(0xd2)](0x1),_0x8d94e0[_0x2f76ac(0x26c)](void 0x0));}[_0x22d19e(0x361)](_0x1be3bb,_0x18b920,_0x1337b3=!0x1){const _0x451d57=_0x22d19e,_0x1187bc=new URL(window['location']['href']);_0x1187bc[_0x451d57(0xdc)][_0x451d57(0x25b)](_0x1be3bb,_0x18b920),_0x1337b3?window[_0x451d57(0xd7)][_0x451d57(0x368)]('','',_0x1187bc[_0x451d57(0x14e)]()):window[_0x451d57(0xd7)][_0x451d57(0x2a4)]('','',_0x1187bc[_0x451d57(0x14e)]());}[_0x22d19e(0x1e7)](_0x45a872,_0x18c1b2=!0x1){const _0x565a63=_0x22d19e,_0x48986f=new URL(window[_0x565a63(0x2a3)][_0x565a63(0x308)]);_0x48986f[_0x565a63(0xdc)][_0x565a63(0x1cd)](_0x45a872),_0x18c1b2?window['history']['replaceState']('','',_0x48986f[_0x565a63(0x14e)]()):window['history']['pushState']('','',_0x48986f[_0x565a63(0x14e)]());}[_0x22d19e(0x17b)](_0x16a21c){const _0x560ad5=_0x22d19e;var _0x24356a;return(_0x24356a=new URL(window['location']['href'])[_0x560ad5(0xdc)][_0x560ad5(0x18e)](_0x16a21c))!=null?_0x24356a:void 0x0;}}var _0x539921=Object[_0x22d19e(0xbd)],_0x902516=Object[_0x22d19e(0x1e2)],_0x2abd71=(_0x3fc476,_0x2037cc,_0x41095e)=>_0x2037cc in _0x3fc476?_0x539921(_0x3fc476,_0x2037cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41095e}):_0x3fc476[_0x2037cc]=_0x41095e,_0x22f639=(_0x569df8,_0x27de03,_0x325609,_0x351c5f)=>{const _0x2d5ef7=_0x22d19e;for(var _0x45eb43=_0x351c5f>0x1?void 0x0:_0x351c5f?_0x902516(_0x27de03,_0x325609):_0x27de03,_0x1b7282=_0x569df8[_0x2d5ef7(0x29c)]-0x1,_0x25ee8b;_0x1b7282>=0x0;_0x1b7282--)(_0x25ee8b=_0x569df8[_0x1b7282])&&(_0x45eb43=_0x25ee8b(_0x45eb43)||_0x45eb43);return _0x45eb43;},_0x315a14=(_0x4fa3e1,_0x5ab00f)=>(_0x40a023,_0x57e82f)=>_0x5ab00f(_0x40a023,_0x57e82f,_0x4fa3e1),_0x2a3c91=(_0x50cf56,_0xf29d36,_0x6d7322)=>_0x2abd71(_0x50cf56,_0xf29d36+'',_0x6d7322);const _0x5de403='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x440074[_0x22d19e(0x261)]=class extends _0x4a5a1c['Plugin']{constructor(_0x2f6994=_0x1eb4f8,_0x4b6e65,_0x58ae61,_0x143b59){const _0xf84547=_0x22d19e;super(),this['_config']=_0x2f6994,this[_0xf84547(0x282)]=_0x4b6e65,this[_0xf84547(0x36e)]=_0x58ae61,this[_0xf84547(0x2f4)]=_0x143b59;const {..._0x281f22}=_0x4a5a1c[_0xf84547(0x274)]({},_0x1eb4f8,this[_0xf84547(0x2fb)]);this[_0xf84547(0x2f4)][_0xf84547(0x228)](_0x48039f,_0x281f22);}[_0x22d19e(0xc7)](){const _0xbeb719=_0x22d19e;this[_0xbeb719(0xce)](),this[_0xbeb719(0x321)]();}['onRendered'](){const _0x2df3c7=_0x22d19e;this[_0x2df3c7(0x14a)]();}[_0x22d19e(0xce)](){const _0x385e16=_0x22d19e;var _0x37ca00;const _0x427cfa=[[_0x54052c],[_0x2c1a4e],[_0x247291],[_0xc53968],[_0x5cd1e2],[_0x5e2c98],[_0x1a7106,{'useClass':_0x1410ea}],[_0xbeb642[_0x385e16(0x2c8)],{'useClass':_0xbeb642[_0x385e16(0xef)]}],[_0x29cbea[_0x385e16(0x92)],{'useClass':_0xc26255}],[_0x440074[_0x385e16(0xd0)]],[_0x29e630],[_0x6027b0],[_0x8689c],[_0x3b2848],[_0x440074['CollaborationDataLoaderController']]];this['_config'][_0x385e16(0x15c)]&&_0x427cfa[_0x385e16(0x256)]([_0x44bd4f]),_0x4a5a1c['registerDependencies'](this[_0x385e16(0x36e)],_0x4a5a1c[_0x385e16(0x1e4)](_0x427cfa,(_0x37ca00=this[_0x385e16(0x2fb)])==null?void 0x0:_0x37ca00[_0x385e16(0x2ef)]));}['_registerRenderDependencies'](){const _0x348140=_0x22d19e;this['disposeWithMe'](this[_0x348140(0x282)][_0x348140(0x326)](_0x4a5a1c[_0x348140(0x2b9)]['UNIVER_DOC'],[_0x238ac3])),this[_0x348140(0xe5)](this[_0x348140(0x282)]['registerRenderModule'](_0x4a5a1c[_0x348140(0x2b9)][_0x348140(0x1cf)],[_0x5e3b2e]));}[_0x22d19e(0x321)](){const _0x554682=_0x22d19e;_0x4a5a1c[_0x554682(0x2b6)](this['_injector'],[[_0x8689c],[_0x440074['DesktopCollaborationStatusDisplayController']],[_0x29e630],[_0x6027b0],[_0x440074[_0x554682(0x230)]],[_0x2c1a4e]]),this['_config'][_0x554682(0x15c)]&&_0x4a5a1c['touchDependencies'](this[_0x554682(0x36e)],[[_0x44bd4f]]);}},_0x2a3c91(_0x440074[_0x22d19e(0x261)],'pluginName',_0x5de403),_0x440074[_0x22d19e(0x261)]=_0x22f639([_0x4a5a1c[_0x22d19e(0xc5)](_0x29cbea['UniverCollaborationClientPlugin']),_0x315a14(0x1,_0x5d2f68[_0x22d19e(0xcf)]),_0x315a14(0x2,_0x4a5a1c[_0x22d19e(0x35d)](_0x4a5a1c[_0x22d19e(0x2f2)])),_0x315a14(0x3,_0x4a5a1c[_0x22d19e(0xb9)])],_0x440074[_0x22d19e(0x261)]);var _0x37bd06=Object['getOwnPropertyDescriptor'],_0x1f5987=(_0x1e9b91,_0x22b710,_0x293ae9,_0x5a131a)=>{const _0x5e0c94=_0x22d19e;for(var _0x3d268d=_0x5a131a>0x1?void 0x0:_0x5a131a?_0x37bd06(_0x22b710,_0x293ae9):_0x22b710,_0x3722b2=_0x1e9b91[_0x5e0c94(0x29c)]-0x1,_0x511877;_0x3722b2>=0x0;_0x3722b2--)(_0x511877=_0x1e9b91[_0x3722b2])&&(_0x3d268d=_0x511877(_0x3d268d)||_0x3d268d);return _0x3d268d;},_0x252204=(_0x35d3d0,_0x5dd376)=>(_0x2266c9,_0x1b49e5)=>_0x5dd376(_0x2266c9,_0x1b49e5,_0x35d3d0);_0x440074[_0x22d19e(0x206)]=class extends _0x29cbea[_0x22d19e(0x2c3)]{constructor(_0x9cbf42,_0x300b05,_0x25d74a,_0x3abfb0,_0x4851b4){super(_0x9cbf42,_0x300b05,_0x25d74a,_0x3abfb0,_0x4851b4);}async[_0x22d19e(0x34c)](_0x2ac4e1){const _0x5b552d=_0x22d19e,_0x54140a=await this[_0x5b552d(0xde)](),_0xcb64cf=this['_createSocketURL'](_0x2ac4e1,_0x54140a);return this[_0x5b552d(0x1dc)](_0xcb64cf);}[_0x22d19e(0x31f)](_0x18e95d,_0x293332){const _0x2d2a62=_0x22d19e,_0x16a08a=typeof window>'u'?new URL(_0x18e95d):new URL(_0x18e95d,window[_0x2d2a62(0x2a3)][_0x2d2a62(0xc9)]);_0x16a08a[_0x2d2a62(0xdc)][_0x2d2a62(0x25b)](_0x2d2a62(0x13a),_0x293332);const _0x7e3f7e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2d2a62(0x2a3)]['search']);return _0x7e3f7e[_0x2d2a62(0x18e)](_0x2d2a62(0x193))&&_0x16a08a[_0x2d2a62(0xdc)][_0x2d2a62(0x25b)](_0x2d2a62(0x193),_0x7e3f7e['get'](_0x2d2a62(0x193))),_0x16a08a['toString']();}async[_0x22d19e(0xde)](){const _0x2abd49=_0x22d19e;var _0x3e7113,_0x39883f,_0x5b800c;const _0x453054=this[_0x2abd49(0x2f4)][_0x2abd49(0x1a5)](_0x29cbea[_0x2abd49(0x115)]),_0x184180=(_0x3e7113=_0x453054==null?void 0x0:_0x453054['wsSessionTicketUrl'])!=null?_0x3e7113:_0x29cbea['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5b800c=(_0x39883f=(await this[_0x2abd49(0x33c)][_0x2abd49(0x18e)](_0x184180,{'headers':{'Content-Type':_0x2abd49(0x1d9)}}))['body'])==null?void 0x0:_0x39883f[_0x2abd49(0x15d)])!=null?_0x5b800c:'';}},_0x440074['BrowserCollaborationSocketService']=_0x1f5987([_0x252204(0x0,_0x4a5a1c['Inject'](_0x4a5a1c['Injector'])),_0x252204(0x1,_0x4a5a1c[_0x22d19e(0x35d)](_0xbeb642['HTTPService'])),_0x252204(0x2,_0x4a5a1c[_0x22d19e(0xb9)]),_0x252204(0x3,_0x4a5a1c[_0x22d19e(0x2eb)]),_0x252204(0x4,_0x4a6bb0['ISnapshotServerService'])],_0x440074[_0x22d19e(0x206)]);var _0x114027=Object[_0x22d19e(0x1e2)],_0xd87241=(_0x1656cc,_0x47eb8c,_0x416903,_0xc1f240)=>{const _0x13e513=_0x22d19e;for(var _0x3140e2=_0xc1f240>0x1?void 0x0:_0xc1f240?_0x114027(_0x47eb8c,_0x416903):_0x47eb8c,_0x2e13d5=_0x1656cc[_0x13e513(0x29c)]-0x1,_0x2654cb;_0x2e13d5>=0x0;_0x2e13d5--)(_0x2654cb=_0x1656cc[_0x2e13d5])&&(_0x3140e2=_0x2654cb(_0x3140e2)||_0x3140e2);return _0x3140e2;},_0x547ad9=(_0x39c96b,_0x4091ea)=>(_0xa02543,_0x56ff2e)=>_0x4091ea(_0xa02543,_0x56ff2e,_0x39c96b);_0x440074[_0x22d19e(0x1ef)]=class extends _0x4a5a1c[_0x22d19e(0x2a7)]{constructor(_0x5afd1e,_0x1f341b,_0x1c8206){const _0x154661=_0x22d19e;super(),this['_instanceService']=_0x5afd1e,this[_0x154661(0x33c)]=_0x1f341b,this[_0x154661(0x2f4)]=_0x1c8206;}async[_0x22d19e(0x2d9)](_0x1e68f9,_0x93e61e,_0x5e55d0,..._0x4d902c){const _0xa35e48=_0x22d19e;var _0x54c71c,_0x2fa3cf,_0x13745a,_0x25276b;const _0x76d44c=this['_instanceService'][_0xa35e48(0x36c)]();if(!_0x76d44c)throw new Error(_0xa35e48(0x2c5));const _0x2857cf=((_0x54c71c=this[_0xa35e48(0x2f4)][_0xa35e48(0x1a5)](_0x29cbea[_0xa35e48(0xfa)]))!=null?_0x54c71c:_0x29cbea['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1e68f9+'/run/'+_0x93e61e,_0x86e036=new URL(window[_0xa35e48(0x2a3)][_0xa35e48(0x308)]),_0x410488={'scriptId':_0x1e68f9,'runId':(_0x2fa3cf=_0x86e036[_0xa35e48(0xdc)][_0xa35e48(0x18e)](_0xa35e48(0x193)))!=null?_0x2fa3cf:'','function':_0x93e61e,'unitId':_0x76d44c[_0xa35e48(0xb0)](),'argsOfFunction':JSON[_0xa35e48(0x22b)](_0x4d902c),'invokeId':(_0x13745a=_0x5e55d0['invokeId'])!=null?_0x13745a:'','executionId':(_0x25276b=_0x5e55d0[_0xa35e48(0xdb)])!=null?_0x25276b:''};try{const _0x1049a4=await this[_0xa35e48(0x33c)]['post'](_0x2857cf,{'body':_0x410488});return _0x1049a4['body'][_0xa35e48(0x1fd)]&&_0x1049a4['body'][_0xa35e48(0x1fd)][_0xa35e48(0x2cb)]!==_0x4dfe1b['OK']?_0xa35e48(0x340):_0x1049a4['body'][_0xa35e48(0x1f6)];}catch{return _0xa35e48(0x340);}}},_0x440074['RemoteUniscriptService']=_0xd87241([_0x547ad9(0x0,_0x4a5a1c[_0x22d19e(0x303)]),_0x547ad9(0x1,_0x4a5a1c[_0x22d19e(0x35d)](_0xbeb642[_0x22d19e(0x34b)])),_0x547ad9(0x2,_0x4a5a1c[_0x22d19e(0xb9)])],_0x440074[_0x22d19e(0x1ef)]);const _0x19436c=0x7530,_0x6a45f=_0x22d19e(0x2b8);class _0x16b802 extends _0x4a5a1c[_0x22d19e(0x2a7)]{constructor(){const _0x4f791c=_0x22d19e;super(),_0xa63e61(this,_0x4f791c(0x155),_0x4a5a1c[_0x4f791c(0x151)]()),_0xa63e61(this,_0x4f791c(0x28b),new Set()),_0xa63e61(this,_0x4f791c(0x195),new Map()),_0xa63e61(this,_0x4f791c(0x35c),null),_0xa63e61(this,_0x4f791c(0x34d),new Map()),_0xa63e61(this,_0x4f791c(0x1e5),new Map()),this['_init']();}[_0x22d19e(0x210)](){const _0x3a33b7=_0x22d19e;super['dispose'](),this[_0x3a33b7(0x34d)][_0x3a33b7(0x316)]((_0x957d8c,_0x602d83)=>this[_0x3a33b7(0x19e)](_0x602d83)),this[_0x3a33b7(0x35c)]&&window[_0x3a33b7(0x27d)](this['_heartbeatTimer']);}[_0x22d19e(0x30e)](_0x202ca5){const _0x37d96d=_0x22d19e;return this[_0x37d96d(0x114)](_0x202ca5)[_0x37d96d(0x296)](_0x8d94e0[_0x37d96d(0x237)]());}[_0x22d19e(0x221)](_0x378ff1){const _0x36c268=_0x22d19e;this[_0x36c268(0x28b)]['size']===0x0&&this[_0x36c268(0x283)](),this[_0x36c268(0x28b)][_0x36c268(0x23a)](_0x378ff1),this[_0x36c268(0x2aa)]({'type':0x0,'memberID':this[_0x36c268(0x155)],'unitIDs':[_0x378ff1],'isForwarded':!0x1});}['disposeUnit'](_0x48d90c){const _0x4c0920=_0x22d19e;this[_0x4c0920(0x28b)]['delete'](_0x48d90c),this[_0x4c0920(0x28b)][_0x4c0920(0x94)]===0x0&&this[_0x4c0920(0x35c)]&&window[_0x4c0920(0x27d)](this[_0x4c0920(0x35c)]);}['_init'](){const _0x3337f6=_0x22d19e;this[_0x3337f6(0xe5)](_0x4a5a1c['toDisposable'](_0x8d94e0['fromEvent'](window,_0x3337f6(0x2df))[_0x3337f6(0x35e)](_0x2713d6=>{const _0x4ad767=_0x3337f6;if(_0x2713d6[_0x4ad767(0x1ac)]!==_0x6a45f||!_0x2713d6[_0x4ad767(0x20b)])return;const _0x5cf9d9=JSON[_0x4ad767(0x1b0)](_0x2713d6[_0x4ad767(0x20b)]);this[_0x4ad767(0xa4)](_0x5cf9d9);}))),window[_0x3337f6(0x24e)](_0x3337f6(0x245),()=>this[_0x3337f6(0x2aa)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x3337f6(0x28b)])}));}[_0x22d19e(0xa4)](_0x5dd314){const _0x22506f=_0x22d19e;switch(_0x5dd314[_0x22506f(0x169)]){case 0x0:this[_0x22506f(0x271)](_0x5dd314);break;case 0x1:this['_handleLeaveEvent'](_0x5dd314);break;case 0x2:this['_handleHeartbeatEvent'](_0x5dd314);break;}}['_handleJoinEvent'](_0x38fbd2){const _0x467825=_0x22d19e,{unitIDs:_0x1ca779,memberID:_0x2c692f,isForwarded:_0x5c0861}=_0x38fbd2;_0x1ca779[_0x467825(0x316)](_0x52fac3=>{const _0x46cfb0=_0x467825;if(!_0x5c0861&&this[_0x46cfb0(0x195)][_0x46cfb0(0x241)](_0x52fac3)&&this['_ensureSubject'](_0x52fac3)[_0x46cfb0(0x218)](_0x29cbea[_0x46cfb0(0x150)][_0x46cfb0(0x232)]),!this[_0x46cfb0(0x195)][_0x46cfb0(0x241)](_0x52fac3)||!this[_0x46cfb0(0x195)][_0x46cfb0(0x18e)](_0x52fac3)[_0x46cfb0(0x241)](_0x2c692f)){const _0x925df5=this[_0x46cfb0(0x195)][_0x46cfb0(0x18e)](_0x52fac3)||new Set();_0x925df5[_0x46cfb0(0x23a)](_0x2c692f),this['_unitOnClients']['set'](_0x52fac3,_0x925df5),this[_0x46cfb0(0xc2)](_0x2c692f);}}),_0x5c0861||this[_0x467825(0x2aa)]({'type':0x0,'memberID':this[_0x467825(0x155)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x22d19e(0xc2)](_0x340477){const _0x5878bc=_0x22d19e;this[_0x5878bc(0x19e)](_0x340477);const _0x5a1feb=window[_0x5878bc(0x253)](()=>{const _0x37ecb7=_0x5878bc;this[_0x37ecb7(0x195)]['forEach'](_0x3915f1=>{_0x3915f1['delete'](_0x340477);});},_0x19436c*0x2);this[_0x5878bc(0x34d)][_0x5878bc(0x25b)](_0x340477,_0x5a1feb);}['_removeClearOtherTimer'](_0x282e48){const _0x4e68a0=_0x22d19e;if(this[_0x4e68a0(0x34d)][_0x4e68a0(0x241)](_0x282e48)){const _0x3c155b=this[_0x4e68a0(0x34d)][_0x4e68a0(0x18e)](_0x282e48);_0x3c155b&&window['clearTimeout'](_0x3c155b),this[_0x4e68a0(0x34d)][_0x4e68a0(0x25b)](_0x282e48,null);}}[_0x22d19e(0x1f5)](_0x1178c2){const {memberID:_0x1e811f,unitIDs:_0x2d1af2}=_0x1178c2;_0x2d1af2['forEach'](_0xd593a3=>{const _0x27013f=_0x1ae4;var _0x2c113a;const _0x38ca65=this[_0x27013f(0x195)][_0x27013f(0x18e)](_0xd593a3);_0x38ca65&&(_0x38ca65[_0x27013f(0x1cd)](_0x1e811f),(_0x2c113a=this[_0x27013f(0x114)](_0xd593a3))==null||_0x2c113a[_0x27013f(0x218)](_0x38ca65['size']===0x0?_0x29cbea[_0x27013f(0x150)][_0x27013f(0x216)]:_0x29cbea[_0x27013f(0x150)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x1e811f);}['_handleHeartbeatEvent'](_0xe4a1ea){const _0x5b3ccc=_0x22d19e;this[_0x5b3ccc(0xc2)](_0xe4a1ea[_0x5b3ccc(0x27c)]);}['_send'](_0x343eee){const _0x40b4c9=_0x22d19e;localStorage[_0x40b4c9(0x292)](_0x6a45f,JSON[_0x40b4c9(0x22b)](_0x343eee));}['_scheduleHeartbeat'](){const _0x328506=_0x22d19e;this['_heartbeatTimer']=window[_0x328506(0x234)](()=>{const _0x39b939=_0x328506;this[_0x39b939(0x2aa)]({'type':0x2,'memberID':this['_id']});},_0x19436c);}['_ensureSubject'](_0x23a024){const _0x3e8e54=_0x22d19e;return this[_0x3e8e54(0x1e5)][_0x3e8e54(0x241)](_0x23a024)||this[_0x3e8e54(0x1e5)][_0x3e8e54(0x25b)](_0x23a024,new _0x8d94e0[(_0x3e8e54(0x90))](_0x29cbea['UnitStatus'][_0x3e8e54(0x216)])),this[_0x3e8e54(0x1e5)][_0x3e8e54(0x18e)](_0x23a024);}}_0x440074[_0x22d19e(0x19a)]=_0x1a7106,_0x440074[_0x22d19e(0x24c)]=_0x3fc4ac,_0x440074['WebBrowserSingleActiveUnitService']=_0x16b802,_0x440074[_0x22d19e(0x208)]=_0x1410ea,Object['defineProperty'](_0x440074,Symbol['toStringTag'],{'value':_0x22d19e(0x188)});}));